body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #ffffff;
  color: #000;
}

.contacto {
  padding: 0;
}

.contacto-header {
  background-color: #4db6ac;
  text-align: center;
  padding: 40px 20px;
  color: white;
}

.contacto-header h1 {
  font-size: 2em;
  margin: 0;
  font-weight: bold;
}

.contacto-header h2 {
  font-size: 1.5em;
  margin-top: 20px;
  color: #2e7d74;
  font-weight: 700;
}

.contacto-header p {
  font-size: 1em;
  margin-top: 10px;
  color: #333;
}

.contacto-contenido {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 40px 20px;
}

.contacto-info {
  max-width: 300px;
  border: 1px solid #ccc;
  padding: 20px;
  font-size: 0.95em;
}

.contacto-info p {
  margin-bottom: 20px;
}

.contacto-info a {
  color: purple;
  text-decoration: underline;
}

.contacto-formulario {
  background-color: #f1f9f8;
  padding: 20px;
  max-width: 400px;
  width: 100%;
  border: 1px solid #ccc;
}

.contacto-formulario label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
  font-size: 0.9em;
}

.contacto-formulario input,
.contacto-formulario textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  font-size: 1em;
  border-radius: 2px;
  box-sizing: border-box;
}

.contacto-formulario button {
  background-color: #4db6ac;
  color: white;
  padding: 10px 20px;
  border: none;
  margin-top: 20px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.3s ease;
}

.contacto-formulario button:hover {
  background-color: #3a9f96;
}


/* === 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;
  }
}
