/* Sala Táctica — hoja de estilos
   Charcoal: gris carbón neutro de fondo, como las webs de noticias. Las fotos y los paneles HUD son aún más oscuros.
   Un solo acento (ámbar = dinero). Verde/rojo solo para ganancia/pérdida; azul/rojo/verde solo para facciones.
   Tipos: Anybody (titulares, condensada) · IBM Plex Sans (texto) · IBM Plex Mono (cifras y etiquetas). */
:root {
  --bg: #191C20;
  --bg-2: #202429;
  --surface: #22262C;
  --line: #2E333A;
  --line-2: #3D434B;
  --text: #E9EBEE;
  --muted: #A7ADB5;
  --dim: #7B828B;

  --accent: #EFBA53;          /* ámbar claro: texto y enlaces sobre charcoal */
  --accent-bright: #E4AA2E;
  --accent-soft: rgba(228, 170, 46, .13);
  --accent-ink: #171208;
  --profit: #73C47C;
  --loss: #EF8272;
  --lonestar: #7CA6E6;
  --valkyra: #EE7466;
  --manticore: #74BF6C;

  /* Superficies más oscuras: barras, paneles HUD y fotos */
  --bar: #121418;
  --hud: #14171B;
  --hud-2: #1D2126;
  --hud-line: #2E333A;
  --hud-text: #ECEDEF;
  --hud-muted: #969B9F;

  --display: "Anybody", "Arial Narrow", sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --head-h: 64px;
  --r-sm: 3px;
  --r-md: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.7 var(--body); overflow-x: hidden;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--accent-bright); text-underline-offset: .2em; text-decoration-thickness: 1.5px; transition: color .2s var(--ease); }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent-bright); color: var(--accent-ink); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent-bright); color: var(--accent-ink); padding: 8px 12px; z-index: 60; }
