/* Votación Talento Blendex — teatro oscuro, dorado de marquesina. */

:root {
  --oro:        #F2C14E;
  --oro-claro:  #FFE9A3;
  --oro-hondo:  #C98A18;
  --rojo:       #9A191D;
  --coral:      #FF8E7A;
  --fondo:      #0B0714;
  --texto:      #FFFFFF;
  --tenue:      rgba(255, 255, 255, .6);
  --muy-tenue:  rgba(255, 255, 255, .42);
  --linea:      rgba(255, 255, 255, .1);
  --panel:      rgba(255, 255, 255, .05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--fondo);
  color: var(--texto);
  font-family: Barlow, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Escenario: focos arriba, butacas abajo ────────────────────────────── */

.escenario {
  position: fixed;
  inset: 0;
  background: radial-gradient(120% 70% at 50% -10%, #1d1533 0%, #120c20 45%, #08050e 100%);
  z-index: 0;
}

.focos { position: fixed; top: -6px; left: 0; right: 0; height: 46vh; pointer-events: none; z-index: 1; }

/* Un foco = un bombillo + su haz. El haz PIVOTA sobre el bombillo en vez de
   desplazarse: si se moviera de lado, la luz se despegaría de la fuente que
   supuestamente la emite. --giro es la amplitud del barrido. */
/* height explícito: los hijos son absolutos, así que sin esto .foco mediría 0
   de alto y el --alto del haz (un %) se resolvería contra cero. */
.foco { position: absolute; top: 0; height: 100%; }

.foco { --giro-a: -3.5deg; --giro-b: 3.5deg; }

.foco:nth-child(1) { left: 13%; --giro-a: -3.2deg; --giro-b: 3.2deg; --dur: 5.5s; --ret: 0s;   --alto: 92%; --ancho: clamp(90px, 30vw, 190px); }
.foco:nth-child(2) { left: 36%; --giro-a: -4.1deg; --giro-b: 4.1deg; --dur: 6.8s; --ret: -.6s; --alto: 82%; --ancho: clamp(80px, 26vw, 165px); }
.foco:nth-child(3) { left: 62%; --giro-a: -3.6deg; --giro-b: 3.6deg; --dur: 6.1s; --ret: -1.2s;--alto: 95%; --ancho: clamp(90px, 30vw, 190px); }
.foco:nth-child(4) { left: 85%; --giro-a: -4.4deg; --giro-b: 4.4deg; --dur: 7.4s; --ret: -.3s; --alto: 80%; --ancho: clamp(80px, 26vw, 165px); }

.bombillo {
  position: absolute;
  top: 6px;
  left: 0;
  width: 15px;
  height: 15px;
  margin-left: -7.5px;
  border-radius: 50%;
  background: #fff8dd;
  box-shadow: 0 0 20px 8px rgba(255, 244, 208, .55);
  z-index: 2;
  animation: bombillo var(--dur) ease-in-out infinite var(--ret);
}

.haz {
  position: absolute;
  top: 12px;                      /* nace justo en el bombillo */
  left: 0;
  width: var(--ancho);
  /* Centra el cono bajo el bombillo SIN transform. Antes esto vivía dentro del
     @keyframes como translateX(-50%): si la animación no corría — por
     prefers-reduced-motion, que la termina al instante y no fija el estado
     final — el haz volvía a su base sin transform y saltaba media anchura a la
     derecha, despegándose del bombillo. Como margen, el centrado es
     incondicional; el transform ya solo carga el giro. */
  margin-left: calc(var(--ancho) / -2);
  height: var(--alto);
  background: linear-gradient(180deg, rgba(255, 246, 214, .5), rgba(255, 246, 214, 0));
  clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%);
  filter: blur(9px);
  opacity: .75;                   /* valor medio: es lo que se ve si la
                                     animación no corre */
  transform-origin: top center;   /* el vértice, o sea el bombillo */
  animation: barrido var(--dur) ease-in-out infinite var(--ret);
}

/* Solo el giro, sobre el vértice (top center), que es donde está el bombillo. */
@keyframes barrido {
  0%, 100% { transform: rotate(var(--giro-a)); opacity: .55; }
  50%      { transform: rotate(var(--giro-b)); opacity: .95; }
}

/* El bombillo late al mismo ritmo que su haz: refuerza que son lo mismo. */
@keyframes bombillo {
  0%, 100% { box-shadow: 0 0 16px 6px rgba(255, 244, 208, .4);  opacity: .8; }
  50%      { box-shadow: 0 0 26px 11px rgba(255, 244, 208, .7); opacity: 1; }
}

.butacas { position: fixed; bottom: 0; left: -14px; right: -14px; height: 150px; pointer-events: none; z-index: 1; }

.fila { position: absolute; left: 0; right: 0; display: flex; gap: 10px; padding: 0 6px; }
.fila--atras { bottom: 52px; filter: blur(1.2px); }
.fila--frente { bottom: 0; gap: 12px; padding: 0; filter: blur(2px); }

.butaca { flex: 1; height: 62px; border-radius: 14px 14px 4px 4px; background: linear-gradient(180deg, #2a2244, #171128); }
.fila--frente .butaca { height: 74px; border-radius: 16px 16px 4px 4px; background: linear-gradient(180deg, #332a52, #1b1430); }

.velo {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 7, 20, .85), rgba(11, 7, 20, .35) 40%, rgba(11, 7, 20, .9));
}

/* ── Contenedor ────────────────────────────────────────────────────────── */

.escena {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 28px 20px 44px;
  display: flex;
  flex-direction: column;
}

.pantalla { display: none; flex-direction: column; flex: 1; }
.pantalla.activa { display: flex; animation: entrar .45s ease both; }

@keyframes entrar {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

/* ── Idioma ────────────────────────────────────────────────────────────── */

.idioma {
  align-self: flex-end;
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(242, 193, 78, .28);
  border-radius: 999px;
  padding: 3px;
  backdrop-filter: blur(6px);
  margin-bottom: 10px;
  flex: none;
}

.idioma button {
  padding: 6px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--tenue);
  font: 700 11px/1 Barlow, sans-serif;
  letter-spacing: .09em;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.idioma button[aria-pressed="true"] { background: var(--oro); color: #25190a; }

/* ── Marquesina ────────────────────────────────────────────────────────── */

.marquesina { text-align: center; margin-top: 6px; }

.oro {
  background: linear-gradient(180deg, #FFF0BE 6%, var(--oro) 44%, #B87C10 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitulo { margin-top: 18px; text-align: center; font: 500 14px/1.45 Barlow, sans-serif; color: rgba(255, 255, 255, .68); }

/* ── Títulos en imagen ─────────────────────────────────────────────────── */

/* Los PNG están en español. La marca es un logo y va en los dos idiomas; los
   otros tres títulos son frases traducibles, así que en inglés se muestra el
   texto estilizado en su lugar. El idioma vive en <html lang>, que app.js ya
   actualiza, así que el cambio es puro CSS: sin parpadeo en la carga inicial
   porque vista.php ya sirve lang="es". */

.titulo-h { margin: 0; text-align: center; }

.titulo-img {
  display: block;
  width: 100%;
  max-width: 336px;
  height: auto;                 /* width/height en el HTML reservan el espacio */
  margin: 0 auto;
  /* La sombra proyectada del PNG ya viene quemada en el arte; esto solo lo
     asienta sobre el fondo oscuro. */
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .45));
}

/* El logo manda en el alto de la pantalla de ingreso: a 300px el contenido
   hasta el botón CONTINUAR sumaba 736px y no cabía en pantallas de ~700px.
   A 240px la marca sigue dominando y el botón entra sin scroll. */
.titulo-img--marca { margin-top: 4px; max-width: 240px; }

[data-pantalla="login"] .subtitulo { margin-top: 12px; }

/* Español: manda la imagen. Inglés: manda el texto. */
.titulo-txt { display: none; }

html[lang="en"] .titulo-h .titulo-img { display: none; }
html[lang="en"] .titulo-txt           { display: block; }

/* La marca es logo, nunca se oculta. */
html[lang="en"] .titulo-img--marca { display: block; }

/* ── Documento ─────────────────────────────────────────────────────────── */

.visor {
  margin-top: 14px;
  padding: 16px 14px;
  border-radius: 16px;
  border: 1.5px solid rgba(242, 193, 78, .4);
  background: rgba(255, 255, 255, .045);
  text-align: center;
  transition: border-color .2s;
}

.visor.error { border-color: rgba(255, 142, 122, .7); animation: temblor .4s ease; }

.visor span { font: 600 26px/1.15 Barlow, sans-serif; letter-spacing: .18em; min-height: 30px; display: block; }
.visor.vacio span { color: var(--muy-tenue); letter-spacing: normal; }

@keyframes temblor {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); }
  40%, 60% { transform: translateX(7px); }
}

.aviso { min-height: 20px; margin-top: 8px; text-align: center; font: 600 12px/1.3 Barlow, sans-serif; color: var(--coral); }

.teclado { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px; }

.tecla {
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(242, 193, 78, .26);
  background: rgba(255, 255, 255, .05);
  color: #F7E4B0;
  font: 600 22px/1 Barlow, sans-serif;
  cursor: pointer;
  user-select: none;
  transition: background .12s, transform .12s;
}

.tecla:active { background: rgba(242, 193, 78, .22); transform: scale(.96); }


/* Mientras se sostiene ⌫ la tecla se tiñe de rojo progresivamente: avisa de
   que va a borrar el documento entero antes de que ocurra, en lugar de que
   se vacíe de golpe sin explicación. Dura lo mismo que MANTENER_MS. */
.tecla--manteniendo {
  animation: manteniendo .5s ease-out forwards;
}

@keyframes manteniendo {
  from { background: rgba(242, 193, 78, .22); border-color: rgba(242, 193, 78, .26); }
  to   { background: rgba(255, 142, 122, .32); border-color: rgba(255, 142, 122, .7); }
}

/* ── Respuesta al tacto ────────────────────────────────────────────────── */

/* touch-action: manipulation desactiva el doble-toque-para-zoom en estos
   elementos. Sin él, el navegador retiene cada toque para ver si llega un
   segundo, y al escribir rápido descarta dígitos. Junto con el registro en
   pointerdown (app.js), el teclado responde en el instante del contacto.
   El resto de la página conserva el zoom normal. */
.tecla,
.boton,
.opcion,
.idioma button,
.salir {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* ── Botones ───────────────────────────────────────────────────────────── */

.boton {
  margin-top: 16px;
  width: 100%;
  height: 54px;
  border: 1.5px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .3);
  font: 700 15px/1 Barlow, sans-serif;
  letter-spacing: .16em;
  cursor: not-allowed;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}

.boton.listo {
  background: linear-gradient(180deg, #FFDE8E, #E5A82A);
  border-color: rgba(255, 222, 142, .9);
  color: #25190a;
  box-shadow: 0 8px 26px rgba(229, 168, 42, .32);
  cursor: pointer;
}

.boton.listo:active { transform: scale(.985); }

.boton--fantasma {
  height: 48px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .16);
  color: var(--tenue);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .1em;
  cursor: pointer;
}

.nota {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
  font: 500 11.5px/1.5 Barlow, sans-serif;
  color: rgba(255, 255, 255, .58);
  text-wrap: pretty;
}

/* ── Cargando ──────────────────────────────────────────────────────────── */

.cargando { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }

.aro {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid rgba(242, 193, 78, .2);
  border-top-color: var(--oro);
  animation: girar .9s linear infinite;
}

@keyframes girar { to { transform: rotate(360deg); } }

.cargando p { font: 600 14px/1.4 Barlow, sans-serif; letter-spacing: .05em; color: rgba(255, 255, 255, .72); }

/* ── Identificación del votante ────────────────────────────────────────── */

.votante {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, .08);
  flex: none;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: none;
  background: linear-gradient(140deg, #3a2f5c, #231a3c);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 12px/1 Barlow, sans-serif;
  color: var(--oro);
}

.votante__datos { flex: 1; min-width: 0; }
.votante__nombre { font: 600 13px/1.2 Barlow, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.votante__rol { font: 600 9.5px/1.4 Barlow, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--oro); }

.salir { border: 0; background: none; font: 600 11px/1 Barlow, sans-serif; color: var(--muy-tenue); cursor: pointer; }

/* ── Papeleta ──────────────────────────────────────────────────────────── */

.acto { margin-top: 22px; text-align: center; font: italic 700 13px/1 'Playfair Display', Georgia, serif; color: rgba(242, 193, 78, .8); }

.titulo {
  text-align: center;
  margin-top: 8px;
  font-family: 'Alfa Slab One', Georgia, serif;
  font-size: clamp(27px, 8vw, 32px);
  line-height: 1;
  text-shadow: 0 3px 0 rgba(154, 25, 29, .5);
  transform: rotate(-1.2deg);
}

[data-pantalla="papeleta"] .acto      { margin-top: 16px; }
[data-pantalla="papeleta"] .subtitulo { margin-top: 8px; }

.papeleta { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }

.opcion {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px;
  border-radius: 18px;
  border: 1.5px solid var(--linea);
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  transition: border-color .22s, background .22s, box-shadow .22s;
}

.opcion[aria-checked="true"] {
  border-color: rgba(255, 222, 142, .9);
  background: linear-gradient(180deg, rgba(242, 193, 78, .2), rgba(242, 193, 78, .06));
  box-shadow: 0 10px 30px rgba(229, 168, 42, .22);
}

.retrato {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  overflow: hidden;
  flex: none;
  /* Casi blanco a propósito, contra toda la paleta oscura de la página: los
     tres finalistas van de oscuro (pelo negro, ropa negra) y sobre un tile
     oscuro se fundían con él. Aquí recortan con nitidez.
     Las rayas pasan a ser negras translúcidas — sobre claro, unas blancas
     serían invisibles. */
  background-color: #EAE4F7;
  background-image: repeating-linear-gradient(135deg, rgba(58, 40, 105, .06) 0 6px, transparent 6px 12px);
  border: 1px solid rgba(0, 0, 0, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 16px/1 Barlow, sans-serif;
  color: rgba(45, 33, 78, .55);   /* legible sobre el tile claro */
}

/* Con foto, la imagen llena el tile; sin foto quedan las iniciales sobre el
   fondo rayado. object-position arriba porque en un retrato la cara está en
   el tercio superior: centrarla recortaría la cabeza. */
.retrato img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  display: block;
  border-radius: inherit;
}

.opcion__datos { flex: 1; min-width: 0; }
.opcion__nombre { font: 700 16.5px/1.2 Barlow, sans-serif; }
.opcion[aria-checked="true"] .opcion__nombre { color: var(--oro-claro); }
.opcion__talento { margin-top: 3px; font: 600 10px/1 Barlow, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: rgba(242, 193, 78, .7); }

.marca-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex: none;
  border: 1.5px solid rgba(255, 255, 255, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 12px/1 Barlow, sans-serif;
  color: #1a1206;
}

.opcion[aria-checked="true"] .marca-check {
  border-color: #FFDE8E;
  background: linear-gradient(180deg, #FFDE8E, #E5A82A);
}

.espaciador { flex: 1; min-height: 20px; }

/* ── Confirmación ──────────────────────────────────────────────────────── */

.tarjeta {
  margin: auto 0;
  padding: 24px 20px;
  border-radius: 24px;
  background: rgba(24, 17, 40, .92);
  border: 1px solid rgba(242, 193, 78, .3);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  text-align: center;
}

.tarjeta__kicker { font: 600 10px/1 Barlow, sans-serif; letter-spacing: .34em; text-transform: uppercase; color: rgba(242, 193, 78, .8); }
/* Casi el doble que en la papeleta (70px): confirmar el voto es el momento
   decisivo y la foto tiene que sostenerlo. A 76px competía con el tile de la
   papeleta en vez de destacar, y con el encuadre alejado la persona quedaba
   diminuta. La tarjeta tiene espacio de sobra en pantallas de 700px. */
.tarjeta .retrato { margin: 18px auto 0; width: 140px; height: 140px; border-radius: 32px; font-size: 36px; }
.tarjeta__pregunta { margin-top: 16px; font: 500 13px/1.4 Barlow, sans-serif; color: var(--tenue); }
.tarjeta__nombre { margin-top: 4px; font: 700 22px/1.2 Barlow, sans-serif; }
.tarjeta__secreto { margin-top: 14px; font: 500 11.5px/1.5 Barlow, sans-serif; color: var(--muy-tenue); text-wrap: pretty; }

/* ── Agradecimiento y temporizador ─────────────────────────────────────── */

.gracias { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; }

.sello {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid rgba(242, 193, 78, .5);
  background: radial-gradient(circle at 50% 35%, rgba(242, 193, 78, .28), rgba(242, 193, 78, .05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  animation: sello .6s cubic-bezier(.2, 1.3, .4, 1) both;
}

@keyframes sello {
  from { opacity: 0; transform: scale(.5) rotate(-12deg); }
  to   { opacity: 1; transform: none; }
}

.gracias h2 { font-family: 'Alfa Slab One', Georgia, serif; font-size: clamp(26px, 7.5vw, 31px); line-height: 1.05; text-shadow: 0 3px 0 rgba(154, 25, 29, .5); }
.gracias p { margin-top: 10px; font: 500 13.5px/1.5 Barlow, sans-serif; color: var(--tenue); max-width: 30ch; text-wrap: pretty; }

.cuenta { margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 12px; }

.cuenta__aro { position: relative; width: 86px; height: 86px; }
.cuenta__aro svg { transform: rotate(-90deg); display: block; }
.cuenta__aro circle { fill: none; stroke-width: 5; stroke-linecap: round; }
.cuenta__pista { stroke: rgba(255, 255, 255, .1); }
.cuenta__avance { stroke: var(--oro); transition: stroke-dashoffset 1s linear; }

.cuenta__num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 26px/1 Barlow, sans-serif;
  color: var(--oro-claro);
  font-variant-numeric: tabular-nums;
}

.cuenta__texto { font: 600 10.5px/1.4 Barlow, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--muy-tenue); }

/* ── Resultados ────────────────────────────────────────────────────────── */

.resultados { display: flex; flex-direction: column; flex: 1; position: relative; }

.ganador {
  margin-top: 20px;
  padding: 18px 16px 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(242, 193, 78, .18), rgba(242, 193, 78, .05));
  border: 1.5px solid rgba(242, 193, 78, .45);
  animation: brillo 2.6s ease-in-out infinite;
  text-align: center;
}

@keyframes brillo {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242, 193, 78, 0); }
  50%      { box-shadow: 0 0 34px 2px rgba(242, 193, 78, .22); }
}

.ganador__etiqueta { font: 700 9.5px/1 Barlow, sans-serif; letter-spacing: .34em; text-transform: uppercase; color: #FFE1A0; }
.ganador__fila { margin-top: 12px; display: flex; align-items: center; gap: 14px; text-align: left; }
.ganador__fila .retrato { width: 58px; height: 58px; border-radius: 16px; font-size: 17px; }
.ganador__datos { flex: 1; min-width: 0; }
.ganador__nombre { font: 700 19px/1.15 Barlow, sans-serif; }
.ganador__talento { margin-top: 2px; font: 600 10px/1 Barlow, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 225, 160, .8); }
.ganador__pct { font-family: 'Alfa Slab One', Georgia, serif; font-size: 26px; line-height: 1; color: var(--oro-claro); }
.ganador__votos { font: 600 10px/1.4 Barlow, sans-serif; color: rgba(255, 255, 255, .5); text-align: right; }

.conteo { margin-top: 20px; display: flex; flex-direction: column; gap: 16px; }

.linea__cabeza { display: flex; align-items: baseline; gap: 8px; }
.linea__puesto { font: italic 700 12px/1 'Playfair Display', Georgia, serif; color: rgba(242, 193, 78, .85); min-width: 24px; }
.linea__nombre { flex: 1; min-width: 0; font: 600 14px/1.2 Barlow, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.linea__pct { font: 700 15px/1 Barlow, sans-serif; }
.linea__votos { font: 500 11px/1 Barlow, sans-serif; color: var(--muy-tenue); }
.linea--lider .linea__nombre, .linea--lider .linea__pct { color: var(--oro-claro); }

.barra { margin-top: 7px; height: 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; }

.barra__relleno {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .4));
  transition: width 1.2s cubic-bezier(.2, .8, .2, 1);
}

