/*
 * Oficina BiPlot · estilos
 * Tokens de 04-marca/tokens.css en su versión oscura (biplot.cl es oscuro). Coral sólo en .bp-cta.
 */
:root {
  color-scheme: dark;
  --bp-marca-azul: #0E2A47; --bp-marca-cian: #17C3B2; --bp-marca-niebla: #F2F4F7;
  --bp-fondo: #0A1B2E; --bp-superficie: #0E2A47; --bp-superficie-2: #14345A;
  --bp-texto: #F2F4F7; --bp-texto-2: #B9C8D8; --bp-texto-3: #8FA3B8; --bp-texto-fuerte: #FFFFFF;
  --bp-borde: #23456B; --bp-borde-fuerte: #35679A;
  --bp-acento: #17C3B2; --bp-acento-texto: #17C3B2; --bp-acento-suave: rgba(23, 195, 178, .16); --bp-sobre-acento: #0E2A47;
  --bp-cta: #FF6B4A; --bp-cta-texto: #0E2A47; --bp-cta-hover: #FF7F62; --bp-cta-activo: #F05A38; --bp-cta-sombra: 0 12px 28px rgba(255, 107, 74, .28);
  --bp-foco: 0 0 0 3px rgba(23, 195, 178, .6);
  --bp-sombra-2: 0 12px 32px rgba(0, 0, 0, .45);
  --bp-radio: 14px; --bp-radio-pill: 99rem;
  --bp-f-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --bp-f-texto: Inter, "Segoe UI", system-ui, sans-serif;
  --bp-f-mono: "Space Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --bp-fondo-marca: radial-gradient(120% 90% at 50% -5%, #17446F 0%, #0E2A47 52%, #091D33 100%);
  --barra: 60px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bp-fondo); color: var(--bp-texto); font: 16px/1.5 var(--bp-f-texto); -webkit-font-smoothing: antialiased; }