.skip:focus { left: 8px; }
/* Fuera de la vista pero presente para lectores de pantalla y buscadores */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- Tipografía ---------- */
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2, .display {
  font-family: var(--display); font-stretch: 62%; font-weight: 850;
  text-transform: uppercase; letter-spacing: .022em;
}
h1 { font-size: clamp(42px, 6.4vw, 88px); line-height: .96; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.02; }
h3 { font: 600 20px/1.35 var(--body); }
p { margin: 0 0 1.1em; text-wrap: pretty; }
.eyebrow { font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.lede { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; color: var(--muted); max-width: 58ch; }
.meta { font: 400 13px var(--mono); color: var(--dim); display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 18px 0 0; }
.money { font-family: var(--mono); font-weight: 500; white-space: nowrap; }
.pos { color: var(--profit); }
.neg { color: var(--loss); }
.note { font-size: 14px; color: var(--dim); }

/* ---------- Cabecera ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 40; height: var(--head-h); background: var(--bar); color: var(--hud-text); }
.top__in { max-width: var(--wrap); height: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 20px; }
body { padding-top: var(--head-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--hud-text); margin-right: auto; }
.brand:hover { color: var(--hud-text); }
.brand__mark {
  font: 900 20px/1 var(--display); font-stretch: 80%; background: var(--accent-bright); color: var(--accent-ink);
  width: 28px; height: 28px; display: grid; place-items: center;
  clip-path: polygon(0 0, 100% 0, 100% 74%, 74% 100%, 0 100%);
}
.brand__name { font: 850 24px/1 var(--display); font-stretch: 62%; text-transform: uppercase; letter-spacing: .01em; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer;
  color: var(--hud-muted); text-decoration: none; font: 500 14.5px var(--body);
  padding: 9px 12px; border-radius: var(--r-sm); position: relative;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav__link:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav__link[aria-current="page"], .nav__link.is-current { color: #fff; }
.nav__link[aria-current="page"]::after, .nav__link.is-current::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; background: var(--accent-bright);
}
.nav__chev { transition: transform .22s var(--ease); opacity: .8; }
.nav__btn[aria-expanded="true"] { color: #fff; background: rgba(255,255,255,.06); }
.nav__btn[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }

.menu {
  position: absolute; top: calc(100% + 10px); left: -8px; z-index: 45; width: max-content; max-width: 420px;
  background: var(--hud-2); border: 1px solid var(--line-2); border-radius: var(--r-md);
  padding: 16px; box-shadow: 0 26px 60px -28px rgba(0,0,0,.85);
  animation: menuin .18s var(--ease);
}
.menu[hidden] { display: none; }
@keyframes menuin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.menu::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.menu__intro { font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-bright); margin: 0 0 12px; }
.menu__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.menu__list a {
  display: block; padding: 9px 10px; border-radius: var(--r-sm); text-decoration: none;
  transition: background .18s var(--ease);
}
.menu__list a:hover { background: rgba(255,255,255,.06); color: inherit; }
.menu__list a[aria-current="page"] { background: var(--accent-soft); }
.menu__t { display: block; color: var(--hud-text); font-weight: 600; font-size: 15px; line-height: 1.3; }
.menu__d { display: block; color: var(--hud-muted); font-size: 13px; line-height: 1.4; margin-top: 2px; }

.nav__cta {
  margin-left: 6px; padding: 9px 14px; border-radius: var(--r-sm); text-decoration: none; white-space: nowrap;
  font: 600 14.5px var(--body); color: var(--accent-bright); border: 1px solid rgba(228,170,46,.45);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav__cta:hover { background: var(--accent-bright); color: var(--accent-ink); }

.menu-btn { display: none; background: none; border: 1px solid var(--hud-line); color: var(--hud-text); font: 500 14px var(--body); padding: 7px 14px; border-radius: var(--r-sm); cursor: pointer; }
.menu-btn:active { transform: translateY(1px); }

@media (max-width: 1100px) {
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--head-h);
    background: var(--bar); border-bottom: 1px solid var(--line-2);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px; max-height: calc(100dvh - var(--head-h)); overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { width: 100%; justify-content: space-between; padding: 15px 0; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link[aria-current="page"]::after, .nav__link.is-current::after { display: none; }
  .nav__link[aria-current="page"], .nav__link.is-current { color: var(--accent-bright); }
  .nav__link:hover { background: none; }
  .menu { position: static; width: auto; max-width: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; background: none; padding: 4px 0 14px; animation: none; }
  .menu__intro { display: none; }
  .menu__list a { padding: 10px 12px; background: var(--hud-2); }
  .nav__cta { margin: 16px 0 0; text-align: center; }
}

/* ---------- Botones ---------- */
.btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: var(--r-sm);
  font: 600 16px var(--body); text-decoration: none; background: var(--accent-bright); color: var(--accent-ink);
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.btn:hover { background: #F2BC47; color: var(--accent-ink); transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.99); }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--text); display: inline-flex; gap: 8px; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Portada ---------- */
.hero { max-width: var(--wrap); margin: 0 auto; padding: 56px var(--gutter) 0; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 420px); gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 26px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { margin-bottom: 30px; }
@media (max-width: 1000px) { .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 36px; } }

.section { max-width: var(--wrap); margin: 0 auto; padding: 104px var(--gutter) 0; }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.section__head h2 { max-width: 18ch; }
.section__head p { color: var(--muted); max-width: 42ch; margin: 0; }
@media (max-width: 700px) { .section__head { flex-direction: column; align-items: start; } .section { padding-top: 80px; } }

/* Rejilla de guías */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 200px; gap: 12px; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--r-md); text-decoration: none; color: #fff;
  background: var(--hud); display: flex; flex-direction: column; justify-content: end; padding: 22px; isolation: isolate;
  border: 1px solid var(--line);
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,12,14,.94) 0%, rgba(10,12,14,.5) 48%, rgba(10,12,14,.08) 100%); }
.tile:hover { color: #fff; }
.tile:hover img { transform: scale(1.045); }
.tile__k { font: 500 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-bright); }
.tile h3 { font: 850 clamp(26px, 2.4vw, 34px)/1.02 var(--display); font-stretch: 62%; text-transform: uppercase; margin: 8px 0 8px; }
.tile p { margin: 0; color: #D7D9DB; font-size: 15px; line-height: 1.5; max-width: 40ch; }
.tile--xl { grid-column: span 6; grid-row: span 2; padding: 30px; }
.tile--xl h3 { font-size: clamp(36px, 3.6vw, 52px); }
.tile--l { grid-column: span 6; }
.tile--m { grid-column: span 4; }
@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 210px; }
  .tile--xl { grid-column: span 2; grid-row: span 2; }
  .tile--l, .tile--m { grid-column: span 1; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: 190px; }
  .tile--xl, .tile--l, .tile--m { grid-column: span 1; }
  .tile--xl { grid-row: span 2; }
}

/* Cifras */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line-2); }
.fact { padding: 26px 24px 24px 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact b { display: block; font: 850 clamp(38px, 4.6vw, 58px)/.98 var(--display); font-stretch: 62%; }
.fact span { font: 400 13px var(--mono); color: var(--muted); }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Facciones */
.factions { border-top: 1px solid var(--line-2); }
.faction { display: grid; grid-template-columns: 14px minmax(0, 200px) 1fr; gap: 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.faction::before { content: ""; width: 14px; height: 14px; background: var(--c); align-self: center; }
.faction h3 { font: 850 32px/1 var(--display); font-stretch: 62%; text-transform: uppercase; color: var(--c); margin: 0; }
.faction p { margin: 0; color: var(--muted); }
@media (max-width: 600px) { .faction { grid-template-columns: 14px 1fr; } .faction p { grid-column: 2; } }

/* Galería horizontal */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 38%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; }
.gallery img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r-md); scroll-snap-align: start; }
.gallery + .callout { margin-top: 44px; }
@media (max-width: 600px) { .gallery { grid-auto-columns: 84%; } }

