/* Sistema FV del simulador (fv.js, empresa.js) y piezas premium del simulador (comparador, guia, reporte de equipos,
   insignias del recibo). La interfaz usa los tokens de app.css; el recibo, las hojas y la cotizacion son papel
   claro como el recibo CFE (simulador.css). Diseño aprobado en docs/maquetas/maqueta_fv.html (v2). */
:root { --fv-sol: #f5a623; --fv-sol-f: #fdf3dc; --fv-sol-t: #9b6200; --fv-eq: #3b6fd8; --fv-eq-f: #e7eefc; --fv-eq-t: #2a55ad; --eq-azul: #3b6fd8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --fv-sol: #f0b955; --fv-sol-f: #3a2d12; --fv-sol-t: #f0c46e; --fv-eq: #7ea3f0; --fv-eq-f: #1c2740; --fv-eq-t: #9fbaf5; } }
:root[data-theme="dark"] { --fv-sol: #f0b955; --fv-sol-f: #3a2d12; --fv-sol-t: #f0c46e; --fv-eq: #7ea3f0; --fv-eq-f: #1c2740; --fv-eq-t: #9fbaf5; }
.fv-ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }

/* ---------- guia: con o sin recibo y pasos */
.su-entrada, .su-pasos { background: var(--panel); border: 1px solid var(--borde); border-radius: var(--radio); box-shadow: var(--sombra); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.su-entrada:empty, .su-pasos:empty { display: none; }
.su-entrada h2 { font-size: 15px; }
.su-ops { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.su-op { border: 1px solid var(--borde); border-radius: 12px; padding: 12px; background: var(--panel); color: var(--texto); font: inherit; text-align: left; cursor: pointer; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 3px 10px; align-items: start; transition: border-color .15s, background .15s; }
.su-op:hover { border-color: color-mix(in srgb, var(--primario-2) 45%, var(--borde)); }
.su-op .i { grid-row: span 2; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--acento); color: var(--primario-2); }
.su-op .i svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.su-op b { font-size: 13px; } .su-op small { font-size: 11.5px; color: var(--suave); line-height: 1.35; }
.su-op[aria-pressed="true"] { border-color: var(--primario-2); background: color-mix(in srgb, var(--acento) 70%, var(--panel)); box-shadow: inset 0 0 0 1px var(--primario-2); }
.su-pasos ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.su-pasos li button { width: 100%; border: 0; background: transparent; color: var(--suave); font: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 3px; padding: 0; font-size: 11.5px; }
.su-pasos li i { height: 4px; border-radius: 4px; background: var(--borde); display: block; }
.su-pasos li.hecho i { background: var(--primario-2); }
.su-pasos li.aqui i { background: linear-gradient(90deg, var(--fv-sol) 50%, var(--borde) 50%); }
.su-pasos li b { color: var(--texto); font-size: 12px; line-height: 1.25; }
.su-sig { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.su-sig span { flex: 1; min-width: 0; }
body.su-sin-recibo #lr-card { display: none; }
body.su-sin-recibo #su-equipos-card { order: 1; } body.su-sin-recibo #su-recibo-card { order: 2; } body.su-sin-recibo #su-fv-card { order: 3; }
.su-solo-inst { display: none; }
body.su-vista-instalador .su-solo-inst { display: inline-flex; }
@media (max-width: 520px) { .su-ops { grid-template-columns: minmax(0, 1fr); } .su-pasos ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- comparador de escenarios (#su-cinta) */
#su-cinta { position: relative; z-index: auto; display: flex; flex-direction: column; gap: 10px; overflow: visible; padding: 12px 14px 14px; background: var(--panel); border: 1px solid var(--borde); border-radius: var(--radio); box-shadow: var(--sombra); margin-bottom: 12px; }
#su-cinta[hidden] { display: none; }
.cmp-cab { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.cmp-cab b { font-size: 15px; }
.cmp-cab .nota { font-size: 11.5px; }
.cmp-ganas { display: flex; flex-wrap: wrap; gap: 6px; }
.cmp-gana { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 5px; border-radius: 999px; background: var(--fondo); font-size: 12px; }
.cmp-gana .i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); }
.cmp-gana .i svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cmp-gana b { font-weight: 700; }
.cmp-gana.verde .i { color: var(--ok-t); } .cmp-gana.sol .i { color: var(--fv-sol-t); } .cmp-gana.eq .i { color: var(--fv-eq-t); } .cmp-gana.pe .i { color: var(--pe-t); }
.cmp-escs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(176px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.cmp-esc, .cmp-nuevo { border: 1px solid var(--borde); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 5px; background: var(--panel); color: var(--texto); text-align: left; min-width: 0; font: inherit; }
.cmp-esc { cursor: pointer; transition: border-color .15s, box-shadow .15s; position: relative; }
.cmp-esc:hover { border-color: color-mix(in srgb, var(--primario-2) 45%, var(--borde)); }
.cmp-esc.on { border-color: var(--primario-2); box-shadow: inset 0 0 0 1px var(--primario-2); }
.cmp-esc:focus-visible { outline: 2px solid var(--primario-2); outline-offset: 2px; }
.cmp-esc.base { cursor: default; background: var(--fondo); border-style: dashed; }
.cmp-esc .t { display: flex; align-items: center; gap: 6px; font-weight: 650; font-size: 12.5px; min-width: 0; }
.cmp-esc .t span:first-of-type, .cmp-esc .t > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-esc .t svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cmp-esc .x { margin-left: auto; color: var(--suave); font-size: 15px; line-height: 1; padding: 0 2px; cursor: pointer; }
.cmp-esc .v { font-size: 22px; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.1; letter-spacing: -.01em; }
.cmp-esc .v small { font-size: 11px; color: var(--suave); font-weight: 500; margin-left: 2px; }
.cmp-esc .d { font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cmp-esc .d.baja { color: var(--ok-t); } .cmp-esc .d.sube { color: var(--er-t); } .cmp-esc .d.ref { color: var(--suave); font-weight: 500; }
.cmp-esc .chips { display: flex; flex-wrap: wrap; gap: 4px; }
.cmp-chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 650; white-space: nowrap; }
.cmp-chip svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cmp-chip.eq { background: var(--fv-eq-f); color: var(--fv-eq-t); } .cmp-chip.sol { background: var(--fv-sol-f); color: var(--fv-sol-t); }
.cmp-chip.est { background: var(--pe-f); color: var(--pe-t); } .cmp-chip.nada { background: var(--fondo); color: var(--suave); }
.cmp-esc .cmp-finanzas { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 11px; color: var(--suave); border-top: 1px dashed var(--borde); padding-top: 8px; margin-top:auto; }
.cmp-esc .cmp-finanzas b { display: block; color: var(--texto); font-size: 12px; font-variant-numeric: tabular-nums; }
.cmp-nuevo { border-style: dashed; cursor: pointer; justify-content: center; align-items: flex-start; background: transparent; }
.cmp-nuevo b { color: var(--primario-2); font-size: 13px; } .cmp-nuevo small { color: var(--suave); font-size: 11px; }

/* ---------- tarjeta "Sistema FV" */
.fv-disp { margin: 10px 0 0; font-size: 12px; color: var(--suave); display: flex; gap: 6px; align-items: flex-start; }
.fv-disp.ok { color: var(--ok-t); }
.fv-disp.no { color: var(--av-t); background: var(--av-f); border-radius: 8px; padding: 7px 10px; }
.fv-on { display: flex; align-items: center; gap: 12px; padding: 14px; margin-top: 10px; border-radius: 12px; border: 1px solid var(--borde); cursor: pointer; text-align: left; background: var(--panel); color: var(--texto); width: 100%; font: inherit; }
.fv-on[aria-pressed="true"] { border-color: var(--fv-sol); background: var(--fv-sol-f); }
.fv-sw { width: 42px; height: 24px; border-radius: 999px; background: var(--borde); position: relative; flex: none; transition: background .2s; }
.fv-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.fv-on[aria-pressed="true"] .fv-sw { background: var(--fv-sol); }
.fv-on[aria-pressed="true"] .fv-sw::after { transform: translateX(18px); }
.fv-on span { display: flex; flex-direction: column; }
.fv-on small { color: var(--suave); font-size: 12px; }
.fv-activacion { display:flex;gap:8px;align-items:stretch;margin-top:10px; }
.fv-activacion .fv-on { margin-top:0;flex:1;min-width:0;width:auto; }
.fv-activacion .fv-sw { flex-shrink:0; }
.fv-activacion .fv-on>span { min-width:0; }
/* Varita «Auto»: píldora con brillo cian cuando el valor es el automático */
.fv-varita { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 34px; padding: 0 12px 0 10px; border-radius: 999px; border: 1px solid var(--borde); background: var(--panel); color: var(--suave); font: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; cursor: pointer; transition: background .2s, color .2s, border-color .2s, box-shadow .2s; }
.fv-varita svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fv-varita:hover { border-color: var(--marca-cian, #17b3c8); color: var(--texto); }
.fv-varita[aria-pressed="true"] { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--marca-marino, #0e2236), var(--marca-cian-texto, #087f93)); box-shadow: 0 0 0 3px rgba(23, 179, 200, .18), 0 4px 14px rgba(8, 127, 147, .28); }
.fv-varita[aria-pressed="true"] svg { stroke: var(--marca-ambar, #f5a623); }
.fv-varita:focus-visible { outline: 2px solid var(--marca-cian, #17b3c8); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) { .fv-varita[aria-pressed="true"] svg { animation: fv-destello 2.4s ease-in-out 1; } }
@keyframes fv-destello { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-14deg) scale(1.12); } 60% { transform: rotate(6deg); } }
.fv-auto { min-height: 44px; border-radius: 12px; padding: 0 14px 0 12px; }
.fv-grupo-acc { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--fondo); font-size: 12px; color: var(--suave); }
.fv-eti { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--suave); margin: 12px 0 6px; }
.fv-pot { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; }
.fv-pot button { border: 1px solid var(--borde); background: var(--panel); color: var(--texto); border-radius: 10px; padding: 6px 4px; cursor: pointer; display: flex; flex-direction: column; align-items: center; line-height: 1.1; font: inherit; }
.fv-pot button b { font-size: 14px; font-variant-numeric: tabular-nums; }
.fv-pot button small { font-size: 10px; color: var(--suave); }
.fv-pot button[aria-pressed="true"] { border-color: var(--primario-2); background: var(--acento); box-shadow: inset 0 0 0 1px var(--primario-2); }
.fv-pot button.fv-pot-chip-otra { border-style: dashed; }
.fv-pot button.fv-pot-chip-otra[aria-pressed="true"] { border-style: solid; }
.fv-pot button.fv-pot-chip-otra[aria-expanded="true"]:not([aria-pressed="true"]) { border-color: var(--marca-cian, #17b3c8); }
.fv-pot-otra { margin-top: 10px; padding: 12px; border-radius: 14px; border: 1px solid var(--borde); background: linear-gradient(180deg, var(--fondo), var(--panel)); display: flex; flex-direction: column; gap: 10px; }
.fv-pot-otra[hidden] { display: none; }
.fv-pot-otra-t { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.fv-pot-otra-t small { color: var(--suave); font-size: 11.5px; }
.fv-pot-ctl { display: flex; align-items: stretch; gap: 6px; }
.fv-pot-paso { flex: none; width: 44px; border: 1px solid var(--borde); border-radius: 12px; background: var(--panel); color: var(--texto); font: inherit; font-size: 20px; font-weight: 600; cursor: pointer; }
.fv-pot-paso:hover { border-color: var(--marca-cian, #17b3c8); }
.fv-pot-caja { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; border: 1px solid var(--borde); border-radius: 12px; background: var(--panel); padding: 0 12px; height: 46px; box-sizing: border-box; }
.fv-pot-caja:focus-within { border-color: var(--marca-cian, #17b3c8); box-shadow: 0 0 0 3px rgba(23, 179, 200, .18); }
.fv-pot-caja input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--texto); font: inherit; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; padding: 0; text-align: center; -moz-appearance: textfield; }
.fv-pot-caja input::-webkit-inner-spin-button, .fv-pot-caja input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.fv-pot-caja input:invalid { color: var(--er-t, #b63732); }
.fv-pot-caja span { color: var(--suave); font-size: 12px; font-weight: 700; }
.fv-pot-usar { flex: none; min-height: 46px; border-radius: 12px; padding: 0 16px; }
.fv-pot-desl { width: 100%; accent-color: var(--marca-cian-texto, #087f93); margin: 0; }
.fv-pot-escala { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--suave); margin-top: -6px; font-variant-numeric: tabular-nums; }
/* Orientación: panel de lado y desde arriba, y calidad contra el óptimo del sitio */
.fv-orient2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px; border-radius: 14px; background: var(--fondo); }
.fv-ocal { grid-template-columns: auto 1fr; align-items: center; } .fv-ocal .nota { grid-column: 1 / -1; }
.fv-o-vista { width: 100%; height: auto; display: block; }
.fv-ov-t { font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; fill: var(--suave); }
.fv-ov-pie { font-size: 9.5px; fill: var(--suave); }
.fv-ov-n { font-size: 11px; font-weight: 700; fill: var(--texto); }
.fv-ov-sol { fill: var(--marca-ambar, #f5a623); } .fv-ov-rayo { stroke: var(--marca-ambar, #f5a623); stroke-width: 1.6; stroke-linecap: round; }
.fv-ov-suelo { stroke: var(--borde); stroke-width: 2; }
.fv-ov-pata { stroke: var(--suave); stroke-width: 2; stroke-dasharray: 3 3; }
.fv-ov-panel { stroke: var(--marca-marino, #0e2236); stroke-width: 7; stroke-linecap: round; }
:root[data-theme="dark"] .fv-ov-panel { stroke: #8ddde8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fv-ov-panel { stroke: #8ddde8; } }
.fv-ov-brujula { fill: var(--panel); stroke: var(--borde); stroke-width: 1.5; }
.fv-ov-marca { stroke: var(--borde); stroke-width: 1.2; }
.fv-ov-l { font-size: 10px; font-weight: 800; fill: var(--suave); text-anchor: middle; } .fv-ov-l.sur { fill: var(--marca-cian-texto, #087f93); }
.fv-ov-modulo { fill: #17465f; stroke: var(--marca-marino, #0e2236); stroke-width: 1.5; }
.fv-ov-celda { stroke: rgba(141, 221, 232, .55); stroke-width: .8; }
.fv-ov-flecha { fill: var(--marca-ambar, #f5a623); }
.fv-ocal { display: grid; gap: 6px; align-content: center; }
.fv-ocal-chip { justify-self: start; padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 14px; background: var(--borde); color: var(--texto); }
.fv-ocal-chip.excelente { background: var(--ok-f, #e4f4ea); color: var(--ok-t, #1f7a4a); }
.fv-ocal-chip.bueno { background: rgba(23, 179, 200, .14); color: var(--marca-cian-texto, #087f93); }
.fv-ocal-chip.aceptable { background: var(--av-f, #fbf0d9); color: var(--av-t, #9a6200); }
.fv-ocal-chip.malo { background: var(--er-f, #fbe5e3); color: var(--er-t, #b3261e); }
.fv-ocal-perd { font-size: 12.5px; color: var(--suave); } .fv-ocal-perd b { color: var(--texto); font-variant-numeric: tabular-nums; }
/* Ahorro potencial (sin el tope del recibo) y su relación con el gasto actual */
.fv-sobre { display: inline-flex; align-self: flex-start; align-items: center; gap: 4px; margin: 4px 0 2px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--ok-f, #e4f4ea); color: var(--ok-t, #1f7a4a); }
.fv-sobre.sobra { background: var(--av-f, #fbf0d9); color: var(--av-t, #9a6200); }
.fv-real { display: block; font-size: 11.5px; color: var(--suave); }
.fv-pot-nota { margin: 8px 0 0; font-size: 11.5px; color: var(--suave); line-height: 1.4; }
.fv-rp.hoy .fv-sobre { background: rgba(255, 255, 255, .16); color: #fff; }
.fv-rp.hoy .fv-sobre.sobra { background: rgba(245, 166, 35, .25); color: #ffd68f; }
/* Precio estándar: el campo que rige la cotización, antes del rango */
.fv-precio-est { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--marca-cian, #17b3c8); background: rgba(23, 179, 200, .06); font-weight: 650; }
.fv-precio-est .fv-pot-caja { margin-top: 4px; }
.fv-precio-est .fv-pot-caja input { text-align: left; font-size: 18px; }
.fv-precio-est .fv-pot-caja input:disabled { color: var(--suave); }
.fv-precio-est small { font-weight: 500; }
.fv-req { color: var(--er-t, #b63732); font-style: normal; }
.fv-est-aviso:empty { display: none; }
.fv-est-aviso { color: var(--marca-ahorro, #9b6200) !important; }
.fv-cot-est .fv-cot-rango { color: var(--suave); font-size: 11.5px; }
.fv-pre-origen .eq-enlace { font-size: inherit; }
/* Eficiencia FV (vista Profesional): pérdidas compuestas × fracción del óptimo por orientación */
.fv-efi { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--borde); background: linear-gradient(135deg, rgba(14, 34, 54, .04), rgba(23, 179, 200, .08)); display: flex; flex-direction: column; gap: 8px; }
.fv-efi-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fv-efi-t { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; }
.fv-efi-t > span { display: flex; flex-direction: column; line-height: 1.2; }
.fv-efi-t small { font-weight: 500; font-size: 11px; color: var(--suave); }
.fv-efi-t .fv-ic { width: 26px; height: 26px; padding: 5px; border-radius: 9px; background: var(--marca-marino, #0e2236); stroke: var(--marca-ambar, #f5a623); box-sizing: border-box; }
.fv-efi-n { font-size: 28px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; color: var(--texto); }
.fv-efi-n.alta { color: var(--ok-t, #1f7a4d); }
.fv-efi-n.media { color: var(--marca-ahorro, #9b6200); }
.fv-efi-n.baja { color: var(--er-t, #b63732); }
.fv-efi-barra { display: block; height: 8px; border-radius: 999px; background: var(--borde); overflow: hidden; }
.fv-efi-barra i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--marca-cian-texto, #087f93), var(--marca-cian, #17b3c8)); transition: width .25s ease; }
.fv-efi-barra i.media { background: linear-gradient(90deg, #c98a14, var(--marca-ambar, #f5a623)); }
.fv-efi-barra i.baja { background: linear-gradient(90deg, #b63732, #e06a5f); }
.fv-efi-des { color: var(--suave); font-size: 11.5px; font-variant-numeric: tabular-nums; }
/* 18-11-2026: «estimado» junto a la cifra, semáforo 78/72 y avisos del óptimo (mínimo de 10°, revisión por latitud) */
.fv-efi-n .fv-efi-est { display: block; margin-top: 3px; font-size: 10.5px; font-weight: 600; letter-spacing: 0; color: var(--suave); text-align: right; }
.fv-efi-sem { font-weight: 700; }
.fv-efi-sem.alta { color: var(--ok-t, #1f7a4d); }
.fv-efi-sem.media { color: var(--marca-ahorro, #9b6200); }
.fv-efi-sem.baja { color: var(--er-t, #b63732); }
.fv-o-aviso { margin: 4px 0 0; padding: 6px 10px; border-radius: 10px; border-left: 3px solid var(--marca-ambar, #f5a623); background: rgba(245, 166, 35, .1); color: var(--texto); }
.fv-cant { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--fondo); margin-top: 12px; }
.fv-n { font-size: 34px; font-weight: 750; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.fv-dd { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--suave); min-width: 0; align-items: flex-start; }
.fv-dd b { color: var(--texto); font-size: 13px; }
.fv-pill { display: inline-flex; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.fv-pill.rec { background: var(--ok-f); color: var(--ok-t); } .fv-pill.man { background: var(--pe-f); color: var(--pe-t); }
.fv-cant .eq-stepper input { width: 52px; }
.fv-aviso { margin: 10px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--av-f); color: var(--av-t); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fv-pend { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--av-f); color: var(--av-t); font-size: 12.5px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.fv-pend ul { margin: 0; padding-left: 18px; }
.fv-pend small { color: inherit; opacity: .85; }
.fv-rec { margin: 10px 0 0; font-size: 12.5px; }
.fv-alt { margin-top: 6px; }
.fv-alt .chip { font-size: 12px; padding: 4px 10px; }
.fv-retorno { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--suave); margin-top: 10px; max-width: 240px; }
.fv-retorno select { border: 1px solid var(--borde); border-radius: 8px; padding: 6px 9px; font: inherit; background: var(--panel); color: var(--texto); }
.fv-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.fv-mini div { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--borde); display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.fv-mini small { font-size: 11px; color: var(--suave); font-weight: 600; }
.fv-mini b { font-size: 17px; font-variant-numeric: tabular-nums; }
.fv-mini .ahorro b { color: var(--ok-t); }
.fv-ver { margin-top: 10px; width: 100%; justify-content: center; display: inline-flex; gap: 6px; align-items: center; }
.fv-nota { margin-top: 10px; }
/* instalador: grupos tecnicos */
.fv-inst { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.fv-grupo { border: 1px solid var(--borde); border-radius: 12px; background: var(--panel); }
.fv-grupo > summary { list-style: none; cursor: pointer; padding: 10px 12px; display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 13px; }
.fv-grupo > summary::-webkit-details-marker { display: none; }
.fv-grupo > summary em { margin-left: auto; font-style: normal; font-weight: 500; font-size: 12px; color: var(--suave); font-variant-numeric: tabular-nums; text-align: right; }
.fv-grupo[open] > summary { border-bottom: 1px solid var(--borde); }
.fv-grupo-c { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.fv-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.fv-campo { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--suave); min-width: 0; }
.fv-campo.ancho { grid-column: 1 / -1; }
.fv-campo input, .fv-campo select, .fv-campo textarea { border: 1px solid var(--borde); border-radius: 8px; padding: 7px 9px; font: inherit; font-weight: 500; color: var(--texto); background: var(--panel); min-width: 0; width: 100%; }
.fv-campo small { font-weight: 400; font-size: 11px; color: var(--suave); }
.fv-check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--texto); }
.fv-desl { display: grid; grid-template-columns: 128px minmax(0, 1fr) 56px; gap: 10px; align-items: center; font-size: 12.5px; }
.fv-desl input { width: 100%; accent-color: var(--primario-2); }
.fv-desl output { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; }
.fv-orient { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; }
.fv-brujula { width: 96px; height: 96px; }
.fv-medidor { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fv-medidor b { font-size: 22px; font-variant-numeric: tabular-nums; }
.fv-barra-o { height: 8px; border-radius: 8px; background: var(--fondo); overflow: hidden; display: block; }
.fv-barra-o i { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, var(--fv-sol), var(--primario-2)); transition: width .2s; }
.fv-ads { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.fv-ad { display: grid; grid-template-columns: minmax(0, 1fr) 110px 24px; gap: 6px; width: 100%; }
.fv-ad input { border: 1px solid var(--borde); border-radius: 8px; padding: 6px 9px; font: inherit; background: var(--panel); color: var(--texto); min-width: 0; }
.fv-quitar { border: 0; background: none; color: var(--suave); cursor: pointer; font-size: 17px; line-height: 1; }
.fv-cot { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--fondo); font-size: 12px; }
.fv-cot small { font-weight: 650; color: var(--suave); }
.fv-cot b { font-size: 17px; font-variant-numeric: tabular-nums; } .fv-cot b i { font-style: normal; font-size: 12px; color: var(--suave); }
.fv-cot em { font-style: normal; color: var(--av-t); }
.fv-pml textarea { font: 12px var(--f-datos); resize: vertical; }
@media (max-width: 520px) { .fv-g { grid-template-columns: minmax(0, 1fr); } .fv-desl { grid-template-columns: 96px minmax(0, 1fr) 50px; } }

/* aviso de calculo lento */
.su-fv-pend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; max-width: 920px; margin: 0 auto 10px; padding: 9px 12px; border-radius: 10px; background: var(--fondo); border: 1px solid var(--borde); font-size: 12.5px; }
.su-fv-pend[hidden] { display: none; }
.su-fv-pend.pend { background: var(--av-f); border-color: transparent; color: var(--av-t); }
.su-fv-pend > span:first-child { flex: 1 1 260px; }
.su-fv-pend .botones { display: flex; align-items: center; gap: 10px; }

/* ---------- recibo: insignias, franja, marcas, balance e historial (papel claro) */
.recibo .r-der { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.recibo .r-incl { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; align-items: center; font-size: 10.5px; color: #5d6b65; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.recibo .r-chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 650; text-transform: none; letter-spacing: 0; white-space: nowrap; }
.recibo .r-chip svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.recibo .r-chip.eq { background: #e7eefc; color: #2a55ad; } .recibo .r-chip.sol { background: #fdf3dc; color: #8a5a00; }
.recibo .r-chip.est { background: #eee9fb; color: #6b4fbb; } .recibo .r-chip.nada { background: #f1f3f2; color: #5d6b65; }
/* Identificación solar aprobada: el sistema pertenece al resultado visible y también a su PDF. */
.recibo .r-fv-sistema { margin-top: 16px; border: 1px solid #edd4a1; border-radius: 12px; background: linear-gradient(110deg, #fdf3dc, #fff9ed); overflow: hidden; container: recibo-solar / inline-size; break-inside: avoid; }
.recibo .r-fv-identidad { display: flex; align-items: center; gap: 12px; padding: 13px 15px; }
.recibo .r-fv-icono { width: 44px; height: 44px; flex: none; display: grid; place-items: center; background: #f6e2b2; border: 1px solid #eccc87; border-radius: 12px; color: #8a5a00; }
.recibo .r-fv-icono svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.recibo .r-fv-identidad h3 { font-size: 21px; line-height: 1.2; letter-spacing: -.025em; margin: 0; color: #735010; font-weight: 750; }
.recibo .r-fv-identidad p { font-size: 11px; line-height: 1.5; color: #88672d; margin: 3px 0 0; }
.recibo .r-fv-marca { margin-left: auto; width: 21px; height: 21px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #efdcaf; color: #795715; font-size: 12px; }
.recibo .r-fv-cifras { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid #edddb9; background: #ffffff70; margin: 0; padding: 11px 0; }
.recibo .r-fv-cifras > div { min-width: 0; padding: 0 14px; border-right: 1px solid #e9dbbd; }
.recibo .r-fv-cifras > div:last-child { border: 0; }
.recibo .r-fv-cifras dt { font-size: 10px; line-height: 1.4; color: #826b3f; margin-bottom: 4px; }
.recibo .r-fv-cifras dd { margin: 0; color: #59441f; font-size: 17px; line-height: 1.4; font-weight: 750; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.recibo .r-fv-cifras dd small { font-size: 11px; font-weight: 650; white-space: nowrap; }
.recibo .r-fv-cifras p { font-size: 9px; line-height: 1.4; color: #826b3f; margin: 3px 0 0; }
.recibo .r-fv-sin-dato { font-size: 12px; font-weight: 600; }
@container recibo-solar (max-width: 560px) {
  .recibo .r-fv-cifras { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .recibo .r-fv-cifras > div:nth-child(2) { border: 0; }
  .recibo .r-fv-identidad { padding: 12px; gap: 10px; }
  .recibo .r-fv-identidad h3 { font-size: 19px; }
  .recibo .r-fv-icono { width: 39px; height: 39px; }
  .recibo .r-fv-marca { display: none; }
}
@media print {
  #sim-print .r-fv-sistema { break-inside: avoid; }
  #sim-print .r-fv-cifras { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #sim-print .r-fv-cifras > div:nth-child(2) { border-right: 1px solid #e9dbbd; }
}
.recibo .r-antes { margin-top: 8px; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid #cfe7da; }
.recibo .r-antes .i { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fdf3dc; color: #8a5a00; }
.recibo .r-antes .i svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.recibo .r-antes span { font-size: 11.5px; color: #4a5a53; }
.recibo .r-antes span s { color: #8a948f; }
.recibo .r-antes > b { font-size: 13px; color: #1f7a4a; }
.recibo .r-antes-fv .i { grid-row: span 3; }
.recibo .r-antes-fv > b { font-size: 14px; line-height: 1.45; }
.recibo .r-antes-fv > small { grid-column: 2; font-size: 10.5px; line-height: 1.5; color: #66766d; }
.recibo .r-antes.sube { border-color: #f1c9c5; } .recibo .r-antes.sube > b { color: #b3261e; } .recibo .r-antes.sube .i { background: #e7eefc; color: #2a55ad; }
.recibo .r-sol { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: #fdf3dc; color: #8a5a00; font-size: 10.5px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.recibo .r-sol svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.recibo .r-fv-mod { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 6px; font-size: 11.5px; color: #3d4a44; }
.recibo .r-fv-mod b { font-size: 10.5px; letter-spacing: .06em; padding: 2px 8px; border-radius: 6px; background: #00845a; color: #fff; }
.recibo .r-fv-mod.auto b { background: #8a5a00; }
.recibo .fv-fuente { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.recibo .fv-barra-f { display: flex; height: 22px; border-radius: 6px; overflow: hidden; background: #eef1f0; margin-top: 4px; }
.recibo .fv-barra-f i { display: grid; place-items: center; color: #fff; font-style: normal; font-size: 10.5px; font-weight: 700; white-space: nowrap; overflow: hidden; }
.b-auto { background: #00845a; } .b-red { background: #9aa7a1; } .b-iny { background: #e0a526; }
.recibo .fv-ley, .fv-hoja .fv-ley, .fv-ley { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11px; color: #4a5a53; }
.fv-ley span { display: inline-flex; align-items: center; gap: 5px; }
.fv-ley i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.fv-ley i.fv-linea { height: 2px; background: #c9483b; border-radius: 0; } .fv-ley i.fv-linea.max { background: #0a6b4c; }
.recibo .fv-banco { color: #4a3a00; }
.recibo .r-hist .barra.capas { position: relative; display: block; }
.recibo .r-hist .barra.capas i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 3px 3px 0 0; }
.recibo .r-hist .barra.capas i.b-base { background: #cfe4da; } .recibo .r-hist .barra.capas.sel i.b-base { background: #7fbfa5; }
.recibo .r-hist .barra.capas i.b-eq { background: #9db6ee; } .recibo .r-hist .barra.capas.sel i.b-eq { background: #3b6fd8; }
.recibo .r-hist .barra.capas i.b-fact { left: 30%; right: 30%; background: #00684a; border-radius: 2px 2px 0 0; }
.recibo .r-hist-ley { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 10.5px; color: #4a5a53; margin-top: 6px; }
.recibo .r-hist-ley span { display: inline-flex; align-items: center; gap: 5px; }
.recibo .r-hist-ley i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.recibo .r-hist-ley i.b-base { background: #7fbfa5; } .recibo .r-hist-ley i.b-eq { background: #3b6fd8; } .recibo .r-hist-ley i.b-fact { background: #00684a; }

/* ---------- reporte de equipos (debajo del recibo) */
body.su-en-tiempo #su-salida-equipos { display: none !important; }
.rep-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rep-kpis div { border-radius: 12px; padding: 10px 12px; background: var(--fondo); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rep-kpis div.eq { background: var(--fv-eq-f); } .rep-kpis div.eq b { color: var(--fv-eq-t); }
.rep-kpis small { font-size: 11px; color: var(--suave); font-weight: 650; }
.rep-kpis b { font-size: 19px; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; }
.rep-kpis em { font-style: normal; font-size: 11px; color: var(--suave); }
@media (max-width: 760px) { .rep-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.eq-resumen-tot .rep-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rep-kpis b.largo { font-size: 13.5px; line-height: 1.3; white-space: normal; overflow-wrap: anywhere; }
.eq-pista.doble { display: grid; gap: 3px; height: auto; background: none; }
.eq-pista.doble i { height: 5px; border-radius: 3px; background: #00845a; }
.eq-pista.doble i.k { background: #9db6ee; }
.eq-rep-ley { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11px; color: var(--suave); margin: 6px 0 0 10px; }
.eq-rep-ley span { display: inline-flex; align-items: center; gap: 5px; }
.eq-rep-ley i { width: 12px; height: 6px; border-radius: 3px; display: inline-block; background: #00845a; }
.eq-rep-ley i.k { background: #9db6ee; }
.eq-rep-ley i.rayas { height: 10px; background: repeating-linear-gradient(45deg, #d99a1c 0 2px, #fdf3dc 2px 5px); }
.eq-rep-ley i.linea { height: 3px; background: #00684a; }
.eq-anual { margin-top: 16px; }
.eq-anual:empty { display: none; }
.eq-anual h3 { font-size: 13px; color: var(--primario-2); margin: 0 0 6px; }
.eq-anual-g svg { width: 100%; height: auto; display: block; }
.eq-anual-eje { stroke: var(--borde); } .eq-anual-t { font-size: 10px; fill: var(--suave); font-family: var(--f-ui); font-variant-numeric: tabular-nums; }
.fv-col { fill: transparent; } .fv-col:hover { fill: rgba(0, 132, 90, .06); }

/* ---------- hoja "Sistema FV" (papel claro) */
.fv-hoja { display: flex; flex-direction: column; gap: 18px; }
.fv-h-tit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.fv-h-tit h3 { font-size: 15px; color: #087f93; }
.fv-h-tit .nota { color: #5d6b65; }
.fv-hoja .nota { color: #5d6b65; }
.fv-seg { display: inline-flex; background: #f1f3f2; border: 1px solid #dfe5e2; border-radius: 999px; padding: 3px; gap: 2px; margin-left: auto; }
.fv-seg button { border: 0; background: transparent; color: #5d6b65; font: inherit; font-weight: 600; font-size: 11.5px; padding: 4px 11px; border-radius: 999px; cursor: pointer; }
.fv-seg button[aria-pressed="true"] { background: #0e2236; color: #fff; }
.fv-seg button:disabled { opacity: .45; cursor: not-allowed; }
.fv-hoja .fv-pend { background: #fbf0d9; color: #7a4d00; }
.fv-hoja .fv-aviso { background: #fbf0d9; color: #7a4d00; }
.fv-resp { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .fv-resp { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fv-rp { border-radius: 14px; padding: 14px; background: #f1f3f2; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fv-rp small { font-size: 11.5px; color: #4a5a53; font-weight: 650; }
.fv-rp b { font-size: 23px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; color: #1d1d1b; }
.fv-rp b span { font-size: 13px; font-weight: 600; }
.fv-rp em { font-style: normal; font-size: 11.5px; color: #5d6b65; }
.fv-rp .c { text-align: center; }
.fv-rp.hoy { background: linear-gradient(135deg, #0e2236, #173a54); }
.fv-rp.hoy small, .fv-rp.hoy em { color: #e8f0f7; } .fv-rp.hoy b { color: #fff; }
.fv-gauge { width: 100%; max-width: 140px; height: auto; align-self: center; }
.fv-graf svg { width: 100%; height: auto; display: block; overflow: visible; }
.fv-gen { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 16px; align-items: center; }
@media (max-width: 760px) { .fv-gen { grid-template-columns: minmax(0, 1fr); } }
.fv-gen-res { display: flex; flex-direction: column; gap: 10px; }
.fv-gen-res .k { padding: 10px 12px; border-radius: 12px; background: #f1f3f2; }
.fv-gen-res .k small { display: block; font-size: 11px; color: #5d6b65; font-weight: 650; }
.fv-gen-res .k b { display: block; font-size: 19px; font-variant-numeric: tabular-nums; color: #1d1d1b; }
.fv-gen-res .k em { display: block; font-style: normal; font-size: 11px; color: #5d6b65; }
.fv-gen-res .anillo { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; }
.fv-gen-res .anillo svg { width: 64px; height: 64px; }
/* escena "¿Cómo te ahorra luz?" (fv_guia.js): imagen por lugar y estado, cifras con línea guía y punto con estela */
.fvx { display: flex; flex-direction: column; gap: 10px; }
.fvx-sel { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 999px; background: #f1f3f2; border: 1px solid #e3e8e5; align-self: flex-start; }
.fvx-sel button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; border: 0; background: transparent; color: #5d6b65; font: inherit; font-size: 12.5px; font-weight: 650; padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.fvx-sel button svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fvx-sel button span { white-space: nowrap; }
.fvx-sel button[aria-pressed="true"] { background: #0e2236; color: #fff; }
@media (max-width: 520px) {
  .fvx-sel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; box-sizing: border-box; border-radius: 18px; }
  .fvx-sel button { flex-direction: column; gap: 4px; min-height: 54px; padding: 6px 4px; border-radius: 14px; font-size: 12px; }
}
.fvx-esc { position: relative; border-radius: 14px; overflow: hidden; background: #16171a; aspect-ratio: 2000 / 1116; }
.fvx-esc svg { display: block; width: 100%; height: 100%; }
.fvx-k { opacity: 0; transition: opacity .6s ease; }
.fvx .fvx-dia, .fvx[data-e="nublado"] .fvx-nublado, .fvx[data-e="noche"] .fvx-noche, .fvx[data-e="apagon"] .fvx-apagon { opacity: 1; }
.fvx-tubo { fill: none; stroke: #3a3c40; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.fvx-extra { fill: none; stroke: var(--c, transparent); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .5s; filter: drop-shadow(0 0 6px var(--c, transparent)); }
.fvx-extra.on { opacity: .6; }
.fvx-guia { stroke: #f4f5f7; stroke-opacity: .55; stroke-width: 2; }
.fvx-nodo { fill: #f4f5f7; opacity: .8; }
.fvx-n { font: 600 46px "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; fill: #f4f5f7; transition: fill .6s; }
.fvx-c { font: 500 28px "Segoe UI", system-ui, sans-serif; fill: #a3a8ae; letter-spacing: .04em; transition: fill .6s; }
.fvx-ico path { stroke: #a3a8ae; }
.fvx-ef0 { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 8; }
.fvx-ef { fill: none; stroke: #ffcf2e; stroke-width: 8; stroke-linecap: round; transition: stroke-dasharray .8s ease; }
.fvx[data-e="dia"] .fvx-guia { stroke: #2b2d31; }
.fvx[data-e="dia"] .fvx-nodo { fill: #2b2d31; }
.fvx[data-e="dia"] .fvx-n { fill: #232427; }
.fvx[data-e="dia"] .fvx-c { fill: #6c7077; }
.fvx[data-e="dia"] .fvx-ico path { stroke: #6c7077; }
.fvx[data-e="dia"] .fvx-ef0 { stroke: rgba(35, 36, 39, .14); }
.fvx[data-e="dia"] .fvx-ef { stroke: #e0a800; }
.fvx-ley { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 11.5px; color: #5d6b65; }
.fvx-ley span { display: inline-flex; align-items: center; gap: 6px; }
.fvx-ley i { width: 18px; height: 3px; border-radius: 3px; background: #ffcf2e; }
.fvx-ley i.c { background: #8fb8ff; }
.fvx-txt { padding: 10px 14px; border-radius: 12px; background: #f1f3f2; font-size: 12.5px; color: #4a5a53; }
.fvx-txt b { display: block; font-size: 13.5px; color: #1d1d1b; margin-bottom: 2px; }
.fvx-txt p { margin: 0; }
@media (prefers-reduced-motion: reduce) { .fvx-k, .fvx-extra { transition: none; } .fv-barra-o i, .fv-sw, .fv-sw::after { transition: none; } }
.fv-guia { display: flex; flex-direction: column; gap: 8px; }
.fv-guia details { border: 1px solid #e3e8e5; border-radius: 12px; background: #fff; }
.fv-guia summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 34px minmax(0, 1fr) 14px; gap: 10px; align-items: center; padding: 10px 12px; font-weight: 700; font-size: 13px; color: #1d1d1b; }
.fv-guia summary::-webkit-details-marker { display: none; }
.fv-guia summary .i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #eaf7fa; color: #087f93; }
.fv-guia summary .i svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fv-guia summary::after { content: "+"; font-size: 18px; color: #5d6b65; }
.fv-guia details[open] summary::after { content: "−"; }
.fv-guia ul { margin: 0; padding: 0 14px 14px 56px; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: #33403a; }
.fv-guia li::marker { color: #0e2236; }
.fv-fuentes { font-size: 11.5px; color: #5d6b65; display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 10px 0 0; }
.fv-fuentes a { color: #087f93; }
/* instalador: subhojas, precio por Wp, cotizacion A4 y tecnica */
.fv-sub { display: inline-flex; background: #f1f3f2; border-radius: 10px; padding: 3px; gap: 2px; }
.fv-sub button { border: 0; background: transparent; padding: 6px 14px; border-radius: 8px; font: inherit; font-weight: 650; font-size: 12.5px; color: #5d6b65; cursor: pointer; }
.fv-sub button[aria-pressed="true"] { background: #fff; color: #087f93; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.fv-pwp { border-radius: 12px; padding: 12px 14px; border: 1px solid #e3e8e5; display: flex; flex-direction: column; gap: 6px; background: #fff; }
.fv-pwp .fila { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fv-pwp b { font-size: 22px; font-variant-numeric: tabular-nums; color: #1d1d1b; }
.fv-pwp em { font-style: normal; font-size: 11.5px; color: #4a5a53; }
.fv-pwp.arriba em, .fv-pwp.abajo em { color: #9a6200; }
.fv-pwp .solo { font-size: 10.5px; color: #6b4fbb; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.fv-pwp .rango { position: relative; height: 8px; border-radius: 8px; background: linear-gradient(90deg, #f6d9d5 0 20%, #cfe8dc 20% 80%, #f6d9d5 80%); }
.fv-pwp .rango i { position: absolute; top: -4px; width: 4px; height: 16px; border-radius: 2px; background: #1d1d1b; transform: translateX(-2px); }
.fv-a4 { border: 1px solid #e3e8e5; border-radius: 6px; padding: 26px 28px; display: flex; flex-direction: column; gap: 16px; background: #fff; box-shadow: 0 2px 10px rgba(16,32,28,.06); color: #1d1d1b; }
.a4-cab { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid #0e2236; padding-bottom: 12px; }
.a4-emp { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; align-items: center; }
.a4-emp small, .a4-folio small { display: block; color: #5d6b65; font-size: 11px; line-height: 1.4; }
.a4-folio { text-align: right; } .a4-folio h3 { font-size: 20px; color: #1d1d1b; }
.a4-logo, .emp-logo { width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center; background: #0e2236; color: #fff; font-weight: 800; font-size: 18px; overflow: hidden; flex: none; }
.a4-logo img, .emp-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.a4-par { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 620px) { .a4-par { grid-template-columns: minmax(0, 1fr); } .a4-folio { text-align: left; } }
.a4-par fieldset { border: 1px solid #e3e8e5; border-radius: 10px; padding: 10px 12px; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; min-width: 0; }
.a4-par legend { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #087f93; padding: 0 4px; }
.a4-par label { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: #5d6b65; font-weight: 600; min-width: 0; }
.a4-par label.ancho { grid-column: 1 / -1; }
.a4-par input { border: 1px solid #dfe5e2; border-radius: 7px; padding: 6px 8px; font: inherit; font-size: 12.5px; color: #1d1d1b; background: #fff; min-width: 0; width: 100%; }
.a4-par .priv { grid-column: 1 / -1; font-size: 11px; color: #1f7a4a; display: flex; gap: 6px; align-items: center; }
.a4-lugar { grid-column: 1 / -1; font-size: 11.5px; color: #4a5a53; }
.fv-tabla { width: 100%; border-collapse: collapse; font-size: 12px; }
.fv-tabla th { text-align: left; color: #5d6b65; font-weight: 650; border-bottom: 1px solid #e3e8e5; padding: 5px 6px; background: none; }
.fv-tabla td { padding: 5px 6px; border-bottom: 1px solid #f1f3f2; font-variant-numeric: tabular-nums; color: #1d1d1b; }
.fv-tabla td.n, .fv-tabla th.n { text-align: right; }
.fv-sug { border: 1px dashed #cfd8d4; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.fv-sug-cab { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; font-weight: 700; color: #1d1d1b; }
.fv-sug-cab .nota { font-weight: 500; }
.fv-hoja .fv-eti { color: #5d6b65; margin: 2px 0 6px; }
.fv-ad-tabla { width: 100%; border-collapse: collapse; font-size: 12px; }
.fv-ad-tabla th { text-align: left; color: #5d6b65; font-weight: 650; padding: 4px 6px; border-bottom: 1px solid #e3e8e5; background: none; }
.fv-ad-tabla td { padding: 4px 6px; border-bottom: 1px solid #f1f3f2; vertical-align: middle; }
.fv-ad-tabla input, .fv-ad-tabla select { border: 1px solid #dfe5e2; border-radius: 7px; padding: 5px 7px; font: inherit; font-size: 12px; color: #1d1d1b; background: #fff; width: 100%; min-width: 64px; }
.fv-ad-tabla td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fv-ad-tabla td.acc { white-space: nowrap; }
.fv-estrella { border: 0; background: none; cursor: pointer; font-size: 17px; line-height: 1; color: #c9d3cf; padding: 2px; }
.fv-estrella[aria-pressed="true"] { color: #f5a623; }
.fv-sug-f { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; font-size: 12px; padding: 4px 0; }
.fv-sug-f .por { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 2px; }
.fv-sug-f .por span { font-size: 10.5px; background: #eaf7fa; color: #087f93; border-radius: 6px; padding: 0 6px; }
.fv-bloq { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px; border-radius: 10px; background: #f6f3fd; color: #4a3a87; font-size: 12px; }
.fv-bloq .i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #eee9fb; }
.fv-acc { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.a4-tot { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 620px) { .a4-tot { grid-template-columns: minmax(0, 1fr); } }
.a4-caja { border-radius: 12px; background: #f1f3f2; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 12.5px; }
.a4-caja b { font-variant-numeric: tabular-nums; text-align: right; }
.a4-caja .g { font-size: 18px; font-weight: 800; border-top: 2px solid #0e2236; padding-top: 6px; }
.a4-caja small { grid-column: 1 / -1; font-size: 11px; color: #5d6b65; }
.a4-pagos { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.a4-pagos div { border: 1px solid #e3e8e5; border-radius: 10px; padding: 8px 10px; font-size: 11.5px; color: #33403a; }
.a4-pagos div b { display: block; font-size: 12px; color: #1d1d1b; }
.a4-pie { font-size: 11px; color: #5d6b65; display: flex; flex-direction: column; gap: 4px; }
.fv-tec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 760px) { .fv-tec { grid-template-columns: minmax(0, 1fr); } }
.fv-tec .ancho, .fv-tec-kpis { grid-column: 1 / -1; }
.fv-tec-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.fv-tec-kpis span { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 10px; background: #f1f3f2; }
.fv-tec-kpis span.fv-tec-efi { background: linear-gradient(135deg, #0e2236, #135468); color: #fff; }
.fv-tec-kpis span.fv-tec-efi small, .fv-tec-kpis span.fv-tec-efi em { color: #cfe7ee; }
.fv-tec-kpis small { font-size: 10.5px; font-weight: 700; color: #5d6b65; text-transform: uppercase; letter-spacing: .04em; }
.fv-tec-kpis b { font-variant-numeric: tabular-nums; color: #1d1d1b; }
.fv-tec-kpis em { font-style: normal; font-size: 11px; color: #5d6b65; }
.fv-caja { border: 1px solid #e3e8e5; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fv-caja h4 { margin: 0; font-size: 13px; color: #087f93; display: flex; align-items: center; gap: 6px; }
.fv-mapa { display: grid; grid-template-columns: 30px repeat(24, minmax(0, 1fr)); gap: 2px; font-size: 9.5px; color: #6b7a73; }
.fv-mapa i { height: 12px; border-radius: 2px; background: rgba(224, 165, 38, var(--a)); outline: 1px solid #f1f3f2; }
.fv-mapa b { font-weight: 400; text-align: center; }
.fv-orm { display: grid; grid-template-columns: 30px repeat(var(--cols, 24), minmax(0, 1fr)); gap: 1px; font-size: 9.5px; color: #6b7a73; }
.fv-orm i { height: 11px; background: rgba(23, 179, 200, var(--a)); position: relative; }
.fv-orm i.opt { outline: 2px solid #1d1d1b; z-index: 1; }
.fv-orm i.act { outline: 2px solid #f5a623; z-index: 2; }
.fv-orm b { font-weight: 400; text-align: center; }
.fv-viento { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.fv-viento .vel { font-size: 26px; font-weight: 750; color: #1d1d1b; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fv-viento .vel small { font-size: 13px; }
.fv-regla { border-radius: 12px; padding: 12px 14px; background: #eaf7fa; color: #0a4a38; font-size: 12.5px; display: flex; gap: 10px; }
.fv-regla .fv-ic { width: 22px; height: 22px; }
.fv-acum { fill: none; stroke-width: 2.2; } .fv-acum.min { stroke: #0e2236; } .fv-acum.max { stroke: #173a54; stroke-dasharray: 5 4; }
.fv-tip { position: fixed; z-index: 70; pointer-events: none; background: #16201c; color: #f3f5f4; border-radius: 10px; padding: 8px 10px; font-size: 11.5px; line-height: 1.5; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: 260px; }
.fv-tip > b { display: block; font-size: 12px; margin-bottom: 2px; }
.fv-tip span { display: flex; justify-content: space-between; gap: 14px; }
.fv-tip span i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }

/* ---------- "Mi empresa" (ventana) */
.emp-modal { position: fixed; inset: 0; z-index: 80; background: rgba(10, 20, 16, .45); display: flex; justify-content: center; align-items: flex-start; overflow-y: auto;
  padding: max(24px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); }
.emp-modal[hidden] { display: none; }
.emp-caja { width: min(760px, 100%); background: var(--panel); color: var(--texto); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.35); display: flex; flex-direction: column; }
.emp-cab { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--borde); }
.emp-cab h2 { font-size: 17px; } .emp-cab small { display: block; color: var(--suave); font-size: 12px; }
.emp-cab .btn { margin-left: auto; }
.emp-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--acento); color: var(--primario-2); flex: none; }
.emp-ico svg, .emp-cuerpo h3 svg, .emp-pie svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.emp-cuerpo { padding: 18px 20px; display: flex; flex-direction: column; gap: 18px; }
.emp-cuerpo section { display: flex; flex-direction: column; gap: 10px; }
.emp-cuerpo h3 { font-size: 13px; color: var(--primario-2); display: flex; align-items: center; gap: 8px; margin: 0; }
.emp-logo-fila { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.emp-logo-fila small { color: var(--suave); font-size: 11.5px; }
.emp-pago { border: 1px solid var(--borde); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.emp-pago > label:not(.fv-campo) { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 13px; cursor: pointer; }
.emp-pago > label > input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primario-2); }
.emp-pago > small { color: var(--suave); font-size: 11.5px; }
.emp-estilo { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--borde); border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 650; }
.emp-nota-estilo { color: var(--suave); font-size: 11.5px; }
.emp-cta { display: grid; grid-template-columns: 1fr 1fr 1.3fr 24px; gap: 8px; align-items: end; }
@media (max-width: 560px) { .emp-cta { grid-template-columns: minmax(0, 1fr); } }
.emp-pie { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--borde); flex-wrap: wrap; font-size: 12px; color: var(--suave); }
.emp-pie > span { flex: 1; display: flex; gap: 6px; align-items: center; min-width: 200px; }
body.emp-abierta { overflow: hidden; }
.emp-err, .fv-campo .emp-err { color: var(--er-t); font-size: 11px; font-weight: 500; }
.emp-err:empty { display: none; }
.emp-cuerpo [aria-invalid] { border-color: var(--er-t); }
.emp-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.emp-subir:has(:focus-visible) { outline: 2px solid var(--primario-2); outline-offset: 2px; }
.emp-zona { display: contents; }
.emp-nota { font-weight: 400; font-size: 11.5px; }
.emp-garantias { border: 0; padding: 0; margin: 0; }
.emp-garantias legend { padding: 0; margin-bottom: 4px; }
.emp-garantias > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.emp-garantias label { display: flex; flex-direction: column; gap: 4px; font-weight: 500; }
@media (max-width: 560px) { .emp-garantias > div { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.emp-revisar { color: var(--er-t); font-size: 12px; font-weight: 650; }
.emp-revisar:empty { display: none; }
.a4-confianza { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 3px; font-size: 11px; }
.a4-confianza a { color: #1f7a4a; font-weight: 650; text-decoration: none; }
.a4-sello { color: #0e2236; font-weight: 650; border: 1px solid #c9d3ce; border-radius: 99px; padding: 0 7px; }

/* ---------- descuento de la cotización por escenario */
.fv-descuento { margin: 18px 0; padding: 18px; border: 1px solid var(--borde); border-radius: 14px; background: var(--panel); }
.fv-desc-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.fv-desc-cab h4 { font-size: 14px; margin: 0 0 5px; color: var(--texto); }
.fv-desc-cab p, .fv-desc-ayuda { margin: 0; font-size: 12px; line-height: 1.5; color: var(--suave); }
.fv-desc-estado { font-size: 11px; padding: 3px 9px; border-radius: 20px; background: var(--acento); color: var(--primario-2); }
.fv-desc-controles { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.fv-desc-rapidos { display: flex; gap: 8px; padding-bottom: 1px; }
.fv-desc-rapidos button { border: 1px solid var(--borde); border-radius: 9px; padding: 11px 15px; background: var(--panel); color: var(--texto); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; min-height: 42px; }
.fv-desc-rapidos button:hover { border-color: var(--primario-2); }
.fv-desc-rapidos button[aria-pressed="true"] { border-color: var(--primario-2); background: var(--primario-2); color: white; }
.fv-descuento :is(button,input,select):focus-visible { outline: 2px solid var(--primario-2); outline-offset: 3px; }
.fv-desc-manual { display: grid; grid-template-columns: auto minmax(160px, 1fr); gap: 12px; flex: 1; min-width: 240px; align-items: end; }
.fv-desc-unidad { display: inline-flex; background: #f1f3f2; border: 1px solid #cbd8d0; border-radius: 12px; padding: 3px; gap: 2px; height: 46px; box-sizing: border-box; }
.fv-desc-unidad button { border: 0; background: transparent; color: #5d6b65; font: inherit; font-weight: 700; font-size: 13px; min-width: 54px; border-radius: 9px; cursor: pointer; transition: background .15s, color .15s; }
.fv-desc-unidad button[aria-checked="true"] { background: #0e2236; color: #fff; box-shadow: 0 2px 6px rgba(14, 34, 54, .25); }
.fv-desc-unidad button:focus-visible { outline: 2px solid #17b3c8; outline-offset: 1px; }
.fv-desc-caja { display: flex; align-items: center; border: 1px solid #cbd8d0; border-radius: 12px; background: #fff; height: 46px; padding: 0 12px; gap: 6px; box-sizing: border-box; }
.fv-desc-caja:focus-within { border-color: #17b3c8; box-shadow: 0 0 0 3px rgba(23, 179, 200, .18); }
.fv-desc-caja:has(input[aria-invalid="true"]) { border-color: #b63732; }
.fv-desc-caja i { font-style: normal; color: #5d6b65; font-weight: 600; }
.fv-desc-caja b { color: #5d6b65; font-size: 12px; font-weight: 700; }
.fv-editor .fv-desc-manual .fv-desc-caja input { border: 0; outline: 0; background: transparent; padding: 0; height: 100%; flex: 1; min-width: 0; min-height: 0; font: inherit; font-size: 16px; font-weight: 650; color: #23382b; font-variant-numeric: tabular-nums; box-shadow: none; }
.fv-desc-fix { display: block; color: #5d6b65; font-size: 11.5px; margin-top: -4px; }
@media (max-width: 560px) { .fv-desc-manual { grid-template-columns: minmax(0, 1fr); } .fv-desc-unidad { width: 100%; } .fv-desc-unidad button { flex: 1; } }
.fv-desc-manual label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--suave); min-width: 0; }
.fv-desc-manual :is(input,select) { box-sizing: border-box; width: 100%; min-height: 42px; padding: 9px 10px; border: 1px solid var(--borde); border-radius: 9px; background: var(--panel); color: var(--texto); font: inherit; font-size: 14px; }
.fv-desc-manual input[aria-invalid="true"] { border-color: #b63732; }
.fv-desc-ayuda { margin-top: 12px; min-height: 18px; }
.fv-desc-ayuda.error { color: #b63732; }
.a4-caja .fv-desc-ahorro { color: var(--primario-2); }
.a4-caja > span > small { display: inline; font-size: 10px; }
@media (max-width: 560px) {
  .fv-descuento { padding: 14px; }
  .fv-desc-cab { flex-wrap: wrap; }
  .fv-desc-controles { gap: 14px; }
  .fv-desc-manual { min-width: 0; width: 100%; flex-basis: 100%; }
  .fv-desc-rapidos { width: 100%; }
  .fv-desc-rapidos button { flex: 1; }
}

/* ---------- impresion de la cotizacion: solo la hoja A4 */
#fv-print { display: none; }
@media print {
  @page { size: A4; margin: 12mm; }
  body.fv-imprimir > *:not(#fv-print) { display: none !important; }
  body.fv-imprimir { background: #fff; }
  body.fv-imprimir #fv-print { display: block; color-scheme: light; }
  #fv-print .fv-a4 { border: 0; box-shadow: none; padding: 0; }
  #fv-print .fv-no-pdf { display: none !important; }
  #fv-print input { border: 0; padding: 0; background: transparent; }
  #fv-print input::placeholder { color: transparent; }
  #fv-print * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #fv-print .fv-resp, #fv-print .a4-tot, #fv-print .fv-tabla tr { break-inside: avoid; }
  /* La cotización cabe en una hoja A4: menos aire entre bloques, respuestas y gráfica más bajas y las formas de
     pago en un solo renglón. Aplica a la copia de «Descargar PDF» (#descargas-print) y a la directa (#fv-print). */
  :is(#fv-print, #descargas-print) .fv-a4 { gap: 9px; font-size: 11px; }
  :is(#fv-print, #descargas-print) .a4-cab { padding-bottom: 8px; }
  :is(#fv-print, #descargas-print) .a4-logo { width: 46px; height: 46px; }
  :is(#fv-print, #descargas-print) .a4-emp { grid-template-columns: 46px minmax(0, 1fr); }
  :is(#fv-print, #descargas-print) .a4-folio h3 { font-size: 18px; }
  :is(#fv-print, #descargas-print) .a4-emp small, :is(#fv-print, #descargas-print) .a4-folio small { font-size: 10px; line-height: 1.35; }
  :is(#fv-print, #descargas-print) .a4-par fieldset { padding: 6px 10px 8px; gap: 4px 8px; }
  :is(#fv-print, #descargas-print) .fv-resp { gap: 8px; }
  :is(#fv-print, #descargas-print) .fv-rp { padding: 9px 11px; border-radius: 10px; gap: 2px; }
  :is(#fv-print, #descargas-print) .fv-rp b { font-size: 18px; }
  :is(#fv-print, #descargas-print) .fv-rp b span { font-size: 11px; }
  :is(#fv-print, #descargas-print) .fv-rp small, :is(#fv-print, #descargas-print) .fv-rp em { font-size: 10px; }
  :is(#fv-print, #descargas-print) .fv-gauge { max-width: 84px; }
  :is(#fv-print, #descargas-print) .fv-tabla { font-size: 10.5px; }
  :is(#fv-print, #descargas-print) .fv-tabla th, :is(#fv-print, #descargas-print) .fv-tabla td { padding: 3px 6px; }
  :is(#fv-print, #descargas-print) .a4-tot { gap: 12px; align-items: center; }
  :is(#fv-print, #descargas-print) .a4-tot .fv-graf svg { max-height: 130px; }
  :is(#fv-print, #descargas-print) .a4-caja { padding: 9px 12px; font-size: 11.5px; gap: 2px 10px; }
  :is(#fv-print, #descargas-print) .a4-caja .g { font-size: 16px; padding-top: 4px; }
  :is(#fv-print, #descargas-print) .fv-eti { margin: 0 0 4px; font-size: 10px; }
  :is(#fv-print, #descargas-print) .a4-pagos { display: flex; gap: 6px; }
  :is(#fv-print, #descargas-print) .a4-pagos div { flex: 1 1 0; min-width: 0; padding: 6px 8px; font-size: 10px; line-height: 1.35; overflow-wrap: anywhere; }
  :is(#fv-print, #descargas-print) .a4-pagos div:first-child { flex-grow: 1.7; }
  :is(#fv-print, #descargas-print) .a4-pagos div b { font-size: 10.5px; }
  :is(#fv-print, #descargas-print) .a4-pie { font-size: 9.5px; gap: 2px; }
  :is(#fv-print, #descargas-print) .a4-pagos, :is(#fv-print, #descargas-print) .a4-pie, :is(#fv-print, #descargas-print) .fv-resp,
  :is(#fv-print, #descargas-print) .a4-tot { break-inside: avoid; }
}
/* Cotización compacta y edición provisional (pantalla; el documento conserva el detalle). */
.fv-cot-resumen { margin: 18px 0; border: 1px solid #dce5df; border-radius: 14px; overflow: hidden; }
.fv-cot-resumen > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 16px; }
.fv-cot-resumen > div + div { border-top: 1px solid #e5ece7; }
.fv-cot-resumen small { display: block; color: #68786e; margin-top: 4px; }
.fv-cot-resumen .error { color: #ae302b; }
body.fv-editando { overflow: hidden; }
dialog.fv-editor { width: min(680px, calc(100vw - 32px)); max-width: none; max-height: min(90dvh, var(--fv-editor-alto, 90dvh)); padding: 0; border: 1px solid #dce5df; border-radius: 20px; color: #23382b; background: #fff; box-shadow: 0 24px 90px #16302540; }
.fv-editor::backdrop { background: #14291f80; }
.fv-ed-caja { display: flex; flex-direction: column; max-height: min(90dvh, var(--fv-editor-alto, 90dvh)); min-height: 0; }
.fv-ed-caja > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid #e5ece7; }
.fv-ed-caja h2 { margin: 3px 0 0; font-size: 23px; }
.fv-ed-caja small, .fv-ed-cuerpo p { color: #68786e; }
.fv-ed-cuerpo { padding: 18px 24px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.fv-ed-lista { display: grid; gap: 16px; margin-bottom: 16px; }
.fv-ed-concepto { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 16px; border: 1px solid #dce5df; border-radius: 14px; min-width: 0; }
.fv-ed-concepto legend { font-size: 13px; font-weight: 700; padding: 0 5px; }
.fv-ed-concepto label, .fv-editor .fv-desc-manual label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; min-width: 0; }
.fv-editor input, .fv-editor select { box-sizing: border-box; width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #cbd8d0; border-radius: 9px; font: inherit; color: inherit; background: #fff; }
.fv-ed-ancho { grid-column: 1 / -1; }
.fv-ed-acciones { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fv-ed-acciones > span { display: flex; gap: 6px; }
.fv-editor [aria-pressed=true] { background: #eaf7fa; border-color: #0e2236; color: #087f93; }
.fv-ed-favoritos { margin-top: 22px; }
.fv-ed-favoritos .btn { margin: 0 6px 8px 0; white-space: normal; text-align: left; overflow-wrap: anywhere; }
.fv-ed-caja > footer { flex-shrink: 0; padding: 16px 24px; background: #f5f9f6; border-top: 1px solid #dce5df; }
.fv-ed-previa { font-weight: 650; font-size: 13px; line-height: 1.6; }
#fv-ed-error { font-size: 13px; margin: 6px 0 12px; color: #68786e; }
.fv-ed-botones { display: flex; justify-content: flex-end; gap: 10px; }
.fv-escena-sistema { min-width: 0; }
@media screen and (max-width: 760px) {
  dialog.fv-editor { position: fixed; inset: auto 0 0; top: var(--fv-editor-top, auto); margin: auto 0 0; width: 100%; max-height: var(--fv-editor-alto, 100dvh); border-radius: 22px 22px 0 0; box-sizing: border-box; }
  .fv-ed-caja { max-height: calc(var(--fv-editor-alto, 100dvh) - 12px); }
  .fv-ed-caja > header { padding: 16px; }
  .fv-ed-caja h2 { font-size: 21px; }
  .fv-ed-cuerpo { padding: 14px 16px; }
  .fv-ed-caja > footer { padding: 12px 16px max(12px, env(safe-area-inset-bottom)); }
  .fv-editor input, .fv-editor select { font-size: 16px; }
  .fv-ed-botones .btn { flex: 1; min-height: 44px; }
  .fv-cot-resumen > div { padding: 12px; }
}
@media print { dialog.fv-editor, .fv-cot-resumen, .fv-escena-sistema.fv-no-pdf { display: none !important; } }
.fv-desc-captura { grid-column:1/-1; overflow-wrap:anywhere; }

/* ------------------------------------------------------------ estilo de cotización (estilo_cotizacion.js) en la hoja real
   Paleta: --q1 principal oscuro, --q2 acento, --q3 resalte, --q4 fondo claro. Plantillas: q-clasica, q-ejecutiva, q-tecnica. */
.fv-a4 { --q1: #0E2236; --q2: #17B3C8; --q3: #F5A623; --q4: #E8F7FA; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fv-a4 .a4-cab { border-bottom: 3px solid var(--q2); }
.fv-a4 .a4-emp b, .fv-a4 .a4-folio h3 { color: var(--q1); }
.fv-a4 .a4-logo { background: var(--q1); }
.fv-a4 .a4-par legend, .fv-a4 .fv-eti { color: var(--q1); }
.fv-a4 .fv-tabla th { background: var(--q1); color: #fff; padding: 6px 8px; border: 0; }
.fv-a4 .fv-tabla th:first-child { border-radius: 6px 0 0 0; } .fv-a4 .fv-tabla th:last-child { border-radius: 0 6px 0 0; }
.fv-a4 .fv-rp { background: var(--q4); }
.fv-a4 .fv-rp b { color: var(--q1); }
.fv-a4 .fv-rp.hoy { background: linear-gradient(135deg, var(--q1), color-mix(in srgb, var(--q1) 70%, var(--q2))); }
.fv-a4 .fv-rp.hoy b { color: #fff; }
.fv-a4 .a4-caja { background: var(--q4); }
.fv-a4 .a4-caja .g { border-top-color: var(--q1); color: var(--q1); }
.fv-a4 .a4-pagos div { border-left: 4px solid var(--q2); }
.fv-a4 .a4-pagos div b { color: var(--q1); }
.fv-a4 .a4-graf { display: grid; gap: 6px; }
.fv-a4 .a4-graf > span { font-weight: 700; color: var(--q1); font-size: 12.5px; }
.fv-a4 .a4-graf svg { width: 100%; height: auto; display: block; }
.fv-a4 .qa-ley { font-size: 11px; gap: 14px; } .fv-a4 .qa-ley i { width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }
.fv-a4 .qg-e { font-size: 7.5px; }
.a4-banda-img { display: block; width: 100%; height: 120px; object-fit: cover; object-position: center 60%; border-radius: 10px; }
/* Ejecutiva: portada con imagen y banda de cifras */
.a4-portada { position: relative; min-height: 190px; border-radius: 12px; overflow: hidden; background: var(--q1); color: #fff; display: grid; align-content: end; padding: 22px 24px; }
.a4-portada-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.a4-portada::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, color-mix(in srgb, var(--q1) 25%, transparent), color-mix(in srgb, var(--q1) 92%, transparent) 85%); }
.a4-portada.sin::before { background: radial-gradient(circle at 85% 10%, color-mix(in srgb, var(--q2) 60%, transparent), transparent 55%), linear-gradient(135deg, var(--q1), color-mix(in srgb, var(--q1) 70%, var(--q2))); }
.a4-portada-tit { position: relative; z-index: 2; }
.a4-portada-tit span { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; opacity: .9; }
.a4-portada-tit h2 { font-size: 30px; letter-spacing: -.03em; line-height: 1.05; margin: 4px 0; color: #fff; }
.a4-portada-tit p { font-size: 12px; opacity: .92; margin: 0; }
.a4-banda3 { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 12px; overflow: hidden; background: color-mix(in srgb, var(--q2) 18%, #fff); color: var(--q1); margin-top: -6px; }
.a4-banda3 div { padding: 10px 14px; border-right: 1px solid color-mix(in srgb, var(--q1) 14%, transparent); } .a4-banda3 div:last-child { border: 0; }
.a4-banda3 b { display: block; font-size: 20px; letter-spacing: -.02em; line-height: 1.1; } .a4-banda3 small { font-size: 11px; font-weight: 650; color: #4a5a63; }
.q-ejecutiva .a4-cab { border-bottom-width: 1px; padding-bottom: 8px; }
.q-ejecutiva .a4-folio h3 { font-size: 16px; }
.q-ejecutiva .a4-caja .g { font-size: 20px; }
.q-ejecutiva .fv-resp, .q-tecnica .fv-resp { display: none; }
/* Técnica: ficha en dos columnas */
.a4-ficha { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; align-items: start; }
.a4-ficha-img { grid-column: 1 / -1; width: 100%; height: 90px; object-fit: cover; border-radius: 8px; }
.a4-ficha .fv-eti { margin: 0 0 4px; color: var(--q2); filter: brightness(.75); }
.a4-ficha dl { display: grid; grid-template-columns: 1fr auto; margin: 0; font-size: 12px; }
.a4-ficha dt, .a4-ficha dd { padding: 4px 0; border-bottom: 1px dotted #cbd5dd; margin: 0; }
.a4-ficha dt { color: #5b6b78; } .a4-ficha dd { text-align: right; font-weight: 650; color: var(--q1); font-variant-numeric: tabular-nums; }
.q-tecnica .a4-cab { border-bottom: 2px solid var(--q1); }
.q-tecnica .fv-tabla th { background: none; color: #5b6b78; border-bottom: 2px solid var(--q1); }
.q-tecnica .fv-tabla tr:nth-child(even) td { background: color-mix(in srgb, var(--q4) 60%, #fff); }
@media (max-width: 620px) { .a4-ficha { grid-template-columns: minmax(0, 1fr); } .a4-banda3 b { font-size: 16px; } .a4-portada-tit h2 { font-size: 24px; } }
@media print {
  :is(#fv-print, #descargas-print) .a4-portada { min-height: 0; height: 130px; padding: 14px 18px; }
  :is(#fv-print, #descargas-print) .a4-portada-tit h2 { font-size: 22px; }
  :is(#fv-print, #descargas-print) .a4-banda3 div { padding: 6px 10px; } :is(#fv-print, #descargas-print) .a4-banda3 b { font-size: 15px; }
  :is(#fv-print, #descargas-print) .a4-banda-img { height: 70px; }
  :is(#fv-print, #descargas-print) .a4-ficha-img { height: 60px; }
  :is(#fv-print, #descargas-print) .a4-ficha dl { font-size: 10px; } :is(#fv-print, #descargas-print) .a4-ficha dt, :is(#fv-print, #descargas-print) .a4-ficha dd { padding: 2px 0; }
  :is(#fv-print, #descargas-print) .a4-graf svg { max-height: 130px; }
  :is(#fv-print, #descargas-print) .a4-portada, :is(#fv-print, #descargas-print) .a4-banda3, :is(#fv-print, #descargas-print) .a4-ficha { break-inside: avoid; }
}

/* Alerta de límite (CFE o del proyecto) encima del recibo y campo resaltado al llevar al usuario */
.su-limite { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--er-t, #b3261e); background: var(--er-f, #fbe5e3); color: var(--texto); }
.su-limite[hidden] { display: none; }
.su-limite .ic svg { width: 26px; height: 26px; color: var(--er-t, #b3261e); }
.su-limite div { flex: 1; display: grid; gap: 2px; font-size: 13px; } .su-limite b { font-size: 14px; }
.fv-resalta { border-radius: 10px; animation: fv-resalta 1.2s ease-out 2; }
@keyframes fv-resalta { 0% { box-shadow: 0 0 0 0 rgba(179, 38, 30, .55); } 100% { box-shadow: 0 0 0 12px rgba(179, 38, 30, 0); } }
.fv-est-cot:empty { display: none; }
@media (max-width: 560px) { .su-limite { flex-wrap: wrap; } .su-limite .btn { width: 100%; } }

/* Sistema FV Profesional en pestañas (maqueta aprobada maqueta_recorrido_premium.html): un grupo a la vez,
   su resumen como encabezado y la marca «Pro» en cada campo técnico editable. */
.fv-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--borde); margin: 12px 0 0; }
.fv-tabs [role=tab] { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; color: var(--suave); font: inherit; font-weight: 650; font-size: 13px; padding: 0 12px; min-height: 46px; border-bottom: 2.5px solid transparent; white-space: nowrap; cursor: pointer; }
.fv-tabs [role=tab] svg { width: 16px; height: 16px; }
.fv-tabs [role=tab][aria-selected=true] { color: var(--texto); border-bottom-color: var(--marca-cian-texto, #087f93); }
.fv-tabs [role=tab]:focus-visible { outline: 2px solid var(--marca-cian, #17b3c8); outline-offset: -2px; border-radius: 8px; }
.fv-inst .fv-grupo:not([open]) { display: none; }
.fv-inst .fv-grupo { border-top-left-radius: 0; border-top-right-radius: 0; margin-top: 0; }
.fv-inst .fv-grupo > summary { pointer-events: none; cursor: default; }
.fv-inst .fv-grupo > summary::after, .fv-inst .fv-grupo > summary::marker { content: none; }
.fv-pro { display: inline-flex; align-items: center; margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: #efeafb; color: #5b3fb0; font-style: normal; font-size: 10px; font-weight: 750; letter-spacing: .03em; text-transform: uppercase; vertical-align: 1px; line-height: 1.5; }
.fv-pro-ley { margin: 8px 0 10px; font-size: 12px; color: var(--suave); }
.fv-pro-ley .fv-pro { margin: 0 4px 0 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fv-pro { background: #2a2347; color: #c3b2f5; } }
:root[data-theme="dark"] .fv-pro { background: #2a2347; color: #c3b2f5; }
@media print { .fv-tabs, .fv-pro, .fv-pro-ley { display: none !important; } }
.fv-inst .fv-campo { position: relative; }
.fv-inst .fv-campo > .fv-pro { position: absolute; top: 0; right: 0; margin: 0; }
.fv-inst .fv-desl:has(> .fv-pro) { grid-template-columns: 118px auto minmax(0, 1fr) 56px; }
.fv-inst .fv-desl > .fv-pro { margin: 0; }

/* Consumo histórico simulado con paneles (2026-11-04): línea solar de la generación sobre las barras del recibo.
   Las barras se separan con margen (no con gap) para que el centro de cada una coincida con su punto de la línea. */
.recibo .r-hist-graf { position: relative; }
.recibo .r-hist.con-gen .barras { gap: 0; height: 110px; background: repeating-linear-gradient(0deg, transparent 0 21.5px, #e6ece9 21.5px 22px); }
.recibo .r-hist.con-gen .barra.capas { margin: 0 3px; }
.recibo .r-hist.con-gen .etqs { gap: 0; }
.recibo .r-hist.con-gen .etqs span { margin: 0 3px; }
.recibo .r-hist.con-gen .barra.capas i.b-base { background: #cfe4da; }
.recibo .r-hist.con-gen .barra.capas.sel i.b-base { background: #8cc7af; }
.recibo .r-hist.con-gen .barra.capas i.b-fact { left: 28%; right: 28%; background: #00845a; }
.recibo .r-gen { position: absolute; left: 4px; right: 4px; top: 6px; bottom: 0; width: calc(100% - 8px); height: calc(100% - 6px); overflow: visible; pointer-events: none; }
.recibo .r-gen-area { fill: rgba(245, 166, 35, .14); }
.recibo .r-gen-linea { fill: none; stroke: #F5A623; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.recibo .r-hist .barra.capas .g-pt { position: absolute; left: 50%; width: 8px; height: 8px; margin: 0 0 -4px -4px; border-radius: 50%; background: #fff; border: 2px solid #F5A623; box-sizing: border-box; z-index: 2; pointer-events: none; }
.recibo .r-hist .barra.capas.sel .g-pt { background: #F5A623; width: 10px; height: 10px; margin: 0 0 -5px -5px; }
.recibo .r-hist-ley i.b-gen { width: 14px; height: 3px; border-radius: 2px; background: #F5A623; }
.recibo .r-hist-gen { margin: 6px 0 0; font-size: 10.5px; color: #6b4a00; background: #fff7e8; border-left: 3px solid #F5A623; padding: 4px 8px; border-radius: 0 4px 4px 0; }
.recibo .r-hist-gen b { color: #9B6200; }
@media print { .recibo .r-gen-area { fill: rgba(245, 166, 35, .18); } .recibo .r-hist .barra.capas .g-pt { print-color-adjust: exact; -webkit-print-color-adjust: exact; } }

/* Ahorro potencial y energía de más (2026-11-04, maqueta docs/maquetas/maqueta_ahorro_potencial.html) */
.fv-mini .fv-de { font-size: inherit; color: var(--texto); }
.fv-tope { display: block; height: 7px; border-radius: 999px; background: color-mix(in srgb, var(--borde) 70%, transparent); margin: 6px 0 2px; overflow: hidden; }
.fv-tope i { display: block; height: 100%; border-radius: 999px; background: var(--ok, #1f9d63); }
.fv-sobre.cubre { background: #e3f6f9; color: #087f93; }
.fv-sobre.justo { background: var(--ok-f, #e4f4ea); color: var(--ok-t, #1f7a4a); }
.fv-sobre.demas { background: #fff4e0; color: #9b6200; border: 1px solid #f3d499; }
.fv-energia { margin-top: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--borde); }
.fv-energia-t { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--suave); font-weight: 700; margin-bottom: 4px; }
.fv-fila-e { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 12px; margin: 3px 0; }
.fv-fila-e .n { font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
.fv-b { position: relative; height: 12px; border-radius: 6px; background: color-mix(in srgb, var(--borde) 60%, transparent); }
.fv-b i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; }
.fv-b i.c { background: #9fd4bc; } .fv-b i.g { background: #f5a623; }
.fv-b i.x { background: repeating-linear-gradient(135deg, #f5a623 0 4px, #fff4e0 4px 8px); }
.fv-exc { margin-top: 8px; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: baseline; padding: 10px 12px; border-radius: 12px; background: #fff4e0; border: 1px solid #f3d499; }
.fv-exc span { font-size: 12px; color: #9b6200; }
.fv-exc b { font-size: 15px; color: #9b6200; text-align: right; font-variant-numeric: tabular-nums; }
.fv-exc small { grid-column: 1 / -1; font-size: 11.5px; color: #7a5300; }
.fv-reco { margin-top: 8px; padding: 10px 12px; border-radius: 12px; border: 1px dashed color-mix(in srgb, #17b3c8 55%, var(--borde)); background: color-mix(in srgb, #17b3c8 5%, var(--panel)); }
.fv-reco p { margin: 0 0 8px; font-size: 12.5px; }
.fv-ap-lista { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 8px; }
.fv-ap { display: grid; grid-template-columns: 38px minmax(0, 1fr); grid-template-rows: auto auto auto auto; gap: 1px 8px; padding: 8px; border-radius: 10px; background: var(--panel); border: 1px solid var(--borde); }
.fv-ap-im { grid-row: span 4; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #e3f6f9; color: #087f93; }
.fv-ap-im svg { width: 24px; height: 24px; }
.fv-ap b { font-size: 12.5px; line-height: 1.25; } .fv-ap small { font-size: 11px; color: var(--suave); }
.fv-ap-uso { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.fv-ap-uso i { flex: 1; height: 5px; border-radius: 999px; background: color-mix(in srgb, var(--borde) 70%, transparent); overflow: hidden; }
.fv-ap-uso i u { display: block; height: 100%; background: #17b3c8; }
.fv-ap-btn { grid-column: 2; justify-self: start; text-align: left; font: inherit; font-size: 11.5px; font-weight: 650; color: #087f93; background: none; border: 0; padding: 2px 0; min-height: 28px; cursor: pointer; }
.fv-ap-btn:focus-visible { outline: 2px solid #17b3c8; outline-offset: 2px; border-radius: 4px; }
.fv-ap-pie { display: block; margin-top: 6px; font-size: 11px; color: var(--suave); }
@media print { .fv-reco, .fv-ap-btn { display: none !important; } }

/* Barra fija de entrega (2026-11-05): presentar, compartir y descargar siempre a la vista al recorrer la cotización */
.fv-entrega { position: sticky; bottom: 0; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
  margin: 14px 0 0; padding: 10px 12px; border: 1px solid var(--borde, #dce4eb); border-radius: 14px; background: var(--panel, #fff);
  box-shadow: 0 -6px 22px rgba(14, 34, 54, .12); }
.fv-entrega-acc { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.fv-entrega .btn { min-height: 44px; }
.fv-entrega .fv-ic { width: 18px; height: 18px; }
@media screen and (max-width: 760px) {
  .fv-entrega { bottom: calc(var(--mv-tab, 0px) + var(--mv-safe, 0px) + var(--mv-barra-h, 62px) + 8px); padding: 8px; }
  .fv-entrega-acc { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fv-entrega-acc .btn { padding-inline: 6px; font-size: 12.5px; justify-content: center; }
}
@media print { .fv-entrega { display: none !important; } }

/* ---------- comparación compacta (2026-11-05): una línea «Tu recibo → con tus cambios», píldoras y «Detalles» */
#su-cinta { gap: 8px; padding: 10px 12px; }
#su-cinta .cmp-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
#su-cinta .cmp-base { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--suave); }
#su-cinta .cmp-base s { font-variant-numeric: tabular-nums; }
#su-cinta .cmp-nuevo-t b { font-size: 20px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
#su-cinta .cmp-nuevo-t small { font-size: 12px; color: var(--suave); font-weight: 500; margin-left: 3px; }
#su-cinta .cmp-fila > .d { font-size: 12.5px; font-weight: 800; border-radius: 999px; padding: 2px 9px; font-variant-numeric: tabular-nums; }
#su-cinta .cmp-fila > .d.baja { color: var(--ok-t); background: var(--ok-f); }
#su-cinta .cmp-fila > .d.sube { color: var(--er-t); background: var(--er-f); }
#su-cinta .cmp-fila > .d.ref { color: var(--suave); font-weight: 500; padding: 0; }
#su-cinta .cmp-fila .chips { display: flex; flex-wrap: wrap; gap: 4px; }
#su-cinta .cmp-base-sola { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
#su-cinta .cmp-base-sola svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
#su-cinta .cmp-base-sola b { font-size: 18px; font-weight: 800; margin-left: 4px; }
#su-cinta .cmp-base-sola small { color: var(--suave); margin-left: 4px; }
#su-cinta .cmp-probar { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
#su-cinta .cmp-probar .btn { min-height: 40px; color: var(--primario-2); }
#su-cinta .cmp-det > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; font-size: 12.5px; font-weight: 700; color: var(--primario-2); }
#su-cinta .cmp-det > summary::-webkit-details-marker { display: none; }
#su-cinta .cmp-det > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .15s; }
#su-cinta .cmp-det[open] > summary::after { transform: rotate(225deg) translate(-2px, -2px); }
#su-cinta .cmp-det dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 6px 14px; margin: 4px 0 8px; }
#su-cinta .cmp-det dt { font-size: 11px; color: var(--suave); }
#su-cinta .cmp-det dd { margin: 0; font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
#su-cinta .cmp-det dd small { display: block; font-size: 10.5px; font-weight: 500; color: var(--suave); }
#su-cinta .cmp-det .cmp-ganas { margin-bottom: 8px; }
#su-cinta .cmp-pie { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
#su-cinta .cmp-pie .nota { font-size: 11.5px; }
#su-cinta .cmp-pills { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 0 0 2px; grid-auto-flow: unset; }
#su-cinta .cmp-pills::-webkit-scrollbar { display: none; }
#su-cinta .cmp-pills .cmp-esc { flex: none; gap: 1px; padding: 6px 11px; border-radius: 12px; min-height: 44px; justify-content: center; background: var(--fondo); max-width: 220px; }
#su-cinta .cmp-pills .cmp-esc.on { background: var(--acento); }
#su-cinta .cmp-pills .cmp-esc .t { font-size: 12.5px; font-weight: 700; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#su-cinta .cmp-pills .cmp-esc small { font-size: 11px; color: var(--suave); font-variant-numeric: tabular-nums; white-space: nowrap; }
#su-cinta .cmp-pills .cmp-esc .d { font-size: 11px; }
#su-cinta .cmp-ins { font-size: 9.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ok-t); }
/* en pantalla la comparación compacta ya dice «antes → ahora»: dentro del recibo queda una sola línea con el cambio de
   este periodo. El PDF y la impresión conservan la franja completa (otro contenedor). */
@media screen {
  #tab-simulador .su-lado #sim-recibo .recibo .r-antes { grid-template-columns: auto 1fr; padding: 6px 10px; }
  #tab-simulador .su-lado #sim-recibo .recibo .r-antes > span:not(.i), #tab-simulador .su-lado #sim-recibo .recibo .r-antes > small { display: none; }
  #tab-simulador .su-lado #sim-recibo .recibo .r-antes .i { grid-row: auto; width: 26px; height: 26px; }
}

/* ---- Personal: interruptor premium «Calcular con paneles», resumen de potencia y diálogo de potencia (2026-11-09) */
.fv-hero { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 14px; margin-top: 4px; padding: 16px 16px 16px 18px; border-radius: 18px; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, rgba(23,179,200,.22), transparent 55%), linear-gradient(135deg, #0e2236 0%, #11405a 62%, #135468 100%);
  color: #fff; box-shadow: 0 10px 28px rgba(14,34,54,.22); }
.fv-hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, rgba(245,166,35,.28), transparent 65%); pointer-events: none; }
.fv-hero .fv-on { grid-column: 1; grid-row: 1; position: relative; z-index: 1; background: transparent; border: 0; padding: 0; margin: 0; color: #fff; gap: 14px; min-height: 64px; }
.fv-hero .fv-on[aria-pressed="true"] { background: transparent; }
.fv-hero .fv-on b { font-size: 18px; line-height: 1.2; letter-spacing: -.01em; }
.fv-hero .fv-on small { color: rgba(255,255,255,.78); font-size: 12.5px; }
.fv-hero .fv-hero-k { display: inline-flex; align-items: center; gap: 5px; color: #f7be55 !important; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 11px !important; margin-bottom: 2px; }
.fv-hero .fv-hero-k .fv-ic { width: 14px; height: 14px; }
.fv-hero .fv-sw { width: 54px; height: 30px; background: rgba(255,255,255,.22); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.fv-hero .fv-sw::after { top: 3px; left: 3px; width: 24px; height: 24px; }
.fv-hero .fv-on[aria-pressed="true"] .fv-sw { background: linear-gradient(135deg, #f5a623, #f7be55); box-shadow: 0 0 0 4px rgba(245,166,35,.22); }
.fv-hero .fv-on[aria-pressed="true"] .fv-sw::after { transform: translateX(24px); }
.fv-hero .fv-on:focus-visible { outline: 2px solid #f7be55; outline-offset: 4px; border-radius: 10px; }
.fv-hero-img { grid-column: 2; grid-row: 1 / span 2; position: relative; z-index: 1; width: auto; height: 132px; max-width: 132px; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0,0,0,.35)); transition: opacity .25s; }
.fv-hero.sin-img { grid-template-columns: 1fr; }
.fv-hero .fv-auto { grid-column: 1; grid-row: 2; justify-self: start; position: relative; z-index: 1; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); color: #fff; }
.fv-hero .fv-auto[aria-pressed="true"] { background: rgba(245,166,35,.22); border-color: #f7be55; color: #fff; }
.fv-pot-resumen { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--borde); border-radius: 14px; background: var(--panel); }
.fv-pot-resumen > span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.fv-pot-resumen small { color: var(--suave); font-size: 12px; }
.fv-pot-resumen b { font-size: 20px; font-variant-numeric: tabular-nums; }
.fv-pot-resumen .btn { flex: none; min-height: 40px; }
.fv-pot-mini { width: 44px; height: 52px; object-fit: contain; flex: none; }
.fv-pd-vista { display: flex; align-items: center; gap: 16px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(135deg, #eaf7fa, #fdf3dc); margin-bottom: 4px; }
.fv-pd-vista p { margin: 0; display: flex; flex-direction: column; }
.fv-pd-vista b { font-size: 28px; color: #0e2236; font-variant-numeric: tabular-nums; }
.fv-pd-img { width: 84px; height: 92px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(14,34,54,.25)); }
.fv-pd-tit { font-size: 14px; margin: 16px 0 8px; }
.fv-pd-ayuda { font-size: 12.5px; margin: 0 0 8px; }
.fv-pd-cat { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.fv-pd-cat button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; min-height: 44px; border: 1px solid #cbd8d0; border-radius: 12px; background: #fff; color: #23382b; font: inherit; cursor: pointer; }
.fv-pd-cat button b { font-size: 14px; } .fv-pd-cat button small { font-size: 11px; color: #68786e; }
.fv-pd-cat button[aria-pressed="true"] { border-color: #0e2236; background: #eaf7fa; box-shadow: 0 0 0 2px #17b3c8 inset; }
.fv-pd-mini { width: 34px; height: 40px; object-fit: contain; }
.fv-pot-dlg .fv-pot-ctl { margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .fv-hero-img { transition: none; } }
@media screen and (max-width: 760px) {
  .fv-hero { padding: 14px; border-radius: 16px; }
  .fv-hero .fv-on b { font-size: 17px; }
  .fv-hero-img { height: 84px; max-width: 84px; }
  .fv-pd-cat { grid-template-columns: repeat(3, 1fr); }
}
@media print { .fv-hero-img, .fv-pot-mini { display: none; } }

/* ---- 12-11-2026: Sistema FV premium · «Auto» de optimización, héroe Profesional, Equipo en tarjetas y orientación Konva */
.fv-varita svg { width: 18px; height: 18px; stroke-width: 1.5; }
.fv-varita[aria-pressed="true"] { background: linear-gradient(var(--panel, #fff), var(--panel, #fff)) padding-box, linear-gradient(135deg, #0e2236, #17b3c8) border-box; border: 1.5px solid transparent; color: var(--marca-cian-texto, #087f93); box-shadow: 0 2px 10px rgba(8,127,147,.18); }
.fv-varita[aria-pressed="true"] svg { stroke: var(--marca-cian-texto, #087f93); fill: color-mix(in srgb, #17b3c8 18%, transparent); animation: none !important; }
.fv-hero .fv-auto[aria-pressed="true"] { background: rgba(255,255,255,.14); border: 1.5px solid #f7be55; color: #fff; box-shadow: none; }
.fv-hero .fv-auto[aria-pressed="true"] svg { stroke: #f7be55; fill: rgba(247,190,85,.2); }
.fv-hero-pro .fv-hero-img { height: 112px; max-width: 112px; }
.fv-hero-pro .fv-on b { font-size: 17px; }
/* Equipo en tarjetas */
.fv-eq-nota { margin: 0 0 8px; }
.fv-eqg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fv-eqc { border: 1px solid var(--borde); border-radius: 14px; background: var(--panel); overflow: hidden; min-width: 0; }
.fv-eqc > header { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--borde); background: color-mix(in srgb, #17b3c8 6%, var(--panel)); }
.fv-eqc > header b { font-size: 13.5px; }
.fv-eqc-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, #17b3c8 14%, var(--panel)); color: var(--marca-cian-texto, #087f93); flex: none; }
.fv-eqc-ic .fv-ic { width: 17px; height: 17px; }
.fv-eqc-x { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--suave); font-variant-numeric: tabular-nums; }
.fv-eqc-c { padding: 12px; display: grid; gap: 10px; }
.fv-eq-fila { display: flex; gap: 12px; align-items: flex-start; }
.fv-eq-img { width: 74px; height: 96px; object-fit: contain; flex: none; border-radius: 10px; background: linear-gradient(160deg, #eef6fa, #fdf6e6); padding: 6px; }
.fv-eq-campos { display: grid; gap: 8px; flex: 1; min-width: 0; }
.fv-eq-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fv-eq-2 > :first-child { grid-column: 1 / -1; }
.fv-eq-dato { margin: 0; display: flex; flex-direction: column; }
.fv-eq-dato b { font-size: 18px; font-variant-numeric: tabular-nums; }
.fv-eq-dato small { color: var(--suave); font-size: 11.5px; }
.fv-eq-bif { display: grid; gap: 8px; }
.fv-eti-q { display: inline-flex; align-items: center; }
.fv-eq-ratio { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; padding: 8px 10px; border-radius: 10px; background: var(--fondo); }
.fv-eq-ratio > span { display: inline-flex; align-items: center; font-size: 12px; color: var(--suave); }
.fv-eq-ratio b { font-size: 18px; grid-row: 1 / span 2; grid-column: 2; font-variant-numeric: tabular-nums; }
.fv-eq-ratio small { font-size: 11.5px; font-weight: 600; }
.fv-eq-ratio.bien small { color: #1f7a4a; } .fv-eq-ratio.alto small { color: #b3261e; } .fv-eq-ratio.holgado small { color: #9a6200; }
.fv-mont { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.fv-mont legend { font-size: 12.5px; margin-bottom: 6px; padding: 0; }
.fv-mont-op { position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border: 1px solid var(--borde); border-radius: 10px; text-align: center; cursor: pointer; min-height: 44px; }
.fv-mont-op input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.fv-mont-op .fv-ic { width: 24px; height: 24px; color: var(--suave); }
.fv-mont-op b { font-size: 11.5px; } .fv-mont-op small { font-size: 10px; color: var(--suave); line-height: 1.2; }
.fv-mont-op:has(input:checked) { border-color: var(--marca-cian, #17b3c8); background: color-mix(in srgb, #17b3c8 10%, var(--panel)); box-shadow: 0 0 0 1px var(--marca-cian, #17b3c8) inset; }
.fv-mont-op:has(input:checked) .fv-ic { color: var(--marca-cian-texto, #087f93); }
.fv-mont-op:has(input:focus-visible) { outline: 2px solid var(--marca-cian, #17b3c8); outline-offset: 2px; }
/* Orientación: lienzo Konva con SVG de respaldo y medidor del óptimo */
.fv-orient2 { display: grid; gap: 10px; }
.fv-o-lienzo { width: 100%; min-height: 150px; }
.fv-o-lienzo .pg-konva { width: 100%; }
.fv-o-medidor { display: block; width: 100%; height: 8px; border-radius: 99px; background: var(--fondo); overflow: hidden; box-shadow: inset 0 0 0 1px var(--borde); }
.fv-o-medidor i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #17b3c8, #1f9d55); transition: width .3s; }
.fv-o-medidor i.aceptable { background: linear-gradient(90deg, #f5a623, #e3a008); } .fv-o-medidor i.malo { background: linear-gradient(90deg, #f2938c, #d64545); }
@media (prefers-reduced-motion: reduce) { .fv-o-medidor i { transition: none; } }
@media screen and (max-width: 760px) {
  .fv-eqg { grid-template-columns: 1fr; }
  .fv-hero-pro .fv-hero-img { height: 80px; max-width: 80px; }
}
@media print { .fv-eq-img { display: none; } }
/* ---- 12-11-2026: contactos del cliente (Hoja 1) */
.fv-contactos { display: grid; gap: 8px; margin-top: 8px; padding: 10px; border: 1px dashed color-mix(in srgb, #17b3c8 55%, var(--borde)); border-radius: 12px; background: color-mix(in srgb, #17b3c8 5%, var(--panel)); }
.fv-ct-cab { display: flex; flex-direction: column; } .fv-ct-cab b { font-size: 13px; } .fv-ct-cab small { color: var(--suave); font-size: 11.5px; }
.fv-ct-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fv-ct-lista li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 10px; background: var(--panel); border: 1px solid var(--borde); }
.fv-ct-lista li.pr { border-color: var(--marca-cian, #17b3c8); }
.fv-ct-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #0e2236; color: #fff; font-size: 11px; font-weight: 700; }
.fv-ct-d { min-width: 0; } .fv-ct-d b { display: block; font-size: 13px; } .fv-ct-d small { display: block; font-size: 11.5px; color: var(--suave); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fv-ct-pr { font-style: normal; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: color-mix(in srgb, #17b3c8 16%, transparent); color: var(--marca-cian-texto, #087f93); margin-left: 4px; }
.fv-ct-ed { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--borde); background: var(--panel); color: var(--suave); cursor: pointer; display: grid; place-items: center; }
.fv-ct-ed .fv-ic { width: 16px; height: 16px; }
.fv-ct-agregar { justify-self: start; }
.fv-ct-dlg { width: min(520px, calc(100% - 24px)); border: 1px solid var(--borde); border-radius: 16px; padding: 20px; background: var(--panel); color: var(--texto); font: 14px/1.45 var(--f-ui, system-ui); }
.fv-ct-dlg::backdrop { background: rgba(4,18,32,.6); }
.fv-ct-dlg h2 { margin: 0 0 4px; font-size: 20px; } .fv-ct-dlg header p { margin: 0 0 12px; color: var(--suave); font-size: 13px; }
.fv-ct-dlg label { display: grid; gap: 4px; margin: 10px 0; font-weight: 600; font-size: 13px; }
.fv-ct-dlg input:not([type=radio]):not([type=checkbox]) { min-height: 44px; padding: 8px 10px; border: 1px solid var(--borde); border-radius: 8px; background: var(--fondo); color: var(--texto); font: inherit; }
.fv-ct-puestos { border: 0; padding: 0; margin: 10px 0; display: flex; flex-wrap: wrap; gap: 6px; } .fv-ct-puestos legend { font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.fv-ct-puestos label { margin: 0; position: relative; } .fv-ct-puestos input { position: absolute; opacity: 0; }
.fv-ct-puestos span { display: inline-block; padding: 8px 12px; min-height: 40px; border: 1px solid var(--borde); border-radius: 99px; font-weight: 600; cursor: pointer; }
.fv-ct-puestos input:checked + span { background: #0e2236; color: #fff; border-color: #0e2236; }
.fv-ct-puestos input:focus-visible + span { outline: 2px solid #17b3c8; outline-offset: 2px; }
.fv-ct-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.fv-ct-check { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; }
.fv-ct-error { color: #b3261e; min-height: 20px; margin: 4px 0; font-size: 13px; }
.fv-ct-dlg footer { display: flex; gap: 8px; align-items: center; border-top: 1px solid var(--borde); padding-top: 12px; } .fv-ct-dlg footer span { flex: 1; }
.a4-atencion { display: block; font-size: 12px; margin-top: 4px; }
@media (max-width: 760px) { .fv-ct-dlg { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: 20px 20px 0 0; } .fv-ct-2 { grid-template-columns: 1fr; } }
@media print { .fv-contactos { display: none !important; } }
/* ---- 12-11-2026: hoja de cotización premium · plantillas Ejecutiva, Técnica y Minimal, KPIs y campos editables */
.fv-a4 { font-family: var(--f-ui, "Inter", system-ui, sans-serif); border-radius: 14px; box-shadow: 0 1px 2px rgba(14,34,54,.06), 0 14px 34px rgba(14,34,54,.10); }
.fv-a4 .a4-par legend { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--q2); }
.a4-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 4px 0 2px; }
.a4-kpis > div { padding: 10px 12px; border-radius: 10px; background: var(--q4); border-left: 3px solid var(--q2); min-width: 0; }
.a4-kpis small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--q1) 70%, #fff); }
.a4-kpis b { display: block; font-size: 19px; line-height: 1.15; letter-spacing: -.02em; color: var(--q1); font-variant-numeric: tabular-nums; }
.a4-kpis em { display: block; font-style: normal; font-size: 10.5px; color: #5b6b78; }
.fv-a4 .a4-caja { border-radius: 12px; }
.fv-a4 .a4-caja .g { color: var(--q1); }
/* Ejecutiva: encabezado en banda de marca y total destacado */
.fv-a4.q-ejecutiva .a4-cab { background: var(--q1); color: #fff; margin: -4px -4px 4px; padding: 14px 16px; border-radius: 12px; border: 0; }
.fv-a4.q-ejecutiva .a4-cab b, .fv-a4.q-ejecutiva .a4-folio h3 { color: #fff; }
.fv-a4.q-ejecutiva .a4-cab small { color: rgba(255,255,255,.78); }
.fv-a4.q-ejecutiva .a4-logo { background: #fff; color: var(--q1); }
.fv-a4.q-ejecutiva .a4-confianza a, .fv-a4.q-ejecutiva .a4-sello { color: #fff; }
.fv-a4.q-ejecutiva .a4-caja { background: var(--q1); color: #fff; }
.fv-a4.q-ejecutiva .a4-caja span, .fv-a4.q-ejecutiva .a4-caja small { color: rgba(255,255,255,.8); }
.fv-a4.q-ejecutiva .a4-caja b { color: #fff; }
.fv-a4.q-ejecutiva .a4-caja .g { color: var(--q3); border-top-color: rgba(255,255,255,.3); }
/* Técnica: cuadrícula, ficha con equipo */
.fv-a4.q-tecnica .a4-kpis > div { background: #fff; border: 1px solid color-mix(in srgb, var(--q1) 18%, #fff); border-top: 3px solid var(--q1); border-left-width: 1px; border-radius: 6px; }
.a4-ficha-eq { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; justify-content: center; padding: 8px; border-radius: 8px; background: var(--q4); }
.a4-ficha-eq img { height: 86px; width: auto; max-width: 45%; object-fit: contain; }
/* Minimal: blanco, líneas finas y aire */
.fv-a4.q-minimal { box-shadow: 0 1px 2px rgba(14,34,54,.06); border: 1px solid #e3e8ec; }
.fv-a4.q-minimal .a4-cab { border-bottom: 1px solid #e3e8ec; }
.fv-a4.q-minimal .a4-logo { background: transparent; color: var(--q1); border: 1px solid #d5dde3; }
.fv-a4.q-minimal .a4-kpis > div { background: transparent; border: 0; border-bottom: 2px solid var(--q2); border-radius: 0; padding: 6px 2px; }
.fv-a4.q-minimal .fv-tabla th { background: none; color: var(--q1); border-bottom: 1px solid var(--q1); }
.fv-a4.q-minimal .a4-caja { background: transparent; border: 1px solid #e3e8ec; }
.fv-a4.q-minimal .a4-pagos div { border-left-width: 2px; }
/* Campos que el Profesional edita: contorno cian discontinuo y lápiz (solo en pantalla) */
.fv-a4 .a4-ed input, .fv-a4 .a4-ed select { border: 1.5px dashed color-mix(in srgb, #17b3c8 70%, transparent) !important; background: color-mix(in srgb, #17b3c8 6%, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087f93' stroke-width='2'%3E%3Cpath d='M4 20h4L19 9l-4-4L4 16z'/%3E%3C/svg%3E") no-repeat right 8px center / 14px; padding-right: 28px !important; border-radius: 8px; transition: border-color .15s, box-shadow .15s; }
.fv-a4 .a4-ed select { background-image: none; padding-right: 8px !important; }
.fv-a4 .a4-ed input:hover, .fv-a4 .a4-ed select:hover { border-color: #17b3c8 !important; }
.fv-a4 .a4-ed input:focus, .fv-a4 .a4-ed select:focus { border-style: solid !important; border-color: #17b3c8 !important; box-shadow: 0 0 0 3px color-mix(in srgb, #17b3c8 22%, transparent); outline: none; }
.fv-a4 .fv-cot-resumen .btn, .fv-a4 [data-ct-editar] { border-style: dashed; border-color: color-mix(in srgb, #17b3c8 60%, var(--borde)); }
@media (max-width: 620px) { .a4-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media print {
  :is(#fv-print, #descargas-print) .fv-a4 { box-shadow: none; }
  :is(#fv-print, #descargas-print) .a4-kpis b { font-size: 15px; } :is(#fv-print, #descargas-print) .a4-kpis > div { padding: 6px 8px; }
  :is(#fv-print, #descargas-print) .a4-ed input, :is(#fv-print, #descargas-print) .a4-ed select { border: 0 !important; background: none !important; padding: 0 !important; }
}
/* ---- 12-11-2026: Hoja 2 · ficha del sistema con equipo y generación mensual en Konva */
.fv-tec-eq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.2fr); gap: 12px; align-items: stretch; }
.fv-tec-eq figure { margin: 0; display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: linear-gradient(160deg, #eef6fa, #fdf6e6); }
.fv-tec-img { width: 70px; height: 84px; object-fit: contain; }
.fv-tec-eq figcaption b { display: block; font-size: 15px; color: #0e2236; } .fv-tec-eq figcaption small { display: block; font-size: 11.5px; color: #4a5a63; }
.fv-tec-eq dl { display: grid; grid-template-columns: 1fr auto; margin: 0; font-size: 12.5px; align-content: center; }
.fv-tec-eq dt, .fv-tec-eq dd { margin: 0; padding: 4px 0; border-bottom: 1px dotted var(--borde); } .fv-tec-eq dt { color: var(--suave); } .fv-tec-eq dd { text-align: right; font-weight: 650; }
.fv-tec-gen { width: 100%; min-height: 120px; }
@media (max-width: 760px) { .fv-tec-eq { grid-template-columns: 1fr; } }
.fv-a4 .fv-contactos, .fv-a4 .a4-atencion { grid-column: 1 / -1; }

/* Motivo del descuento (11-11-2026): opcional, aparece en la cotización, la propuesta y la presentación */
.fv-desc-motivo { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--suave); width: 100%; margin-top: 12px; }
.fv-desc-motivo small { font-size: 11.5px; color: var(--suave); }
.fv-desc-motivo input { box-sizing: border-box; width: 100%; min-height: 44px; padding: 9px 10px; border: 1px solid var(--borde); border-radius: 9px; background: var(--panel); color: var(--texto); font: inherit; font-size: 14px; }
.fv-desc-motivo input:focus-visible { outline: 2px solid var(--acento); outline-offset: 1px; }

.fv-mont-nota { grid-column: 1 / -1; font-size: 12px; color: var(--suave); line-height: 1.4; margin-top: 4px; }

/* ===== Hoja 3 · Ahorro por horario (11-11-2026, tarifas horarias) ===== */
.fv-h3 { display: grid; gap: 14px; padding: 4px 0 8px; }
.fv-h3-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.fv-h3-kpi { border: 1px solid var(--borde); border-radius: 13px; padding: 11px 13px; background: var(--panel); display: grid; gap: 2px; }
.fv-h3-kpi span { font-size: 12px; color: var(--suave); font-weight: 600; }
.fv-h3-kpi b { font-size: 20px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--texto); }
.fv-h3-kpi small { font-size: 12px; color: var(--suave); }
.fv-h3-kpi.dest { border-color: color-mix(in srgb, var(--acento, #17B3C8) 45%, var(--borde)); background: color-mix(in srgb, var(--acento, #17B3C8) 8%, var(--panel)); }
.fv-h3-dos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.fv-h3-card { border: 1px solid var(--borde); border-radius: 14px; padding: 14px 16px; background: var(--panel); min-width: 0; }
.fv-h3-card h4 { margin: 0 0 10px; font-size: 14.5px; color: var(--texto); }
.fv-h3-card summary { cursor: pointer; min-height: 32px; font-size: 13.5px; color: var(--texto); }
.fv-h3-con { display: grid; grid-template-columns: minmax(120px, 1.2fr) 2fr auto; gap: 10px; align-items: center; font-size: 13px; padding: 4px 0; }
.fv-h3-con .bar { height: 10px; border-radius: 6px; background: var(--panel-2, rgba(0,0,0,.05)); overflow: hidden; }
.fv-h3-con .bar i { display: block; height: 100%; border-radius: 6px; }
.fv-h3-con b { font-variant-numeric: tabular-nums; }
.fv-h3-rep { display: flex; height: 12px; border-radius: 7px; overflow: hidden; margin-top: 12px; background: var(--panel-2, rgba(0,0,0,.05)); }
.fv-h3-ley { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 12px; color: var(--suave); }
.fv-h3-ley span { display: inline-flex; align-items: center; gap: 6px; }
.fv-h3-ley i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.fv-h3-lect { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 13px; line-height: 1.45; color: var(--texto); }
.fv-h3-mapa, .fv-h3-casc { width: 100%; height: auto; display: block; }
.fv-h3-mapa text, .fv-h3-casc text { font: 10.5px Inter, system-ui, sans-serif; fill: var(--suave); }
.fv-h3-casc text.v { font-weight: 700; fill: var(--texto); font-size: 10px; }
.fv-h3-tabla td, .fv-h3-tabla th { font-size: 12px; white-space: nowrap; }
.fv-h3-tabla tr.tot td { font-weight: 700; border-top: 2px solid var(--borde); }
.fv-h3 .dt-caja { --dt-panel: var(--panel); }
@media print { .fv-h3 { display: none; } }

/* ===== Indicador de demanda contratada (paso 6 · Sistema FV) ===== */
.fv-dc { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid transparent; cursor: pointer; background: transparent; font-family: inherit; }
.fv-dc.supera { color: #9b2c22; background: color-mix(in srgb, #c94a3c 12%, var(--panel)); border-color: color-mix(in srgb, #c94a3c 40%, transparent); }
.fv-dc.cerca { color: #7a4f00; background: color-mix(in srgb, #F5A623 16%, var(--panel)); border-color: color-mix(in srgb, #F5A623 45%, transparent); }
.fv-dc .fv-dc-pt { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: fvDcPulso 1.8s ease-out infinite; }
@keyframes fvDcPulso { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); } 80%, 100% { box-shadow: 0 0 0 7px transparent; } }
.fv-dc-pop { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; width: min(340px, 86vw); padding: 12px 14px; border-radius: 12px; background: var(--panel); color: var(--texto); border: 1px solid var(--borde); box-shadow: 0 12px 28px rgba(0,0,0,.18); font-size: 12.5px; font-weight: 500; line-height: 1.45; text-align: left; white-space: normal; }
.fv-dc-pop b { display: block; margin-bottom: 4px; font-size: 13px; }
.fv-dc-pop p { margin: 6px 0 0; }
.fv-dc-marca { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 4px; border-radius: 50%; font-size: 11px; font-weight: 800; color: #fff; background: #c94a3c; vertical-align: middle; }
.fv-dc-marca.cerca { background: #c98a10; }
:root[data-theme="dark"] .fv-dc.supera { color: #ffb3a8; } :root[data-theme="dark"] .fv-dc.cerca { color: #ffd38a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fv-dc.supera { color: #ffb3a8; } :root:not([data-theme="light"]) .fv-dc.cerca { color: #ffd38a; } }
@media (prefers-reduced-motion: reduce) { .fv-dc .fv-dc-pt { animation: none; } }
.fv-dc-envoltura { position: relative; display: inline-block; margin: 0 0 10px; }
#fv-dc-caja:empty { display: none; }

/* Automático con 0 paneles (16-11-2026): explica la razón y ofrece qué hacer, en tono de aviso (no de error). */
.fv-cero { margin: 12px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--av-t) 35%, transparent); background: var(--av-f); color: var(--texto); }
.fv-cero-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--marca-ambar, #f5a623) 22%, transparent); color: var(--av-t); }
.fv-cero-ico .fv-ic { width: 20px; height: 20px; }
.fv-cero b { font-size: 13.5px; color: var(--av-t); }
.fv-cero p { margin: 3px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--texto); }
.fv-cero-acc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.fv-cero-acc .btn { min-height: 36px; }
