/* SECOP Asistente — sistema visual de la mesa de trabajo. */
:root{--navy:#172e29;--teal:#24765c;--teal-light:#edf4ef;--bg:#f6f7f4;--line:#e2e7e0;--muted:#69776e;--text:#253a30;--white:#fff;--red:#b04847;--amber:#8c622d;--accent:#dceca7;--radius:16px;--sidebar-width:236px;--shadow:0 4px 24px #183e2710}
html{scroll-behavior:smooth;scroll-padding-top:88px}body{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;line-height:1.6;background:var(--bg);color:var(--text);letter-spacing:-.12px}body.navigation-open{overflow:hidden}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{transition:background .16s,border-color .16s,box-shadow .16s}button:disabled{opacity:.5}a:hover{color:#144f3d}svg{width:20px;height:20px;flex:0 0 auto}p{font-size:14px;line-height:1.7;color:var(--muted)}h1{font-size:clamp(30px,3vw,44px);font-weight:600;letter-spacing:-1.8px;line-height:1.15;margin:0 0 14px;color:#223a2e}h2{font-size:19px;font-weight:600;letter-spacing:-.45px;line-height:1.4}h3{font-size:16px;line-height:1.5}strong{font-weight:600}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #78ad90;outline-offset:4px}.hidden,[hidden]{display:none!important}.skip-link{position:fixed;top:8px;left:250px;transform:translateY(-160%);padding:12px 20px;background:white;border:2px solid var(--teal);border-radius:8px;z-index:150}.skip-link:focus{transform:none}
/* Navegación y contexto */
.sidebar{width:var(--sidebar-width);padding:28px 16px 18px;background:var(--navy);border-right:1px solid #20382e;z-index:50;overflow-y:auto;scrollbar-width:thin;color:#e3eadd}.brand{padding:0 14px 32px;gap:12px;font-size:23px;letter-spacing:1.5px}.brand-icon{width:37px;height:40px;border:0;background:var(--accent);color:#294532;border-radius:11px;font-family:inherit;font-size:26px;letter-spacing:-2px;position:relative;font-weight:500;transform:rotate(-3deg)}.brand-icon>span{position:absolute;right:6px;bottom:7px;width:5px;height:5px;border-radius:50%;background:#274930}.brand-sub{font-size:9px;letter-spacing:3px;color:#a9b8a7;font-weight:500;margin-top:3px}.sidebar nav{display:flex;flex-direction:column;gap:4px}.workspace-label{font-size:9px;letter-spacing:1.5px;font-weight:600;padding:0 14px;color:#98ab9c;margin:20px 0 8px}.workspace-label:first-child{margin-top:0}.nav{gap:11px;border-radius:9px;padding:11px 13px;min-height:44px;font-size:12px;font-weight:500;color:#c2d1c1;line-height:1.45}.nav svg{width:18px;height:18px;opacity:.8}.nav:hover{background:#254239;color:white}.nav.active{box-shadow:none;background:var(--accent);color:#273e25}.nav.active svg{opacity:1}.sidebar-note{padding:20px 14px 19px;border-bottom:1px solid #ffffff14;font-size:11px;margin-top:auto}.sidebar-note .privacy-mark{display:block;margin:0 0 9px;color:#c5daa2}.sidebar-note strong{display:block;font-size:12px;color:#e2eadd}.sidebar-note p{font-size:11px;color:#a2b2a4;margin:6px 0 12px;line-height:1.8}.sidebar-note a{font-size:10px;color:#cbdda7}.sidebar-note a span{margin-left:12px}.profile-mini{border:0;background:transparent;color:#e0e8db;width:100%;text-align:left;padding:17px 9px 0;gap:10px;font-size:12px}.profile-mini #company-mini{min-width:0;overflow-wrap:anywhere;flex:1}.avatar{width:32px;height:32px;flex:0 0 32px;border:1px solid #56715b;background:#354d3e;border-radius:50%;color:#d8e6bc;font-size:12px}.profile-mini small{color:#95ab98;font-size:10px;line-height:1.5;margin-top:4px}.profile-arrow{color:#94aa91;align-self:center}.main-shell{margin-left:var(--sidebar-width);min-width:0}.topbar{height:72px;position:sticky;top:0;z-index:30;background:#ffffffed;backdrop-filter:blur(12px);padding:0 40px;border-color:var(--line);font-size:12px;gap:16px}.breadcrumb{min-width:0;display:flex;align-items:center;gap:12px}.crumb-sep{margin:0;color:#b8c1b7}.crumb{font-size:11px}.topbar-actions{display:flex;align-items:center;gap:22px;min-width:0}.live-chip{font-size:10px;font-weight:500;background:transparent;border:0;padding:0;color:#71816e;white-space:nowrap}.context-company{display:flex;align-items:center;gap:9px;max-width:260px;background:white;border:1px solid var(--line);border-radius:8px;padding:8px 12px;font-size:11px;color:var(--text)}.context-company>svg,.context-company span svg{width:16px;height:16px;color:#648066}.context-company #active-company-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.context-company.simulation{border-color:#d5b87c;background:#fff9ed}.context-chevron{margin-left:7px;color:var(--muted)}main{max-width:1376px;padding:40px 42px 20px;min-width:0;outline:none}.heading{margin-bottom:28px;gap:20px;align-items:flex-start}.heading p{max-width:720px;font-size:14px}.heading>.button{margin-top:27px}.eyebrow{font-size:10px;color:#70836a;letter-spacing:1.8px;margin-bottom:15px}.title-accent{color:var(--teal)}.view{min-width:0}.view.active{animation:workspace-appear .2s ease-out}footer{font-size:10px;color:#81907e;padding-top:28px;margin:16px 0;line-height:1.8;border-top:1px solid var(--line)}.footer-dot{padding:0 8px;color:#bac5b5}#open-navigation,#close-navigation,.mobile-dock{display:none}
/* Superficies y controles */
.panel{border-radius:var(--radius);border:1px solid var(--line);box-shadow:0 2px 3px #264d2d03;background:white;padding:26px;margin-bottom:24px;min-width:0}.button{min-height:42px;border-radius:9px;padding:10px 16px;font-size:12px;font-weight:600;gap:9px;line-height:1.5;letter-spacing:0}.button svg{width:17px;height:17px}.primary{background:var(--teal);border-color:var(--teal);box-shadow:0 2px 2px #1754380d;color:white}.primary:hover{background:#195f47;border-color:#195f47;box-shadow:0 4px 12px #23623d20}.secondary{background:white;color:#3c5040;border-color:#dae2d7}.secondary:hover{background:#f5f8f1;border-color:#aabda1}.text-button{font-size:12px;font-weight:500;color:var(--teal);padding:7px 0;line-height:1.5}.icon-button{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:9px;width:42px;height:42px;background:white;color:var(--text);font-size:25px;flex:0 0 auto}label{font-size:12px;gap:8px;font-weight:500;color:#4b5f4d;margin-bottom:12px;min-width:0}input,select,textarea{font-size:14px;padding:11px 13px;border-radius:8px;border-color:#dce4d8;min-height:44px;line-height:1.5}input::placeholder,textarea::placeholder{color:#94a08e}input:focus,textarea:focus,select:focus{border-color:#5d9271;outline:3px solid #40876513}input[type=checkbox]{width:16px;height:16px;min-height:16px;accent-color:var(--teal);flex:none}input[type=file]{background:#f7f9f4;padding:12px;overflow:hidden}input[type=file]::file-selector-button{border:1px solid #d6e0cf;border-radius:6px;background:white;padding:8px 12px;margin-right:12px;color:#456044;font-size:12px;cursor:pointer}.help{font-size:12px;line-height:1.7;color:#788673}.form-grid{gap:14px 22px;margin:20px 0}.form-footer{border-top-color:#e9eee4;padding-top:20px;margin-top:22px}.form-footer .help{max-width:65%}.inline-label{font-size:11px;gap:8px}.notice{font-size:12px;padding:14px 18px;border-radius:10px;line-height:1.8;margin-bottom:20px}.info{background:#f0f5ef;border:1px solid #dce7d7;color:#53694d}.danger{background:#fff4f1;border-color:#f0d5cc;color:#9b4a37}.badge{font-size:10px;line-height:1.5;border-radius:6px;padding:5px 9px;font-weight:500;background:#f0f3ed;color:#66735e}.badge.green{color:#2a7650;background:#eaf4e8}.badge.amber{color:#8b6527;background:#fff5df}.badge.red{color:#a2483d;background:#fbeee9}summary{font-size:13px;font-weight:500;color:#3e5844;line-height:1.7;padding:4px 0}summary span{font-size:11px;color:#8a9982}.technical{border-top:1px solid var(--line);padding-top:18px;margin-top:28px}pre{background:#f5f7f1;border:1px solid #e4eadd;border-radius:9px;padding:16px;font-size:11px;line-height:1.7;white-space:pre-wrap}details>pre{max-height:400px;overflow:auto}.section-title{margin-bottom:20px;gap:15px}blockquote{border-left:3px solid #bbcdae;padding:3px 0 3px 16px;margin:16px 0;font-size:13px;line-height:1.8;color:#63745b}code{overflow-wrap:anywhere}.empty-state{background:#fcfdf9;border:1px dashed #d5dfcc;border-radius:16px;padding:42px 24px}.empty-state h3{font-size:18px;color:#536b46;font-weight:500}.empty-state p{font-size:13px;max-width:490px}.empty-icon{font-size:35px;color:#78926a;margin-bottom:12px}.loading{opacity:.55;pointer-events:none}.toast{border-radius:12px;font-size:13px;padding:16px 22px;background:#264632;box-shadow:0 12px 40px #173a2830;max-width:480px;z-index:130}
/* Exploración */
#view-search>.heading h1{font-size:clamp(34px,3.6vw,54px);letter-spacing:-2.3px;line-height:1.08;margin-bottom:20px}#view-search>.heading p{max-width:560px;line-height:1.8}#view-search>.heading{margin:9px 0 30px}.source-banner{background:transparent;border:0;border-top:1px solid #dfe6d8;border-radius:0;padding:19px 0 23px;margin:0;gap:13px}.source-banner strong{font-size:12px;color:#556a4c}.source-banner p{font-size:11px;color:#85917a;max-width:720px}.source-icon{background:#eaf0df;border:1px solid #dce5d2;color:#678557;width:34px;height:34px;border-radius:9px;flex:none}.source-banner .text-button{font-size:11px}.search-panel{padding:27px 28px 20px;box-shadow:var(--shadow);border-color:#d9e4d0}.search-panel-intro{display:flex;gap:12px;align-items:center;margin-bottom:24px}.search-panel-intro>span:first-child{width:40px;height:40px;border:1px solid #e1e9d9;background:#f7faef;border-radius:11px;display:grid;place-items:center;color:#668355}.search-panel-intro h2{font-size:18px;margin:0 0 3px}.search-panel-intro p{font-size:12px;margin:0}.search-origin{margin-left:auto;color:#88957f;font-size:10px}.search-row{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) auto;gap:16px;align-items:end}.search-row input{min-height:48px;background:#fcfdfa}.search-row .button{height:48px;margin-bottom:12px;min-width:155px}#search-query{font-size:15px;font-weight:500}.filters{margin-top:15px;padding-top:16px;border-top-color:#ebefe5}.filters summary{font-size:12px;display:list-item}.filters .form-grid{gap:14px 20px}.search-actions{gap:16px;flex-wrap:wrap;border-top:1px solid #edf1e8;padding-top:16px;margin-top:16px;justify-content:flex-start}.search-actions .inline-label{font-size:10px}.search-actions .text-button{font-size:10px;padding:0}.search-actions .inline-label:last-child{margin-left:auto}.start-guide{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;padding:8px 0 28px;border-bottom:1px solid var(--line);margin:0 0 22px}.start-guide>div{position:relative;padding-left:39px}.guide-number{position:absolute;left:0;top:0;font-size:11px;color:#678158;background:#e9f0dd;border-radius:50%;width:28px;height:28px;display:grid;place-items:center}.start-guide strong{font-size:12px;color:#4b6440}.start-guide p{font-size:11px;margin:5px 0}.start-guide .text-button{font-size:10px}.results-toolbar{margin:26px 0 18px;gap:18px}.results-toolbar h2{font-size:19px}.results-toolbar p{font-size:11px;max-width:700px;line-height:1.7}.results{gap:18px}.process-card{border-radius:14px;padding:24px;border-color:#e0e6d9;box-shadow:none}.process-card:hover{border-color:#b5c8a7;box-shadow:var(--shadow)}.entity{font-size:10px;font-weight:500;color:#718265;letter-spacing:.5px;max-width:75%;line-height:1.6}.process-card h3{font-size:16px;line-height:1.65;font-weight:500;margin:14px 0;max-width:100%}.card-ref{font-size:11px;color:#809075;margin:0 0 19px}.card-bottom{padding-top:20px;border-top-color:#edf0e8;gap:24px;align-items:center}.card-data{gap:24px;flex:1;min-width:0}.datum span{font-size:9px;letter-spacing:.5px;color:#7a8b6e}.datum strong{font-size:12px;color:#536349;line-height:1.6}.datum.price strong{font-size:19px;font-weight:600;color:#244f35}.card-actions{gap:18px;flex-shrink:0}.card-warning{color:#8e805a;font-size:11px;margin-top:16px}.pagination{margin:28px 0;font-size:12px}.pagination .button{min-width:115px}
/* Mi empresa */
.workspace-tabs,.tabs{display:flex;gap:6px;border-bottom:1px solid #dde6d5;margin:0 0 26px;padding:0;overflow-x:auto;scrollbar-width:thin}.workspace-tabs>button,.tabs>button{border:0;background:transparent;color:#7a8b6f;white-space:nowrap;padding:14px 17px;font-size:12px;font-weight:500;min-height:48px;border-radius:0;border-bottom:2px solid transparent;margin-bottom:-1px}.workspace-tabs>button.active,.tabs>button.active{color:#2d6b41;border-bottom-color:#2e7548;font-weight:600;background:transparent}.workspace-tabs>button:hover,.tabs>button:hover{background:#edf3e6}.company-intro{display:flex;align-items:center;gap:16px;background:#edf3e6;border:1px solid #dee8d3;border-radius:14px;padding:19px 22px;margin-bottom:27px}.intro-icon{width:43px;height:43px;border-radius:11px;background:#e0eacc;color:#608045;display:grid;place-items:center;flex:0 0 43px}.company-intro strong{font-size:13px;color:#4a603b}.company-intro p{font-size:12px;margin:3px 0}.company-intro .button{margin-left:auto;font-size:11px;flex-shrink:0}.company-pane{min-width:0}.profile-fieldset{border:0;padding:24px 0 0;margin:24px 0 0;min-width:0;border-top:1px solid #e7ecdf}.profile-fieldset legend{font-size:17px;font-weight:600;padding:0 13px 0 0;color:#3d5737}.profile-fieldset>p{font-size:12px;margin:0}.profile-fieldset .form-grid{margin-bottom:0}.profile-fieldset:first-of-type{margin-top:15px}.company-choices{gap:14px;margin:22px 0}.company-choices button{padding:24px 19px;min-height:116px;border-radius:13px;flex:1 1 230px;font-size:13px;display:block}.company-choices button small{font-size:11px;margin-top:11px;line-height:1.5;font-weight:400}.company-choices button.secondary{background:#fbfcf7}.company-choices button.secondary:hover{background:#f1f6e6;border-color:#abc38f}.company-choices button.primary:disabled{opacity:1;background:#e3efcd;color:#3e6230;border-color:#b9d098}.company-choices button.primary:disabled:after{content:'Simulación activa';display:block;margin-top:12px;font-size:10px;text-transform:uppercase;letter-spacing:1px}.financial-calculator{background:#fcfdf9}.edit-section{margin:20px 0;padding:17px 20px;border:1px solid #dce6d4;border-radius:11px;background:#fafcf6}.edit-section>summary{font-size:13px;color:#49663c}.edit-section[open]>summary{margin-bottom:20px}.edit-section form{margin-top:10px}.edit-section .form-grid{margin-bottom:20px}
/* Expediente y biblioteca */
.analysis-empty{display:flex;align-items:center;gap:19px;padding:25px;background:#f0f5e6}.analysis-empty h2{font-size:18px}.analysis-empty p{font-size:12px;max-width:600px}.analysis-empty>.button{margin-left:auto;flex-shrink:0}.dossier-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin-bottom:25px}.dossier-steps>button{text-align:left;padding:23px 20px;border:1px solid var(--line);border-radius:13px;background:white;color:#425c35;position:relative}.dossier-steps>button:hover{background:#f2f7e9;border-color:#bfd0ac}.dossier-steps span{font-size:11px;color:#91a281;display:block;margin-bottom:17px}.dossier-steps strong{display:block;font-size:14px}.dossier-steps p{font-size:11px;margin:7px 24px 0 0}.dossier-steps svg{position:absolute;right:18px;bottom:22px;width:16px}#selected-process{border-left:4px solid #8db779}#selected-process .card-data{margin-top:23px}.document-row{gap:20px;padding:20px 0;border-top:1px solid #e7eddf;min-width:0;align-items:center}.document-row>div{min-width:0}.document-row strong{font-size:13px;line-height:1.6}.document-row p{font-size:11px;line-height:1.8;overflow-wrap:anywhere}.document-actions{gap:8px;flex-wrap:wrap;max-width:100%}.document-actions .button{font-size:11px;white-space:normal}.document-row>summary{width:100%}details.document-row{display:block}details.document-row>div,details.document-row>p{margin-top:16px}.upload-form{padding:16px;border:1px dashed #bccdab;border-radius:10px;background:#fbfdf6;gap:12px}.upload-form input{border:0;background:transparent;padding:0}.upload-form .button{flex-shrink:0}.stats-grid{gap:16px;margin-bottom:24px;grid-template-columns:repeat(4,minmax(0,1fr))}.stat{border-radius:13px;border-color:#dee6d6;padding:22px;margin:0;min-width:0;overflow-wrap:anywhere}.stat strong{font-size:28px;color:#385c2d;line-height:1.3;margin:8px 0;font-weight:500}.stat span,.stat p{font-size:11px;line-height:1.6;color:#7d8e70}.flow-lamps{gap:12px;margin:24px 0}.lamp{background:#f9fbf4;border-radius:10px;border-color:#dfe8d5;max-width:none;flex:1 1 180px;padding:13px;font-size:11px}.lamp strong{font-size:12px}.lamp span{font-size:11px;line-height:1.6;display:block;margin-top:3px}#ai-analysis{border-color:#b8cf9f}#ai-analysis h2{color:#476e33}#reference-list>.panel{padding:28px;margin-bottom:26px}.reference-company .stats-grid{margin-top:24px}.reference-company>.section-title{border-bottom:1px solid var(--line);padding-bottom:22px}.reference-documents{margin:22px 0;padding-top:19px;border-top:1px solid var(--line)}.reference-documents>.button{font-size:11px;margin:6px 4px 6px 0}.reference-documents .inline-label{margin-top:12px}.graph-edge{gap:16px;border-color:#e5ecdc;padding:17px 0;font-size:12px}.graph-edge span{padding:5px 9px;background:#eef4e4;border-radius:6px;color:#728567;font-size:10px}.diagnostic-intro{gap:22px}.diagnostic-intro p{font-size:13px;line-height:1.8}.limitations{font-size:13px;line-height:1.8;color:#6d7d61;padding-left:22px}.limitations li{margin:15px 0}.large-icon{color:#6f9555}.table-wrap,.source-table-wrap{border-radius:10px;border:1px solid #e1e8d8;overflow:auto;max-width:100%}table,.source-table{font-size:12px;border-collapse:collapse}th,.source-table th{background:#f3f6ed;color:#738365;font-size:10px;letter-spacing:.35px;font-weight:600;padding:13px;text-transform:none}td,.source-table td{padding:15px 13px;font-size:12px;line-height:1.7;border-color:#e9eee2}tbody tr:hover{background:#fafcf6}td small{font-size:11px;color:#80916f}.source-table-wrap{margin:18px 0}.source-table tbody th{font-size:11px}.source-table td{min-width:115px}.source-table th{min-width:100px}#open-data-result dl{display:grid;grid-template-columns:minmax(140px,1fr) 2fr;font-size:12px;gap:12px;border:1px solid var(--line);padding:18px;border-radius:9px}#open-data-result dt{font-weight:500;color:#6a815b}#open-data-result dd{margin:0;min-width:0}
/* Conversación */
body[data-workspace-view=chat] main{max-width:1530px;padding-top:28px}#view-chat>.heading{margin-bottom:22px}#view-chat h1{font-size:32px;letter-spacing:-1.1px}#view-chat .eyebrow{font-size:9px;margin-bottom:9px}#chat-context{font-size:12px}.chat-layout{grid-template-columns:minmax(0,1fr) 245px;gap:24px;align-items:start}.chat-panel{height:calc(100dvh - 258px);min-height:520px;max-height:1000px;display:flex;flex-direction:column;padding:0;border-radius:17px;border-color:#dce5d4;box-shadow:var(--shadow);margin:0;overflow:hidden;min-width:0}.url-lamp{width:12px;height:12px;border-radius:50%;flex:none;margin-top:6px}.url-lamp.green{background:#3d6b4f}.url-lamp.amber{background:#c4a15a}.url-lamp.red{background:#9b3b35}.url-row{align-items:flex-start}.chart-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}.chart-grid h3{font-size:13px;margin:0 0 8px}@media(max-width:900px){.chart-grid{grid-template-columns:1fr}}.conversation-switch{display:flex;gap:8px;align-items:center;padding:12px 16px;border-bottom:1px solid #e7edde;background:#fcfdf9;flex:none}.conversation-switch select{flex:1;min-width:0}.conversation-header{display:flex;gap:11px;align-items:center;padding:17px 22px;border-bottom:1px solid #e7edde;background:#fcfdf9;flex:none}.assistant-symbol{display:grid;place-items:center;width:35px;height:35px;border-radius:10px;background:#e8f1d7;color:#5b8040;flex:none}.assistant-symbol svg{width:20px}.conversation-header strong{display:block;font-size:12px;font-weight:600;color:#435e35}.conversation-header div>span{display:block;font-size:10px;color:#8b987e;margin-top:2px}.conversation-label{font-size:9px;margin-left:auto;color:#8b9a7d;padding:5px 8px;background:#f1f5e9;border-radius:5px}.chat-panel #chat-messages{flex:1 1 auto;height:auto;min-height:120px;padding:25px 24px;gap:28px;overscroll-behavior:contain;background:#fff;scrollbar-width:thin;scrollbar-color:#cbd9bf transparent}.message{font-size:14px;line-height:1.85;max-width:96%;flex:none;overflow-wrap:anywhere}.message.assistant{padding:0;width:96%;max-width:96%;flex:0 0 auto}.message.user{background:#f0f5e5;border:1px solid #e0e9d4;color:#40572f;border-radius:13px 13px 3px 13px;padding:13px 18px;max-width:83%;margin-left:auto}.message-label{font-size:9px;letter-spacing:1.2px;font-weight:600;color:#80956e;margin-bottom:9px}.message.user .message-label{color:#8b9c79;font-size:8px}.message.assistant>.message-label:before{content:'✦';font-size:15px;color:#7b9b5f;display:inline-block;margin-right:8px;vertical-align:middle}.message .button{font-size:11px;min-height:36px;padding:8px 12px;margin-top:8px}.chat-evidence{margin-top:19px;padding-top:14px;border-top:1px solid #ecf0e5;display:block}.chat-evidence>.help{font-size:10px;color:#8a9b7a}.chat-evidence>h3{font-size:12px;font-weight:600;margin:20px 0 12px;color:#4e6c39}.chat-evidence>.badge{font-size:9px;display:inline-block;width:auto;max-width:100%;margin-bottom:10px}.chat-evidence>div{margin-bottom:12px}.chat-evidence details>summary{font-size:11px}.source-card{border:1px solid #dfe8d4;border-radius:10px;padding:14px 16px;background:#fbfdf8;margin:12px 0}.source-card>strong{font-size:12px;color:#4c6b37}.source-card>.help{font-size:10px;color:#8c9b7f;margin:6px 0}.source-card blockquote{font-size:12px;border-color:#a8c191;color:#657957;line-height:1.8;padding-left:12px;margin:12px 0}.source-card .text-button{font-size:10px;margin-left:12px}.source-card .button{background:white}.process-lights{background:#f8faf3;border:1px solid #e6edde;border-radius:10px;padding:12px;gap:12px;margin:12px 0}.process-step{font-size:10px;flex:1 1 90px;color:#698257;line-height:1.5;gap:6px}.process-step small{font-size:9px;color:#8d9d7e;margin-top:3px}.process-bulb{width:8px;height:8px;flex-basis:8px;margin-top:4px}.process-step.done .process-bulb{background:#4b9568;border-color:#4b9568;box-shadow:0 0 5px #afcfa459}.process-log{font-size:11px;background:#fff}.process-log summary{font-size:10px;color:#7d916a}.process-log li{padding-bottom:12px;margin:14px 0;border-bottom:1px solid #edf1e6}.process-log li p{font-size:11px}.process-log a{font-size:10px}.process-log .text-button{font-size:11px}.chat-panel #chat-progress{flex:none;max-height:30vh;padding:12px 20px;background:#fbfcf7;border-bottom:1px solid #e1e9d6;font-size:11px;overflow:auto}.chat-panel #chat-progress .process-lights{margin:0 0 9px}.chat-panel #chat-progress p[role=status]{font-size:11px}.chat-panel #chat-form{padding:14px 18px 7px;gap:10px;background:#fff;border-top:1px solid #e3eadb;align-items:center;flex:none}.chat-panel #chat-form textarea{background:#f8faf3;min-height:48px;height:52px;resize:none;padding:13px 14px;font-size:13px;line-height:1.65;border-radius:10px;max-height:160px}.chat-panel #chat-form button{min-height:45px;align-self:center;border-radius:9px;font-size:11px;padding:10px 15px}.composer-help{font-size:9px;color:#97a38b;padding:3px 18px 13px;background:white;text-align:left;line-height:1.6;flex:none}.chat-guide{padding-top:0}.chat-context-card{border:1px solid #dee7d3;border-radius:13px;padding:20px;background:#f0f5e7;margin-bottom:25px}.context-card-label{font-size:8px;letter-spacing:1.1px;color:#8a9b7a;font-weight:600;margin-bottom:18px}.context-item{display:flex;gap:10px;align-items:flex-start;margin-bottom:17px}.context-item svg{width:17px;height:17px;color:#789565;margin-top:4px}.context-item div{min-width:0}.context-item small{display:block;font-size:10px;color:#8b9d7b;margin-bottom:4px}.context-item strong{font-size:11px;color:#506b3d;line-height:1.65;display:block;overflow-wrap:anywhere}.chat-context-card .text-button{font-size:10px;margin-top:3px}.chat-guide h3{font-size:13px;font-weight:500;color:#647b52;margin:0 0 9px}.chat-guide>p{font-size:11px;color:#879b77;line-height:1.8}.chat-guide .prompt{font-size:11px;color:#6f845d;border-bottom:1px solid #dfe7d5;min-height:47px;padding:13px 8px 13px 0;line-height:1.6}.chat-guide .prompt:after{content:'↗';float:right;color:#9aac8a}.chat-guide .prompt:hover{color:var(--teal);background:#edf3e6}.chat-guide .notice{font-size:10px;line-height:1.9;background:transparent;border:0;border-top:1px solid #e1e9d9;border-radius:0;padding:16px 0;color:#93a384;margin-top:20px}body[data-workspace-view=chat] footer{margin-top:22px;padding-top:12px;border:0}
/* Visor y adaptación */
#document-modal{width:min(1120px,94vw);max-width:94vw;max-height:92dvh;border:1px solid #cbdac0;box-shadow:0 30px 100px #173a2940;border-radius:17px;padding:24px}#document-modal::backdrop{background:#112a21a3;backdrop-filter:blur(3px)}#document-modal>.section-title{position:sticky;top:-24px;background:white;padding:5px 0 16px;z-index:2;border-bottom:1px solid var(--line)}#document-title{font-size:18px;line-height:1.5;overflow-wrap:anywhere}.viewer-toolbar{gap:10px;flex-wrap:wrap;align-items:center}.viewer-toolbar label{font-size:11px;margin-left:auto}.viewer-toolbar .button{font-size:11px}.original-preview{border:1px solid #dce5d4;border-radius:10px;height:65dvh;margin-top:18px}.viewer-toolbar select{padding:8px;min-height:36px;font-size:12px}.doc-page pre{font-size:13px}#document-content>p{font-size:12px}#viewer-text pre{font-size:13px;line-height:1.85}
@keyframes workspace-appear{from{opacity:.4;transform:translateY(4px)}to{opacity:1;transform:none}}
@media(min-width:1500px){main{padding-top:45px}.chat-layout{grid-template-columns:minmax(0,1fr) 270px;gap:30px}.chat-panel{min-height:580px}.sidebar{padding-top:32px}.nav{min-height:46px}}
@media(max-width:1200px){:root{--sidebar-width:212px}main{padding:30px 28px 20px}.topbar{padding:0 28px}.sidebar{padding-left:12px;padding-right:12px}.nav{font-size:11px;padding:10px;gap:9px}.brand{padding-left:10px}.sidebar-note{padding-left:10px;padding-right:10px}.card-bottom{flex-direction:column;align-items:stretch;gap:18px}.card-actions{justify-content:flex-end;align-self:stretch}.chat-layout{grid-template-columns:minmax(0,1fr) 215px;gap:18px}.chat-panel{min-height:520px}.chat-context-card{padding:16px}.live-chip{display:none}.search-row{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}.search-row>.button{grid-column:1/-1;width:100%;margin:0}.search-panel{padding:23px}.search-actions .inline-label:last-child{margin-left:0}.filters .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.heading>.button{max-width:none}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.analysis-empty{flex-wrap:wrap}.analysis-empty>.button{margin-left:62px}.conversation-label{display:none}.company-intro{flex-wrap:wrap}.company-intro .button{margin-left:58px}.dossier-steps{gap:12px}.dossier-steps>button{padding:18px 16px}.dossier-steps strong{font-size:12px}.source-banner .text-button{white-space:nowrap}}
@media(max-width:980px) and (min-width:761px){.chat-layout{grid-template-columns:minmax(0,1fr)}.chat-guide{display:none}.chat-panel{height:calc(100dvh - 260px)}.start-guide{gap:18px}.start-guide>div{padding-left:0;padding-top:40px}.start-guide p{font-size:10px}.company-intro .intro-icon{display:none}.company-intro .button{margin-left:0}.source-banner .text-button{display:none}.topbar{gap:8px}.crumb,.crumb-sep{display:none}.workspace-tabs>button{font-size:11px;padding-left:12px;padding-right:12px}}
@media(max-width:760px){
 :root{--sidebar-width:260px}html{scroll-padding-top:76px}body{font-size:14px}.sidebar{position:fixed;inset:0 auto 0 0;width:260px;max-width:88vw;padding:24px 16px;display:flex;transform:translateX(-101%);transition:transform .22s ease;z-index:110;overflow-y:auto;box-shadow:0 0 70px #173a2920}.sidebar nav{display:flex;overflow:visible;gap:5px}.sidebar .nav{font-size:13px;padding:11px 13px;min-height:46px;white-space:normal}.sidebar .nav svg{display:block;width:19px;height:19px}.sidebar .nav span{display:initial}.sidebar .workspace-label{display:block;margin-top:23px;font-size:9px}.sidebar .workspace-label:first-child{margin-top:0}.sidebar .sidebar-note{display:block;padding:25px 13px 20px}.sidebar .profile-mini{display:flex}.brand{font-size:23px;padding-bottom:30px;padding-left:11px}.brand-icon{width:37px;height:40px}.brand-sub{font-size:9px}.navigation-open .sidebar{transform:translateX(0)}#navigation-backdrop{position:fixed;inset:0;background:#142b225e;backdrop-filter:blur(3px);z-index:100}#close-navigation{display:flex;position:absolute;right:15px;top:27px;width:29px;height:29px;background:#ffffff0c;border-color:#ffffff17;color:#d6e6c4;font-size:21px}#open-navigation{display:flex;width:36px;height:36px;border:0;background:#edf3e6}.main-shell{margin:0}.topbar{height:63px;padding:0 18px;gap:12px}.breadcrumb{font-size:12px;flex:1}.crumb,.crumb-sep{display:none}.topbar-actions{gap:0;flex:none}.context-company{padding:7px 9px;max-width:135px;font-size:10px;gap:6px;border-color:#e4eadd}.context-company #active-company-name{max-width:82px}.context-company span svg{width:14px;height:14px}.context-chevron{display:none}.live-chip{display:none}main{padding:27px 18px 94px;width:100%;max-width:100%;min-width:0}h1{font-size:32px;letter-spacing:-1.1px;line-height:1.2}h2{font-size:18px}.heading{flex-direction:column;gap:14px;margin-bottom:24px}.heading p{font-size:13px;line-height:1.8}.heading>.button{margin:0;align-self:flex-start;max-width:100%}.eyebrow{font-size:8px;letter-spacing:1.4px;margin-bottom:13px}.panel{padding:21px 18px;border-radius:13px;margin-bottom:20px}.button{font-size:12px;min-height:43px;white-space:normal}.source-banner{padding:17px 0 22px;align-items:flex-start}.source-banner .source-icon{display:grid;flex:0 0 32px}.source-banner .text-button{display:none}.source-banner strong{font-size:11px}.source-banner p{font-size:10px;line-height:1.8}.search-panel-intro{gap:10px;margin-bottom:20px}.search-panel-intro>span:first-child{width:35px;height:35px;flex:0 0 35px}.search-panel-intro h2{font-size:16px}.search-panel-intro p{font-size:11px}.search-origin{display:none}#view-search>.heading{margin:0 0 18px}#view-search>.heading h1{font-size:36px;letter-spacing:-1.4px;line-height:1.12}#view-search>.heading p{font-size:13px}.search-row,.form-grid,.filters .form-grid{grid-template-columns:minmax(0,1fr);gap:8px}.search-row .button{grid-column:auto;min-width:0}.search-actions{flex-direction:column;align-items:flex-start;gap:16px;padding-top:18px}.search-actions .text-button{font-size:12px}.search-actions .inline-label{font-size:11px}.filters summary span{display:block;font-size:10px;margin:3px 0 0 14px}.start-guide{grid-template-columns:minmax(0,1fr);gap:22px;padding:5px 0 25px}.start-guide>div{padding-left:43px}.start-guide strong{font-size:13px}.start-guide p{font-size:12px}.start-guide .text-button{font-size:11px}.results-toolbar{align-items:center}.results-toolbar h2{font-size:16px}.results-toolbar .button{font-size:11px;padding:8px 11px;flex:none}.results-toolbar p{font-size:10px}.process-card{padding:21px 18px}.card-top{gap:12px;align-items:flex-start}.entity{font-size:9px;max-width:72%}.badge{font-size:9px;line-height:1.7}.process-card h3{font-size:14px;line-height:1.8}.card-data{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px;width:100%}.datum span{font-size:8px}.datum strong{font-size:11px}.datum.price strong{font-size:17px}.card-actions{justify-content:space-between;gap:12px}.card-actions .text-button{font-size:11px}.card-warning{font-size:10px}.form-footer{flex-direction:column;align-items:stretch;gap:15px}.form-footer .help{max-width:100%}.company-intro{padding:18px;gap:12px}.company-intro .intro-icon{display:none}.company-intro .button{margin-left:0;width:100%}.company-intro p{font-size:11px}.workspace-tabs,.tabs{gap:0;margin-bottom:23px}.workspace-tabs>button,.tabs>button{font-size:11px;min-height:48px;padding:13px 13px}.profile-fieldset{padding-top:19px;margin-top:27px}.profile-fieldset legend{font-size:16px}.profile-fieldset>p{font-size:11px}.profile-fieldset .form-grid{margin-top:17px}.company-choices{gap:12px}.company-choices button{flex-basis:100%;padding:22px 20px;min-height:100px}.analysis-empty{padding:22px 18px;gap:12px}.analysis-empty .intro-icon{display:none}.analysis-empty h2{font-size:17px}.analysis-empty>.button{margin:7px 0 0;width:100%}.dossier-steps{grid-template-columns:minmax(0,1fr);gap:10px}.dossier-steps>button{padding:18px 20px 18px 58px}.dossier-steps span{position:absolute;left:20px;top:21px;margin:0}.dossier-steps strong{font-size:13px}.dossier-steps p{font-size:11px}.document-row{align-items:stretch;flex-direction:column;gap:13px}.document-row strong{font-size:13px}.document-actions{gap:9px}.document-actions .button{font-size:11px;flex:1 1 130px}.section-title{align-items:flex-start;flex-direction:column;gap:12px}.upload-form{flex-direction:column;align-items:stretch;padding:14px;gap:15px}.upload-form input{max-width:100%;font-size:11px}.upload-form input::file-selector-button{font-size:10px;padding:8px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.stat{padding:17px 14px;margin:0}.stat strong{font-size:24px}.stat span{font-size:10px}.notice{padding:13px 15px;font-size:11px}.edit-section{padding:15px 13px}.edit-section summary{font-size:12px}.edit-section summary span{display:block;margin:4px 0 0 14px}.diagnostic-intro{grid-template-columns:minmax(0,1fr);gap:0}#reference-list>.panel{padding:22px 18px}#open-data-result dl{grid-template-columns:minmax(0,1fr);gap:6px}#open-data-result dd{padding-bottom:13px}.table-wrap table{min-width:560px}.source-table-wrap table{min-width:0}.graph-edge{display:flex;flex-wrap:wrap;gap:9px;font-size:11px}.graph-edge span{font-size:9px}.mobile-dock{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;position:fixed;bottom:0;left:0;right:0;padding:8px 15px calc(8px + env(safe-area-inset-bottom));background:#ffffffef;backdrop-filter:blur(16px);border-top:1px solid #dce6d3;z-index:60;box-shadow:0 -4px 20px #31572b08}.mobile-dock button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:0;background:transparent;border-radius:10px;font-size:9px;color:#869977;min-height:46px;padding:5px 2px;font-weight:500}.mobile-dock button svg{width:20px;height:20px}.mobile-dock button.active{color:#3d6d31;background:#edf5df}.mobile-dock button.active svg{stroke-width:2}.skip-link{left:15px;top:8px}.toast{bottom:85px;left:15px;right:15px;font-size:12px;padding:16px 18px}.topbar .icon-button svg{width:20px}.chat-layout{grid-template-columns:minmax(0,1fr);gap:0}.chat-guide{display:none}body[data-workspace-view=chat] main{padding:20px 12px 83px}#view-chat>.heading{margin:0 6px 16px;gap:0}#view-chat h1{font-size:25px;letter-spacing:-.8px;margin-bottom:7px}#view-chat .eyebrow{font-size:8px;margin-bottom:9px}#chat-context{font-size:10px}#view-chat .chat-panel{height:calc(100dvh - 257px);min-height:400px;max-height:none;border-radius:13px;padding:0;margin:0}.conversation-header{padding:12px 14px;gap:10px}.assistant-symbol{width:30px;height:30px;border-radius:8px}.conversation-header strong{font-size:11px}.conversation-header div>span{font-size:9px}.chat-panel #chat-messages{padding:19px 15px;gap:24px}.message{font-size:13px;line-height:1.85}.message.assistant{max-width:100%;width:100%}.message.user{max-width:90%;padding:11px 14px}.message-label{font-size:8px}.chat-panel #chat-form{padding:12px 11px 5px;gap:8px}.chat-panel #chat-form textarea{padding:11px 12px;font-size:13px;min-height:46px;height:50px}.chat-panel #chat-form button{font-size:10px;padding:10px;min-height:43px}.composer-help{font-size:8px;padding:4px 12px 11px;line-height:1.6}.chat-panel #chat-progress{padding:11px;max-height:27dvh}.process-lights{padding:10px;gap:9px}.process-step{font-size:9px;flex-basis:75px}.process-step small{font-size:8px}.process-bulb{flex-basis:7px;width:7px;height:7px}.process-log summary{font-size:10px}.source-card{padding:13px 12px}.source-card .button{font-size:10px}.source-card>.help{font-size:9px}.source-card>strong{font-size:11px}.source-card .text-button{display:block;margin:10px 0 0}.source-table th,.source-table td{padding:10px;font-size:11px;min-width:100px}.chat-evidence>.badge{font-size:8px}.source-card blockquote{font-size:11px}.chat-evidence>h3{font-size:12px}body[data-workspace-view=chat] footer{display:none}#document-modal{padding:18px 14px;width:96vw;max-width:96vw;max-height:92dvh;border-radius:12px}#document-modal>.section-title{flex-direction:row;top:-18px;align-items:flex-start;gap:12px}#document-title{font-size:14px;flex:1;min-width:0}#close-document{font-size:11px;min-height:35px;padding:7px 10px}.viewer-toolbar{align-items:stretch;gap:10px}.viewer-toolbar>*{flex:1 1 115px}.viewer-toolbar .button{font-size:10px;min-height:38px}.viewer-toolbar label{font-size:10px;margin-left:0}.original-preview{height:56dvh;margin-top:14px}#viewer-text pre{font-size:12px}footer{font-size:9px;flex-direction:column;gap:6px;margin-bottom:0;padding-top:24px}.form-grid input,.form-grid select,.form-grid textarea{font-size:14px}
}
@media(max-width:360px){.topbar{padding:0 12px;gap:8px}.context-company{max-width:112px}.context-company #active-company-name{max-width:64px}main{padding-left:14px;padding-right:14px}#view-search>.heading h1{font-size:32px}.search-panel-intro h2{font-size:14px}.process-step{flex-basis:69px}.chat-panel #chat-form button{padding:8px}.stats-grid{gap:8px}.stat{padding:15px 11px}.card-actions .button{font-size:10px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}
.financial-calculator>summary{font-size:15px;font-weight:500}.financial-calculator[open]>summary{margin-bottom:20px}.financial-calculator>summary span{font-size:11px}.reference-file-library>summary{font-size:13px;color:#597844}.reference-file-library[open]>summary{margin-bottom:18px}
.process-context{display:flex;align-items:center;gap:8px;border:0;background:#f2f6eb;border-radius:7px;padding:7px 10px;color:#698156;font-size:10px;max-width:210px;margin-left:auto;min-width:0}.process-context span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.process-context svg{width:15px;height:15px}.auxiliary-comparison[open]>summary{margin-bottom:18px}.memory-incidents{margin-top:22px}.memory-incidents>summary{padding-bottom:12px}.privacy-details{margin-top:24px;border-top:1px solid var(--line);padding-top:12px}.privacy-details>summary{font-size:10px;color:#869c75}.chat-guide .privacy-details .notice{margin:8px 0 0;border:0;padding-top:7px}.financial-calculator summary span{display:inline-block}
@media(max-width:1050px){.process-context{max-width:155px;font-size:9px}.topbar-actions{gap:10px}.context-company{max-width:210px}.crumb,.crumb-sep{display:none}}
@media(max-width:760px){.process-context{display:none}.financial-calculator summary span{display:block;margin:4px 0 0 14px}.financial-calculator>summary{font-size:13px}.topbar-actions{max-width:45%}.auxiliary-comparison>summary{font-size:13px}}
/* El texto secundario conserva contraste incluso en pantallas pequeñas. */
.help,.results-toolbar p,.card-ref,.datum span,.stat span,.stat p,.chat-guide>p,.context-item small,.chat-evidence>.help,.source-card>.help,.process-step small,.process-log summary,.composer-help,.conversation-header div>span,.search-panel-intro p{color:#68795c}
.process-step.skipped{opacity:1}.process-step.skipped .process-bulb{border-color:#b5c2a8}.chat-evidence>details{margin:10px 0}.context-card-label{color:#6e825d}.workspace-tabs>button,.tabs>button{color:#667e55}.source-banner p{color:#728466}
@media(max-width:760px){#open-navigation{width:42px;height:42px}.mobile-dock button{font-size:10px;color:#657c55}.composer-help{font-size:9px}.process-step small{font-size:9px}.process-step{font-size:10px}.message-label{font-size:9px}.source-card>.help{font-size:10px}}
