/* ── SITE HEADER ─────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 2px solid var(--ink-rule);
}

.header-inner {
  width: 100%;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 60px;
}

/* ── THEME TOGGLE ────────────────────────────────────── */
.theme-toggle {
  background: none;
  border: 1px solid var(--rule);
  border-radius: 6px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}
.theme-toggle:hover { border-color: var(--ink); background: var(--surface); }

/* Logo — el JS reemplaza el texto con la imagen */
.site-logo {
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 36px;
  width: auto;
  display: block;
}

/* ── NAV ─────────────────────────────────────────────── */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}

.site-nav a,
.site-nav .nav-dropdown > span {
  display: block;
  padding: 20px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s;
  line-height: 1;
}

.site-nav a:hover,
.site-nav .nav-dropdown > span:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); }

/* Auth links al extremo derecho */
.nav-auth {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-auth .nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: var(--muted);
  transition: color 0.15s;
}
.nav-auth .nav-user:hover { color: var(--ink); }

.nav-user img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--rule);
}

/* ── BOTONES DE AUTH (alta especificidad para no quedar aplastados por .site-nav a:hover) */
.nav-auth .btn {
  padding: 4px 12px;
  font-size: 0.72rem;
  border: 2px solid var(--ink);
  color: var(--ink) !important;
  background: transparent;
  border-radius: 6px;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
  display: inline-block;
}
.nav-auth .btn:hover {
  background: var(--ink) !important;
  color: var(--bg) !important;
  border-color: var(--ink) !important;
}

/* Botón Admin — morado */
.nav-auth .btn-admin {
  border-color: var(--bday) !important;
  color: var(--bday) !important;
}
.nav-auth .btn-admin:hover {
  background: var(--bday) !important;
  border-color: var(--bday) !important;
  color: #fff !important;
}

/* Botón Salir — rojo */
.nav-auth .btn-logout {
  border-color: var(--ro) !important;
  color: var(--ro) !important;
}
.nav-auth .btn-logout:hover {
  background: var(--ro) !important;
  border-color: var(--ro) !important;
  color: #fff !important;
}

/* ── DROPDOWN ────────────────────────────────────────── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--ink-rule);
  min-width: 220px;
  padding: 6px 0;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }

.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
  color: var(--ink) !important;
  border-bottom: none !important;
}
.nav-dropdown-menu a:hover { background: var(--surface); }
.nav-dropdown-menu a.ro  { border-left: 3px solid var(--ro) !important; }
.nav-dropdown-menu a.wow { border-left: 3px solid var(--wow) !important; }

/* ── HERO (solo en inicio) ───────────────────────────── */
.site-hero {
  border-bottom: 1px solid var(--rule);
  padding: 48px 0 40px;
  background: var(--bg);
}

.site-hero .inner { text-align: center; }

.hero-title {
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-gif {
  height: clamp(60px, 10vw, 100px);
  width: auto;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.hero-tagline {
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ── SECCIÓN INTRO ───────────────────────────────────── */
.intro-section {
  padding: 52px 0;
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}

.intro-section .inner {
  text-align: center;
}

.intro-lead {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink);
  margin-bottom: 20px;
  text-align: justify;
}

.intro-motto {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── HAMBURGER (móvil) ───────────────────────────────── */
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}

/* ── FOOTER ──────────────────────────────────────────── */
.site-footer {
  border-top: 2px solid var(--ink-rule);
  padding: 24px 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--ink); }
