/* =========================================================
   Iguana Atlas · prototipo v0.1 (5-nov-2026)
   Noche tropical + HUD. Paleta propia: verde iguana y
   rojo / azul / amarillo de guacamaya sobre noche de selva.
   ========================================================= */

:root {
  --night: #050e0b;
  --night-2: #0a1a14;
  --panel: #0d221a;
  --panel-2: #112c22;
  --line: rgba(120, 255, 170, 0.16);
  --line-2: rgba(120, 255, 170, 0.32);

  --green: #34e07f;      /* iguana */
  --green-deep: #0e9f57;
  --red: #ff4438;        /* guacamaya */
  --blue: #2e7bff;
  --blue-text: #6ea4ff;  /* azul legible como texto sobre la noche */
  --yellow: #ffd23f;

  --text: #ecf8f0;
  --muted: #a3c2b1;
  --ink: #04100b;        /* texto sobre amarillo o verde */

  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-hud: "Chakra Petch", "Consolas", ui-monospace, monospace;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: 16px;
  --max: 1180px;
  --radius: 14px;
  --ease-out: cubic-bezier(0.2, 0.9, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--text);
  background-color: var(--night);
  background-image:
    radial-gradient(1200px 700px at 85% -10%, rgba(52, 224, 127, 0.16), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(46, 123, 255, 0.12), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(255, 68, 56, 0.08), transparent 60%);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.55;
}

/* Rejilla de mapa muy suave sobre todo el sitio */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.35;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
}

img, svg { max-width: 100%; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--yellow); }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 6px;
}

.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-link {
  position: absolute;
  left: 8px; top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 8px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Tipografía ---------- */
h1, h2, h3 { margin: 0; line-height: 1.05; }
h2 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 8.5vw, 3.6rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 4.6vw, 1.35rem);
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.02rem, 4vw, 1.2rem); color: var(--muted); max-width: 46ch; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--f-hud);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
}
.kicker::before {
  content: "";
  width: 22px; height: 3px;
  background: linear-gradient(90deg, var(--red) 0 33%, var(--blue) 33% 66%, var(--yellow) 66%);
}

.hl-green { color: var(--green); }
.hl-yellow { color: var(--yellow); }

/* ---------- Barra de progreso «mapa explorado» ---------- */
.xp {
  position: fixed;
  inset: 0 0 auto 0;
  height: 4px;
  z-index: 60;
  background: rgba(255, 255, 255, 0.06);
}
.xp__fill {
  height: 100%;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--green), var(--yellow) 60%, var(--red));
  box-shadow: 0 0 12px rgba(52, 224, 127, 0.7);
}

/* ---------- Cabecera ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 14, 11, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top__in {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand img { width: 30px; height: 30px; }
.brand:hover { color: var(--green); }
.brand:hover img { animation: wobble 0.6s var(--ease-out); }

.nav { display: none; margin-left: auto; gap: 4px; }
.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-family: var(--f-hud);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.nav a:hover { color: var(--ink); background: var(--green); }

.mapchip {
  display: none;
  font-family: var(--f-hud);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--green);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.lang {
  margin-left: auto;
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--night-2);
}
.lang a {
  min-width: 40px;
  padding: 6px 10px;
  border-radius: 999px;
  text-align: center;
  font-family: var(--f-hud);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: none;
}
.lang a[aria-current="page"] { background: var(--yellow); color: var(--ink); }
.lang a:not([aria-current]):hover { color: var(--text); background: var(--panel-2); }

@media (min-width: 820px) {
  .nav { display: inline-flex; }
  .lang { margin-left: 8px; }
  .mapchip { display: inline-block; }
}

/* ---------- HÉROE ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 22px 56px;
  isolation: isolate;
}
.hero__topo {
  position: absolute;
  inset: -20% -40% -20% -10%;
  z-index: -1;
  background: url("../img/mapa-topo.svg") center / cover no-repeat;
  opacity: 0.55;
  animation: drift 60s linear infinite alternate;
  pointer-events: none;
}
.hero::after {
  /* línea de escaneo HUD */
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 120px;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(52, 224, 127, 0.08), transparent);
  animation: scan 6s linear infinite;
  pointer-events: none;
}
.hero__grid {
  display: grid;
  gap: 34px;
  align-items: center;
}
@media (min-width: 980px) {
  .hero { padding-block: 48px 80px; }
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; gap: 40px; }
}

.hud-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: rgba(10, 26, 20, 0.8);
  font-family: var(--f-hud);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.chip--live { color: var(--green); }
.chip--live::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(255, 68, 56, 0.7);
  animation: blink 1.4s infinite;
}
.chip--warn { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }

