:root {
  --bg: #0f1419; --card: #1a212b; --text: #f2f5f8; --muted: #9aa7b5;
  --accent: #3ddc97; --danger: #ff5c6c; --line: #2a3441;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
main { max-width: 480px; margin: 0 auto; padding: 24px 16px 40px; }
h1 { font-size: 1.5rem; margin: 8px 0 4px; }
p.sub { color: var(--muted); margin: 0 0 20px; }
.hidden { display: none !important; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.depto { padding: 18px 0; font-size: 1.15rem; font-weight: 600; border-radius: 14px;
  background: var(--card); color: var(--text); border: 2px solid var(--line); cursor: pointer; }
.depto.sel { border-color: var(--accent); background: #17302a; }
input, select { width: 100%; padding: 16px; font-size: 1.05rem; border-radius: 14px;
  border: 2px solid var(--line); background: var(--card); color: var(--text); margin-bottom: 14px; }
button.big { width: 100%; padding: 18px; font-size: 1.15rem; font-weight: 700; border: 0;
  border-radius: 14px; cursor: pointer; background: var(--accent); color: #06231a; }
button.big:disabled { opacity: .45; }
button.big.red { background: var(--danger); color: #fff; }
button.big.ghost { background: var(--card); color: var(--text); border: 2px solid var(--line); }
.estado { text-align: center; padding: 40px 8px; }
.estado .icono { font-size: 3.5rem; margin-bottom: 12px; }
.error { color: var(--danger); min-height: 1.4em; margin: 0 0 10px; }
.pulso { animation: pulso 1.2s infinite; }
@keyframes pulso { 0%,100% { transform: scale(1); } 50% { transform: scale(1.15); } }
video { width: 100%; border-radius: 14px; background: #000; margin-bottom: 14px; max-height: 50vh; }
.row { display: flex; gap: 10px; } .row > * { flex: 1; }
.ring { position: fixed; inset: 0; background: var(--bg); z-index: 10; display: flex;
  flex-direction: column; justify-content: center; padding: 24px; text-align: center; gap: 14px; }
.ring h2 { font-size: 2rem; margin: 0; }
.nota { color: var(--muted); font-size: .9rem; text-align: center; margin-top: 20px; }
.onda { display: flex; justify-content: center; align-items: center; gap: 8px; height: 90px; margin: 10px 0 28px; }
.onda i { width: 10px; height: 100%; border-radius: 5px; background: var(--accent);
  transform: scaleY(.15); transition: transform .08s linear; }
.volver { display: inline-block; color: var(--muted); text-decoration: none; font-size: .95rem; margin-bottom: 6px; }
