/* ==========================================================================
   FOMO · HOME
   Misma identidad que el test: azul de campaña + amarillo de rotulador +
   fotografía analógica tratada como objeto. Texturas compartidas en
   assets/fomo/textures/.
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  --blue: #0B5D9D;
  --blue-deep: #084C83;
  --blue-night: #06345C;
  --yellow: #D3E400;
  --paper: #F3F0E7;
  --paper-2: #E8E3D6;
  --ink: #0B1A2E;
  --white: #FFFFFF;

  --f-body: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", "Roboto Condensed", Arial, sans-serif;
  --f-hand: "Caveat Brush", "Marker Felt", "Segoe Print", "Bradley Hand", "Comic Sans MS", system-ui, sans-serif;

  --shadow-print: 0 1px 1px rgba(0,0,0,.18), 0 12px 26px -8px rgba(3, 20, 40, .6);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-drop: cubic-bezier(.3, 1.35, .5, 1);
  --gutter: 16px;
  --head-h: 58px;
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; font-synthesis: none; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 10px); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--white);
  font-family: var(--f-body);
  background-color: var(--blue);
  background-image:
    url("../fomo/textures/papel-grano.png"),
    radial-gradient(120% 60% at 10% 30%, rgba(255,255,255,.06), transparent 60%),
    radial-gradient(120% 70% at 90% 90%, rgba(3,25,50,.3), transparent 65%);
  background-size: 512px 512px, 100% 100%, 100% 100%;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: url("../fomo/textures/aranazos-tiza.png") 0 0 / 900px 900px;
  opacity: .45;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: url("../fomo/textures/papel-grano.png") 0 0 / 360px 360px;
  opacity: .2;
  mix-blend-mode: overlay;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.page { position: relative; z-index: 1; overflow-x: hidden; overflow-x: clip; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100; transform: translateY(-200%);
  padding: 10px 14px; background: var(--yellow); color: var(--ink); font-weight: 800;
}
.skip:focus { transform: none; }
:focus-visible { outline: 3px dashed var(--yellow); outline-offset: 4px; }

.hand { font-family: var(--f-hand); font-weight: 400; color: var(--yellow); line-height: 1; }
.display {
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 68%;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -.005em;
}
/* trazos SVG a rotulador */
svg path { fill: none; stroke: currentColor; stroke-width: 4px; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
svg path.fill { fill: currentColor; stroke-width: 2px; }

/* cinta adhesiva */
.tape {
  position: absolute; z-index: 4;
  width: var(--w, 84px); height: 24px;
  background: rgba(243, 240, 231, .72);
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
  clip-path: polygon(0 6%, 100% 0, 97% 22%, 100% 46%, 96% 70%, 100% 100%, 0 96%, 3% 74%, 0 50%, 4% 26%);
  rotate: var(--r, -8deg);
  pointer-events: none;
}
.tape--yellow { background: rgba(211, 228, 0, .78); }

/* fotos como objeto */
.print { position: relative; margin: 0; rotate: var(--rot, 0deg); box-shadow: var(--shadow-print); background: var(--paper); padding: 6px; }
.print--raw { padding: 0; background: none; }
.print img { width: 100%; height: auto; }

/* 3. CABECERA -------------------------------------------------------------- */
.site-head {
  position: fixed; left: 0; right: 0; top: 0; z-index: 50;
  height: var(--head-h);
  padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: background-color .3s, box-shadow .3s, transform .35s var(--ease);
}
.site-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../fomo/textures/papel-grano.png") 0 0 / 360px, var(--blue);
  opacity: 0; transition: opacity .3s;
  box-shadow: 0 8px 18px -12px rgba(3, 20, 40, .7);
}
.site-head.is-solid::before { opacity: 1; }
.site-head.is-hidden { transform: translateY(-110%); }
.site-head__logo { display: block; width: 92px; opacity: 0; transition: opacity .3s; }
.site-head.is-solid .site-head__logo { opacity: 1; }

.menu-btn {
  position: relative;
  min-width: 76px; min-height: 44px;
  padding: 4px 14px;
  background: var(--blue); border: 0;
  border-radius: 40% 55% 45% 60% / 60% 45% 55% 40%;
  box-shadow: 0 4px 12px -4px rgba(3,20,40,.5);
  color: var(--white);
  font-family: var(--f-hand);
  font-size: 26px;
  cursor: pointer;
  touch-action: manipulation;
  z-index: 3;
}
.menu-btn .scribble { position: absolute; inset: -2px -4px; width: calc(100% + 8px); height: calc(100% + 4px); color: var(--yellow); }
.menu-btn[aria-expanded="true"] { color: var(--ink); background: transparent; box-shadow: none; }
.menu-btn[aria-expanded="true"] .scribble { color: var(--ink); }

