/* ══════════════════════════════════════════════
   EXILIUM — HEADER
   Sticky header, brand, navegación, acciones.
   ══════════════════════════════════════════════ */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg,
    rgba(5,5,10,0.97) 0%,
    rgba(10,10,20,0.93) 100%) !important;
  border-bottom: 1px solid rgba(200,146,42,0.35) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 1px 0 rgba(232,184,75,0.08),
    0 4px 40px rgba(0,0,0,0.6),
    0 0 80px rgba(200,146,42,0.04) !important;
}
header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.35;
  animation: headerLineGlow 4s ease-in-out infinite alternate;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  gap: 16px;
}

/* ── Brand ── */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(200,40,40,0.55)) drop-shadow(0 0 22px rgba(180,20,20,0.3));
  transition: filter 0.4s var(--ease-premium), transform 0.4s var(--ease-premium);
  animation: logoBreathe 6s ease-in-out infinite alternate;
}
.brand-logo:hover {
  filter: drop-shadow(0 0 16px rgba(220,50,50,0.75)) drop-shadow(0 0 32px rgba(200,30,30,0.45));
  transform: scale(1.06) rotate(-2deg);
}
.brand-text h1 {
  font-family: 'Cinzel Decorative', serif;
  font-size: 20px !important;
  font-weight: 900;
  letter-spacing: 7px !important;
  background: linear-gradient(135deg, var(--gold-dim) 0%, var(--gold) 25%, var(--gold-bright) 50%, var(--gold-pale) 65%, var(--gold) 80%, var(--gold-dim) 100%);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 6s linear infinite;
  text-shadow: none;
  position: relative;
  filter: drop-shadow(0 0 18px rgba(232,184,75,0.18)) !important;
}
.brand-text p {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 1px;
}

/* ── Navigation ── */
.header-nav {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav-link {
  font-family: 'Cinzel', serif;
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: 2.5px !important;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: 7px 18px !important;
  border: 1px solid transparent;
  border-radius: 1px !important;
  transition: all 0.35s var(--ease-premium);
  position: relative;
  overflow: hidden;
}
.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(200,146,42,0.08), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease-premium);
}
.nav-link:hover::before { transform: translateX(100%); }
.nav-link:hover {
  color: var(--gold-pale);
  border-color: var(--gold-border);
}
.nav-link.active {
  color: var(--gold-bright);
  background: linear-gradient(135deg,
    rgba(200,146,42,0.1) 0%,
    rgba(232,184,75,0.06) 100%) !important;
  border-color: rgba(200,146,42,0.5) !important;
  box-shadow: 0 0 20px rgba(200,146,42,0.1), inset 0 0 12px rgba(200,146,42,0.05) !important;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: var(--gold-bright);
  box-shadow: 0 0 6px rgba(232,184,75,0.4);
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
