/*
 * Presentaciones del Hacktoberfest Hack Day Panama City x Python Panamá.
 * Diseño: el del deck oficial de MLH para Hacktoberfest 2026 (fondo hueso, escalera
 * pixelada verde bosque, logo de MLH abajo a la derecha). Paleta medida en los
 * fondos originales del deck «Gemma Opening Ceremony» el 25 oct 2026.
 * Lienzo fijo de 1600 × 900 que deck.js escala a la pantalla.
 */
@import url("fuentes/fuentes.css");

:root {
  /* Hacktoberfest 2026 */
  --hf-fondo: #E4E5DA;
  --hf-bosque: #3D5F58;
  --hf-tinta: #203C36;
  --hf-amarillo: #F5B726;
  --hf-granate: #671912;
  --hf-salmon: #E97B77;
  --hf-celeste: #8BB2DE;
  --hf-papel: #F4F4EC;

  /* MLH */
  --mlh-rojo: #E53927;
  --mlh-azul: #1D539F;
  --mlh-amarillo: #F8B92A;

  --fuente-titular: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --fuente-texto: "Inter", "Helvetica Neue", Arial, sans-serif;
  --fuente-mono: "Martian Mono", "SF Mono", Menlo, monospace;

  --sombra: 8px 8px 0 var(--hf-bosque);
  --sombra-chica: 5px 5px 0 var(--hf-bosque);
  --borde: 3px solid var(--hf-bosque);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: #14231F;
  color: var(--hf-tinta);
  font-family: var(--fuente-texto);
  overflow: hidden;
}

/* ---------- Escenario ---------- */

.escenario {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
}

.diapositivas {
  position: relative;
  width: 1600px;
  height: 900px;
  transform-origin: center center;
  flex: none;
}

.slide {
  position: absolute;
  inset: 0;
  width: 1600px;
  height: 900px;
  padding: 196px 120px 104px;
  background: var(--hf-fondo) url("img/mlh/fondo-contenido.png") top left / 1600px 900px no-repeat;
  font-size: 30px;
  line-height: 1.38;
  color: var(--hf-tinta);
  overflow: hidden;
  display: none;
  flex-direction: column;
}

.slide.activa { display: flex; }

/* Logo de MLH abajo a la derecha, como en el deck oficial */
.slide::after {
  content: "";
  position: absolute;
  right: 48px;
  bottom: 36px;
  width: 104px;
  height: 44px;
  background: url("img/mlh/mlh-logo-color.png") center / contain no-repeat;
}

.slide.sin-logo::after { display: none; }

/* Pie con el nombre del evento y el número */
.pie {
  position: absolute;
  left: 120px;
  right: 200px;
  bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  font-family: var(--fuente-mono);
  font-size: 14px;
  color: var(--hf-bosque);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.pie span:first-child { overflow: hidden; text-overflow: ellipsis; }

.pie .numero {
  font-weight: 700;
  background: var(--hf-bosque);
  color: var(--hf-fondo);
  padding: 4px 10px;
}

/* ---------- Tipografía ---------- */

.slide h1,
.slide h2,
.slide h3 {
  font-family: var(--fuente-titular);
  color: var(--hf-tinta);
  margin: 0;
  line-height: 1.02;
  letter-spacing: -0.005em;
}

.slide h1 {
  font-size: 72px;
  font-weight: 800;
  margin-bottom: 30px;
}

/* Escalón pixelado bajo el titular: los cuatro colores de la escalera */
.slide h1::after {
  content: "";
  display: block;
  width: 168px;
  height: 12px;
  margin-top: 16px;
  background: linear-gradient(90deg,
    var(--hf-bosque) 0 25%, var(--hf-amarillo) 25% 50%,
    var(--hf-salmon) 50% 75%, var(--hf-celeste) 75% 100%);
}

.slide h2 {
  font-size: 42px;
  font-weight: 700;
  color: var(--hf-bosque);
  margin-bottom: 14px;
}

.slide h3 {
  font-size: 30px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--hf-bosque);
  margin-bottom: 10px;
}

.slide p { margin: 0 0 18px; max-width: 1240px; }
.slide strong { color: var(--hf-tinta); font-weight: 700; background: linear-gradient(transparent 62%, rgba(245, 183, 38, 0.55) 62%); }
.slide em { font-style: italic; }
.slide a { color: var(--hf-tinta); text-decoration: underline; text-decoration-color: var(--mlh-rojo); text-decoration-thickness: 3px; text-underline-offset: 6px; }

.slide ul, .slide ol { margin: 0 0 22px; padding-left: 0; list-style: none; max-width: 1300px; }
.slide li { position: relative; padding-left: 46px; margin-bottom: 12px; }
.slide ul > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.5em;
  width: 16px;
  height: 16px;
  background: var(--hf-amarillo);
  box-shadow: 4px 4px 0 var(--hf-bosque);
}
.slide ol { counter-reset: paso; }
.slide ol > li { counter-increment: paso; padding-left: 64px; }
.slide ol > li::before {
  content: counter(paso);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-family: var(--fuente-mono);
  font-size: 22px;
  font-weight: 700;
  background: var(--hf-bosque);
  color: var(--hf-fondo);
}

.slide code {
  font-family: var(--fuente-mono);
  font-size: 0.8em;
  background: var(--hf-papel);
  border: 2px solid rgba(61, 95, 88, 0.35);
  padding: 0.05em 0.3em;
}

.slide pre {
  margin: 0 0 22px;
  padding: 28px 34px;
  background: var(--hf-tinta);
  color: var(--hf-fondo);
  font-family: var(--fuente-mono);
  font-size: 22px;
  line-height: 1.55;
  box-shadow: 8px 8px 0 var(--hf-amarillo);
  white-space: pre;
  overflow: hidden;
}
.slide pre code { background: none; border: 0; padding: 0; font-size: 1em; color: inherit; }
.slide pre .comentario { color: var(--hf-celeste); }

.slide blockquote {
  margin: 0 0 22px;
  padding: 24px 32px;
  background: var(--hf-papel);
  border-left: 12px solid var(--hf-amarillo);
  box-shadow: var(--sombra-chica);
}
.slide blockquote p:last-child { margin-bottom: 0; }

/* ---------- Tablas ---------- */

