@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');
:root{font-family:'DM Sans','Inter',Arial,sans-serif;color:#181349;background:#f7f7fc;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,select{font:inherit}button{cursor:pointer}button:focus-visible,select:focus-visible{outline:3px solid #ad94ff;outline-offset:2px}.app{min-height:100vh;display:flex;max-width:1800px;margin:auto;background:linear-gradient(133deg,#fff 0%,#fafaff 35%,#f0ecff 100%)}.sidebar{width:245px;flex:none;background:linear-gradient(170deg,#fff 0%,#fff 58%,#eae3ff 100%);border-right:1px solid #e9e5f6;padding:27px 15px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{font-size:27px;letter-spacing:-1.6px;font-weight:800;color:#32138f;margin:0 8px 37px}.brand span{font-weight:500;color:#8c52ff}.section-label{font-size:10px;letter-spacing:1.5px;font-weight:800;color:#9992b1;margin:17px 13px 12px}.navbtn{display:flex;align-items:center;gap:12px;text-align:left;border:0;background:transparent;color:#27205a;border-radius:9px;padding:13px 14px;width:100%;font-weight:700;font-size:13px;margin:2px 0}.navbtn svg{width:18px;height:18px;stroke-width:1.9}.navbtn.active{background:linear-gradient(100deg,#7138d6,#4320a4);color:#fff;box-shadow:0 6px 18px #6439bb30}.navbtn:hover:not(.active){background:#f0ecfa}.nav-divider{height:1px;background:#eae7f3;margin:15px 8px}.sidebar-footer{margin-top:auto;color:#8b85a5;font-size:11px;padding:14px 9px;line-height:1.6}.main{flex:1;min-width:0}.topbar{height:76px;background:#ffffffcf;display:flex;align-items:center;justify-content:space-between;padding:0 34px;border-bottom:1px solid #e9e6f4;gap:12px}.titlelock{display:flex;align-items:center;gap:16px}.titlelock b{font-size:24px;letter-spacing:-.9px}.topline{width:1px;height:26px;background:#d0c5e9}.topright{display:flex;align-items:center;gap:15px}.tenant,.demo-label{padding:9px 13px;border:1px solid #e7e2f2;border-radius:9px;background:#fff;color:#534a7d;font-size:12px;font-weight:700}.demo-label{background:#f0eaff;color:#5c30b2;border-color:#e6d9ff}.avatar{height:35px;width:35px;background:#e9dcff;color:#5a2bbc;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:800}.content{padding:27px 29px 42px}.intro{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;margin-bottom:23px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:800;color:#7549cb;text-transform:uppercase;margin-bottom:8px}.intro h1{font-size:30px;line-height:1.14;margin:0 0 8px;letter-spacing:-1.15px}.sub{font-size:13px;color:#777094;line-height:1.55;margin:0}.select{border:1px solid #ded8ec;border-radius:9px;color:#42386d;padding:10px 12px;background:#fff;font-size:12px;font-weight:700}.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:19px}.kpi,.panel{background:#fff;border:1px solid #e9e6f4;box-shadow:0 8px 22px #22204a09;border-radius:15px}.kpi{padding:18px 18px;min-height:126px}.kpi-head{display:flex;align-items:center;gap:10px;color:#453b71;font-size:12px;font-weight:700}.iconbox{width:39px;height:39px;display:grid;place-items:center;flex:none;border-radius:12px;background:#f0e9ff;color:#642bc6}.iconbox svg{width:22px;height:22px;stroke-width:1.9}.kpi strong{font-size:29px;letter-spacing:-1px;display:block;margin:12px 0 3px}.kpi small{color:#80789d;font-size:11px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:26px 0 13px}.section-heading h2{font-size:18px;letter-spacing:-.6px;margin:0}.section-heading p{margin:4px 0 0;color:#857d9d;font-size:12px}.linkbutton{border:1px solid #d5c6f4;color:#6030b9;background:#fff;border-radius:9px;padding:9px 12px;font-weight:800;font-size:12px}.linkbutton:hover{background:#f5f0ff}.twocol{display:grid;grid-template-columns:1fr 1fr;gap:16px}.panel{padding:20px;min-width:0}.panel-title{font-size:15px;letter-spacing:-.3px;font-weight:800;margin:0 0 4px}.panel-sub{color:#8881a3;font-size:11px;margin:0 0 13px;line-height:1.55}.panel-head{display:flex;justify-content:space-between;align-items:start;gap:10px}.tag{display:inline-flex;align-items:center;border-radius:20px;padding:5px 9px;background:#f2edff;color:#6534bd;font-weight:800;font-size:10px;white-space:nowrap}.legend{display:flex;align-items:center;gap:15px;justify-content:center;font-size:11px;color:#70698b;flex-wrap:wrap}.key{height:9px;width:9px;border-radius:3px;display:inline-block;margin-right:5px;background:#8c52ff}.key.line{background:#a6a0ae}.radar{width:100%;height:300px;display:block}.radar text{font-family:inherit;font-weight:700;font-size:11px;fill:#49416a}.radar .axis{stroke:#e8e3f2;stroke-width:1}.radar .ring{fill:none;stroke:#e8e3f2;stroke-width:1}.radar .target{fill:none;stroke:#aea4bf;stroke-width:2;stroke-dasharray:5 5}.radar .value{fill:#8c52ff25;stroke:#7a42d9;stroke-width:2.5}.matrix-svg{width:100%;height:290px;display:block}.matrix-svg text{font-family:inherit;fill:#5d537a;font-size:10px}.matrix-svg .quadrant{font-weight:800;font-size:10px}.note{font-size:11px;color:#8981a3;line-height:1.5;margin-top:11px}.product-list{display:flex;flex-direction:column;gap:13px}.product-row{display:grid;grid-template-columns:130px 1fr 47px;gap:11px;align-items:center;font-size:12px}.product-row b{font-size:12px}.track{height:9px;background:#eae7f4;border-radius:20px;overflow:hidden}.fill{height:100%;background:linear-gradient(90deg,#bda3ff,#713bdd);border-radius:20px}.product-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:12px 0 20px}.microstat{background:#f7f4ff;border-radius:10px;padding:12px 9px}.microstat strong{font-size:19px;display:block;color:#4924aa}.microstat span{font-size:10px;color:#82799c}.funnel{display:flex;flex-direction:column;gap:13px;margin-top:15px}.funnel-row{display:grid;grid-template-columns:1fr 56px;gap:9px;align-items:center}.funnel-row-label{font-size:11px;font-weight:700;color:#50466e;margin-bottom:5px}.funnel-row strong{text-align:right;color:#33245f;font-size:12px}.funnel-badge{border-radius:8px;background:#f1ebff;color:#5f2cb8;padding:13px;text-align:center;margin-top:14px}.funnel-badge strong{font-size:23px;display:block}.funnel-badge span{font-size:11px}.approval-line{padding:12px 0;border-bottom:1px solid #f0edf7;display:flex;align-items:center;gap:11px}.approval-line:last-child{border:0}.approval-line .info{min-width:0;flex:1}.approval-line b{font-size:12px;display:block;line-height:1.5}.approval-line span{font-size:11px;color:#8d85a5}.approval-line .tag{margin-left:auto}.section-wide{margin-top:16px}.operations-banner{background:linear-gradient(110deg,#28166f,#6934bc);color:#fff;border-radius:15px;padding:18px 22px;display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:18px}.operations-banner h3{font-size:17px;margin:0 0 6px}.operations-banner p{font-size:12px;color:#e6dafa;margin:0}.operations-banner button{background:#fff;border:0;border-radius:9px;color:#4d21a0;padding:12px 14px;font-weight:800;font-size:12px;white-space:nowrap}.notice{background:#fff7df;color:#715c21;border:1px solid #f0dfac;padding:11px 14px;font-size:12px;border-radius:10px;margin-bottom:16px}.placeholder{max-width:950px}.placeholder h2{font-size:22px;margin:0 0 8px}.placeholder p{color:#80799b;line-height:1.6}.mocktable{width:100%;border-collapse:collapse;font-size:12px}.mocktable th{text-align:left;font-size:11px;color:#796f95;background:#f7f4fd;padding:13px}.mocktable td{padding:14px 13px;border-bottom:1px solid #eeeaf5}.back{border:0;background:#eee6ff;color:#5a29b3;padding:10px 15px;border-radius:8px;font-weight:800}.tabs{display:flex;gap:9px;flex-wrap:wrap;margin:13px 0}.tabs button{border:1px solid #dfd6f0;background:#fff;padding:8px 12px;border-radius:8px;color:#513b7a;font-size:12px}.tabs button.selected{background:#5f2cb9;color:#fff}.mobilebrand{display:none}.mobiletoggle{display:none}@media(max-width:1180px){.sidebar{width:205px}.topbar{padding:0 19px}.content{padding:22px 19px}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:800px){.sidebar{position:fixed;z-index:10;left:-255px;top:0;transition:left .2s;box-shadow:0 0 18px #0001}.sidebar.open{left:0}.mobiletoggle{display:inline-grid;place-items:center;border:0;background:#f0eaff;color:#542ab0;border-radius:8px;width:36px;height:36px}.topbar{height:65px}.topbar .titlelock b{font-size:18px}.topline{display:none}.tenant{display:none}.mobilebrand{display:none}.twocol{grid-template-columns:1fr}.content{padding:19px 14px 34px}.intro{align-items:start;flex-direction:column}.intro h1{font-size:25px}.overlay{position:fixed;inset:0;background:#1d124457;z-index:9}.operations-banner{align-items:start;flex-direction:column}}@media(max-width:500px){.kpis{gap:9px}.kpi{padding:13px;min-height:120px}.kpi strong{font-size:24px}.kpi-head{gap:6px;font-size:11px}.iconbox{width:32px;height:32px}.iconbox svg{width:19px}.topright .avatar{display:none}.demo-label{font-size:10px;padding:8px}.product-row{grid-template-columns:100px 1fr 38px;font-size:11px}.product-summary{gap:5px}.microstat{padding:9px 7px}.microstat strong{font-size:17px}.panel{padding:15px}}

/* v0.1.1 – Accessibilidad tipográfica: lectura cómoda en laptop y monitor */
.section-label,.eyebrow{font-size:12px;color:#61537e}
.navbtn{font-size:16px;line-height:1.4}
.sidebar-footer{font-size:13px;color:#655c81}
.tenant,.demo-label,.select,.linkbutton,.tag{font-size:14px}
.sub,.section-heading p,.operations-banner p,.notice,.placeholder p{font-size:16px;color:#595071;line-height:1.55}
.notice{color:#6e541b}
.intro h1{font-size:32px}
.section-heading h2{font-size:23px}
.kpi-head{font-size:15px}
.kpi strong{font-size:32px}
.kpi small{font-size:14px;color:#5e547b;line-height:1.45;display:block}
.kpi{min-height:148px}
.panel-title{font-size:19px}
.panel-sub{font-size:15px;color:#62587d}
.panel{padding:22px}
.radar{height:345px}
.radar text{font-size:13px}
.matrix-svg{height:340px}
.matrix-svg text{font-size:13px;fill:#41375f}
.matrix-svg .quadrant{font-size:12px}
.matrix-svg .matrix-label{font-size:11px;font-weight:750}
.note{font-size:14px;color:#675e81;line-height:1.55}
.legend{font-size:14px;color:#4d4268}
.product-row{font-size:15px;grid-template-columns:minmax(120px,150px) 1fr 50px}
.product-row b,.funnel-row strong{font-size:15px}
.microstat strong{font-size:24px}
.microstat span,.funnel-row-label,.funnel-badge span{font-size:14px;color:#574d78}
.funnel-row{grid-template-columns:1fr 67px}
.operations-banner h3{font-size:20px}
.operations-banner p{color:#eee6fc}
.operations-banner button,.tabs button,.mocktable{font-size:15px}
.mocktable th,.approval-line b,.approval-line span{font-size:14px}
@media(max-width:1450px){.twocol{grid-template-columns:1fr}.radar{max-width:650px;margin:auto}.matrix-svg{max-width:650px;margin:auto}}
@media(max-width:800px){.intro h1{font-size:28px}.kpi-head{font-size:14px}.radar{height:auto}.matrix-svg{height:auto}.panel{padding:18px}.kpis{gap:12px}}
@media(max-width:500px){.kpis{grid-template-columns:1fr}.kpi{min-height:0}.kpi-head{font-size:15px}.kpi small{font-size:14px}.product-row{grid-template-columns:minmax(110px,1fr) 1fr 43px;font-size:14px}.intro h1{font-size:26px}}

/* v0.1.2: matriz legible, leyenda y vistas de consulta */
.matrix-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(210px,.85fr);gap:14px;align-items:center;margin-top:12px}
.matrix-svg{height:auto;max-width:100%}.matrix-svg .matrix-grid{stroke:#d6d0df;stroke-width:.65}.matrix-svg .matrix-tick{font-size:10px;fill:#736989}.matrix-svg .matrix-axis-title{font-size:13px;fill:#40325f;font-weight:700}.matrix-svg .matrix-number{font-size:13px;fill:white;font-weight:800}
.matrix-key{display:flex;flex-direction:column;gap:7px}.matrix-key-title{font-weight:800;font-size:15px;margin-bottom:4px}.matrix-key-row{display:flex;align-items:center;gap:9px;padding:7px 8px;background:#f8f6fd;border-radius:8px}.matrix-key-row strong{display:block;font-size:13px;line-height:1.3}.matrix-key-row small{display:block;font-size:12px;color:#645a82;margin-top:2px}.matrix-number-dot{background:#7544d3;flex:none;color:white;border-radius:50%;width:25px;height:25px;display:grid;place-items:center;font-size:12px;font-weight:800}
.full-page{max-width:none}.filter-bar{display:flex;gap:15px;align-items:end;flex-wrap:wrap;margin-bottom:18px}.filter-bar label{display:flex;flex-direction:column;gap:7px;font-size:15px;font-weight:700;color:#40355f}.filter-bar .select{min-width:230px}.count-label{font-size:14px;color:#625879;padding-bottom:10px;margin-left:auto}.table-wrap{overflow-x:auto}.mocktable{min-width:720px;font-size:15px}.mocktable th{font-size:14px}.mocktable td{font-size:15px}.status{display:inline-flex;padding:5px 10px;border-radius:16px;font-weight:700;font-size:13px}.status.active{background:#e8f6ec;color:#25623a}.status.inactive{background:#f2ecf0;color:#665964}.previewbtn{border:1px solid #d7c9f1;background:#f5f0ff;color:#5e2fb5;border-radius:9px;padding:7px;display:inline-grid;place-items:center}.previewbtn:hover{background:#e9dfff}.modal-backdrop{position:fixed;inset:0;background:#130d3566;display:grid;place-items:center;z-index:30;padding:20px}.modal-panel{background:white;border-radius:16px;padding:28px;max-width:560px;width:100%;position:relative;box-shadow:0 22px 60px #15102b36}.modal-panel h2{font-size:25px}.modal-panel p{font-size:16px;line-height:1.5}.modal-close{position:absolute;right:16px;top:12px;border:0;background:none;font-size:30px;color:#52446f}
@media(max-width:1350px){.matrix-layout{grid-template-columns:1fr}.matrix-svg{max-width:600px;margin:auto}.matrix-key{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.matrix-key-title{grid-column:1/-1}}
@media(max-width:600px){.matrix-key{grid-template-columns:1fr}.filter-bar label,.filter-bar .select{width:100%;min-width:0}.count-label{margin-left:0}.panel-head{flex-wrap:wrap}.panel-head .select{max-width:100%}}

/* v0.1.3: Explorador estratégico de solo lectura */
.analysis-workbench{max-width:none}.analysis-workbench h2{font-size:30px;margin:5px 0}.analysis-workbench>p{font-size:16px;color:#5d537d;line-height:1.5}
.analysis-mode-tabs{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:20px}.analysis-mode-tabs button{border:1px solid #d8c8f2;background:#faf8ff;color:#3a246e;font-size:15px;font-weight:700;padding:12px 16px;border-radius:10px;cursor:pointer}.analysis-mode-tabs button.selected{background:#5525b9;border-color:#5525b9;color:white}
.analysis-controls{display:flex;align-items:end;gap:13px;flex-wrap:wrap}.analysis-controls label{display:grid;gap:6px;font-size:14px;font-weight:700;color:#4b3e70}.analysis-controls .select{font-size:15px;min-width:150px;max-width:260px}.analysis-secondary{border:1px solid #cdb9ef;color:#5123aa;background:white;font-size:14px;font-weight:750;border-radius:9px;padding:11px 14px;cursor:pointer}.analysis-secondary:disabled{opacity:.4;cursor:not-allowed}.analysis-secondary:hover:not(:disabled){background:#f3edff}.analysis-search{padding:11px;border:1px solid #ddd3eb;border-radius:9px;font-size:15px;min-width:240px}.analysis-context{font-size:14px;color:#645879;padding-bottom:12px}.analysis-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:12px;margin:16px 0}.analysis-metric{background:white;border:1px solid #e8e0f3;border-radius:13px;padding:18px;min-height:115px}.analysis-metric span{display:block;color:#594b79;font-size:14px;font-weight:700;line-height:1.35}.analysis-metric strong{display:block;font-size:26px;color:#5022a6;margin-top:12px}.analysis-panel-heading{display:flex;justify-content:space-between;align-items:start;gap:14px;flex-wrap:wrap;margin-bottom:16px}.analysis-axis-controls{margin-bottom:15px}.analysis-scroll{overflow:auto;max-height:570px;border:1px solid #e6dff0;border-radius:10px}.analysis-pivot,.analysis-detail{border-collapse:collapse;width:100%;font-size:14px;min-width:830px}.analysis-pivot th,.analysis-detail th{background:#f5f1fb;color:#35225e;padding:13px;text-align:left;position:sticky;top:0;z-index:1;min-width:125px}.analysis-pivot td,.analysis-detail td{border-top:1px solid #ebe6f3;padding:9px 12px}.analysis-pivot tbody th{background:#fff;font-size:14px;position:sticky;left:0;z-index:1;min-width:200px}.analysis-pivot td{text-align:center}.analysis-pivot thead th:first-child{left:0;z-index:3}.analysis-pivot tr.analysis-total th,.analysis-pivot tr.analysis-total td{background:#eee7ff;font-weight:800}.analysis-cell{width:100%;min-height:39px;padding:8px 10px;border:1px solid transparent;border-radius:7px;color:#5127a7;background:#f0e9ff;font-weight:800;cursor:pointer;font-size:14px;white-space:nowrap}.analysis-cell:hover,.analysis-cell.selected{background:#5728be;color:white}.analysis-cell:disabled{opacity:.3;cursor:not-allowed}.analysis-detail td{white-space:nowrap}.analysis-detail tbody tr:nth-child(even){background:#fbfaff}
@media(max-width:750px){.analysis-workbench h2{font-size:26px}.analysis-controls label,.analysis-controls .select{width:100%;max-width:none}.analysis-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.analysis-panel-heading .analysis-secondary{width:100%}.analysis-mode-tabs button{flex:1 1 100%}}

/* v0.1.4: Operaciones, revisión por material/version, campos de comentarios */
.ops-workbench h2{font-size:30px}.ops-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:18px 0}.ops-summary>div{background:#fff;border:1px solid #e7def2;border-radius:13px;padding:17px;display:flex;flex-direction:column;gap:6px}.ops-summary strong{font-size:27px;color:#5126aa}.ops-summary span{font-size:15px;color:#62567a}.ops-filters{margin-bottom:17px}.ops-scroll{max-height:none}.ops-table{width:100%;min-width:1100px;border-collapse:collapse;font-size:15px}.ops-table th{position:sticky;top:0;background:#f6f2fc;color:#37215e;padding:15px 12px;text-align:left;z-index:1;font-size:14px}.ops-table td{padding:15px 12px;border-top:1px solid #eee8f5;vertical-align:middle;line-height:1.4}.ops-table td:nth-child(3){min-width:220px}.ops-table td:nth-child(6){min-width:230px}.ops-table small{display:block;color:#756889;font-size:13px;margin-top:5px}.approval-status{font-size:13px;font-weight:750;padding:6px 10px;border-radius:12px;display:inline-block;white-space:nowrap}.approval-status.pending{background:#efe8ff;color:#5527aa}.approval-status.adjust{background:#fff0e6;color:#8d4a21}.approval-status.approved{background:#e6f5ed;color:#236740}.ops-comment{font-family:inherit;font-size:15px;line-height:1.45;color:#30244b;width:100%;min-height:80px;resize:vertical;border:1px solid #d9cfea;border-radius:9px;padding:11px;background:#fff}.ops-comment:focus{outline:2px solid #9c80e9;outline-offset:1px}.ops-comment[readonly]{background:#f8f5fa;color:#6d5e77}.ops-actions{display:flex;flex-direction:column;gap:8px;align-items:stretch}.ops-actions button{border-radius:9px;padding:10px 12px;font-size:14px;font-weight:750;white-space:nowrap;cursor:pointer}.ops-approve{background:#5b28b7;border:1px solid #5b28b7;color:#fff}.ops-reject{background:#fff;color:#6d377f;border:1px solid #d3b9db}.ops-locked{font-size:13px;color:#786b89}.ops-empty{padding:26px!important;text-align:center;color:#685b7e}.ops-feedback{margin-top:15px;padding:13px 15px;border-radius:9px;background:#eee7ff;color:#4d268c;font-size:15px}.ops-modal{max-width:670px}.ops-preview-faux{background:linear-gradient(135deg,#eee7ff,#faf8ff);border-radius:13px;min-height:185px;padding:30px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#5630ad;text-align:center}.ops-preview-faux svg{width:36px;height:36px}.ops-preview-faux b{font-size:18px}.ops-preview-faux span{font-size:15px;color:#5f5576;max-width:430px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(max-width:800px){.ops-summary{grid-template-columns:1fr}.ops-workbench h2{font-size:26px}}

/* v0.1.5 - Revisor UMA */
.ops-table{min-width:1380px}.ops-table td:nth-child(6){min-width:145px}.ops-table td:nth-child(7){min-width:230px}.zip-load,.review-uma-btn{font-size:14px;font-weight:700;line-height:1.3;font-family:inherit;border-radius:9px;cursor:pointer;padding:11px 13px;background:#fff;color:#5523a8;border:1px solid #cbb7ed;white-space:nowrap}.review-uma-btn{background:#5926b7;color:#fff;border-color:#5926b7;display:inline-flex;align-items:center;gap:6px}.review-uma-btn svg{width:16px;height:16px}.review-uma-btn.secondary{background:white;color:#5627b4}.zip-load:disabled,.review-uma-btn:disabled{opacity:.45;cursor:not-allowed}.zip-indicator{max-width:175px;white-space:normal;word-break:break-word}
.uma-backdrop{position:fixed;inset:0;z-index:3000;background:#19112b99;display:flex;align-items:center;justify-content:center;padding:14px}.uma-dialog{width:min(1240px,100%);height:min(95vh,1000px);display:flex;flex-direction:column;background:#fff;border-radius:20px;box-shadow:0 25px 80px #12082355;overflow:hidden}.uma-header{background:linear-gradient(110deg,#faf7ff,#eee7ff);padding:20px 28px;display:flex;justify-content:space-between;gap:15px}.uma-header h2{font-size:23px;margin:5px 0;color:#25104e}.uma-header p{font-size:14px;color:#625778;margin:4px 0}.uma-close{font-size:32px;border:0;background:none;color:#51317e;cursor:pointer}.uma-tabbar{display:flex;gap:8px;flex-wrap:wrap;padding:12px 25px;border-bottom:1px solid #eee5f7}.uma-tabbar button{padding:10px 14px;border:1px solid #ddd1f1;border-radius:9px;background:white;color:#4f2d84;font-size:15px;font-weight:700;cursor:pointer}.uma-tabbar button.active{background:#5b28b7;color:white;border-color:#5b28b7}.uma-body{padding:24px;overflow-y:auto;flex:1;min-height:0}.uma-story-grid{display:grid;grid-template-columns:210px minmax(0,1fr);gap:18px}.uma-scene-list{display:flex;flex-direction:column;gap:7px}.uma-scene-list button{border-radius:10px;border:1px solid #e4dbf0;background:#faf8fd;padding:12px;text-align:left;font-size:15px;font-weight:700;color:#463369;cursor:pointer}.uma-scene-list button.active{background:#f0e7ff;border-color:#8c52ff}.uma-scene-list small{display:block;font-size:13px;color:#655776;margin-top:5px;font-weight:400}.uma-scene-content h3,.uma-question h3,.uma-final h3{font-size:21px;margin:0 0 15px}.uma-field{background:#f8f5fd;border:1px solid #ebe4f3;border-radius:12px;margin:10px 0;padding:16px;font-size:15px;color:#34264a;line-height:1.6;white-space:pre-wrap}.uma-field b{display:block;font-size:15px;margin-bottom:7px;color:#4f269e}.uma-field p{margin:0}.uma-comment-label{font-size:15px;color:#432c67;font-weight:700;display:block;margin-top:14px}.uma-comment-label textarea{font-size:16px;font-weight:400;line-height:1.5;font-family:inherit;display:block;width:100%;margin-top:9px;resize:vertical;padding:12px;border:1px solid #d9caed;border-radius:9px;min-height:90px}.uma-actionrow{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;align-items:center;margin-top:15px}.uma-actionrow button{font-size:15px;padding:11px 17px;border-radius:10px;cursor:pointer}.uma-actionrow button:disabled{opacity:.45;cursor:not-allowed}.uma-footer{padding:13px 25px;border-top:1px solid #ede7f4;display:flex;justify-content:space-between;align-items:center;gap:10px}.uma-footer>span{font-size:14px;color:#665a78}.uma-footer .uma-actionrow{margin:0}.uma-playback{display:flex;justify-content:center;align-items:start;gap:25px;flex-wrap:wrap}.uma-screen{position:relative;width:min(335px,100%);aspect-ratio:9/16;background:#251451;border-radius:16px;overflow:hidden}.uma-screen img{width:100%;height:100%;object-fit:cover}.uma-overlay{position:absolute;bottom:5%;left:7%;right:7%;text-align:center;background:#1b0f39bf;border-radius:12px;padding:13px;color:white}.uma-screen-text{font-size:19px;font-weight:750}.uma-reforce{font-size:15px;margin-top:9px}.uma-playback-controls{padding:20px;max-width:500px;flex:1;min-width:250px}.uma-playback-controls audio{width:100%;margin-top:16px}.uma-question-index{font-size:15px;color:#7848b4;font-weight:750}.uma-options{display:grid;gap:9px;margin:15px 0}.uma-option{border:1px solid #e5ddef;border-radius:9px;padding:13px;font-size:16px}.uma-option.correct{border-color:#7cba90;background:#eaf8ef}.uma-option strong{color:#236740;font-size:13px;margin-left:10px}.uma-notice{background:#fff1dc;border-radius:9px;padding:14px;font-size:15px;color:#70472d}
@media(max-width:700px){.uma-dialog{height:98vh}.uma-header{padding:14px}.uma-tabbar{padding:9px}.uma-tabbar button{font-size:13px;padding:9px}.uma-body{padding:12px}.uma-story-grid{grid-template-columns:1fr}.uma-scene-list{display:flex;flex-direction:row;overflow:auto}.uma-scene-list button{min-width:120px}.uma-footer{padding:10px;flex-direction:column;align-items:stretch}.uma-footer .uma-actionrow{justify-content:center}}

.uma-screen img{object-fit:contain}

/* v0.1.6: La revisión muestra solo el resultado visual final, nunca prompts internos de generación. */
.uma-story-visual{display:flex;align-items:center;gap:20px;background:#f8f5fd;border:1px solid #ebe4f3;border-radius:12px;padding:14px;margin:10px 0 18px}.uma-story-visual-image{width:145px;min-width:145px;aspect-ratio:9/16;background:#eee8f9;border-radius:10px;overflow:hidden;display:flex;justify-content:center;align-items:center}.uma-story-visual-image img{width:100%;height:100%;object-fit:cover}.uma-story-visual-image img[hidden]{display:none}.uma-story-visual-image span{font-size:13px;color:#615779;padding:12px;text-align:center}.uma-story-visual-caption{font-size:15px;color:#514069;line-height:1.55}.uma-story-visual-caption b{font-size:16px;color:#4f269e}.uma-story-visual-caption p{margin:6px 0 0}@media(max-width:550px){.uma-story-visual{flex-direction:column;align-items:flex-start}.uma-story-visual-image{width:120px;min-width:120px}}

/* RPR revisión conceptual */
.rpr-review-body{display:grid;gap:16px;max-width:980px;margin:auto}.rpr-review-body h3{margin:8px 0 0;font-size:19px}.rpr-chips{display:flex;flex-wrap:wrap;gap:8px}.rpr-chips span{background:#f0ebfc;color:#4a248e;padding:9px 12px;border-radius:9px;font-size:15px;font-weight:600}.rpr-conversation{display:grid;gap:12px;max-height:440px;overflow:auto}.rpr-turn{border:1px solid #e5ddf5;background:#fcfaff;padding:14px;border-radius:12px}.rpr-turn b{color:#4f2d99;font-size:15px}.rpr-turn p{font-size:16px;line-height:1.6;margin:6px 0 0;white-space:pre-wrap}.rpr-review-body .uma-field p{white-space:pre-wrap;line-height:1.65}.rpr-review-body .uma-field{font-size:16px}

/* v0.1.8 · Evidencia RPR independiente y presentación centrada en el médico */
.evidence-load{display:block;margin-top:10px;white-space:normal;text-align:center;min-width:145px}
.rpr-help{color:#655c79;font-size:15px;line-height:1.65;margin:4px 0 12px}
.rpr-chat{display:flex;flex-direction:column;gap:14px;max-height:65vh;overflow:auto;padding:16px;background:#f7f5fc;border:1px solid #ebe6f3;border-radius:15px}
.rpr-bubble{padding:15px 18px;max-width:86%;border-radius:16px;box-shadow:0 3px 9px #2412550a}
.rpr-bubble.rep{align-self:flex-end;background:#eae0ff;border-bottom-right-radius:5px}
.rpr-bubble.doctor{align-self:flex-start;background:white;border:1px solid #e6dff0;border-bottom-left-radius:5px}
.rpr-speaker{font-size:14px;font-weight:800;color:#5b2aaa;margin-bottom:7px}
.rpr-bubble.doctor .rpr-speaker{color:#3d3365}
.rpr-bubble p{margin:0;white-space:pre-wrap;font-size:16px;line-height:1.65}
.rpr-challenge{display:flex;gap:14px;align-items:flex-start;background:#faf8ff;border:1px solid #e8e1f6;border-radius:13px;padding:18px}
.rpr-challenge-index{background:#eee4ff;color:#5d2eaf;font-size:16px;font-weight:800;width:37px;height:37px;border-radius:10px;display:grid;place-items:center;flex:none}
.rpr-challenge b{font-size:15px;color:#57329d}.rpr-challenge p{font-size:16px;line-height:1.65;margin:7px 0 0}
.rpr-empty-evidence{padding:22px;background:#f8f6fd;border:1px dashed #cfbfed;border-radius:12px;color:#695c83;font-size:16px;line-height:1.6}
.editorial-label{display:block;margin-top:9px;font-size:12px;color:#76618f}
@media(max-width:650px){.rpr-bubble{max-width:95%}.rpr-chat{padding:9px}.rpr-bubble p{font-size:15px}}

/* ==============================================
   TreniLab Portal Cliente v0.1.9 — Identidad compartida
   Una sola capa visual para todas las páginas.
   ============================================== */
:root{--tl-blue:#00167A;--tl-navy:#081769;--tl-purple:#8C52FF;--tl-purple-strong:#873DFA;--tl-ink:#07165f;--tl-muted:#687394;--tl-line:#e1def5;--tl-lavender:#eee9ff;--tl-radius:22px;--tl-shadow:0 12px 32px rgba(27,25,112,.085)}
body{background:#eeeefe;color:var(--tl-ink)}
.app{max-width:none;min-height:100vh;background:transparent;isolation:isolate}
.sidebar{width:238px;z-index:3;color:white;background:radial-gradient(ellipse 230px 300px at -80px 110%,rgba(147,95,255,.75),transparent 79%),radial-gradient(ellipse at 110% 105%,rgba(128,88,248,.32),transparent 64%),linear-gradient(155deg,#1b2063 0%,#10175b 52%,#06145c 100%);border-right:0;padding:26px 14px;overflow:hidden;box-shadow:5px 0 24px rgba(12,18,80,.12)}
.sidebar:before{content:"";position:absolute;width:310px;height:310px;left:-145px;bottom:-110px;border:1px solid rgba(255,255,255,.17);border-radius:44% 56% 47% 53%;transform:rotate(-20deg);pointer-events:none}
.sidebar .brand{color:#fff;font-size:27px;font-weight:800;margin-bottom:34px}
.sidebar .brand span{color:#c7adff}
.sidebar .section-label{color:#aaa9dd;font-size:11px}
.navbtn{color:#f0edff;font-size:16px;border-radius:15px;margin:4px 0;padding:14px;transition:background .15s,transform .15s}
.navbtn.active{background:linear-gradient(110deg,#9855ff,#7136f2);color:#fff;box-shadow:0 9px 18px rgba(8,8,60,.17)}
.navbtn:hover:not(.active){background:rgba(255,255,255,.12);transform:translateX(2px)}
.nav-divider{background:rgba(255,255,255,.16)}
.sidebar-footer{color:#c3c1e8;font-size:13px;border-top:1px solid rgba(255,255,255,.15);padding:18px 10px 4px}
.main{position:relative;z-index:1;min-height:100vh;background:radial-gradient(ellipse 410px 300px at 104% 8%,rgba(140,82,255,.24),transparent 75%),radial-gradient(ellipse 380px 340px at 97% 97%,rgba(150,98,255,.19),transparent 77%),radial-gradient(ellipse 380px 280px at 4% 97%,rgba(104,98,245,.12),transparent 80%),linear-gradient(126deg,#fbfbff 0%,#f5f2ff 48%,#eae7ff 100%)}
.main:before{content:"";position:absolute;right:0;top:12px;width:min(54vw,740px);height:280px;background:linear-gradient(135deg,rgba(183,151,255,.15),rgba(125,118,253,.18));border-radius:41% 59% 72% 28% / 56% 45% 55% 44%;transform:rotate(-10deg) translate(7%,-35%);pointer-events:none;z-index:-1}
.main:after{content:"";position:absolute;right:0;bottom:0;width:320px;height:310px;border-radius:80% 20% 34% 66%;background:linear-gradient(145deg,rgba(145,83,255,.13),rgba(150,166,250,.04));pointer-events:none;z-index:-1}
.topbar{background:rgba(255,255,255,.8);backdrop-filter:blur(12px);height:77px;border-bottom:1px solid rgba(203,193,240,.62);box-shadow:0 1px 14px rgba(35,39,128,.03)}
.topbar .titlelock b{font-size:24px;color:var(--tl-ink)}
.topline{background:var(--tl-purple);height:28px;width:3px;border-radius:4px}
.tenant{display:flex;gap:8px;align-items:center;color:var(--tl-ink);font-size:15px;border-radius:13px;border-color:#ded8f6;box-shadow:0 3px 14px rgba(40,33,137,.04)}
.tenant svg{width:17px;height:17px}
.avatar{background:var(--tl-blue);color:#fff;width:42px;height:42px;font-size:13px;box-shadow:0 5px 14px rgba(0,22,122,.2)}
.content{position:relative;padding:29px 30px 54px;max-width:1750px;margin:auto}
.intro h1,.placeholder h2,.analysis-workbench h2,.ops-workbench h2{color:var(--tl-ink);font-weight:800;letter-spacing:-.9px}
.intro h1{font-size:34px}
.eyebrow{color:var(--tl-purple-strong);font-size:13px;letter-spacing:1.5px}
.sub,.placeholder>p,.analysis-workbench>p,.ops-workbench>p{color:#697493;font-size:16px}
.kpi,.panel{border-radius:var(--tl-radius);border:1px solid rgba(225,219,250,.9);box-shadow:var(--tl-shadow);background:rgba(255,255,255,.90)}
.panel{padding:24px;backdrop-filter:blur(5px)}
.kpi{position:relative;overflow:hidden;padding:22px;min-height:160px}
.kpi .kpi-head{font-size:16px;line-height:1.35;font-weight:800}
.kpi strong{font-size:36px;margin:12px 0 3px}
.kpi small{font-size:14px;line-height:1.4}
.home-page .kpis .kpi:nth-child(1){background:linear-gradient(125deg,#984bff,#8028f4);border-color:#984bff;color:#fff;box-shadow:0 12px 26px rgba(135,61,249,.2)}
.home-page .kpis .kpi:nth-child(2){background:linear-gradient(125deg,#1730a3 0%,#00167A 75%);border-color:#213ba4;color:#fff;box-shadow:0 12px 26px rgba(0,22,122,.18)}
.home-page .kpis .kpi:nth-child(3){background:linear-gradient(120deg,#f9f7ff,#e7ddff)}
.home-page .kpis .kpi:nth-child(4){background:rgba(255,255,255,.8)}
.home-page .kpis .kpi:nth-child(-n+2) .kpi-head,.home-page .kpis .kpi:nth-child(-n+2) small{color:#fff}
.home-page .kpis .kpi:nth-child(-n+2) .iconbox{color:#fff;background:rgba(255,255,255,.20);border:1px solid rgba(255,255,255,.3)}
.home-page .kpis .kpi:nth-child(-n+2):after{content:"↗";position:absolute;right:16px;bottom:2px;font-size:76px;color:rgba(255,255,255,.14);font-weight:800;transform:rotate(-7deg);pointer-events:none}
.home-page .kpis .kpi:nth-child(n+3) .iconbox{background:#e4d6ff;color:#662cc7}
.panel-title{font-size:21px;color:#111b6f;line-height:1.25}
.panel-sub{font-size:15px;color:#65708d}
.select,.analysis-search{border-radius:11px;border-color:#d9d7f0;padding:11px 13px;color:var(--tl-ink);font-size:15px}
.section-heading h2{font-size:23px;color:#101965}.section-heading p{font-size:15px;color:#64708e}
.twocol{gap:18px}
.home-page .strategy-grid .panel{min-height:430px}
.home-page .insights-grid .panel{min-height:365px}
.home-page .product-panel{background:linear-gradient(144deg,#253aaa 0%,#0c237e 40%,#06165c 100%);color:white;border-color:#344baa;box-shadow:0 14px 35px rgba(0,22,122,.2)}
.product-panel .panel-title,.product-panel .panel-sub{color:white}
.product-panel .select{background:rgba(255,255,255,.12);color:white;border-color:rgba(255,255,255,.32)}
.product-panel .select option{color:#111b6f;background:white}
.product-panel .microstat{background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.12)}
.product-panel .microstat strong,.product-panel .microstat span{color:#fff}
.product-panel .product-row{grid-template-columns:minmax(135px,160px) minmax(0,1fr) 50px;color:white;font-size:15px}
.product-panel .product-row .track{background:rgba(255,255,255,.23)}
.product-panel .product-row .fill{background:linear-gradient(90deg,#b48aff,#e7dcff)}
.product-panel .product-row b{color:#fff;font-size:15px}
.product-panel .note{color:#d8dfff}
.adaptive-panel{background:linear-gradient(137deg,rgba(255,255,255,.95),rgba(239,225,255,.86))}
.adaptive-panel .funnel-row{padding:4px 0}
.adaptive-panel .funnel-row:last-child{background:linear-gradient(110deg,#7735ec,#994dff);border-radius:11px;padding:11px 13px;color:white}
.adaptive-panel .funnel-row:last-child .funnel-row-label,.adaptive-panel .funnel-row:last-child strong{color:white}
.adaptive-panel .funnel-row:last-child .track{background:rgba(255,255,255,.2)}
.adaptive-panel .funnel-row:last-child .fill{background:white}
.adaptive-panel .funnel-badge{background:linear-gradient(110deg,#eee5ff,#e0d1ff);border-radius:12px;color:#5126ab}
.radar text{fill:#15226f}.matrix-key-row{background:#f4f1ff}
.linkbutton,.analysis-secondary{border-radius:11px;border-color:#cfbafa;background:#fff;color:#5821b7}
.linkbutton:hover,.analysis-secondary:hover{background:#f0e7ff}
.operations-banner{border-radius:19px;background:linear-gradient(115deg,#00167A,#4b28b7);padding:22px 25px;box-shadow:0 10px 25px rgba(0,22,122,.14)}
.ops-summary>div,.analysis-metric{background:rgba(255,255,255,.89);border-color:#dedbf2;border-radius:16px;box-shadow:0 6px 20px rgba(20,24,100,.06)}
.ops-summary>div:nth-child(1){background:linear-gradient(120deg,#00167A,#233cad);color:white;border-color:transparent}
.ops-summary>div:nth-child(1) span,.ops-summary>div:nth-child(1) strong{color:white}
.ops-summary>div:nth-child(2){background:linear-gradient(125deg,#8034ed,#9c5aff);color:white;border-color:transparent}
.ops-summary>div:nth-child(2) span,.ops-summary>div:nth-child(2) strong{color:white}
.analysis-metrics .analysis-metric:nth-child(1){background:linear-gradient(125deg,#00167A,#263ca6);border-color:#00167A;color:#fff}
.analysis-metrics .analysis-metric:nth-child(1) span,.analysis-metrics .analysis-metric:nth-child(1) strong{color:#fff}
.analysis-metrics .analysis-metric:nth-child(2){background:linear-gradient(120deg,#7130e1,#974dff);border-color:#7130e1;color:#fff}
.analysis-metrics .analysis-metric:nth-child(2) span,.analysis-metrics .analysis-metric:nth-child(2) strong{color:#fff}
.mocktable th,.ops-table th{background:#e9e3ff;color:#17176e}
.mocktable tbody tr:hover,.ops-table tbody tr:hover{background:#f8f6ff}
.uma-header{background:linear-gradient(110deg,#f7f4ff,#e6ddff)}
.uma-tabbar button.active,.review-uma-btn{background:linear-gradient(120deg,#7430e8,#954cff);border-color:#7430e8;color:white}
.rpr-bubble.rep{background:#e6dcff}.rpr-chat{background:#f4f3ff}
@media(max-width:1180px){.sidebar{width:210px}.home-page .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.sidebar{left:-255px;width:245px}.sidebar.open{left:0}.content{padding:20px 14px 40px}.topbar{height:66px}.intro h1{font-size:27px}}
@media(max-width:620px){.home-page .kpis{grid-template-columns:1fr}.home-page .kpis .kpi{min-height:130px}.product-panel .product-row{grid-template-columns:120px 1fr 42px}}

/* v0.2.0 — ANALISIS: diagnostico y decisiones, identidad TreniLab */
.dx-page{display:flex;flex-direction:column;gap:19px;min-width:0}
.dx-title{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:0}
.dx-title h1{font-size:34px;font-weight:800;letter-spacing:-.8px;color:#071669;margin:8px 0 5px}
.dx-title p{font-size:16px;color:#65708c;margin:0}
.dx-title-icon{width:60px;height:60px;display:grid;place-items:center;border-radius:18px;color:#fff;background:linear-gradient(145deg,#9a59ff,#00167a);box-shadow:0 12px 22px #6c45e235}
.dx-title-icon svg{width:29px;height:29px}
.dx-tabs{display:flex;gap:7px;align-items:center;flex-wrap:wrap;padding:7px;border:1px solid #e3ddf6;border-radius:18px;background:#ffffffc9;box-shadow:0 8px 22px #28246c0b}
.dx-tabs button{border:0;border-radius:12px;padding:13px 15px;background:transparent;color:#424979;cursor:pointer;font-size:14px;font-weight:750;flex:1;min-width:150px;white-space:normal}
.dx-tabs button.active{background:linear-gradient(115deg,#8948f7,#642bd6);color:#fff;box-shadow:0 7px 17px #8244eb36}
.dx-tabs button:hover:not(.active){background:#ede5ff}
.dx-filters{display:flex;flex-wrap:wrap;gap:14px;align-items:end;padding:17px 21px}
.dx-filters label,.dx-person-filter label{display:flex;flex-direction:column;gap:7px;font-weight:700;font-size:13px;color:#26316f;flex:1;min-width:145px}
.dx-filters button{height:44px;min-width:120px}
.dx-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.dx-stats-small{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:16px}
.dx-mini{min-width:0;min-height:125px;padding:21px 20px;display:flex;flex-direction:column;gap:7px;border:1px solid #dedaf5;border-radius:18px;background:linear-gradient(135deg,#fff,#f3efff);box-shadow:0 7px 18px #1112680d}
.dx-mini span{font-size:14px;font-weight:750;color:#28316f}
.dx-mini strong{font-size:30px;line-height:1.1;letter-spacing:-.6px;color:#12176c}
.dx-mini small{font-size:12px;color:#66708e;line-height:1.3}
.dx-mini.purple{background:linear-gradient(130deg,#9950ff,#752eea);border-color:#9250f5}
.dx-mini.blue{background:linear-gradient(130deg,#1a32a4,#00167a);border-color:#1f36a2}
.dx-mini.purple :is(span,strong,small),.dx-mini.blue :is(span,strong,small){color:#fff}
.dx-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:stretch}
.dx-frame{min-width:0}
.dx-head{margin-bottom:17px}
.dx-head h3{font-size:21px;color:#0a176a;line-height:1.2;margin:0 0 5px}
.dx-head p{font-size:14px;color:#67718f;margin:0}
.dx-radar{max-width:550px;margin:auto}
.dx-radar svg{width:100%;height:auto}
.dx-radar-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;border-top:1px solid #e8e4fa;margin-top:10px;padding-top:12px}
.dx-radar-legend span{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:12px;color:#4c587a}
.dx-radar-legend b{font-size:13px;color:#411c9b;white-space:nowrap}
.dx-foot{font-size:12px;line-height:1.55;color:#76809b;margin:14px 0 0}
.dx-force-row{display:block;width:100%;text-align:left;border:1px solid #e7e1f8;border-radius:14px;background:#faf9ff;padding:16px;margin-bottom:12px;cursor:pointer}
.dx-force-row:hover{border-color:#9b75ef;background:#f5edff}
.dx-force-label{display:flex;justify-content:space-between;gap:12px;margin-bottom:11px;color:#18226c;font-size:14px}
.dx-force-row small{font-size:12px;color:#67718f;display:block;margin-top:8px}
.dx-bar{height:11px;width:100%;background:#e8e4f7;border-radius:20px;overflow:hidden}
.dx-bar>div{height:100%;background:linear-gradient(90deg,#8c52ff,#6434dd);border-radius:inherit}
.dx-insight{display:flex;gap:16px;align-items:flex-start;padding:22px 25px;border-radius:20px;background:linear-gradient(105deg,#f0e8ff,#e7eafa);border:1px solid #daccff;min-width:0}
.dx-insight>span{width:47px;height:47px;flex:0 0 47px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(120deg,#9551ff,#7631e6);color:#fff}
.dx-insight strong{font-size:17px;color:#29156e}
.dx-insight p{font-size:15px;line-height:1.55;color:#485173;margin:7px 0 0}
.dx-priority-viz{overflow:hidden}
.dx-priority-viz .matrix{max-width:100%;}
.dx-dimension{display:flex;align-items:center;gap:11px;width:100%;border:1px solid #e9e3f9;background:#fbfaff;padding:13px;border-radius:13px;margin:8px 0;color:#19256e;text-align:left;font-size:14px;cursor:pointer}
.dx-dimension.chosen{border-color:#9c68ee;background:#efe7ff}
.dx-dimension>span:nth-child(2){flex:1}
.dx-dimension strong{white-space:nowrap}
.dx-dim-num{display:grid;place-items:center;flex:0 0 29px;width:29px;height:29px;border-radius:9px;background:#e9deff;color:#6427c8;font-weight:850}
.dx-product-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:27px 29px;border-radius:22px;background:linear-gradient(120deg,#182f9d,#00167a);color:white}
.dx-product-head span{font-size:12px;font-weight:800;letter-spacing:1.4px;color:#e0d8ff}
.dx-product-head h2{font-size:29px;color:#fff;margin:6px 0}
.dx-product-head p{font-size:14px;color:#edf0ff;margin:0}
.dx-product-head button{display:flex;align-items:center;gap:8px;padding:13px 17px;background:#914cff;border:0;color:#fff;font-size:14px;font-weight:800;border-radius:12px;cursor:pointer}
.dx-product-head button:hover{background:#a66aff}
.dx-uma-row{display:grid;grid-template-columns:1fr 66px;gap:10px;align-items:center;padding:11px 0;border-bottom:1px solid #ede8fa}
.dx-uma-row strong,.dx-msg-row strong{font-size:14px;line-height:1.45;color:#101969}
.dx-uma-row small{display:block;margin-top:5px;color:#687392;font-size:12px}
.dx-uma-row>b{text-align:right;font-size:18px;color:#5924c5}
.dx-uma-row .dx-bar{grid-column:1 / -1}
.dx-msg-legend{display:flex;gap:18px;font-size:12px;font-weight:700;margin-bottom:12px;color:#566181;flex-wrap:wrap}
.dx-msg-legend span:nth-child(1){color:#6732d3}.dx-msg-legend span:nth-child(2){color:#b17a21}.dx-msg-legend span:nth-child(3){color:#a64a72}
.dx-msg-row{padding:12px 0;border-bottom:1px solid #ede8fa}
.dx-msg-row strong{display:block}
.dx-msg-row small{font-size:12px;color:#6f7692}
.dx-stacked{display:flex;height:12px;border-radius:20px;overflow:hidden;margin:10px 0 7px;background:#eee}
.dx-stacked .c{background:#8c52ff}.dx-stacked .p{background:#e7ae48}.dx-stacked .n{background:#e488b3}
.dx-action-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.dx-action-grid>div{border:1px solid #e5ddf6;background:#faf9ff;border-radius:15px;padding:17px;display:flex;flex-direction:column;gap:8px}
.dx-action-grid strong{font-size:15px;color:#141c72}
.dx-action-grid p{font-size:14px;line-height:1.6;color:#535d7d;margin:0}
.dx-action-number{font-size:17px;font-weight:850;color:#8746f7}
.dx-print-heading{display:none}
.dx-person-filter{display:flex;align-items:end;gap:20px;justify-content:space-between;padding:17px}
.dx-person-filter label{max-width:400px}
.dx-person-filter>span{color:#667390;font-size:14px}
.dx-person-intro{display:flex;gap:16px;align-items:center;padding:22px 26px;border-radius:20px;color:white;background:linear-gradient(115deg,#182b9b,#081667)}
.dx-person-avatar{width:58px;height:58px;background:#9759fc;border:2px solid #bd9cfb;border-radius:50%;display:grid;place-items:center;font-size:19px;font-weight:800}
.dx-person-intro h2{color:#fff;font-size:25px;margin:0 0 5px}.dx-person-intro p{font-size:14px;color:#e1dfff;margin:0}
.dx-person-rows>div{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #ebe7fa;padding:12px 0}
.dx-person-rows strong{display:block;color:#18246d;font-size:14px}.dx-person-rows small{display:block;color:#78809a;font-size:12px;margin-top:4px}
.dx-badge{display:inline-block;flex-shrink:0;border-radius:20px;padding:7px 10px;font-size:12px;font-weight:800;white-space:nowrap;background:#f0e8ff;color:#6125ac}
.dx-badge.good{background:#ddf5e7;color:#217547}.dx-badge.partial{background:#fff0cc;color:#945600}.dx-badge.poor{background:#fce4ed;color:#a32b58}.dx-badge.neutral{background:#f0f1f5;color:#6c7489}
.dx-page .analysis-workbench{padding:0;margin:0;max-width:none;background:transparent;border:0;box-shadow:none}
.dx-page .analysis-workbench>.eyebrow,.dx-page .analysis-workbench>h2,.dx-page .analysis-workbench>p{display:none}
@media(max-width:1190px){.dx-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dx-two{grid-template-columns:1fr}.dx-action-grid{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.dx-title h1{font-size:28px}.dx-title-icon{display:none}.dx-tabs{display:grid;grid-template-columns:1fr 1fr}.dx-tabs button{min-width:0}.dx-stats{grid-template-columns:1fr 1fr}.dx-mini{padding:14px;min-height:110px}.dx-mini strong{font-size:24px}.dx-filters{display:grid;grid-template-columns:1fr 1fr}.dx-filters label{min-width:0}.dx-radar-legend{grid-template-columns:1fr}.dx-action-grid{grid-template-columns:1fr}.dx-product-head{flex-direction:column;align-items:flex-start}.dx-person-rows>div{align-items:flex-start;flex-direction:column}}
@media print{
 body.print-marketing .sidebar,body.print-marketing .topbar,body.print-marketing .dx-title,body.print-marketing .dx-tabs,body.print-marketing .dx-filters,body.print-marketing .dx-product-head button{display:none!important}
 body.print-marketing .content{padding:0!important;margin:0!important;max-width:none!important}
 body.print-marketing .dx-page>*:not(#dxMarketingPrint){display:none!important}
 body.print-marketing #dxMarketingPrint{display:block!important}
 body.print-marketing .dx-print-heading{display:block!important;margin-bottom:16px}
 body.print-marketing .dx-print-heading h2{margin:6px 0}
 body.print-marketing .dx-product-head{padding:15px!important}
 body.print-marketing .dx-two{grid-template-columns:1fr 1fr!important}
 body.print-marketing .dx-mini{min-height:65px!important;padding:9px!important}
 body.print-marketing .dx-frame{break-inside:avoid;padding:13px!important}
 body.print-marketing .main{background:white!important}
 body.print-marketing .dx-action-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}

/* v0.2.3 spacing fixes for Analysis > Inteligencia de producto */
#dxMarketingPrint{display:flex;flex-direction:column;gap:18px}
#dxMarketingPrint .dx-product-head{margin-bottom:2px}
#dxMarketingPrint .dx-stats{margin-top:0;margin-bottom:2px}
#dxMarketingPrint .dx-two{margin-top:0}


/* v0.2.8 – nuevo análisis */
.dx-radar-legend.four{grid-template-columns:repeat(2,minmax(0,1fr));}
.pc-dimension-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;}
.pc-dimension-grid.compact{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));}
.pc-dim-card{border:1px solid rgba(0,22,122,.12);background:#fff;border-radius:20px;padding:16px;text-align:left;display:flex;flex-direction:column;gap:10px;box-shadow:0 10px 24px rgba(13,25,76,.06);cursor:pointer;transition:.2s ease;}
.pc-dim-card:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(13,25,76,.1)}
.pc-dim-card.no-button{cursor:default}
.pc-dim-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.pc-dim-top strong{font-size:14px;line-height:1.35;color:#1c2550}
.pc-dim-top b{font-size:24px;color:#00167A}
.pc-segbar,.adaptive-bar{height:10px;background:#eef1fb;border-radius:999px;overflow:hidden;display:flex}
.pc-segbar span,.adaptive-bar span{display:block;height:100%}
.pc-segbar .c,.adaptive-bar span{background:#17b26a}.pc-segbar .p{background:#7c5cff}.pc-segbar .n{background:#f04438}
.pc-dim-legend{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:12px;color:#54607a}
.pc-force-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.pc-force-card{border:1px solid rgba(0,22,122,.12);border-radius:18px;padding:14px;background:#fff;display:flex;flex-direction:column;gap:8px}
.pc-force-card h4{margin:0;font-size:14px;color:#10193e}.pc-force-card b{font-size:20px;color:#00167A}.pc-force-card small{color:#67748b}
.pc-force-row{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;margin:8px 0}
.pc-force-row span{font-size:13px;color:#31405f}.pc-force-row b{font-size:14px}
.cap-selector{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}
.cap-selector button{border:1px solid rgba(0,22,122,.14);border-radius:999px;background:#fff;padding:10px 14px;font-weight:600;color:#243154;cursor:pointer}
.cap-selector button.active{background:#00167A;color:#fff;border-color:#00167A;box-shadow:0 12px 24px rgba(0,22,122,.18)}
.rule-box{margin-top:14px;padding:14px 16px;border-radius:16px;background:linear-gradient(135deg,rgba(0,22,122,.06),rgba(124,92,255,.08));border:1px solid rgba(0,22,122,.08)}
.rule-box strong{display:block;margin-bottom:6px;color:#091a55}.rule-box p{margin:0;color:#44516b;font-size:13px;line-height:1.55}
.msg-detail-row{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:14px;align-items:center;padding:10px 0;border-bottom:1px solid #edf0f6}.msg-detail-row:last-child{border-bottom:none}.msg-detail-row small{color:#67748b}
.trend-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}
.trend-card{border:1px solid rgba(0,22,122,.12);border-radius:18px;padding:14px;background:#fff}.trend-card h4{margin:0 0 10px;color:#10193e;font-size:14px}
.trend-svg{width:100%;height:120px}.trend-guide{fill:none;stroke:#d7deef;stroke-width:1.5}.trend-line{fill:none;stroke:#00167A;stroke-width:3}.trend-dot{fill:#7c5cff}.trend-label{font-size:10px;fill:#425070;font-weight:700}.trend-meta{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:#54607a}
.adaptive-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}.adaptive-step{border:1px solid rgba(0,22,122,.12);border-radius:18px;padding:14px;background:#fff;display:flex;flex-direction:column;gap:8px}.adaptive-index{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#edf0ff;color:#00167A;font-weight:800}.adaptive-step b{font-size:24px;color:#00167A}
.dx-badge.partial{background:#f2eeff;color:#5935d6}.dx-badge.poor{background:#fff0ef;color:#c12d1f}.dx-badge.good{background:#e9fbf1;color:#0f8a50}
@media (max-width: 760px){.msg-detail-row{grid-template-columns:1fr}.dx-radar-legend.four{grid-template-columns:1fr}.pc-dim-top b{font-size:20px}}

/* v0.2.9: leyendas, criterios y transparencia de datos */
.pc-demo-note{background:#edf4ff;border:1px solid #cbdaf6;color:#263d67;border-radius:14px;display:flex;gap:12px;align-items:center;padding:12px 16px;margin-bottom:14px;flex-wrap:wrap}.pc-demo-note strong{font-size:13px;color:#00167A}.pc-demo-note span{font-size:12px;flex:1;min-width:240px}.pc-legend{background:#fff;border:1px solid #dee4f0;border-radius:16px;padding:14px 16px;margin-bottom:16px}.pc-legend>strong{font-size:14px;color:#152657}.pc-legend-items{display:flex;flex-wrap:wrap;gap:12px 20px;margin:10px 0}.pc-legend-items span{font-size:12px;color:#4b5975;display:flex;align-items:center;gap:5px}.pc-key{width:11px;height:11px;border-radius:3px;display:inline-block;flex-shrink:0}.pc-key.c{background:#17b26a}.pc-key.p{background:#7c5cff}.pc-key.n{background:#f04438}.pc-legend p{font-size:12px;color:#5a6883;line-height:1.6;margin:6px 0 0}.dx-radar-legend.four span{font-size:12px}.pc-force-row span{line-height:1.35}

/* v0.3.0 · dashboard ejecutivo enfocado en preparación comercial */
.pc-dashboard{display:flex;flex-direction:column;gap:19px;color:#121a4f}.pc-header{display:flex;align-items:center;justify-content:space-between;gap:14px}.pc-header h1{margin:6px 0;font-size:31px;letter-spacing:-1px}.pc-header p{margin:0;color:#747b96;font-size:14px}.pc-eyebrow{font-size:11px;font-weight:800;letter-spacing:1.5px;color:#7443c6}.pc-demo-pill{background:#f0e9ff;color:#6d39bf;border:1px solid #e3d5ff;border-radius:99px;padding:9px 12px;font-size:11px;font-weight:800;white-space:nowrap}.pc-scope{display:flex;width:fit-content;background:#fff;padding:5px;gap:5px;border-radius:13px;border:1px solid #e8e2f8;box-shadow:0 5px 16px #3222670c}.pc-scope button{border:0;background:transparent;border-radius:9px;padding:10px 17px;font-weight:800;color:#5b617b;font-size:13px}.pc-scope button.active{background:#6638d2;color:#fff;box-shadow:0 6px 14px #6a36d633}.pc-filters{display:flex;align-items:end;flex-wrap:wrap;gap:12px;background:#fff;border:1px solid #e9e4f8;border-radius:16px;padding:18px;box-shadow:0 5px 18px #2514600b}.pc-filters label{flex:1;min-width:132px;font-weight:800;font-size:11px;color:#50577f;display:flex;flex-direction:column;gap:7px}.pc-filters select{width:100%}.pc-context{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:52px;padding:4px 1px}.pc-context>div{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}.pc-context strong{font-size:17px}.pc-context span{font-size:11px;color:#8389a3}.pc-keynote{font-size:11px;color:#8a84a1}.pc-export{border:0;border-radius:12px;padding:11px 15px;color:#fff;font-size:12px;font-weight:800;background:linear-gradient(120deg,#8747ec,#33208e);box-shadow:0 8px 16px #4721b222}.pc-main-grid{display:grid;grid-template-columns:1fr 1.1fr;gap:18px;align-items:stretch}.pc-radar-panel,.pc-drill-panel{background:#fff;border-radius:20px;border:1px solid #e3ddf2;overflow:hidden;box-shadow:0 10px 26px #3b23800b;min-width:0}.pc-panel-head{background:linear-gradient(115deg,#7840df,#292274);padding:20px 22px;color:white;min-height:92px}.pc-panel-head h2{font-size:19px;margin:0 0 5px}.pc-panel-head span{font-size:12px;opacity:.85}.pc-radar-wrap{padding:6px 14px 0}.pc-radar-chart{width:100%;height:auto;max-height:395px;display:block}.pc-radar-grid{fill:none;stroke:#ded9f1;stroke-width:1.2}.pc-radar-fill{fill:#8450e526;stroke:#7740e9;stroke-width:3}.pc-radar-axis{cursor:pointer}.pc-radar-axis-label{fill:#27305e;font-size:11.3px;font-weight:800}.pc-radar-axis-value{fill:#7b3de2;font-size:10.5px;font-weight:800}.pc-radar-axis.selected .pc-radar-axis-label{fill:#6732d1}.pc-radar-node{fill:#7d49dc;stroke:#fff;stroke-width:3}.pc-radar-axis.selected .pc-radar-node{stroke:#bea3ff;stroke-width:5}.pc-radar-hit{fill:transparent}.pc-radar-axis:focus-visible{outline:none}.pc-radar-axis:focus-visible .pc-radar-node{stroke:#2c1b8c;stroke-width:7}.pc-radar-legend{padding:0px 23px 20px;line-height:1.6;font-size:11px;color:#737b9c}.pc-radar-legend strong{color:#6535bb}.pc-detail-header{background:linear-gradient(110deg,#322485,#101f75);padding:19px 23px;color:white;min-height:92px}.pc-detail-header>span{font-size:10px;letter-spacing:1.3px;font-weight:800;color:#c2b7ff}.pc-detail-header h2{font-size:19px;margin:6px 0 5px}.pc-status-inline{display:flex;gap:10px;flex-wrap:wrap;font-size:11px;font-weight:800}.pc-status-inline .covered{color:#9cf0bf}.pc-status-inline .partial{color:#d0baff}.pc-status-inline .missed{color:#ffb2ae}.pc-detail-body{padding:19px;display:flex;flex-direction:column;gap:12px}.pc-component{display:flex;align-items:center;gap:15px;justify-content:space-between;padding:14px 16px;border:1px solid #eee9f8;border-radius:14px;min-height:62px;box-shadow:0 3px 8px #301b6807}.pc-component-copy{flex:1}.pc-component strong{font-size:13px;color:#25235e}.pc-component small{font-size:10px;color:#8e82ab;display:block;margin:5px 0}.pc-component b{font-size:15px;color:#372184}.pc-component-track{height:8px;display:flex;overflow:hidden;border-radius:99px;background:#f0eef5;margin-top:9px}.pc-component-track i{display:block;background:#21b779}.pc-component-track i.partial{background:#8553d7}.pc-component-track i.missed{background:#f27d73}.pc-status{display:inline-flex;align-items:center;border-radius:99px;padding:7px 9px;font-size:11px;font-weight:800;white-space:normal;text-align:center}.pc-status.covered{color:#107a4d;background:#ddf7e9}.pc-status.partial{color:#6236c5;background:#eee5ff}.pc-status.missed{color:#bd3b36;background:#ffe6e4}.pc-detail-header .pc-status{background:#ffffff22;color:#fff}.pc-detail-note{border-top:1px solid #f2edf7;padding-top:12px;color:#88849e;font-size:11px;line-height:1.5;margin-top:auto}.pc-insight-grid{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:16px}.pc-insight{border:1px solid #e4def2;background:white;border-radius:19px;padding:22px;min-height:155px;box-shadow:0 6px 16px #25146309}.pc-insight.featured{color:#fff;background:linear-gradient(125deg,#8541dc,#272080);border-color:transparent}.pc-insight span{font-size:10px;font-weight:800;letter-spacing:1.1px;color:#794cc6}.pc-insight.featured span{color:#d7ccff}.pc-insight h3{margin:12px 0 6px;font-size:17px;letter-spacing:-.3px}.pc-insight p{font-size:13px;line-height:1.45;margin:0;color:#5a6186}.pc-insight.featured p{color:#f1e9ff}.pc-bottom-note{color:#8883a5;font-size:10px;line-height:1.6;margin:0}.pc-findings-total{display:flex;gap:10px;align-items:center;background:#f9f6ff;border-radius:11px;padding:13px}.pc-findings-total b{font-size:28px;color:#4c22a5}.pc-findings-total span{color:#675f87;font-size:12px}.pc-finding{font-size:12px;color:#463c76;padding:9px 0;border-bottom:1px solid #f3eefb;display:flex;justify-content:space-between}.pc-compliance-person>span{font-size:16px;font-weight:800;color:#4f2bac}.pc-empty{padding:35px;color:#8e86a6}#pcCoachingReport{display:none}#pcCoachingReport .pc-report-brand{font-size:14px;color:#622cc6;font-weight:800;margin-bottom:10px}#pcCoachingReport h1{font-size:25px;margin:0 0 6px}#pcCoachingReport h2{font-size:16px;color:#25165c;margin:21px 0 10px}#pcCoachingReport .pc-report-sub{color:#777;font-size:12px}#pcCoachingReport .pc-report-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px;border:1px solid #eee7f8;padding:12px;border-radius:10px;font-size:12px}#pcCoachingReport .pc-report-line{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:7px 0;border-bottom:1px solid #eeeaf4;font-size:12px}#pcCoachingReport .pc-report-columns{display:grid;grid-template-columns:1fr 1fr;gap:22px}#pcCoachingReport .pc-report-signatures{margin-top:28px;border-top:1px solid #ddd;padding-top:15px;font-size:12px}#pcCoachingReport .pc-report-signatures div{height:24px;border-bottom:1px solid #eee}#pcCoachingReport footer{font-size:10px;color:#888;margin-top:20px}
@media(max-width:1200px){.pc-main-grid{grid-template-columns:1fr}.pc-radar-chart{max-height:380px}.pc-insight-grid{grid-template-columns:1fr 1fr}.pc-insight.featured{grid-column:1/-1}}
@media(max-width:650px){.pc-header{align-items:start;flex-direction:column}.pc-header h1{font-size:25px}.pc-scope{width:100%;flex-wrap:wrap}.pc-scope button{flex:1;min-width:40%}.pc-filters label{min-width:43%}.pc-insight-grid{grid-template-columns:1fr}.pc-insight.featured{grid-column:auto}.pc-panel-head h2{font-size:16px}.pc-context{align-items:start;flex-direction:column}}
@media print{body.print-coaching .sidebar,body.print-coaching .topbar,body.print-coaching .pc-dashboard>*:not(#pcCoachingReport){display:none!important}body.print-coaching .app{display:block!important;background:white!important}body.print-coaching .main{display:block!important;width:100%!important}body.print-coaching .content{padding:0!important}body.print-coaching #pcCoachingReport{display:block!important;background:white!important;color:#121a4f!important;padding:0!important}body.print-coaching #pcCoachingReport .pc-report-columns{grid-template-columns:1fr 1fr!important}body.print-coaching #pcCoachingReport .pc-report-line{break-inside:avoid}body.print-coaching #pcCoachingReport h2{break-after:avoid}body.print-coaching #pcCoachingReport .pc-status{print-color-adjust:exact;-webkit-print-color-adjust:exact}@page{size:A4;margin:13mm}}

/* v0.3.1 — HOME estratégico conectado con el modelo de cuatro dimensiones */
.home-demo-note{border:1px solid #c4d6fc;background:#eef4ff;color:#354d84;font-size:12px;padding:12px 16px;border-radius:12px;margin:14px 0 18px;line-height:1.5}
.home-kpi-panel{overflow:hidden}
.home-chart-wrap{display:grid;place-items:center;min-height:250px}
.home-radar-entry{width:100%;max-width:470px;border:0;background:transparent;padding:0;cursor:pointer;display:block}
.home-radar-entry:hover .value{stroke:#5427c8;stroke-width:3}
.home-radar-entry svg{width:100%;max-height:310px;display:block}
.home-radar-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 12px;margin:2px 0 12px}
.home-radar-dimension{background:#f8f6ff;border:1px solid #e5dfff;border-radius:12px;padding:10px 12px;display:flex;align-items:center;gap:8px;min-width:0;color:#18215a;text-align:left;cursor:pointer;font:inherit}
.home-radar-dimension:hover,.home-matrix-key:hover{background:#efeaff;border-color:#a78dff}
.home-radar-dimension span:nth-child(2){flex:1;min-width:0;font-size:12px;line-height:1.3;font-weight:600}
.home-radar-dimension strong{font-size:18px;color:#6331d2;white-space:nowrap}
.home-dot{width:9px;height:9px;border-radius:50%;flex:none}
.home-matrix-point{cursor:pointer;outline:none}.home-matrix-point circle{transition:filter .15s}.home-matrix-point:hover circle,.home-matrix-point:focus circle{filter:drop-shadow(0 0 6px #9566f9)}
.home-matrix-key{border:1px solid transparent;border-radius:9px;background:#f8f6ff;padding:8px;display:flex;gap:8px;align-items:center;width:100%;text-align:left;cursor:pointer;font:inherit;color:#18215a;margin-bottom:4px}
.home-matrix-key>span:last-child{min-width:0;display:grid;gap:3px}
.home-matrix-key strong{font-size:11px;line-height:1.3}.home-matrix-key small{font-size:10px;color:#74728f}
.home-product-inner{display:grid;gap:15px;margin-top:12px}.home-product-section{display:grid;gap:8px}.home-product-section>strong{font-size:12px;color:#f7f2ff;opacity:.93}
.home-product-bar{background:transparent;color:inherit;border:0;cursor:pointer;display:grid;grid-template-columns:minmax(145px,1fr) minmax(65px,1.7fr) 38px;align-items:center;text-align:left;gap:10px;padding:2px 0;font:inherit;width:100%;font-size:11px}
.home-product-bar:hover span:first-child{text-decoration:underline}.home-product-bar span:first-child{line-height:1.3}.home-product-bar .track{min-width:0}.home-product-bar .fill{display:block;height:100%}.home-product-bar b{font-size:12px;text-align:right}
.home-adaptive-link{background:transparent;border:1px solid #a57ffd;color:#6532c1;font-weight:700;padding:8px 12px;border-radius:9px;cursor:pointer;margin-top:12px}
.home-adaptive-link:hover{background:#f0e7ff}
.funnel-outcome{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 14px;border-radius:12px;background:#ede5ff;margin-top:14px;color:#3c188c}.funnel-outcome strong{font-size:16px}.funnel-outcome span{font-size:12px}
.product-panel .home-product-inner+.note{color:#eee7ff}
@media(max-width:700px){.home-radar-values{grid-template-columns:1fr}.home-product-bar{grid-template-columns:minmax(90px,1fr) minmax(50px,1fr) 35px}.funnel-outcome{flex-direction:column;align-items:flex-start}}

/* v0.3.2 – readability and hierarchy-based exploratory pivot */
.home-product-bar{grid-template-columns:minmax(165px,1.2fr) minmax(90px,1.5fr) minmax(95px,auto);font-size:15px;gap:12px;line-height:1.45;padding:4px 0}
.home-product-bar b{font-size:15px;white-space:nowrap}.home-product-bar b small{font-size:13px;opacity:.83}.home-product-section>strong{font-size:16px}.product-panel .panel-sub{font-size:15px}.product-panel .note,.product-panel .microstat span{font-size:14px}.product-panel .microstat strong{font-size:27px}.product-panel .panel-title{font-size:21px}.funnel-row-label,.funnel-row strong{font-size:15px}.funnel-row{grid-template-columns:1fr auto;gap:18px}.funnel-row strong{min-width:110px}.funnel-outcome{font-size:16px}.pc-filters{display:grid;grid-template-columns:repeat(4,minmax(155px,1fr));align-items:end}.pc-filters label{font-size:14px;min-width:0}.pc-filters select{font-size:14px;min-width:0}.pc-explorer{padding:24px}.pc-explorer-head{display:flex;justify-content:space-between;align-items:center;gap:14px}.pc-explorer-head h2{font-size:22px;margin:0 0 6px}.pc-explorer-head p{font-size:14px;color:#66708c;margin:0}.pc-pivot-mode{display:flex;gap:7px;margin:22px 0 15px}.pc-pivot-mode button{padding:11px 17px;border:1px solid #d5caee;background:#fff;color:#4c307f;font-weight:750;border-radius:10px}.pc-pivot-mode button.active{background:#6336d4;color:#fff}.pc-pivot-scroll{overflow:auto;border:1px solid #e7e2f1;border-radius:12px}.pc-pivot{border-collapse:collapse;width:100%;min-width:760px}.pc-pivot th,.pc-pivot td{padding:12px 13px;border-bottom:1px solid #ede8f6;font-size:13px;text-align:right;white-space:nowrap}.pc-pivot thead th{background:#f2effd;color:#2b2762;font-size:13px;position:sticky;top:0;z-index:1}.pc-pivot th:first-child{text-align:left;min-width:260px}.pc-pivot tbody th button{font-size:14px;border:0;background:transparent;text-align:left;display:flex;align-items:center;gap:7px;color:#252559;font-weight:650;width:100%;cursor:pointer;padding-top:2px;padding-bottom:2px}.pc-pivot tbody th button:disabled{cursor:default}.pc-chevron{font-size:16px;color:#6639ca;width:12px}.pc-level-0,.pc-level-1{background:#f9f7ff}.pc-level-0 td,.pc-level-0 th{font-weight:800}.pc-pivot-caption{font-size:14px;color:#59627f;line-height:1.5;margin-bottom:0}.pc-context span,.pc-keynote,.pc-radar-legend,.pc-detail-note,.pc-bottom-note,.pc-status-inline,.pc-component small{font-size:13px}.pc-component strong{font-size:15px}.pc-finding{font-size:14px}.pc-status{font-size:13px}.pc-panel-head span,.pc-detail-header>span{font-size:13px}.pc-insight p{font-size:15px}.pc-insight span{font-size:12px}.pc-radar-axis-label{font-size:12px}.pc-radar-axis-value{font-size:12px}
@media(max-width:1150px){.pc-filters{grid-template-columns:repeat(3,minmax(145px,1fr))}}@media(max-width:760px){.pc-filters{grid-template-columns:repeat(2,minmax(120px,1fr))}.pc-explorer-head{align-items:flex-start;flex-direction:column}.home-product-bar{grid-template-columns:minmax(120px,1fr) minmax(70px,.9fr) auto;font-size:14px}.home-product-bar b{font-size:14px}}

/* v0.3.3: exploración flexible y resultados de contenidos */
.pc-pivot-settings{border:1px solid #e0dcf5;border-radius:16px;padding:18px 20px;margin:18px 0;background:#faf9ff}
.pc-pivot-settings h3{font-size:17px;font-weight:800;color:#16205a;margin:0 0 4px}
.pc-pivot-settings p{font-size:14px;color:#626b85;margin:0 0 14px}
.pc-pivot-group-controls{display:grid;grid-template-columns:repeat(4,minmax(155px,1fr));gap:12px}
.pc-pivot-group-controls label{font-size:13px;color:#515b7a;font-weight:700;display:flex;flex-direction:column;gap:5px}
.pc-pivot-group-controls select{width:100%;font-size:14px;min-width:0;padding:10px;border:1px solid #ded9f3;border-radius:10px;background:white;color:#1d2660}
.pc-pivot-presets{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:14px}.pc-pivot-presets span{font-size:13px;font-weight:700;color:#515b7a;margin-right:3px}
.pc-pivot-presets button{border:1px solid #d7d0ef;border-radius:22px;padding:7px 11px;background:white;color:#5833b4;font-size:13px;font-weight:700;cursor:pointer}
.pc-pivot-presets button:hover:not(:disabled){background:#f0eaff}.pc-pivot-presets button:disabled{opacity:.4;cursor:not-allowed}
.pc-pivot-scope{font-size:13px;color:#67738a;margin-bottom:12px}.pc-pivot-mode{flex-wrap:wrap}
.pc-material-insights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px}
.pc-material-insight{background:#f6f3ff;border:1px solid #e0d8fa;border-radius:14px;padding:15px;display:flex;flex-direction:column;gap:7px}
.pc-material-insight>span{font-size:12px;color:#6c4cbb;font-weight:800;letter-spacing:.04em}.pc-material-insight strong{color:#18225e;font-size:16px}.pc-material-insight p{font-size:14px;color:#445071;margin:0;line-height:1.5}.pc-material-insight small{font-size:12px;color:#69738a}
.pc-material-insight.action{background:#eef0ff}
@media(max-width:900px){.pc-pivot-group-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.pc-material-insights{grid-template-columns:1fr}}
@media(max-width:550px){.pc-pivot-group-controls{grid-template-columns:1fr}}

/* v0.3.4: tendencias en el radar y en el drill-down */
.pc-view-switch{display:inline-flex;gap:3px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.3);padding:3px;border-radius:12px;flex-shrink:0}
.pc-view-switch button{border:0;background:transparent;color:rgba(255,255,255,.85);font:inherit;font-weight:700;font-size:14px;border-radius:9px;padding:8px 12px;cursor:pointer}
.pc-view-switch button.active{color:#231068;background:white}
.pc-panel-head{display:flex;align-items:center;gap:14px;flex-wrap:wrap;justify-content:space-between}
.pc-panel-head>span{width:100%;font-size:14px}
.pc-trend-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}
.pc-trend-heading h2{margin:6px 0}
.pc-trend-chart{padding:16px 16px 8px;min-height:330px}
.pc-trend-chart svg{display:block;width:100%;max-height:330px}
.pc-trend-key{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;margin:6px 10px 14px}
.pc-trend-key span{display:flex;align-items:center;gap:8px;font-size:14px;color:#2a2858;line-height:1.35}
.pc-trend-key i{display:inline-block;flex:none;width:12px;height:12px;border-radius:50%}
.pc-trend-key b{margin-left:auto}
.pc-trend-caption{font-size:14px;color:#676180;line-height:1.55;margin:12px 10px}
.pc-trend-individual{padding:14px;overflow-x:auto;color:#312957}
.pc-trend-individual>p{font-size:14px;line-height:1.5}
.pc-trend-individual table{width:100%;border-collapse:collapse;min-width:500px}
.pc-trend-individual td,.pc-trend-individual th{padding:13px 9px;border-bottom:1px solid #eee9f5;text-align:left;font-size:14px}
.pc-trend-individual .pc-status{white-space:nowrap}
@media(max-width:850px){.pc-trend-key{grid-template-columns:1fr}.pc-view-switch button{padding:7px 10px}}

/* v0.3.5: HOME — cuatro tarjetas con encabezado degradado, cuerpo blanco y
   tipografía oscura (misma identidad visual de Análisis). No cambia métricas. */
.home-page .strategy-grid .home-kpi-panel,
.home-page .insights-grid .home-kpi-panel{
  background:#fff;
  color:#14205f;
  border:1px solid #e3dafc;
  border-radius:23px;
  overflow:hidden;
  padding:0 22px 22px;
  box-shadow:0 12px 30px rgba(57,31,133,.10);
}
.home-page .home-kpi-panel>.panel-head{
  background:linear-gradient(112deg,#9142ef 0%,#6030c3 48%,#101c73 100%);
  color:#fff;
  padding:19px 22px 17px;
  margin:0 -22px 19px;
  min-height:100px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.home-page .home-kpi-panel>.panel-head .home-card-heading{display:flex;align-items:center;gap:14px;min-width:0}
.home-page .home-kpi-panel>.panel-head .home-card-heading>div{min-width:0}
.home-page .home-kpi-panel>.panel-head .home-card-icon{flex:none;display:grid;place-items:center;width:47px;height:47px;border-radius:14px;color:white;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.18)}
.home-page .home-kpi-panel>.panel-head .home-card-icon svg{width:27px;height:27px;stroke-width:1.9}
.home-page .home-kpi-panel>.panel-head .panel-title{color:#fff;font-size:21px;line-height:1.24;margin:0 0 5px}
.home-page .home-kpi-panel>.panel-head .panel-sub{color:#f1eaff;font-size:14px;line-height:1.4;margin:0}
.home-page .home-kpi-panel>.panel-head .select{max-width:205px;flex:none;background:rgba(255,255,255,.97);border:1px solid rgba(255,255,255,.6);color:#172269;font-size:14px;font-weight:700}
.home-page .product-panel .product-summary{margin:13px 0 20px}
.home-page .product-panel .microstat{background:#f2effe;border:1px solid #e9e1ff;color:#111c60}
.home-page .product-panel .microstat strong{color:#182065;font-size:27px}
.home-page .product-panel .microstat span{color:#404c77;font-size:14px}
.home-page .product-panel .home-product-section>strong{color:#152060;font-size:17px;opacity:1}
.home-page .product-panel .home-product-bar{color:#1a2460}
.home-page .product-panel .home-product-bar b{color:#1b2466}
.home-page .product-panel .home-product-bar b small{color:#51577b}
.home-page .product-panel .home-product-bar .track{background:#e9e5f1}
.home-page .product-panel .home-product-bar .fill{background:linear-gradient(90deg,#c487ff 0%,#7432ee 100%)}
.home-page .product-panel .home-product-inner+.note,.home-page .product-panel .note{color:#65708e;font-size:14px}
.home-page .adaptive-panel .note{color:#65708e}
.home-page .adaptive-panel{background:#fff}
.home-page .home-kpi-panel>.note{font-size:13px;line-height:1.55}
@media(max-width:1250px){
 .home-page .home-kpi-panel>.panel-head{flex-wrap:wrap;align-items:flex-start}
 .home-page .home-kpi-panel>.panel-head .select{margin-left:61px}
}
@media(max-width:720px){
 .home-page .home-kpi-panel>.panel-head{padding:16px;min-height:0}
 .home-page .home-kpi-panel>.panel-head .panel-title{font-size:18px}
 .home-page .home-kpi-panel>.panel-head .panel-sub{font-size:13px}
 .home-page .home-kpi-panel>.panel-head .home-card-icon{width:38px;height:38px}
 .home-page .home-kpi-panel>.panel-head .select{margin-left:0;max-width:none;width:100%}
}
