/* ==========================================================================
   L2 Faction — Angels vs Demons · web completa
   Se carga después de style.css (base compartida con la intro) y sólo en sitio-completo.html.
   Paleta única: fondos azul-negro, dorado selectivo y acentos de facción (Ángeles acero / Demonios rojo).
   ========================================================================== */

:root {
  /* Paleta */
  --bg: #0b0c0f;
  --bg-2: #121419;
  --panel: #181a20;
  --panel-2: #1d2027;
  --text: #e9e4da;
  --text-2: #b3aea6;
  --text-read: #c6c1b8;   /* descripciones sobre paneles: más contraste que el secundario */
  --gold-main: #d4b47b;
  --gold-soft: #e6d2a8;
  --gold-deep: #9c8152;
  --angel: #628cb6;
  --demon: #b64d4b;
  --line: rgba(212, 180, 123, .18);
  --line-strong: rgba(212, 180, 123, .42);
  --line-soft: rgba(233, 228, 218, .09);

  /* Los componentes heredados de style.css usan estos nombres: se remapean a la paleta nueva */
  --night: var(--bg);
  --night-2: var(--bg-2);
  --night-3: var(--panel);
  --night-text: var(--text);
  --night-muted: var(--text-2);
  --night-line: var(--line);
  --night-line-strong: var(--line-strong);
  --gold: var(--gold-main);
  --gold-light: var(--gold-main);
  --gold-hi: var(--gold-soft);
  --gold-dark: var(--gold-deep);
  --gold-metal: linear-gradient(180deg, #e8d3a3 0%, #d4b47b 48%, #b39258 100%);

  /* Tipografía: Cinzel para títulos, Inter para lectura e interfaz */
  --fs-xs: .75rem;
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-h3: clamp(1.15rem, 1.6vw, 1.35rem);
  --fs-h2: clamp(1.85rem, 3.4vw, 2.6rem);

  /* Espaciado y forma */
  --space-section: clamp(72px, 9vw, 112px);
  --space-head: clamp(36px, 4.5vw, 56px);
  --radius: 4px;
  --shadow: 0 24px 48px -28px rgba(0, 0, 0, .9);
  --faction-line: linear-gradient(90deg, transparent, rgba(98, 140, 182, .55) 18%, rgba(212, 180, 123, .55) 50%, rgba(182, 77, 75, .55) 82%, transparent);
}

.site :focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }
body.site { font-family: var(--font-sans); font-size: var(--fs-base); line-height: 1.65; color: var(--text); background: var(--bg); }
.site ::selection { background: var(--gold-main); color: var(--bg); }

/* ---------- Botones: dorado sobrio, sin brillo animado ni fuego ---------- */
.site .btn { letter-spacing: .12em; font-size: .8rem; transition: transform .2s ease, filter .2s ease, box-shadow .2s ease; }
.site .btn::after { inset: 2px; border-color: rgba(255, 255, 255, .28); box-shadow: none; }
.site .btn--gold::before, .site .btn--fire::before { display: none; }
.site .btn--gold, .site .btn--fire {
  color: #1c160c; background: var(--gold-metal); border: 1px solid #8a7046; text-shadow: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 22px -14px rgba(0, 0, 0, .9);
  animation: none;
}
.site .btn--gold:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 14px 26px -14px rgba(0, 0, 0, .9); }
.site .btn--gold:active { transform: translateY(0); filter: brightness(.95); }
.site .btn--xl { padding: 1.1rem 2.6rem; font-size: .9rem; min-width: 240px; }

/* ---------- Preloader ---------- */
.site .preloader { background: var(--bg); }
.site .preloader__logo { animation: none; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h);
  background: linear-gradient(180deg, rgba(11, 12, 15, .8), rgba(11, 12, 15, 0));
  transition: background .3s ease, box-shadow .3s ease, height .3s ease;
}
.header.is-scrolled {
  --header-h: 64px;
  background: rgba(11, 12, 15, .94);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -18px rgba(0, 0, 0, .9);
}
.header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
/* logo original de Angels vs Demons (se achica junto con la barra al hacer scroll) */
.brand__logo { width: auto; height: 64px; transition: height .3s ease; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .7)); }
.header.is-scrolled .brand__logo { height: 54px; }

.nav { display: flex; gap: 2px; margin: 0 auto; }
.nav__link {
  position: relative; padding: 10px 14px;
  font-family: var(--font-display); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(233, 228, 218, .72); transition: color .2s; white-space: nowrap;
}
.nav__link::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 1px;
  background: var(--gold-main); transform: scaleX(0); transition: transform .25s ease;
}
.nav__link:hover { color: var(--gold-soft); }
.nav__link.is-active { color: var(--gold-soft); }
.nav__link.is-active::after { transform: scaleX(1); }
.header__actions { display: flex; align-items: center; gap: 10px; flex: none; }

