/* Pantalla del stand: horizontal, para leerse a 5 metros. */
:root {
  --night: #0b1530; --navy: #16265a; --navy-2: #22357a; --blue: #1d4ed8;
  --teal: #2dd4bf; --coral: #f97366; --green: #22c55e; --soft: #c9d3ee;
  --bg: var(--night); --ink: #fff; --accent: var(--teal); --focus: #fde047;
}
body { overflow: hidden; padding: 0 !important; }
.wall {
  height: 100vh; min-height: 560px; padding: min(2.4vw, 3.6vh) 3.4vw 1vh; overflow: hidden;
  display: grid; gap: min(2vw, 3vh) 3vw;
  grid-template-columns: minmax(0, 28fr) minmax(0, 46fr) minmax(0, 23fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "head head head" "rank center qr" "foot foot foot";
}

/* Cabecera */
.wall-head { grid-area: head; display: flex; align-items: center; gap: 2.2vw; }
.w-logo { display: inline-flex; align-items: center; gap: 1vw; font: 800 2.4vw/1 "Jakarta", sans-serif; letter-spacing: .2em; white-space: nowrap; }
.w-logo svg { width: 2.8vw; height: 2.8vw; }
.w-sep { width: 3px; height: 3.6vw; background: #2a3c78; border-radius: 2px; }
.w-title { font-size: 3.4vw; font-weight: 800; white-space: nowrap; }
.w-congress { margin-left: auto; color: var(--soft); font-size: 1.6vw; white-space: nowrap; }
.w-live { display: inline-flex; align-items: center; gap: .8vw; padding: .9vw 2vw; border-radius: 999px; background: #fff; color: var(--night); font: 800 1.7vw/1 "Jakarta", sans-serif; white-space: nowrap; }
.w-live-dot { width: 1.3vw; height: 1.3vw; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 .4vw rgb(249 115 102 / .3); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* Mejores de hoy */
.w-rank { grid-area: rank; padding: 2vw 1.6vw; border-radius: 1.6vw; background: var(--navy); border: 1px solid #2a3c78; display: flex; flex-direction: column; gap: 1.2vw; min-height: 0; }
.w-rank h2 { display: flex; align-items: center; gap: .8vw; font-size: 2.2vw; font-weight: 800; white-space: nowrap; }
.w-rank h2 svg { width: 2.4vw; height: 2.4vw; flex: none; }
.w-rank ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .8vw; }
.w-rank li { display: flex; align-items: center; gap: 1vw; padding: 1vw 1.1vw; border-radius: 1.1vw; font: 700 1.6vw/1.1 "Jakarta", sans-serif; white-space: nowrap; }
.w-rank li.is-first { background: var(--teal); color: var(--night); }
.w-rank li.is-new:not(.is-first) { background: var(--navy-2); }
.w-pos { display: grid; place-items: center; flex: none; width: 2.6vw; height: 2.6vw; border-radius: 50%; border: .2vw solid currentColor; font-size: 1.4vw; font-weight: 800; }
.is-first .w-pos { background: var(--night); color: #fff; border-color: var(--night); }
.w-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.w-pts { flex: none; font-weight: 800; }

/* Centro: frase y votos */
.w-center { grid-area: center; position: relative; display: flex; flex-direction: column; gap: min(1.2vw, 1.8vh); min-width: 0; }
.w-blob { position: absolute; z-index: -1; left: 6%; top: 18%; width: 46vw; height: 46vw; border-radius: 50%; background: #122259; }
.w-center > :not(.w-blob) { position: relative; }
.w-kicker { color: var(--teal); font: 800 1.9vw/1 "Jakarta", sans-serif; }
.w-phrase { font: 800 min(4.3vw, 7vh)/1.1 "Jakarta", sans-serif; min-height: 3.3em; display: flex; align-items: flex-start; }
.w-phrase.is-long { font-size: min(3.4vw, 5.6vh); }
.w-sub { font-size: 2.3vw; font-weight: 800; margin-top: .4vw; }
.w-vote { display: flex; flex-direction: column; gap: min(.8vw, 1.2vh); }
.w-vote-row { display: flex; align-items: center; gap: 1vw; font: 800 2.5vw/1 "Jakarta", sans-serif; }
.w-vote-row strong { margin-left: auto; font-size: min(3.6vw, 6vh); font-variant-numeric: tabular-nums; }
.w-ico { display: grid; place-items: center; width: 3vw; height: 3vw; border-radius: 50%; color: var(--night); font-size: 1.7vw; }
.w-ico-v { background: var(--green); }
.w-ico-m { background: var(--coral); }
.w-bar { height: min(3.4vw, 5vh); border-radius: 1vw; background: var(--navy-2); overflow: hidden; }
.w-bar span { display: block; height: 100%; border-radius: 1vw; transition: width .8s ease; }
.w-bar-v { background: var(--green); }
.w-bar-m { background: var(--coral); }
.w-total { color: var(--soft); font-size: 1.6vw; }

/* QR */
.w-qr { grid-area: qr; display: flex; flex-direction: column; align-items: center; gap: 1.6vw; text-align: center; }
.w-qr-box { width: 100%; max-width: min(24vw, 40vh); padding: 1.2vw; border-radius: 1.8vw; background: #fff; }
.w-qr-box .gg-qr { width: 100%; }
.w-scan { font: 800 2.8vw/1.15 "Jakarta", sans-serif; }
.w-scan span { color: var(--teal); }
.w-phone { display: flex; align-items: center; gap: .6vw; color: var(--soft); font-size: 1.5vw; text-align: left; }
.w-phone svg { width: 1.8vw; height: 1.8vw; flex: none; }

/* Pie de la demo */
.w-foot { grid-area: foot; display: flex; justify-content: space-between; align-items: center; gap: 2vw; color: #7f8bb3; font-size: max(12px, .85vw); }
.w-reset { flex: none; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid #3a4c86; background: transparent; color: #a9b4d6; font-size: max(12px, .85vw); }
