/* CIMAP · Planes de mantenimiento (Generador, iPad, Historial). Se usa junto con /componentes/comp.css */
.plan-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.plan-cab .num-eq { font-family: Archivo, sans-serif; font-weight: 800; font-size: 32px; line-height: 1; }
.meta-linea { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--gris); font-size: 14px; }

/* tarjetas de actividad */
.it { background: #fff; border: 1px solid var(--linea); border-radius: 14px; padding: 16px; margin-bottom: 12px; border-left: 6px solid #C9C4BA; }
.it.hecho { border-left-color: var(--ok); }
.it.no { border-left-color: var(--alerta); }
.it.bl { border-left-color: var(--ambar); }
.it.bl.hecho { border-left-color: var(--ok); }
.it-cab { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.it-cab h3 { margin: 0; font-size: 16px; line-height: 1.35; font-weight: 600; }
.it-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 0; }
.it-cuerpo { display: grid; grid-template-columns: 140px 1fr; gap: 14px; margin-top: 12px; }
.it-cuerpo.sin-ref { grid-template-columns: 1fr; }
.ref { width: 140px; height: 120px; border-radius: 10px; border: 1px solid var(--linea); background: var(--papel) center/cover no-repeat; cursor: zoom-in; padding: 0; overflow: hidden; }
.ref img { width: 100%; height: 100%; object-fit: cover; display: block; }
.det-txt { font-size: 14px; color: var(--acero); margin: 6px 0 0; }
.it textarea { min-height: 70px; }
.fotos { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.foto { position: relative; width: 108px; }
.foto .marco { width: 108px; height: 108px; border-radius: 12px; border: 2px dashed #CFCAC0; background: #FBFAF7; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--gris); font-size: 13px; font-weight: 600; cursor: pointer; overflow: hidden; position: relative; padding: 0; width: 100%; }
.foto .marco:hover { border-color: var(--acero); }
.foto .marco img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.foto .marco.con { border-style: solid; border-color: var(--linea); }
.foto input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.foto .quitar { position: absolute; top: -8px; right: -8px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--alerta); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; z-index: 2; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.foto .estado-f { position: absolute; left: 6px; bottom: 6px; z-index: 1; font-size: 11px; background: rgba(18,20,23,.8); color: #fff; padding: 1px 6px; border-radius: 99px; }
.foto small { display: block; text-align: center; font-size: 12px; color: var(--gris); margin-top: 4px; }
.partes { margin-top: 10px; }
.partes summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--azul); min-height: 32px; display: flex; align-items: center; }
.partes table { font-size: 13px; }
.no-hecho { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.aviso-no { background: var(--alerta-suave); color: var(--alerta); border-radius: 10px; padding: 8px 12px; font-size: 14px; font-weight: 600; }

/* navegación por secciones (sticky) */
.secs { position: sticky; top: 0; z-index: 20; background: var(--papel); padding: 10px 0; display: flex; gap: 6px; overflow-x: auto; margin-bottom: 6px; }
.secs a { flex-shrink: 0; text-decoration: none; background: #fff; border: 1px solid var(--linea); border-radius: 999px; padding: 0 14px; min-height: 40px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.secs a b { font-family: 'IBM Plex Mono', monospace; font-weight: 500; color: var(--gris); font-size: 12px; }
.secs a.completo b { color: var(--ok); }
h2.sec-tit { font-family: Archivo, sans-serif; font-size: 20px; margin: 24px 0 10px; scroll-margin-top: 70px; display: flex; align-items: center; gap: 10px; }
h2.sec-tit small { font-family: 'IBM Plex Sans', sans-serif; font-weight: 500; font-size: 14px; color: var(--gris); }

/* indicador de envío */
.sync { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; background: #2A2F36; color: #E9ECEF; border: 0; cursor: pointer; min-height: 34px; }
.sync i { width: 9px; height: 9px; border-radius: 50%; background: #8A929C; display: inline-block; }
.sync.ok i { background: #34C27A; } .sync.pend i { background: var(--ambar); } .sync.off i { background: #E5484D; } .sync.envia i { background: var(--ambar); animation: latido 1s infinite; }
@keyframes latido { 50% { opacity: .3; } }

/* lista de planes */
.planes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.plan { text-align: left; background: #fff; border: 1px solid var(--linea); border-radius: 14px; padding: 14px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; border-left: 6px solid #C9C4BA; min-height: 128px; }
.plan:hover { border-color: var(--acero); }
.plan.progreso { border-left-color: var(--ambar); } .plan.revision { border-left-color: var(--azul); } .plan.finalizado { border-left-color: var(--ok); }
.plan .fila { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plan .num-eq { font-family: Archivo, sans-serif; font-weight: 800; font-size: 26px; line-height: 1; }
.avance { height: 8px; background: var(--papel); border-radius: 4px; overflow: hidden; }
.avance i { display: block; height: 100%; background: var(--ok); }

/* inspección de componentes */
.insp { background: #fff; border: 1px solid var(--linea); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.insp h3 { margin: 0; font-size: 16px; }
.score { font-family: Archivo, sans-serif; font-weight: 800; font-size: 22px; padding: 2px 12px; border-radius: 10px; }
.score.ok { background: var(--ok-suave); color: var(--ok); } .score.aviso { background: var(--ambar-suave); color: #8A5A00; } .score.mal { background: var(--alerta-suave); color: var(--alerta); }
.parte { border-top: 1px solid var(--linea); padding: 12px 0; }
.parte:first-of-type { border-top: 0; }
.parte .etq { display: block; margin-bottom: 2px; }

/* revisión del supervisor */
.cumple { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--linea); }
.cumple .seg button[data-v="SI"][aria-pressed="true"] { background: var(--ok); }
.cumple .seg button[data-v="NO"][aria-pressed="true"] { background: var(--alerta); }
.razones { width: 100%; background: var(--alerta-suave); border-radius: 10px; padding: 10px 12px; margin-top: 6px; }
.razones .opciones { margin: 4px 0 8px; }
.nota-tec { background: #FBFAF7; border: 1px solid var(--linea); border-radius: 10px; padding: 10px 12px; white-space: pre-wrap; font-size: 14px; }
.nota-tec.vacia { color: var(--gris); font-style: italic; }

.tablero { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } .tablero.con-borr { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.plan.preparacion { border-left-color: #8B5CF6; border-left-style: dashed; }
.columna h3 { margin: 0 0 8px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); display: flex; justify-content: space-between; }
.columna .planes { grid-template-columns: 1fr; }

@media (max-width: 1000px) { .tablero { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .it-cuerpo { grid-template-columns: 1fr; }
  .ref { width: 100%; height: 170px; }
  .tablero { grid-template-columns: 1fr; }
  .plan-cab .num-eq { font-size: 28px; }
}

.plan .sub { font-size: 13px; }

/* ===================== secciones (las tres páginas) ===================== */
.seccion { --c: var(--ambar); background: #fff; border: 1px solid var(--linea); border-radius: 16px; margin: 0 0 22px; overflow: hidden; scroll-margin-top: 76px; box-shadow: 0 1px 2px rgba(18,20,23,.04); }
.sec-cab { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--carbon); color: var(--papel); border-bottom: 4px solid var(--c); }
.sec-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--c); color: var(--carbon); display: grid; place-items: center; flex-shrink: 0; }
.sec-ico svg { width: 21px; height: 21px; }
.sec-cab h2 { margin: 0; font-family: Archivo, sans-serif; font-size: 19px; line-height: 1.15; letter-spacing: -.01em; }
.sec-cab .sec-sub { display: block; color: #AEB4BC; font-size: 13px; font-weight: 500; font-family: 'IBM Plex Sans', sans-serif; letter-spacing: 0; margin-top: 2px; }
.sec-cuenta { margin-left: auto; font-family: 'IBM Plex Mono', monospace; font-size: 13px; background: rgba(255,255,255,.12); color: var(--papel); padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.sec-cuenta.ok { background: var(--ok); color: #fff; }
.sec-cuerpo { padding: 14px; background: #FAF9F6; }
.sec-cuerpo > :last-child { margin-bottom: 0; }
.sec-vacia { color: var(--gris); text-align: center; padding: 18px; font-size: 14px; }
.sec-datos { --c: #CBD5E1; } .sec-ace { --c: #A16207; } .sec-act { --c: #F2A900; } .sec-bl { --c: #60A5FA; } .sec-sos { --c: #2DD4BF; }
.sec-kpi { --c: #3B82F6; } .sec-hei { --c: #F87171; } .sec-ana { --c: #4ADE80; } .sec-insp { --c: #C4B5FD; } .sec-tfc { --c: #FB923C; }
.sec-cuerpo .it { border-left-color: #D6D1C7; }
.sec-cuerpo .it.hecho { border-left-color: var(--ok); } .sec-cuerpo .it.no { border-left-color: var(--alerta); }
.it-num { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 7px; background: var(--papel); border: 1px solid var(--linea); font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 500; margin-right: 8px; flex-shrink: 0; }
.it-cab h3 { display: flex; align-items: flex-start; }

/* eventos S.O.S. / HEI: renglón compacto, la retroalimentación se habilita con la casilla */
.ev { --nv: #A8A29A; background: #fff; border: 1px solid var(--linea); border-left: 6px solid var(--nv); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.ev.n3 { --nv: var(--alerta); } .ev.n2 { --nv: var(--ambar); } .ev.n1 { --nv: var(--ok); }
.ev-fila { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; }
.ev-tit { font-weight: 600; font-size: 15px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ev-det { font-size: 14px; color: var(--acero); margin-top: 4px; }
.ev-chk { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; min-height: 44px; padding: 0 12px; border: 1px solid var(--linea); border-radius: 10px; cursor: pointer; background: #FBFAF7; white-space: nowrap; }
.ev-chk input { width: 20px; height: 20px; accent-color: var(--carbon); margin: 0; }
.ev-chk:has(input:checked) { background: var(--carbon); color: var(--papel); border-color: var(--carbon); }
.ev-chk:has(input:disabled) { cursor: default; opacity: .7; }
.ev-retro { border-top: 1px dashed var(--linea); padding: 12px 14px; background: #FFFDF6; }
.ev-retro .campo { margin: 0; }
.frec { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--gris); }

@media (max-width: 760px) {
  .sec-cab { padding: 12px 14px; } .sec-cab h2 { font-size: 17px; }
  .sec-cuerpo { padding: 10px; }
  .ev-fila { grid-template-columns: 1fr; }
  .ev-chk { justify-content: center; }
}

/* Health: gráfica */
.hei-graf { display: block; width: 100%; padding: 8px; background: #fff; border: 1px solid var(--linea); border-radius: 12px; cursor: zoom-in; margin-bottom: 12px; }
.hei-graf img { width: 100%; max-height: 420px; object-fit: contain; display: block; }
.hei-barras { background: #fff; border: 1px solid var(--linea); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.hei-b { display: grid; grid-template-columns: minmax(0, 1fr) minmax(90px, 1.2fr) 36px; gap: 10px; align-items: center; padding: 5px 0; font-size: 13px; border-top: 1px solid var(--linea); }
.hei-b:first-child { border-top: 0; }
.hei-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hei-t { height: 12px; background: var(--papel); border-radius: 6px; overflow: hidden; }
.hei-t i { display: block; height: 100%; } .hei-t i.n3 { background: var(--alerta); } .hei-t i.n2 { background: var(--ambar); } .hei-t i.n1 { background: #8A929C; }
.hei-b b { font-family: 'IBM Plex Mono', monospace; font-weight: 500; text-align: right; }

/* Análisis: la imagen (tendencia) se ve grande */
.ana-img { display: block; width: 100%; padding: 6px; margin: 10px 0 4px; background: #fff; border: 1px solid var(--linea); border-radius: 12px; cursor: zoom-in; }
.ana-img img { width: 100%; max-height: 460px; object-fit: contain; display: block; }

/* Backlogs: foto de referencia más grande */
.it.bl .it-cuerpo { grid-template-columns: 220px 1fr; }
.it.bl .ref { width: 220px; height: 185px; }

/* S·O·S de componentes */
.sosc-caja { background: #fff; border: 1px solid var(--linea); border-radius: 12px; padding: 12px 14px; margin-top: 14px; }
.sosc-caja h3 { margin: 0; font-size: 16px; }
.sosc-cab { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.sosc-reg { margin-top: 10px; } .sosc-reg .tabla { font-size: 14px; margin-top: 4px; }
.sosc .opciones .opc span { min-height: 40px; }
@media (max-width: 760px) { .it.bl .it-cuerpo { grid-template-columns: 1fr; } .it.bl .ref { width: 100%; height: 220px; } }

/* ---- módulo de aceites del servicio (iPad e Historial) ---- */
.ace-mod { display: grid; gap: 10px; }
.ace-sin { display: flex; gap: 10px; align-items: center; font-weight: 600; padding: 12px 14px; border: 1px solid var(--linea, #E2DED6); border-radius: 10px; background: #fff; cursor: pointer; }
.ace-sin input { width: 22px; height: 22px; }
.ace-tabla { border: 1px solid var(--linea, #E2DED6); border-radius: 10px; overflow: hidden; background: #fff; }
.ace-fila { display: grid; grid-template-columns: minmax(0, 1fr) 130px 150px; gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--linea, #E2DED6); }
.ace-fila:first-child { border-top: 0; }
.ace-fila.activo { background: #FFF8E6; }
.ace-cab { background: #F5F3EF; font: 500 11px 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: .06em; color: #5A616B; padding-top: 8px; padding-bottom: 8px; }
.ace-nom { display: flex; flex-direction: column; min-width: 0; } .ace-nom small { color: #6B7280; font-size: 12px; }
.ace-chk { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; font-weight: 600; min-height: 44px; }
.ace-chk input { width: 24px; height: 24px; accent-color: #A16207; }
.ace-l { display: inline-flex; gap: 6px; align-items: center; } .ace-l input { width: 90px; min-height: 44px; text-align: right; font-size: 16px; }
.ace-nota { margin: 0; }
.ace-ops { display: flex; flex-direction: column; gap: 0; }
.ace-chk.filtro input { accent-color: #9A4A00; }
.ace-vida { font-size: 12px; color: #5A616B; margin-top: 4px; } .ace-vida b { font-family: 'IBM Plex Mono', monospace; font-weight: 600; color: #1E7B45; }
.ace-vida.proximo b { color: #9A4A00; } .ace-vida.vencido b { color: #B42318; } .ace-vida.sin { color: #8A8F98; font-style: italic; }
.ace-barra { display: block; height: 6px; max-width: 220px; background: #EEEAE3; border-radius: 999px; overflow: hidden; margin-top: 4px; }
.ace-barra i { display: block; height: 100%; border-radius: 999px; background: #1E7B45; } .ace-barra i.proximo { background: #D98A00; } .ace-barra i.vencido { background: #B42318; }
@media (max-width: 560px) { .ace-fila { grid-template-columns: minmax(0, 1fr) 110px; } .ace-fila > span:nth-child(3) { grid-column: 1 / -1; } .ace-cab > span:nth-child(3) { display: none; } }

/* Revisión de tapones, filtros y cedazos (se guarda en Componentes) */
.scp-cat { margin-bottom: 16px; } .scp-cat h3 { margin: 0 0 8px; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--gris); }
.scp { background: #fff; border: 1px solid var(--linea); border-left: 6px solid #C9C4BA; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; align-items: center; }
.scp.ok { border-left-color: var(--ok); } .scp.aviso { border-left-color: var(--ambar); } .scp.mal { border-left-color: var(--alerta); }
.scp-nom { font-weight: 600; font-size: 16px; grid-column: 1 / -1; }
.scp-est { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }   /* los tres botones del mismo tamaño */
.scp-est button { width: 100%; height: 100%; min-height: 48px; padding: 4px 8px; line-height: 1.2; border-radius: 10px; border: 2px solid var(--linea); background: #FBFAF7; font-weight: 600; font-size: 14px; cursor: pointer; color: inherit; }
.scp-est button[aria-pressed="true"].ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.scp-est button[aria-pressed="true"].aviso { background: var(--ambar); border-color: var(--ambar); color: #121417; }
.scp-est button[aria-pressed="true"].mal { background: var(--alerta); border-color: var(--alerta); color: #fff; }
.scp .scp-fotos { margin: 0; flex-wrap: nowrap; } .scp .scp-fotos .foto, .scp .scp-fotos .marco { width: 76px; } .scp .scp-fotos .marco { height: 76px; font-size: 12px; }
.scp-com { grid-column: 1 / -1; min-height: 42px; border: 1px solid var(--linea); border-radius: 10px; padding: 0 12px; font: inherit; width: 100%; }
.scp-pie { position: sticky; bottom: 8px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid var(--linea); border-radius: 12px; padding: 10px 14px; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.scr { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 8px 10px; border-left: 4px solid #C9C4BA; background: #FBFAF7; border-radius: 8px; margin-top: 6px; }
.scr.ok { border-left-color: var(--ok); } .scr.aviso { border-left-color: var(--ambar); } .scr.mal { border-left-color: var(--alerta); }
.scr-txt { display: flex; gap: 6px 10px; align-items: center; flex-wrap: wrap; font-size: 14px; } .scr-com { flex-basis: 100%; color: var(--gris); }
.scr-fotos { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.mini-f { width: 56px; height: 56px; border-radius: 8px; border: 1px solid var(--linea); background: #fff; padding: 0; overflow: hidden; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--gris); }
.mini-f img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 560px) { .scp { grid-template-columns: 1fr; } }
.scp-hist { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; border-top: 1px dashed var(--linea); padding-top: 8px; }
.scp-hist > .sub, .scp-hist-t { grid-column: 1 / -1; } .scp-hist-t { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--gris); font-weight: 600; }
.sch { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; padding: 6px 8px; border-left: 4px solid #C9C4BA; background: #FBFAF7; border-radius: 8px; min-width: 0; }
.sch.ok { border-left-color: var(--ok); } .sch.aviso { border-left-color: var(--ambar); } .sch.mal { border-left-color: var(--alerta); }
.sch .mini-f { width: 40px; height: 40px; } .sch-com { flex-basis: 100%; color: var(--gris); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .scp-hist { grid-template-columns: 1fr; } }

/* ---- Tapones, filtros y cedazos · diseño aprobado en la versión de prueba (tarjetas con la foto de la última revisión) */
.scn-raiz { --t: #14171B; --s: #F4F5F7; --l: #E1E4E8; --g: #626B76; --v: #17874A; --vs: #E4F4EA; --n: #E08A00; --ns: #FFF1D6; --ro: #C62D1F; --rs: #FDE8E5; }
.scn-tabs { background: #fff; border-radius: 18px; padding: 6px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; box-shadow: 0 6px 20px rgba(20, 23, 27, .1); margin-bottom: 14px; position: sticky; top: 8px; z-index: 3; }
.scn-tabs button { border: 0; background: none; border-radius: 13px; min-height: 60px; padding: 6px 8px; font: inherit; font-weight: 600; font-size: 16px; line-height: 1.2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--g); cursor: pointer; }
.scn-tabs button small { font-weight: 500; font-size: 13px; font-variant-numeric: tabular-nums; }
.scn-tabs button:hover { background: var(--s); }
.scn-tabs button[aria-selected="true"] { background: var(--t); color: #fff; } .scn-tabs button[aria-selected="true"] small { color: #F2A900; }
.scn { background: #fff; border-radius: 20px; margin-bottom: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(20, 23, 27, .06); display: grid; grid-template-columns: 168px minmax(0, 1fr); }
.scn-ult { position: relative; border: 0; padding: 0; background: #23272D; min-height: 196px; display: block; text-align: left; overflow: hidden; cursor: pointer; font: inherit; color: #fff; }
.scn-ult.ok { background: var(--v); } .scn-ult.aviso { background: var(--n); } .scn-ult.mal { background: var(--ro); }
.scn-ult img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; } .scn-ult img:not([src]) { visibility: hidden; }
.scn-velo { position: absolute; inset: auto 0 0 0; padding: 34px 12px 10px; background: linear-gradient(transparent, rgba(10, 12, 14, .88)); font-size: 13px; line-height: 1.3; }
.scn-velo b { display: block; font-size: 15px; }
.scn-cuantas { position: absolute; top: 10px; left: 10px; background: rgba(10, 12, 14, .7); font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 99px; }
.scn-ult.vacia { display: grid; place-items: center; background: var(--s); color: var(--g); font-size: 14px; text-align: center; padding: 16px; cursor: default; }
.scn-cuerpo { padding: 16px 18px 18px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.scn-cuerpo h3 { font: 700 21px/1.2 Archivo, sans-serif; margin: 0; overflow-wrap: anywhere; }
.scn-linea { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.scn-cap { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.scn-cap.ok { background: var(--vs); color: #0F5C32; } .scn-cap.aviso { background: var(--ns); color: #8A5300; } .scn-cap.mal { background: var(--rs); color: #96211A; }
.scn-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--s); border-radius: 16px; padding: 5px; gap: 4px; }
.scn-seg button { border: 0; background: none; border-radius: 12px; min-height: 58px; height: 100%; margin: 0; padding: 6px; display: flex; align-items: center; justify-content: center; text-align: center; font: inherit; font-weight: 600; font-size: 15px; line-height: 1.2; color: #3B424B; cursor: pointer; transition: background-color .15s ease-out, color .15s ease-out; }
.scn-seg button:hover { background: #E7E9ED; }
.scn-seg button[aria-pressed="true"] { color: #fff; box-shadow: 0 4px 12px rgba(20, 23, 27, .18); }
.scn-seg button.ok[aria-pressed="true"] { background: var(--v); } .scn-seg button.aviso[aria-pressed="true"] { background: var(--n); } .scn-seg button.mal[aria-pressed="true"] { background: var(--ro); }
.scn-acc { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.scn-cam { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px 0 14px; border-radius: 99px; background: var(--t); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; }
.scn-cam:hover { background: #2B3037; } .scn-cam:focus-within { outline: 3px solid #F2A900; outline-offset: 3px; }
.scn-cam input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.scn-tom { position: relative; width: 52px; height: 52px; }
.scn-tom .ver { width: 52px; height: 52px; border-radius: 14px; border: 0; padding: 0; overflow: hidden; display: block; cursor: zoom-in; }
.scn-tom img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scn-tom .x { position: absolute; top: -12px; right: -12px; width: 40px; height: 40px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.scn-tom .x i { width: 24px; height: 24px; border-radius: 50%; background: var(--t); color: #fff; font-style: normal; font-size: 15px; line-height: 1; display: grid; place-items: center; border: 2px solid #fff; }
.scn-nota-btn { min-height: 52px; padding: 0 16px; border-radius: 99px; border: 1.5px solid var(--l); background: #fff; font: inherit; font-weight: 600; font-size: 15px; color: #3B424B; margin-left: auto; cursor: pointer; }
.scn-nota { width: 100%; min-height: 76px; border: 1.5px solid var(--l); border-radius: 14px; padding: 12px 14px; resize: vertical; background: #fff; font: inherit; }
.scn-pie { bottom: 96px;   /* arriba de la barra fija de la página */ background: var(--t); color: #C5CAD1; border: 0; border-radius: 20px; padding: 10px 10px 10px 20px; box-shadow: 0 14px 34px rgba(20, 23, 27, .3); z-index: 2; }
.scn-pie .scp-cuenta { font-size: 15px; } .scn-pie .scp-cuenta b { color: #fff; font: 800 20px Archivo, sans-serif; font-variant-numeric: tabular-nums; margin-right: 6px; }
.scn-pie .btn { min-height: 56px; padding: 0 26px; border-radius: 14px; border: 0; background: #F2A900; color: var(--t); font: 700 17px Archivo, sans-serif; cursor: pointer; }
.scn-pie .btn[aria-disabled="true"] { background: #2B3037; color: #8C949E; }
dialog.scn-gal { border: 0; padding: 0; width: min(760px, 100vw); max-width: 100vw; max-height: 92vh; border-radius: 24px; background: #fff; color: #14171B; overscroll-behavior: contain; }
dialog.scn-gal::backdrop { background: rgba(10, 12, 14, .7); }
.scn-gal-cab { position: sticky; top: 0; background: #fff; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px 14px; z-index: 1; }
.scn-gal-cab h2 { font: 700 22px/1.2 Archivo, sans-serif; margin: 0; } .scn-gal-cab p { margin: 2px 0 0; color: #626B76; font-size: 14px; }
.scn-gal-cab button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: #F4F5F7; font-size: 22px; line-height: 1; cursor: pointer; }
.scn-gal-lista { padding: 0 20px 22px; display: grid; gap: 18px; } .scn-gal-lista p { margin: 0 0 10px; }
.scn-rev-cab { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; } .scn-rev-cab b { font: 700 17px Archivo, sans-serif; }
.scn-gal .scn-cap { font-size: 13px; padding: 4px 11px; --vs: #E4F4EA; --ns: #FFF1D6; --rs: #FDE8E5; }
.scn-rev-fotos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.scn-rev-fotos button { border: 0; padding: 0; border-radius: 14px; overflow: hidden; background: #23272D; color: #C5CAD1; aspect-ratio: 4 / 3; cursor: zoom-in; font: inherit; font-size: 13px; }
.scn-rev-fotos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scn-visor { position: fixed; inset: 0; background: rgba(10, 12, 14, .95); z-index: 30; display: grid; place-items: center; padding: 16px; border: 0; width: 100%; cursor: zoom-out; }
.scn-visor img { max-width: 100%; max-height: 92vh; border-radius: 12px; }
@media (max-width: 640px) { .scn { grid-template-columns: 1fr; } .scn-ult { min-height: 150px; } .scn-ult.vacia { min-height: 64px; } .scn-seg button { font-size: 14px; min-height: 62px; } .scn-nota-btn { margin-left: 0; } .scn-pie .btn { padding: 0 18px; } }
@media (prefers-reduced-motion: reduce) { .scn-seg button { transition: none; } }

/* guardado automático y etiqueta de la revisión anterior */
.scn-aviso { margin: 0 4px 12px; font-size: 14px; color: #626B76; }
.scn-tit { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.scn-est { font-size: 13px; font-weight: 600; color: #626B76; } .scn-est.ok { color: #17874A; } .scn-est.pend { color: #8A5300; } .scn-est.falta { color: #C62D1F; }
.scn-est.ok::before { content: '✓ '; }
.scn-hoy { font-size: 13px; font-weight: 600; color: #626B76; margin-bottom: 6px; }
.scn-cuantas { background: #F2A900; color: #14171B; }
.scn-velo b { font-size: 16px; } .scn-velo i { display: block; font-style: normal; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; margin-top: 4px; opacity: .9; }
.scn-tom .ver { background: #23272D; color: #C5CAD1; }

.scn-cuantas.hoy { background: #fff; color: #14171B; } div.scn-ult { cursor: default; }
