@charset "UTF-8";
/* ===================== VARIABLES ===================== */
:root {
  /* Colores tomados del diseño */
  --c-black: #000000;
  --c-navy: #181433;          /* lado derecho del degradado del header */
  --c-cyan: #19d8f6;          /* botón "Separar depa" */
  --c-cyan-light: #8cebfa;    /* borde interior del botón */
  --c-cyan-logo: #00b4d4;
  --c-red-logo: #e4224d;
  --c-pink-glow: #ff3fb4;     /* brillo rosado del menú y del botón */
  --c-ink: #0a0a18;           /* texto del botón */
  --c-white: #ffffff;

  --ff-display: "Nulshock", "Arial Black", sans-serif;
  --ff-base: "Ageo", system-ui, sans-serif;
  --ff-pixel: "Pikselator Wide", monospace;

  --header-h: 96px;
  --gutter: 40px;
}

/* ===================== RESET ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: var(--header-h); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--ff-base);
  background: var(--c-black);
  color: var(--c-white);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

/* ===================== HEADER ===================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: linear-gradient(90deg, var(--c-black) 0%, #05050c 35%, #110f27 70%, var(--c-navy) 100%);
}
.header__inner {
  max-width: 1280px;
  height: 100%;
  margin-inline: auto;
  padding-inline: 43px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.header__logo img { width: 291px; height: auto; }

/* Nav */
.header__nav { display: flex; align-items: center; gap: 32px; }
.nav__list { display: flex; align-items: center; gap: 44px; }
.nav__link {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--c-white);
  text-shadow:
    0 0 1px rgba(255, 63, 180, .9),
    0 0 4px rgba(255, 63, 180, .45);
}
.nav__link:hover,
.nav__link.is-active { color: var(--c-cyan); }

/* Botón "Separar depa" */
.btn-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 28px;
  font-family: var(--ff-base);
  font-weight: 900;
  font-size: 21px;
  line-height: 1;
  color: var(--c-ink);
  background: var(--c-cyan);
  border-radius: 6px;
  white-space: nowrap;
  box-shadow:
    0 0 4px rgba(255, 63, 180, .7),
    0 0 14px rgba(255, 63, 180, .45);
}
.btn-cta::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1.5px solid var(--c-cyan-light);
  border-radius: 4px;
  pointer-events: none;
}

