/* ═══════════════════════════════════════════════════════════════════════
   EDERUS NETWORK — Hoja principal
   Depende de css/tokens.css (debe cargarse antes en la landing).

   ⚠️  /bans TAMBIÉN carga este archivo, y lo hace ANTES de bootstrap.min.css.
   Consecuencias que hay que respetar al editar:
     · Los selectores de elemento desnudo (a, p, code, button, table…) son
       pisados por el reboot de Bootstrap en /bans. No confíes en ellos ahí.
     · .container en /bans es el de Bootstrap. Para la nav se usa
       `.navbar .container` (0,2,0), que sí le gana sin !important.
     · .navbar, .nav-logo, .nav-links, .nav-btn y .bg-overlay son superficie
       COMPARTIDA con /bans. Son las ediciones de mayor alcance del proyecto.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Reset ──────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--ed-void);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ed-font-body);
  background-color: var(--ed-void);
  color: var(--ed-text);
  font-size: var(--ed-fs-body);
  line-height: var(--ed-lh-body);
  overflow-x: hidden;
  padding-top: var(--ed-banner-h);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ed-font-head);
  line-height: var(--ed-lh-head);
  font-weight: 600;
  text-wrap: balance;
}

/* Grano: capa fija, jamás intercepta clics */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--ed-z-grain);
  opacity: .038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

[v-cloak] { opacity: 0; }

/* Oculto sin ocupar espacio: `left:-9999px` provocaría scroll horizontal */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  z-index: var(--ed-z-banner);
  padding: var(--ed-s-3) var(--ed-s-5);
  background: var(--ed-surface-2);
  color: var(--ed-text);
  border-radius: var(--ed-r-2);
  box-shadow: var(--ed-sh-3);
  text-decoration: none;
}
.skip-link:focus {
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  left: var(--ed-s-4);
  top: calc(var(--ed-banner-h) + var(--ed-s-4));
}

:focus-visible {
  outline: 2px solid var(--ed-cyan);
  outline-offset: 3px;
  border-radius: var(--ed-r-1);
}

.mono {
  font-family: var(--ed-font-mono);
  font-variant-numeric: tabular-nums;
}

/* ── Fondo ──────────────────────────────────────────────────────────── */
.bg-overlay {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: var(--ed-z-bg);
  filter: saturate(.7) contrast(1.05);
  background-image: url('../assets/img/background.webp');
}

.bg-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: var(--ed-z-bg-tint);
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(97, 60, 244, .20), transparent 62%),
    radial-gradient(90% 60% at 85% 110%, rgba(235, 134, 249, .10), transparent 60%),
    linear-gradient(to bottom, rgba(11, 10, 22, .62), rgba(11, 10, 22, .95));
}

/* ── Layout ─────────────────────────────────────────────────────────── */
.container {
  max-width: var(--ed-max);
  margin-inline: auto;
  padding-inline: var(--ed-gutter);
  width: 100%;
}

/* Gana a Bootstrap en /bans por especificidad, sin !important */
.navbar .container {
  max-width: var(--ed-max);
  padding-inline: var(--ed-gutter);
}

.section { padding-block: var(--ed-section-y); position: relative; }

section[id] { scroll-margin-top: calc(var(--ed-nav-h) + var(--ed-s-5)); }

/* ── Doble bisel: cáscara + núcleo con radios concéntricos ──────────── */
.shell {
  padding: var(--ed-shell-pad);
  border-radius: var(--ed-r-5);
  background: var(--ed-grad-bezel);
  box-shadow: 0 0 0 1px var(--ed-line-soft), var(--ed-sh-2);
  transition: box-shadow var(--ed-t-3) var(--ed-e-out),
              transform var(--ed-t-3) var(--ed-e-out);
}

.shell > .core {
  height: 100%;
  border-radius: calc(var(--ed-r-5) - var(--ed-shell-pad));
  background: linear-gradient(168deg, var(--ed-surface), var(--ed-void-2));
  box-shadow: var(--ed-inset-top);
  padding: var(--ed-s-6);
}

