:root{color-scheme:dark;--bg:#131313;--surface:#1e1e1e;--field:#242424;--stroke:#393939;--text:#f7f7f7;--muted:#a9a9a9;--red:#c62828;--red-dark:#a61e1e;--soft:#f4f4f4;--success:#97bf9e;--radius:17px;font-family:-apple-system,BlinkMacSystemFont,'Inter','Helvetica Neue',Arial,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);min-height:100vh;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.48;cursor:not-allowed}#app{min-height:100svh}.shell{width:min(100%,540px);min-height:100svh;margin:0 auto;padding:env(safe-area-inset-top) 24px max(26px,env(safe-area-inset-bottom));display:flex;flex-direction:column}.shell.welcome{justify-content:space-between;padding-bottom:max(24px,env(safe-area-inset-bottom));}.brandbar{display:flex;align-items:center;gap:10px;padding-top:23px;font-size:15px;font-weight:720;letter-spacing:-.3px}.brandbar img{width:31px;height:28px;object-fit:contain}.muted{color:var(--muted)}.tiny{font-size:12px;line-height:1.5}.eyebrow{font-size:10px;font-weight:720;letter-spacing:2px;color:#bb9999;text-transform:uppercase;margin:32px 0 16px}.stage h1{font-size:clamp(29px,7.5vw,37px);letter-spacing:-1.4px;font-weight:660;line-height:1.12;margin:10px 0 15px}.stage p.subtitle{font-size:14.5px;line-height:1.75;color:var(--muted);margin:0 0 27px}.stage{padding-top:19px;flex:1;display:flex;flex-direction:column}.form{flex:1;display:flex;flex-direction:column;gap:15px}.field label,.group>label{font-size:12px;font-weight:630;color:#eee;display:block;margin:0 0 8px}.field input,.field select{display:block;width:100%;background:var(--field);border:1px solid var(--stroke);color:#fff;padding:16px;border-radius:12px;min-height:52px;outline:none;font-size:16px}.field input:focus,.field select:focus{border-color:#a34f4f;box-shadow:0 0 0 3px rgba(198,40,40,.10)}.field input::placeholder{color:#757575}.row{display:flex;gap:12px}.row>*{flex:1;min-width:0}.spacer{flex:1;min-height:25px}.primary{height:55px;width:100%;border:0;border-radius:13px;background:var(--soft);color:#121212;font-weight:680;font-size:15px;margin-top:auto}.primary.red{background:var(--red);color:#fff}.secondary{height:53px;width:100%;border:1px solid #505050;border-radius:13px;color:#fff;background:#303030;font-weight:650;font-size:15px}.actions{display:flex;gap:11px;margin-top:auto;padding-top:25px}.actions>*{flex:1}.notice{border:1px solid #4b3737;background:#211818;color:#dfc9c9;border-radius:13px;padding:13px 15px;font-size:12px;line-height:1.65}.note{background:#202020;color:#a9a9a9;padding:13px 15px;border-radius:12px;font-size:12px;line-height:1.6}.error{border:1px solid #9a3b3b;background:#351d1d;color:#ffd4d4;border-radius:10px;padding:12px;font-size:12px;line-height:1.55;display:none}.error.show{display:block}.checks{display:flex;flex-direction:column;gap:15px}.check{display:flex;gap:11px;align-items:flex-start;font-size:13px;line-height:1.5;color:#c6c6c6}.check input{width:18px;height:18px;flex-shrink:0;accent-color:#d8d8d8;margin:2px 0 0}.check strong{color:#fff}.choice{display:flex;align-items:center;gap:13px;min-height:64px;padding:16px;border-radius:12px;border:1px solid var(--stroke);background:#1e1e1e;font-size:14px;margin-bottom:10px;cursor:pointer}.choice input{accent-color:var(--red);width:18px;height:18px}.choice:has(input:checked){border-color:var(--red);background:#291c1c}.step-progress{display:flex;gap:6px;margin:20px 0 27px}.step-progress span{flex:1;height:4px;background:#353535;border-radius:4px}.step-progress span.on{background:var(--red)}.legal-card{background:#1b1b1b;border:1px solid #303030;border-radius:14px;padding:16px;margin-bottom:12px}.legal-card .small-title{font-size:14px;font-weight:650;margin-bottom:10px}.legal-card p{font-size:12px;line-height:1.6;color:#aaa}.hero-wrap{margin:10px -24px 5px;display:flex;justify-content:center}.hero{display:block;max-height:40vh;max-width:100%;object-fit:contain;mix-blend-mode:lighten}.welcome h1{font-family:'DejaVu Sans Condensed','Arial Narrow',Arial,sans-serif;text-transform:uppercase;font-size:clamp(30px,8.6vw,51px);font-stretch:condensed;letter-spacing:-1.3px;line-height:1.04;overflow-wrap:break-word;text-align:center;margin:18px 0 14px}.welcome .subtitle{text-align:center;line-height:1.65;font-size:13px;color:#dedede;margin:0 5px}.welcome .opening{margin-top:0}.welcome .opening .brandbar{justify-content:center}.welcome .actions{margin-top:26px;padding:0}.welcome .actions button{height:64px}.welcome .disclaimer{text-align:center;font-size:11px;color:#999;margin:16px 0 0}.capture{border:1px solid #414141;border-radius:16px;background:#191919;padding:16px;text-align:center;margin-bottom:13px}.camera-box{background:#090909;position:relative;border:1px dashed #565656;border-radius:12px;overflow:hidden;aspect-ratio:4/3;display:grid;place-items:center;margin:13px 0}.camera-box video,.camera-box img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}.camera-box:after{content:'';border:2px solid #dcdcdc80;border-radius:14px;width:75%;height:60%;position:absolute;pointer-events:none}.camera-box.selfie:after{border-radius:50%;width:43%;height:63%}.capture p{color:#aaa;font-size:12px;line-height:1.5}.capture button{font-size:13px;background:#343434;color:#fff;border:1px solid #555;padding:12px 16px;border-radius:10px}.stamp{border:1px solid #4a2c2c;display:grid;place-items:center;width:84px;height:84px;border-radius:50%;margin:34px auto 14px;background:#281717}.stamp img{width:52px}.center{text-align:center}.status-head{display:inline-block;border:1px solid #4f4040;border-radius:99px;padding:8px 13px;color:#e3d0d0;font-size:12px}.footer{margin:12px 0 2px;color:#777;text-align:center;font-size:10px}.badge-demo{color:#bcbcbc;font-size:10px;letter-spacing:.5px;border:1px solid #373737;border-radius:20px;padding:6px 9px;margin-left:auto}.adminlink{font-size:11px;color:#aaa;text-decoration:underline;text-underline-offset:3px}.spinner{width:32px;height:32px;border:3px solid #555;border-top-color:#eee;border-radius:50%;animation:spin .8s linear infinite;margin:40px auto}@keyframes spin{to{transform:rotate(360deg)}}.explore{display:grid;gap:15px}.tile{border:1px solid #343434;border-radius:14px;background:#1e1e1e;padding:19px}.tile h3{margin:0 0 7px}.tile p{font-size:13px;color:#b4b4b4;line-height:1.5;margin:0}.field select option{color:#fff;background:#222}@media(min-width:640px){body{background:#0e0e0e}#app{display:flex;align-items:center;justify-content:center;padding:20px}.shell{min-height:min(820px,calc(100vh - 40px));height:auto;border:1px solid #303030;background:var(--bg);border-radius:26px;box-shadow:0 24px 70px #0006;padding:12px 28px 30px}.welcome .hero{max-height:300px}.welcome h1{font-size:47px}}@media(max-width:380px){.shell{padding-left:17px;padding-right:17px}.welcome h1{font-size:30px}.welcome .actions button{font-size:13px}.row{gap:8px}}
/* Catálogo visual configurable */
:root{--main-text:#fff;--muted-color:#b8b8b8;--cms-radius:14px}
.primary,.secondary,.choice,.legal-card,.note,.notice,.field input,.field select,.capture,.tile{border-radius:var(--cms-radius)}

/* Aplicación de los tonos elegidos desde el panel */
body{color:var(--text)}.legal-card,.capture,.tile,.choice{background:var(--surface)}.subtitle,.muted{color:var(--muted)}


/* La etapa de identidad permite recibir fotografías para revisión manual. */
.identity-ready{display:flex;flex-direction:column;gap:4px;padding:12px 14px;margin:13px 0;border-radius:12px;background:#103b2a;border:1px solid #258c56;color:#eafff2}
.identity-ready strong{font-size:13px;font-weight:750}
.identity-ready span{font-size:11px;line-height:1.4;color:#b3e4c4}

/* Lectura y consentimiento versionado del aviso antes de subir INE */
.privacy-reading{border:1px solid #385a48;border-radius:13px;padding:12px 14px;background:#123023;color:#e8f6ed;display:grid;gap:11px;line-height:1.6}
.privacy-link{color:#99e4b3;text-decoration:underline;text-underline-offset:3px;font-size:13px;font-weight:720;display:inline-block}
.privacy-link:focus-visible{outline:2px solid #8fffb8;outline-offset:3px}
.privacy-entry-link{margin:14px 0 4px}
.privacy-ine-consent{display:flex;align-items:flex-start;gap:11px;margin:0;cursor:pointer;font-size:12px;line-height:1.6;color:#e9f7ed}
.privacy-ine-consent input[type=checkbox]{flex:none;width:20px;height:20px;margin-top:1px;accent-color:#43c982}
.privacy-before-ine{margin:9px 0 4px}
@media(prefers-color-scheme:light){.privacy-reading{background:#eaf6ee;color:#193b26;border-color:#a6d7b7}.privacy-link{color:#086438}.privacy-ine-consent{color:#21452d}}
