/* ═══════════════════════════════════════
   NAV — Shiranai Hito (compartido)
   articulo · escritos · contenidos · serie-contenido
   ══════════════════════════════════════*/

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 3rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s ease, background 0.4s ease,
              transform 0.7s ease, opacity 0.7s ease;
}
nav.scrolled {
  border-color: var(--border);
  background: var(--nav-bg, rgba(14,14,12,0.85));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
nav.nav-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.nav-logo {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 300;
  letter-spacing: 0.08em; color: var(--text);
}
.nav-logo span { font-style: italic; color: var(--accent); }

.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted); transition: color 0.25s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 4px; background: none; border: none;
  min-width: 44px; min-height: 44px; align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 24px; height: 1px;
  background: var(--text-muted); transition: all 0.3s;
}

@media (max-width: 768px) {
  nav { padding: 1.25rem 1.5rem; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--nav-bg, rgba(14,14,12,0.97));
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    padding: 2rem 1.5rem; gap: 1.5rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
}
