/* ==========================================================================
   OPNav — sistema de diseño "cartel"
   Campos de color planos (el mar, el sombrero de paja, la bandera pirata y el
   chaleco rojo), tipografía muy pesada y el precio de cada carta tratado como
   la cifra principal de cada carta. Esquinas rectas, sin sombras, sin degradados.
   ========================================================================== */

:root {
  /* Campos */
  --blue: #1423b8;      --blue-2: #1a2bd0;     --blue-ink: #ffffff;  --blue-soft: #c9cff7;
  --black: #0b0b0f;     --black-2: #1b1b22;    --black-ink: #ffffff; --black-soft: #b9b9c6;
  --yellow: #f7dd47;    --yellow-2: #efd22f;   --yellow-ink: #0b0b0f;
  --red: #e3262f;       --red-2: #cc1f28;      --red-ink: #ffffff;
  --paper: #f4f4f0;     --paper-2: #e8e8e1;    --paper-ink: #0b0b0f;  --paper-soft: #4c4c57;
  --white: #ffffff;

  /* Los seis colores del juego, para fichas y filtros */
  --c-red: #e3262f; --c-green: #12935a; --c-blue: #1f5fd6;
  --c-purple: #7b3fc4; --c-black: #2a2a33; --c-yellow: #f2c400;

  /* Roles */
  --accent: var(--red); --accent-ink: #fff;

  /* Tipografía */
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --text: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(3.4rem, 1rem + 10.5vw, 12.5rem);

  /* Espacio */
  --gutter: clamp(16px, 2.2vw, 32px);
  --section: clamp(72px, 9vw, 168px);
  --wrap: 1360px;

  /* Movimiento */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --t-press: 120ms;
  --t-hover: 220ms;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--paper-ink);
  font-family: var(--text);
  font-size: var(--step-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; }
button, input, select { font: inherit; color: inherit; }
a, button, select, summary, label { touch-action: manipulation; }
button, .btn, .chip, .swatch { -webkit-user-select: none; user-select: none; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
[data-field="yellow"] :focus-visible, .on-yellow :focus-visible { outline-color: var(--black); }
::selection { background: var(--yellow); color: var(--black); }
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; margin: 0; padding: 12px 16px; background: var(--yellow); color: var(--black); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* --- Tipografía -------------------------------------------------------- */
.display, .h-display {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.9;
}
.h-head {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
  font-size: var(--step-head);
}
.h-sub { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.05; font-size: var(--step-lead); }
.lead { font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }
.small { font-size: var(--step-small); }
.num { font-variant-numeric: tabular-nums; }

/* --- Campos de color (cada capítulo es uno) ---------------------------- */
[data-field] { position: relative; }
[data-field="blue"]   { background: var(--blue);   color: var(--blue-ink); }
[data-field="black"]  { background: var(--black);  color: var(--black-ink); }
[data-field="yellow"] { background: var(--yellow); color: var(--yellow-ink); }
[data-field="red"]    { background: var(--red);    color: var(--red-ink); }
[data-field="paper"]  { background: var(--paper);  color: var(--paper-ink); }
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(48px, 6vw, 96px); }

