/* ═══════════════════════════════════════════════════════════
   Artist Timeline — Navegación cinematográfica
   ═══════════════════════════════════════════════════════════ */

/* ── Base del nav ──────────────────────────────────────── */
.atf-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9995;
  height: 64px;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transition:
    background     0.45s ease,
    backdrop-filter 0.45s ease,
    border-color   0.45s ease,
    transform      0.4s  cubic-bezier(0.25,0.46,0.45,0.94);
  border-bottom: 1px solid transparent;

  /* Para que flote sobre el fullscreen */
  pointer-events: auto;
}

/* Sticky: se fija en top:0 cuando el fullscreen está activo */
.atf-nav.atf-nav-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

/* Fondo blur al hacer scroll */
.atf-nav.atf-scrolled {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-color: rgba(255, 255, 255, 0.07);
}
.atf-theme-light.atf-scrolled {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(0, 0, 0, 0.07);
}

/* Auto-hide: se oculta al scrollear hacia abajo */
.atf-nav.atf-nav-hidden {
  transform: translateY(-100%);
}

/* ── Logo ──────────────────────────────────────────────── */
.atf-nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.95;
  transition: opacity 0.25s;
  flex-shrink: 0;
}
.atf-nav-logo:hover { opacity: 0.65; }
.atf-nav-logo-img {
  max-height: 32px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1); /* blanco por defecto */
  transition: filter 0.3s;
}
.atf-theme-light .atf-nav-logo { color: #0a0a0a; }
.atf-theme-light .atf-nav-logo-img { filter: none; }

/* ── Links desktop ─────────────────────────────────────── */
.atf-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.2rem);
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}
.atf-nav-links a {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.25s;
  white-space: nowrap;
}
.atf-nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.8);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.atf-nav-links a:hover,
.atf-nav-links a.atf-nav-link-active {
  color: rgba(255, 255, 255, 0.95);
}
.atf-nav-links a:hover::after,
.atf-nav-links a.atf-nav-link-active::after {
  transform: scaleX(1);
}
.atf-theme-light .atf-nav-links a {
  color: rgba(0, 0, 0, 0.45);
}
.atf-theme-light .atf-nav-links a:hover,
.atf-theme-light .atf-nav-links a.atf-nav-link-active {
  color: rgba(0, 0, 0, 0.9);
}
.atf-theme-light .atf-nav-links a::after {
  background: rgba(0, 0, 0, 0.75);
}

/* ── Lado derecho ──────────────────────────────────────── */
.atf-nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* ── Botón CTA ─────────────────────────────────────────── */
.atf-nav-cta {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  padding: 8px 20px;
  border-radius: 2px;
  text-decoration: none;
  background: transparent;
  white-space: nowrap;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.atf-nav-cta:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
}
.atf-theme-light .atf-nav-cta {
  color: #0a0a0a;
  border-color: rgba(0, 0, 0, 0.3);
}
.atf-theme-light .atf-nav-cta:hover {
  background: rgba(0, 0, 0, 0.07);
  border-color: rgba(0, 0, 0, 0.7);
}

/* ── Hamburger ─────────────────────────────────────────── */
.atf-nav-hamburger {
  display: none;           /* oculto en desktop */
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  outline: none;
}
.atf-nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.atf-theme-light .atf-nav-hamburger span {
  background: rgba(0, 0, 0, 0.75);
}
/* Estado abierto */
.atf-nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.atf-nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.atf-nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Drawer mobile ─────────────────────────────────────── */
.atf-nav-drawer {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 9994;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1.5rem 1.75rem 2rem;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity   0.3s ease;
}
.atf-nav-drawer.atf-drawer-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.atf-theme-light .atf-nav-drawer {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(0, 0, 0, 0.07);
}

.atf-nav-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.atf-nav-drawer ul li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.atf-theme-light .atf-nav-drawer ul li {
  border-color: rgba(0, 0, 0, 0.06);
}
.atf-nav-drawer ul a {
  display: block;
  padding: 1rem 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}
.atf-nav-drawer ul a:hover {
  color: #fff;
  padding-left: 8px;
}
.atf-theme-light .atf-nav-drawer ul a {
  color: rgba(0, 0, 0, 0.6);
}
.atf-theme-light .atf-nav-drawer ul a:hover {
  color: #000;
}
.atf-drawer-cta-row {
  border-bottom: none !important;
  padding-top: 0.5rem;
}
.atf-drawer-cta {
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  color: rgba(255, 255, 255, 0.9) !important;
}
.atf-theme-light .atf-drawer-cta {
  color: rgba(0, 0, 0, 0.85) !important;
}

/* ── Responsive: hamburger visible en mobile ───────────── */
@media (max-width: 768px) {
  .atf-nav-links {
    display: none;
  }
  .atf-nav-hamburger {
    display: flex;
  }
  .atf-nav-cta {
    display: none; /* se muestra solo en el drawer */
  }
}

/* ── Ajuste fullscreen: el nav flota sobre el slide ─────── */
.atf-fullscreen .atf-nav,
body > .atf-nav {
  position: fixed;
}

/* ── Reducir movimiento ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .atf-nav,
  .atf-nav-links a::after,
  .atf-nav-drawer,
  .atf-nav-hamburger span { transition: none !important; }
}