.slide table {
  border-collapse: collapse;
  width: 100%;
  font-size: 25px;
  line-height: 1.28;
  background: var(--hf-papel);
  box-shadow: var(--sombra);
  margin-bottom: 26px;
}
.slide th {
  background: var(--hf-bosque);
  color: var(--hf-fondo);
  font-family: var(--fuente-titular);
  font-size: 27px;
  font-weight: 700;
  text-align: left;
  padding: 11px 20px;
}
.slide td { padding: 10px 20px; border-top: 2px solid rgba(61, 95, 88, 0.25); vertical-align: top; }
.slide tr:nth-child(even) td { background: rgba(228, 229, 218, 0.55); }
.slide td.hora { font-family: var(--fuente-mono); font-size: 22px; white-space: nowrap; color: var(--hf-bosque); }

/* ---------- Bloques ---------- */

.columnas { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin-bottom: 26px; }
.columnas.tres { grid-template-columns: repeat(3, 1fr); gap: 32px; }
.columnas.agenda { align-items: start; }
.columnas.ideas { gap: 24px; margin-bottom: 18px; }
.ideas .tarjeta { padding: 18px 22px; font-size: 24px; line-height: 1.3; }
.ideas .tarjeta p { margin: 8px 0 0; }
.lista-ideas { font-size: 31px; }
.lista-ideas li + li { margin-top: 12px; }
.agenda td { padding: 20px 22px; font-size: 28px; }
.agenda td.hora { width: 1%; padding-right: 28px; font-size: 24px; }

.tarjeta {
  background: var(--hf-papel);
  border: var(--borde);
  box-shadow: var(--sombra);
  padding: 26px 32px;
  font-size: 27px;
}
.tarjeta p:last-child, .tarjeta ul:last-child { margin-bottom: 0; }
.tarjeta.amarilla { background: var(--hf-amarillo); }
.tarjeta.amarilla strong { background: none; }
.tarjeta.celeste { border-color: var(--mlh-azul); box-shadow: 8px 8px 0 var(--hf-celeste); }
.tarjeta.celeste h2 { color: var(--mlh-azul); }

.etiqueta {
  display: inline-block;
  font-family: var(--fuente-mono);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hf-fondo);
  background: var(--hf-bosque);
  padding: 6px 12px;
  margin-bottom: 18px;
  align-self: flex-start;
}
.etiqueta.roja { background: var(--mlh-rojo); }
.etiqueta.amarilla { background: var(--hf-amarillo); color: var(--hf-tinta); }
.etiqueta.celeste { background: var(--hf-celeste); color: var(--hf-tinta); }

.nota-pie {
  display: block;
  margin-top: auto;
  font-size: 21px;
  color: var(--hf-bosque);
  border-top: 3px solid rgba(61, 95, 88, 0.35);
  padding-top: 14px;
  max-width: 1300px;
}

.destacado {
  font-family: var(--fuente-titular);
  font-size: 50px;
  font-weight: 700;
  line-height: 1.15;
  max-width: 1300px;
}

/* Lo que falta completar antes de proyectar. Si llega al proyector, es un error de preparación. */
.pendiente {
  color: var(--mlh-rojo);
  font-weight: 700;
  border: 3px dashed var(--mlh-rojo);
  padding: 0 0.25em;
  background: rgba(229, 57, 39, 0.08);
}

/* ---------- Tipos de diapositiva ---------- */

/* Portada y separador de sección: fondo «Hosted by HACKTOBERFEST» */
.slide.portada,
.slide.seccion {
  background-image: url("img/mlh/fondo-portada.png");
  padding: 0 120px 110px;
  justify-content: flex-end;
}
.slide.portada h1,
.slide.seccion h1 {
  font-size: 104px;
  max-width: 1360px;
}
.slide.portada h1::after,
.slide.seccion h1::after { width: 240px; height: 18px; }
.slide.portada .subtitulo {
  font-family: var(--fuente-titular);
  font-size: 50px;
  font-weight: 700;
  color: var(--mlh-rojo);
  margin-bottom: 26px;
}
.slide.portada .datos {
  font-family: var(--fuente-mono);
  font-size: 23px;
  line-height: 1.6;
  color: var(--hf-bosque);
}
.slide.seccion .siguiente {
  font-family: var(--fuente-mono);
  font-size: 24px;
  color: var(--hf-bosque);
}

/* Frase sola, centrada */
.slide.enfoque { justify-content: center; }
.slide.enfoque .destacado { font-size: 66px; }

/* Diapositiva con código QR a la derecha */
.con-qr { display: grid; grid-template-columns: 1fr 380px; gap: 70px; align-items: center; flex: 1; }
.qr {
  background: #fff;
  border: var(--borde);
  box-shadow: var(--sombra);
  padding: 22px;
  text-align: center;
}
.qr img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.qr figcaption { font-family: var(--fuente-mono); font-size: 18px; margin-top: 14px; word-break: break-all; color: var(--hf-tinta); }
.url-grande {
  font-family: var(--fuente-mono);
  font-weight: 700;
  font-size: 40px;
  color: var(--mlh-rojo);
  margin-bottom: 26px;
  word-break: break-all;
}

/* Paso a paso con captura de pantalla (guía de OHQ) */
.paso { display: grid; grid-template-columns: 520px 1fr; gap: 56px; align-items: center; flex: 1; min-height: 0; }
.paso.vertical { grid-template-columns: 600px 1fr; }
.paso .numero-paso {
  font-family: var(--fuente-mono);
  font-size: 30px;
  font-weight: 700;
  color: var(--mlh-rojo);
  margin-bottom: 10px;
}
.paso h1 { font-size: 64px; }
.captura {
  margin: 0;
  justify-self: center;
  max-height: 600px;
  border: var(--borde);
  box-shadow: var(--sombra);
  background: #fff;
  overflow: hidden;
}
.captura img { display: block; max-width: 100%; max-height: 594px; object-fit: contain; }
.boton-ohq {
  font-family: var(--fuente-mono);
  font-size: 0.82em;
  font-weight: 700;
  background: var(--mlh-azul);
  color: #fff;
  padding: 0.05em 0.4em;
  white-space: nowrap;
}

