
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}
main.scroll-sections {
  background-color: #ffffff;
  padding: 2rem;
}
.intro-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: center;
  background-color: #eef6f7;
  padding: 2rem;
  border-radius: 16px;
}
.intro-title {
  flex: 1 1 40%;
}
.intro-title h2 {
  
  color: #a267b5;
  border-left: 4px solid #49b6b0;
  padding-left: 1rem;
}
.intro-text {
  flex: 1 1 50%;
  
}
.coma-icono {
  display: flex;
  justify-content: center;
  padding: 3rem 0;
}
.coma-icono img {
  max-height: 240px;
  width: auto;
}
.mision-vision-bloque {
  background-color: #0e2a2b;
  color: white;
  padding: 3rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.bloque {
  flex: 1 1 280px;
}
.bloque h3 {
  
  border-left: 3px solid #49b6b0;
  padding-left: 1rem;
  color: #ffffff;
}
.bloque p {
  
  color: #dcdcdc;
  margin-top: 0.5rem;
}
footer {
  text-align: center;
  padding: 2rem;
}

header a {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #49b6b0;
  color: white;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  z-index: 1000;
}
.intro-conocenos {
  background-image: url('fondo-revelar.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.intro-grid {
  background-color: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  padding: 2rem;
}
.intro-title h2 {
  
  color: #a267b5;
  border-left: 4px solid #49b6b0;
  padding-left: 1rem;
  margin-bottom: 1rem;
  word-break: break-word;
}
.mision-vision-bloque {
  background-color: #49b6b0;
  color: white;
}
.bloque h3 {
  color: white;
}
.bloque p {
  color: #f0f0f0;
}

.intro-title h2 {
  
  line-height: 1.4;
  max-width: 100%;
  word-wrap: break-word;
}
.intro-grid {
  padding: 3rem;
}
.intro-conocenos {
  background-size: contain;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}


.mision-vision-bloque .bloque p {
  font-size: 125%;
}


/* Estilo para botón volver al inicio */
.volver-inicio {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background-color: #4db6ac; /* verde Enpausa */
  color: white;
  padding: 12px 18px;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}
.volver-inicio:hover {
  background-color: #399e96;
}

/* Fondo para bloque de historia */
.historia-bloque {
  background-color: #4db6ac;
  padding: 40px 20px;
  color: white;
}

/* Botón flotante volver al inicio */
.volver-inicio {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background-color: #4db6ac;
  color: white;
  padding: 12px 18px;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}
.volver-inicio:hover {
  background-color: #399e96;
}


/* === MENÚ MÓVIL EN FOOTER (agrupa y despliega submenús al pulsar) === */
@media (max-width: 768px) {
  footer .footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .ep-mobile-menu-btn {
    display: inline-block;
    padding: 10px 14px;
    border: 1px solid #2c7a52;
    background: #2c7a52;
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
  }

  /* Ocultar menú por defecto en móvil */
  footer .footer-left .footer-menu {
    display: none;
    width: 100%;
    list-style: none;
    padding-left: 0;
  }
  /* Mostrar cuando está abierto */
  footer.ep-open .footer-left .footer-menu {
    display: block;
  }

  /* Estilo vertical */
  footer .footer-left .footer-menu > li {
    margin: 6px 0;
  }
  footer .footer-left .footer-menu a {
    display: block;
    padding: 8px 0;
    text-decoration: none;
  }

  /* Submenús colapsados por defecto */
  footer .footer-left .submenu {
    display: none;
    padding-left: 14px;
  }
  footer .footer-left li.ep-submenu-open > .submenu {
    display: block;
  }

  /* Indicador visual simple para elementos con submenú */
  footer .footer-left li.has-submenu > a::after {
    content: " ▾";
    font-size: 0.85em;
  }
  footer .footer-left li.ep-submenu-open > a::after {
    content: " ▴";
  }
}



/* === MENÚ MÓVIL EN PAUSA (botón "MENÚ") === */
@media (max-width: 768px) {
  header {
    align-items: flex-start;
  }
  .hamburger {
    display: inline-block;
    background-color: #5BB8B4;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    margin-right: auto;
  }
  nav .menu {
    display: none;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
  }
  nav.open .menu {
    display: flex;
  }
  nav .menu > li > a {
    display: block;
    padding: 10px 6px;
    font-size: 16px;
  }
  nav .menu .submenu {
    display: none;
    position: static;
    box-shadow: none;
    background: transparent;
    margin-left: 14px;
    padding-left: 8px;
    border-left: 2px solid #E6F5F4;
  }
  nav .menu li.ep-submenu-open > .submenu {
    display: block;
  }
  nav .menu li.has-submenu > a::after {
    content: " ▾";
    font-size: 0.9em;
  }
  nav .menu li.ep-submenu-open > a::after {
    content: " ▴";
  }
  header .cta .whatsapp-button + .whatsapp-button {
    display: none;
  }
}
