/* Voisiz — estudio de radio de noche: fondo oscuro, neón suave y el cartel ON AIR de verdad.
   Botones grandes y poco texto (pensado también para los mayores). Solo tema oscuro, por decisión de José. */

@font-face {
  font-family: "Bebas Neue";
  src: url("../fuentes/bebas-neue-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --fondo: #0c0b0f;
  --superficie: #17151c;
  --superficie-2: #1f1c26;
  --tinta: #f3f0f6;
  --suave: #9a95a8;
  --linea: rgba(255, 255, 255, 0.09);
  --marca: #ff3b4e;           /* rojo neón: el del cartel ON AIR */
  --marca-tinta: #ffffff;
  --marca-suave: rgba(255, 59, 78, 0.14);
  --onda-hecha: #ff3b4e;
  --onda-falta: #34303d;
  --peligro: #ff8a8a;
  --sombra: 0 12px 34px rgba(0, 0, 0, 0.55);
  /* neón según lo escuchada (igual que NEON en app.js): de poco a más; n6, la más escuchada */
  --n0: #8f7dff; --n1: #4f8dff; --n2: #2ad4f0; --n3: #36e2a0; --n4: #ffc94a; --n5: #ff74cc; --n6: #ff3b4e;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--fondo); overflow-x: hidden; overflow-x: clip; } /* nada puede ensanchar la página */
body {
  margin: 0; min-height: 100vh; color: var(--tinta);
  background: radial-gradient(120% 70% at 50% -10%, #1a1420 0%, var(--fondo) 55%) fixed, var(--fondo);
  font: 17px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
/* efecto cine: viñeta y grano muy suaves (el grano se mueve solo cuando hay directo) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 40; pointer-events: none;
  background: radial-gradient(130% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 41; pointer-events: none; opacity: 0.06; background-size: 160px 160px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
}
body.en-directo::after { animation: grano 0.9s steps(5) infinite; }
@keyframes grano { 0% { background-position: 0 0; } 20% { background-position: -37px 21px; } 40% { background-position: 29px -43px; } 60% { background-position: -18px -11px; } 80% { background-position: 41px 33px; } 100% { background-position: 0 0; } }

button { font: inherit; cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
button:disabled { cursor: default; opacity: 0.4; }
:focus-visible { outline: 2px solid color-mix(in srgb, var(--marca) 70%, white); outline-offset: 3px; }
a { color: inherit; }
.ico { width: 24px; height: 24px; display: block; flex: none; }

/* ───────── estructura ───────── */
.vz {
  position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; max-width: 560px; margin: 0 auto;
  padding: env(safe-area-inset-top, 0px) 16px 0; display: flex; flex-direction: column;
}
.cab { display: flex; align-items: center; justify-content: space-between; padding: 12px 0 2px; }
.marca {
  display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--tinta);
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 800; font-size: 1.5rem; letter-spacing: -0.035em;
}
.marca-ico {
  width: 34px; height: 34px; border-radius: 10px; background: var(--marca); color: #fff; display: grid; place-items: center;
  box-shadow: 0 0 14px rgba(255, 59, 78, 0.45);
}
.marca-ico .ico { width: 24px; height: 24px; }
.b-perfil {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--linea); background: var(--superficie);
  color: var(--tinta); display: grid; place-items: center; padding: 0;
}
.b-perfil .av-mini { width: 36px; height: 36px; }
/* selector de idioma ES/EN/FR (20-nov-2026): una pastilla como el botón del perfil */
.b-idioma {
  height: 44px; border-radius: 22px; border: 1px solid var(--linea); background-color: var(--superficie); color: var(--tinta);
  font: 700 0.85rem/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: 0.04em;
  padding: 0 26px 0 13px; cursor: pointer; -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--suave) 50%), linear-gradient(135deg, var(--suave) 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
.b-idioma:focus-visible { outline: 2px solid var(--marca); outline-offset: 2px; }
.b-idioma option { background: var(--superficie); color: var(--tinta); }
@media (max-width: 360px) { /* móviles estrechos (320 px): el selector se encoge para que quepa el botón del perfil */
  .b-idioma { padding: 0 18px 0 9px; background-position: calc(100% - 11px) 50%, calc(100% - 6px) 50%; }
  .cab-der { gap: 4px; }
}

.escenario { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 6px 0 calc(104px + env(safe-area-inset-bottom, 0px)); }

/* ───────── el cartel ON AIR ───────── */
.cartel { position: relative; display: flex; justify-content: center; margin: 2px 0 clamp(8px, 1.6dvh, 14px); }
/* el cartel tiene tres estados (clases en <body>, ver pintarModo en app.js):
   apagado (sin clase): parado, al recargar antes de sonar o si el navegador bloqueó el arranque → texto gris, sin halo;
   .en-directo: sonando → texto rojo neón con su halo rojo;
   .en-pausa: en pausa después de haber sonado → texto naranja neón (#ffad33) con su halo naranja. */
/* la luz que se derrama sobre el estudio (el halo de fuera del cartel): roja cuando suena, naranja en pausa */
.cartel::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: min(100vw, 520px); height: 260px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 30, 55, 0.24), rgba(255, 30, 55, 0.07) 55%, transparent);
  opacity: 0; transition: opacity 0.8s ease; pointer-events: none;
}
body.en-directo .cartel::before { opacity: 1; animation: respira 5.5s ease-in-out infinite; }
body.en-pausa .cartel::before {
  opacity: 1;
  background: radial-gradient(closest-side, rgba(255, 160, 40, 0.22), rgba(255, 160, 40, 0.07) 55%, transparent);
}
@keyframes respira { 50% { opacity: 0.75; } }
.onair { position: relative; padding: 0; border: 0; background: none; border-radius: 14px; }
.onair-marco {
  position: relative; display: block; padding: 10px 26px 7px; border-radius: 12px;
  background: linear-gradient(180deg, #19181b 0%, #0f0e10 100%); border: 1px solid #2a282d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -2px 6px rgba(0, 0, 0, 0.6), 0 10px 22px rgba(0, 0, 0, 0.6);
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
/* los cuatro tornillos del marco */
.onair-marco::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(circle at 7px 7px, #4a3f44 1.4px, #191316 1.9px, transparent 2.6px),
    radial-gradient(circle at calc(100% - 7px) 7px, #4a3f44 1.4px, #191316 1.9px, transparent 2.6px),
    radial-gradient(circle at 7px calc(100% - 7px), #4a3f44 1.4px, #191316 1.9px, transparent 2.6px),
    radial-gradient(circle at calc(100% - 7px) calc(100% - 7px), #4a3f44 1.4px, #191316 1.9px, transparent 2.6px);
}
.onair-txt {
  position: relative; display: block; padding-left: 0.17em; color: #55535b;
  font-family: "Bebas Neue", "Oswald", "Arial Narrow", Impact, sans-serif; font-size: clamp(34px, 5.2dvh, 44px);
  line-height: 1; letter-spacing: 0.17em; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.05); transition: color 0.3s ease;
}
body.en-directo .onair-marco {
  background: radial-gradient(130% 160% at 50% 50%, #3d0b12 0%, #1d0709 62%, #150608 100%); border-color: #5b1a22;
  box-shadow: inset 0 1px 0 rgba(255, 200, 200, 0.08), inset 0 0 26px rgba(255, 40, 70, 0.28), 0 10px 22px rgba(0, 0, 0, 0.6),
    0 0 28px rgba(255, 35, 60, 0.38), 0 0 80px rgba(255, 35, 60, 0.2);
}
body.en-directo .onair-txt {
  color: #ff3b4e;
  text-shadow: 0 0 2px rgba(255, 150, 160, 0.9), 0 0 6px #ff2e45, 0 0 13px #ff1733, 0 0 26px #ff0026, 0 0 46px rgba(255, 0, 38, 0.6);
  animation: zumbido 7s linear infinite;
}
body.en-pausa .onair-marco {
  background: radial-gradient(130% 160% at 50% 50%, #3a2104 0%, #1d1003 62%, #150b02 100%); border-color: #8a5210;
  box-shadow: inset 0 1px 0 rgba(255, 220, 160, 0.08), inset 0 0 26px rgba(255, 160, 40, 0.28), 0 10px 22px rgba(0, 0, 0, 0.6),
    0 0 28px rgba(255, 160, 40, 0.38), 0 0 80px rgba(255, 160, 40, 0.2);
}
body.en-pausa .onair-txt {
  color: #ffad33;
  text-shadow: 0 0 2px rgba(255, 220, 160, 0.9), 0 0 6px #ffad33, 0 0 13px #ff9a1a, 0 0 26px #ff8a00, 0 0 46px rgba(255, 138, 0, 0.55);
}
/* al encenderse, el tubo titila como uno de verdad; luego, un zumbido muy de vez en cuando */
.onair.enciende .onair-txt, .onair.enciende .onair-marco { animation: arranque 1.35s linear both; }
@keyframes arranque { 0% { opacity: 0.2; } 6% { opacity: 1; } 9% { opacity: 0.25; } 14% { opacity: 1; } 18% { opacity: 0.45; } 30% { opacity: 1; } 33% { opacity: 0.75; } 37%, 100% { opacity: 1; } }
@keyframes zumbido { 0%, 41%, 43.5%, 46%, 100% { opacity: 1; } 42% { opacity: 0.78; } 45% { opacity: 0.9; } }

/* ───────── quién escucha ahora ───────── */
.oyentes { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 clamp(8px, 1.8dvh, 16px); min-width: 0; }
.oy-n { flex: none; display: inline-flex; align-items: center; gap: 7px; color: var(--suave); font-size: 0.82rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.oy-n i { width: 7px; height: 7px; border-radius: 50%; background: var(--n3); box-shadow: 0 0 8px var(--n3); animation: piloto 2.2s ease-in-out infinite; }
@keyframes piloto { 50% { opacity: 0.35; } }
.oy-ventana { flex: 0 1 auto; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.oy-caras { display: flex; gap: 6px; width: max-content; padding: 2px 8px; }
.oy-caras.corre { animation: desliza var(--dur, 20s) linear infinite; }
@keyframes desliza { to { transform: translateX(-50%); } }
.oy-caras .av-mini { width: 28px; height: 28px; font-size: 0.78rem; }
.av-mini.anon { --c: #2a2732; color: var(--suave); font-size: 0.72rem; box-shadow: none; }

/* ───────── portada (radio apagada) ───────── */
.portada { display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(14px, 2.6dvh, 24px); }
/* 📌 la pregunta de la semana: en la portada, una tarjeta que invita a responder con la voz */
.pregunta-pill { display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: min(92vw, 380px); margin: 0; padding: 10px 18px 11px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--n4) 55%, transparent); background: color-mix(in srgb, var(--n4) 9%, var(--superficie)); color: var(--tinta); font: inherit; text-align: center; cursor: pointer; box-shadow: 0 0 16px color-mix(in srgb, var(--n4) 20%, transparent); }
.pregunta-pill .pp-et, .pq-et { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--n4); }
.pregunta-pill .pp-q { font-size: clamp(1rem, 4.2vw, 1.15rem); font-weight: 800; line-height: 1.2; text-wrap: balance; }
.pregunta-pill .pp-cta { display: inline-flex; align-items: center; gap: 6px; color: #ffd98a; font-size: 0.88rem; font-weight: 800; }
.pregunta-pill .pp-cta .ico { width: 16px; height: 16px; }
.pq-et { margin: 0 44px 4px 0; }
#h-pregunta .h-titulo { margin-top: 0; text-wrap: balance; }
#h-pregunta .botones-col { margin: 6px 0 4px; }
.ed-pregunta { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--linea); }
.ed-pregunta .pq-et { margin: 0; }
.ed-pregunta input[type="text"] { width: 100%; padding: 13px 16px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.12); background: #0f0e13; color: var(--tinta); font: inherit; font-size: 1.05rem; }
.mini-txt { cursor: pointer; }
.pq-cita { margin: -4px 0 12px; color: #ff8a96; font-weight: 800; text-shadow: 0 0 10px rgba(255, 59, 78, 0.35); }
.ed-cita-et { margin-top: 4px; color: var(--suave); font-size: 0.88rem; font-weight: 700; }
.ed-cita { display: flex; gap: 8px; }
.ed-cita select { flex: 1; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.12); background: #0f0e13; color: var(--tinta); font: inherit; font-size: 1rem; color-scheme: dark; }
@media (max-height: 700px) { /* iPhone SE y pantallas bajas: la tarjeta en dos líneas */
  .pregunta-pill { padding: 7px 14px 8px; gap: 2px; }
  .pregunta-pill .pp-et { display: none; }
  .pregunta-pill .pp-q::before { content: "📌 "; }
}

/* qué es Voisiz, encima del lema: «La red social de voz · en directo» */
.categoria { margin: 0 0 calc(-1 * clamp(6px, 1.2dvh, 12px)); font-size: clamp(0.7rem, 3vw, 0.82rem); font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #ff9aa5; text-shadow: 0 0 10px rgba(255, 59, 78, 0.5); }
.lema { margin: 0; max-width: 16ch; font-size: clamp(1.35rem, 5.4vw, 1.8rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; color: #e9e5ee; }
.b-escuchar { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0; border: 0; background: none; color: var(--tinta); font-weight: 800; font-size: 1.15rem; }
.b-escuchar-ico {
  width: clamp(112px, 17dvh, 140px); height: clamp(112px, 17dvh, 140px); border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: radial-gradient(circle at 50% 40%, #26222d, #141218 70%); border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.22), 0 0 40px rgba(255, 255, 255, 0.08), inset 0 0 18px rgba(255, 255, 255, 0.08);
  transition: transform 0.15s ease;
}
.b-escuchar-ico .ico { width: 52px; height: 52px; margin-left: 6px; filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.55)); }
.b-escuchar:active .b-escuchar-ico { transform: scale(0.96); }
.b-escuchar-txt { max-width: 20ch; overflow-wrap: anywhere; }
.portada-sub { margin: 0; color: var(--suave); max-width: 30ch; text-wrap: balance; }

/* ───────── sonando ───────── */
.sonando { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.hablante { display: flex; align-items: center; justify-content: center; gap: 16px; min-width: 0; }
.hablante-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.respuesta-a { margin: 0; color: var(--n5); font-weight: 800; font-size: 0.88rem; }
/* el círculo de quien habla: un tubo de neón del color de lo escuchada que es su voz */
.av-grande {
  --neon: var(--n0); position: relative; flex: none; width: clamp(64px, 10.5dvh, 92px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: clamp(28px, 4.6dvh, 40px); line-height: 1;
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--neon) 34%, #0c0b0f), #100e14 72%);
  border: 2px solid var(--neon);
  box-shadow: 0 0 10px color-mix(in srgb, var(--neon) 70%, transparent), 0 0 28px color-mix(in srgb, var(--neon) 30%, transparent),
    inset 0 0 14px color-mix(in srgb, var(--neon) 40%, transparent);
  text-shadow: 0 0 10px var(--neon);
}
.av-grande::before, .av-grande::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--neon); opacity: 0; pointer-events: none;
}
.av-grande.vivo::before { animation: anillo 2.6s ease-out infinite; }
.av-grande.vivo::after { animation: anillo 2.6s ease-out 1.3s infinite; }
@keyframes anillo { from { transform: scale(1); opacity: 0.5; } to { transform: scale(1.32); opacity: 0; } }
.av-letra { position: relative; }
/* el nombre de quien habla abre su perfil; «+ Seguir» a su lado */
.quien-fila { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.b-quien { padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.b-quien:focus-visible { outline: 2px solid var(--n2); outline-offset: 3px; border-radius: 6px; }
.b-seguir-mini { flex: none; height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid color-mix(in srgb, var(--n2) 70%, transparent); background: color-mix(in srgb, var(--n2) 14%, transparent); color: #dff9ff; font: inherit; font-size: 0.85rem; font-weight: 800; box-shadow: 0 0 10px color-mix(in srgb, var(--n2) 28%, transparent); cursor: pointer; }
#av { cursor: pointer; }
.oy-caras .av-mini[data-u] { cursor: pointer; }
.quien { margin: 0; font-size: clamp(1.35rem, 5.6vw, 1.7rem); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.cuando { margin: 0; color: var(--suave); font-size: 0.9rem; }
.voz-tit { margin: 2px 0 0; color: #ffd98a; font-size: 0.92rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.onda-caja { width: 100%; margin-top: clamp(4px, 1dvh, 10px); }
.onda { display: block; width: 100%; height: clamp(44px, 7.5dvh, 64px); cursor: pointer; touch-action: none; }
.tiempos { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 5px; color: var(--suave); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.tiempos-mandos { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; justify-content: center; }
.b-salto, .b-vel {
  height: 26px; padding: 0 9px; border-radius: 13px; border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05); color: var(--tinta); font-size: 0.74rem; font-weight: 800;
  font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}
.b-salto:hover, .b-vel:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.b-salto:active, .b-vel:active { transform: scale(0.94); }
.b-vel.activo, .b-trans.activo { border-color: var(--n2); color: #dff9ff; background: color-mix(in srgb, var(--n2) 18%, transparent); box-shadow: 0 0 8px color-mix(in srgb, var(--n2) 28%, transparent); }
.b-reanudar {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin: 6px auto 0;
  height: 30px; padding: 0 14px; border-radius: 15px; border: 1px solid color-mix(in srgb, var(--n3) 60%, transparent);
  background: color-mix(in srgb, var(--n3) 14%, transparent); color: #d6fff0; font-size: 0.8rem; font-weight: 800;
  font-variant-numeric: tabular-nums; box-shadow: 0 0 10px color-mix(in srgb, var(--n3) 22%, transparent);
}
.voz-txt {
  margin-top: 8px; max-height: 110px; overflow-y: auto; padding: 10px 12px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(15, 14, 19, 0.85); color: var(--tinta);
  font-size: 0.86rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere;
}
.g-notas { display: flex; flex-direction: column; gap: 8px; }
.g-notas input[type="text"], .g-notas textarea {
  width: 100%; padding: 11px 14px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0f0e13; color: var(--tinta); font: inherit; font-size: 0.95rem; resize: vertical;
}
.mandos { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: clamp(0px, 0.6dvh, 6px); }
.b-redondo {
  width: clamp(48px, 6.8dvh, 56px); height: clamp(48px, 6.8dvh, 56px); border-radius: 50%; padding: 0; display: grid; place-items: center;
  border: 1px solid var(--linea); background: linear-gradient(180deg, #1d1a23, #141218); color: var(--tinta);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.b-redondo .ico { width: 24px; height: 24px; }
.b-play {
  width: clamp(66px, 9.6dvh, 82px); height: clamp(66px, 9.6dvh, 82px); border: 2px solid rgba(255, 255, 255, 0.9); color: #fff;
  background: radial-gradient(circle at 50% 40%, #27232e, #141218 70%);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.2), 0 0 36px rgba(255, 255, 255, 0.07), inset 0 0 14px rgba(255, 255, 255, 0.07);
}
.b-play .ico { width: 34px; height: 34px; filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5)); }
.acciones { display: flex; justify-content: center; gap: 10px; margin-top: clamp(4px, 1.2dvh, 12px); }
.b-accion {
  min-width: 60px; height: clamp(42px, 5.6dvh, 48px); padding: 0 14px; border-radius: 24px; display: flex; align-items: center;
  justify-content: center; gap: 6px; border: 1px solid var(--linea); background: var(--superficie); color: var(--tinta);
  font-weight: 800; font-variant-numeric: tabular-nums;
}
.b-accion span:empty { display: none; }
.b-rv[aria-pressed="true"] { color: var(--n3); border-color: color-mix(in srgb, var(--n3) 60%, transparent); box-shadow: 0 0 12px color-mix(in srgb, var(--n3) 35%, transparent); }

/* perfil público: quién es, su frecuencia, cifras, seguir, escuchar y compartir, sus voces y sus revoces */
.pp-cab { display: flex; align-items: center; gap: 14px; margin: 0 44px 8px 0; }
.pp-cab .av-medio { width: 64px; height: 64px; font-size: 1.7rem; flex: none; }
.pp-txt { min-width: 0; }
.pp-txt .h-titulo { margin: 0; overflow-wrap: anywhere; }
.pp-txt .p-fq { margin: 2px 0 0; }
.pp-cifras { margin: 6px 0 14px; color: var(--suave); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.pp-botones { display: flex; gap: 8px; align-items: center; }
.pp-botones .b-seguir { flex: 1; height: 48px; font-size: 1.02rem; }
.b-seguir.siguiendo { background: transparent; border-color: rgba(255, 255, 255, 0.22); box-shadow: none; }
.b-solo-ico { width: 48px; padding: 0; flex: none; }
.b-mg[aria-pressed="true"] {
  color: var(--n5); --relleno: currentColor; border-color: color-mix(in srgb, var(--n5) 45%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--n5) 35%, transparent);
}
/* al cambiar de voz: fundido suave, como al mover el dial */
.sonando.entra .hablante { animation: entra 0.4s ease-out both; }
@keyframes entra { from { opacity: 0; transform: translateY(8px); } }

/* ───────── la cinta: la programación, como el dial de una radio ───────── */
.programa { width: 100%; margin-top: clamp(8px, 2dvh, 18px); }
.cinta {
  position: relative; height: 52px; overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.cinta:active { cursor: grabbing; }
.regla, .pista { position: absolute; left: 0; will-change: transform; }
.regla { top: 0; height: 20px; }
/* rayitas de la regla («tic», no «marca»: ese es el logotipo) */
.tic { position: absolute; top: 15px; width: 1px; height: 4px; margin-left: -0.5px; background: var(--suave); opacity: 0.4; }
.tic.mayor { top: 12px; height: 7px; opacity: 0.85; }
.hora { position: absolute; top: 0; transform: translateX(-50%); color: var(--suave); font-size: 10px; line-height: 11px; font-weight: 600; letter-spacing: 0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* dónde va la emisión cuando tú vas a la carta («punto-directo», no «vivo»: ese es el círculo que suena) */
.punto-directo { position: absolute; top: 11px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--marca); box-shadow: 0 0 8px var(--marca), 0 0 16px var(--marca); }
.pista { top: 24px; height: 24px; }
/* cada voz, un tubo de neón suave del color de lo escuchada que es */
.tramo {
  --neon: var(--n0); position: absolute; top: 0; height: 24px; padding: 0; border-radius: 12px; display: grid; place-items: center;
  overflow: hidden; color: #fff; font-size: 10.5px; font-weight: 800; line-height: 1;
  background: color-mix(in srgb, var(--neon) 20%, #0c0b0f); border: 1.5px solid color-mix(in srgb, var(--neon) 85%, transparent);
  box-shadow: 0 0 6px color-mix(in srgb, var(--neon) 55%, transparent), inset 0 0 6px color-mix(in srgb, var(--neon) 35%, transparent);
  text-shadow: 0 0 6px var(--neon);
}
.tramo.actual { background: color-mix(in srgb, var(--neon) 34%, #0c0b0f); box-shadow: 0 0 10px var(--neon), 0 0 22px color-mix(in srgb, var(--neon) 45%, transparent), inset 0 0 8px color-mix(in srgb, var(--neon) 45%, transparent); }
.n0 { --neon: var(--n0); } .n1 { --neon: var(--n1); } .n2 { --neon: var(--n2); } .n3 { --neon: var(--n3); }
.n4 { --neon: var(--n4); } .n5 { --neon: var(--n5); } .n6 { --neon: var(--n6); }
/* lo que ya ha sonado (a la izquierda de la aguja) queda en penumbra */
.cinta::before {
  content: ""; position: absolute; left: 0; top: 20px; bottom: 0; width: 30%; z-index: 1; pointer-events: none;
  background: color-mix(in srgb, var(--fondo) 62%, transparent); transition: opacity 0.25s ease;
}
.cinta.asomando::before { opacity: 0; }
/* la aguja: tú */
.aguja { position: absolute; top: 15px; bottom: 0; left: 30%; z-index: 2; width: 2px; margin-left: -1px; border-radius: 1px; background: #fff; box-shadow: 0 0 6px #fff, 0 0 12px rgba(255, 255, 255, 0.6); pointer-events: none; }
.aguja::before { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff; }
.pie-cinta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; margin-top: 6px; }
.resumen { margin: 0; color: var(--suave); font-size: 0.86rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.resumen:empty { display: none; }
.leyenda { margin: 0; display: inline-flex; align-items: center; gap: 6px; color: var(--suave); font-size: 0.68rem; letter-spacing: 0.02em; opacity: 0.85; }
.leyenda i { width: 56px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--n0), var(--n1), var(--n2), var(--n3), var(--n4), var(--n5), var(--n6)); box-shadow: 0 0 6px rgba(255, 116, 204, 0.35); }
.b-directo {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 17px;
  border: 1px solid color-mix(in srgb, var(--marca) 55%, transparent); background: var(--marca-suave); color: #ffd9dd;
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  box-shadow: 0 0 12px color-mix(in srgb, var(--marca) 30%, transparent);
}
.b-directo i { width: 8px; height: 8px; border-radius: 50%; background: var(--marca); box-shadow: 0 0 8px var(--marca); animation: piloto 1.6s ease-in-out infinite; }

/* círculos de cada persona (perfil, oyentes, listas): su color, con un brillo suave */
.av-mini, .av-medio {
  --c: #888; flex: none; border-radius: 50%; border: 0; padding: 0; background: var(--c); color: #fff;
  display: grid; place-items: center; font-weight: 800; line-height: 1; box-shadow: 0 0 10px color-mix(in srgb, var(--c) 45%, transparent);
}
.av-mini { width: 36px; height: 36px; font-size: 0.95rem; }
.av-medio { width: 54px; height: 54px; font-size: 1.4rem; }
.c0 { --c: #e5432b; } .c1 { --c: #d97706; } .c2 { --c: #0f9d6e; } .c3 { --c: #0284c7; } .c4 { --c: #4f46e5; }
.c5 { --c: #9333ea; } .c6 { --c: #db2777; } .c7 { --c: #0d9488; } .c8 { --c: #65a30d; } .c9 { --c: #475569; }

/* ───────── hablar ───────── */
.pie-hablar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; justify-content: center; pointer-events: none;
  padding: 18px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, var(--fondo) 58%, transparent);
}
.b-hablar {
  pointer-events: auto; height: clamp(56px, 7.6dvh, 64px); padding: 0 32px 0 26px; border-radius: 32px; display: flex; align-items: center; gap: 10px;
  border: 1px solid rgba(255, 160, 170, 0.55); background: linear-gradient(180deg, #ff4b5d, #e8293d); color: #fff; font-size: 1.2rem; font-weight: 800;
  box-shadow: 0 0 16px rgba(255, 45, 70, 0.55), 0 0 44px rgba(255, 45, 70, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
}
.b-hablar .ico { width: 28px; height: 28px; }
.b-hablar:active { transform: scale(0.97); }
body.sin-voces .b-hablar { animation: latido 2.2s ease-in-out infinite; }
@keyframes latido { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* ───────── hojas ───────── */
dialog.hoja {
  position: fixed; width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; margin: auto auto 0; overflow: auto;
  padding: 24px 18px calc(22px + env(safe-area-inset-bottom, 0px)); border: 0; border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px 24px 0 0; background: var(--superficie); color: var(--tinta); box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
}
dialog.hoja::backdrop { background: rgba(4, 3, 6, 0.6); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
@media (min-width: 640px) { dialog.hoja { margin: auto; border-radius: 24px; padding-bottom: 24px; } }
.b-cerrar { position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--superficie-2); color: var(--tinta); display: grid; place-items: center; padding: 0; }
.h-titulo { margin: 2px 48px 6px 0; font-size: 1.4rem; line-height: 1.2; font-weight: 800; letter-spacing: -0.015em; text-wrap: balance; }
.h-sub { margin: 0 0 16px; color: var(--suave); }

.form { display: flex; flex-direction: column; gap: 10px; }
.form label { font-weight: 700; }
.form input[type="email"], .form input[type="text"], .form input:not([type]) {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.12); background: #0f0e13;
  color: var(--tinta); font: inherit; font-size: 1.15rem;
}
.form input:focus-visible { outline: 2px solid color-mix(in srgb, var(--marca) 60%, transparent); outline-offset: 0; border-color: var(--marca); box-shadow: 0 0 14px color-mix(in srgb, var(--marca) 30%, transparent); }
.campo-codigo { font-size: 2rem !important; text-align: center; letter-spacing: 0.3em; font-variant-numeric: tabular-nums; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500 !important; margin: 4px 0; }
.check input { width: 24px; height: 24px; flex: none; margin: 1px 0 0; accent-color: var(--marca); }
.check-perfil { margin: 16px 0 0; color: var(--suave); }
.ayuda { margin: 0; color: var(--suave); font-size: 0.92rem; }
.error { min-height: 1.4em; margin: 12px 0 0; color: var(--peligro); font-weight: 700; }
.error:empty { min-height: 0; margin: 0; }
/* «¿Querías decir …@gmail.com?» al escribir mal el correo (18-nov-2026) */
.sugerencia { padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); }
.sug-msg { margin: 0 0 8px; color: var(--peligro); font-weight: 700; }
.sug-pregunta { margin: 0 0 10px; font-weight: 700; overflow-wrap: anywhere; }
.b-sug { width: 100%; margin-top: 6px; }

.b-primario {
  width: 100%; height: 58px; border-radius: 29px; border: 1px solid rgba(255, 160, 170, 0.5); color: #fff;
  background: linear-gradient(180deg, #ff4b5d, #e8293d); display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 1.12rem; font-weight: 800; box-shadow: 0 0 16px rgba(255, 45, 70, 0.4);
}
.b-sec, .b-peligro {
  height: 48px; padding: 0 18px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.14); background: transparent;
  color: var(--tinta); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700;
}
.b-peligro { color: var(--peligro); border-color: color-mix(in srgb, var(--peligro) 40%, transparent); }
.b-chico { height: 38px; padding: 0 13px; font-size: 0.92rem; }
.b-ancho { width: 100%; margin-top: 14px; }
.b-enlace { background: none; border: 0; padding: 8px; color: var(--suave); text-decoration: underline; }

/* grabar */
dialog.hoja-grabar[open] { display: flex; flex-direction: column; min-height: 72vh; min-height: 72dvh; }
.g-centro { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 8px 0; }
.b-rec { position: relative; width: 176px; height: 176px; border: 0; border-radius: 50%; background: none; padding: 0; display: grid; place-items: center; }
.g-aro { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.g-aro-fondo { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 5; }
.g-aro-vivo { fill: none; stroke: var(--marca); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 339.3; filter: drop-shadow(0 0 4px var(--marca)); }
.b-rec-ico {
  width: 134px; height: 134px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 50% 38%, #ff5a6b, #d61f34 70%); border: 1px solid rgba(255, 170, 180, 0.6);
  box-shadow: 0 0 22px rgba(255, 45, 70, 0.55), 0 0 60px rgba(255, 45, 70, 0.2);
}
.b-rec-ico .ico { width: 58px; height: 58px; }
.b-rec.grabando .b-rec-ico { animation: latido 1.3s ease-in-out infinite; }
.b-rec:disabled { opacity: 0.6; }
.g-tiempo { margin: 0; font-size: 2.1rem; font-weight: 800; font-variant-numeric: tabular-nums; text-align: center; }
.g-tiempo span { color: var(--suave); font-size: 1.1rem; font-weight: 600; }
.g-tiempo.largo { color: var(--n4); text-shadow: 0 0 12px color-mix(in srgb, var(--n4) 45%, transparent); } /* pasado el minuto: mejor corta */
.g-nivel { display: block; width: 100%; height: 56px; }
.g-ayuda { margin: 0; color: var(--suave); text-align: center; text-wrap: balance; }
/* interruptor «♪ Música»: sin filtros y con más calidad */
.g-musica { display: flex; align-items: center; gap: 12px; max-width: 100%; margin-top: 4px; padding: 10px 14px; border-radius: 16px; background: var(--superficie-2); color: var(--suave); font-size: 0.88rem; cursor: pointer; }
.g-musica b { color: var(--tinta); }
.g-musica input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.g-interruptor { position: relative; flex: none; width: 44px; height: 26px; border-radius: 13px; background: #2c2834; transition: background 0.2s ease, box-shadow 0.2s ease; }
.g-interruptor::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.2s ease; }
.g-musica input:checked + .g-interruptor { background: var(--n5); box-shadow: 0 0 12px color-mix(in srgb, var(--n5) 55%, transparent); }
.g-musica input:checked + .g-interruptor::after { transform: translateX(18px); }
.g-musica input:focus-visible + .g-interruptor { outline: 2px solid #fff; outline-offset: 2px; }
.g-musica input:disabled + .g-interruptor { opacity: 0.5; }
.g-revisar { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 12px 0 4px; }
.g-onda { height: 76px; }
.g-botones { display: flex; gap: 10px; }
.g-botones .b-sec { flex: 1; height: 54px; }
.b-publicar { height: 66px; border-radius: 33px; font-size: 1.25rem; }
.b-publicar .ico { width: 28px; height: 28px; }

/* listas (mis voces, moderación) */
.lista { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 16px; }
.fila { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: #0f0e13; border: 1px solid rgba(255, 255, 255, 0.05); }
.b-fila-play { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.8); background: transparent; color: #fff; display: grid; place-items: center; padding: 0; box-shadow: 0 0 10px rgba(255, 255, 255, 0.15); }
.b-fila-play .ico { width: 22px; height: 22px; }
.fila-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fila-t { font-weight: 700; overflow-wrap: anywhere; }
.fila-n { display: flex; gap: 14px; color: var(--suave); font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.fila-n span { display: inline-flex; align-items: center; gap: 5px; }
.fila-n .ico { width: 16px; height: 16px; }
.fila-motivos { color: var(--peligro); font-size: 0.88rem; font-weight: 700; }
.insignia { align-self: flex-start; padding: 2px 9px; border-radius: 9px; background: rgba(255, 255, 255, 0.08); font-size: 0.8rem; font-weight: 800; }
.aviso-ins { background: rgba(255, 201, 74, 0.16); color: var(--n4); }
.ok-ins { background: rgba(54, 226, 160, 0.14); color: var(--n3); }
.fila-botones { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
/* cómo suenan mis voces (al azar, por orden de subida, en mi orden) y la categoría de cada una, que se puede cambiar */
.p-modos { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.p-modos .chip[aria-pressed="true"] { border-color: var(--n3); background: color-mix(in srgb, var(--n3) 18%, transparent); box-shadow: 0 0 10px color-mix(in srgb, var(--n3) 30%, transparent); }
.b-temas { align-self: flex-start; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin: 2px 0 0; padding: 4px 10px 4px 9px; border: 1px solid var(--linea); border-radius: 14px; background: rgba(255, 255, 255, 0.04); color: var(--tinta); font: inherit; font-size: 0.86rem; font-weight: 700; text-align: left; }
.b-temas span { white-space: nowrap; }
.b-temas .ico { display: inline-block; width: 14px; height: 14px; margin-left: 7px; vertical-align: -2px; color: var(--suave); }
.b-temas.vacia { color: var(--suave); border-style: dashed; }
.b-temas:focus-visible { outline: 2px solid var(--n5); outline-offset: 1px; }
.g-tema-varias { font-weight: 500; }
#h-editar .g-tema { margin: 14px 0 6px; }
#h-editar .g-conv { margin: 10px 0 16px; }
#h-editar .ayuda { margin: 4px 0 0; }

/* mis voces en mi orden: el asa ≡ para arrastrarlas y cuándo suena cada una */
.p-orden { margin: 2px 0 6px; color: var(--suave); font-size: 0.92rem; line-height: 1.35; }
.b-asa { width: 30px; height: 46px; flex: none; margin: 0 -6px 0 -4px; border: 0; border-radius: 10px; background: transparent; color: var(--suave); display: grid; place-items: center; padding: 0; cursor: grab; touch-action: none; }
.b-asa .ico { width: 20px; height: 20px; }
.b-asa:focus-visible { outline: 2px solid var(--n3); outline-offset: 1px; }
.lista.ordenando, .lista.ordenando * { -webkit-user-select: none; user-select: none; cursor: grabbing; }
.fila.arrastrando { position: relative; z-index: 3; background: var(--superficie-2); border-color: rgba(54, 226, 160, 0.55); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65), 0 0 18px rgba(54, 226, 160, 0.18); }
.fila.arrastrando .b-asa { color: var(--n3); }
.fila-prox { color: var(--n3); font-size: 0.88rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.fila-prox.ya { color: var(--marca); text-shadow: 0 0 8px var(--marca-suave); }
.b-fila-borrar { width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; background: transparent; color: var(--suave); display: grid; place-items: center; padding: 0; transition: color 0.15s ease, background 0.15s ease; }
.b-fila-bajar { text-decoration: none; }
.b-fila-bajar:hover, .b-fila-bajar:focus-visible { color: var(--texto, #fff); background: rgba(255, 255, 255, 0.1); }
.b-fila-borrar:hover, .b-borrar-voz:hover { color: var(--peligro); background: rgba(255, 138, 138, 0.12); }
.b-borrar-voz { color: var(--peligro); border-color: rgba(255, 138, 138, 0.28) !important; }

.p-cab { display: flex; align-items: center; gap: 12px; margin: 0 44px 16px 0; }
.p-cab .h-titulo { margin: 0; }
.fila-campo { display: flex; gap: 8px; }
.fila-campo input { flex: 1; min-width: 0; }
.p-sub { margin: 22px 0 2px; font-size: 1.08rem; }
.p-pie { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 8px; }
.legal-enlaces { margin: 20px 0 0; text-align: center; color: var(--suave); font-size: 0.86rem; }

.motivos { display: flex; flex-direction: column; gap: 8px; }
.b-motivo { height: 56px; padding: 0 18px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.1); background: #0f0e13; color: var(--tinta); text-align: left; font-weight: 700; font-size: 1.05rem; }

/* aviso breve (encima de todo, también de las hojas) */
.aviso {
  position: fixed; left: 16px; right: 16px; top: auto; bottom: calc(104px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  width: fit-content; max-width: 460px; margin: 0 auto; transform: translateY(16px); padding: 13px 20px; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12); background: #f3f0f6; color: #121016; font-weight: 700; text-align: center;
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.18); opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease;
}
.aviso.visible { opacity: 1; transform: translateY(0); }
.sin-js { padding: 24px; text-align: center; }

/* ───────── cabecera: Directo | Dial ───────── */
.modos { display: inline-flex; gap: 2px; padding: 3px; border-radius: 20px; background: var(--superficie); border: 1px solid var(--linea); }
.modo {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border: 0; border-radius: 16px; background: transparent;
  color: var(--suave); font-size: 0.84rem; font-weight: 800; letter-spacing: 0.02em;
}
.modo i { width: 7px; height: 7px; border-radius: 50%; background: var(--marca); box-shadow: 0 0 6px var(--marca); }
.modo[aria-selected="true"] { color: #fff; background: linear-gradient(180deg, #2a2531, #1d1a23); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 12px rgba(255, 255, 255, 0.08); }
@media (max-width: 400px) { .marca-txt { display: none; } }

/* ───────── el dial (FM 87.5–108) ───────── */
.dial-caja { width: 100%; margin-top: clamp(8px, 2dvh, 18px); }
.dial {
  position: relative; height: 64px; overflow: hidden; border-radius: 14px; border: 1px solid var(--linea); cursor: grab;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; background: linear-gradient(180deg, #17141c, #0f0d12);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.dial:active { cursor: grabbing; }
.dial-escala { position: absolute; left: 0; top: 0; height: 100%; will-change: transform; }
.d-tic { position: absolute; top: 6px; width: 1px; height: 5px; margin-left: -0.5px; background: var(--suave); opacity: 0.35; }
.d-medio { height: 9px; opacity: 0.55; }
.d-mayor { height: 13px; opacity: 0.9; }
.d-num { position: absolute; top: 22px; transform: translateX(-50%); color: var(--suave); font-size: 10px; line-height: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.d-emisora {
  --neon: var(--n0); position: absolute; width: 24px; height: 24px; margin-left: -12px; padding: 0; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--neon); background: color-mix(in srgb, var(--neon) 25%, #0c0b0f); color: #fff; font-size: 10px; font-weight: 800;
  box-shadow: 0 0 8px color-mix(in srgb, var(--neon) 70%, transparent); text-shadow: 0 0 6px var(--neon);
}
.dial-aguja { position: absolute; left: 50%; top: 0; bottom: 0; z-index: 2; width: 2px; margin-left: -1px; background: var(--marca); box-shadow: 0 0 8px var(--marca), 0 0 18px var(--marca); pointer-events: none; }
.dial-estado { margin: 8px 0 0; text-align: center; color: var(--tinta); font-size: 0.95rem; font-weight: 800; font-variant-numeric: tabular-nums; min-height: 1.4em; }
/* presintonías: los botones de la radio del coche */
.presets { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.preset {
  --c: transparent; height: 48px; padding: 0; border-radius: 11px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border: 1px solid var(--linea); background: linear-gradient(180deg, #221e28, #141218); color: var(--suave);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 3px 0 #070609; transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.preset:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 0 #070609; }
.preset-n { color: var(--tinta); font-size: 0.98rem; font-weight: 800; line-height: 1; }
.preset-q { font-size: 0.6rem; line-height: 1; font-variant-numeric: tabular-nums; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preset.lleno { border-color: color-mix(in srgb, var(--c) 65%, transparent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 3px 0 #070609, 0 0 10px color-mix(in srgb, var(--c) 35%, transparent); }
.preset.lleno .preset-q { color: var(--tinta); }
.preset-mezcla .preset-n { color: var(--n5); text-shadow: 0 0 8px var(--n5); }
.preset-buscar { color: var(--tinta); }
.preset-buscar .ico { width: 20px; height: 20px; }
.dial-ayuda { margin: 8px 0 0; text-align: center; color: var(--suave); font-size: 0.72rem; }
body.en-dial .oyentes { display: none !important; } /* los oyentes son los del directo */

/* ───────── dedicatorias ───────── */
.ded-portada {
  display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; max-width: 420px; padding: 16px; border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--n5) 40%, transparent); background: color-mix(in srgb, var(--n5) 8%, #0f0e13);
  box-shadow: 0 0 26px color-mix(in srgb, var(--n5) 18%, transparent);
}
.ded-de { margin: 0; font-size: 1.2rem; font-weight: 800; text-wrap: balance; }
.ded-para { margin: 0; color: var(--n5); font-weight: 800; }
.ded-para:empty { display: none; }
.ded-hora { margin: 4px 0 0; color: var(--tinta); font-weight: 700; }
.ded-falta { margin: 0; color: #fff; font-family: "Bebas Neue", Impact, sans-serif; font-size: 2.8rem; line-height: 1; letter-spacing: 0.06em; text-shadow: 0 0 14px var(--n5); font-variant-numeric: tabular-nums; }
.ded-falta:empty { display: none; }
.ded-espera { margin: 0 0 4px; text-align: center; color: var(--n5); font-size: 0.86rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.dd-sobre { margin: 0 0 4px; color: var(--n5); }
.dd-sobre .ico { width: 46px; height: 46px; filter: drop-shadow(0 0 10px var(--n5)); }
.botones-col { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.b-whatsapp { background: linear-gradient(180deg, #33d673, #1fae55); border-color: rgba(170, 255, 200, 0.5); box-shadow: 0 0 16px rgba(40, 210, 100, 0.4); text-decoration: none; }
a.b-sec, a.b-primario { text-decoration: none; }
.g-dedicar { display: flex; flex-direction: column; gap: 10px; }
.g-ded-campos { display: flex; flex-direction: column; gap: 10px; }
.g-ded-campos input[type="text"] { width: 100%; padding: 13px 16px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.12); background: #0f0e13; color: var(--tinta); font: inherit; font-size: 1.05rem; }
.g-cuando { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent; color: var(--tinta); font-size: 0.92rem; font-weight: 700;
}
.chip[aria-pressed="true"] { color: #fff; border-color: var(--n5); background: color-mix(in srgb, var(--n5) 22%, transparent); box-shadow: 0 0 10px color-mix(in srgb, var(--n5) 35%, transparent); }
.chip-hora input { border: 0; background: transparent; color: var(--tinta); font: inherit; color-scheme: dark; max-width: 110px; }

/* ───────── vídeo para redes ───────── */
.clip-marco { display: grid; place-items: center; margin: 6px 0 12px; }
.clip-lienzo { width: min(50vw, 210px); height: auto; aspect-ratio: 9 / 16; border-radius: 14px; background: #000; box-shadow: 0 0 30px rgba(255, 40, 70, 0.25); }
.clip-progreso { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.clip-progreso i { display: block; width: 0; height: 100%; background: var(--marca); box-shadow: 0 0 10px var(--marca); transition: width 0.2s linear; }

/* ───────── emisoras (buscador) y perfil ───────── */
.fila-emisora { padding: 6px 8px; }
.em-ir { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 4px; border: 0; background: none; color: inherit; text-align: left; }
.em-mas { font-size: 1.1rem; font-weight: 800; color: var(--tinta); border: 1px solid rgba(255, 255, 255, 0.14) !important; }
.em-mas.activo { color: var(--n5); border-color: var(--n5) !important; box-shadow: 0 0 10px color-mix(in srgb, var(--n5) 35%, transparent); }
/* compartir mi frecuencia y escuchar una emisora compartida */
.b-fq { width: auto; display: inline-flex; align-items: center; gap: 8px; margin: -4px 0 14px; padding: 9px 16px; font-size: 0.95rem; }
.b-fq .ico { width: 18px; height: 18px; }
.b-sintonizar { width: auto; max-width: 100%; margin: 14px auto 4px; padding: 0 26px; }
.b-sintonizar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-fq { margin: -6px 0 12px; color: var(--n2); font-weight: 800; letter-spacing: 0.03em; text-shadow: 0 0 8px color-mix(in srgb, var(--n2) 40%, transparent); }

/* subir un audio · entrevista en directo · conversación */
.g-otras { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 2px; }
.g-subir { display: inline-flex; align-items: center; gap: 8px; color: var(--suave); font-size: 0.86rem; text-decoration: none; cursor: pointer; }
.g-subir .ico { width: 18px; height: 18px; }
.g-subir span { text-decoration: underline; text-underline-offset: 3px; }
.g-conv { display: flex; flex-direction: column; gap: 10px; }

/* entrevista en directo */
.s-estado { margin: 14px 0 6px; text-align: center; color: var(--tinta); font-weight: 800; font-size: 1.05rem; }
.s-hablando { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.s-hablando .g-tiempo { margin-top: 4px; }
.s-cascos { margin-top: 14px; text-align: center; }
#i-tiempo { font-size: 1.6rem; }

/* tema de la voz (al grabar) */
.g-tema { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.g-tema-et { width: 100%; color: var(--suave); font-size: 0.88rem; font-weight: 700; }

/* pacto de respeto (antes de hablar desde la web de la Asociación) */
.pc-cartel { margin: 0 0 8px; }
.pc-cartel span {
  display: inline-block; padding: 6px 12px 4px; border-radius: 8px; border: 1px solid #5b1a22; background: radial-gradient(130% 160% at 50% 50%, #3d0b12, #1d0709 70%);
  font-family: "Bebas Neue", Impact, sans-serif; font-size: 26px; line-height: 1; letter-spacing: 0.14em; color: #ffeef0;
  text-shadow: 0 0 2px #fff, 0 0 8px #ff2e45, 0 0 18px #ff1733; box-shadow: 0 0 16px rgba(255, 35, 60, 0.45);
}
.pc-lista { margin: 4px 0 14px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pc-lista li { padding: 10px 12px; border-radius: 14px; background: #0f0e13; border: 1px solid rgba(255, 255, 255, 0.06); line-height: 1.4; }
.pc-check { padding: 4px 2px; font-weight: 700 !important; }

/* ───────── widget: Voisiz dentro de otra web (barrita y popup compacto 100% opaco) ───────── */
html.widget { background: transparent; color-scheme: dark; } /* en modo mini deja ver la web que lo contiene */
html.widget, body.widget { background: transparent !important; min-height: 0; }
body.widget:not(.panel-abierto)::before, body.widget:not(.panel-abierto)::after, body.widget:not(.panel-abierto) .vz, body.widget:not(.panel-abierto) .pie-hablar { display: none !important; }
html.widget:has(body.panel-abierto), html.widget:has(dialog[open]), body.widget.panel-abierto, body.widget:has(dialog[open]) {
  background: transparent !important;
}
body.widget.panel-abierto {
  min-height: 0; height: auto; max-height: 100vh; max-height: 100dvh; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; background: transparent !important;
}
body.widget.panel-abierto::before, body.widget.panel-abierto::after { display: none !important; }
body.widget.panel-abierto .mini,
body.widget.panel-abierto .cab,
body.widget.panel-abierto .cartel,
body.widget.panel-abierto .oyentes,
body.widget.panel-abierto .pie-hablar,
body.widget.panel-abierto .leyenda { display: none !important; }
body.widget.panel-abierto .vz {
  min-height: 0; height: auto; padding: 14px 16px 15px; background: transparent !important; justify-content: flex-start;
}
body.widget.panel-abierto .escenario {
  flex: none; padding: 0; justify-content: flex-start; gap: 10px;
}
body.widget.panel-abierto .sonando { gap: 6px; }
body.widget.panel-abierto .hablante { justify-content: flex-start; gap: 10px; position: relative; padding-right: 36px; }
body.widget.panel-abierto .av-grande { width: 42px; font-size: 1.2rem; }
body.widget.panel-abierto .quien { font-size: 1.05rem; }
body.widget.panel-abierto .cuando { font-size: 0.78rem; }
body.widget.panel-abierto .voz-tit { font-size: 0.8rem; }
body.widget.panel-abierto .onda-caja { margin-top: 2px; }
body.widget.panel-abierto .onda { height: 36px; }
body.widget.panel-abierto .mandos { gap: 14px; margin-top: 2px; }
body.widget.panel-abierto .b-redondo { width: 34px; height: 34px; }
body.widget.panel-abierto .b-redondo .ico { width: 17px; height: 17px; }
body.widget.panel-abierto .b-play { width: 44px; height: 44px; }
body.widget.panel-abierto .b-play .ico { width: 22px; height: 22px; }
body.widget.panel-abierto .acciones { gap: 6px; margin-top: 2px; }
body.widget.panel-abierto .b-accion { min-width: 46px; height: 34px; padding: 0 10px; font-size: 0.82rem; background: rgba(31, 28, 40, 0.55); border-color: rgba(255, 255, 255, 0.16); }
body.widget.panel-abierto .b-accion .ico { width: 18px; height: 18px; }
body.widget.panel-abierto .programa { margin-top: 2px; padding-bottom: 0; }
body.widget.panel-abierto .cinta { height: 48px; }
body.widget.panel-abierto .pista { top: 22px; height: 22px; }
body.widget.panel-abierto .tramo { height: 22px; font-size: 10px; }
body.widget.panel-abierto .pie-cinta { margin-top: 3px; }
body.widget.panel-abierto .resumen { font-size: 0.76rem; }
.b-cerrar-popup {
  position: absolute; top: 0; right: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(34, 30, 43, 0.65); color: var(--tinta); display: grid; place-items: center; padding: 0; cursor: pointer;
}
.b-cerrar-popup:hover { background: rgba(46, 41, 58, 0.85); color: #fff; }
.b-cerrar-popup .ico { width: 16px; height: 16px; }
.cab-der { display: flex; align-items: center; gap: 6px; }
.mini {
  /* 56 px de alto (antes 72): 8 px de aire arriba y abajo de los botones de 40 px; igual en apd-voisiz/widget.css */
  position: fixed; left: 0; right: 0; top: 0; height: 56px; display: flex; align-items: center; gap: 4px; padding: 0 8px 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 28px; background: transparent !important; color: var(--tinta);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
/* la barrita ya no enseña el cartel ON AIR (se oculta, no se borra: si se quiere de vuelta, basta con quitar esta regla).
   Su sitio pasa a las dos líneas de texto, y sus tres estados pasan al botón redondo ▶/⏸ (ver .mini-play más abajo).
   El cartel grande de la app sigue igual. */
.mini-onair { display: none !important; }
.mini-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; cursor: pointer; padding-left: 10px; }
.mini-txt b { font-size: 0.94rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-txt small { color: var(--suave); font-size: 0.73rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* las dos líneas, siempre en blanco con sombra, sea cual sea el fondo (antes lo forzaba el pie del tema de la web APD;
   ahora lo lleva Voisiz). El 16-nov se probó que cambiara a negro sobre fondo claro y José prefirió blanco fijo. */
.mini-txt b, .mini-txt small { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55); transition: color 0.3s ease, text-shadow 0.3s ease; }
/* mientras suena, la 2ª línea es una banda pasante (fecha, hora, título y descripción) que entra por la derecha y sale
   por la izquierda, en bucle. Se mueve también con «Reducir movimiento»: es lo que se pidió que haga. */
.mini-txt small.con-banda { text-overflow: clip; }
.mini-banda { display: inline-block; padding-left: 100%; animation: pasa-banda var(--dur, 12s) linear infinite; }
@keyframes pasa-banda { to { transform: translateX(-100%); } }
/* botones de la barrita un poco más ajustados (16-nov: ⏮/⏭ 30 px, ▶ y 🎙 40 px, × 22 px, huecos de 4 px) para dejar
   más sitio al texto sin cambiar su aspecto */
.mini-nav {
  flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06); color: #fff; display: grid; place-items: center; padding: 0; cursor: pointer;
  transition: background 0.15s ease, transform 0.08s ease, color 0.3s ease, border-color 0.3s ease;
}
.mini-nav:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.mini-nav:active { transform: scale(0.92); }
.mini-nav .ico { width: 16px; height: 16px; }
.mini-play, .mini-hablar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; padding: 0; color: #fff; cursor: pointer; }
/* el botón ▶/⏸ de la barrita hereda los tres estados del cartel ON AIR (clases en <body>, ver pintarModo en app.js)
   en su ANILLO y su halo; el icono (triángulo y rayitas) es siempre blanco puro y sólido (16-nov, petición de José):
   apagado (parado, al recargar antes de sonar o si el navegador bloqueó el arranque): anillo gris, sin halo;
   .en-directo (sonando): anillo rojo neón con halo rojo;
   .en-pausa (en pausa después de haber sonado): anillo naranja neón (#ffad33) con halo naranja.
   Es de neón (fondo oscuro), no relleno, para no confundirse con el 🎙 rojo de al lado. El halo es corto (~9 px):
   la barrita mide 56 px de alto, con 8 px de aire, y lo que sobresale se cortaría. */
.mini-play {
  border: 2px solid #8a8892; background: #141218; color: #fff; box-shadow: none;
  transition: border-color 0.3s ease, box-shadow 0.4s ease;
}
.mini-play .ico { width: 20px; height: 20px; }
body.en-directo .mini-play {
  border-color: #ff3b4e; background: radial-gradient(circle at 50% 50%, #3d0b12, #1d0709 75%);
  box-shadow: 0 0 4px rgba(255, 46, 69, 0.9), 0 0 9px rgba(255, 35, 60, 0.55), inset 0 0 10px rgba(255, 40, 70, 0.35);
}
body.en-pausa .mini-play {
  border-color: #ffad33; background: radial-gradient(circle at 50% 50%, #3a2104, #1d1003 75%);
  box-shadow: 0 0 4px rgba(255, 173, 51, 0.9), 0 0 9px rgba(255, 160, 40, 0.55), inset 0 0 10px rgba(255, 160, 40, 0.35);
}
.mini-hablar { border: 1px solid rgba(255, 160, 170, 0.55); background: linear-gradient(180deg, #ff4b5d, #e8293d); box-shadow: 0 0 9px rgba(255, 45, 70, 0.5); }
.mini-hablar .ico { width: 22px; height: 22px; }
.mini-x {
  flex: none; width: 22px; height: 22px; margin-left: -1px; border: 0; border-radius: 50%;
  background: transparent; color: #fff !important; display: grid; place-items: center; padding: 0; cursor: pointer;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.65));
  position: relative;
}
/* la × se ve de 22 px, pero se puede tocar en una zona más grande (unos 34 × 50 px): hasta el borde derecho de la
   barrita y casi toda su altura, sin invadir el 🎙 de al lado. En el iPhone a veces el dedo no la acertaba. */
.mini-x::before { content: ""; position: absolute; top: -14px; bottom: -14px; left: -3px; right: -9px; }
.mini-x .ico { width: 16px; height: 16px; }
body.widget:has(dialog[open]) { overflow: hidden; }
body.widget dialog.hoja {
  position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: auto !important;
  width: 100% !important; max-width: none !important; max-height: 100vh !important; max-height: 100dvh !important;
  height: auto !important; min-height: 0 !important;
  margin: 0 !important; padding: 16px 16px 17px !important; border: 0 !important; border-radius: 20px !important;
  overflow-y: auto !important; overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y;
  background: transparent !important; box-shadow: none !important;
}
body.widget dialog.hoja-grabar[open] { min-height: 0 !important; }
body.widget .g-centro { flex: none; gap: 10px; padding: 4px 0; }
body.widget dialog.hoja::backdrop { background: transparent !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.widget:has(dialog[open]) .mini, body.widget:has(dialog[open]) .vz { display: none !important; } /* con una hoja abierta, la barrita o el popup no ocupa espacio encima ni asoma detrás */

/* pantallas bajas (iPhone SE, móviles pequeños): todo más junto */
@media (max-height: 720px) {
  .cab { padding-top: 8px; }
  .cartel { margin-bottom: 6px; }
  .oyentes { margin-bottom: 8px; }
  .sonando { gap: 4px; }
  .cuando { font-size: 0.84rem; }
  .programa { margin-top: 8px; }
  .pie-cinta { margin-top: 4px; }
}
@media (max-height: 720px) {
  .dial-ayuda { display: none; }
  .dial-caja { margin-top: 6px; }
  .dial-estado { margin-top: 4px; }
  .preset { height: 42px; }
  .presets { margin-top: 6px; }
}
@media (max-height: 660px) {
  .leyenda { display: none; }
  .mandos { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  body.en-directo::after, body.en-directo .onair-txt, .onair.enciende .onair-txt, .onair.enciende .onair-marco,
  body.en-directo .cartel::before, .av-grande.vivo::before, .av-grande.vivo::after, body.sin-voces .b-hablar,
  .b-rec.grabando .b-rec-ico, .oy-n i, .b-directo i, .oy-caras.corre, .sonando.entra .hablante { animation: none; }
  .aviso, .cinta::before { transition: none; }
}

/* entrevistas en grupo (20-nov-2026): la gente de la sala, con «Silenciar» y «Expulsar» para quien invita */
.gente { list-style: none; margin: 10px 0 4px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.gente-fila { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--linea); border-radius: 14px; background: var(--superficie); }
.gente-fila.silenciado .gente-n { color: var(--suave); }
.gente-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.b-mini { flex: none; width: auto; min-height: 34px; padding: 0 12px; font-size: 0.82rem; }
.b-peligro { color: var(--peligro); }
.aviso-silencio { margin: 8px 0 0; padding: 8px 12px; border-radius: 12px; background: var(--marca-suave); color: var(--tinta); font-weight: 600; text-align: center; }
.g-subir.destacado { outline: 2px solid var(--marca); outline-offset: 3px; border-radius: 12px; animation: vz-latido 1.6s ease-in-out 3; }
@keyframes vz-latido { 50% { outline-color: transparent; } }
@media (prefers-reduced-motion: reduce) { .g-subir.destacado { animation: none; } }

/* ───────── Vídeo-Tertulia (23-nov-2026): la hoja a pantalla completa y la cuadrícula de caras ───────── */
dialog.hoja.hoja-video { width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: none; margin: 0; border-radius: 0;
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px)); }
dialog.hoja.hoja-video[open] { display: flex; flex-direction: column; gap: 8px; }
dialog.hoja.hoja-video .dd-sobre, dialog.hoja.hoja-video .s-cascos { display: none; }
dialog.hoja.hoja-video .h-titulo { margin: 0; font-size: 1.05rem; }
/* quien organiza (23-nov-2026): «Terminar y publicar» siempre a la vista, justo debajo de las caras (antes quedaba fuera de
   la pantalla, debajo de la lista de invitados); los dos botones de invitar, uno al lado del otro; el texto, sin pisar la ✕ */
dialog.hoja.hoja-video#h-sala > .h-titulo, dialog.hoja.hoja-video#h-sala #s-invitar .h-sub { padding-right: 52px; }
dialog.hoja.hoja-video#h-sala #s-invitar .h-sub { margin: 0 0 6px; }
dialog.hoja.hoja-video#h-sala #s-invitar .botones-col { display: flex; flex-direction: row; gap: 8px; }
dialog.hoja.hoja-video#h-sala #s-invitar .botones-col > * { flex: 1 1 0; min-width: 0; margin: 0; padding-left: 8px; padding-right: 8px; font-size: 0.95rem; }
dialog.hoja.hoja-video#h-sala .s-estado { margin: 0; }
dialog.hoja.hoja-video#h-sala #s-hablando { order: 1; }
dialog.hoja.hoja-video#h-sala #s-hablando:not([hidden]) { display: flex; align-items: center; gap: 12px; margin: 0; }
dialog.hoja.hoja-video#h-sala #s-hablando .g-tiempo { margin: 0; font-size: 1.25rem; }
dialog.hoja.hoja-video#h-sala #s-hablando .g-nivel { display: none; }
dialog.hoja.hoja-video#h-sala #s-terminar { flex: 1 1 auto; margin: 0; }
dialog.hoja.hoja-video#h-sala #s-vt { order: 2; }
dialog.hoja.hoja-video#h-sala #s-gente { order: 3; }
.vt-rejilla { flex: 1 1 auto; min-height: 220px; display: grid; gap: 6px; grid-template-columns: 1fr; grid-auto-rows: minmax(0, 1fr); }
.vt-rejilla[data-n="2"] { grid-template-rows: repeat(2, minmax(0, 1fr)); }
.vt-rejilla[data-n="3"], .vt-rejilla[data-n="4"] { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); }
.vt-rejilla[data-n="5"], .vt-rejilla[data-n="6"] { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, minmax(0, 1fr)); }
/* impares (3 y 5): la última cara ocupa todo el ancho de la última fila: sin huecos (José, 23-nov-2026) */
.vt-rejilla[data-n="3"] > :last-child, .vt-rejilla[data-n="5"] > :last-child { grid-column: 1 / -1; }
.vt-casilla { position: relative; overflow: hidden; border-radius: 12px; background: #111; min-height: 0; }
.vt-casilla video { display: block; width: 100%; height: 100%; object-fit: cover; }
.vt-casilla.espejo video { transform: scaleX(-1); }
.vt-casilla.apagada video { visibility: hidden; }
.vt-casilla.apagada::before { content: '🎙'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; opacity: 0.45; }
.vt-nombre { position: absolute; left: 8px; bottom: 6px; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #fff; font-weight: 700; font-size: 13px; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85); }
.vt-controles { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.vt-controles .apagada { opacity: 0.6; }
/* la hoja para publicar la grabación (23-nov-2026) */
.vt-previa { display: block; width: auto; max-width: 100%; height: 34vh; aspect-ratio: 9 / 16; margin: 4px auto 10px; border-radius: 12px; background: #000; object-fit: contain; }
.vt-barra { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.vt-barra span { display: block; height: 100%; width: 0; background: var(--n5); transition: width 0.3s ease; }
.vt-msg { margin: 4px 0 0; font-weight: 700; text-align: center; }
#h-vt textarea { width: 100%; font: inherit; color: inherit; background: transparent; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 12px; padding: 10px; resize: vertical; }
.vt-quedan { margin: 0; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.vt-quedan.poco { color: var(--peligro, #ff8a8a); }
