/* ==========================================================================
   MGB · estilos
   Rollo fanzine / portada de mixtape: fotocopia, cinta, rotulador y máquina de escribir.
   Negro con grano, hueso y rojo sangre. Gótica cromada solo para el nombre.
   ========================================================================== */

@font-face { font-family: "Grenze Gotisch"; src: url("../fonts/grenze-gotisch-variable.woff2") format("woff2"); font-weight: 500 900; font-display: swap; }
@font-face { font-family: "Anton"; src: url("../fonts/anton-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-variable.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Permanent Marker"; src: url("../fonts/permanent-marker.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Special Elite"; src: url("../fonts/special-elite.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --void: #0B0A0A;
  --night: #121010;
  --coal: #1A1717;
  --line: #2C2626;
  --line-2: #3D3535;
  --bone: #EEE8DF;
  --paper: #E9E2D4;
  --ink: #1A1616;
  --bone-2: #CBC4BA;
  --smoke: #A69F97;
  --blood: #C8001E;
  --ember: #FF3B4E;
  --glow: rgba(225, 6, 26, 0.5);

  --goth: "Grenze Gotisch", "Old English Text MT", serif;
  --anton: "Anton", "Impact", "Arial Narrow", sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --marker: "Permanent Marker", "Comic Sans MS", cursive;
  --typed: "Special Elite", "Courier New", monospace;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 128px);
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
  background: var(--void);
  /* Las piezas giradas y la cinta sobresalen: sin scroll lateral (iOS ignora el del body) */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--void);
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--bone); text-underline-offset: 4px; }
a:hover { color: var(--ember); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
::selection { background: var(--blood); color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.band { background: var(--night); border-block: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 24px; }

.sprite { position: absolute; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 12px 18px; background: var(--bone); color: var(--void); }
.skip-link:focus { top: 12px; color: var(--void); }

.marker { font-family: var(--marker); font-weight: 400; letter-spacing: 0.01em; }

/* Grano de película: se mueve el fondo, la capa nunca es mayor que la pantalla */
.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0% { background-position: 0 0; }
  25% { background-position: -37px 23px; }
  50% { background-position: 29px -41px; }
  75% { background-position: -19px -13px; }
  100% { background-position: 11px 37px; }
}

/* ---------- Piezas "físicas" ---------- */
/* Cinta de carrocero */
.tape {
  position: absolute;
  z-index: 3;
  width: 110px; height: 30px;
  background: rgba(233, 226, 212, 0.62);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  clip-path: polygon(2% 0, 98% 6%, 100% 50%, 97% 100%, 3% 94%, 0 50%);
}
.tape-top { top: -13px; left: 50%; transform: translateX(-50%) rotate(-3deg); }
.tape-tl { top: -10px; left: -24px; transform: rotate(-35deg); }
.tape-tr { top: -10px; right: -24px; transform: rotate(32deg); }
.tape-br { bottom: -8px; right: -20px; transform: rotate(-28deg); }

/* Fotocopia: blanco y negro duro con un velo rojo */
.xerox { position: relative; overflow: hidden; background: #000; }
.xerox img { width: 100%; filter: grayscale(1) contrast(1.45) brightness(1.08); }
.xerox::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--blood);
  mix-blend-mode: multiply;
  opacity: 0.55;
}
/* Borde inferior y derecho rotos a mano */
.torn {
  clip-path: polygon(0 0, 97% 0, 98.5% 6%, 97% 13%, 99% 21%, 97.5% 30%, 99.5% 38%, 97% 47%, 99% 56%, 97.5% 66%, 99.5% 74%, 97% 83%, 98.5% 92%, 96% 97%, 91% 99%, 84% 97%, 77% 99.5%, 69% 97.5%, 61% 100%, 52% 97%, 44% 99.5%, 36% 97%, 28% 99%, 20% 97.5%, 12% 100%, 5% 97.5%, 0 99%);
}

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 10, 10, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { color: var(--bone); }
.brand img { width: 44px; }
.brand-name { font-family: var(--anton); font-size: 24px; line-height: 1; letter-spacing: 0.12em; }