.shell:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px var(--ed-line), var(--ed-sh-3), var(--ed-glow-violet);
}

/* ── Tipografía de sección ──────────────────────────────────────────── */
.section-head { max-width: var(--ed-max-narrow); margin-bottom: var(--ed-s-8); }

.section-kicker {
  font-size: var(--ed-fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--ed-tr-label);
  color: var(--ed-cyan);
  font-weight: 600;
  margin-bottom: var(--ed-s-3);
}

.section-title {
  font-size: var(--ed-fs-h2);
  letter-spacing: var(--ed-tr-tight);
  color: var(--ed-text);
  margin-bottom: var(--ed-s-4);
}

.section-lead {
  color: var(--ed-text-dim);
  max-width: 62ch;
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--ed-s-2);
  padding: var(--ed-s-2) var(--ed-s-4);
  border-radius: var(--ed-r-pill);
  background: var(--ed-surface);
  box-shadow: 0 0 0 1px var(--ed-line-soft), var(--ed-inset-top);
  font-size: var(--ed-fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--ed-tr-label);
  color: var(--ed-chrome-dim);
  font-weight: 600;
  margin-bottom: var(--ed-s-5);
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.eyebrow__dot.is-online  { background: var(--ed-ok);     box-shadow: 0 0 12px var(--ed-ok); animation: pulseDot 2.4s var(--ed-e-inout) infinite; }
.eyebrow__dot.is-offline { background: var(--ed-danger); box-shadow: 0 0 12px var(--ed-danger); }

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50%      { opacity: .45; }
}

/* ── Botones y enlaces ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--ed-s-3);
  padding: var(--ed-s-3) var(--ed-s-5);
  border-radius: var(--ed-r-2);
  font-family: var(--ed-font-head);
  font-weight: 600;
  font-size: var(--ed-fs-sm);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform var(--ed-t-2) var(--ed-e-spring),
              box-shadow var(--ed-t-2) var(--ed-e-out),
              background-color var(--ed-t-2) var(--ed-e-out),
              color var(--ed-t-2) var(--ed-e-out);
}

.btn--ghost {
  background: var(--ed-surface);
  color: var(--ed-text);
  box-shadow: 0 0 0 1px var(--ed-line), var(--ed-inset-top);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 0 0 1px var(--ed-cyan-2), var(--ed-inset-top), var(--ed-glow-cyan);
}
.btn:active { transform: translateY(0) scale(.985); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--ed-s-2);
  color: var(--ed-cyan);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--ed-fs-sm);
  font-family: var(--ed-font-head);
  white-space: nowrap;
  transition: color var(--ed-t-2) var(--ed-e-out), gap var(--ed-t-2) var(--ed-e-out);
}
.link-arrow i { transition: transform var(--ed-t-2) var(--ed-e-spring); }
.link-arrow:hover { color: var(--ed-orchid); gap: var(--ed-s-3); }
.link-arrow:hover i { transform: translateX(3px); }
.link-arrow.is-disabled { color: var(--ed-text-dim); cursor: not-allowed; opacity: .6; }

code.mono {
  background: var(--ed-surface-2);
  padding: .12em .45em;
  border-radius: var(--ed-r-1);
  font-size: .9em;
  color: var(--ed-cyan);
  box-shadow: inset 0 0 0 1px var(--ed-line-soft);
}
code.mono.highlight { color: var(--ed-orchid); box-shadow: inset 0 0 0 1px rgba(235, 134, 249, .4); }

/* ═══ NAVBAR — superficie compartida con /bans ═══════════════════════ */
.navbar {
  position: fixed;
  top: var(--ed-banner-h);
  left: 0;
  right: 0;
  z-index: var(--ed-z-nav);
  height: var(--ed-nav-h);
  display: flex;
  align-items: center;
  transition: height var(--ed-t-3) var(--ed-e-out),
              background-color var(--ed-t-3) var(--ed-e-out),
              backdrop-filter var(--ed-t-3) var(--ed-e-out);
}

