/* ===========================================================
   Casino al Grano — hoja de estilos principal
   Paleta editorial propia · tinta, vino, amatista, marfil y cempasúchil
   =========================================================== */

:root {
  /* superficies */
  --ink:        #0c0b10;
  --ink-2:      #111019;
  --surface:    #181622;
  --surface-2:  #211d2b;
  --surface-3:  #2c2638;
  --line:       #44384d;
  --line-soft:  #2b2534;

  /* texto */
  --text:       #eee9e4;
  --text-strong:#fffaf4;
  --muted:      #b8abb5;
  --muted-2:    #887b88;

  /* acentos */
  --jade:       #b58cff;
  --jade-dim:   #6e3bbd;
  --jade-soft:  rgba(181, 140, 255, .13);
  --amber:      #f0b44d;
  --amber-soft: rgba(240, 180, 77, .12);
  --rose:       #bf315f;
  --rose-soft:  rgba(191, 49, 95, .14);
  --brand-logo-purple: #6f1635;
  --terracotta: #d9784a;
  --terracotta-soft: rgba(217, 120, 74, .13);
  --cochinilla: #8d1d45;
  --bugambilia: #a44cd3;

  /* medidas */
  --wrap:       1320px;
  --wrap-tight: 760px;
  --r-sm:       8px;
  --r:          14px;
  --r-lg:       20px;
  --shadow:     0 1px 2px rgba(20,12,4,.45), 0 12px 32px -12px rgba(20,12,4,.7);
  --shadow-lg:  0 24px 60px -24px rgba(20,12,4,.9);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Manrope", var(--sans);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 4%, rgba(111,22,53,.17), transparent 26rem),
    radial-gradient(circle at 92% 28%, rgba(110,59,189,.10), transparent 32rem),
    var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  color-scheme: dark;
}
html { scroll-padding-top: 118px; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--jade); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--text-strong); line-height: 1.2; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.75rem, 1.12rem + 2.45vw, 2.8rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.32rem, 1.02rem + 1.25vw, 1.82rem); margin-top: 2.25em; }
h3 { font-size: clamp(1.08rem, .98rem + .48vw, 1.27rem); margin-top: 1.7em; }
h4 { font-size: 1rem; margin-top: 1.35em; }
p  { margin: 0 0 1.15em; }
ul, ol { margin: 0 0 1.3em; padding-left: 1.35em; }
li { margin-bottom: .5em; }
li::marker { color: var(--jade); }
strong { color: var(--text-strong); font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); padding: .15em .4em; border-radius: 5px; color: var(--amber); }
:focus-visible { outline: 2px solid var(--jade); outline-offset: 3px; border-radius: 4px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--jade); color: #0c0b10; padding: 10px 18px; border-radius: 0 0 var(--r-sm) 0; font-weight: 700;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgba(15,17,21,.97);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.hdr::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--cochinilla) 0 44%, var(--amber) 44% 58%, var(--jade-dim) 58% 100%);
  opacity: .9;
}
.hdr__in { display: flex; align-items: center; gap: 22px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 38px; height: 38px; flex: 0 0 auto; }
.brand__txt { font-family: var(--display); font-weight: 800; font-size: 1.08rem; letter-spacing: -.035em; color: var(--text-strong); line-height: 1.05; white-space: nowrap; }
.brand__txt b { color: var(--jade); font-weight: 800; }
.brand__txt span { display: block; font-family: var(--sans); font-size: .58rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__list > li { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px; border-radius: 9px;
  font-size: .89rem; font-weight: 600; color: var(--text);
  background: none; border: 0; font-family: inherit; cursor: pointer;
}
.nav__link:hover { background: var(--surface-2); color: var(--text-strong); text-decoration: none; }
.nav__link[aria-current="page"] { color: var(--text-strong); background: transparent; box-shadow: inset 0 -2px var(--rose); }
.nav__link svg { width: 12px; height: 12px; opacity: .6; transition: transform .18s ease; }
.nav__link[aria-expanded="true"] svg { transform: rotate(180deg); }

.drop {
  position: absolute; top: calc(100% + 9px); left: 0; min-width: 580px;
  display: grid; grid-template-columns: repeat(2, minmax(240px, 1fr)); gap: 2px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: 8px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .16s ease;
}
.nav__link[aria-expanded="true"] + .drop { opacity: 1; visibility: visible; transform: none; }
/* Abrir al pasar el ratón solo donde hay ratón. En una pantalla táctil el dedo
   deja el elemento en estado :hover después de tocarlo, y esa regla acababa
   ganando por especificidad sobre la de aria-expanded: el submenú se marcaba
   como abierto y no se veía. */
@media (hover: hover) and (pointer: fine) {
  .nav__list > li:hover > .drop { opacity: 1; visibility: visible; transform: none; }
}
.drop a { display: block; padding: 9px 12px; border-radius: 9px; font-size: .9rem; color: var(--text); font-weight: 500; }
.drop a:hover { background: var(--surface-2); color: var(--jade); text-decoration: none; }
.drop a small { display: block; color: var(--muted-2); font-size: .78rem; font-weight: 400; }
.nav__list > li > .drop { left: auto; right: 0; }

.burger { display: none; margin-left: auto; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); width: 42px; height: 42px; border-radius: 11px; cursor: pointer; align-items: center; justify-content: center; }
.burger svg { width: 20px; height: 20px; }

/* ---------- encabezado editorial, sin bloque hero ---------- */
.pagehead {
  max-width: 1120px; margin-inline: auto; padding: 32px 0 24px;
  border-bottom: 1px solid var(--line-soft);
}
.pagehead__kicker { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 14px; color: var(--muted-2); font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pagehead__grid { display: grid; grid-template-columns: 7px minmax(0,1fr); gap: 18px; }
.pagehead__rail { border-radius: 999px; background: linear-gradient(180deg, var(--rose), var(--amber) 55%, var(--jade)); }
.pagehead h1 { max-width: 24ch; margin-bottom: .3em; text-wrap: balance; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--rose); margin: 0; padding: 0; border-radius: 0;
  background: transparent;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--rose); }
.pagehead__lead { font-size: .98rem; color: var(--muted); max-width: 78ch; margin-bottom: 16px; text-wrap: pretty; }

.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 0 0; border-top: 1px solid var(--line-soft); }
.byline__ava { width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto; border: 1px solid var(--line); object-fit: cover; object-position: center 30%; }
.byline__mark { width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto; border: 1px solid var(--line); display: grid; place-items: center; background: var(--jade-soft); color: var(--jade); font-family: var(--display); font-size: .72rem; font-weight: 800; letter-spacing: .06em; }
.byline__name { font-weight: 700; color: var(--text-strong); font-size: .96rem; }
.byline__role { font-size: .79rem; color: var(--muted); }
.byline__meta { margin-left: auto; font-size: .8rem; color: var(--muted-2); text-align: right; }
.byline__meta b { color: var(--text); font-weight: 600; }

/* ---------- vitrina prioritaria, inmediatamente después del encabezado ---------- */
.market { max-width: 1120px; margin: 18px auto 0; padding: 14px; border: 1px solid var(--line-soft); border-radius: var(--r-lg); background: linear-gradient(145deg, rgba(111,22,53,.14), rgba(24,22,34,.94) 38%, rgba(110,59,189,.10)); box-shadow: var(--shadow); }
.market__bar { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.market__title { margin: 0; color: var(--text-strong); font-family: var(--display); font-size: .88rem; line-height: 1.25; letter-spacing: -.01em; }
.market__bar span { color: var(--muted-2); font-size: .7rem; }
.market .vit, .market .rank { margin-bottom: 8px; }
.market__fine { margin: 0; color: var(--muted-2); font-size: .66rem; line-height: 1.4; }
.market-return { margin: 12px 0 1.5em; font-size: .78rem; }
.market-return a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }

/* ---------- grid principal ---------- */
.layout { display: block; max-width: 1120px; margin-inline: auto; padding: 10px 0 72px; }
.aside { position: sticky; top: 88px; display: grid; gap: 18px; }

