:root{
  --bg: #000;
  --fg: #fff;
  --accent: rgba(255,255,255,.15);
  --panel: rgba(9,12,28,.65);
  --blue: #0b3aa4;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: var(--bg); color: var(--fg); font-family: system-ui, Arial, sans-serif; }
.stage { position: relative; width: 100%; height: 100%; overflow: hidden; background: #000; }

/* Video fullscreen */
.video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }

/* Gradiente inferior para subtítulos */
.gradient { position: absolute; left:0; right:0; bottom:0; height: 32vh;
  background: linear-gradient(0deg, rgba(0,0,0,.72), rgba(0,0,0,0)); pointer-events: none; }

/* Subtítulos */
.subtitle {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 4vh; width: min(90vw, 1100px);
  text-align: center; font-weight: 700; line-height: 1.4;
  background: rgba(8, 35, 94, .75); border: 1px solid rgba(255,255,255,.15);
  padding: 12px 16px; border-radius: 14px; backdrop-filter: blur(3px);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* QR */
.qr-wrap { position: absolute; top: 16px; right: 16px; padding: 10px 10px 6px;
  background: rgba(0,0,0,.55); border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.qr { width: 160px; height: 160px; object-fit: contain; user-select: none; }
.hidden { display: none; }

/* Dock inferior */
.dock {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 16px; display: flex; gap: 10px;
  background: var(--panel); border: 1px solid var(--accent);
  padding: 8px; border-radius: 14px; backdrop-filter: blur(6px);
}
#msgInput {
  width: min(70vw, 640px); padding: 10px 12px; border-radius: 10px; border: 1px solid var(--accent);
  color: #111; font-size: 16px;
}
#sendBtn {
  padding: 10px 16px; border-radius: 10px; border: 1px solid var(--accent);
  background: rgba(255,255,255,.12); color: #fff; cursor: pointer;
}
#sendBtn:disabled { opacity:.6; cursor: not-allowed; }

/* Estado */
.status { position: absolute; top: 12px; left: 12px; font-size: 12px; color: rgba(255,255,255,.8); }

.mic{
  position: absolute; right: 16px; bottom: 16px;
  width: 64px; height: 64px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: #fff; font-size: 28px; cursor: pointer;
  backdrop-filter: blur(4px);
  display:flex; align-items:center; justify-content:center;
  transition: transform .1s ease, background .2s ease;
}
.mic[aria-pressed="true"]{
  background: rgba(255,0,0,.35);
  transform: scale(1.06);
  box-shadow: 0 0 0 3px rgba(255,0,0,.25);
}

.subtitle {
  background: rgba(0, 100, 180, 0.6);
  color: white;
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  width: 80%;
  margin: 1rem auto;
  font-family: "Segoe UI", sans-serif;
  line-height: 1.4;
  min-height: 4rem;
}

.user-line {
  font-weight: 500;
  color: #aee6ff;
  margin-bottom: 0.5rem;
}

.naila-line {
  font-weight: 600;
  color: #ffffff;
}

.qr-taxi {
  position: fixed;
  top: 5%;
  right: 5%;
  width: 140px;         /* ajusta el tamaño */
  height: auto;
  z-index: 9999;
  background: rgba(0,0,0,0.4);
  padding: 6px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

.qr-taxi.hidden {
  display: none;
}

.qr-taxi img {
  width: 100%;
  height: auto;
  display: block;
}

