/* App del público · identidad «La mesa»
   Fondo negro de valla, cada bloque es una mesa azul con su borde blanco.
   El menú de inicio es la mesa vista de arriba: cuatro cuadrantes, la línea central y la red al medio. */
body { background: var(--red); min-height: 100vh; max-width: 640px; margin: 0 auto; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 12px; border-top: 6px solid var(--cinta); }
.marca { display: flex; align-items: center; gap: 12px; min-width: 0; }
.marca .insignia { width: 52px; height: 52px; background: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.marca .insignia img { width: 42px; height: 42px; object-fit: contain; }
.marca small { display: block; font-family: var(--display); font-weight: 700; font-stretch: 120%; font-size: 10px; color: var(--gris); text-transform: uppercase; margin-bottom: 3px; }
.marca b { display: block; font-family: var(--display); font-weight: 900; font-stretch: 62%; font-size: 25px; line-height: 1; }
.conex { width: 10px; height: 10px; background: var(--naranja); flex: 0 0 auto; }
.conex.si { background: var(--ok); }
nav.tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: sticky; top: 0; background: var(--red); z-index: 5; border-top: 3px solid var(--cinta); border-bottom: 3px solid var(--cinta); }
nav.tabs button { min-width: 0; border: 0; border-right: 1px solid #2a2d34; background: transparent; color: #cfd6e2; padding: 11px 2px 12px; font-family: var(--display); font-weight: 800; font-stretch: 82%; font-size: 17px; cursor: pointer; white-space: nowrap; }
nav.tabs button:last-child { border-right: 0; }
nav.tabs button.si { background: var(--cinta); color: var(--tinta); }
nav.tabs button .pt { display: inline-block; width: 8px; height: 8px; background: var(--goma); margin-left: 5px; vertical-align: middle; }

/* la valla: paneles blancos pegados */
.sponsors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 12px 16px 14px; }
.sponsors .placa { height: 48px; padding: 7px 10px; min-width: 0; }
main { padding: 0 16px; }
.pag { display: none; }
.pag.si { display: block; }
.card { background: var(--mesa); box-shadow: inset 0 0 0 4px var(--cinta); padding: 18px 18px 18px; margin-bottom: 12px; }
.card h2 { margin: 0 0 8px; font-family: var(--display); font-weight: 900; font-stretch: 62%; font-size: 30px; line-height: 1.02; }
.card p { margin: 0 0 12px; font-size: 15px; line-height: 1.45; }
.card a { color: #fff; }
.kicker { display: inline-block; background: var(--red); color: #fff; font-family: var(--display); font-weight: 700; font-stretch: 120%; font-size: 11px; text-transform: uppercase; padding: 5px 9px; margin-bottom: 12px; }
.btn { display: block; width: 100%; border: 0; padding: 15px 16px; font-family: var(--display); font-weight: 900; font-stretch: 72%; font-size: 22px; cursor: pointer; background: var(--goma); color: #fff; text-align: center; text-decoration: none; }
.btn.azul { background: var(--cinta); color: var(--tinta); }
.btn.gris { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.btn:disabled { opacity: .45; }

/* inicio: la mesa vista de arriba */
.accesos { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; column-gap: 4px; row-gap: 14px; margin-bottom: 12px; background: var(--mesa); box-shadow: inset 0 0 0 4px var(--cinta); padding: 4px; }
.accesos::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: calc(50% - 2px); width: 4px; background: var(--cinta); }
.accesos::after { content: ""; position: absolute; left: -6px; right: -6px; top: calc(50% - 7px); height: 14px; background: var(--red); border-top: 4px solid var(--cinta); }
.acceso { position: relative; border: 0; text-align: left; background: transparent; padding: 16px 16px 14px; color: #fff; cursor: pointer; min-height: 116px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.acceso b { font-family: var(--display); font-weight: 900; font-stretch: 62%; font-size: 27px; line-height: 1; }
.acceso span { font-size: 13px; line-height: 1.3; color: var(--suave); }
.acceso.rojo { background: var(--goma); }
.acceso.rojo span { color: #fff; }
.en-pantalla { display: flex; align-items: center; gap: 12px; }
.en-pantalla i { width: 12px; height: 12px; background: var(--goma); flex: 0 0 auto; animation: late 1.2s infinite; }
@keyframes late { 50% { opacity: .3; } }
.en-pantalla b { font-family: var(--display); font-weight: 900; font-stretch: 66%; font-size: 26px; line-height: 1.05; }

/* trivia */
.preg { font-family: var(--display); font-weight: 900; font-stretch: 70%; font-size: 28px; line-height: 1.1; margin: 4px 0 14px; }
.preg-img { margin: 0 0 12px; }
.preg-img img { max-width: 60%; display: block; outline: 3px solid #fff; }
.ops { display: grid; gap: 4px; }
.op { display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 12px; border: 0; padding: 12px; font-weight: 700; font-size: 17px; color: #fff; cursor: pointer; text-align: left; background: var(--red); }
.op .l { width: 46px; height: 46px; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-stretch: 60%; font-size: 30px; background: linear-gradient(var(--tablilla) 0 50%, #e3e0d8 50% 100%); color: var(--tinta); }
.op.elegida { background: var(--cinta); color: var(--tinta); }
.op.bien { background: var(--verde); color: #fff; }
.op.mal { opacity: .45; }
.barra-t { height: 10px; background: var(--red); overflow: hidden; margin-bottom: 12px; }
.barra-t i { display: block; height: 100%; background: var(--cinta); transition: width .25s linear; }
.yo { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--suave); margin-top: 12px; }
.yo b { color: #fff; }

.tipos { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 12px; }
.tipo { border: 0; padding: 12px; background: var(--red); color: #fff; font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: 18px; cursor: pointer; text-align: left; line-height: 1.1; }
.tipo.si { background: var(--cinta); color: var(--tinta); }
select, input[type=text], input[type=search], input[type=password] { width: 100%; background: var(--tablilla); color: var(--tinta); border: 0; border-bottom: 3px solid var(--red); border-radius: 0; padding: 13px; font-size: 16px; font-weight: 600; margin-bottom: 12px; }
input::placeholder { color: #7b8190; font-weight: 500; }
.fila-pedidos { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.fila-pedidos div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; background: var(--mesa-osc); padding: 10px 12px; }
.fila-pedidos div.mio { background: var(--cinta); color: var(--tinta); }
.fila-pedidos div span:last-child { font-weight: 800; white-space: nowrap; }
.big { font-family: var(--display); font-weight: 900; font-stretch: 60%; font-size: 44px; line-height: 1; }
.ok { color: #8ff0b6; }
.err { color: #ffb3b6; font-size: 14px; min-height: 18px; margin-bottom: 8px; }

.cats { display: flex; flex-direction: column; gap: 4px; }
.cat { display: flex; justify-content: space-between; align-items: center; border: 0; padding: 13px 14px; background: var(--red); color: #fff; font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: 18px; cursor: pointer; text-align: left; }
.cat span { font-family: var(--texto); font-stretch: 100%; color: var(--gris); font-weight: 600; font-size: 13px; }
.jug { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.22); font-size: 15px; }
.jug b { display: block; } .jug small { color: var(--suave); }
.jug .n { display: grid; place-items: center; width: 32px; height: 32px; font-family: var(--display); font-weight: 900; font-stretch: 62%; font-size: 20px; background: linear-gradient(var(--tablilla) 0 50%, #e3e0d8 50% 100%); color: var(--tinta); }
.llamado { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.22); }
.llamado .m { background: linear-gradient(var(--tablilla) 0 50%, #e3e0d8 50% 100%); color: var(--goma); text-align: center; font-family: var(--display); font-weight: 900; font-stretch: 60%; font-size: 32px; padding: 4px 0 6px; line-height: 1; }
.llamado .m small { display: block; font-family: var(--display); font-weight: 700; font-stretch: 115%; font-size: 9px; color: var(--tinta); margin-bottom: 2px; }
.llamado b { display: block; font-size: 15px; } .llamado span { font-size: 12px; color: var(--suave); }
.legal { color: var(--gris); font-size: 12px; text-align: center; padding: 8px 24px 0; margin: 0; line-height: 1.4; }

.modal { position: fixed; inset: 0; background: rgba(8,9,11,.92); display: grid; place-items: center; z-index: 20; padding: 20px; }
.modal .tarjeta { background: var(--mesa); box-shadow: inset 0 0 0 4px var(--cinta); padding: 22px; max-width: 420px; width: 100%; max-height: 92vh; overflow: auto; }
.modal h2 { margin: 0 0 10px; font-family: var(--display); font-weight: 900; font-stretch: 62%; font-size: 34px; line-height: 1; }
.modal p { margin: 0 0 14px; font-size: 14px; line-height: 1.45; }
.vibra { animation: vibra .5s; }
@keyframes vibra { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.modos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-bottom: 14px; box-shadow: inset 0 0 0 2px var(--cinta); }
.modos button { border: 0; padding: 10px 4px; font-family: var(--display); font-weight: 800; font-stretch: 82%; font-size: 15px; background: transparent; color: #fff; cursor: pointer; }
.modos button.si { background: var(--cinta); color: var(--tinta); }
.modal input[type=text], .modal input[type=password] { margin-bottom: 10px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 13px; line-height: 1.35; margin: 6px 0 10px; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--goma); }
.nivel { margin-top: 10px; }
.nivel .fila { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--suave); }
.nivel .fila b { color: #fff; }
.nivel .barra { height: 12px; background: var(--red); overflow: hidden; margin-top: 6px; }
.nivel .barra i { display: block; height: 100%; background: var(--oro); }
.inv { font-size: 11px; color: var(--gris); font-weight: 700; margin-left: 6px; }

/* programa general y llaves */
.pdia { padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.22); }
.pdia b { display: block; font-family: var(--display); font-weight: 900; font-stretch: 66%; font-size: 21px; }
.pdia small { color: var(--suave); font-size: 14px; line-height: 1.4; display: block; margin-top: 3px; }
.pdia.hoy { background: var(--cinta); color: var(--tinta); padding: 11px 10px; margin: 0 -10px; border-bottom: 0; }
.pdia.hoy small { color: #3f4552; }
.nota { font-size: 13px !important; margin: 12px 0 0 !important; color: var(--suave); }
.ronda { margin: 16px 0 6px; display: inline-block; background: var(--red); padding: 4px 8px; font-family: var(--display); font-weight: 700; font-stretch: 120%; font-size: 11px; text-transform: uppercase; }
.cruce { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.22); font-size: 14px; }
.cruce span:last-child { text-align: right; }
.cruce b { font-family: var(--display); font-weight: 900; font-stretch: 66%; font-size: 17px; background: var(--goma); color: #fff; padding: 3px 7px; }
.cruce .g { font-weight: 800; color: #fff; } .cruce .p { color: var(--suave); }
.campeon { background: var(--oro); color: var(--tinta) !important; padding: 10px 12px; }
.cat.llv { flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 4px; width: 100%; }
.cat.llv span { color: var(--suave); }

/* ---------- segunda vuelta (crítico anti-plantilla, 4/12) ----------
   La app es la mesa: un solo campo azul con las líneas blancas de los bordes;
   las secciones se separan con líneas, sin cajas. Arriba, el menú es la mesa partida por la línea central y la red. */
main { background: var(--mesa); box-shadow: inset 4px 0 0 var(--cinta), inset -4px 0 0 var(--cinta); border-top: 4px solid var(--cinta); border-bottom: 4px solid var(--cinta); padding: 0 22px; margin-bottom: 16px; }
.card { background: none; box-shadow: none; padding: 22px 0; margin: 0; border-bottom: 3px solid var(--cinta); }
.pag > .card:last-child { border-bottom: 0; }
.kicker { display: block; background: none; padding: 0; font-family: var(--texto); font-stretch: 100%; font-weight: 700; font-size: 14px; text-transform: none; color: var(--suave); margin-bottom: 8px; }
.marca small, .ronda { font-family: var(--texto); font-stretch: 100%; font-weight: 700; text-transform: none; letter-spacing: 0; }
.marca small { font-size: 12px; }
.ronda { background: none; padding: 0; font-size: 14px; color: var(--suave); }
.accesos { margin: 0 -22px; padding: 0 4px; background: none; box-shadow: none; border-bottom: 3px solid var(--cinta); column-gap: 4px; row-gap: 16px; }
.accesos::before { top: 0; bottom: 0; }
.accesos::after { left: 0; right: 0; top: calc(50% - 8px); height: 16px; }
.acceso { min-height: 128px; padding: 18px 20px 16px; }
