/* =========================================================
   HEADER
   ========================================================= */

.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header__inner{
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
}

/* Logo */
.logo{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.logo__img{
  display: block;
  height: 40px;
  width: auto;
}

.logo__img--icon{
  display: none;
}

/* Nav */
.nav__list{
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list a{
  color: var(--text-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .2s ease;
}

.nav__list a:hover{
  color: var(--text);
}

/* CTA button */
.header__cta{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--gradient-btn);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--glow-purple);
  transition: transform .2s ease, box-shadow .2s ease;
}

.header__cta:hover{
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(124,58,237,.6);
}

.header__cta i{
  font-size: 12px;
}

/* Mobile nav toggle */
.nav-toggle{
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}

/* RESPONSIVE: MÓVILES / TABLET (≤ 959px) */
@media (max-width:959px){

  .header__inner{
    padding: 12px 20px;
  }

  .logo__img--full{
    display: none;
  }

  .logo__img--icon{
    display: block;
    height: 36px;
  }

  .nav-toggle{
    display: flex;
  }

  .nav{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    max-height: 0;
    transition: max-height .3s ease;
  }

  .nav.is-open{
    max-height: 400px;
  }

  .nav__list{
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 20px 16px;
  }

  .nav__list li{
    width: 100%;
  }

  .nav__list a{
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .header__cta{
    display: none;
  }
}

/* RESPONSIVE: ESCRITORIO (≥ 960px) */
@media (min-width:960px){

  .nav-toggle{
    display: none;
  }
}
