/* ─────────────────────────────────────────
   NAV.CSS — Navegación + Mobile overlay
   MNSM · Playground Agency
───────────────────────────────────────── */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px var(--section-pad-h);
  background: transparent;
  transition: background 0.4s ease, padding 0.4s ease;
}

/* Estado al hacer scroll */
nav.scrolled {
  background: var(--black);
  padding-top: 18px;
  padding-bottom: 18px;
}

/* ─── LOGO ─── */
.nav-logo {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
}
.nav-logo span { color: var(--coral); }

/* ─── LINKS DESKTOP ─── */
.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--coral); }

/* ─── HAMBURGER — fixed independiente, fuera del nav ─── */
.nav-menu-btn {
  display: none;
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 300; /* siempre encima de todo */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 0;
  background: none;
  border: none;
}

/* Las tres barras — se animan a X */
.nav-menu-btn span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--white);
  position: absolute;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-menu-btn span:nth-child(1) { transform: translateY(-6px); }
.nav-menu-btn span:nth-child(2) { transform: translateY(0); }
.nav-menu-btn span:nth-child(3) { transform: translateY(6px); }

/* Estado abierto: barras → X */
.nav-menu-btn.is-open span:nth-child(1) { transform: translateY(0) rotate(45deg); }
.nav-menu-btn.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-menu-btn.is-open span:nth-child(3) { transform: translateY(0) rotate(-45deg); }

/* ─── MOBILE OVERLAY ─── */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;

  /* Animación de entrada/salida */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* Línea decorativa coral arriba */
.nav-overlay::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--coral);
}

.nav-overlay a {
  font-family: var(--font-display);
  font-size: clamp(40px, 10vw, 56px);
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.3;
  transition: color 0.2s, transform 0.2s;
  position: relative;
}
.nav-overlay a::after {
  content: '↗';
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--coral);
  position: absolute;
  right: -24px;
  top: 8px;
  opacity: 0;
  transition: opacity 0.2s;
}
.nav-overlay a:hover { color: var(--coral); }
.nav-overlay a:hover::after { opacity: 1; }

/* Etiqueta inferior */
.nav-overlay-footer {
  position: absolute;
  bottom: 32px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}

/* Ocultar el botón nav-close del HTML (ya no lo necesitamos, el hamburger hace de toggle) */
.nav-close { display: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav-links    { display: none; }
  .nav-menu-btn { display: flex; }
}
