/* memetro.net v3 «Lapsus». Ver DESIGN.md.
   Capas: fuentes y tokens / base / retícula y tipos / cabecera y línea / componentes / páginas / pie / lapsos / movimiento reducido */

/* ---------- fuentes ---------- */
@font-face { font-family: "Heros"; src: url(/fonts/heros-regular.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Heros"; src: url(/fonts/heros-semibold.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Heros"; src: url(/fonts/heros-bold.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Heros"; src: url(/fonts/heros-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Heros Cn"; src: url(/fonts/heroscn-regular.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Heros Cn"; src: url(/fonts/heroscn-bold.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }


/* ---------- tokens ---------- */
:root {
  --papel: #eeede9;
  --tinta: #000;
  --gris: #5c5e61;
  --calido: #b9b4ab;
  --niebla: #dcdad4;
  --senal: #e32119;

  --f: "Heros", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fc: "Heros Cn", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --m: clamp(16px, 2.6vw, 40px);
  --g: clamp(12px, 1.6vw, 24px);
  --sec: clamp(96px, 13vw, 208px);
  --cab: 68px;
  --ease: cubic-bezier(.2, .7, .1, 1);

  --t-display: clamp(56px, 13.2vw, 232px);
  --t-titulo: clamp(46px, 8vw, 148px);
  --t-seccion: clamp(34px, 4.6vw, 80px);
  --t-sub: clamp(21px, 1.9vw, 30px);
  --t-lead: clamp(21px, 1.85vw, 30px);
  --t-texto: clamp(17px, 1.2vw, 19px);
  --t-meta: 14px;
}
@media (max-width: 1099px) { :root { --cab: 58px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--papel); color: var(--tinta); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--cab) + 24px); }
body { margin: 0; background: var(--papel); font-family: var(--f); font-size: var(--t-texto); line-height: 1.5; font-kerning: normal; font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
::selection { background: var(--senal); color: #fff; }
img, video, svg, canvas, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .17em; transition: text-decoration-color .2s, color .2s; }
a:hover { text-decoration-color: var(--senal); }
:focus-visible { outline: 2px solid var(--senal); outline-offset: 3px; }
[id] { scroll-margin-top: calc(var(--cab) + 20px); }
button { font: inherit; color: inherit; }
strong, b { font-weight: 700; }
.oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.saltar { position: fixed; left: var(--m); top: 10px; z-index: 100; background: var(--tinta); color: var(--papel); padding: 10px 14px; transform: translateY(-160%); text-decoration: none; }
.saltar:focus { transform: none; }

/* ---------- retícula ---------- */
.rej { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); padding-inline: var(--m); align-items: start; }
.rej > * { grid-column: var(--c, 1 / -1); min-width: 0; }
@media (max-width: 1023px) { .rej > * { grid-column: var(--ct, var(--c, 1 / -1)); } }
@media (max-width: 700px) { .rej > * { grid-column: var(--cm, 1 / -1); } }
.sec { margin-top: var(--sec); }
.sec-m { margin-top: calc(var(--sec) * .55); }
.sec-s { margin-top: calc(var(--sec) * .3); }
.fila { row-gap: clamp(28px, 4vw, 56px); }
.pegado { position: sticky; top: calc(var(--cab) + 24px); }
@media (max-width: 700px) { .pegado { position: static; } }

/* ---------- tipos ---------- */
.display { font-size: var(--t-display); line-height: .84; letter-spacing: -.055em; font-weight: 400; margin-left: -.045em; }
.titulo { font-size: var(--t-titulo); line-height: .9; letter-spacing: -.048em; font-weight: 400; margin-left: -.04em; text-wrap: balance; }
.titulo.largo { font-size: clamp(40px, 5.6vw, 104px); line-height: .94; letter-spacing: -.042em; }
.seccion { font-size: var(--t-seccion); line-height: .98; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
.sub { font-size: var(--t-sub); line-height: 1.14; letter-spacing: -.015em; font-weight: 700; text-wrap: balance; }
.lead { font-size: var(--t-lead); line-height: 1.24; letter-spacing: -.012em; text-wrap: pretty; }
.meta { font-family: var(--fc); font-size: var(--t-meta); line-height: 1.3; letter-spacing: .01em; color: var(--gris); }
.meta a { color: inherit; }
.oscuro .meta { color: #a3a5a8; }
.prosa { max-width: 36em; text-wrap: pretty; }
.prosa > * + * { margin-top: .9em; }
.prosa h2, .prosa h3 { font-size: var(--t-sub); line-height: 1.14; letter-spacing: -.015em; font-weight: 700; margin-top: 2em; }
.prosa h2 + *, .prosa h3 + * { margin-top: .6em; }
.prosa blockquote { font-size: var(--t-lead); line-height: 1.25; letter-spacing: -.012em; padding-left: 1em; border-left: 2px solid var(--tinta); }
.prosa ul { list-style: none; }
.prosa ul li { padding-left: 1.1em; position: relative; }
.prosa ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: .42em; height: .42em; border-radius: 50%; background: var(--tinta); }
.prosa .embed, .prosa figure { margin-block: 1.6em; }
.cols-2 { columns: 2 22em; column-gap: var(--g); }
.cols-2 > * { break-inside: avoid; }

/* ---------- regla y fila de lista ---------- */
.regla { border-top: 2px solid var(--tinta); }
.oscuro .regla { border-color: var(--papel); }

/* ---------- cabecera: la línea ---------- */
.cabecera { position: sticky; top: 0; z-index: 50; height: var(--cab); background: var(--papel); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); padding-inline: var(--m); align-items: center; view-transition-name: cabecera; transition: box-shadow .3s; }
.cabecera.plegada { box-shadow: 0 1px 0 var(--calido); }
.marca { grid-column: 1 / 4; justify-self: start; display: block; color: var(--tinta); padding: 8px 0; }
.marca .trio { width: 150px; }

.linea { grid-column: 4 / 11; align-self: stretch; }
.linea-lista { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); height: 100%; }
.linea-lista::before { content: ""; position: absolute; left: 5px; right: calc(100% / 7 - 6px); top: 22px; height: 2px; background: var(--tinta); }
.linea-lista a { position: relative; display: block; height: 100%; padding-top: 34px; font-family: var(--fc); font-size: 15px; line-height: 1.15; letter-spacing: .01em; text-decoration: none; white-space: nowrap; }
.parada { position: absolute; left: 0; top: 17px; width: 12px; height: 12px; border-radius: 50%; background: var(--papel); border: 2px solid var(--tinta); transition: background .25s, box-shadow .35s var(--ease), transform .35s var(--ease); }
.linea-lista a:hover .parada { background: var(--tinta); }
.linea-lista a[aria-current] .parada { background: var(--senal); border-color: var(--senal); box-shadow: 0 0 0 4px rgba(227, 33, 25, .16), 0 0 14px 2px rgba(227, 33, 25, .55); }
.boton.descargar { grid-column: 11 / 13; justify-self: end; gap: .5em; padding: .66em .95em .6em; font-family: var(--fc); font-size: 15px; white-space: nowrap; }
.boton.descargar svg { width: 11px; height: 11px; }
.menu-boton, .linea-extra, .linea-cerrar { display: none; }

@media (max-width: 1099px) {
  .marca .trio { width: 124px; }
  .cabecera { display: flex; gap: 14px; }
  .marca { margin-right: auto; }
  .boton.descargar { padding: .6em .8em .55em; font-size: 14px; }
  .menu-boton { display: block; grid-column: 10 / 13; justify-self: end; background: none; border: 0; padding: 10px 0 10px 16px; font-family: var(--fc); font-size: 16px; cursor: pointer; }
  .menu-boton::before { content: ""; display: inline-block; width: 10px; height: 10px; border: 2px solid currentColor; border-radius: 50%; margin-right: 8px; vertical-align: -1px; }
  .linea { position: fixed; inset: 0; z-index: 60; background: var(--tinta); color: var(--papel); padding: calc(var(--cab) + 12px) var(--m) 28px; overflow-y: auto; display: flex; flex-direction: column; gap: 40px; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .5s var(--ease), visibility 0s linear .5s; }
  .linea.abierta { clip-path: inset(0); visibility: visible; transition: clip-path .5s var(--ease), visibility 0s; }
  .linea-lista { display: block; height: auto; padding-left: 34px; }
  .linea-lista::before { left: 5px; right: auto; top: 18px; bottom: 18px; width: 2px; height: auto; background: var(--papel); }
  .linea-lista a { height: auto; padding: 4px 0; font-family: var(--f); font-size: clamp(32px, 8.4vw, 56px); line-height: 1.1; letter-spacing: -.03em; }
  .linea-lista li + li { margin-top: 6px; }
  .linea .parada { left: -34px; top: calc(50% - 7px); width: 14px; height: 14px; background: var(--tinta); border-color: var(--papel); }
  .linea-lista a:hover .parada { background: var(--papel); }
  .fx .linea .desdoble { --d0: #ff0000; --d1: #00ff00; --d2: #0000ff; --dm: screen; }
  .linea-extra { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: auto; font-family: var(--fc); font-size: 17px; }
  .linea-extra a { text-decoration: none; }
  .linea-cerrar { display: block; position: absolute; top: 0; right: var(--m); height: var(--cab); background: none; border: 0; color: var(--papel); font-family: var(--fc); font-size: 16px; cursor: pointer; }
  .linea .marca-menu { position: absolute; top: 0; left: var(--m); height: var(--cab); display: flex; align-items: center; color: var(--papel); }
  .linea .marca-menu .trio { width: 124px; --t0: #ee0000; --t1: #00ed00; --t2: #0000e9; --tm: screen; }
}
@media (min-width: 1100px) { .marca-menu { display: none; } }

/* ---------- componentes ---------- */
/* botón: bloque negro liso, como «Descargar app» de la cabecera; al pasar solo se desdobla el texto */
.boton { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: .7em; background: var(--tinta); color: var(--papel); border: 0; padding: 1.05em 1.45em 1em; font-family: var(--f); font-size: 17px; line-height: 1; letter-spacing: -.005em; text-decoration: none; cursor: pointer; }
.boton svg { width: 15px; height: 15px; flex: none; }
.boton.claro { background: var(--papel); color: var(--tinta); }
.botones { display: flex; flex-wrap: wrap; gap: 12px; }

/* enlace de acción: texto con flecha que se desplaza */
.ir { display: inline-flex; align-items: baseline; gap: .45em; font-size: var(--t-texto); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: .2em; }
.ir svg { width: .7em; height: .7em; transition: transform .35s var(--ease); }
.ir:hover svg { transform: translate(2px, -2px); }
.ir:hover { border-color: var(--senal); }

/* trío: logo e iconos en tres capas, magenta (la base), cian y amarillo, que se multiplican como en los
   títulos desdoblados; alineadas dan negro exacto (sobre negro: rojo, verde y azul en trama que suman
   el papel). Al pasar se separan --o px con la misma diagonal que los títulos. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.trio { display: inline-grid; vertical-align: top; --t0: #ff00ff; --t1: #00ffff; --t2: #ffff00; --tm: multiply; --o: 3px; }
.trio > svg { grid-area: 1 / 1; width: 100%; height: auto; color: var(--t0); }
.trio > svg + svg { color: var(--t1); mix-blend-mode: var(--tm); transition: transform .3s var(--ease); }
.trio > svg + svg + svg { color: var(--t2); }
:is(.indice, .sintoma) .trio > svg { height: 100%; }
.oscuro .trio { --t0: #ee0000; --t1: #00ed00; --t2: #0000e9; --tm: screen; }
:is(a, .sintoma):is(:hover, :focus-visible) .trio > :nth-child(2) { transform: translate3d(calc(var(--o) * -1), calc(var(--o) * .14), 0); }
:is(a, .sintoma):is(:hover, :focus-visible) .trio > :nth-child(3) { transform: translate3d(var(--o), calc(var(--o) * -.1), 0); }

/* figura e ilustración: al pasar, el mismo desdoble en tintas que el trío (filtro #lapso del sprite) */
a:hover .aberrado, .figura:hover .aberrado { filter: url(#lapso); }
.figura { display: grid; place-items: center; background: var(--niebla); aspect-ratio: 1; padding: 12%; }
.figura img { width: 100%; max-height: 100%; object-fit: contain; }
.pie-foto { margin-top: 10px; }

/* lente: el lienzo WebGL se superpone a la imagen o vídeo original */
.lente { position: relative; overflow: hidden; background: var(--niebla); }
.lente > img, .lente > video { width: 100%; height: 100%; object-fit: cover; }
.lente > canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .7s var(--ease); pointer-events: none; }
.lente.gl > canvas { opacity: 1; }
.lente[data-fit="contain"] > img { object-fit: contain; background: #fff; }
.plancha { aspect-ratio: 2 / 1; max-height: 86vh; width: 100%; }
@media (max-width: 700px) { .plancha { aspect-ratio: 4 / 3; } }

/* reproducir (YouTube bajo demanda) */
.reproducir { position: absolute; left: var(--g); bottom: var(--g); z-index: 2; }
.lente > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.embed { position: relative; aspect-ratio: 16 / 9; background: #111; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* portada del vídeo hasta pulsar «Ver el vídeo» */
.embed > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.embed > iframe { z-index: 3; }

/* cabecera de página */
.portada { padding-top: clamp(40px, 7vw, 112px); row-gap: clamp(20px, 2.6vw, 36px); }
.portada .meta { padding-top: .2em; }
.portada .lead { max-width: 30em; }
.portada + .plancha-wrap { margin-top: clamp(40px, 5vw, 80px); }
.plancha-wrap { padding-inline: var(--m); }

/* filas con regla: preguntas, síntomas, comunicados */
.filas > * { border-top: 2px solid var(--tinta); }
.filas > :last-child { border-bottom: 2px solid var(--tinta); }
.oscuro .filas > * { border-color: #3a3b3d; }

/* acordeón de preguntas: la parada se enciende al abrir */
.preguntas details { border-top: 2px solid var(--tinta); }
.preguntas details:last-child { border-bottom: 2px solid var(--tinta); }
.preguntas summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 22px 1fr 28px; gap: 14px; align-items: start; padding: 22px 0 24px; font-size: var(--t-sub); line-height: 1.16; letter-spacing: -.018em; }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary .parada { position: relative; left: auto; top: .32em; }
.preguntas summary:hover .parada { background: var(--tinta); }
.preguntas details[open] summary .parada { background: var(--senal); border-color: var(--senal); box-shadow: 0 0 0 4px rgba(227, 33, 25, .16), 0 0 14px 2px rgba(227, 33, 25, .55); }
.preguntas .mas { width: 22px; height: 22px; margin-top: .14em; justify-self: end; transition: transform .45s var(--ease); }
.preguntas details[open] .mas { transform: rotate(45deg); }
.preguntas .resp { padding: 0 0 30px 36px; }
@media (max-width: 700px) { .preguntas summary { grid-template-columns: 16px 1fr 22px; gap: 10px; } .preguntas .resp { padding-left: 26px; } }

/* bloque oscuro (corte brusco) */
.oscuro { background: var(--tinta); color: var(--papel); }
.oscuro a:hover { text-decoration-color: var(--senal); }
.bloque { padding-block: clamp(72px, 9vw, 150px); }
.bloque-gris { background: var(--niebla); }

/* ---------- portada (home) ---------- */
.hero { position: relative; width: 100%; height: min(calc(100svh - var(--cab)), 56.25vw); min-height: 380px; background: #1a1a1a; }
.hero-pausa { position: absolute; right: var(--m); bottom: var(--m); z-index: 2; background: rgba(0, 0, 0, .55); color: #fff; border: 0; padding: 9px 13px 8px; font-family: var(--fc); font-size: 14px; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-pausa:hover { background: #000; }
@media (max-width: 1023px) { .hero { height: auto; aspect-ratio: 4 / 3; min-height: 0; } }
@media (max-width: 600px) { .hero { aspect-ratio: 1; } }

.ficha { margin-top: var(--g); }
.ficha > div { border-top: 2px solid var(--tinta); padding-top: 12px; }
.ficha dd { font-size: clamp(17px, 1.35vw, 21px); line-height: 1.25; letter-spacing: -.01em; margin-top: 4px; }
@media (max-width: 1023px) { .ficha { row-gap: 22px; } }

.definicion .cabeza { display: block; width: min(72%, 340px); margin: clamp(40px, 5vw, 80px) auto 0; }
.cabeza-trio { display: grid; width: 100%; }
/* la cabeza se desdobla como un título (el JS le da --s: velocidad de scroll, lapsos y al pasar) */
.fx .cabeza-trio > :nth-child(2), .fx a:is(:hover, :focus-visible) .cabeza-trio > :nth-child(2) { transform: translate3d(calc(var(--s, 0) * -1px), calc(var(--s, 0) * .14px), 0); filter: blur(calc(var(--s, 0) * .035px)); transition: none; }
.fx .cabeza-trio > :nth-child(3), .fx a:is(:hover, :focus-visible) .cabeza-trio > :nth-child(3) { transform: translate3d(calc(var(--s, 0) * 1px), calc(var(--s, 0) * -.1px), 0); filter: blur(calc(var(--s, 0) * .05px)); transition: none; }
/* en una columna la cabeza va antes del título */
@media (max-width: 1023px) {
  .definicion > div:first-child { display: flex; flex-direction: column; }
  .definicion .cabeza { order: -1; width: min(56%, 280px); margin: 0 auto clamp(28px, 6vw, 44px); }
}

/* episodio: dos líneas de síntomas que se desplazan con el scroll */
.episodio { overflow: hidden; padding-block: clamp(8px, 1.4vw, 24px); }
.episodio-linea { display: flex; align-items: center; gap: .32em; width: max-content; font-size: var(--t-titulo); line-height: 1.02; letter-spacing: -.045em; white-space: nowrap; will-change: transform; }
.episodio-linea + .episodio-linea { margin-top: .04em; }
.episodio-linea .trio { width: .62em; flex: none; }
.episodio-linea.inversa { margin-left: -30vw; }

/* índice de síntomas en bloque negro */
.indice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--g); }
.indice a { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center; padding: 18px 0; border-top: 1px solid #3a3b3d; text-decoration: none; font-size: clamp(18px, 1.5vw, 23px); line-height: 1.15; letter-spacing: -.012em; }
.indice .trio { width: 40px; height: 40px; }
@media (max-width: 1023px) { .indice { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .indice { grid-template-columns: 1fr; } }

/* muro de medios */
.muro { font-size: var(--t-lead); line-height: 1.32; letter-spacing: -.014em; }
.muro .m { white-space: nowrap; }
.muro a { text-decoration: none; }
.muro a:hover { color: var(--senal); }
.muro small { font-family: var(--fc); font-size: .55em; letter-spacing: .01em; color: var(--gris); vertical-align: .35em; margin-left: .2em; }
.muro .sep { color: var(--calido); margin: 0 .28em; }
.oscuro .muro .sep { color: #55575a; }
.muro .sin-enlace { color: var(--gris); }
.oscuro .muro .sin-enlace { color: #8d8f92; }
.nota-muro { margin-top: 12px; max-width: 30ch; }

/* pasos (secuencia real: primero F-Droid, después la app) */
.pasos li { border-top: 2px solid var(--tinta); }
.pasos li:last-child { border-bottom: 2px solid var(--tinta); }
.pasos a { display: grid; grid-template-columns: clamp(32px, 4vw, 64px) 1fr auto; gap: 12px; align-items: baseline; padding: clamp(14px, 1.6vw, 22px) 0; text-decoration: none; font-size: clamp(24px, 2.6vw, 42px); line-height: 1.05; letter-spacing: -.03em; }
.pasos .n { font-family: var(--fc); font-size: .5em; color: var(--gris); letter-spacing: 0; }
.pasos svg { width: .6em; height: .6em; transition: transform .35s var(--ease); }
.pasos a:hover svg { transform: translateY(3px); }
.pasos a:hover { color: var(--senal); }

/* app: el mapa con alertas, centrado en vertical frente al texto */
.app-mapa { display: block; align-self: center; }
.app-mapa img { width: 100%; height: auto; }
@media (max-width: 1023px) { .app-mapa { width: min(100%, 640px); margin-bottom: 8px; } }

/* comunicados */
.entrada { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); padding: clamp(18px, 2vw, 28px) 0; text-decoration: none; align-items: start; }
.entrada .meta { grid-column: 1 / 3; padding-top: .35em; }
.entrada .texto { grid-column: 3 / 9; }
.entrada :is(h2, h3) { font-size: clamp(24px, 2.5vw, 40px); line-height: 1.04; letter-spacing: -.03em; font-weight: 400; text-wrap: balance; }
.entrada p { margin-top: .7em; color: var(--gris); max-width: 34em; }
.entrada .lente { grid-column: 10 / 13; aspect-ratio: 4 / 3; }
.entrada:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; text-decoration-color: var(--senal); }
@media (max-width: 700px) {
  .entrada { grid-template-columns: 1fr; row-gap: 12px; }
  .entrada .meta, .entrada .texto, .entrada .lente { grid-column: 1; }
  .entrada .lente { order: -1; }
}

/* síntomas (página) */
.sintoma { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); padding: clamp(26px, 3vw, 44px) 0; }
.sintoma .ico { grid-column: 1 / 3; }
.sintoma .ico .trio { width: clamp(52px, 5.4vw, 84px); aspect-ratio: 1; }
.sintoma h2 { grid-column: 3 / 7; font-size: clamp(26px, 2.8vw, 46px); line-height: 1.02; letter-spacing: -.032em; font-weight: 400; text-wrap: balance; }
.sintoma .desc { grid-column: 7 / 13; max-width: 34em; }
@media (max-width: 1023px) { .sintoma h2 { grid-column: 3 / 13; } .sintoma .desc { grid-column: 3 / 13; margin-top: 14px; } }
@media (max-width: 600px) { .sintoma .ico { grid-column: 1 / -1; margin-bottom: 14px; } .sintoma h2, .sintoma .desc { grid-column: 1 / -1; } }

/* capturas de la app */
.capturas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); }
.capturas img { display: block; height: clamp(340px, 30vw, 460px); width: auto; max-width: 100%; object-fit: contain; object-position: center bottom; margin: 0 auto 22px; filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .18)); }
.capturas h3 { margin-bottom: .4em; }
@media (max-width: 700px) { .capturas { grid-template-columns: 1fr; row-gap: 48px; } }

/* cifra con etiqueta (datos de asesoramiento legal) */
.cifra { border-top: 2px solid var(--tinta); padding-top: 12px; }
.cifra + .cifra { margin-top: 28px; }
.cifra strong { display: block; font-weight: 400; font-size: clamp(48px, 5.4vw, 92px); line-height: .9; letter-spacing: -.05em; margin-bottom: 10px; }

/* navegación entre comunicados */
.siguientes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--g); }
.siguientes a { display: block; border-top: 2px solid var(--tinta); padding-top: 14px; text-decoration: none; }
.siguientes .sub { display: block; margin-top: 6px; font-weight: 400; font-size: clamp(22px, 2.2vw, 34px); letter-spacing: -.028em; }
.siguientes a:hover .sub { color: var(--senal); }
.siguientes .despues { grid-column: 2; text-align: right; }
@media (max-width: 700px) { .siguientes { grid-template-columns: 1fr; } .siguientes .despues { grid-column: 1; text-align: left; } }

/* formulario */
.form { display: grid; gap: 30px; }
.form .dos { display: grid; grid-template-columns: 1fr 1fr; gap: 30px var(--g); }
@media (max-width: 600px) { .form .dos { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 6px; font-family: var(--fc); font-size: var(--t-meta); color: var(--gris); }
.form input, .form textarea { font: inherit; font-family: var(--f); font-size: var(--t-lead); letter-spacing: -.012em; color: var(--tinta); background: transparent; border: 0; border-bottom: 2px solid var(--tinta); border-radius: 0; padding: 6px 0 10px; outline: none; transition: border-color .2s, box-shadow .3s; }
.form textarea { min-height: 7.5em; resize: vertical; line-height: 1.3; }
.form input:focus, .form textarea:focus { border-color: var(--senal); box-shadow: 0 8px 14px -12px rgba(227, 33, 25, .8); }
.miel { position: absolute; left: -9999px; }
.aviso { border-top: 2px solid var(--tinta); padding-top: 12px; margin-bottom: 28px; font-size: var(--t-lead); }
.aviso.error { border-color: var(--senal); color: var(--senal); }

/* donaciones */
.metodos { row-gap: 48px; }
.metodos > section { border-top: 2px solid var(--tinta); padding-top: 14px; }
.metodos .sub { margin-bottom: 1em; }
.iban { font-family: var(--fc); font-size: clamp(22px, 2.2vw, 32px); letter-spacing: .02em; font-variant-numeric: tabular-nums; }

/* nombres de cofinanciadoras */
.nombres { columns: 3 16em; column-gap: var(--g); font-size: 15px; line-height: 1.55; color: var(--gris); }
.nombres p + p { margin-top: 1em; }

/* filas de pregunta y respuesta */
.qa { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); padding: clamp(22px, 2.4vw, 34px) 0 clamp(30px, 3.2vw, 48px); }
.qa > h2, .qa > h3 { grid-column: 1 / 6; font-size: clamp(24px, 2.4vw, 38px); line-height: 1.06; letter-spacing: -.028em; font-weight: 400; text-wrap: balance; }
.qa > div { grid-column: 7 / 13; }
@media (max-width: 700px) { .qa > h2, .qa > h3, .qa > div { grid-column: 1 / -1; } .qa > div { margin-top: 14px; } }

/* variantes de pasos */
.pasos.compactos a { font-size: clamp(21px, 1.8vw, 28px); }
.pasos.sin-n a { grid-template-columns: 1fr auto; }
.pasos.sin-n a:hover svg { transform: translate(2px, -2px); }
/* otras formas de usar la app, sin número, pegadas a los pasos: misma fila, flecha de enlace externo */
.pasos + .pasos li:first-child { border-top: 0; }
.pasos.otras a:hover svg { transform: translate(2px, -2px); }
.oscuro .pasos li { border-color: var(--papel); }

/* figura apaisada (mockups, niveles) */
.figura.ancha { aspect-ratio: auto; padding: 7%; }
/* spot de la app (página App): como el vídeo de la home, solo, sin sonido, en bucle, con lente y pausa */
.video-app { aspect-ratio: 16 / 9; background: #1a1a1a; align-self: center; }
.video-app .hero-pausa { right: 12px; bottom: 12px; }

/* metadatos en línea: fecha y categoría */
.meta.par { display: flex; flex-wrap: wrap; gap: .3em 1.8em; }

/* utilidades de composición */
@media (max-width: 700px) { .sin-movil { display: none !important; } .a-izq-movil { justify-self: start !important; } }
.botones { column-gap: 22px; }

/* ---------- pie ---------- */
.pie { margin-top: var(--sec); padding-top: clamp(56px, 7vw, 110px); overflow: hidden; }
/* si la página acaba en un bloque de color, el pie va pegado (sin franja de papel entre ambos) */
main:has(> .bloque:last-child) + .pie { margin-top: 0; }
.pie-cols { row-gap: 36px; font-size: 16px; line-height: 1.45; }
.pie-cols h2 { font-family: var(--fc); font-weight: 400; font-size: var(--t-meta); color: #a3a5a8; margin-bottom: 12px; }
/* enlaces del pie: diana táctil de 27 px (WCAG 2.2, 2.5.8) con el mismo ritmo de antes */
.pie-cols a { display: inline-block; padding-block: 2px; }
.pie-cols a { text-decoration: none; }
.pie-cols a:hover { text-decoration: underline; text-decoration-color: var(--senal); }
.pie-cols .lead { max-width: 18em; }
/* redes: logo de la red (trío, se desdobla al pasar como el logo) + cuenta; filas a la altura de las otras columnas */
.redes a { display: flex; width: fit-content; align-items: center; gap: 12px; padding-block: 2px; }
.redes .trio { width: 20px; height: 20px; flex: none; --o: 2.5px; }
.redes .trio > svg { height: 100%; }
.redes a:hover { text-decoration: none; }
.redes a:hover span { text-decoration: underline; text-decoration-color: var(--senal); }
.pie-logo { display: block; color: var(--papel); padding: clamp(56px, 8vw, 120px) var(--m) clamp(18px, 2.4vw, 36px); }
.pie-logo .trio { display: grid; width: 100%; --o: 8px; }
.pie-legal { padding-bottom: 22px; }
.pie-legal a[href="#principal"] { display: inline-block; padding-block: 4px; }

/* ---------- capa de lapsos (solo con JS: html.fx) ---------- */
/* texto desdoblado: magenta + cian + amarillo en multiplicar = negro; al separarse aparece la aberración */
.fx .split { position: relative; color: #ff00ff; }
.fx .split::before, .fx .split::after { content: attr(data-t); content: attr(data-t) / ""; position: absolute; inset: 0; white-space: pre-line; pointer-events: none; mix-blend-mode: multiply; }
.fx .split::before { color: #00ffff; transform: translate3d(calc(var(--s, 0) * -1px), calc(var(--s, 0) * .14px), 0); filter: blur(calc(var(--s, 0) * .035px)); }
.fx .split::after { color: #ffff00; transform: translate3d(calc(var(--s, 0) * 1px), calc(var(--s, 0) * -.1px), 0); filter: blur(calc(var(--s, 0) * .05px)); }
.fx .oscuro .split { color: #ff0000; }
.fx .oscuro .split::before { color: #00ff00; mix-blend-mode: screen; }
.fx .oscuro .split::after { color: #0000ff; mix-blend-mode: screen; }
.fx .episodio-linea .split::before, .fx .episodio-linea .split::after { white-space: nowrap; }
.fx .episodio-linea .trio > :nth-child(2) { transform: translate3d(calc(var(--sv, 0) * -1px), calc(var(--sv, 0) * .14px), 0); }
.fx .episodio-linea .trio > :nth-child(3) { transform: translate3d(calc(var(--sv, 0) * 1px), calc(var(--sv, 0) * -.1px), 0); }

/* desdoble del texto pequeño (menú, índice, botones): el mismo lapso que los títulos (CMY que se separan con un
   leve desenfoque, parpadean y se recomponen), pero más amplio en proporción: a 15-22 px el trazo mide ~1,5 px y
   un borde fijo ensucia. Al pasar el puntero, --h salta a 8 px y decae a 0 en 0,8 s; luego la palabra queda limpia. */
@property --h { syntax: '<number>'; inherits: true; initial-value: 0; }
.fx .desdoble { position: relative; display: inline-block; --d0: #ff00ff; --d1: #00ffff; --d2: #ffff00; --dm: multiply; }
.fx .desdoble::before, .fx .desdoble::after { content: attr(data-t); content: attr(data-t) / ""; position: absolute; inset: 0; white-space: inherit; pointer-events: none; visibility: hidden; mix-blend-mode: var(--dm); }
.fx .desdoble::before { color: var(--d1); transform: translate3d(calc(var(--h) * -1px), calc(var(--h) * .14px), 0); filter: blur(calc(var(--h) * .035px)); }
.fx .desdoble::after { color: var(--d2); transform: translate3d(calc(var(--h) * 1px), calc(var(--h) * -.1px), 0); filter: blur(calc(var(--h) * .05px)); }
.fx :is(.oscuro, .boton) .desdoble { --d0: #ff0000; --d1: #00ff00; --d2: #0000ff; --dm: screen; }
.fx .boton.claro .desdoble { --d0: #ff00ff; --d1: #00ffff; --d2: #ffff00; --dm: multiply; }
.fx :is(a, button):is(:hover, :focus-visible) .desdoble { animation: desdoble .8s linear; }
.fx :is(a, button):is(:hover, :focus-visible) .desdoble::before,
.fx :is(a, button):is(:hover, :focus-visible) .desdoble::after { animation: desdoble-ver .8s step-end; }
@keyframes desdoble-ver { from, to { visibility: visible; } }
@keyframes desdoble {
  0% { color: var(--d0); --h: 8; }
  5.7% { --h: 6.5; } 5.8% { --h: -4.6; }
  11.6% { --h: -3.7; } 11.7% { --h: 5.3; }
  17.3% { --h: 4.3; } 17.4% { --h: -3; }
  23.2% { --h: -2.4; } 23.3% { --h: 3.5; }
  33% { --h: 2.4; }
  44% { --h: 1.6; }
  56% { --h: 1.05; }
  67% { --h: .7; }
  83% { --h: .35; }
  100% { color: var(--d0); --h: 0; }
}

/* borde prismático en los bloques oscuros: se enciende con la velocidad */
.fx .oscuro[data-vel] { position: relative; }
.fx .oscuro[data-vel]::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, #ff2a5f, #ffb21c, #e8ff3d, #2bffc6, #00c2ff, #7a5cff, #ff2a5f); opacity: calc(.15 + var(--v, 0) * .85); box-shadow: 0 0 calc(6px + var(--v, 0) * 26px) rgba(120, 200, 255, .6); pointer-events: none; }

/* transición entre páginas: desenfoque prismático */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: salir .34s var(--ease) both; }
::view-transition-new(root) { animation: entrar .62s var(--ease) both; }
@keyframes salir { to { opacity: 0; filter: blur(16px) saturate(2.6) hue-rotate(60deg) contrast(1.1); transform: scale(1.025); } }
@keyframes entrar { from { opacity: 0; filter: blur(12px) saturate(2) hue-rotate(-40deg); transform: scale(.99); } }

/* ---------- red de seguridad del desdoble ----------
   El título se pinta en magenta y las capas cian y amarilla lo multiplican hasta negro. Si el navegador
   no mezcla capas o el sistema impone sus colores (alto contraste), se quitan las capas y vuelve el color normal. */
@supports not (mix-blend-mode: multiply) {
  .fx .split, .fx .desdoble { color: inherit !important; }
  .fx .split::before, .fx .split::after, .fx .desdoble::before, .fx .desdoble::after, .trio > svg + svg { display: none; }
  .trio > svg { color: currentColor !important; }
}
@media (forced-colors: active) {
  .fx .split::before, .fx .split::after, .fx .desdoble::before, .fx .desdoble::after, .trio > svg + svg { display: none; }
  .trio > svg { color: CanvasText; }
}

/* ---------- movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .episodio-linea { transform: none !important; }
  .episodio-linea.inversa { margin-left: 0; }
}