.site-nav { display: flex; align-items: center; gap: 26px; font-family: var(--anton); font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; }
.site-nav a { text-decoration: none; padding: 12px 0; position: relative; }
.site-nav a::after {
  content: "";
  position: absolute;
  left: -2px; right: 102%; bottom: 8px;
  height: 3px;
  background: var(--ember);
  transform: rotate(-1.5deg);
  transition: right .25s ease;
}
.site-nav a:hover::after { right: -2px; }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  margin-right: -12px;
  border: 0;
  background: transparent;
  color: var(--bone);
  cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block;
  width: 26px; height: 2px;
  margin-inline: auto;
  background: currentColor;
  transition: transform .25s, background-color .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -8px; }
.nav-toggle-bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 899px) {
  .js .nav-toggle { display: block; }
  .js .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--void);
    border-bottom: 1px solid var(--line);
  }
  .js .site-nav:not(.is-open) { display: none; }
  .js .site-nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .js .site-nav a::after { display: none; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .site-nav { flex-wrap: wrap; gap: 4px 18px; }
}

/* ---------- Portada ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 112px);
}
.hero-photo { position: relative; transform: rotate(-1.5deg); }
.hero-photo .xerox img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center 40%; }
.hero-note {
  position: absolute;
  left: 4%; bottom: -54px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--bone);
  font-size: 20px;
  transform: rotate(-4deg);
}
.hero-note-arrow { width: 70px; height: 30px; color: var(--ember); transform: rotate(-110deg) translateX(-8px); }

.hero-text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-left: -14%;
  container-type: inline-size;
  min-width: 0;
}
.hero-title {
  font-family: var(--goth);
  font-weight: 900;
  font-size: clamp(5rem, 13vw, 12rem);
  font-size: clamp(5rem, 42cqi, 12rem);
  line-height: 0.78;
  padding-right: 0.06em;
  background: linear-gradient(180deg, #FFFFFF 0%, #D9D6D2 38%, #6E6A66 50%, #F4F1EC 62%, #9C9893 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 28px rgba(0, 0, 0, 0.9));
}
.hero-title-small {
  margin: -18px 0 0 22%;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1;
  color: var(--ember);
  transform: rotate(-5deg);
}
.hero-claim {
  font-family: var(--anton);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.15;
  text-transform: uppercase;
}
/* Subrayador rojo hecho a mano */
.hl {
  padding: 0 4px;
  background: linear-gradient(100deg, transparent 0 1%, rgba(200, 0, 30, 0.85) 2% 97%, transparent 98%) 0 62% / 100% 58% no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero-lead { max-width: 30rem; color: var(--bone-2); font-size: 18px; }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }

.btn-sticker {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 24px;
  background: var(--bone);
  color: var(--void);
  font-family: var(--anton);
  font-size: 19px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transform: rotate(-2deg);
  box-shadow: 4px 4px 0 var(--blood);
  transition: transform .15s, box-shadow .15s;
}
.btn-sticker:hover { color: var(--void); transform: rotate(0deg) translate(-1px, -1px); box-shadow: 6px 6px 0 var(--blood); }
.link-marker { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-family: var(--marker); font-size: 20px; text-decoration: none; }
.link-marker svg { width: 22px; height: 32px; color: var(--ember); }

@media (max-width: 959px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 76px; }
  .hero-text { margin-left: 0; }
}

