/* ═══════════════════════════════════════════════════════════════════════════
   BAD BOYS · web
   Negro, dorado de acento y blanco. Esquinas casi rectas, cuadrito dorado
   delante de los títulos, celdas negras que se invierten a blanco.
   Títulos: Saira Condensed · Texto: Lexend · Cifras: JetBrains Mono
   ═══════════════════════════════════════════════════════════════════════════ */

@font-face { font-family: 'Saira Condensed'; src: url('../fonts/sairacondensed-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Saira Condensed'; src: url('../fonts/sairacondensed-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Lexend'; src: url('../fonts/lexend-var.woff2') format('woff2'); font-weight: 300 800; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrainsmono-var.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }

:root {
  --title: 'Saira Condensed', 'Arial Narrow', sans-serif;
  --ui: 'Lexend', 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Consolas', monospace;

  --gold: #e3b41a;
  --gold-deep: #b9930b;
  --gold-soft: rgba(227, 180, 26, .12);
  --bg: #050505;
  --bg-2: #0b0b0b;
  --fg: #f5f5f6;
  --mut: rgba(255, 255, 255, .58);
  --dim: rgba(255, 255, 255, .34);
  --panel: rgba(12, 12, 12, .88);
  --cell: rgba(255, 255, 255, .025);
  --cell-line: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .08);
  --bad: #e5484d;
  --ok: #4cc38a;

  --r: 3px;
  --r2: 2px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .5);
  --ease: cubic-bezier(.2, .9, .25, 1);
  --nav-h: 72px;
  --wrap: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  min-height: 100vh; overflow-x: hidden;
  font-family: var(--ui); font-weight: 400; font-size: 16px; line-height: 1.6; color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--gold); color: #000; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.gold { color: var(--gold); }
.mut { color: var(--mut); }
.sq { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 1px; background: var(--gold); }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ─── Títulos ─────────────────────────────────────────────────────────────── */
.h1, .h2, .h3, .h4 { font-family: var(--title); font-weight: 700; text-transform: uppercase; color: #fff; letter-spacing: .04em; line-height: .95; }
.h1 { font-size: clamp(48px, 8.4vw, 112px); }
.h2 { font-size: clamp(34px, 5vw, 60px); }
.h3 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.05; }
.h4 { font-size: 20px; line-height: 1.1; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 600 14px/1 var(--title); letter-spacing: .32em; text-transform: uppercase; color: var(--mut); }
.kicker .sq { width: 8px; height: 8px; }
.lead { font-size: clamp(16px, 1.4vw, 18px); font-weight: 300; color: var(--mut); max-width: 560px; }