.title {
  position: relative;
  font-family: var(--f-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: 0.86;
  font-size: clamp(3.3rem, 18vw, 7.4rem);
  margin-bottom: 18px;
}
.title__l1, .title__l2 {
  color: transparent;
  -webkit-text-stroke: 2px var(--text);
  margin-top: 0.06em;
}
.title__l2 .title__char { animation-name: charin, fillchar; animation-duration: 0.7s, 0.5s; }
.title__char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em) rotate(6deg);
  animation: charin 0.7s var(--ease-out) forwards;
}

.tagline {
  font-size: clamp(1.05rem, 4.4vw, 1.3rem);
  max-width: 34ch;
  margin-bottom: 26px;
}
.tagline strong { color: var(--yellow); font-weight: 600; }

/* Guacamaya que vuela por el héroe */
.flyer {
  position: absolute;
  top: 70px;
  right: -10px;
  width: clamp(84px, 24vw, 150px);
  z-index: 2;
  pointer-events: none;
  animation: fly 7s ease-in-out infinite;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5));
}
@media (min-width: 980px) { .flyer { top: 40px; right: 46%; } }

/* ---------- Cuenta regresiva ---------- */
.countdown {
  position: relative;
  margin-top: 70px;
  padding: 18px 14px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(17, 44, 34, 0.92), rgba(10, 26, 20, 0.92));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  max-width: 560px;
}
.brackets::before, .brackets::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 3px solid var(--yellow);
  pointer-events: none;
}
.brackets::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.brackets::after { bottom: -2px; right: -2px; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }

.countdown__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
  font-family: var(--f-hud);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.countdown__label b { color: var(--green); }
.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.cd {
  position: relative;
  padding: 10px 4px 8px;
  border-radius: 10px;
  background: var(--night);
  border: 1px solid var(--line);
  text-align: center;
  overflow: hidden;
}
.cd__n {
  display: block;
  font-family: var(--f-hud);
  font-weight: 700;
  font-size: clamp(1.9rem, 9.5vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.cd__u {
  display: block;
  margin-top: 6px;
  font-family: var(--f-hud);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.cd--s .cd__n { color: var(--yellow); }
.cd.tick .cd__n { animation: tick 0.35s var(--ease-out); }
.cd::after {
  /* línea divisoria tipo marcador de vuelo */
  content: "";
  position: absolute;
  left: 0; right: 0; top: 42%;
  height: 1px;
  background: rgba(0, 0, 0, 0.55);
}
.countdown__meta {
  margin: 12px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}
.countdown__meta strong { color: var(--text); font-weight: 600; }
.countdown__meta span { display: block; }
.countdown.is-live .countdown__grid { display: none; }
.countdown__live {
  display: none;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 8vw, 2.6rem);
  color: var(--green);
  text-transform: uppercase;
}
.countdown.is-live .countdown__live { display: block; }

/* Iguana sentada encima del panel */
.perch {
  position: absolute;
  right: 10px;
  top: -74px;
  width: clamp(140px, 42vw, 200px);
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.perch img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 14px rgba(52, 224, 127, 0.45));
  transition: transform 0.3s var(--ease-out);
}
.perch:hover img, .perch:focus-visible img { transform: translateY(-4px) rotate(-2deg); }
.perch:active img { transform: scale(0.96); }

.ph-tag {
  position: absolute;
  font-family: var(--f-hud);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  border: 1px dashed var(--yellow);
  border-radius: 4px;
  padding: 1px 5px;
  background: rgba(5, 14, 11, 0.85);
  white-space: nowrap;
  pointer-events: none;
}
.perch .ph-tag { left: 0; top: 4px; }
.flyer .ph-tag { left: 10%; bottom: -14px; }

.bubble {
  position: absolute;
  right: 6px;
  bottom: calc(100% + 4px);
  width: max-content;
  max-width: min(250px, 70vw);
  padding: 9px 12px;
  border-radius: 12px 12px 2px 12px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.3;
  text-align: left;
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transition: opacity 0.2s, transform 0.2s var(--ease-out);
  pointer-events: none;
}
.bubble.is-on { opacity: 1; transform: none; }

/* ---------- Botones ---------- */
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn {
  --bg: var(--green);
  --fg: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 20px;
  border: 2px solid var(--bg);
  border-radius: 12px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-hud);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--yellow);
  transition: transform 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
  cursor: pointer;
}
.btn:hover { color: var(--fg); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--yellow); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--yellow); }
.btn--ghost { --bg: transparent; --fg: var(--text); border-color: var(--line-2); box-shadow: 4px 4px 0 var(--blue); }
.btn--ghost:hover { --fg: var(--text); border-color: var(--text); box-shadow: 6px 6px 0 var(--blue); }
.btn--red { --bg: var(--red); --fg: #fff; box-shadow: 4px 4px 0 var(--ink); }
.btn--red:hover { --fg: #fff; box-shadow: 6px 6px 0 var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn small {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.25);
  letter-spacing: 0.1em;
}

/* ---------- Escenario HUD (minimapa + velocímetro) ---------- */
.stage {
  position: relative;
  width: min(100%, 420px);
  margin-inline: auto;
  aspect-ratio: 1;
}
.minimap {
  position: absolute;
  inset: 4% 10% 10% 4%;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--text);
  background: #071610;
  box-shadow:
    0 0 0 6px rgba(5, 14, 11, 0.9),
    0 0 0 7px var(--line-2),
    0 30px 80px rgba(0, 0, 0, 0.6),
    inset 0 0 60px rgba(0, 0, 0, 0.7);
}
.minimap__map {
  position: absolute;
  inset: -40%;
  background: url("../img/mapa-topo.svg") center / cover no-repeat;
  animation: spin 80s linear infinite;
}
.minimap__sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(52, 224, 127, 0.32), transparent 22%);
  animation: spin 4s linear infinite;
  mix-blend-mode: screen;
}
.minimap__route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.minimap__route path {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 2 9;
  animation: dash 1s linear infinite;
}
.minimap__me {
  position: absolute;
  left: 50%; top: 50%;
  width: 26px; height: 26px;
  margin: -13px 0 0 -13px;
  filter: drop-shadow(0 0 8px rgba(255, 210, 63, 0.9));
}
.minimap__n {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-hud);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--ink);
  background: var(--text);
  border-radius: 50%;
  width: 24px; height: 24px;
  display: grid; place-items: center;
}
.waypoint {
  position: absolute;
  left: 72%; top: 18%;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.waypoint__tag {
  font-family: var(--f-hud);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--red);
  color: #fff;
  padding: 3px 7px;
  border-radius: 5px;
  margin-bottom: 4px;
  white-space: nowrap;
}
.waypoint__pin {
  width: 22px; height: 22px;
  background: var(--red);
  transform: rotate(45deg);
  border: 3px solid #fff;
  border-radius: 4px 50% 50% 50%;
  animation: bob 1.4s ease-in-out infinite;
}
.waypoint::after {
  content: "";
  position: absolute;
  bottom: -10px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--red);
  animation: ripple 1.6s ease-out infinite;
  transform: scale(0.3);
}