.dropdown { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px; padding: 8px 10px;
  font-family: var(--font-sans); font-size: .78rem; font-weight: 600; letter-spacing: .06em; color: var(--text-2);
  border: 1px solid transparent; border-radius: var(--radius); transition: border-color .2s, color .2s;
}
.lang-btn svg { width: 16px; height: 16px; }
.lang-btn:hover, .dropdown.is-open .lang-btn { border-color: var(--line); color: var(--gold-soft); }
.dropdown__menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px; padding: 6px;
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.dropdown.is-open .dropdown__menu { opacity: 1; visibility: visible; transform: none; }
.dropdown__item { display: block; width: 100%; text-align: left; padding: 8px 12px; border-radius: 3px; font-family: var(--font-sans); font-size: .875rem; color: var(--text); }
.dropdown__item:hover { background: rgba(212, 180, 123, .1); color: var(--gold-soft); }

.menu-toggle { display: none; width: 42px; height: 42px; margin-left: auto; flex-direction: column; justify-content: center; gap: 6px; padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: var(--gold-main); transition: transform .3s, opacity .3s; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: center; gap: 40px; padding: 90px 24px 40px;
  background: var(--bg);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-nav { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mobile-nav__link { padding: 10px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.mobile-nav__link.is-active { color: var(--gold-soft); }
.mobile-menu__footer { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.mobile-lang { display: flex; gap: 8px; }
.site .mobile-lang__btn { padding: 6px 12px; font-family: var(--font-sans); font-size: .82rem; font-weight: 600; color: var(--text-2); border: 1px solid var(--line); border-radius: 3px; }
.site .mobile-lang__btn.is-active { color: var(--gold-soft); border-color: var(--gold-main); background: rgba(212, 180, 123, .08); }

/* ==========================================================================
   Hero — logo protagonista, sin destellos ni brasas
   ========================================================================== */
.site .hero { padding: calc(var(--header-h) + 24px) 0 0; background: var(--bg); }
.site .hero__art { filter: saturate(1.08) contrast(1.06) brightness(.86); animation: none; }
.site .hero__art::after { background: rgba(11, 12, 15, .38); }
.site .hero__sky::after {
  background:
    radial-gradient(ellipse 60% 42% at 50% 46%, rgba(11, 12, 15, .5) 0%, rgba(11, 12, 15, .2) 60%, transparent 85%),
    radial-gradient(ellipse 80% 65% at 50% 42%, transparent 35%, rgba(11, 12, 15, .82) 100%),
    linear-gradient(180deg, rgba(11, 12, 15, .6) 0%, transparent 20%);
}
.site .hero__fade { height: 34%; background: linear-gradient(180deg, transparent, var(--bg) 92%); }

.site .hero__logo { max-width: min(640px, 84vw); max-height: min(40vh, 380px); }
.hero__subtitle {
  margin-top: 14px;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(.95rem, 1.5vw, 1.15rem); letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-soft); text-shadow: 0 2px 8px #000;
}
.hero__desc { max-width: 620px; margin-top: 14px; font-size: var(--fs-md); line-height: 1.7; color: var(--text); text-shadow: 0 2px 10px rgba(0, 0, 0, .9); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 30px; }

/* Cuenta regresiva: barra de interfaz con filetes arriba y abajo y divisores entre unidades */
.countdown { margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.countdown__label {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(.82rem, 1.2vw, .95rem); letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-soft); text-shadow: 0 2px 6px #000;
}
.countdown__units {
  position: relative; display: flex; align-items: stretch;
  padding: 10px 6px;
  background: linear-gradient(90deg, transparent, rgba(11, 12, 15, .62) 14%, rgba(11, 12, 15, .62) 86%, transparent);
}
.countdown__units::before, .countdown__units::after { content: ''; position: absolute; left: 0; right: 0; height: 1px; background: var(--faction-line); }
.countdown__units::before { top: 0; }
.countdown__units::after { bottom: 0; }
.countdown__unit { display: flex; flex-direction: column; align-items: center; min-width: clamp(76px, 9vw, 104px); padding: 2px 10px; }
.countdown__num { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--text); text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.countdown__name { margin-top: 4px; font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.countdown__sep { flex: none; align-self: center; width: 1px; height: 38px; background: var(--line-strong); }
.countdown__live { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 3vw, 1.8rem); letter-spacing: .06em; text-transform: uppercase; color: var(--gold-soft); }

/* Información rápida: barra compacta de 5 columnas alineadas */
.stats-panel { position: relative; z-index: 3; width: 100%; max-width: 1200px; margin-top: clamp(40px, 6vh, 64px); margin-bottom: clamp(28px, 4vh, 44px); }
.stats-panel__frame {
  /* la liga ("Iron → Challenger") es el único valor largo: su columna es un poco más ancha */
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.3fr);
  background: rgba(18, 20, 25, .82); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 20px 12px; text-align: left; }
.stat + .stat { border-left: 1px solid var(--line-soft); }
.stat__icon { flex: none; width: 24px; height: 24px; color: var(--gold-main); opacity: .9; }
.stat__text { display: flex; flex-direction: column; line-height: 1.2; }
.stat__label { font-family: var(--font-sans); font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.stat__value { margin-top: 5px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.15; color: var(--text); white-space: nowrap; }
.stat--featured .stat__value { color: var(--gold-soft); }

/* ==========================================================================
   Secciones: misma base oscura con variaciones sutiles de tono
   ========================================================================== */
.section { position: relative; isolation: isolate; padding: var(--space-section) 0; }
.section > .container { position: relative; z-index: 1; }
/* textura discreta de grano sobre los fondos lisos */
.section--grain::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: var(--grain) repeat 0 0 / 220px 220px; opacity: .05; mix-blend-mode: overlay;
}

.section__header { max-width: 760px; margin: 0 auto var(--space-head); text-align: center; }
.eyebrow { font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-main); }
.rule { display: block; width: 48px; height: 1px; margin: 14px auto 16px; background: var(--gold-main); opacity: .8; }
.section__title { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h2); line-height: 1.2; letter-spacing: .02em; color: var(--text); }
.section__title em { display: block; margin-top: 4px; font-family: var(--font-display); font-style: normal; font-weight: 600; font-size: .78em; color: var(--gold-soft); }
.section__subtitle { max-width: 660px; margin: 16px auto 0; font-size: var(--fs-md); color: var(--text-2); }

