/* aula · estilos. Móvil primero (390×844 de referencia), botones grandes.
   Paleta del deck: fondo #F5EFE6, tomate #C2410C, oscuro #1E1B18, secundario #D9A441.
   Sin estilos en línea (la CSP solo permite este fichero). */

:root {
  --fondo: #F5EFE6;
  --tomate: #C2410C;
  --tomate-oscuro: #9A3412;
  --tomate-claro: #FBE3D6;
  --oscuro: #1E1B18;
  --dorado: #D9A441;
  --tinta: #1E1B18;
  --gris: #5F574F;
  --borde: #E2D6C6;
  --papel: #FFFCF7;
  --verde: #2F6B3A;
  --radio: 14px;
  --fuente: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font-family: var(--fuente);
  font-size: 18px;
  line-height: 1.4;
}
[hidden] { display: none !important; }
/* Solo para lectores de pantalla (p. ej., la pregunta del B4, que repite el título) */
.solo-lector { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 0.75em; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--tomate); outline-offset: 2px; }

.marca { font-weight: 800; letter-spacing: 0.02em; color: var(--tomate); margin: 0; }
.nota { color: var(--gris); font-size: 0.95rem; }
.enlace { color: var(--tomate-oscuro); }
.mensaje-grande { font-size: 1.35rem; font-weight: 600; }

