*{box-sizing:border-box}body{margin:0;background:#f4f7f8;color:#25424d;font-family:Segoe UI,system-ui,sans-serif}button,input{font:inherit}button{cursor:pointer}[hidden]{display:none!important}button:disabled{opacity:.65;cursor:not-allowed}:focus-visible{outline:3px solid #589dc8;outline-offset:3px}header{height:76px;border-bottom:1px solid #e0e9ec;background:white;padding:0 5%;display:flex;justify-content:space-between;align-items:center}.brand{font-size:25px;font-weight:850;letter-spacing:3px;color:#157f78}.brand small{font-size:14px;letter-spacing:0;font-weight:400;color:#8a9ca6;margin-left:20px}.pill{font-size:11px;padding:8px 13px;border-radius:25px;background:#fff2d8;color:#92763a}.text-btn{border:0;background:none;color:#6a8490;padding:10px}.primary{border:0;background:#137f79;color:white;border-radius:12px;font-weight:600;padding:15px 23px}.primary:hover{background:#096a64}main{max-width:1220px;padding:30px 28px 130px;margin:auto}.steps{display:flex;justify-content:center;align-items:center;gap:14px;font-size:13px;color:#8c9ea7;margin-bottom:35px}.step{display:flex;align-items:center;gap:8px}.step b{border:1px solid #d7e3e8;background:white;width:29px;height:29px;border-radius:50%;display:grid;place-items:center}.step.active{color:#16827b}.step.active b{background:#16827b;color:white;border-color:#16827b}.line{width:70px;height:1px;background:#dbe6e9}h1{font-size:34px;letter-spacing:-1px;margin:14px 0}h2{font-size:19px;margin:0 0 12px}p{line-height:1.6}.muted{color:#7f959f}.welcome{max-width:590px;text-align:center;margin:50px auto}.welcome-icon{background:#e0f3ec;width:88px;height:88px;margin:auto;border-radius:28px;display:grid;place-items:center;color:#2a957d;font-size:40px}.code-box{margin-top:28px;background:white;border:1px solid #e0e9ec;border-radius:20px;padding:28px;text-align:left}label{font-size:13px;font-weight:600;display:block;margin-bottom:10px}input:not([type=file]):not([type=checkbox]){width:100%;border:1px solid #ccdfe5;border-radius:10px;background:#fafcfd;color:#294853;padding:14px}.code-box .primary{width:100%;margin-top:16px}.hint{font-size:12px;color:#8c9fa8;margin-top:14px}.heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.heading h1{font-size:29px;margin-bottom:7px}.eyebrow{font-size:10px;font-weight:750;letter-spacing:1.8px;color:#679394}.code-label{font-size:13px;color:#7d959f;overflow-wrap:anywhere}.layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:28px;align-items:start}.tabs{display:flex;background:#e9eff2;padding:5px;border-radius:14px;margin-bottom:22px}.tabs button{flex:1;background:none;border:0;padding:12px 5px;border-radius:10px;color:#758c97;font-size:13px}.tabs .active{background:white;color:#168078;font-weight:650;box-shadow:0 2px 7px #20485310}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.section-heading h2{font-size:15px;margin:0}.section-heading span{font-size:11px;color:#92a4ad}.cards{display:grid;grid-template-columns:1fr 1fr;gap:14px}.card{background:white;border:1px solid #dce7eb;border-radius:16px;padding:18px;min-height:192px;display:flex;flex-direction:column;transition:background .25s,border-color .25s,transform .15s}.card:hover{transform:translateY(-2px);border-color:#87bbb5}.card.queued{background:#edf5ff;border-color:#a6c8e9}.card.saved{background:#edf8f2;border-color:#b0dcc3}.card.failed{background:#fff5ed;border-color:#e3b999}.card.drag{background:#e1f4ff;outline:2px dashed #579fc9}.card-top{display:flex;justify-content:space-between;align-items:center}.doc-number{font-size:10px;font-weight:650;color:#91a4ae}.state-icon{border:1px solid #dce8ec;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;color:#9badb6}.queued .state-icon{background:#4b94cb;border-color:#4b94cb;color:white}.saved .state-icon{background:#49aa7e;border-color:#49aa7e;color:white}.card h3{font-size:15px;font-weight:650;margin:12px 0 7px;line-height:1.4}.file-text{font-size:11px;line-height:1.5;color:#8ca0aa;margin-bottom:15px;overflow-wrap:anywhere}.queued .file-text{color:#5284ab}.saved .file-text{color:#478c6b}.attach{margin-top:auto;border:1px dashed #cbdde4;border-radius:9px;background:#f6f9fb;color:#65828f;padding:10px;font-size:12px;font-weight:600}.queued .attach{background:#e5f1fe;border-color:#bdd6ea;color:#4b86b4}.saved .attach{background:#e3f3e9;border-color:#bbddcd;color:#448d68}.remove{border:0;background:none;color:#976f77;font-size:11px;margin-top:8px}.summary{background:white;border:1px solid #dfe9ed;border-radius:20px;text-align:center;padding:25px 22px;position:sticky;top:20px}.ring{width:182px;height:182px;border-radius:50%;background:#eaf0f2;display:grid;place-items:center;position:relative;margin:24px auto}.ring:before{content:'';position:absolute;inset:11px;border-radius:50%;background:white}.ring-inner{position:relative}.ring strong{font-size:43px;font-weight:650;letter-spacing:-2px}.ring small{display:block;font-size:11px;color:#8fa2ac}.ring-caption{font-size:14px;font-weight:650;margin:0 0 12px}.legend{display:flex;justify-content:center;gap:12px;font-size:10px;color:#8a9da6}.legend i{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:4px}.side-note{font-size:11px;color:#8ca1ab;line-height:1.6}.path{border-top:1px solid #eaf0f3;margin-top:24px;padding-top:22px;text-align:left}.node{position:relative;display:flex;gap:11px;font-size:12px;line-height:1.6;padding-bottom:22px}.node:not(:last-child):before{content:'';position:absolute;left:12px;width:1px;background:#dcebe5;top:25px;height:calc(100% - 25px)}.node b{min-width:25px;height:25px;border-radius:50%;background:#e8f5ef;color:#4a967d;display:grid;place-items:center}.node small{display:block;font-size:11px;color:#94a6ae}.footer{position:fixed;bottom:0;left:0;right:0;background:#ffffffee;border-top:1px solid #dfe9ec;backdrop-filter:blur(12px);z-index:3}.footer-inner{max-width:1220px;margin:auto;padding:18px 28px;display:flex;justify-content:space-between;align-items:center;gap:15px}.footer strong{font-size:14px}.footer small{display:block;color:#8b9fa9;font-size:11px;margin-top:5px}#message{background:#e7f2f7;padding:13px 16px;border-radius:10px;color:#577b8e;font-size:13px;margin-bottom:20px;white-space:pre-wrap}#message.error{background:#fff0e5;color:#a26a43}.complete{background:#e4f6eb;border:1px solid #b5dfc7;border-radius:16px;padding:22px;margin-bottom:20px;font-size:13px}.complete h2{color:#408764}.complete a{display:inline-block;color:#167e77;margin-top:12px}dialog{border:0;border-radius:20px;width:90%;max-width:1100px;max-height:85vh;padding:28px;color:#294651}dialog::backdrop{background:#244c5e55;backdrop-filter:blur(4px)}.dialog-head{display:flex;justify-content:space-between}.scroll{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px}th,td{text-align:left;padding:8px;border-bottom:1px solid #e1e9ee}td input:not([type=checkbox]){min-width:100px;padding:8px!important}td input.wide{min-width:170px}#rpcForms{display:none}@media(max-width:850px){.layout{grid-template-columns:minmax(0,1fr) 235px;gap:18px}.summary{padding:20px 12px}.ring{width:160px;height:160px}}@media(max-width:700px){header{height:65px;padding:0 18px}.brand small{display:none}main{padding:22px 18px 125px}.steps{gap:8px;font-size:11px}.line{width:25px}.layout{grid-template-columns:1fr}.summary{grid-row:1;position:static;display:grid;grid-template-columns:98px 1fr;text-align:left;padding:15px;gap:0 15px}.summary h2,.summary .path{display:none}.ring{grid-row:1/4;width:95px;height:95px;margin:0}.ring:before{inset:7px}.ring strong{font-size:27px}.ring small{font-size:9px}.ring-caption{font-size:13px;align-self:end;margin:0}.legend{justify-content:start;align-self:center;font-size:9px}.side-note{margin:0}.heading{align-items:start}.heading h1{font-size:23px}.eyebrow{font-size:9px}.cards{gap:10px}.card{padding:14px;min-height:185px}.card h3{font-size:13px}.tabs button{font-size:11px}.section-heading span{display:none}.footer-inner{padding:14px 18px}.footer strong{font-size:12px}.footer .primary{padding:13px;font-size:13px}.welcome{margin-top:30px}h1{font-size:29px}.code-box{padding:22px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Identidad institucional compartida con NEXO. */
body{font-family:'Segoe UI',Arial,sans-serif;background:#f3f7f8;color:#123741}h1,h2,h3{font-family:inherit}header{border-bottom:1px solid #d7e3e5}.nexo-brand{display:flex;align-items:center;gap:13px;color:#123741}.nexo-brand img{width:43px;height:43px;object-fit:contain}.nexo-brand small{display:block;margin:2px 0 0;font-size:9px;letter-spacing:.15em;text-transform:uppercase}.nexo-brand>span{font-size:13px;font-weight:400;letter-spacing:0;border-left:1px solid #d7e3e5;padding-left:18px;margin-left:12px}.welcome-icon{background:#e4f3ee}.welcome-icon img{width:52px;height:52px;object-fit:contain}.primary{background:#205f6e;color:white}.primary:hover{background:#174b57}.pill{background:#e4f3ee;color:#20645e}.code-box{text-align:left;position:relative}.code-results{max-height:270px;overflow-y:auto;border:1px solid #b9d4d2;border-radius:8px;margin-top:5px;background:white;box-shadow:0 8px 22px #12374112}.code-results button{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid #edf3f3;background:white;color:#123741;padding:12px;font-size:13px}.code-results button:hover,.code-results button[aria-selected=true]{background:#e4f3ee;color:#164a50}.code-results[hidden]{display:none}input:focus-visible,button:focus-visible{outline:3px solid #30998c;outline-offset:2px}.welcome h1{font-size:36px;letter-spacing:-1px}.welcome>p{color:#60777e}.steps .active b{background:#205f6e}@media(max-width:600px){.nexo-brand>span{padding-left:8px;margin-left:0}.nexo-brand img{width:33px;height:33px}header{padding:16px}.welcome h1{font-size:29px}}

.upload-progress{position:fixed;bottom:100px;left:50%;transform:translateX(-50%);z-index:20;background:#fff;border:1px solid #b9d4d2;box-shadow:0 8px 35px #12374125;border-radius:14px;padding:18px 24px;display:flex;align-items:center;gap:14px;max-width:90vw}.upload-progress progress{width:150px;accent-color:#205f6e}.upload-spinner{width:22px;height:22px;border:3px solid #d7e3e5;border-top-color:#205f6e;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}select{font:inherit;padding:10px;border:1px solid #ccdfe5;border-radius:8px;background:white;color:#123741}#admin th{position:sticky;top:0;background:white}#admin .scroll{max-height:55vh;overflow:auto}@media(prefers-reduced-motion:reduce){.upload-spinner{animation:none}}@media(max-width:600px){.upload-progress{flex-wrap:wrap;bottom:110px;width:85vw}.upload-progress progress{width:100%}}

.card label{margin-top:12px;font-size:12px}.card textarea{display:block;width:100%;margin-top:6px;padding:10px;border:1px solid #b9d4d2;border-radius:8px;resize:vertical;font:inherit;color:#123741}

/* Carga institucional: isotipo centrado, sin tarjeta flotante. */
.nexo-loading{position:fixed;inset:0;margin:0;width:100vw;max-width:none;height:100dvh;max-height:none;padding:0;border:0;border-radius:0;background:#f3f7f8ed;color:#123741;overflow:hidden}.nexo-loading::backdrop{background:#f3f7f899;backdrop-filter:blur(3px)}.nexo-loading-content{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;padding:24px;text-align:center}.nexo-loading-isotype{width:84px;height:84px;object-fit:contain;animation:nexo-breathe 1.4s ease-in-out infinite}.nexo-loading-content>span{font-size:15px;font-weight:500;letter-spacing:.02em}.nexo-loading progress{width:220px;height:5px;accent-color:#205f6e;border:0}.account{display:inline-block;position:relative}.account-toggle{border:0;cursor:pointer;padding:10px 14px}.account-toggle:after{content:' ▾'}.account-menu{position:absolute;right:0;top:calc(100% + 10px);min-width:210px;padding:8px;background:white;border:1px solid #d7e3e5;border-radius:12px;box-shadow:0 10px 30px #12374120;z-index:30}.account-menu a,.account-menu button{display:block;text-align:left;width:100%;padding:12px;color:#123741;text-decoration:none;font-size:14px;background:none;border:0;border-radius:7px}.account-menu a:hover,.account-menu button:hover{background:#e4f3ee}@keyframes nexo-breathe{0%,100%{transform:scale(.95);opacity:.65}50%{transform:scale(1);opacity:1}}@media(prefers-reduced-motion:reduce){.nexo-loading-isotype{animation:none}}

#profileDialog{max-width:560px}#profileForm label{margin-top:14px}#profileNames{display:grid;grid-template-columns:1fr 1fr;gap:14px}#profileForm input[readonly]{background:#edf2f3;color:#60777e}#profileForm p{font-size:12px;color:#60777e}#profileStatus{font-size:14px}

/* Inicio con consulta y avance, sin asignaciones implícitas. */
main{max-width:1500px}.welcome.home-grid{max-width:none;margin:35px auto;display:grid;grid-template-columns:minmax(280px, .8fr) minmax(0,1.6fr);gap:32px;text-align:left;align-items:start}.welcome.home-grid[hidden]{display:none}.home-search{padding-top:12px}.home-search h1{font-size:30px}.home-search .code-box{padding:24px;margin-top:22px}.home-list{background:white;border:1px solid #dce7eb;border-radius:20px;padding:26px}.home-list .heading{margin-bottom:18px;gap:12px}.home-list .heading p{font-size:13px;margin:4px 0}.list-tools{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:16px;border-bottom:1px solid #e1e9ee}.list-tools label{margin:0}.list-tools select{display:block;margin-top:6px}.list-tools span,.list-pages{font-size:12px;color:#60777e}.predio-row{display:grid;grid-template-columns:minmax(0,1fr) 135px 85px;align-items:center;gap:18px;padding:20px 0;border-bottom:1px solid #edf2f4}.predio-row strong{font-size:12px;overflow-wrap:anywhere;display:block}.predio-row small{display:block;color:#60777e;margin-top:5px}.predio-row progress{width:100%;height:8px;accent-color:#299383}.predio-row .text-btn{font-weight:600}.list-pages{display:flex;justify-content:space-between;align-items:center;margin-top:18px}.home-list .hint{line-height:1.6}.list-empty{padding:35px 0;color:#60777e}@media(max-width:900px){.welcome.home-grid{grid-template-columns:1fr}.home-search{max-width:none}.home-search .code-box{margin-top:12px}.home-list{padding:20px}}@media(max-width:520px){.predio-row{grid-template-columns:1fr 75px;gap:12px}.row-progress{grid-row:2;grid-column:1}.predio-row button{grid-column:2;grid-row:1/3}.home-list .heading{align-items:start}.list-tools{align-items:end}.list-tools span{max-width:100px}}

.saved-actions{margin-top:10px}.saved-action-row+ .saved-action-row{border-top:1px solid #cfe2dc;margin-top:8px;padding-top:8px}.saved-action-row small{overflow-wrap:anywhere;display:block;font-size:11px}.file-actions{display:flex;gap:10px;flex-wrap:wrap}.file-actions button{flex:1;border:1px solid #c8ddd8;border-radius:8px;font-size:12px;padding:9px}.file-actions button:disabled{opacity:.5;cursor:not-allowed}.card.drag{outline:3px dashed #299383;outline-offset:3px;background:#e0f3ec}.card.drag:after{content:'Suelta aquí para preparar el archivo';display:block;color:#205f6e;font-size:12px;margin-top:12px;font-weight:600}#previewDialog{max-width:1200px;width:95vw;height:90vh;max-height:94vh;padding:20px}#previewDialog .dialog-head{gap:20px;align-items:center}#previewTitle{font-size:16px;overflow-wrap:anywhere}#previewContent{height:calc(100% - 60px);overflow:auto;display:grid;place-items:center;background:#f3f7f8}#previewContent iframe{width:100%;height:100%;border:0}#previewContent img{max-width:100%;max-height:100%;object-fit:contain}

.return-predios{white-space:nowrap;background:#16827b;color:white;min-height:46px}.return-predios:hover{background:#116a64}.predio-loading{min-height:280px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;color:#205f6e}.predio-loading[hidden]{display:none}.predio-loading img{width:60px;height:60px;animation:predio-pulse 1.4s ease-in-out infinite}.predio-loading span{font-size:12px;color:#60777e}@keyframes predio-pulse{50%{opacity:.45;transform:scale(.92)}}@media(prefers-reduced-motion:reduce){.predio-loading img{animation:none}}@media(max-width:520px){.heading{flex-wrap:wrap;gap:16px}.return-predios{font-size:13px}}

/* Acciones y estados discretos: idéntica jerarquía para cada fila. */
.predio-row{grid-template-columns:minmax(0,1fr) 135px 132px}.predio-row .predio-action{width:132px;min-height:38px;padding:9px 10px;border:1px solid #d3e1df;border-radius:8px;background:#fafcfb;color:#386563;font:inherit;font-size:12px;font-weight:500;white-space:nowrap;cursor:pointer;transition:background .15s,border-color .15s}.predio-row .predio-action:hover{background:#eff5f3;border-color:#a7c8c1}.predio-row .predio-state{display:inline-block;width:fit-content;margin-top:7px;padding:3px 8px;border-radius:6px;font-size:11px;font-weight:400;line-height:1.4}.predio-row .state-empty{background:#f0f3f5;color:#576b76}.predio-row .state-started{background:#edf4f9;color:#456b85}.predio-row .state-complete{background:#edf6f0;color:#42745a}@media(max-width:520px){.predio-row{grid-template-columns:minmax(0,1fr) 132px}.predio-row .predio-action{grid-column:2;grid-row:1/3}}