.pagina-oficina { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
a { color: var(--bp-acento-texto); text-underline-offset: 2px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--bp-foco); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.salto { position: absolute; left: 8px; top: -60px; z-index: 99; background: var(--bp-acento); color: var(--bp-sobre-acento); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.salto:focus { top: 8px; }

/* Barra de marca */
.barra { flex: none; height: var(--barra); display: flex; align-items: center; gap: 12px; padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  background: var(--bp-marca-azul); border-bottom: 1px solid var(--bp-borde); position: relative; z-index: 40; }
.marca { display: flex; align-items: center; gap: 9px; text-decoration: none; border-radius: 8px; }
.bp-iso { width: 32px; height: 32px; flex: none; }
.bp-wordmark { font-size: 22px; font-weight: 700; line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
.bp-wordmark .bi { font-family: var(--bp-f-mono); color: var(--bp-marca-niebla); letter-spacing: -.06em; margin-right: .02em; }
.bp-wordmark .plot { font-family: var(--bp-f-display); color: var(--bp-marca-cian); }
.barra-sep { width: 1px; height: 24px; background: var(--bp-borde-fuerte); }
.barra-titulo { margin: 0; font: 600 16px/1 var(--bp-f-display); color: var(--bp-texto-2); letter-spacing: .01em; white-space: nowrap; }
.barra-volver { margin-left: auto; color: var(--bp-texto-2); font: 500 14px/1 var(--bp-f-texto); text-decoration: none; padding: 10px 6px; border-radius: 8px; white-space: nowrap; }
.barra-volver:hover { color: var(--bp-texto); text-decoration: underline; }
.bp-cta { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border: 0; border-radius: var(--bp-radio-pill); white-space: nowrap;
  background: var(--bp-cta); color: var(--bp-cta-texto); font: 700 15px/1 var(--bp-f-display); text-decoration: none; cursor: pointer; box-shadow: var(--bp-cta-sombra); }
.bp-cta:hover { background: var(--bp-cta-hover); }
.bp-cta:active { background: var(--bp-cta-activo); box-shadow: none; }
.bp-cta:focus-visible { box-shadow: var(--bp-foco), var(--bp-cta-sombra); }

/* Botones secundarios (nunca coral) */
.bp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 18px; border-radius: var(--bp-radio-pill);
  border: 1.5px solid var(--bp-borde-fuerte); background: var(--bp-superficie); color: var(--bp-texto); font: 600 15px/1.1 var(--bp-f-display); cursor: pointer; text-decoration: none; }
.bp-btn:hover { border-color: var(--bp-acento); }
.bp-btn.primario { background: var(--bp-acento); border-color: var(--bp-acento); color: var(--bp-sobre-acento); }
.bp-btn.primario:hover { background: #3FD3C4; border-color: #3FD3C4; }
.bp-btn.chico { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.bp-btn[disabled] { opacity: .45; cursor: default; border-color: var(--bp-borde); }
.bp-btn .ico svg, .menu-guia .ico svg { width: 16px; height: 16px; display: block; }
.bp-etiqueta { margin: 0 0 6px; font: 600 12px/1.4 var(--bp-f-display); letter-spacing: .34em; text-transform: uppercase; color: var(--bp-acento-texto); }

/* Escena */
.oficina { position: relative; flex: 1; min-height: 0; overflow: hidden; background: var(--bp-fondo-marca); }
.oficina::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(23, 195, 178, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 195, 178, .06) 1px, transparent 1px); background-size: 72px 72px; }
.escena { position: absolute; inset: 0; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.escena.arrastrando { cursor: grabbing; }
.escena:focus-visible { box-shadow: inset 0 0 0 3px rgba(23, 195, 178, .6); }
#svg-escena { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .5s ease; }
.lista #svg-escena { opacity: 1; }
/* Mientras la oficina espera al CRM antes de dibujar (crm.js, a lo más 3 segundos), lo que todavía no responde no se ve */
.esperando-crm .intro, .esperando-crm .recorrer, .esperando-crm .controles { visibility: hidden; }
.resalte { fill: rgba(23, 195, 178, .07); stroke: #17C3B2; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.resalte-suelo { fill: rgba(23, 195, 178, .12); stroke: none; }
.resalte-actor { fill: rgba(23, 195, 178, .22); stroke: #17C3B2; stroke-width: 2; vector-effect: non-scaling-stroke; }
.rotulo { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 5; }
.rotulo-caja { position: absolute; left: 0; bottom: 8px; transform: translateX(-50%); white-space: nowrap; background: var(--bp-superficie); border: 1px solid var(--bp-acento);
  border-radius: 10px; padding: 7px 12px; box-shadow: var(--bp-sombra-2); text-align: center; }
.rotulo-caja b { display: block; font: 700 15px/1.2 var(--bp-f-display); }
.rotulo-caja span { display: block; font: 500 12.5px/1.3 var(--bp-f-texto); color: var(--bp-texto-2); }

/* Menú "Recorre la oficina" */
.recorrer { position: absolute; z-index: 20; left: 16px; top: 16px; bottom: 16px; width: 288px; display: flex; flex-direction: column; pointer-events: none; }
.recorrer > * { pointer-events: auto; }
.recorrer-toggle { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: var(--bp-radio-pill);
  border: 1.5px solid var(--bp-borde-fuerte); background: rgba(14, 42, 71, .94); color: var(--bp-texto); font: 600 15px/1 var(--bp-f-display); cursor: pointer; box-shadow: var(--bp-sombra-2); }
.recorrer-toggle svg { width: 20px; height: 20px; }
.recorrer-toggle[aria-expanded="true"] { border-color: var(--bp-acento); }
.recorrer-cuerpo { margin-top: 10px; flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; background: rgba(14, 42, 71, .95); border: 1px solid var(--bp-borde);
  border-radius: var(--bp-radio); padding: 16px 12px 12px; box-shadow: var(--bp-sombra-2); outline: none; }
.recorrer.cerrado .recorrer-cuerpo { display: none; }
.recorrer.cerrado { bottom: auto; }
.menu-t { margin: 0 4px 12px; font: 700 20px/1.2 var(--bp-f-display); letter-spacing: -.01em; }
.menu-sub { margin: 16px 6px 6px; font: 600 11.5px/1.3 var(--bp-f-display); letter-spacing: .3em; text-transform: uppercase; color: var(--bp-texto-3); }
.menu-guia { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 14px; border-radius: 10px; border: 1.5px solid var(--bp-acento);
  background: var(--bp-acento-suave); color: var(--bp-texto); font: 600 15px/1.2 var(--bp-f-display); cursor: pointer; text-align: left; }
.menu-guia:hover { background: rgba(23, 195, 178, .26); }
.menu-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.menu-lista button { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 8px; border: 0; border-radius: 10px; background: none; cursor: pointer; text-align: left; }
.menu-lista button:hover { background: var(--bp-superficie-2); }
.menu-lista .avatar { width: 34px; height: 36px; flex: none; }
.menu-lista .mt { flex: 1; min-width: 0; }
.menu-lista .mt b { display: block; font: 600 15px/1.25 var(--bp-f-display); }
.menu-lista .mt span { display: block; font: 400 13px/1.3 var(--bp-f-texto); color: var(--bp-texto-2); }
.menu-lista .punto { width: 12px; height: 12px; border-radius: 4px; flex: none; margin: 0 11px; }
.placa-mini { font: 700 12px/1 var(--bp-f-mono); color: var(--bp-sobre-acento); background: var(--bp-acento); border-radius: 6px; padding: 5px 6px; }

/* El barrio en el menú: buscador, filtros y una lista por calle */
.menu-busca { position: relative; margin: 4px 2px 8px; }
.menu-busca svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--bp-texto-3); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.menu-busca input { width: 100%; min-height: 44px; padding: 10px 12px 10px 38px; border-radius: 10px; border: 1.5px solid var(--bp-borde-fuerte); background: #0B2440; color: var(--bp-texto);
  font: 500 15px/1.2 var(--bp-f-texto); }
.menu-busca input::placeholder { color: var(--bp-texto-3); }
.menu-busca input:focus-visible { border-color: var(--bp-acento); }
.menu-filtros { display: flex; gap: 6px; margin: 0 2px 6px; }
.menu-filtros button { flex: 1; min-height: 36px; padding: 6px 8px; border-radius: var(--bp-radio-pill); border: 1.5px solid var(--bp-borde-fuerte); background: none; color: var(--bp-texto-2);
  font: 600 13px/1 var(--bp-f-display); cursor: pointer; }
.menu-filtros button:hover { color: var(--bp-texto); border-color: var(--bp-acento); }
.menu-filtros [aria-pressed="true"] { background: var(--bp-acento-suave); border-color: var(--bp-acento); color: var(--bp-texto); }
.menu-calle h4 { margin: 12px 8px 4px; font: 700 12px/1.3 var(--bp-f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--bp-acento-texto); }
.menu-calle[hidden], .menu-lista li[hidden], .lugares li[hidden], .archivo-grupo[hidden] { display: none; }
.menu-vacio { margin: 10px 8px; font-size: 14px; color: var(--bp-texto-3); }
.menu-lista .punto.lugar { background: none; border: 2px solid var(--bp-texto-3); border-radius: 50%; }
.chip-mini { flex: none; max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 10.5px/1 var(--bp-f-mono); letter-spacing: .02em; color: var(--bp-acento-texto);
  border: 1px solid rgba(127, 216, 207, .4); border-radius: 99px; padding: 5px 7px; }

/* Controles */
.controles { position: absolute; z-index: 15; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.controles button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1.5px solid var(--bp-borde-fuerte); background: rgba(14, 42, 71, .94);
  cursor: pointer; box-shadow: var(--bp-sombra-2); }
.controles button:hover { border-color: var(--bp-acento); }
.controles svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.controles .con-texto { width: auto; display: flex; gap: 6px; padding: 0 12px; font: 600 13px/1 var(--bp-f-display); }
.controles [aria-pressed="true"] { border-color: var(--bp-acento); background: #14445A; }
.en-sala .controles, .en-sala .rotulo { display: none; }

/* La mini tele: BiPlot.TV siempre a la vista, sobre los controles de la cámara (en el celular, en su fila) */
.mini-tele { position: absolute; z-index: 15; right: 16px; bottom: 230px; width: 132px; display: flex; flex-direction: column; align-items: center; padding: 0; border: 0; background: none;
  color: var(--bp-texto); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mini-tele[hidden], .en-sala:not(.en-sala-propia) .mini-tele { display: none; }
.mini-tele-antena { width: 48px; height: 18px; margin-bottom: -3px; fill: #7FD8CF; stroke: #7FD8CF; stroke-width: 3.2; stroke-linecap: round; filter: drop-shadow(0 1px 2px rgba(3, 10, 20, .8)); }
.mini-tele-caja { display: block; width: 100%; padding: 7px 7px 0; border: 2.5px solid var(--bp-acento); border-radius: 16px; background: #0E2A47;
  box-shadow: 0 0 0 4px rgba(23, 195, 178, .14), 0 12px 28px rgba(3, 10, 20, .6); transition: transform .18s ease, border-color .18s ease; }
.mini-tele-pantalla { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #05090E; }
.mini-tele-pantalla img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.mini-tele-pantalla img.ver { opacity: 1; }
.mini-tele-nieve { position: absolute; inset: 0; z-index: 1; background-size: cover; opacity: 0; }
.mini-tele.zapea .mini-tele-nieve { opacity: 1; }
.mini-tele-n { position: absolute; z-index: 2; left: 5px; top: 5px; padding: 2px 5px; border-radius: 4px; background: rgba(5, 9, 14, .8); color: #7FD8CF; font: 700 10px/1 var(--bp-f-mono); }
.mini-tele-pie { display: flex; align-items: center; justify-content: center; gap: 7px; height: 27px; font: 600 12.5px/1 var(--bp-f-display); white-space: nowrap; }
.mini-tele-led { width: 7px; height: 7px; border-radius: 50%; background: var(--bp-acento); box-shadow: 0 0 7px var(--bp-acento); }
.mini-tele:hover .mini-tele-caja { transform: translateY(-2px); border-color: #3FD3C4; }
.mini-tele:focus { outline: none; }
.mini-tele:focus-visible .mini-tele-caja { box-shadow: var(--bp-foco), 0 12px 28px rgba(3, 10, 20, .6); }
.tele-prendida .mini-tele, .sala-hoja .mini-tele { display: none !important; }

@media (max-width: 899px), (max-height: 600px) {
  .mini-tele-antena { position: absolute; top: -11px; left: 50%; width: 28px; height: 11px; margin: 0 0 0 -14px; stroke-width: 2.4; }
  .mini-tele-caja { padding: 4px; border-width: 2px; border-radius: 11px; }
  .mini-tele-pantalla { border-radius: 6px; }
  .mini-tele-n { left: 3px; top: 3px; padding: 1px 3px; font-size: 8px; }
  .mini-tele-pie { display: none; }
}
@media (min-width: 900px) and (max-height: 600px) { .mini-tele { width: 70px; bottom: 228px; } }

/* Bienvenida y recorrido guiado */
.intro, .guia { position: absolute; z-index: 25; left: 50%; bottom: 24px; transform: translateX(-50%); width: min(560px, calc(100% - 32px));
  background: rgba(14, 42, 71, .97); border: 1px solid var(--bp-borde-fuerte); border-radius: 18px; padding: 22px 24px; box-shadow: var(--bp-sombra-2); }
.intro[hidden], .guia[hidden], .panel[hidden] { display: none; }
.intro h2 { margin: 0 0 8px; font: 700 clamp(22px, 3vw, 28px)/1.12 var(--bp-f-display); letter-spacing: -.02em; }
.intro p { margin: 0 0 16px; color: var(--bp-texto-2); }
.intro-acciones { display: flex; flex-wrap: wrap; gap: 10px; }
.guia { padding: 18px 20px 16px; }
.guia-n { margin: 0; font: 700 12px/1 var(--bp-f-mono); color: var(--bp-acento-texto); }
.guia-t { margin: 6px 0 4px; font: 700 20px/1.2 var(--bp-f-display); padding-right: 36px; }
.guia-txt { margin: 0 0 14px; color: var(--bp-texto-2); font-size: 15px; }
.guia-acciones { display: flex; gap: 8px; flex-wrap: wrap; }
.guia-acciones .primario { margin-left: auto; }
.guia-salir, .panel-cerrar, .tele-cerrar { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px;
  border: 1px solid transparent; background: none; cursor: pointer; color: var(--bp-texto-2); }
.guia-salir:hover, .panel-cerrar:hover { border-color: var(--bp-borde-fuerte); color: var(--bp-texto); }
.guia-salir svg, .panel-cerrar svg, .tele-cerrar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* Panel */
.panel { position: absolute; z-index: 30; top: 16px; right: 16px; bottom: 16px; width: 440px; max-width: calc(100% - 32px); display: flex; flex-direction: column;
  background: var(--bp-superficie); border: 1px solid var(--bp-borde); border-radius: 18px; box-shadow: var(--bp-sombra-2); }
.panel-cab { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 0 8px 0 22px; border-bottom: 1px solid var(--bp-borde); }
.panel-nombre { min-width: 0; font: 600 12px/1.2 var(--bp-f-display); letter-spacing: .3em; text-transform: uppercase; color: var(--bp-texto-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-cab .panel-cerrar { position: static; flex: none; width: 44px; height: 44px; border-color: var(--bp-borde); }
.panel-cuerpo { flex: 1; overflow: auto; overscroll-behavior: contain; padding: 20px 24px 28px; border-radius: 0 0 18px 18px; }
.panel-cuerpo h2 { margin: 0; font: 700 32px/1.08 var(--bp-f-display); letter-spacing: -.025em; outline: none; }
.panel-cuerpo h3 { margin: 22px 0 8px; font: 600 12px/1.3 var(--bp-f-display); letter-spacing: .3em; text-transform: uppercase; color: var(--bp-texto-3); }
.panel-cuerpo p { margin: 0 0 12px; }
.panel-cuerpo h2 + p:not(.lema) { margin-top: 12px; }
.panel-cuerpo .lema { margin: 6px 0 14px; font: 500 17px/1.35 var(--bp-f-display); color: var(--bp-texto-2); }
.panel-cuerpo .estado { color: var(--bp-acento-texto); }
.ahora { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--bp-superficie-2); font-size: 14.5px; color: var(--bp-texto-2); }
.pulso { width: 9px; height: 9px; border-radius: 50%; background: var(--bp-acento); flex: none; animation: pulso 2s ease-out infinite; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(23, 195, 178, .55); } 100% { box-shadow: 0 0 0 10px rgba(23, 195, 178, 0); } }
.rasgos { margin: 0; padding-left: 20px; }
.rasgos li { margin: 4px 0; }
.rasgos li::marker { color: var(--bp-acento); }
.frase { margin: 18px 0 0; padding: 14px 16px; border-left: 3px solid var(--bp-acento); background: var(--bp-acento-suave); border-radius: 0 10px 10px 0;
  font: 500 18px/1.4 var(--bp-f-display); color: var(--bp-texto); }
.look { margin-top: 18px !important; font-size: 14px; color: var(--bp-texto-2); }
.fases-mini, .chips, .equipo, .puntos, .motor, .casos, .otros, .muro { list-style: none; margin: 0; padding: 0; }
.fases-mini { display: flex; flex-wrap: wrap; gap: 8px; }
.fases-mini li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 8px; background: var(--bp-superficie-2); font-size: 14px; }
.cod { font: 700 12.5px/1 var(--bp-f-mono); color: var(--bp-sobre-acento); background: var(--bp-acento); border-radius: 6px; padding: 5px 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; min-height: 40px; align-items: center; padding: 8px 14px; border-radius: var(--bp-radio-pill); border: 1.5px solid var(--bp-borde-fuerte);
  color: var(--bp-texto); text-decoration: none; font: 600 14px/1 var(--bp-f-texto); }
.chips a:hover { border-color: var(--bp-acento); }
.ficha-hero { position: relative; margin: -20px -24px 18px; padding: 16px 16px 0; min-height: 250px; border-radius: 0; overflow: hidden;
  background: var(--bp-fondo-marca); display: flex; align-items: flex-end; gap: 4px; }
.ficha-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(23, 195, 178, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 195, 178, .07) 1px, transparent 1px); background-size: 36px 36px; }
.ficha-pj { position: relative; width: 52%; height: 240px; }
.ficha-placa { position: relative; width: 48%; align-self: center; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .45)); margin-bottom: 30px; }
.media { position: relative; margin: -20px -24px 18px; aspect-ratio: 16 / 9; background: #091D33; border-radius: 0; overflow: hidden; }
.media video, .media > svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.media-sala svg { pointer-events: none; background: var(--bp-fondo-marca); }
/* Vista previa de un local: la sala de un proyecto (sin sus números) o el local de un caso por dentro */
.vista-sala:empty, .vista-local:empty { background: linear-gradient(110deg, #0E2A47 30%, #17446F 50%, #0E2A47 70%) 0 0 / 300% 100%; animation: cargando 1.4s linear infinite; }
@keyframes cargando { to { background-position: -150% 0; } }
.sin-pines .pin { display: none; }
.entrar-sala { margin: 4px 0 18px; }
.entrar-sala .bp-btn { width: 100%; justify-content: center; }
.media-grande { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: var(--bp-radio-pill);
  border: 1px solid rgba(242, 244, 247, .4); background: rgba(9, 29, 51, .82); color: var(--bp-texto); font: 600 14px/1 var(--bp-f-display); cursor: pointer; }
.media-grande svg { width: 16px; height: 16px; }
.media-grande:hover { border-color: var(--bp-acento); }
.puntos { display: grid; gap: 8px; margin: 14px 0 16px; }
.puntos li { padding: 10px 12px; border-radius: 10px; background: var(--bp-superficie-2); color: var(--bp-texto-2); font-size: 14.5px; line-height: 1.4; }
.puntos b { display: block; color: var(--bp-texto); font: 600 15px/1.3 var(--bp-f-display); }
.acciones { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 14px; }
.nota { font-size: 13.5px; color: var(--bp-texto-3); }
.equipo { display: flex; flex-wrap: wrap; gap: 8px; }
.equipo a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 12px 4px 4px; border-radius: 12px; border: 1px solid var(--bp-borde); color: var(--bp-texto-2); text-decoration: none; font-size: 13px; line-height: 1.25; }
.equipo a:hover { border-color: var(--bp-acento); }
.equipo b { display: block; color: var(--bp-texto); font: 600 14px/1.2 var(--bp-f-display); }
.equipo .avatar { width: 36px; height: 38px; }
.motor { display: grid; gap: 6px; margin: 12px 0 14px; }
.motor li { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 10px; background: var(--bp-superficie-2); }
.motor li > div { flex: 1; min-width: 0; font-size: 13.5px; color: var(--bp-texto-2); line-height: 1.35; }
.motor b { display: block; color: var(--bp-texto); font: 600 14.5px/1.3 var(--bp-f-display); }
.motor .quien { display: flex; }
.motor .quien a { display: block; border-radius: 8px; }
.motor .quien .avatar { width: 32px; height: 34px; display: block; }
.casos { display: grid; gap: 10px; }
.casos li { display: flex; gap: 12px; padding: 12px; border-radius: 12px; background: var(--bp-superficie-2); }
.casos .num { font: 700 14px/1 var(--bp-f-mono); color: var(--bp-sobre-acento); background: var(--bp-acento); border-radius: 6px; padding: 6px; height: fit-content; }
.casos b { font: 600 16px/1.3 var(--bp-f-display); }
.casos .rubro { display: block; font-size: 13px; color: var(--bp-texto-3); margin-bottom: 4px; }
.casos p { margin: 0 0 6px; font-size: 14.5px; color: var(--bp-texto-2); }
.casos .links { margin: 0; font-size: 14px; }
.otros { display: grid; gap: 10px; }
.otros li { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.otros span { font-size: 13.5px; color: var(--bp-texto-3); }
.muro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.muro a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border-radius: 12px; background: var(--bp-superficie-2); color: var(--bp-texto-2);
  text-decoration: none; font-size: 13px; text-align: center; border: 1px solid transparent; }
.muro a:hover { border-color: var(--bp-acento); }
.muro .avatar { width: 72px; height: 76px; }
.muro b { color: var(--bp-texto); font: 600 16px/1.2 var(--bp-f-display); }
.avatar { display: block; overflow: visible; border-radius: 50%; background: radial-gradient(circle at 50% 56%, rgba(213, 226, 238, .24) 0 58%, transparent 60%); }
.sprite-quieto { position: absolute; width: 0; height: 0; overflow: hidden; }
.sprite-quieto * { animation: none !important; }

/* Avatares chicos, fichas nuevas y la vitrina */
.avatar.mini { width: 26px; height: 26px; flex: none; }
.menu-chat { margin-top: 8px; border-color: var(--bp-borde-fuerte); background: none; }
.menu-chat:hover { background: var(--bp-superficie-2); }
.menu-tv { margin-top: 8px; }
.menu-lista .punto.libre { background: none !important; border: 2px dashed var(--bp-marca-cian); }
.panel-cuerpo .completo { margin: 4px 0 0; font: 500 14px/1.4 var(--bp-f-texto); color: var(--bp-texto-3); }
.panel-cuerpo .esencia { margin: 0 0 12px; font: 500 17px/1.4 var(--bp-f-display); color: var(--bp-texto); }
.ficha-ilus { height: 250px; margin-bottom: -6px; }
.ficha-ilus.mascota { height: 190px; align-self: center; margin-bottom: 20px; }
.acciones .bp-btn .avatar.mini { margin-left: -6px; }
.vitrina { list-style: none; margin: 12px 0 16px; padding: 0; display: grid; gap: 8px; }
.vitrina li { display: flex; gap: 12px; padding: 12px; border-radius: 12px; background: var(--bp-superficie-2); }
.vitrina .punto { width: 14px; height: 14px; border-radius: 4px; flex: none; margin-top: 4px; }
.vitrina .num { font: 700 13px/1 var(--bp-f-mono); color: var(--bp-sobre-acento); background: var(--bp-acento); border-radius: 6px; padding: 5px 6px; height: fit-content; }
.vitrina b { display: block; font: 600 16px/1.3 var(--bp-f-display); }
.vitrina span { display: block; font-size: 13px; color: var(--bp-texto-3); margin-bottom: 4px; }
.vitrina a { font-size: 14px; }
.golpe { min-height: 1.5em; font: 500 16px/1.4 var(--bp-f-display); color: var(--bp-texto-2); }

/* El chat de Plotty */
.chat { margin: 16px 0 6px; border: 1px solid var(--bp-borde-fuerte); border-radius: 16px; background: #0B2440; overflow: hidden; }
.chat-cab { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--bp-borde); background: var(--bp-superficie-2); }
.chat-cab .avatar { width: 40px; height: 40px; flex: none; }
.chat-cab b { display: block; font: 700 16px/1.2 var(--bp-f-display); }
.chat-cab span { display: block; font: 700 11px/1.3 var(--bp-f-mono); color: var(--bp-texto-3); letter-spacing: .08em; }
.chat-cab .antena { margin-left: auto; width: 12px; height: 12px; border-radius: 50%; background: var(--bp-borde-fuerte); box-shadow: 0 0 0 3px rgba(53, 103, 154, .3); }
.chat.califica .antena { background: var(--bp-cta); box-shadow: 0 0 0 3px rgba(255, 107, 74, .3), 0 0 14px rgba(255, 107, 74, .7); }
.chat-mensajes { list-style: none; margin: 0; padding: 14px 14px 4px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 15px; line-height: 1.4; }
.msg.plotty { align-self: flex-start; background: var(--bp-superficie-2); border-bottom-left-radius: 4px; }
.msg.tu { align-self: flex-end; background: var(--bp-acento); color: var(--bp-sobre-acento); font-weight: 600; border-bottom-right-radius: 4px; }
.chat-opciones { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px 14px; }
.chat-opciones:empty { display: none; }
.chat-opciones button { min-height: 44px; padding: 9px 14px; border-radius: var(--bp-radio-pill); border: 1.5px solid var(--bp-acento); background: none; color: var(--bp-texto);
  font: 600 14px/1.2 var(--bp-f-display); cursor: pointer; text-align: left; }
.chat-opciones button:hover { background: var(--bp-acento-suave); }
.chat-fin { display: flex; flex-wrap: wrap; gap: 10px; padding: 6px 14px 16px; }
/* «¿Prefieres que te escribamos?»: nombre y correo al final del chat (la consulta va a la bandeja de BiPlot) */
.chat-datos { flex-basis: 100%; display: grid; gap: 8px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--bp-borde); }
.chat-datos-titulo { margin: 0; font: 700 15px/1.3 var(--bp-f-display); color: var(--bp-texto-fuerte); }
.chat-datos-ayuda, .chat-datos-estado { margin: 0; font-size: 13px; line-height: 1.4; color: var(--bp-texto-2); }
.chat-datos-estado:empty { display: none; }
.chat-datos label { display: grid; gap: 4px; font-size: 13px; color: var(--bp-texto-2); }
.chat-datos input { min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--bp-borde-fuerte); background: var(--bp-fondo); color: var(--bp-texto); font: 16px/1.3 var(--bp-f-texto); }
.chat-datos input:focus { outline: none; border-color: var(--bp-acento); box-shadow: var(--bp-foco); }
.chat-datos .bp-btn { justify-self: start; }
.chat-datos-listo { margin: 0; font-size: 14px; line-height: 1.45; color: var(--bp-acento-texto); }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.guia-n { display: flex; align-items: center; gap: 6px; }
.guia-atlas .avatar { width: 30px; height: 30px; background: none; }

/* La sala de cada empresa: el local por dentro, sobre la calle */
.sala { position: absolute; inset: 0; z-index: 14; background: var(--bp-fondo-marca); opacity: 0; transition: opacity .35s ease; }
.sala.visible { opacity: 1; }
.sala[hidden] { display: none; }
.sala::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(23, 195, 178, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 195, 178, .05) 1px, transparent 1px); background-size: 72px 72px; }
.sala-marco { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
.sala-dibujo-caja { position: absolute; inset: 64px 16px 60px; transform: scale(.94); transition: transform .45s ease; }
.sala.visible .sala-dibujo-caja { transform: none; }
.sala-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.sala-volver { position: absolute; top: 16px; left: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 16px 10px 12px;
  border-radius: var(--bp-radio-pill); border: 1.5px solid var(--bp-borde-fuerte); background: rgba(14, 42, 71, .94); color: var(--bp-texto); font: 600 15px/1 var(--bp-f-display);
  cursor: pointer; box-shadow: var(--bp-sombra-2); }
.sala-volver:hover, .salir-oficina:hover { border-color: var(--bp-acento); }
/* Con la oficina abierta: volver a la calle (arriba, al centro del espacio libre) */
.salir-oficina { position: absolute; z-index: 16; top: 16px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  padding: 10px 18px 10px 14px; border-radius: var(--bp-radio-pill); border: 1.5px solid var(--bp-borde-fuerte); background: rgba(14, 42, 71, .94); color: var(--bp-texto);
  font: 600 15px/1 var(--bp-f-display); cursor: pointer; box-shadow: var(--bp-sombra-2); }
.salir-oficina[hidden] { display: none; }
.salir-oficina svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.en-sala .salir-oficina, .panel-abierto .salir-oficina { display: none; }
@media (min-width: 900px) { .panel-abierto .salir-oficina:not([hidden]) { display: inline-flex; left: calc(50% - 200px); } }
.sala-volver svg, .sala-vecinos svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sala-ayuda { position: absolute; left: 16px; bottom: 16px; margin: 0; font: 700 12px/1 var(--bp-f-mono); letter-spacing: .04em; color: var(--bp-sobre-acento); background: var(--bp-marca-cian);
  border-radius: 8px; padding: 9px 11px; }
.sala-vecinos { position: absolute; right: 16px; bottom: 12px; display: flex; gap: 8px; }
.sala-vecinos button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; border-radius: var(--bp-radio-pill); border: 1.5px solid var(--bp-borde-fuerte);
  background: rgba(14, 42, 71, .94); color: var(--bp-texto); font: 600 14px/1 var(--bp-f-display); cursor: pointer; }
.sala-vecinos button:hover { border-color: var(--bp-acento); }
.sala-vecinos button[hidden] { display: none; }
/* Los puntos de la sala (uno por módulo) */
.pin { cursor: pointer; outline: none; }
.pin-cabeza { transition: transform .2s; transform-box: fill-box; transform-origin: 50% 100%; }
.pin:hover .pin-cabeza, .pin:focus-visible .pin-cabeza { transform: scale(1.14); }
.pin.activo .pin-cabeza { transform: scale(1.22); }
.pin.activo .pin-cabeza path, .pin:focus-visible .pin-cabeza path { stroke: #F2F4F7; stroke-width: 3; }
.pin-onda { transform-box: fill-box; transform-origin: center; animation: onda 1.9s ease-out infinite; }
.pin:not(.activo) .pin-onda { animation-duration: 2.6s; opacity: .7; }
@keyframes onda { 0% { transform: scale(.6); opacity: .95; } 100% { transform: scale(2.1); opacity: 0; } }
.quieto .pin-onda { animation: none; opacity: 0; }
/* El panel de la sala */
.sala-cab { display: grid; gap: 6px; border-left: 4px solid var(--acento); padding-left: 14px; margin-bottom: 14px; }
.sala-cab .bp-etiqueta { margin: 0; letter-spacing: .18em; }
.sala-cliente { margin: 0 !important; font: 500 15px/1.3 var(--bp-f-texto); color: var(--bp-texto-2); }
.chip { display: inline-flex; align-items: center; width: fit-content; font: 700 11px/1 var(--bp-f-mono); letter-spacing: .06em; text-transform: uppercase; border-radius: 99px; padding: 6px 10px;
  background: rgba(23, 195, 178, .14); color: var(--bp-acento-texto); border: 1px solid rgba(127, 216, 207, .35); }
.sala-bloque { padding-top: 4px; }
.sala-bloque + .sala-bloque, .sala-construimos { border-top: 1px solid var(--bp-borde); margin-top: 18px; }
.visor { display: grid; gap: 10px; }
.visor img, .visor-sala { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid var(--bp-borde-fuerte); background: #0B1726; }
.visor-sala { background: var(--bp-fondo-marca); }
.visor-txt { display: grid; gap: 3px; }
.visor-txt .mod { font: 700 11px/1.4 var(--bp-f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--acento, var(--bp-acento-texto)); }
.visor-txt b { font: 600 18px/1.25 var(--bp-f-display); }
.visor-txt span:last-child { font-size: 14.5px; color: var(--bp-texto-2); }
.tira { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; margin: 12px 0 10px; }
.tira button { position: relative; padding: 0; border: 1.5px solid var(--bp-borde); border-radius: 8px; overflow: hidden; background: #0B1726; cursor: pointer; aspect-ratio: 16 / 10; min-height: 32px; }
.tira img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.tira .n { position: absolute; left: 4px; top: 4px; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--acento); color: #0B1726; font: 700 10.5px/1 var(--bp-f-mono); }
.tira.sin-img { grid-template-columns: 1fr; }
.tira.sin-img button { aspect-ratio: auto; min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 8px 10px; text-align: left; }
.tira.sin-img .n { position: static; flex: none; }
.tira .m { font: 600 14px/1.2 var(--bp-f-display); color: var(--bp-texto); }
.tira button[aria-pressed="true"] { border-color: var(--acento); box-shadow: 0 0 0 2px var(--acento); }
.tira button[aria-pressed="true"] img { opacity: 1; }
.sala-enlace { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--acento);
  color: var(--bp-texto); text-decoration: none; font: 600 15.5px/1.25 var(--bp-f-display); margin-bottom: 8px; }
.sala-enlace:hover { background: rgba(255, 255, 255, .04); }
.sala-enlace small { display: block; font: 500 12.5px/1.3 var(--bp-f-texto); color: var(--bp-texto-3); }
.sala-enlace .ico svg { width: 18px; height: 18px; display: block; }
.medicion { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.medicion li { display: grid; gap: 5px; padding: 10px 6px; border-radius: 10px; border: 1.5px dashed var(--bp-borde-fuerte); text-align: center; }
.medicion b { font: 600 14px/1 var(--bp-f-display); }
.medicion span { font: 700 10px/1 var(--bp-f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--bp-texto-3); }
.enlace-copia { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 12px; background: #0B1726; border: 1px solid var(--bp-borde-fuerte); margin-bottom: 10px; }
.enlace-copia code { flex: 1; min-width: 0; font: 500 13.5px/1.3 var(--bp-f-mono); color: var(--bp-texto); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.enlace-copia button { flex: none; min-height: 40px; border: 0; border-radius: 9px; padding: 9px 14px; background: var(--bp-acento); color: var(--bp-sobre-acento); font: 700 13.5px/1 var(--bp-f-display); cursor: pointer; }
.sala-comparte .bp-btn { margin-bottom: 10px; }
.sala-final { margin-top: 20px; padding: 16px; border-radius: 14px; background: linear-gradient(135deg, rgba(255, 107, 74, .14), rgba(23, 195, 178, .08)); border: 1px solid rgba(255, 107, 74, .4); }
.sala-final p { margin: 0 0 10px; font: 600 17px/1.3 var(--bp-f-display); }
.sala-final .acciones { margin: 0; }
/* Directorio y El Archivo: los locales de cada calle */
.lugares { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.lugares li, .lugares a { display: flex; align-items: center; gap: 10px; }
.lugares li { padding: 8px 10px; border-radius: 10px; background: var(--bp-superficie-2); }
.lugares a { flex: 1; min-width: 0; min-height: 40px; color: var(--bp-texto); text-decoration: none; }
.directorio .lugares li { padding: 0 10px; }
.lugares .punto { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.lugares .punto.libre { background: none !important; border: 2px dashed var(--bp-marca-cian); }
.lugares .mt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.lugares .mt b { font: 600 15px/1.25 var(--bp-f-display); }
.lugares .mt > span { font-size: 13px; color: var(--bp-texto-3); line-height: 1.3; }
.lugares .mt a { font-size: 14px; color: var(--bp-acento-texto); min-height: 32px; }
.archivo-busca { margin: 14px 0 6px; }

/* ── La sala propia (salaPropia en datos.js): la sala de cada empresa como su propia casa ──
   Sin números ni panel: la sala llena el espacio libre y se recorre; lo que se toca brilla en su color con su nombre y
   abre su tarjeta; la gente habla en burbujas; abajo, la barra de la empresa. Los colores y la letra de cada empresa
   vienen de datos.js (colores y fuente de su salaPropia); estos, los de Nu Home, son los de partida. BiPlot conserva los
   suyos en su tarjeta. */
.sala, .sala-frente { --p-fondo: #F6EFDF; --p-fondo-2: #EADFC6; --p-tinta: #1C1917; --p-tinta-2: #3A3530; --p-oro: #E0B341; --p-ceja: #7A5F12; --p-borde: #CFC1A3;
  --p-brillo: 224, 179, 65; --p-sub: #5E5446; --p-pie: #6B6152; --p-velo: rgba(28, 25, 23, .07); --p-hover: #2B2724; --p-ceja-burbuja: var(--p-ceja);
  --p-btn-fondo: var(--p-tinta); --p-btn-tinta: var(--p-fondo); --p-btn-punto: var(--p-oro);
  --p-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif; --p-peso: 600; --p-espacio: .14em; --p-caja: none; --p-titulo-tam: 29px;
  --p-sub-letra: italic 500 13.5px/1 var(--p-serif); }
.en-sala-propia .sala-dibujo-caja { inset: 0; transform: none; transition: none; touch-action: none; cursor: grab; outline: none; }
.en-sala-propia .sala-dibujo-caja.arrastrando { cursor: grabbing; }
.en-sala-propia .sala-dibujo-caja.sobre { cursor: pointer; }
.en-sala-propia .sala-dibujo-caja:focus-visible { box-shadow: inset 0 0 0 3px rgba(var(--p-brillo), .75); }
.en-sala-propia .sala-ayuda, .sala-avances .sala-ayuda { display: none; }
.en-sala-propia .sala-vecinos { top: 16px; bottom: auto; right: 16px; }
.en-sala-propia .sala-volver { left: var(--volver-izq, 16px); }
.en-sala-propia .controles { display: flex; }
.sala-toques, .sala-resalte, .sala-anillo { pointer-events: none; }
.zona-sala polygon, .quien-sala rect { fill: transparent; stroke: none; }
.zona-sala:focus, .quien-sala:focus { outline: none; }
/* Lo que se toca: un halo difuso en el color de la empresa y el contorno punteado encima (el mismo grosor a cualquier distancia) */
.resalte-brillo { fill: rgba(var(--p-brillo), .16); stroke: var(--p-oro); stroke-width: 12; stroke-linejoin: round; opacity: .55; filter: url(#sala-brillo); }
.resalte-linea { fill: none; stroke: var(--p-oro); stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 10 7; vector-effect: non-scaling-stroke; }
.anillo-quien { fill: rgba(var(--p-brillo), .22); stroke: var(--p-oro); stroke-width: 2; vector-effect: non-scaling-stroke; }
.sala-dibujo .andante { transition: opacity .22s ease; }
.sala-dibujo .andante.salta { opacity: 0; }
/* Encima del dibujo: burbujas y la etiqueta de la zona */
.sala-capa { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.burbuja { position: absolute; left: 0; top: 0; max-width: 240px; padding: 9px 12px 10px; border-radius: 14px; background: #FFFFFF; color: #13202E;
  font: 500 13.5px/1.36 var(--bp-f-texto); box-shadow: 0 8px 24px rgba(4, 12, 22, .35); opacity: 0; transition: opacity .35s ease; }
.burbuja::after { content: ""; position: absolute; left: var(--cola, 50%); bottom: -7px; width: 14px; height: 14px; margin-left: -7px; background: inherit; transform: rotate(45deg); border-radius: 0 0 3px 0; }
.burbuja.visible { opacity: 1; }
.burbuja.fuera { visibility: hidden; }
.burbuja.sin-cola::after { display: none; }
.burbuja.corta { white-space: nowrap; }
.burbuja small { display: block; margin-bottom: 3px; font: 700 10.5px/1.25 var(--bp-f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--p-ceja-burbuja); }
.burbuja.bp { background: var(--bp-superficie); color: var(--bp-texto); border: 1.5px solid var(--bp-marca-cian); pointer-events: auto; cursor: pointer; }
.burbuja.bp::after { bottom: -8.5px; border-right: 1.5px solid var(--bp-marca-cian); border-bottom: 1.5px solid var(--bp-marca-cian); }
.burbuja.bp small { color: #7FD8CF; }
.burbuja.de-guia { max-width: 290px; padding: 11px 14px 12px; background: var(--p-fondo); color: var(--p-tinta); border: 1.5px solid var(--p-oro); font-size: 14.5px; }
.burbuja.de-guia::after { bottom: -8.5px; border-right: 1.5px solid var(--p-oro); border-bottom: 1.5px solid var(--p-oro); }
.burbuja.de-guia small { color: var(--p-ceja); }
.sala-etiqueta { position: absolute; left: 0; top: 0; padding: 7px 14px 8px; border-radius: 99px; background: var(--p-tinta); color: var(--p-fondo); border: 1.5px solid var(--p-oro);
  font: var(--p-peso) 17px/1 var(--p-serif); letter-spacing: .01em; text-transform: var(--p-caja); white-space: nowrap; box-shadow: 0 0 0 6px rgba(var(--p-brillo), .18), 0 8px 20px rgba(4, 12, 22, .35); }
.sala-etiqueta[hidden] { display: none; }
.sala-etiqueta { transition: opacity .2s; }
.sala-etiqueta.tapada { opacity: 0; }
/* La barra de la empresa: su marca, su frase y sus botones negros y dorados */
.sala-barra { position: absolute; z-index: 3; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 16px; width: max-content;
  max-width: calc(100% - 184px); padding: 10px 12px 10px 20px; border-radius: 18px; background: var(--p-fondo); color: var(--p-tinta); box-shadow: 0 18px 40px rgba(4, 12, 22, .45); }
.sala-barra[hidden] { display: none; }
.sp-marca { margin: 0; flex: none; display: flex; flex-direction: column; align-items: flex-start; }
/* La marca de la barra va en la letra de la sala o, si trae la suya (fuente.logo en datos.js, como la gótica de Rococoro), en esa */
.sp-logo { font: var(--p-peso) 23px/1 var(--p-logo, var(--p-serif)); letter-spacing: var(--p-espacio); text-transform: var(--p-caja); }
.sp-sub { margin-top: 4px; font: var(--p-sub-letra); letter-spacing: .05em; color: var(--p-sub); }
.sp-sep { flex: none; width: 1px; align-self: stretch; margin: 4px 0; background: var(--p-borde); }
.sp-txt { margin: 0; flex: 1 1 170px; min-width: 170px; max-width: 320px; font: 500 14px/1.4 var(--bp-f-texto); color: var(--p-tinta-2); }
.sp-acciones { flex: none; display: flex; flex-wrap: wrap; gap: 8px; }
/* Si no caben en una línea (en una pantalla mediana, con el menú abierto), los botones bajan a una segunda línea en vez de
   salirse de la barra (la frase parte en su ancho mínimo, así que sólo bajan cuando de verdad no caben) */
.sala-barra:not(.recorriendo) { flex-wrap: wrap; row-gap: 10px; }
.sp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 99px; border: 1.5px solid var(--p-tinta);
  font: 600 14.5px/1.15 var(--bp-f-texto); text-decoration: none; white-space: nowrap; cursor: pointer; }
.sp-btn.negro { background: var(--p-btn-fondo); border-color: var(--p-btn-fondo); color: var(--p-btn-tinta); }
.sp-btn.negro::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--p-btn-punto); }
.sp-btn.negro:hover { background: var(--p-hover); border-color: var(--p-hover); }
.sp-btn.borde { background: transparent; color: var(--p-tinta); }
.sp-btn.borde:hover { background: var(--p-velo); }
.sp-btn[disabled] { opacity: .38; cursor: default; }
.sala-barra :focus-visible, .sala-tarjeta.empresa :focus-visible { box-shadow: 0 0 0 2px var(--p-fondo), 0 0 0 4.5px var(--p-tinta); }
/* El título de la tarjeta recibe el foco al abrirse (para lectores de pantalla), sin marco */
.sala-tarjeta #sala-tarjeta-t:focus, .sala-tarjeta #sala-tarjeta-t:focus-visible { outline: none; box-shadow: none; }
/* El recorrido con una asesora: la barra lleva sus controles */
.sala-barra.recorriendo { padding-right: 60px; }
.sp-rec { min-width: 0; flex: 1 1 auto; }
.sp-rec-n { margin: 0 0 4px; font: 700 10.5px/1.3 var(--bp-f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--p-ceja); }
.sp-rec-t { margin: 0; font: var(--p-peso) 22px/1.1 var(--p-serif); text-transform: var(--p-caja); }
.sp-cerrar { position: absolute; top: 50%; right: 8px; width: 44px; height: 44px; margin-top: -22px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none;
  color: var(--p-tinta); cursor: pointer; }
.sp-cerrar:hover { background: var(--p-velo); }
.sp-cerrar svg, .tarjeta-cerrar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
/* Las tarjetas: junto a lo que se tocó. La de la empresa en crema; la de BiPlot, en sus colores */
.sala-tarjeta { position: absolute; z-index: 4; left: 0; top: 0; width: 360px; max-width: calc(100% - 32px); max-height: calc(100% - 88px); display: flex; flex-direction: column;
  border-radius: 16px; box-shadow: 0 22px 50px rgba(4, 12, 22, .5); opacity: 0; transition: opacity .25s ease; }
.sala-tarjeta.visible { opacity: 1; }
.sala-tarjeta[hidden] { display: none; }
.tarjeta-cuerpo { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 18px 18px 18px; border-radius: inherit; }
.tarjeta-cerrar { position: absolute; z-index: 1; top: 6px; right: 6px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.tarjeta-cerrar span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--p-velo); }
.tarjeta-cerrar:hover span { background: rgba(28, 25, 23, .14); background: color-mix(in srgb, var(--p-tinta) 14%, transparent); }
.sala-tarjeta .ceja { margin: 2px 44px 0 0; font: 700 11px/1.3 var(--bp-f-mono); letter-spacing: .14em; text-transform: uppercase; }
.sala-tarjeta.empresa { background: var(--p-fondo); color: var(--p-tinta); }
.sala-tarjeta.empresa .ceja { color: var(--p-ceja); }
.sala-tarjeta.empresa h3 { margin: 8px 36px 10px 0; font: var(--p-peso) var(--p-titulo-tam)/1.08 var(--p-serif); letter-spacing: -.005em; text-transform: var(--p-caja); text-wrap: balance; outline: none; }
.sala-tarjeta.empresa p { margin: 0 0 12px; font: 400 14.5px/1.5 var(--bp-f-texto); color: var(--p-tinta-2); }
.tarjeta-chips { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tarjeta-chips li { padding: 8px 10px; border-radius: 99px; background: var(--p-fondo-2); color: var(--p-tinta-2); font: 600 12.5px/1 var(--bp-f-texto); }
.tarjeta-botones { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 2px; }
.tarjeta-img { margin: 0 0 12px; }
.tarjeta-img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid var(--p-borde); background: var(--p-fondo-2); }
.tarjeta-img figcaption { margin-top: 5px; font: 500 12px/1.3 var(--bp-f-texto); color: var(--p-pie); }
/* BiPlot.TV: la programación (en el panel de la calle y en la cartelera del canal) y el video de cada tarjeta */
.programas { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 8px; }
.programa { width: 100%; display: grid; grid-template-columns: 104px minmax(0, 1fr) 20px; align-items: center; gap: 12px; padding: 6px 12px 6px 6px; border: 1px solid var(--bp-borde);
  border-radius: 12px; background: rgba(255, 255, 255, .03); color: var(--bp-texto); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.programa img { display: block; width: 104px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 7px; background: #05090E; }
.programa-txt { display: grid; gap: 3px; }
.programa-txt .ceja { margin: 0; font: 700 10px/1.25 var(--bp-f-mono); letter-spacing: .1em; text-transform: uppercase; color: #7FD8CF; }
.programa-txt b { font: 700 15px/1.2 var(--bp-f-display); }
.programa-txt .dur { font: 700 11px/1 var(--bp-f-mono); color: var(--bp-texto-3); }
.programa .ico { display: grid; place-items: center; color: var(--bp-acento); }
.programa .ico svg { width: 18px; height: 18px; }
.programa:hover, .programa:focus-visible { border-color: var(--bp-acento); background: var(--bp-acento-suave); }
.sala-tarjeta .programa { border-color: var(--p-borde); color: var(--p-tinta); }
.sala-tarjeta .programa-txt .ceja { margin: 0; color: var(--p-ceja); }
.sala-tarjeta .programa-txt .dur { color: var(--p-pie); }
.sala-tarjeta .tarjeta-video { margin-bottom: 12px; }
/* Una foto (una pantalla real) se toca para verla en grande y completa */
.ver-foto { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 10px; background: none; cursor: zoom-in; }
.ver-foto img { display: block; }
.ver-ico { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(10, 27, 46, .78);
  color: #F2F4F7; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); transition: transform .15s ease, background .15s ease; }
.ver-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ver-foto:hover .ver-ico, .ver-foto:focus-visible .ver-ico { transform: scale(1.08); background: rgba(10, 27, 46, .92); }
.sala-tarjeta.bp { width: 420px; background: var(--bp-superficie); color: var(--bp-texto); border: 1px solid var(--bp-borde-fuerte); }
.sala-tarjeta.bp .tarjeta-cerrar span { background: rgba(255, 255, 255, .07); }
.sala-tarjeta.bp .tarjeta-cerrar:hover span { background: rgba(255, 255, 255, .14); }
.sala-tarjeta.bp .ceja { color: #7FD8CF; }
.sala-tarjeta.bp h3 { margin: 8px 40px 4px 0; font: 700 27px/1.1 var(--bp-f-display); letter-spacing: -.02em; outline: none; }
.sala-tarjeta.bp h3 .chip { margin-left: 6px; vertical-align: 5px; }
.sala-tarjeta.bp p { margin: 0 0 12px; font-size: 14.5px; color: var(--bp-texto-2); }
.sala-tarjeta.bp .tarjeta-sub { margin-bottom: 10px; font: 500 14px/1.3 var(--bp-f-texto); color: var(--bp-texto-3); }
.sala-tarjeta.bp h4 { margin: 16px 0 8px; font: 600 11.5px/1.3 var(--bp-f-display); letter-spacing: .28em; text-transform: uppercase; color: var(--bp-texto-3); }
.sala-tarjeta.bp .tarjeta-botones { margin-bottom: 4px; }
.tarjeta-bloque { margin-top: 16px; border-top: 1px solid var(--bp-borde); }
.sala-tarjeta .media { margin: 0 0 10px; border-radius: 10px; }
.sala-tarjeta .media-grande, .sala-tarjeta .enlace-copia button, .sala-tarjeta .bp-cta { min-height: 44px; }
.sala-tarjeta .puntos { margin: 0 0 6px; }
.sala-tarjeta .sala-final { margin-top: 18px; }
.tira-bp { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 6px; margin: 10px 0 8px; }
.tira-bp button { min-height: 44px; display: flex; flex-direction: column; gap: 5px; padding: 0 0 6px; border: 1.5px solid var(--bp-borde); border-radius: 8px; overflow: hidden; background: #0B1726;
  color: var(--bp-texto-2); font: 600 11.5px/1.2 var(--bp-f-display); text-align: center; cursor: pointer; }
.tira-bp img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; opacity: .72; }
.tira-bp span { padding: 0 4px; }
.tira-bp button:hover { border-color: var(--bp-acento); }
.tira-bp button[aria-pressed="true"] { border-color: var(--bp-acento); box-shadow: 0 0 0 2px var(--bp-acento); color: var(--bp-texto); }
.tira-bp button[aria-pressed="true"] img { opacity: 1; }
/* Los avances del CRM (crm.js) en la tarjeta de BiPlot: una barra discreta con el porcentaje, quién lo lleva, los módulos
   liberados (su imagen entera, sea de pantalla o de celular) y la línea de cada integrante. En cian, nunca en coral */
.avance-fila { display: flex; align-items: center; gap: 12px; margin: 10px 0 8px; }
.avance-barra { flex: 1; min-width: 0; height: 6px; border-radius: 99px; background: rgba(242, 244, 247, .12); overflow: hidden; }
.avance-barra i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--bp-acento); }
.avance-pct { flex: none; font: 700 15px/1 var(--bp-f-mono); color: var(--bp-texto); }
.oficina p.avance-quien { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font: 500 13.5px/1.35 var(--bp-f-texto); color: var(--bp-texto-2); }
.avance-quien .cod { flex: none; }
.modulos-crm .visor { margin-top: 10px; }
.visor img.crm { object-fit: contain; }
.equipo-avance { display: grid; gap: 10px; }
.equipo-avance li { display: grid; gap: 5px; min-width: 0; }
.equipo-avance a { justify-self: start; }
.oficina .equipo-avance p.ahora-linea { margin: 0; padding-left: 2px; font-size: 13.5px; line-height: 1.4; color: var(--bp-texto-2); }
/* En el museo (El Archivo): las diez fases o la línea de tiempo en una tarjeta, y el fichero con su buscador, en los colores de la sala */
.tarjeta-fases { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 5px; }
.tarjeta-fases li { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 8px 4px 10px; border-radius: 10px; background: var(--p-fondo-2); }
.tarjeta-fases .cod { flex: none; min-width: 34px; font: 700 11.5px/1.2 var(--bp-f-mono); color: var(--p-fondo); background: var(--p-tinta); text-align: center; }
.tarjeta-fases b { flex: 1; min-width: 0; font: 600 14px/1.3 var(--bp-f-texto); color: var(--p-tinta); }
.tarjeta-fases b span { display: block; font-weight: 400; font-size: 12.5px; color: var(--p-pie); }
.tarjeta-fases .quien { flex: none; display: flex; }
.tarjeta-fases .avatar { width: 30px; height: 32px; display: block; }
/* Atlas, bajo las diez fases: las ve todas a la vez, en una fila entera, punteada */
.tarjeta-fases .fase-360 { grid-column: 1 / -1; background: none; border: 1.5px dashed var(--p-oro, #17C3B2); }
.tarjeta-hitos .cod { min-width: 50px; }
.tarjeta-fichero { margin: 0 0 8px; }
.tarjeta-fichero .archivo-busca { margin: 4px 0 6px; }
.tarjeta-fichero .menu-busca svg { stroke: var(--p-pie); }
.tarjeta-fichero .menu-busca input { background: #FFFFFF; color: var(--p-tinta); border-color: var(--p-borde); }
.tarjeta-fichero .menu-busca input::placeholder { color: var(--p-pie); }
.tarjeta-fichero .menu-busca input:focus-visible { border-color: var(--p-tinta); }
.tarjeta-fichero h4 { margin: 12px 0 6px; font: 700 11px/1.3 var(--bp-f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--p-pie); }
.tarjeta-fichero .lugares li { background: #FFFFFF; border: 1px solid var(--p-borde); }
.tarjeta-fichero .lugares .mt b { color: var(--p-tinta); }
.tarjeta-fichero .lugares .mt > span { color: var(--p-pie); }
.tarjeta-fichero .lugares .mt a { color: var(--p-ceja); }
.tarjeta-fichero .nota { margin: 8px 0 0; color: var(--p-pie); }
.ir-sala { justify-self: start; min-height: 36px; padding: 0; border: 0; background: none; font: 600 14px/1.2 var(--bp-f-texto); color: var(--p-ceja); text-align: left;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ir-sala:hover { color: var(--p-tinta); }
/* En celular la tarjeta es una hoja que sube desde abajo (sin los controles de la cámara encima) */
.sala-tarjeta.hoja { top: auto; bottom: 0; left: 0; right: 0; width: auto; max-width: none; max-height: 62%; border-radius: 18px 18px 0 0; transform: none !important; }
.sala-tarjeta.hoja .tarjeta-cuerpo { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
.sala-hoja .controles { display: none !important; }
@media (max-width: 899px) {
  .en-sala-propia .recorrer { display: none; }
  .en-sala-propia .controles { bottom: calc(var(--alto-barra, 0px) + 26px); }
}
@media (max-width: 699px) {
  .sala-barra { left: 8px; right: 8px; bottom: 8px; transform: none; width: auto; max-width: none; flex-wrap: wrap; gap: 6px 12px; padding: 10px 12px 12px; border-radius: 16px; }
  .sp-sep { display: none; }
  .sp-logo { font-size: 20px; }
  .sp-sub { font-size: 12.5px; }
  .sp-txt { flex: 1 1 0; min-width: 0; max-width: none; font-size: 12.5px; line-height: 1.35; }
  .sp-acciones { flex: 1 1 100%; flex-wrap: nowrap; }
  .sp-acciones .sp-btn { flex: 1 1 0; min-width: 0; padding: 8px 10px; font-size: 13.5px; white-space: normal; text-align: center; }
  .sala-barra.recorriendo { padding-right: 12px; }
  .sala-barra.recorriendo .sp-rec { flex: 1 1 100%; padding-right: 40px; }
  .sp-rec-t { font-size: 20px; }
  .sp-cerrar { top: 4px; right: 4px; margin-top: 0; }
  .burbuja { max-width: 200px; font-size: 13px; }
  .burbuja.de-guia { max-width: 240px; font-size: 13.5px; }
  .sala-etiqueta { font-size: 15.5px; padding: 6px 12px 7px; }
}

/* La vista de frente: lo que es una imagen (un mural, una pizarra, un cartel, una foto, una pantalla) se abre derecho,
   en grande y completo, con la sala oscurecida detrás. Debajo, lo que cuenta su tarjeta (al lado, si la imagen es angosta),
   en los colores de la sala. Lo muy apaisado (la línea de tiempo), en celular, trae además sus fechas en texto. */
.sala-frente { position: fixed; inset: 0; z-index: 58; display: grid; place-items: center;
  padding: max(72px, calc(env(safe-area-inset-top) + 64px)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  opacity: 0; transition: opacity .22s ease; }
.sala-frente.visible { opacity: 1; }
.sala-frente[hidden] { display: none; }
.frente-velo { position: absolute; inset: 0; background: rgba(4, 12, 22, .64); }
.frente-cerrar { position: absolute; z-index: 2; top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); width: 48px; height: 48px;
  display: grid; place-items: center; border: 1.5px solid rgba(242, 244, 247, .3); border-radius: 50%; background: rgba(10, 27, 46, .88); color: #F2F4F7; cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .4); }
.frente-cerrar:hover { border-color: var(--bp-acento); }
.frente-cerrar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.frente-caja { position: relative; z-index: 1; width: min(1600px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px;
  overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; transform: translateY(10px) scale(.985); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.sala-frente.visible .frente-caja { transform: none; }
.frente-lamina { flex: none; margin: 0; width: min(100%, calc(50vh * var(--frente-prop)), var(--frente-max, 100%)); }
.frente-marco { border-radius: 14px; overflow: hidden; background: var(--frente-fondo, transparent); box-shadow: 0 28px 70px rgba(0, 0, 0, .5); }
.frente-marco > svg, .frente-marco > img { display: block; width: 100%; height: auto; aspect-ratio: var(--frente-prop); }
/* Una vitrina en 3D, girando sobre su pedestal: un foco sobre el muro oscuro del museo y sus botones */
.v3d-marco { background: radial-gradient(ellipse 72% 62% at 50% 40%, #21476E 0%, #132F4C 55%, #0B1D31 100%); }
.v3d { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.v3d.arrastrando { cursor: grabbing; }
.v3d-mandos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.v3d-mandos button { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding: 0 14px; border: 1.5px solid rgba(242, 244, 247, .3); border-radius: 99px;
  background: rgba(10, 27, 46, .88); color: #F2F4F7; font: 600 14px/1 var(--bp-f-display); cursor: pointer; }
.v3d-mandos button[data-v3d="izq"], .v3d-mandos button[data-v3d="der"] { padding: 0; width: 44px; }
.v3d-mandos button:hover { border-color: var(--bp-acento); }
.v3d-mandos svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.v3d-ayuda { font: 500 12.5px/1.3 var(--bp-f-texto); color: #D5DEE8; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.frente-pie { margin-top: 8px; font: 500 12.5px/1.35 var(--bp-f-texto); color: #D5DEE8; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
/* (las fechas de la línea de tiempo, en texto: para lectores de pantalla y, en celular, a la vista) */
.frente-lista { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* (el texto, del mismo ancho que la imagen; si trae una pantalla real, va a su lado) */
.frente-texto { flex: none; width: min(100%, max(640px, min(calc(50vh * var(--frente-prop)), var(--frente-max, 100%)))); display: flex; align-items: flex-start; gap: 26px;
  padding: 18px 22px 20px; border-radius: 16px; background: var(--p-fondo); color: var(--p-tinta); box-shadow: 0 22px 50px rgba(4, 12, 22, .45); }
.frente-cuerpo { flex: 1 1 auto; min-width: 0; align-self: stretch; container-type: inline-size; }
.frente-cuerpo > :last-child { margin-bottom: 0; }
/* Una pantalla del rincón de BiPlot, en grande: el texto en los colores de BiPlot */
.frente-texto.bp { background: var(--bp-superficie); color: var(--bp-texto); border: 1px solid var(--bp-borde-fuerte); }
.frente-texto.bp .ceja { color: #7FD8CF; }
.frente-texto.bp h3 { font: 700 26px/1.1 var(--bp-f-display); letter-spacing: -.02em; text-transform: none; }
.frente-texto.bp p { color: var(--bp-texto-2); }
.frente-texto .ceja { margin: 0; font: 700 11px/1.3 var(--bp-f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--p-ceja); }
.frente-texto h3 { margin: 8px 0 10px; font: var(--p-peso) var(--p-titulo-tam)/1.08 var(--p-serif); letter-spacing: -.005em; text-transform: var(--p-caja); text-wrap: balance; outline: none; }
.frente-texto h3:focus, .frente-texto h3:focus-visible { outline: none; box-shadow: none; }
.frente-texto p { max-width: 68ch; margin: 0 0 12px; font: 400 15px/1.5 var(--bp-f-texto); color: var(--p-tinta-2); }
.frente-texto .tarjeta-img { flex: 0 1 400px; min-width: 0; margin: 0; }
/* Las diez fases: en fila, con quién lleva cada una (sus nombres están en la lámina de arriba); si no cabe, en dos columnas o en una */
.frente-texto .tarjeta-botones + .tarjeta-fases { margin: 16px 0 0; }
.frente-texto .tarjeta-fases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@container (max-width: 459px) { .frente-texto .tarjeta-fases { grid-template-columns: minmax(0, 1fr); } }
@container (min-width: 860px) {
  .frente-texto .tarjeta-fases { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
  .frente-texto .tarjeta-fases li { justify-content: center; gap: 6px; padding: 4px 6px; }
  .frente-texto .tarjeta-fases b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .frente-texto .tarjeta-fases .avatar + .avatar { margin-left: -9px; }
  .frente-texto .tarjeta-fases .fase-360 b { position: static; width: auto; height: auto; overflow: visible; clip: auto; flex: none; }
}
/* La imagen angosta y el texto, lado a lado */
@media (min-width: 900px) {
  .frente-caja.lado { flex-direction: row; align-items: center; justify-content: center; gap: 22px; }
  .frente-caja.lado .frente-lamina { width: min(calc(100% - 382px), calc((100vh - 120px) * var(--frente-prop)), var(--frente-max, 100%)); }
  .frente-caja.lado.con-mandos .frente-lamina { width: min(calc(100% - 382px), calc((100vh - 186px) * var(--frente-prop)), var(--frente-max, 100%)); }
  .frente-caja.lado .frente-texto { width: 360px; flex-direction: column; }
}
@media (max-width: 899px) {
  .frente-caja { justify-content: flex-start; }
  .frente-lamina { width: min(100%, calc(62vh * var(--frente-prop)), var(--frente-max, 100%)); }
  .frente-texto { width: 100%; flex-direction: column; gap: 12px; padding: 16px 16px 18px; }
  .frente-texto .tarjeta-img { flex: none; width: 100%; }
  .frente-texto p { font-size: 14.5px; }
  .frente-lista { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; margin-top: 12px; }
}

/* La tele de BiPlot.TV (todo «Ver con sonido»): el televisor del canal, con sus antenas, y su control remoto; en el
   celular, la pantalla entera con una barra abajo. El coral, sólo en «Agenda tu diagnóstico» (el último canal). */
.tele { position: fixed; inset: 0; z-index: 60; color: var(--bp-texto); }
.tele[hidden] { display: none; }
.tele-velo { position: absolute; inset: 0; background: rgba(5, 12, 22, .9); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.tele button { cursor: pointer; }
.tele svg { display: block; }
.tele-cerrar { top: 16px; right: 16px; z-index: 6; color: var(--bp-texto); border-color: var(--bp-borde-fuerte); background: rgba(14, 42, 71, .9); }
.tele-cerrar:hover { border-color: var(--bp-acento); }
.tele-ceja { margin: 0; font: 700 11px/1.3 var(--bp-f-mono); letter-spacing: .12em; text-transform: uppercase; color: #7FD8CF; }
.tele-marca { margin: 0; font: 700 15px/1 var(--bp-f-display); letter-spacing: -.01em; white-space: nowrap; color: var(--bp-texto); }
.tele-marca b { color: var(--bp-marca-cian); }
.tele-redondo { flex: none; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1.5px solid rgba(127, 216, 207, .35);
  background: rgba(14, 42, 71, .85); color: var(--bp-texto); }
.tele-redondo svg { width: 20px; height: 20px; }
.tele-redondo:hover { border-color: var(--bp-acento); }
.tele-escena { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 56px; padding: 84px 48px 64px; }
.tele-caja { position: relative; flex: 0 1 auto; width: min(1000px, calc(100vw - 96px - 56px - 206px), calc((100vh - 230px) * 16 / 9 + 36px)); padding: 18px 18px 64px;
  border-radius: 34px; border: 3px solid var(--bp-marca-cian); background: linear-gradient(180deg, #163E68, #0E2A47 26%, #0B2340);
  box-shadow: 0 0 0 7px rgba(14, 42, 71, .9), 0 40px 90px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .1); }
.tele-antena { position: absolute; left: 50%; bottom: 100%; width: 140px; height: 56px; transform: translate(-50%, 4px); overflow: visible; }
.tele-antena path { fill: none; stroke: #7FD8CF; stroke-width: 6; stroke-linecap: round; }
.tele-antena circle { fill: #7FD8CF; }
.tele-pantalla { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 16px; background: #000; box-shadow: 0 0 0 2px #05090E, 0 0 0 3px rgba(127, 216, 207, .2); }
.tele-video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; cursor: pointer; }
.tele-bisel { position: absolute; left: 26px; right: 22px; bottom: 0; height: 64px; display: flex; align-items: center; gap: 10px; }
.tele-led { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--bp-marca-cian); box-shadow: 0 0 10px var(--bp-marca-cian); }
.tele-bisel .tele-marca { opacity: .9; }
.tele-botones { display: flex; justify-content: flex-end; gap: 8px; }
.tele-bisel .tele-botones { margin-left: auto; }
.tele-botones .bp-btn { white-space: nowrap; }
.tele-botones-cel, .tele-mando, .tele-desliza { display: none; }
/* El cartel del canal, como en la tele: aparece al cambiar, al pausar o al mover el mouse */
.tele-osd { position: absolute; left: 0; top: 0; right: 0; z-index: 2; display: flex; align-items: flex-start; gap: 16px; padding: 18px 22px 64px;
  background: linear-gradient(180deg, rgba(4, 10, 18, .9) 0, rgba(4, 10, 18, .72) 52%, rgba(4, 10, 18, 0)); opacity: 0; transition: opacity .5s; pointer-events: none; }
.con-osd .tele-osd, .pausada .tele-osd { opacity: 1; }
.en-tu .tele-osd, .con-guia .tele-osd { opacity: 0; }
.tele-osd-n { display: grid; justify-items: start; font: 700 54px/.9 var(--bp-f-mono); color: var(--bp-marca-cian); letter-spacing: -.02em; text-shadow: 0 0 18px rgba(23, 195, 178, .55), 0 2px 0 #062B27; }
.tele-osd-n small { margin-bottom: 4px; font-size: 12px; letter-spacing: .24em; color: #7FD8CF; text-shadow: none; }
.tele-osd-txt { display: grid; gap: 4px; padding-top: 2px; }
.tele-osd-txt b { font: 700 25px/1.12 var(--bp-f-display); color: var(--bp-texto-fuerte); text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.tele-hora { font: 700 12.5px/1 var(--bp-f-mono); color: #C9D4DF; font-variant-numeric: tabular-nums; }
/* La estática entre canal y canal, con el número del que entra */
.tele-nieve { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background-color: #6A7480; background-size: 576px 324px; image-rendering: pixelated; opacity: 0; pointer-events: none; }
.tele-nieve::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0 38%, rgba(255, 255, 255, .22) 46%, transparent 54%),
  repeating-linear-gradient(180deg, rgba(0, 0, 0, .28) 0 2px, transparent 2px 4px); background-size: 100% 200%, 100% 100%; }
.cambiando .tele-nieve { opacity: 1; animation: tele-nieve .14s steps(1) infinite; }
.cambiando .tele-nieve::after { animation: tele-barrido .5s linear infinite; }
@keyframes tele-nieve { 0% { background-position: 0 0; } 25% { background-position: -213px 97px; } 50% { background-position: 151px -61px; } 75% { background-position: -47px -173px; } }
@keyframes tele-barrido { from { background-position: 0 100%, 0 0; } to { background-position: 0 -100%, 0 0; } }
.tele-nieve b { position: relative; z-index: 1; padding: 8px 24px; border-radius: 14px; background: rgba(4, 10, 18, .6); font: 700 96px/1 var(--bp-f-mono); color: var(--bp-marca-cian);
  text-shadow: 0 0 26px rgba(23, 195, 178, .85), 0 3px 0 #062B27; }
/* El cintillo de La Línea: los titulares de la semana, pasando sobre la línea del avance */
.tele-cintillo { position: absolute; left: 0; right: 0; bottom: 4px; z-index: 2; display: flex; align-items: stretch; height: 34px; overflow: hidden;
  background: rgba(245, 242, 236, .94); color: #0B1628; font: 600 14px/34px var(--bp-f-texto, inherit); pointer-events: none; transition: opacity .3s; }
.tele-cintillo b { flex: none; padding: 0 14px; background: var(--bp-marca-cian); color: #0E2A47; font: 700 12px/34px var(--bp-f-mono); letter-spacing: .08em; text-transform: uppercase; }
.tele-cintillo-txt { flex: 1; min-width: 0; display: flex; overflow: hidden; white-space: nowrap; }
.tele-cintillo-txt > span { flex: none; padding-left: 22px; animation: cintillo 40s linear infinite; }
.tele-cintillo i { font-style: normal; margin: 0 14px; color: var(--bp-marca-cian); }
.con-guia .tele-cintillo { opacity: 0; }
@keyframes cintillo { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .tele-cintillo-txt > span { animation: none; } .tele-cintillo-txt > span + span { display: none; } .tele-cintillo-txt { overflow: hidden; text-overflow: ellipsis; } }
.oficina-quieta .tele-cintillo-txt > span { animation-play-state: paused; }
/* La Línea en la ficha de cada integrante: su nota de la semana, en un globo (como los «Por qué importa» del diario) */
.globo-linea { position: relative; margin: 14px 0 6px; padding: 12px 14px; border: 1.5px solid var(--bp-marca-cian); border-radius: 16px; background: rgba(23, 195, 178, .08); }
.globo-linea::before { content: ""; position: absolute; left: 22px; top: -9px; width: 14px; height: 14px; background: linear-gradient(rgba(23, 195, 178, .08), rgba(23, 195, 178, .08)) var(--bp-superficie); border-left: 1.5px solid var(--bp-marca-cian); border-top: 1.5px solid var(--bp-marca-cian); transform: rotate(45deg); }
.globo-ceja { margin: 0; font: 600 11.5px/1.4 var(--bp-f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--bp-marca-cian); }
.globo-cifra { margin: 6px 0 0; font-size: 13px; opacity: .85; }
.globo-cifra b { display: block; font: 700 22px/1.1 var(--bp-f-mono); color: var(--bp-texto); opacity: 1; }
.globo-titular { margin: 6px 0 8px; font-weight: 700; line-height: 1.35; }
.globo-leer { font-weight: 600; color: var(--bp-marca-cian); }
/* La bienvenida: Plotty avisa que salió el número de la semana */
.intro-linea { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 14px; padding: 10px 12px; border-radius: 12px; background: rgba(23, 195, 178, .1); font-size: 14px; line-height: 1.45; }
.intro-linea-cara { flex: none; width: 32px; height: 32px; }
.intro-linea-cara > * { width: 32px; height: 32px; }
.intro-linea a { font-weight: 600; color: var(--bp-marca-cian); }
/* El marcador de La Línea, en la tarjeta de la pantalla del centro de BiPlot.TV */
.marcador-linea { margin: 12px 0 4px; padding: 12px 14px; border-radius: 12px; background: var(--p-velo, rgba(255, 255, 255, .06)); }
.marcador-linea-cifra { display: flex; align-items: baseline; gap: 10px; margin: 6px 0; }
.marcador-linea-cifra b { font: 700 34px/1 var(--bp-f-mono); color: var(--bp-marca-cian); }
.marcador-linea .sp-btn { margin-top: 6px; }
/* El quiosco de la plaza: la tapa de la última edición de La Línea y sus titulares */
.quiosco-ed { display: grid; grid-template-columns: 108px 1fr; gap: 16px; align-items: start; margin: 4px 0 14px; }
.quiosco-tapa img { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 8px 20px rgba(0, 0, 0, .35); transform: rotate(-2deg); }
.quiosco-fecha { margin: 0; font: 600 12px/1.4 var(--bp-f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--bp-marca-cian); }
.quiosco-titular { margin: 4px 0 0; font-weight: 700; font-size: 17px; line-height: 1.3; }
.quiosco-mas { margin: 8px 0 0; padding-left: 18px; font-size: 14px; opacity: .85; }
.quiosco-sale { font-weight: 700; }
/* El estante de La Línea en El Archivo: un tomo por número publicado */
.tomos-linea { list-style: none; margin: 4px 0 14px; padding: 0; display: grid; gap: 8px; max-height: 320px; overflow-y: auto; }
.tomos-linea a { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; padding: 6px; border-radius: 8px; color: inherit; text-decoration: none; }
.tomos-linea a:hover, .tomos-linea a:focus-visible { background: rgba(23, 195, 178, .1); }
.tomos-linea img, .tomos-sin-tapa { display: block; width: 48px; height: 72px; object-fit: cover; border-radius: 3px; box-shadow: 0 3px 8px rgba(0, 0, 0, .3); }
.tomos-sin-tapa { display: grid; place-items: center; background: #0B0B0B; color: #FAFAF7; font: 700 10px/1 var(--bp-f-mono); }
.tomos-linea b { display: block; font: 600 11px/1.4 var(--bp-f-mono); letter-spacing: .06em; text-transform: uppercase; color: #0B6F66; }
.tomos-linea span { font-size: 14px; line-height: 1.35; }
.tomos-vacio { font-weight: 700; }
.tele-linea { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 4px; background: rgba(255, 255, 255, .14); cursor: pointer; transition: height .15s; }
.tele-linea:hover { height: 10px; }
.tele-linea i { display: block; height: 100%; background: var(--bp-marca-cian); transform-origin: 0 50%; transform: scaleX(0); }
.en-tu .tele-linea { display: none; }
/* La guía de programación, sobre la pantalla */
.tele-guia { position: absolute; inset: 0; z-index: 4; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 14px; padding: 20px 22px; background: #050C16; }
.tele-guia[hidden] { display: none; }
.con-guia .tele-sigue, .con-guia .tele-retoma { visibility: hidden; }
.tele-guia-cab { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.tele-guia ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--filas, 4), minmax(0, 1fr));
  grid-auto-flow: column; gap: 10px 16px; overflow: auto; }
.tele-fila { width: 100%; height: 100%; display: grid; grid-template-columns: 30px 104px minmax(0, 1fr) auto 18px; align-items: center; gap: 12px; padding: 6px 12px 6px 10px;
  border-radius: 12px; border: 1px solid var(--bp-borde); background: rgba(14, 42, 71, .65); color: var(--bp-texto); text-align: left; }
.tele-fila:hover { border-color: #7FD8CF; }
.tele-fila.actual { border-color: var(--bp-marca-cian); background: var(--bp-acento-suave); box-shadow: inset 4px 0 0 var(--bp-marca-cian); }
.tele-fila-n { font: 700 17px/1 var(--bp-f-mono); color: #7FD8CF; }
.tele-fila img, .tele-fila .tele-ajuste { width: 104px; height: auto; aspect-ratio: 16 / 9; border-radius: 7px; background: #05090E; }
.tele-fila img { display: block; object-fit: cover; }
.tele-fila-txt { display: grid; gap: 2px; min-width: 0; }
.tele-fila-txt small { font: 700 10px/1.3 var(--bp-f-mono); letter-spacing: .1em; text-transform: uppercase; color: #7FD8CF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tele-fila-txt b { font: 700 15.5px/1.2 var(--bp-f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tele-fila-dur { font: 700 12px/1 var(--bp-f-mono); color: var(--bp-texto-3); font-variant-numeric: tabular-nums; }
.tele-visto { color: var(--bp-marca-cian); opacity: 0; }
.tele-visto svg { width: 18px; height: 18px; }
.tele-fila.visto .tele-visto { opacity: 1; }
.tele-sr-visto { display: none; }
.visto .tele-sr-visto { display: inline; }
/* La carta de ajuste del último canal, en los colores de la marca (en chico, en la guía) */
.tele-ajuste { display: grid; grid-template-columns: repeat(5, 1fr); overflow: hidden; }
.tele-ajuste i:nth-child(1) { background: #F2F4F7; } .tele-ajuste i:nth-child(2) { background: #7FD8CF; } .tele-ajuste i:nth-child(3) { background: #17C3B2; }
.tele-ajuste i:nth-child(4) { background: #3F6DA0; } .tele-ajuste i:nth-child(5) { background: #12375E; }
.tele-carta { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 16px; background: #0B1726; }
.tele-carta[hidden] { display: none; }
.tele-barras { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(7, 1fr); }
.tele-barras::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 62% at 50% 50%, rgba(5, 12, 22, .66), rgba(5, 12, 22, .12)); }
.tele-barras i:nth-child(1) { background: #F2F4F7; } .tele-barras i:nth-child(2) { background: #C9D4DF; } .tele-barras i:nth-child(3) { background: #7FD8CF; }
.tele-barras i:nth-child(4) { background: #17C3B2; } .tele-barras i:nth-child(5) { background: #3F6DA0; } .tele-barras i:nth-child(6) { background: #12375E; }
.tele-barras i:nth-child(7) { background: #0E2A47; }
.tele-carta-caja { position: relative; max-width: 540px; display: grid; gap: 10px; justify-items: center; padding: 24px 28px 26px; border-radius: 18px; text-align: center;
  border: 1.5px solid var(--bp-marca-cian); background: rgba(9, 22, 38, .96); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.tele-carta-caja h3 { margin: 0; font: 700 28px/1.12 var(--bp-f-display); letter-spacing: -.01em; text-wrap: balance; }
.tele-carta-caja > p:not(.tele-ceja) { margin: 0; max-width: 46ch; color: #C9D4DF; font-size: 15.5px; }
.tele-carta-botones { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.tele-carta-botones .bp-cta { margin: 0; }
/* «A continuación»: el siguiente, con Felipe y la cuenta regresiva */
.tele-sigue { position: absolute; right: 16px; bottom: 18px; z-index: 4; width: min(400px, calc(100% - 32px)); display: grid; gap: 10px; padding: 14px 16px 16px;
  border-radius: 16px; border: 1px solid rgba(127, 216, 207, .4); background: rgba(9, 22, 38, .95); box-shadow: 0 18px 44px rgba(0, 0, 0, .5); }
.tele-sigue[hidden] { display: none; }
.tele-sigue-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tele-sigue-cab b { color: var(--bp-texto); }
.tele-cuenta { position: relative; width: 36px; height: 36px; flex: none; }
.tele-cuenta svg { width: 36px; height: 36px; transform: rotate(-90deg); }
.tele-cuenta circle { fill: none; stroke: var(--bp-borde); stroke-width: 3; }
.tele-cuenta .tele-cuenta-v { stroke: var(--bp-marca-cian); stroke-dasharray: 97.4; stroke-dashoffset: 0; stroke-linecap: round; }
.tele-sigue.corre .tele-cuenta-v { animation: tele-cuenta 5s linear forwards; }
@keyframes tele-cuenta { to { stroke-dashoffset: 97.4; } }
.tele-cuenta b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 14px/1 var(--bp-f-mono); }
.tele-sigue-prog { display: grid; grid-template-columns: 128px minmax(0, 1fr); align-items: center; gap: 14px; }
.tele-sigue.es-tu .tele-sigue-prog { grid-template-columns: minmax(0, 1fr); }
.tele-sigue-prog img { width: 128px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 9px; background: #05090E; display: block; }
.tele-sigue-prog img[hidden], .tele-relato[hidden] { display: none; }
.tele-sigue-prog span { display: grid; gap: 3px; min-width: 0; }
.tele-sigue-prog b { font: 700 18px/1.15 var(--bp-f-display); }
.tele-sigue-prog small { font: 700 10.5px/1.3 var(--bp-f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--bp-texto-3); }
.tele-relato { margin: 0; display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(14, 42, 71, .85); }
.tele-relato .avatar { width: 40px; height: 42px; flex: none; }
.tele-relato span { display: grid; gap: 2px; }
.tele-relato small { font: 700 10px/1.3 var(--bp-f-mono); letter-spacing: .12em; text-transform: uppercase; color: #7FD8CF; }
.tele-relato q { font-size: 14px; line-height: 1.4; color: #E3EAF1; quotes: "«" "»"; }
.tele-sigue-botones { display: flex; flex-wrap: wrap; gap: 8px; }
.tele-retoma { position: absolute; left: 16px; bottom: 18px; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 16px; border-radius: 99px;
  border: 1px solid rgba(127, 216, 207, .4); background: rgba(9, 22, 38, .94); font-size: 14px; color: #C9D4DF; }
.tele-retoma[hidden] { display: none; }
.tele-retoma b { color: var(--bp-texto); font-family: var(--bp-f-mono); }
/* El control remoto */
.tele-control { position: relative; flex: none; width: 206px; padding: 22px 20px 18px; display: grid; gap: 20px; justify-items: center;
  border-radius: 100px 100px 46px 46px / 70px 70px 46px 46px; border: 1.5px solid var(--bp-borde-fuerte); background: linear-gradient(165deg, #1E4E7D 0%, #12375E 28%, #0B223C 100%);
  box-shadow: 0 34px 70px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -12px 24px rgba(0, 0, 0, .25); transform: rotate(3deg); }
.tele-c-arriba { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.tele-ir { width: 34px; height: 10px; border-radius: 6px; background: #05090E; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 255, 255, .08); }
.tele-cruz { position: relative; width: 162px; height: 162px; border-radius: 50%; border: 1.5px solid var(--bp-borde-fuerte); background: radial-gradient(circle at 50% 38%, #1A4570, #0E2A47 72%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .08), 0 6px 16px rgba(0, 0, 0, .35); }
.tele-cruz-b { position: absolute; width: 50px; height: 50px; display: grid; place-items: center; align-content: center; padding: 0; border: 0; border-radius: 14px; background: transparent; color: #C9D4DF; }
.tele-cruz-b:hover { color: var(--bp-texto-fuerte); background: var(--bp-acento-suave); }
.tele-cruz-b svg { width: 22px; height: 22px; }
.tele-cruz-b small { font: 700 9.5px/1 var(--bp-f-mono); letter-spacing: .14em; color: #7FD8CF; }
.tele-cruz-b.arr { left: 56px; top: 3px; }
.tele-cruz-b.aba { left: 56px; bottom: 3px; }
.tele-cruz-b.izq { left: 3px; top: 56px; }
.tele-cruz-b.der { right: 3px; top: 56px; }
.tele-cruz-ok { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; display: grid; place-items: center; padding: 0; border-radius: 50%;
  border: 2px solid var(--bp-marca-cian); background: radial-gradient(circle at 50% 35%, #1D4E7E, #0E2A47); color: var(--bp-texto); box-shadow: 0 0 0 4px rgba(23, 195, 178, .12); }
.tele-cruz-ok svg { width: 24px; height: 24px; }
.tele-teclado { display: grid; grid-template-columns: repeat(3, 48px); gap: 11px 12px; }
.tele-tecla { position: relative; height: 40px; display: grid; place-items: center; align-content: center; padding: 0; border-radius: 12px; border: 1.5px solid #2C5786;
  background: linear-gradient(180deg, #17406A, #0F2F52); color: var(--bp-texto); font: 700 17px/1 var(--bp-f-mono); box-shadow: 0 3px 0 #071A2E, inset 0 1px 0 rgba(255, 255, 255, .1); }
.tele-tecla:hover { border-color: #7FD8CF; }
.tele-tecla.actual { background: var(--bp-marca-cian); border-color: var(--bp-marca-cian); color: #062B27; box-shadow: 0 3px 0 #0B6F66, 0 0 16px rgba(23, 195, 178, .45); }
.tele-tecla.visto:not(.actual)::after { content: ""; position: absolute; top: 5px; right: 5px; width: 5px; height: 5px; border-radius: 50%; background: #7FD8CF; }
.tele-tecla.es-tu:not(.actual) { border-style: dashed; color: #7FD8CF; }
.tele-tecla-guia { gap: 2px; }
.tele-tecla-guia svg { width: 15px; height: 15px; }
.tele-tecla-guia small { font: 700 8.5px/1 var(--bp-f-mono); letter-spacing: .1em; }
.con-guia .tele-tecla-guia { background: #7FD8CF; border-color: #7FD8CF; color: #062B27; }
.tele-c-pie { font-size: 13.5px; opacity: .75; }
.tele-ayuda { position: absolute; left: 0; right: 0; bottom: 16px; margin: 0; text-align: center; font: 500 12.5px/1.4 var(--bp-f-texto); color: var(--bp-texto-3); pointer-events: none; }
.tele-ayuda kbd { display: inline-block; min-width: 22px; margin: 0 2px; padding: 2px 6px; border: 1px solid var(--bp-borde-fuerte); border-radius: 6px; font: 700 11px/1.3 var(--bp-f-mono);
  color: #C9D4DF; background: var(--bp-superficie); }
@media (max-width: 1100px) { .tele-bisel .tele-marca { display: none; } }
/* En el celular (y en una tablet parada): la pantalla entera, se desliza para cambiar de canal y el control es una barra */
@media (max-width: 699px), (max-height: 560px), (orientation: portrait) and (max-width: 1024px) {
  .tele-escena { padding: 0; flex-direction: column; align-items: stretch; justify-content: stretch; gap: 0; }
  .tele-cerrar { top: max(12px, env(safe-area-inset-top)); right: 12px; background: rgba(4, 10, 18, .6); }
  .tele-caja { width: 100%; flex: 1; min-height: 0; padding: 0; border: 0; border-radius: 0; background: #000; box-shadow: none; display: flex; flex-direction: column; }
  .tele-antena, .tele-bisel, .tele-control, .tele-ayuda { display: none; }
  .tele-pantalla { flex: 1; min-height: 0; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
  .tele-osd { padding: max(14px, env(safe-area-inset-top)) 68px 40px 16px; gap: 12px; }
  .tele-osd-n { font-size: 40px; }
  .tele-osd-txt b { font-size: 19px; }
  .tele-nieve b { font-size: 72px; }
  .tele-sigue { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .tele-sigue-prog { grid-template-columns: 104px minmax(0, 1fr); }
  .tele-sigue-prog img { width: 104px; }
  .tele-retoma { left: 12px; bottom: 12px; }
  .tele-carta-caja { padding: 20px 18px 22px; }
  .tele-carta-caja h3 { font-size: 23px; }
  .tele-carta-caja > p:not(.tele-ceja) { font-size: 14.5px; }
  .tele-botones-cel { display: flex; justify-content: flex-start; overflow-x: auto; padding: 10px 12px 0; background: #0B1726; border-top: 1px solid var(--bp-borde); }
  .tele-botones-cel:empty { display: none; }
  .tele-botones-cel .bp-btn { flex: 1 1 auto; min-width: 0; padding: 8px 12px; font-size: 13.5px; white-space: normal; text-align: center; }
  .tele-mando { display: flex; align-items: center; gap: 10px; padding: 10px 12px max(10px, env(safe-area-inset-bottom)); background: #0B1726; border-top: 1px solid var(--bp-borde); }
  .tele-botones-cel:not(:empty) + .tele-mando { border-top: 0; }
  .tele-mando .tele-redondo { width: 48px; height: 48px; }
  .tele-mando-canal { flex: 1; min-width: 0; min-height: 48px; display: grid; grid-template-columns: auto minmax(0, 1fr) 20px; align-items: center; gap: 10px; padding: 5px 14px 5px 6px;
    border-radius: 99px; border: 1.5px solid var(--bp-borde-fuerte); background: var(--bp-superficie); color: var(--bp-texto); text-align: left; }
  .tele-mando-canal > b { padding: 7px 9px; border-radius: 99px; background: rgba(23, 195, 178, .18); font: 700 17px/1 var(--bp-f-mono); color: var(--bp-marca-cian); }
  .tele-mando-canal > span { display: grid; gap: 1px; min-width: 0; }
  .tele-mando-canal small { font: 700 9.5px/1.2 var(--bp-f-mono); letter-spacing: .1em; text-transform: uppercase; color: #7FD8CF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tele-mando-canal span span { font: 700 15px/1.2 var(--bp-f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tele-mando-canal svg { width: 20px; height: 20px; color: #7FD8CF; }
  .tele-guia { padding: 14px 12px; }
  .con-guia > .tele-cerrar { display: none; }
  .tele-guia ol { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; align-content: start; }
  .tele-fila { grid-template-columns: 26px 88px minmax(0, 1fr) auto 18px; gap: 10px; min-height: 62px; }
  .tele-fila img, .tele-fila .tele-ajuste { width: 88px; }
  .tele-desliza { position: absolute; left: 50%; top: 46%; z-index: 4; display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 18px 10px 14px; transform: translate(-50%, -50%);
    border-radius: 99px; background: rgba(4, 10, 18, .78); font: 600 14.5px/1.2 var(--bp-f-display); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .3s; }
  .tele-desliza svg { width: 20px; height: 20px; color: var(--bp-marca-cian); }
  .ver-desliza:not(.con-guia) .tele-desliza { opacity: 1; }
}

.sin-js { position: fixed; inset: var(--barra) 0 0; display: grid; place-content: center; padding: 24px; text-align: center; background: var(--bp-fondo); }

@media (max-width: 1180px) {
  .panel { width: 400px; }
}
/* Celular y tablet angosta: menú y panel como hojas inferiores */
@media (max-width: 899px) {
  .barra { gap: 10px; }
  .barra-volver { display: none; }
  .bp-cta { margin-left: auto; padding: 11px 16px; font-size: 14px; }
  .recorrer { top: auto; bottom: 16px; left: 12px; right: 198px; width: auto; }
  .recorrer.cerrado { bottom: 16px; }
  .recorrer:not(.cerrado) { position: fixed; inset: auto 0 0 0; z-index: 55; max-height: 78%; }
  .recorrer:not(.cerrado) .recorrer-toggle { margin: 0 0 0 12px; }
  .recorrer:not(.cerrado) .recorrer-cuerpo { background: #0E2A47; border-radius: 18px 18px 0 0; border-bottom: 0; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .controles { right: 12px; bottom: 16px; flex-direction: row; }
  .bp-cta, .marca, .bp-btn.chico, .chips a, .media-grande { min-height: 44px; }
  .guia-salir, .tele-cerrar { width: 44px; height: 44px; }
  .motor .quien a { padding: 5px; }
  .casos .links a { display: inline-block; padding: 12px 2px; }
  .panel-abierto .rotulo { display: none; }
  .controles [data-accion="acercar"], .controles [data-accion="alejar"] { display: none; }
  .controles .con-texto .txt { display: none; }
  .controles .con-texto { width: 44px; padding: 0; justify-content: center; }
  .mini-tele { right: 116px; bottom: 16px; width: 70px; }
  .en-sala-propia .mini-tele { bottom: calc(var(--alto-barra, 0px) + 26px); }
  .intro, .guia { bottom: 76px; width: calc(100% - 24px); padding: 18px; }
  .intro h2 { font-size: 21px; }
  .intro p { font-size: 15px; margin-bottom: 14px; }
  .intro-acciones .bp-btn { flex: 1 1 0; min-width: 0; padding: 10px 12px; font-size: 14px; }
  .intro .bp-etiqueta { display: none; }
  .panel { position: fixed; z-index: 50; top: auto; left: 0; right: 0; bottom: 0; width: auto; max-width: none; max-height: 74%; border-radius: 18px 18px 0 0; border-bottom: 0; }
  .panel-cuerpo { padding: 18px 18px max(24px, env(safe-area-inset-bottom)); border-radius: 0; }
  .panel-cab { padding-left: 18px; }
  .ficha-hero, .media { margin: -18px -18px 16px; }
  .media-grande { top: 12px; bottom: auto; }
  .ficha-hero { min-height: 200px; }
  .ficha-pj { height: 190px; }
  .ficha-ilus { height: 200px; }
  .panel.panel-sala { max-height: 56%; }
  .panel.panel-local { max-height: 60%; }
  .sala-dibujo-caja { inset: 60px 8px 12px; }
  .sala-ayuda { display: none; }
  .sala-vecinos { top: 16px; bottom: auto; right: 12px; }
  .sala-vecinos button span { display: none; }
  .sala-vecinos button { padding: 8px 12px; }
  .panel-cuerpo h2 { font-size: 28px; }
}
@media (max-width: 420px) {
  .barra-sep { display: none; }
  .barra-titulo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .bp-wordmark { font-size: 20px; }
}
/* En los celulares más angostos, la mini tele achica un poco para que quepa «Recorrer» */
@media (max-width: 359px) {
  .mini-tele { width: 60px; }
  .recorrer { right: 184px; }
}
@media (max-height: 560px) and (max-width: 899px) {
  .panel { max-height: 88%; }
}

/* ── El equipo: animaciones de los cabezones ── */
.pj-cuerpo { transform-box: fill-box; transform-origin: 50% 100%; animation: pj-respira 3.8s ease-in-out infinite; }
.pj-flota { transform-box: fill-box; transform-origin: 50% 50%; animation: pj-flota 3.2s ease-in-out infinite; }
.pj-ojo { transform-box: fill-box; transform-origin: 50% 50%; animation: pj-parpadeo 5.3s linear infinite; }
.pj-celda .pj-ojo { animation-delay: -1.2s; } .pj-grilla .pj-ojo { animation-delay: -2.4s; } .pj-engine .pj-ojo { animation-delay: -3.6s; }
.pj-bucle .pj-ojo { animation-delay: -3.1s; animation-duration: 6.4s; } .pj-tamandua .pj-ojo { animation-delay: -.6s; }
.pj-faro .pj-ojo { animation-delay: -4s; } .pj-pepa .pj-ojo { animation-delay: -1.8s; animation-duration: 4.6s; } .pj-aby .pj-ojo { animation-delay: -2.9s; }
.pj-felipe .pj-ojo { animation-delay: -.9s; animation-duration: 5.8s; }
/* El número de The Architect (el 2 del bolsillo) y el de The Engine (el 4 de la hebilla): cuando el personaje mira al
   otro lado, se vuelve a dar vuelta para que se lea */
[transform$="scale(-1 1)"] .pj-num { transform: scaleX(-1); transform-box: fill-box; transform-origin: 50% 50%; }
.pj-plotty .pj-flota { animation-delay: -1.4s; animation-duration: 2.6s; }
@keyframes pj-respira { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.012, .986); } }
@keyframes pj-parpadeo { 0%, 93%, 100% { transform: scaleY(1); } 95.5% { transform: scaleY(.08); } }
@keyframes pj-flota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* ── Escena: objetos animados y actores ── */
.zona-hit { fill: transparent; pointer-events: all; cursor: pointer; }
.actor-hit { fill: transparent; pointer-events: all; cursor: pointer; }
.capa-piso, .capa-muros, .capa-obj, .capa-resalte { pointer-events: none; }
.capa-obj .actor { pointer-events: auto; }
.actor .actor-anda { transform-box: fill-box; transform-origin: 50% 100%; }
.actor.camina .actor-anda { animation: anda .46s ease-in-out infinite; }
@keyframes anda { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-9px) rotate(-2deg); } 75% { transform: translateY(-9px) rotate(2deg); } }
.actor.camina .pj-cuerpo { animation-play-state: paused; }
.actor.destello .pj { animation: destello .4s ease-in-out 4; }
.pj-retrato, .pj-retrato * { animation: none !important; }
@keyframes destello { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }

.dato-luz { opacity: 0; animation: celda-luz 3.6s ease-in-out infinite; }
@keyframes celda-luz { 0%, 100% { opacity: 0; } 30%, 55% { opacity: .9; } }
@keyframes check { 0%, 30% { opacity: 0; } 40%, 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes brillo { 0%, 100% { opacity: .85; } 50% { opacity: .35; } }
.traza { stroke-dasharray: 260; stroke-dashoffset: 260; animation: traza 4.5s ease-in-out infinite; }
@keyframes traza { 0% { stroke-dashoffset: 260; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.codigo-linea { transform-box: fill-box; transform-origin: 0 50%; animation: codigo 2.8s ease-in-out infinite; }
@keyframes codigo { 0% { transform: scaleX(0); } 30%, 100% { transform: scaleX(1); } }
.qa-ok { opacity: 0; animation: check 3.2s ease-in-out infinite; }
.anillo { transform-box: fill-box; transform-origin: 50% 50%; animation: anillo 2.6s ease-out infinite; }
@keyframes anillo { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.paquete { opacity: 0; }
.paquete.quieto { opacity: 1; transform: translateY(-70px); }
.paquete.sube { animation: sube 2.6s ease-in forwards; }
@keyframes sube { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(-150px); opacity: 0; } }
/* La oficina: el tubo del plano, los racks, Atlas, el set, la Puerta 404 y el laboratorio */
.capsula { animation: capsula 5.5s ease-in-out infinite; }
.capsula.quieto { animation: none; transform: translateX(40px); }
@keyframes capsula { 0%, 12% { transform: translateX(0); opacity: 0; } 20% { opacity: 1; } 75% { transform: translateX(84px); opacity: 1; } 85%, 100% { transform: translateX(84px); opacity: 0; } }
.led { animation: brillo 1.8s ease-in-out infinite; }
.haz-atlas { animation: haz-atlas 3.2s ease-in-out infinite; }
@keyframes haz-atlas { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.rec { animation: rec 1.4s steps(1) infinite; }
@keyframes rec { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .15; } }
.luz-404 { animation: luz-404 7s linear infinite; }
@keyframes luz-404 { 0%, 46%, 50%, 54%, 100% { opacity: .9; } 48%, 52% { opacity: .1; } }
.barra-despues { transform-box: fill-box; transform-origin: 50% 100%; animation: barra 6s ease-in-out infinite; }
@keyframes barra { 0%, 12% { transform: scaleY(.1); } 35%, 100% { transform: scaleY(1); } }
.bicho { animation: bicho 1.3s ease-in-out infinite alternate; }
.bicho-2 { animation-delay: -.6s; }
@keyframes bicho { from { transform: translate(0, 0); } to { transform: translate(2px, -3px); } }

/* ── El barrio (barrio.js) ── */
.barrio, .barrio *, .hq-cerrada, .hq-cerrada * { pointer-events: none; }
/* Con la oficina abierta, la calle queda en penumbra y se toca sólo lo de adentro (escena.js).
   Con la oficina cerrada, lo de adentro no se ve: sus animaciones quedan detenidas. */
#svg-escena:not(.oficina-abierta) .piso-0 * { animation: none !important; }
.caminante-anda { transform-box: fill-box; transform-origin: 50% 100%; }
.caminante.camina .caminante-anda { animation: anda .5s ease-in-out infinite; }
.caminante.camina .pj-cuerpo { animation-play-state: paused; }
/* Quien camina dentro de un local abierto o de una sala (escena.js, maqueta) */
.andante-paso { transform-box: fill-box; transform-origin: 50% 100%; }
.andante.camina .andante-paso { animation: paso .5s ease-in-out infinite; }
.andante.camina .pj-cuerpo { animation-play-state: paused; }
@keyframes paso { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-4px) rotate(-2.5deg); } 75% { transform: translateY(-4px) rotate(2.5deg); } }
.chorro { animation: chorro 1.8s ease-in-out infinite; }
@keyframes chorro { 0%, 100% { opacity: .75; } 50% { opacity: .35; } }
.loc-lampara { animation: brillo 3.2s ease-in-out infinite; }

/* Los locales y las salas: lo que se mueve en cada uno. Sin animación queda el primer estado. */
.loc-b { opacity: 0; }
.loc-lote { animation: loc-lote 9s ease-in-out infinite; }
@keyframes loc-lote { 0%, 40% { fill: #9CCB8F; } 50%, 90% { fill: #E0B341; } 100% { fill: #9CCB8F; } }
.loc-pin { animation: loc-pin 9s ease-in infinite; }
@keyframes loc-pin { 0%, 44% { transform: translateY(-40px); opacity: 0; } 48% { opacity: 1; } 54% { transform: translateY(0); } 58% { transform: translateY(-5px); } 62%, 90% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(0); opacity: 0; } }
.loc-comanda { animation: loc-comanda 8s ease-out infinite; }
@keyframes loc-comanda { 0%, 10% { transform: translateX(-26px); opacity: 0; } 22%, 88% { transform: translateX(0); opacity: 1; } 100% { transform: translateX(0); opacity: 0; } }
.loc-vapor { animation: vapor 2.6s ease-in-out infinite; }
@keyframes vapor { 0% { transform: translateY(4px); opacity: 0; } 40% { opacity: .9; } 100% { transform: translateY(-10px); opacity: 0; } }
.loc-farol { transform-box: fill-box; transform-origin: 50% 0; animation: loc-farol 4s ease-in-out infinite; }
.loc-farol + .loc-farol { animation-delay: -1.7s; }
@keyframes loc-farol { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
.loc-cinta-b { opacity: 0; }
.loc-cinta { animation: loc-cinta .5s steps(1) infinite; }
.loc-cinta-b { animation-name: loc-cinta-b; }
@keyframes loc-cinta { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes loc-cinta-b { 0% { opacity: 0; } 50% { opacity: 1; } }
.loc-huella { animation: brillo 2.4s ease-in-out infinite; }
.loc-grua { animation: loc-grua 7s ease-in-out infinite; }
@keyframes loc-grua { 0%, 10% { transform: translateY(-14px); } 45%, 80% { transform: translateY(0); } 100% { transform: translateY(-14px); } }
.loc-habito { animation: loc-habito 8s steps(1) infinite; }
@keyframes loc-habito { 0%, 49% { fill: none; } 50%, 100% { fill: #17C3B2; } }
.loc-bandera { transform-box: fill-box; transform-origin: 0 50%; animation: loc-bandera 1.6s ease-in-out infinite; }
@keyframes loc-bandera { 0%, 100% { transform: scaleX(1) skewY(0); } 50% { transform: scaleX(.86) skewY(-6deg); } }
.loc-camino { animation: loc-camino 8s ease-in-out infinite; }
@keyframes loc-camino { 0% { stroke-dasharray: 0 100; } 70%, 88% { stroke-dasharray: 100 0; opacity: .9; } 100% { stroke-dasharray: 100 0; opacity: 0; } }
.loc-flota { animation: pj-flota 2.8s ease-in-out infinite; }
/* Los focos de estreno de BiPlot.TV barren el cielo */
.loc-haz { transform-box: fill-box; transform-origin: 50% 100%; animation: loc-haz 7s ease-in-out infinite; }
.loc-haz.otro { animation-delay: -3.5s; }
@keyframes loc-haz { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
/* La pantalla del centro de BiPlot.TV: seis repeticiones se turnan, 3,5 s cada una (sin movimiento queda la primera), y
   la cinta de los anillos corre lo que mide su texto (--led, en el dibujo) */
.loc-repe { opacity: 0; animation: loc-repe 21s linear infinite; }
.loc-repe.primera { opacity: 1; }
@keyframes loc-repe { 0% { opacity: 0; } 1.5%, 15.2% { opacity: 1; } 16.7%, 100% { opacity: 0; } }
.loc-led { animation: loc-led 16s linear infinite; }
@keyframes loc-led { from { transform: translateX(0); } to { transform: translateX(var(--led)); } }
.loc-contorno { animation: loc-contorno 2.6s ease-in-out infinite; }
@keyframes loc-contorno { 0%, 100% { stroke-opacity: 1; } 50% { stroke-opacity: .35; } }
/* Los textos que cambian (cupos, módulos, racha) se turnan */
.loc-a { animation: loc-a 8s steps(1) infinite; }
.loc-b { animation: loc-b 8s steps(1) infinite; }
@keyframes loc-a { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes loc-b { 0%, 49% { opacity: 0; } 50%, 100% { opacity: 1; } }
.quieto .loc-a, .quieto .loc-b, .quieto [class^="loc-"], .quieto [class*=" loc-"], .quieto .pj-cuerpo, .quieto .pj-flota, .quieto .chorro, .quieto .haz-atlas { animation: none; }

/* Pausa manual (botón) */
.oficina-quieta .pj *, .oficina-quieta .pj, .oficina-quieta .capa-obj *, .oficina-quieta .capa-piso *, .oficina-quieta .capa-muros *, .oficina-quieta .barrio *, .oficina-quieta .sala-dibujo *, .oficina-quieta .pulso { animation-play-state: paused !important; }

/* Movimiento reducido: todo quieto, con los estados finales a la vista */
@media (prefers-reduced-motion: reduce) {
  #svg-escena { transition: none; }
  .pulso { animation: none; }
  .capa-obj *, .capa-piso *, .capa-muros *, .barrio *, .sala-dibujo *, .pj *, .pj { animation: none !important; }
  .loc-b, .loc-cinta-b { opacity: 0; }
  .capsula { transform: translateX(40px); }
  .dato-luz:nth-of-type(odd), .qa-ok { opacity: 1; }
  .traza { stroke-dashoffset: 0; }
  .paquete { opacity: 0; }
  .burbuja, .sala-tarjeta, .sala-etiqueta, .sala-dibujo .andante, .sala-frente, .frente-caja, .tele-osd, .tele-desliza, .tele-linea { transition: none; }
}