/* --- Botones ------------------------------------------------------------ */
.boton-principal, .boton-secundario, .boton-peligro, .boton-mesa, .boton-siguiente,
.boton-accion, .boton-enviar, .boton-rapido, .boton-signo, .boton-cabecera {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0.6em 1.1em;
  border-radius: var(--radio); border: 2px solid transparent;
  font-weight: 700; text-decoration: none; text-align: center;
  touch-action: manipulation;
}
.boton-principal, .boton-enviar, .boton-siguiente {
  background: var(--tomate); color: #fff;
}
.boton-principal:active, .boton-enviar:active, .boton-siguiente:active { background: var(--tomate-oscuro); }
.boton-secundario { background: var(--papel); color: var(--tinta); border-color: var(--borde); }
.boton-peligro { background: #fff; color: #A11A1A; border-color: #E8B4B4; }
.boton-pequeno { min-height: 44px; padding: 0.4em 0.9em; font-size: 0.95rem; }
button:disabled { opacity: 0.55; cursor: progress; }

/* --- Alumno: entrada ---------------------------------------------------- */
.entrada, .mensaje-pagina, .login {
  max-width: 560px; margin: 0 auto; padding: 28px 16px 40px;
}
.entrada h1 { font-size: 1.55rem; margin-top: 0.6em; }
.entrada h2 { margin-top: 1em; }
.rejilla-mesas {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 12px 0 16px;
}
.boton-mesa {
  background: var(--papel); border-color: var(--borde); color: var(--tinta);
  font-size: 1.5rem; min-height: 72px;
}
.boton-mesa:active, .boton-mesa.elegida { background: var(--tomate); color: #fff; border-color: var(--tomate); }
.boton-mesa-ancho { grid-column: 1 / -1; font-size: 1.15rem; min-height: 60px; }
.aviso { min-height: 1.4em; color: var(--tomate-oscuro); font-weight: 600; }
.mensaje-pagina { padding-top: 64px; }

/* --- Alumno: vista principal -------------------------------------------- */
.cabecera {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: var(--fondo); border-bottom: 1px solid var(--borde);
}
.boton-cabecera {
  min-height: 48px; background: var(--papel); border-color: var(--borde);
  font-size: 1rem; padding: 0.4em 0.9em;
}
.sin-conexion {
  margin: 8px 16px 0; padding: 8px 12px; border-radius: 10px;
  background: #FFF3C4; color: #5B4300; font-size: 0.95rem;
}
.contenido { max-width: 640px; margin: 0 auto; padding: 18px 16px 48px; }
.act-bloque-alumno { color: var(--gris); font-weight: 700; font-size: 0.9rem; margin: 0; }
.ronda { display: inline-block; margin: 0 0 12px; padding: 4px 10px; border-radius: 999px;
  background: var(--oscuro); color: var(--fondo); font-size: 0.9rem; font-weight: 700; }
.aviso-mesa { background: var(--tomate-claro); border-radius: 10px; padding: 10px 12px; font-size: 0.95rem; }
.aviso-ronda { background: var(--oscuro); color: var(--fondo); border-radius: 10px; padding: 10px 12px;
  font-weight: 700; }
.espera { font-size: 1.35rem; font-weight: 600; margin-top: 24px; }
.mira { font-size: 2rem; font-weight: 800; color: var(--tomate); margin: 16px 0; }

.formulario { display: block; }
.grupo { border: 0; margin: 0 0 8px; padding: 0; }
.grupo-titulo { font-size: 1.05rem; color: var(--tomate-oscuro); text-transform: none; margin: 18px 0 6px;
  padding-top: 10px; border-top: 2px solid var(--borde); }
.campo { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.campo-texto { display: block; font-weight: 700; margin-bottom: 8px; padding: 0; }
.opcional { color: var(--gris); font-weight: 400; }
.opcion {
  display: flex; align-items: center; gap: 12px;
  min-height: 56px; margin-bottom: 10px; padding: 10px 14px;
  background: var(--papel); border: 2px solid var(--borde); border-radius: var(--radio);
  cursor: pointer;
}
.opcion input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opcion:has(input:checked) { border-color: var(--tomate); background: var(--tomate-claro); }
.opcion.marcada { border-color: var(--tomate); background: var(--tomate-claro); }
.opcion:has(input:focus-visible) { outline: 3px solid var(--tomate); outline-offset: 2px; }
.letra {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--oscuro); color: var(--fondo); font-weight: 800;
}
.opcion.marcada .letra { background: var(--tomate); }
.numero-fila { display: flex; align-items: stretch; gap: 8px; }
.entrada-numero, .entrada-texto, .login input {
  width: 100%; min-width: 0; min-height: 56px; padding: 10px 14px;
  border: 2px solid var(--borde); border-radius: var(--radio); background: #fff;
  font-size: 1.3rem;
}
.entrada-texto { font-size: 1.1rem; }
textarea.entrada-texto { min-height: 80px; resize: vertical; line-height: 1.35; }
.entrada-numero:focus, .entrada-texto:focus { border-color: var(--tomate); outline: none; }
.unidad { flex: none; display: inline-flex; align-items: center; font-weight: 700; color: var(--gris); min-width: 2.2em; }
.boton-signo { min-width: 56px; padding: 0; background: var(--papel); border-color: var(--borde); font-size: 1.3rem; }
.rapidos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.boton-rapido { min-height: 52px; padding: 0; background: var(--papel); border-color: var(--borde); font-size: 1.1rem; }
.contador { display: block; text-align: right; color: var(--gris); font-size: 0.85rem; margin-top: 4px; }
.ayuda { margin: 0 0 16px; background: var(--papel); border: 1px solid var(--borde); border-radius: var(--radio); padding: 10px 14px; }
.ayuda summary { font-weight: 700; color: var(--tomate-oscuro); cursor: pointer; min-height: 32px; }
.ayuda p { margin: 8px 0 0; }
.boton-enviar { width: 100%; font-size: 1.25rem; min-height: 60px; margin-top: 8px; }
.estado-envio { margin-top: 12px; font-weight: 700; min-height: 1.4em; }
.estado-envio.ok { color: var(--verde); }
.estado-envio.mal { color: #A11A1A; }
.comprobador { margin-top: 14px; padding: 12px 14px; border-radius: var(--radio);
  background: var(--oscuro); color: var(--fondo); }
.comprobador p { margin: 0 0 6px; }
.comprobador .titulo-comprobador { color: var(--dorado); font-weight: 700; font-size: 0.9rem; }
.mi-respuesta { margin-top: 16px; padding: 12px 14px; background: var(--papel);
  border: 1px solid var(--borde); border-radius: var(--radio); }
.mi-respuesta dt { color: var(--gris); font-size: 0.9rem; }
.mi-respuesta dd { margin: 0 0 8px; font-weight: 700; }

/* Tarjeta del lienzo, pensada para una sola captura de pantalla del móvil: sin la
   cabecera de la página, con el aviso encima y letra algo menor, cabe entera en
   390×844 aunque las respuestas lleguen al máximo. */
body.con-tarjeta .cabecera { display: none; }
body.con-tarjeta .contenido { padding-top: 12px; }
.tarjeta-lienzo {
  background: var(--papel); border: 3px solid var(--oscuro); border-radius: 18px;
  padding: 10px 12px 8px; margin: 0 0 14px; font-size: 0.88rem; line-height: 1.25;
}
.tarjeta-lienzo h2 { font-size: 1.3rem; color: var(--tomate); margin-bottom: 2px; }
.casilla { border-top: 2px solid var(--borde); padding-top: 4px; margin-top: 6px; }
.casilla h3 { font-size: 0.78rem; color: var(--gris); margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.03em; }
.linea { margin: 0 0 4px; overflow-wrap: anywhere; }
.linea-etiqueta { color: var(--gris); }
.linea-valor { font-weight: 800; }
.aviso-captura { margin: 0 0 10px; padding: 8px 10px; border-radius: 10px;
  background: var(--tomate-claro); font-weight: 600; font-size: 0.9rem; line-height: 1.3; }

/* Selector de mesa */
.selector { position: fixed; inset: 0; z-index: 20; background: rgba(30, 27, 24, 0.6);
  display: flex; align-items: flex-end; justify-content: center; }
.selector-caja { width: 100%; max-width: 560px; background: var(--fondo);
  border-radius: 20px 20px 0 0; padding: 20px 16px 28px; }
.selector-caja .boton-secundario { width: 100%; }

/* --- Admin -------------------------------------------------------------- */
.admin-cabecera { display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-bottom: 1px solid var(--borde); }
.admin-contenido { max-width: 860px; margin: 0 auto; padding: 12px 16px 60px; }
.tarjeta { background: var(--papel); border: 1px solid var(--borde); border-radius: 18px;
  padding: 16px; margin: 14px 0; }
.login form { display: grid; gap: 12px; }
.login label { font-weight: 700; }
.error { color: #A11A1A; font-weight: 700; }
.fila-botones { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.fila-botones form { margin: 0; }
.aviso-admin { position: sticky; top: 0; z-index: 10; margin: 0; padding: 10px 16px;
  background: var(--oscuro); color: var(--fondo); font-weight: 700; }
.aviso-admin.mal { background: #7F1D1D; }
.cifra { color: var(--tomate); }
.tabla-mesas { border-collapse: collapse; width: 100%; max-width: 420px; }
.tabla-mesas th, .tabla-mesas td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--borde); }
.boton-siguiente { width: 100%; font-size: 1.4rem; min-height: 64px; }
.admin-contenido.con-barra { padding-bottom: 200px; }
.barra-siguiente { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  padding: 8px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--fondo);
  border-top: 2px solid var(--borde); box-shadow: 0 -6px 18px rgba(30, 27, 24, 0.12); }
.barra-siguiente form, .barra-foco, .barra-acciones { max-width: 860px; margin: 0 auto; }
.barra-foco { font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; line-height: 1.25; }
/* Atajos sobre la actividad en pantalla: como mucho tres a la vez (Abrir o Cerrar,
   Resultados, y Nueva ronda o Revelar), en una fila. */
.barra-acciones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 6px; }
.barra-acciones:not(:has(form:not([hidden]))) { display: none; }
.barra-siguiente .barra-acciones form { margin: 0; max-width: none; }
.barra-acciones .boton-accion { min-height: 46px; padding: 0.3em 0.4em; font-size: 0.95rem; }
.barra-siguiente .boton-siguiente { min-height: 54px; }
.actividades { list-style: none; margin: 16px 0 0; padding: 0; }
.actividad { border: 2px solid var(--borde); border-radius: var(--radio); padding: 12px; margin-bottom: 12px; background: #fff; }
.actividad.en-foco { border-color: var(--tomate); box-shadow: 0 0 0 3px var(--tomate-claro); }
.act-cabecera { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.act-bloque { font-weight: 800; color: var(--tomate); }
.act-titulo { font-weight: 700; }
.act-etiqueta { font-size: 0.8rem; padding: 2px 8px; border-radius: 999px; background: var(--fondo); color: var(--gris); }
.act-estado { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--gris); margin-bottom: 8px; min-height: 28px; }
.estado { font-weight: 800; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.04em;
  padding: 3px 8px; border-radius: 8px; background: var(--fondo); color: var(--gris); }
.estado-abierta { background: #DCF2DF; color: var(--verde); }
.estado-resultados { background: var(--oscuro); color: var(--fondo); }
.act-foco { display: none; font-weight: 700; color: var(--tomate); }
.actividad.en-foco .act-foco { display: inline; }
.act-botones { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.act-botones form { margin: 0; }
.boton-accion { width: 100%; min-height: 52px; background: var(--papel); border-color: var(--borde); color: var(--tinta); }
.boton-abrir { background: var(--tomate); color: #fff; border-color: var(--tomate); }
.boton-resultados { background: var(--oscuro); color: var(--fondo); border-color: var(--oscuro); }
.boton-vaciar { color: #A11A1A; }
.sesiones { list-style: none; padding: 0; margin: 0; }
.sesiones li { padding: 10px 0; border-bottom: 1px solid var(--borde); }
.sesion-nombre { font-weight: 700; margin-right: 8px; }

/* --- «Viernes, 21:15» en el móvil (prefijo rol-: el proyector tiene escena.css) --- */
.reloj-rol { font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em; color: var(--oscuro); }
body.con-rol .cabecera .marca { display: none; }
.rol h2 { font-size: 1.1rem; margin: 0 0 10px; }
.rol-estado { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; font-weight: 700;
  background: var(--oscuro); color: var(--fondo); }
.rol-estado-terminada { background: var(--tomate); color: #fff; }
.rol-mensaje { margin: 0 0 10px; font-weight: 700; }
.rol-mensaje:empty { display: none; }
.rol-mensaje.ok { color: var(--verde); }
.rol-mensaje.mal { color: #A11A1A; }
.rol-briefing { margin: 6px 0 16px; padding: 18px; border-radius: 18px;
  background: var(--oscuro); color: var(--fondo); font-size: 1.25rem; font-weight: 600; line-height: 1.45; }
.rol-briefing .nota { color: var(--dorado); font-size: 1rem; margin: 0; }
.rol-cocina, .rol-decisiones, .rol-avisos, .rol-resultado { margin: 0 0 16px; }
.rol-cocina { padding: 14px; border-radius: 18px; background: var(--papel); border: 1px solid var(--borde); }
.rol-barra-texto { margin: 0 0 4px; font-weight: 700; }
.rol-pista { height: 18px; margin-bottom: 12px; border-radius: 9px; overflow: hidden; background: var(--borde); }
.rol-relleno { height: 100%; width: 0; border-radius: 9px; background: var(--dorado); transition: width 0.8s ease; }
.rol-relleno.horno { background: var(--tomate); }
.rol-cifras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 0; }
.rol-cifras > div { padding: 8px 10px; border-radius: 12px; background: #fff; border: 2px solid var(--borde); }
.rol-cifras dt { font-size: 0.8rem; line-height: 1.2; color: var(--gris); }
.rol-cifras dd { margin: 2px 0 0; font-size: 1.35rem; font-weight: 800; line-height: 1.15; }
.rol-num { white-space: nowrap; }
.rol-unidad { font-size: 0.95rem; font-weight: 700; white-space: nowrap; }
.rol-luz { display: inline-block; margin-top: 2px; padding: 1px 8px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 800; text-transform: uppercase; vertical-align: middle; }
.rol-semaforo-verde { border-color: #3F7D4E !important; }
.rol-semaforo-verde .rol-luz { background: #3F7D4E; color: #fff; }
.rol-semaforo-ambar { border-color: #D9A441 !important; background: #FFF7E2 !important; }
.rol-semaforo-ambar .rol-luz { background: #D9A441; color: var(--oscuro); }
.rol-semaforo-rojo { border-color: #A11A1A !important; background: #FDE8E8 !important; }
.rol-semaforo-rojo .rol-luz { background: #A11A1A; color: #fff; }
.rol-evento { margin: 0 0 16px; padding: 14px; border-radius: 18px; background: #fff;
  border: 3px solid var(--tomate); box-shadow: 0 6px 18px rgba(30, 27, 24, 0.15);
  animation: rol-entra 0.35s ease-out; scroll-margin-top: 84px; /* bajo la cabecera fija */ }
@keyframes rol-entra { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .rol-evento { animation: none; }
  .rol-relleno { transition: none; }
}
.rol-evento-titulo { margin: 0 0 4px; font-size: 0.85rem; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--tomate); }
.rol-evento-texto { font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.rol-opciones { display: grid; gap: 8px; }
.rol-opcion { min-height: 56px; padding: 10px 14px; border-radius: 14px; text-align: left;
  border: 2px solid var(--tomate); background: var(--tomate-claro); color: var(--tinta); font-weight: 700;
  touch-action: manipulation; }
.rol-opcion:active { background: var(--tomate); color: #fff; }
.rol-caduca { margin: 10px 0 0; color: var(--gris); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.rol-respondido { margin: 4px 0 0; font-weight: 700; color: var(--verde); }
.rol-decision { margin-bottom: 10px; }
.rol-decision-boton { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 64px; padding: 12px 14px; border-radius: 14px; text-align: left;
  border: 2px solid var(--borde); background: var(--papel); color: var(--tinta); font-weight: 700;
  touch-action: manipulation; }
.rol-decision-boton[aria-expanded="true"] { border-color: var(--oscuro); border-radius: 14px 14px 0 0; }
.rol-decision-coste { flex: none; white-space: nowrap; font-weight: 800; color: var(--tomate-oscuro); }
.rol-decision.tomada .rol-decision-boton { border-color: var(--verde); background: #DCF2DF; opacity: 1; cursor: default; }
.rol-decision.apagada .rol-decision-boton { cursor: default; }
.rol-confirmar { padding: 10px 12px 12px; border-radius: 0 0 14px 14px; background: var(--oscuro); color: var(--fondo); }
.rol-confirmar p { margin: 0 0 8px; font-weight: 700; }
.rol-confirmar-botones { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; }
.rol-tomada { margin: 4px 0 0 4px; font-size: 0.95rem; font-weight: 700; color: var(--verde); }
.rol-lista-avisos { list-style: none; margin: 0; padding: 0; }
.rol-lista-avisos li { padding: 8px 0; border-bottom: 1px solid var(--borde); }
.rol-aviso-hora { font-weight: 800; color: var(--tomate); font-variant-numeric: tabular-nums; }
.rol-comparar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.rol-columna { padding: 12px; border-radius: 16px; border: 2px solid var(--borde); background: var(--papel); }
.rol-columna.vosotros { border-color: var(--tomate); background: var(--tomate); color: #fff; }
.rol-columna-titulo { margin: 0 0 6px; font-weight: 700; font-size: 0.95rem; line-height: 1.2; }
/* «13,0 min» en una línea también a 360-390 px (dos columnas de unos 146 px). */
.rol-grande { margin: 0; font-size: clamp(1.4rem, 7vw, 1.9rem); font-weight: 800; line-height: 1.1;
  white-space: nowrap; }
.rol-pequeno { margin: 0 0 8px; font-size: 0.8rem; opacity: 0.85; }
.rol-detalle dt { color: var(--gris); font-size: 0.9rem; }
.rol-detalle dd { margin: 0 0 8px; font-weight: 700; }
.rol-final { margin-top: 18px; font-size: 1.5rem; font-weight: 800; color: var(--tomate); }
/* La espera minuto a minuto: la de la mesa (tomate) y la de la cocina sin decisiones (gris, a
   trazos), con una marca numerada en cada decisión. */
.rol-linea { margin-top: 14px; }
.rol-linea:empty { display: none; }
.rol-linea h3 { margin: 0 0 4px; font-size: 1rem; }
.rol-linea-svg { display: block; width: 100%; height: auto; overflow: visible; }
.rol-linea-rejilla { stroke: var(--borde); stroke-width: 1; }
.rol-linea-eje { font-size: 12px; fill: var(--gris); font-family: var(--fuente); font-variant-numeric: tabular-nums; }
.rol-linea-base { fill: none; stroke: #8A8178; stroke-width: 2.5; stroke-dasharray: 6 5; stroke-linejoin: round; }
.rol-linea-vosotros { fill: none; stroke: var(--tomate); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.rol-linea-ahora { fill: var(--tomate); stroke: #fff; stroke-width: 2; }
.rol-linea-marca { stroke: var(--oscuro); stroke-width: 1.5; stroke-dasharray: 2 3; }
.rol-linea-marca-punto { fill: var(--oscuro); }
.rol-linea-marca-num { font-size: 12px; font-weight: 800; fill: #fff; font-family: var(--fuente); }
.rol-linea-leyenda { margin: 6px 0 0; font-size: 0.9rem; color: var(--gris); }
.rol-linea-clave { display: inline-block; width: 22px; height: 0; margin: 0 6px 4px 0; vertical-align: middle;
  border-top: 4px solid var(--tomate); }
.rol-linea-clave.base { margin-left: 8px; border-top: 3px dashed #8A8178; }
.rol-linea-marcas { margin: 6px 0 0; padding-left: 1.4em; font-size: 0.95rem; }
.rol-linea-marcas li { padding: 2px 0; }

/* --- «Viernes, 21:15» en el panel (prefijo par-) ------------------------------ */
.par-estado { font-size: 1.15rem; }
.par-botones, .par-opciones { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.par-botones form, .par-opciones form, .par-mezclas form { margin: 0; }
.par-botones .boton-accion { width: auto; min-width: 120px; }
.boton-empezar, .boton-seguir { background: var(--tomate); color: #fff; border-color: var(--tomate); }
.boton-terminar { background: var(--oscuro); color: var(--fondo); border-color: var(--oscuro); }
.par-opciones .boton-secundario { min-width: 72px; }
.boton-secundario.elegido { background: var(--oscuro); color: var(--fondo); border-color: var(--oscuro); }
.par-mezclas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 8px 0 12px; }
.par-mezclas .boton-cue { width: 100%; min-height: 52px; font-size: 1rem; }
.par-mesas { max-width: 640px; table-layout: fixed; font-size: 0.9rem; }
.par-mesas th:nth-child(1) { width: 3.4em; }
.par-mesas th:nth-child(2) { width: 5.6em; }
.par-mesas th:nth-child(3) { width: 5.2em; }
.par-mesas td, .par-mesas th { vertical-align: top; padding-left: 4px; padding-right: 4px; }
.par-mesas td { overflow-wrap: anywhere; }
.par-mesas tr.sin-gente { color: var(--gris); }
.par-mesas [data-campo="decisiones"] { font-size: 0.9rem; }
.par-mesas .semaforo-ambar { color: #8A5A00; font-weight: 800; }
.par-mesas .semaforo-rojo { color: #A11A1A; font-weight: 800; }

@media (min-width: 700px) {
  .rejilla-mesas { grid-template-columns: repeat(3, 1fr); }
  .act-botones { grid-template-columns: repeat(4, 1fr); }
  .par-mezclas { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* --- Pantalla del proyector (1920×1080) ----------------------------------- */
body.pantalla {
  background: var(--oscuro); color: var(--fondo);
  font-size: 32px; line-height: 1.25; height: 100vh; overflow: hidden;
}
/* Escenario de 1920×1080: pantalla.js lo escala a la ventana (y encoge el
   contenido si no cabe en alto). Dentro, todo va en px del diseño. */
.p-escenario { position: absolute; top: 0; left: 0; width: 1920px; height: 1080px;
  overflow: hidden; transform-origin: 0 0; }
.p-esquina { position: absolute; top: 24px; right: 36px; text-align: right; z-index: 3; }
.p-dominio { font-size: 40px; font-weight: 800; color: var(--fondo); }
.p-conectados { font-size: 30px; color: var(--dorado); font-weight: 700; }
.p-contenido { padding: 40px 64px 40px; width: 1920px; transform-origin: 0 0; }
.p-ayuda { position: absolute; bottom: 14px; left: 64px; margin: 0; font-size: 28px; color: #9A9087; }
.p-espera { font-size: 48px; font-weight: 700; margin-top: 300px; text-align: center; }
.p-bienvenida { text-align: center; margin-top: 190px; }
.p-bienvenida .p-grande { font-size: 120px; font-weight: 800; color: var(--fondo); margin: 0.2em 0; }
.p-bienvenida p { font-size: 44px; color: var(--dorado); }
.p-cabecera-act { display: flex; align-items: baseline; gap: 24px; margin: 0 var(--margen-esquina, 520px) 16px 0; }
.p-bloque { font-size: 32px; font-weight: 800; color: var(--tomate); }
.p-titulo { font-size: 56px; font-weight: 800; margin: 0; }
.p-ronda { font-size: 30px; font-weight: 700; color: var(--oscuro); background: var(--dorado);
  padding: 4px 16px; border-radius: 999px; white-space: nowrap; flex: none; }
.p-pregunta { font-size: 40px; font-weight: 600; margin: 8px 0 28px; max-width: 1500px; }
.p-preguntas { margin: 8px 0 28px; padding-left: 1.2em; font-size: 34px; }
.p-conteo { margin-top: 40px; font-size: 44px; }
.p-conteo .p-cifra { font-size: 120px; font-weight: 800; color: var(--tomate); line-height: 1; }
.p-chips { display: flex; gap: 20px; margin-top: 36px; }
.p-chip { font-size: 40px; font-weight: 800; padding: 14px 28px; border-radius: 18px;
  border: 3px solid #5A524A; color: #B9AEA3; }
.p-chip.enviada { background: var(--tomate); border-color: var(--tomate); color: #fff; }

.p-columnas { display: grid; grid-template-columns: 1fr; gap: 64px; }
.p-columnas.cols-1 { grid-template-columns: 1fr; }
.p-columnas.cols-2 { grid-template-columns: 1.4fr 1fr; }
.p-columnas.cols-3 { grid-template-columns: repeat(3, 1fr); }
.p-bloque-pregunta h2 { font-size: 36px; font-weight: 700; margin-bottom: 18px; }
.p-barra-fila { margin-bottom: 20px; }
.p-barra-etiqueta { font-size: 32px; font-weight: 600; margin-bottom: 6px; }
.p-barra-linea { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: center; }
.p-barra-linea + .p-barra-linea { margin-top: 8px; }
.p-pista { height: 64px; background: #3A342E; border-radius: 10px; overflow: hidden; }
.p-relleno { height: 100%; width: 0; background: var(--tomate); border-radius: 10px; }
.p-relleno.secundario { background: var(--dorado); }
.p-cifras { font-size: 64px; font-weight: 800; text-align: right; white-space: nowrap; line-height: 1; }
.p-cifras .p-n { font-size: 28px; font-weight: 600; color: #B9AEA3; margin-left: 10px; }
.p-detalle { font-size: 28px; color: #D8CFC4; margin: 4px 0 16px; }
.p-leyenda { display: flex; gap: 36px; font-size: 30px; margin-bottom: 20px; }
.p-leyenda span::before { content: ""; display: inline-block; width: 28px; height: 28px; border-radius: 6px;
  margin-right: 10px; vertical-align: -4px; background: var(--tomate); }
.p-leyenda span.secundario::before { background: var(--dorado); }
/* Dos rondas (o antes y después) lado a lado: etiqueta | ronda 1 | ronda 2 */
.p-fila-doble, .p-leyenda.doble { display: grid; grid-template-columns: 600px minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 40px; align-items: center; }
.p-fila-doble { margin-bottom: 22px; }
.p-fila-doble .p-barra-etiqueta { margin: 0; }
.p-fila-doble .p-barra-linea { grid-template-columns: minmax(0, 1fr) 270px; gap: 16px; }
.p-leyenda.doble .p-leyenda-hueco::before { display: none; }
.p-cambios { font-size: 64px; font-weight: 800; color: var(--dorado); margin-top: 24px; }

.p-pizza h2 { font-size: 38px; margin-bottom: 6px; min-height: 2.5em; }
.p-pizza .p-sub { font-size: 28px; color: #B9AEA3; min-height: 3.75em; }
.p-mediana-rotulo { font-size: 28px; color: var(--dorado); font-weight: 700; margin-top: 12px; }
.p-mediana { font-size: 120px; font-weight: 800; color: var(--fondo); line-height: 1.05; }
.p-tramo { display: grid; grid-template-columns: 170px 1fr 70px; gap: 12px; align-items: center; font-size: 28px; margin-bottom: 8px; }
.p-tramo .p-pista { height: 30px; }

.p-tabla { width: 100%; border-collapse: collapse; font-size: 30px; }
.p-tabla th { text-align: left; font-size: 28px; color: var(--dorado); padding: 8px 14px; border-bottom: 3px solid #4A433C; }
.p-tabla td { padding: 12px 14px; border-bottom: 1px solid #3A342E; white-space: nowrap; }
.p-tabla td.num { text-align: right; font-weight: 800; font-size: 48px; }
.p-tabla td.ref { text-align: right; color: var(--dorado); font-weight: 700; }
.p-tabla tr.extra td { color: var(--dorado); font-style: italic; }
.p-tabla .p-fila-nombre { font-weight: 800; }
.p-tabla .p-fila-texto { display: block; font-size: 28px; color: #B9AEA3; }

.p-pestanas { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 24px; }
.p-pestana { font-size: 30px; font-weight: 800; padding: 8px 22px; border-radius: 14px; border: 3px solid #4A433C; color: #B9AEA3; }
.p-pestana.actual { border-color: var(--tomate); background: var(--tomate); color: #fff; }
.p-pestana.vacia { opacity: 0.6; }
/* Tarjeta del comité: etiqueta estrecha a la izquierda; con los ocho campos al
   máximo cabe en 1080 px (y si no, ajustar() la encoge). */
.p-ficha { background: #2A2621; border-radius: 22px; padding: 14px 36px; }
.p-campo { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 28px; align-items: baseline;
  padding: 8px 0; border-bottom: 1px solid #3A342E; line-height: 1.2; }
.p-campo:last-child { border-bottom: 0; }
.p-campo-etiqueta { font-size: 28px; color: var(--dorado); }
.p-campo-valor { font-size: 32px; font-weight: 700; overflow-wrap: anywhere; }
.p-real { margin-top: 28px; padding: 18px 28px; border-left: 10px solid var(--dorado); background: #2A2621; font-size: 40px; }
.p-real strong { color: var(--dorado); margin-right: 16px; }
.p-numero-grande { font-size: 120px; font-weight: 800; line-height: 1; }
.p-lista-hornos { list-style: none; padding: 0; margin: 20px 0 0; columns: 2; column-gap: 64px; font-size: 36px; }
.p-lista-hornos li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid #3A342E; display: flex; justify-content: space-between; gap: 20px; }
.p-lista-hornos li.top { font-size: 48px; font-weight: 800; color: var(--tomate); }
.p-lista-hornos .p-n { color: var(--dorado); font-weight: 800; }

.admin-cabecera .fila-botones { margin: 0; flex-wrap: nowrap; }
.admin-cabecera .marca { white-space: nowrap; }
