/* RÜM Stories 02 · Mi roomie es una jungla — revista que se hojea (motor y maquetas de la 01, tema verde noche).
   Estilo contemporáneo: Syne para titulares, Instrument Serif en itálica para los acentos,
   Inter para el cuerpo. Cada página tiene su propia maqueta (lay-a … lay-e, fichas, pósters).
   Todo adentro de una página se mide contra su ancho (--pw, que fija el motor): --u = 1 % del ancho. */

:root {
  --paper: #F3EEE7;
  --paper-2: #E9E2D8;
  --ink: #0b1f16;
  --ink-2: #143a27;
  --ink-soft: #33463b;
  --mute: #7d7a74;
  --peach: #F3D2B2;
  --terra: #8e5434;
  --sage: #cdd6bf;
  --rule: rgba(8,24,17, .16);
  --rule-l: rgba(243, 238, 231, .18);
  --display: "Syne", "Inter", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --rum: "Baloo 2", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body { color: var(--ink); background: var(--ink); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
::selection { background: var(--peach); color: var(--ink); }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--peach); outline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
.rum { font-family: var(--rum); font-weight: 800; letter-spacing: 0; text-transform: none; font-style: normal; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.noscript { position: fixed; inset: 0; display: grid; place-content: center; text-align: center; padding: 2rem; color: var(--paper); }

/* ── Barra fija ──────────────────────────────────────────────────────── */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px;
  padding: 12px clamp(16px, 3vw, 40px); color: var(--paper); background: rgba(8,24,17, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule-l); }
.top-brand { display: flex; gap: 10px; align-items: baseline; text-decoration: none; font: 600 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; }
.top-brand .rum { font-size: 20px; }
.top-progress { height: 1px; background: var(--rule-l); position: relative; }
.top-progress i { position: absolute; left: 0; top: 0; height: 1px; width: 0; background: var(--peach); transition: width .5s var(--ease); }
.top-meta { font: 600 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; opacity: .75; }
.top-end { display: flex; align-items: center; gap: 14px; justify-self: end; }
/* Música: un gramófono de bocina. Mientras suena el disco gira (un brillo que le da la vuelta)
   y salen notitas de la bocina; al tocarlo se levanta la aguja y el disco se detiene. */
.top-music { display: block; width: 54px; height: 38px; margin: -12px -6px -12px 0; padding: 2px 4px; border: 0; background: none; color: var(--paper); opacity: .7; cursor: pointer; transition: opacity .2s; }
.top-music:hover, .top-music.is-on { opacity: 1; }
/* En pantalla ancha vive junto a la esquina inferior derecha de la revista (page-music.js lo coloca) */
.top-music.is-docked { position: fixed; z-index: 41; width: 92px; height: 65px; margin: 0; padding: 0;
  transition: left .7s var(--ease), top .7s var(--ease), opacity .2s; }
.top-music.is-docked.is-tracking { transition: opacity .2s; }
.top-music svg { display: block; width: 100%; height: 100%; overflow: visible; }
.top-music .gr-line { fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.top-music .gr-wood { fill: rgba(243, 210, 178, .14); stroke: currentColor; stroke-width: 1.1; stroke-linejoin: round; }
.top-music .gr-disc { fill: #120d10; stroke: currentColor; stroke-width: .8; }
.top-music .gr-mouth { fill: #120d10; stroke: currentColor; stroke-width: 1.1; }
.top-music .gr-groove { fill: none; stroke: currentColor; stroke-width: .5; opacity: .35; }
.top-music .gr-label { fill: var(--peach); }
.top-music .gr-spin { fill: none; stroke: var(--peach); stroke-width: 1; stroke-linecap: round; stroke-dasharray: 16 84; opacity: .85;
  animation: gr-spin 1.8s linear infinite; animation-play-state: paused; }
.top-music.is-on .gr-spin { animation-play-state: running; }
@keyframes gr-spin { to { stroke-dashoffset: -100; } }
.top-music .gr-arm { transform-box: view-box; transform-origin: 41px 22.6px; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); }
.top-music[aria-pressed="false"] .gr-arm { transform: rotate(32deg); }
.top-music .gr-notes text { fill: var(--peach); font: 9px/1 serif; opacity: 0; }
.top-music.is-on .gr-notes text { animation: gr-note 2.6s ease-out infinite; }
.top-music.is-on .gr-notes text + text { animation-delay: 1.3s; }
@keyframes gr-note { 0% { opacity: 0; transform: translate(0, 4px); } 25% { opacity: .9; } 100% { opacity: 0; transform: translate(5px, -8px); } }
@media (prefers-reduced-motion: reduce) { .top-music .gr-spin, .top-music .gr-notes text { animation: none; } .top-music .gr-arm { transition: none; } }
@media (max-width: 640px) {
  .top { grid-template-columns: auto 1fr; gap: 8px 12px; padding: 10px 14px; }
  .top-progress { grid-column: 1 / -1; order: 3; }
  .top-brand { font-size: 10px; letter-spacing: .14em; }
  .top-brand .rum { font-size: 17px; }
  .top-meta { justify-self: end; font-size: 10px; }
}

/* ── Mesa ────────────────────────────────────────────────────────────── */
.desk { position: fixed; inset: 0; display: grid; place-items: center; padding: var(--pad-top, 64px) 16px var(--pad-bottom, 76px);
  background: radial-gradient(ellipse 62% 56% at 50% 46%, var(--ink-2) 0%, rgba(18,48,31,0) 70%), var(--ink); }
@media (max-width: 640px) { .desk { --pad-top: 78px; --pad-bottom: 70px; padding-left: 8px; padding-right: 8px; } }

.book { position: relative; width: calc(var(--pw, 400px) * var(--cols, 2)); height: var(--ph, 533px); transition: transform .7s var(--ease);
  touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.book.is-grabbing { cursor: grabbing; transition: none; }
.book.is-moving { transition: none; }
.book img, .book video { -webkit-user-drag: none; }
.book-floor { position: absolute; left: var(--floor-l, 0); width: var(--floor-w, 100%); bottom: -14px; height: 40px; pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(0,0,0,.75), rgba(0,0,0,0) 72%); filter: blur(6px); transition: left .7s var(--ease), width .7s var(--ease); }
.edge { position: absolute; top: 3px; bottom: 3px; width: 0; transition: width .5s var(--ease);
  background: repeating-linear-gradient(90deg, #e4ddd3 0 1px, #b7b0a5 1px 2px); box-shadow: 0 18px 40px -16px rgba(0,0,0,.8); }
.shade { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 20; } /* nace en 0×0: el JS la agranda sin contar como brinco (CLS) */

/* ── Página ──────────────────────────────────────────────────────────── */
.pg {
  position: absolute; top: 0; left: 0; width: var(--pw, 400px); height: var(--ph, 533px);
  overflow: hidden; visibility: hidden;
  background: var(--paper); color: var(--ink);
  transform-origin: 0 0; box-shadow: 0 30px 60px -28px rgba(0,0,0,.85);
  --u: calc(var(--pw) / 100);
  --k: 1; font-size: calc(var(--u) * 3 * var(--k)); line-height: 1.5;
  --px: calc(var(--u) * 8); --pt: calc(var(--u) * 7);
  padding: var(--pt) var(--px) 0;
}
.book[data-mode="single"] .pg { --k: 1.14; --px: calc(var(--u) * 7); }
/* Desde la sexta hoja no se maqueta nada hasta que magazine.js la acerca (content-visibility en línea). */
.pg ~ .pg ~ .pg ~ .pg ~ .pg ~ .pg { content-visibility: hidden; }
.pg::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.pg.is-right::after { background: linear-gradient(90deg, rgba(0,0,0,.30) 0, rgba(0,0,0,.10) 2.5%, rgba(0,0,0,0) 8%, rgba(255,255,255,.05) 11%, rgba(255,255,255,0) 16%); }
.pg.is-left::after { background: linear-gradient(270deg, rgba(0,0,0,.30) 0, rgba(0,0,0,.10) 2.5%, rgba(0,0,0,0) 8%, rgba(255,255,255,.05) 11%, rgba(255,255,255,0) 16%); }
.pg.is-cover::after { background: linear-gradient(90deg, rgba(0,0,0,.28) 0, rgba(0,0,0,0) 3.5%); }
.pg--blank { background: var(--paper-2); }
.ink { background: var(--ink); color: var(--paper); --rule: var(--rule-l); --mute: rgba(243, 238, 231, .6); }
.field-sage { background: var(--sage); }
.field-peach { background: var(--peach); }

/* Piezas comunes */
.kicker { margin: 0 0 1em; font: 600 .62em/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
.title { margin: 0 0 .5em; font: 700 2.9em/.98 var(--display); letter-spacing: -.035em; max-width: 11ch; }
.title--caps { font-size: 2.2em; font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; line-height: .95; max-width: 12ch; }
.title--xl { font-size: 3.5em; font-weight: 800; letter-spacing: -.045em; line-height: .9; }
.title--serif { font-family: var(--serif); font-weight: 400; font-size: 3.1em; letter-spacing: -.01em; line-height: .95; max-width: 13ch; }
.title i, .title--xl i { font-family: var(--serif); font-weight: 400; font-style: italic; }
.title--serif i { color: var(--terra); }
.ink .title--serif i { color: var(--peach); }
.lede { margin: 0 0 1em; font: italic 400 1.4em/1.2 var(--serif); max-width: 24ch; }
.body { font-size: .95em; }
.body p { margin: 0 0 .9em; }
.body--cols { column-count: 2; column-gap: 1.4em; font-size: .78em; line-height: 1.5; }
.body--cols p { break-inside: avoid; margin-bottom: .8em; }
.lay-a .body p:first-child::first-letter { float: left; font: 800 3.6em/.82 var(--display); margin: .06em .1em 0 0; color: var(--terra); }
.note { font: 400 .7em/1.5 var(--sans); color: var(--mute); margin: .6em 0 0; }
.note b { color: inherit; font-weight: 600; }
.ink .note b, .ink .note { color: rgba(243, 238, 231, .78); }
.pull { margin: 0 0 1.1em; font: italic 400 1.6em/1.15 var(--serif); max-width: 20ch; }
.pull::before { content: ""; display: block; width: 2em; height: 2px; background: var(--peach); margin-bottom: .55em; }

/* Folio */
.folio { position: absolute; left: var(--px); right: var(--px); bottom: calc(var(--u) * 4.2); z-index: 4; display: flex; justify-content: space-between; align-items: baseline;
  padding-top: calc(var(--u) * 1.4); border-top: 1px solid var(--rule); font: 600 .58em/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); font-variant-numeric: tabular-nums; }
.folio span:first-child { color: currentColor; font-weight: 700; font-size: 1.1em; letter-spacing: .04em; }
.pg.is-right .folio { flex-direction: row-reverse; }
.pg--photo .folio { color: rgba(243,238,231,.7); border-top-color: rgba(243,238,231,.22); }

/* ── Portada ─────────────────────────────────────────────────────────── */
.pg--cover { color: var(--paper); background: var(--ink); padding-bottom: calc(var(--u) * 6); display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr); }
.pg-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--ink-2); }
.cover-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,24,17,.55) 0%, rgba(8,24,17,.1) 36%, rgba(8,24,17,.85) 100%); }
.pg--cover > :where(:not(.pg-media, .cover-scrim)) { position: relative; z-index: 2; }
.cover-meta { display: flex; justify-content: space-between; gap: 1em; margin: 0; font: 600 .58em/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; opacity: .9; }
.cover-title { align-self: end; margin: 0 0 .1em; font: 800 5.6em/.82 var(--display); letter-spacing: -.055em; text-transform: uppercase; }
.cover-title span { display: block; }
.cover-title .em { color: var(--peach); }
.cover-foot { display: grid; gap: .5em; margin-top: .8em; }
.cover-dek { margin: 0; max-width: 24ch; font: italic 400 1.5em/1.15 var(--serif); }
.cover-hint { margin: 0; font: 600 .58em/1.6 var(--sans); letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.book[data-mode="single"] .cover-title { font-size: 5.2em; }
.cover-meta span + span { flex: none; white-space: nowrap; } /* "No. 01" nunca se parte: si baja de renglón, el número queda bajo RÜM */
.cover-rum { position: absolute; right: var(--px); top: calc(var(--pt) + 1.4em); margin: 0; font-size: 1.5em; line-height: 1; }

/* ── Índice ──────────────────────────────────────────────────────────── */
.contents { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.contents li { border-bottom: 1px solid var(--rule); }
.contents button { display: grid; grid-template-columns: 2.6em 1fr auto; gap: .6em; align-items: baseline; width: 100%; padding: .62em 0; border: 0; background: none; text-align: left; }
.contents button:hover .t, .contents button:focus-visible .t { color: var(--terra); }
.contents .n { font: 800 .95em/1 var(--display); letter-spacing: -.02em; }
.contents .t { font: 400 1.2em/1.15 var(--serif); }
.contents .p { font: 600 .6em/1 var(--sans); letter-spacing: .1em; color: var(--mute); font-variant-numeric: tabular-nums; }
.howto { margin: 1.2em 0 0; font-size: .74em; line-height: 1.45; color: var(--ink-soft); max-width: 36ch; }

/* ── Fotos a sangre ──────────────────────────────────────────────────── */
.pg--photo { background: var(--ink); color: var(--paper); padding: 0; }
.boxes-frame, .house-frame { position: absolute; inset: 0; }
.boxes-frame img, .house-frame img { width: 100%; height: 100%; object-fit: cover; }
.boxes-frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Mies con su caja: la caja de la maqueta se traza sola al abrir la página, como las 16 cajas */
.mies-frame { position: absolute; inset: 0; overflow: hidden; }
.mies-move { position: absolute; inset: 0; }
.mies-move img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15); }
.mies-box { position: absolute; inset: 0; width: 100%; height: 100%; }
.mies-box * { fill: none; stroke: var(--peach); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.pg.is-live .mies-box * { animation: draw 1.1s var(--ease) forwards; animation-delay: calc(.6s + var(--i, 0) * .14s); }
.mies-quote { position: absolute; left: var(--px); right: var(--px); top: var(--pt); z-index: 3; margin: 0; color: var(--paper); text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.mies-quote em { display: block; font: italic 400 3.4em/.95 var(--serif); color: var(--peach); }
.mies-quote span { display: block; margin-top: .7em; font: 600 .58em/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.big-num { position: absolute; left: var(--px); top: var(--pt); z-index: 3; margin: 0; color: var(--paper); font: 600 .58em/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.big-num b { display: block; font: 800 7em/.9 var(--display); letter-spacing: -.05em; color: var(--peach); margin-bottom: .1em; }
/* Palabras (no cifras): más chicas y con margen derecho para que no se salgan de la página en celular */
.big-num--word { right: var(--px); }
.big-num--word b { font-size: 4.6em; }
.photo-cap { position: absolute; left: var(--px); right: var(--px); bottom: calc(var(--u) * 12); z-index: 3; margin: 0; font: 400 .7em/1.4 var(--sans); color: rgba(243,238,231,.85); text-shadow: 0 1px 6px rgba(0,0,0,.6); }

/* ── Capítulos: cinco maquetas ───────────────────────────────────────── */
/* A · numeral gigante como marca de agua, título grande, capitular */
.lay-a .numeral { position: absolute; right: calc(var(--px) * .7); top: calc(var(--pt) * .5); margin: 0; font: 800 6.2em/1 var(--display); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px var(--terra); opacity: .55; z-index: 0; pointer-events: none; }
.lay-a > :not(.numeral, .folio) { position: relative; z-index: 1; }
.lay-a .kicker { margin-top: 3.2em; }
/* B · versales apretadas, entrada en itálica y texto a dos columnas */
.lay-b .title--caps { margin-bottom: .4em; }
/* C · cita primero, texto después */
.lay-c .pull { margin-top: 1.2em; }
/* D · título enorme sobre campo de color */
.lay-d .kicker { color: var(--terra); }
/* E · título serif grande y texto a dos columnas */
.lay-e .title--serif { margin-bottom: .45em; }
.pg--contents .contents { margin-bottom: .2em; }

/* ── Ficha (negra) ───────────────────────────────────────────────────── */
.ficha-name { margin: .9em 0 .1em; font: 800 3.3em/.86 var(--display); letter-spacing: -.05em; text-transform: uppercase; }
.ficha-years { margin: 0 0 .35em; font: italic 400 1.3em/1 var(--serif); color: var(--peach); }
.ficha-dek { margin: 0 0 1.1em; font: italic 400 1.45em/1.1 var(--serif); max-width: 18ch; }
.ficha-dek b { font-weight: 400; color: var(--peach); }
.ficha-years i { font-style: normal; color: var(--mute); padding: 0 .1em; }
.ficha-list { margin: 0; padding: 0; border-top: 1px solid var(--rule-l); }
.ficha-list > div { display: grid; grid-template-columns: 3.6em 1fr; gap: .8em; padding: .42em 0; border-bottom: 1px solid var(--rule-l); font-size: .85em; line-height: 1.35; }
.ficha-list dt { font: 600 .95em/1.45 var(--sans); letter-spacing: .04em; color: var(--peach); font-variant-numeric: tabular-nums; }
.ficha-list dd { margin: 0; }

/* ── III · La frase (póster) ─────────────────────────────────────────── */
.pg--phrase { display: grid; grid-template-rows: auto 1fr auto; }
.phrase { align-self: center; margin: 0 0 1em; display: grid; font: 800 4.6em/.86 var(--display); letter-spacing: -.05em; text-transform: uppercase; }
.phrase .strike { font: italic 400 .62em/1.1 var(--serif); text-transform: none; letter-spacing: 0; color: var(--mute); margin: .15em 0 .1em; justify-self: start; }
.phrase .em { color: var(--peach); }
.phrase-note { margin: 0 0 calc(var(--u) * 12); font: 600 .58em/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }

/* ── IV · Pares (póster tipográfico) ─────────────────────────────────── */
.pg--pairs { display: grid; grid-template-rows: auto 1fr auto; }
/* Póster: cada par con su propio tamaño, tipo y posición, como un collage tipográfico de los 60. */
.pairs { align-self: center; list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: .2em; }
.pairs li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .25em; font: 700 1.75em/1 var(--display); letter-spacing: -.035em; }
.pairs li:nth-child(1) { font-size: 2.3em; }
.pairs li:nth-child(2) { font: 600 .82em/1.2 var(--sans); letter-spacing: .32em; text-transform: uppercase; justify-content: flex-end; margin: .4em 0 .2em; }
.pairs li:nth-child(2) i { font-size: 1.6em; letter-spacing: 0; text-transform: none; }
.pairs li:nth-child(3) { font-size: 3.6em; line-height: .86; letter-spacing: -.05em; flex-direction: column; gap: 0; }
.pairs li:nth-child(3) i { font-size: 1.25em; line-height: .6; margin: -.05em 0 -.1em .35em; }
.pairs li:nth-child(4) { font: italic 400 2.4em/1 var(--serif); letter-spacing: -.01em; justify-content: flex-end; transform: rotate(-4deg); transform-origin: right bottom; margin-top: .15em; }
.pairs i { font: italic 400 1.1em/1 var(--serif); color: var(--terra); }
.pg--pairs .note { margin-bottom: calc(var(--u) * 12); }

/* ── IV · Cita ───────────────────────────────────────────────────────── */
.pg--quote { display: grid; grid-template-rows: auto 1fr auto; }
.quote { align-self: center; margin: 0; font: italic 400 2.5em/1.05 var(--serif); letter-spacing: -.01em; }
.quote span { display: block; }
.quote b { font-weight: 400; font-style: normal; color: var(--terra); }
.pg--quote .note { margin-bottom: calc(var(--u) * 12); max-width: 34ch; }

/* ── Anuncio: un solo pliego, y dice que lo es ───────────────────────── */
.pg--ad { background: var(--ink); color: var(--paper); }
.pg--wide-l .pg-media, .pg--wide-r .pg-media { width: 200%; max-width: none; }
.pg--wide-l .pg-media { left: 0; }
.pg--wide-r .pg-media { left: -100%; }
.ad-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,24,17,.55) 0%, rgba(8,24,17,.15) 30%, rgba(8,24,17,.88) 100%); }
.ad-scrim--r { background: linear-gradient(180deg, rgba(8,24,17,.45) 0%, rgba(8,24,17,0) 30%, rgba(8,24,17,.6) 100%); }
.pg--ad > :where(:not(.pg-media, .ad-scrim)) { position: relative; z-index: 2; }
.ad-tag { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 1em; font: 600 .58em/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--peach); }
.ad-tag .rum { font-size: 1.5em; }
.ad-label { display: inline-block; padding: .55em .8em .45em; border: 1px solid var(--peach); border-radius: 999px; background: rgba(8,24,17,.45); }
.ad-tag--r { justify-content: flex-end; }
.book[data-mode="spread"] .ad-tag--r { visibility: hidden; }
.ad-in { position: absolute; left: var(--px); right: var(--px); bottom: calc(var(--u) * 7); }
.ad-in h2 { margin: 0 0 .4em; font: 700 2.1em/.96 var(--display); letter-spacing: -.035em; }
.ad-in h2 i { font: italic 400 1em/1 var(--serif); color: var(--peach); }
.ad-in p { margin: 0 0 .9em; max-width: 34ch; font-size: .84em; line-height: 1.45; color: rgba(243,238,231,.9); }
.ad-actions { display: flex; flex-wrap: wrap; gap: .6em 1em; align-items: center; margin: 0 !important; }
.ad-btn { display: inline-flex; padding: .95em 1.35em; border-radius: 999px; border: 1px solid var(--peach); color: var(--peach); text-decoration: none; font: 600 .64em/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; transition: background .2s, color .2s; }
.ad-btn:hover { background: var(--peach); color: var(--ink); }
.ad-link { color: var(--paper); font: italic 400 .95em/1 var(--serif); }
.ad-cap { position: absolute; right: var(--px); bottom: calc(var(--u) * 7); margin: 0; font: 600 .56em/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(243,238,231,.75); text-align: right; }
.ad-cap .rum { font-size: 1.4em; letter-spacing: 0; }