/* filete fino arriba de cada sección oscura: marca la transición sin cortar el tono */
.section--downloads::after, .section--contact::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: 1;
  background: linear-gradient(90deg, transparent, var(--line) 25%, var(--line) 75%, transparent);
}

/* separador de facción entre secciones */
.band { height: 1px; background: var(--faction-line); }

/* ---------- La guerra de facciones ---------- */
.world { position: relative; isolation: isolate; overflow: hidden; padding: clamp(64px, 8vw, 96px) 0 var(--space-section); background: var(--bg-2); }
.world__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 50% 45% at 0% 10%, rgba(98, 140, 182, .1), transparent 70%),
    radial-gradient(ellipse 50% 45% at 100% 90%, rgba(182, 77, 75, .1), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, rgba(18, 20, 25, .9) 16%, rgba(18, 20, 25, .92) 80%, var(--bg-2) 100%),
    url('../img/world-bg.webp') no-repeat center 26% / cover;
}

.world-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.world-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.world-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.world-card__media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(1) contrast(1.06) saturate(1.06); transition: transform .6s ease, filter .3s ease; }
/* oscurecimiento sólo en el borde inferior de la imagen, donde empieza el texto */
.world-card__media::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 32%; background: linear-gradient(180deg, transparent, var(--panel)); }
.world-card__body { flex: 1; padding: 4px 26px 28px; }
.world-card__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 1.7vw, 1.4rem); letter-spacing: .04em; color: var(--gold-soft); }
.world-card__desc { margin-top: 10px; font-size: 1rem; line-height: 1.62; color: var(--text-read); }
.world-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 30px 56px -28px #000; }
.world-card:hover .world-card__media img { filter: brightness(1.08) contrast(1.06) saturate(1.08); transform: scale(1.03); }