.navbar.scrolled {
  height: var(--ed-nav-h-scrolled);
  background: rgba(11, 10, 22, .72);
  backdrop-filter: blur(var(--ed-blur));
  -webkit-backdrop-filter: blur(var(--ed-blur));
}

/* Hairline de firma bajo la nav, solo al hacer scroll */
.navbar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ed-grad-hairline);
  opacity: 0;
  transition: opacity var(--ed-t-3) var(--ed-e-out);
}
.navbar.scrolled::after { opacity: .75; }

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ed-s-5);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--ed-s-3);
  text-decoration: none;
  color: var(--ed-text);
  font-family: var(--ed-font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: var(--ed-tr-tight);
  flex-shrink: 0;
}
.nav-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  transition: transform var(--ed-t-3) var(--ed-e-spring);
}
.nav-logo:hover img { transform: rotate(-6deg) scale(1.06); }
.nav-logo em {
  font-style: normal;
  background: var(--ed-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--ed-orchid);
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--ed-s-5);
  list-style: none;
}
.nav-links > li > a {
  color: var(--ed-text-dim);
  text-decoration: none;
  font-size: var(--ed-fs-sm);
  font-weight: 500;
  transition: color var(--ed-t-2) var(--ed-e-out);
}
.nav-links > li > a:hover { color: var(--ed-text); }
.nav-links li.active > a  { color: var(--ed-cyan); }

/* Botón de tienda: cromo. Solo se vuelve oro si hay descuento activo. */
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--ed-s-2);
  padding: var(--ed-s-2) var(--ed-s-4);
  border-radius: var(--ed-r-pill);
  background: var(--ed-surface-2);
  box-shadow: 0 0 0 1px var(--ed-line), var(--ed-inset-top);
  font-family: var(--ed-font-head);
  font-weight: 600;
  transition: transform var(--ed-t-2) var(--ed-e-spring),
              box-shadow var(--ed-t-2) var(--ed-e-out),
              color var(--ed-t-2) var(--ed-e-out);
}
.nav-links > li > a.nav-btn { color: var(--ed-chrome); }
.nav-links > li > a.nav-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--ed-violet), var(--ed-inset-top), var(--ed-glow-violet);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 0;
  color: var(--ed-text);
  font-size: 1.35rem;
  cursor: pointer;
  padding: var(--ed-s-2);
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero-section {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--ed-nav-h) + var(--ed-s-8)) var(--ed-s-9);
}

.hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--ed-s-8);
  align-items: center;
}

.hero-title {
  font-size: var(--ed-fs-display);
  line-height: var(--ed-lh-tight);
  letter-spacing: var(--ed-tr-tight);
  font-weight: 700;
  margin-bottom: var(--ed-s-5);
  color: var(--ed-text);
  background: var(--ed-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.075rem;
  color: var(--ed-text-dim);
  max-width: 54ch;
  margin-bottom: var(--ed-s-7);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  align-items: stretch;
  gap: var(--ed-s-4);
  flex-wrap: wrap;
  margin-bottom: var(--ed-s-7);
}

/* Caja de IP: es un <button> real, hay que neutralizar el estilo de UA */
.ip-box {
  display: grid;
  grid-template-areas: 'label action' 'ip action';
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0 var(--ed-s-5);
  text-align: left;
  padding: var(--ed-s-3) var(--ed-s-3) var(--ed-s-3) var(--ed-s-5);
  border: 0;
  cursor: pointer;
  border-radius: var(--ed-r-3);
  background: linear-gradient(168deg, var(--ed-surface), var(--ed-void-2));
  box-shadow: 0 0 0 1px var(--ed-line), var(--ed-inset-top);
  font: inherit;
  color: var(--ed-text);
  transition: box-shadow var(--ed-t-2) var(--ed-e-out),
              transform var(--ed-t-2) var(--ed-e-spring);
}
.ip-box:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--ed-cyan-2), var(--ed-inset-top), var(--ed-glow-cyan); }
.ip-box.copied { box-shadow: 0 0 0 1px var(--ed-ok), var(--ed-inset-top), 0 0 32px -6px rgba(75, 227, 176, .55); }

