/* Camuflaje · Landing de preventa
   Sistema visual: docs/identidad-visual.md. Mobile first. */

:root {
  --negro: #141312;
  --negro-2: #2b2a2a;
  --rojo: #bd2819;
  --rojo-vivo: #d8321f;
  --crema: #ecd9b8;
  --carton: #d69e72;
  --blanco: #fff;
  --gris: #9a9288;
  --led: #ff6a1f;

  --f-display: 'Anton', Impact, 'Arial Narrow Bold', sans-serif;
  --f-texto: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'Courier Prime', 'Courier New', ui-monospace, monospace;
  --f-xp: 'Trebuchet MS', Tahoma, 'Segoe UI', system-ui, sans-serif;
  --f-tahoma: Tahoma, Verdana, 'Segoe UI', system-ui, sans-serif;

  --gutter: 16px;
  --sombra-papel: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 18px 40px rgba(0, 0, 0, .55), 0 3px 0 rgba(0, 0, 0, .35);

  /* Grano de película */
  --ruido: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* Máscara de tinta gastada: opaca con motas transparentes */
  --gastado: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='d'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.45' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -14 0 0 0 10.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23d)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--negro);
  color: var(--crema);
  font-family: var(--f-texto);
  font-size: 16px;
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--led); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ─── Capas de fondo ─────────────────────────────────────────────────────── */

.fondo {
  position: fixed; inset: 0; z-index: -3;
  background:
    radial-gradient(120% 70% at 85% 0%, rgba(189, 40, 25, .28), transparent 55%),
    linear-gradient(180deg, rgba(20, 19, 18, .35) 0%, rgba(20, 19, 18, .7) 45%, var(--negro) 100%),
    url("../assets/img/mesa-900.webp") 72% 0 / cover no-repeat;
  filter: saturate(.9);
}
.fondo::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(130% 90% at 50% 40%, transparent 30%, rgba(0, 0, 0, .75) 100%);
}
@media (min-width: 900px) {
  .fondo {
    background:
      radial-gradient(90% 70% at 90% 0%, rgba(189, 40, 25, .25), transparent 55%),
      linear-gradient(90deg, var(--negro) 0%, rgba(20, 19, 18, .82) 38%, rgba(20, 19, 18, .35) 100%),
      url("../assets/img/mesa.webp") right center / cover no-repeat;
  }
}

.grano {
  position: fixed; inset: -50%; z-index: 50; pointer-events: none;
  background-image: var(--ruido);
  opacity: .11;
  animation: grano 1s steps(6) infinite;
}
@keyframes grano {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); }
  80% { transform: translate(5%, 4%); }
  100% { transform: translate(-2%, 6%); }
}

.flash {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  background: radial-gradient(circle at 50% 45%, #fff 0%, #fff6e6 40%, rgba(255, 240, 220, .85) 100%);
  opacity: 0;
}
.flash.dispara { animation: flash .42s ease-out; }
@keyframes flash {
  0% { opacity: 0; }
  12% { opacity: .9; }
  100% { opacity: 0; }
}

/* ─── Barra superior ─────────────────────────────────────────────────────── */

.barra {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) var(--gutter) 10px;
  background: linear-gradient(180deg, rgba(20, 19, 18, .85), rgba(20, 19, 18, 0));
  pointer-events: none;
}
.barra > * { pointer-events: auto; }
.barra__cmf { width: 46px; transform: rotate(-3deg); }
.barra__edicion {
  font-family: var(--f-mono); font-weight: 700; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--rojo-vivo);
  white-space: nowrap;
}
@media (max-width: 380px) { .barra__edicion { letter-spacing: .06em; font-size: 10px; } }

/* Cartel LED como el "SUBÍ EL VOLUMEN" del deck: bisel metálico, matriz de puntos naranja,
   líneas de barrido y un vúmetro de 6 segmentos que se mueve solo cuando suena. */
