/* ============================================================
   Ciudad y Cuerpo — estilos (CSS plano, sin frameworks)

   Escala: en escritorio (≥ 1000 px) 1rem = 1/144 del ancho útil, es decir
   10 px del diseño de Figma a 1440. Todo lo que está en rem escala en bloque
   con la ventana, así la composición de collage se conserva. Por debajo de
   1000 px el rem queda fijo en 10 px y cada bloque se reacomoda en flujo.
   ============================================================ */

@font-face { font-family: "Xanh Mono"; src: url("/assets/fonts/XanhMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Xanh Mono"; src: url("/assets/fonts/XanhMono-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/assets/fonts/SchibstedGrotesk-Variable.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Doto"; src: url("/assets/fonts/Doto-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/InstrumentSerif-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
/* El ">" de las tarjetas usa Nothing Font (5x7); mientras no esté el archivo, cae en Doto. */
/* Pendiente: al subir NothingFont5x7.woff2 a /assets/fonts/, añadir a este src:
   , url("/assets/fonts/NothingFont5x7.woff2") format("woff2")
   (no se declara todavía para no pedir un archivo que no existe). */
@font-face { font-family: "Nothing 5x7"; src: local("Nothing Font (5x7)"), local("NothingFont5x7"); font-display: swap; }

:root {
  --morado: #5b0e96;
  --rosa: #e56aab;
  --magenta: #f756ef;
  --amarillo: #ffc130;
  --verde: #3eaf3f;
  --rojo: #ff6058;
  --cian: #30e0ff;
  --ocre: #b05400;
  --gris: #6b6b6b;
  --negro: #000;
  --blanco: #fff;
  --lila: #eeecff;
  --punto: #e7e6f7;

  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Xanh Mono", ui-monospace, "Courier New", monospace;
  --doto: "Doto", ui-monospace, monospace;
  --serif: "Instrument Serif", Georgia, serif;
  --gt: "Nothing 5x7", "Doto", monospace;

  --display: 11.9333rem;
  --margen: 6rem;
  --bleed: var(--vw, 100vw);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 10px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background-color: var(--blanco); color: var(--morado);
  font-family: var(--sans); font-size: 1.7rem; line-height: 1.5; letter-spacing: -.022em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
  background-image: radial-gradient(circle, var(--punto) 0 var(--dot), transparent calc(var(--dot) + .05rem));
  background-size: var(--dot-step) var(--dot-step);
  --dot: .26rem; --dot-step: 5.18rem; --dots-step: .775rem;
}
body.dots-fino { --dot: .09rem; --dot-step: 1.7rem; --dots-step: .5rem; --punto: #dcd9f1; }
img, picture, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
p, h1, h2, h3, h4, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: italic; }
strong { font-weight: 700; }
.medium { font-weight: 500; }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; }
::selection { background: var(--magenta); color: var(--blanco); }

.skip { position: fixed; left: 1rem; top: 1rem; z-index: 200; padding: 1rem 1.6rem; background: var(--morado); color: var(--blanco); font-weight: 700; transform: translateY(-200%); }
.skip:focus { transform: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.font-mono { font-family: var(--mono); letter-spacing: 0; }
.font-doto { font-family: var(--doto); font-weight: 900; }
.font-serif { font-family: var(--serif); }
.font-sans { font-family: var(--sans); }

/* ---------- Contenedores ---------- */
main { display: block; }
.sec { position: relative; width: 144rem; max-width: 100%; margin-inline: auto; }
.bleed { width: var(--bleed); max-width: none; margin-left: calc(50% - var(--bleed) / 2); }
.band { position: absolute; top: 0; bottom: 0; left: calc(50% - var(--bleed) / 2); width: var(--bleed); background: var(--band, transparent); overflow: hidden; z-index: 0; }
.band picture, .band img { width: 100%; height: 100%; object-fit: cover; }
.sec__label { font-size: 2rem; font-weight: 700; letter-spacing: -.022em; color: var(--morado); }

/* ---------- Menú ---------- */
.menubar { position: fixed; top: 0; left: 50%; translate: -50% 0; width: min(144rem, 100%); height: 0; z-index: 100; --menu-tone: var(--ocre); }
.menu-btn { position: absolute; top: 1.4rem; right: 1.6rem; display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem; color: var(--menu-tone); transition: background-color .3s, color .3s; }
.menu-btn__sq { width: 1.9rem; height: 1.9rem; background: currentColor; }
.menu-btn__label { font-size: 1.6rem; font-weight: 600; letter-spacing: .1em; line-height: 1.5; text-decoration: underline; text-decoration-color: var(--rosa); text-decoration-thickness: 1px; text-underline-offset: .22em; }
/* Al bajar, MENÚ vuelve a su color (en las portadas oscuras arranca en blanco); nunca lleva fondo. */
.is-scrolled .menu-btn, .menu-btn[aria-expanded="true"] { color: var(--ocre); }
/* Logo fijo: en las páginas sin cabecera pequeña aparece al dejar atrás el encabezado. Sin fondo, siempre encima.
   Va en blanco con mezcla «difference»: sobre claro se ve negro y sobre oscuro, claro. La mezcla debe ir en el
   elemento fijo (un contexto de apilamiento aísla la mezcla de sus hijos). */
.logobar { position: fixed; top: 0; left: 50%; translate: -50% 0; width: min(144rem, 100%); height: 0; z-index: 99; }
.logobar, .header--small { mix-blend-mode: difference; }
.header--small .header__title, .header--small .header__title a { color: #fff; }
.logo-fixed { position: absolute; left: 2rem; top: 1.8rem; font-family: var(--mono); font-weight: 400; font-size: 2.4rem; line-height: 1.19; letter-spacing: 0; color: #fff; text-decoration: none; white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.is-past .logo-fixed { opacity: 1; visibility: visible; }
.menu { position: absolute; top: 5.8rem; right: 1.6rem; max-width: calc(100vw - 3.2rem); padding: 3rem; background: var(--magenta); color: var(--blanco); display: flex; flex-direction: column; align-items: flex-end; gap: 3rem; }
.menu[hidden] { display: none; }
.menu__close { width: 2.4rem; height: 2.4rem; }
.menu__close svg { width: 100%; height: 100%; }
.menu ul { display: flex; flex-direction: column; gap: 1.6rem; align-self: stretch; font-size: 1.6rem; line-height: 1.5; }
.menu a { font-size: 1.6rem; font-weight: 700; line-height: 1.5; text-transform: uppercase; text-decoration: none; letter-spacing: -.01em; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .3s var(--ease); }
.menu a:hover, .menu a:focus-visible, .menu a[aria-current="page"] { background-size: 100% 2px; }
.menu :focus-visible { outline-color: var(--blanco); }

/* ---------- Header ---------- */
.header { position: relative; width: 144rem; max-width: 100%; margin-inline: auto; z-index: 5; }
.header__brand { font-weight: 800; font-size: 1.4rem; line-height: 1; letter-spacing: 0; color: var(--negro); text-decoration: none; }
.header__title { font-family: var(--mono); font-weight: 400; letter-spacing: 0; color: var(--negro); line-height: 1.19; }
.header__title a { text-decoration: none; }
.header--display { padding: 7rem 2rem 0; }
.header--display .header__title { font-size: clamp(4.4rem, 13.4vw, 9rem); margin-top: .4rem; }
.header--small { position: fixed; left: 50%; translate: -50% 0; top: 0; height: 0; z-index: 100; }
.header--small .header__brand { display: none; }
.header--small .header__title { position: absolute; left: 2rem; top: 1.8rem; font-size: 2.4rem; white-space: nowrap; }

/* ---------- Lienzo (móvil y tablet: flujo) ---------- */
.canvas { position: relative; display: flex; flex-direction: column; gap: 3.6rem; padding: 4rem 2rem; }
.dots { display: none; }
.ci--img { overflow: hidden; --mw: min(100%, max(46%, calc(var(--w) * 1.25%))); width: var(--mw); aspect-ratio: var(--w) / var(--h, var(--w)); border-radius: var(--rad, 0); rotate: var(--rot, 0deg); scale: var(--flip, 1 1); }
.ci--img picture, .ci--img img, .ci--img a { display: block; width: 100%; height: 100%; }
.ci--img img { object-fit: cover; }
.ci--contain { overflow: visible; }
.ci--contain img { object-fit: contain; }
.ci--text { font-size: clamp(1.5rem, calc(var(--fs, 2.4rem) * .74), var(--fs, 2.4rem)); max-width: 62rem; }
.ci--text > * + * { margin-top: 1.5em; }
.ci--text h1, .ci--text h2, .ci--text h3 { font: inherit; }
.ci--text a { text-decoration-thickness: 1px; text-underline-offset: .18em; }
.display { font-family: var(--mono); font-weight: 400; letter-spacing: 0; line-height: 1.19; font-size: min(var(--fs, var(--display)), max(4.4rem, 14vw)); overflow-wrap: anywhere; }
.display.is-italic { font-style: italic; }
.rule { border: 0; border-top: 1px solid currentColor; color: var(--morado); margin: 0; width: var(--bleed); align-self: center; }
.notice { display: flex; gap: 2rem; align-items: flex-start; padding: 1.6rem; background: #d89009; color: var(--blanco); font-weight: 500; }
.notice__icon { flex: none; width: 4.4rem; height: auto; }
.notice strong { display: block; font-weight: 500; font-size: 1.15em; }

/* ---------- Tarjeta de sección ---------- */
.card { display: flex; flex-direction: column; gap: 2rem; text-decoration: none; color: var(--gris); width: 100%; }
.card__img { display: block; aspect-ratio: 1; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: scale .8s var(--ease), filter .5s; }
.card__label { display: flex; align-items: center; gap: 1rem; font-family: var(--doto); font-weight: 700; font-size: 1.8rem; line-height: 1.2; letter-spacing: 0; text-transform: uppercase; }
.card__text { text-decoration: underline; text-decoration-thickness: from-font; text-underline-position: from-font; }
.card__gt { font-family: var(--gt); font-size: .9em; transition: translate .3s var(--ease); }
.card:hover, .card:focus-visible { color: var(--morado); }
.card:hover .card__img img, .card:focus-visible .card__img img { scale: 1.04; filter: saturate(1.25) contrast(1.05); }
.card:hover .card__gt, .card:focus-visible .card__gt { translate: .6rem 0; }
.card { --mw: 100%; }
.card--m { --mw: 78%; width: var(--mw); }
.card--s { --mw: 58%; width: var(--mw); }
.card--round .card__img { border-radius: 1.24rem; }
.card--round, .explora .card { width: 100%; }
.card--round .card__label { font-weight: 900; font-size: 1.5714rem; gap: 1.32rem; }

/* ---------- Explora más ---------- */
.explora { padding: 6rem 2rem; }
.explora__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.2rem 2rem; margin-top: 3.2rem; }

/* ---------- YouTube (fachada) ---------- */
.yt { position: relative; aspect-ratio: 16 / 9; background: #171716; overflow: hidden; }
.yt--empty { background: var(--lila) radial-gradient(circle, rgba(247, 86, 239, .45) 0 1px, transparent 1.5px) 0 0 / 8px 8px; }
.yt--empty .yt__pending { color: var(--morado); }
.yt__poster, .yt__poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yt:not(.is-playing) .yt__poster::after { content: ""; position: absolute; inset: 0; background: rgba(23, 23, 22, .28); transition: background-color .3s; }
.yt:hover .yt__poster::after { background: rgba(23, 23, 22, .12); }
.video .yt__poster img { scale: 1.07; }
.yt__btn { position: absolute; inset: 0; width: 100%; display: grid; place-items: center; }
.yt__play { width: clamp(6.4rem, 9rem, 9rem); aspect-ratio: 1; border-radius: 50%; background: var(--magenta); display: grid; place-items: center; transition: scale .3s var(--ease), background-color .3s; }
.yt__play::after { content: ""; width: 0; height: 0; border-left: 2.2rem solid var(--blanco); border-block: 1.4rem solid transparent; margin-left: .6rem; }
.yt__btn:hover .yt__play, .yt__btn:focus-visible .yt__play { scale: 1.1; background: var(--morado); }
.yt__pending { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem; padding: 2rem; text-align: center; color: var(--blanco); font-family: var(--doto); font-weight: 700; font-size: 1.6rem; text-transform: uppercase; }
.yt--pending .yt__play { opacity: .55; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Video ---------- */
.video { padding: 5rem 0 4rem; }
.video--rule { border-top: 1px solid var(--morado); }
.video__intro, .video__caption { padding-inline: 2rem; max-width: 85rem; }
.video__intro { margin-bottom: 2.4rem; }
.video__caption { margin-top: 2.4rem; }

/* ---------- Hero fotográfico ---------- */
.hero { width: auto; max-width: none; --hero-tone: var(--negro); }
.hero__media { position: relative; min-height: min(84.66rem, 82svh); display: grid; overflow: hidden; }
.hero__media > picture, .hero__media > .yt { grid-area: 1 / 1; width: 100%; height: 100%; aspect-ratio: auto; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero--blur .hero__img img { filter: blur(2.5px); scale: 1.02; }
.hero__center { grid-area: 1 / 1; z-index: 1; align-self: center; justify-self: center; display: flex; flex-direction: column; gap: 3rem; text-align: center; color: var(--hero-tone); padding: 9rem 2rem 6rem; pointer-events: none; }
.hero__eyebrow { font-family: var(--doto); font-weight: 900; font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1.2; letter-spacing: 0; text-transform: uppercase; }
.hero__title { font-family: var(--mono); font-weight: 400; font-size: 3.6rem; line-height: 1.2; letter-spacing: 0; }
.hero__title.font-doto { font-family: var(--doto); font-weight: 900; text-transform: uppercase; }
.hero__phrase { font-family: var(--mono); font-size: clamp(2.6rem, 6.4vw, 4.6rem); line-height: 1.19; letter-spacing: 0; }
.hero__note { position: absolute; left: 2rem; bottom: 2rem; z-index: 1; font-size: 1.6rem; font-weight: 500; color: var(--hero-tone); }
.hero__note--below { position: static; padding: 1.6rem 2rem 0; }

/* ---------- Footer ---------- */
.footer { background: var(--footer, var(--rosa)); color: var(--negro); position: relative; z-index: 1; }
.footer__in { width: 144rem; max-width: 100%; margin-inline: auto; padding: 3.2rem 2rem 4.8rem; }
.footer__credit { font-family: var(--mono); font-size: clamp(1.6rem, 2rem, 2rem); line-height: 1.19; letter-spacing: 0; max-width: 62rem; }
.footer__logos { display: flex; flex-wrap: wrap; gap: 4rem; margin-top: 6rem; }
.footer__logos img { width: 22rem; height: auto; }
.footer__made { margin-top: 4rem; font-size: 1.3rem; line-height: 1.5; letter-spacing: -.01em; max-width: 44rem; }
.footer__made-title { font-family: var(--doto); font-weight: 900; font-size: 1.2rem; letter-spacing: 0; text-transform: uppercase; margin-bottom: .6rem; }
.footer__made li span { opacity: .72; }

/* ---------- 404 ---------- */
.notfound { width: 144rem; max-width: 100%; margin-inline: auto; padding: 4rem 2rem 10rem; }
.notfound__code { font-family: var(--doto); font-weight: 900; font-size: 2rem; color: var(--gris); }
.notfound p { max-width: 60rem; margin-top: 3rem; font-size: clamp(1.7rem, 2.4rem, 2.4rem); }
.notfound ul { margin-top: 3rem; display: flex; flex-direction: column; gap: 1rem; }
.notfound li a { font-family: var(--doto); font-weight: 700; font-size: 2rem; text-transform: uppercase; color: var(--gris); }
.notfound li a:hover { color: var(--morado); }

/* ============================================================
   Collage en flujo (móvil y tablet, < 1000 px)
   Sin retícula, pero con la misma intención que en escritorio:
   - cada foto o tarjeta se corre a izquierda o derecha según la columna que ocupa en el diseño;
   - las fotos seguidas se solapan;
   - los titulares display se montan sobre la foto o tarjeta vecina en vez de quedar sueltos.
   ============================================================ */
@media (max-width: 999.98px) {
  .canvas > .ci--img, .canvas > .card {
    --free: calc((var(--c) - 1) / max(1, 144 - var(--w)));
    align-self: flex-start;
    margin-left: calc(min(1, var(--free)) * (100% - var(--mw)));
  }
  .canvas > .ci--img + .ci--img { margin-top: -7.2rem; }
  .canvas > .ci--img { z-index: 1; }
  .canvas > .ci--img:nth-of-type(even) { z-index: 2; }

  .canvas > .display { position: relative; z-index: 3; pointer-events: none; text-wrap: balance; }
  /* Titular después de una foto: sube entero sobre su borde inferior (el translate lo ancla por abajo, tenga una línea o dos). */
  .canvas > .ci--img + .display { margin-top: -4.4rem; margin-bottom: calc(.8rem - 1.19em); translate: 0 -100%; }
  /* Titular después de una tarjeta: salta la etiqueta y queda sobre la foto; el margen de abajo devuelve el sitio de la etiqueta. */
  .canvas > .card + .display { margin-top: -8.4rem; margin-bottom: calc(4.8rem - 1.19em); translate: 0 -100%; }
  /* Titular antes de una foto o tarjeta (y que no viene de otra): baja hasta pisar su borde superior. */
  .canvas > .display:not(.ci--img + .display, .card + .display):has(+ .ci--img),
  .canvas > .display:not(.ci--img + .display, .card + .display):has(+ .card) { margin-bottom: calc(-3.6rem - .45em); }
  /* Jerarquía de texto en pantallas pequeñas (variantes de `textItem`):
     - `pregunta`: una pregunta o entradilla que debe leerse como titular;
     - `sobre-foto`: una frase destacada que se monta sobre el borde inferior de la foto anterior,
       con cada línea sobre una franja morada para que se lea encima de cualquier imagen. */
  .canvas > .ci--text.v-pregunta { font-size: clamp(2.4rem, 7.2vw, 3.4rem); line-height: 1.22; letter-spacing: -.03em; max-width: 22ch; }
  .canvas > .ci--img.v-ancha { --mw: 100%; }
  .canvas > .ci--img + .ci--text.v-sobre-foto { position: relative; z-index: 3; height: 0; margin-top: -3.6rem; max-width: none; align-self: stretch; font-size: clamp(2rem, 5.6vw, 2.8rem); }
  .canvas > .ci--img + .ci--text.v-sobre-foto > * { position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.6rem; margin: 0; line-height: 1.5; }
  .canvas > .ci--img + .ci--text.v-sobre-foto strong { padding: .12em .4em; background: var(--morado); color: var(--blanco); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

  /* Dos titulares seguidos son renglones de una misma frase ("el peso, / a peso."): van pegados, sin el aire entre elementos. */
  .canvas > .display:not(.card + .display, .ci--img + .display) + .display { margin-top: calc(-3.6rem - .12em); }
  /* Los titulares siguen el lado que tienen en el diseño. */
  .canvas > .display { align-self: flex-start; max-width: 100%; }
  .canvas > .display[style*="text-align:right"] { align-self: flex-end; }
}

/* ============================================================
   Tablet (600–999 px): mismo flujo, con más aire y dos columnas donde cabe
   ============================================================ */
@media (min-width: 600px) {
  body { font-size: 1.8rem; }
  .canvas { padding: 6rem 4rem; gap: 5rem; }
  .canvas > .display:not(.card + .display, .ci--img + .display) + .display { margin-top: calc(-5rem - .12em); }
  .ci--img { --mw: min(100%, max(38%, calc(var(--w) * 1.05%))); }
  .ci--text { max-width: 58rem; }
  .ci--text:nth-of-type(even) { align-self: flex-end; }
  .card--l { --mw: 80%; width: var(--mw); }
  .card--m { --mw: 56%; }
  .card--s { --mw: 42%; }
  .explora { padding: 8rem 4rem; }
  .explora__row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .explora .card__label { font-size: 1.3rem; }
  .header--display { padding-inline: 4rem; }
  .header--small .header__title, .logo-fixed { left: 4rem; top: 2.2rem; font-size: 2.8rem; }
  .video__intro, .video__caption, .footer__in { padding-inline: 4rem; }
  .hero__note { left: 4rem; }
  .menu-btn { right: 3.2rem; top: 2rem; }
  .menu { right: 3.2rem; top: 6.4rem; }
  .notfound { padding-inline: 4rem; }
}

/* ============================================================
   Escritorio (≥ 1000 px): retícula de collage fiel al diseño de 1440
   ============================================================ */
@media (min-width: 1000px) {
  html { font-size: min(calc(var(--vw, 100vw) / 144), 12px); }
  body { font-size: 2.4rem; }

  .menu-btn { top: 7.4rem; right: auto; left: 129.3rem; gap: .7rem; padding: .6rem .8rem; }
  .menu { top: 10.4rem; right: 13.9rem; }

  .header--display { height: 12rem; padding: 0; }
  .header--display .header__brand { position: absolute; left: 6.1rem; top: 7.3rem; }
  .header--display .header__title { position: absolute; left: 9.9rem; top: .1rem; margin: 0; font-size: var(--display); white-space: nowrap; }
  .header--small .header__title, .logo-fixed { left: 6.986rem; top: 6.7rem; font-size: 3.016rem; }

  .canvas { display: grid; grid-template-columns: repeat(144, 1rem); grid-template-rows: repeat(var(--rows, 1), 1rem); grid-auto-rows: 1rem; gap: 0; padding: 0; }
  .at { grid-column: var(--c) / span var(--w); grid-row: var(--r) / span var(--h, 1); z-index: var(--z, auto); min-width: 0; align-self: start; }
  .dots { display: block; position: absolute; left: calc((var(--c) - 1) * 1rem); top: calc((var(--r) - 1) * 1rem); width: calc(var(--w) * 1rem); height: calc(var(--h) * 1rem); z-index: 0; pointer-events: none;
    background: radial-gradient(circle, rgba(247, 86, 239, .3) 0 .07rem, transparent .11rem) 0 0 / var(--dots-step) var(--dots-step); }
  .dots--over { z-index: 6; }
  .canvas > .ci, .canvas > .display, .canvas > .card, .canvas > .notice { position: relative; }
  .ci--img, .ci--img:nth-of-type(even) { width: 100%; height: 100%; aspect-ratio: auto; align-self: stretch; }
  .ci--text, .ci--text:nth-of-type(even) { font-size: var(--fs, 2.4rem); max-width: none; align-self: start; }
  .display { font-size: var(--fs, var(--display)); white-space: nowrap; overflow-wrap: normal; }
  .canvas > .display { align-self: start; }
  /* Un titular montado sobre una foto o una tarjeta no debe tapar sus clics. */
  .canvas > .display { pointer-events: none; }
  .display--down, .display--up { writing-mode: vertical-rl; justify-self: start; align-self: start; }
  .display--up, .canvas > .display--up { rotate: 180deg; align-self: end; }
  .rule { width: 100%; align-self: start; }
  .rule--bleed { width: var(--bleed); justify-self: center; }
  .notice { gap: 3.7rem; }
  .notice__icon { width: 6.25rem; }
  .notice strong { font-size: 2.4rem; }
  .notice span { font-size: 2rem; }

  .card, .card--m, .card--s, .card--l { width: 100%; align-self: start; }
  .card--l { gap: 4.7rem; }
  .card--m { gap: 3.1rem; }
  .card--s { gap: 2.4rem; }
  .card__label { font-size: 2rem; white-space: nowrap; }
  .card--l .card__label { gap: 1.57rem; } .card--l .card__gt { font-size: 1.87rem; }
  .card--m .card__label { gap: 1.04rem; } .card--m .card__gt { font-size: 1.23rem; }
  .card--s .card__label { gap: .82rem; } .card--s .card__gt { font-size: .97rem; }
  .card--round { gap: 3.06rem; }
  .card--round .card__label { font-size: 1.5714rem; gap: 1.32rem; }
  .card--round .card__gt { font-size: 1.5714rem; }

  .explora { padding: 12rem var(--margen) 11rem; }
  .explora__row { gap: 2.81rem; margin-top: 12rem; }

  .video { padding: 12rem 0 3.6rem; }
  .video__intro { padding: 0 var(--margen); margin-bottom: 3rem; max-width: none; }
  .video__caption { padding: 0 var(--margen); margin-top: 3rem; max-width: 93rem; }
  .video > .yt { aspect-ratio: 1440 / 847; }

  .hero__media { min-height: 0; height: 84.66rem; }
  .hero__center { position: absolute; top: 34.5rem; left: 50%; translate: -50% 0; gap: 4.2rem; padding: 0; white-space: nowrap; }
  .hero__eyebrow, .hero__title { font-size: 3.6rem; line-height: 1.53; }
  .hero__phrase { font-size: 4.6rem; }
  .hero__note { left: max(var(--margen), calc(50% - 72rem + var(--margen))); bottom: auto; top: 78.55rem; }
  .hero__note--below { position: relative; top: auto; left: auto; width: 144rem; margin-inline: auto; padding: 1.8rem var(--margen) 0; }

  .footer__in { height: 45rem; padding: 3.264rem var(--margen) 0; position: relative; }
  .footer__credit { font-size: 2rem; max-width: 62rem; }
  .footer__logos { position: absolute; left: 6.15rem; top: 20.1rem; margin: 0; }
  .footer__logos img { width: 28.4646rem; }
  .footer__made { position: absolute; right: var(--margen); bottom: 4.8rem; margin: 0; text-align: right; }

  .notfound { padding: 6rem var(--margen) 16rem; }
}

/* ============================================================
   Movimiento: apariciones tipo proyección, parallax del collage y titulares que entran desde el borde.
   Solo con JS activo y sin `prefers-reduced-motion`.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { transition: opacity 1s var(--ease), translate 1.1s var(--ease), clip-path 1.2s var(--ease), filter 1.4s ease-out; transition-delay: var(--delay, 0s); }
  /* El recorte va en los hijos: si se recorta al 100 % el propio elemento observado, Chromium lo da por
     no visible y el IntersectionObserver nunca dispara. */
  .js [data-reveal="img"] > * { clip-path: inset(0 0 0 0); transition: clip-path 1.2s var(--ease); transition-delay: var(--delay, 0s); }
  .js [data-reveal="img"]:not(.is-in) > * { clip-path: inset(0 0 100% 0); }
  .js [data-reveal="img"]:not(.is-in) { filter: brightness(1.9) saturate(.2); }
  .js [data-reveal="img"].is-done > * { clip-path: none; }
  /* Cuando el efecto píxel (pixel.js) se hace cargo, el recorte lo lleva la propia foto desde JS. */
  .js [data-reveal="img"].is-pixel, .js [data-reveal="img"].is-pixel > * { clip-path: none; filter: none; transition: none; }
  .js [data-reveal="text"]:not(.is-in) { opacity: 0; translate: 0 2.4rem; }
  .js [data-reveal="title"]:not(.is-in) { opacity: 0; translate: -18rem 0; }
  .js [data-reveal="title-r"]:not(.is-in) { opacity: 0; translate: 18rem 0; }
  .js [data-reveal="title-v"]:not(.is-in) { opacity: 0; translate: 0 -14rem; }

  @supports (animation-timeline: view()) {
    @media (min-width: 1000px) {
      .drift > picture, .drift > a { animation: drift linear both; animation-timeline: view(); }
      @keyframes drift { from { translate: 0 calc(var(--drift, 0) * 1rem); } to { translate: 0 calc(var(--drift, 0) * -1rem); } }
    }
  }
  .menu:not([hidden]) { animation: menu-in .35s var(--ease); transform-origin: top right; }
  @keyframes menu-in { from { clip-path: inset(0 0 100% 100%); } to { clip-path: inset(0 0 0 0); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================================================
   Bitácora (visor de láminas)
   ============================================================ */
.bitacora { padding: 6rem 2rem; }
.bitacora__title { font-size: 2.4rem; font-weight: 700; color: var(--morado); }
.bitacora__intro { margin-top: 1.6rem; max-width: 62rem; }
.bitacora__stage { position: relative; margin-top: 3.2rem; }
.bitacora__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; perspective: 240rem; }
.bitacora__track::-webkit-scrollbar { display: none; }
.bitacora__page { flex: 0 0 100%; scroll-snap-align: start; background: #d9d9d9; }
.bitacora__page picture, .bitacora__page img { width: 100%; height: 100%; object-fit: cover; }
.bitacora--slider .bitacora__page { aspect-ratio: 1257 / 839; }
.bitacora--book .bitacora__page { aspect-ratio: 660 / 426.25; }
.bitacora__nav { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; width: 4.4rem; height: 4.4rem; display: grid; place-items: center; color: var(--morado); background: var(--blanco); border-radius: 50%; transition: background-color .2s, scale .2s var(--ease), opacity .2s; }
.bitacora__nav svg { width: 2.4rem; height: 2.4rem; }
.bitacora__nav--prev { left: -.8rem; }
.bitacora__nav--next { right: -.8rem; }
.bitacora__nav:hover:not(:disabled) { background: var(--blanco); scale: 1.12; }
.bitacora__nav:disabled { opacity: .3; cursor: default; }
.bitacora__nav[hidden] { display: none; }
.bitacora__count { margin-top: 1.6rem; font-family: var(--doto); font-weight: 700; font-size: 1.6rem; color: var(--gris); text-align: center; }

@media (min-width: 700px) {
  .bitacora { padding-inline: 4rem; }
  .bitacora--book .bitacora__page { flex-basis: 50%; }
  .bitacora--book .bitacora__page:nth-child(even) { scroll-snap-align: none; }
  .bitacora--book .bitacora__page:nth-child(odd) { box-shadow: inset -2.4rem 0 2.4rem -2.4rem rgba(0, 0, 0, .28); }
  .bitacora--book .bitacora__page:nth-child(even) { box-shadow: inset 2.4rem 0 2.4rem -2.4rem rgba(0, 0, 0, .28); }
}
@media (min-width: 1000px) {
  .bitacora { padding: 9rem var(--margen) 9rem; }
  .bitacora__stage { margin-top: 9rem; }
  .bitacora--slider .bitacora__stage { padding-inline: 3.15rem; }
  .bitacora__nav { width: 4.4rem; height: 4.4rem; background: var(--blanco); color: var(--morado); border-radius: 0; box-shadow: .4rem .4rem 0 var(--morado); }
  .bitacora__nav--prev { left: -2.2rem; }
  .bitacora__nav--next { right: -2.2rem; }
  .bitacora--slider .bitacora__nav--prev { left: -1rem; }
  .bitacora--slider .bitacora__nav--next { right: -1rem; }
  .bitacora__nav:hover:not(:disabled) { background: var(--morado); color: var(--blanco); scale: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .bitacora--book.is-turning[data-turn="next"] .bitacora__page:nth-child(even) { animation: hoja-next .7s var(--ease) both; transform-origin: left center; }
  .bitacora--book.is-turning[data-turn="prev"] .bitacora__page:nth-child(odd) { animation: hoja-prev .7s var(--ease) both; transform-origin: right center; }
  .bitacora--book.is-turning .bitacora__page { animation: hoja-fade .5s ease-out both; }
  @keyframes hoja-next { from { transform: rotateY(-88deg); filter: brightness(.6); } to { transform: none; filter: none; } }
  @keyframes hoja-prev { from { transform: rotateY(88deg); filter: brightness(.6); } to { transform: none; filter: none; } }
  @keyframes hoja-fade { from { opacity: .35; } to { opacity: 1; } }
}


/* ============================================================
   Para recicladores: secciones propias y ajustes de la página
   ============================================================ */
/* ============================================================
   Para recicladores — secciones `map`, `videoList` y `gallery` + ajustes de la página.
   (Para fusionar en styles.css: los tres primeros bloques son de componente; el último, de página.)
   ============================================================ */

/* ---------- Mapa ---------- */
.map__head { position: relative; display: flex; flex-direction: column; gap: 2.8rem; padding: 4rem 2rem; color: var(--blanco); }
.map__head .band { background: #171716; }
.map__intro, .map__legend { position: relative; z-index: 1; }
.map__title { font-family: var(--doto); font-weight: 900; font-size: 2.4rem; line-height: 1.3; letter-spacing: -.022em; }
.map__body { margin-top: 1.6rem; font-family: var(--serif); font-size: 2.4rem; line-height: 1.35; letter-spacing: -.022em; max-width: 58.6rem; }
.map__body br { display: none; }
.map__legend { align-self: flex-start; display: flex; flex-direction: column; gap: 1.3rem; padding: 1.6rem; background: var(--rosa); font-family: var(--doto); font-weight: 800; font-size: 1.7rem; line-height: 1.5; letter-spacing: -.022em; }
.map__legend li { display: flex; align-items: center; gap: 1.6rem; }
.map__dot { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; }
.map__frame { position: relative; aspect-ratio: 4 / 5; max-height: 86svh; background: #ececec; overflow: hidden; }
.map__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__placeholder, .map__placeholder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map__pending { position: absolute; left: 2rem; bottom: 2rem; padding: .5rem 1rem; background: rgba(255, 255, 255, .88); color: var(--gris); font-family: var(--doto); font-weight: 800; font-size: 1.4rem; line-height: 1.3; letter-spacing: 0; text-transform: uppercase; }
.map__note { padding: 2rem 2rem 6rem; max-width: 60rem; font-size: 1.5rem; line-height: 1.5; color: var(--ocre); }
.map__note a { text-decoration-thickness: 1px; text-underline-offset: .18em; }

/* ---------- Lista de videos ---------- */
.videolist__item { position: relative; padding: 2rem 0 5rem; }
.videolist__item::before { content: ""; position: absolute; top: 0; left: calc(50% - var(--bleed) / 2); width: var(--bleed); border-top: 1px solid var(--morado); }
.videolist__label { padding-inline: 2rem; margin-bottom: 1.2rem; text-align: right; font-family: var(--doto); font-weight: 900; font-size: 2.4rem; line-height: 1.5; letter-spacing: 0; color: var(--morado); white-space: nowrap; }
.videolist__text { padding: 2.4rem 2rem 0; max-width: 64rem; color: var(--morado); }
.videolist__title { font-size: 2rem; font-weight: 700; line-height: 1.4; }
.videolist__desc { margin-top: .8rem; font-size: 1.7rem; font-weight: 500; }

/* ---------- Galería (base: rejilla normal; también es la versión sin JS y con movimiento reducido) ---------- */
.gallery { border-top: 0; padding-top: 4rem; }
.gallery::before { content: ""; position: absolute; top: 0; left: calc(50% - var(--bleed) / 2); width: var(--bleed); border-top: 1px solid var(--morado); }
.gallery__head { padding-inline: 2rem; }
.gallery__heading { margin-top: 2rem; font-size: clamp(2.6rem, 7vw, 4rem); line-height: 1.25; color: #eda856; }
.gallery__body { margin-top: 2rem; max-width: 69rem; color: #eda856; }
.gallery__stage { position: relative; margin-top: 5rem; padding: 2rem; border-top: 1px solid var(--morado); background: var(--blanco); }
.gallery__ring { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.gallery__fig { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 1.2rem; background: var(--lila); }
.gallery__strip { position: absolute; inset: 0; display: none; overflow: hidden; }
.gallery__strip:first-child { display: block; }
.gallery__strip picture, .gallery__strip img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery__fig figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: .8rem 1.2rem; background: rgba(255, 255, 255, .85); font-size: 1.4rem; }
.gallery__nav[hidden], .gallery__count[hidden] { display: none; }

/* Espiral 3D (la clase la pone gallery.js). Medidas en cqw: 1cqw = 1 % del ancho del escenario.
   Túnel de radio --R visto de frente; cada tarjeta es un tramo de pared de --strips franjas (ancho --sw, fondo --ch)
   y `--u` (de gallery.js) dice cuántos pasos de espiral la separan del primer plano. */
.gallery.is-3d .gallery__stage { container-type: inline-size; aspect-ratio: 1 / 1; padding: 0; overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.gallery.is-3d .gallery__stage.is-dragging { cursor: grabbing; }
.gallery.is-3d .gallery__ring {
  --R: 34; --sw: 5.1; --ch: 28; --dz: 6cqw; --dth: 75deg;
  --phi: calc(2 * atan(var(--sw) / (2 * var(--R))));
  position: absolute; inset: 0; display: block; perspective: 18cqw; perspective-origin: 50% 44%; scale: 1.4; transform-origin: 50% 44%;
}
.gallery.is-3d .gallery__card {
  position: absolute; left: 50%; top: 44%; width: 0; height: 0; transform-style: preserve-3d; pointer-events: none;
  transform: translateZ(calc(var(--u, 0) * var(--dz) * -1 - 2cqw - var(--ch) * .5cqw)) rotateZ(calc(var(--u, 0) * var(--dth)));
}
.gallery.is-3d .gallery__fig { position: static; aspect-ratio: auto; overflow: visible; border-radius: 0; background: none; transform-style: preserve-3d; }
.gallery.is-3d .gallery__strip {
  display: block; inset: auto; left: calc(var(--sw) * -.5cqw - 1.5px); top: calc(var(--ch) * -.5cqw);
  width: calc(var(--sw) * 1cqw + 3px); height: calc(var(--ch) * 1cqw);
  opacity: var(--o, 1); backface-visibility: hidden;
  transform: rotateZ(calc((var(--k) - (var(--strips) - 1) / 2) * var(--phi) * -1)) translateY(calc(var(--R) * 1cqw)) rotateX(90deg);
}
.gallery.is-3d .gallery__strip:first-child { border-radius: 2.2cqw 0 0 2.2cqw; }
.gallery.is-3d .gallery__strip:last-child { border-radius: 0 2.2cqw 2.2cqw 0; }
.gallery.is-3d .gallery__strip picture { position: absolute; top: 0; left: calc(var(--k) * -100%); width: calc(var(--strips) * 100%); height: 100%; max-width: none; }
.gallery.is-3d .gallery__strip img { -webkit-user-drag: none; }
.gallery.is-3d .gallery__fig figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.gallery__nav { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; width: 4.4rem; height: 4.4rem; display: grid; place-items: center; border-radius: 50%; background: var(--lila); color: var(--morado); transition: scale .2s var(--ease), background-color .2s; }
.gallery__nav svg { width: 2.4rem; height: 2.4rem; }
.gallery__nav--prev { left: 1.2rem; }
.gallery__nav--next { right: 1.2rem; }
.gallery__nav:hover { scale: 1.12; }
.gallery__count { position: absolute; right: 1.2rem; bottom: 1.2rem; z-index: 2; padding: .2rem 1rem; background: rgba(255, 255, 255, .88); font-family: var(--doto); font-weight: 800; font-size: 1.5rem; letter-spacing: 0; color: var(--gris); }

/* ---------- Tablet ---------- */
@media (min-width: 600px) {
  .map__head { padding: 5rem 4rem; }
  .map__frame { aspect-ratio: 4 / 3; }
  .map__pending { left: 4rem; }
  .map__note { padding-inline: 4rem; }
  .videolist__label, .videolist__text, .gallery__head { padding-inline: 4rem; }
  .gallery__stage { padding: 4rem; }
  .gallery__ring { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
  .gallery.is-3d .gallery__stage { aspect-ratio: 4 / 3; }
  .gallery.is-3d .gallery__ring { scale: 1.25; }
  .gallery__nav--prev { left: 2.4rem; }
  .gallery__nav--next { right: 2.4rem; }
}

/* ---------- Escritorio: medidas del frame de 1440 ---------- */
@media (min-width: 1000px) {
  .map__head { flex-direction: row; justify-content: space-between; align-items: center; gap: 4rem; padding: 6rem var(--margen); }
  .map__title { font-size: 3.1rem; line-height: 1.5; }
  .map__body { font-size: 3.2rem; line-height: 1.5; }
  .map__body br { display: inline; }
  .map__legend { align-self: center; font-size: 2rem; }
  .map__legend li { gap: 2.8rem; }
  .map__frame { aspect-ratio: auto; height: 73.75rem; max-height: none; }
  .map__pending { left: max(var(--margen), calc(50% - 72rem + var(--margen))); bottom: 3rem; font-size: 1.6rem; }
  .map__note { padding: 2rem 0 0 var(--margen); max-width: none; width: 62rem; min-height: 30rem; font-size: 1.6rem; text-align: justify; letter-spacing: 0; }

  .videolist__item { padding: 7.3rem 0 0; min-height: 126.4rem; }
  .videolist__item:last-child { min-height: 0; padding-bottom: 10rem; }
  .videolist__label { padding-inline: var(--margen); margin: 0; font-size: 3.1rem; line-height: 1.5; }
  .videolist .yt { aspect-ratio: 1440 / 742.6; }
  .videolist__text { padding: 6.04rem var(--margen) 0; max-width: none; }
  .videolist__title { font-size: 2.4rem; line-height: 1.5; }
  .videolist__desc { font-size: 2rem; max-width: 50rem; }

  .gallery { padding-top: 6rem; }
  .gallery__head { padding-inline: var(--margen); }
  .gallery__heading { margin-top: 3.2rem; font-size: 4rem; line-height: 1.5; }
  .gallery__body { margin-top: 2.8rem; }
  .gallery__stage { margin-top: 18rem; padding: 6rem var(--margen); }
  .gallery__ring { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2.8rem; width: 132rem; max-width: 100%; margin-inline: auto; }
  .gallery.is-3d .gallery__stage { aspect-ratio: 1440 / 816; }
  .gallery.is-3d .gallery__ring { width: auto; max-width: none; scale: none; }
  .gallery__nav--prev { left: max(2.4rem, calc(50% - 72rem + 2.4rem)); }
  .gallery__nav--next { right: max(2.4rem, calc(50% - 72rem + 2.4rem)); }
  .gallery__count { right: max(2.4rem, calc(50% - 72rem + 2.4rem)); bottom: 2.4rem; }
}

/* ---------- Ajustes de esta página ---------- */
.page-para-recicladores .v-creditos { color: var(--morado); }
@media (min-width: 1000px) {
  .page-para-recicladores .v-creditos { letter-spacing: -.017em; }
  .page-para-recicladores .explora { padding-top: 8.96rem; }
}


/* ============================================================
   Lo que aprendimos de la calle: secciones propias y ajustes de la página
   ============================================================ */
/* ============================================================
   Lo que aprendimos de la calle
   1) Sección `data` (components/sections/Data.astro): texto + gráfico de círculos + tabla de precios.
   2) Ajustes de esta página (variantes `v-*` y ámbito body.page-lo-que-aprendimos-de-la-calle).
   Mobile-first: base = móvil, 600 px tablet, 1000 px escritorio (1rem = 10 px del diseño de 1440).
   ============================================================ */

/* ---------- 1) Sección `data` ---------- */
.data { padding: 4rem 2rem 0; --magenta-dato: #ed56c5; }
.data__title { font-family: var(--doto); font-weight: 900; font-size: 2.4rem; line-height: 1.5; letter-spacing: -.011em; color: var(--morado); }
.data__body { margin-top: 2.4rem; max-width: 62rem; font-weight: 500; }
.data__body > p + p { margin-top: 1.5em; }
.data__link { display: inline-block; margin-left: .6em; font-size: 1.3rem; font-weight: 500; letter-spacing: .1em; white-space: nowrap; color: var(--magenta-dato); text-decoration: underline; text-decoration-color: var(--rosa); text-decoration-thickness: 1px; text-underline-offset: .25em; padding-block: .6rem; }
.data__link:hover, .data__link:focus-visible { color: var(--morado); text-decoration-color: currentColor; }

/* Gráfico: en móvil el SVG ocupa el ancho y la leyenda va debajo como lista */
.chart { margin-top: 3.2rem; }
.chart__svg { width: 100%; height: auto; overflow: visible; }
.chart__ring { fill: none; stroke-width: 1px; vector-effect: non-scaling-stroke; }
.chart__legend { display: flex; flex-wrap: wrap; gap: .8rem 2.4rem; margin-top: 2rem; font-weight: 500; line-height: 1.5; }
.chart__legend li { display: flex; align-items: center; gap: .8rem; white-space: nowrap; }
.chart__key { flex: none; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: currentColor; }

/* Tabla de precios */
.data--table { padding-bottom: 6rem; }
.data--chart + .data--table, .data__body + .precios { margin-top: 4rem; }
.precios__table { width: 100%; border-collapse: separate; border-spacing: 0; padding: 1.2rem 1.6rem; background: var(--tabla, #0e9640); color: var(--blanco); font-size: 1.5rem; font-weight: 500; line-height: 1.5; }
.precios__caption { caption-side: top; text-align: left; padding-bottom: 2rem; color: var(--morado); }
.precios__caption strong { display: block; font-size: 1.8rem; font-weight: 700; }
.precios__caption span { display: block; margin-top: .4rem; font-size: 1.5rem; font-weight: 500; }
.precios__table th, .precios__table td { padding: 1.2rem 0; text-align: left; vertical-align: top; font-weight: 500; }
.precios__table thead th { font-weight: 700; }
.precios__table tbody th, .precios__table tbody td { border-top: 1px solid var(--blanco); }
.precios__table td, .precios__table th:last-child:not(:first-child) { text-align: right; white-space: nowrap; padding-left: 1.6rem; }
.precios__note { margin-top: 1.6rem; max-width: 51.74rem; font-size: 1.4rem; line-height: 1.5; }

@media (min-width: 600px) {
  .data { padding: 6rem 4rem 0; }
  .data--table { padding-bottom: 8rem; }
  .data__title { font-size: 2.8rem; }
  .precios__table { padding: 2rem 2.4rem; font-size: 1.8rem; }
  .precios__table th, .precios__table td { padding-block: 1.4rem; }
  .precios__caption strong { font-size: 2rem; }
  .precios__caption span { font-size: 1.6rem; }
  .precios__note { font-size: 1.5rem; }
}

@media (min-width: 1000px) {
  .data { padding: 8rem var(--margen) 0; }
  .data__title { font-size: 3.1rem; white-space: nowrap; }
  .data__body { margin-top: 6.05rem; max-width: 73.8rem; }
  .data__link { margin-left: 1.7rem; padding-block: 0; font-size: 1.6rem; line-height: 1; }

  /* El gráfico es un lienzo de --cw × --ch px de diseño a sangre; el SVG y los rótulos van en sus coordenadas del Figma. */
  .chart { position: relative; margin: 3rem calc(var(--margen) * -1) 0; width: calc(var(--cw) * .1rem); height: calc(var(--ch) * .1rem); }
  .chart__svg { position: absolute; left: calc(var(--bx) * .1rem); top: calc(var(--by) * .1rem); width: calc(var(--bw) * .1rem); height: calc(var(--bh) * .1rem); }
  .chart__legend { display: block; margin: 0; }
  .chart__legend li { position: absolute; left: calc(var(--x) * .1rem); top: calc(var(--y) * .1rem); translate: 0 -50%; }
  .chart__key { display: none; }

  .data--table { padding-top: 6rem; padding-bottom: 12rem; }
  .data--chart + .data--table, .data__body + .precios { margin-top: 0; }
  .precios__table { padding: 3rem; font-size: 2.4rem; }
  .precios__caption { padding-bottom: 3.45rem; }
  .precios__caption strong { font-size: 2.4rem; }
  .precios__caption span { font-size: 2rem; }
  .precios__table th, .precios__table td { padding: 3.05rem 0; white-space: nowrap; }
  .precios__table thead th { padding-top: 0; }
  .precios__table tbody tr:last-child > * { padding-bottom: 0; }
  .precios__note { margin-top: 2.9rem; font-size: 1.6rem; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Los círculos se trazan y los puntos de la leyenda aparecen al entrar en pantalla. */
  .js [data-reveal="chart"] .chart__ring { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease) calc(var(--i) * .25s); }
  .js [data-reveal="chart"]:not(.is-in) .chart__ring { stroke-dashoffset: 1; }
  .js [data-reveal="chart"] .chart__dot, .js [data-reveal="chart"] .chart__legend li { transition: opacity .6s ease-out calc(.9s + var(--i) * .25s); }
  .js [data-reveal="chart"]:not(.is-in) .chart__dot, .js [data-reveal="chart"]:not(.is-in) .chart__legend li { opacity: 0; }
}

/* ---------- 2) Ajustes de la página ---------- */
/* Velo del 32 % sobre la foto del hero (debajo de los textos). */
.page-lo-que-aprendimos-de-la-calle .hero__media::after { content: ""; position: absolute; inset: 0; z-index: 0; background: rgba(0, 0, 0, .32); pointer-events: none; }

.v-suave, .v-rotulo, .v-velo { letter-spacing: -.011em; }
.v-preguntas { letter-spacing: -.022em; }
/* Móvil y tablet: los titulares no llevan el salto de línea del diseño y «observar(nos)» cabe en una línea. */
@media (max-width: 999.98px) {
  .page-lo-que-aprendimos-de-la-calle .display br { display: none; }
  .display.v-largo { font-size: min(var(--display), 12.4vw); overflow-wrap: normal; }
  .ci--text.v-preguntas { font-size: clamp(2.2rem, 5.6vw, 3.6rem); max-width: none; }
}
/* Tarjeta translúcida sobre la foto a sangre de «Chapinero en contexto». */
.v-velo { background: rgba(255, 255, 255, .53); padding: 1.6rem; }
.page-lo-que-aprendimos-de-la-calle .has-band .canvas { min-height: 68vw; justify-content: flex-end; }
/* En pantallas angostas el justificado abre ríos: las fuentes van en bandera. */
.ci--text.v-fuentes { text-align: left !important; font-size: 1.4rem; overflow-wrap: anywhere; }

@media (min-width: 600px) {
  .ci--text.v-fuentes { font-size: 1.5rem; }
}
@media (min-width: 1000px) {
  .page-lo-que-aprendimos-de-la-calle .has-band .canvas { min-height: 0; }
  .ci--text.v-fuentes { text-align: justify !important; font-size: var(--fs); overflow-wrap: normal; padding-right: .6rem; }
  /* Del final de las tarjetas (y = 20029) al footer (y = 20269). */
  .page-lo-que-aprendimos-de-la-calle .explora { padding-bottom: 24rem; }
}


/* ============================================================
   ¿Cómo lo hicimos?: secciones propias y ajustes de la página
   ============================================================ */
/* ============================================================
   ¿Cómo lo hicimos? — sección `timeline` (Timeline.astro) y ajustes de la página.
   Mobile-first: base = móvil, 600 px tablet, 1000 px escritorio (1rem = 10 px del diseño de 1440).
   ============================================================ */

/* ---------- Línea de tiempo ---------- */
.sec--timeline { --tl: #563924; color: var(--tl); padding: 6rem 0 2rem; }
.tl { position: relative; }
.tl__step { --dot: 2rem; --dot-top: .5rem; --line-x: 3rem; position: relative; display: grid; grid-template-columns: var(--dot) minmax(0, 1fr); column-gap: 1.4rem; padding-inline: 2rem; }
.tl__dot { grid-area: 1 / 1; position: relative; z-index: 4; width: var(--dot); height: var(--dot); margin-top: var(--dot-top); border-radius: 50%; background: var(--tl); }
.tl__title { grid-area: 1 / 2; font-size: 2rem; font-weight: 500; line-height: 1.5; letter-spacing: -.022em; }
.tl__canvas { grid-area: 2 / 2; padding: 2.4rem 0 6.4rem; gap: 3.2rem; }
/* Tramo de línea: del centro de este punto al centro del siguiente. ::before = guía tenue, ::after = trazo. */
.tl__step:not(:last-child)::before, .tl__step:not(:last-child)::after {
  content: ""; position: absolute; z-index: 3; pointer-events: none;
  left: calc(var(--line-x) - .5px); width: 1px; top: calc(var(--dot-top) + var(--dot) / 2); bottom: calc(-1 * (var(--dot-top) + var(--dot) / 2));
  background: var(--tl);
}
.tl__step::before { opacity: .22; }
.tl__step::after { transform-origin: 50% 0; transform: scaleY(var(--p, 1)); }
.sec--timeline .display { line-height: 1.19; }

@media (max-width: 999px) {
  .ci--text.v-cita, .ci--text.v-creditos { text-align: left !important; white-space: normal; }
  .sec--timeline .ci--text { align-self: flex-start; text-align: left !important; }
}

@media (min-width: 600px) {
  .tl__step { --dot: 2.6rem; --dot-top: .3rem; --line-x: 5.3rem; padding-inline: 4rem; column-gap: 2rem; }
  .tl__title { font-size: 2.2rem; }
  .tl__canvas { padding: 2.8rem 0 8rem; gap: 4rem; }
}

@media (min-width: 1000px) {
  .sec--timeline { padding: 17.6rem 0 0; }
  .tl__step { --dot: 4.6436rem; --dot-top: 0rem; --line-x: 8.322rem; grid-template-columns: minmax(0, 1fr); column-gap: 0; padding: 0; }
  .tl__step > * { grid-area: 1 / 1; }
  .tl__dot { justify-self: start; align-self: start; margin-left: 6rem; }
  .tl__title { position: relative; z-index: 2; justify-self: start; align-self: start; margin: .5rem 0 0 17.2rem; font-size: 2.4rem; }
  .tl__canvas { padding: 0; gap: 0; }
  /* Foto que sangra por el borde izquierdo de la ventana (fotograma del microdocumental). */
  .canvas > .ci--img.v-sangre-izq { width: auto; justify-self: stretch; margin-left: min(0px, calc((144rem - var(--bleed)) / 2)); }
}

@media (prefers-reduced-motion: no-preference) {
  .js .tl[data-live] .tl__dot { transition: background-color .5s var(--ease), scale .5s var(--ease); }
  .js .tl[data-live] .tl__step:not(.is-on) .tl__dot { background: var(--band, #f4fad5); box-shadow: inset 0 0 0 1px var(--tl); scale: .7; }
  .js .tl[data-live] .tl__step.is-on .tl__dot { animation: tl-pulso 1.1s var(--ease) both; }
  @keyframes tl-pulso { from { box-shadow: 0 0 0 0 rgba(86, 57, 36, .5); } to { box-shadow: 0 0 0 1.6rem rgba(86, 57, 36, 0); } }

}

/* ---------- Ajustes de la página ---------- */
/* Velo del 18 % sobre la foto del hero. */
body.page-como-lo-hicimos .hero__media::after { content: ""; grid-area: 1 / 1; position: relative; background: rgba(0, 0, 0, .18); pointer-events: none; }

/* Enlaces naranjas ("Ver más", "Conoce al equipo"). */
body.page-como-lo-hicimos .v-enlace a, body.page-como-lo-hicimos .bitacora__intro a { font-size: 1.6rem; font-weight: 600; line-height: 1.5; letter-spacing: .1em; color: #ef8e34; text-decoration: underline; text-decoration-color: #e56aab; text-decoration-thickness: 1px; text-underline-offset: .22em; }
body.page-como-lo-hicimos .v-enlace a:hover, body.page-como-lo-hicimos .bitacora__intro a:hover { color: var(--morado); }
body.page-como-lo-hicimos .ci--text.v-enlace { align-self: flex-end; }

/* El microdocumental va a sangre, pegado a los bloques vecinos. */
body.page-como-lo-hicimos .video { padding: 0; }

/* Fotogramas del microdocumental: traen barras negras propias; el diseño los amplía para esconderlas. */
.ci--img.v-zoom img { scale: 1.1; }
body.page-como-lo-hicimos .video .yt__poster img { scale: 1.07; }

@media (min-width: 1000px) {
  /* Recorte del hero tal como está en el diseño (más cerrado que un `cover` simple). */
  body.page-como-lo-hicimos .hero__img img { inset: auto; left: -6.39%; top: -27.92%; width: 128.08%; height: 163.28%; max-width: none; }

  body.page-como-lo-hicimos .video > .yt { aspect-ratio: 1440 / 1107.5; }

  /* Bitácora: título a la izquierda, "Ver más" a la derecha, lámina debajo; la sección termina en la línea morada siguiente. */
  body.page-como-lo-hicimos .bitacora { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 6.8rem var(--margen) 1.2rem; }
  body.page-como-lo-hicimos .bitacora__intro { margin: 0; max-width: none; }
  body.page-como-lo-hicimos .bitacora__stage, body.page-como-lo-hicimos .bitacora__count { grid-column: 1 / -1; }
  body.page-como-lo-hicimos .bitacora__stage { margin-top: 2.5rem; }
  body.page-como-lo-hicimos .bitacora__count { margin-top: 1rem; line-height: 1.5; min-height: 2.4rem; }

  body.page-como-lo-hicimos .explora { padding: 25rem var(--margen) 24.5rem; }
}


/* ============================================================
   Equipo: secciones propias y ajustes de la página
   ============================================================ */
/* ============================================================
   Equipo — sección `people` (fichas de persona) y ajustes de la página.
   Base = móvil; 600 px tablet; 1000 px escritorio fiel al Figma (1rem = 10 px de diseño).
   ============================================================ */

/* ---------- people: grupo de fichas ---------- */
.people { --ficha: #a486ba; --ficha-rol: #eae8ff; --ficha-tinta: #060037; padding: 3rem 2rem 0; }
.people__title { position: relative; z-index: 1; font-family: var(--mono); font-weight: 400; letter-spacing: 0; line-height: 1.19; color: var(--morado);
  /* el titular más largo sin espacios ("Laboratorista", 13 letras de medio em) debe caber en una línea */
  font-size: min(9rem, calc((100vw - 4rem) / 6.6)); margin-bottom: -.22em; }
.people--right .people__title { text-align: right; }
.people__list { display: flex; flex-direction: column; gap: 3.2rem; }

.person { display: flex; flex-direction: column; gap: 1.6rem; padding: 1.2rem 1.2rem 2rem; background: var(--ficha); color: var(--ficha-tinta); }
.person__photo { position: relative; overflow: hidden; aspect-ratio: 909.755 / 560; background: rgba(6, 0, 55, .12); }
.person__photo picture, .person__photo img { display: block; width: 100%; height: 100%; }
.person__photo img { object-fit: cover; }
.person__photo.is-zoom img { scale: var(--zoom, 1); transform-origin: var(--fx, 50%) var(--fy, 50%); }
.person__photo.is-flip picture { scale: -1 1; }
.person__text { display: flex; flex-direction: column; font-weight: 500; line-height: 1.5; letter-spacing: -.022em; }
.person__name { font-size: 2.2rem; font-weight: 500; line-height: 1.3; }
.person__role { margin-top: .8rem; font-size: 1.3rem; color: var(--ficha-rol); }
/* tracking medido sobre el render del diseño (≈ −0,38 px a 20 px), para que las líneas corten igual */
.person__bio { margin-top: 1.4rem; font-size: 1.7rem; letter-spacing: -.019em; }
.person__bio > * + * { margin-top: 1em; }
.person__links { display: flex; flex-wrap: wrap; gap: 1rem 2.4rem; margin-top: 2.4rem; }
.person__link { display: inline-flex; align-items: center; gap: .9rem; font-family: var(--doto); font-weight: 900; font-size: 1.6rem; line-height: 1.2; letter-spacing: 0; text-transform: uppercase; text-decoration: none; color: inherit; }
.person__link-text { text-decoration: underline; text-decoration-thickness: from-font; text-underline-position: from-font; }
.person__link .card__gt { font-size: 1em; }
.person__link:hover .card__gt, .person__link:focus-visible .card__gt { translate: .6rem 0; }

/* ---------- ajustes de la página ---------- */
.page-equipo .sec--collage .rule { align-self: end; }

@media (min-width: 600px) {
  .people { padding: 4rem 4rem 0; }
  .people__title { font-size: min(9rem, calc((100vw - 8rem) / 6.6)); }
  .people__list { gap: 4.8rem; }
  .person { padding: 2rem 2rem 2.8rem; gap: 2rem; }
  .person__text { max-width: 60rem; }
  .person__name { font-size: 2.4rem; }
  .person__bio { font-size: 1.8rem; }
}

@media (min-width: 1000px) {
  /* El titular mide 107 px de caja y empieza 87 px sobre la ficha: sus descendentes pisan el borde. */
  .people { padding: 0 var(--margen); margin-top: 10rem; }
  .people__title { font-size: 9rem; white-space: nowrap; margin-bottom: -2.01rem; }
  .people__list { gap: 9rem; }
  .person { flex-direction: row; align-items: flex-start; gap: 2.4rem; padding: 2rem; min-height: 60rem; }
  .person__photo { flex: 1 1 0; min-width: 0; height: 56rem; aspect-ratio: auto; }
  .person__text { flex: none; width: 34.6245rem; max-width: none; }
  .person__name { font-size: 2.4rem; line-height: 1.5; }
  .person__role { font-size: 1.2rem; }
  .person__bio { margin-top: 1.6rem; font-size: 2rem; }

  /* Intro: interlineado "normal" del diseño (30 px) y ancho de 667 px. */
  .page-equipo .v-intro { line-height: 1.25; max-width: 66.7rem; }
  .page-equipo .v-intro > * + * { margin-top: 1.25em; }
  .page-equipo .sec--collage + .people { margin-top: .26rem; }
  /* En el diseño "Laboratorista" queda a 90 px de la ficha anterior; los otros dos titulares, a 100. */
  .page-equipo #laboratorista { margin-top: 9rem; }
  .page-equipo .explora { padding-bottom: 19.8rem; }
}


/* ============================================================
   Exhibición: secciones propias y ajustes de la página
   ============================================================ */
/* ============================================================
   Exhibición — ajustes de la página (ámbito: body.page-exhibicion)
   ============================================================ */

/* Título de página (Xanh Mono 36, centrado bajo el hero). */
body.page-exhibicion .v-titulo h1 { line-height: 1.2; }

/* Fotos que en el diseño salen de su lienzo y entran en el bloque siguiente: en flujo son cuadradas. */
body.page-exhibicion .v-pacas, body.page-exhibicion .v-velo { aspect-ratio: 1; }

/* Fotograma del cierre: el diseño lo amplía (167 % × 107 %) para dejar fuera las franjas negras del video. */
body.page-exhibicion .v-perfil img { width: 167.15%; height: 106.81%; max-width: none; margin: -3.17% 0 0 -42.14%; object-fit: fill; }

/* Tablet: subtítulo y cuerpo de cada bloque comparten margen izquierdo (el base alterna los textos pares a la derecha). */
@media (min-width: 600px) and (max-width: 999.98px) {
  body.page-exhibicion .ci--text, body.page-exhibicion .ci--text:nth-of-type(even) { align-self: flex-start; }
}

@media (min-width: 1000px) {
  body.page-exhibicion .v-pacas, body.page-exhibicion .v-velo { aspect-ratio: auto; height: 64.8rem; }

  /* Titulares girados (−90°): arrancan en el borde inferior de su caja. */
  body.page-exhibicion .canvas > .display--up { align-self: end; }

  /* Anchos exactos de las cajas de texto (la retícula va de 10 en 10 px), para que las líneas partan como en el diseño. */
  body.page-exhibicion .v-m596 { max-width: 59.575rem; }
  body.page-exhibicion .v-m607 { max-width: 60.727rem; }
  body.page-exhibicion .v-m616 { max-width: 61.566rem; }
  body.page-exhibicion .v-m639 { max-width: 63.865rem; }
  body.page-exhibicion .v-m644 { max-width: 64.403rem; }
  body.page-exhibicion .v-m647 { max-width: 64.729rem; }
  body.page-exhibicion .v-m648 { max-width: 64.759rem; }
  body.page-exhibicion .v-m666 { max-width: 66.631rem; }
  body.page-exhibicion .v-m727 { max-width: 72.668rem; }

  /* «Explora más»: rótulo en y = 18232 del diseño y 240 px de aire antes del footer. */
  body.page-exhibicion .explora { padding-top: 11.4rem; padding-bottom: 24.3rem; }
}


/* ============================================================
   Videojuego: secciones propias y ajustes de la página
   ============================================================ */
/* ============================================================
   Videojuego — estilos de la página y de sus secciones nuevas
   (gameEmbed y controls). Para fusionar en styles.css.
   ============================================================ */

/* ---------- gameEmbed: fachada del juego de itch.io ---------- */
.game { width: auto; max-width: none; margin-top: 5rem; border-bottom: 1px solid var(--morado); }
.game__frame { position: relative; aspect-ratio: 4 / 3; max-height: 92svh; width: 100%; overflow: hidden; background: #171716; }
.game--empty .game__frame { background: var(--lila) radial-gradient(circle, rgba(247, 86, 239, .45) 0 1px, transparent 1.5px) 0 0 / 8px 8px; }
.game__poster, .game__poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game__face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.4rem; padding: 2rem; text-align: center; color: var(--blanco); }
.game--empty .game__face { color: var(--morado); }
.game__btn { display: flex; align-items: center; gap: 1.6rem; padding: 1.4rem 2.4rem 1.4rem 1.8rem; background: var(--magenta); color: var(--blanco); font-family: var(--doto); font-weight: 900; font-size: 2rem; line-height: 1.2; letter-spacing: 0; text-transform: uppercase; transition: background-color .3s, scale .3s var(--ease); }
.game__btn:hover, .game__btn:focus-visible { background: var(--morado); scale: 1.05; }
.game__play { width: 0; height: 0; border-left: 1.8rem solid currentColor; border-block: 1.1rem solid transparent; }
.game__pending { font-family: var(--doto); font-weight: 700; font-size: 1.6rem; letter-spacing: 0; text-transform: uppercase; }
.game__link { font-size: 1.6rem; font-weight: 600; letter-spacing: 0; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.game__link:hover { text-decoration-thickness: 2px; }
.game iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.game__bar { padding: 1.2rem 2rem; text-align: right; color: var(--morado); }
.game__bar[hidden] { display: none; }

/* ---------- controls: banda lila con mando y teclado ---------- */
.controls { padding: 5rem 2rem 6rem; color: var(--morado); }
.controls::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - var(--bleed) / 2); width: var(--bleed); background: rgba(247, 246, 255, .5); z-index: -1; }
.controls__title { font-size: 2.4rem; font-weight: 700; line-height: 1.5; color: var(--ocre); }
.controls__block { position: relative; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--morado); }
.controls__kb { margin-top: 4rem; }
.controls__sub, .controls__name { margin: 0; font-size: 2rem; font-weight: 700; line-height: 1.5; }
.controls__groups, .controls__keys { display: grid; gap: 4rem; margin-top: 3rem; }

/* En móvil todos los paneles comparten escala (el más ancho, 638, ocupa el 100 %). */
.pad__panel { display: block; width: calc(var(--pw) / 638 * 100%); margin-top: 1.6rem; }
.pad__panel img { width: 100%; height: auto; }
.pad__labels { display: grid; width: calc(var(--pw) / 638 * 100%); margin-top: .8rem; font-size: 1.15rem; line-height: 1.4; letter-spacing: -.01em; }
.pad__labels li { grid-area: 1 / 1; justify-self: start; width: max-content; margin-left: var(--x); translate: -50% 0; text-align: center; }
.controls__mando { display: block; width: min(100%, 36rem); justify-self: center; }
.controls__mando img { width: 100%; height: auto; }

.keys__body { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 1.4rem; margin-top: 2rem; --key: 4.2rem; --gap: .6rem; }
.keys__set--cross { display: grid; grid-template-columns: repeat(3, var(--key)); gap: var(--gap); }
.keys__set--cross li:first-child { grid-column: 2; }
.keys__set--cross li:nth-child(2) { grid-column: 1; }
.keys__set--row { flex: 1 0 100%; display: flex; gap: 0 4rem; }
.keys__set--row li { display: flex; flex-direction: column; align-items: center; width: var(--key); }
.keys__set--row li.is-wide { width: auto; }
.keys__set--row li.is-space { width: 100%; align-items: flex-start; }
.keys__set--row:not(.keys__set--indent) li:first-child { align-items: flex-start; }
.keys__set--indent { margin: 3rem 0 0 4.4rem; }
.keys__or { font-size: 2rem; font-weight: 700; line-height: 1.5; margin-bottom: .6rem; }
.key { flex: none; display: grid; place-items: center; width: var(--key); height: var(--key); background: var(--morado); color: var(--blanco); border-radius: 2px; box-shadow: inset 0 4px 4px rgba(255, 255, 255, .25); font-family: var(--sans); font-weight: 700; font-size: 1.8rem; line-height: 1; letter-spacing: -.022em; }
.key svg { width: 2.4rem; height: 2.4rem; }
.key--wide { width: auto; padding: 0 1.6rem; height: calc(var(--key) * .867); margin-bottom: calc(var(--key) * .133); }
.key--space { width: min(31.2rem, 100%); height: calc(var(--key) * .867); }
.key__label { width: max-content; margin-top: .8rem; font-size: 1.4rem; line-height: 1.5; text-align: center; }

.controls__photo { display: block; pointer-events: none; }
.controls__photo img { width: 100%; height: 100%; object-fit: cover; }
.controls__photo--1 { width: 64%; margin: 5rem 0 0 6%; aspect-ratio: 542.463 / 232.478; overflow: hidden; rotate: 15deg; }
.controls__photo--2 { width: 34%; aspect-ratio: 1; margin: -4rem 0 0 58%; rotate: -15.41deg; }

/* ---------- Ajustes de los lienzos de esta página ---------- */
.v-junto > * + * { margin-top: 0; }
/* Los textos de 24 px de este frame no llevan tracking. */
.page-videojuego .ci--text { letter-spacing: 0; }
.page-videojuego .ci--text.v-creditos { letter-spacing: -.0264em; }
.v-creditos > * + * { margin-top: 0; }
.ci--img.v-ancha, .ci--img.v-captura { --mw: 100%; }
.ci--img.v-sprite { --mw: 42%; }
.ci--img.v-logo { --mw: 72%; }
@media (max-width: 599.98px) { .v-creditos { text-align: left !important; } }
@media (max-width: 999.98px) { .v-salto br { display: none; } .v-creditos > p { display: inline; } }

/* Línea a sangre bajo la biblia del juego. */
.page-videojuego .bitacora::after { content: ""; position: absolute; bottom: 0; left: calc(50% - var(--bleed) / 2); width: var(--bleed); border-top: 1px solid var(--morado); }

@media (min-width: 600px) {
  .game { margin-top: 7rem; }
  .game__frame { aspect-ratio: 16 / 9; }
  .game__btn { font-size: 2.4rem; }
  .game__bar { padding-inline: 4rem; }
  .controls { padding: 7rem 4rem 8rem; }
  .pad__panel, .pad__labels { width: min(100%, calc(var(--pw) * .1rem)); }
  .pad__labels { font-size: 1.8rem; line-height: 1.5; }
  .keys__body { --key: 6rem; --gap: .8rem; gap: 0 3rem; }
  .keys__set--row { gap: 0 8rem; }
  .keys__set--indent { margin-left: 8.9rem; gap: 0 7.2rem; }
  .keys__or { margin-bottom: 1.4rem; }
  .key { font-size: 2.4rem; }
  .key__label { font-size: 1.8rem; }
  .controls__photo--1 { width: 54rem; max-width: 70%; margin-left: 12%; }
  .controls__photo--2 { width: 26rem; margin-left: 60%; margin-top: -6rem; }
  .ci--img.v-sprite { --mw: 30%; }
  .ci--img.v-logo { --mw: 56%; }
}

@media (min-width: 1000px) {
  .game { margin-top: 8.96rem; }
  .game__frame { aspect-ratio: 1440 / 742.6; }
  .game__face { gap: 3rem; }
  .game__bar { width: 144rem; max-width: 100%; margin-inline: auto; padding: 1.2rem var(--margen); }

  .controls { padding: 9rem var(--margen) 6rem; }
  .controls__title { font-size: 3rem; }
  .controls__block { margin-top: 2.96rem; padding-top: 3.04rem; }
  .controls__pad { padding-bottom: 1.85rem; }
  .controls__kb { margin-top: 0; padding-top: 3.1rem; }
  .controls__sub, .controls__name { font-size: 2.4rem; }
  .controls__groups { grid-template-columns: 67.2rem 1fr; grid-auto-rows: 44rem; gap: 0; margin-top: 6rem; }
  .pad__panel { width: calc(var(--pw) * .1rem); margin-top: 3.02rem; }
  .pad__labels { width: calc(var(--pw) * .1rem); margin-top: .82rem; font-size: 2rem; line-height: 1.5; letter-spacing: inherit; }
  .controls__mando { width: 48.36rem; margin-top: 4.27rem; justify-self: start; }

  .controls__keys { grid-template-columns: 56rem max-content; justify-content: start; gap: 12rem 0; margin-top: 6rem; }
  .keys__body { margin-top: 5.96rem; }
  .keys__or { font-size: 2.4rem; margin-bottom: 1.48rem; }
  .keys__set--indent { margin: 6rem 0 0 8.92rem; gap: 0 7.235rem; }
  .key--wide, .key--space { height: 5.2rem; }
  .key--space { width: 31.2rem; }
  .key__label { font-size: 2rem; }

  .controls__photo { position: absolute; margin: 0; max-width: none; }
  .controls__photo--1 { left: 76rem; top: 47.7rem; width: 54.25rem; }
  .controls__photo--2 { left: 97.82rem; top: 70.6rem; width: 32.66rem; z-index: 3; }

  .ci--img.v-sprite, .ci--img.v-logo { width: 100%; }
  .v-creditos > p:first-child { text-align-last: justify; }

  .page-videojuego .bitacora { padding-top: 8.2rem; padding-bottom: 15.8rem; }
  .page-videojuego .explora { padding: 16rem var(--margen) 20rem; }
  .page-videojuego .explora__row { margin-top: 16rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .key { transition: translate .15s var(--ease), box-shadow .15s; }
  .keys li:hover .key { translate: 0 .2rem; box-shadow: inset 0 2px 3px rgba(255, 255, 255, .15); }
}

/* ============================================================
   Mapa de lugares (Leaflet): leyenda que filtra, marcadores, tarjeta y lista
   ============================================================ */
.map__filter { display: flex; align-items: center; gap: inherit; font: inherit; letter-spacing: inherit; color: inherit; text-align: left; transition: opacity .2s; }
.map__legend li { gap: 1.6rem; }
.map__filter { gap: 1.6rem; }
.map__filter[aria-pressed="false"] { opacity: .45; text-decoration: line-through; }
.map__filter[aria-pressed="false"] .map__dot { background: transparent !important; box-shadow: inset 0 0 0 2px currentColor; }
.map__filter:focus-visible { outline-color: var(--blanco); }
.map__frame { isolation: isolate; }
.map__canvas { position: absolute; inset: 0; z-index: 1; background: transparent; font: inherit; opacity: 0; transition: opacity .6s; }
.map.is-ready .map__canvas { opacity: 1; }
.map__pending { z-index: 3; pointer-events: none; }
.map__marker { background: none; border: 0; }
.map__marker:focus-visible { outline: 3px solid var(--magenta); outline-offset: 4px; border-radius: 50%; }
.map__point { display: block; width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--blanco); box-shadow: 0 1px 4px rgba(0, 0, 0, .45); transition: scale .2s var(--ease); }
.map__marker:hover .map__point { scale: 1.2; }
.map__pin { position: absolute; left: 50%; bottom: 60%; width: 11rem; max-width: none; height: auto; translate: -50% 0; pointer-events: none; opacity: 0; scale: .4; transform-origin: 50% 92%; transition: opacity .2s, scale .35s var(--ease); }
.map__marker.is-active { z-index: 1000 !important; }
.map__marker.is-active .map__pin { opacity: 1; scale: 1; }
.map__marker.is-active .map__point { scale: .62; }
.map .leaflet-container { font-family: var(--sans); }
/* Mapa base propio: manzanas grises, calles blancas, vías principales en morado y parques en verde. */
.map.is-ready .map__canvas { background: var(--mapa-fondo); }
.map { --mapa-fondo: #e9e8ee; --mapa-calle: #fff; --mapa-via: var(--morado); --mapa-parque: var(--verde); }
.map__street { font-family: var(--doto); font-weight: 800; font-size: 1.2rem; line-height: 1; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; color: var(--morado); pointer-events: none; }
.map__street span { display: inline-block; translate: -50% -50%; rotate: var(--a, 0deg); padding: .2rem .5rem; background: var(--mapa-fondo); }
.map .leaflet-control-attribution { font-size: 1.1rem; letter-spacing: 0; }
.map .leaflet-control-zoom a { color: var(--negro); }

.map__cards { position: absolute; z-index: 4; left: 1rem; right: 1rem; bottom: 1rem; max-height: 58%; display: flex; pointer-events: none; }
.map .map__frame { aspect-ratio: auto; height: min(88svh, 72rem); max-height: none; }

.map__list { padding: 2rem 2rem 0; color: var(--morado); font-size: 1.6rem; }
.map__list summary { cursor: pointer; font-family: var(--doto); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; color: var(--gris); text-decoration: underline; text-underline-offset: .2em; }
.map__list summary:hover { color: var(--morado); }
.map__group { margin-top: 2.4rem; }
.map__group[hidden] { display: none; }
.map__group h3 { display: flex; align-items: center; gap: 1rem; font-size: 1.8rem; font-weight: 700; }
.map__group .map__dot { width: 1.6rem; height: 1.6rem; box-shadow: 0 0 0 1px rgba(0, 0, 0, .2); }
.map__group ul { margin-top: 1rem; display: grid; gap: 1.2rem; }
.map__group li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--lila); }
.map__off { font-weight: 700; color: var(--morado); }
.map__off span { font-weight: 400; color: var(--gris); }
.map__goto { font-weight: 700; color: var(--morado); text-decoration: underline; text-underline-offset: .18em; text-align: left; }
.map__group li > span:not(.place__chip) { flex: 1 1 26rem; color: var(--negro); }
.map__group li > a { color: var(--ocre); font-weight: 600; }

@media (min-width: 600px) {
  .map__cards { left: 4rem; right: auto; bottom: 2rem; width: 36rem; max-height: calc(100% - 4rem); }
  .map__list { padding-inline: 4rem; }
}
@media (min-width: 1000px) {
  .map__legend li, .map__filter { gap: 2.8rem; }
  .map .map__frame { height: 73.75rem; }
  .map__cards { left: max(6.767rem, calc(50% - 72rem + 6.767rem)); top: 2rem; bottom: auto; width: 36rem; max-height: calc(100% - 4rem); }
  .map__list { padding: 2.4rem var(--margen) 0; }
  .map__group ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 4rem; }
  .map__note { min-height: 0; padding-bottom: 12rem; }
}

/* Tarjeta del lugar, con el lenguaje del sitio: franja plana del color de la categoría con rótulo Doto,
   nombre en Xanh Mono, datos separados por líneas moradas y "Cómo llegar >" como las etiquetas de las tarjetas. */
.place { pointer-events: auto; width: 100%; max-height: 100%; overflow: auto; display: flex; flex-direction: column; background: var(--blanco); color: var(--morado); letter-spacing: -.022em; box-shadow: .8rem .8rem 0 var(--cat, var(--magenta)); }
.place[hidden] { display: none; }
.place__top { position: sticky; top: 0; z-index: 1; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; padding: 1rem 1rem 1rem 1.6rem; background: var(--cat, var(--magenta)); color: var(--cat-ink, #000); }
.place__kind { font-family: var(--doto); font-weight: 900; font-size: 1.5rem; line-height: 1.2; letter-spacing: 0; text-transform: uppercase; }
.place__close { flex: none; width: 3.2rem; height: 3.2rem; display: grid; place-items: center; color: inherit; transition: rotate .3s var(--ease); }
.place__close:hover { rotate: 90deg; }
.place__close:focus-visible { outline-color: currentColor; }
.place__photo { display: none; flex: none; height: 12rem; overflow: hidden; background: var(--lila); }
.place__photo img { width: 100%; height: 100%; object-fit: cover; }
.place__body { display: flex; flex-direction: column; padding: 1.6rem 1.6rem 0; }
.place__name { font-family: var(--mono); font-weight: 400; font-size: 3.4rem; line-height: 1.1; letter-spacing: 0; color: var(--negro); outline: none; text-wrap: balance; }
.place__chips { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: 1rem; }
.place__chip { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--doto); font-weight: 900; font-size: 1.3rem; line-height: 1.2; letter-spacing: 0; text-transform: uppercase; color: var(--verde); }
.place__chip[hidden] { display: none; }
.place__chip--state::before { content: ""; width: .9rem; height: .9rem; background: currentColor; }
.place__chip.is-closed { color: var(--rojo); }
.place__chip--demo { color: var(--gris); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: .2em; }
.place__rows { margin: 1.6rem 0 0; border-top: 1px solid var(--morado); }
.place__row { padding: 1rem 0 1.1rem; border-bottom: 1px solid var(--morado); }
.place__row dt { font-family: var(--doto); font-weight: 800; font-size: 1.3rem; line-height: 1.2; letter-spacing: 0; text-transform: uppercase; color: var(--gris); }
.place__row dd { margin: .4rem 0 0; font-size: 1.7rem; line-height: 1.4; }
.place__go { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.6rem 0; font-family: var(--doto); font-weight: 900; font-size: 1.8rem; line-height: 1.2; letter-spacing: 0; text-transform: uppercase; text-decoration: none; color: var(--morado); }
.place__go-text { text-decoration: underline; text-decoration-thickness: from-font; text-underline-position: from-font; }
.place__go .card__gt { font-size: 1em; }
.place__go:hover, .place__go:focus-visible { color: var(--ocre); }
.place__go:hover .card__gt, .place__go:focus-visible .card__gt { translate: .6rem 0; }
.map__group .place__chip { font-size: 1.2rem; }
@media (min-width: 600px) {
  .place__photo { display: block; }
  .place__body { padding: 2rem 2rem 0; }
  .place__top { padding-left: 2rem; }
  .place__name { font-size: 4rem; }
}