/* ---------- Cinta americana ---------- */
.gaffer {
  position: relative;
  z-index: 2;
  margin-inline: -30px;
  background: #151313;
  color: var(--bone);
  transform: rotate(-1.4deg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
}
.gaffer::before {
  /* textura de cinta: brillo y fibras */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 7px), linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 40%, rgba(255, 255, 255, 0.03));
  pointer-events: none;
}
.gaffer-track {
  display: flex;
  gap: 28px;
  width: max-content;
  padding: 18px 0 14px;
  white-space: nowrap;
  font-family: var(--marker);
  font-size: clamp(20px, 2.4vw, 28px);
  animation: marquee 46s linear infinite;
}
.gaffer-track span::after { content: "✕"; margin-left: 28px; color: var(--ember); font-family: var(--body); font-weight: 800; }
@keyframes marquee { to { transform: translateX(calc(-50% - 14px)); } }

/* ---------- Encabezados de sección ---------- */
.head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; margin-bottom: 48px; }
.h-anton {
  font-family: var(--anton);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.9;
  text-transform: uppercase;
}
.h-goth { font-family: var(--goth); font-weight: 900; font-size: clamp(3rem, 6.2vw, 5.6rem); line-height: 0.92; }
.head-note { color: var(--ember); font-size: clamp(18px, 2vw, 24px); transform: rotate(-3deg); }
.lead { color: var(--bone-2); max-width: 36rem; font-size: 18px; }

/* ---------- Meme de la semana ---------- */
.meme-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 859px) { .meme-grid { grid-template-columns: minmax(0, 1fr); } }

.polaroid {
  position: relative;
  justify-self: center;
  width: min(100%, 430px);
  padding: 14px 14px 68px;
  background: var(--bone);
  transform: rotate(-2.5deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.polaroid:hover { transform: rotate(-0.5deg) scale(1.01); }
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; }
.polaroid img.fit-bottom { object-position: center bottom; }
.polaroid figcaption {
  position: absolute;
  left: 18px; right: 14px; bottom: 16px;
  font-size: 24px;
  line-height: 1.1;
  color: var(--ink);
  transform: rotate(-1deg);
}

.meme-info { display: flex; flex-direction: column; gap: 22px; }
.meme-context { font-size: clamp(19px, 1.8vw, 22px); line-height: 1.5; }
.meme-by { color: var(--smoke); font-size: 15px; }
.meme-by span { color: var(--bone); font-weight: 600; }

.verdict { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.verdict-q { font-size: 22px; color: var(--ember); transform: rotate(-2deg); }
.reactions { display: flex; flex-wrap: wrap; gap: 14px 16px; }
.reaction {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 2px solid var(--void);
  background: var(--bone);
  color: var(--void);
  font-family: var(--anton);
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.6);
  transition: transform .15s, box-shadow .15s, background-color .2s, color .2s;
}
.reaction.r1 { transform: rotate(-3deg); }
.reaction.r2 { transform: rotate(2deg); }
.reaction.r3 { transform: rotate(-1deg); }
.reaction:hover { box-shadow: 5px 5px 0 var(--blood); }
.reaction:active { transform: scale(0.96); }
.reaction[aria-pressed="true"] { background: var(--blood); color: #fff; box-shadow: 3px 3px 0 var(--bone); }
.reaction .count { font-family: var(--typed); font-size: 15px; }
.reaction.bump .count { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.6); } }

.archive { margin-top: 80px; }
.archive-title-main { font-size: 24px; color: var(--bone-2); margin-bottom: 22px; transform: rotate(-1.5deg); }
.archive-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 28px 24px; }
.archive-item {
  padding: 10px 10px 14px;
  background: var(--bone);
  color: var(--ink);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5);
  transition: transform .3s;
}
.archive-item:nth-child(4n + 1) { transform: rotate(-2deg); }
.archive-item:nth-child(4n + 2) { transform: rotate(1.5deg); }
.archive-item:nth-child(4n + 3) { transform: rotate(-1deg); }
.archive-item:nth-child(4n + 4) { transform: rotate(2.2deg); }
.archive-item:hover { transform: rotate(0) translateY(-4px); }
.archive-item img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: contrast(1.05); }
.archive-week { margin-top: 10px; font-family: var(--typed); font-size: 13px; color: var(--blood); }
.archive-title { font-family: var(--marker); font-size: 18px; line-height: 1.2; }
@media (max-width: 559px) {
  .archive-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
  .archive-item { padding: 7px 7px 10px; }
  .archive-title { font-size: 15px; }
}