.sonido {
  position: relative;
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 12px 6px 9px;
  background: radial-gradient(120% 140% at 50% 40%, #1c100a 0%, #0a0605 70%);
  border: 0; border-radius: 8px;
  box-shadow:
    inset 0 0 0 1px #000,
    inset 0 0 16px rgba(255, 106, 31, .16),
    0 0 0 2px #121212,
    0 0 0 3px #5b5b5b,
    0 0 0 4px #1d1d1d,
    0 3px 0 4px #000,
    0 0 26px rgba(255, 106, 31, .18);
  overflow: hidden;
}
.sonido::after {
  /* líneas de barrido */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px);
}
.sonido__texto {
  padding-top: 2px; /* que la máscara no corte el tilde de SUBÍ */
  font-family: var(--f-display); font-size: 16px; line-height: 1;
  letter-spacing: .06em; text-transform: uppercase; text-align: left;
  color: var(--led);
  text-shadow: 0 0 6px rgba(255, 106, 31, .95), 0 0 14px rgba(255, 60, 0, .55);
  -webkit-mask-image: radial-gradient(circle, #000 62%, rgba(0, 0, 0, .5) 78%);
  mask-image: radial-gradient(circle, #000 62%, rgba(0, 0, 0, .5) 78%);
  -webkit-mask-size: 2px 2px; mask-size: 2px 2px;
}
.sonido[aria-pressed="false"] .sonido__texto { animation: cartel 2.4s steps(1) infinite; }
@keyframes cartel {
  0%, 100% { opacity: 1; }
  46% { opacity: .35; }
  48% { opacity: 1; }
  50% { opacity: .5; }
  52% { opacity: 1; }
}
.sonido__vu { display: flex; flex-direction: column-reverse; gap: 2px; }
.sonido__vu i {
  width: 12px; height: 3px; border-radius: 1px;
  background: #3cff4a; box-shadow: 0 0 5px currentColor; color: #3cff4a;
  opacity: .15;
}
.sonido__vu i:nth-child(n + 4) { background: var(--led); color: var(--led); }
.sonido__vu i:nth-child(6) { background: #ff2a1a; color: #ff2a1a; }
.sonido__vu i:first-child { opacity: .9; }
.sonido[aria-pressed="true"] .sonido__vu i { animation: vu .5s steps(1) infinite; }
.sonido[aria-pressed="true"] .sonido__vu i:nth-child(1) { animation: none; opacity: 1; }
.sonido__vu i:nth-child(2) { animation-delay: -.1s !important; }
.sonido__vu i:nth-child(3) { animation-delay: -.25s !important; animation-duration: .6s !important; }
.sonido__vu i:nth-child(4) { animation-delay: -.05s !important; animation-duration: .7s !important; }
.sonido__vu i:nth-child(5) { animation-delay: -.35s !important; animation-duration: .9s !important; }
.sonido__vu i:nth-child(6) { animation-delay: -.2s !important; animation-duration: 1.3s !important; }
@keyframes vu {
  0%, 100% { opacity: 1; }
  40% { opacity: .15; }
  70% { opacity: 1; }
}
.sonido:hover { filter: brightness(1.15); }
.sonido:active { transform: translateY(1px); }

/* ─── Pantallas ──────────────────────────────────────────────────────────── */

main { position: relative; }

.pantalla {
  display: none;
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(76px + env(safe-area-inset-top)) var(--gutter) calc(40px + env(safe-area-inset-bottom));
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.pantalla.es-activa { display: flex; animation: entrar .55s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes entrar {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: none; }
}

/* ─── Tipografía de marca ────────────────────────────────────────────────── */

.rotulo {
  margin: 0 0 12px;
  font-family: var(--f-mono); font-weight: 700; font-size: 12px;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--rojo-vivo);
}

.titular {
  /* padding + margen negativo: la máscara recorta al borde de la caja y con line-height .9
     los tildes de las mayúsculas quedarían afuera (se perdía la É de QUERÉS). */
  margin: -.14em 0 0;
  padding-top: .14em;
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2.7rem, 12.5vw, 5.6rem);
  line-height: .9;
  letter-spacing: -.005em;
  text-transform: uppercase;
  color: var(--crema);
  -webkit-mask-image: var(--gastado);
  mask-image: var(--gastado);
  -webkit-mask-size: 320px;
  mask-size: 320px;
  outline: none;
}
.titular em { font-style: normal; color: var(--rojo-vivo); }

.bajada {
  margin: 18px 0 0;
  max-width: 40ch;
  text-wrap: balance;
  font-weight: 300; font-size: 1rem;
  color: rgba(236, 217, 184, .82);
}

.pie {
  margin: 28px 0 0;
  font-family: var(--f-mono); font-size: 12px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gris);
}

/* ─── Ticket (botón principal) ───────────────────────────────────────────── */

.ticket {
  --fondo: var(--crema); --tinta: var(--negro);
  --talon-fondo: var(--rojo); --talon-tinta: var(--crema);
  display: inline-flex; align-items: stretch;
  margin-top: 30px; padding: 0; border: 0; background: none;
  font-family: var(--f-display); font-size: 1.35rem; line-height: 1;
  letter-spacing: .03em; text-transform: uppercase; text-decoration: none;
  transform: rotate(-1.2deg);
  filter: drop-shadow(0 5px 0 rgba(0, 0, 0, .55)) drop-shadow(0 14px 22px rgba(0, 0, 0, .45));
  transition: transform .18s cubic-bezier(.3, 1.6, .5, 1);
  -webkit-mask:
    radial-gradient(circle 7px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 7px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle 7px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 7px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
}
.ticket:hover { transform: rotate(0deg) translateY(-2px) scale(1.02); }
.ticket:active { transform: rotate(0deg) translateY(2px) scale(.99); }
.ticket:focus-visible { outline: none; filter: drop-shadow(0 0 0 var(--led)) drop-shadow(0 0 8px var(--led)); }
.ticket__cuerpo {
  display: flex; align-items: center;
  padding: 18px 22px 16px 26px;
  background: var(--fondo); color: var(--tinta);
  background-image: var(--ruido); background-blend-mode: multiply; background-size: 180px;
}
.ticket__talon {
  display: flex; align-items: center; justify-content: center;
  min-width: 64px; padding: 0 16px 0 14px;
  background: var(--talon-fondo); color: var(--talon-tinta);
  border-left: 2px dashed rgba(20, 19, 18, .55);
  font-size: .78em; letter-spacing: .06em;
}
.ticket__talon svg { width: 1.25em; height: 1.25em; }
@media (max-width: 400px) {
  .ticket { font-size: 1.12rem; }
  .ticket__cuerpo { padding: 16px 12px 14px 18px; }
  .ticket__talon { min-width: 50px; padding: 0 10px; }
}
.ticket--rojo { --fondo: var(--rojo); --tinta: var(--crema); --talon-fondo: var(--crema); --talon-tinta: var(--negro); }
.ticket[aria-disabled="true"] { opacity: .6; pointer-events: none; }

/* ─── Stickers CMF ───────────────────────────────────────────────────────── */

.sticker {
  position: absolute; z-index: 1;
  font-family: var(--f-display); text-transform: uppercase; line-height: .92;
  color: var(--negro);
  pointer-events: none;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .5));
  animation: pegar .6s cubic-bezier(.3, 1.7, .45, 1) both;
  animation-delay: .35s;
}
@keyframes pegar {
  from { opacity: 0; transform: rotate(var(--r, 0deg)) scale(1.35); }
  to { opacity: 1; transform: rotate(var(--r, 0deg)) scale(1); }
}
.sticker > span {
  display: block; width: fit-content; margin: 0 auto;
  padding: .06em .22em .02em;
  background: var(--crema);
  background-image: var(--ruido); background-blend-mode: multiply; background-size: 160px;
  border: 2px solid var(--negro);
}
.sticker > span + span { margin-top: -2px; }
.sticker .rojo { background-color: var(--rojo); color: var(--crema); }

