.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;
  }
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/*Mejoras celular*/
/* GENERAL RESPONSIVE AJUSTES */
@media (max-width: 767px) {
  .page-content {
    padding: 20px 10px;
    margin: 0 auto 20px auto;
    width: 100%;
  }

  .contact-form {
    padding: 20px 15px;
  }

  .form-control {
    font-size: 1rem;
    padding: 12px;
    margin-bottom: 15px;
  }

  .btn-primary {
    font-size: 1rem;
    padding: 12px;
    width: 100%;
  }

  .logo-container img.img-fluid {
    max-width: 100px;
  }

  /* Títulos */
  .page-title h1,
  #Sucursales h1 {
    font-size: 1.4rem;
    text-align: center;
  }

  /* Sucursal Section Adjustments */
  .sucursal-info {
    padding: 10px;
    font-size: 0.95rem;
  }

  .map-container {
    margin-top: 15px;
  }

  /* Ajuste final entre bloques */
  #Contacto {
    margin-bottom: 20px;
  }

  #Sucursales {
    margin-top: 10px;
    margin-bottom: 30px;
  }
}

/*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);
}

/* Estilos generales del contenedor */
#Preguntas {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

/* Caja de las FAQs */
.faq-container {
  max-width: 700px;
  width: 100%;
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Título principal */
.faq-container h2 {
  text-align: center;
  color: #1a3e8c; /* Azul corporativo */
  font-size: 2rem;
  margin-bottom: 25px;
}

/* Preguntas */
.faq-item {
  background: #f8faff;
  border: 2px solid #1a3e8c;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

/* Cabecera de cada pregunta */
.faq-item summary {
  padding: 18px 20px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  color: #1a3e8c;
  list-style: none;
  position: relative;
}

/* Icono flecha personalizado */
.faq-item summary::after {
  content: "➕";
  position: absolute;
  right: 20px;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}
.faq-item[open] summary::after {
  content: "➖";
}

/* Efecto hover */
.faq-item summary:hover {
  background: #e6eeff;
}

/* Texto de respuesta */
.faq-item p {
  padding: 15px 20px;
  margin: 0;
  background: #fff;
  font-size: 1rem;
  line-height: 1.5;
  border-top: 1px solid #ccc;
}

.lista-envio {
  padding-left: 40px; /* Sangría interna */
  margin-left: 20px; /* Sangría externa */
}

.lista-envio li {
  list-style-type: square; /* Cambia el tipo de viñeta: circle, square, decimal */
  color: #333; /* Color del texto */
}