/* Menú móvil: página azul a pantalla completa */
.site-nav {
  position: fixed; inset: 0; z-index: 2;
  padding: calc(var(--head-h) + 20px + env(safe-area-inset-top)) 24px 32px;
  background: url("../fomo/textures/aranazos-tiza.png") 0 0 / 700px, var(--yellow);
  color: var(--ink);
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: circle(0% at calc(100% - 50px) 30px);
  visibility: hidden;
  transition: clip-path .5s var(--ease), visibility 0s linear .5s;
}
.site-nav.is-open { clip-path: circle(150% at calc(100% - 50px) 30px); visibility: visible; transition: clip-path .55s var(--ease), visibility 0s; }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-nav__link {
  position: relative;
  display: inline-flex; align-items: baseline; gap: 10px;
  padding: 4px 0;
  text-decoration: none;
  font-family: var(--f-display); font-weight: 900; font-stretch: 68%;
  font-size: clamp(46px, 13.5vw, 72px);
  line-height: .95;
  cursor: pointer;
}
.site-nav__link small { font-family: var(--f-hand); font-size: .36em; font-weight: 400; rotate: -6deg; }
.site-nav__link.is-hot small { background: var(--ink); color: var(--yellow); padding: 2px 6px; }
.site-nav__dates { margin: 24px 0 0; font-family: var(--f-hand); font-size: 26px; }
.site-nav.is-open .site-nav__list li { animation: nav-in .45s var(--ease) both; }
.site-nav.is-open .site-nav__list li:nth-child(2) { animation-delay: .04s; }
.site-nav.is-open .site-nav__list li:nth-child(3) { animation-delay: .08s; }
.site-nav.is-open .site-nav__list li:nth-child(4) { animation-delay: .12s; }
.site-nav.is-open .site-nav__list li:nth-child(5) { animation-delay: .16s; }
.site-nav.is-open .site-nav__list li:nth-child(6) { animation-delay: .2s; }
@keyframes nav-in { from { opacity: 0; transform: translateX(-24px) rotate(-2deg); } }

/* 4. ENTRADA --------------------------------------------------------------- */
.hero { position: relative; }
.hero__art { display: block; position: relative; }
.hero__art img {
  width: 100%; height: auto;
  aspect-ratio: 1400 / 1980;
  object-fit: cover;
  /* se funde con el azul de la página: no es una caja, es la página */
  -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
  animation: settle 1.6s var(--ease) both;
  transform-origin: 50% 30%;
}
@keyframes settle { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }

.hero__play { display: none; }