.sticker--perreo { --r: 8deg; right: -6px; bottom: 11%; font-size: 1.35rem; }
.sticker--flecha {
  --r: -9deg; left: -4px; top: 17%;
  padding: .3em .5em .2em .7em;
  font-size: 1.05rem; color: var(--crema);
  background: var(--negro);
  border: 3px solid var(--rojo); border-right: 0;
}
.sticker--flecha::after {
  content: ""; position: absolute; top: -.45em; bottom: -.45em; left: 100%; width: 1em;
  background: var(--rojo);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.sticker--llena { --r: -6deg; position: relative; display: flex; margin-top: 26px; font-size: 1.7rem; }
.sticker--llena > span { display: inline-block; margin: 0; }
.sticker--llena > span + span { margin: 0 0 0 -2px; }
.sticker--volvemos { --r: 5deg; right: 8px; bottom: 18px; display: flex; font-size: .95rem; }
.sticker--volvemos > span { margin: 0; padding: .35em .5em .3em; }
.sticker--volvemos > span + span { margin: 0; border-left: 2px dashed var(--negro); }

@media (min-width: 900px) {
  .sticker--perreo { right: calc(50% - 470px); bottom: 17%; font-size: 1.7rem; }
  .sticker--flecha { left: calc(50% - 500px); top: 30%; font-size: 1.35rem; }
}

@media (max-width: 599px) {
  .sticker--perreo { font-size: 1.05rem; bottom: 11%; right: 2px; }
  .sticker--flecha { top: 13%; font-size: .9rem; }
  .sticker--volvemos { display: none; }
}

/* ─── 1 · Entrada ────────────────────────────────────────────────────────── */

.entrada__logo {
  margin: 0 0 26px;
  width: min(92vw, 620px);
  transform: rotate(-1.5deg);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .6));
  animation: sello .7s cubic-bezier(.25, 1.6, .45, 1) both;
}
@keyframes sello {
  from { opacity: 0; transform: rotate(-6deg) scale(1.25); }
  to { opacity: 1; transform: rotate(-1.5deg) scale(1); }
}

/* ─── 2 · Datos ──────────────────────────────────────────────────────────── */

.pantalla--datos { gap: 28px; }
.datos__intro { display: flex; flex-direction: column; align-items: center; }
.datos__intro .bajada { margin-top: 14px; }
@media (max-width: 599px) { .sticker--llena { display: none; } }