/* --- Botones ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: 0; cursor: pointer;
  font-family: var(--display); font-weight: 800; font-size: 0.95rem; letter-spacing: -0.01em;
  text-transform: uppercase; text-decoration: none;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.btn:hover { background: var(--red-2); }
.btn:active { transform: scale(0.97); }
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { background: var(--black-2); }
.btn-light { background: #fff; color: var(--black); }
.btn-light:hover { background: var(--paper-2); }
.btn-yellow { background: var(--yellow); color: var(--black); }
.btn-yellow:hover { background: var(--yellow-2); }
.link { font-weight: 500; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.link:hover { text-decoration-color: var(--accent); }

/* --- Cabecera (toma el color del capítulo que tiene debajo) ------------- */
.bar {
  position: sticky; top: 0; z-index: 50;
  background: var(--bar-bg, var(--blue)); color: var(--bar-ink, #fff);
  transition: background-color 300ms ease, color 300ms ease;
}
.bar[data-ink="black"]  { --bar-bg: var(--black);  --bar-ink: #fff; }
.bar[data-ink="yellow"] { --bar-bg: var(--yellow); --bar-ink: var(--black); }
.bar[data-ink="red"]    { --bar-bg: var(--red);    --bar-ink: #fff; }
.bar[data-ink="paper"]  { --bar-bg: var(--paper);  --bar-ink: var(--black); }
.bar-inner { display: flex; align-items: center; gap: clamp(12px, 2vw, 32px); min-height: 68px; }
.wordmark {
  font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.04em;
  text-decoration: none; text-transform: uppercase; line-height: 1;
}
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); margin-left: auto; }
.nav a { position: relative; text-decoration: none; font-weight: 500; font-size: 1rem; padding-block: 8px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--t-hover) var(--ease-out); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.lang { display: flex; gap: 2px; }
.lang a { text-decoration: none; font-weight: 500; padding: 6px 8px; opacity: 0.7; }
.lang a[aria-current="true"] { opacity: 1; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.bar .btn { min-height: 44px; padding: 0 18px; font-size: 0.85rem; }
.bar[data-ink="red"] .btn { background: var(--black); }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; margin-left: auto; cursor: pointer; font-weight: 500; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: var(--bar-bg, var(--blue)); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; font-size: 1.15rem; }
  .nav a::after { display: none; }
  .bar .btn-search { display: none; }
}