/* ---------- Cabecera de artículo ---------- */
.phead { position: relative; isolation: isolate; }
.phead__in { max-width: var(--wrap); margin: 0 auto; padding: 48px var(--gutter) 24px; }
.phead h1 { max-width: 18ch; margin-bottom: 20px; }
.phead--img { min-height: min(56dvh, 480px); display: flex; align-items: end; color: #fff; }
.phead--img .phead__in { width: 100%; padding-top: 120px; padding-bottom: 40px; }
.phead--img .lede { color: #D9DBDD; }
.phead--img .meta, .phead--img .crumbs { color: #ADB1B4; }
.phead--img .crumbs a { color: #D9DBDD; }
.phead--img .crumbs [aria-current] { color: #fff; }
.phead--img .eyebrow { color: var(--accent-bright); }
.phead__media { position: absolute; inset: 0; z-index: -1; background: var(--hud); }
.phead__media img { width: 100%; height: 100%; object-fit: cover; }
.phead__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 0%, rgba(25,28,32,.72) 48%, rgba(25,28,32,.34) 100%); }
.crumbs { font: 400 12.5px var(--mono); color: var(--dim); display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--text); }

/* ---------- Artículo: índice | texto | carril ---------- */
.doc {
  max-width: var(--wrap); margin: 0 auto; padding: 32px var(--gutter) 104px;
  display: grid; grid-template-columns: 190px minmax(0, 700px) 300px; gap: 40px; justify-content: space-between; align-items: start;
}
.doc--notoc { grid-template-columns: minmax(0, 680px) 300px; }
.page-plain .doc { grid-template-columns: minmax(0, 680px); justify-content: start; }
.toc { position: sticky; top: calc(var(--head-h) + 24px); font-size: 14px; }
.toc__t { font: 500 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--text); font-weight: 600; border-left-color: var(--accent-bright); }
.rail { position: sticky; top: calc(var(--head-h) + 24px); }
@media (max-width: 1180px) {
  .doc, .doc--notoc { grid-template-columns: minmax(0, 680px) 300px; }
  .toc { display: none; }
}
@media (max-width: 960px) {
  .doc, .doc--notoc { grid-template-columns: minmax(0, 1fr); padding-bottom: 80px; }
  .rail { display: none; }
}

/* Prosa */
.prose { min-width: 0; }
.prose > h2 { margin: 64px 0 16px; padding-top: 20px; position: relative; }
.prose > h2::before { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 3px; background: var(--accent-bright); }
.prose > h2:first-child { margin-top: 0; }
.prose > h3 { margin: 38px 0 10px; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1.4em; }
.prose li { margin-bottom: .5em; padding-left: .2em; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 600; color: #FFFFFF; }

/* Figuras con capturas */
.shot { margin: 34px 0; }
.shot img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r-md); background: var(--bg-2); }
.shot figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 10px; font: 400 13px/1.5 var(--mono); color: var(--muted); }
.shot__credit { color: var(--dim); white-space: nowrap; }
.shot--wide { margin: 44px 0; }
@media (max-width: 600px) { .shot figcaption { flex-direction: column; gap: 2px; } }

/* Cuadros */
.callout { background: var(--surface); border: 1px solid var(--line-2); padding: 20px 22px; margin: 30px 0; border-radius: var(--r-md); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout__t { font: 850 22px/1 var(--display); font-stretch: 62%; text-transform: uppercase; margin-bottom: 10px; color: var(--accent); }
.callout--warn { border-color: rgba(239,130,114,.42); }
.callout--warn .callout__t { color: var(--loss); }

/* Tablas */
.table-scroll { overflow-x: auto; margin: 24px 0 32px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); white-space: nowrap; background: var(--bg-2); border-bottom-color: var(--line-2); }
td.num, th.num { text-align: right; font-family: var(--mono); white-space: nowrap; }
tbody tr { transition: background .15s var(--ease); }
tbody tr:hover { background: var(--accent-soft); }
.tier { display: inline-grid; place-items: center; width: 30px; height: 30px; font: 900 18px/1 var(--display); font-stretch: 80%; border-radius: var(--r-sm); color: #fff; }
.tier--s { background: #A8760C; } .tier--a { background: #2F7A3C; } .tier--b { background: #2C5FA8; } .tier--c { background: #6E7276; }

/* ---------- Paneles oscuros tipo HUD ---------- */
.hud {
  background: var(--hud); color: var(--hud-text); border-radius: var(--r-md); overflow: hidden;
  font: 400 14px/1.45 var(--mono); border: 1px solid var(--line-2);
  box-shadow: 0 24px 50px -30px rgba(8, 10, 12, .6);
}
.hud__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 18px; background: var(--hud-2); border-bottom: 1px solid var(--hud-line); }
.hud__title { font: 850 20px/1 var(--display); font-stretch: 62%; text-transform: uppercase; letter-spacing: .02em; }
.hud__id { color: var(--hud-muted); font-size: 12px; }
.hud__row { display: grid; grid-template-columns: 1fr auto 92px; gap: 14px; padding: 10px 18px; border-bottom: 1px solid var(--hud-line); align-items: baseline; }
.hud__row small { display: block; color: var(--hud-muted); font-size: 12px; }
.hud__amt { text-align: right; font-weight: 500; }
.hud__bal { text-align: right; color: var(--hud-muted); white-space: nowrap; }
.hud__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; background: rgba(228,170,46,.12); }
.hud__total { font: 850 34px/1 var(--display); font-stretch: 70%; color: var(--accent-bright); }
.hud__delta { font-weight: 500; }
.hud .pos { color: #6FC47A; }
.hud .neg { color: #F0806F; }
.prose .hud { margin: 28px 0; }
.hud--hero .hud__row { opacity: 0; transform: translateY(6px); animation: rowin .45s var(--ease) forwards; }
@keyframes rowin { to { opacity: 1; transform: none; } }
@media (max-width: 480px) { .hud__row { grid-template-columns: 1fr auto; } .hud__bal { display: none; } }

/* Barra de peso del equipo */
.weight { padding: 14px 18px; border-bottom: 1px solid var(--hud-line); }
.weight__bar { position: relative; height: 8px; background: var(--hud-2); border-radius: 99px; overflow: hidden; margin: 8px 0 6px; }
.weight__fill { position: absolute; inset: 0 auto 0 0; background: var(--accent-bright); }
.weight__fill.is-heavy { background: #F0806F; }
.weight__scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--hud-muted); }

/* ---------- Calculadoras ---------- */
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; margin: 28px 0; }
.tool__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.tool label { display: block; font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.tool input, .tool select {
  width: 100%; font: 500 18px var(--mono); padding: 11px 12px; background: var(--bg); color: var(--text);
  border: 1px solid var(--line-2); border-radius: var(--r-sm); transition: border-color .2s var(--ease);
}
.tool input:hover, .tool select:hover { border-color: var(--dim); }
.tool input:focus, .tool select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tool__out { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line-2); display: flex; flex-wrap: wrap; gap: 10px 32px; align-items: baseline; color: var(--muted); }
.tool__out b { font: 850 42px/1 var(--display); font-stretch: 70%; color: var(--accent); margin-left: 6px; }