/* ---------- prosa ---------- */
.prose { max-width: none; }
.prose p a, .prose li a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose p a:hover, .prose li a:hover { text-decoration-thickness: 2px; }
.prose > p, .prose > ul, .prose > ol { max-width: 100%; text-wrap: pretty; }
.prose > p + p { margin-top: -.18em; }
.prose > p:first-of-type { font-size: 1rem; }
.prose h2 { padding-left: 0; border-left: 0; }
.prose h3 { position: static; padding-left: 0; }
.prose h3::before { content: none; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; line-height: 1.5; }
.tablewrap { overflow-x: auto; margin: 0 0 1.6em; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--jade) var(--surface-2); }
.tablewrap table { min-width: 0; }
.prose th { text-align: left; font-family: var(--display); font-weight: 750; font-size: .74rem; letter-spacing: .055em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); padding: 13px 15px; border-bottom: 1px solid var(--line); white-space: normal; line-height: 1.35; }
.prose td { padding: 14px 15px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody tr:nth-child(even) td { background: rgba(255,255,255,.012); }
.prose tbody tr:hover td { background: rgba(181,140,255,.04); }
.prose td:first-child { color: var(--text-strong); }

/* Comparaciones de 3–4 columnas: tabla real, no una pila de tarjetas. */
.tablewrap--comparison {
  width: min(1320px, calc(100vw - 40px)); margin-left: 50%; margin-right: 0;
  transform: translateX(-50%); box-shadow: 0 10px 32px -28px rgba(0,0,0,.85);
}
.table--comparison { min-width: 760px !important; table-layout: fixed; }
.table--comparison th:first-child { width: 23%; }
.table--comparison thead th { color: var(--text-strong); background: var(--surface-2); border-bottom-color: var(--line); }
.table--comparison thead th:nth-child(n) { box-shadow: none; }
.table--comparison tbody td { padding: 12px 14px; font-size: .86rem; line-height: 1.48; }
.table--comparison tbody td[role="rowheader"] {
  position: sticky; left: 0; z-index: 1; background: var(--surface-2) !important;
  color: var(--text-strong); font-family: var(--display); font-weight: 750;
  box-shadow: 1px 0 0 var(--line);
}
.table--comparison tbody tr:nth-child(even) td[role="rowheader"] { background: var(--surface-3) !important; }
.table--comparison tbody tr:hover td { background: color-mix(in srgb, var(--surface) 94%, var(--jade)); }

/* Las tablas con párrafos no son matrices: cada fila se lee como una ficha. */
.tablewrap--record-cards { overflow: visible; border: 0; border-radius: 0; background: transparent; }
.table--record-cards,
.table--record-cards tbody { display: block; width: 100%; }
.table--record-cards thead {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.table--record-cards tbody { display: grid; gap: 14px; }
.table--record-cards tbody tr {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  overflow: hidden; border: 1px solid var(--line); border-left: 4px solid var(--jade);
  border-radius: var(--r); background: var(--surface);
}
.table--record-cards tbody td {
  display: block; min-width: 0; padding: 14px 16px; border: 0;
  border-bottom: 1px solid var(--line-soft); background: transparent !important;
}
.table--record-cards tbody td:nth-child(even) { border-left: 1px solid var(--line-soft); }
.table--record-cards tbody td:first-child {
  grid-column: 1 / -1; border-left: 0; background: var(--surface-2) !important;
  color: var(--text-strong); font-size: 1rem;
}
.table--record-cards tbody td:last-child { border-bottom: 0; }
.table--record-cards tbody td::before {
  content: attr(data-label); display: block; margin: 0 0 6px;
  color: var(--jade); font-family: var(--display); font-size: .69rem;
  font-weight: 800; letter-spacing: .065em; line-height: 1.3; text-transform: uppercase;
}
.table--record-cards tbody tr:hover { border-color: color-mix(in srgb, var(--jade) 55%, var(--line)); }
.tablewrap--wide table { min-width: 760px; }
.entity { display: inline-flex; align-items: center; gap: 10px; min-width: max-content; }
.entity__logo { width: 40px; height: 40px; flex: 0 0 40px; object-fit: contain; border-radius: 10px; padding: 4px; background: #fff; border: 1px solid rgba(8,24,39,.12); }
.entity--cover .entity__logo { width: 48px; height: 48px; flex-basis: 48px; padding: 0; object-fit: cover; border-radius: 9px; }
.entity b { line-height: 1.2; }

blockquote { margin: 0 0 1.5em; padding: 4px 0 4px 20px; border-left: 3px solid var(--jade); color: var(--muted); font-size: 1.02rem; }

/* callouts */
.note {
  display: grid; grid-template-columns: 26px 1fr; gap: 14px;
  padding: 16px 18px; border-radius: var(--r); margin: 0 0 1.6em;
  background: var(--surface); border: 1px solid var(--line); font-size: .95rem;
}
.note p:last-child { margin-bottom: 0; }
.note__ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: .8rem; font-family: var(--display); }
.note--tip    { border-color: rgba(181,140,255,.3);  background: linear-gradient(var(--jade-soft), var(--jade-soft)) , var(--surface); }
.note--tip .note__ico    { background: var(--jade); color: #0c0b10; }
.note--warn   { border-color: rgba(240,180,77,.3); background: linear-gradient(var(--amber-soft), var(--amber-soft)), var(--surface); }
.note--warn .note__ico   { background: var(--amber); color: #1a1200; }
.note--alert  { border-color: rgba(191,49,95,.3);  background: linear-gradient(var(--rose-soft), var(--rose-soft)), var(--surface); }
.note--alert .note__ico  { background: var(--rose); color: #1a0004; }
.note b:first-child { color: var(--text-strong); }

/* pasos numerados */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 1.8em; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 16px 18px 16px 60px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin: 0; }
.steps li::before {
  content: counter(s); position: absolute; left: 18px; top: 15px;
  width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  background: var(--jade-soft); border: 1px solid rgba(181,140,255,.3); color: var(--jade);
  font-family: var(--display); font-weight: 800; font-size: .9rem;
}
.steps b { display: block; color: var(--text-strong); font-family: var(--display); margin-bottom: 2px; }
.steps li:nth-child(3n+2)::before { background: var(--amber-soft); border-color: rgba(240,180,77,.35); color: var(--amber); }
.steps li:nth-child(3n)::before { background: var(--terracotta-soft); border-color: rgba(214,106,69,.4); color: var(--terracotta); }

/* tarjetas de perfil / criterios */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 14px; margin: 0 0 1.8em; }
.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px; padding: 16px; }
.card:nth-child(3n+1), .card:nth-child(3n+2), .card:nth-child(3n) { border-top: 1px solid var(--line-soft); }
.card h4 { margin: 0 0 6px; font-size: 1rem; }
.card p { margin: 0; font-size: .91rem; color: var(--muted); }
.card__tag { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin-bottom: 8px; }

/* fichas visuales de una familia de juegos: imagen real + dato verificable */
.game-family {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  margin: 0 0 1.8em;
}
.game-family__item {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px;
}
.game-family__item:nth-child(n) { border-top-color: var(--line); }
.game-family__item img {
  width: 112px; height: 112px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line);
}
.game-family__item h3 { margin: 3px 0 7px; font-size: 1rem; }
.game-family__item p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.game-family__maker { color: var(--jade); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

/* lista de comprobación */
.checks { list-style: none; padding: 0; margin: 0 0 1.8em; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 34px; margin: 0; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 6px;
  background: var(--jade-soft); border: 1px solid rgba(181,140,255,.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b58cff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 13px; background-repeat: no-repeat; background-position: center;
}
.checks--x li::before {
  background-color: var(--rose-soft); border-color: rgba(191,49,95,.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bf315f' stroke-width='3.4' stroke-linecap='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
}

/* ---------- vitrina por tema ----------
   Tarjeta compacta: la misma marca del ranking, pero con el dato que pide la
   página en la que está. Rejilla fluida, sin media queries. */
.vit {
  display: grid; gap: 12px; margin: 0 0 2em; counter-reset: ficha;
  grid-template-columns: repeat(auto-fit, minmax(276px, 1fr));
}
.vit__card {
  counter-increment: ficha;
  position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 7px;
  overflow: hidden; background: linear-gradient(150deg, rgba(111,22,53,.11), transparent 46%), var(--surface); border: 1px solid var(--line-soft);
  border-radius: 16px; padding: 15px 14px 13px;
  transition: border-color .18s ease, background-color .18s ease;
}
.vit__card::before {
  content: "FICHA " counter(ficha, decimal-leading-zero); position: absolute; top: 8px; right: 10px;
  color: var(--muted-2); font: 700 .52rem/1 var(--mono); letter-spacing: .08em;
}
.vit__card:nth-child(3n+2)::before { background: var(--amber); }
.vit__card:nth-child(3n)::before { background: var(--terracotta); }
.vit__card:hover { border-color: rgba(181,140,255,.44); background: color-mix(in srgb, var(--surface) 94%, var(--jade)); }
.vit__card:nth-child(3n+1),
.vit__card:nth-child(3n+2),
.vit__card:nth-child(3n) { background: var(--surface); border-color: var(--line-soft); }
.vit__top { display: flex; align-items: center; gap: 11px; padding-right: 50px; }
.vit__logo {
  width: 56px; height: 56px; flex: 0 0 56px; border-radius: 10px; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line);
  display: grid; place-items: center;
}
.vit__logo img { width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: center; }
.vit__logo span {
  font-family: var(--display); font-weight: 800; font-size: .56rem; color: var(--muted);
  text-align: center; line-height: 1.15; padding: 0 3px;
}
.vit__id { min-width: 0; flex: 1 1 auto; }
.vit__name {
  font-family: var(--display); font-weight: 800; font-size: .98rem; color: var(--text-strong);
  margin: 0 0 2px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
}
.vit__segob {
  font-family: var(--sans); font-size: .58rem; font-weight: 700; letter-spacing: .06em;
  padding: 2px 6px; border-radius: 999px;
  background: var(--jade-soft); border: 1px solid rgba(181,140,255,.3); color: var(--jade);
}
.vit__score { margin: 0; display: flex; align-items: baseline; gap: 4px; }
.vit__score b {
  font-family: var(--display); font-size: 1.02rem; font-weight: 800; color: var(--amber);
  font-variant-numeric: tabular-nums; line-height: 1;
}
.vit__score span { font-size: .64rem; color: var(--muted-2); letter-spacing: .05em; }
.brand-signals {
  display: flex; flex-wrap: wrap; align-items: center; gap: 5px;
  margin: 5px 0 8px;
}
.signal {
  min-height: 24px; padding: 3px 7px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--muted);
  font-family: var(--sans); font-size: .62rem; font-weight: 700; line-height: 1;
  white-space: nowrap;
}
.signal__os {
  width: 14px; height: 14px; border-radius: 50%; display: inline-grid; place-items: center;
  background: transparent; color: inherit; border: 1px solid currentColor;
  font-size: .52rem; font-weight: 900;
}
.signal__flag { font-size: .83rem; line-height: 1; }
.signal__shield { font-size: .64rem; transform: rotate(45deg); }
.signal--ok { color: var(--jade); border-color: rgba(181,140,255,.34); background: var(--jade-soft); }
.signal--alt { color: var(--amber); border-color: rgba(240,180,77,.35); background: rgba(240,180,77,.09); }
.signal--off { color: var(--rose); border-color: rgba(191,49,95,.3); background: var(--rose-soft); }
.signal--currency { color: var(--text-strong); background: var(--surface-3); }
.signal--neutral { color: var(--muted); background: var(--surface-2); }
.signal--license .signal__shield { color: currentColor; }
.vit__card .brand-signals { margin: 4px 0 0; gap: 4px; }
.vit__card .signal { min-height: 22px; padding: 2px 6px; font-size: .58rem; }
.vit__dato { margin: 2px 0 0; padding-top: 8px; border-top: 1px solid var(--line-soft); font-size: .84rem; font-weight: 650; color: var(--text-strong); line-height: 1.4; }
.vit__nota { margin: 0; font-size: .78rem; color: var(--muted); line-height: 1.48; }
.vit .btn { font-size: .8rem; padding: 9px 12px; border-radius: 9px; margin-top: 2px; }
.showcase {
  margin: 2.4em 0; padding: 20px 0 0; border-radius: 0;
  background: none; border: 0; border-top: 1px solid var(--line);
}
.showcase { position: relative; }
.showcase::before { content: none; }
.showcase__eyebrow {
  display: block; margin: 0 0 7px; color: var(--jade); font-family: var(--display);
  font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.showcase h2 { margin-top: 0; margin-bottom: .35em; }
.showcase > p { color: var(--muted); max-width: 72ch; }
.showcase .vit { margin-bottom: 12px; }
.showcase__fine { margin: 0; font-size: .74rem; color: var(--muted-2) !important; line-height: 1.5; }
.market__brands {
  margin: -2px 0 10px; color: var(--muted-2); font-size: .68rem; line-height: 1.45;
}
.market__brands strong { color: var(--muted); font-weight: 700; }

/* ---------- ranking de operadores ---------- */
.rank { display: grid; gap: 12px; margin: 0 0 1.7em; counter-reset: opcion; }
.op {
  counter-increment: opcion; position: relative;
  background: linear-gradient(110deg, rgba(111,22,53,.08), transparent 35%), var(--surface);
  border: 1px solid var(--line-soft); border-radius: 18px; padding: 40px 16px 14px;
  overflow: hidden;
  transition: border-color .18s ease, background-color .18s ease;
}
.op::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--rose), var(--amber) 45%, var(--jade)); opacity: .52; }
.op--top::before { opacity: 1; }
.rank .op:nth-child(3n+2) { border-left: 3px solid rgba(240,180,77,.58); }
.rank .op:nth-child(3n) { border-left: 3px solid rgba(214,106,69,.58); }
.rank .op:nth-child(3n+1) { border-left: 3px solid rgba(181,140,255,.58); }
.op:hover { border-color: rgba(181,140,255,.48); background: color-mix(in srgb, var(--surface) 96%, var(--jade)); }
.op--top { border-color: rgba(240,180,77,.42); background: var(--surface); }
.rank .op:nth-child(3n+1),
.rank .op:nth-child(3n+2),
.rank .op:nth-child(3n) { background: var(--surface); border-left: 1px solid var(--line-soft); }
.rank .op.op--top { background: var(--surface); border-color: rgba(232,173,46,.56); }
.op__pos {
  position: absolute; top: 9px; left: 14px; height: 23px; padding: 0 9px;
  display: inline-grid; place-items: center; border-radius: 6px;
  background: var(--surface-3); border: 1px solid var(--line); color: var(--muted);
  font-family: var(--display); font-weight: 800; font-size: .7rem; letter-spacing: .02em;
}
.op--top .op__pos {
  background: var(--amber); border-color: var(--amber); color: #1a1200;
  text-transform: uppercase; letter-spacing: .09em; font-size: .68rem;
}

