/* Reset general */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ffffff;
  color: #333;

}

/* Preloader - pantalla completa */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hide {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* ✅ Centrado horizontal */
  text-align: center;
}

/* Escondemos el botón hamburguesa por defecto */
.hamburger {
  display: none;
  font-size: 30px;
  background: none;
  border: none;
  cursor: pointer;
}

.logo {
  width: 100px;
  margin-bottom: 20px;
}

.spinner {
  border: 6px solid #ccc;
  border-top: 6px solid #1c9b5b;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Header */
header {
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  height: 80px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;

}

.logo {
  width: 300px;
  height: auto;
  margin-top: 50px;
}

/* Nav principal */
nav ul {
  display: flex;
  list-style: none;
  gap: 37px;
  position: relative;
}

nav ul li {
  position: relative;
  /* Necesario para posicionar bien el dropdown */
}

nav ul li a {
  text-decoration: none;
  color: #000000;
  font-weight: 600;
  transition: color 0.3s ease;
  padding: 10px;
  display: block;

}

nav ul li a:hover {
  color: #2caf7d;
}

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  min-width: 200px;
  z-index: 1000;
  border-radius: 4px;
  overflow: hidden;
}

.dropdown-menu li {
  display: block;
}

.dropdown-menu li a {
  color: #000000;
  padding: 10px 15px;
  display: block;
}

.dropdown-menu li a:hover {
  background-color: #ffffff;
}

/* Mostrar menú al hacer hover en la opción padre */
li.dropdown:hover .dropdown-menu {
  display: block;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  /* Usa toda la altura visible */
  background-image: url('../img/banner.gif');
  background-size: cover;
  /* Cubre completamente */
  background-position: center center;
  /* Centrado vertical y horizontal */
  background-repeat: no-repeat;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 40px;
  /* Espacio para el header */
  box-sizing: border-box;
  color: white;
  text-align: center;
}

.hero-button {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 24px;
  background-color: #ffffffa9;
  color: rgb(0, 0, 0);
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.hero-button:hover {
  background-color: #005f63;
}




.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  pointer-events: none;
}

.hero-content {
  max-width: 1000px;
  color: #fff;
  pointer-events: auto;
}
.hero-content h1 {
  font-size: 2.8em;
  margin-bottom: 5px;
  margin-top: -50px;
}

.hero-content h2 {
  font-size: 2.8em;
  margin-bottom: 5px;
  margin-top: -50px;
}

.hero-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.hero-buttons {
  margin-bottom: 40px;
}

.btn {
  background-color: #ffffff;
  color: #386f63;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn:hover {
  background-color: #386f63;
  color: white;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin: 60px auto;
  max-width: 1200px;
  padding: 0 20px;
}

.card {
  flex: 1 1 180px;
  max-width: 200px;
  height: 160px;
  background-color: #386f6376;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-number {
  font-size: 1.6em;
  font-weight: 700;
  color: #386f63;
  margin-bottom: 10px;
}

.card-label {
  font-size: 1em;
  color: #ffffff;
}

.linea-tiempo {
  padding: 60px 20px;
  background-color: #f2f2f2;
  text-align: center;
}

.linea-tiempo h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  color: #222;
  margin-bottom: 30px;
}

.carrusel-historia {
  text-align: center;
  padding: 40px 20px;
  font-family: 'Montserrat', sans-serif;
  background-color: #f8f8f8;
}

.carrusel-historia h2 {
  font-size: 2em;
  margin-bottom: 30px;
  color: #386f63;
}

.carousel-container {
  position: relative;
  max-width: 900px;
  margin: auto;
  overflow: hidden;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.slide {
  display: none;
  padding: 20px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.slide img {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.slide p {
  font-size: 1.1em;
  color: #333;
  padding: 0 10px;
}

.slide.active {
  display: flex;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 12px;
  color: #386f63;
  font-size: 24px;
  background: rgba(255, 255, 255, 0.7);
  border: none;
  border-radius: 50%;
  z-index: 2;
  transition: 0.3s;
}

.prev:hover,
.next:hover {
  background: #386f63;
  color: white;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

#whatsapp-bubble {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  cursor: grab;
  z-index: 10000;
  user-select: none;
}

#whatsapp-bubble img {
  width: 30px;
  height: 30px;
  filter: invert(1);
}

#scrollToTop {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background-color: #2caf7d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  transition: background-color 0.3s ease;
}

#scrollToTop:hover {
  background-color: #1e7c59;
}

#scrollToTop svg {
  width: 24px;
  height: 24px;
  stroke: white;
}


.main-footer {
  background-color: #386f63;
  color: #fff;
  padding: 40px 20px 20px;
  font-family: sans-serif;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  gap: 60px;
}

.footer-section {
  flex: 1 1 300px;
  margin: 20px;
}

.footer-section h3 {
  color: #6dd3bd;
  margin-bottom: 2px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: #fff;
  text-decoration: none;
}

.footer-section a:hover {
  text-decoration: underline;
}

.social-icons a {
  display: inline-block;
  margin-right: 10px;
}

.social-icons img {
  width: 24px;
  height: 24px;
  filter: invert(1);
  transition: transform 0.2s;
}

.social-icons img:hover {
  transform: scale(1.2);
}


.footer-bottom {
  text-align: center;
  padding-top: 0px;
  border-top: 1px solid #444;
  font-size: 14px;
  color: #ccc;
}





/* Smartphones (≤ 768px) */
@media (max-width: 768px) {

  .hamburger {
    display: block;
    font-size: 30px;
    background: none;
    border: none;
    color: #000;
    cursor: pointer;
    margin-left: auto;
  }

  .hero {
    min-height: 100svh;
    padding-top: 100px;
    position: relative;
    overflow: visible;
  }



  .hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    max-width: 90%;
    z-index: 10;
  }





  .nav-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 20px 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 15px;
  }

  .nav-menu.show {
    display: flex;
  }

  /* Dropdown en móviles */
  .dropdown-menu {
    position: static;
    display: none;
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding-left: 15px;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }

  li.dropdown>a::after {
    content: " ▼";
    font-size: 12px;
  }

  .cards {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
  }

  .info h3 {
    font-size: 1.5em;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }

  footer {
     font-size: 0.9em;
    padding: 15px;
    gap: 10px;

  }
}