/* Dulce Vega — nude palette; warm surfaces, clear operational status. */
:root{--ink:#49362f;--muted:#78665d;--line:#e3d6cc;--paper:#f6f0e9;--lime:#e7cabb;--green:#3c7255;--red:#ad4146;--amber:#946018;--gray:#827773}
body{background:var(--paper)}
.sidebar{background:#49362f;color:#fcf4ed;border-right:1px solid #5c463b}
.brand{font-size:32px;letter-spacing:-1px}.brand-mark{background:#e7cabb;color:#49362f;border-radius:50%;width:48px;height:48px}.brand-small{letter-spacing:.3em}
.workspace-label{color:#d4bbaa;font-size:12px;letter-spacing:.07em}.nav-item{color:#ead8cc;border-radius:24px;padding:14px 17px}.nav-item:hover{background:#60483d}.nav-item.active{background:#e7cabb;color:#49362f}.avatar{background:#735a4b;color:#fff4ea}.sidebar-bottom small{color:#dac6b8}
.topbar{background:#fcf8f3;border-color:var(--line)}.topbar-caption{font-size:12px;letter-spacing:.12em}.demo-pill{background:#f0e5d9;color:#6b5040;border-color:#e5d2c1}.demo-pill span{background:#947451}
h1{font-family:Georgia,'Times New Roman',serif;font-weight:400;letter-spacing:-.9px;font-size:38px}.page-head{margin-bottom:24px}h2{font-weight:600}.eyebrow{color:#8a6755;font-size:12px}
.btn{border-radius:24px;background:#624536;color:#fffaf5;padding-inline:20px}.btn.secondary{background:#fffcf8;color:#624536;border-color:#ddc9b9}.btn.small{padding-inline:15px}.icon-btn{color:#785f51}.text-link{color:#78523e;font-weight:550}
.notice{background:#eee3d6;border-color:#e5d5c4;color:#6a5141;border-radius:14px}.notice .icon{color:#8b684f}
.stats{gap:14px}.stat{border:1px solid #e0caba;border-radius:18px;background:#ebd9c7;padding:22px;color:#503c30}.stat:first-child{background:#70503f;border-color:#70503f;color:#fff5ec}.stat:first-child small{color:#f2ded0}.stat:nth-child(2){background:#efd8d2;border-color:#e5c5bd;color:#713f3c}.stat:nth-child(3){background:#e6d4bd;border-color:#d9c4a9;color:#644a32}.stat:nth-child(4){background:#ddd0c9;border-color:#ccbbb1;color:#55463c}.stat small{color:inherit;opacity:.85}.stat strong{font-family:Georgia,serif;font-size:37px;font-weight:400}.stat .label{font-size:14px}.stat .icon{opacity:.85}
.closing-strip{gap:14px}.closing-item{background:#eee0d1;border-color:#e0c9b4;border-radius:14px;padding:16px}.closing-item:nth-child(2){background:#eddbd6;border-color:#dfc5bd}.date-tile{background:#fff8ef;border-radius:9px;color:#80573a;padding:9px 12px}.date-tile small{font-size:12px}.closing-item b{font-size:15px}.closing-item .subline{font-size:13px}
input,select,textarea,.field{background:#fffdf9;border-color:#d7c4b6;border-radius:10px;color:#49362f}.search-wrap .icon{color:#957965}.toolbar select{min-width:178px}input::placeholder,textarea::placeholder{color:#937d70}.chip{font-size:14px;background:#fbf5ee;color:#745e4f;border-color:#deccbd;padding:9px 16px}.chip.active{background:#795641;border-color:#795641;color:#fff8f0}
.file-card{border-color:#e3d4c7;border-radius:18px;background:#fffcf8;border-top:4px solid #c49d7e;box-shadow:0 3px 15px #63402c06}.file-underwriting{border-top-color:#c08c89}.file-ctc{border-top-color:#a48b6b}.file-funded{border-top-color:#879783}.file-card:hover{box-shadow:0 8px 25px #785a4312}.card-main{padding:23px}.card-top{gap:10px}.borrower{font-size:18px;font-weight:600}.llc{font-size:13px;color:#806758;letter-spacing:.015em}.stage-badge{font-size:12px;border-radius:20px;padding:6px 10px;background:#f0dfce;color:#70513c;font-weight:600;white-space:normal;text-align:center;max-width:128px}.stage-underwriting{background:#f0dad8;color:#824c4c}.stage-ctc{background:#e9dfca;color:#6a5939}.stage-funded{background:#dfe7db;color:#42603e}
.address{color:#7c6353}.card-meta{border-color:#ebdfd4;flex-wrap:wrap;row-gap:7px;font-size:13px}.card-meta strong{font-size:14px;color:#5f4233}.pending-label{font-size:12px;letter-spacing:.08em;color:#996348}.pending-list{font-size:15px}.pending-list li::before{color:#b96855}.all-done{color:#3c7255}.card-update{background:#f5ece3;border-color:#eadbcc;color:#806858;padding:14px 23px;font-size:13px}.card-update b{color:#634738}
.signals{gap:10px 8px}.signal{font-size:14px;flex-wrap:wrap;column-gap:6px}.signal .status-label{font-size:12px;color:#7d6a5d;margin-left:14px;flex-basis:100%}.dot{width:8px;height:8px;min-width:8px}.dot.red{background:#ad4146}.dot.amber{background:#b17a23}.dot.green{background:#3c7b58}.dot.gray{background:#938985}.legend{font-size:12px;color:#796453;gap:12px}.cd-alert{background:#f4dfcb;color:#805332;border:1px solid #ecd0b6;border-radius:9px;font-size:14px}
.panel{background:#fffcf8;border-color:#e2d2c4;border-radius:16px}.source-block{background:#f4e9dd;border-color:#e5d0be;border-radius:12px}.source-block .source-title{color:#80614c;font-size:12px}.source-flow{color:#8d6345;font-size:14px}.help{color:#7e6757;font-size:13px}.check-row{font-size:15px}.check-row input{accent-color:#8c644b}.history li{border-color:#dac0ab}.history small{font-size:12px;color:#8b6d56}.summary-sub{color:#846c5b!important;font-size:13px!important}.stage-track{gap:8px;overflow-x:auto;padding:6px 0 14px}.step{font-size:14px;background:#ede1d5;color:#806857;border-radius:20px;padding:10px 16px}.step::after{display:none}.step.current{background:#795541;color:#fff8f0}.step.past{background:#dfd0bd;color:#685340}.detail-back{color:#84664f}.note-warning{background:#f2e0ce;color:#7d542f}.history li{overflow-wrap:anywhere}.owner-block{background:#70503f;color:#fff5ec}.owner-block .eyebrow,.owner-block p{color:#edd5c4}.state-label.good{color:#3c7255}.state-label.pending-state{color:#92632f}
.toast{background:#634735;color:#fff7ef;border:1px solid #80604d;border-radius:16px}dialog{background:#fffcf8;border-radius:20px;box-shadow:0 20px 100px #432b2938}dialog::backdrop{background:#49362f77}.empty{background:#fffaf4;border-color:#d8c0ad}.empty p{color:#80634e}footer{color:#8a715f}:focus-visible{outline-color:#9c6245}
@media(max-width:1150px){.signal .status-label{display:block}.stat{padding:17px}.card-main{padding:19px}.stage-badge{max-width:112px;font-size:12px}}
@media(max-width:800px){h1{font-size:33px}.topbar{background:#fcf6ef}.mobile-brand{color:#674634}.mobile-brand strong{letter-spacing:-.3px}.bottom-nav{background:#fff8f1f5;border-color:#e2cdbb}.bottom-nav .nav-item{color:#856a57;font-size:12px}.bottom-nav .nav-item.active{background:#ecd8c7;color:#624532}.stat{padding:18px;border-radius:16px}.stat strong{font-size:32px}.stat small{font-size:12px}.notice{font-size:13px}.closing-item{padding:12px 14px}.date-tile{padding:8px}.toast{bottom:96px}.panel{padding:20px}.toolbar select{min-width:160px}.bottom-nav .nav-item{border-radius:14px}.step{font-size:14px;padding:9px 12px}}
@media(max-width:560px){.card-main{padding:20px}.card-top{flex-wrap:wrap;row-gap:10px}.borrower{flex:1;min-width:175px}.stage-badge{max-width:none}.signal .status-label{display:block;font-size:12px}.signal{font-size:14px}.card-update{padding:13px 20px}.filters{gap:7px}.chip{font-size:14px;padding:8px 13px}.stat .label{font-size:14px;line-height:1.35}.stat .icon{width:18px;height:18px}.stage-track{flex-wrap:wrap}.stage-track .step{flex:1 1 calc(50% - 8px);justify-content:center}.page-head.detail-head h1{font-size:32px}.card-meta{font-size:13px}.sidebar-bottom small{font-size:12px}}

/* Inicio: jerarquía más legible para consultar desde el teléfono. */
.home-view h1{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-weight:750;color:#35251e;letter-spacing:-.5px}
.home-view .section-head h2{font-size:1.375rem;font-weight:750;color:#35251e;line-height:1.35}
.home-view .stat .label{font-size:1rem;font-weight:750;line-height:1.4;color:#35251e}
.home-view .stat:first-child .label{color:#fffaf5}
.home-view .stat strong{font-family:inherit;font-weight:750;line-height:1.2}
.home-view .borrower{font-size:1.125rem;font-weight:750;color:#35251e;line-height:1.4}
.home-view .closing-item b{font-size:1rem;font-weight:750;color:#35251e}
.home-view .pending-label{font-size:.875rem;font-weight:750;color:#75432f;letter-spacing:.035em;line-height:1.5}
.home-view .signal{font-size:.9375rem;font-weight:700;color:#49362f;line-height:1.45}
.home-view .signal .status-label{font-size:.8125rem;font-weight:500;color:#695446}
.home-view .card-meta strong{font-size:.9375rem;font-weight:750;color:#49362f}
.home-view .card-update b{font-weight:750;color:#49362f}

.document-row{padding:12px 0;border-bottom:1px solid #dfd3ca}.document-row .checks{margin:0}.document-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:8px}.document-actions .btn{min-height:44px}
