/* =================== v2 =================== */
.topbar { gap: 12px; }
.menus { display: flex; gap: 4px; margin-left: 6px; }
.menu { position: relative; }
.menu-btn { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid rgba(255,255,255,.14); color: #d7dedf; border-radius: 9px; padding: 7px 10px; font-size: 12.5px; font-weight: 600; }
.menu-btn svg { width: 17px; height: 17px; } .menu-btn:hover { border-color: var(--teal); color: var(--teal); }
.menu-btn .badge { position: static; margin-left: 2px; }
#dealerName.on { color: var(--teal); }
.dropdown { position: absolute; top: 40px; left: 0; background: var(--card); color: var(--ink); border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.25); padding: 6px; min-width: 260px; z-index: 30; display: flex; flex-direction: column; }
.dropdown button { text-align: left; border: 0; background: transparent; padding: 9px 12px; border-radius: 8px; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.dropdown button:hover { background: var(--teal-bg); color: var(--teal-d); }
.dropdown hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.dropdown .dd-title { font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--grey); padding: 6px 12px 2px; font-weight: 700; }
.dropdown .badge { position: static; margin-left: auto; }
.lang { background: transparent; color: #d7dedf; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; padding: 6px 8px; font-size: 12px; font-weight: 700; }
.lang option { color: var(--ink); }
.status { margin-right: 4px; }

/* panel compacto */
.panel { display: flex; flex-direction: column; padding-bottom: 0; }
.panel-head { position: sticky; top: 0; z-index: 3; background: var(--card); border-bottom: 1px solid var(--line); padding: 8px 10px; display: flex; align-items: center; gap: 6px; }
.chips { display: flex; gap: 3px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.chip-step { border: 0; background: var(--bg); border-radius: 999px; padding: 4px 8px 4px 4px; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--grey); white-space: nowrap; }
.chip-step i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-size: 10px; border: 1px solid var(--line); }
.chip-step.active { background: var(--ink); color: #fff; } .chip-step.active i { background: var(--teal); color: var(--ink); border-color: transparent; }
.chip-step.bad i { background: var(--bad); color: #fff; }
.mode-btn { border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 5px 8px; font-size: 11px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.step header { padding: 11px 16px; position: static; }
.step header .n { width: 24px; height: 24px; font-size: 12px; }
.step header h3 { font-size: 13.5px; }
.step header .val { margin: 1px 0 0; font-size: 12px; color: var(--teal-d); font-weight: 600; }
.step.collapsed header .sub { display: none; } .step.collapsed header .val { display: block !important; }
.step:not(.collapsed) header .val { display: none !important; }
.step .body { padding: 2px 16px 12px; }
.step-foot { padding: 0 16px 14px; display: flex; justify-content: flex-end; }
.step-foot .btn.next { background: var(--ink); color: #fff; padding: 7px 14px; }
.step.collapsed .step-foot { display: none; }
.panel.expert .step-foot { display: none; }
.panel.expert .step header { padding: 8px 14px; } .panel.expert .step .body { padding: 0 14px 10px; }
.panel.expert .sys-grid { grid-template-columns: repeat(4, 1fr); } .panel.expert .sys-card { padding: 5px 4px; } .panel.expert .sys-name { font-size: 10.5px; } .panel.expert .sys-sub { display: none; }
.panel.expert .swatches { grid-template-columns: repeat(5, 1fr); } .panel.expert .swatch span { display: none; } .panel.expert .swatch i { width: 26px; height: 26px; }
.panel.expert .group-label { margin: 8px 0 5px; }
.disabled-step .body, .disabled-step .step-foot { opacity: .35; pointer-events: none; }
.panel-bar { position: sticky; bottom: 0; margin-top: auto; background: var(--card); border-top: 1px solid var(--line); padding: 10px 14px; display: flex; align-items: center; gap: 8px; z-index: 3; box-shadow: 0 -8px 20px rgba(0,0,0,.05); }
.pb-total { flex: 1; display: flex; flex-direction: column; line-height: 1.1; } .pb-total small { font-size: 11px; } .pb-total b { font-size: 18px; color: var(--teal-d); }
.panel-bar .btn.ghost { color: var(--ink); border-color: var(--line); }
.opt-row.three { grid-template-columns: 1fr 1fr 1fr; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0; }
.kpis div { background: var(--bg); border-radius: 9px; padding: 8px 9px; display: flex; flex-direction: column; }
.kpis small { font-size: 10px; color: var(--grey); text-transform: uppercase; letter-spacing: .3px; } .kpis b { font-size: 14px; }
.actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
.actions-grid .btn.ghost { color: var(--ink); border-color: var(--line); }
.btn.ghost-teal { background: var(--teal-bg); color: var(--teal-d); border-color: transparent; margin-top: 8px; }
.btn.danger { color: var(--bad); }
.small { font-size: 11.5px; } .ok-txt { color: var(--ok); } .bad-txt { color: var(--bad); }
.dealer-tag { background: var(--teal-bg); color: var(--teal-d); border-radius: 6px; padding: 2px 6px; font-size: 10px; text-transform: none; letter-spacing: 0; }
.pvp-line { color: var(--teal-d); font-size: 12px; }
.pill { border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 600; } .pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.warn { background: var(--warn-bg); color: var(--warn); } .pill.bad { background: var(--bad-bg); color: var(--bad); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--grey); margin-top: 8px; }
.code { background: var(--ink); color: #cfe6e4; border-radius: 10px; padding: 12px; font-size: 11px; overflow: auto; max-height: 260px; }
.modal.wide { width: min(900px, 100%); } .modal.xl { width: min(1180px, 100%); height: 90vh; }
.modal textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px; font-size: 12px; box-sizing: border-box; }
.file input { display: none; } .file { cursor: pointer; }
.range-row { display: flex; align-items: center; gap: 12px; font-size: 12.5px; } .range-row input { flex: 1; accent-color: var(--teal-d); }
.logo-prev { height: 34px; border: 1px solid var(--line); border-radius: 6px; padding: 2px; background: #fff; }
.dealer-head { display: flex; justify-content: space-between; align-items: center; } .dealer-head small { display: block; color: var(--grey); }
.dealer input#dlBrand { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; flex: 1; }
/* sección */
.section-view .sec-tabs { display: flex; gap: 6px; margin-bottom: 10px; } .sec-tabs button { border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 6px 10px; font-size: 12px; } .sec-tabs button.active { background: var(--ink); color: #fff; }
.sec-svg { background: var(--bg); border-radius: 10px; padding: 10px; max-height: 60vh; display: grid; place-items: center; } .sec-svg svg { max-height: 56vh; }
.sec-info { margin-top: 10px; font-size: 13px; line-height: 1.5; }
/* fotomontaje */
.photo-tool { display: grid; grid-template-columns: 280px 1fr; gap: 16px; height: 100%; min-height: 0; }
.photo-side { font-size: 13px; overflow-y: auto; } .photo-side p { margin: 6px 0; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 0; }
.gal-item { border: 2px solid var(--line); border-radius: 8px; padding: 0; overflow: hidden; background: #fff; display: flex; flex-direction: column; } .gal-item img { width: 100%; height: 64px; object-fit: cover; display: block; } .gal-item span { font-size: 10.5px; padding: 3px; } .gal-item:hover { border-color: var(--teal-d); }
.photo-stage { position: relative; overflow: hidden; background: #ddd; border-radius: 10px; min-height: 420px; }
.photo-stage #bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-stage #door { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; }
.corner { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--teal); border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4); cursor: grab; touch-action: none; }
/* comparar */
.compare { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 300px auto; gap: 12px; }
.cmp-col h4 { margin: 0 0 6px; font-size: 13px; } .cmp-view { height: 270px; position: relative; background: var(--bg); border-radius: 10px; overflow: hidden; } .cmp-view canvas { width: 100% !important; height: 100% !important; display: block; }
.cmp-table { grid-column: 1 / -1; } .tbl tr.diff td { background: var(--teal-bg); font-weight: 600; }
/* analítica */
.an-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 22px; }
.bars { display: flex; flex-direction: column; gap: 5px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 32px; align-items: center; gap: 8px; font-size: 11.5px; }
.bar-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .bar-row i { display: block; height: 10px; border-radius: 4px; min-width: 2px; } .bar-row b { text-align: right; }
.analytics .kpis { grid-template-columns: repeat(6, 1fr); }
.docs { padding-left: 18px; line-height: 1.8; font-size: 13px; }
.obra-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .obra-grid input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; box-sizing: border-box; }
.zone-box { background: var(--teal-bg); color: #24504e; border-radius: 8px; padding: 8px 10px; font-size: 12.5px; }
.ar-modal { display: grid; grid-template-columns: 240px 1fr; gap: 18px; align-items: start; } .qr svg { width: 100%; height: auto; border-radius: 8px; } .ar-txt ol { padding-left: 18px; font-size: 13px; line-height: 1.5; } .ar-txt label { font-size: 11px; color: var(--grey); display: block; margin: 8px 0; }
.share textarea { margin: 8px 0; }
.tariffs .form-grid { grid-template-columns: repeat(3, 1fr); } .tariffs input { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.form-grid select { border: 1.5px solid var(--line); border-radius: 8px; padding: 8px 10px; font-weight: 400; }
/* aprobación */
.approve-bar { position: absolute; left: 16px; right: 16px; bottom: 96px; z-index: 6; background: var(--ink); color: #fff; border-radius: 12px; padding: 12px 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; box-shadow: var(--shadow); }
.approve-bar input { border: 0; border-radius: 8px; padding: 8px 10px; }
.approve-bar span { flex: 1 1 260px; }
/* presentación */
.present-exit { display: none; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 8; background: rgba(30,36,38,.85); color: #fff; border: 0; border-radius: 999px; padding: 8px 14px; font-size: 12px; }
body.present .topbar, body.present .panel, body.present .top-left, body.present .top-right, body.present .hint { display: none !important; }
body.present .app { grid-template-columns: 1fr; height: 100%; }
body.present .present-exit { display: block; }
body.present .toolbar { opacity: .35; transition: .3s; } body.present .toolbar:hover { opacity: 1; }
/* embed */
body.embed .menus, body.embed #btnReset, body.embed #btnLink { display: none; }
@media (max-width: 1280px) { .brand-txt span { display: none; } .menu-btn span { display: none; } .btn#btnQuote { display: none; } }
@media (max-width: 900px) { .menus { display: none; } .lang { display: none; } .actions-grid { grid-template-columns: 1fr; } .photo-tool, .compare, .ar-modal, .an-grid { grid-template-columns: 1fr; } .kpis { grid-template-columns: 1fr 1fr; } }
/* barra de herramientas compacta */
.toolbar { flex-wrap: wrap; justify-content: center; max-width: calc(100% - 24px); row-gap: 2px; }
.tool { min-width: 46px; padding: 5px 7px; font-size: 10px; } .tool svg { width: 18px; height: 18px; }
.open-slider input { width: 90px; }
@media (max-width: 1500px) { .tool span { display: none; } .tool { min-width: 36px; } }
.chips { scrollbar-width: thin; }

.step { scroll-margin-top: 46px; }
/* fotomontaje guiado */
.photo-stage .quad { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.photo-stage .quad polygon { fill: rgba(117,197,193,.08); stroke: #75c5c1; stroke-width: 2; stroke-dasharray: 8 5; }
.photo-stage .quad line { stroke: rgba(117,197,193,.6); stroke-width: 1; }
.photo-stage .mover { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(30,36,38,.75); border: 2px solid #fff; cursor: move; touch-action: none; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.photo-stage .mover::after { content: '✥'; color: #fff; font-size: 18px; display: grid; place-items: center; height: 100%; }
.photo-stage[data-mode="move"] .corner { border-radius: 4px; cursor: nwse-resize; }
.photo-stage[data-mode="persp"] .corner { cursor: ns-resize; }
.photo-side .seg.modes { display: flex; width: 100%; margin: 6px 0; box-shadow: none; background: var(--bg); } .photo-side .seg.modes button { flex: 1; }

/* sugerencias */
.suggest { background: var(--card); border: 1px solid var(--teal); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; box-shadow: var(--shadow); }
.suggest > b { display: flex; align-items: center; gap: 6px; color: var(--teal-d); margin-bottom: 6px; } .suggest > b svg { width: 16px; height: 16px; }
.suggest > small { color: var(--grey); }
.sug-list { display: flex; flex-direction: column; gap: 4px; }
.sug { text-align: left; border: 1px solid var(--line); background: var(--bg); border-radius: 8px; padding: 7px 10px; display: flex; flex-direction: column; gap: 1px; }
.sug:hover { border-color: var(--teal-d); background: var(--teal-bg); } .sug span { font-weight: 600; font-size: 12.5px; } .sug small { color: var(--grey); font-size: 11px; }
.top-left .suggest { max-width: 420px; }

/* complementos, instalación, firma, seguimiento */
.extras { display: flex; flex-direction: column; gap: 5px; }
.extra { display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 12px; }
.extra small { display: block; color: var(--grey); font-size: 10.5px; } .extra.on { border-color: var(--teal-d); background: var(--teal-bg); }
.extra .stepper button { width: 26px; height: 24px; } .extra .stepper b { width: 26px; }
.install { margin-top: 10px; background: var(--bg); border-radius: 9px; padding: 8px 10px; } .install .check { margin: 0; color: var(--ink); }
.install #instCp { border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; width: 120px; margin-top: 6px; }
.sign { display: flex; flex-direction: column; gap: 6px; } .sign-lbl { font-size: 12px; font-weight: 600; }
.sign canvas { width: 100%; height: 110px; border: 1.5px dashed var(--line); border-radius: 8px; background: #fff; touch-action: none; }
.order-row.lead { grid-template-columns: 1.3fr 1.3fr 1fr 1fr auto; } .order-row.lead.rem { border-color: var(--warn); background: var(--warn-bg); }
.order-row.lead select { border: 1px solid var(--line); border-radius: 6px; padding: 3px 6px; font-size: 12px; }
.spark { width: 100%; height: 28px; margin-top: 2px; }

.form-grid .wide { grid-column: 1 / -1; }

/* crédito Grup3D */
.credit { position: absolute; right: 14px; bottom: 12px; z-index: 12; display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border: 1px solid #e3e6e5; border-radius: 999px; padding: 5px 12px 5px 12px; text-decoration: none; color: #6f7679; font-size: 11px; font-weight: 600; box-shadow: 0 6px 20px rgba(20,30,32,.12); transition: .15s; }
.credit img { height: 22px; width: auto; display: block; }
.credit:hover { border-color: #c3ad8b; color: #1e2426; transform: translateY(-1px); }
body.present .credit { display: inline-flex; }
@media (max-width: 900px) { .credit span { display: none; } .credit { padding: 5px 9px; bottom: 8px; } }

.tool.dim { opacity: .45; }

.cmp-intro ol { padding-left: 20px; line-height: 1.7; font-size: 13.5px; } .cmp-intro p { font-size: 13.5px; line-height: 1.5; }