/* --- Hero de la portada: campo azul, frase a dos tintas ---------------- */
.hero-poster { min-height: calc(100svh - 68px); display: grid; grid-template-rows: auto 1fr auto; padding: clamp(28px, 6vh, 72px) 0 clamp(24px, 4vh, 48px); overflow: hidden; }
.hero-poster .display { font-size: min(var(--step-display), 10.6vw); position: relative; z-index: 2; }
.hero-poster .display span { white-space: nowrap; }
.hero-poster .ink-pale { color: var(--yellow); display: block; }
.hero-poster .ink-dark { color: #fff; display: block; }
.hero-card {
  position: absolute; z-index: 1;
  right: clamp(16px, 4vw, 80px); top: clamp(150px, 26vh, 260px);
  width: clamp(190px, 21vw, 340px);
  rotate: 5deg;
  animation: sway 9s ease-in-out infinite alternate;
}
.hero-card img { width: 100%; height: auto; border-radius: 4.5% / 3.2%; }
.hero-card-tag {
  position: absolute; left: -14%; bottom: 9%; rotate: -9deg;
  background: var(--yellow); color: var(--black);
  padding: 10px 14px 12px; font-family: var(--display); font-weight: 800; line-height: 1;
}
.hero-card-tag span { display: block; font-family: var(--text); font-weight: 500; font-size: var(--step-small); text-transform: none; letter-spacing: 0; margin-bottom: 4px; }
.hero-card-tag b { font-size: clamp(1.3rem, 2.4vw, 2.2rem); letter-spacing: -0.03em; }
@keyframes sway { from { rotate: 5deg; translate: 0 0; } to { rotate: 2.5deg; translate: 0 -10px; } }
.hero-foot { display: flex; align-items: end; justify-content: space-between; gap: 24px; position: relative; z-index: 2; margin-top: 32px; }
.hero-foot p { max-width: 30ch; font-size: var(--step-lead); line-height: 1.3; margin: 0; color: var(--blue-soft); }
.hero-foot p b { color: #fff; font-weight: 500; }
.hero-search { display: flex; width: min(100%, 560px); background: #fff; }
.hero-search input { flex: 1; min-width: 0; border: 0; padding: 0 18px; min-height: 60px; background: transparent; color: var(--black); font-size: 1.05rem; }
.hero-search input::placeholder { color: #6a6a75; }
.hero-search .btn { min-height: 60px; }
/* Por debajo de 1100px el titular ocupa todo el ancho: la carta baja debajo
   de él en vez de taparlo. */
@media (max-width: 1100px) {
  .hero-poster { min-height: auto; }
  .hero-card { position: relative; right: auto; top: auto; width: clamp(200px, 40vw, 320px); margin: 28px var(--gutter) 0 auto; }
}
@media (max-width: 760px) {
  .hero-poster { padding-top: 28px; }
  .hero-card { width: 62vw; margin-bottom: 8px; }
  .hero-foot { flex-direction: column; align-items: stretch; }
  .hero-search { width: 100%; }
}

/* --- Ficha de carta (imagen y precio de mercado) ----------------------- */
.posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.poster {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--poster-bg, #fff); color: var(--poster-ink, var(--black));
  padding: 12px 12px 14px;
  transition: transform var(--t-hover) var(--ease-out), background-color var(--t-hover) ease;
}
.poster:hover { transform: translateY(-6px) rotate(-1.2deg); }
.poster:active { transform: scale(0.98); transition-duration: var(--t-press); }
.poster-img { aspect-ratio: 600 / 838; background: var(--paper-2); border-radius: 4.5% / 3.2%; overflow: hidden; }
.poster-img img { width: 100%; height: 100%; object-fit: cover; }
.poster-img .badge { width: 100%; height: 100%; }
.poster-wanted { font-family: var(--display); font-weight: 800; font-size: 0.8rem; letter-spacing: -0.01em; text-transform: uppercase; margin: 12px 0 2px; opacity: 0.75; }
.poster-bounty { font-family: var(--display); font-weight: 800; font-size: clamp(1.25rem, 1rem + 0.9vw, 1.7rem); letter-spacing: -0.04em; line-height: 1; }
.poster-name { font-weight: 500; font-size: 1rem; line-height: 1.3; margin-top: 8px; }
.poster-meta { font-size: 1rem; opacity: 0.72; margin-top: 2px; }
[data-field="black"] .poster { --poster-bg: var(--black-2); --poster-ink: #fff; }
[data-field="blue"] .poster { --poster-bg: var(--blue-2); --poster-ink: #fff; }
[data-field="yellow"] .poster { --poster-bg: var(--yellow-2); --poster-ink: var(--black); }
@media (max-width: 520px) {
  .posters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .poster { padding: 8px 8px 10px; }
  .poster-bounty { font-size: 1.15rem; }
}

/* Insignia cuando una carta no tiene imagen en ninguna fuente */
.badge {
  display: grid; place-items: center; text-align: center;
  background: var(--black); color: var(--yellow);
  font-family: var(--display); font-weight: 800; font-size: 1rem; letter-spacing: -0.02em;
  aspect-ratio: 600 / 838; width: 100%; padding: 12px;
}
.badge-lg { font-size: 2rem; }

/* --- Tablón "Las más caras" por color (lo interactivo) ------------------ */
.board-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: end; margin-bottom: clamp(28px, 4vw, 56px); }
.board-head .h-head { max-width: none; }
.board-head p { margin: 0; max-width: 42ch; color: var(--black-soft); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; }
.swatch {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 18px 0 12px; border: 0; cursor: pointer;
  background: var(--black-2); color: #fff; font-weight: 500;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.swatch::before { content: ""; width: 22px; height: 22px; background: var(--sw, #fff); }
.swatch:active { transform: scale(0.96); }
.swatch[aria-pressed="true"] { background: #fff; color: var(--black); }
.swatch[data-color="Red"] { --sw: var(--c-red); }
.swatch[data-color="Green"] { --sw: var(--c-green); }
.swatch[data-color="Blue"] { --sw: var(--c-blue); }
.swatch[data-color="Purple"] { --sw: var(--c-purple); }
.swatch[data-color="Black"] { --sw: #55555f; }
.swatch[data-color="Yellow"] { --sw: var(--c-yellow); }
.swatch[data-color=""]::before { background: var(--yellow); }
[data-field="paper"] .swatch { background: var(--paper-2); color: var(--black); }
[data-field="paper"] .swatch[aria-pressed="true"] { background: var(--black); color: #fff; }
.board-foot { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; margin-top: clamp(28px, 4vw, 48px); }
@media (max-width: 1000px) { .board-head { grid-template-columns: 1fr; } }

/* --- Comparación: dos cifras gigantes --------------------------------- */
.compare-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.compare-top .h-head { grid-column: 1 / -1; }
.compare-top p { grid-column: 1 / 9; margin: 0; font-size: var(--step-lead); line-height: 1.35; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 48px); margin-top: clamp(48px, 10vh, 120px); }
.compare-item { display: grid; grid-template-columns: minmax(0, 1fr) clamp(90px, 11vw, 170px); gap: 16px; align-items: end; text-decoration: none; }
.compare-item figure { margin: 0; order: 2; transition: transform var(--t-hover) var(--ease-out); }
.compare-item:hover figure { transform: rotate(-3deg) translateY(-6px); }
.compare-item figure img { border-radius: 4.5% / 3.2%; }
.compare-label { font-weight: 500; margin-bottom: 8px; }
.compare-value { font-family: var(--display); font-weight: 800; letter-spacing: -0.05em; line-height: 0.8; font-size: clamp(3.2rem, 1rem + 8.6vw, 10rem); white-space: nowrap; }
.compare-x { margin-top: clamp(28px, 4vw, 56px); font-size: var(--step-lead); max-width: 40ch; }
@media (max-width: 760px) {
  .compare-top { grid-template-columns: 1fr; }
  .compare-top .h-head, .compare-top p { grid-column: auto; }
  .compare { grid-template-columns: 1fr; }
}

/* --- Lista de colecciones: palabra gigante y barras ------------------- */
.ledger { container-type: inline-size; max-width: 980px; }
.ledger-word { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.05em; line-height: 0.85; font-size: 10cqw; margin: 0 0 20px; white-space: nowrap; }
.ledger details { background: var(--blue-2); margin-bottom: 6px; }
.ledger summary {
  list-style: none; cursor: pointer; min-height: 64px; padding: 0 20px;
  display: flex; align-items: center; gap: 16px; font-weight: 500; font-size: 1.15rem;
}
.ledger summary::-webkit-details-marker { display: none; }
.ledger summary::after { content: "+"; margin-left: auto; font-family: var(--display); font-size: 1.6rem; transition: transform var(--t-hover) var(--ease-out); }
.ledger details[open] summary::after { transform: rotate(45deg); }
.ledger summary .count { opacity: 0.7; font-weight: 400; }
.ledger-rows { padding: 4px 20px 22px; display: grid; gap: 2px; }
.ledger-row { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto auto; gap: 8px 18px; align-items: center; padding: 10px 0; text-decoration: none; }
.ledger-row:hover .ledger-name { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.ledger-code { font-family: var(--display); font-weight: 800; font-size: 0.85rem; letter-spacing: -0.02em; }
.ledger-name { font-weight: 500; }
.ledger-n, .ledger-date { font-size: var(--step-small); opacity: 0.8; text-align: right; white-space: nowrap; }
@media (max-width: 640px) {
  .ledger-row { grid-template-columns: 70px minmax(0, 1fr) auto; }
  .ledger-date { display: none; }
}

/* --- Seis colores: título fijo, filas que pasan ------------------------ */
.pinned { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.pinned-head { grid-column: 1 / 6; align-self: start; position: sticky; top: 100px; }
.pinned-head .h-display { font-size: clamp(3.2rem, 1rem + 5.4vw, 6.5rem); }
.pinned-head p { margin-top: 24px; max-width: 32ch; }
.pinned-rows { grid-column: 7 / 13; display: grid; gap: clamp(36px, 4vw, 56px); }
.color-body h3 { font-family: var(--display); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); text-transform: uppercase; letter-spacing: -0.03em; display: flex; align-items: center; gap: 14px; }
.color-body h3::before { content: ""; width: 0.8em; height: 0.8em; background: var(--sw); flex: none; }
.color-body { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; align-items: start; }
.color-body ul { margin-top: 14px !important; }
.color-row:nth-child(even) .color-body { grid-template-columns: minmax(0, 1fr) 150px; }
.color-row:nth-child(even) .color-body > a:first-child { order: 2; }
.color-body img { border-radius: 4.5% / 3.2%; transition: transform var(--t-hover) var(--ease-out); }
.color-body a:hover img { transform: rotate(-2deg) scale(1.02); }
.color-body ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.color-body li b { font-weight: 500; }
@media (max-width: 860px) {
  .pinned { display: block; }
  .pinned-head { position: sticky; top: 68px; z-index: 3; background: inherit; padding: 12px 0; margin-bottom: 24px; }
  .pinned-head .h-display { font-size: 9vw; }
  .pinned-head p { display: none; }
  .color-body, .color-row:nth-child(even) .color-body { grid-template-columns: 120px minmax(0, 1fr); }
  .color-row:nth-child(even) .color-body > a:first-child { order: 0; }
  .pinned-rows { gap: 64px; }
}

/* --- Muro de cifras ---------------------------------------------------- */
.wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 8px; }
.wall-cell { aspect-ratio: 1; display: grid; place-items: center; position: relative; overflow: hidden; text-decoration: none; }
.wall-cell b { font-family: var(--display); font-weight: 800; letter-spacing: -0.05em; line-height: 0.9; font-size: clamp(2.2rem, 0.6rem + 5.2vw, 6.4rem); text-align: center; white-space: nowrap; }
.wall-cell b.is-long { font-size: clamp(1.5rem, 0.4rem + 3.1vw, 3.9rem); }
.wall-cell span { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-size: 0.95rem; font-weight: 500; }
.wall-cell img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform 600ms var(--ease-out); }
a.wall-cell:hover img { transform: scale(1.05); }
.wall-cell.f-black { background: var(--black); color: #fff; }
.wall-cell.f-yellow { background: var(--yellow); color: var(--black); }
.wall-cell.f-red { background: var(--red); color: #fff; }
.wall-cell.f-blue { background: var(--blue); color: #fff; }
@media (max-width: 640px) { .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 6px; } .wall-cell b { font-size: 13vw; } .wall-cell span { font-size: 0.85rem; bottom: 12px; } }

/* --- Tablero de frases ------------------------------------------------- */
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(220px, 34svh)); gap: 8px; padding: 8px; }
.mosaic-a { grid-column: 1 / 9; grid-row: 1 / 3; background: var(--black); color: #fff; display: flex; align-items: end; padding: clamp(20px, 3vw, 40px); }
.mosaic-a .h-display { font-size: clamp(2.4rem, 0.8rem + 5vw, 7rem); max-width: 9ch; }
.mosaic-b { grid-column: 9 / 13; grid-row: 1; background: var(--yellow); color: var(--black); display: flex; align-items: end; padding: 20px; overflow: hidden; }
.mosaic-b b { font-family: var(--display); font-size: clamp(2.6rem, 1rem + 4.6vw, 6rem); letter-spacing: -0.05em; line-height: 0.85; }
.mosaic-c { grid-column: 9 / 13; grid-row: 2; overflow: hidden; background: var(--red); }
.mosaic-c img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.14) translateY(-3%); } }
.mosaic-text { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; padding: clamp(40px, 6vw, 96px) 0; }
.mosaic-text div { grid-column: 6 / 13; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); line-height: 1.45; }
@media (max-width: 900px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 46svh 44vw; gap: 6px; padding: 6px; }
  .mosaic-a { grid-column: 1 / 3; grid-row: 1; }
  .mosaic-a .h-display { font-size: 11vw; max-width: none; }
  .mosaic-b { grid-column: 1; grid-row: 2; }
  .mosaic-c { grid-column: 2; grid-row: 2; }
  .mosaic-text { display: block; }
}

/* --- Preguntas: fichas con pestaña ------------------------------------ */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.faq > * { grid-column: 2 / 12; }
.faq .h-head { margin-bottom: clamp(32px, 5vw, 64px); }
.faq-card { position: relative; margin-top: -2px; }
.faq-card summary { list-style: none; cursor: pointer; display: block; }
.faq-card summary::-webkit-details-marker { display: none; }
.faq-tab {
  display: inline-flex; align-items: center; height: 40px; padding: 0 22px;
  margin-left: calc(var(--i, 0) * clamp(24px, 8vw, 140px));
  font-weight: 500; background: var(--card);
  clip-path: polygon(0 100%, 12px 0, calc(100% - 12px) 0, 100% 100%);
}
.faq-q { display: flex; align-items: center; gap: 16px; background: var(--card); padding: 22px clamp(18px, 3vw, 36px); font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); font-weight: 500; }
.faq-q::after { content: "+"; margin-left: auto; font-family: var(--display); font-size: 1.6rem; transition: transform var(--t-hover) var(--ease-out); }
.faq-card[open] .faq-q::after { transform: rotate(45deg); }
.faq-a { background: var(--card); padding: 0 clamp(18px, 3vw, 36px) 28px; }
.faq-a p { max-width: 60ch; margin: 0; }
.faq-card:nth-of-type(3n+1) { --card: var(--black); color: #fff; }
.faq-card:nth-of-type(3n+2) { --card: var(--blue); color: #fff; }
.faq-card:nth-of-type(3n+3) { --card: var(--red); color: #fff; }
[data-field="black"] .faq-card:nth-of-type(3n+1) { --card: var(--yellow); color: var(--black); }
@media (max-width: 760px) { .faq > * { grid-column: 1 / -1; } .faq-tab { margin-left: calc(var(--i, 0) * 24px); } }

/* --- Cabeceras de página interior ------------------------------------- */
.page-hero { padding: clamp(40px, 7vw, 112px) 0 clamp(40px, 6vw, 88px); overflow: hidden; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 64px); align-items: end; }
.page-hero h1 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.035em; line-height: 0.92; font-size: var(--h1-size, clamp(2.6rem, 1rem + 6vw, 7.5rem)); max-width: 16ch; }
.page-hero .lede { margin-top: clamp(20px, 3vw, 36px); max-width: 58ch; font-size: var(--step-body); }
.page-hero .lede strong { font-weight: 500; }
.page-hero-card { width: clamp(150px, 17vw, 250px); rotate: 4deg; margin-bottom: -8px; }
.page-hero-card img { border-radius: 4.5% / 3.2%; }
.crumbs { font-size: var(--step-small); margin-bottom: clamp(20px, 3vw, 36px); opacity: 0.85; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { margin: 0 8px; }
@media (max-width: 760px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-card { width: 42vw; justify-self: end; margin-top: -8px; }
}

/* Fila de cifras de una página */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin-top: clamp(28px, 4vw, 48px); }
.stat { background: var(--stat-bg, rgba(255,255,255,0.1)); padding: 18px 18px 16px; }
[data-field="blue"] .stat { --stat-bg: var(--blue-2); }
[data-field="black"] .stat { --stat-bg: var(--black-2); }
[data-field="yellow"] .stat { --stat-bg: var(--yellow-2); }
[data-field="red"] .stat { --stat-bg: var(--red-2); }
[data-field="paper"] .stat { --stat-bg: var(--paper-2); }
.stat b { display: block; font-family: var(--display); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-size: clamp(1.35rem, 1rem + 1.2vw, 2.1rem); }
.stat span { display: block; margin-top: 8px; font-size: 1rem; }
.stat a { text-decoration: none; }

/* --- Barra de filtros ------------------------------------------------- */
.filters { position: sticky; top: 68px; z-index: 20; background: var(--black); color: #fff; }
.filters-inner { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 12px; align-items: center; }
.field, .select {
  min-height: 48px; border: 0; border-radius: 0; padding: 0 14px;
  background: var(--black-2); color: #fff; font-size: 1rem;
}
.field { flex: 1 1 260px; min-width: 0; }
.field::placeholder { color: var(--black-soft); }
.select { flex: 0 1 auto; cursor: pointer; }
.filters .btn { min-height: 48px; }
.filter-count { margin-left: auto; font-size: var(--step-small); color: var(--black-soft); white-space: nowrap; }
@media (max-width: 760px) {
  .filters { position: static; }
  .field { flex-basis: 100%; }
  .select { flex: 1 1 calc(50% - 4px); min-width: 0; }
  .filter-count { margin-left: 0; width: 100%; }
}

/* --- Ficha de carta --------------------------------------------------- */
.card-page { display: grid; grid-template-columns: minmax(260px, 440px) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.card-art { position: sticky; top: 96px; perspective: 900px; }
.card-art .tilt { transition: transform 400ms var(--ease-out); transform-style: preserve-3d; will-change: transform; }
.card-art img { width: 100%; height: auto; border-radius: 4.5% / 3.2%; }
.card-title { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.035em; line-height: 0.95; font-size: var(--h1-size, clamp(2.2rem, 1rem + 3.6vw, 4.6rem)); }
.card-sub { margin-top: 16px; font-size: var(--step-lead); line-height: 1.35; }
.card-sub strong { font-weight: 500; }
.bounty {
  margin-top: clamp(24px, 3vw, 40px);
  background: var(--yellow); color: var(--black);
  padding: clamp(20px, 3vw, 36px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: end;
}
.bounty-label { grid-column: 1 / -1; font-weight: 500; font-size: var(--step-body); margin-top: 6px; }
.bounty-value { font-family: var(--display); font-weight: 800; letter-spacing: -0.05em; line-height: 0.85; font-size: clamp(2.8rem, 1rem + 5vw, 5.6rem); grid-column: 1 / -1; }
.bounty-note { grid-column: 1 / -1; margin: 6px 0 0; font-size: 1rem; max-width: 60ch; }
.bounty .bounty-btn { grid-column: 1 / -1; justify-self: start; margin-top: 12px; }
.spec { width: 100%; border-collapse: collapse; margin-top: clamp(28px, 4vw, 48px); }
.spec th, .spec td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--paper-2); vertical-align: top; }
.spec th { font-weight: 400; color: var(--paper-soft); width: 38%; padding-right: 16px; }
.spec td { font-weight: 500; }
.chip { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; margin: 0 6px 6px 0; font-weight: 500; font-size: 0.95rem; text-decoration: none; }
.chip.c-red { background: var(--c-red); color: #fff; }
.chip.c-green { background: var(--c-green); color: #fff; }
.chip.c-blue { background: var(--c-blue); color: #fff; }
.chip.c-purple { background: var(--c-purple); color: #fff; }
.chip.c-black { background: var(--c-black); color: #fff; }
.chip.c-yellow { background: var(--c-yellow); color: var(--black); }
.chip.c-plain { background: var(--paper-2); color: var(--black); }
.effect { margin-top: clamp(28px, 4vw, 48px); background: var(--black); color: #fff; padding: clamp(20px, 3vw, 36px); }
.effect h2 { font-family: var(--display); text-transform: uppercase; letter-spacing: -0.02em; font-size: var(--step-lead); margin-bottom: 14px; }
.effect p { margin: 0; font-size: var(--step-lead); line-height: 1.4; max-width: 46ch; }
.notes { margin-top: clamp(28px, 4vw, 48px); }
.notes h2 { font-family: var(--display); text-transform: uppercase; letter-spacing: -0.02em; font-size: var(--step-lead); margin-bottom: 14px; }
.notes ul { margin: 0; padding-left: 1.2em; display: grid; gap: 12px; max-width: 64ch; }
.notes a { font-weight: 500; }
@media (max-width: 860px) {
  .card-page { grid-template-columns: 1fr; }
  .card-art { position: relative; top: auto; max-width: 300px; width: 58vw; margin-inline: auto; }
}

/* Secciones con rejilla de carteles */
.shelf-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(24px, 3vw, 40px); }
.shelf-head .h-head { max-width: 18ch; }

/* --- Texto largo (guías y legales) ------------------------------------ */
.prose { max-width: 68ch; }
.prose h2 { font-family: var(--display); text-transform: uppercase; letter-spacing: -0.03em; line-height: 1; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem); margin: 2.2em 0 0.6em; }
.prose h3 { font-weight: 500; font-size: var(--step-lead); margin: 1.6em 0 0.4em; }
.prose p, .prose li { font-size: var(--step-body); }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: 8px; margin: 0 0 1.2em; }
.prose a { font-weight: 500; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0 1.6em; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--paper-2); }
.prose th { font-weight: 500; }
.prose figure { margin: 1.6em 0; }
.prose .callout { background: var(--yellow); padding: 20px 24px; margin: 1.6em 0; }
.prose .callout p:last-child { margin: 0; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 6vw, 96px); align-items: start; }
.article-aside { position: sticky; top: 100px; display: grid; gap: 16px; }
.article-aside .poster { max-width: 260px; }
@media (max-width: 960px) { .article-grid { grid-template-columns: 1fr; } .article-aside { position: static; } }

.guide-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.guide-item { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 260px; padding: clamp(20px, 2.4vw, 32px); text-decoration: none; transition: transform var(--t-hover) var(--ease-out); }
.guide-item:hover { transform: translateY(-4px); }
.guide-item h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: -0.03em; line-height: 1; font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem); }
.guide-item p { margin: 0; }
.guide-item:nth-child(4n+1) { background: var(--blue); color: #fff; }
.guide-item:nth-child(4n+2) { background: var(--yellow); color: var(--black); }
.guide-item:nth-child(4n+3) { background: var(--red); color: #fff; }
.guide-item:nth-child(4n+4) { background: var(--black); color: #fff; }

/* --- Publicidad ------------------------------------------------------- */
.ad-slot { margin-block: clamp(32px, 4vw, 56px); text-align: center; min-height: 120px; }
.ad-label { display: block; font-size: var(--step-small); opacity: 0.7; margin-bottom: 6px; }

/* --- Pie: la marca construida en bloques ------------------------------ */
.foot { padding: clamp(48px, 7vw, 112px) 0 32px; }
.foot-mark { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; align-items: end; height: clamp(150px, 30svh, 340px); }
.foot-mark span {
  display: grid; place-items: center; height: var(--h, 100%);
  font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 1rem + 11vw, 14rem); line-height: 1; overflow: hidden;
}
.foot-mark span:nth-child(1) { background: var(--red); color: var(--black); --h: 100%; }
.foot-mark span:nth-child(2) { background: var(--yellow); color: var(--black); --h: 78%; }
.foot-mark span:nth-child(3) { background: var(--blue); color: var(--black); --h: 92%; }
.foot-mark span:nth-child(4) { background: #fff; color: var(--black); --h: 68%; }
.foot-mark span:nth-child(5) { background: var(--c-green); color: var(--black); --h: 86%; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.5fr); gap: 32px; margin-top: 56px; }
.foot-cols h2 { font-family: var(--text); font-weight: 500; font-size: 1rem; margin-bottom: 14px; color: #fff; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-cols a { text-decoration: none; color: var(--black-soft); }
.foot-cols a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-legal { color: var(--black-soft); font-size: 1rem; }
.foot-legal p { margin: 0 0 10px; max-width: 70ch; }
.foot-legal a { color: #fff; }
.foot-last { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; color: var(--black-soft); font-size: var(--step-small); }
.foot-last .linklike { background: none; border: 0; padding: 0; color: var(--black-soft); text-decoration: underline; cursor: pointer; }
@media (max-width: 860px) {
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-legal { grid-column: 1 / -1; }
  .foot-mark { height: 22svh; }
}

/* Ir arriba */
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  width: 52px; height: 52px; border: 0; cursor: pointer;
  background: var(--yellow); color: var(--black); font-family: var(--display); font-size: 1.3rem;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity var(--t-hover) ease, transform var(--t-hover) var(--ease-out), visibility 0s linear var(--t-hover);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:active { transform: scale(0.94); }

/* 404 */
.error-mark { font-family: var(--display); font-weight: 800; letter-spacing: -0.06em; line-height: 0.8; font-size: clamp(6rem, 2rem + 18vw, 18rem); color: var(--yellow); }

/* --- Entradas: solo si hay JS; sin JS todo se ve -------------------- */
.js [data-rise] { opacity: 0; transform: translateY(24px); }
.js [data-rise].is-in { opacity: 1; transform: none; transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--d, 0) * 80ms); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; }
  .js [data-rise] { opacity: 1; transform: none; }
  .poster:hover, .guide-item:hover { transform: none; }
}