.tickets {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; align-items: flex-start;
  margin: -70px var(--gutter) 0;
}
.ticket { max-width: 100%; }
.ticket {
  position: relative;
  margin: 0;
  padding: 16px 14px 14px;
  color: var(--ink);
  background: var(--paper);
  display: flex; flex-direction: column; gap: 3px;
  filter: drop-shadow(0 10px 14px rgba(3, 20, 40, .45));
  /* bordes troquelados de entrada de cine */
  -webkit-mask: radial-gradient(circle 7px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 7px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 7px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 7px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
  animation: stick .7s var(--ease-drop) both;
}
.ticket::after {
  content: ""; position: absolute; left: 10px; right: 10px; top: 50%;
  border-top: 2px dashed rgba(11, 26, 46, .18);
  pointer-events: none;
}
.ticket--premiere { rotate: -3deg; padding-right: 22px; animation-delay: .5s; }
.ticket--filmin { background: var(--yellow); rotate: 2.5deg; margin: 8px 4px 0 auto; padding: 14px 30px 18px 22px; animation-delay: .7s; }
.ticket__tape { position: absolute; top: -12px; left: 30%; width: 70px; height: 22px; background: rgba(243,240,231,.7); rotate: -6deg; clip-path: polygon(0 6%, 100% 0, 97% 22%, 100% 46%, 96% 70%, 100% 100%, 0 96%, 3% 74%, 0 50%, 4% 26%); }
.ticket__label { font-weight: 800; font-size: 12px; letter-spacing: .16em; position: relative; z-index: 1; background: inherit; }
.ticket__big {
  position: relative; z-index: 1;
  font-family: var(--f-display); font-weight: 900; font-stretch: 66%;
  font-size: clamp(34px, 11vw, 52px); line-height: .88;
  white-space: nowrap;
}
.ticket__small { position: relative; z-index: 1; font-weight: 800; font-size: 12.5px; letter-spacing: .06em; }
.ticket__circle { position: absolute; left: -10%; top: -26%; width: 120%; height: 150%; color: var(--ink); pointer-events: none; }
@keyframes stick { from { opacity: 0; transform: translateY(-26px) scale(1.08) rotate(6deg); } to { opacity: 1; transform: none; } }

/* 5. TRÁILER --------------------------------------------------------------- */
.trailer { position: relative; padding: 70px var(--gutter) 30px; }
.trailer__title { position: relative; margin: 0 0 22px; display: flex; align-items: baseline; gap: .08em; font-size: clamp(72px, 22vw, 150px); white-space: nowrap; }
.trailer__title .hand { font-size: .32em; rotate: -8deg; }
.trailer__title .display { font-size: 1em; }
.doodle-arrow { flex: 0 0 auto; width: 64px; color: var(--yellow); rotate: 30deg; translate: -6px 26px; }

.reel { position: relative; margin: 0 -6px; rotate: -1.2deg; }
.reel .tape--l { top: -12px; left: 8%; }
.reel .tape--r { top: -10px; right: 10%; --r: 9deg; }
.reel__frame {
  position: relative;
  padding: 22px 10px;
  background:
    radial-gradient(circle 4px at 50% 50%, var(--paper) 94%, transparent) 0 6px / 20px 12px repeat-x,
    radial-gradient(circle 4px at 50% 50%, var(--paper) 94%, transparent) 0 calc(100% - 6px) / 20px 12px repeat-x,
    #111;
  box-shadow: var(--shadow-print);
}
.player { position: relative; aspect-ratio: 16 / 9; background: var(--blue-night); overflow: hidden; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__facade {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 0; border: 0;
  background: url("../fomo/textures/aranazos-tiza.png") 0 0 / 600px, var(--blue);
  cursor: pointer;
  touch-action: manipulation;
}
.player__logo { position: absolute; width: 62%; left: 6%; top: 10%; opacity: .95; rotate: -3deg; }
.player__btn {
  position: absolute; z-index: 2;
  right: 9%; top: 26%;
  width: clamp(72px, 21vw, 140px);
  color: var(--yellow);
  transition: transform .25s var(--ease-drop);
  filter: drop-shadow(0 4px 10px rgba(3, 20, 40, .5));
}
.player__btn svg { width: 100%; height: auto; }
.player__btn path { stroke-width: 5px; }
.player__hint { position: absolute; right: 6%; bottom: 10%; font-size: clamp(22px, 6vw, 34px); rotate: -6deg; }
.player__facade:active .player__btn { transform: scale(.92); }
@media (hover: hover) and (pointer: fine) {
  .player__facade:hover .player__btn { transform: scale(1.1) rotate(-6deg); }
}
.trailer__alt { margin: 18px 0 0; text-align: right; font-size: 14px; opacity: .8; }
.trailer__alt a { text-underline-offset: 4px; }

/* 6. LA SERIE -------------------------------------------------------------- */
.serie { position: relative; padding: 60px var(--gutter) 40px; }
.serie__kicker { position: relative; display: inline-block; margin: 0 0 18px; font-size: 44px; rotate: -4deg; }
.serie__kicker .u { position: absolute; left: -4%; right: -6%; bottom: -12px; width: 110%; height: 14px; color: var(--yellow); }

.serie__block { position: relative; }
.serie__lead { margin: 0; font-size: clamp(32px, 9vw, 64px); line-height: .95; }
.chapuza { position: relative; color: var(--yellow); white-space: nowrap; }
.chapuza svg { position: absolute; left: -8%; top: -18%; width: 116%; height: 136%; color: var(--yellow); }

.serie__val { width: 58%; margin: 26px -34px 0 auto; --rot: 4deg; }
.serie__val .tape { top: -12px; left: 34%; }
.name-tag { position: absolute; left: -44%; top: 18%; font-size: 40px; rotate: -8deg; }
.name-tag svg { position: absolute; width: 38px; right: -36px; top: 22px; rotate: 100deg; color: var(--yellow); }

.serie__block--cere { margin-top: 44px; display: flow-root; }
.serie__cere { float: left; width: 46%; margin: 4px 22px 40px -30px; --rot: -5deg; }
.serie__cere .tape { top: -12px; left: 20%; --w: 64px; }
.serie__cere .name-tag { left: 8px; right: auto; top: auto; bottom: -38px; rotate: -4deg; }
.serie__cere .name-tag svg { width: 52px; right: 6px; top: -34px; rotate: 0deg; }
.serie__text { margin: 8px 0 0; font-size: clamp(19px, 5vw, 24px); line-height: 1.34; font-weight: 600; }
.serie__text mark { background: none; color: var(--yellow); font-weight: 800; }

.serie__block--caos { margin-top: 64px; }
.serie__list {
  position: relative;
  margin: 0;
  padding: 24px 18px 22px;
  color: var(--ink);
  font-size: clamp(19px, 5vw, 24px);
  line-height: 1.5;
  font-weight: 600;
  rotate: -.8deg;
  filter: drop-shadow(0 10px 14px rgba(3, 20, 40, .35));
  isolation: isolate;
}
.serie__list::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(transparent 0 35px, rgba(11,93,157,.14) 35px 36px), var(--paper);
  clip-path: polygon(0 1%, 8% 0, 22% 1.2%, 40% .2%, 58% 1.3%, 76% 0, 92% 1%, 100% .3%, 99.4% 99%, 84% 100%, 66% 98.8%, 48% 100%, 30% 98.9%, 12% 100%, .5% 98.8%);
}
.hl {
  background: linear-gradient(transparent 12%, var(--yellow) 12%, var(--yellow) 88%, transparent 88%) no-repeat 0 0 / 0% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding: 0 3px;
  transition: background-size .6s var(--ease);
}
.serie__list.is-visible .hl { background-size: 100% 100%; }
.serie__list.is-visible .hl:nth-of-type(2) { transition-delay: .15s; }
.serie__list.is-visible .hl:nth-of-type(3) { transition-delay: .3s; }
.serie__list.is-visible .hl:nth-of-type(4) { transition-delay: .45s; }
.serie__list.is-visible .hl:nth-of-type(5) { transition-delay: .6s; }
.serie__list.is-visible .hl:nth-of-type(6) { transition-delay: .75s; }

.serie__bag { width: 42%; margin: -16px 0 0 auto; --rot: 7deg; z-index: 2; padding: 5px 5px 18px; }
.serie__bag .tape { top: -12px; right: 18%; --r: 10deg; --w: 60px; }
.serie__bag .cross { position: absolute; left: 12%; top: 4%; width: 70%; height: 44%; color: var(--yellow); }
.serie__bag .cross path { stroke-width: 7px; }

/* carrete */
.carrete { position: relative; margin: 34px calc(var(--gutter) * -1) 0; }
.carrete__note { margin: 0 var(--gutter) 10px; font-size: 28px; rotate: -3deg; }
.carrete__strip {
  list-style: none; margin: 0; padding: 22px var(--gutter);
  display: flex; gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background:
    radial-gradient(circle 4px at 50% 50%, var(--paper) 94%, transparent) 0 6px / 20px 12px repeat-x,
    radial-gradient(circle 4px at 50% 50%, var(--paper) 94%, transparent) 0 calc(100% - 6px) / 20px 12px repeat-x,
    #111;
  rotate: .8deg;
  box-shadow: var(--shadow-print);
}
.carrete__strip::-webkit-scrollbar { display: none; }
.carrete__strip li { flex: 0 0 auto; scroll-snap-align: center; }
.carrete__strip img {
  height: clamp(170px, 48vw, 280px);
  width: auto;
  max-width: none;
  transition: transform .3s var(--ease);
}
.carrete__strip--b { margin-top: 16px; rotate: -1deg; }
.carrete__strip--b img { height: clamp(140px, 40vw, 230px); }
.carrete__note--b { text-align: right; margin-top: 10px; rotate: 2deg; }
.carrete__strip li:active img { transform: scale(.97); }

.serie__final {
  margin: 70px 0 0;
  font-size: clamp(50px, 15vw, 118px);
  line-height: .9;
  color: var(--white);
}
.dress { position: relative; color: var(--yellow); white-space: nowrap; }
.dress svg { position: absolute; left: 0; right: 0; bottom: -.12em; width: 100%; height: .2em; color: var(--yellow); }


/* 6b. FOTOGRAMAS ------------------------------------------------------------ */
.frames { position: relative; padding: 40px 0 10px; }
.frames__title { margin: 0 var(--gutter); font-weight: 400; }
.frames__title .hand { display: inline-block; font-size: 44px; rotate: -4deg; }
.frames__hint { position: absolute; right: var(--gutter); top: 52px; margin: 0; font-size: 22px; rotate: 4deg; }
.frames__strip {
  list-style: none; margin: 14px 0 0; padding: 14px var(--gutter) 26px;
  display: flex; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.frames__strip::-webkit-scrollbar { display: none; }
.frame { position: relative; flex: 0 0 88%; scroll-snap-align: center; }
.frame img { width: 100%; height: auto; box-shadow: var(--shadow-print); }
.frame:nth-child(odd) { rotate: -1deg; }
.frame:nth-child(even) { rotate: 1.2deg; margin-top: 16px; }
.frame__n { position: absolute; z-index: 2; left: 10px; top: -18px; font-size: 32px; }

/* famoso junto a Cere */
.serie__famoso { clear: both; width: 50%; margin: 10px -10px 0 auto; --rot: 6deg; padding: 5px 5px 30px; }
.serie__famoso .tape { top: -12px; left: 28%; --w: 58px; }
.serie__famoso figcaption { position: absolute; left: 6px; right: 4px; bottom: 5px; color: var(--ink); font-size: clamp(15px, 1.4vw, 19px); white-space: nowrap; }
@media (max-width: 900px) { .serie__famoso figcaption { font-size: 18px; } }
.serie__famoso figcaption span { color: #b01818; }

/* montón de fotos del caos */
.pile { position: relative; height: clamp(300px, 92vw, 420px); margin-top: 18px; }
.pile .print { position: absolute; }
.pile__a { width: 44%; right: -4%; top: 0; --rot: 7deg; z-index: 2; padding: 5px 5px 16px; }
.pile__a .tape { top: -12px; right: 18%; --r: 10deg; --w: 60px; }
.pile__a .cross { position: absolute; left: 8%; top: 6%; width: 84%; height: 60%; color: var(--yellow); }
.pile__a .cross path { stroke-width: 7px; }
.pile__b { width: 62%; left: -2%; top: 16%; --rot: -4deg; z-index: 1; }
.pile__c { width: 50%; left: 22%; bottom: 0; --rot: 2deg; z-index: 3; padding: 5px 5px 16px; }
.pile__c .tape { top: -12px; left: 12%; }

/* 6c. RODAJE ---------------------------------------------------------------- */
.rodaje { position: relative; padding: 70px var(--gutter) 30px; }
.rodaje__title { margin: 0; display: flex; align-items: baseline; gap: .08em; font-weight: 400; white-space: nowrap; font-size: clamp(72px, 22vw, 150px); }
.rodaje__title .hand { font-size: .32em; rotate: -8deg; }
.rodaje__title .display { font-size: 1em; }
.rodaje__note { margin: 4px 0 26px 40px; font-size: 26px; rotate: -2deg; }
.rodaje__wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; align-items: start; }
.rodaje__wall .print .tape { top: -12px; left: 30%; --w: 60px; }
.rodaje__r1 { grid-row: span 2; --rot: -3deg; margin-top: 10px; }
.rodaje__r2 { --rot: 3deg; }
.rodaje__r3 { grid-row: span 2; --rot: 2deg; margin-top: -6px; }
.rodaje__r4 { --rot: -2deg; }
.rodaje__r5 { --rot: 4deg; margin-left: -10px; }
.rodaje__r6 { --rot: -4deg; margin-top: -10px; }
.rodaje__r7 { grid-column: span 2; --rot: 1deg; width: 86%; justify-self: center; margin-top: 4px; }

/* 7. TEST ------------------------------------------------------------------ */
.test-teaser { position: relative; padding: 80px var(--gutter) 70px; text-align: center; }
.test-teaser__kicker { margin: 0 0 6px; font-size: 40px; rotate: -3deg; }
.fan {
  position: relative;
  height: clamp(190px, 56vw, 330px);
  margin: 10px auto 0;
  max-width: 520px;
  cursor: pointer;
}
.fan img {
  position: absolute; left: 50%; bottom: 0;
  width: 30%;
  height: auto;
  transform-origin: 50% 120%;
  translate: -50% 0;
  rotate: calc((var(--i) - 3.5) * 2deg);
  box-shadow: var(--shadow-print);
  transition: rotate .7s var(--ease-drop), translate .7s var(--ease-drop);
}
.fan.is-open img { rotate: calc((var(--i) - 3.5) * 9deg); translate: calc(-50% + (var(--i) - 3.5) * 12px) calc(var(--a) * 4px); }
.fan img:nth-child(1) { --i: 0; --a: 3.5; } .fan img:nth-child(2) { --i: 1; --a: 2.5; }
.fan img:nth-child(3) { --i: 2; --a: 1.5; } .fan img:nth-child(4) { --i: 3; --a: .5; }
.fan img:nth-child(5) { --i: 4; --a: .5; }  .fan img:nth-child(6) { --i: 5; --a: 1.5; }
.fan img:nth-child(7) { --i: 6; --a: 2.5; } .fan img:nth-child(8) { --i: 7; --a: 3.5; }
.test-teaser__title { margin: 56px 0 0; font-size: clamp(56px, 17vw, 110px); }
.test-teaser__title span { display: block; white-space: nowrap; }
.test-teaser__title em { font-style: normal; color: var(--yellow); }
.test-teaser__sub { margin: 16px 0 26px; font-family: var(--f-display); font-weight: 800; font-stretch: 80%; font-size: clamp(20px, 5.6vw, 28px); text-transform: uppercase; }

.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 62px; min-width: min(100%, 340px);
  padding: 14px 26px 13px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--f-display); font-weight: 900; font-stretch: 72%;
  font-size: clamp(24px, 6.8vw, 30px); letter-spacing: .02em;
  rotate: -1.5deg;
  filter: drop-shadow(0 6px 10px rgba(3, 20, 40, .35));
  transition: transform .15s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--yellow);
  clip-path: polygon(0 10%, 8% 0, 26% 6%, 51% 1%, 73% 7%, 92% 0, 100% 12%, 99% 88%, 90% 100%, 70% 94%, 47% 100%, 24% 93%, 6% 100%, 1% 88%);
}
.btn__arrow { width: 46px; color: var(--ink); transition: transform .2s var(--ease); }
.btn:active { transform: translateY(2px) scale(.98); }

