/* ==========================================================
   V98.30 — Verificación de identidad
   ========================================================== */
.identity-account-icon{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#e8f0ff;color:#2f6df6;font-weight:950}.identity-account-mini{justify-self:end;padding:4px 7px;border-radius:999px;font-size:.5rem;font-weight:850;white-space:nowrap}.identity-account-mini.verified{background:#e8f0ff;color:#2f6df6}.identity-account-mini.pending,.identity-account-mini.draft{background:#eef3f2;color:#61736f}.identity-account-mini.reviewing{background:#eaf3ff;color:#3974bf}.identity-account-mini.rejected{background:#fff0ed;color:#a94b40}.account-actions-card>button:has(.identity-account-mini){grid-template-columns:28px minmax(0,1fr) auto}.account-actions-card>button:has(.identity-account-mini)>div{min-width:0}
.identity-intro-card h3,.identity-capture-card h3,.identity-face-card h3,.identity-face-consent-card h3,.identity-submit-card h3,.identity-verified-card h3{margin:4px 0 7px;font-size:.92rem}.identity-intro-card>p,.identity-capture-card>p,.identity-face-card>p,.identity-face-consent-card>p,.identity-submit-card>p,.identity-verified-card>p{margin:0 0 9px;color:var(--muted);font-size:.62rem;line-height:1.55}.identity-intro-mark,.identity-verified-large{display:grid;place-items:center;margin:2px auto 8px}.identity-private-note{margin:10px 0;padding:10px 11px;border:1px solid rgba(20,122,114,.16);border-radius:13px;background:rgba(20,122,114,.055);display:grid;gap:3px}.identity-private-note strong{font-size:.62rem;color:var(--primary-dark)}.identity-private-note small{font-size:.54rem;color:var(--muted);line-height:1.45}.identity-consents{display:grid;gap:8px;margin:12px 0}.identity-consent-row{width:100%;padding:10px;border:1px solid var(--border);border-radius:13px;background:#fff;display:grid;grid-template-columns:24px minmax(0,1fr) 16px;gap:8px;align-items:center;text-align:left}.identity-consent-row.accepted{border-color:rgba(20,122,114,.3);background:var(--primary-soft)}.identity-check{width:22px;height:22px;border:1.5px solid #aebdb9;border-radius:7px;display:grid;place-items:center;color:#fff;font-size:.68rem;font-weight:900}.identity-consent-row.accepted .identity-check{border-color:var(--primary);background:var(--primary)}.identity-consent-row div{min-width:0;display:grid;gap:2px}.identity-consent-row strong{font-size:.61rem}.identity-consent-row small{color:var(--muted);font-size:.52rem}.identity-consent-row b{color:var(--muted);font-size:.9rem}.identity-intro-card .auth-primary:disabled{opacity:.42;box-shadow:none}
.identity-legal-overlay,.identity-admin-overlay{position:fixed;inset:0;z-index:11000;display:flex;align-items:flex-end;justify-content:center}.identity-reason-overlay{position:fixed;inset:0;z-index:11500;display:flex;align-items:flex-end;justify-content:center}.identity-overlay-backdrop{position:absolute;inset:0;border:0;background:rgba(7,22,20,.65);backdrop-filter:blur(5px)}.identity-legal-sheet,.identity-admin-sheet,.identity-reason-sheet{position:relative;z-index:1;width:min(100%,460px);max-height:94dvh;border-radius:24px 24px 0 0;background:#fff;box-shadow:0 -20px 65px rgba(0,20,18,.28);overflow:hidden;display:flex;flex-direction:column}.identity-legal-sheet>header,.identity-admin-sheet>header{min-height:58px;padding:8px 12px;border-bottom:1px solid var(--border);display:grid;grid-template-columns:38px 1fr 38px;gap:8px;align-items:center;text-align:center}.identity-legal-sheet>header button,.identity-admin-sheet>header button,.identity-reason-sheet header button{width:36px;height:36px;border:0;border-radius:50%;background:var(--primary-soft);color:var(--primary);font-size:1rem}.identity-legal-sheet>header div,.identity-admin-sheet>header div{display:grid;gap:2px}.identity-legal-sheet>header strong,.identity-admin-sheet>header strong{font-size:.7rem}.identity-legal-sheet>header small,.identity-admin-sheet>header small{color:var(--muted);font-size:.5rem}.identity-legal-content{padding:14px 15px;overflow-y:auto}.identity-legal-content h4{margin:0 0 11px;font-size:.8rem}.identity-legal-content p{margin:0 0 11px;color:#42504e;font-size:.62rem;line-height:1.62}.identity-legal-sheet>footer{padding:10px 11px max(11px,env(safe-area-inset-bottom));border-top:1px solid var(--border);display:grid;grid-template-columns:.8fr 1fr 1fr;gap:7px}.identity-legal-sheet>footer button{min-height:42px;border-radius:12px;font-size:.58rem;font-weight:850}.identity-legal-cancel{border:1px solid var(--border);background:#fff;color:var(--muted)}.identity-legal-decline{border:1px solid #efc5bf;background:#fff7f5;color:#a7473d}.identity-legal-accept{border:0;background:var(--primary);color:#fff}
.identity-doc-camera{position:relative;width:100%;aspect-ratio:4/3;margin:12px 0 8px;border:1px solid var(--border);border-radius:17px;background:#e9efed;overflow:hidden;display:grid;place-items:center}.identity-doc-guide{width:78%;aspect-ratio:1.58;border:2px dashed rgba(20,122,114,.48);border-radius:13px;display:grid;place-items:center;color:var(--primary);text-align:center}.identity-doc-guide span{width:44px;height:29px;border:2px solid currentColor;border-radius:5px}.identity-doc-guide strong{font-size:.56rem}.identity-doc-video,.identity-doc-preview{width:100%;height:100%;display:block;object-fit:cover}.identity-doc-frame{position:absolute;left:8%;right:8%;top:18%;bottom:18%;border:2px solid rgba(255,255,255,.94);border-radius:12px;box-shadow:0 0 0 999px rgba(0,0,0,.18);pointer-events:none}.identity-capture-message{min-height:18px;color:var(--muted);font-size:.55rem;line-height:1.4;text-align:center}.identity-capture-actions,.identity-face-actions,.identity-face-consent-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.identity-capture-actions:has(> :only-child),.identity-face-actions:has(> :only-child){grid-template-columns:1fr}.identity-capture-button{min-height:46px;border:0;border-radius:14px;background:var(--primary);color:#fff;font-size:.65rem;font-weight:850;display:flex;align-items:center;justify-content:center;gap:7px}.identity-capture-button span{width:18px;height:18px;border:3px solid #fff;border-radius:50%}
.identity-face-consent-icon{width:52px;height:52px;margin:3px auto 8px;border-radius:50%;background:#e8f0ff;color:#2f6df6;display:grid;place-items:center;font-size:1.5rem}.identity-face-stage{position:relative;width:100%;aspect-ratio:1/1;margin:12px 0 7px;border-radius:22px;overflow:hidden;background:#071817}.identity-face-placeholder{height:100%;display:grid;place-items:center;align-content:center;gap:8px;color:#a8c1bc}.identity-face-placeholder span{font-size:2rem}.identity-face-placeholder strong{font-size:.6rem}.identity-face-video,.identity-face-mesh,.identity-face-preview{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.identity-face-video,.identity-face-mesh{transform:scaleX(-1)}.identity-face-mesh{pointer-events:none}.identity-face-preview{position:relative}.identity-face-brackets{position:absolute;inset:7%;pointer-events:none}.identity-face-brackets i{position:absolute;width:34px;height:34px;border-color:#70e4ee}.identity-face-brackets i:nth-child(1){left:0;top:0;border-left:3px solid;border-top:3px solid}.identity-face-brackets i:nth-child(2){right:0;top:0;border-right:3px solid;border-top:3px solid}.identity-face-brackets i:nth-child(3){left:0;bottom:0;border-left:3px solid;border-bottom:3px solid}.identity-face-brackets i:nth-child(4){right:0;bottom:0;border-right:3px solid;border-bottom:3px solid}.identity-face-instruction{min-height:34px;margin-bottom:8px;padding:8px 9px;border-radius:11px;background:#edf7f6;color:#315f5a;font-size:.57rem;text-align:center;line-height:1.4}.identity-face-instruction strong{color:var(--primary)}
.identity-submit-checks{margin:12px 0;display:grid;gap:7px}.identity-submit-checks div{padding:9px 10px;border:1px solid var(--border);border-radius:12px;display:flex;align-items:center;gap:8px}.identity-submit-checks span{width:22px;height:22px;border-radius:50%;background:var(--primary);color:#fff;display:grid;place-items:center;font-size:.58rem;font-weight:900}.identity-submit-checks strong{font-size:.6rem}.identity-verified-card{text-align:center}.identity-status-heading{margin:8px 0 12px;display:flex;gap:9px;align-items:center}.identity-status-heading>span{width:38px;height:38px;border-radius:50%;background:#eef3f2;color:var(--primary);display:grid;place-items:center;font-weight:900}.identity-status-heading.rejected>span{background:#fff0ed;color:#a7473d}.identity-status-heading>div{display:grid;gap:2px;text-align:left}.identity-status-heading strong{font-size:.7rem}.identity-status-heading small{font-size:.52rem;color:var(--muted)}.identity-progress-list{display:grid;gap:8px}.identity-progress-item{padding:10px;border:1px solid var(--border);border-radius:13px;display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:8px;align-items:center}.identity-progress-item>span{width:26px;height:26px;border-radius:50%;background:#edf3f2;color:var(--primary);display:grid;place-items:center;font-size:.6rem;font-weight:900}.identity-progress-item.approved>span{background:#e7f4ef;color:#147a72}.identity-progress-item.recapture_required{border-color:#efc7c1;background:#fff9f7}.identity-progress-item.recapture_required>span{background:#fff0ed;color:#a7473d}.identity-progress-item>div{min-width:0;display:grid;gap:2px}.identity-progress-item strong{font-size:.61rem}.identity-progress-item small{font-size:.52rem;color:var(--muted);line-height:1.35}.identity-progress-item button{min-height:32px;padding:0 8px;border:1px solid #efc7c1;border-radius:10px;background:#fff;color:#a7473d;font-size:.5rem;font-weight:850}.identity-rejection-note{margin:11px 0;padding:10px;border:1px solid #efc7c1;border-radius:13px;background:#fff8f6}.identity-rejection-note strong{font-size:.58rem;color:#a7473d}.identity-rejection-note p{margin:4px 0;color:#6d4a46;font-size:.56rem;line-height:1.45}.identity-rejection-note small{color:var(--muted);font-size:.5rem}
.identity-admin-section{margin-bottom:18px}.identity-admin-section-head{margin-bottom:9px;display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.identity-admin-section-head>div{display:grid;gap:3px}.identity-admin-section-head strong{font-size:.72rem}.identity-admin-section-head p{margin:0;color:var(--muted);font-size:.55rem}.identity-admin-section-head>span{min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:#e8f0ff;color:#2f6df6;display:grid;place-items:center;font-size:.54rem;font-weight:900}.identity-admin-history{margin-top:12px}.identity-admin-history summary{cursor:pointer;padding:8px 2px;color:var(--muted);font-size:.58rem;font-weight:800}.identity-admin-history summary span{margin-left:5px}.identity-admin-history .account-admin-request-list{margin-top:7px}.identity-admin-card em{color:#2f6df6!important}.identity-admin-body{padding:12px;overflow-y:auto}.identity-admin-status{display:flex;justify-content:center;margin-bottom:9px}.identity-admin-status span{padding:5px 9px;border-radius:999px;background:#e8f0ff;color:#2f6df6;font-size:.54rem;font-weight:850}.identity-admin-user{padding:10px;border:1px solid var(--border);border-radius:13px;display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}.identity-admin-user>div{display:grid;gap:2px}.identity-admin-user strong{font-size:.64rem}.identity-admin-user small,.identity-admin-user>span{font-size:.52rem;color:var(--muted)}.identity-admin-privacy{margin-bottom:10px;padding:9px;border-radius:12px;background:#fff6e8;display:grid;gap:2px}.identity-admin-privacy strong{font-size:.56rem;color:#8a5a20}.identity-admin-privacy small{font-size:.5rem;color:#846b4c;line-height:1.4}.identity-admin-part{margin-bottom:10px;padding:10px;border:1px solid var(--border);border-radius:15px}.identity-admin-part-head{margin-bottom:8px;display:flex;align-items:center;justify-content:space-between}.identity-admin-part-head>div{display:grid;gap:2px}.identity-admin-part-head strong{font-size:.63rem}.identity-admin-part-head small{font-size:.51rem;color:var(--muted)}.identity-admin-part-head>span{color:var(--primary);font-weight:900}.identity-admin-media{width:100%;min-height:160px;border-radius:12px;background:#e8eeec;overflow:hidden;display:grid;place-items:center}.identity-admin-media.video{min-height:210px;background:#081614}.identity-admin-media img,.identity-admin-media video{width:100%;max-height:360px;display:block;object-fit:contain}.identity-media-loading,.identity-media-error{padding:20px;color:var(--muted);font-size:.54rem;text-align:center}.identity-admin-part-actions{margin-top:8px;display:grid;grid-template-columns:1fr 1.4fr;gap:7px}.identity-admin-part-actions button{min-height:38px;border-radius:11px;font-size:.54rem;font-weight:850}.identity-admin-part-actions .approve{border:0;background:var(--primary);color:#fff}.identity-admin-part-actions .recapture{border:1px solid #dfb7b1;background:#fff8f6;color:#9f493f}.identity-admin-reason{margin-top:8px;padding:8px;border-radius:10px;background:#fff7f5;display:grid;gap:2px}.identity-admin-reason strong{font-size:.51rem;color:#a7473d}.identity-admin-reason span{font-size:.5rem;color:#76534f}.identity-admin-waiting{margin:8px 0 0;color:#9c635a;font-size:.52rem;text-align:center}.identity-admin-final-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.identity-admin-final-actions button{min-height:43px;border-radius:12px;font-size:.58rem;font-weight:850}.identity-admin-final-actions .reject{border:1px solid #efc7c1;background:#fff8f6;color:#a7473d}.identity-admin-final-actions .approve{border:0;background:#2f6df6;color:#fff}.identity-admin-final-actions button:disabled{opacity:.4}.identity-admin-help,.identity-admin-result{margin:8px 0 0;color:var(--muted);font-size:.52rem;line-height:1.4;text-align:center}.identity-admin-result.approved{color:var(--primary)}.identity-admin-result.rejected{color:#a7473d}
.identity-reason-sheet{padding-bottom:max(12px,env(safe-area-inset-bottom))}.identity-reason-sheet header{min-height:52px;padding:8px 11px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between}.identity-reason-sheet header strong{font-size:.68rem}.identity-reason-sheet>p{margin:11px 12px 8px;color:var(--muted);font-size:.56rem;line-height:1.45}.identity-reason-options{padding:0 12px;display:grid;gap:7px}.identity-reason-options button{min-height:38px;padding:0 10px;border:1px solid var(--border);border-radius:11px;background:#fff;color:var(--text);font-size:.55rem;text-align:left}.identity-reason-options button.selected{border-color:#a7473d;background:#fff7f5;color:#a7473d;font-weight:800}.identity-reason-sheet textarea{margin:9px 12px;width:calc(100% - 24px);padding:9px;border:1px solid var(--border);border-radius:11px;resize:vertical;font:inherit;font-size:.56rem;box-sizing:border-box}.identity-reason-sheet>.auth-primary,.identity-danger-button{margin:0 12px;width:calc(100% - 24px);min-height:42px;border-radius:12px;font-size:.58rem;font-weight:850}.identity-danger-button{border:0;background:#a7473d;color:#fff}
html[data-theme="dark"] .identity-consent-row,html[data-theme="dark"] .identity-legal-sheet,html[data-theme="dark"] .identity-admin-sheet,html[data-theme="dark"] .identity-reason-sheet,html[data-theme="dark"] .identity-reason-options button{background:var(--surface,#17211f);color:var(--text)}html[data-theme="dark"] .identity-legal-content p{color:#c0ceca}html[data-theme="dark"] .identity-doc-camera{background:#111b19}html[data-theme="dark"] .identity-admin-media{background:#0d1715}
@media(min-width:650px){.identity-legal-overlay,.identity-admin-overlay,.identity-reason-overlay{align-items:center;padding:18px}.identity-legal-sheet,.identity-admin-sheet,.identity-reason-sheet{border-radius:24px;max-height:88vh}}
.email-change-admin-section{margin-top:16px;padding-top:15px;border-top:1px solid var(--border)}

/* ==========================================================
   V98.37 — Comprobación facial más limpia y estricta
   ========================================================== */
.identity-face-stage{
  background:#081514;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.05);
}
.identity-face-guide{
  position:absolute;
  z-index:3;
  left:22%;
  right:22%;
  top:10%;
  bottom:10%;
  border:1.5px solid rgba(129,236,239,.42);
  border-radius:48% 48% 46% 46% / 40% 40% 58% 58%;
  box-shadow:0 0 0 999px rgba(3,18,17,.10),0 0 28px rgba(80,226,235,.08);
  pointer-events:none;
  transition:border-color .18s ease,box-shadow .18s ease;
}
.identity-face-stage.is-face-ready .identity-face-guide{
  border-color:rgba(100,235,205,.88);
  box-shadow:0 0 0 999px rgba(3,18,17,.08),0 0 30px rgba(77,224,194,.16);
}
.identity-face-mesh{z-index:2;opacity:.92}
.identity-face-video{z-index:1}
.identity-face-brackets{z-index:4;inset:6.5%}
.identity-face-brackets i{width:29px;height:29px;border-color:rgba(215,255,255,.92)}
.identity-face-live-status{
  position:absolute;
  z-index:5;
  left:50%;
  bottom:13px;
  transform:translateX(-50%);
  min-height:28px;
  max-width:78%;
  padding:0 10px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  background:rgba(4,23,21,.68);
  backdrop-filter:blur(8px);
  color:#e8f5f3;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  font-size:.52rem;
  white-space:nowrap;
  pointer-events:none;
}
.identity-face-live-status span{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#d7b65f;
  box-shadow:0 0 0 3px rgba(215,182,95,.13);
}
.identity-face-live-status.ready span{
  background:#59d5ad;
  box-shadow:0 0 0 3px rgba(89,213,173,.14);
}
.identity-face-instruction{
  min-height:54px;
  padding:9px 11px;
  display:grid;
  place-items:center;
  align-content:center;
  gap:2px;
  transition:background .16s ease,border-color .16s ease,color .16s ease;
  border:1px solid transparent;
}
.identity-face-instruction .identity-face-step-count{
  color:var(--muted);
  font-size:.48rem;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.identity-face-instruction strong{font-size:.62rem}
.identity-face-instruction small{font-size:.51rem;color:var(--muted);line-height:1.3}
.identity-face-instruction.validating{
  border-color:rgba(20,122,114,.18);
  background:rgba(20,122,114,.08);
}
.identity-face-instruction.wrong{
  border-color:rgba(198,82,68,.22);
  background:rgba(198,82,68,.08);
  color:#9b443a;
}
.identity-face-instruction.wrong small{color:#9b443a}
.identity-face-actions .auth-primary:disabled{
  opacity:.42;
  box-shadow:none;
  cursor:not-allowed;
}
html[data-theme="dark"] .identity-face-instruction.validating{background:rgba(70,190,163,.09);border-color:rgba(70,190,163,.18)}
html[data-theme="dark"] .identity-face-instruction.wrong{background:rgba(208,102,87,.09);border-color:rgba(208,102,87,.22);color:#ef9b90}
html[data-theme="dark"] .identity-face-instruction.wrong small{color:#dca59d}