.ip-box__label {
  grid-area: label;
  font-size: var(--ed-fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--ed-tr-label);
  color: var(--ed-text-dim);
}
.ip-text {
  grid-area: ip;
  font-family: var(--ed-font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ed-text);
}
.ip-box__action {
  grid-area: action;
  display: inline-flex;
  align-items: center;
  gap: var(--ed-s-2);
  padding: var(--ed-s-3) var(--ed-s-4);
  border-radius: var(--ed-r-2);
  background: var(--ed-surface-2);
  box-shadow: inset 0 0 0 1px var(--ed-line-soft);
  font-size: var(--ed-fs-sm);
  font-weight: 600;
  font-family: var(--ed-font-head);
  color: var(--ed-chrome);
  white-space: nowrap;
}
.ip-box.copied .ip-box__action { color: var(--ed-ok); }

.hero-live { max-width: 380px; }
.hero-live__stat { display: flex; align-items: baseline; gap: var(--ed-s-3); margin-bottom: var(--ed-s-3); }
.hero-live__num {
  font-family: var(--ed-font-mono);
  font-size: 2rem;
  font-weight: 600;
  color: var(--ed-cyan);
  font-variant-numeric: tabular-nums;
}
.hero-live__num--off { color: var(--ed-text-dim); }
.hero-live__label { font-size: var(--ed-fs-sm); color: var(--ed-text-dim); }

.capacity {
  height: 4px;
  border-radius: var(--ed-r-pill);
  background: var(--ed-surface-2);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--ed-line-soft);
}
.capacity__fill {
  height: 100%;
  background: var(--ed-grad-signature);
  border-radius: inherit;
  transition: width var(--ed-t-4) var(--ed-e-out);
}

/* Anillo iridiscente: eco de la geometría circular del propio logo */
.hero-visual { display: flex; justify-content: center; }
.hero-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 460px);
  aspect-ratio: 1;
}
.hero-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--ed-cyan-2), var(--ed-violet), var(--ed-orchid), var(--ed-cyan-2));
  mask: radial-gradient(circle, transparent 61%, #000 62%, #000 64%, transparent 65%);
  -webkit-mask: radial-gradient(circle, transparent 61%, #000 62%, #000 64%, transparent 65%);
  animation: haloSpin 28s linear infinite;
  opacity: .85;
}
.hero-ring::after {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(97, 60, 244, .28), transparent 68%);
  filter: blur(28px);
}
@keyframes haloSpin { to { transform: rotate(360deg); } }

.hero-mark {
  position: relative;
  width: 78%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(11, 10, 22, .7));
}