/* 8. PIE ------------------------------------------------------------------- */
.site-foot {
  position: relative;
  padding: 50px var(--gutter) calc(40px + env(safe-area-inset-bottom));
  background: url("../fomo/textures/aranazos-tiza.png") 0 0 / 700px, var(--blue-night);
  text-align: center;
}
.site-foot::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 16px;
  background: var(--blue);
  clip-path: polygon(0 0, 100% 0, 100% 30%, 90% 80%, 78% 40%, 64% 90%, 50% 35%, 36% 85%, 22% 40%, 10% 90%, 0 45%);
}
.site-foot__logo { width: min(78%, 380px); margin: 0 auto; }
.site-foot__dates { margin: 24px 0 0; font-family: var(--f-display); font-weight: 900; font-stretch: 72%; font-size: clamp(18px, 5vw, 24px); line-height: 1.2; }
.site-foot__dates p { margin: 4px 0; }
.site-foot__nav { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-weight: 800; font-size: 14px; letter-spacing: .12em; }
.site-foot__nav a { text-decoration: none; border-bottom: 2px solid var(--yellow); }

/* 9. TOAST ----------------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 95;
  padding: 10px 18px 9px;
  background: var(--yellow); color: var(--ink);
  font-family: var(--f-hand); font-size: 24px;
  clip-path: polygon(0 8%, 100% 0, 98% 100%, 2% 94%);
  transform: translate(-50%, 160%); opacity: 0;
  transition: transform .3s var(--ease-drop), opacity .2s;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show { transform: translate(-50%, 0) rotate(-2deg); opacity: 1; }

/* 10. APARICIÓN AL HACER SCROLL -------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(26px) rotate(var(--rin, 1.5deg)); transition: opacity .6s var(--ease), transform .8s var(--ease-drop); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .print.reveal { --rin: 6deg; }
.chapuza svg, .dress svg, .serie__kicker .u, .ticket__circle { clip-path: inset(-30% 100% -30% -30%); transition: clip-path .7s var(--ease) .35s; }
.is-visible .chapuza svg, .is-visible .dress svg, .serie__kicker.is-visible .u, .ticket__circle { clip-path: inset(-30% -30% -30% -30%); }
.ticket__circle { transition-delay: 1.3s; }
html:not(.js) .chapuza svg, html:not(.js) .dress svg, html:not(.js) .serie__kicker .u { clip-path: none; }

/* 11. TABLET / ESCRITORIO -------------------------------------------------- */
@media (min-width: 600px) {
  :root { --gutter: 32px; }
  .tickets { max-width: 620px; }
  .serie, .trailer, .test-teaser { max-width: 760px; margin: 0 auto; }
}