.section--info { background: var(--bg); }
.grimoire { overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.info-tabs { display: grid; grid-template-columns: 240px 1fr; align-items: stretch; }
.info-tabs__nav { display: flex; flex-direction: column; padding: 10px 0; background: var(--bg-2); border-right: 1px solid var(--line); }
.info-tabs__btn {
  position: relative; text-align: left; padding: 13px 22px;
  font-family: var(--font-display); font-weight: 600; font-size: .84rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2);
  transition: color .2s, background .2s;
}
.info-tabs__btn:hover { color: var(--text); background: rgba(233, 228, 218, .03); }
.info-tabs__btn:focus-visible { outline-offset: -2px; }
.info-tabs__btn.is-active { color: var(--gold-soft); background: rgba(212, 180, 123, .07); box-shadow: inset 2px 0 0 var(--gold-main); }
.info-tabs__panels { padding: clamp(26px, 3.6vw, 40px); min-height: 360px; }
.info-tabs__panel { display: none; animation: fadeIn .35s ease; }
.info-tabs__panel.is-active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } }
.info-tabs__panel h3 {
  margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; letter-spacing: .03em; color: var(--text);
}
.info-tabs__panel ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.info-tabs__panel li {
  position: relative; break-inside: avoid; padding: 10px 0 10px 20px; border-bottom: 1px solid var(--line-soft);
  font-size: .98rem; line-height: 1.55; color: var(--text);
}
.info-tabs__panel li::before { content: ''; position: absolute; left: 2px; top: 1.15em; width: 5px; height: 5px; background: var(--gold-main); transform: rotate(45deg); }
/* reglamento: párrafos largos, una columna y numerados */
.info-tabs__panel ol { list-style: none; margin: 0; padding: 0; counter-reset: rule; }
.info-tabs__panel ol li { counter-increment: rule; padding: 14px 0 14px 46px; line-height: 1.62; color: var(--text-read); }
.info-tabs__panel ol li::before {
  content: counter(rule, decimal-leading-zero); top: 14px; left: 0; width: auto; height: auto; background: none; transform: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.55; color: var(--gold-main);
}
.info-tabs__note { margin-top: 24px; padding: 16px 20px; background: rgba(212, 180, 123, .05); border-left: 2px solid var(--gold-main); color: var(--text-2); font-size: .95rem; }
.info-tabs__note h4 { margin-bottom: 4px; font-family: var(--font-display); font-weight: 600; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-soft); }

/* ---------- Registro y descargas: una sola ilustración de fondo, apagada ---------- */
.section--downloads { overflow: hidden; background: var(--bg-2); }
.downloads__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(18, 20, 25, .82) 22%, rgba(18, 20, 25, .82) 70%, var(--bg-2) 100%),
    url('../img/oath-dragon.webp') no-repeat center 46% / cover;
  filter: saturate(.55);
}
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 460px)); justify-content: center; gap: 24px; }
.download-card {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center;
  min-height: 500px; padding: 30px 32px 64px; overflow: hidden; isolation: isolate;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.download-card__art { position: absolute; inset: 0; z-index: -1; background: var(--art) center 22% / cover no-repeat; transition: transform .6s ease; }
.download-card__art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, rgba(24, 26, 32, .15) 32%, rgba(24, 26, 32, .88) 58%, var(--panel) 78%); }
.download-card--chest { --art: url('../img/dl-angels.webp'); }
.download-card--shield { --art: url('../img/dl-demons.webp'); }
.download-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 30px 56px -28px #000; }
.download-card:hover .download-card__art { transform: scale(1.03); }
.download-card__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 1.85rem); letter-spacing: .06em; text-transform: uppercase; color: var(--gold-soft); }
.download-card__desc { max-width: 340px; margin: 10px 0 22px; font-size: 1rem; line-height: 1.6; color: var(--text-read); }
.download-card .btn { min-width: 230px; }
.download-card__guide {
  /* fuera del flujo: así los dos botones quedan a la misma altura */
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 600; color: var(--gold-main);
  border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: color .2s, border-color .2s;
}
.download-card__guide svg { width: 11px; height: 11px; }
.download-card__guide:hover { color: var(--gold-soft); border-color: var(--gold-soft); }
.download-card__guide:disabled, .download-card__guide.is-pending { opacity: .5; cursor: var(--cursor-default); }

/* ---------- Comunidad ---------- */
.section--contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; max-width: 1152px; margin: 0 auto; }
.contact-card {
  display: flex; align-items: center; gap: 14px; padding: 18px 18px; min-width: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.crest { flex: none; display: grid; place-items: center; width: 36px; height: 40px; border-right: 1px solid var(--line-soft); padding-right: 14px; box-sizing: content-box; }
.crest__glyph { width: 24px; height: 24px; color: var(--gold-main); transition: color .25s ease; }
.contact-card__name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: .06em; color: var(--text); }
.contact-card:hover { transform: translateY(-3px); border-color: var(--line-strong); background: var(--panel-2); }
.contact-card:hover .crest__glyph { color: var(--gold-soft); }
.contact-card:active { transform: translateY(-1px); }
.contact-card.is-pending { pointer-events: none; }
.contact-card.is-pending .crest__glyph, .contact-card.is-pending .contact-card__name { opacity: .6; }
.contact-card.is-pending .contact-card__name::after {
  content: attr(data-soon); display: block; margin-top: 2px;
  font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { position: relative; text-align: center; background: var(--bg-2); }
.footer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--faction-line); }
.footer__content { padding: 40px 24px 30px; display: flex; flex-direction: column; align-items: center; }
.footer__logo { width: min(190px, 50vw); height: auto; }
.footer .rule { margin: 16px auto 14px; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; margin-bottom: 16px; }
.footer__link { font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); transition: color .2s; }
.footer__link:hover { color: var(--gold-soft); }
.footer__copy { font-size: var(--fs-sm); color: var(--text-2); }
.footer__legal { margin-top: 4px; font-size: var(--fs-xs); color: rgba(170, 166, 160, .7); }

