:root{--blue:#086bd8;--blue-dark:#004a9f;--blue-soft:#eaf4ff;--ink:#071b39;--text:#435b78;--muted:#7890aa;--line:#dbe6f2;--bg:#f3f7fb;--card:#fff;--green:#13986b;--green-soft:#e9f8f2;--orange:#e99a17;--orange-soft:#fff4df;--red:#d94f4f;--red-soft:#fff0f0;--shadow:0 16px 40px rgba(27,67,111,.10);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color-scheme:light}
*[hidden]{display:none!important}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--ink)}body{min-height:100svh;-webkit-font-smoothing:antialiased}button,input{font:inherit}button{cursor:pointer}.app-shell{max-width:520px;min-height:100svh;margin:0 auto;background:linear-gradient(180deg,#f9fbfe 0,#f3f7fb 100%);position:relative;overflow-x:hidden}.app-main{padding:24px 18px calc(96px + env(safe-area-inset-bottom));min-height:100svh}.screen{animation:fadeIn .18s ease}.screen[hidden]{display:none!important}@keyframes fadeIn{from{opacity:.5;transform:translateY(3px)}to{opacity:1;transform:none}}
.topbar{height:66px;position:sticky;top:0;z-index:20;padding:calc(8px + env(safe-area-inset-top)) 14px 8px;display:flex;align-items:flex-end;justify-content:space-between;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}.topbar-title{display:flex;align-items:center;gap:9px}.topbar-title strong{font-size:17px}.brand-mini{width:30px;height:30px;border-radius:9px;background:linear-gradient(145deg,#1390f2,#0454b7);display:grid;place-items:center}.brand-mini svg{width:19px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.icon-button{border:0;background:transparent;width:42px;height:42px;border-radius:12px;display:grid;place-items:center;color:var(--ink)}.icon-button:hover{background:#eef4fb}.icon-button svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.icon-button.light{background:#f5f8fc;border:1px solid var(--line)}
.brand-block{text-align:center;padding-top:26px}.brand-mark{width:86px;height:86px;border-radius:24px;background:linear-gradient(145deg,#1290ef,#0453b2);margin:0 auto 18px;display:grid;place-items:center;box-shadow:0 16px 30px rgba(6,101,208,.22)}.brand-mark.small{width:48px;height:48px;border-radius:14px;margin:0;box-shadow:none}.brand-mark svg{width:58%;height:58%;fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.brand-block h1{margin:0;font-size:31px;letter-spacing:-.7px}.brand-block p{margin:7px 0 0;color:#365779;font-size:17px}.hero-note{margin:34px 0 14px;display:flex;flex-direction:column;gap:5px}.hero-note strong{font-size:19px}.hero-note span{color:var(--text);line-height:1.45}.card{background:var(--card);border:1px solid var(--line);border-radius:20px;box-shadow:0 8px 24px rgba(24,72,118,.06)}.form-card{padding:18px}.form-card label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:800;color:#214363;margin-bottom:15px;text-transform:none}.form-card input{height:52px;border:1.5px solid #ccdbea;border-radius:13px;padding:0 15px;font-size:16px;color:var(--ink);background:#fff;outline:none}.form-card input:focus{border-color:#4a9cf4;box-shadow:0 0 0 4px rgba(42,139,238,.11)}.inline-info{display:flex;gap:11px;align-items:center;background:#f2f7fc;border-radius:13px;padding:12px;margin:4px 0 16px;color:#486681;font-size:13px;line-height:1.35}.inline-info svg{width:25px;min-width:25px;fill:none;stroke:#3877ad;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.primary-button,.secondary-button{width:100%;min-height:51px;border-radius:13px;border:0;font-weight:800;font-size:15px;display:flex;align-items:center;justify-content:center;gap:9px}.primary-button{color:#fff;background:linear-gradient(180deg,#0e7ae4,#0564cd);box-shadow:0 10px 22px rgba(2,99,207,.18)}.primary-button:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}.primary-button svg{width:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.secondary-button{background:#fff;color:#17456f;border:1.5px solid #bfcfe0;box-shadow:none}.text-button{border:0;background:transparent;color:var(--blue);font-weight:800;padding:7px}.danger-text{color:var(--red)}.secure-note{text-align:center;color:#57748e;font-size:13px;margin:19px 0 0}
.screen-wait{text-align:center;padding-top:72px}.status-illustration{width:116px;height:116px;border-radius:36px;margin:0 auto 24px;display:grid;place-items:center}.status-illustration.is-pending{background:var(--blue-soft);color:var(--blue)}.status-illustration svg{width:64px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.screen-wait h1{font-size:28px;margin:0 0 8px}.screen-wait>p{color:var(--text);line-height:1.5}.waiting-card{margin:28px 0 16px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:17px;display:flex;align-items:center;gap:14px;text-align:left}.waiting-card div{display:flex;flex-direction:column;gap:4px}.waiting-card small{color:var(--muted)}.pulse-dot{width:13px;height:13px;border-radius:50%;background:var(--orange);box-shadow:0 0 0 0 rgba(233,154,23,.35);animation:pulse 1.6s infinite}@keyframes pulse{70%{box-shadow:0 0 0 10px rgba(233,154,23,0)}100%{box-shadow:0 0 0 0 rgba(233,154,23,0)}}
.welcome-row{display:flex;justify-content:space-between;align-items:flex-start;margin:7px 0 20px}.welcome-row small{color:var(--blue);font-weight:800}.welcome-row h1{font-size:27px;margin:4px 0 0;letter-spacing:-.4px}.online-pill{font-size:11px;font-weight:800;color:var(--green);background:var(--green-soft);border-radius:999px;padding:7px 10px}.online-pill.offline{color:#a26706;background:var(--orange-soft)}.new-doc-button{width:100%;border:0;border-radius:20px;background:linear-gradient(135deg,#0e79e1,#0757ba);color:white;padding:18px;display:grid;grid-template-columns:52px 1fr 20px;align-items:center;gap:13px;text-align:left;box-shadow:0 14px 30px rgba(7,92,188,.2)}.new-doc-icon{width:52px;height:52px;border-radius:16px;background:rgba(255,255,255,.17);display:grid;place-items:center}.new-doc-button svg{width:27px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.new-doc-button span:nth-child(2){display:flex;flex-direction:column;gap:4px}.new-doc-button strong{font-size:18px}.new-doc-button small{color:#ddebff}.new-doc-button .chevron{width:20px}.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0 28px}.stats-grid article{background:#fff;border:1px solid var(--line);border-radius:17px;padding:15px 16px;display:grid;grid-template-columns:10px 1fr auto;gap:8px;align-items:center}.stats-grid small{font-weight:700;color:#607a94}.stats-grid strong{font-size:22px}.stat-dot{width:9px;height:9px;border-radius:50%}.is-orange{background:var(--orange)}.is-blue{background:#3997e8}.is-green{background:var(--green)}.is-red{background:var(--red)}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.section-title h2{font-size:18px;margin:0}.document-list{display:flex;flex-direction:column;gap:10px}.empty-state{border:1px dashed #c8d7e7;background:rgba(255,255,255,.55);padding:26px 20px;border-radius:18px;text-align:center;color:#6e849c}.doc-item{background:#fff;border:1px solid var(--line);border-radius:17px;padding:13px;display:grid;grid-template-columns:48px 1fr auto;gap:12px;align-items:center}.doc-thumb{width:48px;height:58px;border-radius:8px;background:#eef3f8;display:grid;place-items:center;color:#7a93aa;font-size:10px;font-weight:900;border:1px solid #e0e8f0}.doc-main{min-width:0}.doc-main strong{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.doc-main small{display:block;color:#6e8399;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.status-pill{font-size:11px;font-weight:900;border-radius:999px;padding:7px 9px;white-space:nowrap}.status-pill.pendiente{background:var(--orange-soft);color:#b36c00}.status-pill.en_revision{background:#e8f4ff;color:#1479ce}.status-pill.procesado{background:var(--green-soft);color:var(--green)}.status-pill.rechazado{background:var(--red-soft);color:#c33e3e}.doc-observation{grid-column:2/4;background:var(--red-soft);color:#9e3636;border-radius:10px;padding:9px 11px;font-size:12px;line-height:1.4}
.screen-capture h1,.screen-review h1,.screen-history h1{margin:5px 0 6px;font-size:25px}.screen-subtitle,.history-heading p{margin:0 0 18px;color:var(--text);line-height:1.45}.capture-stage{min-height:305px;background:#e9edf1;border:1px solid #d9e1e9;border-radius:20px;padding:12px;margin:18px 0 14px;display:grid;place-items:center;overflow:hidden}.capture-empty{text-align:center;color:#6f8295;padding:30px 24px}.capture-empty svg{width:80px;fill:none;stroke:#87a0b6;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.capture-empty strong{display:block;color:#3d5973;margin:10px 0 5px}.capture-empty span{font-size:13px;line-height:1.4}.page-strip{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.page-card{position:relative;background:#fff;border-radius:13px;border:1px solid #d5e0ea;overflow:hidden;aspect-ratio:3/4}.page-card img{width:100%;height:100%;object-fit:cover}.page-card .page-number{position:absolute;left:7px;bottom:7px;background:rgba(4,29,55,.78);color:#fff;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:800}.page-card button{position:absolute;right:7px;top:7px;border:0;border-radius:50%;width:28px;height:28px;background:rgba(255,255,255,.94);color:var(--red);font-size:18px;box-shadow:0 3px 10px rgba(0,0,0,.14)}.capture-primary{margin-bottom:10px}.capture-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.offline-note{margin:12px 0;background:var(--green-soft);color:#276f5c;border-radius:13px;padding:12px 13px;display:flex;flex-direction:column;gap:3px;font-size:13px}.offline-note strong{color:#15765b}.screen-capture>#reviewDocumentButton{margin-top:14px}.pdf-selected{display:flex;align-items:center;gap:13px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:15px;width:100%}.pdf-selected div:nth-child(2){display:flex;flex-direction:column;gap:4px;min-width:0}.pdf-selected strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pdf-selected small{color:var(--muted)}.pdf-badge{width:44px;height:48px;border-radius:10px;background:#e94444;color:#fff;font-size:11px;font-weight:900;display:grid;place-items:center;flex:0 0 auto}.document-summary-card{padding:15px;margin:18px 0 12px}.pdf-row{display:flex;align-items:center;gap:12px}.pdf-row>div:nth-child(2){display:flex;flex-direction:column;gap:3px;min-width:0}.pdf-row small{color:var(--muted)}.ready-pill{margin-left:auto;background:var(--green-soft);color:var(--green);font-size:11px;font-weight:900;border-radius:999px;padding:7px 9px}.review-pages{display:flex;gap:8px;overflow:auto;padding-top:15px}.review-page{width:78px;height:96px;object-fit:cover;border-radius:8px;border:1px solid var(--line);background:#f0f3f6}.review-page.pdf-placeholder{display:grid;place-items:center;color:#e94444;font-weight:900}.details-card{padding:6px 15px;margin-bottom:15px}.detail-row{padding:13px 2px;border-bottom:1px solid #edf2f7;display:flex;justify-content:space-between;gap:15px}.detail-row:last-child{border-bottom:0}.detail-row span{color:#6a8198;font-size:13px}.detail-row strong{font-size:13px;text-align:right;max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.send-caption{text-align:center;color:#70869b;font-size:12px;line-height:1.45;margin:10px 14px}.history-heading{display:flex;justify-content:space-between;align-items:flex-start}.filter-pills{display:flex;gap:7px;overflow-x:auto;padding:4px 0 14px;scrollbar-width:none}.filter-pills::-webkit-scrollbar{display:none}.filter-pills button{border:0;background:#edf3f9;color:#657c92;padding:9px 12px;border-radius:999px;font-size:12px;font-weight:800;white-space:nowrap}.filter-pills button.active{background:var(--blue);color:white}.history-list{padding-bottom:12px}
.bottom-nav{position:fixed;z-index:25;bottom:0;left:50%;transform:translateX(-50%);width:min(520px,100%);height:calc(70px + env(safe-area-inset-bottom));padding:6px 34px env(safe-area-inset-bottom);background:rgba(255,255,255,.96);backdrop-filter:blur(14px);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(3,1fr)}.bottom-nav button{border:0;background:transparent;color:#778da2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:10px;font-weight:800}.bottom-nav button.active{color:var(--blue)}.bottom-nav svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.drawer-backdrop,.modal-backdrop{position:fixed;inset:0;background:rgba(5,22,40,.38);z-index:60;backdrop-filter:blur(2px)}.drawer{position:fixed;z-index:70;top:0;right:0;height:100svh;width:min(360px,88vw);background:#fff;padding:calc(20px + env(safe-area-inset-top)) 18px 24px;transform:translateX(105%);transition:transform .2s ease;box-shadow:-16px 0 35px rgba(0,0,0,.15)}.drawer.open{transform:none}.drawer-head{display:grid;grid-template-columns:48px 1fr 42px;gap:11px;align-items:center;padding-bottom:20px;border-bottom:1px solid var(--line)}.drawer-head div:nth-child(2){display:flex;flex-direction:column}.drawer-head small{color:var(--muted);margin-top:2px}.drawer-company{margin:19px 0;background:#f4f8fc;border-radius:15px;padding:14px;display:flex;flex-direction:column;gap:5px}.drawer-company small,.drawer-company span{color:var(--muted);font-size:12px}.drawer-action{width:100%;min-height:48px;border:1px solid var(--line);background:#fff;border-radius:12px;text-align:left;padding:0 14px;font-weight:800;color:#284b6b;margin-bottom:9px}.drawer-action.danger{color:var(--red)}.drawer-help{color:#7e91a4;font-size:12px;line-height:1.45}.modal-backdrop{display:grid;place-items:center;padding:20px}.modal-card{width:min(390px,100%);background:#fff;border-radius:22px;padding:24px;text-align:center;box-shadow:var(--shadow)}.modal-icon{width:52px;height:52px;border-radius:17px;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center;margin:0 auto 13px;font-size:24px;font-weight:900}.modal-card h2{margin:0 0 8px;font-size:20px}.modal-card p{margin:0;color:var(--text);line-height:1.5}.modal-actions{display:grid;grid-template-columns:1fr;gap:9px;margin-top:20px}.modal-actions.has-cancel{grid-template-columns:1fr 1fr}.toast{position:fixed;z-index:90;left:50%;bottom:calc(86px + env(safe-area-inset-bottom));transform:translateX(-50%);width:min(450px,calc(100% - 32px));background:#102c48;color:#fff;border-radius:13px;padding:12px 15px;box-shadow:0 12px 28px rgba(0,0,0,.24);font-size:13px;text-align:center}
@media(min-width:700px){body{padding:18px 0}.app-shell{border-radius:26px;box-shadow:0 20px 60px rgba(13,52,91,.14);min-height:calc(100svh - 36px)}.bottom-nav{bottom:18px;border-radius:0 0 26px 26px}.topbar{border-radius:26px 26px 0 0}}


.install-main-button{background:#f7fbff;border-color:#9fc6ec;color:#0b63bd}.install-main-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.install-before-link-button{margin:0 0 14px}.install-home-button{margin:0 0 14px}
