:root{font-family:Inter,system-ui,Arial,sans-serif;color:#f3f4f6;background:#0a0b0d;font-synthesis:none;font-size:16px}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}
.hidden{display:none!important}.login-shell{min-height:100vh;background:radial-gradient(circle at 85% 18%,#241015 0,transparent 35%),#0a0b0d;padding:4vh clamp(24px,6vw,100px);display:flex;flex-direction:column}
.login-brand,.side-brand{display:flex;align-items:center;gap:14px;letter-spacing:.08em}.login-brand strong,.side-brand strong{font-size:18px}.login-brand small,.side-brand small{display:block;color:#e53239;font-size:11px;margin-top:5px;letter-spacing:.16em}
.logo-mark{width:42px;height:42px;background:#e21d25;color:white;border-radius:10px;display:grid;place-items:center;font-weight:700;font-size:27px;font-style:italic;box-shadow:0 0 26px #e21d2530}
.login-panel{width:min(460px,100%);margin:auto;background:#15171b;border:1px solid #323438;border-radius:20px;padding:clamp(28px,4vw,48px);box-shadow:0 30px 80px #0008}
.eyebrow{font-size:12px!important;letter-spacing:.16em;color:#fa4c52!important;font-weight:700}.login-panel h1{font-size:clamp(28px,3vw,39px);line-height:1.16;letter-spacing:-.03em;margin:12px 0 16px}.login-panel p{color:#adb0b6;line-height:1.6}.login-panel label{display:block;margin:20px 0;color:#e4e5e7;font-size:14px}
.login-panel input{display:block;width:100%;margin-top:8px}.login-shell footer{font-size:12px;color:#666b72;letter-spacing:.1em}
.shell{display:grid;grid-template-columns:250px minmax(0,1fr);min-height:100vh}.sidebar{background:#101115;border-right:1px solid #292b30;padding:28px 14px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}
.side-brand{padding:2px 14px 38px}.sidebar nav{display:grid;gap:5px}.nav{width:100%;border:0;color:#a9adb5;background:transparent;text-align:left;padding:13px 16px;border-radius:9px;font-size:15px}.nav span{display:inline-block;width:26px;font-size:20px;vertical-align:-2px}.nav:hover,.nav.active{color:#fff;background:#25262c}.nav.active{border-left:3px solid #ed2027;padding-left:13px}.side-foot{margin-top:auto;border-top:1px solid #292b30;padding:22px 14px 0;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:#9b9fa8}.text-button{background:none;color:#f25358;border:0;padding:4px}
main{min-width:0;background:#111216}.topbar{height:70px;border-bottom:1px solid #2b2d32;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(22px,3vw,48px);gap:12px}.topbar>div,.top-actions{display:flex;align-items:center;gap:14px}.environment{font-size:11px;letter-spacing:.1em;color:#ff6267;background:#4e2024;border-radius:5px;padding:5px 8px;font-weight:700}.breadcrumb{font-size:14px;color:#bdc0c5}.connection{font-size:13px;color:#aaa}.connection::before{content:'';display:inline-block;width:7px;height:7px;background:#39bb85;border-radius:50%;margin-right:8px}.org-pill{background:#25272c;padding:8px 12px;border-radius:7px;font-size:12px;color:#ddd}
.workspace{max-width:1560px;margin:auto;padding:clamp(22px,3vw,48px)}.heading{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:28px}.heading h1{margin:4px 0 0;font-size:clamp(27px,3vw,38px);letter-spacing:-.035em}.muted{color:#9c9fa7}.heading p{margin:8px 0 0;font-size:14px}.button{border:1px solid #46484f;background:#25272e;color:#f3f4f6;border-radius:8px;padding:11px 17px;font-size:14px;font-weight:600;min-height:42px}.button:hover{border-color:#aaa}.button.primary{background:#e52129;border-color:#e52129;color:#fff}.button.primary:hover{background:#f03138}.button.ghost{background:transparent}.button.small{padding:7px 11px;min-height:34px;font-size:13px}.button.danger{color:#ff8186;border-color:#71383c}.button:disabled{opacity:.45;cursor:not-allowed}
input,select,textarea{border:1px solid #45474d;background:#17191e;color:#f0f1f3;border-radius:8px;padding:10px 12px;min-height:42px;outline:0}input:focus,select:focus,textarea:focus{border-color:#ee333a;box-shadow:0 0 0 2px #ed202728}textarea{min-height:110px;resize:vertical}input[type=file]{padding:8px}.filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px}.filters input{min-width:240px;flex:1}.filters select{min-width:140px}.card{background:#1b1d22;border:1px solid #33353b;border-radius:12px;overflow:hidden;margin-bottom:18px}.card-head{padding:18px 22px;border-bottom:1px solid #33353b;display:flex;align-items:center;justify-content:space-between;gap:12px}.card h2{font-size:17px;margin:0}.card-body{padding:22px}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;text-align:left;min-width:720px}.table th{font-size:12px;color:#959aa4;font-weight:600;text-transform:uppercase;letter-spacing:.06em;background:#202228;padding:15px 17px}.table td{border-top:1px solid #303238;padding:15px 17px;color:#e0e1e5;font-size:14px}.table tr:hover td{background:#23252a}.table .name{font-weight:700;color:#fff}.table small{display:block;color:#9296a0;font-size:12px;margin-top:3px}.badge{display:inline-block;border-radius:5px;padding:5px 8px;font-size:12px;background:#303238;color:#c9cbd0}.badge.ACTIVE,.badge.APPLIED{color:#7cdeb6;background:#194032}.badge.DRAFT,.badge.PREVIEW_READY{color:#e6bb78;background:#453821}.badge.INACTIVE,.badge.ARCHIVED{color:#aab0ba;background:#34373e}.badge.error{color:#ff8589;background:#4a262a}
.empty{text-align:center;color:#9fa2aa;padding:55px 25px}.two-col{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.42fr);gap:20px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-grid label{display:grid;gap:7px;color:#bfc2c9;font-size:14px}.form-grid label.wide{grid-column:1/-1}.form-grid label input,.form-grid label select,.form-grid label textarea{width:100%}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:20px}.tabs{display:flex;overflow-x:auto;border-bottom:1px solid #35373c;gap:6px;margin:25px 0 20px}.tab{background:transparent;border:0;color:#a8acb3;padding:12px 15px;white-space:nowrap}.tab.active{color:#fff;border-bottom:2px solid #ed2027}.row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #32343a}.row:last-child{border-bottom:0}.row .meta{font-size:13px;color:#aaa}.preview{background:#f7f7f8;color:#141519;border-radius:12px;padding:25px}.preview h2{color:#101114;font-size:26px}.preview .hero-media{aspect-ratio:4/3;background:#e8e9eb;border:1px solid #ddd;display:grid;place-items:center;overflow:hidden;border-radius:8px}.preview .hero-media img{width:100%;height:100%;object-fit:contain}.preview .thumbs{display:flex;gap:8px;margin:10px 0}.preview .thumbs button{border:1px solid #ddd;background:#fff;border-radius:6px;width:58px;height:58px;overflow:hidden}.preview .thumbs img{width:100%;height:100%;object-fit:contain}.preview .price{font-size:23px;font-weight:700}.preview small{color:#565b61}.preview .selectors{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.preview .selectors button{background:#fff;color:#111;border:1px solid #999;border-radius:5px;padding:6px 10px}.preview .selectors button.selected{border-color:#e52129;box-shadow:0 0 0 1px #e52129}
.summary{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.summary .metric{background:#25272c;padding:13px 17px;border-radius:8px;min-width:105px}.metric strong{display:block;font-size:20px}.metric span{font-size:12px;color:#abb0b8}.error-list{color:#ff9095}.warning-list{color:#f0c87d}.form-error{color:#ff8186!important;font-size:13px!important}#toast{position:fixed;right:25px;bottom:20px;z-index:20;background:#2b2d33;border:1px solid #61646d;border-left:3px solid #e52129;border-radius:8px;box-shadow:0 15px 35px #0008;padding:12px 18px;max-width:380px;display:none}#toast.show{display:block}
@media(max-width:1024px){.shell{grid-template-columns:80px minmax(0,1fr)}.sidebar{padding:22px 8px}.side-brand{padding:2px 12px 25px}.side-brand strong,.side-brand small,.nav{font-size:0}.nav span{font-size:22px;width:auto}.side-foot span{display:none}.side-foot{justify-content:center}.nav{text-align:center}.nav.active{padding-left:13px}.two-col{grid-template-columns:1fr}.workspace{padding:26px}}
@media(max-width:650px){.shell{display:block}.sidebar{position:static;height:auto;padding:10px}.side-brand,.side-foot{display:none}.sidebar nav{display:flex;overflow-x:auto}.nav{min-width:55px;padding:7px}.nav.active{border-left:0;border-bottom:2px solid #e52129;padding:7px}.topbar{padding:0 16px;height:56px}.connection{display:none}.workspace{padding:20px 14px}.heading{align-items:start}.form-grid{grid-template-columns:1fr}.form-grid label.wide{grid-column:auto}.filters input{min-width:100%}.login-shell{padding:25px}}
#quote-calculator{display:block;width:100%;max-width:100%;min-width:0;height:clamp(720px,82vh,1100px);margin-top:20px;border:0;background:#fff;border-radius:8px}
#quote-hvac-file{max-width:100%}
@media(max-width:650px){#quote-calculator{height:clamp(640px,82vh,960px);height:clamp(640px,82svh,960px)}}

/* Etapa 2L B: one platform shell, official identity, accessible light workspace. */
:root{color:#20242a;background:#f4f5f7}.official-logo{display:block;width:174px;max-width:100%;height:auto;object-fit:contain}.side-brand{flex-direction:column;align-items:flex-start;gap:10px;padding:0 12px 30px}.side-brand .official-logo{width:178px}.side-brand .environment{font-size:10px;align-self:flex-start}.login-brand .official-logo{width:220px}.login-brand{align-items:center}.sidebar{background:#101113;border-color:#25272b}.shell>main{background:#f4f5f7;color:#222831}.topbar{background:#fff;border-bottom:1px solid #dfe3e8}.breadcrumb{color:#525b68}.org-pill{background:#f0f2f5;color:#343c48}.workspace{max-width:1560px}.heading .muted,.workspace .muted{color:#68717e}.heading h1{color:#181c22}.card{background:#fff;border-color:#dfe3e9;color:#222831;box-shadow:0 3px 16px #15213a04}.card-head{border-color:#e6e9ee}.card-head p{margin:6px 0 0;font-size:13px;color:#68717e}.workspace label{display:block;color:#3c4654;font-size:14px;margin:12px 0}.workspace label input{display:block;width:100%;margin-top:6px}.workspace input,.workspace select,.workspace textarea{background:#fafbfc;color:#202834;border-color:#ccd2db;font-size:16px;max-width:100%}.workspace input[type=checkbox]{display:inline-block;width:20px;min-height:20px;accent-color:#ed2027}.workspace .button{background:#fff;color:#343d4a;border-color:#cbd2db}.workspace .button.primary{background:#ed2027;color:white;border-color:#ed2027}.workspace .table th{background:#f5f7fa;color:#626c7b}.workspace .table td{border-color:#e4e8ee;color:#303b49}.workspace .table .name{color:#182231}.workspace .table tr:hover td{background:#fafbfc}.workspace .table small{display:block;margin-top:5px;color:#737d89}.workspace .tab{color:#596372}.workspace .tab.active{color:#c41e26}.workspace .badge{background:#f2f4f7;color:#526071}.workspace .badge.READY{background:#e4f3eb;color:#1e6841}.hvac-workspace{overflow:visible}.quote-product-row{display:grid;grid-template-columns:140px minmax(0,1fr);gap:20px;align-items:center;border:1px solid #e2e6ed;border-radius:10px;padding:14px;margin:14px 0}.product-visual{margin:0;background:#f7f8fa;border-radius:8px;padding:10px;text-align:center;color:#747e8c;font-size:11px}.product-visual img{display:block;object-fit:contain;width:100%;height:140px;max-width:100%;margin:auto}.product-visual figcaption{margin-top:7px}.product-placeholder{color:#788290}.catalog-product{display:flex;align-items:center;gap:14px}.catalog-product .product-visual{width:75px;flex:0 0 75px}.catalog-product .product-visual img{height:70px}.catalog-product figcaption{font-size:9px}.workspace>.product-visual{max-width:260px;margin-bottom:20px}.quote-sheet{border:1px solid #e1e5eb;border-radius:12px;overflow:hidden;margin:16px 0}.quote-sheet-heading{padding:24px;border-top:5px solid #ed2027;display:flex;gap:20px;justify-content:space-between}.quote-sheet-heading h2{font-size:23px}.quote-sheet-heading p{margin:5px 0}.quote-totals{max-width:360px;margin-left:auto;padding:20px}.quote-totals p{display:flex;gap:30px;justify-content:space-between}.quote-totals p:last-child{border-top:1px solid #ccd3dc;padding-top:14px;font-size:20px}.quote-sheet .table{min-width:500px}.form-error{color:#b62732}.login-panel .button{width:100%}.login-panel input{width:100%}.login-panel .button.primary{background:#ed2027}.workspace #quote-form{scroll-margin-top:20px}.workspace #quote-resolver{color:#3c5550}.workspace #quote-hvac-file{max-width:100%}
@media(max-width:950px){.shell{grid-template-columns:210px minmax(0,1fr)}.topbar{height:auto;min-height:70px;padding:16px;flex-wrap:wrap}.connection{display:none}.workspace{padding:20px}.side-brand .official-logo{width:150px}}
@media(max-width:680px){.shell{display:block}.sidebar{height:auto;position:static;padding:14px}.side-brand{padding:0 0 14px;flex-direction:row;align-items:center;justify-content:space-between}.side-brand .official-logo{width:155px}.sidebar nav{display:flex;overflow-x:auto;gap:6px;padding-bottom:8px}.sidebar .nav{width:auto;white-space:nowrap;flex:0 0 auto;padding:11px 12px;font-size:13px}.sidebar .nav.active{padding-left:9px}.side-foot{padding:12px 0 0;margin-top:4px}.topbar{padding:12px 14px}.top-actions{flex-wrap:wrap;gap:6px}.breadcrumb{font-size:12px}.workspace{padding:14px}.heading{margin-bottom:18px}.heading h1{font-size:27px}.card-body,.card-head{padding:16px}.quote-product-row{grid-template-columns:95px minmax(0,1fr);gap:12px;padding:10px}.quote-product-row .product-visual img{height:100px}.quote-sheet-heading{padding:16px;flex-wrap:wrap}.quote-sheet .table{min-width:420px}.quote-totals{max-width:100%;padding:16px}.login-brand .official-logo{width:190px}.login-brand{flex-wrap:wrap}.workspace .button{min-height:44px}.official-logo{height:auto}.workspace pre{white-space:pre-wrap;overflow-wrap:anywhere}}
