/* corrupto · barrelecciones v4
   Misma familia que la lona v28, el díptico y los buses v15: negro con grano, rojo con manchas,
   Anton blanca, bandas rasgadas, fichas con marco roto y la tubería oxidada de la lona. */

@font-face { font-family: "Anton"; src: url("../fonts/anton-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Oswald"; src: url("../fonts/oswald.woff2") format("woff2"); font-weight: 200 700; font-display: swap; }
/* El rótulo P.S.O.E. va en Comic Sans; en móviles sin Comic Sans se usa Comic Neue, su versión libre */
@font-face { font-family: "Comic Neue"; src: url("../fonts/comic-neue-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #0e0d0d;
  --ink-2: #1a1818;
  --red: #d7141d;
  --red-hot: #ff2a2a;
  --paper: #f4f2ee;
  --grey: #b8b4ae;
  --display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --cond: "Oswald", "Arial Narrow", Arial, sans-serif;
  --comic: "Comic Sans MS", "Comic Sans", "Comic Neue", "Chalkboard SE", cursive;
  --torn: polygon(0.0% 3.0%, 4.3% 4.0%, 7.7% 0.5%, 11.6% 0.5%, 14.0% 0.0%, 18.2% 1.5%, 19.5% 4.0%, 22.1% 1.5%, 23.6% 4.0%, 25.0% 0.5%, 29.3% 0.0%, 32.4% 4.0%, 33.8% 1.5%, 35.1% 1.0%, 37.3% 1.0%, 40.3% 2.0%, 43.3% 1.0%, 44.9% 1.5%, 47.3% 0.5%, 50.4% 1.5%, 53.2% 4.0%, 57.0% 6.0%, 60.1% 6.0%, 62.5% 1.5%, 66.3% 1.5%, 67.8% 2.0%, 70.7% 3.0%, 74.3% 2.0%, 77.5% 0.5%, 79.1% 4.0%, 80.9% 3.0%, 82.6% 6.0%, 85.2% 0.5%, 88.9% 3.0%, 91.2% 3.0%, 94.4% 6.0%, 95.8% 0.5%, 100.0% 1.4%, 100.0% 99.5%, 98.6% 97.0%, 95.3% 93.0%, 93.1% 95.0%, 89.0% 96.0%, 87.7% 93.0%, 85.4% 99.5%, 82.5% 98.0%, 78.8% 99.0%, 75.1% 95.0%, 72.7% 93.0%, 71.2% 93.0%, 68.7% 97.0%, 64.6% 95.0%, 60.5% 97.0%, 57.0% 96.0%, 53.5% 95.0%, 49.2% 99.0%, 47.7% 99.0%, 45.7% 98.0%, 44.5% 99.0%, 42.4% 100.0%, 40.7% 96.0%, 37.5% 96.0%, 33.2% 100.0%, 30.5% 95.0%, 28.0% 95.0%, 26.4% 95.0%, 25.0% 99.5%, 20.6% 93.0%, 18.8% 96.0%, 15.6% 99.5%, 14.4% 99.0%, 11.5% 96.0%, 8.2% 99.5%, 4.2% 95.0%, 2.5% 97.0%, 0.0% 98.2%);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --pipe: 40px;        /* grosor de la bajante */
  --sticky-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--cond); font-size: 1.15rem; line-height: 1.45; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .98; letter-spacing: .005em; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.fontaneria .btn--donate, .calle .btn--donate { background: var(--ink); }
.fontaneria .btn--donate:hover, .calle .btn--donate:hover { background: #000; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: #fff; color: #000; padding: .5rem 1rem; }
.skip:focus { left: 0; }

/* Bandas rasgadas, como "CORRUPTO" y "MATA" en las piezas */
.band { display: inline-block; padding: .2em .3em .06em; line-height: 1.12; clip-path: var(--torn); }
.band--red { background: var(--red); color: #fff; }
.band--black { background: var(--ink); color: #fff; }

/* Texto de casos al fondo, como en los laterales de los buses */
.words { position: absolute; inset: 0; margin: 0; overflow: hidden; pointer-events: none; user-select: none;
  font-family: var(--display); text-transform: uppercase; font-size: clamp(1.6rem, 3.2vw, 2.7rem); line-height: 1.12;
  color: rgba(255, 255, 255, .045); word-spacing: .15em; text-align: justify; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none;
  font-family: var(--display); text-transform: uppercase; letter-spacing: .01em; line-height: 1.05; cursor: pointer; border: 0;
  min-height: 48px; transition: transform .15s cubic-bezier(.2, .8, .2, 1), background-color .15s; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--donate { background: var(--red); color: #fff; padding: .8em 1.4em .7em; font-size: clamp(1.1rem, 2.2vw, 1.45rem); }
.btn--donate:hover { background: var(--red-hot); transform: translateY(-2px); }
.btn--center { display: flex; width: fit-content; margin: 0 auto; }
.fuente { font-family: var(--cond); font-size: .88rem; letter-spacing: .02em; color: #d9d4cc; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.fuente::before { content: "Fuente: "; opacity: .7; }

/* ---------- Ceniza ---------- */
.ash { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
/* La ceniza flota sobre los fondos pero por debajo del contenido */
.hero__text, .hero__sanchez, .red, .psoe, .btn--center, .mata__top, .sucesos, .calle > *, .cierre > *, .footer { position: relative; z-index: 2; }
.hero__sanchez { z-index: 2; }

/* ---------- HERO ---------- */
.hero { position: relative; overflow: clip; min-height: 100svh; display: grid; align-items: end;
  background: var(--grain), radial-gradient(120% 80% at 75% 30%, #2a2626 0%, var(--ink) 60%); }
.hero__text { position: relative; z-index: 2; padding: 2rem 1.2rem 2.4rem; display: grid; gap: 1.1rem; justify-items: start; }
.hero__title { font-size: clamp(2.9rem, 12vw, 6.4rem); }
.hero__l1 { display: block; }
.hero__l2 { margin-top: .1em; font-size: .7em; white-space: nowrap; }
.hero__sub { margin: 0; max-width: 32ch; font-size: clamp(1.15rem, 3.9vw, 1.45rem); color: #e8e4de; }
.hero__sub strong { display: block; margin-top: .35em; font-family: var(--display); font-weight: 400; text-transform: uppercase; color: #fff; font-size: 1.25em; }
.hero__sanchez { position: absolute; right: -16%; top: 0; width: min(110vw, 600px); z-index: 1;
  -webkit-mask-image: linear-gradient(180deg, #000 52%, transparent 86%); mask-image: linear-gradient(180deg, #000 52%, transparent 86%); }

@media (max-width: 899px) {
  .hero { align-items: start; min-height: 0; }
  /* Sánchez centrado en móvil */
  .hero__sanchez { right: auto; left: 50%; translate: -50% 0; }
  .hero__text { padding-top: min(92vw, 500px); background: linear-gradient(180deg, transparent 0, rgba(14, 13, 13, .7) min(70vw, 380px), var(--ink) min(100vw, 540px)); }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; padding: 0 0 0 clamp(2rem, 5vw, 5rem); }
  .hero__text { padding: 4rem 0; }
  /* Sánchez a sangre por abajo y por la derecha, fundido por la izquierda: sin cortes duros */
  .hero__sanchez { position: absolute; right: 0; top: auto; bottom: 0; width: auto; height: min(96svh, 980px); max-width: 58vw; object-fit: contain; object-position: right bottom;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26%), linear-gradient(180deg, #000 78%, transparent 100%);
    -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 26%), linear-gradient(180deg, #000 78%, transparent 100%); mask-composite: intersect; }
}

/* ---------- ACTO I · Fontanería ---------- */
.fontaneria { position: relative; overflow: clip; padding: 0 1rem 4rem;
  background: url("../img/fondo-rojo.jpg") 0 0 / 700px auto repeat, var(--red); }
.tubo-h { display: block; height: var(--pipe); background: url("../img/pipe-h.webp") 0 0 / auto 100% repeat-x;
  filter: drop-shadow(0 6px 5px rgba(60, 0, 0, .45)); }

/* Entrada: tubo horizontal que viene de fuera del navegador y baja por un codo */
.entrada { position: relative; z-index: 3; height: 150px; margin: 0 -1rem; }
.entrada__tubo { position: absolute; left: calc(50% - var(--pipe) / 2 + 88px); right: 0; top: 30px; }
/* Codo a 94 px: su brazo vertical mide lo mismo que la bajante (40 px) y arranca en su mismo borde izquierdo */
.entrada__codo { position: absolute; left: calc(50% - var(--pipe) / 2); top: 23px; width: 94px; height: auto; filter: drop-shadow(0 6px 5px rgba(60, 0, 0, .45)); }

.fontaneria__title { position: relative; z-index: 3; text-align: center; font-size: clamp(2rem, 6vw, 3.6rem); margin: -1.5rem 0 2.6rem; }

.red { position: relative; max-width: 1180px; margin: 0 auto; }
.bajante { position: absolute; top: -10.5rem; bottom: 132px; left: 50%; width: var(--pipe); transform: translateX(-50%); z-index: 1; }
.bajante__tubo, .bajante__lleno { position: absolute; inset: 0; background: url("../img/pipe-v.webp") 0 0 / 100% auto repeat-y;
  filter: drop-shadow(6px 0 6px rgba(60, 0, 0, .45)); }
/* La bajante se tiñe de rojo según se baja: el óxido se ve debajo (multiplicar) y encima brilla el líquido */
.bajante { --p: 0; }
.bajante__lleno { filter: none; background: linear-gradient(90deg, #6a0000, #ff2a1c 42%, #ff5a42 50%, #ff2a1c 58%, #6a0000);
  mix-blend-mode: multiply; clip-path: inset(0 0 calc((1 - var(--p)) * 100%) 0); }
.bajante__brillo { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(180deg, transparent 0 40%, rgba(255, 120, 90, .55) 50%, transparent 60% 100%) 0 0 / 100% 220px repeat-y,
              linear-gradient(90deg, transparent 30%, rgba(255, 160, 130, .35) 48% 52%, transparent 70%);
  box-shadow: 0 0 22px 4px rgba(255, 30, 20, .45);
  clip-path: inset(0 -40px calc((1 - var(--p)) * 100%) -40px); }
@media (prefers-reduced-motion: no-preference) {
  .bajante__brillo { animation: fluye 1.6s linear infinite; }
}
@keyframes fluye { to { background-position: 0 220px, 0 0; } }
/* Banda más oscura detrás de la bajante para que el brillo destaque sobre el rojo */
.red::before { content: ""; position: absolute; top: -10rem; bottom: 0; left: 50%; width: 360px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(40, 0, 0, .38) 40% 60%, transparent); pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 220px); mask-image: linear-gradient(180deg, transparent, #000 220px); }
@media (max-width: 899px) { .red::before { left: 42px; width: 160px; } }

.fichas { list-style: none; margin: 0; padding: 0; position: relative; z-index: 2; display: grid; gap: 3.2rem 0; }
.ficha { position: relative; display: grid; grid-template-columns: 132px 1fr; gap: 1rem; align-items: start; padding-left: calc(var(--pipe) + 26px); }
.ficha__img { width: 132px; transform: rotate(var(--tilt, -1.2deg)); filter: drop-shadow(0 10px 14px rgba(40, 0, 0, .45)); }
.ficha:nth-child(even) .ficha__img { --tilt: 1.4deg; }
.ficha__txt { position: relative; z-index: 5; background: var(--ink); padding: .9rem 1.1rem 1rem; clip-path: polygon(0 2%, 100% 0, 99% 100%, 1% 98%); }
.ficha__txt p { margin: 0 0 .55rem; font-size: 1.2rem; line-height: 1.4; }
/* Ramal de la bajante a cada ficha: T sobre la bajante, tubo recto y brida al entrar en la foto */
.rama { position: absolute; top: 58px; height: 26px; background: url("../img/pipe-h.webp") 0 0 / auto 100% repeat-x;
  filter: drop-shadow(0 4px 4px rgba(60, 0, 0, .4)); z-index: -1; transition: filter .6s; }
.rama::after { content: ""; position: absolute; top: -9px; width: 30px; height: 44px; background: url("../img/pipe-clamp.webp") center / 100% 100%; }
.rama__t { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; background: url("../img/pipe-cross.webp") center / 100% 100%; }
/* El rojo llega desde fuera del navegador: el tubo de entrada ya viene teñido. El colector se tiñe cuando la bajante se llena */
.entrada__tubo, .entrada__codo, .colector.is-lit .colector__tubo, .colector.is-lit .colector__cruz { filter: drop-shadow(0 6px 5px rgba(60, 0, 0, .45)) sepia(.7) saturate(3.2) hue-rotate(-32deg) brightness(.72) contrast(1.1); }
.colector__tubo, .colector__cruz { transition: filter .8s; }
/* Cuando el rojo de la bajante llega a un ramal, el ramal también se tiñe */
.rama.is-lit { filter: drop-shadow(0 4px 4px rgba(60, 0, 0, .4)) sepia(.7) saturate(3.2) hue-rotate(-32deg) brightness(.72) contrast(1.1); }

/* Móvil: la bajante pegada a la izquierda y las fichas a su derecha */
@media (max-width: 899px) {
  .fontaneria { padding-left: .8rem; padding-right: .8rem; }
  .entrada { margin: 0 -.8rem; }
  .entrada__tubo { left: calc(.8rem + 22px + 88px); }
  .entrada__codo { left: calc(.8rem + 22px); }
  .bajante { left: 22px; transform: none; top: calc(-9rem + 28px); }
  .entrada { height: 120px; }
  .rama { left: calc(22px + var(--pipe) / 2); width: 64px; }
  .rama::after { left: 19px; }
  .rama__t { left: -26px; }
  .ficha { padding-left: calc(22px + var(--pipe) + 14px); grid-template-columns: 1fr; gap: 0; }
  .ficha__img { width: 168px; }
  .ficha__txt { margin-top: -14px; }
  .ficha__txt p { font-size: 1.15rem; }
  .fontaneria__title { text-align: left; padding-left: 70px; margin-top: -2.2rem; }
}

/* Escritorio: como en la lona, dos columnas colgadas de la bajante central */
@media (min-width: 900px) {
  .fichas { grid-template-columns: 1fr 1fr; column-gap: calc(var(--pipe) + 9rem); row-gap: 1.2rem; }
  .ficha { padding: 0; grid-template-columns: minmax(0, 1fr) 210px; gap: 1.3rem; align-items: center; }
  .ficha--der { grid-template-columns: 210px minmax(0, 1fr); margin-top: 4.5rem; }
  .ficha--izq .ficha__img { order: 2; }
  .ficha__img { width: 210px; }
  .ficha__txt { align-self: center; }
  .ficha__txt { max-width: 34ch; justify-self: end; margin-right: -1.6rem; }
  .ficha--der .ficha__txt { justify-self: start; margin-right: 0; margin-left: -1.6rem; }
  .ficha--izq .ficha__txt { z-index: 5; }
  .rama { top: 46%; width: calc(4.5rem + var(--pipe) / 2 + 40px); }
  .ficha--izq .rama { right: calc(-4.5rem - var(--pipe) / 2); }
  .ficha--der .rama { left: calc(-4.5rem - var(--pipe) / 2); }
  .ficha--izq .rama::after { left: 25px; }
  .ficha--der .rama::after { right: 25px; }
  .ficha--izq .rama__t { right: -26px; }
  .ficha--der .rama__t { left: -26px; }
}

/* Colector final: atraviesa la pantalla de borde a borde y desagua en Ferraz */
.colector { position: relative; height: 200px; margin: 2rem calc(50% - 50vw) 0; z-index: 2; }
.colector__tubo { position: absolute; left: 0; right: 0; top: 30px; }
.colector__cruz { position: absolute; left: 50%; top: -11px; width: 122px; transform: translateX(-50%); filter: drop-shadow(0 6px 6px rgba(60, 0, 0, .5)); }
.colector__cano { position: absolute; left: 50%; top: 104px; width: var(--pipe); height: 34px; transform: translateX(-50%);
  background: url("../img/pipe-v.webp") 0 0 / 100% auto; filter: sepia(.7) saturate(3.2) hue-rotate(-32deg) brightness(.72) contrast(1.1) drop-shadow(0 4px 4px rgba(60, 0, 0, .4)); }
/* Gotas que caen del caño sobre la ficha de Ferraz */
.gota { position: absolute; left: 50%; top: 134px; width: 9px; height: 12px; margin-left: -4px; border-radius: 50% 50% 50% 50% / 62% 62% 40% 40%;
  background: radial-gradient(circle at 35% 35%, #ff6a5a, #a00c12 60%, #5e0508); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .gota { animation: cae 1.8s cubic-bezier(.55, 0, 1, .45) infinite; }
  .gota:nth-of-type(2) { animation-delay: .6s; }
  .gota:nth-of-type(3) { animation-delay: 1.2s; }
}
@keyframes cae { 0% { opacity: 0; transform: translateY(0) scale(.4); } 15% { opacity: 1; transform: translateY(0) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(70px) scaleY(1.2); } }
@media (max-width: 899px) {
  .colector__cruz { left: calc(.8rem + 22px + var(--pipe) / 2); }
  .colector__cano, .gota { display: none; }
  .colector { height: 150px; }
}

/* Ficha P.S.O.E.: la de la lona, con el rótulo en Comic Sans */
.psoe { position: relative; width: min(78vw, 320px); margin: -1.2rem auto 2.6rem; transform: rotate(-2deg); filter: drop-shadow(0 16px 18px rgba(40, 0, 0, .5)); z-index: 3; }
.psoe { container-type: inline-size; }
.psoe figcaption { position: absolute; inset: 0; display: grid; grid-template-rows: 64.5% 1fr; text-align: center; }
.psoe__name { align-self: center; font-family: var(--comic); font-weight: 700; color: var(--red); font-size: 18.5cqi; line-height: 1; letter-spacing: -.03em; }
.psoe__band { display: grid; align-content: center; gap: .15em; padding: 0 10% 6%; }
.psoe__l1 { font-family: var(--display); text-transform: uppercase; color: #fff; font-size: 10cqi; line-height: 1; }
.psoe__l2 { font-family: var(--display); text-transform: uppercase; color: var(--red-hot); font-size: 6cqi; line-height: 1; }

/* Ratas de la lona, de pie sobre el tubo: la imagen está recortada a ras de las patas (alto = 0,296 × ancho).
   Corren por el tramo de tubo que tienen debajo y se pierden al llegar al codo o a la foto. */
.rata { position: absolute; height: auto; pointer-events: none; z-index: 4; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .35)); opacity: 1; }
.rata--entrada { width: 96px; top: calc(30px - 96px * .296 + 2px); left: 74%; --in: 26vw; --out: -18vw; }
.rata--colector { width: 92px; top: calc(30px - 92px * .296 + 2px); left: 66%; --in: 24vw; --out: -12vw; }
.rata--rama { width: 60px; top: calc(46% - 60px * .296 + 2px); right: calc(-4.5rem + 10px); transform: scaleX(-1); --in: -40px; --out: 34px; }
.rata--der { right: auto; left: calc(-4.5rem + 10px); transform: none; --in: 40px; --out: -34px; }
@media (max-width: 899px) {
  .rata--rama { display: none; }
  .rata--entrada { left: 62%; --out: -30vw; }
  .rata--colector { left: 58%; --out: -30vw; }
}
@media (prefers-reduced-motion: no-preference) {
  .rata.is-running { animation: rata-corre var(--dur, 7s) cubic-bezier(.45, 0, .55, 1) var(--delay, 0s) infinite, trote .18s steps(2) infinite; }
  .rata--entrada { --dur: 9s; }
  .rata--colector { --dur: 8s; --delay: 1.5s; }
  .rata--rama { --dur: 6s; --delay: .8s; }
}
@keyframes rata-corre {
  0%   { translate: var(--in) 0; opacity: 0; }
  4%   { opacity: 1; }
  30%  { translate: 0 0; }
  58%  { translate: 0 0; } 60% { translate: 0 -2px; } 62% { translate: 0 0; }
  92%  { translate: var(--out) 0; opacity: 1; }
  96%, 100% { translate: var(--out) 0; opacity: 0; }
}
/* Trote: la rata se agacha y se estira a pasos cortos, sin despegarse del tubo */
@keyframes trote { 0%, 100% { scale: 1 1; } 50% { scale: 1.03 .94; } }

/* ---------- ACTO II · El PSOE mata ---------- */
.mata { position: relative; overflow: clip; padding: 0 1.1rem 4.5rem; background: var(--grain), var(--ink); }
/* La tubería revienta: la sangre del acto I chorrea sobre el negro y los goterones se alargan al bajar */
.fontaneria::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; pointer-events: none;
  background: linear-gradient(180deg, rgba(198, 20, 25, 0), #c61419); }
.chorreo { --h: clamp(220px, 26vw, 340px); position: relative; height: var(--h); margin: 0 -1.1rem calc(var(--h) * -.62); overflow: hidden; z-index: 1; pointer-events: none; }
.chorreo__in { position: absolute; left: 0; right: 0; top: -50%; height: 150%;
  background: linear-gradient(180deg, #c61419 0 45%, #a60f14 72%, #6f070b 100%);
  -webkit-mask: linear-gradient(#000, #000) 0 0 / 100% 36% no-repeat, url("../img/chorreo-mascara.webp") 0 100% / max(100%, 1700px) 66.7% repeat-x;
  mask: linear-gradient(#000, #000) 0 0 / 100% 36% no-repeat, url("../img/chorreo-mascara.webp") 0 100% / max(100%, 1700px) 66.7% repeat-x; }
.chorreo__in::after { content: ""; position: absolute; inset: 0; background: url("../img/chorreo-brillo.webp") 0 100% / max(100%, 1700px) 66.7% repeat-x; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .chorreo__in { animation: chorrea linear both; animation-timeline: view(); animation-range: entry 0% cover 55%; }
  }
}
@keyframes chorrea { from { transform: translateY(-24%); } to { transform: translateY(0); } }
.words--mata { top: 120px; }

.mata__top { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; display: grid; align-items: center; }
.mata__head { order: -1; text-align: center; }
.mata__lead { margin: 0 auto; max-width: 20ch; font-family: var(--display); text-transform: uppercase; font-size: clamp(1.5rem, 5vw, 2.4rem); line-height: 1.04; color: #e8e4de; }
.mata__title { margin: 1rem 0 .4rem; font-size: clamp(3.6rem, 16vw, 8.6rem); line-height: .95; }
.mata__title > span { display: block; }
.mata__mata { display: inline-flex !important; align-items: center; gap: .12em; margin-top: .06em; }
.mata__puno { width: .78em; height: auto; clip-path: var(--torn); }
.ministros { position: relative; margin: 0; }
.ministros img { width: 100%; -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent); mask-image: linear-gradient(180deg, #000 78%, transparent); }
.ministros figcaption { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: -1.6rem; position: relative; }
.ministro { font-size: 1.1rem; line-height: 1.3; color: #ddd8d1; }
.ministro b { display: block; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.5rem; color: #fff; line-height: 1; margin-bottom: .2rem; }
.ministro--puente { text-align: right; }
@media (min-width: 900px) {
  .mata__top { grid-template-columns: 1.15fr .85fr; gap: 2rem; }
  .mata__head { order: 0; text-align: left; }
  .mata__title { font-size: clamp(3.6rem, 6.4vw, 6.6rem); white-space: nowrap; }
  .mata__title > span { display: inline-block; }
  .mata__lead { margin: 0; }
  .ministros figcaption { margin-top: -4rem; padding: 0 2%; }
}

.sucesos { list-style: none; position: relative; z-index: 2; max-width: 1180px; margin: 3.2rem auto 3.4rem; padding: 0;
  display: grid; gap: 3.4rem; }
.suceso { display: grid; gap: .55rem; align-content: start; }
.suceso__foto { position: relative; transform: rotate(var(--tilt, -.8deg)); margin-bottom: .3rem; }
.suceso:nth-child(even) { --tilt: .9deg; }
.suceso__foto img, .suceso__foto video { display: block; width: 100%; height: auto; }
/* Rótulo negro bajo la foto, como las fichas del bus 1 */
.suceso h3 { margin: -1.1rem 6% 0; position: relative; background: var(--ink); padding: .5rem .7rem .45rem; text-align: center; font-size: clamp(1.3rem, 4.2vw, 1.6rem); box-shadow: 0 0 0 3px var(--paper); }
.suceso h3 b { display: block; font-weight: 400; color: var(--red-hot); font-size: 1.5em; line-height: .95; }
.suceso__fecha { margin: .2rem 0 0 !important; font-family: var(--display); text-transform: uppercase; letter-spacing: .03em; color: var(--grey) !important; font-size: 1.05rem !important; }
.suceso p { margin: 0; max-width: 42ch; font-size: 1.2rem; color: #ece8e2; }
.fuentes { display: flex; flex-wrap: wrap; gap: .2rem 1rem; }
@media (min-width: 760px) {
  .sucesos { grid-template-columns: 1fr 1fr; column-gap: clamp(2.5rem, 6vw, 6rem); row-gap: 4rem; }
}
@media (min-width: 1180px) {
  .sucesos { grid-template-columns: repeat(4, 1fr); column-gap: 2.4rem; max-width: 1320px; }
  .suceso p { font-size: 1.12rem; }
}

/* ---------- En la calle ---------- */
.calle { position: relative; padding: 4rem 1.1rem 4.5rem; background: var(--grain), #171515; }
.calle__title { text-align: center; font-size: clamp(2rem, 6.4vw, 4rem); margin-bottom: 2.4rem; }
.calle__title .band { margin-top: .12em; }
.bus { margin: 0; }
.calle figcaption { margin-top: .6rem; font-family: var(--display); text-transform: uppercase; font-size: 1.05rem; letter-spacing: .02em; color: #fff; }
.calle__lona { max-width: 1100px; margin: 0 auto 2.6rem; }
.calle__lona figcaption, .bus figcaption { text-align: left; }
.calle__lona img { box-shadow: 0 24px 40px -18px rgba(40, 0, 0, .7); }
.calle__buses { max-width: 1240px; margin: 0 auto; display: grid; gap: 2.2rem; }
.bus img { filter: drop-shadow(0 14px 14px rgba(40, 0, 0, .35)); }
@media (min-width: 900px) { .calle__buses { grid-template-columns: 1fr 1fr; max-width: 1100px; } }

/* ---------- Cierre ---------- */
.cierre { position: relative; padding: 4.5rem 1.1rem 4rem; background: var(--grain), var(--ink); text-align: center; }
.cierre__title { max-width: 18ch; margin: 0 auto 2.4rem; font-size: clamp(2rem, 6.2vw, 4rem); }
.cierre__title .band { margin-top: .12em; background: var(--red); }
.donate-box { max-width: 720px; margin: 0 auto 3rem; }
.donate-box__lead { margin: 0 0 1rem; font-family: var(--display); text-transform: uppercase; font-size: clamp(1.3rem, 3.6vw, 1.8rem); }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.btn--amount { background: var(--red); color: #fff; font-size: clamp(1.6rem, 5vw, 2.2rem); padding: .45em .4em .38em; }
.btn--amount:hover { background: var(--red-hot); }
.btn--otra { grid-column: 1 / -1; background: var(--paper); color: var(--ink); font-size: clamp(1.2rem, 3.6vw, 1.5rem); }
.btn--otra:hover { background: #fff; }
.share__lead { margin: 0 0 .8rem; font-family: var(--display); text-transform: uppercase; font-size: 1.3rem; }
.share__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; }
.btn--share { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .8); font-family: var(--cond); font-weight: 700; font-size: 1rem; padding: .5em 1em; }
.btn--share:hover { background: #fff; color: var(--ink); }
.share__ok { min-height: 1.4em; margin: .6rem 0 0; font-size: 1.05rem; }

/* ---------- Pie ---------- */
.footer { padding: 2.6rem 1.1rem calc(2.4rem + 96px); background: #070707; text-align: center; display: grid; gap: .45rem; justify-items: center; font-size: .92rem; color: #a9a49d; }
.footer__brand img { width: 220px; }
.footer p { margin: 0; max-width: 70ch; }
.footer__links { font-size: 1rem; }
.footer__links a { color: #ddd; text-decoration: underline; text-underline-offset: .15em; }
.footer__links a:hover { color: #fff; }

/* ---------- Línea de tiempo fija (sustituye al CTA fijo) ---------- */
.tl { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 1rem;
  padding: .55rem 1rem calc(.55rem + env(safe-area-inset-bottom)); background: rgba(14, 13, 13, .96); border-top: 2px solid var(--red);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.tl.is-hidden { transform: translateY(110%); }
.tl__tc { margin: 0; min-width: 8.5em; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.tl__tc b { color: var(--red-hot); }
.tl__track { position: relative; flex: 1; display: flex; gap: 1.1rem; align-items: center; justify-content: center; margin: 0; padding: 0; list-style: none; }
.tl__g { display: flex; align-items: center; gap: 4px; }
.tl__lbl { margin-right: .45rem; font-family: var(--display); text-transform: uppercase; font-size: .78rem; letter-spacing: .05em; color: #8d8682; }
/* El cuadrado visible mide 18 px; la zona que se puede tocar, 28 px (relleno transparente) */
.tl__sq { width: 28px; height: 28px; padding: 5px; border: 0; background: #2c2727; background-clip: content-box; cursor: pointer; transition: background-color .3s; }
.tl__g { gap: 0; }
.tl__sq:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.tl__sq.is-done { background-color: #7a0b10; }
.tl__sq.is-now { background-color: var(--red-hot); }
.tl__sq:hover { background-color: #a3141b; }
.tl__ph { position: absolute; left: 0; top: -9px; bottom: -9px; width: 2px; background: #fff; pointer-events: none; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.tl__ph::before { content: ""; position: absolute; top: -4px; left: -5px; border: 6px solid transparent; border-top: 7px solid #fff; }
.tl__go { flex: none; background: var(--red); color: #fff; text-decoration: none; font-family: var(--display); text-transform: uppercase; font-size: 1.05rem; padding: .6em 1em .5em; white-space: nowrap; }
.tl__go:hover { background: var(--red-hot); }
@media (max-width: 899px) {
  .tl { flex-wrap: wrap; gap: .45rem .8rem; padding-top: .5rem; }
  .tl__tc { flex: 1; min-width: 0; font-size: .82rem; }
  .tl__track { order: 3; flex-basis: 100%; gap: 3px; justify-content: space-between; margin: -8px 0 -6px; }
  .tl__g { flex: 1; gap: 0; }
  .tl__lbl { display: none; }
  .tl__sq { flex: 1; height: 26px; width: auto; padding: 10px 1.5px; }
  .tl__ph { top: 5px; bottom: 5px; }
  .tl__go-x { display: none; }
  .tl__go { font-size: 1rem; padding: .5em 1.1em .42em; }
}
@media (prefers-reduced-motion: reduce) { .tl, .tl__ph { transition: none; } }

/* ---------- Créditos ---------- */
.creditos { position: relative; padding: 4.5rem 1.1rem 4rem; background: #070707; text-align: center; }
.creditos > * { position: relative; z-index: 2; }
.creditos__k { margin: 0 0 1.8rem; font-family: var(--display); text-transform: uppercase; letter-spacing: .22em; color: var(--red-hot); font-size: .95rem; }
.creditos__g { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1100px; margin: 0 auto; border-top: 1px solid #2f2b2b; border-bottom: 1px solid #2f2b2b; }
.creditos__g > div { padding: 1.6rem .6rem; border-right: 1px solid #2f2b2b; }
.creditos__g > div:last-child { border-right: 0; }
.creditos dt { font-family: var(--display); text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; color: #8d8682; margin-bottom: .7rem; }
.creditos dd { margin: 0; font-family: var(--display); text-transform: uppercase; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
.creditos dd.creditos__rep { font-family: var(--cond); text-transform: none; font-size: 1.15rem; line-height: 1.5; color: #d6d0c9; }
.creditos dd.creditos__tu { color: var(--red-hot); }
@media (max-width: 759px) {
  .creditos__g { grid-template-columns: 1fr 1fr; }
  .creditos__g > div:nth-child(2) { border-right: 0; }
  .creditos__g > div:nth-child(-n+2) { border-bottom: 1px solid #2f2b2b; }
}

/* ---------- Entradas al hacer scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .ficha, .js .suceso, .js .psoe, .js .bus, .js .calle__lona { opacity: 0; translate: 0 28px; transition: opacity .7s cubic-bezier(.16, 1, .3, 1), translate .7s cubic-bezier(.16, 1, .3, 1); }
  .js .ficha.is-in, .js .suceso.is-in, .js .psoe.is-in, .js .bus.is-in, .js .calle__lona.is-in { opacity: 1; translate: 0 0; }
  .js .psoe { translate: 0 -40px; }
}

/* Hero en móvil: el texto se apoya en un degradado para leerse sobre la foto */
@media (max-width: 899px) {
  .hero__text { padding-top: 38vh; background: linear-gradient(180deg, transparent 0, rgba(14, 13, 13, .85) 34vh, var(--ink) 60%); }
}

/* Móvil: fotos de los sucesos más bajas para acortar el acto II */
@media (max-width: 759px) {
  .sucesos { gap: 2.6rem; margin-top: 2.4rem; }
  .suceso__foto img, .suceso__foto video { aspect-ratio: 16 / 8; object-fit: cover; }
}

/* Entrada del hero: el titular cae a golpes y la banda roja se rasga de izquierda a derecha */
@media (prefers-reduced-motion: no-preference) {
  .hero__l1 { animation: golpe .55s cubic-bezier(.2, .9, .25, 1.15) both; }
  .hero__l2 { animation: rasga .5s cubic-bezier(.7, 0, .2, 1) .25s both; }
  .hero__sub, .hero .btn--donate { animation: sube .6s cubic-bezier(.16, 1, .3, 1) both; }
  .hero__sub { animation-delay: .5s; }
  .hero .btn--donate { animation-delay: .6s; }
  .hero__sanchez { animation: aparece 1.2s ease-out .1s both; }
}
@keyframes golpe { from { opacity: 0; transform: translateY(-.35em) scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes rasga { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes sube { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes aparece { from { opacity: 0; filter: brightness(.3); } to { opacity: 1; filter: none; } }

/* Aborto: el último caso, a todo el ancho, como cierre del acto II */
@media (min-width: 760px) {
  .suceso--ancho { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: 2.4rem; align-items: center; margin-top: 1rem; }
  .suceso--ancho .suceso__foto { max-width: 560px; justify-self: end; width: 100%; }
  .suceso--ancho h3 { margin: 0 0 .6rem; text-align: left; display: inline-block; font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
  .suceso--ancho .suceso__texto { display: grid; gap: .55rem; justify-items: start; }
}

/* ---------- El legado: presión a PP y VOX (cara interior del díptico) ---------- */
.legado { position: relative; padding: 4.5rem 1.1rem 4.5rem; background: url("../img/fondo-rojo.jpg") 0 0 / 700px auto repeat, var(--red); }
.legado > * { position: relative; z-index: 2; }
.legado__title { max-width: 16ch; margin: 0 auto 1.4rem; text-align: center; font-size: clamp(2.2rem, 7vw, 4.6rem); }
.legado__title .band { margin-top: .12em; }
.legado__lead { max-width: 46ch; margin: 0 auto 2.6rem; text-align: center; font-size: clamp(1.2rem, 2.3vw, 1.4rem); }
.legado__lead b { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; }
.legado__cards { max-width: 1100px; margin: 0 auto 2.8rem; display: grid; gap: 1.6rem; }
.exige { display: grid; grid-template-columns: 40% 1fr; align-items: end; background: var(--ink); border-left: 6px solid var(--red-hot); min-height: 220px; overflow: hidden;
  box-shadow: 0 20px 30px -18px rgba(40, 0, 0, .7); }
.exige__foto { align-self: end; width: 100%; height: auto; }
.exige__txt { align-self: center; padding: 1.2rem 1.2rem 1.3rem .4rem; }
.exige__quien { margin: 0 0 .5rem; font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; color: var(--red-hot); font-size: .95rem; }
.exige__frase { margin: 0; font-family: var(--display); text-transform: uppercase; font-size: clamp(1.25rem, 3.4vw, 1.75rem); line-height: 1.08; }
.exige__frase em { font-style: normal; color: var(--red-hot); }
.exige .fuente { display: inline-block; margin-top: .6rem; }
.exige__linea { margin: 0 0 .55rem; font-size: clamp(1.08rem, 2.1vw, 1.18rem); line-height: 1.3; }
.exige__linea b { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; }
.exige__remate { margin-top: .7rem; }
/* Antetítulo del legado: mismo estilo que «Cuando la tubería revienta…» del Acto II */
.legado__ante { margin: 0 auto 1rem; max-width: 20ch; text-align: center; font-family: var(--display); text-transform: uppercase; font-size: clamp(1.5rem, 5vw, 2.4rem); line-height: 1.04; color: #e8e4de; }
.legado .btn--guia { background: var(--ink); }
.legado .btn--guia:hover { background: #000; }
@media (min-width: 900px) {
  .legado__cards { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .exige { opacity: 0; translate: 0 28px; transition: opacity .7s cubic-bezier(.16, 1, .3, 1), translate .7s cubic-bezier(.16, 1, .3, 1); }
  .js .exige.is-in { opacity: 1; translate: 0 0; }
  .js .exige:nth-child(2) { transition-delay: .15s; }
}

/* Logo oficial de WhatsApp (glifo blanco del Brand Resource Center de Meta, sin modificar).
   Lo que vibra cada 30 s es el botón entero, no el logo. */
.wa-ico { flex: none; width: 1.25em; height: 1.25em; margin-right: .5em; }
.tl__go { display: inline-flex; align-items: center; }
.tl__go .wa-ico { width: 1.15em; height: 1.15em; margin-right: .4em; }
.tl__go-x { margin-left: .3em; }
/* El glifo oficial va siempre en blanco: este botón no se vuelve blanco al pasar el ratón */
.btn--share[data-wa-btn]:hover { background: rgba(255, 255, 255, .14); color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  [data-wa], [data-wa-btn] { animation: wa-vibra 30s linear 3s infinite; }
  .hero [data-wa] { animation: sube .6s cubic-bezier(.16, 1, .3, 1) .6s both, wa-vibra 30s linear 3s infinite; }
  /* Las filas de casos, detrás de Sánchez, se desplazan muy despacio; cada una en sentido contrario a la anterior */
  .words--filas > span { animation: deriva 90s ease-in-out infinite alternate; }
  .words--filas > span:nth-child(even) { animation-direction: alternate-reverse; }
}
@keyframes wa-vibra {
  0%, 2.6%, 100% { transform: none; }
  0.3% { transform: translateX(-4px); }
  0.7% { transform: translateX(4px); }
  1.1% { transform: translateX(-3px); }
  1.5% { transform: translateX(3px); }
  1.9% { transform: translateX(-1px); }
  2.3% { transform: translateX(1px); }
}
@keyframes deriva { from { transform: translateX(-12%); } to { transform: translateX(-30%); } }

/* Portada: las filas de casos llenan todo el fondo negro y se difuminan hacia abajo */
.words--filas { display: flex; flex-direction: column; text-align: left;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 35%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 0, #000 35%, transparent 92%); }
.words--filas > span { display: block; flex: none; white-space: nowrap; width: max-content; transform: translateX(-20%); }

/* Página 404 (404.html, en la raíz del dominio) */
.hero--404 .hero__text { justify-items: start; }
.e404__wa { margin-top: .2rem; }
.e404 .footer { padding-bottom: 2.4rem; }
.e404__cara { aspect-ratio: 900 / 1021; container-type: inline-size; }
.e404__cara img { display: block; width: 100%; height: 100%; object-fit: contain; }
.e404__sello { position: absolute; left: 52%; top: 25%; margin: 0; translate: -50% -50%; rotate: -9deg;
  display: grid; justify-items: center; padding: .02em .14em 0; border: .045em solid currentColor;
  font-family: var(--display); text-transform: uppercase; line-height: .9; font-size: 21cqi; color: var(--red);
  background: rgba(14, 13, 13, .25);
  /* Sombra paralela para despegar el sello de la cara */
  filter: drop-shadow(.025em .035em 0 rgba(0, 0, 0, .85)) drop-shadow(0 .02em .12em rgba(0, 0, 0, .6)); }
.e404__sello span { font-size: .3em; letter-spacing: .3em; margin-right: -.3em; }
@media (min-width: 900px) { .e404__cara { width: auto; } }