.linea--lider .barra__relleno { background: linear-gradient(90deg, #E5A82A, var(--oro-claro)); }

.linea__pie { margin-top: 5px; display: flex; justify-content: space-between; align-items: baseline; }
.linea__tuyo { font: 600 9.5px/1 Barlow, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: rgba(242, 193, 78, .75); }

.cifras { margin-top: 22px; display: flex; gap: 10px; }

/* Quedó una sola cifra (el total de votos), así que va centrada y con más
   peso: descolgada a la izquierda de un panel ancho se veía perdida. */
.cifra { flex: 1; padding: 14px 12px; border-radius: 14px; background: var(--panel); border: 1px solid rgba(255, 255, 255, .08); text-align: center; }
.cifra strong { display: block; font: 700 26px/1 Barlow, sans-serif; color: var(--oro-claro); }
.cifra span { display: block; margin-top: 4px; font: 600 9.5px/1.2 Barlow, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--muy-tenue); }

.pie { margin-top: 16px; text-align: center; font: 700 11px/1.05 Barlow, sans-serif; letter-spacing: .08em; color: rgba(242, 193, 78, .75); }

/* ── Confeti ───────────────────────────────────────────────────────────── */

.confeti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 6; }
.confeti i { position: absolute; top: -20px; border-radius: 2px; animation: caer linear infinite; }