/* ── Bento: deliberadamente asimétrico ──────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ed-s-5);
}
.bento__cell--wide { grid-column: span 2; }
.bento__cell--tall { grid-row: span 2; }

.bento__cell .core { display: flex; flex-direction: column; gap: var(--ed-s-3); }
.bento__cell h3 { font-size: var(--ed-fs-h3); color: var(--ed-text); }
.bento__cell p  { color: var(--ed-text-dim); font-size: var(--ed-fs-sm); text-wrap: pretty; }

.stat-num {
  font-family: var(--ed-font-head);
  font-size: clamp(2.75rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--ed-tr-tight);
  background: var(--ed-grad-signature);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--ed-cyan);
  -webkit-text-fill-color: transparent;
}

.rarity-ladder {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--ed-s-2);
  margin-top: var(--ed-s-2);
}
.rarity-ladder li {
  font-size: var(--ed-fs-xs);
  padding: 2px var(--ed-s-3);
  border-radius: var(--ed-r-1);
  font-weight: 600;
  letter-spacing: .02em;
}
.rarity-ladder .r-1 { color: var(--ed-chrome-dim); box-shadow: inset 0 0 0 1px rgba(158, 180, 197, .3); }
.rarity-ladder .r-2 { color: var(--ed-cyan);       box-shadow: inset 0 0 0 1px rgba(129, 208, 250, .3); }
.rarity-ladder .r-3 { color: var(--ed-cyan-2);     box-shadow: inset 0 0 0 1px rgba(69, 142, 231, .35); }
.rarity-ladder .r-4 { color: var(--ed-violet);     box-shadow: inset 0 0 0 1px rgba(97, 60, 244, .45); }
.rarity-ladder .r-5 { color: var(--ed-orchid);     box-shadow: inset 0 0 0 1px rgba(235, 134, 249, .4); }
.rarity-ladder .r-6 { color: var(--ed-orchid-soft); box-shadow: inset 0 0 0 1px rgba(254, 179, 253, .5); }

.rank-chips { list-style: none; display: flex; gap: var(--ed-s-2); flex-wrap: wrap; margin-top: auto; }
.rank-chip {
  font-size: var(--ed-fs-xs);
  font-weight: 600;
  padding: var(--ed-s-1) var(--ed-s-3);
  border-radius: var(--ed-r-1);
  font-family: var(--ed-font-head);
}
.rank-chip--arcus { color: var(--ed-cyan);        background: rgba(129, 208, 250, .1); box-shadow: inset 0 0 0 1px rgba(129, 208, 250, .32); }
.rank-chip--khaos { color: var(--ed-violet);      background: rgba(97, 60, 244, .14);  box-shadow: inset 0 0 0 1px rgba(97, 60, 244, .4); }
.rank-chip--zaros { color: var(--ed-orchid);      background: rgba(235, 134, 249, .1); box-shadow: inset 0 0 0 1px rgba(235, 134, 249, .35); }

/* ── Cómo entrar ────────────────────────────────────────────────────── */
.join-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--ed-s-5);
  margin-bottom: var(--ed-s-6);
}
.join-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ed-s-3);
  margin-bottom: var(--ed-s-5);
  padding-bottom: var(--ed-s-4);
  border-bottom: 1px solid var(--ed-line-soft);
}
.platform-tag {
  font-family: var(--ed-font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ed-cyan);
}
.platform-tag--bedrock { color: var(--ed-orchid); }
.join-card__ver { font-size: var(--ed-fs-xs); color: var(--ed-text-dim); font-family: var(--ed-font-mono); }

.steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: var(--ed-s-4); }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: var(--ed-s-3);
  align-items: start;
  color: var(--ed-text-dim);
  font-size: var(--ed-fs-sm);
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ed-surface-2);
  box-shadow: inset 0 0 0 1px var(--ed-line);
  font-family: var(--ed-font-mono);
  font-size: var(--ed-fs-xs);
  color: var(--ed-chrome);
}
.steps strong { color: var(--ed-text); font-weight: 600; }

.notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--ed-s-4);
  padding: var(--ed-s-5);
  border-radius: var(--ed-r-4);
  background: linear-gradient(168deg, rgba(255, 196, 107, .07), rgba(255, 196, 107, .02));
  box-shadow: inset 0 0 0 1px rgba(255, 196, 107, .28);
}
.notice__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 196, 107, .12);
  color: var(--ed-warn);
  font-size: 1.05rem;
  animation: noticePulse 3.2s var(--ed-e-inout) infinite;
}
@keyframes noticePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 196, 107, .35); }
  55%      { box-shadow: 0 0 0 9px rgba(255, 196, 107, 0); }
}
.notice__title { display: block; color: var(--ed-warn); margin-bottom: var(--ed-s-2); font-family: var(--ed-font-head); }
.notice__body p { color: var(--ed-text-dim); font-size: var(--ed-fs-sm); }
.notice__note { margin-top: var(--ed-s-3); font-size: var(--ed-fs-xs); opacity: .85; }