.op__head { display: grid; grid-template-columns: 78px minmax(0,1fr) 164px; gap: 14px; align-items: center; }
.op__logo {
  width: 78px; height: 78px; border-radius: 11px; background: var(--surface-2);
  border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden;
}
.op__logo img { width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: center; }

/* Algunas placas oficiales dejan demasiado aire alrededor del nombre. El
   recorte se hace solo en la presentación: conserva intacto el archivo de la
   marca y amplía el área útil tanto en el ranking como en las vitrinas. */
.op__logo img[src*="campobet"], .vit__logo img[src*="campobet"] { transform: scale(1.38); }
.op__logo img[src*="spinbetter"], .vit__logo img[src*="spinbetter"] { transform: scale(1.42); }
.op__logo img[src*="jackpotlatino"], .vit__logo img[src*="jackpotlatino"] { transform: scale(1.15); }
.op__logo img[src*="aldex"], .vit__logo img[src*="aldex"] { transform: scale(1.18); }
.op__logo span { font-family: var(--display); font-weight: 800; font-size: .9rem; color: var(--muted); letter-spacing: -.02em; padding: 0 8px; text-align: center; line-height: 1.2; }
.op__name { font-family: var(--display); font-weight: 800; font-size: 1rem; color: var(--text-strong); margin: 0 0 2px; }
.op__offer { font-size: .82rem; color: var(--text); margin: 0 0 6px; line-height: 1.42; }
.op__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .62rem; font-weight: 650; padding: 2px 7px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.chip--jade { background: var(--jade-soft); border-color: rgba(181,140,255,.3); color: var(--jade); }

.op__right { display: grid; gap: 6px; }
.score { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0 4px 7px; }
.score__num { display: flex; align-items: baseline; justify-content: center; gap: 5px; }
.score__num b { font-family: var(--display); font-size: 1.35rem; font-weight: 800; color: var(--amber); font-variant-numeric: tabular-nums; line-height: 1; }
.score__num span { font-size: .7rem; color: var(--muted-2); letter-spacing: .06em; }
.score__bar { height: 4px; border-radius: 2px; background: var(--line); margin-top: 8px; overflow: hidden; }
.score__bar i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--jade), var(--amber)); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px; font-weight: 700; font-size: .86rem;
  font-family: var(--display); letter-spacing: -.01em; cursor: pointer; border: 1px solid transparent;
  transition: filter .16s ease, transform .16s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); transform: translateY(-1px); }