/* ---------- Organigrama: rueda de reconocimiento ---------- */
.lineup {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 2.4vw, 28px);
}
.suspect { display: flex; flex-direction: column; align-items: center; }
.mug { position: relative; width: 100%; overflow: hidden; background: #222; }
.mug img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.25) brightness(1.05); transition: filter .5s; }
/* Pared de alturas por encima de la foto: líneas y números cada 48 px, iguales para los tres */
.mug::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 46px, rgba(238, 232, 223, 0.55) 46px 48px);
  mix-blend-mode: screen;
  pointer-events: none;
}
.mug::after {
  content: "200\A 190\A 180\A 170\A 160\A 150\A 140\A 130\A 120\A 110";
  position: absolute;
  top: 34px; left: 6px;
  white-space: pre;
  font-family: var(--typed);
  font-size: 11px;
  line-height: 48px;
  color: rgba(238, 232, 223, 0.8);
  pointer-events: none;
}
.suspect:hover .mug img { filter: grayscale(0.2) contrast(1.1); }

.placard {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 82%;
  margin-top: -28px;
  padding: 10px 8px 12px;
  background: #121212;
  border: 2px solid #3a3a3a;
  color: #F2F2F2;
  text-align: center;
  font-family: var(--typed);
}
.placard-letter { font-family: var(--goth); font-weight: 900; font-size: clamp(28px, 4vw, 44px); line-height: 0.9; color: var(--ember); }
.placard-name { font-size: clamp(14px, 1.9vw, 22px); line-height: 1.1; text-transform: uppercase; }
.placard-meta { font-size: clamp(10px, 1.1vw, 12px); color: #b5b5b5; letter-spacing: 0.08em; }

.dossiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
  margin-top: 40px;
  align-items: start;
}
@media (max-width: 859px) { .dossiers { grid-template-columns: minmax(0, 1fr); max-width: 480px; margin-inline: auto; } }

/* Ficha de cartulina escrita a máquina */
.dossier {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 20px 20px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--typed);
  font-size: 15px;
  line-height: 1.5;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.5);
  background-image: linear-gradient(180deg, transparent 0 44px, rgba(200, 0, 30, 0.35) 44px 45px, transparent 45px);
}
.dossier:nth-child(1) { transform: rotate(-0.8deg); }
.dossier:nth-child(2) { transform: rotate(0.6deg); }
.dossier:nth-child(3) { transform: rotate(-0.4deg); }
.dossier-role { font-size: 13px; line-height: 1.3; min-height: 2.6em; text-transform: uppercase; letter-spacing: 0.04em; }

