/* App del verificador — Tu casa sin sorpresas
   Pensada para usarse con una mano, en exterior y con sol: botones grandes,
   alto contraste, texto mínimo 15px. */
:root {
  --navy-950: #061826; --navy-900: #0A2E45; --navy-800: #0A4570; --azul: #0E5C90;
  --verde: #46A56C; --verde-300: #8FD4AE; --rojo: #D65B4A; --amarillo: #E0A93E; --amarillo-t: #A87612;
  --gris: #8B9298; --texto: #26323A; --texto-2: #5B6670; --linea: #DCE3E8; --fondo: #F2F6F8; --blanco: #fff;
  --display: 'Manrope', system-ui, sans-serif; --body: 'Source Sans 3', system-ui, sans-serif;
  --radio: 14px; --pie: 132px;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { min-height: 100%; }
body { font-family: var(--body); font-size: 16px; background: var(--fondo); color: var(--texto); overscroll-behavior-y: none; }
#app { max-width: 560px; margin: 0 auto; min-height: 100vh; background: var(--fondo); }
h1, h2, h3 { font-family: var(--display); color: var(--navy-900); }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
.pad { padding: 16px 16px 40px; }

/* sin red */
body.sin-red::before { content: 'Sin señal — todo se está guardando en el celular'; display: block; position: sticky; top: 0; z-index: 60; background: var(--amarillo); color: #3a2c05; font: 700 12.5px var(--display); text-align: center; padding: 6px; }

/* barra superior */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--navy-950); color: #fff; display: flex; align-items: center; gap: 12px; padding: 12px 14px; padding-top: max(12px, env(safe-area-inset-top)); min-height: 60px; }
.topbar h1 { color: #fff; font-size: 17px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .sub { font-size: 12px; color: var(--verde-300); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-txt { flex: 1; min-width: 0; }
.back, .tb-btn { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 21px; color: #fff; background: rgba(255,255,255,.08); flex-shrink: 0; }
.logo-mini { width: 40px; height: 40px; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-mini img { width: 30px; }
.pill { font: 700 12px var(--display); padding: 5px 10px; border-radius: 100px; background: rgba(255,255,255,.13); white-space: nowrap; }
.prog-global { height: 5px; background: var(--navy-900); position: sticky; top: 60px; z-index: 29; }
.prog-global div { height: 100%; background: var(--verde); transition: width .3s; }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 18px; border-radius: 12px; font: 700 16px var(--display); }
.btn.block { display: flex; width: 100%; margin-top: 12px; }
.btn.sm { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.btn.primary { background: var(--verde); color: #06241a; }
.btn.primary.disabled { background: #B9D9C5; color: #4d6b59; }
.btn.ghost { background: var(--blanco); border: 1.5px solid var(--linea); color: var(--navy-900); }
.btn.ghost:disabled { opacity: .4; }
.btn.ghost-dark { background: rgba(255,255,255,.12); color: #fff; }
.btn.danger { background: var(--rojo); color: #fff; }
.danger-t { color: var(--rojo) !important; }
.btn.grow { flex: 1; }
.link { color: var(--azul); font-weight: 700; padding: 10px 0; }

/* formularios */
.card { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); padding: 18px; }
.lbl { display: block; font: 700 13.5px var(--display); color: var(--navy-900); margin: 14px 0 6px; }
.lbl:first-child { margin-top: 0; }
.opc { font-weight: 500; color: var(--gris); font-size: 12.5px; }
.input { width: 100%; padding: 13px 14px; border-radius: 11px; border: 1.5px solid var(--linea); font: 16px var(--body); background: #fff; color: var(--texto); }
.input:focus { outline: none; border-color: var(--azul); }
.area { resize: vertical; min-height: 64px; }
.hint { font-size: 13px; color: var(--texto-2); margin-top: 6px; display: block; }
.hint.ok { color: var(--verde); font-weight: 700; }
.intro { font-size: 14.5px; color: var(--texto-2); margin-bottom: 14px; line-height: 1.4; }
.version { text-align: center; font-size: 12px; color: var(--gris); margin-top: 20px; }

/* login */
.login { min-height: 100vh; padding: 40px 22px; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(160deg, var(--navy-950), var(--navy-800) 70%, var(--verde)); }
.logo-badge { width: 84px; height: 84px; border-radius: 20px; background: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.logo-badge img { width: 62px; }
.login h1 { color: #fff; font-size: 24px; }
.login > p { color: rgba(255,255,255,.75); margin: 4px 0 22px; }
.login .btn { margin-top: 18px; }

/* lista de visitas */
.insp-card { display: block; background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 16px; margin-bottom: 12px; }
.ic-row { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.ic-row h3 { font-size: 16px; }
.ic-meta { font-size: 13.5px; color: var(--texto-2); margin-top: 4px; }
.status { font: 700 11px var(--display); padding: 4px 9px; border-radius: 100px; white-space: nowrap; }
.status.pend { background: #FDEEDB; color: #9A5B12; }
.status.prog { background: #DEEBF7; color: var(--azul); }
.status.ok { background: #DEF3E5; color: #1E7A44; }
.mini-bar { height: 6px; border-radius: 4px; background: var(--linea); margin-top: 10px; overflow: hidden; }
.mini-bar.big { height: 10px; margin: 0; }
.mini-bar div { height: 100%; background: var(--verde); }
.vacio { text-align: center; padding: 30px 10px; color: var(--texto-2); }
.vacio b { display: block; color: var(--navy-900); font-family: var(--display); margin-bottom: 6px; }

/* configurador */
.cfg-q { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 14px; margin-bottom: 10px; }
.cfg-t { font: 700 15px var(--display); color: var(--navy-900); margin-bottom: 10px; }
.cfg-t .hint { font: 400 13px var(--body); margin-top: 2px; }
.stepper { display: flex; align-items: center; gap: 0; width: max-content; border: 1.5px solid var(--linea); border-radius: 12px; overflow: hidden; }
.stepper button { width: 56px; height: 48px; font-size: 24px; font-weight: 700; color: var(--navy-900); background: var(--fondo); }
.stepper button:disabled { opacity: .3; }
.stepper b { width: 56px; text-align: center; font: 800 20px var(--display); color: var(--navy-900); }

/* opciones (respuestas) */
.opts { display: flex; flex-direction: column; gap: 8px; }
.opts.dos { flex-direction: row; }
.cfg-q .opts { flex-direction: row; flex-wrap: wrap; }
.opt { display: flex; align-items: center; gap: 10px; text-align: left; width: 100%; min-height: 54px; padding: 12px 16px; border-radius: 12px; border: 2px solid var(--linea); background: #fff; font: 600 16px var(--body); color: var(--navy-900); line-height: 1.25; }
.opt.sm { width: auto; min-height: 44px; padding: 9px 14px; font-size: 14.5px; }
.opt.big { justify-content: center; min-height: 72px; font: 800 22px var(--display); }
.opt.on { border-color: var(--navy-900); background: var(--navy-900); color: #fff; }
.opts.multi .chk { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--linea); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.opts.multi .opt.on .chk { border-color: #fff; }
.opts.multi .opt.on .chk::after { content: '✓'; font-weight: 800; font-size: 14px; }
.chips, .rapidos { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chip { padding: 8px 14px; border-radius: 100px; background: #fff; border: 1.5px solid var(--linea); font-weight: 700; font-size: 14px; color: var(--navy-900); min-width: 44px; }

/* número */
.num { display: flex; align-items: stretch; border: 2px solid var(--linea); border-radius: 12px; background: #fff; overflow: hidden; }
.num input { flex: 1; min-width: 0; border: none; text-align: center; font: 800 20px var(--display); color: var(--navy-900); padding: 10px 4px; background: transparent; -moz-appearance: textfield; }
.num input::-webkit-outer-spin-button, .num input::-webkit-inner-spin-button { -webkit-appearance: none; }
.num input:focus { outline: none; }
.num.grande input { font-size: 30px; padding: 16px 4px; }
.num-b { width: 56px; font-size: 26px; font-weight: 700; background: var(--fondo); color: var(--navy-900); flex-shrink: 0; }
.unidad { display: flex; align-items: center; padding-right: 10px; font: 700 15px var(--display); color: var(--texto-2); }
.form-campos .campo { margin-bottom: 6px; }

/* espacios */
.grupo { margin-bottom: 18px; }
.grupo-t { font: 800 12.5px var(--display); color: var(--texto-2); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 8px 2px; }
.esp-row { display: flex; align-items: center; gap: 12px; width: 100%; background: #fff; border: 1.5px solid var(--linea); border-radius: 13px; padding: 12px 14px; margin-bottom: 8px; text-align: left; min-height: 58px; }
.esp-row.done { border-color: #BFE3CD; }
.esp-row.lock { opacity: .55; }
.esp-row.pend { border-color: #F0D58A; background: #FFFBEF; }
.esp-row.pend .esp-prog { color: #9A6B00; font-weight: 800; }
.pie-link { display: block; width: 100%; margin-top: 6px; padding: 6px; background: none; border: 0; font: 600 13px var(--body); color: var(--texto-2); text-decoration: underline; }
.esp-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--fondo); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.esp-n { flex: 1; font-weight: 700; color: var(--navy-900); }
.esp-more, .esp-prog { color: var(--texto-2); font-weight: 700; font-size: 14px; }
.esp-row.done .esp-prog { color: var(--verde); font-size: 18px; }
.tag-nv { font-size: 11px; background: #ECEEF0; color: var(--texto-2); padding: 2px 7px; border-radius: 100px; font-weight: 700; }
.add-row { width: 100%; border: 1.5px dashed #C4CED6; border-radius: 13px; padding: 13px; color: var(--azul); font-weight: 700; }
.dot { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 100px; font: 800 12px var(--display); color: #fff; }
.dot.rojo { background: var(--rojo); } .dot.amarillo { background: var(--amarillo); color: #3a2c05; } .dot.diseno { background: var(--azul); } .dot.nv { background: var(--gris); }
.nota-amarilla { background: #FDF3DF; border: 1px solid #F1D9A6; color: #6B4A0B; border-radius: 12px; padding: 12px 14px; font-size: 14.5px; margin-bottom: 14px; }
.prog-card { margin-bottom: 18px; }

/* paso */
.paso-main { padding-bottom: calc(var(--pie) + 60px); }
.paso-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip-rubro { font: 800 11.5px var(--display); padding: 5px 10px; border-radius: 100px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, #fff); text-transform: uppercase; letter-spacing: .03em; }
.chip-herr { font: 600 12.5px var(--body); padding: 4px 10px; border-radius: 100px; background: #fff; border: 1px solid var(--linea); color: var(--texto-2); }
.instruccion { font-size: 22px; line-height: 1.3; margin-bottom: 12px; }
.ayuda { background: #EAF3FA; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; color: #1F4E70; font-size: 14.5px; }
.ayuda summary { font-weight: 700; cursor: pointer; }
.ayuda p { margin-top: 6px; line-height: 1.4; }
#respuesta { margin-bottom: 16px; }
.nv-box { background: #F1F3F5; border: 1.5px solid #D5DADF; border-radius: 14px; padding: 14px; margin-bottom: 16px; }
.nv-t { font: 800 15px var(--display); color: var(--navy-900); margin-bottom: 10px; }
.nv-box .opts { flex-direction: row; flex-wrap: wrap; }
.fotos-t { font: 700 14px var(--display); color: var(--navy-900); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.req { font-size: 11.5px; padding: 3px 9px; border-radius: 100px; background: #FDE7E3; color: #A23A2B; }
.req.ok { background: #DEF3E5; color: #1E7A44; }
.fotos-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.thumb { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: #DCE3E8; flex-shrink: 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.add { border: 2px dashed #9FB0BD; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--navy-900); }
.thumb.add span { font-size: 26px; }
.thumb.add small { font-weight: 700; font-size: 12px; }
.resultado { margin-top: 12px; padding: 10px 14px; border-radius: 12px; font-size: 14px; }
.resultado.amarillo { background: #FDF3DF; color: #7A560E; }
.resultado.rojo { background: #FBE4E0; color: #9A2F21; }
.resultado.diseno { background: #E2EEF8; color: #164C76; }
.resultado.nv { background: #ECEEF0; color: var(--texto-2); }

/* pie fijo */
.pie { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: #fff; border-top: 1px solid var(--linea); padding: 8px 14px; padding-bottom: max(10px, env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; box-shadow: 0 -6px 20px -12px rgba(0,0,0,.25); }
.pie-falta { font-size: 13px; font-weight: 700; color: #A23A2B; min-height: 0; max-height: 0; overflow: hidden; transition: max-height .2s; text-align: center; }
.pie-falta.show { max-height: 40px; padding-bottom: 6px; }
.pie-falta.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.pie-btns { display: flex; gap: 8px; }
.pie-btns .btn.ghost { min-width: 56px; padding: 12px 14px; }
.pie-btns .nv { font-size: 14px; color: var(--texto-2); }

/* resumen */
.score-hero { background: linear-gradient(140deg, var(--navy-950), var(--navy-800) 70%); border-radius: 20px; padding: 24px 20px; text-align: center; color: #fff; margin-bottom: 14px; border-bottom: 6px solid var(--esc); }
.score-hero .lbl { color: var(--verde-300); text-transform: uppercase; letter-spacing: .06em; font-size: 12px; margin: 0 0 4px; }
.score-num { font: 800 64px/1 var(--display); }
.score-etq { font: 800 18px var(--display); margin-top: 8px; color: #fff; }
.score-lect { font-size: 14px; color: rgba(255,255,255,.75); margin-top: 4px; }
.cap-note { font-size: 12.5px; color: #FFD2CA; margin-top: 10px; }
.conteos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.conteos div { background: #fff; border: 1px solid var(--linea); border-radius: 12px; padding: 10px 4px; text-align: center; }
.conteos b { display: block; font: 800 22px var(--display); }
.conteos span { font-size: 11.5px; color: var(--texto-2); font-weight: 600; }
.sec-t { font-size: 15.5px; margin: 22px 0 10px; display: flex; align-items: center; gap: 8px; }
.sec-t small { color: var(--gris); font-weight: 600; }
.sec-t .dot { min-width: 14px; height: 14px; padding: 0; }
.rb-row { display: grid; grid-template-columns: 1fr auto 70px 32px; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--linea); border-radius: 11px; padding: 10px 12px; margin-bottom: 6px; }
.rb-n { font-size: 13.5px; font-weight: 600; color: var(--navy-900); }
.rb-p { font-size: 11.5px; color: var(--gris); }
.rb-bar { height: 7px; border-radius: 4px; background: var(--linea); overflow: hidden; }
.rb-bar div { height: 100%; }
.rb-v { font: 800 14px var(--display); text-align: right; }
.hallazgo { background: #fff; border: 1px solid var(--linea); border-left: 5px solid var(--c); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.hallazgo p { font-size: 15px; line-height: 1.4; margin-top: 4px; }
.h-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.h-rubro { font: 800 11px var(--display); text-transform: uppercase; color: var(--c); letter-spacing: .03em; }
.h-esp { font-size: 12.5px; font-weight: 700; color: var(--texto-2); }
.grave { font: 800 10.5px var(--display); background: var(--rojo); color: #fff; padding: 2px 7px; border-radius: 100px; }
.h-com { font-style: italic; color: var(--texto-2); }
.h-nota { color: #1F4E70; font-size: 14px !important; }
.h-norma { font-size: 13px !important; color: var(--azul); }
.h-fotos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.h-fotos img { width: 74px; height: 74px; object-fit: cover; border-radius: 9px; background: var(--linea); cursor: pointer; }
.recs { padding-left: 20px; font-size: 14.5px; line-height: 1.45; }
.recs li { margin-bottom: 6px; }
.leyenda { font-size: 12.5px; color: var(--gris); margin-top: 18px; line-height: 1.4; font-style: italic; }
.acciones { margin-top: 18px; }

/* modal y aviso */
.modal-wrap { position: fixed; inset: 0; z-index: 200; background: rgba(6,24,38,.55); display: flex; align-items: flex-end; justify-content: center; }
.modal { background: #fff; width: 100%; max-width: 560px; border-radius: 20px 20px 0 0; padding: 20px 18px; padding-bottom: max(20px, env(safe-area-inset-bottom)); max-height: 85vh; overflow-y: auto; }
.modal h3 { font-size: 18px; margin-bottom: 10px; }
.modal p { color: var(--texto-2); margin-bottom: 10px; }
.modal-btns { display: flex; gap: 10px; margin-top: 16px; }
.modal-btns .btn { flex: 1; }
.lista-opciones { display: flex; flex-direction: column; gap: 8px; }
.toast { position: fixed; left: 50%; bottom: calc(var(--pie) + 10px); transform: translate(-50%, 20px); opacity: 0; transition: .25s; z-index: 300; background: var(--navy-950); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 700; font-size: 14.5px; max-width: 92vw; text-align: center; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #A23A2B; }
.toast.ok { background: #1E7A44; }

/* cámara */
.cam { position: fixed; inset: 0; z-index: 400; background: #000; display: flex; flex-direction: column; color: #fff; }
.cam video { flex: 1; width: 100%; object-fit: cover; min-height: 0; }
.cam.flash video { animation: flash .25s; }
@keyframes flash { 0% { opacity: .2; } 100% { opacity: 1; } }
.cam-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; padding-top: max(12px, env(safe-area-inset-top)); font: 700 15px var(--display); }
.cam-top span:nth-child(2) { flex: 1; }
.cam-x { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 18px; }
.cam-gps { font-size: 12px; padding: 4px 9px; border-radius: 100px; background: rgba(224,169,62,.25); }
.cam-gps.ok { background: rgba(70,165,108,.3); }
.cam-bottom { display: flex; align-items: center; justify-content: space-between; padding: 18px 30px; padding-bottom: max(22px, env(safe-area-inset-bottom)); }
.cam-shutter { width: 78px; height: 78px; border-radius: 50%; background: #fff; border: 5px solid rgba(255,255,255,.4); background-clip: padding-box; }
.cam-shutter:active { transform: scale(.94); }
.cam-torch, .cam-spacer { width: 50px; height: 50px; border-radius: 50%; font-size: 22px; background: rgba(255,255,255,.12); }
.cam-spacer { background: none; }
.cam-torch.on { background: var(--amarillo); }
.cam-img { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.cam-img img { max-width: 100%; max-height: 100%; }
.cam-actions { display: flex; gap: 8px; padding: 14px; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.cam-actions .btn { flex: 1; padding: 12px 6px; }

/* anotador */
.anot { position: fixed; inset: 0; z-index: 450; background: #0b0f12; display: flex; flex-direction: column; }
.anot-top { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; padding-top: max(10px, env(safe-area-inset-top)); }
.anot-lienzo { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.anot-lienzo canvas { touch-action: none; display: block; }
.anot-colores { display: flex; justify-content: center; gap: 14px; padding: 8px; }
.anot-color { width: 34px; height: 34px; border-radius: 50%; border: 3px solid transparent; }
.anot-color.on { border-color: #fff; box-shadow: 0 0 0 2px #0b0f12 inset; }
.anot-herr { display: flex; justify-content: space-around; padding: 6px 4px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.anot-h { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #9aa7b1; padding: 6px 4px; border-radius: 10px; min-width: 46px; }
.anot-h b { font-size: 20px; line-height: 1; }
.anot-h span { font-size: 10.5px; font-weight: 700; }
.anot-h.on { color: #fff; background: rgba(255,255,255,.12); }

/* visor */
.visor { position: fixed; inset: 0; z-index: 350; background: rgba(0,0,0,.92); display: flex; flex-direction: column; }
.visor img { flex: 1; min-height: 0; object-fit: contain; width: 100%; }
.visor-btns { display: flex; gap: 8px; padding: 14px; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.visor-btns .btn { flex: 1; }

/* impresión: el resumen como documento */
@media print {
  body, #app { background: #fff; }
  .topbar, .pie, .no-print, .prog-global, body.sin-red::before { display: none !important; }
  .score-hero { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .hallazgo, .rb-row { break-inside: avoid; }
  .h-fotos img { width: 130px; height: 130px; }
}

/* ---- Etapa 2: visitas del CRM ---- */
.sync-ind { font: 700 12px var(--display); padding: 5px 9px; border-radius: 100px; background: rgba(255,255,255,.12); white-space: nowrap; }
.sync-ind.ok { background: rgba(70,165,108,.35); }
.sync-ind.pend { background: rgba(224,169,62,.4); }
.sync-ind.err { background: rgba(214,91,74,.55); }
.ic-fecha { font: 800 12.5px var(--display); color: var(--azul); margin-bottom: 4px; }
.ic-fecha::first-letter, .det-fecha::first-letter { text-transform: uppercase; }
.ic-obs { margin-top: 8px; font-size: 13.5px; color: #8C2A1D; background: #FBE4E0; border-radius: 9px; padding: 8px 10px; }
.insp-card.devuelta { border-color: #F0B5AB; }
.status.err { background: #FBE4E0; color: #9A2F21; }
.status.gris { background: #ECEEF0; color: var(--texto-2); }
.nota-roja { background: #FBE4E0; border: 1px solid #F0B5AB; color: #7A2416; border-radius: 12px; padding: 12px 14px; font-size: 14.5px; margin-bottom: 14px; }
.envio { background: #fff; border: 1px solid var(--linea); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; margin-top: 12px; }
.envio.ok { background: #DEF3E5; border-color: #BFE3CD; color: #1E7A44; font-weight: 700; }
.envio.pend { background: #FDF3DF; border-color: #F1D9A6; color: #6B4A0B; }
.det-hero { background: var(--navy-900); color: #fff; border-radius: 16px; padding: 18px; margin-bottom: 14px; }
.det-hero h2 { color: #fff; font-size: 19px; margin: 4px 0 12px; line-height: 1.3; }
.det-fecha { font: 800 13px var(--display); color: var(--verde-300); }
.card.det { margin-bottom: 12px; }
.det-t { font: 800 12.5px var(--display); color: var(--texto-2); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.det-row { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px solid #EEF2F4; font-size: 15px; }
.det-row:last-child { border-bottom: 0; }
.det-row span { color: var(--texto-2); }
.det-row b { text-align: right; font-weight: 600; color: var(--navy-900); }
.det-row a { color: var(--azul); }
.sin-foto { background: repeating-linear-gradient(45deg, #E3E8EC, #E3E8EC 6px, #EEF2F4 6px, #EEF2F4 12px); }