@keyframes caer {
  to { transform: translateY(115vh) rotate(720deg); }
}

/* Teléfonos de pantalla corta (o con la barra del navegador visible): el
   botón CONTINUAR tiene que verse sin desplazar, así que se recorta el logo y
   se compacta el teclado en lugar de dejarlo fuera de cuadro. */
@media (max-height: 720px) {
  .titulo-img--marca { max-width: 190px; }

  [data-pantalla="login"] .subtitulo { margin-top: 8px; }

  .visor   { margin-top: 10px; padding: 12px 14px; }
  .teclado { gap: 8px; }
  .tecla   { height: 48px; }
  .boton   { margin-top: 12px; height: 50px; }
  .nota    { margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }

  /* Sin confeti ni temblor: eso sí es movimiento que llama la atención. */
  .confeti { display: none; }
  .visor.error { animation: none !important; }

  /* Los focos del escenario se mantienen, atenuados. Son decoración ambiental
     de fondo: un gradiente borroso que bascula unos grados, sin desplazarse ni
     entrar en el área de lectura. En Android el ahorro de batería activa esta
     preferencia, y ahí congelar el escenario apaga la página entera sin que
     nadie lo haya pedido. Amplitud a la mitad y casi el doble de lento. */
  .haz, .bombillo {
    animation-duration: 10s !important;
    animation-iteration-count: infinite !important;
  }

  .foco { --giro-a: -1.6deg !important; --giro-b: 1.6deg !important; }

  /* El aro de carga es un indicador funcional, no decoración: congelado se lee
     como que la página se colgó mientras verifica el documento. */
  .aro {
    animation-duration: 1.6s !important;
    animation-iteration-count: infinite !important;
  }
}
