/* KAIA · Estudio de contenido de la Oficina (04-11-2026). Prefijo es-. Marca: petróleo #14405F, navy #08121A/#0F1E2A/#1B2E3D, crema #F1EBE1, estados #12A150/#E8A317/#E5484D. */
.of-btn-estudio { position: relative; }
.of-btn-estudio .of-btn-n { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #E8A317; color: #0F1E2A; font: 600 12px/1 var(--of-fuente); }
.of-estudio { top: 14px; right: 14px; bottom: 14px; width: min(470px, calc(100% - 28px)); max-height: none; display: flex; flex-direction: column; z-index: 11; }
.of-estudio-cuerpo { overflow-y: auto; padding: 0 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.es-vacio { margin: 0; color: var(--of-tinta3); font-size: 14px; }
.es-estado { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #EEF6F1; border: 1px solid rgba(18, 161, 80, .35); }
.es-estado.es-pausa { background: #FFF6E0; border-color: rgba(232, 163, 23, .7); }
.es-punto { width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; background: #12A150; flex: 0 0 auto; }
.es-pausa .es-punto { background: #E8A317; }
.es-estado-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.es-estado-t b { font: 600 15px/1.3 var(--of-disp); }
.es-estado-t span { font-size: 13px; color: var(--of-tinta2); }
.es-cifras { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }
.es-cifra { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--of-linea); background: #F6F8FA; }
.es-cifra b { font: 700 38px/1 var(--of-disp); letter-spacing: -.03em; color: var(--of-petroleo); }
.es-cifra span { margin-top: 4px; font: 500 12px/1.25 var(--of-mono); color: var(--of-tinta3); text-transform: uppercase; letter-spacing: .04em; }
.es-linea { display: grid; grid-template-columns: repeat(auto-fit, minmax(44px, 1fr)); gap: 4px; }
.es-et { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font: 500 11px/1.2 var(--of-fuente); color: var(--of-tinta3); }
.es-et i { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--of-linea); font: 600 13px/1 var(--of-fuente); font-style: normal; background: #fff; }
.es-et.hecho i { background: #12A150; border-color: #12A150; color: #fff; }
.es-et.ahora i { background: var(--of-petroleo); border-color: var(--of-petroleo); color: #fff; box-shadow: 0 0 0 4px rgba(20, 64, 95, .2); }
.es-et.ahora { color: var(--of-tinta); font-weight: 600; }
.es-sec { display: flex; flex-direction: column; gap: 10px; }
.es-sec h3 { margin: 0; font: 600 14px/1.2 var(--of-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--of-tinta3); }
.es-pieza { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--of-linea); background: #fff; }
.es-pieza.es-en_curso { border-color: var(--of-petroleo); }
.es-pieza.es-detenido { border-color: #E5484D; background: #FFF1F1; }
.es-pieza-cab { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.es-pieza-cab b { flex: 1 1 100%; font: 600 15px/1.3 var(--of-disp); }
.es-chip { padding: 2px 9px; border-radius: 999px; background: #EEF1F4; font: 500 11px/1.5 var(--of-mono); color: var(--of-tinta2); }
.es-linea-txt, .es-material, .es-rotulo, .es-info p, .es-msg { margin: 0; font-size: 13px; color: var(--of-tinta2); }
.es-rotulo { color: #8A5A00; font-weight: 500; }
.es-barra { height: 8px; border-radius: 999px; background: #E4E9ED; overflow: hidden; }
.es-barra i { display: block; height: 100%; background: var(--of-petroleo); border-radius: 999px; transition: width .6s ease; }
.es-barra.pausada i { background: #E8A317; }
.es-pasos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--of-tinta2); }
.es-paso { display: flex; gap: 8px; } .es-paso i { width: 16px; font-style: normal; font-weight: 700; } .es-paso.es-hecho i { color: #12A150; } .es-paso.es-error i { color: #E5484D; }
.es-acciones { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.es-pedir { align-self: flex-start; }
.es-aprob { display: flex; flex-direction: column; gap: 10px; }
.es-visor { display: flex; justify-content: center; background: #08121A; border-radius: 12px; padding: 8px; }
.es-visor video.vertical, .es-mini video.vertical { max-height: 52vh; max-width: 100%; width: auto; border-radius: 8px; background: #000; }
.es-visor video.horizontal { width: 100%; border-radius: 8px; background: #000; }
.es-guion summary, .es-marca summary { cursor: pointer; font: 600 13px/1.4 var(--of-fuente); }
.es-ctl { display: flex; gap: 8px; margin: 4px 0 0; font-size: 12px; color: var(--of-tinta2); }
.es-ctl i { font-style: normal; font-weight: 700; } .es-ctl.ok i { color: #12A150; } .es-ctl.mal i { color: #E5484D; }
.es-cambios { display: flex; flex-direction: column; gap: 8px; }
.es-form { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--of-petroleo); background: #F4F8FB; }
.es-campo { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--of-tinta2); }
.es-form input, .es-form select, .es-form textarea, .es-cambios textarea, .es-cambios select { font: 400 14px/1.4 var(--of-fuente); padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(15, 30, 42, .25); background: #fff; color: var(--of-tinta); width: 100%; }
.es-mat { display: flex; flex-direction: column; gap: 6px; } .es-mat-t { font-size: 12px; font-weight: 600; color: var(--of-tinta2); }
.es-mat-lista { display: flex; flex-wrap: wrap; gap: 6px; max-height: 230px; overflow-y: auto; }
.es-mat-i { min-height: 30px; padding: 4px 10px; font-size: 12px; background: #fff; color: var(--of-petroleo); }
.es-mat-i.on { background: var(--of-petroleo); color: #fff; }
.es-msg { padding: 8px 10px; border-radius: 8px; background: #EEF6F1; color: #0B5A2C; } .es-msg.malo { background: #FFF1F1; color: #A12A2E; }
.es-galeria { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.es-mini { display: flex; flex-direction: column; gap: 6px; font-size: 12px; } .es-mini img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px; background: #08121A; }
.es-mini-acc { display: flex; gap: 6px; flex-wrap: wrap; } .es-mini-acc .of-btn { min-height: 30px; padding: 4px 10px; font-size: 12px; }
.es-pie { margin: 0; font-size: 12px; color: var(--of-tinta3); }
.of-puesto-etq { position: absolute; left: 0; top: 0; padding: 1px 8px; border-radius: 999px; background: rgba(15, 30, 42, .85); color: #C8B8FF; font: 500 11px/1.5 var(--of-mono); letter-spacing: .06em; text-transform: uppercase; pointer-events: none; box-shadow: 0 0 0 1px rgba(123, 108, 240, .5); }
.of-puesto-etq.activo { background: #12A150; color: #fff; box-shadow: 0 0 12px rgba(18, 161, 80, .7); }
/* noche */
.of-noche .of-estudio { background: #0F1E2A; color: #E6EDF2; }
.of-noche .es-cifra, .of-noche .es-pieza, .of-noche .es-et i { background: #14283A; border-color: rgba(255, 255, 255, .14); }
.of-noche .es-cifra b { color: #7FD3DF; }
.of-noche .es-estado { background: rgba(18, 161, 80, .14); } .of-noche .es-estado.es-pausa { background: rgba(232, 163, 23, .16); }
.of-noche .es-estado-t span, .of-noche .es-linea-txt, .of-noche .es-material, .of-noche .es-info p, .of-noche .es-ctl, .of-noche .es-pasos, .of-noche .es-campo, .of-noche .es-mat-t { color: #B6C3CD; }
.of-noche .es-sec h3, .of-noche .es-pie, .of-noche .es-et, .of-noche .es-cifra span, .of-noche .es-vacio { color: #94A4B0; }
.of-noche .es-et.ahora { color: #fff; }
.of-noche .es-form { background: #14283A; border-color: #2D7BB0; }
.of-noche .es-form input, .of-noche .es-form select, .of-noche .es-form textarea, .of-noche .es-cambios textarea, .of-noche .es-cambios select { background: #0B1721; color: #E6EDF2; border-color: rgba(255, 255, 255, .25); }
.of-noche .es-chip { background: rgba(255, 255, 255, .1); color: #C9D5DE; } .of-noche .es-mat-i { background: #0B1721; color: #9ED7E1; } .of-noche .es-mat-i.on { background: #1B9AAA; color: #04141C; }
.of-noche .es-pieza.es-detenido { background: rgba(229, 72, 77, .14); } .of-noche .es-rotulo { color: #F1C060; }
.of-noche .es-msg { background: rgba(18, 161, 80, .16); color: #8BE0AE; } .of-noche .es-msg.malo { background: rgba(229, 72, 77, .18); color: #FFB3B5; }
.of-noche .es-barra { background: rgba(255, 255, 255, .14); } .of-noche .es-barra i { background: #1B9AAA; }
body.of-tv .of-estudio { display: none !important; }
@media (max-width: 700px) { .of-estudio { left: 10px; right: 10px; top: auto; bottom: 10px; width: auto; max-height: 78%; } .es-cifras { grid-template-columns: 1fr 1fr 1fr; } .es-cifra b { font-size: 30px; } .es-linea { grid-template-columns: repeat(auto-fit, minmax(40px, 1fr)); } .es-et span { font-size: 9px; } }
