/* v2026-11-21 */
:root {
  --fondo: #111317;
  --panel: #1b1e24;
  --borde: #2b2f37;
  --texto: #eceef2;
  --suave: #9aa1ad;
  --rojo: #e5484d;
  --verde: #3dbb6c;
  --ambar: #f0a83a;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--fondo); color: var(--texto); font-family: system-ui, sans-serif; }
[hidden] { display: none !important; }
h1 { font-size: 1.4rem; margin: 0; }
h2 { font-size: 1.05rem; margin: 1.2rem 0 .6rem; }
button {
  font: inherit; padding: .7rem 1.3rem; border-radius: .5rem; border: 1px solid var(--borde);
  background: #2a2f38; color: var(--texto); cursor: pointer;
}
button:disabled { opacity: .45; cursor: default; }
input { font: inherit; padding: .6rem; border-radius: .4rem; border: 1px solid var(--borde); background: var(--panel); color: var(--texto); width: 100%; margin-top: .4rem; }
.error { color: var(--rojo); min-height: 1.2em; }
.nota { color: var(--suave); }

/* Entrada */
.pantalla-entrada { max-width: 46rem; margin: 3rem auto; padding: 0 1rem; display: grid; gap: 1.2rem; }
.previa-caja { background: #000; border-radius: .8rem; overflow: hidden; position: relative; }
#previa { width: 100%; aspect-ratio: 16 / 9; display: block; object-fit: cover; transform: scaleX(-1); }
.medidor { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; height: .5rem; background: rgba(255,255,255,.15); border-radius: 1rem; overflow: hidden; }
#nivel { height: 100%; width: 0; background: var(--verde); transition: width .08s linear; }
#form-entrar { display: grid; gap: .8rem; }
.aviso { margin: 0; color: var(--suave); }
.aviso-fuerte { color: var(--ambar); }
#entrar { justify-self: start; background: var(--verde); border-color: var(--verde); color: #08130c; font-weight: 600; }

/* Sala */
.pantalla-sala { padding: 1rem 1.5rem; }
.cabecera { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.insignia { padding: .35rem .8rem; border-radius: 1rem; background: var(--panel); border: 1px solid var(--borde); font-size: .95rem; }
.insignia.grabando { background: rgba(229,72,77,.15); border-color: var(--rojo); }
.insignia.grabando::before { content: ''; display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: var(--rojo); margin-right: .45rem; }
.insignia.pendiente { border-color: var(--ambar); color: var(--ambar); }
.cuerpo { display: flex; gap: 1.2rem; align-items: flex-start; }
.mosaico { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr)); gap: .8rem; }
.baldosa { position: relative; background: #000; border-radius: .8rem; overflow: hidden; }
.baldosa video { width: 100%; aspect-ratio: 16 / 9; display: block; object-fit: cover; }
.baldosa.yo video { transform: scaleX(-1); }
.baldosa .nombre { position: absolute; left: .7rem; bottom: .6rem; background: rgba(0,0,0,.6); padding: .2rem .6rem; border-radius: .4rem; }
.control { width: 19rem; background: var(--panel); border: 1px solid var(--borde); border-radius: .8rem; padding: 1rem; }
.botones { display: flex; gap: .6rem; }
.boton-grabar { background: var(--rojo); border-color: var(--rojo); color: #fff; font-weight: 600; }
.participantes { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.participantes li { display: grid; gap: .15rem; padding: .6rem; border-radius: .5rem; background: #23272f; }
.participantes .estado { color: var(--suave); font-size: .9rem; }
.participantes .rec { color: var(--rojo); }

/* Velos */
.velo { position: fixed; inset: 0; background: rgba(10,11,14,.88); display: grid; place-items: center; z-index: 10; }
.velo-caja { max-width: 34rem; text-align: center; padding: 2rem; background: var(--panel); border: 1px solid var(--borde); border-radius: 1rem; }
.progreso { font-size: 2rem; font-weight: 700; margin: .6rem 0 0; }