.alter { display: flex; align-items: center; gap: 12px; }
.alter img, .alter-empty { width: 44px; height: 58px; flex: none; object-fit: cover; filter: grayscale(1) contrast(1.1); border: 2px solid var(--ink); }
.alter-empty { display: grid; place-items: center; font-family: var(--marker); font-size: 26px; color: var(--blood); border-style: dashed; }
.typed-label { display: block; font-size: 12px; color: #6b625a; text-transform: uppercase; letter-spacing: 0.1em; }

.stats { display: flex; flex-direction: column; gap: 4px; }
.stats div { display: flex; align-items: baseline; gap: 8px; }
.stats dt { text-transform: uppercase; letter-spacing: 0.06em; }
.stats div::after { content: ""; order: 1; flex: 1; border-bottom: 2px dotted rgba(26, 22, 22, 0.35); transform: translateY(-4px); }
.stats dd { order: 2; min-width: 2.4em; text-align: right; font-size: 17px; }
/* El mejor de cada uno, rodeado a rotulador */
.stats dd.top {
  position: relative;
  color: var(--blood);
}
.stats dd.top::before {
  content: "";
  position: absolute;
  inset: -4px -8px -4px -6px;
  border: 2.5px solid var(--blood);
  border-radius: 48% 52% 45% 55% / 55% 45% 55% 45%;
  transform: rotate(-6deg);
}
.stats-sum { align-self: flex-end; padding-top: 4px; border-top: 2px solid var(--ink); font-size: 14px; text-transform: uppercase; }
.dossier-text { font-family: var(--body); font-size: 15px; }
.dossier-quote { font-size: 21px; line-height: 1.2; color: var(--blood); }

@media (max-width: 559px) {
  .mug::after { font-size: 9px; left: 3px; }
  .placard { width: 92%; margin-top: -18px; padding: 6px 4px 8px; }
}

/* ---------- Contador: cartel de fábrica ---------- */
.sign {
  position: relative;
  max-width: 860px;
  margin-inline: auto;
  padding: 0 clamp(20px, 4vw, 48px) clamp(24px, 4vw, 40px);
  background: #F3F0E9;
  color: #111;
  border-radius: 10px;
  box-shadow: inset 0 0 0 6px #F3F0E9, inset 0 0 0 9px #111, 0 30px 70px rgba(0, 0, 0, 0.6);
  text-align: center;
  transform: rotate(0.6deg);
}
.screw { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #9a958c 60%, #6b675f); }
.screw::after { content: ""; position: absolute; left: 3px; right: 3px; top: 6px; height: 2px; background: #5a564f; transform: rotate(35deg); }
.s1 { top: 18px; left: 18px; } .s2 { top: 18px; right: 18px; } .s3 { bottom: 18px; left: 18px; } .s4 { bottom: 18px; right: 18px; }
.sign-band {
  margin: 0 calc(clamp(20px, 4vw, 48px) * -1) clamp(20px, 3vw, 32px);
  padding: 22px 48px 16px;
  border-radius: 10px 10px 0 0;
  background: var(--blood);
  color: #fff;
  font-family: var(--anton);
  font-size: clamp(18px, 2.2vw, 24px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sign-text {
  font-family: var(--anton);
  font-weight: 400;
  font-size: clamp(1.8rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  text-transform: uppercase;
}
.sign-digits {
  display: block;
  width: fit-content;
  margin: 14px auto;
  padding: 6px 22px 2px;
  background: #111;
  color: var(--ember);
  font-size: clamp(5rem, 13vw, 9.5rem);
  line-height: 1;
  letter-spacing: 0.04em;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 20px var(--glow);
  /* línea de las placas abatibles */
  background-image: linear-gradient(180deg, transparent 49.5%, #000 49.5% 51%, transparent 51%);
}
.sign-foot { margin-top: 16px; font-family: var(--body); font-size: 15px; color: #444; }
.sign-log {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 26px;
  margin-top: 28px;
  font-family: var(--typed);
  font-size: 15px;
  color: var(--smoke);
}
.sign-log b { font-weight: 400; color: var(--bone); }

/* ---------- El tatuaje ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.tattoo-map { position: relative; aspect-ratio: 1; width: 100%; max-width: 540px; justify-self: center; }
.tattoo-map img { position: absolute; left: 14%; top: 14%; width: 72%; filter: drop-shadow(0 0 16px rgba(225, 6, 26, 0.35)); }
.ann { position: absolute; font-size: clamp(15px, 1.7vw, 19px); line-height: 1.1; color: var(--bone); }
.ann-wings { top: 0; left: 8%; transform: rotate(-4deg); }
.ann-m { top: 46%; left: 0; transform: rotate(-8deg); }
.ann-g { bottom: 2%; left: 34%; transform: rotate(3deg); }
.ann-b { top: 40%; right: 0; transform: rotate(6deg); }
.polaroid-sm { width: min(100%, 320px); justify-self: start; align-self: flex-start; padding-bottom: 54px; transform: rotate(2deg); }
.polaroid-sm img { aspect-ratio: 4 / 3; filter: grayscale(1) contrast(1.15); }
.polaroid-sm figcaption { font-size: 19px; bottom: 14px; }
.polaroid-sm:hover { transform: rotate(0.5deg); }
.aside-note { color: var(--ember); font-size: 22px; transform: rotate(-3deg); align-self: flex-start; }

/* ---------- El código: hoja a máquina ---------- */
.sheet {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(32px, 5vw, 56px) clamp(22px, 5vw, 60px) clamp(28px, 4vw, 44px);
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, transparent 0 calc(clamp(22px, 5vw, 60px) - 14px), rgba(200, 0, 30, 0.35) calc(clamp(22px, 5vw, 60px) - 14px) calc(clamp(22px, 5vw, 60px) - 12px), transparent 0),
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(60, 90, 140, 0.18) 31px 32px);
  color: var(--ink);
  transform: rotate(-0.8deg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}
.sheet-title { font-family: var(--goth); font-weight: 900; font-size: clamp(2.8rem, 6vw, 4.6rem); line-height: 0.95; }
.sheet-sub { margin-top: 6px; font-family: var(--typed); font-size: 15px; color: #5b524a; }
.rules { counter-reset: rule; margin-top: 26px; display: flex; flex-direction: column; gap: 14px; font-family: var(--typed); font-size: clamp(16px, 1.9vw, 20px); line-height: 1.45; }
.rules li { position: relative; display: grid; grid-template-columns: 2.4em 1fr; counter-increment: rule; }
.rules li::before { content: counter(rule, upper-roman) "."; color: var(--blood); }
.rule-last { font-weight: 400; }
.rule-underline { position: absolute; left: 2.4em; bottom: -10px; width: min(78%, 480px); height: 14px; color: var(--blood); }
.sheet-sign { margin-top: 30px; text-align: right; font-size: 26px; color: var(--ink); transform: rotate(-3deg); }

/* ---------- Fotos: tablón ---------- */
.board {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 36px);
  align-items: start;
}
.pin {
  position: relative;
  padding: 10px 10px 54px;
  background: var(--bone);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.pin a { display: block; overflow: hidden; }
.pin img { width: 100%; object-fit: cover; transition: transform .6s; }
.pin a:hover img { transform: scale(1.03); }
.pin figcaption { position: absolute; left: 14px; right: 12px; bottom: 14px; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.15; color: var(--ink); }
.p1 { grid-column: 1 / span 7; transform: rotate(-1.8deg); }
.p1 img { aspect-ratio: 4 / 3; }
.p2 { grid-column: 8 / span 5; margin-top: 40px; transform: rotate(2.4deg); }
.p2 img { aspect-ratio: 4 / 5; object-position: center 25%; }
.p3 { grid-column: 1 / span 5; transform: rotate(1.6deg); }
.p3 img { aspect-ratio: 4 / 5; object-position: center 38%; }
.p4 { grid-column: 6 / span 7; margin-top: 30px; transform: rotate(-1.2deg); }
.p4 img { aspect-ratio: 4 / 3; object-position: center 72%; }
.pin:hover { transform: rotate(0deg) translateY(-4px); z-index: 2; }
@media (max-width: 759px) {
  .board { grid-template-columns: minmax(0, 1fr); }
  .p1, .p2, .p3, .p4 { grid-column: auto; margin-top: 0; }
}

/* ---------- Pie ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-block: 64px 40px; text-align: center; }
.footer-inner img { width: 110px; opacity: 0.9; }
.footer-claim { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1; color: var(--ember); transform: rotate(-3deg); }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 10px; font-family: var(--typed); font-size: 14px; color: var(--smoke); }
.footer-meta a { color: var(--smoke); }
.footer-meta a:hover { color: var(--ember); }

/* ---------- Entrada al hacer scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; translate: 0 24px; transition: opacity .8s ease, translate .8s cubic-bezier(.2, .7, .2, 1); }
  .js .reveal.is-visible { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