.ficha {
  position: relative;
  width: min(100%, 440px);
  padding: 22px 22px 18px;
  text-align: left;
  color: var(--negro);
  background: var(--crema);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, .35), transparent 30%),
    var(--ruido);
  background-blend-mode: normal, multiply;
  background-size: auto, 200px;
  border-radius: 2px;
  box-shadow: var(--sombra-papel);
  transform: rotate(.6deg);
}
.ficha::before {
  /* borde troquelado arriba */
  content: ""; position: absolute; left: 0; right: 0; top: -7px; height: 8px;
  background: radial-gradient(circle 5px at 8px 0, transparent 5px, var(--crema) 5.5px) 0 0 / 16px 8px repeat-x;
}
.ficha__cabeza {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; padding-bottom: 12px;
  border-bottom: 2px dashed rgba(20, 19, 18, .35);
  font-family: var(--f-display); font-size: 1.45rem; text-transform: uppercase; letter-spacing: .02em;
}
.sello {
  padding: 4px 8px 2px;
  border: 2px solid var(--rojo); border-radius: 3px;
  color: var(--rojo); font-size: .9rem;
  transform: rotate(-7deg);
  -webkit-mask-image: var(--gastado); mask-image: var(--gastado); -webkit-mask-size: 200px; mask-size: 200px;
}

