.main-layout {
  display: flex;
  align-items: stretch; /* Estira los hijos para que tengan la misma altura */
  min-height: 100vh; /* Altura mínima igual a la pantalla */
}

/* Sidebar se estira según el contenido principal */
.sidebar {
  width: 250px;
  background-color: #0047ab;
  color: white;
  padding: 20px;
  font-family: "Poppins", sans-serif;
  flex-shrink: 0;
  font-size: 14px;
  display: flex;
  flex-direction: column;
}

/* Estilos para los enlaces del menú */
.sidebar a {
  font-family: "Roboto", sans-serif;
  display: block;
  color: white;
  text-decoration: none;
  margin: 8px 0;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.3s;
  font-size: 14px; /* Tamaño consistente */
}

.sidebar a:hover {
  background-color: #3f51b5;
}

/* Logo en el sidebar */
.sidebar img.logo {
  width: 70%;
  max-width: 180px;
  margin: 0 auto 20px;
  display: block;
  border-radius: 10px;
}

/* Contenedor de header + contenido */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Header: tamaño de fuente ajustado */
.header {
  background-color: #3f51b5;
  color: white;
  padding: 15px 20px;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-size: 18px; /* Reduce el tamaño para mantener la proporción */
}

/* Contenido principal */
.page-content {
  max-width: 800px;
  margin: 40px auto 20px auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Responsive */
@media (max-width: 767px) {
  .sucursal-box {
    padding: 20px 15px;
  }

  .sucursal-info {
    font-size: 0.95rem;
  }

  .map-container iframe {
    height: 300px;
  }
}

/* Footer ocupa toda la parte inferior */
.footer {
  background-color: #3f51b5;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  margin: 0; /* <- importante */
}
/* Ajustes responsivos para pantallas pequeñas */
@media (max-width: 768px) {
  .main-layout {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
  }

  /* En móviles el sidebar se ocupará la parte superior */
  .sidebar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 13px;
  }

  .sidebar a {
    margin: 5px;
    padding: 6px;
    font-size: 13px;
  }

  .main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
}

/*boton de whatsapp*/
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}

.whatsapp-float img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/*<=====================================================================================>*/
.productos-section {
  padding: 3rem 1rem;
  background: #f8f8f8;
}

.productos-container {
  max-width: 1200px;
  margin: 0 auto;
}

.productos-header {
  text-align: center;
  margin-bottom: 2rem;
}

.productos-header h2 {
  font-size: 2rem;
  color: #222;
  margin-bottom: 0.5rem;
}

.productos-header p {
  font-size: 1.1rem;
  color: #555;
}

.productos-imagen-principal {
  text-align: center;
  margin-bottom: 2rem;
}

.main-image {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.producto-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.producto-item:hover {
  transform: translateY(-5px);
}

.product-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/*Estilo para pronotores*/
.productos-logos {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  margin-top: 30px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.productos-logos h3 {
  margin-bottom: 15px;
  color: #333;
  font-weight: bold;
}

.logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.logos-grid img {
  max-height: 90px; /* controla el tamaño uniforme */
  object-fit: contain;
  transition: transform 0.2s ease-in-out;
}

.logos-grid img:hover {
  transform: scale(1.1);
}