/* ── Staff ──────────────────────────────────────────────────────────── */
.staff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--ed-s-5); }
.staff-card .core {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--ed-s-3);
  padding: var(--ed-s-6) var(--ed-s-4);
}
.staff-head {
  width: 72px;
  height: 72px;
  border-radius: var(--ed-r-3);
  image-rendering: pixelated;
  background: var(--ed-surface-2);
  box-shadow: 0 0 0 1px var(--ed-line), var(--ed-sh-2);
  transition: transform var(--ed-t-3) var(--ed-e-spring);
}
.staff-card:hover .staff-head { transform: translateY(-3px) scale(1.05); }
.staff-name { font-size: 1rem; color: var(--ed-text); }
.staff-role {
  font-size: var(--ed-fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: var(--ed-s-1) var(--ed-s-3);
  border-radius: var(--ed-r-pill);
}
/* Cromo para Owner: el material más caro del sistema, sin tocar la
   reserva de la orquídea para lo monetario. */
.role--owner     { color: var(--ed-chrome);     background: rgba(220, 228, 238, .1); box-shadow: inset 0 0 0 1px rgba(220, 228, 238, .35); }
.role--co-owner  { color: var(--ed-chrome);     background: rgba(220, 228, 238, .08); box-shadow: inset 0 0 0 1px rgba(220, 228, 238, .28); }
.role--manager   { color: var(--ed-violet);     background: rgba(97, 60, 244, .14);  box-shadow: inset 0 0 0 1px rgba(97, 60, 244, .38); }
.role--developer { color: var(--ed-cyan);       background: rgba(129, 208, 250, .1); box-shadow: inset 0 0 0 1px rgba(129, 208, 250, .32); }
.role--admin     { color: var(--ed-cyan-2);     background: rgba(69, 142, 231, .12); box-shadow: inset 0 0 0 1px rgba(69, 142, 231, .35); }
.role--moderator { color: var(--ed-ok);         background: rgba(75, 227, 176, .1);  box-shadow: inset 0 0 0 1px rgba(75, 227, 176, .3); }
.role--builder   { color: var(--ed-chrome-dim); background: rgba(158, 180, 197, .1); box-shadow: inset 0 0 0 1px rgba(158, 180, 197, .3); }

/* ── Votar: registro escalonado, no rejilla de tres ─────────────────── */
.vote-layout { display: grid; grid-template-columns: 4fr 8fr; gap: var(--ed-s-8); align-items: start; }
.vote-rail { position: sticky; top: calc(var(--ed-nav-h) + var(--ed-s-6)); }
.vote-rail__note {
  margin-top: var(--ed-s-5);
  font-size: var(--ed-fs-xs);
  color: var(--ed-text-dim);
  display: flex;
  gap: var(--ed-s-2);
  align-items: baseline;
}

.vote-ledger { list-style: none; display: flex; flex-direction: column; }
.vote-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--ed-s-5);
  align-items: center;
  padding: var(--ed-s-6) var(--ed-s-4);
  position: relative;
  transition: background-color var(--ed-t-2) var(--ed-e-out);
}
.vote-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ed-grad-hairline);
  opacity: .35;
  transition: opacity var(--ed-t-2) var(--ed-e-out);
}
.vote-row:hover::before { opacity: 1; }
.vote-row:hover { background: rgba(35, 32, 67, .35); }

.vote-row__idx {
  font-family: var(--ed-font-head);
  font-size: 2.5rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px var(--ed-line);
  line-height: 1;
}
.vote-row__name { font-size: var(--ed-fs-h3); color: var(--ed-text); }
.vote-row__domain { display: block; font-size: var(--ed-fs-xs); color: var(--ed-chrome-dim); margin-block: 2px var(--ed-s-2); }
.vote-row__desc { font-size: var(--ed-fs-sm); color: var(--ed-text-dim); }
.vote-row.is-pending { opacity: .55; }