/* ---------- Votos y modal ---------- */
.vote-widget {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 12px;
  background: rgba(18, 20, 25, .94); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.vote-widget[hidden] { display: none; }
.vote-widget__label { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-main); }
.vote-widget__buttons { display: flex; gap: 6px; }
.vote-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); transition: border-color .2s; }
.vote-btn:hover { border-color: var(--gold-main); }
.vote-btn img { width: 22px; height: 22px; object-fit: contain; }

.modal {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px;
  background: rgba(6, 7, 9, .88);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__content { position: relative; width: min(960px, 100%); aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.modal__iframe { width: 100%; height: 100%; border: 0; }
.modal__close { position: absolute; top: -44px; right: 0; font-size: 2rem; line-height: 1; color: var(--gold-soft); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1240px) {
  .nav__link { padding: 10px 10px; }
  .nav__link::after { left: 10px; right: 10px; }
  .header__inner { gap: 16px; }
}
@media (max-width: 1080px) {
  .nav, .header__actions { display: none; }
  .menu-toggle { display: flex; }
  .world-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-panel__frame { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat:nth-child(4) { border-left: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line-soft); }
  /* la liga ocupa dos columnas: completa la segunda fila y su valor entra en una línea */
  .stat:last-child { grid-column: span 2; }
  /* tablet: fila centrada, así la quinta red no queda colgada a la izquierda */
  .contact-grid { display: flex; flex-wrap: wrap; justify-content: center; max-width: 680px; }
  .contact-grid > .contact-card { flex: 0 1 210px; }
}
@media (max-width: 820px) {
  .info-tabs { grid-template-columns: 1fr; }
  /* pestañas en grilla de 2 columnas: todo visible, sin scroll horizontal */
  .info-tabs__nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; padding: 0; background: var(--line-soft); border-right: 0; border-bottom: 1px solid var(--line); }
  .info-tabs__btn { padding: 12px 14px; font-size: .78rem; text-align: center; background: var(--bg-2); }
  .info-tabs__btn:hover { background: var(--bg-2); }
  .info-tabs__btn.is-active { background: var(--panel-2); box-shadow: inset 0 -2px 0 var(--gold-main); }
  .info-tabs__panel ul { columns: 1; }
  .download-grid { grid-template-columns: minmax(0, 460px); }
  /* apiladas no hace falta alinear botones: sin el hueco reservado para la guía */
  .download-card--chest { padding-bottom: 34px; min-height: 440px; }
}
@media (max-width: 640px) {
  .world-grid { grid-template-columns: 1fr; }
  .hero__actions { width: 100%; max-width: 330px; }
  .hero__actions .btn { width: 100%; min-width: 0; }
  .countdown__unit { min-width: 0; flex: 1; padding: 2px 6px; }
  .countdown__units { width: 100%; max-width: 360px; }
  .countdown__sep { height: 30px; }
  .countdown__name { font-size: .68rem; letter-spacing: .06em; }
  .stats-panel__frame { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { justify-content: flex-start; padding: 14px 12px; }
  .stat__value { white-space: normal; font-size: 1.02rem; }
  .stat:nth-child(n) { border-left: 0; border-top: 1px solid var(--line-soft); }
  .stat:nth-child(2n+1):not(.stat--featured) { border-left: 1px solid var(--line-soft); }
  .stat--featured { grid-column: 1 / -1; justify-content: center; border-top: 0; }
  .stat:last-child { grid-column: auto; }
  .contact-grid { flex-direction: column; flex-wrap: nowrap; max-width: 360px; }
  .contact-grid > .contact-card { flex: none; }
  .download-card { min-height: 440px; padding: 26px 22px 60px; }
  .brand__logo, .header.is-scrolled .brand__logo { height: 52px; }
  .vote-widget { right: 12px; bottom: 12px; }
}