@media (min-width: 901px) {
  :root { --gutter: 48px; --head-h: 72px; }

  /* navegación horizontal */
  .menu-btn { display: none; }
  .site-head__logo { width: 110px; }
  .site-nav {
    position: static; inset: auto; padding: 0;
    background: none; color: var(--white);
    clip-path: none; visibility: visible;
    flex-direction: row; align-items: center; gap: 20px;
  }
  .site-nav__list { display: flex; gap: 26px; }
  .site-nav__link { font-size: 19px; letter-spacing: .06em; font-stretch: 78%; gap: 0; padding: 8px 0; }
  .site-nav__link::after {
    content: ""; position: absolute; left: -2px; right: -2px; bottom: 2px; height: 3px;
    background: var(--yellow); border-radius: 3px;
    transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
    rotate: -1.5deg;
  }
  .site-nav__link:hover::after, .site-nav__link:focus-visible::after { transform: scaleX(1); }
  .site-nav__link small { position: absolute; left: 60%; top: -12px; font-size: 17px; color: var(--yellow); white-space: nowrap; opacity: 0; transition: opacity .2s; pointer-events: none; }
  .site-nav__link.is-hot small { opacity: 1; }
  .site-nav__link.is-hot small { background: none; color: var(--yellow); padding: 0; left: -10%; top: auto; bottom: -16px; rotate: -4deg; }
  .site-nav__dates { display: none; }

  .hero__art img {
    aspect-ratio: 2400 / 1350;
    -webkit-mask-image: linear-gradient(to bottom, #000 84%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 84%, transparent 100%);
  }
  .hero__play {
    position: absolute; z-index: 3; left: 5%; top: 17%;
    display: inline-flex; align-items: center; gap: 12px;
    text-decoration: none;
    color: var(--yellow);
    animation: stick .7s var(--ease-drop) 1s both;
  }
  .hero__play-icon { width: clamp(58px, 5vw, 84px); transition: transform .25s var(--ease-drop); }
  .hero__play-icon svg { width: 100%; height: auto; }
  .hero__play-txt { font-family: var(--f-hand); font-size: clamp(30px, 2.8vw, 44px); rotate: -5deg; }
  .hero__play:hover .hero__play-icon { transform: scale(1.1) rotate(-8deg); }

  .tickets {
    position: absolute; left: 3.5%; bottom: -3%;
    margin: 0;
    width: clamp(360px, 34vw, 560px);
    max-width: none;
  }
  .ticket__big { font-size: clamp(30px, 2.8vw, 48px); }

  .trailer { max-width: 1180px; padding-top: 110px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3.2fr); gap: 40px; align-items: start; }
  .trailer__title { flex-direction: column; align-items: flex-start; margin-top: 30px; }
  .trailer__title { font-size: clamp(90px, 9vw, 150px); }
  .trailer__title .display { writing-mode: vertical-rl; rotate: 180deg; }
  .trailer__title .hand { rotate: -10deg; }
  .doodle-arrow { rotate: -30deg; translate: 60px -40px; width: 90px; }
  .trailer__alt { grid-column: 2; margin-top: 4px; }

  .serie { max-width: 1180px; padding-top: 110px; }
  .serie__block--val { display: grid; grid-template-columns: minmax(0, 1fr) 30%; gap: 40px; align-items: start; }
  .serie__lead { font-size: clamp(60px, 5.6vw, 92px); }
  .serie__val { width: 100%; margin: 20px 0 0; }
  .name-tag { left: 8%; top: -62px; font-size: 48px; }
  .serie__val .name-tag svg { right: -40px; top: 26px; rotate: 150deg; }

  .serie__block--cere { display: grid; grid-template-columns: 28% 1fr; gap: 60px; margin-top: 30px; align-items: center; }
  .serie__cere { float: none; width: auto; margin: 0 0 0 6%; }
  .serie__cere .name-tag { left: auto; right: -10px; }
  .serie__text { font-size: clamp(26px, 2.2vw, 34px); max-width: 26em; }

  .serie__block--caos { display: grid; grid-template-columns: minmax(0, 1fr) 26%; gap: 30px; align-items: center; margin-top: 70px; }
  .serie__list { padding: 40px 44px; font-size: clamp(24px, 2vw, 30px); }
  .serie__list::before { background: repeating-linear-gradient(transparent 0 44px, rgba(11,93,157,.14) 44px 45px), var(--paper); }
  .serie__bag { width: 100%; margin: 0; }

  .carrete { margin: 70px calc(50% - 50vw) 0; }
  .carrete__note { margin-left: max(48px, calc(50vw - 540px)); }
  .carrete__strip { padding-left: max(48px, calc(50vw - 540px)); padding-right: 48px; }
  .carrete__strip img { height: 300px; }
  .carrete__strip--b img { height: 240px; }
  .carrete__note--b { margin-right: max(48px, calc(50vw - 540px)); }

  .frames { padding-top: 70px; }
  .frames__title, .frames__hint { margin-left: max(48px, calc(50vw - 540px)); }
  .frames__hint { right: max(48px, calc(50vw - 540px)); top: 82px; }
  .frames__strip { padding-left: max(48px, calc(50vw - 540px)); padding-right: 48px; gap: 30px; }
  .frame { flex-basis: min(62vw, 900px); }
  .serie__block--cere { grid-template-columns: 26% minmax(0, 1fr) 20% !important; gap: 50px !important; }
  .serie__famoso { width: 100%; margin: 40px 0 0; }
  .serie__block--caos { grid-template-columns: minmax(0, 1fr) 42% !important; }
  .pile { height: 480px; margin: 0; }
  .pile__a { width: 46%; }
  .pile__b { width: 72%; top: 22%; }
  .pile__c { width: 54%; left: 30%; }
  .rodaje { max-width: 1180px; margin: 0 auto; padding-top: 120px; }
  .rodaje__title { font-size: clamp(100px, 10vw, 160px); }
  .rodaje__wall { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .rodaje__r1 { grid-row: span 2; }
  .rodaje__r7 { grid-column: span 2; width: 100%; }
  .serie__final { font-size: clamp(90px, 8.6vw, 150px); max-width: 11em; margin-top: 110px; }

  .test-teaser { max-width: 1180px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 50px; align-items: center; text-align: left; padding-top: 120px; }
  .test-teaser__kicker { grid-column: 2; grid-row: 1; }
  .fan { grid-column: 1; grid-row: 1 / span 4; height: 460px; width: 100%; max-width: none; margin: 0; }
  .fan img { width: 34%; }
  .test-teaser__title, .test-teaser__sub, .test-teaser .btn { grid-column: 2; }
  .test-teaser__title { font-size: clamp(70px, 6.4vw, 108px); margin-top: 0; }
  .test-teaser .btn { justify-self: start; }
  .btn:hover { transform: rotate(-1deg) translateY(-2px); }
  .btn:hover .btn__arrow { transform: translateX(6px); }
  .fan:hover img { rotate: calc((var(--i) - 3.5) * 9deg); translate: calc(-50% + (var(--i) - 3.5) * 14px) calc(var(--a) * 5px); }

  .site-foot { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; text-align: left; gap: 20px 60px; padding: 70px max(48px, calc(50vw - 540px)); }
  .site-foot__logo { margin: 0; width: min(100%, 420px); grid-row: span 2; }
  .site-foot__dates { margin: 0; font-size: 30px; }
  .site-foot__nav { justify-content: flex-start; margin: 0; }
}

/* 12. MOVIMIENTO REDUCIDO -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }
}

/* ==========================================================================
   13. PÁGINAS INTERIORES (Personajes, Episodios, Archivo, Prensa, 404)
   ========================================================================== */
/* página actual en el menú */
.site-nav__link[aria-current="page"] span { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 6px; }
.page-inner .site-nav__link[aria-current="page"] span { text-decoration-color: var(--ink); }
@media (min-width: 901px) {
  .site-nav__link[aria-current="page"] span { text-decoration: none; }
  .site-nav__link[aria-current="page"]::after { transform: scaleX(1); }
  .site-nav__link:hover small { opacity: 1; }
}

/* en las páginas interiores la cabecera es sólida desde el principio */
.page-inner .site-head::before { opacity: 1; }
.page-inner .site-head__logo { opacity: 1; }

.soon {
  position: relative;
  min-height: calc(100vh - 40px);
  min-height: calc(100svh - 40px);
  padding: calc(var(--head-h) + 34px) var(--gutter) 60px;
  max-width: 1100px;
  margin: 0 auto;
}
.soon__kicker { margin: 0; font-size: 30px; rotate: -3deg; }
.soon__title { margin: 6px 0 0; font-size: clamp(76px, 24vw, 220px); line-height: .86; }
.soon__title span { display: block; white-space: nowrap; }

.soon__stage { position: relative; margin: 26px 0 0; }
.soon__print { width: 84%; margin: 0 0 0 auto; animation: soon-drop .8s var(--ease-drop) .15s both; }
.soon__print .tape { top: -12px; left: 36%; }
@keyframes soon-drop { from { opacity: 0; transform: translateY(-24px) rotate(6deg) scale(1.05); } }
.soon__stamp {
  position: absolute; left: 4%; bottom: -26px; z-index: 5;
  margin: 0; padding: 14px 26px 16px;
  white-space: nowrap;
  font-size: clamp(34px, 10vw, 56px);
  rotate: -8deg;
  text-shadow: 0 2px 10px rgba(6, 52, 92, .7);
  animation: stick .7s var(--ease-drop) .6s both;
}
.soon__circle { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--yellow); }
.soon__circle path { stroke-width: 5px; }

.soon__note {
  margin: 56px 0 0;
  max-width: 20em;
  font-family: var(--f-display); font-weight: 800; font-stretch: 80%;
  font-size: clamp(22px, 6vw, 32px); line-height: 1.1;
  text-transform: uppercase;
}
.soon__actions .btn { white-space: nowrap; min-width: 0; max-width: 100%; font-size: clamp(20px, 6vw, 30px); }
.soon__actions { margin: 30px 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.soon__link { font-size: 26px; text-decoration: none; rotate: -2deg; }
.soon__link:hover { text-decoration: underline; }

@media (min-width: 901px) {
  .soon { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; column-gap: 60px; align-items: start; padding-top: calc(var(--head-h) + 70px); }
  .soon__stage { align-self: center; }
  .soon__note { margin-top: 36px; }
  .soon__kicker, .soon__title, .soon__note, .soon__actions { grid-column: 1; }
  .soon__stage { grid-column: 2; grid-row: 1 / span 4; margin: 0; }
  .soon__print { width: 100%; }
  .soon__title { font-size: clamp(90px, 9.5vw, 170px); }
}