.btn--primary { background: var(--rose); color: var(--text-strong); box-shadow: 0 8px 22px -14px rgba(191,49,95,.9); }
.btn--ghost { background: var(--surface-2); border-color: var(--line); color: var(--text); }
.btn--wide { width: 100%; }
.op .btn--primary::after { content: "→"; font-size: 1.08em; transition: transform .16s ease; }
.op .btn--primary:hover::after { transform: translateX(3px); }

.op__foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-soft);
}
.op__lic {
  display: inline-flex; align-items: center; gap: 7px; margin: 0; flex: 0 0 auto;
  font-family: var(--mono); font-size: .64rem; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 3px 9px 3px 8px; border-radius: 999px; white-space: nowrap;
}
.op__lic-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.op__lic--segob { border-color: rgba(181,140,255,.35); color: var(--jade); background: var(--jade-soft); }
.op__lic--segob .op__lic-dot { background: var(--jade); }
.op__lic--int .op__lic-dot { background: var(--muted-2); }
.op__ver { margin: 0; flex: 1 1 300px; font-size: .73rem; color: var(--muted); line-height: 1.4; }

/* ---------- resumen y entrada del ranking ---------- */
.proof {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  margin: 0 0 30px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
}
.proof > div { min-width: 0; padding: 15px 16px; border-right: 1px solid var(--line); }
.proof > div:nth-child(n) { box-shadow: none; }
.proof > div:last-child { border-right: 0; }
.proof b { display: block; font-family: var(--display); color: var(--text-strong); font-size: 1.08rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.proof span { display: block; margin-top: 4px; color: var(--muted-2); font-size: .68rem; line-height: 1.35; text-transform: uppercase; letter-spacing: .075em; }
.rankintro {
  display: grid; grid-template-columns: minmax(190px,.7fr) minmax(0,1.3fr); gap: 28px;
  align-items: end; margin: 0 0 18px;
}
.rankintro h2 { margin: 0; }
.rankintro p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.62; }
.rankintro__tag { display: block; margin-bottom: 7px; color: var(--jade); font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- índice / TOC: una sola capa, sin sidebar ni scroll interno ---------- */
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.toc--inline { margin: 0 0 28px; overflow: clip; }
.toc--inline summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 16px 20px; color: var(--text-strong); font-family: var(--display); font-weight: 800;
}
.toc--inline summary::-webkit-details-marker { display: none; }
.toc--inline summary span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.toc--inline summary small { color: var(--jade); font-family: var(--sans); font-size: .76rem; letter-spacing: .02em; }
.toc--inline summary::after { content: "+"; color: var(--amber); font-size: 1.25rem; line-height: 1; }
.toc--inline[open] summary::after { content: "−"; }
.toc--inline[open] summary { border-bottom: 1px solid var(--line); }
.toc ol { list-style: none; counter-reset: t; padding: 14px 18px 18px; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.toc li { counter-increment: t; margin: 0; }
.toc a { display: block; padding: 6px 0 6px 26px; position: relative; font-size: .88rem; color: var(--muted); line-height: 1.45; border-left: 2px solid transparent; }
.toc a::before { content: counter(t) "."; position: absolute; left: 6px; color: var(--muted-2); font-size: .78rem; font-variant-numeric: tabular-nums; }
.toc a:hover, .toc a.is-active { color: var(--jade); text-decoration: none; }
.toc a.is-active { border-left-color: var(--jade); background: var(--jade-soft); border-radius: 0 8px 8px 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; margin: 0 0 2em; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.faq details[open] { border-color: rgba(181,140,255,.3); }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; position: relative;
  font-family: var(--display); font-weight: 700; color: var(--text-strong); font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 11px; height: 11px; margin-top: -7px;
  border-right: 2px solid var(--jade); border-bottom: 2px solid var(--jade);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq__body { padding: 0 18px 16px; font-size: .95rem; color: var(--muted); }
.faq__body p:last-child { margin-bottom: 0; }

/* ---------- bloque autor ---------- */

/* ---------- widgets del aside ---------- */
.widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.widget h4 { margin: 0 0 12px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); font-weight: 800; }
.widget ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.widget li { margin: 0; }
.widget a { font-size: .89rem; color: var(--text); }
.widget a:hover { color: var(--jade); }
.widget--18 { text-align: center; }
.badge18 { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--rose); color: var(--rose); font-family: var(--display); font-weight: 800; font-size: 1rem; margin-bottom: 10px; }
.widget--18 p { font-size: .82rem; color: var(--muted); margin: 0; }

/* ---------- rejilla de enlaces / secciones ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 14px; margin: 0 0 2em; }
.tile { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; color: var(--text); }
.tile:hover { border-color: rgba(181,140,255,.4); text-decoration: none; transform: translateY(-2px); }
.tile { transition: .18s ease; }
.tile b { display: block; font-family: var(--display); font-size: 1.02rem; color: var(--text-strong); margin-bottom: 6px; }
.tile span { font-size: .88rem; color: var(--muted); }

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: .82rem; color: var(--muted-2); padding: 20px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 7px; opacity: .5; }

/* ---------- footer ---------- */
.ftr { border-top: 3px solid transparent; border-image: linear-gradient(90deg,var(--rose),var(--amber),var(--jade)) 1; background: var(--ink-2); padding: 34px 0 24px; margin-top: 32px; }
.ftr__cols { display: grid; grid-template-columns: minmax(250px,1.25fr) repeat(3,minmax(145px,.7fr)); gap: 28px; }
.ftr__cols h2 { margin: 0 0 10px; color: var(--text-strong); font: 800 .72rem/1.3 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.ftr__cols ul { list-style: none; margin: 0; padding: 0; }
.ftr__cols li { margin: 0 0 5px; }
.ftr__top { display: grid; grid-template-columns: minmax(280px, 1.25fr) minmax(320px, .75fr); gap: 36px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--line-soft); }
.ftr__brand { display: flex; align-items: center; gap: 22px; min-width: 0; }
.ftr__brand .ftr__about { margin: 0; }
.ftr__utility { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 20px; }
.ftr a { font-size: .86rem; color: var(--muted); }
.ftr a:hover { color: var(--jade); }
.ftr__about { font-size: .82rem; color: var(--muted); max-width: 48ch; line-height: 1.55; }
.ftr__notice { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; margin-top: 24px; padding: 14px 18px; background: var(--surface); border: 1px solid rgba(191,49,95,.35); border-radius: var(--r); }
.ftr__notice p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.ftr__18 { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--rose); color: var(--rose); font-family: var(--display); font-weight: 800; }
.ftr__trust { margin-top: 24px; padding: 18px; border: 1px solid var(--line-soft); border-radius: var(--r); background: color-mix(in srgb, var(--surface) 76%, var(--ink)); }
.ftr__trust-title { margin: 0 0 6px; color: var(--text-strong); font: 800 .72rem/1.3 var(--display); letter-spacing: .09em; text-transform: uppercase; }
.ftr__trust-intro { margin: 0 0 14px; max-width: 78ch; color: var(--muted-2); font-size: .74rem; }
.ftr__trust-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.ftr__resource { display: grid; align-content: start; gap: 3px; min-height: 108px; padding: 13px 14px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface); }
.ftr__resource .ftr__resource-name { color: var(--text-strong); font: 800 .84rem/1.35 var(--display); }
.ftr__resource .ftr__resource-phone { width: fit-content; color: var(--jade); font-weight: 800; }
.ftr__resource span { color: var(--muted-2); font-size: .72rem; line-height: 1.42; }
.ftr__resource a:hover { color: var(--rose); text-decoration: underline; text-underline-offset: 3px; }
.ftr__legal { border-top: 1px solid var(--line-soft); margin-top: 20px; padding-top: 18px; font-size: .76rem; color: var(--muted-2); display: grid; gap: 12px; }
.ftr__legal p { margin: 0; }
.ftr__bottom { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }

/* ---------- volver arriba ---------- */
.totop {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s ease;
}
.totop.is-on { opacity: 1; visibility: visible; transform: none; }
.totop:hover { border-color: var(--jade); color: var(--jade); }
.totop svg { width: 18px; height: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .aside { display: none; }
  .prose { max-width: none; }
  .ftr__cols { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ftr__trust-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 860px) {
  html { scroll-padding-top: 82px; }
  /* El panel va posicionado contra la propia cabecera, no contra la ventana: el
     backdrop-filter de .hdr la convierte en bloque contenedor, así que un
     position: fixed aquí se mide contra los 68 px de la cabecera y sale enano. */
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; margin-left: 0;
    background: var(--ink-2); border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line); padding: 12px 20px 24px;
    display: none; overflow-y: auto; overscroll-behavior: contain;
    max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px);
    box-shadow: var(--shadow-lg);
  }
  .nav.is-open { display: block; }
  .nav__link svg { width: 16px; height: 16px; opacity: .85; }
  .drop a { padding: 11px 14px; font-size: .95rem; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { width: 100%; justify-content: space-between; padding: 12px 14px; font-size: 1rem; }
  .drop { position: static; opacity: 1; visibility: hidden; transform: none; min-width: 0; box-shadow: none; background: var(--ink); display: none; grid-template-columns: 1fr; margin: 4px 0 8px; }
  .nav__list > li:nth-last-child(-n+3) > .drop { right: auto; }
  /* en el menú desplegado el submenú lo manda únicamente aria-expanded */
  .nav__link[aria-expanded="true"] + .drop { display: grid; visibility: visible; opacity: 1; }
  .burger { display: grid; }
  .ftr__top { grid-template-columns: 1fr; gap: 22px; }
  .ftr__utility { justify-content: flex-start; }
}
@media (max-width: 900px) {
  .game-family { grid-template-columns: 1fr; }
  .op__head { grid-template-columns: 76px minmax(0,1fr); }
  .op__logo { width: 76px; height: 76px; }
  .op__right { grid-column: 1 / -1; margin-top: 6px; display: grid; grid-template-columns: 140px 1fr; align-items: center; gap: 12px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; line-height: 1.62; }
  h1 { font-size: clamp(1.62rem, 7.4vw, 2.02rem); }
  h2 { font-size: clamp(1.28rem, 5.8vw, 1.55rem); }
  h3 { font-size: 1.14rem; }
  .pagehead { padding: 26px 0 20px; }
  .pagehead__kicker > span:last-child { display: none; }
  .pagehead__grid { grid-template-columns: 5px minmax(0,1fr); gap: 12px; }
  .market { padding: 14px 0 20px; }
  .market__bar { display: grid; gap: 1px; margin-bottom: 9px; }
  .market__title { font-size: .78rem; }
  .market__bar span { font-size: .66rem; }
  .toc ol { grid-template-columns: 1fr; }
  .toc--inline summary { padding: 14px 16px; }
  .toc--inline summary small { display: none; }
  .ftr__brand { display: grid; gap: 14px; }
  .ftr__notice { grid-template-columns: 44px 1fr; padding: 13px 14px; }
  .ftr__cols { grid-template-columns: 1fr 1fr; gap: 22px 18px; }
  .ftr__cols > div:first-child { grid-column: 1 / -1; }
  .ftr__trust { margin-top: 20px; padding: 12px; }
  .ftr__trust-grid { grid-template-columns: 1fr; gap: 8px; }
  .ftr__resource { min-height: 0; padding: 12px 13px; }
  .op { padding: 38px 12px 11px; }
  .op__head { grid-template-columns: 68px minmax(0,1fr); gap: 10px; align-items: start; }
  .op__logo { width: 68px; height: 68px; border-radius: 10px; }
  .op__name { font-size: 1rem; margin-bottom: 2px; }
  .op__body .brand-signals { margin: 3px 0 7px; gap: 4px; }
  .signal { min-height: 22px; padding: 2px 6px; font-size: .58rem; }
  .signal__os { width: 13px; height: 13px; font-size: .48rem; }
  .op__offer { font-size: .82rem; line-height: 1.42; margin-bottom: 7px; }
  .op__meta { gap: 4px; }
  .chip { font-size: .62rem; padding: 2px 6px; }
  .op__right { grid-column: 1 / -1; grid-template-columns: 104px minmax(0,1fr); gap: 8px; margin-top: 2px; }
  .score { display: grid; align-content: center; padding: 4px 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); }
  .score__num b { font-size: 1.2rem; }
  .score__bar { margin-top: 5px; }
  .op__right .btn { min-height: 43px; padding: 9px 12px; }
  .op__foot { margin-top: 7px; padding-top: 7px; }
  .op__ver { display: none; }
  .op__pos { left: 16px; }
  /* la placa de marca es lo que identifica la ficha de un vistazo: en pantalla
     estrecha crece en vez de encogerse, porque el nombre va dentro del logotipo */
  .vit { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .vit__card { padding: 12px; gap: 8px; }
  .vit__logo { width: 54px; height: 54px; flex-basis: 54px; border-radius: 11px; }
  .vit__logo span { font-size: .68rem; }
  .vit__name { font-size: .98rem; }
  .vit__score b { font-size: 1.06rem; }
  .vit__dato { font-size: .88rem; }
  .vit__nota { font-size: .79rem; }
  .table--record-cards tbody tr { grid-template-columns: 1fr; }
  .table--record-cards tbody td,
  .table--record-cards tbody td:nth-child(even) { border-left: 0; }

  /* Las comparaciones cortas también se convierten en fichas en móvil. */
  .tablewrap--mobile-cards { overflow: visible; border: 0; border-radius: 0; background: transparent; }
  .table--mobile-cards,
  .table--mobile-cards tbody,
  .table--mobile-cards tbody tr,
  .table--mobile-cards tbody td { display: block; width: 100%; min-width: 0; }
  .table--mobile-cards thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
  .table--mobile-cards tbody { display: grid; gap: 12px; }
  .table--mobile-cards tbody tr {
    overflow: hidden; border: 1px solid var(--line); border-radius: var(--r);
    background: var(--surface);
  }
  .table--mobile-cards tbody td {
    display: grid; grid-template-columns: minmax(100px,35%) minmax(0,1fr); gap: 12px;
    padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line-soft);
    background: transparent !important;
  }
  .table--mobile-cards tbody td:first-child { background: var(--surface-2) !important; }
  .table--mobile-cards tbody td:last-child { border-bottom: 0; }
  .table--mobile-cards tbody td::before {
    content: attr(data-label); color: var(--jade); font-family: var(--display);
    font-size: .68rem; font-weight: 800; letter-spacing: .055em;
    line-height: 1.35; text-transform: uppercase;
  }
  .tablewrap--wide { padding-top: 29px; position: relative; }
  .tablewrap--wide::before {
    content: attr(data-swipe-label); position: absolute; top: 7px; left: 14px;
    color: var(--jade); font-size: .7rem; font-weight: 800; letter-spacing: .03em;
  }
  .tablewrap--comparison {
    width: 100%; margin-left: 0; transform: none; padding-top: 29px; position: relative;
    border-radius: 12px;
  }
  .tablewrap--comparison::before {
    content: attr(data-swipe-label); position: absolute; top: 7px; left: 12px;
    color: var(--jade); font-size: .67rem; font-weight: 800; letter-spacing: .025em;
  }
  .table--comparison { min-width: 700px !important; }
  .table--comparison th:first-child { width: 168px; }
  .table--comparison thead th { padding: 9px 10px; font-size: .66rem; }
  .table--comparison tbody td { padding: 9px 10px; font-size: .78rem; line-height: 1.42; }
  .proof { grid-template-columns: 1fr 1fr; }
  .proof > div { border-bottom: 1px solid var(--line); }
  .proof > div:nth-child(2) { border-right: 0; }
  .proof > div:nth-child(n+3) { border-bottom: 0; }
  .rankintro { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 520px) {
  /* con la placa al lado, al texto de la oferta le quedan unos 230 px y se parte
     en jirones. Bajando el logotipo a su propia fila el párrafo ocupa el ancho
     completo de la ficha y se lee de corrido. */
  .op__head { grid-template-columns: 64px minmax(0,1fr); gap: 10px; }
  .op__logo { width: 64px; height: 64px; }
  .op__right { grid-template-columns: 100px minmax(0,1fr); }
  .op__foot { gap: 8px; }
  .byline__meta { margin-left: 0; text-align: left; width: 100%; }
  .steps li { padding-left: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .hdr, .aside, .totop, .ftr, .op__right, .toc { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- figuras / diagramas ---------- */
figure { margin: 0 0 2em; }
.fig {
  position: relative;
  width: 100%;
  margin-left: 0; margin-right: 0; transform: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(14px, 1.5vw, 22px); overflow: hidden;
}
.fig img, .fig svg { width: 100%; height: auto; display: block; }
.fig__trigger {
  display: block; width: 100%; margin: 0; padding: 0; border: 0;
  border-radius: var(--r-lg); background: transparent; color: inherit;
  cursor: zoom-in; appearance: none;
}
.fig__trigger img { pointer-events: none; }
figcaption { margin-top: 14px; font-size: .92rem; color: var(--muted-2); line-height: 1.58; }
figcaption b { color: var(--muted); font-weight: 600; }
.fig--hero { padding: 0; border: 0; background: none; margin-bottom: 1.6em; }
.fig--hero img, .fig--hero svg { border-radius: var(--r-lg); border: 1px solid var(--line); }
.fig--diagram { overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: var(--jade) var(--surface-2); }
.fig__zoom {
  position: absolute; z-index: 4; top: 30px; right: 30px;
  min-height: 38px; padding: 7px 11px; border-radius: 9px;
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid rgba(255,255,255,.18); background: rgba(17,21,15,.9); color: var(--text-strong);
  box-shadow: var(--shadow); backdrop-filter: blur(8px); cursor: pointer;
  font: 700 .72rem/1 var(--sans); pointer-events: none;
}
.fig--hero .fig__zoom { top: 12px; right: 12px; }
.fig__zoom svg { width: 17px; height: 17px; }

.visual-lightbox {
  width: min(96vw, 1540px); max-width: none; height: 92vh; max-height: none;
  padding: 48px 14px 14px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--ink); color: var(--text); box-shadow: var(--shadow-lg); overflow: hidden;
}
.visual-lightbox::backdrop { background: rgba(5,8,5,.86); backdrop-filter: blur(4px); }
.visual-lightbox__close {
  position: absolute; z-index: 2; top: 9px; right: 12px; width: 34px; height: 34px;
  border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text-strong);
  font: 500 1.5rem/1 var(--sans); cursor: pointer;
}
.visual-lightbox__viewport { width: 100%; height: 100%; overflow: auto; overscroll-behavior: contain; }
.visual-lightbox__viewport img { width: min(1400px, 88vw); max-width: none; height: auto; margin: 0 auto; }

@media (max-width: 620px) {
  .fig {
    width: 100%; margin-bottom: 1.55em; padding: 8px;
    border-radius: 12px; overflow: hidden;
  }
  .fig--diagram { overflow: hidden; }
  .fig img, .fig svg, .fig--hero img, .fig--hero svg {
    width: 100%; max-width: 100%; height: auto; border-radius: 10px;
  }
  .fig figcaption {
    position: static; width: 100%; box-sizing: border-box;
    margin: 0; padding: 11px 4px 5px; background: var(--surface); font-size: .84rem;
  }
  .fig figcaption::before {
    content: "Toca la imagen para ampliarla"; display: block; margin-bottom: 4px;
    color: var(--jade); font-weight: 800; font-size: .72rem; letter-spacing: .02em;
  }
  .fig__zoom, .fig--hero .fig__zoom { position: absolute; left: auto; right: 12px; top: 12px; margin: 0; }
  .visual-lightbox { width: 100vw; height: 100dvh; padding: 48px 8px 8px; border: 0; border-radius: 0; }
  .visual-lightbox__viewport { touch-action: pan-x pan-y pinch-zoom; }
  .visual-lightbox__viewport img { width: 1200px; max-width: none; margin: 0; }
}

/* ===========================================================
   Casino al Grano — edición editorial 2026
   Sistema visual propio: periódico de datos, no escaparate de casino.
   =========================================================== */
:root {
  --ink: #f6f0e7;
  --ink-2: #eee4d7;
  --surface: #fffdf9;
  --surface-2: #f1e7db;
  --surface-3: #e8d9ca;
  --line: #cdbca8;
  --line-soft: #e4d7c8;
  --text: #302930;
  --text-strong: #171217;
  --muted: #6f6268;
  --muted-2: #8d7f83;
  --jade: #7a1f3d;
  --jade-dim: #531329;
  --jade-soft: rgba(122,31,61,.09);
  --amber: #c98218;
  --amber-soft: rgba(201,130,24,.11);
  --rose: #653487;
  --rose-soft: rgba(101,52,135,.09);
  --cochinilla: #7a1f3d;
  --bugambilia: #653487;
  --terracotta: #a8462f;
  --terracotta-soft: rgba(168,70,47,.10);
  --r-sm: 4px;
  --r: 8px;
  --r-lg: 12px;
  --shadow: 0 10px 28px -24px rgba(42,23,30,.55);
  --shadow-lg: 0 22px 60px -30px rgba(42,23,30,.65);
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, serif;
}

body {
  color-scheme: light;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(122,31,61,.025) 1px, transparent 1px),
    linear-gradient(rgba(122,31,61,.018) 1px, transparent 1px),
    var(--ink);
  background-size: 44px 44px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}

