/* Todo sale del cómic: sus colores planos y su línea negra. Sin adornos añadidos. */
:root {
  --ink: #111; --amarillo: #ffd21f; --linea: 4px;
  /* alto de viñeta: lo que quepa en pantalla bajo el título */
  --alto: clamp(360px, calc(100dvh - 165px), 760px);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  --bg: #1384fb;
  background: var(--bg);
  transition: background-color .6s ease;
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}
img { display: block; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Encabezado: la franja azul de la tapa, con el título como en el libro */
.hero {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: 18px 28px 16px; background: #2aa5df;
}
.titulo { position: relative; --t: clamp(30px, 4.3vw, 56px); padding-right: calc(var(--t) * .7); }
h1 span {
  display: block; font-size: var(--t); font-weight: 900; font-stretch: 104%;
  text-transform: uppercase; line-height: .98; letter-spacing: -.015em; white-space: nowrap;
  color: #f2c12e;
  -webkit-text-stroke: .075em var(--ink); paint-order: stroke fill;
  /* volumen negro hacia abajo a la izquierda, como en la tapa */
  text-shadow: -.02em .02em 0 var(--ink), -.04em .04em 0 var(--ink), -.06em .06em 0 var(--ink), -.08em .08em 0 var(--ink);
}
.lema {
  position: absolute; left: calc(var(--t) * 3.68); top: calc(var(--t) * 1.04); width: calc(var(--t) * 4.3);
  font-size: max(9px, calc(var(--t) * .2)); color: #fff; font-weight: 800; line-height: 1.12; letter-spacing: -.01em;
}
.lema b { color: #14213d; font-weight: 800; }
.lado { flex: none; display: flex; align-items: center; gap: 22px; }
.autor { color: #f2c12e; font-weight: 800; font-size: 19px; letter-spacing: .1em; -webkit-text-stroke: .5px var(--ink); white-space: nowrap; }
.boton {
  background: var(--amarillo); color: var(--ink); text-decoration: none;
  font-weight: 900; font-stretch: 112%; font-size: clamp(17px, 1.7vw, 22px); text-transform: uppercase;
  padding: 14px 26px;
}
.boton:hover { background: #fff; }
.boton:active { transform: translateY(2px); }

/* La tira horizontal: queda fija en pantalla y se desliza de lado al hacer scroll */
.pin { position: sticky; top: 0; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; }
.vinetas {
  list-style: none; padding: 0;
  display: flex; width: max-content; will-change: transform;
}
.vinetas li { flex: none; }
.vinetas img { height: var(--alto); width: auto; }

.marco { position: relative; }
.flechas {
  position: absolute; inset: 0; pointer-events: none;
  display: flex; align-items: center; justify-content: space-between; padding: 0 18px;
}
.flechas button {
  pointer-events: auto; cursor: pointer;
  width: 58px; height: 58px; border-radius: 50%; border: 0;
  display: grid; place-items: center;
  background: var(--amarillo); color: var(--ink);
  box-shadow: 0 6px 18px rgb(0 0 0 / .28);
  transition: transform .15s ease, background-color .15s ease;
}
.flechas button[hidden] { display: grid; visibility: hidden; }
.flechas button:hover { background: #fff; transform: scale(1.08); }
.flechas button:active { transform: scale(.94); }

/* Video */
.reel { background: #ebbb2f; padding: 70px 16px 0; }
.reel figure { max-width: 660px; margin: 0 auto; }
.tele { position: relative; width: 76%; aspect-ratio: 512 / 599; }
.tele > img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* el video va detrás de la tele y asoma por la pantalla */
.pantalla { position: absolute; left: 8%; top: 36.6%; width: 75%; height: 47.6%; background: #0b0b0b; }
/* efecto de tele de tubo: líneas de barrido, bordes oscuros, brillo del vidrio y un parpadeo leve */
.pantalla::before, .pantalla::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.pantalla::before {
  background: repeating-linear-gradient(to bottom, rgb(0 0 0 / 0) 0 2px, rgb(0 0 0 / .26) 2px 4px);
  mix-blend-mode: multiply; z-index: 1;
}
.pantalla::after {
  background:
    linear-gradient(115deg, rgb(255 255 255 / .16) 0%, rgb(255 255 255 / 0) 32%),
    radial-gradient(ellipse at center, rgb(0 0 0 / 0) 52%, rgb(0 0 0 / .6) 100%);
  z-index: 2;
}
.pantalla video { filter: saturate(1.2) contrast(1.08); }
@media (prefers-reduced-motion: no-preference) {
  .pantalla::before { animation: barrido 9s linear infinite; }
  .pantalla video { animation: parpadeo 4.5s steps(1) infinite; }
}
@keyframes barrido { to { background-position: 0 40px; } }
@keyframes parpadeo { 0%, 100% { opacity: 1; } 47% { opacity: .93; } 49% { opacity: 1; } 82% { opacity: .96; } 84% { opacity: 1; } }
/* más angosto que la pantalla para que el encuadre quede más alejado */
.tele video {
  display: block; width: 74%; height: 100%; margin: 0 auto;
  object-fit: cover; object-position: 50% 34%; cursor: pointer;
}
.tele .play {
  position: absolute; left: 45.5%; top: 60.4%; translate: -50% -50%;
  width: 68px; height: 68px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--amarillo); color: var(--ink);
  box-shadow: 0 6px 18px rgb(0 0 0 / .35); transition: transform .15s ease;
}
.tele .play[hidden] { display: none; }
.tele .play:hover { transform: scale(1.08); }
/* perillas: botones invisibles sobre las de la tele, con su rótulo y flecha blanca al lado */
.perilla, .rotulo { position: absolute; background: none; border: 0; padding: 0; cursor: pointer; }
.p1 { top: 40.6%; } .p2 { top: 53.4%; }
.perilla { left: 93.2%; width: 9.6%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; z-index: 3; transition: box-shadow .15s ease; }
.perilla:hover, .perilla:focus-visible, .tele:has(.rotulo.p1:hover) .perilla.p1, .tele:has(.rotulo.p2:hover) .perilla.p2 { box-shadow: 0 0 0 4px #fff; outline: none; }
.perilla:active { scale: .92; }
.rotulo {
  left: calc(100% + 4px); translate: 0 -50%; display: flex; align-items: center; gap: 7px;
  color: #fff; font: italic 900 clamp(13px, 2.4vw, 19px)/1.05 "Archivo", sans-serif; text-align: left; white-space: nowrap;
}
.rotulo svg { flex: none; width: clamp(28px, 6vw, 46px); height: auto; }
.reel figcaption { margin-top: 14px; font-size: 14px; font-weight: 600; }
.reel figcaption a { color: inherit; text-underline-offset: 3px; }

/* Preventa */
.preventa { background: #ebbb2f;  }
.preventa-in {
  max-width: 760px; margin: 0 auto; padding: 64px 24px 70px;
  display: grid; grid-template-columns: 5fr 6fr; gap: 40px; align-items: center;
}
.preventa img { width: 100%; height: auto; }
h2 { font-size: clamp(32px, 4.4vw, 46px); font-weight: 900; line-height: 1.02; letter-spacing: -.01em; }
.lead { font-size: 21px; font-weight: 600; margin-top: 14px; }
.donde { margin-top: 22px; font-size: 24px; font-weight: 900; font-stretch: 112%; line-height: 1.25; }

/* Pie */
footer { padding: 30px 28px 34px; background: var(--ink); color: #9a9a9a; font-size: 12px; }
.pie { max-width: 1040px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.dallio { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; opacity: .85; transition: opacity .15s ease; }
.dallio:hover { opacity: 1; }
.dallio img { width: auto; height: 28px; }
.corda { display: block; opacity: .85; transition: opacity .15s ease; }
.corda:hover { opacity: 1; }
.corda img { width: auto; height: 24px; }
.nota { max-width: 1040px; margin: 22px auto 0; padding-top: 16px; border-top: 1px solid #2c2c2c; }

@media (max-width: 700px) {
  .hero { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px 16px 16px; }
  .titulo { --t: clamp(30px, 10.4vw, 46px); padding-right: 0; }
  .lado { flex-direction: column; align-items: stretch; gap: 10px; }
  .boton { text-align: center; font-size: 19px; }
  /* en celular se avanza con el dedo; las flechas taparían el dibujo */
  .flechas { display: none; }
  /* una viñeta por pantalla */
  .vinetas img { width: 100vw; height: auto; }
  .preventa-in { grid-template-columns: 1fr; gap: 26px; padding: 44px 16px 54px; }
  .tele { width: 70%; }
  .rotulo { white-space: normal; max-width: 27vw; gap: 4px; }
  .preventa figure { max-width: 300px; }
  footer { padding: 26px 16px 30px; }
  .dallio { font-size: 12px; gap: 8px; }
  .dallio img { height: 24px; }
  .corda img { height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { transition: none; }
}