/* Video enlazado: miniatura a pantalla completa */
.slide.video { padding: 0; background: #000; }
.slide.video a { display: block; position: absolute; inset: 0; }
.slide.video img { width: 100%; height: 100%; object-fit: cover; }
.slide.video .reproducir {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--fuente-mono);
  font-size: 28px;
  font-weight: 700;
  background: var(--mlh-rojo);
  color: #fff;
  padding: 18px 30px;
  box-shadow: 8px 8px 0 #000;
}

/* Patrocinadores */
.slide.patrocinadores {
  background: var(--hf-fondo) url("img/mlh/fondo-patrocinadores.png") top left / 1600px 900px no-repeat;
  padding: 0;
}
.slide.patrocinadores .grilla { position: absolute; inset: 0; width: 1600px; height: 900px; }
.slide.patrocinadores .rotulo {
  position: absolute;
  top: 18px;
  font-family: var(--fuente-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--hf-tinta);
}

/* Persona que presenta */
.persona { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: center; flex: 1; }
.persona img { width: 300px; height: 300px; object-fit: contain; background: var(--hf-papel); border: var(--borde); box-shadow: var(--sombra); }
.persona img.foto { object-fit: cover; }

/* Logos aliados */
.aliados { display: flex; align-items: center; gap: 46px; margin-top: 30px; }
.aliados .rotulo { font-family: var(--fuente-mono); font-size: 16px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--hf-bosque); }
.aliados img { height: 60px; width: auto; }

/* Notas del orador: no se proyectan */
.slide .notas { display: none; }

/* ---------- Controles en pantalla ---------- */

.progreso {
  position: fixed;
  left: 0;
  bottom: 0;
  height: 6px;
  background: var(--hf-amarillo);
  transition: width 0.2s ease;
  z-index: 5;
}