h1, h2, h3, h4 { letter-spacing: -.026em; }
a { color: var(--jade); }
strong { color: var(--text-strong); }
li::marker { color: var(--cochinilla); }
:focus-visible { outline-color: var(--amber); }
.wrap { max-width: 1280px; padding-inline: clamp(18px, 3vw, 42px); }

/* Masthead de publicación: dos niveles y una firma más propia de revista. */
.hdr {
  color-scheme: dark;
  background: rgba(29,15,25,.985);
  border-bottom: 0;
  backdrop-filter: blur(12px);
}
.hdr::after { height: 4px; bottom: 0; background: linear-gradient(90deg,#7a1f3d 0 56%,#c98218 56% 68%,#653487 68%); }
.hdr__signal { border-bottom: 1px solid rgba(255,255,255,.11); color: #d9cbd2; font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hdr__signal .wrap { min-height: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hdr__in { height: 70px; }
.brand__txt { color: #fff9f2; font-family: var(--sans); font-size: 1.05rem; letter-spacing: -.035em; }
.brand__txt b { color: #e2aa4d; }
.brand__txt span { color: #af9fa7; }
.nav__link { color: #eee4e8; border-radius: 3px; font-size: .84rem; text-transform: uppercase; letter-spacing: .035em; }
.nav__link:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav__link[aria-current="page"] { box-shadow: inset 0 -2px #e2aa4d; }
.drop { background: #24131f; border-color: #513646; border-radius: 5px; }
.drop a { color: #eee4e8; border-radius: 3px; }
.drop a:hover { background: rgba(255,255,255,.08); color: #f0bd66; }
.burger { background: #2e1b28; border-color: #664758; color: #fff9f2; border-radius: 5px; }

/* Título de artículo: portada editorial horizontal en vez de hero. */
.crumbs { max-width: 1160px; margin-inline: auto; padding-top: 22px; }
.pagehead {
  max-width: 1160px;
  padding: clamp(28px,4vw,54px) 0 24px;
  border-bottom: 2px solid var(--text-strong);
}
.pagehead__kicker { margin-bottom: 19px; padding-bottom: 9px; border-bottom: 1px solid var(--line); font-size: .67rem; color: var(--muted); }
.pagehead__folio { color: var(--muted-2); }
.eyebrow { color: var(--cochinilla); letter-spacing: .19em; }
.eyebrow::before { width: 28px; height: 3px; background: var(--cochinilla); }
.pagehead__grid { grid-template-columns: minmax(0,1.38fr) minmax(280px,.62fr); gap: clamp(34px,6vw,84px); align-items: end; }
.pagehead h1 { max-width: 19ch; margin: 0; font-size: clamp(2.15rem,1.25rem + 3.5vw,4.7rem); line-height: 1.02; letter-spacing: -.052em; }
.pagehead__summary { padding: 16px 0 2px 20px; border-left: 4px solid var(--amber); }
.pagehead__summary > span { display: block; margin-bottom: 7px; color: var(--cochinilla); font-size: .66rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.pagehead__lead { max-width: 42ch; margin: 0; color: var(--text); font-size: .96rem; line-height: 1.62; }
.byline { margin-top: 25px; padding-top: 13px; border-top: 1px solid var(--line); }
.byline__mark { width: 34px; height: 34px; border-radius: 4px; border: 0; background: var(--cochinilla); color: #fff; }
.byline__name { font-size: .84rem; }
.byline__role, .byline__meta { font-size: .72rem; }

/* Главная витрина как редакционная доска, а не баннер. */
.market {
  max-width: 1160px;
  margin: 28px auto 0;
  padding: 0 0 20px;
  border: 0;
  border-bottom: 2px solid var(--text-strong);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.market__bar { display: grid; grid-template-columns: 140px minmax(0,1fr) minmax(240px,.55fr); align-items: end; gap: 22px; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.market__index { color: var(--cochinilla) !important; font-size: .64rem !important; font-weight: 800; letter-spacing: .12em; }
.market__title { font: 800 clamp(1.45rem,1.1rem + 1vw,2rem)/1.08 var(--display); color: var(--text-strong); }
.market__bar p { margin: 0; color: var(--muted); font-size: .76rem; text-align: right; }
.market__brands { margin: 0 0 12px; padding: 7px 10px; border-left: 3px solid var(--amber); background: var(--amber-soft); font-size: .72rem; }
.market__fine { margin-top: 10px; color: var(--muted-2); }

.layout { max-width: 1160px; padding-top: 30px; }
.prose { counter-reset: editorial-section; }
.prose > p, .prose > ul, .prose > ol { max-width: 92ch; }
.prose > p { font-size: .98rem; }
.prose > p:first-of-type { font-size: 1.08rem; color: var(--text-strong); }
.prose > h2 { counter-increment: editorial-section; display: grid; grid-template-columns: 54px minmax(0,1fr); align-items: start; gap: 12px; max-width: 100%; margin-top: 2.6em; padding-top: .65em; border-top: 2px solid var(--text-strong); font-size: clamp(1.55rem,1.15rem + 1.3vw,2.25rem); }
.prose > h2::before { content: counter(editorial-section, decimal-leading-zero); color: var(--cochinilla); font: 800 .67rem/1.2 var(--sans); letter-spacing: .12em; padding-top: .68em; }
.prose h3 { color: var(--jade-dim); font-family: var(--sans); font-size: 1.12rem; letter-spacing: -.015em; }
blockquote { border-left-color: var(--amber); color: var(--muted); font-family: var(--display); }

/* Карточки и данные: строгие бумажные модули вместо одинаковых тёмных плит. */
.card, .note, .steps li, .faq details, .toc, .tile { background: var(--surface); border-color: var(--line); border-radius: 5px; box-shadow: var(--shadow); }
.card { border-top: 4px solid var(--cochinilla) !important; }
.card:nth-child(3n+2) { border-top-color: var(--amber) !important; }
.card:nth-child(3n) { border-top-color: var(--rose) !important; }
.note { border-left-width: 5px; }
.note--tip { border-color: var(--line); border-left-color: var(--rose); background: var(--surface); }
.note--warn { border-color: var(--line); border-left-color: var(--amber); background: var(--surface); }
.note--alert { border-color: var(--line); border-left-color: var(--cochinilla); background: var(--surface); }
.note--tip .note__ico { background: var(--rose); color: #fff; }
.note--alert .note__ico { background: var(--cochinilla); color: #fff; }
.steps li::before { border-radius: 50%; background: var(--ink-2); color: var(--cochinilla); border-color: var(--line); }
.checks li::before { border-radius: 50%; background-color: var(--jade-soft); }

.tablewrap { border-radius: 4px; background: var(--surface); box-shadow: var(--shadow); }
.prose th { color: #fff9f2; background: #2c1727; border-color: #2c1727; font-size: .68rem; }
.prose td { border-color: var(--line-soft); }
.prose tbody tr:nth-child(even) td { background: #faf5ee; }
.prose tbody tr:hover td { background: #f4e9dd; }
.table--comparison thead th { color: #fff9f2; background: #2c1727; }
.table--comparison tbody td[role="rowheader"] { background: #efe4d8 !important; color: var(--text-strong); }
.table--record-cards tbody tr { border-radius: 4px; border-left-color: var(--cochinilla); background: var(--surface); }
.table--record-cards tbody td:first-child { background: var(--surface-2) !important; }
.table--record-cards tbody td::before { color: var(--cochinilla); }

/* Рейтинг — нумерованный реестр. */
.rank { gap: 10px; }
.op {
  padding: 38px 16px 14px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--cochinilla);
  border-radius: 5px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.op::before { height: 1px; background: var(--line); opacity: 1; }
.op:nth-child(3n+2) { border-left-color: var(--amber); }
.op:nth-child(3n) { border-left-color: var(--rose); }
.op:hover { border-color: var(--cochinilla); border-left-color: var(--cochinilla); background: #fff; }
.op--top { background: #fff8e9; border-color: #d7a64a; border-left-color: var(--amber); }
.op__pos { top: 0; left: 14px; min-height: 26px; padding: 5px 10px; border-radius: 0 0 4px 4px; background: #2c1727; color: #fff; font-size: .59rem; letter-spacing: .11em; text-transform: uppercase; }
.op--top .op__pos { background: var(--amber); color: #241405; }
.op__head { grid-template-columns: 82px minmax(0,1fr) 174px; }
.op__logo { width: 82px; height: 82px; border-radius: 4px; border-color: var(--line); }
.op__name { font-family: var(--sans); font-size: 1.04rem; }
.op__offer { font-size: .8rem; }
.op__right { border-left: 1px solid var(--line-soft); padding-left: 14px; }
.score { background: var(--ink-2); border: 0; border-radius: 4px; }
.score__num b { color: var(--cochinilla); }
.score__bar { background: #dfd1c0; }
.score__bar i { background: linear-gradient(90deg,var(--cochinilla),var(--amber)); }
.btn--primary { background: #2c1727; color: #fff9f2; border-color: #2c1727; border-radius: 3px; }
.btn--primary:hover { background: var(--cochinilla); color: #fff; border-color: var(--cochinilla); }
.chip { border-radius: 2px; background: #f3eadd; border-color: #d9cabc; color: #675b60; }
.chip--jade { color: var(--cochinilla); background: var(--jade-soft); border-color: rgba(122,31,61,.28); }
.signal { border-radius: 2px; background: #f3eadd; border-color: #d9cabc; color: #675b60; }
.signal--ok, .signal--alt { color: var(--jade-dim); border-color: rgba(122,31,61,.25); background: var(--jade-soft); }
.op__foot { border-color: var(--line-soft); }
.op__lic { border-radius: 2px; }

.vit { gap: 10px; }
.vit__card { border-radius: 5px; border-color: var(--line); background: var(--surface) !important; box-shadow: var(--shadow); }
.vit__card::before { width: 4px; height: auto; inset: 0 auto 0 0; background: var(--cochinilla); }
.vit__card:nth-child(3n+2)::before { background: var(--amber); }
.vit__card:nth-child(3n)::before { background: var(--rose); }
.vit__card:hover { border-color: var(--cochinilla); background: #fff !important; }
.vit__logo { border-radius: 4px; border-color: var(--line); }
.vit__name { font-family: var(--sans); }
.vit__score b, .vit__segob { color: var(--cochinilla); }

.game-family__item { border-radius: 5px; background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.game-family__item img { border-radius: 3px; }
.game-family__sigil {
  width: 82px; height: 82px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: conic-gradient(from 215deg,var(--cochinilla),var(--rose),var(--amber),var(--cochinilla));
  color: #fff; font: 800 1.15rem/1 var(--sans); letter-spacing: .09em;
  box-shadow: inset 0 0 0 8px rgba(255,255,255,.8);
}
.game-family__maker { color: var(--cochinilla); }

.fig { max-width: 1040px; border-radius: 6px; padding: 10px; border-color: var(--line); background: var(--surface); box-shadow: var(--shadow-lg); }
.fig--hero { max-width: 1040px; padding: 8px; background: var(--surface); }
.fig--hero img, .fig--hero svg { border-radius: 3px; border: 0; }
.fig--editorial {
  max-width: 1040px;
  padding: 0;
  overflow: hidden;
  background: #fffaf2;
  border-color: #d5c3b3;
}
.editorial-viz { position: relative; min-height: 330px; padding: 28px; overflow: hidden; background: #f8efe3; }
.editorial-viz::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(122,31,61,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(122,31,61,.055) 1px,transparent 1px);
  background-size: 34px 34px;
}
.ev__head { position: relative; z-index: 1; display: grid; gap: 5px; margin-bottom: 25px; }
.ev__head span { color: var(--cochinilla); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.ev__head strong { max-width: 26ch; color: #25151f; font: 700 clamp(1.55rem,3vw,2.45rem)/1.04 var(--serif); }
.ev__items { position: relative; z-index: 1; display: grid; }
.ev__item { min-width: 0; }
.ev__item span,.ev__item strong { display: block; }
.ev__item span { color: var(--cochinilla); font: 800 .75rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.ev__item strong { margin-top: 6px; color: #25151f; font: 700 clamp(1.05rem,2vw,1.5rem)/1.13 var(--serif); }

.editorial-viz--matrix .ev__items { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.editorial-viz--matrix .ev__item { min-height: 92px; padding: 18px; background: rgba(255,255,255,.72); border: 1px solid #d9c8b8; }
.editorial-viz--matrix .ev__item:nth-child(1) { border-top: 5px solid var(--cochinilla); }
.editorial-viz--matrix .ev__item:nth-child(2) { border-top: 5px solid var(--amber); }
.editorial-viz--matrix .ev__item:nth-child(3) { border-top: 5px solid var(--rose); }
.editorial-viz--matrix .ev__item:nth-child(4) { border-top: 5px solid #653487; }

.editorial-viz--route .ev__items { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 26px; align-items: center; }
.editorial-viz--route .ev__item { position: relative; padding: 17px 12px 16px; background: #fffaf2; border: 1px solid #d9c8b8; text-align: center; }
.editorial-viz--route .ev__item::after { content: "→"; position: absolute; right: -23px; top: 50%; translate: 0 -50%; color: var(--amber); font: 800 1.35rem/1 var(--sans); }
.editorial-viz--route .ev__item:last-child::after { content: none; }
.editorial-viz--route .ev__item span { font-size: 1.25rem; color: var(--amber); }

.editorial-viz--layers .ev__items { gap: 7px; }
.editorial-viz--layers .ev__item { display: grid; grid-template-columns: minmax(110px,.7fr) minmax(0,1.6fr); align-items: center; padding: 12px 18px; background: #fffaf2; border-left: 7px solid var(--cochinilla); }
.editorial-viz--layers .ev__item:nth-child(2) { margin-left: 5%; border-color: var(--amber); }
.editorial-viz--layers .ev__item:nth-child(3) { margin-left: 10%; border-color: var(--rose); }
.editorial-viz--layers .ev__item:nth-child(4) { margin-left: 15%; border-color: #653487; }
.editorial-viz--layers .ev__item strong { margin: 0; }

.editorial-viz--balance .ev__items { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; background: #cdbbab; border: 1px solid #cdbbab; }
.editorial-viz--balance .ev__item { min-height: 86px; padding: 18px; background: #fffaf2; }
.editorial-viz--balance .ev__item:nth-child(odd) { text-align: right; }
.editorial-viz--balance::after { content: "="; position: absolute; left: 50%; bottom: 57px; translate: -50% 0; display: grid; place-items: center; width: 44px; height: 44px; color: #fff; background: var(--cochinilla); border: 5px solid #f8efe3; border-radius: 50%; font-weight: 900; }

.editorial-viz--formula .ev__items { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; align-items: stretch; }
.editorial-viz--formula .ev__item { display: grid; place-content: center; min-height: 112px; padding: 14px; text-align: center; color: #fff; background: #2b1726; }
.editorial-viz--formula .ev__item:nth-child(2) { background: var(--cochinilla); }
.editorial-viz--formula .ev__item:nth-child(3) { background: #653487; }
.editorial-viz--formula .ev__item:nth-child(4) { background: var(--amber); }
.editorial-viz--formula .ev__item span,.editorial-viz--formula .ev__item strong { color: #fffaf2; }

.editorial-viz--gauge .ev__items { gap: 13px; }
.editorial-viz--gauge .ev__item { position: relative; padding: 8px 16px 13px 46%; background: rgba(255,255,255,.5); border-bottom: 1px solid #d9c8b8; }
.editorial-viz--gauge .ev__item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 42%; background: linear-gradient(90deg,var(--cochinilla),var(--amber)); }
.editorial-viz--gauge .ev__item:nth-child(2)::before { width: 51%; }
.editorial-viz--gauge .ev__item:nth-child(3)::before { width: 63%; }
.editorial-viz--gauge .ev__item:nth-child(4)::before { width: 77%; }
.fig--editorial figcaption {
  margin: 0;
  padding: 13px 16px;
  color: #f7eadc;
  background: #25151f;
  border-top: 3px solid var(--amber);
}
.fig--data figcaption::before { content: none !important; }
.visual-note {
  margin: 1.4em 0;
  padding: 12px 15px;
  color: var(--ink-soft);
  background: #fbf5ec;
  border-left: 3px solid var(--amber);
}
.visual-note b { color: var(--ink); }
figcaption { color: var(--muted); }
.fig__zoom { border-radius: 3px; background: rgba(35,19,31,.92); }
.visual-lightbox { background: var(--ink); }

.toc--inline summary { border-radius: 0; }
.toc--inline summary::after { color: var(--cochinilla); }
.toc a:hover, .toc a.is-active { color: var(--cochinilla); }
.toc a.is-active { border-left-color: var(--cochinilla); background: var(--jade-soft); }
.faq details[open] { border-color: var(--cochinilla); }
.faq summary::after { border-color: var(--cochinilla); }

.ftr { color-scheme: dark; margin-top: 70px; padding-top: 44px; background: #1d0f19; border-image: linear-gradient(90deg,#7a1f3d,#c98218 62%,#653487) 1; }
.ftr .brand__txt, .ftr strong, .ftr__cols h2, .ftr__trust-title, .ftr__resource .ftr__resource-name { color: #fff9f2; }
.ftr__top, .ftr__legal { border-color: #4e3443; }
.ftr__trust { background: #26151f; border-color: #4e3443; border-radius: 4px; }
.ftr__resource { min-height: 0; background: #1d0f19; border-color: #4e3443; border-radius: 3px; }
.ftr__resource .ftr__resource-phone { color: #e2aa4d; }
.ftr a:hover { color: #e2aa4d; }
.totop { border-radius: 4px; background: #2c1727; border-color: #704c60; color: #fff; }

@media (max-width: 860px) {
  .hdr__signal { display: none; }
  .nav { background: #1d0f19; border-color: #4e3443; }
  .drop { background: #160c13; }
}

@media (max-width: 760px) {
  .pagehead__grid { grid-template-columns: 1fr; gap: 20px; }
  .pagehead h1 { max-width: 22ch; font-size: clamp(2rem,9.2vw,3.2rem); }
  .pagehead__summary { max-width: 48ch; }
  .pagehead__folio { display: none; }
  .market__bar { grid-template-columns: 1fr; gap: 5px; }
  .market__bar p { text-align: left; }
  .prose > h2 { grid-template-columns: 38px minmax(0,1fr); gap: 8px; }
}

@media (max-width: 620px) {
  body { background: var(--ink); font-size: 16px; }
  .hdr__in { height: 68px; }
  .brand__txt { font-size: .98rem; }
  .pagehead { padding-top: 25px; }
  .pagehead__kicker { margin-bottom: 15px; }
  .pagehead__summary { padding: 11px 0 0 14px; }
  .pagehead__lead { font-size: .92rem; }
  .market { padding-inline: 0; border-radius: 0; }
  .layout { padding-top: 22px; }
  .op { padding: 36px 12px 12px; }
  .op__head { grid-template-columns: 68px minmax(0,1fr); }
  .op__logo { width: 68px; height: 68px; }
  .op__right { border-left: 0; border-top: 1px solid var(--line-soft); padding: 10px 0 0; }
  .table--mobile-cards tbody tr { background: var(--surface); border-radius: 4px; }
  .table--mobile-cards tbody td:first-child { background: var(--surface-2) !important; }
  .table--mobile-cards tbody td::before { color: var(--cochinilla); }
  .fig, .fig--hero { padding: 5px; border-radius: 4px; }
  .fig--editorial { padding: 0; }
  .editorial-viz { min-height: 0; padding: 20px 15px; }
  .ev__head { margin-bottom: 18px; }
  .editorial-viz--route .ev__items { grid-template-columns: 1fr; gap: 8px; }
  .editorial-viz--formula .ev__items { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .editorial-viz--formula .ev__item { min-height: 88px; padding: 10px; }
  .editorial-viz--route .ev__item { display: grid; grid-template-columns: 44px 1fr; align-items: center; text-align: left; }
  .editorial-viz--route .ev__item::after { content: "↓"; right: 16px; top: auto; bottom: -18px; translate: 0; z-index: 2; }
  .editorial-viz--matrix .ev__item,.editorial-viz--balance .ev__item { min-height: 78px; padding: 13px; }
  .editorial-viz--layers .ev__item { grid-template-columns: 1fr; gap: 3px; }
  .editorial-viz--layers .ev__item:nth-child(n) { margin-left: 0; }
  .editorial-viz--balance::after { bottom: 52px; width: 36px; height: 36px; }
  .editorial-viz--gauge .ev__item { padding-left: 42%; }
  .fig figcaption { background: var(--ink); }
  .fig figcaption::before { color: var(--cochinilla); }
}