.sec { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.sec::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 1px; background: var(--gold); }
.sec-t { font: 700 15px/1 var(--title); letter-spacing: .14em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.sec-line { flex: 1; height: 1px; background: var(--line); }
.sec-n { font: 12px/1 var(--mono); color: var(--dim); }

.block { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.block + .block { border-top: 1px solid var(--line); }
.block-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 24px 48px; align-items: end; margin-bottom: 40px; }
.block-head .lead { justify-self: end; }
@media (max-width: 860px) { .block-head { grid-template-columns: 1fr; } .block-head .lead { justify-self: start; } }

/* ─── Botones ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; white-space: nowrap;
  font: 700 18px/1 var(--title); letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg); background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r2);
  transition: background .14s, color .14s, border-color .14s, transform .14s;
}
.btn .ic { width: 18px; height: 18px; stroke-width: 2; }
.btn:hover { background: #fff; border-color: #fff; color: #000; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--gold); border-color: var(--gold); color: #000; }
.btn.primary:hover { background: #fff; border-color: #fff; }
.btn.sm { height: 40px; padding: 0 16px; font-size: 15px; }
.btn.block-w { width: 100%; }

kbd, .idx {
  display: inline-grid; place-items: center;
  min-width: 26px; height: 26px; padding: 0 7px; border-radius: var(--r2);
  font: 700 14px/1 var(--title); letter-spacing: .06em; color: #000; background: var(--gold);
  transition: background .14s, color .14s;
}
.tag {
  display: inline-grid; place-items: center; height: 24px; padding: 0 9px; border-radius: var(--r2);
  font: 700 11px/1 var(--title); letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(227, 180, 26, .5); white-space: nowrap;
}
.tag.solid { background: var(--gold); color: #000; border-color: var(--gold); }
.tag.red { color: var(--bad); border-color: rgba(229, 72, 77, .5); }
.tag.green { color: var(--ok); border-color: rgba(76, 195, 138, .5); }
.tag.white { color: #fff; border-color: rgba(255, 255, 255, .35); }
.tag.red.solid { background: var(--bad); border-color: var(--bad); color: #fff; }

/* ─── Barra de navegación ─────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s;
}
.nav.solid, .nav.open { background: rgba(5, 5, 5, .94); border-color: var(--line); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.nav .logo img { height: 44px; width: auto; }
.nav .links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav .links a {
  position: relative; padding: 10px 12px;
  font: 600 16px/1 var(--title); letter-spacing: .12em; text-transform: uppercase; color: var(--mut);
  transition: color .14s;
}
.nav .links a:hover { color: #fff; }
.nav .links a.on { color: #fff; }
.nav .links a.on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--gold); }
.nav .right { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); border-radius: var(--r2); }
.burger .ic { width: 22px; height: 22px; }

.pill {
  display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--r2); background: rgba(0, 0, 0, .5);
  font: 600 15px/1 var(--title); letter-spacing: .1em; text-transform: uppercase; color: var(--mut);
  white-space: nowrap;
}
.pill b { font: 600 14px/1 var(--mono); letter-spacing: 0; color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 0 rgba(76, 195, 138, .6); animation: ping 2s infinite; }
.dot.off { background: var(--bad); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(76, 195, 138, .55); } 70% { box-shadow: 0 0 0 9px rgba(76, 195, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(76, 195, 138, 0); } }

@media (max-width: 980px) {
  .burger { display: grid; }
  .nav .links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 24px;
    background: rgba(5, 5, 5, .98); border-top: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .nav.open .links { opacity: 1; transform: none; pointer-events: auto; }
  .nav .links a { padding: 18px 4px; font-size: 24px; border-bottom: 1px solid var(--line); }
  .nav .links a.on::after { left: auto; right: 4px; top: 50%; bottom: auto; width: 8px; height: 8px; margin-top: -4px; border-radius: 1px; }
  .nav .right .pill { display: none; }
  .nav .right { margin-left: auto; }
}
@media (max-width: 480px) { .nav .right .btn { display: none; } }

/* ─── Hero (inicio) ───────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: calc(var(--nav-h) + 40px) 0 80px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg video, .hero-bg .fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.5); }
.hero-bg .fallback { background: radial-gradient(ellipse at 70% 40%, #1a1a1a 0%, #050505 70%); filter: none; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, .96) 0%, rgba(5, 5, 5, .75) 45%, rgba(5, 5, 5, .35) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(5, 5, 5, 0) 35%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.hero h1 { margin: 22px 0 22px; }
.hero h1 .line { display: block; }
.hero .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 34px; }
.hero-logo { justify-self: center; width: min(100%, 520px); filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .7)); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
.hero-stats { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 40px; }
.stat {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 8px;
  min-width: 150px; height: 72px; padding: 0 18px;
  background: rgba(0, 0, 0, .6); border: 1px solid var(--cell-line); border-radius: var(--r2);
}
.stat .k { font: 600 12px/1 var(--title); letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }
.stat .v { font: 600 22px/1 var(--mono); color: #fff; }
.stat .v small { font-size: 14px; color: var(--dim); }
.meter { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .1); }
.meter i { display: block; height: 100%; width: 0; background: var(--gold); transition: width 1s var(--ease); }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; z-index: 1; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font: 600 12px/1 var(--title); letter-spacing: .3em; text-transform: uppercase; color: var(--dim); }
.scroll-hint i { width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); animation: drip 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-logo { order: -1; width: min(62%, 260px); justify-self: start; }
  .hero h1 { margin: 16px 0; }
  .scroll-hint { display: none; }
}

/* ─── Franja dorada que corre ─────────────────────────────────────────────── */
.marquee { overflow: hidden; background: var(--gold); color: #000; border-block: 1px solid var(--gold-deep); }
.marquee .track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 22px; padding: 16px 22px 16px 0; font: 700 26px/1 var(--title); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.marquee span::after { content: ''; width: 10px; height: 10px; background: #000; border-radius: 1px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─── Tarjetas ────────────────────────────────────────────────────────────── */
.grid { display: grid; gap: 6px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid.c3, .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; } }

.card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px;
  padding: 26px 24px 28px; color: var(--fg);
  background: var(--cell); border: 1px solid var(--cell-line); border-radius: var(--r2);
  transition: background .16s, color .16s, border-color .16s;
}
.card .top { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.card .top .ic { margin-left: auto; width: 30px; height: 30px; stroke-width: 1.5; color: var(--mut); transition: color .16s; }
.card .t { font: 700 26px/1.02 var(--title); letter-spacing: .04em; text-transform: uppercase; }
.card .d { font-size: 14.5px; font-weight: 300; line-height: 1.6; color: var(--mut); transition: color .16s; }
.card .chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.card .chips span { font: 500 12px/1 var(--ui); padding: 6px 8px; border-radius: var(--r2); background: rgba(255, 255, 255, .05); color: var(--mut); transition: background .16s, color .16s; }
.card.accent::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold); }
.card.inv:hover { background: #fff; border-color: #fff; color: #000; }
.card.inv:hover .d { color: #4a4a4a; }
.card.inv:hover .idx { background: #000; color: #fff; }
.card.inv:hover .top .ic { color: #000; }
.card.inv:hover .chips span { background: rgba(0, 0, 0, .07); color: #333; }
.card.inv.accent:hover::before { background: #000; }
.card .big-n { position: absolute; right: 14px; bottom: -22px; font: 700 150px/1 var(--title); color: rgba(255, 255, 255, .035); pointer-events: none; transition: color .16s; }
.card.inv:hover .big-n { color: rgba(0, 0, 0, .06); }

/* ─── Pasos ───────────────────────────────────────────────────────────────── */
.steps { counter-reset: s; }
.step { padding-top: 26px; }
.step .n { font: 700 72px/.8 var(--title); color: var(--gold); letter-spacing: -.01em; }
.step .t { margin-top: 18px; }

/* ─── Teclas ──────────────────────────────────────────────────────────────── */
.keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.key { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--cell); border: 1px solid var(--cell-line); border-radius: var(--r2); }
.key kbd { min-width: 44px; height: 36px; font-size: 16px; }
.key kbd.cmd { min-width: 0; font: 600 13px/1 var(--mono); letter-spacing: 0; padding: 0 9px; background: transparent; color: var(--gold); border: 1px solid rgba(227, 180, 26, .45); }
.key span { font-size: 14px; color: var(--mut); line-height: 1.35; }
.key b { display: block; font: 700 16px/1.1 var(--title); letter-spacing: .06em; text-transform: uppercase; color: #fff; margin-bottom: 2px; }

/* ─── Bloque CTA ──────────────────────────────────────────────────────────── */
/* ─── Próximamente (tienda) ───────────────────────────────────────────────── */
.soon { position: relative; overflow: hidden; min-height: 78vh; min-height: 78svh; display: flex; align-items: center; justify-content: center; text-align: center; padding: calc(var(--nav-h) + 40px) 0 60px; }
.soon .wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; position: relative; }
.soon .h1 { font-size: clamp(54px, 11vw, 150px); }
.soon .mono-bg { position: absolute; left: 50%; top: 50%; width: min(90vw, 640px); transform: translate(-50%, -50%) rotate(-8deg); opacity: .05; pointer-events: none; filter: grayscale(1) brightness(3); }

/* ─── Botón de sonido (portada) ───────────────────────────────────────────── */
.snd {
  position: absolute; right: clamp(16px, 4vw, 48px); bottom: 26px; z-index: 2;
  display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--r2); background: rgba(0, 0, 0, .55);
  font: 600 13px/1 var(--title); letter-spacing: .2em; text-transform: uppercase; color: var(--mut);
  transition: background .16s, color .16s, border-color .16s;
}
.snd .ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.snd .ic path:first-child { fill: currentColor; stroke: none; }
.snd .off, .snd.muted .on { display: none; }
.snd.muted .off { display: block; }
.snd:not(.muted) { color: var(--gold); border-color: rgba(227, 180, 26, .45); }
.snd:hover { background: #fff; color: #000; border-color: #fff; }

/* ─── Tráiler ─────────────────────────────────────────────────────────────── */
.trailer { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); background: #000; }
.trailer::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; z-index: 2; background: var(--gold); pointer-events: none; }
.trailer video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.trailer.on video { object-fit: contain; }
.trailer .play {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: linear-gradient(0deg, rgba(5, 5, 5, .75), rgba(5, 5, 5, .2) 60%), rgba(0, 0, 0, .15); transition: background .2s;
}
.trailer .ring { --s: clamp(64px, 8vw, 104px); width: var(--s); height: var(--s); flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: #000; box-shadow: 0 0 0 0 rgba(227, 180, 26, .5); animation: ring 2.2s infinite; transition: transform .2s var(--ease), background .2s; }
.trailer .ring .ic { width: 40%; height: 40%; margin-left: 6%; fill: currentColor; }
.trailer .lbl { display: flex; align-items: baseline; gap: 12px; font: 700 clamp(18px, 2vw, 24px)/1 var(--title); letter-spacing: .2em; text-transform: uppercase; color: #fff; }
.trailer .lbl small { font-size: 13px; letter-spacing: 0; color: var(--mut); }
.trailer .play:hover { background: linear-gradient(0deg, rgba(5, 5, 5, .6), rgba(5, 5, 5, .05) 60%); }
.trailer .play:hover .ring { transform: scale(1.08); background: #fff; }
.trailer.on .play { display: none; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(227, 180, 26, .45); } 70% { box-shadow: 0 0 0 22px rgba(227, 180, 26, 0); } 100% { box-shadow: 0 0 0 0 rgba(227, 180, 26, 0); } }

.cta {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center;
  padding: clamp(32px, 5vw, 64px); border-radius: var(--r);
  background: var(--panel); border: 1px solid var(--line);
}
.cta::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold); }
.cta .mono-bg { position: absolute; right: -40px; top: 50%; width: 520px; transform: translateY(-50%) rotate(-8deg); opacity: .07; pointer-events: none; filter: grayscale(1) brightness(3); }
.cta > * { position: relative; }
.cta .actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* ─── Cabecera de página interior ─────────────────────────────────────────── */
.page-head { position: relative; overflow: hidden; padding: calc(var(--nav-h) + clamp(56px, 8vw, 110px)) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-head::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 80% at 85% 0%, rgba(227, 180, 26, .1), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 120px);
}
.page-head .h1 { margin: 18px 0 18px; }
.page-head .ghost { position: absolute; right: -10px; bottom: -40px; z-index: -1; font: 700 clamp(120px, 22vw, 300px)/1 var(--title); letter-spacing: .02em; text-transform: uppercase; color: rgba(255, 255, 255, .025); white-space: nowrap; pointer-events: none; }
.crumbs { display: flex; gap: 8px; font: 600 13px/1 var(--title); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.crumbs a:hover { color: #fff; }

/* ─── Normativa (estilo documentación) ────────────────────────────────────── */
.search { position: relative; }
.search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--dim); width: 18px; height: 18px; pointer-events: none; }
.search input {
  width: 100%; height: 48px; padding: 0 14px 0 42px;
  font: 400 15px var(--ui); color: #fff; background: var(--cell);
  border: 1px solid var(--cell-line); border-radius: var(--r2); outline: none; transition: border-color .14s, background .14s;
}
.search input::placeholder { color: var(--dim); }
.search input:focus { border-color: var(--gold); background: rgba(0, 0, 0, .5); }
.search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); min-width: 22px; height: 22px; font-size: 12px; background: rgba(255, 255, 255, .08); color: var(--mut); }
.search.big input { height: 62px; font-size: 17px; padding-left: 52px; }
.search.big .ic { left: 18px; width: 22px; height: 22px; }
.notice { display: flex; gap: 12px; padding: 14px 16px; border: 1px solid rgba(227, 180, 26, .35); background: var(--gold-soft); border-radius: var(--r2); font-size: 13.5px; line-height: 1.5; color: #e9dcb0; }
.notice .ic { color: var(--gold); margin-top: 1px; }
.empty { padding: 60px 0; text-align: center; color: var(--mut); }

/* Portada de la normativa */
.nv-hub-search { max-width: 720px; margin-top: 30px; }
.nv-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.nv-quick a {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px;
  border: 1px solid var(--cell-line); border-radius: var(--r2); background: var(--cell);
  font: 600 14px/1 var(--title); letter-spacing: .08em; text-transform: uppercase; color: var(--mut);
  transition: background .14s, color .14s, border-color .14s;
}
.nv-quick a::before { content: ''; width: 6px; height: 6px; border-radius: 1px; background: var(--gold); }
.nv-quick a:hover { background: #fff; color: #000; border-color: #fff; }
.nv-quick a:hover::before { background: #000; }
.nv-group { margin-top: 44px; }
.nv-doc { min-height: 230px; }
.nv-doc .tile { width: 52px; height: 52px; display: grid; place-items: center; border-radius: var(--r2); background: var(--gold); color: #000; transition: background .16s, color .16s; }
.nv-doc .tile .ic { width: 26px; height: 26px; }
.nv-doc .meta { display: flex; gap: 14px; margin-top: auto; padding-top: 18px; font: 12.5px/1 var(--mono); color: var(--dim); transition: color .16s; }
.nv-doc .go { position: absolute; right: 20px; top: 24px; width: 22px; height: 22px; color: var(--dim); transition: transform .16s, color .16s; }
.card.inv.nv-doc:hover .tile { background: #000; color: var(--gold); }
.card.inv.nv-doc:hover .meta { color: #555; }
.card.inv.nv-doc:hover .go { color: #000; transform: translateX(4px); }

/* Documento: menú | contenido | en esta página */
.nv { display: grid; grid-template-columns: 260px minmax(0, 1fr) 210px; gap: 44px; align-items: start; padding-top: 34px; padding-bottom: 90px; }
.nv-side, .nv-toc { position: sticky; top: calc(var(--nav-h) + 22px); max-height: calc(100vh - var(--nav-h) - 44px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #333 transparent; }
.nv-side { display: flex; flex-direction: column; gap: 18px; padding-right: 4px; }
.nv-side .gname { display: flex; align-items: center; gap: 9px; margin: 6px 0 8px; font: 700 13px/1 var(--title); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.nv-side .gname::before { content: ''; width: 6px; height: 6px; border-radius: 1px; background: var(--gold); }
.nv-dl { display: flex; align-items: center; gap: 10px; padding: 10px 10px; border-radius: var(--r2); font: 600 16px/1.15 var(--title); letter-spacing: .06em; text-transform: uppercase; color: var(--mut); transition: background .14s, color .14s; }
.nv-dl .ic { width: 18px; height: 18px; flex: none; }
.nv-dl:hover { color: #fff; background: var(--cell); }
.nv-dl.on { color: #000; background: #fff; }
.nv-secs { display: flex; flex-direction: column; margin: 4px 0 8px 18px; padding-left: 12px; border-left: 1px solid var(--line); }
.nv-secs a { position: relative; display: flex; gap: 9px; padding: 6px 4px; font-size: 13.5px; line-height: 1.3; color: var(--mut); transition: color .14s; }
.nv-secs a .n { font: 500 12px/1.4 var(--mono); color: var(--dim); min-width: 18px; }
.nv-secs a:hover { color: #fff; }
.nv-secs a.on { color: #fff; }
.nv-secs a.on::before { content: ''; position: absolute; left: -13px; top: 4px; bottom: 4px; width: 2px; background: var(--gold); }
.nv-secs a.on .n { color: var(--gold); }

.nv-toc h6 { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font: 700 13px/1 var(--title); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.nv-toc a { display: block; padding: 5px 0 5px 12px; border-left: 1px solid var(--line); font-size: 13px; line-height: 1.35; color: var(--mut); transition: color .14s, border-color .14s; }
.nv-toc a:hover { color: #fff; }
.nv-toc a.on { color: var(--gold); border-color: var(--gold); }
.nv-toc a.sub { padding-left: 24px; font-size: 12.5px; color: var(--dim); }

/* Cabecera del documento */
.nv-head { padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.nv-head .h1 { font-size: clamp(42px, 6vw, 76px); margin: 14px 0 14px; }
.nv-head .lead { max-width: 680px; }
.nv-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.nv-meta span { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 11px; border: 1px solid var(--cell-line); border-radius: var(--r2); font: 12.5px/1 var(--mono); color: var(--mut); }
.nv-meta b { color: #fff; font-weight: 600; }
.nv-intro { margin-top: 22px; padding: 18px 20px; border-left: 3px solid var(--gold); background: rgba(255, 255, 255, .025); font-size: 15.5px; font-weight: 300; line-height: 1.65; color: #d6d6d8; }
.nv-intro b { color: #fff; font-weight: 600; }

/* Secciones */
.nv-sec { padding-top: 44px; }
.nv-sec-h { display: flex; align-items: flex-end; gap: 16px; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.nv-sec-h .big { font: 700 58px/.78 var(--title); color: var(--gold); flex: none; }
.nv-sec-h h2 { font: 700 clamp(26px, 3vw, 34px)/1 var(--title); letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.nv-sec-h .tag { margin-left: 4px; align-self: center; }
.nv-sec-h .lnk { margin-left: auto; align-self: center; width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--r2); color: var(--dim); transition: background .14s, color .14s; }
.nv-sec-h .lnk:hover { background: var(--gold); color: #000; }
.nv-sec-h .lnk .ic { width: 16px; height: 16px; }
.nv-sec > .nv-p:first-of-type { margin-top: 14px; }
.nv-p { margin: 14px 0; font-size: 15.5px; font-weight: 300; line-height: 1.7; color: #d2d2d4; max-width: 820px; }
.nv-p b, .nv-rule b, .nv-note b, .nv-list b { color: #fff; font-weight: 600; }
.nv-h { display: flex; align-items: center; gap: 10px; margin: 30px 0 6px; font: 700 18px/1.1 var(--title); letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.nv-h::before { content: ''; width: 8px; height: 8px; border-radius: 1px; background: var(--gold); }

.nv-rule { position: relative; display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 14px; padding: 15px 10px 15px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); scroll-margin-top: calc(var(--nav-h) + 24px); }
.nv-rule.nonum { grid-template-columns: minmax(0, 1fr); padding-left: 16px; border-left: 2px solid rgba(227, 180, 26, .4); border-bottom: 0; margin: 10px 0; }
.nv-rule .code {
  align-self: start; justify-self: start; height: 26px; padding: 0 7px; border-radius: var(--r2);
  font: 600 13.5px/26px var(--mono); color: var(--gold); background: none; cursor: pointer;
  transition: background .14s, color .14s;
}
.nv-rule .code:hover { background: var(--gold); color: #000; }
.nv-rule .tx { font-size: 15.5px; font-weight: 300; line-height: 1.65; color: #d2d2d4; }
.nv-rule .tt { display: block; margin-bottom: 3px; font: 700 18px/1.25 var(--title); letter-spacing: .05em; text-transform: uppercase; color: #fff; }
.nv-rule.flash { animation: flash 2.2s ease-out; }
@keyframes flash { 0%, 30% { background: rgba(227, 180, 26, .16); } 100% { background: transparent; } }
.nv-rule mark, .nv-p mark, .nv-note mark, .nv-list mark, .nv-res mark { background: var(--gold); color: #000; border-radius: 1px; padding: 0 2px; }

.nv-note { display: flex; gap: 12px; margin: 12px 0; padding: 14px 16px; border-radius: var(--r2); border: 1px solid rgba(227, 180, 26, .3); border-left: 3px solid var(--gold); background: var(--gold-soft); font-size: 14.5px; line-height: 1.6; color: #e8e0c4; }
.nv-note .ic { width: 18px; height: 18px; color: var(--gold); margin-top: 2px; }
.nv-note.danger { border-color: rgba(229, 72, 77, .35); border-left-color: var(--bad); background: rgba(229, 72, 77, .08); color: #f0cfd0; }
.nv-note.danger .ic { color: var(--bad); }
.nv-note.ok { border-color: rgba(76, 195, 138, .35); border-left-color: var(--ok); background: rgba(76, 195, 138, .07); color: #cfeadb; }
.nv-note.ok .ic { color: var(--ok); }
.nv-note.info { border-color: var(--line); border-left-color: var(--mut); background: rgba(255, 255, 255, .03); color: #cfcfd1; }
.nv-note.info .ic { color: var(--mut); }

.nv-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 12px 0 14px; }
.nv-list li { position: relative; padding-left: 24px; font-size: 15px; font-weight: 300; line-height: 1.6; color: #d2d2d4; }
.nv-list li::before { content: ''; position: absolute; left: 4px; top: 10px; width: 6px; height: 6px; border-radius: 1px; background: var(--gold); }
.nv-list.ok li::before, .nv-list.bad li::before { width: 16px; height: 16px; top: 4px; left: 0; background: none; font: 700 14px/16px var(--mono); text-align: center; }
.nv-list.ok li::before { content: '✓'; color: var(--ok); }
.nv-list.bad li::before { content: '✕'; color: var(--bad); }
.nv-list.code li { font: 400 14px/1.5 var(--mono); color: #e9dcb0; }
.nv-list.code li::before { content: '›'; background: none; width: auto; height: auto; top: 0; left: 6px; color: var(--gold); font: 700 15px/1.5 var(--mono); }

.nv-places { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; margin: 16px 0; }
.nv-place { position: relative; padding: 14px 16px; border: 1px solid var(--cell-line); background: var(--cell); border-radius: var(--r2); }
.nv-place b { display: block; font: 700 17px/1.15 var(--title); letter-spacing: .05em; text-transform: uppercase; color: #fff; }
.nv-place span { display: block; margin-top: 4px; font-size: 13px; color: var(--mut); line-height: 1.4; }
.nv-place.always { border-color: rgba(227, 180, 26, .45); padding-top: 38px; }
.nv-place.always::after { content: 'Siempre'; position: absolute; right: 10px; top: 10px; height: 20px; padding: 0 7px; border-radius: var(--r2); background: var(--gold); color: #000; font: 700 10px/20px var(--title); letter-spacing: .14em; text-transform: uppercase; }

/* Anterior / siguiente */
.nv-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 60px; }
.nv-pager a { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--cell-line); background: var(--cell); border-radius: var(--r2); transition: background .14s, color .14s, border-color .14s; }
.nv-pager a.next { text-align: right; grid-column: 2; }
.nv-pager small { font: 600 12px/1 var(--title); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.nv-pager b { font: 700 22px/1.1 var(--title); letter-spacing: .04em; text-transform: uppercase; }
.nv-pager a:hover { background: #fff; border-color: #fff; color: #000; }
.nv-pager a:hover small { color: #555; }

/* Resultados de búsqueda */
.nv-results-h { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 18px; }
.nv-res { display: block; padding: 14px 16px; margin-bottom: 6px; border: 1px solid var(--cell-line); background: var(--cell); border-radius: var(--r2); transition: border-color .14s, background .14s; }
.nv-res:hover { border-color: rgba(227, 180, 26, .5); background: rgba(227, 180, 26, .05); }
.nv-res .w { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; font: 600 12.5px/1 var(--title); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.nv-res .w .c { font: 600 12.5px/1 var(--mono); letter-spacing: 0; color: var(--gold); }
.nv-res .x { font-size: 14.5px; font-weight: 300; line-height: 1.55; color: #d2d2d4; }
.nv-res .x b { color: #fff; font-weight: 600; }

/* Móvil: el menú se abre con un botón */
.nv-mtoggle { display: none; }
@media (max-width: 1180px) { .nv { grid-template-columns: 240px minmax(0, 1fr); } .nv-toc { display: none; } }
@media (max-width: 860px) {
  .nv { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 18px; }
  .nv-mtoggle { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 50px; padding: 0 16px; margin-bottom: 10px; border: 1px solid var(--cell-line); border-radius: var(--r2); background: var(--cell); font: 700 16px/1 var(--title); letter-spacing: .1em; text-transform: uppercase; }
  .nv-side { position: static; max-height: none; display: none; margin-bottom: 18px; padding: 14px; border: 1px solid var(--cell-line); border-radius: var(--r2); background: rgba(0, 0, 0, .4); }
  .nv.menu-open .nv-side { display: flex; }
  .nv-rule { grid-template-columns: 50px minmax(0, 1fr); gap: 8px; }
  .nv-sec-h .big { font-size: 44px; }
  .nv-pager { grid-template-columns: 1fr; }
  .nv-pager a.next { grid-column: 1; }
}

/* ─── Tienda ──────────────────────────────────────────────────────────────── */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(0, 0, 0, .4); margin-bottom: 28px; flex-wrap: wrap; }
.tabs button { height: 42px; padding: 0 18px; border-radius: var(--r2); font: 700 16px/1 var(--title); letter-spacing: .1em; text-transform: uppercase; color: var(--mut); transition: background .14s, color .14s; }
.tabs button:hover { color: #fff; }
.tabs button.on { background: #fff; color: #000; }
.pkg { padding: 0; }
.pkg .pk-top { padding: 26px 24px 22px; border-bottom: 1px solid var(--line); }
.pkg .pk-top .row { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.pkg .price { display: flex; align-items: baseline; gap: 6px; margin-top: 14px; }
.pkg .price b { font: 700 54px/1 var(--title); color: #fff; letter-spacing: .01em; }
.pkg .price span { font: 500 13px/1 var(--mono); color: var(--dim); }
.pkg ul { list-style: none; display: flex; flex-direction: column; gap: 11px; padding: 22px 24px; flex: 1; }
.pkg li { display: flex; gap: 10px; font-size: 14.5px; font-weight: 300; color: #d4d4d6; line-height: 1.45; }
.pkg li .ic { width: 18px; height: 18px; color: var(--gold); margin-top: 1px; stroke-width: 2.4; }
.pkg .pk-foot { padding: 0 24px 24px; }
.pkg.hot { border-color: rgba(227, 180, 26, .55); background: linear-gradient(180deg, rgba(227, 180, 26, .08), transparent 40%), var(--cell); }
.pkg.hot::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold); }
.pkg .tier-ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: var(--r2); background: rgba(255, 255, 255, .06); color: var(--gold); }
.pkg .tier-ic .ic { width: 24px; height: 24px; }
.pkg.hot .tier-ic { background: var(--gold); color: #000; }
.coin-amt { font: 700 44px/1 var(--title); color: #fff; }
.coin-amt small { font-size: 18px; color: var(--gold); margin-left: 6px; letter-spacing: .1em; }
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 40px; }
.trust div { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--cell-line); border-radius: var(--r2); }
.trust .ic { width: 26px; height: 26px; color: var(--gold); }
.trust b { display: block; font: 700 17px/1.1 var(--title); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.trust span { font-size: 13.5px; color: var(--mut); font-weight: 300; }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr; } }

.ribbon { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 16px; background: repeating-linear-gradient(45deg, #1a1606 0 14px, #120f04 14px 28px); border-bottom: 1px solid rgba(227, 180, 26, .35); font: 600 13px/1.3 var(--title); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); text-align: center; }
.ribbon { margin-top: var(--nav-h); }
.page-head.after-ribbon { padding-top: clamp(48px, 7vw, 96px); }

/* ─── Nosotros ────────────────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.prose p { font-size: 17px; font-weight: 300; color: #cfcfd1; margin-bottom: 18px; }
.prose p strong { color: #fff; font-weight: 500; }
.numbers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.numbers div { padding: 26px 22px; border: 1px solid var(--cell-line); background: var(--cell); border-radius: var(--r2); }
.numbers b { display: block; font: 700 64px/.9 var(--title); color: #fff; }
.numbers b em { font-style: normal; color: var(--gold); }
.numbers span { display: block; margin-top: 10px; font: 600 14px/1.2 var(--title); letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }
.member { align-items: flex-start; }
.member .av {
  position: relative; width: 72px; height: 72px; margin-bottom: 16px; border-radius: var(--r2); overflow: hidden;
  display: grid; place-items: center; background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
  font: 700 28px/1 var(--title); color: var(--mut); transition: background .16s, color .16s;
}
.member .av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.member .av::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold); }
.member .role { font: 600 13px/1 var(--title); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.card.inv:hover .role { color: #000; }
.card.inv:hover .av { background: #000; color: #fff; }

/* ─── Preguntas ───────────────────────────────────────────────────────────── */
.faq { display: flex; flex-direction: column; gap: 6px; }
.faq details { border: 1px solid var(--cell-line); background: var(--cell); border-radius: var(--r2); transition: border-color .14s; }
.faq details[open] { border-color: rgba(227, 180, 26, .45); }
.faq summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 20px 22px; cursor: pointer; font: 700 19px/1.2 var(--title); letter-spacing: .05em; text-transform: uppercase; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; margin-left: auto; width: 28px; height: 28px; display: grid; place-items: center; flex: none; border-radius: var(--r2); background: rgba(255, 255, 255, .06); color: var(--gold); font: 400 22px/1 var(--mono); transition: background .14s, color .14s; }
.faq details[open] summary::after { content: '−'; background: var(--gold); color: #000; }
.faq .ans { padding: 0 22px 22px; font-size: 15px; font-weight: 300; color: #cfcfd1; max-width: 820px; }
.faq .ans a { color: var(--gold); }

/* ─── Pie ─────────────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding: 64px 0 36px; background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot .logo img { height: 70px; width: auto; }
.foot p { font-size: 14px; font-weight: 300; color: var(--mut); margin-top: 18px; max-width: 320px; }
.foot h5 { display: flex; align-items: center; gap: 9px; font: 700 14px/1 var(--title); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.foot h5::before { content: ''; width: 7px; height: 7px; border-radius: 1px; background: var(--gold); }
.foot ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot li a { font-size: 14px; color: var(--mut); transition: color .14s; }
.foot li a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 54px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--dim); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ─── Aviso flotante ──────────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); padding: 10px 18px 10px 10px;
  background: rgba(14, 14, 14, .97); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  font-size: 14px; transition: opacity .2s, transform .25s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .ti { width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--r2); background: var(--gold); color: #000; flex: none; }
.toast .ti .ic { width: 16px; height: 16px; stroke-width: 2.6; }

/* ─── Aparecer al hacer scroll ────────────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .06s; } .rv.d2 { transition-delay: .12s; } .rv.d3 { transition-delay: .18s; } .rv.d4 { transition-delay: .24s; } .rv.d5 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}