.gauge {
  position: absolute;
  right: 0; bottom: 0;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #0d221a 0 58%, #071610 59%);
  border: 3px solid var(--text);
  box-shadow: 0 0 0 5px rgba(5, 14, 11, 0.9), 0 20px 50px rgba(0, 0, 0, 0.6);
}
.gauge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.gauge__needle {
  transform-origin: 100px 100px;
  transition: transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.gauge__read {
  position: absolute;
  left: 0; right: 0; top: 54%;
  text-align: center;
  font-family: var(--f-hud);
  font-weight: 700;
  line-height: 1;
}
.gauge__read b { display: block; font-size: clamp(1.4rem, 7vw, 2.2rem); color: var(--yellow); font-variant-numeric: tabular-nums; }
.gauge__read span { font-size: 0.6rem; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; }

.stage__eta {
  position: absolute;
  left: 0; bottom: 4%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: rgba(5, 14, 11, 0.92);
  font-family: var(--f-hud);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.35;
}
.stage__eta b { display: block; font-size: 1rem; color: var(--green); letter-spacing: 0.06em; }

/* Ping al tocar el héroe */
.ping {
  position: absolute;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 2px solid var(--yellow);
  pointer-events: none;
  animation: ping 0.9s ease-out forwards;
  z-index: 3;
}
.ping::after {
  content: attr(data-label);
  position: absolute;
  left: 22px; top: -4px;
  font-family: var(--f-hud);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--yellow);
  white-space: nowrap;
}