/* ── V · La casa numerada ────────────────────────────────────────────── */
.spot { position: absolute; width: 2em; height: 2em; margin: -1em 0 0 -1em; border-radius: 50%; border: 1.5px solid var(--paper); background: rgba(8,24,17,.5); color: var(--paper);
  font: 800 .72em/1 var(--display); display: grid; place-items: center; z-index: 3; }
.house-legend { position: absolute; left: var(--px); right: var(--px); bottom: calc(var(--u) * 12); z-index: 4; margin: 0; padding: .8em 1em; list-style: none; display: grid; gap: .3em;
  background: rgba(8,24,17,.74); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-left: 2px solid var(--peach); color: var(--paper); font-size: .68em; line-height: 1.35; }
.house-legend b { font: 800 1em/1 var(--display); color: var(--peach); margin-right: .4em; }

/* ── Interludio a sangre ─────────────────────────────────────────────── */
.bleed-cap { position: absolute; left: var(--px); right: var(--px); bottom: calc(var(--u) * 6); z-index: 2; display: grid; gap: .3em; }
.bleed-cap::before { content: ""; position: absolute; inset: calc(var(--u) * -40) calc(var(--u) * -20) calc(var(--u) * -10); background: linear-gradient(180deg, rgba(8,24,17,0), rgba(8,24,17,.8)); z-index: -1; pointer-events: none; }
.bleed-word { font: italic 400 9em/.8 var(--serif); margin: 0 0 .15em; color: var(--peach); }
.bleed-cap .note { color: rgba(243,238,231,.8); }