/* La asimetría vive aquí: cada fila entra un poco más */
@media (min-width: 1025px) {
  .vote-row:nth-child(2) { margin-left: clamp(0px, 3vw, 48px); }
  .vote-row:nth-child(3) { margin-left: clamp(0px, 6vw, 96px); }
}

/* ── FAQ: lado a lado, sin acordeón ─────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--ed-s-6) var(--ed-s-8); }
.faq-item { padding-left: var(--ed-s-5); border-left: 2px solid var(--ed-line); transition: border-color var(--ed-t-2) var(--ed-e-out); }
.faq-item:hover { border-left-color: var(--ed-violet); }
.faq-item h3 { font-size: 1rem; color: var(--ed-text); margin-bottom: var(--ed-s-2); }
.faq-item p  { font-size: var(--ed-fs-sm); color: var(--ed-text-dim); text-wrap: pretty; }
.faq-item a  { color: var(--ed-cyan); }

/* ── Footer ─────────────────────────────────────────────────────────── */
.footer { padding-block: var(--ed-s-9) var(--ed-s-6); position: relative; }
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ed-grad-hairline);
  opacity: .5;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--ed-s-7); margin-bottom: var(--ed-s-8); }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: var(--ed-s-2); }
.footer-brand img { width: 52px; height: auto; }
.footer-brand span { font-family: var(--ed-font-head); font-weight: 700; font-size: 1.05rem; }
.footer-brand em {
  font-style: normal;
  background: var(--ed-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--ed-orchid);
  -webkit-text-fill-color: transparent;
}
.footer-ip { font-size: var(--ed-fs-sm); color: var(--ed-chrome-dim); margin-top: var(--ed-s-2); }

.footer-col { display: flex; flex-direction: column; gap: var(--ed-s-3); }
.footer-col h4 {
  font-size: var(--ed-fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--ed-tr-label);
  color: var(--ed-chrome-dim);
  margin-bottom: var(--ed-s-1);
}
.footer-col a {
  color: var(--ed-text-dim);
  text-decoration: none;
  font-size: var(--ed-fs-sm);
  transition: color var(--ed-t-2) var(--ed-e-out);
}
.footer-col a:hover { color: var(--ed-cyan); }

.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--ed-s-4);
  flex-wrap: wrap;
  padding-top: var(--ed-s-5);
  border-top: 1px solid var(--ed-line-soft);
}
.footer-copyright { font-size: var(--ed-fs-xs); color: var(--ed-text-dim); }
.footer-dev-credit { font-size: var(--ed-fs-xs); color: var(--ed-text-dim); display: flex; align-items: center; gap: var(--ed-s-2); }
.footer-dev-credit strong { color: var(--ed-chrome-dim); font-weight: 600; }
.footer-dev-credit svg { color: var(--ed-chrome-dim); }

/* ═══ ORO — RESERVADO EXCLUSIVAMENTE A DESCUENTO ACTIVO ══════════════ */
.global-discount-banner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--ed-z-banner);
  height: 46px;
  line-height: 46px;
  text-align: center;
  font-family: var(--ed-font-head);
  font-weight: 600;
  font-size: var(--ed-fs-sm);
  color: #12101F;
  background: var(--ed-grad-gold);
  box-shadow: var(--ed-glow-gold);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding-inline: var(--ed-s-4);
}
body.has-discount { --ed-banner-h: 46px; }
/* El botón de tienda solo se vuelve oro mientras hay descuento vivo */
body.has-discount .nav-links > li > a.nav-btn--shop {
  color: #12101F;
  background: var(--ed-grad-gold);
  box-shadow: 0 0 0 1px var(--ed-gold-deep), var(--ed-glow-gold);
}

