/* ===========================================================
   LupaCasino — hoja de estilos principal
   Paleta editorial mexicana · obsidiana, maíz, jade, cempasúchil y cochinilla
   =========================================================== */

:root {
  /* superficies */
  --ink:        #15130f;
  --ink-2:      #1c1913;
  --surface:    #252119;
  --surface-2:  #2d281f;
  --surface-3:  #383125;
  --line:       #494033;
  --line-soft:  #342e25;

  /* texto */
  --text:       #eee6d3;
  --text-strong:#fff8e7;
  --muted:      #b2aa98;
  --muted-2:    #867c69;

  /* acentos */
  --jade:       #21b37e;
  --jade-dim:   #078a62;
  --jade-soft:  rgba(33, 179, 126, .13);
  --amber:      #f3a712;
  --amber-soft: rgba(243, 167, 18, .13);
  --rose:       #d84a3a;
  --rose-soft:  rgba(216, 74, 58, .13);
  --violet:     #cf4d85;

  /* 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: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  color-scheme: dark;
}
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.9rem, 1.15rem + 2.9vw, 3.1rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.45rem, 1.05rem + 1.5vw, 2.05rem); margin-top: 2.4em; }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); margin-top: 1.8em; }
h4 { font-size: 1.05rem; margin-top: 1.4em; }
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: #04120c; 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(21,19,15,.94);
  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, #078a62 0 34%, #fff4d7 34% 66%, #d84a3a 66% 100%);
  opacity: .72;
}
.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.12rem; letter-spacing: -.03em; color: var(--text-strong); line-height: 1.05; }
.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: .93rem; 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(--amber); }
.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; }

/* ---------- hero ---------- */
.hero { position: relative; max-width: 1120px; margin-inline: auto; padding: 50px 28px 28px; }
.hero::before {
  content: ""; position: absolute; inset: 16px 0 0;
  z-index: -1; pointer-events: none;
  background: linear-gradient(112deg, rgba(7,138,98,.14) 0 25%, transparent 25% 72%, rgba(216,74,58,.08) 72% 100%);
  border-left: 3px solid var(--jade-dim); border-radius: var(--r-lg);
}
.hero > * { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--jade); background: var(--jade-soft); border: 1px solid rgba(22,180,127,.25);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero__lead { font-size: 1.12rem; color: var(--muted); max-width: 66ch; margin-bottom: 22px; }

.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.byline__ava { width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto; border: 2px solid var(--line); }
.byline__name { font-weight: 700; color: var(--text-strong); font-size: .96rem; }
.byline__role { font-size: .84rem; 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; }

/* ---------- 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:first-of-type { font-size: 1.06rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.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; }
.tablewrap table { min-width: 620px; }
.prose th { text-align: left; font-family: var(--display); font-weight: 700; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.prose td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody tr:hover td { background: rgba(255,255,255,.015); }
.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(22,180,127,.3);  background: linear-gradient(var(--jade-soft), var(--jade-soft)) , var(--surface); }
.note--tip .note__ico    { background: var(--jade); color: #04120c; }
.note--warn   { border-color: rgba(240,180,41,.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(224,82,96,.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(22,180,127,.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; }

/* 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); border-radius: var(--r); padding: 18px; }
.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 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(22,180,127,.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316b47f' 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(224,82,96,.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e05260' 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: 14px; margin: 0 0 2em;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
}
.vit__card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 16px;
  transition: border-color .18s ease, transform .18s ease;
}
.vit__card:hover { border-color: rgba(22,180,127,.4); transform: translateY(-2px); }
.vit__top { display: flex; align-items: center; gap: 11px; }
.vit__logo {
  width: 48px; height: 48px; flex: 0 0 48px; border-radius: 11px; 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(22,180,127,.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; }
.vit__dato { margin: 0; font-size: .92rem; font-weight: 600; color: var(--text-strong); line-height: 1.4; }
.vit__nota { margin: 0; font-size: .8rem; color: var(--muted); line-height: 1.5; flex: 1 1 auto; }
.vit .btn { font-size: .86rem; padding: 10px 14px; margin-top: 2px; }
.showcase {
  margin: 2.1em 0; padding: 22px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(22,180,127,.08), transparent 52%), var(--surface);
  border: 1px solid rgba(22,180,127,.24);
}
.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: 68ch; }
.showcase .vit { margin-bottom: 12px; }
.showcase__fine { margin: 0; font-size: .74rem; color: var(--muted-2) !important; line-height: 1.5; }

/* ---------- ranking de operadores ---------- */
.rank { display: grid; gap: 16px; margin: 0 0 2em; }
.op {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 34px 22px 22px;
  overflow: hidden;
  box-shadow: 0 14px 34px -28px rgba(0,0,0,.95);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  content-visibility: auto;
  contain-intrinsic-size: auto 260px;
}
.op:hover { border-color: rgba(22,180,127,.48); transform: translateY(-2px); box-shadow: 0 22px 42px -30px rgba(22,180,127,.45); }
.op--top { border-color: rgba(240,180,41,.38); background: linear-gradient(180deg, rgba(240,180,41,.06), transparent 42%), var(--surface); }
.op__pos {
  position: absolute; top: 0; left: 20px; height: 26px; padding: 0 12px;
  display: inline-grid; place-items: center; border-radius: 7px;
  background: var(--surface-3); border: 1px solid var(--line); color: var(--muted);
  font-family: var(--display); font-weight: 800; font-size: .74rem; 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: 96px minmax(0,1fr) 196px; gap: 20px; align-items: start; }
.op__logo {
  width: 96px; height: 96px; border-radius: 14px; 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: 1.14rem; color: var(--text-strong); margin: 0 0 6px; }
.op__offer { font-size: .93rem; color: var(--text); margin: 0 0 10px; }
.op__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.chip--jade { background: var(--jade-soft); border-color: rgba(22,180,127,.3); color: var(--jade); }

.op__right { display: grid; gap: 9px; }
.score { background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; padding: 9px 12px 11px; }
.score__num { display: flex; align-items: baseline; justify-content: center; gap: 5px; }
.score__num b { font-family: var(--display); font-size: 1.5rem; 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: 12px 20px; border-radius: 11px; font-weight: 700; font-size: .92rem;
  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(--jade); color: #04120c; }
.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__terms { font-size: .68rem; color: var(--muted-2); text-align: center; line-height: 1.4; margin: 0; }

.op__foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  margin-top: 18px; padding-top: 15px; 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: .7rem; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 4px 11px 4px 9px; 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(22,180,127,.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: .84rem; color: var(--muted); line-height: 1.55; }

/* ---------- 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: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(22,180,127,.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 ---------- */
.author { display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); margin: 2em 0; }
.author img { width: 96px; height: 96px; border-radius: 16px; border: 1px solid var(--line); }
.author h3 { margin: 0 0 2px; font-size: 1.1rem; }
.author__role { color: var(--jade); font-size: .85rem; font-weight: 600; margin: 0 0 10px; }
.author p { font-size: .93rem; color: var(--muted); margin-bottom: .7em; }

/* ---------- 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(22,180,127,.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 var(--amber); background: var(--ink-2); padding: 34px 0 24px; margin-top: 32px; }
.ftr__top { display: grid; grid-template-columns: minmax(280px, 1.2fr) minmax(360px, 1fr); gap: 36px; align-items: center; }
.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(216,74,58,.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__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; }
}
@media (max-width: 860px) {
  /* 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: 84px minmax(0,1fr); }
  .op__logo { width: 84px; height: 84px; }
  .op__right { grid-column: 1 / -1; margin-top: 6px; display: grid; grid-template-columns: 140px 1fr; align-items: center; gap: 12px; }
  .op__terms { grid-column: 1 / -1; text-align: left; }
}
@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .hero { padding: 34px 16px 24px; }
  .hero::before { inset-inline: 0; }
  .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; }
  .op { padding: 32px 18px 18px; }
  .op__head { grid-template-columns: 84px minmax(0,1fr); gap: 14px; }
  .op__logo { width: 84px; height: 84px; }
  .op__right { grid-column: 1 / -1; margin-top: 4px; }
  .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__logo { width: 64px; height: 64px; flex-basis: 64px; border-radius: 13px; }
  .vit__logo span { font-size: .68rem; }
  .vit__name { font-size: 1.06rem; }
  .vit__score b { font-size: 1.14rem; }
  .vit__dato { font-size: .98rem; }
  .vit__nota { font-size: .87rem; }
  .tablewrap table { min-width: 560px; }
  .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: minmax(0,1fr); gap: 12px; }
  .op__logo { width: 96px; height: 96px; }
  .op__right { grid-template-columns: 130px 1fr; }
  .op__foot { flex-direction: column; align-items: flex-start; gap: 10px; }
  .byline__meta { margin-left: 0; text-align: left; width: 100%; }
  .author { grid-template-columns: 1fr; }
  .author img { width: 72px; height: 72px; }
  .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 {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; overflow: hidden;
}
.fig img, .fig svg { width: 100%; height: auto; display: block; }
figcaption { margin-top: 12px; font-size: .84rem; color: var(--muted-2); line-height: 1.55; }
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); }

@media (max-width: 620px) {
  .fig--diagram img, .fig--diagram svg { width: 760px; max-width: none; }
  .fig--diagram figcaption {
    position: sticky; left: 0; width: calc(100vw - 40px); box-sizing: border-box;
    margin: 0; padding: 10px 2px 4px; background: var(--bg);
  }
  .fig--diagram figcaption::before {
    content: "Desliza para ver toda la guía →"; display: block; margin-bottom: 4px;
    color: var(--jade); font-weight: 800; font-size: .72rem; letter-spacing: .02em;
  }
}
