/* ── NAV ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  padding: 16px 0;
  min-height: 70px;
  background: rgba(20, 63, 78, 0.92);
  transition: background .3s ease;
}

.nav.at-top {
  background: transparent;
}


.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 38px;
  filter: brightness(0) invert(1);
  transition: opacity .3s ease;
  opacity: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav.at-top .nav-links li:first-child {
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.nav:not(.at-top) .nav-links li:first-child {
  opacity: 1;
  pointer-events: auto;
  transition: opacity .3s ease;
}

.nav-links a {
  font-size: .88rem;
  font-weight: 500;
  color: #ffffff;
  transition: color .2s;
  position: relative;
  letter-spacing: 0.3px;
}

.nav-links a:hover {
  color: var(--pink);
}

.nav-links a.nav-active {
  color: var(--pink);
  border-bottom: 2px solid var(--pink);
  padding-bottom: 4px;
}

/* Cuando el navbar NO está en el top (scrolled) */
.nav:not(.at-top) .nav-links a {
  color: #ffffff;
  font-weight: 500;
}

.nav:not(.at-top) .nav-links a:hover {
  color: var(--pink);
}

.nav:not(.at-top) .nav-links a.nav-active {
  color: var(--pink);
  border-bottom-color: var(--pink);
}

.nav-cta {
  font-size: .88rem !important;
  background: var(--pink) !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

/* Cuando el navbar está en el top (transparente) */
.nav.at-top .nav-cta {
  background: var(--pink) !important;
}

/* Cuando el navbar está scrolled (blanco) */
.nav:not(.at-top) .nav-cta {
  background: var(--pink) !important;
  color: #fff !important;
}

.nav:not(.at-top) .nav-cta:hover {
  background: var(--pink-light) !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: transparent;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-hamburger span {
  width: 22px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: .3s;
  display: block;
}

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

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

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  button,
  a {
    min-height: 34px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
