/* Encabezado */
.header {
  width: 100%;
  padding: 20px 20px;
  position: absolute;
  z-index: 3;
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
}

/* Logo */
.logo{
  max-width: 60px;
  height: auto;
}

/* Menú desktop */
.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  color:#000;

}

.nav-links a {
  font-size: 1.0rem;
  font-weight: 500;
  transition: all 0.3s ease;
  color:#52479E;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links a:hover {
  transform: scale(1.1);
  opacity: 0.7;
}

/* Hamburguesa */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;

}

.hamburger span {
  width: 28px;
  height: 3px;
  background-color: #000;
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* ANIMACIÓN MENÚ hamburger */

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.nav-links li {
  opacity: 100%;
  /*transform: translateY(20px);*/
  transition: all 0.4s ease;
}

.nav-links.active li {
  opacity: 1;
  transform: translateY(0);
}

/* Delay progresivo */
.nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
.nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
.nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
.nav-links.active li:nth-child(4) { transition-delay: 0.4s; }

.no-scroll {
  overflow: hidden;
}

/* 3. Ajustes para teléfonos muy pequeños (Máximo 480px) */
@media (max-width: 480px) {

    .hero-ctas {
        flex-direction: column; /* Botones uno sobre otro */
    }

    .stat-item {
        width: 100%; /* Un dato por fila */
    }

    .btn {
        width: 100%;
    }
    .logo{
      max-width: 40px;
      height: auto;
    }
}

@media (max-width: 768px) {

  .nav {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;

    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);

    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;

    transform: translateY(-100%);
    opacity: 0;

    transition: all 0.5s ease;
  }

  /* Estado activo */
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }

  .hamburger {
    display: flex;
  }
}
