/* =====================================================================
   F89 · MODO OSCURO (opcional) · instalador y cliente
   Se activa con la clase .oscuro en <html> (ver tema.js). Las pantallas
   tienen muchos colores escritos a mano: aquí se reescriben por variables,
   por clases comunes y por los estilos en línea más habituales.
   ===================================================================== */
html.oscuro{color-scheme:dark;
  --o-bg:#0b1310; --o-panel:#131f19; --o-panel2:#18261f; --o-line:#26392f; --o-ink:#eaf3ed; --o-text:#d2e0d6;}
html.oscuro{--o-muted:#9aaea2}
/* variables del instalador y del cliente */
html.oscuro{--ink:#eaf3ed;--text:#d2e0d6;--muted:#9aaea2;--line:#26392f;--soft:#163024;--soft2:#17241d;--bg:#0b1310;
  --card:#131f19;--green-soft:#163024;--lime-soft:#1d2a17;--gold-soft:#2b2a12;--blue-bg:#16243a;--amber-bg:#2c2312;--pend:#3d5146;
  --shadow:0 1px 2px rgba(0,0,0,.4)}
html.oscuro body{background:var(--o-bg);color:var(--o-text)}

/* superficies */
html.oscuro .card,html.oscuro .tile,html.oscuro .sum-card,html.oscuro .xcard,html.oscuro .tk-card,html.oscuro .qk,
html.oscuro .user-menu,html.oscuro .sheet,html.oscuro .cam-sheet,html.oscuro .tabbar,html.oscuro .botnav,
html.oscuro .topbar,html.oscuro .doc-buscar,html.oscuro .fp-add,html.oscuro .fp-item,html.oscuro .dc,html.oscuro .conv-in input,
html.oscuro .inst-hero,html.oscuro .composer,html.oscuro .search input,html.oscuro .topbar-search{background:var(--o-panel);border-color:var(--o-line)}
html.oscuro .chip,html.oscuro .btn-o,html.oscuro .qa,html.oscuro .q,html.oscuro .c-acts a,html.oscuro .coord,html.oscuro .crow,
html.oscuro .mini-admin,html.oscuro .a-call,html.oscuro .a-mail,html.oscuro .ac,html.oscuro .doc-mini,html.oscuro .tag,
html.oscuro .grp-h .c,html.oscuro .hz-prog,html.oscuro .prog,html.oscuro .bar,html.oscuro .rsm-det>summary,html.oscuro .fact-hablamos,
html.oscuro .add-note,html.oscuro .ins-item{background:var(--o-panel2);border-color:var(--o-line);color:var(--o-ink)}
html.oscuro .chip.on{background:#eaf3ed;color:#0b1310;border-color:#eaf3ed}
html.oscuro .chip.on .n{color:#1c6b3c}
html.oscuro input,html.oscuro select,html.oscuro textarea{background:var(--o-panel2)!important;color:var(--o-ink)!important;border-color:var(--o-line)!important}
html.oscuro input::placeholder,html.oscuro textarea::placeholder{color:#7d9186}
html.oscuro .task:hover,html.oscuro .doc-row:hover,html.oscuro .tbl tbody tr:hover{background:var(--o-panel2)}
html.oscuro .task,html.oscuro .doc-row,html.oscuro .job,html.oscuro .prow,html.oscuro .rsm-row,html.oscuro .chk-row,html.oscuro .alink,
html.oscuro .res,html.oscuro .fact,html.oscuro .ct-f,html.oscuro .mi,html.oscuro .cam-obra,html.oscuro .grp-t{border-color:var(--o-line)}

/* textos que estaban en verde oscuro de marca (sobre blanco) */
html.oscuro .tile b,html.oscuro .n,html.oscuro .nm,html.oscuro .hello,html.oscuro .page-h,html.oscuro .card-h,html.oscuro .h1,
html.oscuro h1,html.oscuro h2,html.oscuro h3,html.oscuro h4{color:var(--o-ink)}
html.oscuro .hero-cli h2,html.oscuro .hero h1,html.oscuro .compromiso h3,html.oscuro .amigo h3{color:#fff}
html.oscuro [style*="color:#113929"],html.oscuro [style*="color:var(--ink)"]{color:var(--o-ink)!important}
html.oscuro [style*="color:#0e6b3a"],html.oscuro [style*="color:#177a35"]{color:#7fd69a!important}

/* fondos claros escritos en línea */
html.oscuro [style*="background:#fff;"],html.oscuro [style$="background:#fff"],html.oscuro [style*="background:#fff "],
html.oscuro [style*="background:#fbfdfb"],html.oscuro [style*="background:#f7faf8"],html.oscuro [style*="background:#f6f9f7"],
html.oscuro [style*="background:#f2f5f2"],html.oscuro [style*="background:#eef4ef"],html.oscuro [style*="background:#f1f9f3"],
html.oscuro [style*="background:linear-gradient(180deg,#fff"]{background:var(--o-panel2)!important;border-color:var(--o-line)!important}
html.oscuro [style*="background:var(--green-soft)"],html.oscuro [style*="background:#e6f4ea"],html.oscuro [style*="background:#eefaf1"]{background:#163024!important;border-color:#24503a!important}
html.oscuro [style*="border:1px solid var(--line)"]{border-color:var(--o-line)!important}

/* avisos y estados grandes: tonos oscuros con texto claro */
html.oscuro .notice,html.oscuro .off-av.pend,html.oscuro .off-nota,html.oscuro .tip{background:#2b2a12;border-color:#4a4718;color:#f0eaa4}
html.oscuro .notice b{color:#fff6b0}
html.oscuro .notice .n-ic{background:#3a381a}
html.oscuro .off-av.borr,html.oscuro .off-rec{background:#16243a;border-color:#2b4266;color:#b9d0f2}
html.oscuro .flash.ok,html.oscuro .state.ok{background:#163024;border-color:#24503a;color:#a9e6bb}
html.oscuro .state.ok b{color:#a9e6bb}
html.oscuro .state.lock{background:var(--o-panel2);border-color:var(--o-line)}
html.oscuro .state.soon{background:#2c2312;border-color:#55401a}
html.oscuro .state.soon b{color:#f1c983}
html.oscuro .flash.err,html.oscuro .state.bad{background:#341613;border-color:#5e2620;color:#f3b0a6}
html.oscuro .state.bad b{color:#f3b0a6}
html.oscuro .prog-tx b,html.oscuro .prog{color:#a9e6bb}
html.oscuro .rsm-file{background:#163024;border-color:#24503a;color:#a9e6bb}
html.oscuro .coment{background:var(--o-panel2);border-color:var(--o-line);color:var(--o-text)}

/* chat «Lo hablamos» */
html.oscuro .conv{background:var(--o-bg);border-color:var(--o-line)}
html.oscuro .conv:before{display:none}
html.oscuro .row.them .bubble{background:var(--o-panel2);border-color:var(--o-line);color:var(--o-ink)}
html.oscuro .row.me .bubble{background:#1f5a3a}
html.oscuro .empty .big,html.oscuro .sugg button,html.oscuro .emojibar button:hover{background:var(--o-panel2);border-color:var(--o-line);color:var(--o-ink)}
html.oscuro .ch-head .onl{background:#163024;border-color:#24503a;color:#a9e6bb}

/* menús y barras */
html.oscuro .tab.cam .big{box-shadow:0 10px 22px rgba(0,0,0,.5),0 0 0 5px var(--o-bg)}
html.oscuro .botnav a.bn-centro .bi{box-shadow:0 10px 22px rgba(0,0,0,.5),0 0 0 5px var(--o-bg)}
html.oscuro .tab .bdot{box-shadow:0 0 0 2px var(--o-panel)}
html.oscuro .user-menu a:hover,html.oscuro .user-btn:hover{background:var(--o-panel2)}
html.oscuro .menu a.on,html.oscuro .menu a:hover{background:rgba(122,184,65,.17)}
html.oscuro .vista-tg{background:var(--o-panel2);border-color:var(--o-line)}
html.oscuro .vista-tg .vt-b.on{background:var(--o-panel);color:#7fd69a}
html.oscuro .tk-desc{background:var(--o-panel2);color:var(--o-text)}
html.oscuro .tk-filtro button{background:var(--o-panel2);border-color:var(--o-line);color:var(--o-text)}
html.oscuro .tk-filtro button.on{background:#eaf3ed;color:#0b1310}
html.oscuro .gal img{border-color:var(--o-line)}
html.oscuro .d-zip{background:#163024}
html.oscuro .doc-ic{background:#341613}
html.oscuro .ver-foot{color:#6f8478}

/* En el cliente, «--ink» es a la vez el verde oscuro de marca: donde se usa
   como FONDO o como texto sobre lima/amarillo/blanco fijo, se vuelve a fijar. */
html.oscuro .support-btn,html.oscuro .tk-filtro button.on{background:#113929;color:#fff}
html.oscuro .tk-openbar .support-btn{background:#c9e265;color:#113929}
html.oscuro .avatar{background:linear-gradient(135deg,#21A645,#113929)}
html.oscuro .b-cross,html.oscuro .banner.cross{background:linear-gradient(120deg,#113929,#21A645)}
html.oscuro .b-hero,html.oscuro .banner.recarga,html.oscuro [style*="var(--ink) 10%"]{background:linear-gradient(120deg,#113929 10%,#1c7a43 90%)!important}
html.oscuro .banner .b-cta,html.oscuro .pa-btn-cp{color:#113929}
html.oscuro .badge-prev,html.oscuro .brand-link:after,html.oscuro .hstep.now .hdot,html.oscuro .tl-now .tl-dot{color:#113929}
html.oscuro .ahora-cta,html.oscuro .ct-toggle,html.oscuro .pa-btn-cp{background:var(--o-panel2)}
html.oscuro .pa-btn-cp{color:var(--o-ink)}
html.oscuro .menu a.on{color:#fff}
html.oscuro [style*="background:var(--ink)"]{background:#113929!important;color:#fff}
html.oscuro .bat-instsel a.on,html.oscuro .svc-cta{background:#113929;border-color:#113929;color:#fff}

/* ajustes tras revisar capturas */
html.oscuro .stepper{background:var(--o-panel2);border-color:var(--o-line)}
html.oscuro .step .cir{background:var(--o-panel);border-color:#3a5144}
html.oscuro .step.done .cir{background:#21A645;border-color:#21A645}
html.oscuro .step.now .cir{background:var(--o-panel);border-color:#21A645}
html.oscuro .step:before,html.oscuro .step:after{background:#3a5144}
html.oscuro .step.done:after,html.oscuro .step.done:before,html.oscuro .step.now:before{background:#21A645}
html.oscuro .step.done .lb{color:var(--o-ink)}
html.oscuro .cbtns .mail{background:var(--o-panel2);border-color:var(--o-line);color:var(--o-ink)}
html.oscuro .crow-ic{background:var(--o-panel)}
html.oscuro .ic-o{background:var(--o-panel2);color:#9aaea2}
html.oscuro .tl-medio .tl-dot,html.oscuro .tl-now .tl-dot{background:var(--o-panel)!important}
html.oscuro .tl-dot{background:var(--o-panel);border-color:#3a5144}
html.oscuro .tl-done .tl-dot{background:#21A645;border-color:#21A645}
html.oscuro .tl-step:before{background:#3a5144}
html.oscuro .tl-done:before{background:#21A645}
html.oscuro .now-chip{background:#163024;border-color:#24503a;color:#7fd69a}
html.oscuro .a-call svg,html.oscuro .a-mail svg,html.oscuro .doc-mini svg{stroke:currentColor}
html.oscuro .a-call,html.oscuro .a-mail{color:var(--o-ink)}

/* F91 · importe según la tarifa (factura del instalador) */
html.oscuro .tar{background:var(--o-panel);border-color:var(--o-line)}
html.oscuro .tar-h{background:var(--o-panel2);border-color:var(--o-line)}
html.oscuro .tl,html.oscuro .ex,html.oscuro .otro,html.oscuro .stp{border-color:var(--o-line)}
html.oscuro .ex.on{background:#163024}
html.oscuro .stp button{background:var(--o-panel2);color:var(--o-ink)}
html.oscuro .tl.pres .t,html.oscuro .base-aviso{color:#f1c983}
html.oscuro .tar-nota{background:#2c2312;color:#f1c983}
html.oscuro .tar-tot{background:#0f2a1f}
html.oscuro .tar-res.coincide{background:#163024;border-color:#24503a}html.oscuro .tar-res.coincide b{color:#a9e6bb}
html.oscuro .tar-res.difiere{background:#341613;border-color:#5e2620}html.oscuro .tar-res.difiere b{color:#f3b0a6}
html.oscuro .tar-res.no_comprobable{background:#2c2312;border-color:#55401a}html.oscuro .tar-res.no_comprobable b{color:#f1c983}
html.oscuro .tar-res .ic3{background:rgba(255,255,255,.08)}

/* F93 · error dentro del formulario (envío demasiado pesado / fallo) */
html.oscuro .off-err{background:#341613;border-color:#5e2620;color:#f3b0a6}
html.oscuro .off-err b{color:#f3b0a6}

/* F159 · campana */
html.oscuro .pe-bell-n{box-shadow:0 0 0 2px var(--o-panel)}
html.oscuro .pe-bell:hover{background:rgba(255,255,255,.06)}

/* F168 · su cita (cliente) y lo que ha dicho el cliente (agenda del instalador) */
html.oscuro .cita-prox,html.oscuro .ct-card{background:var(--o-panel);border-color:var(--o-line)}
html.oscuro .cita-prox .cp-tx>span,html.oscuro .ct-prep li{color:var(--o-text)}
html.oscuro .ct-btn.no{background:var(--o-panel2);color:var(--o-ink);border-color:var(--o-line)}
html.oscuro .ct-est.no,html.oscuro .c-res.no{background:#2c2312;color:#f0c46a}
html.oscuro .ct-est.camino,html.oscuro .c-res.cam{background:#16243a;color:#9cc4ef}
html.oscuro .c-nota{color:#f0c46a}
html.oscuro .ct-nota textarea{background:var(--o-panel2);color:var(--o-ink);border-color:var(--o-line)}

/* F169 · lo que necesitamos de ti */
html.oscuro .pend-cli{background:#211f0f;border-color:#4a4520}
html.oscuro .pend-cli .pc-it{border-color:#4a4520}
html.oscuro .pend-cli .pc-ic{background:var(--o-panel);border-color:#4a4520;color:#e8dc7a}
html.oscuro .pend-cli .pc-h span{color:#c9c27a}
html.oscuro .pend-cli .pc-tx span{color:var(--o-text)}

/* F170 · qué me falta para cobrar (instalador) */
html.oscuro .cobro-n .tu,html.oscuro .cb-pasos i.ya{background:#2b2a12;color:#e8dc7a}
html.oscuro .cb-falta{color:var(--o-text)}
html.oscuro .cb-falta b{color:#e8dc7a}

/* F172 · Mis citas */
html.oscuro .ct-fila{background:var(--o-panel);border-color:var(--o-line)}
html.oscuro .ct-st.pend{background:#2b2a12;color:#e8dc7a!important}
html.oscuro .ct-st.no{background:#2c2312;color:#f0c46a!important}