.campo { display: block; margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.campo__etiqueta {
  display: block; margin-bottom: 4px; padding: 0;
  font-family: var(--f-mono); font-weight: 700; font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(20, 19, 18, .72);
}
.campo input, .campo select {
  width: 100%; min-height: 44px;
  padding: 8px 2px 6px;
  border: 0; border-bottom: 2px solid var(--negro); border-radius: 0;
  background: transparent;
  font-family: var(--f-texto); font-weight: 600; font-size: 1.1rem;
  color: var(--negro);
  appearance: none; -webkit-appearance: none;
}
.campo input::placeholder { color: rgba(20, 19, 18, .32); font-weight: 400; }
.campo input:focus, .campo select:focus { outline: none; border-bottom-color: var(--rojo); background: rgba(189, 40, 25, .06); }
.campo [aria-invalid="true"] { border-bottom-color: var(--rojo); background: rgba(189, 40, 25, .09); }

.campo__tel { display: flex; gap: 10px; }
.campo__tel select {
  flex: 0 0 auto; width: auto; padding-right: 22px;
  font-family: var(--f-mono); font-weight: 700; font-size: 1rem;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23141312'/%3E%3C/svg%3E") right 4px center no-repeat;
}
.campo__tel [name="prefijoOtro"] { flex: 0 0 64px; font-family: var(--f-mono); }
.campo__tel [name="telefono"] { flex: 1 1 auto; min-width: 0; }

.campo__fecha { display: flex; align-items: center; gap: 8px; }
.campo__fecha input { text-align: center; font-family: var(--f-mono); font-weight: 700; letter-spacing: .06em; }
.campo__fecha [name="dia"], .campo__fecha [name="mes"] { flex: 0 0 58px; }
.campo__fecha [name="anio"] { flex: 0 0 86px; }
.campo__fecha span { font-family: var(--f-display); font-size: 1.4rem; color: rgba(20, 19, 18, .45); }

.trampa { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.ficha__error {
  min-height: 1.2em; margin: 0 0 4px;
  font-family: var(--f-mono); font-weight: 700; font-size: 13px;
  color: var(--rojo);
}
.ficha .ticket { width: 100%; margin-top: 6px; transform: rotate(-.6deg); }
.ficha .ticket__cuerpo { flex: 1; justify-content: center; }

@media (min-width: 900px) {
  .pantalla--datos { flex-direction: row; gap: 72px; text-align: left; }
  .datos__intro { align-items: flex-start; max-width: 420px; }
  .datos__intro .titular { font-size: 6rem; }
  .sticker--llena { margin-left: 4px; }
}

/* ─── 3 · Camuflaje Media Player ─────────────────────────────────────────── */

.pantalla--examen { padding-left: 10px; padding-right: 10px; }

.wmp {
  position: relative;
  width: min(100%, 760px);
  text-align: left;
  font-family: var(--f-tahoma); font-size: 12px; color: #000;
  background: #0b1a4a;
  border: 1px solid #0831d9;
  border-radius: 9px 9px 5px 5px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .75), 0 0 0 1px rgba(0, 0, 0, .6), 0 0 60px rgba(189, 40, 25, .18);
  overflow: hidden;
  animation: ventana .5s cubic-bezier(.2, 1.3, .4, 1) both;
}
@keyframes ventana { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }

.wmp__titulo {
  display: flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 5px 0 8px;
  background: linear-gradient(180deg, #0997ff 0%, #0053ee 8%, #0050ee 40%, #06f 88%, #06f 93%, #005bff 95%, #003dd7 96%, #003dd7 100%);
  color: #fff;
  font: 700 13px/1 var(--f-xp);
  text-shadow: 1px 1px #0f1089;
  user-select: none;
}
.wmp__icono {
  flex: 0 0 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe3a8, #ff9c1a 45%, #c75400 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35);
  position: relative;
}
.wmp__icono::after {
  content: ""; position: absolute; left: 7px; top: 5px;
  border-left: 6px solid #fff; border-top: 4px solid transparent; border-bottom: 4px solid transparent;
}
.wmp__nombre { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wmp__ventana { display: flex; gap: 2px; }
.wmp__vbtn {
  position: relative; width: 22px; height: 22px; padding: 0;
  border: 1px solid #fff; border-radius: 3px;
  background: radial-gradient(circle at 90% 90%, #0054e9 0%, #2263d5 55%, #4479e4 70%, #a3bbec 90%, #fff 100%);
  box-shadow: inset 0 -1px 2px 1px #4646ff;
}
.wmp__vbtn:hover { filter: brightness(1.15); }
.wmp__vbtn:active { filter: brightness(.9); }
.wmp__vbtn--min::after { content: ""; position: absolute; left: 5px; bottom: 5px; width: 7px; height: 3px; background: #fff; }
.wmp__vbtn--max::after { content: ""; position: absolute; inset: 4px; border: 1px solid #fff; border-top-width: 3px; }
.wmp__vbtn--cerrar { background: radial-gradient(circle at 90% 90%, #cc4600 0%, #dc6527 55%, #cd7546 70%, #ffccb2 90%, #fff 100%); box-shadow: inset 0 -1px 2px 1px #da4600; }
.wmp__vbtn--cerrar::before, .wmp__vbtn--cerrar::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: #fff;
  transform: translate(-50%, -50%) rotate(45deg);
}
.wmp__vbtn--cerrar::after { transform: translate(-50%, -50%) rotate(-45deg); }

.wmp__menu {
  display: flex; gap: 2px; padding: 2px 4px;
  background: #ece9d8; border-bottom: 1px solid #aca899;
  font-size: 12px; user-select: none;
}
.wmp__menu span { padding: 2px 6px; }

.wmp__cuerpo {
  padding: 10px;
  background:
    linear-gradient(180deg, #2c4a8e 0%, #16295f 22%, #0c1638 100%);
}

.wmp__pantalla {
  position: relative;
  min-height: 250px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: #000;
  border: 1px solid #6b82c7;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px #000, inset 0 0 40px rgba(0, 0, 0, .9);
  overflow: hidden;
}
.wmp__visual { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .85; }
.wmp__trama {
  /* trama de puntos, como la captura de WMP de la inspo */
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle, transparent 38%, rgba(0, 0, 0, .55) 42%) 0 0 / 4px 4px,
    linear-gradient(180deg, rgba(0, 0, 0, .05) 0%, rgba(0, 0, 0, .15) 45%, rgba(0, 0, 0, .8) 70%, rgba(0, 0, 0, .92) 100%);
}
.wmp__bug {
  position: absolute; top: 12px; right: 12px; width: 44px;
  opacity: .8; transform: rotate(-3deg);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .8));
}
.wmp__info { position: relative; padding: 16px 16px 18px; }
.wmp__pista {
  margin: 0 0 4px;
  text-shadow: 0 1px 3px #000, 0 0 8px #000;
  font: 700 11px/1.2 var(--f-tahoma); letter-spacing: .08em; text-transform: uppercase;
  color: #8fb4ff;
}
.wmp__led { color: #6dff5c; text-shadow: 0 0 6px #6dff5c; animation: titila 1.2s steps(2) infinite; }
@keyframes titila { 50% { opacity: .25; } }
.wmp__tema {
  margin: 0 0 10px;
  font-family: var(--f-mono); font-weight: 700; font-size: 13px;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--led);
  text-shadow: 0 0 8px rgba(255, 106, 31, .55);
}
.wmp__pregunta {
  margin: 0;
  min-height: 2.3em;
  font-family: var(--f-texto); font-weight: 800;
  font-size: clamp(1.25rem, 5.4vw, 1.95rem);
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .9);
  text-wrap: balance;
}
.wmp__pregunta.cambia { animation: cambia .35s ease-out; }
@keyframes cambia { from { opacity: 0; transform: translateX(10px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }

.wmp__carga {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: rgba(0, 0, 0, .72);
  color: #cfe0ff; font: 700 14px var(--f-tahoma);
}
.wmp__carga[hidden] { display: none; }
.wmp__carga-texto { margin: 0; }
.wmp__carga-barra {
  width: min(70%, 320px); height: 14px; padding: 2px;
  border: 1px solid #6b82c7; border-radius: 3px; background: #050a1c;
}
.wmp__carga-barra i {
  display: block; height: 100%; width: 0;
  background: repeating-linear-gradient(90deg, #37d02e 0 8px, transparent 8px 10px);
  transition: width .25s linear;
}

.wmp__seek {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 4px 8px;
  color: #b9cdf5; font: 11px var(--f-tahoma);
}
.wmp__tiempo { font-variant-numeric: tabular-nums; }
.wmp__pista-barra {
  position: relative; flex: 1; height: 7px;
  background: linear-gradient(180deg, #0a1230, #25386e);
  border: 1px solid #4d64a8; border-radius: 4px;
}
.wmp__lleno {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: linear-gradient(180deg, #9ef08c, #3bb12a);
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(80, 220, 60, .55);
  transition: width .45s cubic-bezier(.3, .8, .3, 1);
}
.wmp__perilla {
  position: absolute; top: 50%; left: 0; width: 15px; height: 15px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 40% 30%, #fff, #c9d6f2 50%, #7e93c6 100%);
  border: 1px solid #2c3f7a; border-radius: 50%;
  transition: left .45s cubic-bezier(.3, .8, .3, 1);
}

.wmp__opciones {
  display: grid; gap: 7px;
  padding: 10px;
  background: linear-gradient(180deg, #eef3fc 0%, #d4def3 55%, #bccbea 100%);
  border: 1px solid #fff; border-bottom-color: #8398c9; border-right-color: #8398c9;
  border-radius: 4px 4px 0 0;
}
.opcion {
  display: flex; align-items: center; gap: 10px;
  width: 100%; min-height: 46px; padding: 8px 12px 8px 8px;
  text-align: left;
  font: 700 15px/1.25 var(--f-tahoma); color: #000;
  background: linear-gradient(180deg, #fff 0%, #ecebe6 86%, #d6d0c5 100%);
  border: 1px solid #003c74; border-radius: 3px;
  transition: transform .08s;
  animation: opcion .32s cubic-bezier(.2, 1, .3, 1) both;
}
.opcion:nth-child(2) { animation-delay: .05s; }
.opcion:nth-child(3) { animation-delay: .1s; }
.opcion:nth-child(4) { animation-delay: .15s; }
@keyframes opcion { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.opcion:hover {
  box-shadow: inset -1px 1px #fff0cf, inset 1px 2px #fdd889, inset -2px 2px #fbc761, inset 2px -2px #e5a01a;
}
.opcion:active { background: linear-gradient(180deg, #cdcac3 0%, #e3e3db 8%, #e5e5de 94%, #f2f2f1 100%); transform: translateY(1px); }
.opcion:focus-visible { outline: 1px dotted #000; outline-offset: -5px; }
.opcion__letra {
  flex: 0 0 28px; height: 28px;
  display: grid; place-items: center;
  font: 700 13px var(--f-tahoma); text-transform: uppercase; color: #0b2a6b;
  background: radial-gradient(circle at 35% 30%, #fff, #c3d3f2 60%, #8ea6d8 100%);
  border: 1px solid #5470ad; border-radius: 50%;
}
.opcion[aria-checked="true"] {
  color: #fff;
  background: linear-gradient(180deg, #4f8ae8 0%, #2a62d0 50%, #1b4db3 100%);
  border-color: #0b2a6b;
  box-shadow: inset 0 1px rgba(255, 255, 255, .45);
}
.opcion[aria-checked="true"] .opcion__letra { color: #fff; background: radial-gradient(circle at 35% 30%, #ffd0a0, var(--led) 55%, #b53a00 100%); border-color: #fff; }
.wmp__opciones.bloqueada .opcion { pointer-events: none; }

.wmp__controles {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px 10px;
  background: linear-gradient(180deg, #bccbea 0%, #9fb3df 100%);
  border: 1px solid #fff; border-top: 0; border-bottom-color: #6d84bd; border-right-color: #6d84bd;
  border-radius: 0 0 4px 4px;
}
.wmp__ctrl {
  position: relative; width: 44px; height: 30px; padding: 0;
  border: 1px solid #1c347a; border-radius: 15px;
  background: linear-gradient(180deg, #7aa0ea 0%, #2c56b8 50%, #1a3b8f 51%, #3a6ad0 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, .6);
}
.wmp__ctrl::before, .wmp__ctrl::after { content: ""; position: absolute; top: 50%; transform: translateY(-50%); }
.wmp__ctrl--prev::before { left: 14px; width: 2px; height: 10px; background: #fff; }
.wmp__ctrl--prev::after { left: 17px; border-right: 9px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.wmp__ctrl--next::before { right: 14px; width: 2px; height: 10px; background: #fff; }
.wmp__ctrl--next::after { right: 17px; border-left: 9px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.wmp__ctrl:disabled { filter: grayscale(.8) brightness(1.15); opacity: .55; cursor: default; }
.wmp__ctrl--next.listo { animation: listo 1s ease-in-out infinite; }
@keyframes listo { 50% { box-shadow: inset 0 1px rgba(255, 255, 255, .6), 0 0 0 3px rgba(255, 176, 60, .75); } }

.wmp__play {
  position: relative; width: 46px; height: 46px; padding: 0;
  border: 2px solid #eef3ff; border-radius: 50%;
  background: radial-gradient(circle at 50% 28%, #d4e3ff 0%, #5b8ae6 40%, #1d46a8 75%, #102a6e 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .45), inset 0 -3px 6px rgba(0, 0, 0, .35);
}
.wmp__play::before, .wmp__play::after { content: ""; position: absolute; top: 50%; transform: translateY(-50%); }
.wmp__play[aria-pressed="false"]::before {
  left: 18px; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent;
}
.wmp__play[aria-pressed="true"]::before { left: 15px; width: 5px; height: 16px; background: #fff; }
.wmp__play[aria-pressed="true"]::after { left: 24px; width: 5px; height: 16px; background: #fff; }

.wmp__volumen { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.wmp__parlante {
  position: relative; width: 16px; height: 14px;
  background: linear-gradient(#1a3b8f, #1a3b8f) 0 4px / 5px 6px no-repeat;
}
.wmp__parlante::after {
  content: ""; position: absolute; left: 3px; top: 0;
  border-right: 8px solid #1a3b8f; border-top: 7px solid transparent; border-bottom: 7px solid transparent;
}
.wmp__volumen input { width: 90px; accent-color: #3bb12a; }
.wmp__volumen[hidden] { display: none; }

.wmp__estado {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 5px 10px;
  background: #050b24;
  border-top: 1px solid #2c4a8e;
  font: 11px var(--f-tahoma); color: #7ee070;
  white-space: nowrap; overflow: hidden;
}
.wmp__estado span:first-child { overflow: hidden; text-overflow: ellipsis; }

.globo {
  position: absolute; right: 8px; top: 38px; z-index: 5;
  max-width: 220px; padding: 9px 12px;
  background: #ffffe1; color: #000;
  border: 1px solid #000; border-radius: 8px;
  font: 12px var(--f-tahoma);
  box-shadow: 2px 3px 6px rgba(0, 0, 0, .4);
  animation: entrar .25s ease-out both;
}
.globo::before {
  content: ""; position: absolute; right: 18px; top: -9px;
  border: 0 solid transparent; border-width: 0 0 9px 9px; border-bottom-color: #000;
}
.globo::after {
  content: ""; position: absolute; right: 19px; top: -7px;
  border: 0 solid transparent; border-width: 0 0 8px 7px; border-bottom-color: #ffffe1;
}
.globo[hidden] { display: none; }

.xp-dialogo {
  position: absolute; z-index: 4; left: 50%; top: 50%;
  width: min(92%, 340px);
  transform: translate(-50%, -50%);
  background: #ece9d8;
  border: 1px solid #0831d9; border-radius: 7px 7px 3px 3px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .6);
  overflow: hidden;
  animation: ventana .3s ease-out both;
}
.xp-dialogo[hidden] { display: none; }
.xp-dialogo__titulo {
  padding: 6px 8px;
  background: linear-gradient(180deg, #0997ff 0%, #0053ee 8%, #0050ee 40%, #06f 88%, #003dd7 100%);
  color: #fff; font: 700 12px var(--f-xp); text-shadow: 1px 1px #0f1089;
}
.xp-dialogo__cuerpo { display: flex; gap: 12px; align-items: flex-start; padding: 14px 14px 6px; font-size: 13px; color: #000; }
.xp-dialogo__cuerpo p { margin: 0; }
.xp-dialogo__icono {
  flex: 0 0 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff9b8a, #d31d00 60%, #8a1300);
  color: #fff; font: 700 20px var(--f-xp); border: 1px solid #6a0f00;
}
.xp-dialogo__botones { display: flex; justify-content: flex-end; padding: 8px 14px 14px; }
.xp-boton {
  min-width: 84px; min-height: 30px; padding: 4px 14px;
  font: 12px var(--f-tahoma); color: #000;
  background: linear-gradient(180deg, #fff 0%, #ecebe6 86%, #d6d0c5 100%);
  border: 1px solid #003c74; border-radius: 3px;
}
.xp-boton:hover { box-shadow: inset -1px 1px #fff0cf, inset 1px 2px #fdd889, inset -2px 2px #fbc761, inset 2px -2px #e5a01a; }

@media (max-width: 480px) {
  .wmp { border-radius: 8px 8px 4px 4px; }
  .wmp__menu span:nth-child(n + 4) { display: none; }
  .wmp__cuerpo { padding: 8px; }
  .wmp__pantalla { min-height: 230px; }
  .wmp__volumen input { width: 64px; }
  .wmp__estado span:last-child { display: none; }
}

@media (min-width: 900px) {
  .wmp__pantalla { min-height: 300px; }
  .wmp__info { padding: 22px 24px 24px; }
  .wmp__opciones { grid-template-columns: 1fr 1fr; }
  .wmp__opciones .opcion:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ─── 4 · Resultado ──────────────────────────────────────────────────────── */

.pantalla--resultado { gap: 10px; }

.nota {
  position: relative; display: inline-flex; align-items: baseline;
  margin: 0 auto; padding: 0 .35em;
  font-family: var(--f-display); line-height: .9;
}
/* La máscara va en los números y no en .nota: si no, recorta el círculo rojo que se sale de la caja. */
.nota__num, .nota__de { -webkit-mask-image: var(--gastado); mask-image: var(--gastado); -webkit-mask-size: 360px; mask-size: 360px; }
.nota__num { font-size: clamp(8rem, 44vw, 14rem); color: var(--crema); }
.nota__de { font-size: clamp(3rem, 15vw, 5rem); color: var(--gris); }
.nota__circulo {
  position: absolute; left: -12%; top: -2%; width: 124%; height: 104%;
  overflow: visible; pointer-events: none;
}
.nota__circulo path {
  fill: none; stroke: var(--rojo-vivo); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 1000; stroke-dashoffset: 1000;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, .4));
}
.pantalla--resultado.es-activa .nota__circulo path { animation: marcar 1s .45s cubic-bezier(.5, 0, .3, 1) forwards; }
@keyframes marcar { to { stroke-dashoffset: 0; } }

.resultado__texto { display: flex; flex-direction: column; align-items: center; }
.resultado__texto .titular { font-size: clamp(2.5rem, 11vw, 4.4rem); }
.resultado__mensaje {
  margin: 14px 0 0; max-width: 36ch;
  font-size: 1.08rem; font-weight: 400; color: rgba(236, 217, 184, .9);
  text-wrap: pretty;
}
.resultado__atento {
  margin: 12px 0 0;
  font-family: var(--f-mono); font-weight: 700; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--rojo-vivo);
}

.evento {
  display: flex; gap: 0; margin-top: 26px;
  border-top: 1px solid rgba(236, 217, 184, .2); border-bottom: 1px solid rgba(236, 217, 184, .2);
}
.evento__dato { display: flex; flex-direction: column; align-items: center; padding: 12px 22px; }
.evento__dato + .evento__dato { border-left: 1px solid rgba(236, 217, 184, .2); }
.evento__dato .rotulo { margin: 0 0 2px; font-size: 10px; color: var(--gris); }
.evento__dato strong { font-family: var(--f-display); font-weight: 400; font-size: 1.9rem; line-height: 1; text-transform: uppercase; color: var(--crema); }

.led {
  display: flex; gap: 6px; margin-top: 18px; padding: 10px 14px 8px;
  background: #0a0908;
  border: 1px solid #2d211b; border-radius: 6px;
  box-shadow: inset 0 0 22px rgba(255, 106, 31, .12), 0 8px 20px rgba(0, 0, 0, .5);
}
.led__bloque { display: flex; flex-direction: column; align-items: center; min-width: 54px; }
.led__bloque b {
  font-family: var(--f-display); font-weight: 400; font-size: 2.6rem; line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--led);
  text-shadow: 0 0 10px rgba(255, 106, 31, .85), 0 0 22px rgba(255, 60, 0, .45);
  /* trama de puntos tipo pantalla LED, sin perder legibilidad */
  -webkit-mask-image: radial-gradient(circle, #000 58%, rgba(0, 0, 0, .35) 75%);
  mask-image: radial-gradient(circle, #000 58%, rgba(0, 0, 0, .35) 75%);
  -webkit-mask-size: 3px 3px; mask-size: 3px 3px;
}
.led__bloque span {
  margin-top: 2px;
  font-family: var(--f-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: #7d5a45;
}
.led.es-hoy .led__bloque { display: none; }
.led.es-hoy::after {
  content: "Es hoy";
  font-family: var(--f-display); font-size: 2.3rem; text-transform: uppercase; color: var(--led);
  text-shadow: 0 0 10px rgba(255, 106, 31, .85);
}

.acciones { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 6px; }
.acciones .ticket { margin-top: 24px; font-size: 1.2rem; }
.boton-linea {
  display: inline-block; text-align: center;
  min-height: 46px; padding: 10px 20px 8px;
  border: 2px solid var(--crema); border-radius: 2px;
  font-family: var(--f-display); font-size: 1.05rem; letter-spacing: .04em;
  text-transform: uppercase; text-decoration: none;
  transform: rotate(.8deg);
  transition: background .15s, color .15s;
}
.boton-linea:hover { background: var(--crema); color: var(--negro); }
.link {
  min-height: 40px; padding: 6px 10px;
  background: none; border: 0;
  font-family: var(--f-mono); font-weight: 700; font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gris);
  text-decoration: underline; text-underline-offset: 4px;
}
.link:hover { color: var(--crema); }

@media (min-width: 900px) {
  .pantalla--resultado { flex-direction: row; gap: 64px; }
  .resultado__nota { display: flex; flex-direction: column; align-items: center; }
  .resultado__texto { align-items: flex-start; text-align: left; max-width: 480px; }
  .acciones { align-items: flex-start; }
  .nota__num { font-size: 17rem; }
}

/* ─── Aviso de modo demo ─────────────────────────────────────────────────── */

.demo {
  position: fixed; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 70;
  transform: translateX(-50%);
  max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis;
  margin: 0; padding: 5px 10px;
  background: #ffe600; color: #000;
  font-family: var(--f-mono); font-weight: 700; font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  border: 1px solid #000;
}
.demo[hidden] { display: none; }

/* ─── Movimiento reducido ────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .grano { animation: none; }
  .flash { display: none; }
  .nota__circulo path { stroke-dashoffset: 0; }
}
