/* KAIA · Oficina KAIA (16-10-2026). Prefijo of-. Marca: acento único #14405F, navy #08121A/#0F1E2A/#1B2E3D, crema #F1EBE1, estados #12A150/#E8A317/#E5484D.
   Tipos: Archivo (títulos), IBM Plex Sans (texto), IBM Plex Mono (rótulos). El estado nunca depende solo del color: lleva su palabra. */
:root {
  --of-petroleo: #14405F; --of-navy0: #08121A; --of-navy1: #0F1E2A; --of-navy2: #1B2E3D; --of-crema: #F1EBE1; --of-blanco: #fff;
  --of-ok: #12A150; --of-ambar: #E8A317; --of-rojo: #E5484D; --of-gris: #8A97A3;
  --of-tinta: #0F1E2A; --of-tinta2: #4A5762; --of-tinta3: #66727C; --of-linea: rgba(15, 30, 42, .12);
  --of-fuente: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; --of-disp: 'Archivo', 'IBM Plex Sans', system-ui, sans-serif; --of-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --of-lado: 352px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body.of { margin: 0; background: var(--of-crema); color: var(--of-tinta); font: 400 14px/1.45 var(--of-fuente); -webkit-text-size-adjust: 100%; }
:focus-visible { outline: 3px solid #245DDE; outline-offset: 2px; }
.of-saltar { position: absolute; left: 8px; top: -60px; background: var(--of-navy1); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 60; }
.of-saltar:focus { top: 8px; }
.of-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.of-app { height: 100vh; height: 100dvh; display: grid; grid-template-rows: 58px minmax(0, 1fr); grid-template-columns: var(--of-lado) minmax(0, 1fr); grid-template-areas: 'barra barra' 'lado escena'; }
.of-barra { grid-area: barra; display: flex; align-items: center; gap: 16px; padding: 0 18px; background: #fff; border-bottom: 1px solid var(--of-linea); z-index: 12; }
.of-marca img { display: block; height: 22px; width: auto; }
.of-barra-medio { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.of-barra-medio b { font: 600 16px/1.2 var(--of-disp); letter-spacing: -.2px; }
.of-barra-medio span { font: 400 12px/1.3 var(--of-mono); color: var(--of-tinta3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.of-barra-der { display: flex; align-items: center; gap: 10px; }
.of-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 6px 14px; border-radius: 10px; border: 1px solid var(--of-petroleo); background: var(--of-petroleo); color: #fff; font: 500 13px/1 var(--of-fuente); text-decoration: none; cursor: pointer; }
.of-btn:hover { filter: brightness(1.12); }
.of-btn.claro { background: #fff; color: var(--of-petroleo); }
.of-btn-tareas { position: relative; background: #fff; color: var(--of-tinta); border-color: var(--of-linea); }
.of-btn-tareas.hay { border-color: var(--of-ambar); background: #FFF6E0; }
.of-btn-n { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--of-gris); color: #fff; font: 600 12px/1 var(--of-mono); }
.of-btn-tareas.hay .of-btn-n { background: var(--of-ambar); color: var(--of-navy0); }

/* barra lateral */
.of-lado { grid-area: lado; overflow-y: auto; background: #fff; border-right: 1px solid var(--of-linea); padding: 20px 16px 24px; z-index: 6; scrollbar-width: thin; }
.of-saludo h1 { margin: 0; font: 600 24px/1.2 var(--of-disp); letter-spacing: -.5px; }
.of-saludo p { margin: 6px 0 0; color: var(--of-tinta2); font-size: 13px; }
.of-sub { margin: 22px 4px 8px; font: 500 11px/1.4 var(--of-mono); letter-spacing: .1em; color: var(--of-tinta3); text-transform: uppercase; }
.of-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.of-depto { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 10px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--of-tinta); font: 500 14px/1.2 var(--of-fuente); text-align: left; cursor: pointer; }
.of-depto:hover { background: #F4F6F8; }
.of-depto.act { background: #E8F0F6; border-color: var(--of-petroleo); }
.of-cuadro { display: inline-block; width: 12px; height: 12px; border-radius: 4px; flex: 0 0 auto; }
.of-depto-n { flex: 1; }
.of-cuenta { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--of-ambar); color: var(--of-navy0); font: 600 12px/1 var(--of-mono); }
.of-cuenta.suave { background: #E6EAEE; color: var(--of-tinta2); }
.of-fila { width: 100%; display: flex; align-items: flex-start; gap: 10px; padding: 9px 10px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.of-fila:hover { background: #F4F6F8; }
.of-fila.sel { background: #E8F0F6; border-color: var(--of-petroleo); }
.of-avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; font: 600 16px/1 var(--of-disp); flex: 0 0 auto; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--of-linea); }
.of-avatar.g { width: 52px; height: 52px; font-size: 22px; }
.of-fila-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.of-fila-cab { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.of-fila-cab b { font: 600 14px/1.2 var(--of-disp); }
.of-fila-cargo { font-size: 12px; color: var(--of-tinta3); }
.of-fila-tarea { font-size: 12.5px; color: var(--of-tinta2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.of-uso { align-self: center; min-width: 28px; text-align: center; font: 600 12px/1 var(--of-mono); padding: 5px 7px; border-radius: 8px; background: #EEF1F4; color: var(--of-tinta3); }
.of-uso.hay { background: #FFF1CC; color: #7A5200; }
.of-chip { display: inline-flex; align-items: center; gap: 5px; font: 500 11.5px/1 var(--of-fuente); padding: 3px 7px 3px 6px; border-radius: 999px; background: #F1F3F5; color: var(--of-tinta2); white-space: nowrap; }
.of-pt { width: 8px; height: 8px; border-radius: 50%; background: var(--of-gris); flex: 0 0 auto; }
.of-chip.c-ambar { background: #FFF1CC; color: #7A5200; } .of-chip.c-ambar .of-pt { background: var(--of-ambar); }
.of-chip.c-petroleo { background: #E3EDF4; color: var(--of-petroleo); } .of-chip.c-petroleo .of-pt { background: var(--of-petroleo); }
.of-chip.c-rojo { background: #FDE9EA; color: #9B1C26; } .of-chip.c-rojo .of-pt { background: var(--of-rojo); }
.of-chip.c-gris .of-pt { background: var(--of-gris); }
.of-vacio { margin: 8px 6px; color: var(--of-tinta3); font-size: 13px; }
.of-credito { margin: 22px 4px 0; font-size: 11px; line-height: 1.5; color: var(--of-tinta3); }
.of-credito a { color: var(--of-petroleo); }

/* escenario */
.of-escenario { grid-area: escena; position: relative; overflow: hidden; background: var(--of-crema); min-height: 320px; }
.of-lienzo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; outline: none; }
.of-capa { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.of-placa { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 7px; border-radius: 999px; background: #fff; box-shadow: 0 2px 8px rgba(8, 18, 26, .22), 0 0 0 1px rgba(15, 30, 42, .08); font: 500 12px/1.2 var(--of-fuente); color: var(--of-tinta); white-space: nowrap; pointer-events: auto; cursor: pointer; will-change: transform; }
.of-placa.of-persona { cursor: default; background: var(--of-navy1); color: var(--of-crema); }
.of-placa .of-punto { width: 8px; height: 8px; border-radius: 50%; background: var(--of-gris); flex: 0 0 auto; }
.of-placa.of-persona .of-punto { display: none; }
.of-placa.e-petroleo .of-punto { background: var(--of-petroleo); }
.of-placa.e-ambar .of-punto { background: var(--of-ambar); box-shadow: 0 0 0 3px rgba(232, 163, 23, .3); }
.of-placa.e-rojo .of-punto { background: var(--of-rojo); }
.of-placa .of-alerta { display: none; width: 16px; height: 16px; border-radius: 50%; background: var(--of-ambar); color: var(--of-navy0); font: 700 11px/16px var(--of-mono); text-align: center; }
.of-placa.necesita .of-alerta { display: inline-block; }
.of-placa.sel { box-shadow: 0 0 0 2px var(--of-petroleo), 0 4px 12px rgba(8, 18, 26, .3); z-index: 3; }
.of-zona { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 6px; border: 0; background: rgba(15, 30, 42, .86); color: var(--of-crema); font: 500 10.5px/1.3 var(--of-mono); letter-spacing: .09em; text-transform: uppercase; pointer-events: auto; cursor: pointer; white-space: nowrap; will-change: transform; }
.of-zona:hover { background: var(--of-petroleo); }
.of-zona-cuenta { min-width: 18px; padding: 1px 5px; border-radius: 999px; background: var(--of-ambar); color: var(--of-navy0); font: 600 11px/1.3 var(--of-mono); text-align: center; letter-spacing: 0; }
.of-controles { position: absolute; left: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 6px; z-index: 5; }
.of-controles button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--of-linea); background: #fff; color: var(--of-tinta); font: 600 18px/1 var(--of-fuente); cursor: pointer; box-shadow: 0 2px 6px rgba(8, 18, 26, .12); }
.of-controles button:hover { background: #F4F6F8; }
.of-leyenda { position: absolute; left: 64px; bottom: 14px; display: flex; gap: 12px; flex-wrap: wrap; padding: 7px 12px; background: rgba(255, 255, 255, .92); border-radius: 10px; font-size: 12px; color: var(--of-tinta2); z-index: 4; box-shadow: 0 2px 6px rgba(8, 18, 26, .1); pointer-events: none; }
.of-leyenda span { display: inline-flex; align-items: center; gap: 6px; }
.of-leyenda i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.of-escenario.sin3d .of-controles, .of-escenario.sin3d .of-leyenda { display: none; }

/* paneles flotantes */
.of-flota { position: absolute; z-index: 9; background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(8, 18, 26, .28), 0 0 0 1px var(--of-linea); }
.of-tareas { top: 14px; right: 14px; width: min(420px, calc(100% - 28px)); max-height: calc(100% - 28px); display: flex; flex-direction: column; }
.of-tareas-cab, .of-chat-cab { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; }
.of-tareas-cab h2, .of-chat-cab h2 { margin: 0; flex: 1; font: 600 16px/1.25 var(--of-disp); }
.of-x { width: 32px; height: 32px; border-radius: 50%; border: 0; background: #EEF1F4; color: var(--of-tinta); font: 400 20px/1 var(--of-fuente); cursor: pointer; flex: 0 0 auto; }
.of-x:hover { background: #E1E6EA; }
.of-tareas-lista { overflow-y: auto; padding: 0 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.of-tarea { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--of-linea); border-radius: 12px; }
.of-tarea-c { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: transparent; text-align: left; font: inherit; color: inherit; cursor: pointer; padding: 2px; }
.of-tarea-t { display: flex; flex-direction: column; min-width: 0; }
.of-tarea-a { font: 500 11px/1.3 var(--of-mono); color: var(--of-tinta3); }
.of-tarea-ti { font-size: 13px; font-weight: 500; }
.of-prio { font: 500 10.5px/1 var(--of-mono); padding: 4px 6px; border-radius: 6px; background: #FFF1CC; color: #7A5200; white-space: nowrap; }
.of-prio.cambios { background: #E3EDF4; color: var(--of-petroleo); }
.of-ver { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 4px 12px; border-radius: 9px; background: var(--of-petroleo); color: #fff; text-decoration: none; font: 500 13px/1 var(--of-fuente); }
.of-ver:hover { filter: brightness(1.15); }
.of-tarjeta, .of-sala { top: 14px; right: 14px; width: min(372px, calc(100% - 28px)); max-height: calc(100% - 28px); overflow-y: auto; padding: 16px; }
.of-tj-cab { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.of-tj-nom { flex: 1; min-width: 0; }
.of-tj-nom h2 { margin: 0; font: 600 20px/1.2 var(--of-disp); letter-spacing: -.3px; }
.of-tj-nom p { margin: 2px 0 0; font-size: 12.5px; color: var(--of-tinta3); }
.of-tj-estado { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.of-tj-hora { font: 400 12px/1.3 var(--of-mono); color: var(--of-tinta3); }
.of-tj-mision { margin: 10px 0 4px; font-size: 13px; color: var(--of-tinta2); }
.of-tj-donde { margin: 0 0 6px; font-size: 13px; font-weight: 500; color: var(--of-petroleo); }
.of-tj-bloque { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--of-linea); }
.of-tj-bloque h3 { margin: 0 0 8px; font: 500 11px/1.4 var(--of-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--of-tinta3); }
.of-dato { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 13px; border-bottom: 1px dashed var(--of-linea); }
.of-dato-r { color: var(--of-tinta2); }
.of-dato-v { font-family: var(--of-mono); font-weight: 600; }
.of-tj-pend { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 13px; border-bottom: 1px dashed var(--of-linea); }
.of-tj-act { margin: 4px 0; font-size: 12.5px; color: var(--of-tinta2); }
.of-tj-pie { margin-top: 14px; display: flex; gap: 8px; }
.of-reunion { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px dashed var(--of-linea); font-size: 13px; }
.of-reunion-s, .of-reunion-o { font-size: 12px; color: var(--of-tinta3); }

/* chat */
.of-chat-abrir { position: absolute; right: 16px; bottom: 16px; z-index: 8; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 10px; border-radius: 999px; border: 0; background: var(--of-navy1); color: var(--of-crema); font: 500 13px/1 var(--of-fuente); cursor: pointer; box-shadow: 0 6px 18px rgba(8, 18, 26, .3); }
.of-chat-abrir .of-avatar { width: 28px; height: 28px; font-size: 13px; }
.of-chat { right: 16px; bottom: 16px; width: min(380px, calc(100% - 32px)); height: min(520px, calc(100% - 32px)); display: flex; flex-direction: column; z-index: 10; }
.of-chat-cab { border-bottom: 1px solid var(--of-linea); padding-bottom: 12px; }
.of-chat-cab p { margin: 0; font-size: 12px; color: var(--of-tinta3); }
.of-chat-hilo { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.of-msg { max-width: 90%; padding: 9px 12px; border-radius: 14px; font-size: 13px; line-height: 1.45; }
.of-msg p { margin: 0 0 4px; } .of-msg p:last-child { margin: 0; }
.of-msg.kaia { background: #EEF1F4; align-self: flex-start; border-bottom-left-radius: 4px; }
.of-msg.yo { background: var(--of-petroleo); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.of-chat-pie { padding: 10px 12px 12px; border-top: 1px solid var(--of-linea); }
.of-chat-sugeridas { display: flex; flex-wrap: wrap; gap: 6px; }
.of-sug { padding: 7px 11px; border: 1px solid var(--of-linea); border-radius: 999px; background: #fff; color: var(--of-petroleo); font: 500 12.5px/1.2 var(--of-fuente); cursor: pointer; text-align: left; }
.of-sug:hover { background: #E8F0F6; border-color: var(--of-petroleo); }
.of-chat-nota { margin: 8px 2px 0; font-size: 11px; color: var(--of-tinta3); }
.of-chat-nota a { color: var(--of-petroleo); }

/* estados de página y respaldo sin 3D */
.of-estado { position: absolute; inset: 0; z-index: 14; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--of-crema); }
.of-aviso { max-width: 440px; background: #fff; border-radius: 16px; padding: 26px; box-shadow: 0 10px 30px rgba(8, 18, 26, .15); }
.of-aviso h2 { margin: 0 0 8px; font: 600 20px/1.25 var(--of-disp); } .of-aviso p { margin: 0 0 16px; color: var(--of-tinta2); }
.of-app.sin-datos .of-lado { opacity: .4; pointer-events: none; }
.of-plano { position: absolute; inset: 0; overflow-y: auto; padding: 20px; background: var(--of-crema); }
.of-plano-aviso { margin: 0 0 14px; padding: 10px 14px; background: #fff; border-radius: 10px; font-size: 13px; color: var(--of-tinta2); }
.of-plano-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.of-plano-d { background: #fff; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.of-plano-d h3 { margin: 0; font: 600 15px/1.2 var(--of-disp); display: flex; align-items: center; gap: 6px; }
.of-plano-d > .of-cuenta { position: absolute; top: 12px; right: 12px; }
.of-plano-a { display: flex; align-items: center; gap: 8px; padding: 6px; border: 1px solid var(--of-linea); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; text-align: left; }
.of-plano-a b { flex: 1; font-size: 13px; }
.of-plano-a .of-avatar { width: 30px; height: 30px; font-size: 13px; }

@media (max-width: 960px) {
  html, body { height: auto; }
  .of-app { height: auto; min-height: 100vh; grid-template-columns: minmax(0, 1fr); grid-template-rows: 58px 62vh auto; grid-template-areas: 'barra' 'escena' 'lado'; }
  .of-lado { overflow: visible; border-right: 0; border-top: 1px solid var(--of-linea); }
  .of-leyenda { display: none; }
  .of-tarjeta, .of-sala, .of-tareas { left: 10px; right: 10px; top: auto; bottom: 10px; width: auto; max-height: 70%; }
  .of-chat { right: 8px; left: 8px; width: auto; bottom: 8px; height: 76%; }
  .of-btn.claro.of-enlace-panel { display: none; }
}
@media (max-width: 720px) {
  .of-zona { display: none !important; }
  .of-placa { font-size: 10.5px; padding: 2px 7px 2px 5px; }
}
@media (max-width: 560px) {
  .of-barra { padding: 0 12px; gap: 10px; }
  .of-barra-medio { display: none; }
  .of-barra-der { margin-left: auto; }
  .of-btn-tareas span:last-child { display: none; }
  .of-saludo h1 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ───── Mundo KAIA: vistas, línea de tiempo, edificios, sedes y mensajes (16-10-2026) ───── */
.of-capa.lejos .of-placa, .of-capa.lejos .of-zona { display: none !important; }
.of-capa.cerca .of-edificio { display: none !important; }
.of-edificio { position: absolute; left: 0; top: 0; padding: 5px 14px; border: 0; border-radius: 8px; background: rgba(15, 30, 42, .9); color: var(--of-crema); font: 600 12.5px/1.2 var(--of-mono); letter-spacing: .1em; text-transform: uppercase; pointer-events: auto; cursor: pointer; white-space: nowrap; will-change: transform; box-shadow: 0 3px 10px rgba(8, 18, 26, .25); }
.of-edificio.gild { background: #223B52; }
.of-edificio.sedes { background: rgba(20, 64, 95, .92); }
.of-edificio:hover { background: var(--of-petroleo); }
.of-sede { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 5px; max-width: 150px; padding: 2px 8px; border: 0; border-radius: 999px; background: #fff; color: var(--of-tinta); font: 500 10.5px/1.25 var(--of-fuente); box-shadow: 0 1px 5px rgba(8, 18, 26, .25); pointer-events: auto; cursor: pointer; will-change: transform; transition: background .25s, color .25s; }
.of-sede .of-edif-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.of-sede-cuenta { min-width: 16px; padding: 0 4px; border-radius: 999px; background: var(--of-ambar); color: var(--of-navy0); font: 600 10px/16px var(--of-mono); text-align: center; }
.of-sede.dest-verde { background: var(--of-ok); color: #fff; } .of-sede.dest-ambar { background: var(--of-ambar); color: var(--of-navy0); } .of-sede.dest-rojo { background: var(--of-rojo); color: #fff; } .of-sede.dest-azul { background: var(--of-petroleo); color: #fff; }
.of-sede.dest-verde::after { content: 'nota'; margin-left: 2px; font: 600 10px/1 var(--of-mono); }
.of-bandeja { position: absolute; left: 0; top: 0; padding: 4px 10px; border-radius: 8px; background: var(--of-crema); color: var(--of-navy1); font: 600 11.5px/1.2 var(--of-fuente); box-shadow: 0 2px 8px rgba(8, 18, 26, .3); pointer-events: none; white-space: nowrap; will-change: transform; border: 2px solid var(--of-petroleo); }
.of-bandeja.hay { border-color: var(--of-ambar); }
.of-placa.of-gild { background: #223B52; color: #fff; border: 0; font-family: var(--of-fuente); }
.of-zona.pulso { animation: of-pulso .6s ease-in-out 3; }
@keyframes of-pulso { 50% { background: var(--of-ambar); color: var(--of-navy0); transform-origin: center; } }
.of-vistas { position: absolute; left: 14px; top: 14px; z-index: 6; display: flex; gap: 4px; padding: 4px; background: rgba(255, 255, 255, .94); border-radius: 12px; box-shadow: 0 2px 8px rgba(8, 18, 26, .15); flex-wrap: wrap; max-width: calc(100% - 28px); }
.of-vistas button, .of-seg button { min-height: 34px; padding: 4px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--of-tinta2); font: 500 13px/1 var(--of-fuente); cursor: pointer; }
.of-vistas button:hover, .of-seg button:hover { background: #EEF1F4; }
.of-vistas button[aria-pressed="true"], .of-seg button[aria-pressed="true"] { background: var(--of-petroleo); color: #fff; }
.of-tiempo { position: absolute; left: 64px; right: 160px; bottom: 14px; z-index: 6; max-width: 760px; padding: 8px 12px 10px; background: rgba(255, 255, 255, .96); border-radius: 14px; box-shadow: 0 4px 16px rgba(8, 18, 26, .2); }
.of-t-fila { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.of-seg { display: inline-flex; padding: 3px; background: #EEF1F4; border-radius: 11px; }
.of-t-play { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--of-petroleo); color: #fff; font: 600 14px/1 var(--of-fuente); cursor: pointer; }
.of-t-play:disabled { background: #B8C0C7; cursor: default; }
.of-t-vel { font-size: 12px; color: var(--of-tinta2); display: inline-flex; align-items: center; gap: 6px; }
.of-t-vel select { font: 500 12px/1 var(--of-fuente); padding: 5px 6px; border-radius: 8px; border: 1px solid var(--of-linea); background: #fff; }
.of-t-ultimo { padding: 6px 11px; border: 1px solid var(--of-linea); border-radius: 9px; background: #fff; color: var(--of-petroleo); font: 500 12px/1 var(--of-fuente); cursor: pointer; }
.of-t-hora { margin-left: auto; font: 500 12px/1.2 var(--of-mono); color: var(--of-tinta2); }
.of-t-hist { display: block; width: 100%; height: 30px; margin-top: 6px; }
.of-t-pos { width: 100%; margin: 2px 0 0; accent-color: var(--of-petroleo); }
.of-t-pos:disabled { opacity: .45; }
.of-escenario.sin3d .of-vistas, .of-escenario.sin3d .of-tiempo { display: none; }
.of-leyenda-lista { list-style: none; margin: 0; padding: 0 4px; display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--of-tinta2); }
.of-leyenda-lista li { display: flex; align-items: center; gap: 8px; }
.of-leyenda-lista i { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; }
.of-viaje { width: 100%; display: flex; align-items: flex-start; gap: 8px; padding: 6px 8px; border: 1px solid transparent; border-radius: 10px; background: transparent; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.of-viaje:hover { background: #F4F6F8; }
.of-viaje i { width: 10px; height: 10px; border-radius: 3px; margin-top: 4px; flex: 0 0 auto; }
.of-viaje-t { display: flex; flex-direction: column; min-width: 0; }
.of-viaje-t b { font: 500 12.5px/1.3 var(--of-fuente); }
.of-viaje-t span { font-size: 11.5px; color: var(--of-tinta3); }
.of-visor-nota { margin: 12px 0 0; font-size: 11.5px; color: var(--of-tinta3); }
@media (max-width: 960px) {
  .of-tiempo { left: 8px; right: 8px; bottom: 8px; max-width: none; }
  .of-vistas { left: 8px; top: 8px; }
  .of-controles { bottom: 130px; left: 8px; }
  .of-chat-abrir { bottom: 130px; }
}

/* ───────── Mundo KAIA por niveles (20-10-2026): migas, módulos, pabellón de Hyundai, mapa del Perú y oficina de la sede ───────── */
.of-migas { position: absolute; left: 14px; top: 62px; z-index: 6; max-width: calc(100% - 28px); padding: 5px 12px; background: rgba(255, 255, 255, .94); border-radius: 10px; box-shadow: 0 2px 8px rgba(8, 18, 26, .15); }
.of-migas ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; font: 500 12.5px/1.2 var(--of-fuente); }
.of-migas li { display: inline-flex; align-items: center; }
.of-migas li + li::before { content: '›'; margin: 0 7px; color: var(--of-gris); font-weight: 600; }
.of-miga { border: 0; background: transparent; padding: 3px 0; font: inherit; color: var(--of-petroleo); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.of-miga:hover { color: var(--of-navy1); }
span.of-miga { color: var(--of-tinta2); cursor: default; text-decoration: none; }
span.of-miga.act { color: var(--of-tinta); font-weight: 600; }
.of-edificio.central { background: #0F1E2A; }
.of-edificio.modulo, .of-edificio.marcas { display: inline-flex; align-items: center; gap: 8px; background: rgba(15, 30, 42, .92); border-left: 5px solid var(--of-mod, var(--of-petroleo)); padding: 5px 12px; }
.of-edificio.marcas { --of-mod: #14405F; background: rgba(20, 64, 95, .94); }
.of-edificio.marcas-t { background: rgba(20, 64, 95, .78); padding: 3px 10px; font-size: 11px; }
.of-modulo-estado { font: 500 10.5px/1.2 var(--of-fuente); letter-spacing: 0; text-transform: none; color: #C9D1D8; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.of-edificio[data-estado="pend"] .of-modulo-estado { background: var(--of-ambar); color: var(--of-navy0); font-weight: 600; }
.of-edificio[data-estado="ok"] .of-modulo-estado { background: rgba(18, 161, 80, .85); color: #fff; }
.of-edificio[data-estado="sd"] .of-modulo-estado { background: rgba(255, 255, 255, .16); color: #C9D1D8; }
.of-edificio.dest-verde { background: var(--of-ok); } .of-edificio.dest-ambar { background: var(--of-ambar); color: var(--of-navy0); } .of-edificio.dest-rojo { background: var(--of-rojo); } .of-edificio.dest-azul { background: var(--of-petroleo); }
.of-edificio.pulso { animation: of-pulso 1.1s ease-out 2; }
/* paneles anchos: el mapa y la oficina de la sede */
.of-flota.of-ancho { top: 100px; right: 14px; bottom: 14px; width: min(680px, 54%); max-height: none; overflow-y: auto; padding: 16px; }
.of-sede-p { width: min(760px, 60%); }
.of-mapa-tabs { margin: 4px 0 10px; display: inline-flex; padding: 3px; background: #EEF1F4; border-radius: 11px; }
.of-mapa-tabs button:disabled { opacity: .4; cursor: default; }
.of-mapa-cuerpo { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.of-mapa-svg { min-width: 0; }
.of-mapa-svg svg.of-svg { display: block; width: 100%; height: auto; max-height: 520px; }
.of-mapa-svg svg.peru .dep { fill: #DCE4E9; stroke: #fff; stroke-width: 1.1; }
.of-mapa-svg svg.lima .ld { fill: #DCE4E9; stroke: #fff; stroke-width: .8; }
.of-mapa-svg svg .of-pin { cursor: pointer; outline: none; }
.of-mapa-svg svg .of-pin-p { fill: #14405F; stroke: #fff; stroke-width: 2; transition: fill .2s; }
.of-mapa-svg svg .of-pin.lima .of-pin-p { fill: #0F1E2A; }
.of-mapa-svg svg .of-pin:hover .of-pin-p, .of-mapa-svg svg .of-pin:focus-visible .of-pin-p, .of-mapa-svg svg .of-pin.sel .of-pin-p { fill: #E8A317; }
.of-mapa-svg svg .of-pin-n { fill: #fff; font-family: var(--of-mono); font-weight: 600; pointer-events: none; }
.of-mapa-svg svg .of-pin-r { fill: #0F1E2A; font-family: var(--of-fuente); font-weight: 600; paint-order: stroke; stroke: #fff; stroke-width: 6px; pointer-events: none; }
.of-mapa-svg svg .of-pin.pulso .of-pin-p { animation: of-pulso-pin 1s ease-out 2; }
@keyframes of-pulso-pin { 0% { fill: #1B9AAA; } 100% { fill: #14405F; } }
.of-mapa-lista { min-width: 0; max-height: 540px; overflow-y: auto; padding-right: 4px; }
.of-mapa-ciudad { margin: 10px 0 4px; font: 600 10.5px/1.2 var(--of-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--of-tinta2); }
.of-sede-fila { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; border: 1px solid var(--of-linea); background: #fff; border-radius: 10px; padding: 7px 10px; margin-bottom: 5px; cursor: pointer; font: inherit; }
.of-sede-fila:hover, .of-sede-fila.sel { border-color: var(--of-petroleo); background: #F4F8FB; }
.of-sede-fila.pulso { animation: of-pulso 1s ease-out 2; }
.of-sede-fila-t { display: flex; flex-direction: column; min-width: 0; font-size: 12.5px; line-height: 1.3; }
.of-sede-fila-t b { font-weight: 600; } .of-sede-fila-t span { color: var(--of-tinta2); font-size: 11.5px; }
.of-acep { width: 10px; height: 10px; border-radius: 50%; background: var(--of-gris); flex: none; }
.of-acep.aceptado { background: var(--of-ok); } .of-acep.cambios { background: var(--of-ambar); }
.of-sede-res { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 6px 0 10px; }
.of-sede-dato { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px solid var(--of-linea); border-radius: 10px; font-size: 12.5px; }
.of-sede-dato .of-dato-r { color: var(--of-tinta2); font: 500 10px/1.3 var(--of-mono); letter-spacing: .1em; text-transform: uppercase; }
.of-sede-dato .of-dato-v { font-weight: 600; font-size: 13px; }
.of-sede-falta { margin: 0 0 10px; font-size: 12.5px; }
.of-sede-falta ul { margin: 4px 0 0; padding-left: 18px; }
.of-sede-botones { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.of-sede-sim { min-width: 0; }
.of-sede-dib { margin: 6px 0; }
.of-sede-cuerpo { background: transparent; border: 0; padding: 0; font-size: 14px; }
@keyframes of-pulso { 0% { box-shadow: 0 0 0 0 rgba(27, 154, 170, .7); } 100% { box-shadow: 0 0 0 14px rgba(27, 154, 170, 0); } }
.of-vistas { top: 14px; }
@media (max-width: 960px) {
  .of-migas { top: 98px; left: 8px; max-width: calc(100% - 16px); }
  .of-flota.of-ancho { position: fixed; z-index: 30; top: 0; left: 0; right: 0; bottom: 0; width: auto; max-height: none; border-radius: 0; padding: 12px 12px 24px; }
  .of-mapa-cuerpo { grid-template-columns: minmax(0, 1fr); }
  .of-mapa-svg svg.of-svg { max-height: 360px; }
  .of-mapa-lista { max-height: none; }
  .of-sede-res { grid-template-columns: minmax(0, 1fr); }
}
/* dentro de .ms (los estilos de «Mi sede») los botones heredan el color: los del Mundo conservan el suyo */
.ms .of-btn { color: #fff; }
.ms .of-btn.claro { color: var(--of-petroleo, #14405F); }
.ms a.of-btn { text-decoration: none; display: inline-flex; align-items: center; }
/* celular: la jerarquía se lee de arriba abajo con la escena más alta y los controles compactos (sin scroll horizontal) */
@media (max-width: 720px) {
  .of-app { grid-template-rows: 58px 82vh auto; }
  .of-vistas { gap: 2px; padding: 3px; flex-wrap: nowrap; max-width: calc(100% - 16px); }
  .of-vistas button { min-height: 32px; padding: 4px 6px; font-size: 11.5px; }
  .of-vistas button[data-vista="paquete"] { display: none; }
  .of-migas { top: 50px; padding: 4px 9px; }
  .of-migas ol { font-size: 11.5px; }
  .of-tiempo { padding: 5px 8px 6px; }
  .of-tiempo .of-t-hist, .of-tiempo .of-t-pos, .of-tiempo .of-t-hora, .of-tiempo .of-t-vel, .of-tiempo .of-t-ultimo { display: none; }
  .of-controles { bottom: 60px; }
  .of-controles button { width: 34px; height: 34px; }
  .of-chat-abrir { bottom: 60px; font-size: 12px; }
}
@media (max-width: 720px) {
  .of-edificio { font-size: 9.5px; letter-spacing: .04em; padding: 3px 7px; }
  .of-edificio.modulo, .of-edificio.marcas { gap: 4px; padding: 3px 7px; border-left-width: 3px; }
  .of-modulo-estado { font-size: 8.5px; padding: 0 5px; }
  .of-edificio.marcas-t { display: none; }
  .of-bandeja { font-size: 10px; padding: 2px 7px; }
}

.of-migas-p { display: none; margin: 0 0 8px; }
.of-migas-p ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; font: 500 12px/1.3 var(--of-fuente); }
.of-migas-p li { display: inline-flex; align-items: center; }
.of-migas-p li + li::before { content: '›'; margin: 0 6px; color: var(--of-gris); font-weight: 600; }
@media (max-width: 960px) { .of-migas-p { display: block; } }

/* ═══════════════ Oficina 24/7 · de noche (03-11-2026) ═══════════════
   Marca: petróleo #14405F y turquesa #1B9AAA como luz base, ámbar #E8A317 = atención, rojo #E5484D = falla, gris = sin lectura vigente, navy #08121A / #0F1E2A / #1B2E3D de fondo, crema #F1EBE1 en el texto.
   El violeta (#7B6CF0) del reel queda solo como acento de la sala de reuniones con una reunión vigente. El estado nunca va solo en color: lleva su palabra. */
.of-tema { margin-right: 2px; }
.of-247 { position: absolute; right: 14px; top: 14px; z-index: 7; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; padding: 9px 16px 10px; border-radius: 16px; background: rgba(8, 18, 26, .78); border: 1px solid rgba(27, 154, 170, .5);
  box-shadow: 0 0 26px rgba(27, 154, 170, .22); color: var(--of-crema); text-align: right; pointer-events: none; backdrop-filter: blur(6px); max-width: calc(100% - 28px); }
.of-247-t { font: 600 19px/1.1 var(--of-disp); letter-spacing: -.2px; }
.of-247-fila { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 3px 14px; font: 500 12px/1.3 var(--of-mono); color: #B8C4CD; }
.of-247-d { display: inline-flex; align-items: center; color: var(--of-crema); font-weight: 600; }
.of-247-punto { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; background: var(--of-gris); }
.of-247-punto.vivo { background: #12A150; box-shadow: 0 0 0 0 rgba(18, 161, 80, .6); }
.of-247-punto.sinsenal { background: var(--of-ambar); }
@media (prefers-reduced-motion: no-preference) { .of-247-punto.vivo { animation: of-latido 1.9s ease-out infinite; } }
@keyframes of-latido { 0% { box-shadow: 0 0 0 0 rgba(18, 161, 80, .65); } 70% { box-shadow: 0 0 0 9px rgba(18, 161, 80, 0); } 100% { box-shadow: 0 0 0 0 rgba(18, 161, 80, 0); } }
.of-cinta { position: absolute; left: 64px; right: 160px; bottom: 178px; z-index: 6; display: flex; align-items: center; gap: 8px; padding: 6px 10px; overflow: hidden; border-radius: 12px; background: rgba(8, 18, 26, .72);
  border: 1px solid rgba(255, 255, 255, .1); color: var(--of-crema); font: 500 12px/1.3 var(--of-fuente); pointer-events: none; backdrop-filter: blur(4px); }
.of-cinta-t { flex: 0 0 auto; font: 600 11px/1 var(--of-mono); letter-spacing: .1em; text-transform: uppercase; color: #8FD3DC; }
.of-cinta-vacio { color: #8FA0AC; }
.of-cinta-i { flex: 0 1 auto; min-width: 0; display: inline-flex; gap: 7px; align-items: center; padding: 3px 9px; border-radius: 999px; background: rgba(27, 154, 170, .16); border: 1px solid rgba(27, 154, 170, .4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.of-cinta-i time { flex: 0 0 auto; font: 500 11px/1 var(--of-mono); color: #8FD3DC; }
.of-cinta-i span { overflow: hidden; text-overflow: ellipsis; }
.of-cinta-i.tono-atencion { background: rgba(232, 163, 23, .16); border-color: rgba(232, 163, 23, .5); }
.of-cinta-i.tono-falla { background: rgba(229, 72, 77, .16); border-color: rgba(229, 72, 77, .55); }
.of-avisos-plano { position: absolute; right: 14px; top: 96px; z-index: 9; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.of-tv-salir { position: absolute; right: 14px; bottom: 14px; z-index: 12; opacity: .85; }

/* paneles holográficos sobre cada sala (se escalan con la cámara; el tamaño de letra base es 14 px) */
.of-holo { position: absolute; left: 0; top: 0; width: 13.5em; padding: .7em .85em .8em; border-radius: 1em; border: 1px solid var(--holo-c); color: var(--of-crema); font: 500 14px/1.25 var(--of-fuente); cursor: pointer; pointer-events: auto; transform-origin: 50% 100%;
  background: linear-gradient(160deg, rgba(16, 52, 76, .74), rgba(8, 18, 26, .86)); backdrop-filter: blur(5px);
  box-shadow: 0 0 1.7em rgba(var(--holo-rgb), .34), inset 0 0 1.5em rgba(var(--holo-rgb), .12), inset 0 1px 0 rgba(255, 255, 255, .16); }
.of-holo:focus-visible { outline: 3px solid #8FD3DC; outline-offset: 3px; }
.of-holo.t-ok { --holo-c: #1B9AAA; --holo-rgb: 27, 154, 170; } .of-holo.t-atencion { --holo-c: #E8A317; --holo-rgb: 232, 163, 23; }
.of-holo.t-falla { --holo-c: #E5484D; --holo-rgb: 229, 72, 77; } .of-holo.t-gris { --holo-c: #5A6B78; --holo-rgb: 90, 107, 120; }
.of-holo.sala.t-ok { --holo-c: #1B9AAA; }
.of-holo.principal { width: 35em; padding: .8em 1em .9em; display: grid; grid-template-columns: 12.5em minmax(0, 1fr); column-gap: 1.1em; grid-template-areas: 'cab cab' 'medio filas' 'pie filas' 'logros logros'; align-items: start; }
.of-holo.principal .of-holo-cab { grid-area: cab; } .of-holo.principal .of-holo-medio { grid-area: medio; flex-wrap: wrap; } .of-holo.principal .of-holo-pie { grid-area: pie; flex-direction: column; gap: .1em; }
.of-holo.principal .of-holo-filas { grid-area: filas; margin-top: 0; } .of-holo.principal .of-holo-filas .of-holo-fila:first-child { margin-top: 0; padding-top: 0; border-top: 0; } .of-holo.principal .of-holo-logros { grid-area: logros; }
.of-holo-cab { display: flex; align-items: center; gap: .5em; font: 600 1em/1.15 var(--of-disp); letter-spacing: -.01em; }
.of-holo-pt { flex: 0 0 auto; width: .62em; height: .62em; border-radius: 50%; background: var(--holo-c); box-shadow: 0 0 .9em var(--holo-c); }
.of-holo-medio { display: flex; align-items: baseline; gap: .55em; margin: .15em 0 .1em; }
.of-holo-cifra { font: 700 3.95em/1 var(--of-disp); letter-spacing: -.035em; color: #fff; text-shadow: 0 0 .32em rgba(var(--holo-rgb), .85); }
.of-holo.principal .of-holo-cifra { font-size: 4.6em; }
.of-holo-etq { font: 500 .78em/1.15 var(--of-mono); letter-spacing: .06em; text-transform: uppercase; color: #B8C4CD; }
.of-holo-pie { display: flex; justify-content: space-between; gap: .6em; font: 500 .84em/1.2 var(--of-fuente); color: #C9D6DE; }
.of-holo-por.hay { color: #F3C04D; font-weight: 600; }
.of-holo-est { color: var(--holo-c); font-weight: 600; filter: brightness(1.35); }
.of-holo-filas, .of-holo-logros { display: none; }
.of-holo.principal .of-holo-filas { display: block; }
.of-holo.principal .of-holo-logros { display: flex; gap: .5em; margin-top: .7em; }
.of-holo-fila { margin-top: .5em; padding-top: .5em; border-top: 1px solid rgba(255, 255, 255, .12); }
.of-hf-cab { display: flex; align-items: center; gap: .45em; }
.of-hf-pt { flex: 0 0 auto; width: .55em; height: .55em; border-radius: 50%; background: #1B9AAA; }
.of-hf-pt.v-atencion { background: #E8A317; } .of-hf-pt.v-error { background: #E5484D; } .of-hf-pt.v-sin_lectura, .of-hf-pt.v-reservado { background: #5A6B78; }
.of-hf-n { font: 600 1em/1.1 var(--of-disp); }
.of-hf-ok { margin-left: auto; font: 500 .8em/1.1 var(--of-mono); color: #7FD1B9; white-space: nowrap; }
.of-hf-t { display: block; margin-top: .15em; font-size: .93em; color: #D5DEE5; }
.of-hf-barra { display: none; height: .3em; margin-top: .45em; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .12); }
.of-hf-barra.corre { display: block; }
.of-hf-barra i { display: block; height: 100%; width: 35%; border-radius: 99px; background: linear-gradient(90deg, #1B9AAA, #8FD3DC); box-shadow: 0 0 .6em rgba(27, 154, 170, .8); }
.of-hf-barra.con-avance i { width: 0; transition: width .5s; }
@media (prefers-reduced-motion: no-preference) { .of-hf-barra.corre:not(.con-avance) i { animation: of-barra 1.4s ease-in-out infinite; } }
@keyframes of-barra { 0% { transform: translateX(-60%); } 100% { transform: translateX(300%); } }
.of-holo-logro { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .12em; padding: .42em .5em; border-radius: .6em; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); font-size: .8em; line-height: 1.2; }
.of-hl-ic { display: inline-flex; align-items: center; justify-content: center; width: 1.5em; height: 1.5em; border-radius: .45em; background: #12A150; color: #fff; font: 700 1em/1 var(--of-disp); font-style: normal; }
.of-holo-logro.tono-atencion .of-hl-ic { background: #E8A317; color: #08121A; } .of-holo-logro.tono-falla .of-hl-ic { background: #E5484D; }
.of-hl-t { font-weight: 600; } .of-holo-logro small { color: #9FB0BC; font: 500 .85em/1.1 var(--of-mono); }
.of-holo.compacto { width: 11.5em; }
.of-holo.compacto .of-holo-pie { flex-direction: column; gap: .05em; }
@media (prefers-reduced-motion: no-preference) { .of-holo.nuevo { animation: of-holo-entra .7s ease-out both; } }
@keyframes of-holo-entra { 0% { opacity: 0; filter: blur(6px); } 100% { opacity: 1; filter: none; } }

/* avisos «✓ Listo» junto a la sala */
.of-aviso247 { position: absolute; left: 0; top: 0; z-index: 8; display: flex; align-items: center; gap: .7em; width: max-content; max-width: 24em; padding: .65em 1em .65em .75em; border-radius: 1.1em; border: 1px solid #12A150; background: rgba(8, 18, 26, .92);
  color: var(--of-crema); font: 500 14px/1.25 var(--of-fuente); box-shadow: 0 0 1.8em rgba(18, 161, 80, .55); pointer-events: none; opacity: 0; transform-origin: 50% 50%; }
.of-aviso247.tono-atencion { border-color: #E8A317; box-shadow: 0 0 1.8em rgba(232, 163, 23, .5); } .of-aviso247.tono-falla { border-color: #E5484D; box-shadow: 0 0 1.8em rgba(229, 72, 77, .55); }
.of-av-ic { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 2.2em; height: 2.2em; border-radius: 50%; background: #12A150; color: #fff; font: 700 1.3em/1 var(--of-disp); font-style: normal; }
.of-aviso247.tono-atencion .of-av-ic { background: #E8A317; color: #08121A; } .of-aviso247.tono-falla .of-av-ic { background: #E5484D; }
.of-av-t { display: block; font: 700 1.45em/1.05 var(--of-disp); } .of-av-x { display: block; font-size: .95em; color: #D5DEE5; }
.of-aviso247.plano { position: static; opacity: 1; max-width: 340px; font-size: 13px; }
@media (prefers-reduced-motion: no-preference) { .of-aviso247.plano { animation: of-holo-entra .5s ease-out both; } }

/* «Revisar ahora» */
.of-rv { background: var(--of-petroleo); color: #fff; }
.of-rv:disabled { opacity: .7; cursor: progress; }
.of-rv-nota { margin: 8px 0 0; font-size: 11.5px; color: var(--of-tinta3); } .of-rv-nota.malo { color: #B3262F; }
.of-plano-h, .of-plano-ahora { margin: 0; font-size: 12.5px; color: var(--of-tinta2); }

/* tema de noche de toda la página */
body.of.of-noche { --of-tinta: #E6EDF2; --of-tinta2: #B3C0CA; --of-tinta3: #8B9CA8; --of-linea: rgba(255, 255, 255, .13); background: #08121A; color: #E6EDF2; }
.of-noche .of-barra, .of-noche .of-lado { background: #0C1A25; border-color: rgba(255, 255, 255, .1); }
.of-noche .of-marca img { filter: brightness(0) invert(1) sepia(.12); }
.of-noche .of-escenario { background: #08121A; }
.of-noche .of-btn.claro, .of-noche .of-btn-tareas { background: #12283A; color: #E6EDF2; border-color: rgba(255, 255, 255, .16); }
.of-noche .of-btn-tareas.hay { background: #3A2C0C; border-color: var(--of-ambar); }
.of-noche .of-seg { background: #12283A; } .of-noche .of-seg button { color: #B3C0CA; } .of-noche .of-seg button:hover { background: rgba(255, 255, 255, .08); }
.of-noche .of-seg button[aria-pressed="true"], .of-noche .of-vistas button[aria-pressed="true"] { background: #1B9AAA; color: #08121A; }
.of-noche .of-depto:hover, .of-noche .of-fila:hover, .of-noche .of-viaje:hover { background: rgba(255, 255, 255, .06); }
.of-noche .of-depto.act, .of-noche .of-fila.sel { background: rgba(27, 154, 170, .18); border-color: #1B9AAA; }
.of-noche .of-uso { background: rgba(255, 255, 255, .08); color: #B3C0CA; } .of-noche .of-uso.hay { background: rgba(232, 163, 23, .22); color: #F3C04D; }
.of-noche .of-chip { background: rgba(255, 255, 255, .08); color: #C9D6DE; }
.of-noche .of-chip.c-ambar { background: rgba(232, 163, 23, .2); color: #F3C04D; } .of-noche .of-chip.c-petroleo { background: rgba(27, 154, 170, .2); color: #8FD3DC; } .of-noche .of-chip.c-rojo { background: rgba(229, 72, 77, .2); color: #FF9CA0; }
.of-noche .of-cuenta.suave { background: rgba(255, 255, 255, .12); color: #C9D6DE; }
.of-noche .of-avatar { border-color: #0C1A25; }
.of-noche .of-flota { background: #0F1E2A; color: #E6EDF2; box-shadow: 0 12px 40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .12); }
.of-noche .of-msg.kaia { background: rgba(255, 255, 255, .08); } .of-noche .of-sug { background: #12283A; color: #8FD3DC; } .of-noche .of-sug:hover { background: rgba(27, 154, 170, .2); }
.of-noche .of-vistas, .of-noche .of-tiempo, .of-noche .of-migas { background: rgba(12, 26, 37, .9); } .of-noche .of-vistas button, .of-noche .of-seg button { color: #B3C0CA; } .of-noche .of-vistas button:hover { background: rgba(255, 255, 255, .08); }
.of-noche .of-controles button { background: #12283A; color: #E6EDF2; border-color: rgba(255, 255, 255, .16); }
.of-noche .of-estado, .of-noche .of-plano { background: #08121A; } .of-noche .of-aviso, .of-noche .of-plano-d, .of-noche .of-plano-a, .of-noche .of-plano-aviso { background: #0F1E2A; color: #E6EDF2; }
.of-noche .of-zona { display: none; }
.of-noche .of-placa { background: rgba(12, 26, 37, .92); color: #E6EDF2; box-shadow: 0 0 0 1px rgba(27, 154, 170, .5), 0 0 14px rgba(27, 154, 170, .3); }
.of-noche .of-placa.e-ambar { box-shadow: 0 0 0 1px rgba(232, 163, 23, .7), 0 0 14px rgba(232, 163, 23, .35); } .of-noche .of-placa.e-rojo { box-shadow: 0 0 0 1px rgba(229, 72, 77, .8), 0 0 14px rgba(229, 72, 77, .4); }
.of-noche .of-placa.e-rojo .of-alerta { background: var(--of-rojo); color: #fff; }
.of-noche .of-placa.e-petroleo .of-punto { background: #1B9AAA; box-shadow: 0 0 6px #1B9AAA; }
.of-noche .of-tj-nom p, .of-noche .of-tj-hora { color: #8B9CA8; } .of-noche .of-tj-donde { color: #8FD3DC; }
.of-noche .of-ver { color: #8FD3DC; }
.of-noche .of-tj-estado .of-chip, .of-noche .of-tj-pie .of-btn { border-color: rgba(255, 255, 255, .16); }
.of-noche .of-tj-pie .of-btn:not(.of-rv) { background: #12283A; color: #E6EDF2; }

/* Modo TV: pantalla completa, solo escena + paneles + barra 24/7 + avisos + «Lo último» */
body.of-tv { overflow: hidden; }
body.of-tv.of-sin-cursor, body.of-tv.of-sin-cursor * { cursor: none !important; }
body.of-tv .of-app { grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); grid-template-areas: 'escena'; }
body.of-tv .of-barra, body.of-tv .of-lado, body.of-tv .of-controles, body.of-tv .of-vistas, body.of-tv .of-tiempo, body.of-tv .of-migas, body.of-tv .of-chat-abrir, body.of-tv .of-chat, body.of-tv .of-flota { display: none !important; }
body.of-tv .of-247 { left: 50%; right: auto; top: 10px; transform: translateX(-50%); align-items: center; text-align: center; padding: 8px 30px 10px; border-radius: 22px; width: max-content; max-width: calc(100% - 48px); }
body.of-tv .of-247-t { font-size: 40px; }
body.of-tv .of-247-fila { justify-content: center; gap: 2px 26px; font-size: 22px; flex-wrap: wrap; white-space: normal; }
body.of-tv .of-247-punto { width: 20px; height: 20px; margin-right: 12px; }
body.of-tv .of-cinta { left: 24px; right: 24px; bottom: 22px; gap: 14px; padding: 12px 18px; border-radius: 18px; font-size: 28px; }
body.of-tv .of-cinta-t { font-size: 28px; } body.of-tv .of-cinta-i { padding: 6px 16px; } body.of-tv .of-cinta-i time { font-size: 28px; }
body.of-tv .of-avisos-plano { top: 190px; right: 24px; } body.of-tv .of-aviso247.plano { font-size: 28px; max-width: 760px; }
body.of-tv .of-tv-salir { opacity: 0; transition: opacity .3s; } body.of-tv:not(.of-sin-cursor) .of-tv-salir { opacity: .9; }
body.of-tv .of-holo { pointer-events: none; }

body.of-tv .of-holo-etq, body.of-tv .of-holo-pie, body.of-tv .of-hf-ok, body.of-tv .of-hf-t, body.of-tv .of-holo-logro, body.of-tv .of-hl-t, body.of-tv .of-holo-logro small { font-size: 1em; }
body.of-tv .of-holo-etq { letter-spacing: .03em; } body.of-tv .of-holo.principal { width: 31em; grid-template-columns: 10em minmax(0, 1fr); } body.of-tv .of-holo.compacto { width: 12.5em; }

/* sin WebGL: los mismos departamentos con sus cifras, debajo de la barra 24/7 */
.of-plano { padding-top: 104px; }
.of-plano-a { flex-wrap: wrap; } .of-plano-ahora { flex: 1 0 100%; padding: 0 2px; }
.of-noche .of-x { background: #12283A; color: #E6EDF2; border-color: rgba(255, 255, 255, .16); }
@media (max-width: 960px) { .of-247 { left: 8px; right: 8px; top: 96px; align-items: flex-start; text-align: left; } .of-247-t { font-size: 16px; } .of-247-fila { justify-content: flex-start; font-size: 11px; } .of-cinta { left: 8px; right: 8px; bottom: 150px; } }

/* en la tele, los paneles de las demás salas son fichas: nombre, cifra grande y la insignia de lo que espera una decisión; el principal y la sala en primer plano llevan el detalle */
.of-holo-badge { display: none; margin-left: auto; min-width: 1.6em; padding: .05em .45em; border-radius: 99px; background: #E8A317; color: #08121A; font: 700 .95em/1.3 var(--of-mono); text-align: center; }
body.of-tv .of-holo.compacto .of-holo-badge:not(:empty) { display: inline-block; }
body.of-tv .of-holo.compacto { width: 10.5em; padding: .6em .75em .65em; }
body.of-tv .of-holo.compacto .of-holo-etq, body.of-tv .of-holo.compacto .of-holo-pie { display: none; }
body.of-tv .of-holo.compacto .of-holo-medio { margin: 0; }

body.of-tv .of-247, body.of-tv .of-cinta, body.of-tv .of-avisos-plano, body.of-tv .of-tv-salir { zoom: var(--tvk, 1); }

/* Modo TV (04-11-2026): fichas compactas pegadas a su sala (cifra y nombre en una fila: cifra ≥ 96 px y nombre ≥ 28 px a 1080p) y solo el departamento en foco con el panel grande: así la oficina 3D se ve como en el reel */
body.of-tv .of-holo.compacto { width: auto; max-width: 19em; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: 'medio cab'; align-items: center; column-gap: .45em; padding: .3em .6em .3em .5em; border-radius: .8em; background: rgba(8, 18, 26, .82); }
body.of-tv .of-holo.compacto .of-holo-medio { grid-area: medio; margin: 0; }
body.of-tv .of-holo.compacto .of-holo-cab { grid-area: cab; font-size: 1.15em; line-height: 1.12; min-width: 0; }
body.of-tv .of-holo.compacto .of-holo-nombre { display: block; overflow-wrap: normal; word-break: normal; hyphens: none; }
body.of-tv .of-holo.compacto .of-holo-pt { display: none; }
body.of-tv .of-holo.compacto .of-holo-cifra { font-size: 3.95em; }
body.of-tv .of-holo.principal { width: 26em; grid-template-columns: 8.5em minmax(0, 1fr); grid-template-areas: 'cab cab' 'medio filas' 'pie filas'; }
body.of-tv .of-holo.principal .of-holo-logros { display: none; }

/* Modo TV · revisión del 04-11-2026: rieles laterales con las fichas y panel grande arriba, para que la oficina 3D sea la protagonista (cifra ≥ 96 px y texto ≥ 28 px a 1080 p; todo escala con la altura de la pantalla) */
body.of-tv .of-holo { padding: .3em .55em .3em .5em; }
body.of-tv .of-holo.compacto { width: auto; max-width: 17.5em; column-gap: .4em; padding: .15em .5em .15em .45em; border-radius: .7em; }
body.of-tv .of-holo.compacto .of-holo-cifra { font-size: 3.45em; line-height: .95; letter-spacing: -.045em; }
body.of-tv .of-holo.compacto .of-holo-cab { font-size: 1.1em; line-height: 1.08; }
body.of-tv .of-holo-badge { font-size: 1em; }
body.of-tv .of-holo.principal { width: 30em; grid-template-columns: 11.5em minmax(0, 1fr); column-gap: .8em; row-gap: .05em; grid-template-areas: 'cab filas' 'medio filas' 'pie pie'; padding: .35em .75em .35em; border-radius: .9em; }
body.of-tv .of-holo.principal .of-holo-cab { font-size: 1.1em; }
body.of-tv .of-holo.principal .of-holo-medio { margin: 0; gap: .35em; align-items: center; flex-wrap: nowrap; }
body.of-tv .of-holo.principal .of-holo-cifra { font-size: 3.45em; line-height: .95; }
body.of-tv .of-holo.principal .of-holo-etq { display: block; font-size: 1em; line-height: 1.1; }
body.of-tv .of-holo.principal .of-holo-pie { flex-direction: row; justify-content: flex-start; gap: .9em; }
body.of-tv .of-holo.principal .of-holo-filas { margin-top: .1em; }
body.of-tv .of-holo.principal .of-hf-t { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
body.of-tv .of-cinta { right: auto; width: max-content; max-width: calc(100% - 48px); }
body.of-tv .of-cinta-i { max-width: 21em; }
body.of-tv .of-holo.principal[data-ags]:not([data-ags="1"]):not([data-ags="0"]) .of-hf-t { -webkit-line-clamp: 1; }
/* avisos «✓ Listo» en la tele: una sola línea, en el lugar de la cinta mientras dura (28 px) */
body.of-tv .of-aviso247 { max-width: 44em; padding: .25em .8em .25em .45em; gap: .5em; border-radius: .8em; font-size: 14px; }
body.of-tv .of-av-ic { width: 1.7em; height: 1.7em; font-size: 1em; }
body.of-tv .of-av-c { display: flex; align-items: baseline; gap: .6em; min-width: 0; }
body.of-tv .of-av-t { font-size: 1.1em; } body.of-tv .of-av-x { font-size: 1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ───── Terminado (oficina94, 09-11-2026): solo hechos reales ya terminados, lo más nuevo arriba. Vive en la barra lateral (nunca encima de la escena); en el celular queda debajo de las tarjetas; en el Modo TV tiene su propia columna a la derecha. ───── */
.of-terminado { margin: 0 0 14px; display: flex; flex-direction: column; border-radius: 14px; background: #0F1E2A; border: 1px solid rgba(27, 154, 170, .45); color: #F1EBE1; overflow: hidden; }
.of-term-cab { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer; font: 600 15px/1.2 var(--of-disp); letter-spacing: -.1px; }
.of-term-cab:focus-visible { outline: 2px solid #8FD3DC; outline-offset: -2px; }
.of-term-n { margin-left: auto; font: 600 11px/1 var(--of-mono); padding: 4px 9px; border-radius: 999px; background: rgba(18, 161, 80, .2); border: 1px solid rgba(18, 161, 80, .55); color: #8FE3B0; }
.of-term-chev { width: 8px; height: 8px; border-right: 2px solid #8FD3DC; border-bottom: 2px solid #8FD3DC; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.of-terminado.cerrado .of-term-chev { transform: rotate(-135deg); }
.of-terminado.cerrado .of-term-cuerpo { display: none; }
.of-term-cuerpo { display: flex; flex-direction: column; min-height: 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.of-term-mac, .of-term-ia { margin: 0; padding: 8px 14px; font-size: 12px; line-height: 1.4; }
.of-term-mac { background: rgba(232, 163, 23, .16); color: #F4D58A; border-bottom: 1px solid rgba(232, 163, 23, .35); }
.of-term-ia { color: #F4D58A; border-top: 1px solid rgba(255, 255, 255, .08); }
.of-term-lista { list-style: none; margin: 0; padding: 4px 0; overflow-y: auto; min-height: 0; max-height: 300px; }
.of-term-i { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; padding: 7px 14px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.of-term-i:last-child { border-bottom: 0; }
.of-term-hora { font: 500 11px/1.5 var(--of-mono); color: #8FD3DC; white-space: nowrap; }
.of-term-c { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.of-term-quien { font: 600 11px/1.3 var(--of-mono); letter-spacing: .06em; text-transform: uppercase; color: #B8C4CD; }
.of-term-texto { font-size: 13px; line-height: 1.35; color: #F1EBE1; overflow-wrap: anywhere; text-decoration: none; }
a.of-term-texto { text-decoration: underline; text-decoration-color: rgba(143, 211, 220, .55); text-underline-offset: 2px; }
a.of-term-texto:hover, a.of-term-texto:focus-visible { color: #fff; text-decoration-color: #8FD3DC; outline: none; }
.of-term-estado { align-self: flex-start; margin-top: 2px; padding: 1px 8px; border-radius: 999px; font: 500 10.5px/1.5 var(--of-mono); font-style: normal; border: 1px solid rgba(255, 255, 255, .2); color: #B8C4CD; }
.of-term-estado.est-publicado { border-color: rgba(18, 161, 80, .6); color: #8FE3B0; }
.of-term-estado.est-local { border-color: rgba(232, 163, 23, .6); color: #F4D58A; }
.of-term-estado.est-revision, .of-term-estado.est-cola { border-color: rgba(27, 154, 170, .7); color: #8FD3DC; }
.of-term-vacio { padding: 12px 14px; font-size: 12.5px; color: #8FA0AC; }
.of-term-pie { display: block; padding: 9px 14px; font-size: 12.5px; font-weight: 600; color: #8FD3DC; text-decoration: none; border-top: 1px solid rgba(255, 255, 255, .08); }
.of-term-pie:hover, .of-term-pie:focus-visible { background: rgba(27, 154, 170, .16); outline: none; }
.of-tj-ia { margin: 0 0 8px; padding: 6px 10px; border-radius: 8px; font-size: 12.5px; line-height: 1.4; background: rgba(232, 163, 23, .14); border: 1px solid rgba(232, 163, 23, .45); color: #8A5B00; }
.of-noche .of-tj-ia { color: #F4D58A; }
.of-plano-ia { flex: 1 0 100%; padding: 0 2px; font-size: 12px; color: #8A5B00; } .of-noche .of-plano-ia { color: #F4D58A; }
/* Modo TV: la barra lateral desaparece y el panel pasa a su propia columna a la derecha; la escena se achica a la izquierda, así que no tapa ningún panel ni placa */
body.of-tv .of-app { grid-template-columns: minmax(0, 1fr) calc(560px * var(--tvk, 1)); grid-template-areas: 'escena term'; }
body.of-tv .of-terminado { grid-area: term; margin: 0; border-radius: 0; border: 0; border-left: 2px solid rgba(27, 154, 170, .55); background: #08121A; min-height: 0; zoom: var(--tvk, 1); }
body.of-tv .of-term-cab { padding: 16px 20px; font-size: 30px; } body.of-tv .of-term-n { font-size: 20px; padding: 5px 14px; }
body.of-tv .of-term-chev, body.of-tv .of-term-ia { display: none; }
body.of-tv .of-terminado.cerrado .of-term-cuerpo { display: flex; }
body.of-tv .of-term-lista { max-height: none; overflow: hidden; }
body.of-tv .of-term-i { grid-template-columns: 1fr; gap: 2px; padding: 12px 20px; }
body.of-tv .of-term-hora { font-size: 20px; } body.of-tv .of-term-quien { font-size: 18px; } body.of-tv .of-term-texto { font-size: 24px; line-height: 1.25; } body.of-tv .of-term-estado { font-size: 18px; padding: 2px 12px; }
body.of-tv .of-term-mac { font-size: 20px; padding: 12px 20px; } body.of-tv .of-term-vacio { font-size: 22px; padding: 18px 20px; }
@media (prefers-reduced-motion: reduce) { .of-term-chev { transition: none; } }
/* oficina94: en TV la tarjeta del departamento destacado no puede crecer hasta tocar la primera fila de tarjetas (y = 322): una línea por agente */
body.of-tv .of-holo.principal .of-hf-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.of-tv .of-holo.principal .of-holo-fila { margin-top: .3em; padding-top: .3em; }
body.of-tv .of-holo.principal .of-holo-nombre { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
body.of-tv .of-holo.principal .of-holo-medio { margin: 0; } body.of-tv .of-holo.principal .of-holo-pie { margin-top: .2em; }
body.of-tv .of-holo.principal { font-size: 12px; }
.of-tareas-total { margin: 4px 6px 8px; padding: 8px 10px; border-radius: 10px; background: rgba(27, 154, 170, .14); font-size: 12.5px; line-height: 1.4; } .of-tareas-total a { color: var(--of-petroleo); font-weight: 600; } .of-noche .of-tareas-total a { color: #8FD3DC; }
body.of-tv .of-holo.principal .of-holo-nombre { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.1; }

/* agencia102: «z z z» sobre cada agente dormido */
.of-zzz { position: absolute; left: 0; top: 0; padding: 0 6px; font: 600 15px/1.3 var(--of-mono); letter-spacing: .12em; color: #BFB6FF; text-shadow: 0 0 8px rgba(123, 108, 240, .8); pointer-events: none; animation: of-zzz 2.6s ease-in-out infinite; }
@keyframes of-zzz { 0%, 100% { opacity: .45; margin-top: 0; } 50% { opacity: 1; margin-top: -8px; } }
@media (prefers-reduced-motion: reduce) { .of-zzz { animation: none; opacity: .9; } }
