#documentos .back{width:44px;height:44px}
#documentos .optional-session-note{margin:-2px 0 20px;padding:13px 15px;border:1px solid #cbd8e9;border-radius:14px;background:#f5f8fd;color:#425974;font-size:.9375rem;line-height:1.5}
#documentos .optional-card{margin-bottom:20px;padding:20px 17px;border:1px solid #cbd8e9;border-radius:22px;background:#fff;box-shadow:0 6px 18px #173b670e}
#documentos .optional-card-head{display:grid;grid-template-columns:42px minmax(0,1fr);gap:13px;align-items:center}
#documentos .optional-order{display:grid;place-items:center;width:42px;height:46px;background:linear-gradient(145deg,#fff5d5,#ffda81);color:#614211;border:2px solid #fff5d7;border-radius:13px;box-shadow:0 3px 0 #d4b46d;font-size:1.5rem;font-weight:850;transform:rotate(-5deg)}
#documentos .optional-card h2{margin:3px 0 0;color:#123461;font-size:1.25rem;line-height:1.3;font-weight:800;overflow-wrap:anywhere}
#documentos .optional-badge{color:#526479;font-size:.875rem;font-weight:700}
#documentos .optional-help{margin:16px 0 15px;color:#425974;font-size:1rem;line-height:1.5}
#documentos .optional-lados{display:flex;flex-direction:column;gap:16px}
#documentos .optional-lado{padding:14px;border:1px solid #dde5ee;border-radius:16px;background:#f9fbfd}
#documentos .optional-lado-label{display:inline-block;margin-bottom:9px;padding:3px 11px;border-radius:20px;background:#123461;color:#fff;font-size:.8125rem;font-weight:800;letter-spacing:.3px;text-transform:uppercase}
#documentos .optional-lado-preview{margin-bottom:11px}
#documentos .optional-thumbnail-h{display:block;width:100%;aspect-ratio:1.586/1;border:1px solid #d2ddec;border-radius:12px;background:#eef2f8;overflow:hidden;margin-bottom:10px}
#documentos .optional-thumbnail-h img{display:block;width:100%;height:100%;object-fit:cover}
#documentos .optional-thumbnail-h--pdf{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:100%;height:100%;color:#123461;font-size:.875rem;font-weight:700}
#documentos .optional-thumbnail-h--pdf img{width:30px;height:30px;object-fit:contain}
#documentos .optional-empty-h{display:flex;align-items:center;gap:12px;width:100%;aspect-ratio:1.586/1;padding:0 16px;border:1px dashed #bdcde0;border-radius:12px;background:#f7f9fc;color:#526479;font-size:.9375rem;font-weight:600;margin-bottom:0}
#documentos .optional-empty-h img{width:32px;height:32px;flex-shrink:0;opacity:.75}
#documentos .optional-file-info strong{display:block;color:#173b67;font-size:1rem;line-height:1.4;overflow-wrap:anywhere}
#documentos .optional-file-info small{display:block;margin-top:3px;color:#526479;font-size:.875rem;line-height:1.4}
#documentos .optional-file-actions{display:flex;flex-wrap:wrap;gap:2px 13px;margin-top:5px}
#documentos .optional-file-actions a,#documentos .optional-file-actions button{display:flex;align-items:center;min-height:40px;border:0;background:none;color:#194d82;font-family:inherit;font-size:.9375rem;font-weight:700;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
#documentos .optional-file-actions button{color:#9b283f}
#documentos .optional-add-actions{position:relative;display:flex;flex-wrap:wrap;gap:10px;margin-top:11px}
#documentos .optional-add-actions button,#documentos .optional-add-actions label{flex:1 1 125px;min-height:48px;padding:11px 10px;border:1px solid #123461;border-radius:12px;font-family:inherit;font-size:.9375rem;line-height:1.3;font-weight:750;cursor:pointer}
#documentos .optional-add{color:#fff;background:#123461}
#documentos .optional-camera{color:#123461;background:#fff}
#documentos .optional-add-actions label{display:flex;align-items:center;justify-content:center;box-sizing:border-box;text-align:center}
#documentos .optional-native-input{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0;opacity:.01}
#documentos .optional-native-input:focus-visible + label{outline:3px solid #b06b00;outline-offset:3px}
#documentos button:disabled,#documentos .optional-add-actions label.is-disabled{opacity:.55;cursor:wait}
#documentos .optional-add-actions label.is-disabled{pointer-events:none}
#documentos .optional-limit{margin-top:5px;color:#526479;font-size:.875rem;line-height:1.4}
#documentos .optional-status{margin-top:9px;color:#18583f;font-size:.9375rem;line-height:1.5}
#documentos .optional-status:empty{display:none}
#documentos .optional-status--error{color:#9b283f}
#documentos .optional-footer{margin:4px 0 10px;color:#526479;font-size:.9375rem;line-height:1.5;text-align:center}
#documentos a:focus-visible,#documentos button:focus-visible{outline:3px solid #b06b00;outline-offset:3px}
@media(max-width:350px){#documentos .optional-card{padding:18px 13px}#documentos .optional-card-head{grid-template-columns:38px minmax(0,1fr);gap:11px}#documentos .optional-order{width:38px;height:42px}#documentos .optional-card h2{font-size:1.1875rem}}

/* Guided camera overlay: frames the document so the photo comes out aligned */
body.camguia-lock{overflow:hidden}
.camguia-overlay{position:fixed;inset:0;z-index:9000;display:none;flex-direction:column;background:#0b1220;color:#fff}
.camguia-overlay.is-open{display:flex}
.camguia-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 16px 10px;flex:none}
.camguia-titulo{font-size:1rem;font-weight:800}
.camguia-cerrar{width:40px;height:40px;border-radius:50%;border:0;background:#ffffff22;color:#fff;font-size:1.1rem;cursor:pointer}
.camguia-stage{position:relative;flex:1;min-height:0;overflow:hidden}
.camguia-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.camguia-marco{position:absolute;left:50%;top:50%;width:86%;max-width:480px;aspect-ratio:1.586/1;transform:translate(-50%,-50%);border:3px solid #f2ad19;border-radius:16px;box-shadow:0 0 0 2000px #0b1220b3;pointer-events:none}
.camguia-ayuda{flex:none;margin:0;padding:12px 20px 0;text-align:center;color:#dbe6f7;font-size:.9375rem}
.camguia-bottom{flex:none;display:flex;align-items:center;justify-content:center;padding:20px 0 28px}
.camguia-disparo{width:72px;height:72px;border-radius:50%;background:#fff;border:5px solid #f2ad19;cursor:pointer}
.camguia-disparo:active{transform:scale(.94)}