/* ── VII · Dos dibujos ───────────────────────────────────────────────── */
.pg--draw { display: grid; grid-template-rows: auto 1fr 1fr; gap: .6em; padding-bottom: calc(var(--u) * 14); }
.draw { display: grid; grid-template-columns: 42% 1fr; gap: 1em; align-items: center; border-top: 1px solid var(--rule-l); padding-top: .8em; }
.draw svg { width: 100%; height: auto; aspect-ratio: 1; }
.draw svg * { fill: none; stroke: var(--paper); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.draw h3 { margin: 0 0 .3em; font: 800 1.5em/1 var(--display); letter-spacing: -.03em; }
.draw p { margin: 0; font: italic 400 1em/1.3 var(--serif); color: rgba(243,238,231,.85); }

/* ── VIII · Línea del tiempo ─────────────────────────────────────────── */
.tl { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.tl li { display: grid; grid-template-columns: 4.8em 1fr; gap: .8em; align-items: baseline; padding: .6em 0; border-bottom: 1px solid var(--rule); }
.tl li span { font: 700 1.2em/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tl li.hot span { color: var(--terra); }
.tl li p { margin: 0; font-size: .9em; line-height: 1.35; }
.tl li.hot p { font-weight: 500; }

/* ── IX · Cierre ─────────────────────────────────────────────────────── */
.pg--close { display: grid; grid-template-rows: auto 1fr auto auto; }
.close-a { align-self: end; margin: 0; font: 400 1.2em/1 var(--display); letter-spacing: .24em; text-transform: uppercase; color: var(--mute); }
.close-b { margin: .1em 0 .8em; font: italic 400 4.4em/.9 var(--serif); letter-spacing: -.02em; color: var(--peach); }
.pg--close .note { margin: 0 0 calc(var(--u) * 12); max-width: 34ch; }

/* ── Contraportada ───────────────────────────────────────────────────── */
.pg--back { padding-bottom: calc(var(--u) * 6); display: grid; grid-template-rows: auto auto auto 1fr auto auto; }
.byline { margin: 1.4em 0 0; padding-top: .9em; border-top: 1px solid var(--rule-l); display: flex; flex-direction: column; gap: .15em; }
.byline-k { font: 600 .58em/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.byline-n { font: italic 400 1.6em/1 var(--serif); color: var(--peach); }
.sources { list-style: none; margin: 0; padding: 0; font-size: .64em; line-height: 1.45; color: rgba(243,238,231,.8); }
.sources li { padding: .5em 0; border-top: 1px solid var(--rule-l); }
.sources b { color: var(--paper); font-weight: 600; }
.next-issue { align-self: end; margin-top: 1em; }
.next-issue .kicker { margin-bottom: .5em; }
.next-title { margin: 0 0 .3em; font: 800 1.7em/1 var(--display); letter-spacing: -.035em; color: var(--peach); }
.back-rum { margin: .9em 0 0; font-size: 6em; line-height: .8; color: var(--paper); }
.back-tag { margin: .5em 0 0; font: 600 .58em/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(243,238,231,.6); }

/* ── Dibujos de línea: se trazan solos cuando la página queda a la vista ── */
.dw { margin: 0; position: absolute; left: var(--px); right: var(--px); bottom: calc(var(--u) * 12); z-index: 1; pointer-events: none; }
.dw svg { display: block; width: 100%; height: auto; overflow: visible; }
.dw svg * { fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .9; }
.pg.is-live .dw svg * { animation: draw 1.3s var(--ease) forwards; animation-delay: calc(.25s + var(--i, 0) * .09s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.dw--seagram { left: auto; width: 34%; bottom: calc(var(--u) * 12); }
.dw--vanna { width: 58%; color: var(--peach); }
.dw--glass { width: 46%; color: var(--peach); }
.ficha-name--long { font-size: 2.6em; }
.dw--main { width: 50%; color: var(--ink); }
.dw--att { left: auto; width: 36%; color: var(--ink); }
.dw--skyline { width: 100%; color: var(--peach); }
.book[data-mode="single"] .dw--seagram { width: 30%; }
/* Índice: mesa con mantel y vela. La línea se traza, luego entra el color y la vela se queda viva. */
.dw--mesa { left: auto; width: 36%; color: var(--ink); }
.book[data-mode="single"] .dw--mesa { width: 34%; }
/* Ilustraciones a color (.ill): la línea se traza rápido, entra el color y lo vivo (vela, cojín) se queda moviendo */
.ill svg .f { fill: var(--c); fill-opacity: 0; }
.pg.is-live .ill svg * { animation: draw .6s var(--ease) forwards; animation-delay: calc(.1s + var(--i, 0) * .035s); }
.pg.is-live .ill svg .f { animation: draw .6s var(--ease) forwards, fillin .45s ease forwards; animation-delay: calc(.1s + var(--i, 0) * .035s), calc(.4s + var(--i, 0) * .035s); }
.ill svg .glow { fill: var(--peach); stroke: none; opacity: 0; }
.pg.is-live .ill svg .glow { animation: glow 2.6s ease-in-out .9s infinite alternate; }
.ill svg .flame { transform-box: fill-box; transform-origin: 50% 100%; }
.pg.is-live .ill svg .flame { animation: draw .6s var(--ease) forwards, fillin .45s ease forwards, flick 1.7s ease-in-out infinite; animation-delay: calc(.1s + var(--i, 0) * .035s), calc(.4s + var(--i, 0) * .035s), 1s; }
.ill svg .lbl { fill: currentColor; stroke: none; font: italic 400 12px var(--serif); text-anchor: middle; opacity: 0; }
.pg.is-live .ill svg .lbl { animation: fadeIn .5s ease .8s forwards; }
.pg.is-live .ill svg g { animation: none; }
.ill svg .drop { transform: translateY(-60px) rotate(-14deg); opacity: 0; }
.pg.is-live .ill svg .drop { animation: drop 1s cubic-bezier(.5,0,.75,0) 1s forwards; }
@keyframes drop { 0% { transform: translateY(-60px) rotate(-14deg); opacity: 0; } 15% { opacity: 1; } 78% { transform: translateY(14px) rotate(6deg); } 88% { transform: translateY(8px) rotate(3deg); } 100% { transform: translateY(12px) rotate(5deg); opacity: 1; } }
.ink .ill { color: rgba(243, 238, 231, .85); }
.dw--bolt { left: auto; width: 54%; }
.dw--decree { left: auto; width: 30%; bottom: calc(var(--u) * 26); }
.dw--seventies { left: auto; width: 56%; }
.dw--compose { width: 72%; }
.dw--buried { left: auto; width: 52%; top: calc(var(--u) * 16); bottom: auto; }
.dw--rule { left: auto; width: 60%; }
.dw--drop { left: auto; width: 34%; bottom: calc(var(--u) * 26); }
@keyframes fillin { to { fill-opacity: 1; } }
@keyframes glow { from { opacity: .18; } to { opacity: .42; } }
@keyframes flick { 0%, 100% { transform: scale(1, 1) rotate(0); } 30% { transform: scale(.93, 1.07) rotate(-2.5deg); } 60% { transform: scale(1.04, .95) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) {
  .ill svg *, .pg.is-live .ill svg * { animation: none !important; stroke-dashoffset: 0; }
  .ill svg .f { fill-opacity: 1; }
  .ill svg .glow { opacity: .3; }
  .ill svg .lbl, .ill svg .drop { opacity: 1; transform: none; }
}

/* Toques de vida: la foto respira con el cursor, los números y la leyenda se señalan */
.pg--photo img.pg-media, .mies-move, .boxes-frame img, .house-frame img, .pg--cover .pg-media { transform: translate(calc(var(--mx, 0) * 1.2%), calc(var(--my, 0) * 1.2%)) scale(1.05); transition: transform .9s var(--ease); will-change: transform; }
.spot { transition: transform .25s var(--ease), background .25s; }
.spot.is-hot, .house-legend li.is-hot b { color: var(--ink); }
.spot.is-hot { background: var(--peach); color: var(--ink); transform: scale(1.18); }
.house-legend li { transition: color .2s; }
.house-legend li.is-hot { color: var(--peach); }
.house-legend li.is-hot b { color: var(--peach); }
.strike { position: relative; display: inline-block; }
.strike::after { content: ""; position: absolute; left: 0; right: 0; top: 54%; height: .06em; background: var(--terra); transform: scaleX(0); transform-origin: left; }
.pg.is-live .strike::after { animation: strike .8s var(--ease) .7s forwards; }
@keyframes strike { to { transform: scaleX(1); } }
.boxes-count { position: absolute; }

/* ── Barra inferior, pista e índice ─────────────────────────────────── */
.bar { position: fixed; left: 0; right: 0; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 40; display: flex; justify-content: center; align-items: center; gap: 10px; pointer-events: none; }
.bar > * { pointer-events: auto; }
/* Folio editorial: sin cápsulas ni círculos, solo flechas de línea y el folio en texto fino.
   mix-blend-mode: difference lo invierte contra lo que pase debajo (papel claro o foto oscura). */
.bar { mix-blend-mode: difference; gap: 4px; }
.bar-btn { width: 44px; height: 44px; border: 0; border-radius: 0; background: none; color: #fff; font: 300 22px/1 var(--sans); transition: opacity .2s, transform .2s; }
.bar-btn:hover { transform: translateX(var(--nudge, 0)); opacity: 1; }
#prev { --nudge: -3px; } #next { --nudge: 3px; }
.bar-btn:disabled { opacity: .25; cursor: default; transform: none; }
.bar-where { display: flex; align-items: baseline; gap: 10px; height: 44px; padding: 0 10px; border: 0; border-radius: 0; background: none; color: #fff; max-width: min(60vw, 440px); position: relative; }
.bar-where::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 12px; height: 1px; background: currentColor; opacity: .35; transform: scaleX(.25); transform-origin: left; transition: transform .35s var(--ease), opacity .35s; }
.bar-where:hover::after { transform: scaleX(1); opacity: .7; }
.w-folio { font: 400 11px/1 var(--sans); letter-spacing: .14em; color: #fff; font-variant-numeric: tabular-nums; opacity: .75; }
.w-folio:empty { display: none; }
.w-title { font: italic 400 16px/1 var(--serif); letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-idx { font: 400 9px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; opacity: .5; }
@media (max-width: 640px) { .w-idx { display: none; } .bar-where { max-width: 62vw; padding: 0 8px; } }
.hint { position: fixed; right: max(18px, 4vw); bottom: 74px; z-index: 39; margin: 0; padding: 8px 12px; border-radius: 999px; background: var(--peach); color: var(--ink); font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease), transform .4s var(--ease); pointer-events: none; }
.hint.is-on { opacity: 1; transform: none; }
@media (max-width: 640px) { .hint { display: none; } }

.toc { position: fixed; inset: 0; z-index: 60; display: grid; place-items: end center; background: rgba(8,24,17,.55); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s var(--ease); }
.toc.is-open { opacity: 1; }
.toc[hidden] { display: none; }
.toc-in { width: min(100%, 560px); max-height: 80vh; overflow: auto; margin: 0 12px 12px; padding: 18px 22px 10px; background: var(--paper); color: var(--ink); border-radius: 14px; transform: translateY(16px); transition: transform .35s var(--ease); }
.toc.is-open .toc-in { transform: none; }
.toc-head { display: flex; justify-content: space-between; align-items: center; margin: 0 0 8px; font: 600 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.toc-head .rum { font-size: 18px; }
.toc-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--rule); background: none; font-size: 22px; line-height: 1; }
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-list li + li { border-top: 1px solid var(--rule); }
.toc-list button { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: baseline; width: 100%; padding: 11px 0; border: 0; background: none; text-align: left; }
.toc-list button:hover .t, .toc-list button.is-here .t { color: var(--terra); }
.toc-list .n { font: 800 12px/1 var(--display); color: var(--mute); font-variant-numeric: tabular-nums; }
.toc-list .t { font: 600 17px/1.2 var(--display); letter-spacing: -.01em; }
.toc-list button.is-here .n { color: var(--terra); }

@media (prefers-reduced-motion: reduce) { .pg, .book, .book-floor, .edge, .toc, .toc-in { transition: none; } }

/* ── Celular: letra de lectura más grande (medido página por página con scratchpad/measure.cjs:
      cuerpo ~14 px en lugar de ~12, dos columnas ~11.5 en lugar de ~10; nada se pasa del folio).
      Sólo el texto corrido: los títulos se quedan como están para no salirse del ancho. */
.book[data-mode="single"] .body { font-size: 1.12em; }
.book[data-mode="single"] .body--cols { font-size: .9em; }
.book[data-mode="single"] .lede { font-size: 1.1em; }
.book[data-mode="single"] .ficha-list > div { font-size: .95em; }
.book[data-mode="single"] .tl li p { font-size: 1em; }
.book[data-mode="single"] .note { font-size: .9em; }
.book[data-mode="single"] .lay-a .kicker { margin-top: 1.2em; }
.book[data-mode="single"] .pg--dense .body { font-size: 1.06em; }

/* ── VII: la torre AT&T a sangre (el remate arriba) y "la ironía" en dos columnas ── */
/* La foto va completa (sin recorte) en una caja con su proporción, al menos tan alta como la página.
   En escritorio la página es más ancha que la foto: abre en el remate (frontón trazado) y baja a la
   entrada (óculo y arco). En celular cabe entera y no se mueve. */
.att-move { position: absolute; top: 0; left: 50%; width: max(var(--pw), calc(var(--ph) * 941 / 1672)); aspect-ratio: 941 / 1672; transform: translateX(-50%); }
.att-move img, .att-mg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.att-mg { z-index: 1; }
.att-mg path, .att-mg circle { fill: none; stroke: var(--peach); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.att-mg text { fill: var(--peach); paint-order: stroke; stroke: rgba(8,24,17,.8); stroke-width: 7px; stroke-linejoin: round; opacity: 0; }
.att-mg .k { font: 600 23px var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.att-mg .v { font: italic 400 27px var(--serif); fill: var(--paper); }
.pg.is-live .att-move { animation: attPan 2.6s var(--ease) 2.3s forwards; }
@keyframes attPan { to { transform: translateX(-50%) translateY(calc(var(--ph) - 100%)); } }
.pg.is-live .att-mg .t1 { animation: draw 1s var(--ease) forwards; animation-delay: calc(.4s + var(--i, 0) * .15s); }
.pg.is-live .att-mg .t2 { animation: draw .9s var(--ease) forwards; animation-delay: 4.4s; }
.pg.is-live .att-mg .t3 { animation: draw 1.1s var(--ease) forwards; animation-delay: calc(4.4s + (var(--i, 0) - 6) * .2s); }
.pg.is-live .att-mg .l1 { animation: fadeUp .6s var(--ease) 1.3s forwards; }
.pg.is-live .att-mg .l2 { animation: fadeUp .6s var(--ease) 4.9s forwards; }
.pg.is-live .att-mg .l3 { animation: fadeUp .6s var(--ease) 5.4s forwards; }
@keyframes fadeUp { to { opacity: 1; } }
.att-scrim { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(to top, rgba(8,24,17,.9), rgba(8,24,17,0)); z-index: 2; pointer-events: none; }
.pg--att .big-num b { font-size: 4.2em; }
.pg--att .big-num span { display: block; max-width: 15ch; line-height: 1.35; }
.pg--duo { display: flex; flex-direction: column; }
.pg--duo .title { margin-bottom: .2em; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4em; margin-top: 1.2em; }
.duo-col { border-top: 1px solid var(--rule-l); padding-top: .9em; }
.dw--duo { position: static; width: auto; margin: 0 0 .9em; color: var(--peach); }
.dw--duo svg { width: auto; height: calc(var(--u) * 28); max-width: 100%; }
.book[data-mode="single"] .dw--duo svg { height: calc(var(--u) * 40); }
.duo-year { margin: 0; font: 800 2.2em/1 var(--display); letter-spacing: -.04em; }
.duo-name { margin: .5em 0 .2em; font: 600 .62em/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--peach); }
.duo-by { margin: 0 0 .6em; font-size: .8em; line-height: 1.35; color: rgba(243,238,231,.75); }
.duo-motto { margin: 0; font: italic 400 1.35em/1.1 var(--serif); }
.duo-foot { margin: auto 0 calc(var(--u) * 10); padding-top: 1em; font: italic 400 1.3em/1.2 var(--serif); max-width: 24ch; }
.duo-foot b { font-weight: 400; color: var(--peach); }

/* ===================== RÜM Stories 01 · ¿Demasiado qué? ===================== */
/* La portada: "¿Demasiado" es largo, va a dos tercios y "qué?" grande */
.cover-title .sm { font-size: .46em; letter-spacing: -.02em; }

/* (heredado del 02, sin uso aquí) */
/* Notas del tío sobre la fachada (mismo sistema que la torre AT&T de la 01) */
.att-mg ellipse { fill: none; stroke: var(--peach); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
/* Página del programa: corte del cholet + ficha de cada nivel, de arriba abajo */
.pg--program { display: grid; grid-template-rows: auto auto 1fr auto; }
.prog { display: grid; grid-template-columns: 42% 1fr; gap: calc(var(--u) * 5); align-items: center; margin-top: calc(var(--u) * 3); }
.dw--prog { position: static; color: var(--peach); }
.dw--prog svg { width: 100%; height: auto; }
.prog-list { list-style: none; margin: 0; padding: 0; display: grid; gap: calc(var(--u) * 4.2); }
.prog-list li { display: grid; gap: .2em; border-top: 1px solid rgba(243, 238, 231, .22); padding-top: .55em; opacity: 0; }
.pg.is-live .prog-list li { animation: fadeUp .6s var(--ease) forwards; }
.pg.is-live .prog-list li:nth-child(1) { animation-delay: .9s; }
.pg.is-live .prog-list li:nth-child(2) { animation-delay: 1.15s; }
.pg.is-live .prog-list li:nth-child(3) { animation-delay: 1.4s; }
.pg.is-live .prog-list li:nth-child(4) { animation-delay: 1.65s; }
.prog-cat { font: 600 .52em/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--peach); }
.prog-list b { font: 600 1.1em/1.05 var(--display); letter-spacing: -.02em; color: var(--paper); }
.prog-lvl { font: italic 400 .78em/1.2 var(--serif); color: rgba(243, 238, 231, .7); }
.pg--program .note { margin-bottom: calc(var(--u) * 12); }
@media (prefers-reduced-motion: reduce) { .prog-list li { opacity: 1; } }

/* "Cholet" en Syne 800 es muy ancha: cabe en la página */
.pg--cholet .phrase { font-size: 3.6em; }
.book[data-mode="single"] .pg--cholet .phrase { font-size: 3.2em; }

/* Página 2: texto largo de la fábula; título y cuerpo más compactos para que quepa sin desbordar */
.pg--long .title { font-size: 2.3em; max-width: 15ch; margin-bottom: .45em; }
.pg--long .body { font-size: .92em; line-height: 1.45; }
.pg--long .body p { margin-bottom: .65em; }
.book[data-mode="single"] .pg--long .body { font-size: .95em; }

/* Sombra arriba en las fotos con cifra grande: la leyenda en mayúsculas no se leía sobre techos y ventanas claras */
.top-scrim { position: absolute; left: 0; right: 0; top: 0; height: 46%; background: linear-gradient(to bottom, rgba(8,24,17,.85), rgba(8,24,17,.5) 50%, rgba(8,24,17,0)); z-index: 2; pointer-events: none; }
.big-num span { display: block; max-width: 30ch; line-height: 1.45; }

/* Imágenes anotadas (VI · La lección): número sobre la foto = número junto a la regla del texto */
.anno { position: relative; margin: 0; overflow: hidden; }
.anno img { display: block; width: 100%; height: 100%; object-fit: cover; }
.anno svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.anno .mk circle { fill: rgba(8,24,17,.72); fill-opacity: 0; stroke: var(--peach); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; }
.anno .mk text { fill: var(--peach); font: 700 30px var(--sans); text-anchor: middle; dominant-baseline: central; opacity: 0; }
.anno .mk-line { fill: none; stroke: var(--peach); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.anno .mk-dash { stroke-dasharray: .015 .012; stroke-dashoffset: 0; opacity: 0; }
.anno .mk-dot { fill: var(--peach); opacity: 0; }
.pg.is-live .anno .mk circle { animation: draw .9s var(--ease) forwards, fillin .5s ease forwards; animation-delay: calc(.8s + var(--i, 0) * .35s), calc(1.2s + var(--i, 0) * .35s); }
.pg.is-live .anno .mk text, .pg.is-live .anno .mk-dot, .pg.is-live .anno .mk-dash { animation: fadeIn .5s ease forwards; animation-delay: calc(1.3s + var(--i, 0) * .35s); }
.pg.is-live .anno .mk-line:not(.mk-dash) { animation: draw 1.1s var(--ease) forwards; animation-delay: calc(1s + var(--i, 0) * .35s); }
@keyframes fadeIn { to { opacity: 1; } }
.anno figcaption { position: absolute; left: .8em; bottom: .6em; margin: 0; font: 400 .6em/1.3 var(--sans); color: rgba(243,238,231,.85); text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.anno--prog { aspect-ratio: 3 / 4; border-radius: 2px; }
.anno--wide { margin-top: calc(var(--u) * 3); aspect-ratio: 16 / 9; }
.mk-n { display: inline-grid; place-items: center; width: 1.55em; height: 1.55em; margin-right: .45em; border: 1px solid currentColor; border-radius: 50%; font: 700 .72em/1 var(--sans); font-style: normal; vertical-align: .12em; }
.prog-cat .mk-n { width: 1.9em; height: 1.9em; font-size: 1em; letter-spacing: 0; }
.lay-e .body--cols .mk-n { color: var(--terra); }
@media (prefers-reduced-motion: reduce) {
  .anno svg *, .pg.is-live .anno svg * { animation: none !important; stroke-dashoffset: 0; opacity: 1; }
  .anno .mk circle { fill-opacity: 1; }
}
.anno--prog .mk text { font-size: 54px; }
.anno--prog .mk circle, .anno--prog .mk-line { stroke-width: 5; }
.anno--wide .mk text { font-size: 44px; }
.anno--wide .mk circle { stroke-width: 4; }
.anno--wide figcaption { left: auto; right: .8em; }
.book[data-mode="single"] .pg--program .prog { grid-template-columns: 48% 1fr; gap: calc(var(--u) * 3.5); }
.pg--program .prog:has(.anno--prog) { grid-template-columns: 47% 1fr; }
.big-num .big-num-2 { margin-top: .9em; color: var(--peach); }
.dw--vanna.ill { left: auto; width: 42%; }
.dw--compose { left: auto; width: 56%; }
.dw--trunk { left: auto; width: 34%; }
.dw--iris { left: auto; width: 46%; }
.dw--trunk { width: 28%; }
.book[data-mode="single"] .dw--compose { width: 64%; }
.dw--trunk { width: 28%; }
.book[data-mode="single"] .dw--compose { width: 64%; }
.bleed-word--sm { font-size: 7.2em; }
.bleed-word--joke { font-size: 6.2em; line-height: .86; }
.dw--iris { width: 58%; }
.lay-a > .dw { position: absolute; }

/* Motion graphics sobre los clips (lluvia / ligera): coordenadas del video 1026×1280, recortado igual que object-fit: cover */
.vid-ill { position: absolute; inset: 0; margin: 0; z-index: 2; pointer-events: none; color: var(--peach); }
.vid-ill svg { width: 100%; height: 100%; display: block; }
.vid-ill .rn { fill: none; stroke: rgba(243, 238, 231, .75); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0; }
.pg.is-live .vid-ill .rn { animation: rain var(--d, 1s) linear var(--dl, 0s) infinite; }
@keyframes rain { 0% { transform: translate(0, -40px); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(-14px, 120px); opacity: 0; } }
.vid-ill .swing { transform-box: view-box; transform-origin: 640px 828px; }
.pg.is-live .vid-ill .swing { animation: swing 2.8s ease-in-out 1.2s infinite alternate; }
@keyframes swing { from { transform: rotate(-4deg); } to { transform: rotate(5deg); } }
.vid-ill .chk { fill: none; stroke: #9a3e52; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.pg.is-live .vid-ill .chk { animation: draw .35s var(--ease) forwards; animation-delay: calc(.9s + var(--i, 0) * .3s); }
.pg.is-live .vid-ill .lbl { animation: fadeIn .4s ease forwards; animation-delay: calc(.6s + var(--i, 0) * .3s); }
@media (prefers-reduced-motion: reduce) { .vid-ill .rn { display: none; } .vid-ill .chk { stroke-dashoffset: 0; } }

/* Más vida sobre los clips. Trazos a color que se dibujan (.ln con --s / --w) */
.vid-ill .ln { fill: none; stroke: var(--s, #2a1420); stroke-width: var(--w, 2.4); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.vid-ill .f.ln { fill: var(--c); }
/* lluvia: relámpago en la ventana, gotas que resbalan por el vidrio */
.vid-ill .flash { fill: #f4f1ec; opacity: 0; }
.pg.is-live .vid-ill .flash { animation: flash 7.5s linear 2.4s infinite; }
@keyframes flash { 0%, 88% { opacity: 0; } 88.6% { opacity: .62; } 89.4% { opacity: .08; } 90.4% { opacity: .45; } 92.5%, 100% { opacity: 0; } }
.vid-ill .rv { fill: rgba(243, 238, 231, .85); stroke: none; opacity: 0; }
.pg.is-live .vid-ill .rv { animation: rv var(--d, 4s) var(--dl, 0s) infinite; }
@keyframes rv { 0% { transform: translateY(0); opacity: 0; animation-timing-function: linear; } 25% { transform: translateY(0); opacity: .9; animation-timing-function: cubic-bezier(.55, 0, .9, .5); } 92% { transform: translateY(170px); opacity: .75; } 100% { transform: translateY(185px); opacity: 0; } }
/* té: el vapor sube y se deshace */
.vid-ill .stm { fill: none; stroke: rgba(243, 238, 231, .7); stroke-width: 2.4; stroke-linecap: round; opacity: 0; }
.pg.is-live .vid-ill .stm { animation: steam 3.2s ease-in-out var(--dl, 0s) infinite; animation-delay: calc(1s + var(--dl, 0s)); }
@keyframes steam { 0% { transform: translateY(10px); opacity: 0; } 35% { opacity: .75; } 100% { transform: translateY(-30px); opacity: 0; } }
/* etiquetas que se estampan (y números de inventario) */
.vid-ill .stk { opacity: 0; transform-box: fill-box; transform-origin: center; }
.pg.is-live .vid-ill .stk { animation: stamp .5s cubic-bezier(.3, 1.6, .5, 1) var(--sd, 1.2s) forwards; }
@keyframes stamp { from { opacity: 0; transform: scale(1.7) rotate(-12deg); } 40% { opacity: 1; } to { opacity: 1; transform: none; } }
/* paraguas: escurre una gota y el charco hace ondas */
.vid-ill .pud { fill: rgba(196, 214, 222, .2); opacity: 0; }
.pg.is-live .vid-ill .pud { animation: fadeIn .8s ease 1.4s forwards; }
.vid-ill .rip { fill: none; stroke: rgba(243, 238, 231, .7); stroke-width: 1.6; opacity: 0; transform-box: fill-box; transform-origin: center; }
.pg.is-live .vid-ill .rip { animation: rip 1.6s ease-out infinite; animation-delay: calc(1.8s + var(--dl, 0s)); }
@keyframes rip { from { transform: scale(.12); opacity: .85; } to { transform: scale(1); opacity: 0; } }
.vid-ill .drp { fill: rgba(243, 238, 231, .9); opacity: 0; }
.pg.is-live .vid-ill .drp { animation: drp 1.6s ease-in 1.8s infinite; }
@keyframes drp { 0%, 40% { transform: translateY(0); opacity: 0; } 55% { opacity: 1; } 95% { transform: translateY(9px); opacity: 1; } 100% { transform: translateY(9px); opacity: 0; } }
/* ligera: lámparas encendidas que respiran */
.vid-ill .lamp { mix-blend-mode: screen; opacity: 0; }
.pg.is-live .vid-ill .lamp { animation: fadeIn 1.2s ease forwards, lamp 3.4s ease-in-out infinite alternate; animation-delay: 1.2s, calc(2.4s + var(--dl, 0s)); }
@keyframes lamp { from { opacity: 1; } to { opacity: .55; } }
/* "Lo necesario": se puede quitar una palomita, pero la casa la vuelve a poner */
.vid-list .it { pointer-events: auto; cursor: pointer; outline: none; }
.vid-list .hit { fill: rgba(0, 0, 0, 0); pointer-events: all; }
.vid-list .it:hover .hit, .vid-list .it:focus-visible .hit { fill: rgba(154, 62, 82, .07); }
.vid-list .strk { fill: none; stroke: #9a3e52; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.pg.is-live .vid-list .strk, .pg.is-live .vid-list .hit { animation: none; }
.pg.is-live .vid-list .it.off .chk { animation: undraw .22s ease forwards; }
.pg.is-live .vid-list .it.off .strk { animation: draw .28s var(--ease) .08s forwards; }
.pg.is-live .vid-list .it.back .chk { animation: draw .35s var(--ease) forwards; }
.pg.is-live .vid-list .it.back .strk { animation: undraw .2s ease forwards; }
.vid-list .it .lbl { transition: opacity .2s; }
.vid-list .it.off .lbl { opacity: .42 !important; }
@keyframes undraw { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 1; } }
.vid-list .sheet { transform-box: fill-box; transform-origin: 50% 0; }
.pg.is-live .vid-list .sheet.nope { animation: nope .42s ease; }
@keyframes nope { 20% { transform: rotate(-1.6deg); } 45% { transform: rotate(1.3deg); } 70% { transform: rotate(-.7deg); } }
.vid-list .keep { fill: #9a3e52; font: italic 400 27px var(--serif); text-anchor: middle; opacity: 0; transform-box: fill-box; transform-origin: center; }
.pg.is-live .vid-list .keep { animation: none; }
.pg.is-live .vid-list .keep.show { animation: keep 2.6s var(--ease) forwards; }
@keyframes keep { 0% { opacity: 0; transform: translateY(8px) rotate(-3deg) scale(.92); } 12% { opacity: 1; transform: rotate(-3deg); } 80% { opacity: 1; transform: rotate(-3deg); } 100% { opacity: 0; transform: translateY(-6px) rotate(-3deg); } }
.pg.is-live .vid-list .tagn.wob { animation: stamp .01s linear 0s forwards, wob .55s ease 0s; }
@keyframes wob { 25% { transform: scale(1.3) rotate(-10deg); } 55% { transform: scale(.94) rotate(6deg); } }
.vid-list .lbl[data-count] { transform-box: fill-box; transform-origin: 0 50%; }
.pg.is-live .vid-list .lbl.count-bump { animation: fadeIn .01s linear forwards, bump .5s var(--ease); }
/* y después cayó un cojín más */
.vid-list .cush { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; }
.pg.is-live .vid-list .cush.go, .vid-list .cush.go { animation: cushFall 1.1s forwards; }
@keyframes cushFall {
  0% { opacity: 1; transform: translateY(-640px) rotate(-38deg); animation-timing-function: cubic-bezier(.5, 0, .9, .6); }
  62% { opacity: 1; transform: translateY(0) rotate(4deg) scale(1.08, .86); animation-timing-function: cubic-bezier(.2, .8, .4, 1); }
  76% { transform: translateY(-16px) rotate(-2deg) scale(.97, 1.03); animation-timing-function: cubic-bezier(.6, 0, .8, .5); }
  88% { transform: translateY(0) scale(1.03, .96); }
  100% { opacity: 1; transform: none; }
}
@keyframes bump { 40% { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) {
  .vid-ill .rv, .vid-ill .stm, .vid-ill .rip, .vid-ill .drp, .vid-ill .flash { display: none; }
  .vid-ill .stk, .vid-ill .lamp, .vid-ill .pud, .vid-list .cush.go { opacity: 1; }
  .vid-ill .ln { stroke-dashoffset: 0; }
}

/* Pág. 6: rayo de luz con polvo flotando detrás de la frase */
.dust { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.dust svg { width: 100%; height: 100%; display: block; }
.dust .beam { opacity: 0; }
.pg.is-live .dust .beam { animation: fadeIn 1.6s ease .2s forwards, beam 7s ease-in-out 1.8s infinite alternate; }
@keyframes beam { from { opacity: 1; } to { opacity: .6; } }
.dust .mote { fill: #f3d2b2; opacity: 0; }
.pg.is-live .dust .mote { animation: mote var(--d, 7s) ease-in-out var(--dl, 0s) infinite; }
@keyframes mote { 0% { transform: translate(0, 0); opacity: 0; } 20% { opacity: .9; } 50% { transform: translate(var(--dx), var(--dy)); opacity: .35; } 80% { opacity: .85; } 100% { transform: translate(0, 0); opacity: 0; } }
.pg--phrase > :not(.dust) { position: relative; z-index: 1; }
.phrase--dust { font-size: 2.35em !important; }
.book[data-mode="single"] .phrase--dust { font-size: 2.05em !important; }
@media (prefers-reduced-motion: reduce) { .dust .mote { opacity: .5; animation: none !important; } .dust .beam { opacity: 1; animation: none !important; } }
.dw--iris { width: 54%; }
.dw--vanna.ill { width: 32%; }
.book[data-mode="single"] .dw--vanna.ill { width: 40%; }

/* "Elige cuál quitar": pastilla que late y una manita que toca una casilla hasta que el lector juega */
.vid-list .ask { transform-box: fill-box; transform-origin: 0 50%; opacity: 0; }
.pg.is-live .vid-list .ask { animation: fadeIn .4s ease .9s forwards, askPulse 1.6s ease-in-out 2.4s infinite; }
.pg.is-live .vid-list.touched .ask { animation: fadeIn .01s forwards; }
@keyframes askPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.vid-list .hand { pointer-events: none; opacity: 0; }
.vid-list .tapper { transform-box: fill-box; transform-origin: 30% 10%; }
.vid-list .ripple { fill: none; stroke: #9a3e52; stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; }
.pg.is-live .vid-list:not(.touched) .hand { animation: fadeIn .4s ease 3s forwards; }
.pg.is-live .vid-list:not(.touched) .tapper { animation: tap 1.5s ease-in-out 3.2s infinite; }
.pg.is-live .vid-list:not(.touched) .ripple { animation: ripple 1.5s ease-out 3.55s infinite; }
.vid-list.touched .hand { animation: none; opacity: 0; transition: opacity .3s; }
@keyframes tap { 0%, 100% { transform: translate(14px, 18px); } 40% { transform: translate(0, 0) scale(.94); } 55% { transform: translate(0, 0) scale(1); } }
@keyframes ripple { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(2.2); } }
@media (prefers-reduced-motion: reduce) { .vid-list .ask { opacity: 1; } .pg.is-live .vid-list:not(.touched) .hand { opacity: 1; animation: none; } .vid-list .tapper, .vid-list .ripple { animation: none !important; } }

/* VI · Una distinción: los cojines caen y se apilan (abundancia); un hilo vino une 1720 con 1970 (relación) */
.pg--distinct { grid-template-rows: auto 1fr auto auto; }
.pg--distinct .note { margin-bottom: calc(var(--u) * 11); }
.dw--distinct { position: static; width: 74%; margin: 0 0 calc(var(--u) * 4); color: var(--ink); }
.book[data-mode="single"] .dw--distinct { width: 86%; }
.dw--distinct svg .thread { stroke: #9a3e52; stroke-width: 1.8; opacity: 1; }
.dw--distinct svg .yr { font: 600 7px var(--sans); letter-spacing: .14em; fill: currentColor; opacity: 0; }
.dw--distinct svg .cd { transform-box: fill-box; transform-origin: 50% 100%; opacity: 0; }
.pg.is-live .dw--distinct svg g.cd { animation: pile .62s cubic-bezier(.5, 0, .75, 0) var(--d) forwards; }
.pg.is-live .dw--distinct svg g.cd--top { animation: pile .62s cubic-bezier(.5, 0, .75, 0) var(--d) forwards, wob 1.9s ease-in-out calc(var(--d) + .7s) infinite alternate; }
.pg.is-live .dw--distinct svg .yr { animation: fadeIn .5s ease 1.6s forwards; }
.pg.is-live .dw--distinct svg .knot { animation: draw .6s var(--ease) forwards, fillin .45s ease forwards, beat 1.8s ease-in-out 2.6s infinite; animation-delay: calc(.1s + var(--i, 0) * .035s), calc(.4s + var(--i, 0) * .035s), 2.6s; transform-box: fill-box; transform-origin: center; }
@keyframes pile { 0% { transform: translateY(-80px) rotate(-10deg); opacity: 0; } 15% { opacity: 1; } 72% { transform: translateY(2px) rotate(2deg); opacity: 1; } 86% { transform: translateY(-4px) rotate(-1deg); } 100% { transform: none; opacity: 1; } }
@keyframes wob { from { transform: rotate(-4deg); } to { transform: rotate(5deg) translateY(-1px); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.5); } }
@media (prefers-reduced-motion: reduce) { .dw--distinct svg .cd, .dw--distinct svg .yr { opacity: 1; animation: none !important; } }

/* ===================== RÜM Stories 02 · Mi roomie es una jungla ===================== */
/* Portada: "Mi roomie / es una" a dos tercios y "jungla" grande */
.cover-title .sm { font-size: .46em; letter-spacing: -.02em; }
.cover-title .em { font-size: .74em; letter-spacing: -.045em; }
/* Palabras largas sobre las fotos (Maximalismo, Mediterráneo, expedición) */
.big-num--long b { font-size: 3.3em; letter-spacing: -.045em; }
.bleed-word--md { font-size: 5.2em; }
.ficha-list dd b { font-weight: 600; color: var(--paper); }
/* Ilustraciones a color de esta revista */
.dw--pot { left: auto; width: 26%; color: var(--ink); }
.dw--case { left: auto; width: 30%; bottom: calc(var(--u) * 11); }
.dw--ship { position: static; width: 54%; margin: 0 0 calc(var(--u) * 3); color: #5e3420; }
.dw--lily { width: 62%; left: auto; }
.dw--plan { left: auto; width: 40%; }
.dw--shade { position: static; width: 62%; margin: 0 0 calc(var(--u) * 3); color: var(--ink); }
.dw--window { left: auto; width: 52%; }
.dw--suns { left: auto; width: 46%; color: var(--ink); }
.dw--rent { position: static; width: 46%; margin: 0 0 calc(var(--u) * 2); }
.pg--quote:has(.dw--ship), .pg--quote:has(.dw--shade) { grid-template-rows: auto 1fr auto auto auto; }
.pg--close:has(.dw--rent) { grid-template-rows: auto 1fr auto auto auto auto; }
.book[data-mode="single"] .dw--pot { width: 24%; }
/* La ficha de la sala victoriana lleva nombres de plantas en dt: columna más ancha */
.ficha-list--names > div { grid-template-columns: 6.4em 1fr; }
/* Reglas de convivencia: la foto anotada más alta para que llene la columna */
.pg--program .anno--prog { aspect-ratio: 10 / 16; }
.book[data-mode="single"] .pg--program .prog:has(.anno--prog) { grid-template-columns: 50% 1fr; }
/* Tropical pop y Mediterráneo no son de los tres principales: van como estilos en los que influyó */
.big-num-k { display: block; margin: 0 0 .35em; font: italic 400 1.9em/1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--paper); }
/* VIII · Los estilos que inspiró (16 oct): miniatura, número, nombre y definición; entran uno por uno */
.pg--styles { display: grid; grid-template-rows: auto auto 1fr auto; }
.pg--styles .title--serif { margin-bottom: .25em; }
.sty { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; gap: calc(var(--u) * 2.2); counter-reset: sty; }
.sty[start="6"] { counter-reset: sty 5; }
.sty li { display: grid; grid-template-columns: calc(var(--u) * 16) 1fr; gap: calc(var(--u) * 3.5); align-items: center; border-top: 1px solid var(--rule); padding-top: calc(var(--u) * 2); counter-increment: sty; opacity: 0; }
.pg.is-live .sty li { animation: fadeUp .5s var(--ease) forwards; }
.pg.is-live .sty li:nth-child(2) { animation-delay: .12s; } .pg.is-live .sty li:nth-child(3) { animation-delay: .24s; }
.pg.is-live .sty li:nth-child(4) { animation-delay: .36s; } .pg.is-live .sty li:nth-child(5) { animation-delay: .48s; }
.sty img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; background: var(--paper-2); }
.sty b { display: block; margin-bottom: .2em; font: 700 1.02em/1.05 var(--display); letter-spacing: -.02em; }
.sty b::before { content: counter(sty, decimal-leading-zero); margin-right: .5em; color: var(--terra); font: 600 .6em/1 var(--sans); letter-spacing: .12em; vertical-align: .25em; }
.sty span { display: block; font: 400 .72em/1.4 var(--sans); color: var(--ink-soft); }
.book[data-mode="single"] .sty span { font-size: .8em; }
.pg--styles .note { margin: .4em 0 calc(var(--u) * 12); }
@media (prefers-reduced-motion: reduce) { .sty li { opacity: 1; } }
.dw--leaf { left: auto; width: 34%; }
.dw--bungalow { left: auto; width: 44%; }
.book[data-mode="single"] .dw--leaf { width: 30%; }
.book[data-mode="single"] .dw--bungalow { width: 38%; }
/* La lista de estilos en el pliego de escritorio (página más chaparra que en celular): miniatura cuadrada y letra más chica */
.book:not([data-mode="single"]) .sty { gap: calc(var(--u) * 1.3); }
.book:not([data-mode="single"]) .sty li { grid-template-columns: calc(var(--u) * 11) 1fr; padding-top: calc(var(--u) * 1.3); gap: calc(var(--u) * 3); }
.book:not([data-mode="single"]) .sty img { aspect-ratio: 1; }
.book:not([data-mode="single"]) .sty b { font-size: .92em; }
.book:not([data-mode="single"]) .sty span { font-size: .64em; line-height: 1.35; }
.book:not([data-mode="single"]) .dw--case { width: 22%; }
.book:not([data-mode="single"]) .dw--leaf { width: 22%; }
/* Motion graphics nuevos sobre los clips (16 oct): corazones del Jungalow, zzz de los mantenidos, huellas de la expedición, brújula */
.vid-ill .hrt, .vid-ill .zz { opacity: 0; transform-box: fill-box; transform-origin: center; }
.pg.is-live .vid-ill .hrt { animation: hrt var(--d, 3.2s) ease-in var(--dl, 0s) infinite; }
@keyframes hrt { 0% { transform: translateY(0) scale(.6); opacity: 0; } 20% { opacity: .95; } 100% { transform: translateY(-320px) scale(1.15); opacity: 0; } }
.pg.is-live .vid-ill .zz { animation: zz 2.8s ease-out var(--dl, 0s) infinite; }
@keyframes zz { 0% { transform: translate(0, 0); opacity: 0; } 25% { opacity: .95; } 100% { transform: translate(40px, -130px); opacity: 0; } }
.pg.is-live .vid-ill .stp { animation: fadeIn .3s ease forwards; animation-delay: calc(.7s + var(--i, 0) * .2s); }
.vid-ill .spin { transform-box: view-box; }
.pg.is-live .vid-ill .spin { animation: needle 4s ease-in-out infinite alternate; }
@keyframes needle { from { transform: rotate(-18deg); } to { transform: rotate(14deg); } }
@media (prefers-reduced-motion: reduce) { .vid-ill .hrt, .vid-ill .zz, .vid-ill .stp { animation: none !important; opacity: .8; } }


/* ── IX · Las diez que más se compran + fichas técnicas (17 oct) ─────── */
.tbl { width: 100%; border-collapse: collapse; margin-top: .2em; font-size: .78em; line-height: 1.25; }
.tbl th { padding: 0 .3em .45em 0; text-align: left; font: 600 .68em/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--terra); border-bottom: 1px solid var(--rule); }
.tbl td { padding: .5em .3em .5em 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.tbl td:first-child { width: 1.6em; font: 700 .8em/1 var(--sans); color: var(--terra); }
.tbl td b { display: block; font: 600 1em/1.15 var(--display); letter-spacing: -.02em; }
.tbl td i { display: block; font: italic 400 .86em/1.2 var(--serif); color: var(--mute); }
.tbl .tbl-nivel { font: italic 400 .95em/1 var(--serif); color: var(--ink-soft); white-space: nowrap; }
.tbl tbody tr { opacity: 0; }
.pg.is-live .tbl tbody tr { animation: fadeUp .55s var(--ease) forwards; animation-delay: calc(.5s + var(--i, 0) * .09s); }
.lvl { display: inline-flex; gap: .22em; margin-right: .45em; vertical-align: .05em; }
.lvl i { width: .58em; height: .58em; border: 1px solid var(--terra); border-radius: 50%; background: transparent; }
.ink .lvl i { border-color: var(--peach); }
.lvl[data-n="1"] i:nth-child(-n+1), .lvl[data-n="2"] i:nth-child(-n+2), .lvl[data-n="3"] i:nth-child(-n+3) { background: var(--terra); }
.ink .lvl[data-n="1"] i:nth-child(-n+1), .ink .lvl[data-n="2"] i:nth-child(-n+2), .ink .lvl[data-n="3"] i:nth-child(-n+3) { background: var(--peach); }
.pg.is-live .lvl i { animation: lvlpop .4s var(--ease) both; }
.pg.is-live .lvl i:nth-child(2) { animation-delay: .12s; }
.pg.is-live .lvl i:nth-child(3) { animation-delay: .24s; }
@keyframes lvlpop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.pg--tabla .note { margin-top: .8em; }
/* Ficha técnica: nombre y dibujo arriba, lado a lado; la lista abajo a todo el ancho */
/* la ficha técnica fluye como las demás fichas (sin grid: la lista no se estira hasta el folio) */
.pl-head { display: grid; grid-template-columns: minmax(0, 1fr) 36%; gap: calc(var(--u) * 3); align-items: end; margin-bottom: .6em; }
.pg--pl .ficha-name { margin-top: .3em; font-size: 2.3em; }
.pl-head { margin-top: .1em; }
.pl-head .ficha-dek { margin-bottom: .2em; font-size: 1.2em; max-width: none; }
.dw--pl { position: static; width: auto; color: rgba(243, 238, 231, .85); align-self: end; }
.dw--pl svg { width: 100%; height: auto; }
.ficha-list--pl > div { grid-template-columns: 4.6em 1fr; font-size: .82em; }
.ficha-list--pl dd { line-height: 1.35; }
.ill svg g.sway { transform-box: fill-box; transform-origin: 50% 100%; }
.pg.is-live .ill svg g.sway { animation: sway 3.4s ease-in-out 1.1s infinite alternate; }
.pg.is-live .ill svg g.bloom { animation: none; }
@keyframes sway { from { transform: rotate(-1.6deg); } to { transform: rotate(1.8deg); } }
.book[data-mode="single"] .pl-head { grid-template-columns: minmax(0, 1fr) 40%; }
@media (prefers-reduced-motion: reduce) { .tbl tbody tr { opacity: 1; } .pg.is-live .ill svg g.sway { animation: none; } }