/* ── Reveals: solo con JS activo, para no dejar la página en blanco ── */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity var(--ed-t-3) var(--ed-e-out),
              transform var(--ed-t-4) var(--ed-e-out);
}
.js [data-reveal="scale"] { transform: scale(.96); }
.js [data-reveal].is-in   { opacity: 1; transform: none; }
[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 70ms); }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid   { grid-template-columns: 1fr; gap: var(--ed-s-7); }
  .hero-visual { order: -1; }
  .hero-ring   { width: min(72%, 340px); }
  .bento       { grid-template-columns: repeat(2, 1fr); }
  .bento__cell--wide, .bento__cell--tall { grid-column: auto; grid-row: auto; }
  .staff-grid  { grid-template-columns: repeat(3, 1fr); }
  .vote-layout { grid-template-columns: 1fr; gap: var(--ed-s-6); }
  .vote-rail   { position: static; }
}

/* La nav pasa a drawer antes que el resto del layout: con 7 ítems se
   parte en dos líneas por debajo de ~960px. */
@media (max-width: 960px) {
  .mobile-menu-btn { display: block; }

  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(82vw, 320px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: var(--ed-s-6);
    padding: var(--ed-s-8) var(--ed-s-7);
    background: var(--ed-void-2);
    box-shadow: -1px 0 0 var(--ed-line), var(--ed-sh-4);
    transform: translateX(100%);
    transition: transform var(--ed-t-3) var(--ed-e-out);
  }
  .nav-links.active { transform: translateX(0); }
  .nav-links > li > a { font-size: 1.15rem; font-family: var(--ed-font-head); }
  .nav-links.active > li {
    opacity: 0;
    transform: translateX(14px);
    animation: drawerIn var(--ed-t-3) var(--ed-e-out) forwards;
  }
  .nav-links.active > li:nth-child(1) { animation-delay: 60ms; }
  .nav-links.active > li:nth-child(2) { animation-delay: 110ms; }
  .nav-links.active > li:nth-child(3) { animation-delay: 160ms; }
  .nav-links.active > li:nth-child(4) { animation-delay: 210ms; }
  .nav-links.active > li:nth-child(5) { animation-delay: 260ms; }
  .nav-links.active > li:nth-child(6) { animation-delay: 310ms; }
  .nav-links.active > li:nth-child(7) { animation-delay: 360ms; }
}

@media (max-width: 768px) {
  .bento, .join-grid, .faq-grid { grid-template-columns: 1fr; }
  .staff-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--ed-s-6); }
  .shell > .core { padding: var(--ed-s-5); }
  .vote-row { grid-template-columns: auto 1fr; row-gap: var(--ed-s-3); }
  .vote-row .link-arrow { grid-column: 2; justify-self: start; }
  .hero-actions .ip-box, .hero-actions .btn { width: 100%; justify-content: center; }
}

@keyframes drawerIn { to { opacity: 1; transform: translateX(0); } }

@media (max-width: 520px) {
  .staff-grid  { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .ip-box { grid-template-areas: 'label' 'ip' 'action'; grid-template-columns: 1fr; gap: var(--ed-s-3); padding: var(--ed-s-4); }
  .ip-box__action { justify-content: center; }
  .vote-row__idx { font-size: 1.75rem; }
}

/* Bloquear el scroll con el drawer abierto (CSS puro, degrada bien) */
body:has(.nav-links.active) { overflow: hidden; }

/* ── Movimiento reducido ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Próximamente ───────────────────────────────────────────────────── */
.coming-soon {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--ed-s-6);
  padding: calc(var(--ed-nav-h) + var(--ed-s-8)) var(--ed-gutter) var(--ed-s-8);
}
.coming-soon__title {
  font-size: var(--ed-fs-display);
  letter-spacing: var(--ed-tr-tight);
  font-weight: 700;
  background: var(--ed-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--ed-text);
  -webkit-text-fill-color: transparent;
}
.coming-soon__lead { color: var(--ed-text-dim); max-width: 46ch; }
.coming-soon__img {
  width: min(100%, 360px);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(11, 10, 22, .7));
  animation: floatY 6s var(--ed-e-inout) infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-18px); }
}
