.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);
}

/*<============================================================================================================================>*/

/* Carrusel */
/*Carrusel*/
.carousel-container {
  position: relative;
  max-width: 900px;
  margin: auto;
  overflow: hidden;
  border-radius: 10px;
  
}

.carousel-slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
}

.carousel-slide img {
  width: 100%;
  display: block;
  border-radius: 10px;
}

/* Botones */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 20px;
  z-index: 10;
}

.carousel-btn.prev {
  left: 10px;
}
.carousel-btn.next {
  right: 10px;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Indicadores */
.carousel-indicators {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
}

.carousel-indicators button {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.carousel-indicators button.active {
  background: rgba(255, 255, 255, 1);
}


/*================================================================================================================*/
/* Sección genérica */
/* Sección Nosotros */
.info-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, #0047ab, #3f51b5); /* Cobalto → Índigo */
  border-radius: 15px;
  margin: 2rem auto;
  max-width: 1100px;
}

.info-box {
  text-align: center;
  color: #ffffff;
  max-width: 900px;
  padding: 2rem;
}

.info-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.info-text {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: #e0e0e0; /* blanco suavizado para contraste */
}

.info-btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background: #ffffff;
  color: #0047ab;
  font-weight: bold;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.info-btn:hover {
  background: #3f51b5; /* Azul Índigo */
  color: #ffffff;
}

/*========================================================================================================*/
/*mapas*/
/* ===== Sección sucursales ===== */
.fondo-caja-1 {
  background-color: #1e3a8a; /* Azul Indigo */
  color: #ffffff; /* Blanco */
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.fondo-caja-2 {
  background-color: #0047ab; /* Azul Cobalto */
  border-radius: 16px;
  padding: 2rem 1rem;
}

.fondo-caja-2 h1 {
  color: #ffffff;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

.fondo-caja-2 p {
  color: #ffffff;
  line-height: 1.6;
  font-size: 1rem;
}

.fondo-caja-2 iframe {
  border-radius: 12px;
  border: 3px solid #1e3a8a; /* borde indigo */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.map-container {
  width: 100%; /* ocupa todo el ancho del contenedor */
  max-width: 600px; /* pero no más de 600px */
  margin: 0 auto; /* centrado */
}

.map-container iframe {
  width: 100%; /* que el mapa siempre se adapte al ancho */
  height: 350px; /* altura fija */
  border: 0;
  border-radius: 12px; /* esquinas redondeadas */
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15); /* sutil sombra */
}

/*================================================================================================================*/
/* --- Tarjetas de categorías (solo afecta al bloque de productos) --- */
/* ===== Fondo general categorías ===== */
.fondo-categoria {
  background-color: #1e3a8a; /* Azul Indigo */
  padding: 2rem;
  border-radius: 12px;
}

/* ===== Tarjetas ===== */
.tarjeta-categoria {
  background-color: #ffffff; /* fondo blanco */
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #000000; /* texto negro */
}

.tarjeta-categoria:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.imagen-categoria {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
  display: block;
}

/* ===== Botones personalizados ===== */
.btn-indigo {
  background-color: #1e3a8a; /* Indigo */
  color: #ffffff;
  border: none;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.btn-indigo:hover {
  background-color: #0047ab; /* Azul cobalto */
  color: #ffffff;
}