/* ---------- Cinta que corre ---------- */
.tape {
  position: relative;
  overflow: hidden;
  padding-block: 46px;
  margin-block: -20px;
}
.tape__row {
  width: 120%;
  margin-left: -10%;
  overflow: hidden;
  padding-block: 10px;
}
.tape__row--a { background: var(--yellow); color: var(--ink); transform: rotate(-2.5deg); position: relative; z-index: 2; }
.tape__row--b { position: absolute; left: 0; top: 50%; margin-top: -24px; background: var(--blue); color: #fff; transform: rotate(2deg); }
.tape__band {
  display: flex;
  width: max-content;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(0.95rem, 4vw, 1.3rem);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}
.tape__row--b .tape__band { animation-duration: 40s; animation-direction: reverse; }
.tape__band span { padding-inline: 18px; }
.tape__band span::after { content: "\2726"; margin-left: 36px; color: var(--red); }
.tape__row--b .tape__band span::after { color: var(--yellow); }

/* ---------- Secciones ---------- */
.section { padding-block: 64px; position: relative; }
.section__head { margin-bottom: 30px; max-width: 760px; }
.section__head .lead { margin-top: 14px; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* Sello «Medido en PS5» */
.stamp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border: 2px solid var(--green);
  border-radius: 999px;
  font-family: var(--f-hud);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(52, 224, 127, 0.08);
  transform: rotate(-3deg);
}
.stamp i {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: var(--ink);
  font-style: normal;
}
.stamp i svg { width: 16px; height: 16px; }

.big-claim {
  font-family: var(--f-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.3rem, 12vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: 18px 0 0;
}
.big-claim em {
  font-style: normal;
  color: var(--ink);
  background: var(--green);
  padding: 0 0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.how {
  display: grid;
  gap: 10px;
  margin: 28px 0 34px;
  padding: 0;
  list-style: none;
  counter-reset: how;
}
.how li {
  counter-increment: how;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(13, 34, 26, 0.7);
  font-weight: 600;
}
.how li::before {
  content: counter(how, decimal-leading-zero);
  font-family: var(--f-hud);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--yellow);
}
@media (min-width: 760px) {
  .how { grid-template-columns: repeat(3, 1fr); }
}

.cards {
  display: grid;
  gap: 16px;
}
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.mcard {
  --accent: var(--green);
  position: relative;
  padding: 20px 18px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background:
    linear-gradient(160deg, rgba(17, 44, 34, 0.95), rgba(7, 22, 16, 0.95));
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.25s var(--ease-out), border-color 0.25s;
}
.mcard:nth-child(2) { --accent: var(--yellow); }
.mcard:nth-child(3) { --accent: var(--red); }
.mcard::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--accent);
}
.mcard:hover { border-color: var(--accent); }
.mcard__q { font-size: 1.05rem; margin-bottom: 14px; }
.mcard__num {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--f-hud);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 14px;
}
.mcard__num b {
  font-size: clamp(3rem, 16vw, 4.4rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  min-width: 3ch;
}
.mcard__num span { font-size: 1.1rem; color: var(--muted); letter-spacing: 0.1em; }
.mcard__cond {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.mcard__cond li {
  font-family: var(--f-hud);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--night);
  border: 1px solid var(--line);
  color: var(--muted);
}
.pending {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-hud);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--yellow);
  padding: 4px 9px;
  border-radius: 5px;
}
.pending::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: blink 1.4s infinite; }

/* ---------- Shorts ---------- */
.shorts {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 62%;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--green) transparent;
}
@media (min-width: 640px) { .shorts { grid-auto-columns: 34%; } }
@media (min-width: 1000px) { .shorts { grid-auto-columns: calc((100% - 70px) / 6); } }

