/* KAIA · Agencia KAIA en la Oficina (11-11-2026, agencia102). Prefijo ag-. Reutiliza es- (Estudio). Marca: petróleo #14405F, navy #08121A/#0F1E2A/#1B2E3D, crema #F1EBE1. */
.of-btn-agencia { position: relative; }
.of-agencia { top: 14px; right: 14px; bottom: 14px; width: min(520px, calc(100% - 28px)); max-height: none; display: flex; flex-direction: column; z-index: 11; }
.ag-cuerpo-panel { overflow-y: auto; padding: 0 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.ag-gasto { display: flex; flex-direction: column; gap: 8px; }
.ag-gasto-fila { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ag-gasto .es-cifra b { font-size: 30px; }
.ag-linea { display: flex; flex-direction: column; gap: 10px; }
.ag-linea-t { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .ag-linea-t b { font: 600 15px/1.3 var(--of-disp); flex: 1 1 100%; }
.ag-etapas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ag-et { display: flex; flex-direction: column; gap: 2px; padding: 7px 9px; border-radius: 10px; border: 1px solid var(--of-linea); border-left: 4px solid #14405F; background: #F6F8FA; font-size: 12px; }
.ag-et b { font: 600 13px/1.2 var(--of-disp); } .ag-et span { color: var(--of-tinta3); }
.ag-et.hecho { background: #EEF6F1; } .ag-et.ahora { background: #E8F3F8; box-shadow: 0 0 0 2px rgba(20, 64, 95, .35); } .ag-et.ahora span { color: var(--of-petroleo); font-weight: 600; }
.ag-zonas { display: flex; flex-direction: column; gap: 14px; }
.ag-zona h3 { margin: 0 0 8px; font: 600 15px/1.2 var(--of-disp); letter-spacing: 0; text-transform: none; color: var(--of-tinta); }
.ag-ag { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; margin-bottom: 8px; border-radius: 12px; border: 1px solid var(--of-linea); border-left: 5px solid #14405F; background: #fff; }
.ag-ag-cab { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; } .ag-ag-cab b { font: 600 15px/1.2 var(--of-disp); } .ag-ag-cargo { font: 500 12px/1.3 var(--of-mono); color: var(--of-tinta3); }
.ag-ag-mision { margin: 0; font-size: 12.5px; color: var(--of-tinta2); }
.ag-ag .of-btn { align-self: flex-start; min-height: 32px; padding: 4px 12px; font-size: 12px; }
.ag-lista { display: flex; flex-direction: column; gap: 10px; }
.ag-trab { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--of-linea); background: #fff; }
.ag-trab.ag-error { border-color: #E5484D; background: #FFF1F1; } .ag-trab.ag-sin_datos { border-style: dashed; }
.ag-trab-cab { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .ag-hora { margin-left: auto; font: 400 11px/1.3 var(--of-mono); color: var(--of-tinta3); }
.ag-trab-t { font: 600 14px/1.3 var(--of-disp); } .ag-puntaje { background: #12A150; color: #fff; }
.ag-img { width: 100%; max-height: 360px; object-fit: contain; border-radius: 8px; background: #08121A; }
.ag-video { width: 100%; max-height: 340px; border-radius: 8px; background: #000; } .ag-video.vertical { max-height: 52vh; width: auto; max-width: 100%; display: block; margin: 0 auto; }
.ag-cuerpo { margin: 0; font-size: 13px; color: var(--of-tinta2); white-space: pre-wrap; overflow-wrap: anywhere; } .ag-detalle { margin: 0; font-size: 12px; color: var(--of-tinta3); }
.ag-det summary { cursor: pointer; font-size: 13px; color: var(--of-tinta2); }
.ag-fuentes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; } .ag-fuentes-t { font: 500 11px/1.4 var(--of-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--of-tinta3); }
.ag-fuentes a { color: var(--of-petroleo); overflow-wrap: anywhere; }
.ag-evals { display: flex; flex-direction: column; gap: 6px; } .ag-eval { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--of-linea); background: #F6F8FA; font-size: 13px; }
.ag-eval summary { cursor: pointer; font-weight: 600; } .ag-eval.pasa summary { color: #0B5A2C; } .ag-eval.vuelve summary { color: #8A5A00; } .ag-eval.detiene summary { color: #A12A2E; }
.ag-gastos { margin: 0; padding-left: 18px; font-size: 12px; color: var(--of-tinta2); }
.ag-cal { display: flex; flex-direction: column; gap: 10px; } .ag-dia h4 { margin: 0 0 6px; font: 600 13px/1.3 var(--of-disp); text-transform: capitalize; } .ag-dia.hoy h4 { color: var(--of-petroleo); }
.ag-cal-e { display: flex; flex-direction: column; gap: 5px; padding: 9px 11px; margin-bottom: 6px; border-radius: 10px; border: 1px solid var(--of-linea); background: #fff; font-size: 13px; }
.ag-cal-cab { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .ag-cal-est { margin-left: auto; font: 500 11px/1.3 var(--of-mono); color: var(--of-tinta3); }
.ag-c-lista { border-color: #12A150; } .ag-c-espera { border-color: #E8A317; } .ag-c-produccion { border-color: var(--of-petroleo); } .ag-c-descartada { opacity: .55; }
.ag-cal-e .of-btn { min-height: 30px; padding: 4px 10px; font-size: 12px; }
.of-noche .ag-ag, .of-noche .ag-trab, .of-noche .ag-cal-e { background: #14283A; border-color: rgba(255, 255, 255, .14); }
.of-noche .ag-et { background: #14283A; border-color: rgba(255, 255, 255, .14); } .of-noche .ag-et.hecho { background: rgba(18, 161, 80, .16); } .of-noche .ag-et.ahora { background: rgba(27, 154, 170, .2); } .of-noche .ag-et span { color: #94A4B0; } .of-noche .ag-et.ahora span { color: #8FD3DC; }
.of-noche .ag-zona h3, .of-noche .ag-dia h4 { color: #E6EDF2; } .of-noche .ag-ag-mision, .of-noche .ag-cuerpo, .of-noche .ag-gastos, .of-noche .ag-det summary { color: #B6C3CD; } .of-noche .ag-detalle, .of-noche .ag-hora, .of-noche .ag-fuentes-t, .of-noche .ag-cal-est, .of-noche .ag-ag-cargo { color: #94A4B0; }
.of-noche .ag-fuentes a { color: #8FD3DC; } .of-noche .ag-trab.ag-error { background: rgba(229, 72, 77, .14); } .of-noche .ag-eval { background: #14283A; border-color: rgba(255, 255, 255, .14); } .of-noche .ag-eval.pasa summary { color: #8BE0AE; } .of-noche .ag-eval.vuelve summary { color: #F1C060; }
.of-noche .of-agencia { background: #0F1E2A; color: #E6EDF2; } .of-noche .ag-dia.hoy h4 { color: #8FD3DC; }
body.of-tv .of-agencia { display: none !important; }
@media (max-width: 700px) { .of-agencia { left: 10px; right: 10px; top: auto; bottom: 10px; width: auto; max-height: 82%; } .ag-etapas { grid-template-columns: repeat(2, 1fr); } .ag-gasto .es-cifra b { font-size: 24px; } }
.ag-legal, .es-legal { display: flex; flex-direction: column; gap: 4px; padding: 9px 11px; border-radius: 10px; border: 1px solid #12A150; background: #EEF6F1; font-size: 13px; }
.ag-legal-observacion, .es-legal-observacion { border-color: #E8A317; background: #FFF6E0; } .ag-legal-bloquea, .es-legal-bloquea { border-color: #E5484D; background: #FFF1F1; }
.ag-legal p, .es-legal p { margin: 0; }
.of-noche .ag-legal, .of-noche .es-legal { background: rgba(18, 161, 80, .14); } .of-noche .ag-legal-observacion, .of-noche .es-legal-observacion { background: rgba(232, 163, 23, .16); } .of-noche .ag-legal-bloquea, .of-noche .es-legal-bloquea { background: rgba(229, 72, 77, .16); }
.ag-motor-ollama { background: #E8E3FF; color: #3B2F9E; } .of-noche .ag-motor-ollama { background: rgba(123, 108, 240, .25); color: #CFC8FF; }