/* Toggle móvil */
.header__toggle {
  display: none;
  width: 40px; height: 40px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: flex-end; gap: 6px;
}
.header__toggle span {
  display: block; width: 26px; height: 3px; border-radius: 2px;
  background: var(--c-white);
  box-shadow: 0 0 6px rgba(255, 63, 180, .7);
}
.header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1100px) {
  .header__logo img { width: 230px; }
  .header__nav { gap: 24px; }
  .nav__list { gap: 28px; }
  .nav__link { font-size: 13px; }
  .btn-cta { font-size: 18px; padding: 0 22px; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .header__inner { padding-inline: 16px; }
  .header__logo img { width: 180px; }
  .header__toggle { display: flex; }

  .header__nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    gap: 28px;
    padding: 32px 16px 40px;
    background: linear-gradient(180deg, #05050c 0%, var(--c-navy) 100%);
    border-bottom: 1px solid rgba(255, 63, 180, .5);
    display: none;
  }
  .header__nav.is-open { display: flex; }

  .nav__list { flex-direction: column; gap: 24px; }
  .nav__link { font-size: 16px; }
  .btn-cta { font-size: 20px; }
}

/* =====================================================================
   HERO
   Diseño base 1280 × 1040. Todas las medidas usan --u (1 px de diseño),
   así el hero escala proporcionalmente en pantallas más chicas.
   ===================================================================== */
.hero {
  --u: min(1px, 100vw / 1280);
  --c-hero-pink: #e73282;
  --c-shadow-cyan: #64aec4;
  --c-shadow-pink: #c61f6e;

  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(90deg, #000 0%, #020206 30%, #0b0b1c 60%, #15122e 100%);
}

/* ---------- Fondo: scanlines + piso de grilla ---------- */
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__bg::before {                      /* líneas horizontales */
  content: "";
  position: absolute;
  inset: 0 0 calc(198 * var(--u)) 0;
  background: repeating-linear-gradient(180deg,
    rgba(95, 100, 190, .10) 0 calc(3 * var(--u)),
    transparent calc(3 * var(--u)) calc(10 * var(--u)));
}
.hero__bg::after {                       /* resplandores cerca del horizonte */
  content: "";
  position: absolute;
  inset: 0 0 calc(198 * var(--u)) 0;
  background:
    radial-gradient(60% 30% at 8% 100%, rgba(120, 30, 110, .35), transparent 70%),
    radial-gradient(60% 30% at 95% 100%, rgba(30, 80, 150, .35), transparent 70%),
    radial-gradient(28% 14% at 42% 20%, rgba(40, 50, 160, .35), transparent 70%);
}
.hero__floor {
  position: absolute;
  inset: auto 0 0 0;
  height: calc(198 * var(--u));
  overflow: hidden;
  perspective: calc(420 * var(--u));
  perspective-origin: 50% 0;
  background: linear-gradient(90deg, #2c1334 0%, #1d1f3c 50%, #1a3558 100%);
  border-bottom: 2px solid rgba(70, 140, 210, .7);
}
.hero__grid {
  --cell: calc(36 * var(--u));
  position: absolute;
  left: -200%; right: -200%; top: 0;
  height: 600%;
  transform-origin: 50% 0;
  transform: rotateX(76deg);
  background: linear-gradient(90deg, #c454d4 0%, #9a8ee0 50%, #58b4ec 100%);
  -webkit-mask-image:
    repeating-linear-gradient(90deg, #000 0 2px, transparent 2px var(--cell)),
    repeating-linear-gradient(180deg, #000 0 2px, transparent 2px var(--cell));
          mask-image:
    repeating-linear-gradient(90deg, #000 0 2px, transparent 2px var(--cell)),
    repeating-linear-gradient(180deg, #000 0 2px, transparent 2px var(--cell));
  opacity: .9;
}
.hero__floor::after {                    /* el horizonte se funde en oscuro */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0e0c1e 0%, rgba(14, 12, 30, .85) 18%, rgba(14, 12, 30, .3) 45%, transparent 70%);
}

/* ---------- Escenario ---------- */
.hero__stage {
  position: relative;
  width: calc(1280 * var(--u));
  height: calc(1040 * var(--u));
  margin-inline: auto;
}

/* ---------- Titular ---------- */
.hero__title {
  --hs: 1;                               /* escala del titular (móvil la reduce) */
  position: absolute;
  top: calc(158 * var(--u));
  left: 0; right: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: calc(27 * var(--u) * var(--hs));
  row-gap: calc(18 * var(--u));
  font-weight: 700;
}
.hero__word {
  font-family: var(--ff-display);
  font-size: calc(63.5 * var(--u) * var(--hs));
  line-height: 1;
  text-transform: uppercase;
  color: var(--c-white);
  text-shadow:
    calc(-2.5 * var(--u)) calc(-2.5 * var(--u)) 0 var(--c-shadow-cyan),
    calc(2.5 * var(--u)) calc(2.5 * var(--u)) 0 var(--c-shadow-pink);
}
.hero__word--sm { font-size: calc(53.4 * var(--u) * var(--hs)); }

/* Ángulo animable del borde giratorio */
@property --prize-angle {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0deg;
}
@keyframes prizeSpin { to { --prize-angle: 360deg; } }
/* El pulso va en un contenedor externo para no alterar el brillo del borde */
.hero__prize-pulse {
  display: inline-flex;
  animation: prizePulse 1.6s ease-in-out infinite;
}
@keyframes prizePulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.07); }
}

.hero__prize {
  --prize-angle: 0deg;
  --prize-ring: conic-gradient(from var(--prize-angle),
    #4b63fe 0deg, #40dce9 120deg, #e63c8c 240deg, #4b63fe 360deg);
  position: relative;
  display: inline-flex;
  align-items: center;                   /* "S/" centrado verticalmente con el 50,000 */
  justify-content: center;               /* texto centrado en la caja */
  width: calc(334 * var(--u) * var(--hs));
  height: calc(105 * var(--u) * var(--hs));
  padding: calc(var(--prize-pt, 4) * var(--u) * var(--hs)) calc(6 * var(--u) * var(--hs)) 0 0;
  border: calc(4 * var(--u) * var(--hs)) solid transparent;
  border-radius: calc(18 * var(--u) * var(--hs));
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--prize-ring) border-box;
  animation: prizeSpin 4s linear infinite;
  font-family: "Aktiv Grotesk", var(--ff-base);
  font-style: italic;
  font-weight: 800;
  color: #000;
  line-height: 1;
  --ps: calc(-2.5 * var(--u) * var(--hs)) calc(-2.5 * var(--u) * var(--hs)) 0 #8ccfe2,
        calc(3.5 * var(--u) * var(--hs)) calc(2.5 * var(--u) * var(--hs)) 0 #e8489a;
}
.hero__prize::before {                  /* brillo que gira junto con el borde */
  content: "";
  position: absolute;
  inset: calc(-6 * var(--u));
  z-index: -1;
  border-radius: inherit;
  background: var(--prize-ring);
  filter: blur(calc(16 * var(--u)));
  opacity: .55;
  pointer-events: none;
}
.hero__prize-cur { position: relative; top: calc(2 * var(--u) * var(--hs)); font-size: calc(43 * var(--u) * var(--hs)); text-shadow: var(--ps); margin-right: calc(3 * var(--u)); }
.hero__prize-num { font-size: calc(72 * var(--u) * var(--hs)); letter-spacing: calc(-1 * var(--u)); text-shadow: var(--ps); }
.hero__prize-ast {
  font-size: calc(42 * var(--u) * var(--hs));
  align-self: flex-start;
  margin-left: calc(-2 * var(--u));
  text-shadow: var(--ps);
}

/* ---------- Marca: logo games + retro + íconos ---------- */
.hero__brand {
  position: absolute;
  left: calc(85 * var(--u));
  top: calc(366 * var(--u));
  width: calc(540 * var(--u));
  height: calc(460 * var(--u));
}
.hero__brand img { mix-blend-mode: normal; }   /* logo y RETRO con transparencia real: tapan las líneas del fondo */
.hero__icon { mix-blend-mode: screen; }       /* provisional: se mezcla el contenedor animado */
.hero__icon img { mix-blend-mode: normal; }
.hero__logo-games { position: absolute; left: calc(28.5 * var(--u)); top: calc(8.5 * var(--u)); width: calc(486.4 * var(--u)); height: auto; }   /* SVG */
.hero__retro { position: absolute; left: calc(7.4 * var(--u)); top: calc(176.4 * var(--u)); width: calc(522.1 * var(--u)); height: auto; }   /* SVG */

.hero__icons { position: absolute; inset: 0; }
.hero__icon { position: absolute; }
.hero__icon img { width: 100%; height: auto; }
.hero__icon--pacman { left: calc(100 * var(--u)); top: calc(366 * var(--u)); width: calc(83 * var(--u)); }
.hero__icon--house  { left: calc(237 * var(--u)); top: calc(390 * var(--u)); width: calc(66 * var(--u)); }
.hero__icon--key    { left: calc(349 * var(--u)); top: calc(394 * var(--u)); width: calc(60 * var(--u)); }
.hero__dot {
  position: absolute;
  top: calc(423.8 * var(--u));
  width: calc(12 * var(--u));
  height: calc(12 * var(--u));
  margin: calc(-6 * var(--u)) 0 0 calc(-6 * var(--u));
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 calc(8 * var(--u)) rgba(255, 255, 255, .6);
}
.hero__dot--1 { left: calc(206.8 * var(--u)); }
.hero__dot--2 { left: calc(326.3 * var(--u)); }
.hero__dot--3 { left: calc(420.6 * var(--u)); }

/* ---------- Conductores + CTA ---------- */
.hero__hosts {
  position: absolute;
  left: calc(688 * var(--u));
  top: calc(303 * var(--u));
  width: calc(471 * var(--u));
  height: calc(545 * var(--u));
}
.hero__host { position: absolute; margin: 0; }
.hero__host img { width: 100%; height: auto; }
.hero__host--fernando { left: 0; top: 0; width: calc(276 * var(--u)); z-index: 1; }
.hero__host--susy { left: calc(190 * var(--u)); top: calc(19 * var(--u)); width: calc(281 * var(--u)); z-index: 2; }
.hero__host figcaption {
  position: absolute;
  font-family: var(--ff-base);
  font-style: italic;
  font-weight: 600;
  font-size: calc(25.6 * var(--u));
  line-height: calc(26 * var(--u));
  color: #fff;
  text-shadow: 0 calc(2 * var(--u)) calc(6 * var(--u)) rgba(0, 0, 0, .6);
}
.hero__host--fernando figcaption { left: calc(96 * var(--u)); top: calc(349.6 * var(--u)); }
.hero__host--susy figcaption { left: calc(115.2 * var(--u)); top: calc(330.9 * var(--u)); }

.hero__hosts .btn-play {
  position: absolute;
  left: calc(45 * var(--u));
  top: calc(460.5 * var(--u));
  z-index: 3;
}

/* ---------- Botón rosa "Quiero jugar" (reutilizable) ----------
   Tamaño con variables: --bw ancho, --bh alto, --bf tamaño de letra, --bi margen del borde interior */
.btn-play {
  --bw: 379; --bh: 85; --bf: 44.8; --bi: 13;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: calc(var(--bw) * var(--u));
  height: calc(var(--bh) * var(--u));
  padding-top: calc(var(--bh) * 0.05 * var(--u));   /* centrado óptico: el cuerpo de las letras al medio del borde interior */
  border-radius: calc(16 * var(--u));
  background: #e73282;
  box-shadow:
    0 0 calc(6 * var(--u)) rgba(231, 50, 130, .8),
    0 0 calc(24 * var(--u)) rgba(231, 50, 130, .45);
  font-family: var(--ff-base);
  font-weight: 900;
  font-size: calc(var(--bf) * var(--u));
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}
/* Pulso de todos los botones "Quiero jugar": crece y brilla (usa `scale` para no chocar con otros transform) */
.btn-play { animation: btnPulse 1.6s ease-in-out infinite; }
@keyframes btnPulse {
  0%, 100% {
    scale: 1;
    box-shadow:
      0 0 calc(6 * var(--u)) rgba(231, 50, 130, .8),
      0 0 calc(24 * var(--u)) rgba(231, 50, 130, .45);
  }
  50% {
    scale: 1.06;
    box-shadow:
      0 0 calc(10 * var(--u)) rgba(231, 50, 130, 1),
      0 0 calc(40 * var(--u)) rgba(231, 50, 130, .7);
  }
}
.btn-play:hover { animation-duration: .8s; }
@media (prefers-reduced-motion: reduce) { .btn-play { animation: none; } }

.btn-play::before {
  content: "";
  position: absolute;
  inset: calc(var(--bi) * var(--u));
  border: calc(2 * var(--u)) solid #fff;
  border-radius: calc(10 * var(--u));
  box-shadow: inset 0 0 calc(10 * var(--u)) rgba(255, 140, 190, .55), 0 0 calc(6 * var(--u)) rgba(255, 140, 190, .5);
  pointer-events: none;
}

/* ---------- HERO móvil (sin diseño mobile: se apila el contenido) ---------- */
@media (max-width: 767px) {
  .hero { --u: calc((100vw - 32px) / 540); }

  .hero__stage {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: calc(var(--header-h) + 32px) 16px calc(150 * var(--u));
  }
  .hero__title,
  .hero__brand,
  .hero__hosts { position: relative; left: auto; top: auto; right: auto; }

  .hero__title { --hs: .86; width: 100%; }
  .hero__brand { margin-top: calc(48 * var(--u)); }
  .hero__hosts { margin-top: calc(32 * var(--u)); }
}

/* =====================================================================
   ¿CÓMO JUGAR?
   Diseño base 1280 de ancho (y 1040 → 1900 en el PDF). Mismo sistema --u.
   ===================================================================== */
.howto {
  --u: min(1px, 100vw / 1280);
  --c-card-border: #e8308a;
  --c-card-bg: #1c1842;
  --c-level: #2ee0e6;

  position: relative;
  overflow: hidden;
  background:
    radial-gradient(45% 40% at 0% 0%, rgba(4, 18, 30, .9), transparent 70%),
    radial-gradient(50% 45% at 0% 100%, rgba(80, 25, 75, .55), transparent 70%),
    radial-gradient(55% 50% at 100% 100%, rgba(40, 55, 110, .5), transparent 70%),
    linear-gradient(90deg, #121328 0%, #1b1840 50%, #1d2045 100%);
}
.howto__stage {
  position: relative;
  width: calc(1280 * var(--u));
  margin-inline: auto;
  padding: calc(100 * var(--u)) 0 calc(110 * var(--u));
}

/* ---------- Encabezado ---------- */
.howto__head {
  position: relative;
  height: calc(160 * var(--u));         /* 1140 → 1300 en el diseño */
}
.howto__title {
  position: absolute;
  left: calc(77.5 * var(--u));
  top: calc(79.4 * var(--u));
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: calc(40 * var(--u));
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  text-shadow:
    calc(-1.5 * var(--u)) calc(-1.5 * var(--u)) 0 #64aec4,
    calc(2 * var(--u)) calc(2 * var(--u)) 0 #c61f6e;
}
.howto__mascot {
  position: absolute;
  left: calc(473.1 * var(--u));
  top: calc(27.9 * var(--u));
  width: calc(113.6 * var(--u));
  height: auto;
}
.howto__lines {
  position: absolute;
  left: calc(560 * var(--u));
  top: calc(-10 * var(--u));
  width: calc(660 * var(--u));
  height: calc(140 * var(--u));
  overflow: visible;
}
.howto__line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.howto__line--pink { stroke: #f0365e; filter: drop-shadow(0 0 3px rgba(240, 54, 94, .9)); }
.howto__line--cyan { stroke: #2ad6f0; filter: drop-shadow(0 0 3px rgba(42, 214, 240, .9)); }
.howto__play {
  fill: rgba(40, 18, 55, .55);
  stroke: #f0368e;
  stroke-width: 6;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(240, 54, 142, .9));
}
.howto__play-inner {
  fill: none;
  stroke: rgba(255, 255, 255, .85);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

/* ---------- Tarjetas ---------- */
.howto__cards {
  display: grid;
  grid-template-columns: repeat(3, calc(340 * var(--u)));
  column-gap: calc(58.5 * var(--u));
  margin: calc(24 * var(--u)) 0 0 calc(70 * var(--u));
  list-style: none;
}
.howto__card {
  min-height: calc(304 * var(--u));
  padding: calc(27 * var(--u)) calc(8 * var(--u)) calc(24 * var(--u)) calc(21.7 * var(--u));
  background: var(--c-card-bg);
  border: calc(3.5 * var(--u)) solid var(--c-card-border);
  border-radius: calc(22 * var(--u));
  box-shadow:
    0 0 calc(10 * var(--u)) rgba(232, 48, 138, .45),
    0 0 calc(45 * var(--u)) rgba(232, 48, 138, .22);
}
.howto__level {
  font-family: var(--ff-pixel);
  font-size: calc(25 * var(--u));
  line-height: 1;
  text-transform: uppercase;
  color: var(--c-level);
}
.howto__card-title {
  margin-top: calc(27 * var(--u));
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: calc(30.1 * var(--u));
  line-height: 1.2;
  text-transform: uppercase;
  color: #fff;
}
.howto__card-title--lg { font-size: calc(35.9 * var(--u)); }
.howto__card-title--sm { font-size: calc(26 * var(--u)); margin-top: calc(28 * var(--u)); }
.howto__card-text {
  margin-top: calc(28 * var(--u));
  font-family: var(--ff-base);
  font-weight: 800;
  font-size: calc(26 * var(--u));
  line-height: calc(31.2 * var(--u));
  color: #fff;
}

/* ---------- Are you ready...? ---------- */
.howto__ready {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: calc(20 * var(--u)) calc(37 * var(--u));
  margin-top: calc(84 * var(--u));
}
.howto__ready-text {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: calc(47.8 * var(--u));
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  text-shadow:
    calc(1 * var(--u)) calc(2.5 * var(--u)) 0 #c83c94,
    calc(3 * var(--u)) calc(5 * var(--u)) 0 #4b6ef5,
    calc(5 * var(--u)) calc(7.5 * var(--u)) 0 #22bfdc;
}
.howto__btn { --bw: 348; --bh: 78; --bf: 39.2; --bi: 12; }

/* ---------- Animaciones ligeras del encabezado ----------
   Ciclo de 2.8 s: el destello recorre las líneas (0–70%) y el play late al recibirlo (70–90%).
   La mascota flota con su propio ritmo. */
.howto__head { --howto-cycle: 2.8s; }

.howto__mascot {
  transform-origin: 50% 90%;
  animation: mascotFloat 3.2s ease-in-out infinite;
}
@keyframes mascotFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(calc(-7 * var(--u))) rotate(3deg); }
}

.howto__spark {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 10 110;
  stroke-dashoffset: 10;
  animation: sparkRun var(--howto-cycle) ease-in infinite;
}
.howto__spark--pink { stroke: #ffd2e0; filter: drop-shadow(0 0 4px #f0365e) drop-shadow(0 0 8px #f0365e); }
.howto__spark--cyan { stroke: #d6fbff; filter: drop-shadow(0 0 4px #2ad6f0) drop-shadow(0 0 8px #2ad6f0); animation-delay: .12s; }
@keyframes sparkRun {
  0%        { stroke-dashoffset: 10;   opacity: 0; }
  5%        { opacity: 1; }
  66%       { opacity: 1; }
  70%, 100% { stroke-dashoffset: -100; opacity: 0; }
}

.howto__play-group {
  transform-box: fill-box;
  transform-origin: center;
  animation: playPulse var(--howto-cycle) ease-out infinite;
}
@keyframes playPulse {
  0%, 68%   { transform: scale(1);    filter: brightness(1); }
  76%       { transform: scale(1.15); filter: brightness(1.5) drop-shadow(0 0 10px rgba(240, 54, 142, .9)); }
  90%, 100% { transform: scale(1);    filter: brightness(1); }
}

@media (prefers-reduced-motion: reduce) {
  .howto__mascot, .howto__spark, .howto__play-group { animation: none; }
  .howto__spark { display: none; }
}

/* ---------- ¿CÓMO JUGAR? móvil ---------- */
@media (max-width: 767px) {
  .howto { --u: min(1.1px, (100vw - 32px) / 340); }
  .howto__stage { width: 100%; padding: 56px 16px 64px; }

  .howto__head {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(10 * var(--u));
  }
  .howto__title,
  .howto__mascot { position: static; }
  .howto__title { font-size: calc(24 * var(--u)); }
  .howto__mascot { width: calc(64 * var(--u)); }
  .howto__lines { display: none; }

  .howto__cards {
    grid-template-columns: calc(340 * var(--u));
    justify-content: center;
    row-gap: calc(28 * var(--u));
    margin: calc(28 * var(--u)) 0 0;
  }
  .howto__card { min-height: 0; }

  .howto__ready { flex-direction: column; margin-top: calc(48 * var(--u)); }
  .howto__ready-text { font-size: calc(26 * var(--u)); }
  .howto__btn { --bw: 300; --bh: 70; --bf: 34; --bi: 11; }
}

/* =====================================================================
   HIGH SCORE
   Diseño: sección 1900 → 2680, panel 1033 × 660. Mismo sistema --u.
   ===================================================================== */
.hs {
  --u: min(1px, 100vw / 1280);
  --c-hs-cyan: #2ee0e6;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(40% 35% at 0% 0%, rgba(90, 30, 90, .55), transparent 70%),
    radial-gradient(45% 45% at 100% 100%, rgba(20, 60, 100, .5), transparent 70%),
    linear-gradient(90deg, #22193f 0%, #1f2148 50%, #1d2a4f 100%);
}
.hs__stage {
  position: relative;
  width: calc(1280 * var(--u));
  margin-inline: auto;
  padding: calc(17 * var(--u)) 0 calc(103 * var(--u));
}

/* Aro neón decorativo (izquierda) */
.hs__ring {
  position: absolute;
  left: calc(38 * var(--u));
  top: calc(151 * var(--u));
  width: calc(64 * var(--u));
  height: calc(64 * var(--u));
  border: calc(6 * var(--u)) solid #f0365e;
  border-radius: 50%;
  box-shadow:
    0 0 calc(8 * var(--u)) rgba(240, 54, 94, .9),
    0 0 calc(22 * var(--u)) rgba(240, 54, 94, .5),
    inset 0 0 calc(8 * var(--u)) rgba(240, 54, 94, .8);
}

/* ---------- Panel con líneas tipo CRT ---------- */
.hs__panel {
  position: relative;
  width: calc(1033 * var(--u));
  min-height: calc(660 * var(--u));
  margin-inline: auto;
  padding: calc(62 * var(--u)) 0 calc(60 * var(--u));
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: calc(40 * var(--u));
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(90deg, #35295a 0%, #2a2c5e 50%, #1b3358 100%);
  box-shadow: inset 0 0 calc(40 * var(--u)) rgba(0, 0, 0, .55);
}
.hs__panel::before {                     /* franjas oscuras: 2u claras / 6u oscuras */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(180deg,
    transparent 0 calc(2 * var(--u)),
    rgba(8, 6, 20, .62) calc(2 * var(--u)) calc(8 * var(--u)));
  background-size: 100% calc(8 * var(--u));
}

.hs__title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: calc(53.7 * var(--u));
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  text-shadow:
    calc(-2 * var(--u)) calc(-2 * var(--u)) 0 #64aec4,
    calc(2.5 * var(--u)) calc(2.5 * var(--u)) 0 #c61f6e;
}
.hs__label,
.hs__start {
  font-family: var(--ff-pixel);
  font-size: calc(31.8 * var(--u));
  line-height: 1;
  text-transform: uppercase;
  color: var(--c-hs-cyan);
  text-shadow: 0 0 calc(8 * var(--u)) rgba(46, 224, 230, .45);
}
.hs__label { margin-top: calc(44.8 * var(--u)); }

/* ---------- Caja del premio (borde giratorio + pulso, como el hero) ---------- */
.hs__box-pulse {
  display: flex;
  margin-top: calc(18.5 * var(--u));
  animation: hsPulse 1.6s ease-in-out infinite;
}
.hs__box {
  --prize-angle: 0deg;
  --prize-ring: conic-gradient(from var(--prize-angle),
    #4b63fe 0deg, #40dce9 120deg, #e63c8c 240deg, #4b63fe 360deg);
  position: relative;
  width: calc(538 * var(--u));
  height: calc(182 * var(--u));
  border: calc(5 * var(--u)) solid transparent;
  border-radius: calc(22 * var(--u));
  background:
    linear-gradient(#000, #000) padding-box,
    var(--prize-ring) border-box;
  animation: prizeSpin 4s linear infinite;
}
.hs__box::before {                       /* brillo que gira con el borde */
  content: "";
  position: absolute;
  inset: calc(-8 * var(--u));
  z-index: -1;
  border-radius: inherit;
  background: var(--prize-ring);
  filter: blur(calc(20 * var(--u)));
  opacity: .5;
  pointer-events: none;
}
@keyframes hsPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}

.hs__amount {
  position: absolute;
  left: calc(29.7 * var(--u));
  top: calc(28 * var(--u));
  display: flex;
  align-items: baseline;
  font-family: "Aktiv Grotesk", var(--ff-base);
  font-style: italic;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  color: #fff;
  --as: calc(-4.4 * var(--u)) calc(-4.3 * var(--u)) 0 #7cc3d6,
        calc(5.2 * var(--u)) calc(4.4 * var(--u)) 0 #c8287a;
}
.hs__amount-cur { font-size: calc(66.9 * var(--u)); margin-right: calc(4 * var(--u)); text-shadow: var(--as); }
.hs__amount-num { font-size: calc(111.8 * var(--u)); letter-spacing: calc(-1.5 * var(--u)); text-shadow: var(--as); }
.hs__amount-ast { font-size: calc(65.2 * var(--u)); align-self: flex-start; text-shadow: var(--as); }
.hs__terms {
  position: absolute;
  z-index: 1;
  right: calc(74 * var(--u));
  top: calc(136 * var(--u));
  font-family: "Myriad Variable Concept", var(--ff-base);
  font-style: italic;
  font-weight: 350;
  font-stretch: 70%;                     /* Condensed Italic, como en el PDF */
  font-size: calc(18.1 * var(--u));
  line-height: 1;
  white-space: nowrap;
  color: #fff;
}
.hs__terms a { color: inherit; text-decoration: none; }
.hs__terms a:hover,
.hs__terms a:focus-visible { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Monedas, destellos y mascota ---------- */
.hs__coins { position: absolute; pointer-events: none; }
.hs__coins img { width: 100%; height: auto; }
.hs__coins--left  { left: calc(-50 * var(--u)); top: calc(-93 * var(--u)); width: calc(115 * var(--u)); }
.hs__coins--right { left: calc(480 * var(--u)); top: calc(72 * var(--u)); width: calc(145 * var(--u)); }

.hs__coins--left  { animation: coinFloat 2.6s ease-in-out infinite; }
.hs__coins--right { animation: coinFloat 2.6s ease-in-out -1.3s infinite; }
@keyframes coinFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(calc(-8 * var(--u))) rotate(-4deg); }
}

.hs__spark {                             /* destello de 4 puntas */
  position: absolute;
  left: calc(var(--x) * var(--u));
  top: calc(var(--y) * var(--u));
  width: calc(26 * var(--u));
  height: calc(26 * var(--u));
  margin: calc(-13 * var(--u)) 0 0 calc(-13 * var(--u));
  background: #fff;
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
  filter: drop-shadow(0 0 calc(4 * var(--u)) #fff);
  transform: scale(0);
  animation: sparkTwinkle 2s ease-in-out var(--d) infinite;
}
@keyframes sparkTwinkle {
  0%, 100% { transform: scale(0) rotate(0deg); opacity: 0; }
  40%      { transform: scale(1.1) rotate(45deg); opacity: 1; }
  70%      { transform: scale(.4) rotate(90deg); opacity: .6; }
}

.hs__mascot {
  position: absolute;
  left: calc(486 * var(--u));
  top: calc(-87 * var(--u));
  width: calc(131 * var(--u));
  height: auto;
  transform-origin: 50% 100%;
  animation: mascotSurprise 3.5s ease-in-out infinite;
}
/* Quieta → se agacha → salta sorprendida → rebota → se balancea */
@keyframes mascotSurprise {
  0%, 55%   { transform: translateY(0) scale(1, 1) rotate(0deg); }
  60%       { transform: translateY(0) scale(1.08, .9) rotate(0deg); }
  68%       { transform: translateY(calc(-18 * var(--u))) scale(.95, 1.06) rotate(-4deg); }
  76%       { transform: translateY(0) scale(1.05, .95) rotate(2deg); }
  82%       { transform: translateY(calc(-5 * var(--u))) scale(1) rotate(-2deg); }
  88%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
}

/* ---------- Cuenta regresiva ---------- */
.hs__start {
  margin-top: calc(18.9 * var(--u));
  animation: startBlink 1.2s steps(1, end) infinite;
}
@keyframes startBlink {
  0%, 70% { opacity: 1; }
  70.01%, 100% { opacity: .25; }
}
.hs__counter {
  --cu: 1;                               /* escala de las celdas (móvil la aumenta) */
  display: flex;
  gap: calc(47.5 * var(--u) * var(--cu));
  margin-top: calc(11.3 * var(--u));
  list-style: none;
  perspective: calc(400 * var(--u));
}
.hs__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(105 * var(--u) * var(--cu));
  height: calc(99 * var(--u) * var(--cu));
  padding-top: calc(13 * var(--u) * var(--cu));
  border-radius: calc(6 * var(--u) * var(--cu));
  background: var(--c-hs-cyan);
  box-shadow: 0 0 calc(14 * var(--u)) rgba(46, 224, 230, .35);
  color: #000;
}
.hs__num {
  display: block;
  font-family: var(--ff-base);
  font-weight: 900;
  font-size: calc(59 * var(--u) * var(--cu));
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transform-origin: 50% 50%;
}
.hs__num.is-flip { animation: numFlip .5s ease-out; }
@keyframes numFlip {
  0%   { transform: rotateX(-90deg); opacity: 0; }
  60%  { transform: rotateX(15deg);  opacity: 1; }
  100% { transform: rotateX(0deg); }
}
.hs__unit {
  margin-top: calc(5 * var(--u) * var(--cu));
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: calc(13.5 * var(--u) * var(--cu));   /* cabe "SEGUNDOS" */
  line-height: 1;
  text-transform: uppercase;
}

/* ---------- Fin de la cuenta regresiva ----------
   JS agrega .is-live al panel: "START:" pasa a "READY?" y el contador
   se reemplaza por el botón "Quiero jugar" (entra con zoom y destello). */
.hs__live { display: none; }
.hs__panel.is-live .hs__counter { display: none; }
.hs__panel.is-live .hs__live {
  display: flex;
  justify-content: center;
  margin-top: calc(22 * var(--u));
  animation: liveIn .9s cubic-bezier(.2, 1.4, .4, 1) both;
}
.hs__btn { --bw: 330; --bh: 76; --bf: 38; --bi: 11; }

@keyframes liveIn {
  0%   { transform: scale(3); opacity: 0; filter: blur(12px) brightness(3); }
  60%  { transform: scale(.92); opacity: 1; filter: blur(0) brightness(1.8); }
  100% { transform: scale(1); filter: none; }
}
@keyframes liveGlow {
  from { transform: scale(1);    filter: brightness(1); }
  to   { transform: scale(1.06); filter: brightness(1.25); }
}

/* ---------- Aro neón: parpadeo tipo letrero ---------- */
.hs__ring { animation: neonFlicker 4s linear infinite; }
@keyframes neonFlicker {
  0%, 18%, 22%, 24%, 60%, 100% { opacity: 1; }
  20%, 23% { opacity: .25; }
  62%      { opacity: .6; }
}

/* ---------- HIGH SCORE móvil ---------- */
@media (max-width: 767px) {
  .hs { --u: calc((100vw - 32px) / 680); }
  .hs__stage { width: 100%; padding: 32px 16px 56px; }
  .hs__ring { display: none; }
  .hs__panel {
    width: 100%;
    min-height: 0;
    padding: 40px 0 44px;
    border-radius: 24px;
  }
  .hs__title { font-size: calc(80 * var(--u)); }
  .hs__label { font-size: calc(46 * var(--u)); margin-top: calc(40 * var(--u)); }
  .hs__box-pulse { margin-top: calc(110 * var(--u)); }
  .hs__start { font-size: calc(46 * var(--u)); margin-top: calc(70 * var(--u)); }
  .hs__counter { --cu: 1.15; margin-top: calc(18 * var(--u)); }   /* 4 celdas: días, horas, minutos, segundos */
  .hs__panel.is-live .hs__live { margin-top: calc(24 * var(--u)); }
  .hs__btn { --bw: 380; --bh: 88; --bf: 44; --bi: 13; }
  .hs__terms { font-size: calc(22 * var(--u)); top: calc(134 * var(--u)); }
}

@media (prefers-reduced-motion: reduce) {
  .hs__box, .hs__box-pulse, .hs__coins, .hs__spark, .hs__mascot,
  .hs__start, .hs__ring, .hs__num.is-flip,
  .hs__panel.is-live .hs__live { animation: none !important; }
  .hs__spark { display: none; }
}

/* =====================================================================
   PROYECTOS
   Diseño: sección 2680 → 3660. Skyline hasta 3360, luego fondo oscuro.
   ===================================================================== */
.proj {
  --u: min(1px, 100vw / 1280);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(40% 30% at 100% 100%, rgba(0, 0, 0, .9), transparent 70%),
    linear-gradient(180deg, #273663 0%, #22305a 40%, #1d2340 70%, #171c33 100%);
}
.proj__skyline {                         /* ciudad de fondo (SVG) */
  position: absolute;
  left: 0; right: 0;
  top: calc(-80 * var(--u));
  height: calc(760 * var(--u));          /* 2600 → 3360 del diseño */
  z-index: -1;
  background: url("../assets/img/projects/skyline.svg") center bottom / auto 100% repeat-x;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 18%);
}
.proj__stage {
  position: relative;
  width: calc(1280 * var(--u));
  margin-inline: auto;
  padding: calc(171 * var(--u)) 0 calc(89 * var(--u));
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Líneas neón (reutilizan los estilos de ¿Cómo jugar?) */
.proj__lines {
  position: absolute;
  left: calc(-400 * var(--u));
  top: calc(120 * var(--u));
  width: calc(2080 * var(--u));
  height: calc(120 * var(--u));
  max-width: none;
  overflow: visible;
  pointer-events: none;
}
.proj__spark {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 8 112;
  stroke-dashoffset: 8;
  animation: sparkRun 3.4s ease-in infinite;
}
.proj__spark--r { animation-delay: 1.7s; }

.proj__title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: calc(48.6 * var(--u));
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  text-shadow:
    calc(-2 * var(--u)) calc(-2 * var(--u)) 0 #64aec4,
    calc(2.5 * var(--u)) calc(2.5 * var(--u)) 0 #c61f6e;
}
.proj__subtitle {
  margin-top: calc(13 * var(--u));
  font-family: var(--ff-base);
  font-weight: 900;
  font-size: calc(30.1 * var(--u));
  line-height: 1;
  color: #fff;
}

.proj__icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(22 * var(--u));
  margin-top: calc(30 * var(--u));
}
/* misma altura y centrados: la casita y el corazón quedan alineados arriba y abajo */
.proj__icon { height: calc(62 * var(--u)); width: auto; display: block; }

/* ---------- Tarjetas ---------- */
.proj__cards {
  display: grid;
  grid-template-columns: repeat(4, calc(253.5 * var(--u)));
  gap: calc(48 * var(--u)) calc(23.2 * var(--u));
  margin-top: calc(36.5 * var(--u));
  list-style: none;
}
.proj__card {
  position: relative;
  height: calc(482.5 * var(--u));
  border: calc(2.5 * var(--u)) solid #e8308a;
  border-radius: calc(22 * var(--u));
  background: #1c1a33;
  box-shadow:
    0 0 calc(8 * var(--u)) rgba(232, 48, 138, .55),
    0 0 calc(34 * var(--u)) rgba(232, 48, 138, .25);
  transition: transform .3s ease, box-shadow .3s ease;
}
.proj__card:hover {
  transform: translateY(calc(-6 * var(--u)));
  box-shadow:
    0 0 calc(12 * var(--u)) rgba(232, 48, 138, .8),
    0 0 calc(48 * var(--u)) rgba(232, 48, 138, .4);
}
.proj__logo {
  position: absolute;
  left: calc(19.5 * var(--u));
  top: calc(4 * var(--u));
  width: calc(210 * var(--u));
  height: auto;
}
.proj__date {
  position: absolute;
  left: 0; right: 0;
  top: calc(93 * var(--u));
  text-align: center;
  font-family: var(--ff-base);
  font-weight: 600;
  font-size: calc(22.7 * var(--u));
  line-height: 1;
  color: #fff;
}
.proj__photo {
  position: absolute;
  left: calc(16.5 * var(--u));
  top: calc(125 * var(--u));
  width: calc(212.5 * var(--u));
  height: calc(296 * var(--u));
  border-radius: calc(14 * var(--u));
  overflow: hidden;
}
.proj__photo img {
  position: absolute;
  left: calc(var(--l) * var(--u));
  top: calc(var(--t) * var(--u));
  width: calc(var(--w) * var(--u));
  max-width: none;
  height: auto;
  transition: transform .5s ease;
}
.proj__card:hover .proj__photo img { transform: scale(1.05); }

.proj__district {
  position: absolute;
  left: calc(15.6 * var(--u));
  top: calc(468.3 * var(--u));
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(216.7 * var(--u));
  height: calc(51.6 * var(--u));
  border-radius: calc(8 * var(--u));
  background: #2ee0e6;
  box-shadow:
    0 0 calc(6 * var(--u)) rgba(46, 224, 230, .8),
    0 0 calc(22 * var(--u)) rgba(46, 224, 230, .4);
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: calc(23.5 * var(--u));
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: #000;
}
.proj__district::before {
  content: "";
  position: absolute;
  inset: calc(5 * var(--u));
  border: calc(1.5 * var(--u)) solid rgba(255, 255, 255, .85);
  border-radius: calc(5 * var(--u));
  pointer-events: none;
}

/* ---------- PROYECTOS móvil: 2 columnas ---------- */
@media (max-width: 767px) {
  .proj { --u: calc((100vw - 32px) / 530); }
  .proj__stage { width: 100%; padding: 72px 16px 64px; }
  .proj__lines { display: none; }
  .proj__title { font-size: calc(40 * var(--u)); }
  .proj__subtitle { font-size: calc(27 * var(--u)); text-align: center; }
  .proj__cards { grid-template-columns: repeat(2, calc(253.5 * var(--u))); row-gap: calc(76 * var(--u)); }
  .proj__title { font-size: calc(38 * var(--u)); }
  .proj__skyline { height: calc(1000 * var(--u)); top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .proj__spark { display: none; }
  .proj__card, .proj__photo img { transition: none; }
}

/* =====================================================================
   TESTIMONIOS
   Diseño: sección 3660 → 4560. Paneles 540 × 622.
   ===================================================================== */
.testi {
  --u: min(1px, 100vw / 1280);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(50% 40% at 0% 0%, rgba(30, 45, 90, .8), transparent 70%),
    radial-gradient(45% 40% at 100% 0%, rgba(0, 0, 0, .85), transparent 70%),
    linear-gradient(180deg, #1a1830 0%, #221836 55%, #2a1f44 100%);
}
.testi__stage {
  position: relative;
  width: calc(1280 * var(--u));
  height: calc(900 * var(--u));
  margin-inline: auto;
}

/* X neón: se enciende parpadeando, gira y late */
.testi__x {
  position: absolute;
  left: calc(90 * var(--u));
  top: 0;
  width: calc(100 * var(--u));
  height: auto;
  animation:
    xSpin 4s cubic-bezier(.5, 1.6, .5, 1) infinite,
    xFlicker 4s linear infinite;
}
@keyframes xSpin {                      /* gira 180° y queda igual que en el diseño */
  0%, 60%   { transform: rotate(0deg) scale(1); }
  75%       { transform: rotate(180deg) scale(1.15); }
  85%, 100% { transform: rotate(180deg) scale(1); }
}
@keyframes xFlicker {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 calc(4 * var(--u)) rgba(255, 230, 40, .7)); }
  4%, 8%   { opacity: .3; filter: none; }
  6%, 10%  { opacity: 1; }
  75%      { filter: drop-shadow(0 0 calc(14 * var(--u)) rgba(255, 230, 40, 1)); }
}

.testi__title {
  position: absolute;
  left: calc(63.7 * var(--u));
  top: calc(91.8 * var(--u));
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: calc(41.7 * var(--u));
  line-height: calc(50 * var(--u));
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  text-shadow:
    calc(-1.5 * var(--u)) calc(-1.5 * var(--u)) 0 #64aec4,
    calc(2 * var(--u)) calc(2 * var(--u)) 0 #c61f6e;
}

/* ---------- Fila del pac-man (8 s por ciclo) ---------- */
.testi__pac {
  --tp-cycle: 5s;
  position: absolute;
  left: calc(678 * var(--u));
  top: calc(62 * var(--u));
  width: calc(510 * var(--u));
  height: calc(100 * var(--u));
  list-style: none;
}
.tp { position: absolute; }
.tp img { width: 100%; height: auto; }
.tp--pacman { left: 0; top: 0; width: calc(83 * var(--u)); z-index: 2; mix-blend-mode: screen; animation: tpMove var(--tp-cycle) linear infinite; }
.tp--pacman img { transform-origin: 45% 60%; animation: pacChomp .2s ease-in-out infinite alternate; }
.tp--heart { left: calc(180.5 * var(--u)); top: calc(25.5 * var(--u)); width: calc(90 * var(--u)); }
.tp--key   { left: calc(312 * var(--u));   top: calc(24 * var(--u));   width: calc(66 * var(--u)); }
.tp--house { left: calc(423.5 * var(--u)); top: calc(14 * var(--u));   width: calc(81 * var(--u)); }
.tp--dot {
  top: calc(58 * var(--u));
  width: calc(14 * var(--u));
  height: calc(14 * var(--u));
  margin: calc(-7 * var(--u)) 0 0 calc(-7 * var(--u));
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 calc(8 * var(--u)) rgba(255, 255, 255, .6);
}
.tp--d1 { left: calc(108 * var(--u)); }
.tp--d2 { left: calc(165 * var(--u)); }
.tp--d3 { left: calc(281 * var(--u)); }
.tp--d4 { left: calc(395 * var(--u)); }
.tp--d1 { animation: tpEat-d1 var(--tp-cycle) linear infinite both; }
.tp--d2 { animation: tpEat-d2 var(--tp-cycle) linear infinite both; }
.tp--heart { animation: tpEat-heart var(--tp-cycle) linear infinite both; }
.tp--d3 { animation: tpEat-d3 var(--tp-cycle) linear infinite both; }
.tp--key { animation: tpEat-key var(--tp-cycle) linear infinite both; }
.tp--d4 { animation: tpEat-d4 var(--tp-cycle) linear infinite both; }
.tp--house { animation: tpEat-house var(--tp-cycle) linear infinite both; }
@keyframes tpMove {                     /* se mueve sin detenerse: reaparece entrando por la izquierda */
  0%        { transform: translateX(0); opacity: 1; }
  62%       { transform: translateX(calc(420 * var(--u))); opacity: 1; }
  66%       { transform: translateX(calc(447 * var(--u))); opacity: 0; }
  83.9%     { transform: translateX(calc(447 * var(--u))); opacity: 0; }
  84%       { transform: translateX(calc(-108 * var(--u))); opacity: 0; }
  92%       { opacity: 1; }
  100%      { transform: translateX(0); opacity: 1; }
}
@keyframes tpEat-d1 {
  0%, 2.8% { transform: scale(1); opacity: 1; }
  4.4% { transform: scale(0); opacity: 0; }
  66.0% { transform: scale(0); opacity: 0; }
  69.0% { transform: scale(1.4); opacity: 1; }
  71.0%, 100% { transform: scale(1); opacity: 1; }
}
@keyframes tpEat-d2 {
  0%, 11.2% { transform: scale(1); opacity: 1; }
  12.8% { transform: scale(0); opacity: 0; }
  68.0% { transform: scale(0); opacity: 0; }
  71.0% { transform: scale(1.4); opacity: 1; }
  73.0%, 100% { transform: scale(1); opacity: 1; }
}
@keyframes tpEat-heart {
  0%, 16.1% { transform: scale(1); opacity: 1; }
  17.7% { transform: scale(0) rotate(-30deg); opacity: 0; }
  70.0% { transform: scale(0); opacity: 0; }
  73.0% { transform: scale(1.2); opacity: 1; }
  75.0%, 100% { transform: scale(1); opacity: 1; }
}
@keyframes tpEat-d3 {
  0%, 28.3% { transform: scale(1); opacity: 1; }
  29.9% { transform: scale(0); opacity: 0; }
  72.0% { transform: scale(0); opacity: 0; }
  75.0% { transform: scale(1.4); opacity: 1; }
  77.0%, 100% { transform: scale(1); opacity: 1; }
}
@keyframes tpEat-key {
  0%, 35.0% { transform: scale(1); opacity: 1; }
  36.6% { transform: scale(0) rotate(-30deg); opacity: 0; }
  74.0% { transform: scale(0); opacity: 0; }
  77.0% { transform: scale(1.2); opacity: 1; }
  79.0%, 100% { transform: scale(1); opacity: 1; }
}
@keyframes tpEat-d4 {
  0%, 45.2% { transform: scale(1); opacity: 1; }
  46.8% { transform: scale(0); opacity: 0; }
  76.0% { transform: scale(0); opacity: 0; }
  79.0% { transform: scale(1.4); opacity: 1; }
  81.0%, 100% { transform: scale(1); opacity: 1; }
}
@keyframes tpEat-house {
  0%, 51.5% { transform: scale(1); opacity: 1; }
  53.1% { transform: scale(0) rotate(-30deg); opacity: 0; }
  78.0% { transform: scale(0); opacity: 0; }
  81.0% { transform: scale(1.2); opacity: 1; }
  83.0%, 100% { transform: scale(1); opacity: 1; }
}

/* Líneas bajo el pac-man (mismo estilo que el resto) */
.testi__lines {
  position: absolute;
  left: calc(600 * var(--u));
  top: calc(140 * var(--u));
  width: calc(1400 * var(--u));
  height: calc(100 * var(--u));
  max-width: none;
  overflow: visible;
  pointer-events: none;
}

/* ---------- Paneles ---------- */
.testi__cards {
  position: absolute;
  left: calc(48 * var(--u));
  top: calc(230 * var(--u));
  display: grid;
  grid-template-columns: repeat(2, calc(540 * var(--u)));
  gap: calc(67 * var(--u));
}
.testi__card {
  position: relative;
  height: calc(622 * var(--u));
  padding: calc(60 * var(--u)) calc(70 * var(--u)) 0;
  border-radius: calc(24 * var(--u));
  overflow: hidden;
  isolation: isolate;
  background: #2a1c40;
}
.testi__card::before {                   /* franjas tipo CRT */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(180deg,
    transparent 0 calc(4 * var(--u)),
    rgba(12, 8, 22, .7) calc(4 * var(--u)) calc(9 * var(--u)));
}
.testi__card::after {                    /* el centro se aclara, bordes con franjas */
  content: "";
  position: absolute;
  inset: calc(55 * var(--u)) 0 calc(80 * var(--u));
  z-index: -1;
  background: linear-gradient(180deg, transparent, #2a1c40 12%, #2a1c40 88%, transparent);
}

.testi__video {
  position: relative;
  display: block;
  width: calc(399 * var(--u));
  height: calc(312 * var(--u));
  padding: 0;
  border: 0;
  border-radius: calc(12 * var(--u));
  overflow: hidden;
  cursor: pointer;
  background: #000;
}
.testi__video img {                     /* la foto llena el recuadro con cualquier proporción */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1);
  transition: filter .4s ease, transform .4s ease;
}
.testi__play {
  position: absolute;
  left: 50%; top: 50%;
  width: calc(58 * var(--u));
  height: calc(62 * var(--u));
  margin: calc(-31 * var(--u)) 0 0 calc(-25 * var(--u));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 58 62'%3E%3Cpath fill='%23e8308a' d='M10 3.5Q2 -1 2 8.5V53.5Q2 63 10 58.5L52 35.5Q58 31 52 26.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 calc(6 * var(--u)) rgba(232, 48, 138, .6));
  transition: transform .3s ease;
  animation: playBeat 1.6s ease-in-out infinite;
}
@keyframes playBeat {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.12); }
}
.testi__video:hover img,
.testi__video:focus-visible img { filter: grayscale(0); transform: scale(1.04); }
.testi__video:hover .testi__play { animation-duration: .8s; }
.testi__video:focus-visible { outline: 3px solid #2ee0e6; outline-offset: 4px; }

.testi__name {
  margin-top: calc(28 * var(--u));
  margin-left: calc(4.3 * var(--u));
  font-family: var(--ff-pixel);
  font-weight: 400;
  font-size: calc(26 * var(--u));
  line-height: 1.2;
  text-transform: uppercase;
  color: #2ee0e6;
}
.testi__text {
  margin-top: calc(18 * var(--u));
  margin-left: calc(7.3 * var(--u));
  max-width: calc(430 * var(--u));
  font-family: var(--ff-base);
  font-style: italic;
  font-weight: 600;
  font-size: calc(19 * var(--u));
  line-height: calc(24 * var(--u));
  color: #fff;
}

/* ---------- Ventana del video ---------- */
.vmodal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 16px;
}
.vmodal[hidden] { display: none; }
.vmodal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 16, .88);
  backdrop-filter: blur(4px);
}
.vmodal__dialog {
  position: relative;
  width: min(960px, 100%);
  border: 3px solid #e8308a;
  border-radius: 16px;
  background: #000;
  box-shadow: 0 0 12px rgba(232, 48, 138, .8), 0 0 50px rgba(232, 48, 138, .35);
  animation: vmodalIn .35s cubic-bezier(.2, 1.3, .4, 1);
}
.vmodal__frame { aspect-ratio: 16 / 9; border-radius: 13px; overflow: hidden; }
.vmodal__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.vmodal__msg {                           /* aviso cuando el enlace no es válido */
  display: grid;
  place-items: center;
  height: 100%;
  padding: 24px;
  text-align: center;
  font-family: var(--ff-pixel);
  font-size: clamp(14px, 2.4vw, 22px);
  line-height: 1.4;
  text-transform: uppercase;
  color: #2ee0e6;
}
.vmodal__close {
  position: absolute;
  right: -14px; top: -14px;
  width: 40px; height: 40px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #e8308a;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(232, 48, 138, .8);
}
@keyframes vmodalIn {
  from { transform: scale(.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
body.is-modal-open { overflow: hidden; }

/* ---------- TESTIMONIOS móvil ---------- */
@media (max-width: 767px) {
  .testi { --u: calc((100vw - 32px) / 540); }
  .testi__stage {
    width: 100%;
    height: auto;
    padding: 0 16px 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .testi__x { position: relative; left: auto; align-self: flex-start; width: calc(80 * var(--u)); margin-top: 24px; }
  .testi__title { position: static; margin-top: 12px; font-size: calc(38 * var(--u)); line-height: calc(48 * var(--u)); align-self: flex-start; }
  .testi__pac { position: relative; left: auto; top: auto; margin-top: 24px; }
  .testi__lines { display: none; }
  .testi__cards { position: static; margin-top: 16px; grid-template-columns: calc(540 * var(--u)); row-gap: 24px; }
  .testi__card { height: auto; padding-bottom: calc(60 * var(--u)); }
  .testi__text { font-size: calc(22 * var(--u)); line-height: calc(28 * var(--u)); max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .testi__x, .tp, .tp img, .testi__play, .vmodal__dialog { animation: none !important; }
}

/* =====================================================================
   INSERT COIN (formulario + información)
   Diseño: sección 4560 → 5494. Tarjeta del formulario 514 × 784.
   ===================================================================== */
.final {
  --u: min(1px, 100vw / 1280);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(45% 45% at 100% 30%, rgba(60, 14, 50, .55), transparent 70%),
    radial-gradient(40% 50% at 100% 100%, #000 0%, transparent 70%),
    linear-gradient(180deg, #2a1f45 0%, #252548 45%, #23345c 100%);
}
.final__floor {                          /* piso de grilla (reutiliza el del hero) */
  z-index: -1;
  height: calc(260 * var(--u));
  background: none;
  border-bottom: 0;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%), linear-gradient(90deg, #000 55%, transparent 95%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 45%), linear-gradient(90deg, #000 55%, transparent 95%);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}
.final__floor::after { display: none; }
.final__floor .hero__grid { background: linear-gradient(90deg, #6a8ee0 0%, #5a78c8 60%, #2a3560 100%); opacity: .7; }
.final__stage {
  position: relative;
  width: calc(1280 * var(--u));
  min-height: calc(934 * var(--u));        /* crece si el formulario muestra errores */
  margin-inline: auto;
  padding: calc(42 * var(--u)) 0 calc(108 * var(--u));   /* 108u = espacio bajo la tarjeta, como en el diseño */
}

/* ---------- Columna de información ---------- */
.final__info {
  position: absolute;
  left: calc(120 * var(--u));
  top: calc(85 * var(--u));
  width: calc(440 * var(--u));
  color: #fff;
}
.final__logo { width: calc(421 * var(--u)); height: auto; margin-left: calc(8 * var(--u)); }
.final__label {
  margin-top: calc(26 * var(--u));
  margin-left: calc(3 * var(--u));
  font-family: var(--ff-base);
  font-weight: 800;
  font-size: calc(15 * var(--u));
  line-height: 1.2;
  text-transform: uppercase;
}
.final__phone {
  display: inline-flex;
  align-items: center;
  gap: calc(8 * var(--u));
  margin-top: calc(10 * var(--u));
  margin-left: calc(4 * var(--u));
  font-family: var(--ff-base);
  font-weight: 800;
  font-size: calc(33 * var(--u));
  line-height: 1;
  color: #fff;
  text-decoration: none;
  transition: color .2s ease;
}
.final__phone svg { width: calc(33 * var(--u)); height: calc(33 * var(--u)); }
.final__label--sp { margin-top: calc(22 * var(--u)); }
.final__list {
  margin-top: calc(14 * var(--u));
  margin-left: calc(3 * var(--u));
  list-style: none;
  font-family: var(--ff-base);
  font-style: italic;
  font-weight: 500;
  font-size: calc(15 * var(--u));
  line-height: calc(20.8 * var(--u));
}
.final__list li::before { content: "•"; display: inline-block; width: calc(18 * var(--u)); font-style: normal; }
.final__label--hr { margin-top: calc(19 * var(--u)); }
.final__hours {
  margin-left: calc(3 * var(--u));
  font-family: var(--ff-base);
  font-weight: 800;
  font-size: calc(15 * var(--u));
  line-height: 1.2;
}
.final__label--soc { margin-top: calc(74 * var(--u)); font-size: calc(13.7 * var(--u)); }
.final__social {
  display: flex;
  gap: calc(12 * var(--u));
  margin-top: calc(10 * var(--u));
  list-style: none;
}
.final__social a { display: block; transition: transform .2s ease, filter .2s ease; }
.final__social svg { width: calc(30 * var(--u)); height: calc(30 * var(--u)); }
.final__social a:hover { transform: translateY(calc(-3 * var(--u))); filter: drop-shadow(0 0 calc(6 * var(--u)) #2ee0e6); }
.final__certs {
  display: block;
  width: calc(450 * var(--u));
  max-width: none;
  height: auto;
  margin: calc(28 * var(--u)) 0 0 calc(-10 * var(--u));
}
.final__terms {
  display: inline-block;
  margin-top: calc(23 * var(--u));
  margin-left: calc(4 * var(--u));
  font-family: var(--ff-base);
  font-weight: 300;
  font-size: calc(15 * var(--u));
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.final__terms:hover { color: #2ee0e6; }

/* ---------- Tarjeta del formulario ---------- */
.final__card {
  position: relative;                    /* en el flujo: empuja el final de la sección */
  margin-left: calc(668 * var(--u));
  width: calc(514 * var(--u));
  min-height: calc(784 * var(--u));
  padding: calc(33 * var(--u)) calc(42 * var(--u)) calc(40 * var(--u));
  border: calc(3.5 * var(--u)) solid #e8308a;
  border-radius: calc(40 * var(--u));
  background: #17182f;
  box-shadow:
    0 0 calc(10 * var(--u)) rgba(232, 48, 138, .6),
    0 0 calc(50 * var(--u)) rgba(232, 48, 138, .3);
  animation: cardGlow 3s ease-in-out infinite;
}
@keyframes cardGlow {
  0%, 100% { box-shadow: 0 0 calc(10 * var(--u)) rgba(232, 48, 138, .6), 0 0 calc(50 * var(--u)) rgba(232, 48, 138, .3); }
  50%      { box-shadow: 0 0 calc(16 * var(--u)) rgba(232, 48, 138, .85), 0 0 calc(80 * var(--u)) rgba(232, 48, 138, .45); }
}
.final__mascot {
  position: absolute;
  left: calc(394 * var(--u));
  top: calc(-16 * var(--u));
  width: calc(97 * var(--u));
  height: auto;
  transform-origin: 50% 100%;
  animation: winkBob 2.8s ease-in-out infinite;
}
@keyframes winkBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25%      { transform: translateY(calc(-6 * var(--u))) rotate(-6deg); }
  50%      { transform: translateY(0) rotate(0deg); }
  75%      { transform: translateY(calc(-6 * var(--u))) rotate(6deg); }
}
.final__coin {
  font-family: var(--ff-pixel);
  font-size: calc(34 * var(--u));
  line-height: 1;
  text-transform: uppercase;
  color: #2ee0e6;
  animation: startBlink 1.2s steps(1, end) infinite;   /* parpadeo arcade (igual que START:) */
}
.final__title {
  margin-top: calc(19 * var(--u));
  font-family: var(--ff-base);
  font-weight: 800;
  font-size: calc(47.9 * var(--u));
  line-height: 1;
  white-space: nowrap;
  color: #fff;
}

/* ---------- Campos ---------- */
.final__form { margin-top: calc(22 * var(--u)); }
.ff { position: relative; }
.ff--2, .ff--3 { margin-top: calc(6 * var(--u)); }
.ff--4, .ff--5, .ff--6 { margin-top: calc(13 * var(--u)); }
.ff__input {
  display: block;
  width: 100%;
  height: calc(60 * var(--u));
  padding: 0 calc(19 * var(--u));
  border: calc(1.5 * var(--u)) solid #fff;
  border-radius: calc(14 * var(--u));
  background: transparent;
  font-family: var(--ff-base);
  font-weight: 500;
  font-size: calc(23.7 * var(--u));
  color: #fff;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none;
          appearance: none;
}
.ff__input::placeholder { color: #fff; opacity: 1; }
.ff__input:focus {
  border-color: #2ee0e6;
  box-shadow: 0 0 calc(10 * var(--u)) rgba(46, 224, 230, .55);
}
.ff__select {
  padding-right: calc(60 * var(--u));
  cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 24'%3E%3Cpath fill='%23fff' d='M3 2h22q3 0 1.5 2.6L16.6 21q-2.6 4-5.2 0L1.5 4.6Q0 2 3 2Z'/%3E%3C/svg%3E") right calc(18 * var(--u)) center / calc(27 * var(--u)) auto no-repeat;
}
.ff__select option { color: #000; }
.ff__select:invalid { color: #fff; }
.ff.is-invalid .ff__input { border-color: #ff4f8b; box-shadow: 0 0 calc(8 * var(--u)) rgba(255, 79, 139, .6); }
.ff__error {
  display: block;
  min-height: 0;
  font-family: var(--ff-base);
  font-weight: 600;
  font-size: max(12px, calc(13 * var(--u)));   /* nunca menor a 12px para que se lea */
  line-height: 1.2;
  color: #ff6fa3;
}
.ff__error:not(:empty) { margin-top: calc(4 * var(--u)); }

/* Casilla de términos */
.ff__check {
  display: flex;
  align-items: flex-start;
  gap: calc(21 * var(--u));
  margin: calc(30 * var(--u)) 0 0 calc(12 * var(--u));
  cursor: pointer;
}
.ff__check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ff__box {
  flex-shrink: 0;
  position: relative;
  width: calc(27 * var(--u));
  height: calc(27 * var(--u));
  border: calc(1.5 * var(--u)) solid #fff;
  border-radius: calc(2 * var(--u));
  transition: background .2s ease, border-color .2s ease;
}
.ff__check input:checked + .ff__box { background: #2ee0e6; border-color: #2ee0e6; }
.ff__check input:checked + .ff__box::after {
  content: "";
  position: absolute;
  left: 32%; top: 12%;
  width: 30%; height: 55%;
  border: solid #000;
  border-width: 0 calc(3 * var(--u)) calc(3 * var(--u)) 0;
  transform: rotate(45deg);
}
.ff__check input:focus-visible + .ff__box { box-shadow: 0 0 0 3px rgba(46, 224, 230, .6); }
.ff__check-text {
  font-family: var(--ff-base);
  font-weight: 300;
  font-size: calc(15 * var(--u));
  line-height: calc(18 * var(--u));
  color: #fff;
}
.ff__check-text a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ff__error--check { margin-left: calc(60 * var(--u)); }

.final__btn {
  --bw: 305; --bh: 68.4; --bf: 36.1; --bi: 10;
  display: flex;
  margin: calc(40 * var(--u)) auto 0;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, filter .2s ease;
}
.final__btn:hover { filter: brightness(1.1); }
.final__btn:active { transform: scale(.96); }
.final__btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- Mensaje de éxito ---------- */
.final__done {
  display: grid;
  place-items: center;
  align-content: center;
  gap: calc(18 * var(--u));
  min-height: calc(520 * var(--u));
  text-align: center;
}
.final__done[hidden] { display: none; }
.final__done-title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: calc(52 * var(--u));
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
  text-shadow:
    calc(-2.5 * var(--u)) calc(-2.5 * var(--u)) 0 #2ee0e6,
    calc(2.5 * var(--u)) calc(2.5 * var(--u)) 0 #e63c8c;
  animation: liveIn .9s cubic-bezier(.2, 1.4, .4, 1) both, liveGlow 1.1s ease-in-out .9s infinite alternate;
}
.final__done-text {
  font-family: var(--ff-base);
  font-weight: 600;
  font-size: calc(22 * var(--u));
  line-height: 1.35;
  color: #fff;
}

/* ---------- INSERT COIN móvil ---------- */
@media (max-width: 767px) {
  .final { --u: calc((100vw - 32px) / 514); }
  .final__stage {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column-reverse;      /* el formulario primero */
    gap: 48px;
    padding: 56px 16px calc(220 * var(--u));
  }
  .final__info,
  .final__card { position: relative; left: auto; top: auto; }
  .final__card { margin-top: calc(20 * var(--u)); margin-left: 0; }
  .final__info { width: 100%; }
  .final__label, .final__list, .final__hours, .final__terms, .final__label--soc { font-size: calc(19 * var(--u)); }
  .final__list { line-height: calc(27 * var(--u)); }
  .final__label--soc { margin-top: calc(36 * var(--u)); }
  .final__social svg { width: calc(40 * var(--u)); height: calc(40 * var(--u)); }
  .final__certs { width: 100%; margin-left: 0; }
  .ff__check-text { font-size: calc(17 * var(--u)); line-height: calc(21 * var(--u)); }
}

@media (prefers-reduced-motion: reduce) {
  .final__card, .final__mascot, .final__coin, .final__done-title { animation: none !important; }
}

/* ---------- Animación: pac-man se come los íconos ----------
   Ciclo de 7 s:
   8%–65%  pac-man avanza 250u y se come cada ícono cuando su boca lo alcanza
   65%–72% pac-man se desvanece al final del recorrido
   72%–82% los íconos reaparecen en secuencia
   80%–88% pac-man reaparece en el inicio
-------------------------------------------------------------- */
.hero__icons { --eat: 1.7s; }   /* 250u en el 62 % del ciclo ≈ 240 px/s, igual que los demás */
.hero__icon--pacman {
  z-index: 2;
  animation: pacMove var(--eat) linear infinite;
}
.hero__icon--pacman img {
  transform-origin: 45% 60%;
  animation: pacChomp .2s ease-in-out infinite alternate;
}
.hero__icon--house,
.hero__icon--key,
.hero__dot { animation: var(--eat) linear infinite both; }
.hero__dot--1        { animation-name: eatDot1; }
.hero__icon--house   { animation-name: eatHouse; }
.hero__dot--2        { animation-name: eatDot2; }
.hero__icon--key     { animation-name: eatKey; }
.hero__dot--3        { animation-name: eatDot3; }

@keyframes pacMove {                    /* sin pausas: reaparece entrando por la izquierda */
  0%        { transform: translateX(0); opacity: 1; }
  62%       { transform: translateX(calc(250 * var(--u))); opacity: 1; }
  66%       { transform: translateX(calc(266 * var(--u))); opacity: 0; }
  83.9%     { transform: translateX(calc(266 * var(--u))); opacity: 0; }
  84%       { transform: translateX(calc(-65 * var(--u))); opacity: 0; }
  92%       { opacity: 1; }
  100%      { transform: translateX(0); opacity: 1; }
}
@keyframes pacChomp {
  from { transform: rotate(-9deg) scale(1.02); }
  to   { transform: rotate(5deg) scale(.97); }
}
@keyframes eatDot1 {
  0%, 10.2% { transform: scale(1); opacity: 1; }
  12.2% { transform: scale(0); opacity: 0; }
  66.0% { transform: scale(0); opacity: 0; }
  70.0% { transform: scale(1.4); opacity: 1; }
  73.0%, 100% { transform: scale(1); opacity: 1; }
}
@keyframes eatHouse {
  0%, 25.8% { transform: scale(1); opacity: 1; }
  27.8% { transform: scale(0) rotate(-30deg); opacity: 0; }
  69.0% { transform: scale(0); opacity: 0; }
  73.0% { transform: scale(1.2); opacity: 1; }
  76.0%, 100% { transform: scale(1); opacity: 1; }
}
@keyframes eatDot2 {
  0%, 39.7% { transform: scale(1); opacity: 1; }
  41.7% { transform: scale(0); opacity: 0; }
  72.0% { transform: scale(0); opacity: 0; }
  76.0% { transform: scale(1.4); opacity: 1; }
  79.0%, 100% { transform: scale(1); opacity: 1; }
}
@keyframes eatKey {
  0%, 52.8% { transform: scale(1); opacity: 1; }
  54.8% { transform: scale(0) rotate(-30deg); opacity: 0; }
  75.0% { transform: scale(0); opacity: 0; }
  79.0% { transform: scale(1.2); opacity: 1; }
  82.0%, 100% { transform: scale(1); opacity: 1; }
}
@keyframes eatDot3 {
  0%, 60.0% { transform: scale(1); opacity: 1; }
  62.0% { transform: scale(0); opacity: 0; }
  78.0% { transform: scale(0); opacity: 0; }
  82.0% { transform: scale(1.4); opacity: 1; }
  85.0%, 100% { transform: scale(1); opacity: 1; }
}

/* ---------- Accesibilidad: sin movimiento si el usuario lo pide ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero__prize,
  .hero__prize-pulse,
  .hero__icons *,
  .hero__icons img { animation: none !important; }
}

/* ---------- Navegación: resaltado del formulario al llegar ---------- */
.final__card.is-highlight { animation: cardArrive 1.2s ease-out; }
@keyframes cardArrive {
  0%   { box-shadow: 0 0 calc(10 * var(--u)) rgba(232, 48, 138, .6), 0 0 calc(50 * var(--u)) rgba(232, 48, 138, .3); }
  25%  { box-shadow: 0 0 calc(24 * var(--u)) #fff, 0 0 calc(120 * var(--u)) rgba(232, 48, 138, .9); border-color: #fff; }
  100% { box-shadow: 0 0 calc(10 * var(--u)) rgba(232, 48, 138, .6), 0 0 calc(50 * var(--u)) rgba(232, 48, 138, .3); }
}

/* =====================================================================
   FONDOS (imágenes del Illustrator) — reemplazan los fondos hechos en CSS
   1. Hero ......................... bg-hero.jpg (incluye el piso de grilla)
   2. ¿Cómo jugar? + High Score ..... bg-como-jugar-highscore.jpg (un solo fondo continuo)
   3. Proyectos .................... bg-proyectos.jpg (ciudad)
   4. Testimonios + Insert Coin ..... bg-testimonios-form.jpg (incluye el piso de grilla)
   ===================================================================== */
.hero {
  background: #000 url("../assets/img/bg/bg-hero.jpg") center bottom / cover no-repeat;
}
.hero__bg::before,                       /* líneas CRT: ahora vienen en la imagen */
.hero__bg::after,                        /* resplandores CSS anteriores */
.hero__floor { display: none; }          /* el piso ahora viene en la imagen */

.bg-band { position: relative; }
.bg-band--juego {
  background: #0b0f1f url("../assets/img/bg/bg-como-jugar-highscore.jpg") center top / cover no-repeat;
}
.bg-band--final {
  background: #14142c url("../assets/img/bg/bg-testimonios-form.jpg") center top / cover no-repeat;
}
.howto, .hs, .testi, .final { background: transparent; }

.proj {
  background: #05070d url("../assets/img/bg/bg-proyectos.jpg") center 70% / cover no-repeat;
}
.proj__skyline { display: none; }         /* la ciudad ahora viene en la imagen */
.final__floor { display: none; }

/* ---------- Proyectos: toda la tarjeta lleva al formulario con el proyecto elegido ---------- */
.proj__link {
  position: absolute;
  inset: 0 0 calc(-40 * var(--u));       /* incluye el botón de distrito que sobresale */
  z-index: 2;
  border-radius: calc(22 * var(--u));
}
.proj__link:focus-visible { outline: 3px solid #2ee0e6; outline-offset: 4px; }
.proj__card { cursor: pointer; }
.proj__card:hover .proj__district {
  box-shadow: 0 0 calc(10 * var(--u)) #2ee0e6, 0 0 calc(34 * var(--u)) rgba(46, 224, 230, .7);
}

/* Campo "Proyecto de interés" al llegar con un proyecto ya elegido */
.ff.is-picked .ff__input { animation: fieldPicked 1.4s ease-out; }
@keyframes fieldPicked {
  0%, 30% { border-color: #2ee0e6; box-shadow: 0 0 calc(18 * var(--u)) #2ee0e6; background-color: rgba(46, 224, 230, .15); }
  100%    { box-shadow: none; background-color: transparent; }
}

/* =====================================================================
   HERO – pac-man desktop: avanza y se come los íconos hasta "Quiero jugar"
   (el movimiento lo hace main.js; en móvil se mantiene la fila anterior)
   ===================================================================== */
.hero__track {
  position: absolute;
  left: calc(105 * var(--u));
  top: calc(766 * var(--u));             /* centrado con el botón (y = 806) */
  width: calc(600 * var(--u));
  height: calc(80 * var(--u));
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  z-index: 2;
  pointer-events: none;
}
.ht { flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.ht img { width: 100%; height: auto; }
.ht--pac   { width: calc(78 * var(--u)); z-index: 2; will-change: transform; transition: opacity .25s ease; }
.ht--pac img { transform-origin: 45% 60%; animation: pacChomp .2s ease-in-out infinite alternate; }
.ht--pac.is-out { opacity: 0; }
.ht--house { width: calc(56 * var(--u)); }
.ht--key   { width: calc(50 * var(--u)); }
.ht--heart { width: calc(62 * var(--u)); }
.ht--dot   {
  width: calc(12 * var(--u)); height: calc(12 * var(--u));
  border-radius: 50%; background: #fff;
  box-shadow: 0 0 calc(8 * var(--u)) rgba(255, 255, 255, .6);
}
.ht__item { transition: transform .32s cubic-bezier(.34, 1.7, .64, 1), opacity .2s ease; }
.ht__item.is-eaten { transform: scale(0) rotate(-30deg); opacity: 0; transition: transform .12s ease-in, opacity .12s ease-in; }

/* el botón "recibe" al pac-man */
.btn-play.is-hit { animation: btnHit .5s ease-out, btnPulse 1.6s ease-in-out .5s infinite; }
@keyframes btnHit {
  0%   { scale: 1; }
  35%  { scale: 1.14; filter: brightness(1.35); box-shadow: 0 0 calc(18 * var(--u)) #fff, 0 0 calc(60 * var(--u)) rgba(231, 50, 130, 1); }
  100% { scale: 1; filter: none; }
}

@media (min-width: 768px) {
  .hero__icons { display: none; }        /* fila antigua solo en móvil */
}
@media (max-width: 767px) {
  .hero__track { display: none; }
}

/* ---------- Ajuste de llegada desde el menú (desktop) ---------- */
.howto { --nav-offset: 80; }
.proj  { --nav-offset: 115; }

/* Testimonios (desktop y móvil): misma velocidad que el pac-man del hero (240 px/s)
   recorrido 420u en el 62 % del ciclo → 420 / 240 / 0.62 ≈ 2.8 s */
.testi__pac { --tp-cycle: 2.8s; }
.tp--pacman img { animation-duration: .2s; }

/* =====================================================================
   HERO – destello que recorre el borde de "RETRO", letra por letra
   Ciclo de 9 s: cada letra tiene su turno de 1.8 s (R, E, T, R, O), sobre la línea de neón
   ===================================================================== */
.hero__retro-trace {                    /* misma caja que el SVG de RETRO */
  position: absolute;
  left: calc(7.4 * var(--u));
  top: calc(176.4 * var(--u));
  width: calc(522.1 * var(--u));
  height: auto;
  max-width: none;
  overflow: visible;
  pointer-events: none;
}
.rt {
  fill: none;
  stroke: #ffd2e0;                       /* mismo destello que las líneas neón: centro claro + brillo rosa */
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 12 88;
  stroke-dashoffset: 12;
  opacity: 0;
  filter: drop-shadow(0 0 4px #f0365e) drop-shadow(0 0 8px #f0365e);
  animation: retroTrace 9s linear infinite;
}
.rt--2 { animation-delay: 1.8s; }
.rt--3 { animation-delay: 3.6s; }
.rt--4 { animation-delay: 5.4s; }
.rt--5 { animation-delay: 7.2s; }
@keyframes retroTrace {
  0%        { stroke-dashoffset: 12;   opacity: 0; }
  1%        { opacity: 1; }
  19%       { opacity: 1; }
  20%, 100% { stroke-dashoffset: -100; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .hero__retro-trace { display: none; } }

/* =====================================================================
   ¿CÓMO JUGAR? – recorrido por niveles (1 → 2 → 3)
   Ciclo de 7.5 s: cada nivel está activo 2.5 s mientras se llena su barra;
   al completarse, un destello viaja por el conector hasta el siguiente nivel.
   ===================================================================== */
.howto__cards { --lvl: 7.5s; }
.howto__card {
  position: relative;
  animation: lvlCard var(--lvl) ease-in-out infinite backwards;   /* apagadas hasta su turno */
}
.howto__card:nth-child(2) { animation-delay: calc(var(--lvl) / 3); }
.howto__card:nth-child(3) { animation-delay: calc(var(--lvl) * 2 / 3); }

/* barra de progreso del nivel */
.howto__card::before {
  content: "";
  position: absolute;
  left: calc(21.7 * var(--u));
  right: calc(22 * var(--u));
  bottom: calc(20 * var(--u));
  height: calc(6 * var(--u));
  border-radius: calc(3 * var(--u));
  background: linear-gradient(90deg, #2ee0e6, #e8308a);
  box-shadow: 0 0 calc(8 * var(--u)) rgba(46, 224, 230, .7);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
  animation: lvlBar var(--lvl) linear infinite;
  animation-delay: inherit;
}
/* conector hacia el siguiente nivel (solo niveles 1 y 2) */
.howto__card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + 3.5 * var(--u));
  width: calc(22 * var(--u));
  height: calc(4 * var(--u));
  margin-top: calc(-2 * var(--u));
  border-radius: calc(2 * var(--u));
  background: #ffd2e0;
  box-shadow: 0 0 calc(6 * var(--u)) #f0365e, 0 0 calc(14 * var(--u)) #f0365e;
  opacity: 0;
  animation: lvlLink var(--lvl) ease-in infinite;
  animation-delay: inherit;
}
.howto__level { animation: lvlLabel var(--lvl) steps(1, end) infinite; animation-delay: inherit; }

@keyframes lvlCard {
  0%        { transform: none; filter: brightness(.72) saturate(.8); }
  4%, 30%   { transform: translateY(calc(-8 * var(--u))) scale(1.03); filter: none;
              box-shadow: 0 0 calc(16 * var(--u)) rgba(232, 48, 138, .9), 0 0 calc(70 * var(--u)) rgba(232, 48, 138, .45);
              border-color: #ff5aa5; }
  34%, 100% { transform: none; filter: brightness(.72) saturate(.8); }
}
@keyframes lvlBar {
  0%, 3%    { transform: scaleX(0); opacity: 1; }
  30%       { transform: scaleX(1); opacity: 1; }
  34%, 100% { transform: scaleX(1); opacity: 0; }
}
@keyframes lvlLink {                     /* el destello cruza el espacio entre tarjetas */
  0%, 29%   { transform: translateX(0); opacity: 0; }
  30%       { transform: translateX(0); opacity: 1; }
  35%       { transform: translateX(calc(26 * var(--u))); opacity: 1; }
  37%, 100% { transform: translateX(calc(26 * var(--u))); opacity: 0; }
}
@keyframes lvlLabel {                    /* "NIVEL X" parpadea mientras está activo */
  0%, 4%, 8%, 12%, 34%, 100% { opacity: 1; }
  2%, 6%, 10% { opacity: .2; }
}

@media (max-width: 767px) {
  .howto__card:not(:last-child)::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .howto__card, .howto__card::before, .howto__card::after, .howto__level { animation: none !important; }
}

/* ---------- Video: indicador de carga ---------- */
.vmodal__frame { position: relative; }
.vmodal__loader {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  font-family: var(--ff-pixel);
  font-size: clamp(14px, 2.2vw, 22px);
  text-transform: uppercase;
  color: #2ee0e6;
  animation: startBlink 1s steps(1, end) infinite;
}
.vmodal__frame.is-loading .vmodal__loader { display: grid; }
.vmodal__frame.is-loading iframe { opacity: 0; }
.vmodal__frame iframe { transition: opacity .3s ease; }

/* ---------- Video: ocultar la interfaz de YouTube ----------
   El reproductor se agranda dentro de la ventana para que la franja superior
   (título y canal) y la inferior ("Más videos", logo) queden fuera del área visible,
   y una capa transparente encima evita que el mouse las haga aparecer. */
.vmodal__frame { overflow: hidden; }
.vmodal__frame iframe {
  /* El reproductor se carga a 1920 × 1080 (YouTube elige la calidad según el tamaño del
     reproductor → Full HD) y se reduce con --s para encajar en la ventana. Así la interfaz de
     YouTube (de alto fijo en px) queda proporcional en cualquier pantalla.
     Alto 1360 = 1080 + 2 × 140 → se recortan 140 px arriba y abajo (título / "Más videos"). */
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1360px;
  max-width: none;
  transform-origin: 0 0;
  transform: scale(var(--s, 1)) translateY(-140px);
}
.vmodal__shield { position: absolute; inset: 0; z-index: 2; background: transparent; }

/* ---------- Video: la X de cerrar siempre por encima del video ---------- */
.vmodal__close { z-index: 10; }