/* ---------- Anuncios ---------- */
.ad { margin: 40px 0; }
.ad__label { display: block; font: 400 10.5px var(--mono); color: var(--dim); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.ad__ph { display: grid; place-items: center; border: 1px dashed var(--line-2); border-radius: var(--r-sm); color: var(--dim); font: 400 12px var(--mono); background: var(--bg-2); }
.ad--top .ad__ph, .ad--bottom .ad__ph { min-height: 100px; }
.ad--inarticle .ad__ph { min-height: 250px; }
.ad--side { margin: 0; }
.ad--side .ad__ph { min-height: 600px; }

/* ---------- Pie ---------- */
.foot { margin-top: 96px; background: var(--bar); color: var(--hud-muted); }
.foot__in { max-width: var(--wrap); margin: 0 auto; padding: 48px var(--gutter) 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.foot__about { max-width: 42ch; }
.foot__about p { font-size: 15px; margin: 14px 0 0; }
.foot__nav { display: grid; grid-template-columns: repeat(2, auto); gap: 6px 40px; align-content: start; }
.foot a { color: #D3D6D8; text-decoration: none; font-size: 15px; }
.foot a:hover { color: var(--accent-bright); }
.foot__legal { max-width: var(--wrap); margin: 0 auto; padding: 18px var(--gutter) 28px; border-top: 1px solid var(--hud-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font: 400 12px var(--mono); }
.foot__legal p { margin: 0; }
.foot__legal a { margin-left: 18px; font-size: 12px; }
.foot__legal a:first-child { margin-left: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hud--hero .hud__row { opacity: 1; transform: none; }
}

/* ---------- Noticias ---------- */
.news-block { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .news-block { grid-template-columns: 1fr; gap: 28px; } }

.banner { background: var(--hud); color: var(--hud-text); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 24px; }
.prose > .banner { margin: 0 0 32px; }
.banner__k { font: 500 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-bright); margin: 0 0 10px; }
.banner__t { font: 850 clamp(26px, 2.6vw, 34px)/1.04 var(--display); font-stretch: 62%; text-transform: uppercase; margin: 0 0 10px; }
.banner__d { font: 400 14px var(--mono); color: var(--hud-muted); margin: 0 0 14px; }
.banner .link-arrow { color: var(--accent-bright); }
.banner .link-arrow:hover { color: #F0BB45; }
.countdown { color: var(--accent-bright); }

.news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.news__item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.news__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font: 400 12.5px var(--mono); color: var(--dim); margin: 0 0 8px; }
.news__tag { background: var(--accent-soft); color: var(--accent); padding: 2px 8px; border-radius: var(--r-sm); letter-spacing: .04em; text-transform: uppercase; font-size: 11px; }
.news__title { font: 600 21px/1.3 var(--body); margin: 0 0 6px; }
.news__title a { text-decoration: none; }
.news__title a:hover { color: var(--accent); }
.news__sum { color: var(--muted); margin: 0 0 10px; font-size: 16px; }
.news__item .link-arrow { font-size: 15px; }

/* Calculadora de la portada: panel HUD con los controles dentro */
.hud.tool { background: var(--hud); border: 1px solid var(--line-2); padding: 0; margin: 0; }
.hud.tool .tool__grid { padding: 18px 20px 4px; }
.hud.tool label { color: var(--hud-muted); }
.hud.tool input, .hud.tool select { background: var(--hud-2); border-color: var(--hud-line); color: var(--hud-text); }
.hud.tool input:focus, .hud.tool select:focus { border-color: var(--accent-bright); }
.hud.tool .tool__out { margin: 0; padding: 16px 20px; border-top: 1px dashed var(--hud-line); background: var(--accent-soft); color: var(--hud-muted); }
.hud.tool .tool__out b { color: var(--accent-bright); font-size: 34px; }
.tool__note { margin: 0; padding: 14px 20px; border-top: 1px solid var(--hud-line); font-size: 14px; }
.tool__note .link-arrow { color: var(--hud-text); font-size: 14px; }
.tool__note .link-arrow:hover { color: var(--accent-bright); }

/* ---------- Mapa interactivo ---------- */
.map { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; margin: 26px 0 32px; align-items: start; }
@media (max-width: 860px) { .map { grid-template-columns: 1fr; } }

.map__canvas {
  position: relative; aspect-ratio: 1 / 1; border: 1px solid var(--line-2); border-radius: var(--r-md);
  overflow: hidden; background: var(--hud);
}
.map__canvas img { width: 100%; height: 100%; object-fit: cover; }
.map__placeholder {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 6px; padding: 24px;
  color: var(--hud-muted); font: 400 14px/1.5 var(--mono);
  background-image: linear-gradient(var(--hud-line) 1px, transparent 1px), linear-gradient(90deg, var(--hud-line) 1px, transparent 1px);
  background-size: 12.5% 12.5%, 12.5% 12.5%;
}
.map__placeholder p { font: 850 26px/1 var(--display); font-stretch: 62%; text-transform: uppercase; color: var(--hud-text); margin: 0; }

.map__pin {
  position: absolute; transform: translate(-50%, -50%); width: 26px; height: 26px; padding: 0; cursor: pointer;
  border-radius: 50%; border: 2px solid var(--c); background: rgba(20, 23, 27, .85); color: var(--c);
  font: 600 12px/1 var(--mono); display: grid; place-items: center;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.map__pin:hover, .map__pin.is-active { transform: translate(-50%, -50%) scale(1.22); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 28%, transparent); }
.map__pin[hidden] { display: none; }

.map__side { display: grid; gap: 10px; }
.map__k { font: 500 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 0; }
.map__layer { display: grid; grid-template-columns: auto auto 1fr; gap: 10px; align-items: start; cursor: pointer; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.map__layer:hover { border-color: var(--line-2); }
.map__layer input { accent-color: var(--accent-bright); margin-top: 3px; }
.map__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-top: 6px; }
.map__ltxt b { display: block; font-size: 14px; font-weight: 600; }
.map__ltxt small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.map__info { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); padding: 14px; min-height: 120px; }
.map__info h3 { font: 600 17px/1.3 var(--body); margin: 6px 0 6px; }
.map__info p { margin: 0; font-size: 14.5px; color: var(--muted); }
.map__cap { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.map__empty { color: var(--dim); font-size: 14px; }

/* ---------- Tier list de armas ---------- */
.tier--d { background: #8A3B3B; }
.tier--x { background: #3A4048; }

/* Una sola columna: dentro del artículo no caben dos. La ficha se queda fija arriba
   para que al pulsar un arma del fondo de la lista el cambio se vea sin hacer scroll. */
.wpn { display: grid; gap: 14px; margin: 26px 0 36px; }
.wpn__panel { position: sticky; top: calc(var(--head-h) + 12px); z-index: 5; }
.wpn__tiers { display: grid; gap: 10px; }

.trow { display: grid; grid-template-columns: 156px minmax(0, 1fr); gap: 8px 18px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.trow__lab { display: flex; align-items: center; gap: 10px; }
.trow__t { font: 600 14px/1.2 var(--body); }
.trow__t small { display: block; margin-top: 3px; font: 400 11.5px var(--mono); color: var(--dim); }
.trow__items { display: flex; flex-wrap: wrap; gap: 6px; }
.trow__d { grid-column: 2; margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
@media (max-width: 1100px) {
  .trow { grid-template-columns: 1fr; }
  .trow__d { grid-column: 1; }
}

.chip {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; cursor: pointer;
  padding: 8px 11px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--hud-2); color: var(--hud-text); font: 600 13.5px/1.15 var(--body);
  transition: background .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease);
}
.chip__p { font: 400 11px var(--mono); color: var(--hud-muted); }
.chip:hover { border-color: var(--dim); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--accent-bright); border-color: var(--accent-bright); color: var(--accent-ink); }
.chip[aria-pressed="true"] .chip__p { color: rgba(23, 18, 8, .72); }

.wcard {
  background: var(--hud); color: var(--hud-text); border: 1px solid var(--line-2); border-radius: var(--r-md);
  overflow: hidden; box-shadow: 0 24px 50px -30px rgba(8, 10, 12, .6); animation: wcardin .2s var(--ease);
}
.wcard[hidden] { display: none; }
@keyframes wcardin { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.wcard__top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; background: var(--hud-2); border-bottom: 1px solid var(--hud-line); }
.wcard__id b { display: block; font: 850 24px/1 var(--display); font-stretch: 62%; text-transform: uppercase; letter-spacing: .022em; }
.wcard__id small { display: block; margin-top: 4px; font: 400 11.5px var(--mono); color: var(--hud-muted); }
.wcard__p { font: 500 15px var(--mono); color: var(--accent-bright); white-space: nowrap; }
.wcard__stats { margin: 0; padding: 13px 16px 15px; display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 12px 16px; }
.wst dt { font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--hud-muted); }
.wst dd { margin: 5px 0 0; display: grid; gap: 7px; font: 500 19px/1 var(--mono); }
.wst__bar { display: block; height: 4px; background: var(--hud-2); border-radius: 99px; overflow: hidden; }
.wst__bar i { display: block; height: 100%; background: var(--accent-bright); }
.wst.is-empty dd { color: var(--dim); }
.wcard__note { margin: 0; padding: 14px 16px; border-top: 1px solid var(--hud-line); background: var(--accent-soft); font: 400 14px/1.55 var(--body); }

.wtable caption { caption-side: bottom; text-align: left; padding-top: 12px; }
.wtable tbody th { font: 600 15px var(--body); text-transform: none; letter-spacing: 0; white-space: nowrap; background: transparent; color: var(--text); border-bottom-color: var(--line); }
.wtable .tier { width: 24px; height: 24px; font-size: 14px; }

@media (max-width: 600px) {
  .wpn__panel { top: var(--head-h); padding-top: 8px; background: var(--bg); }
  .wcard__id b { font-size: 20px; }
  .wcard__p { font-size: 14px; }
  .wcard__stats { grid-template-columns: repeat(3, 1fr); gap: 10px 14px; padding: 11px 14px 13px; }
  .wst dd { font-size: 15px; }
  .wcard__note { padding: 11px 14px; font-size: 13px; }
}

/* ---------- Herramientas: pantalla completa sobre una captura del juego ----------
   Paleta propia: el acero frío es la carcasa (bordes, etiquetas, estados apagados)
   y el ámbar se reserva para las cifras, que es la regla del resto del sitio.
   El desenfoque de los paneles no es decoración: es lo que hace legible el texto
   sobre la fotografía. */
.app {
  --glass: rgba(16, 19, 23, .78);
  --glass-2: rgba(27, 32, 38, .82);
  --edge: rgba(132, 156, 178, .20);
  --edge-2: rgba(132, 156, 178, .34);
  --chrome: #9AACBE;
  --grid: rgba(132, 156, 178, .06);
  --grid-2: rgba(132, 156, 178, .13);
  /* Escala de espaciado única. Todo lo de dentro sale de estos cuatro valores,
     y el padding horizontal es siempre --pad para que todo alinee a la izquierda. */
  --frame: clamp(12px, 1.2vw, 20px);  /* marco exterior, igual en los cuatro lados */
  --gap: 12px;                        /* entre bloques */
  --gap-m: 8px;                       /* entre tarjetas hermanas */
  --gap-s: 6px;                       /* entre controles de un mismo grupo */
  --pad: 14px;                        /* padding interno de cualquier bloque */
  position: relative;
  isolation: isolate;
  min-height: calc(100dvh - var(--head-h));
  display: flex;
}
/* En escritorio la herramienta ocupa exactamente el hueco entre la cabecera y el
   pie: la página no llega a desplazarse, así que no sale barra de scroll y el
   margen izquierdo y el derecho quedan iguales. Lo que sobra lo desplazan las
   columnas por dentro. */
@media (min-width: 861px) {
  /* Altura fija, no mínima: si fuera mínima el contenido la empujaría y volvería
     a aparecer la barra de scroll que descuadra los márgenes. */
  body.page-tool { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
  body.page-tool main { flex: 1; display: flex; min-height: 0; }
  .app { flex: 1; height: auto; min-height: 0; overflow: hidden; }
  .cash__col { overflow: auto; }
}
/* En una herramienta el pie se queda en lo imprescindible: los enlaces legales.
   El resto de navegación sobra cuando la página es una aplicación. */
.page-tool .foot { margin-top: 0; }
.page-tool .foot__in { display: none; }
.page-tool .foot__legal { border-top: 0; padding-top: 22px; }
.app__bg { position: absolute; inset: 0; z-index: -1; background: #0B0D0F; overflow: hidden; }
.app__bg::before {
  content: ""; position: absolute; inset: 0;
  background: var(--shot) center / cover no-repeat;
  filter: saturate(.42) brightness(.44) contrast(1.08);
}
.app__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(180deg, rgba(10, 12, 14, .52) 0%, rgba(10, 12, 14, .80) 52%, rgba(10, 12, 14, .93) 100%);
}
/* Retícula de instrumento: trama mayor marcada, subdivisión tenue y desvanecido
   hacia los bordes, para que lea como un visor y no como papel cuadriculado. */
.app__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-2) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 132px 132px, 132px 132px, 44px 44px, 44px 44px;
  -webkit-mask-image: radial-gradient(120% 95% at 50% 32%, #000 30%, transparent 100%);
  mask-image: radial-gradient(120% 95% at 50% 32%, #000 30%, transparent 100%);
}

/* La herramienta usa todo el ancho: no es un artículo, no tiene medida de lectura */
/* Sin cabecera: la herramienta empieza en el borde superior y llena la pantalla */
.app__in {
  width: 100%; padding: var(--frame);
  display: flex; flex-direction: column; min-height: 0;
}

/* Las superficies que no dibujamos también son del diseño */
.app * { scrollbar-width: thin; scrollbar-color: var(--edge-2) rgba(0, 0, 0, .22); }
.app ::-webkit-scrollbar { width: 9px; height: 9px; }
.app ::-webkit-scrollbar-track { background: rgba(0, 0, 0, .22); }
.app ::-webkit-scrollbar-thumb { background: var(--edge-2); border-radius: 99px; }
.app ::-webkit-scrollbar-thumb:hover { background: var(--chrome); }

.panel {
  background: var(--glass); border: 1px solid var(--edge); border-radius: 8px; padding: var(--pad);
  backdrop-filter: blur(16px) saturate(1.15); -webkit-backdrop-filter: blur(16px) saturate(1.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045), 0 18px 40px -30px rgba(0, 0, 0, .9);
}
.panel__t { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--chrome); margin: 0 0 12px; }
.panel__n { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--chrome); opacity: .8; }
.panel--grow { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.panel--grow .pills { overflow: auto; min-height: 0; flex: 1; align-content: flex-start; }
.panel--table .table-scroll { overflow: auto; min-height: 0; flex: 1; margin: 0; }

/* ---------- Calculadora de dinero ---------- */
/* Izquierda elige, centro responde, derecha compara. El chooser tiene techo porque
   más ancho no lo mejora; la tabla crece porque es la que agradece el sitio. */
.cash { display: grid; grid-template-columns: clamp(248px, 16vw, 320px) minmax(0, 1fr) clamp(412px, 27vw, 540px); gap: var(--gap); flex: 1; min-height: 0; }
.cash__col { display: flex; flex-direction: column; gap: var(--gap); min-height: 0; min-width: 0; }
/* Nada dentro de una columna se encoge: el que no cabe se desplaza, no se aplasta */
.cash__col > * { flex: none; }
.cash__col > .panel--grow { flex: 1; }

/* En pantallas anchas la zona y los detalles van uno al lado del otro en vez de
   apilados: aprovecha el ancho que sobra y evita el scroll interno del centro. */
/* grid-auto-rows explícito: con `auto`, el panel del resultado (que lleva overflow
   hidden) colapsaba a la altura de sus bordes dentro del contenedor con scroll. */
.cash__col--mid { display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: min-content; gap: var(--gap); align-content: start; }
@media (min-width: 1500px) {
  .cash__col--mid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cash__col--mid > .cash__out, .cash__col--mid > .zcards { grid-column: 1 / -1; }
}

.acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(66px, 1fr)); gap: var(--gap-s); }
.act {
  display: grid; justify-items: center; gap: 7px; padding: 13px 5px; cursor: pointer; text-align: center;
  background: var(--glass-2); border: 1px solid var(--edge); border-radius: var(--r-sm);
  color: var(--chrome); font: 500 11.5px/1.2 var(--body);
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.act svg { width: 22px; height: 22px; }
.act:hover:not(:disabled) { color: #E4EAF0; border-color: var(--edge-2); background: rgba(40, 48, 57, .85); }
.act[aria-pressed="true"] { background: var(--accent-bright); border-color: var(--accent-bright); color: var(--accent-ink); }
.act.is-soon { opacity: .34; cursor: not-allowed; }

.pills { display: flex; flex-wrap: wrap; gap: var(--gap-s); }
.pill {
  padding: 7px 10px; cursor: pointer; border-radius: var(--r-sm); text-align: left;
  background: var(--glass-2); border: 1px solid var(--edge); color: #D3DBE3; font: 500 12.5px/1.25 var(--body);
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.pill:hover { border-color: var(--edge-2); color: #fff; }
.pill[aria-pressed="true"] { background: var(--accent-bright); border-color: var(--accent-bright); color: var(--accent-ink); font-weight: 600; }

.zmap { width: 100%; height: auto; display: block; margin-bottom: 14px; }
.zmap__out { fill: rgba(10, 12, 14, .55); stroke: var(--edge-2); }
.zmap__cz { fill: rgba(228, 170, 46, .09); stroke: rgba(228, 170, 46, .42); }
.zmap__hz { fill: rgba(228, 170, 46, .20); stroke: var(--accent-bright); }
.zmap__dot { transition: cx .28s var(--ease); stroke: #0B0D0F; stroke-width: 2; }
.zmap__dot--yo { fill: var(--accent-bright); }
.zmap__dot--obj { fill: var(--loss); }

.zone__picks { display: grid; gap: 13px; }
.zone__who { display: flex; align-items: center; gap: 7px; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--chrome); margin-bottom: 7px; }
.zone__who i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }

.seg { display: flex; gap: var(--gap-s); }
.seg__b {
  flex: 1 1 0; min-width: 0; padding: 8px 4px; cursor: pointer; border-radius: var(--r-sm);
  display: grid; justify-items: center; gap: 5px;
  background: var(--glass-2); color: #D3DBE3; border: 1px solid var(--edge); font: 600 11.5px/1.2 var(--body);
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.seg__b:hover { border-color: var(--edge-2); color: #fff; }
.seg__b[aria-pressed="true"] { background: var(--accent-bright); border-color: var(--accent-bright); color: var(--accent-ink); }

.cash__field + .cash__field { margin-top: 15px; }
.cash__lab { display: block; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--chrome); margin-bottom: 8px; }
.cash__lab b { color: var(--accent); font-weight: 500; }
.cash input[type="range"] { width: 100%; accent-color: var(--accent-bright); margin: 0; }

.cash__out {
  background: var(--glass); border: 1px solid var(--edge-2); border-radius: 8px; overflow: hidden;
  backdrop-filter: blur(16px) saturate(1.15); -webkit-backdrop-filter: blur(16px) saturate(1.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 26px 54px -30px rgba(0, 0, 0, .85);
}
.cash__out .hud__head { padding: 12px var(--pad); background: rgba(0, 0, 0, .28); border-bottom-color: var(--edge); }
.cash__out .hud__id { color: var(--chrome); }
.cash__big { margin: 0; padding: 14px var(--pad) 4px; font: 850 clamp(44px, 5vw, 64px)/1 var(--display); font-stretch: 70%; color: var(--accent-bright); }
.cash__eq { margin: 0; padding: 11px var(--pad) 12px; font: 400 12px/1.5 var(--mono); color: var(--chrome); background: rgba(0, 0, 0, .18); }

/* Fila de factores: cifra grande, etiqueta diminuta debajo */
.stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1px; background: var(--edge); border-top: 1px solid var(--edge); }
.stat { display: grid; gap: 5px; padding: 10px var(--pad) 12px; background: rgba(0, 0, 0, .26); min-width: 0; }
.stat b { font: 500 19px/1 var(--mono); color: #E9EEF3; }
.stat span { font: 500 9.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--chrome); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat.is-off b { color: var(--chrome); opacity: .6; }
.stat.is-pos b { color: #7ED08A; }
.stat.is-neg b { color: #F0806F; }

/* Escala de color de la tabla: rampa de ámbar, porque aquí más dinero es siempre mejor */
.hb--0 { background: rgba(228, 170, 46, .035); color: #93A4B5; }
.hb--1 { background: rgba(228, 170, 46, .07); color: #A8B4C0; }
.hb--2 { background: rgba(228, 170, 46, .11); color: #BEC2C1; }
.hb--3 { background: rgba(228, 170, 46, .17); color: #D5C8A8; }
.hb--4 { background: rgba(228, 170, 46, .24); color: #E8CC8E; }
.hb--5 { background: rgba(228, 170, 46, .33); color: #F2D07C; }
.hb--6 { background: rgba(228, 170, 46, .46); color: #FFDD88; }
.scale { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.scale__k { font: 500 10px var(--mono); letter-spacing: .06em; color: var(--chrome); }
.scale i { flex: 1; height: 7px; border-radius: 2px; }

.zcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-m); }
.zcard {
  display: grid; gap: 6px; padding: 12px var(--pad); text-align: left; cursor: pointer;
  background: var(--glass); border: 1px solid var(--edge); border-radius: var(--r-md); color: var(--chrome);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}
.zcard:hover { border-color: var(--edge-2); color: #D3DBE3; }
.zcard.is-on { border-color: var(--accent-bright); background: rgba(228, 170, 46, .12); }
.zcard__k { font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.zcard__v { font: 850 clamp(20px, 2vw, 27px)/1 var(--display); font-stretch: 70%; color: var(--accent-bright); }

.ptable { background: none; font-size: 12.5px; border-spacing: 0; }
.ptable th, .ptable td { padding: 7px 10px; border-bottom: 1px solid rgba(132, 156, 178, .13); }
.ptable thead th { position: sticky; top: 0; z-index: 1; background: #171B20; color: var(--chrome); font-size: 10px; letter-spacing: .1em; border-bottom-color: var(--edge-2); }
.ptable tbody th { font: 500 12.5px/1.3 var(--body); text-transform: none; letter-spacing: 0; white-space: normal; background: none; color: #C8D2DB; }
.ptable tbody td { font-family: var(--mono); font-weight: 500; }
.ptable tbody tr:hover th { color: #fff; }
.ptable tbody tr.is-on { outline: 1px solid rgba(228, 170, 46, .55); outline-offset: -1px; }
.ptable tbody tr.is-on th { color: var(--accent); font-weight: 600; }

@media (max-width: 1180px) {
  .cash { grid-template-columns: 280px minmax(0, 1fr); }
  .cash__col:last-child { grid-column: 1 / -1; max-height: 340px; }
}
@media (max-width: 860px) {
  .app { min-height: 0; }
  .app__in { padding-bottom: 32px; }
  .cash { grid-template-columns: 1fr; }
  .cash__col { min-height: 0; }
  .cash__col--mid { order: -1; overflow: visible; }
  .cash__col:last-child { max-height: none; }
  .panel--grow { flex: none; }
  .panel--grow .pills { overflow: visible; }
  /* La tabla conserva su scroll propio: si no, ensancha la página entera */
  .panel--table .table-scroll { overflow: auto; max-height: 420px; }
}
@media (max-width: 560px) {
  .zcards { grid-template-columns: 1fr; }
  .zcard { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  /* Cuatro factores en una fila no caben en un móvil: van de dos en dos */
  .stats { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cash__big { padding: 13px 16px 4px; }
  .cash__eq, .cash__rows { padding-left: 16px; padding-right: 16px; }
}