/* Barra de navegación: aparece al mover el mouse y se oculta sola */
.barra {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: calc(100vw - 32px);
  padding: 6px;
  background: rgba(32, 60, 54, 0.97);
  color: #EDEEE5;
  border: 2px solid var(--hf-bosque);
  box-shadow: 6px 6px 0 var(--hf-amarillo);
  font-family: var(--fuente-mono);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 24px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
body.barra-visible .barra,
body.general .barra {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
body:not(.barra-visible):not(.general) .escenario { cursor: none; }

.barra button,
.barra .b-indice {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.barra svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
.barra button:hover { background: var(--hf-bosque); }
.barra button:focus-visible,
.barra .b-indice:focus-visible { outline: 3px solid var(--hf-amarillo); outline-offset: -3px; }
.barra button:disabled { opacity: 0.3; cursor: default; background: transparent; }
.barra button[aria-pressed="true"] { color: var(--hf-amarillo); background: var(--hf-bosque); }
.barra button.fin { color: var(--hf-tinta); background: var(--hf-amarillo); }

.barra .b-indice {
  display: inline-flex;
  gap: 8px;
  width: auto;
  padding: 0 14px 0 10px;
  background: var(--hf-amarillo);
  color: var(--hf-tinta);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.barra .b-indice:hover { background: #FFD15C; }

.barra .b-titulo {
  max-width: 240px;
  padding: 0 10px;
  color: #A9BDB7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.barra .b-contador { min-width: 70px; text-align: center; font-weight: 700; }
.barra .b-sep { width: 1px; height: 24px; margin: 0 4px; background: rgba(237, 238, 229, 0.2); }

@media (max-width: 760px) {
  .barra .b-titulo, .barra [data-accion="presentador"], .barra [data-accion="ayuda"] { display: none; }
}

body.presentador .barra { display: none; }

.panel-notas {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 38vh;
  overflow: auto;
  background: rgba(20, 35, 31, 0.96);
  color: #EDEEE5;
  font-family: var(--fuente-texto);
  font-size: 17px;
  line-height: 1.55;
  padding: 18px 28px 24px;
  border-top: 6px solid var(--hf-amarillo);
  white-space: pre-wrap;
  z-index: 6;
  padding-bottom: 84px;
  display: none;
}
.panel-notas.visible { display: block; }

.ayuda {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(20, 35, 31, 0.85);
  z-index: 10;
}
.ayuda.visible { display: grid; }
.ayuda div {
  background: var(--hf-fondo);
  color: var(--hf-tinta);
  border: var(--borde);
  box-shadow: var(--sombra);
  padding: 28px 36px;
  font-family: var(--fuente-mono);
  font-size: 16px;
  line-height: 1.9;
}
.ayuda kbd { background: var(--hf-bosque); color: var(--hf-fondo); padding: 1px 8px; font-family: inherit; }

/* Vista general */
body.general { overflow: auto; }
body.general .escenario { position: static; display: block; padding: 32px; }
body.general .diapositivas {
  width: auto;
  height: auto;
  transform: none !important;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
}
body.general .slide-marco { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; cursor: pointer; outline: 4px solid transparent; }
body.general .slide-marco.actual { outline-color: var(--hf-amarillo); }
body.general .slide { display: flex; transform-origin: top left; }
body.general .progreso { display: none; }

/* ---------- Vista de presentador ---------- */

body.presentador { background: #101B18; color: #EDEEE5; overflow: hidden; }
body.presentador .escenario { display: none; }
body.presentador .progreso { display: none; }
.vista-presentador {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 18px;
  font-family: var(--fuente-texto);
}
.vista-presentador .marco { position: relative; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.vista-presentador .marco .slide { display: flex; transform-origin: top left; }
.vista-presentador .actual-p { grid-row: 1 / 3; align-self: start; outline: 4px solid var(--hf-amarillo); }
.vista-presentador .siguiente-p { opacity: 0.85; }
.vista-presentador .rotulo-p { font-family: var(--fuente-mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--hf-celeste); margin-bottom: 6px; }
.vista-presentador .notas-p { overflow: auto; font-size: 20px; line-height: 1.55; white-space: pre-wrap; background: #172925; padding: 18px 22px; border-left: 6px solid var(--hf-amarillo); }
.vista-presentador .barra-p {
  grid-column: 1 / 3;
  display: flex;
  gap: 28px;
  align-items: center;
  font-family: var(--fuente-mono);
  font-size: 22px;
}
.vista-presentador .barra-p button {
  font: inherit;
  font-size: 16px;
  background: var(--hf-bosque);
  color: #fff;
  border: 0;
  padding: 8px 16px;
  cursor: pointer;
}
.vista-presentador .reloj { color: var(--hf-amarillo); font-weight: 700; }

/* ---------- Movimiento ----------
   Todo en la estética pixel de Hacktoberfest. Se apaga con la tecla A, en la vista
   general, en la de presentador, al imprimir y con «reducir movimiento». */

/* Entrada escalonada del contenido: deck.js marca cada bloque con .anim y --i */
.slide.entrando .anim {
  animation: aparecer 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 75ms + 60ms);
}
body[data-dir="atras"] .slide.entrando .anim { animation-name: aparecer-atras; }
@keyframes aparecer { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes aparecer-atras { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: none; } }

/* El escalón bajo el titular se arma en cuatro pasos, como la escalera */
.slide.entrando h1::after { animation: escalon 0.5s steps(4, end) 0.25s both; }
@keyframes escalon { from { width: 0; } }

/* Código: se escribe línea por línea y termina con un cursor */
.slide.entrando pre {
  animation: escribir calc(var(--lineas, 4) * 140ms) steps(var(--lineas, 4), end) 0.35s both;
}
@keyframes escribir { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.slide pre::after {
  content: "▋";
  color: var(--hf-amarillo);
  animation: cursor 1s steps(1) infinite;
}
@keyframes cursor { 50% { opacity: 0; } }

/* QR: late suave para invitar a escanear */
.slide.activa .qr { animation: latido 2.4s ease-in-out 1.2s infinite; }
@keyframes latido {
  0%, 100% { box-shadow: 8px 8px 0 var(--hf-bosque); }
  50% { box-shadow: 14px 14px 0 var(--hf-amarillo); transform: translate(-3px, -3px); }
}

/* Video: zoom lento de la miniatura y botón que respira */
.slide.video.activa img { animation: acercar 14s ease-out both; }
@keyframes acercar { from { transform: scale(1); } to { transform: scale(1.08); } }
.slide.video.activa .reproducir { animation: respirar 1.6s ease-in-out infinite; }
@keyframes respirar { 50% { transform: translate(-50%, -50%) scale(1.06); box-shadow: 12px 12px 0 #000; } }

/* Portadas y separadores: cuadritos que flotan hacia arriba */
.pixel-flotante {
  position: absolute;
  width: var(--t, 22px);
  height: var(--t, 22px);
  background: var(--c, var(--hf-amarillo));
  box-shadow: 5px 5px 0 rgba(32, 60, 54, 0.35);
  right: var(--x, 10%);
  bottom: -40px;
  opacity: 0;
  pointer-events: none;
}
.slide.activa .pixel-flotante { animation: flotar var(--d, 9s) linear var(--r, 0s) infinite; }
@keyframes flotar {
  0% { opacity: 0; transform: translateY(0) rotate(0); }
  10% { opacity: 0.9; }
  85% { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(-760px) rotate(90deg); }
}

/* Transición pixelada: mosaico de la marca que se deshace en escalera */
.transicion-pixel {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  grid-template-rows: repeat(9, 1fr);
  pointer-events: none;
}
.transicion-pixel i {
  background: var(--c);
  animation: deshacer 0.32s steps(3, end) both;
  animation-delay: calc(var(--k) * 22ms);
}
@keyframes deshacer { from { transform: scale(1.02); } to { transform: scale(0); } }

/* Confeti pixelado para los cierres (data-confeti en la diapositiva) */
.confeti { position: absolute; inset: 0; z-index: 19; pointer-events: none; overflow: hidden; }
.confeti i {
  position: absolute;
  left: var(--x);
  top: -30px;
  width: var(--t);
  height: var(--t);
  background: var(--c);
  animation: caer var(--d) cubic-bezier(0.25, 0.6, 0.4, 1) var(--r) both;
}
@keyframes caer {
  from { transform: translate(0, 0) rotate(0); opacity: 1; }
  to { transform: translate(var(--dx), 980px) rotate(var(--g)); opacity: 0.9; }
}

/* Skyline pixel de la Ciudad de Panamá completo (v3, con el arco del puente
   corregido), a todo el ancho (1600 × 891). Los 9 px de arriba se rellenan con
   el azul del borde superior del cielo; el contenido va en una tarjeta sobre el
   cielo libre. */
.slide.con-banda {
  padding: 56px 120px 104px;
  background: #1D6AA8 url("img/panama/skyline-16x9-v3.png") center bottom / 1600px auto no-repeat;
}
.banda-panama { display: none; }
.slide.con-banda .persona {
  flex: none;
  align-self: flex-start;
  grid-template-columns: 200px auto;
  gap: 40px;
  padding: 28px 40px 28px 28px;
  background: var(--hf-papel);
  border: var(--borde);
  box-shadow: var(--sombra);
  font-size: 26px;
}
.slide.con-banda .persona img { width: 200px; height: 200px; box-shadow: none; }
.slide.con-banda .persona h1 { font-size: 56px; margin-bottom: 18px; }
.slide.con-banda .persona ul { margin: 0; }
.slide.con-banda .pie { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.slide.con-banda::after { filter: drop-shadow(0 0 3px #fff); }

/* Barra de progreso pixelada con los cuatro colores */
.progreso {
  height: 8px;
  background: repeating-linear-gradient(90deg,
    var(--hf-bosque) 0 24px, var(--hf-amarillo) 24px 48px,
    var(--hf-salmon) 48px 72px, var(--hf-celeste) 72px 96px);
  transition: width 0.35s steps(6, end);
}

/* ---------- Guiños retro ----------
   Homenajes a los clásicos del pixel art, con dibujos propios (no sprites de los
   juegos): Pac-Man en la barra de progreso, Tetris en portadas y separadores, y
   un guiño por diapositiva para Super Mario Bros, Donkey Kong, Mega Man, Zelda,
   Street Fighter II, Sonic y Metal Slug. Texto arcade en Press Start 2P. */

.arcade {
  font-family: "Press Start 2P", var(--fuente-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin: 0 0 26px;
  max-width: none;
}

/* PRESS START en las portadas */
.press-start {
  position: absolute;
  top: 72px;
  right: 120px;
  font-family: "Press Start 2P", var(--fuente-mono);
  font-size: 22px;
  text-transform: uppercase;
  color: var(--hf-tinta);
  text-shadow: 3px 3px 0 var(--hf-amarillo);
}
.slide.activa .press-start span { animation: parpadeo 1.1s steps(1) infinite; }
@keyframes parpadeo { 50% { opacity: 0; } }

/* Pac-Man: se come los puntos de la barra de progreso */
.pista-progreso {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14px;
  z-index: 4;
  background: radial-gradient(circle, #F4F4EC 0 3px, transparent 3.5px) 0 50% / 28px 14px repeat-x, rgba(20, 35, 31, 0.92);
}
.progreso { height: 14px; z-index: 5; }
.comecocos {
  position: fixed;
  bottom: -5px;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  z-index: 6;
  border-radius: 50%;
  background: #FFD43B;
  box-shadow: 0 0 0 2px #14231F;
  transition: left 0.35s steps(6, end);
  animation: chomp 0.3s steps(1) infinite;
}
@keyframes chomp {
  0% { clip-path: polygon(50% 50%, 100% 15%, 100% 0, 0 0, 0 100%, 100% 100%, 100% 85%); }
  50% { clip-path: polygon(50% 50%, 100% 48%, 100% 0, 0 0, 0 100%, 100% 100%, 100% 52%); }
}
body.general .pista-progreso, body.general .comecocos,
body.presentador .pista-progreso, body.presentador .comecocos { display: none; }

/* Tetris: piezas que caen en portadas y separadores */
.tetromino {
  position: absolute;
  top: -120px;
  left: var(--x);
  display: grid;
  grid-template-columns: repeat(4, 26px);
  grid-auto-rows: 26px;
  pointer-events: none;
  opacity: 0;
}
.tetromino b { background: var(--c); box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.22), inset 4px 4px 0 rgba(255, 255, 255, 0.3); }
.tetromino b.v { background: none; box-shadow: none; }
.slide.activa .tetromino { animation: caer-tetris var(--d) steps(22, end) var(--r) infinite; }
@keyframes caer-tetris {
  0% { opacity: 0; transform: translateY(0) rotate(0); }
  5% { opacity: 0.95; }
  45% { transform: translateY(470px) rotate(0); }
  50% { transform: translateY(520px) rotate(90deg); }
  92% { opacity: 0.95; }
  100% { opacity: 0; transform: translateY(1040px) rotate(90deg); }
}

/* Super Mario Bros: bloque «?» que salta y suelta una moneda */
.bloque-pregunta {
  position: absolute;
  top: 150px;
  right: 150px;
  width: 112px;
  height: 112px;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22 shape-rendering=%22crispEdges%22%3E%3Crect x=%220%22 y=%220%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%221%22 y=%220%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%222%22 y=%220%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%223%22 y=%220%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%224%22 y=%220%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%225%22 y=%220%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%226%22 y=%220%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%227%22 y=%220%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%228%22 y=%220%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%229%22 y=%220%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%2210%22 y=%220%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%2211%22 y=%220%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%2212%22 y=%220%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%2213%22 y=%220%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%2214%22 y=%220%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%2215%22 y=%220%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%220%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%221%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%222%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%223%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%224%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%225%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%226%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%227%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%228%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%229%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%2210%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%2211%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%2212%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%2213%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%2214%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%2215%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%220%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%221%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%222%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%223%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%224%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%225%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%226%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%227%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%228%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%229%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2210%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2211%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2212%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2213%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%2214%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%2215%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%220%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%221%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%222%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%223%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%224%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%225%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23F4F4EC%22/%3E%3Crect x=%226%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23F4F4EC%22/%3E%3Crect x=%227%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23F4F4EC%22/%3E%3Crect x=%228%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23F4F4EC%22/%3E%3Crect x=%229%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23F4F4EC%22/%3E%3Crect x=%2210%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2211%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2212%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2213%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2214%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2215%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%220%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%221%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%222%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%223%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%224%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23F4F4EC%22/%3E%3Crect x=%225%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23F4F4EC%22/%3E%3Crect x=%226%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%227%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%228%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%229%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23F4F4EC%22/%3E%3Crect x=%2210%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23F4F4EC%22/%3E%3Crect x=%2211%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2212%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2213%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2214%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%2215%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%220%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%221%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%222%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%223%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%224%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%23F4F4EC%22/%3E%3Crect x=%225%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%23F4F4EC%22/%3E%3Crect x=%226%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%227%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%228%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%229%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2210%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%23F4F4EC%22/%3E%3Crect x=%2211%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%23F4F4EC%22/%3E%3Crect x=%2212%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2213%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2214%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%2215%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%220%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%221%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%222%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%223%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%224%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%225%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%226%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%227%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%228%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%229%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23F4F4EC%22/%3E%3Crect x=%2210%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23F4F4EC%22/%3E%3Crect x=%2211%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%2212%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2213%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2214%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%2215%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%220%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%221%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%222%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%223%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%224%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%225%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%226%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%227%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%228%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%23F4F4EC%22/%3E%3Crect x=%229%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%23F4F4EC%22/%3E%3Crect x=%2210%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%2211%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2212%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2213%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2214%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%2215%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%220%22 y=%228%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%221%22 y=%228%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%222%22 y=%228%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%223%22 y=%228%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%224%22 y=%228%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%225%22 y=%228%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%226%22 y=%228%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%227%22 y=%228%22 width=%221%22 height=%221%22 fill=%22%23F4F4EC%22/%3E%3Crect x=%228%22 y=%228%22 width=%221%22 height=%221%22 fill=%22%23F4F4EC%22/%3E%3Crect x=%229%22 y=%228%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%2210%22 y=%228%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2211%22 y=%228%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2212%22 y=%228%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2213%22 y=%228%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2214%22 y=%228%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%2215%22 y=%228%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%220%22 y=%229%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%221%22 y=%229%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%222%22 y=%229%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%223%22 y=%229%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%224%22 y=%229%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%225%22 y=%229%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%226%22 y=%229%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%227%22 y=%229%22 width=%221%22 height=%221%22 fill=%22%23F4F4EC%22/%3E%3Crect x=%228%22 y=%229%22 width=%221%22 height=%221%22 fill=%22%23F4F4EC%22/%3E%3Crect x=%229%22 y=%229%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%2210%22 y=%229%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2211%22 y=%229%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2212%22 y=%229%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2213%22 y=%229%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2214%22 y=%229%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%2215%22 y=%229%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%220%22 y=%2210%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%221%22 y=%2210%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%222%22 y=%2210%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%223%22 y=%2210%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%224%22 y=%2210%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%225%22 y=%2210%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%226%22 y=%2210%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%227%22 y=%2210%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%228%22 y=%2210%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%229%22 y=%2210%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%2210%22 y=%2210%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2211%22 y=%2210%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2212%22 y=%2210%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2213%22 y=%2210%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2214%22 y=%2210%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%2215%22 y=%2210%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%220%22 y=%2211%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%221%22 y=%2211%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%222%22 y=%2211%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%223%22 y=%2211%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%224%22 y=%2211%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%225%22 y=%2211%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%226%22 y=%2211%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%227%22 y=%2211%22 width=%221%22 height=%221%22 fill=%22%23F4F4EC%22/%3E%3Crect x=%228%22 y=%2211%22 width=%221%22 height=%221%22 fill=%22%23F4F4EC%22/%3E%3Crect x=%229%22 y=%2211%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2210%22 y=%2211%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2211%22 y=%2211%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2212%22 y=%2211%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2213%22 y=%2211%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2214%22 y=%2211%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%2215%22 y=%2211%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%220%22 y=%2212%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%221%22 y=%2212%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%222%22 y=%2212%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%223%22 y=%2212%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%224%22 y=%2212%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%225%22 y=%2212%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%226%22 y=%2212%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%227%22 y=%2212%22 width=%221%22 height=%221%22 fill=%22%23F4F4EC%22/%3E%3Crect x=%228%22 y=%2212%22 width=%221%22 height=%221%22 fill=%22%23F4F4EC%22/%3E%3Crect x=%229%22 y=%2212%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%2210%22 y=%2212%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2211%22 y=%2212%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2212%22 y=%2212%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2213%22 y=%2212%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2214%22 y=%2212%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%2215%22 y=%2212%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%220%22 y=%2213%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%221%22 y=%2213%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%222%22 y=%2213%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%223%22 y=%2213%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%224%22 y=%2213%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%225%22 y=%2213%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%226%22 y=%2213%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%227%22 y=%2213%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%228%22 y=%2213%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%229%22 y=%2213%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%2210%22 y=%2213%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2211%22 y=%2213%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2212%22 y=%2213%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%2213%22 y=%2213%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%2214%22 y=%2213%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%2215%22 y=%2213%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%220%22 y=%2214%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%221%22 y=%2214%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%222%22 y=%2214%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%223%22 y=%2214%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%224%22 y=%2214%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%225%22 y=%2214%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%226%22 y=%2214%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%227%22 y=%2214%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%228%22 y=%2214%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%229%22 y=%2214%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%2210%22 y=%2214%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%2211%22 y=%2214%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%2212%22 y=%2214%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%2213%22 y=%2214%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%2214%22 y=%2214%22 width=%221%22 height=%221%22 fill=%22%23FFD15C%22/%3E%3Crect x=%2215%22 y=%2214%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%220%22 y=%2215%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%221%22 y=%2215%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%222%22 y=%2215%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%223%22 y=%2215%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%224%22 y=%2215%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%225%22 y=%2215%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%226%22 y=%2215%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%227%22 y=%2215%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%228%22 y=%2215%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%229%22 y=%2215%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%2210%22 y=%2215%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%2211%22 y=%2215%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%2212%22 y=%2215%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%2213%22 y=%2215%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%2214%22 y=%2215%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%2215%22 y=%2215%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3C/svg%3E") center / contain no-repeat;
  image-rendering: pixelated;
}
.bloque-pregunta::before {
  content: "";
  position: absolute;
  left: 32px;
  top: -10px;
  width: 48px;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 8 10%22 shape-rendering=%22crispEdges%22%3E%3Crect x=%222%22 y=%220%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%223%22 y=%220%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%224%22 y=%220%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%225%22 y=%220%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%221%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%222%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%223%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%224%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%225%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%226%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%220%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%221%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%222%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%223%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%23FFF3C4%22/%3E%3Crect x=%224%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%225%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%226%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%227%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%220%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%221%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%222%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%223%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23FFF3C4%22/%3E%3Crect x=%224%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%225%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%226%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%227%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%220%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%221%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%222%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%223%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23FFF3C4%22/%3E%3Crect x=%224%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%225%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%226%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%227%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%220%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%221%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%222%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%223%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%23FFF3C4%22/%3E%3Crect x=%224%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%225%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%226%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%227%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%220%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%221%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%222%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%223%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23FFF3C4%22/%3E%3Crect x=%224%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%225%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%226%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%227%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%220%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%221%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%222%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%223%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%224%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%225%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%226%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%227%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%221%22 y=%228%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%222%22 y=%228%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%223%22 y=%228%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%224%22 y=%228%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%225%22 y=%228%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%226%22 y=%228%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%222%22 y=%229%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%223%22 y=%229%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%224%22 y=%229%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3Crect x=%225%22 y=%229%22 width=%221%22 height=%221%22 fill=%22%23671912%22/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
}
.slide.activa .bloque-pregunta { animation: golpe 2.6s steps(2, end) 0.9s infinite; }
.slide.activa .bloque-pregunta::before { animation: moneda 2.6s ease-out 0.9s infinite; }
@keyframes golpe { 0%, 8%, 100% { transform: none; } 4% { transform: translateY(-18px); } }
@keyframes moneda {
  0%, 3% { opacity: 0; transform: translateY(0) scaleX(1); }
  6% { opacity: 1; }
  20% { opacity: 1; transform: translateY(-120px) scaleX(0.3); }
  30%, 100% { opacity: 0; transform: translateY(-80px) scaleX(1); }
}
.bloque-pregunta span {
  position: absolute;
  left: 50%;
  top: -46px;
  transform: translateX(-50%);
  font-family: "Press Start 2P", var(--fuente-mono);
  font-size: 18px;
  color: var(--hf-bosque);
  white-space: nowrap;
}

/* Donkey Kong: viga roja con un barril rodando */
.viga {
  position: absolute;
  left: 880px;
  right: 120px;
  top: 150px;
  height: 22px;
  background:
    radial-gradient(circle, #F4F4EC 0 2px, transparent 2.5px) 0 4px / 34px 14px repeat-x,
    repeating-linear-gradient(90deg, #E53927 0 30px, #B42318 30px 34px);
  border-top: 4px solid #671912;
  border-bottom: 4px solid #671912;
  transform: rotate(-1.2deg);
}
.viga::before {
  content: "";
  position: absolute;
  bottom: 22px;
  left: 0;
  width: 56px;
  height: 46px;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 10 8%22 shape-rendering=%22crispEdges%22%3E%3Crect x=%222%22 y=%220%22 width=%221%22 height=%221%22 fill=%22%234A2410%22/%3E%3Crect x=%223%22 y=%220%22 width=%221%22 height=%221%22 fill=%22%234A2410%22/%3E%3Crect x=%224%22 y=%220%22 width=%221%22 height=%221%22 fill=%22%234A2410%22/%3E%3Crect x=%225%22 y=%220%22 width=%221%22 height=%221%22 fill=%22%234A2410%22/%3E%3Crect x=%226%22 y=%220%22 width=%221%22 height=%221%22 fill=%22%234A2410%22/%3E%3Crect x=%227%22 y=%220%22 width=%221%22 height=%221%22 fill=%22%234A2410%22/%3E%3Crect x=%221%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%234A2410%22/%3E%3Crect x=%222%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23B8662B%22/%3E%3Crect x=%223%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23B8662B%22/%3E%3Crect x=%224%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23B8662B%22/%3E%3Crect x=%225%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23B8662B%22/%3E%3Crect x=%226%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23B8662B%22/%3E%3Crect x=%227%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23B8662B%22/%3E%3Crect x=%228%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%234A2410%22/%3E%3Crect x=%220%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%234A2410%22/%3E%3Crect x=%221%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%234A2410%22/%3E%3Crect x=%222%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%234A2410%22/%3E%3Crect x=%223%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%234A2410%22/%3E%3Crect x=%224%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%234A2410%22/%3E%3Crect x=%225%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%234A2410%22/%3E%3Crect x=%226%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%234A2410%22/%3E%3Crect x=%227%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%234A2410%22/%3E%3Crect x=%228%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%234A2410%22/%3E%3Crect x=%229%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%234A2410%22/%3E%3Crect x=%220%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%234A2410%22/%3E%3Crect x=%221%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23B8662B%22/%3E%3Crect x=%222%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23B8662B%22/%3E%3Crect x=%223%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23B8662B%22/%3E%3Crect x=%224%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23E39A55%22/%3E%3Crect x=%225%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23E39A55%22/%3E%3Crect x=%226%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23B8662B%22/%3E%3Crect x=%227%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23B8662B%22/%3E%3Crect x=%228%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23B8662B%22/%3E%3Crect x=%229%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%234A2410%22/%3E%3Crect x=%220%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%234A2410%22/%3E%3Crect x=%221%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23B8662B%22/%3E%3Crect x=%222%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23B8662B%22/%3E%3Crect x=%223%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23B8662B%22/%3E%3Crect x=%224%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23E39A55%22/%3E%3Crect x=%225%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23E39A55%22/%3E%3Crect x=%226%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23B8662B%22/%3E%3Crect x=%227%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23B8662B%22/%3E%3Crect x=%228%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23B8662B%22/%3E%3Crect x=%229%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%234A2410%22/%3E%3Crect x=%220%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%234A2410%22/%3E%3Crect x=%221%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%234A2410%22/%3E%3Crect x=%222%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%234A2410%22/%3E%3Crect x=%223%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%234A2410%22/%3E%3Crect x=%224%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%234A2410%22/%3E%3Crect x=%225%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%234A2410%22/%3E%3Crect x=%226%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%234A2410%22/%3E%3Crect x=%227%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%234A2410%22/%3E%3Crect x=%228%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%234A2410%22/%3E%3Crect x=%229%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%234A2410%22/%3E%3Crect x=%221%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%234A2410%22/%3E%3Crect x=%222%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23B8662B%22/%3E%3Crect x=%223%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23B8662B%22/%3E%3Crect x=%224%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23B8662B%22/%3E%3Crect x=%225%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23B8662B%22/%3E%3Crect x=%226%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23B8662B%22/%3E%3Crect x=%227%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23B8662B%22/%3E%3Crect x=%228%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%234A2410%22/%3E%3Crect x=%222%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%234A2410%22/%3E%3Crect x=%223%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%234A2410%22/%3E%3Crect x=%224%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%234A2410%22/%3E%3Crect x=%225%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%234A2410%22/%3E%3Crect x=%226%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%234A2410%22/%3E%3Crect x=%227%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%234A2410%22/%3E%3C/svg%3E") center / contain no-repeat;
  image-rendering: pixelated;
}
.slide.activa .viga::before { animation: rodar 4.5s steps(24, end) 0.8s infinite; }
@keyframes rodar {
  from { transform: translateX(600px) rotate(0); }
  to { transform: translateX(-60px) rotate(-720deg); }
}

/* Mega Man: STAGE SELECT con READY parpadeando */
.arcade.stage { font-size: 26px; color: var(--azul-mega, #1D539F); text-shadow: 4px 4px 0 var(--hf-celeste); }
.arcade.stage span { margin-left: 22px; color: var(--hf-tinta); text-shadow: 4px 4px 0 var(--hf-amarillo); }
.slide.activa .arcade.stage span { animation: parpadeo 0.8s steps(1) infinite; }

/* Zelda: corazones y cuadro de diálogo */
.dialogo {
  margin-top: auto;
  margin-bottom: 8px;
  align-self: flex-start;
  background: #0E0E0E;
  color: #F4F4EC;
  border: 6px solid #F4F4EC;
  outline: 6px solid #0E0E0E;
  padding: 22px 30px 20px;
  font-family: "Press Start 2P", var(--fuente-mono);
  font-size: 22px;
  line-height: 1.7;
  max-width: 1120px;
}
.dialogo .corazones { display: flex; gap: 10px; margin-bottom: 12px; }
.dialogo .corazones i { width: 35px; height: 30px; background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 7 6%22 shape-rendering=%22crispEdges%22%3E%3Crect x=%221%22 y=%220%22 width=%221%22 height=%221%22 fill=%22%23E53927%22/%3E%3Crect x=%222%22 y=%220%22 width=%221%22 height=%221%22 fill=%22%23E53927%22/%3E%3Crect x=%224%22 y=%220%22 width=%221%22 height=%221%22 fill=%22%23E53927%22/%3E%3Crect x=%225%22 y=%220%22 width=%221%22 height=%221%22 fill=%22%23E53927%22/%3E%3Crect x=%220%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23E53927%22/%3E%3Crect x=%221%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23FFB4A8%22/%3E%3Crect x=%222%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23E53927%22/%3E%3Crect x=%223%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23E53927%22/%3E%3Crect x=%224%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23E53927%22/%3E%3Crect x=%225%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23E53927%22/%3E%3Crect x=%226%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23E53927%22/%3E%3Crect x=%220%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%23E53927%22/%3E%3Crect x=%221%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%23E53927%22/%3E%3Crect x=%222%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%23E53927%22/%3E%3Crect x=%223%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%23E53927%22/%3E%3Crect x=%224%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%23E53927%22/%3E%3Crect x=%225%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%23E53927%22/%3E%3Crect x=%226%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%23E53927%22/%3E%3Crect x=%221%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23E53927%22/%3E%3Crect x=%222%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23E53927%22/%3E%3Crect x=%223%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23E53927%22/%3E%3Crect x=%224%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23E53927%22/%3E%3Crect x=%225%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23E53927%22/%3E%3Crect x=%222%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23E53927%22/%3E%3Crect x=%223%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23E53927%22/%3E%3Crect x=%224%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23E53927%22/%3E%3Crect x=%223%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%23E53927%22/%3E%3C/svg%3E") center / contain no-repeat; image-rendering: pixelated; }
.slide.activa .dialogo .corazones i { animation: latir 1.2s steps(2, end) infinite; }
.slide.activa .dialogo .corazones i:nth-child(2) { animation-delay: 0.15s; }
.slide.activa .dialogo .corazones i:nth-child(3) { animation-delay: 0.3s; }
@keyframes latir { 50% { transform: scale(1.18); } }
.dialogo .tecleo { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; }
.slide.activa .dialogo .tecleo { animation: teclear 1.9s steps(32, end) 0.9s both; }
@keyframes teclear { from { width: 0; } to { width: 32ch; } }

/* Street Fighter II: ROUND 1 · FIGHT! */
.arcade.fight {
  font-size: 54px;
  color: #FFD43B;
  -webkit-text-stroke: 3px #671912;
  text-shadow: 6px 6px 0 var(--mlh-rojo);
  font-style: italic;
}
.slide.activa .arcade.fight span { display: inline-block; animation: golpe-fight 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) 0.5s both; }
@keyframes golpe-fight { from { transform: scale(3); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Sonic: HUD con TIME y RINGS */
.hud {
  position: absolute;
  top: 64px;
  right: 120px;
  display: grid;
  grid-template-columns: auto auto;
  gap: 8px 22px;
  align-items: center;
  font-family: "Press Start 2P", var(--fuente-mono);
  font-size: 22px;
  text-transform: uppercase;
  color: #FFD43B;
  text-shadow: 3px 3px 0 #1D539F;
}
.hud b { font-weight: 400; color: var(--hf-tinta); text-shadow: 3px 3px 0 var(--hf-amarillo); }
.hud .anillo { display: inline-block; width: 30px; height: 30px; margin-right: 10px; vertical-align: -6px; background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 8 8%22 shape-rendering=%22crispEdges%22%3E%3Crect x=%222%22 y=%220%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%223%22 y=%220%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%224%22 y=%220%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%225%22 y=%220%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%221%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%222%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%225%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%226%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%220%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%221%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%226%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%227%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%220%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%227%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%220%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%227%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%220%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%221%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%226%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%227%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%221%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%222%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%225%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%226%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%222%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%223%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%224%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3Crect x=%225%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%23F5B726%22/%3E%3C/svg%3E") center / contain no-repeat; image-rendering: pixelated; }
.slide.activa .hud .anillo { animation: girar-anillo 0.9s steps(4, end) infinite; }
@keyframes girar-anillo { 0% { transform: scaleX(1); } 50% { transform: scaleX(0.15); } 100% { transform: scaleX(1); } }

/* Metal Slug: MISSION 1 START! */
.mision {
  position: absolute;
  top: 70px;
  right: 120px;
  font-family: "Press Start 2P", var(--fuente-mono);
  font-size: 32px;
  color: #FFD43B;
  -webkit-text-stroke: 2px #203C36;
  text-shadow: 5px 5px 0 #203C36;
}
.slide.activa .mision span { display: inline-block; animation: entrar-mision 0.7s steps(7, end) 0.6s both; }
@keyframes entrar-mision { from { transform: translateX(900px); } to { transform: none; } }

/* Sin movimiento */
body.sin-animacion .slide *, body.sin-animacion .slide,
body.general .slide *, body.presentador .slide * { animation: none !important; }
body.sin-animacion .transicion-pixel, body.sin-animacion .confeti,
body.general .transicion-pixel, body.general .confeti,
body.sin-animacion .pixel-flotante, body.general .pixel-flotante,
body.sin-animacion .tetromino, body.general .tetromino { display: none; }
body.sin-animacion .comecocos { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .slide *, .slide, .progreso { animation: none !important; transition: none !important; }
  .transicion-pixel, .confeti, .pixel-flotante, .tetromino { display: none; }
  .comecocos { animation: none; transition: none; }
}

/* ---------- Impresión / PDF: una diapositiva por página ---------- */

@page { size: 1600px 900px; margin: 0; }

@media print {
  html, body { background: none; overflow: visible; height: auto; }
  .escenario { position: static; display: block; }
  .diapositivas { transform: none !important; width: 1600px; height: auto; }
  .slide, .slide.activa {
    display: flex !important;
    position: relative;
    page-break-after: always;
    break-after: page;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .progreso, .panel-notas, .ayuda, .vista-presentador, .barra,
  .transicion-pixel, .confeti, .pixel-flotante, .tetromino,
  .pista-progreso, .comecocos { display: none !important; }
  .slide *, .slide { animation: none !important; }
}