.short {
  --c1: var(--green-deep);
  --c2: var(--night);
  position: relative;
  scroll-snap-align: start;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background:
    url("../img/mapa-topo.svg") 30% 40% / 260% no-repeat,
    linear-gradient(170deg, var(--c1), var(--c2) 75%);
  color: var(--text);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  transition: transform 0.25s var(--ease-out), border-color 0.25s;
}
.short:nth-child(2) { --c1: #8a1f19; }
.short:nth-child(3) { --c1: #173f9c; }
.short:nth-child(4) { --c1: #7a6110; }
.short:nth-child(5) { --c1: #0b5f45; }
.short:nth-child(6) { --c1: #0d5c6b; }
.short:hover { color: var(--text); transform: translateY(-6px) rotate(-1deg); border-color: var(--yellow); }
.short__top { display: flex; justify-content: space-between; gap: 6px; align-items: center; }
.short__n {
  font-family: var(--f-hud);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 5px;
  padding: 2px 7px;
}
.short__date {
  font-family: var(--f-hud);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 5px;
  padding: 2px 7px;
  white-space: nowrap;
}
.short__play {
  align-self: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: transform 0.2s, background 0.2s;
}
.short__play svg { width: 20px; height: 20px; margin-left: 3px; }
.short:hover .short__play { transform: scale(1.12); background: var(--red); border-color: var(--red); }
.short__t {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(0.86rem, 3.6vw, 1rem);
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}
.short__sig {
  display: block;
  margin-top: 8px;
  font-family: var(--f-hud);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}
.channels { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* ---------- Guía (teaser) ---------- */
.guide-teaser {
  display: grid;
  gap: 18px;
  padding: 22px 18px;
  border-radius: 22px;
  border: 2px solid var(--green);
  background:
    radial-gradient(500px 240px at 100% 0%, rgba(255, 210, 63, 0.16), transparent 70%),
    linear-gradient(160deg, #0f2c21, #07160f);
  position: relative;
  overflow: hidden;
}
.guide-teaser__num {
  font-family: var(--f-hud);
  font-weight: 700;
  font-size: clamp(3.6rem, 20vw, 7rem);
  line-height: 0.9;
  color: var(--yellow);
}
.guide-teaser__num small { font-size: 0.32em; color: var(--muted); letter-spacing: 0.1em; }
@media (min-width: 860px) {
  .guide-teaser { grid-template-columns: 1.3fr 0.7fr; align-items: center; padding: 36px; }
  .guide-teaser__num { text-align: right; }
}

/* ---------- Elenco ---------- */
.crew { display: grid; gap: 16px; }
@media (min-width: 760px) { .crew { grid-template-columns: 1fr 1fr; } }
.crew__card {
  position: relative;
  padding: 22px 18px 20px;
  border-radius: 22px;
  border: 1px solid var(--line-2);
  background: linear-gradient(170deg, var(--panel), var(--night-2));
  overflow: hidden;
}
.crew__card--macaw { background: linear-gradient(170deg, #20140f, var(--night-2)); border-color: rgba(255, 68, 56, 0.35); }
.crew__art {
  position: relative;
  height: 170px;
  margin: -6px -6px 14px;
  border-radius: 14px;
  border: 2px dashed rgba(255, 210, 63, 0.55);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 5px),
    radial-gradient(circle at 50% 70%, rgba(52, 224, 127, 0.22), transparent 65%);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.crew__card--macaw .crew__art { background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 5px),
    radial-gradient(circle at 50% 60%, rgba(46, 123, 255, 0.25), transparent 65%); }
.crew__art img { width: 72%; max-height: 140px; object-fit: contain; animation: holo 4s ease-in-out infinite; }
.crew__art .ph-tag { left: 10px; top: 10px; }
.crew__role {
  font-family: var(--f-hud);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 6px;
}
.crew__card--macaw .crew__role { color: var(--red); }
.crew__card h3 { font-size: clamp(1.5rem, 7vw, 2rem); margin-bottom: 8px; text-transform: uppercase; }
.crew__card p { color: var(--muted); margin: 0; }
.stats { display: grid; gap: 8px; margin-top: 16px; }
.stat {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  align-items: center;
  gap: 10px;
  font-family: var(--f-hud);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat i {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}
.stat i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--v, 50%);
  background: var(--bar, var(--green));
  border-radius: 4px;
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 1.2s var(--ease-out) 0.2s;
}
.reveal.is-in .stat i::after { transform: scaleX(1); }

/* ---------- Arena ---------- */
.arena {
  position: relative;
  border-radius: 26px;
  padding: 26px 18px;
  overflow: hidden;
  background:
    repeating-linear-gradient(-45deg, rgba(255, 210, 63, 0.06) 0 14px, transparent 14px 28px),
    linear-gradient(160deg, #131c3a, #070b18 70%);
  border: 2px solid var(--blue);
}
.arena__grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .arena__grid { grid-template-columns: 1fr 1fr; } .arena { padding: 42px; } }
.arena h2 { color: #fff; }
.arena h2 span { color: var(--yellow); }
.arena .lead { color: #c4d2f5; }
.soon {
  display: inline-block;
  font-family: var(--f-hud);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--ink);
  background: var(--yellow);
  padding: 5px 10px;
  border-radius: 5px;
  margin-bottom: 14px;
  animation: blinkbg 2.4s steps(1) infinite;
}
.track { position: relative; }
.track svg { width: 100%; height: auto; overflow: visible; }
.track__path { fill: none; stroke: rgba(255, 255, 255, 0.14); stroke-width: 26; stroke-linejoin: round; }
.track__line { fill: none; stroke: #fff; stroke-width: 2; stroke-dasharray: 10 12; opacity: 0.5; }
.track__start { stroke: var(--yellow); stroke-width: 6; }
.lap {
  position: absolute;
  right: 6px; top: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--f-hud);
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
}
.lap span { display: block; font-size: 0.62rem; letter-spacing: 0.16em; color: #c4d2f5; text-transform: uppercase; }
.lap b { font-size: 1.35rem; color: var(--yellow); font-variant-numeric: tabular-nums; }
.modes { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.modes li {
  font-family: var(--f-hud);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* ---------- Toast «misión completada» ---------- */
.toast-zone {
  position: fixed;
  left: 50%;
  top: 72px;
  z-index: 70;
  width: min(92vw, 420px);
  transform: translateX(-50%);
  pointer-events: none;
}
.toast {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(5, 14, 11, 0.95);
  border: 2px solid var(--green);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(52, 224, 127, 0.25);
  animation: toastin 3.6s var(--ease-out) forwards;
}
.toast__ico {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--green);
  color: var(--ink);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.toast__ico svg { width: 20px; height: 20px; }
.toast__k {
  display: block;
  font-family: var(--f-hud);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
}
.toast__t { display: block; font-weight: 600; font-size: 0.95rem; line-height: 1.3; }

/* ---------- Pie ---------- */
.foot {
  margin-top: 40px;
  padding-block: 40px 30px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
  font-size: 0.88rem;
  color: var(--muted);
}
.foot__grid { display: grid; gap: 22px; }
@media (min-width: 820px) { .foot__grid { grid-template-columns: 1.4fr 1fr; } }
.foot .brand { margin-bottom: 12px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; }
.foot__links a { color: var(--text); }
.disclaimer {
  margin-top: 22px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(5, 14, 11, 0.7);
  font-size: 0.8rem;
  line-height: 1.5;
}
.proto { font-family: var(--f-hud); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 12px; }

/* ---------- Página de guía ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-family: var(--f-hud);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--yellow); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green); }

.g-hero { padding-block: 26px 10px; position: relative; overflow: hidden; }
.g-hero h1 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 8.4vw, 3.6rem);
  letter-spacing: -0.02em;
  line-height: 1.02;
  max-width: 20ch;
  margin: 12px 0 18px;
}
.g-hero { isolation: isolate; }
.g-layout { display: grid; gap: 22px; padding-bottom: 30px; grid-template-columns: minmax(0, 1fr); }
.g-main > .g-sec:first-child { margin-top: 8px; }
@media (min-width: 960px) {
  .g-layout {
    grid-template-columns: minmax(0, 1fr) 380px;
    grid-template-areas: "answer side" "main side";
    align-items: start;
    column-gap: 40px;
  }
  .g-answer { grid-area: answer; }
  .g-main { grid-area: main; }
  .g-side { grid-area: side; position: sticky; top: 84px; }
}
.answer {
  padding: 18px;
  border-radius: var(--radius);
  border-left: 6px solid var(--green);
  background: rgba(52, 224, 127, 0.08);
}
.answer h2 { font-size: 0.82rem; font-family: var(--f-hud); letter-spacing: 0.18em; color: var(--green); margin-bottom: 8px; }
.answer p { font-size: 1.1rem; margin: 0; }

.measure {
  position: relative;
  padding: 22px 18px 18px;
  border-radius: 20px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 4px),
    linear-gradient(170deg, #11301f, #06130d);
  border: 2px solid var(--green);
  box-shadow: 0 0 50px rgba(52, 224, 127, 0.15);
}
.measure__k {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  font-family: var(--f-hud);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.measure__num {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 10px 0 6px;
  font-family: var(--f-hud);
  font-weight: 700;
  line-height: 0.9;
  color: var(--yellow);
}
.measure__num b { font-size: clamp(4.4rem, 26vw, 7.5rem); font-variant-numeric: tabular-nums; }
.measure__num span { font-size: 1.6rem; color: var(--text); }
.measure dl { display: grid; gap: 8px; margin: 14px 0 0; }
.measure dl div {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
.measure dt { color: var(--muted); }
.measure dd { margin: 0; text-align: right; font-weight: 600; }

.steps { list-style: none; margin: 0; padding: 0 0 0 4px; counter-reset: st; position: relative; }
.steps::before {
  content: "";
  position: absolute;
  left: 21px; top: 20px; bottom: 30px;
  border-left: 3px dotted var(--yellow);
}
.steps li {
  counter-increment: st;
  position: relative;
  padding: 0 0 22px 58px;
  min-height: 44px;
}
.steps li::before {
  content: counter(st);
  position: absolute;
  left: 0; top: 0;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--night);
  border: 3px solid var(--green);
  font-family: var(--f-hud);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--green);
}
.steps li:last-child::before { background: var(--red); border-color: var(--red); color: #fff; content: "★"; }
.steps h3 { font-size: 1.05rem; margin: 8px 0 4px; }
.steps p { color: var(--muted); margin: 0; }

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 2px dashed rgba(255, 210, 63, 0.6);
  background:
    url("../img/mapa-topo.svg") center / 140% no-repeat,
    linear-gradient(160deg, #0f2c21, #050e0b);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
}
.video__play {
  width: 72px; height: 72px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 68, 56, 0.85);
}
.video__play svg { width: 28px; height: 28px; margin-left: 4px; }
.video p { margin: 0; font-family: var(--f-hud); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; }
.video small { display: block; margin-top: 6px; color: var(--muted); font-family: var(--f-body); text-transform: none; letter-spacing: 0; font-weight: 400; }

.box {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: rgba(13, 34, 26, 0.75);
}
.box h2 { font-size: clamp(1.2rem, 5vw, 1.5rem); margin-bottom: 10px; }
.g-sec { margin-top: 34px; }
.g-sec > h2 { font-size: clamp(1.3rem, 6vw, 1.9rem); margin-bottom: 16px; }

.log { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.log th, .log td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.log th { font-family: var(--f-hud); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
}
.tags a:hover { border-color: var(--yellow); color: var(--yellow); }

/* ---------- Página legal ---------- */
.legal { padding-block: 30px 40px; max-width: 760px; }
.legal h1 { font-family: var(--f-display); font-weight: 900; font-size: clamp(2rem, 9vw, 3.4rem); text-transform: uppercase; margin: 10px 0 20px; }
.legal h2 { font-size: clamp(1.1rem, 5vw, 1.4rem); margin: 30px 0 10px; text-transform: none; letter-spacing: 0; }
.legal p, .legal li { color: #cfe3d7; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.5em; }
.legal .answer { margin-bottom: 10px; }
.legal .answer h2 { font-size: 0.82rem; font-family: var(--f-hud); letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 8px; }

/* Elección de idioma (raíz) */
.pick {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px var(--gutter);
  position: relative;
  overflow: hidden;
}
.pick .title { font-size: clamp(3rem, 16vw, 6.4rem); }
.pick .ctas { justify-content: center; }

/* =========================================================
   PERSONAJES 3D (v0.2, 5-nov-2026)
   .char = «ventana» del personaje.
   .char--jpg = la imagen es un JPG con fondo gris liso (#D9D9D9):
     se funde con mix-blend-mode: multiply sobre un fondo claro de color,
     así el gris desaparece en el degradado de la ventana.
   CUANDO LLEGUEN LOS RECORTES SIN FONDO (PNG o WebP transparente):
     cambiar el src por el recorte y quitar la clase .char--jpg.
     La ventana se queda igual y el personaje queda «flotando» encima.
   ========================================================= */
.char {
  --c-a: #f2fff4;          /* luz del fondo */
  --c-b: #fff0a8;          /* sombra del fondo */
  --ring: var(--green);
  --fx: 50%;               /* foco del zoom (cara) */
  --fy: 40%;
  --zoom: 1;
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  border-radius: 18px;
  border: 3px solid var(--ring);
  background:
    radial-gradient(circle at 72% 22%, var(--c-a), var(--c-b) 78%);
  box-shadow: 0 0 0 4px rgba(5, 14, 11, 0.85), 0 18px 40px rgba(0, 0, 0, 0.45);
}
.char img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--fx) var(--fy);
  transform: scale(var(--zoom));
  transform-origin: var(--fx) var(--fy);
}
.char--jpg img { mix-blend-mode: multiply; }
/* Rejilla HUD y viñeta encima del personaje */
.char::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(4, 16, 11, 0.07) 0 2px, transparent 2px 5px),
    radial-gradient(circle at 50% 45%, transparent 58%, rgba(4, 16, 11, 0.32));
}
.char--macaw { --ring: var(--red); --c-a: #eef5ff; --c-b: #ffe9a3; }
.char--round { border-radius: 50%; }
.char--face { --zoom: 1.7; }
.char .ph-tag { z-index: 2; }

/* Iguana sentada sobre la cuenta regresiva: avatar redondo */
/* El avatar queda entero por encima del panel, así no tapa la etiqueta «PS5» */
.countdown { --perch: clamp(104px, 30vw, 128px); margin-top: calc(var(--perch) + 10px); }
.perch {
  right: 14px;
  top: calc(var(--perch) * -1 + 4px);
  width: var(--perch);
}
.perch .char { aspect-ratio: 1; --fx: 68%; --fy: 30%; --zoom: 1.75; }
.perch .char img,
.perch:hover .char img,
.perch:focus-visible .char img,
.perch:active .char img { filter: none; transform: scale(var(--zoom)); }
.perch::before {
  /* anillo de radar que gira alrededor del avatar */
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 2px dashed var(--yellow);
  opacity: 0.8;
  animation: spin 14s linear infinite;
  pointer-events: none;
}
.perch:hover .char, .perch:focus-visible .char { transform: translateY(-4px) rotate(-3deg); }
.perch .char { transition: transform 0.3s var(--ease-out); }
.perch:active .char { transform: scale(0.95); }
.perch .ph-tag { left: auto; right: calc(100% + 12px); top: 8px; }
.perch__name {
  position: absolute;
  left: 50%;
  bottom: -10px;
  z-index: 3;
  transform: translateX(-50%) rotate(-3deg);
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--green);
  color: var(--ink);
  font-family: var(--f-hud);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.bubble { bottom: calc(100% + 14px); }

/* Guacamaya del héroe: «sticker» redondo que vuela, detrás del título */
.flyer {
  z-index: 0;
  top: 58px;
  right: 2px;
  width: clamp(92px, 27vw, 158px);
}
.flyer .char {
  aspect-ratio: 1;
  --zoom: 1.08;
  border: 4px solid #fff;
  box-shadow: 0 0 0 3px var(--red), 0 14px 30px rgba(0, 0, 0, 0.55);
  transform: rotate(8deg);
}
/* La foto mira a la derecha: se espeja para que señale hacia el título */
.flyer .char img { transform: scaleX(-1) scale(var(--zoom)); }
.flyer .ph-tag { left: 50%; bottom: -16px; transform: translateX(-50%); }
.title { z-index: 1; }
@media (min-width: 980px) { .flyer { top: 34px; right: 45%; } }

/* Elenco: ventanas grandes */
.crew__win {
  aspect-ratio: 5 / 4;
  margin: -6px -6px 16px;
  --fy: 28%;
}
.crew__win img { animation: float 5s ease-in-out infinite; }
.crew__win .ph-tag { left: 10px; top: 10px; }
.crew__badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(5, 14, 11, 0.85);
  color: var(--text);
  font-family: var(--f-hud);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Arena: ficha del piloto */
.pilot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 10px 14px 10px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.35);
  width: fit-content;
  max-width: 100%;
}
.pilot .char { width: 64px; height: 64px; flex: none; border-width: 2px; --fx: 44%; --fy: 36%; --zoom: 1.8; box-shadow: none; }
.pilot b { display: block; font-family: var(--f-display); font-size: 0.95rem; color: #fff; }
.pilot span { font-family: var(--f-hud); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #c4d2f5; }

/* Guía: la iguana da la respuesta corta */
.answer--char { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 14px; align-items: start; }
.answer--char .char { width: 62px; height: 62px; border-width: 2px; --fx: 68%; --fy: 30%; --zoom: 1.75; box-shadow: none; }

/* Elección de idioma (raíz): los dos personajes */
.pick__duo { display: flex; justify-content: center; gap: 18px; margin-bottom: 22px; }
.pick__duo .char { width: clamp(96px, 30vw, 150px); aspect-ratio: 1; }
.pick__duo .char--macaw { transform: rotate(6deg); }
.pick__duo .char:first-child { transform: rotate(-5deg); --fx: 68%; --fy: 30%; --zoom: 1.6; }
.pick .lead { margin-inline: auto; }
.pick .disclaimer { max-width: 640px; margin-inline: auto; }

@keyframes float { 0%, 100% { transform: scale(var(--zoom)) translateY(0); } 50% { transform: scale(calc(var(--zoom) * 1.03)) translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .perch::before, .crew__win img { animation: none !important; } }

/* ---------- Animaciones ---------- */
@keyframes drift { from { transform: translate3d(0, 0, 0) rotate(0); } to { transform: translate3d(-6%, 3%, 0) rotate(4deg); } }
@keyframes scan { from { transform: translateY(-120px); } to { transform: translateY(110vh); } }
@keyframes blink { 0% { box-shadow: 0 0 0 0 rgba(255, 68, 56, 0.7); } 70% { box-shadow: 0 0 0 9px rgba(255, 68, 56, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 68, 56, 0); } }
@keyframes charin { to { opacity: 1; transform: none; } }
@keyframes fillchar { to { color: var(--yellow); -webkit-text-stroke-color: var(--yellow); } }
@keyframes fly {
  0% { transform: translate(0, 0) rotate(-4deg); }
  25% { transform: translate(-26px, -12px) rotate(2deg); }
  50% { transform: translate(-8px, 8px) rotate(-2deg); }
  75% { transform: translate(-34px, 2px) rotate(3deg); }
  100% { transform: translate(0, 0) rotate(-4deg); }
}
@keyframes tick { 0% { transform: translateY(-40%); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dash { to { stroke-dashoffset: -11; } }
@keyframes bob { 0%, 100% { transform: rotate(45deg) translate(0, 0); } 50% { transform: rotate(45deg) translate(-4px, -4px); } }
@keyframes ripple { from { transform: scale(0.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
@keyframes ping { from { transform: scale(0.4); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes holo { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(-5px); opacity: 0.88; } }
@keyframes wobble { 0% { transform: rotate(0); } 30% { transform: rotate(-14deg); } 60% { transform: rotate(10deg); } 100% { transform: rotate(0); } }
@keyframes blinkbg { 0%, 100% { background: var(--yellow); } 50% { background: var(--green); } }
@keyframes toastin {
  0% { opacity: 0; transform: translateY(-20px) scale(0.92); }
  8% { opacity: 1; transform: translateY(0) scale(1.03); }
  12% { transform: none; }
  85% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-14px); }
}

/* Movimiento reducido: se apagan las animaciones fuertes */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .title__char { opacity: 1; transform: none; }
  .title__l2 .title__char { color: var(--yellow); -webkit-text-stroke-color: var(--yellow); }
  .reveal { opacity: 1; transform: none; }
  .hero__topo, .hero::after, .minimap__map, .minimap__sweep, .tape__band, .flyer { animation: none !important; }
  .toast { animation: none; }
}
