/* AUMACA EASY ENROLLMENT 2026 — V31 */
.enrollment-modal{width:min(980px,calc(100vw - 32px))!important;max-width:980px!important;height:min(760px,calc(100dvh - 32px));max-height:calc(100dvh - 32px)!important;padding:0!important;overflow:hidden!important;border-radius:24px!important;display:flex;flex-direction:column;position:relative;background:#fff}
.enroll-wizard-head{display:flex;justify-content:space-between;gap:20px;padding:22px 26px 16px;border-bottom:1px solid #e8eef4;flex:0 0 auto}.enroll-kicker{display:inline-flex;padding:5px 10px;border-radius:999px;background:#edf7ff;color:#2e78ad;font-size:11px;font-weight:800}.enrollment-modal h3{font-size:26px;margin:7px 0 4px}.enroll-intro{color:#617489;margin:0;line-height:1.45;font-size:14px}.enroll-save-status{display:inline-flex;align-items:center;gap:6px;margin-top:8px;font-size:12px;color:#6c7e90}.enroll-save-status:before{content:"";width:7px;height:7px;border-radius:50%;background:#5aa66a}
.enroll-progress{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;padding:11px 26px;border-bottom:1px solid #edf2f6;background:#fbfcfd;flex:0 0 auto}.enroll-progress button{appearance:none;border:0;background:transparent;padding:7px;border-radius:10px;display:flex;align-items:center;gap:7px;color:#7a8b9d;cursor:pointer;text-align:left;min-height:44px}.enroll-progress button b{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:#e9eef3;color:#607285;flex:0 0 25px}.enroll-progress button.active{background:#edf7fd;color:#174f76}.enroll-progress button.active b,.enroll-progress button.done b{background:#2f7dab;color:#fff}.enroll-progress button.done{color:#466779}
.enrollment-modal form{display:flex;flex-direction:column;min-height:0;flex:1}.enroll-step{padding:24px 26px;overflow-y:auto;overflow-x:hidden;flex:1}.enroll-step-title{display:flex;align-items:flex-start;gap:12px;margin-bottom:20px}.enroll-step-title>span{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#eaf4fa;color:#2c6f98;font-size:11px;font-weight:800;flex:0 0 auto}.enroll-step-title h4{margin:0 0 4px;font-size:21px;color:#16334e}.enroll-step-title p{margin:0;color:#738397;font-size:13px}.enroll-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 18px}.enroll-wide,.enroll-property-fields{grid-column:1/-1}.enroll-property-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 18px}.enrollment-modal .fg{margin-bottom:14px}.enrollment-modal .fg label{display:block;margin-bottom:6px;font-weight:750;color:#344b62}.enrollment-modal input:not([type=checkbox]):not([type=radio]),.enrollment-modal select,.enrollment-modal textarea{width:100%;max-width:100%;font-size:16px;min-height:48px;border-radius:12px}.enrollment-modal textarea{min-height:100px}.enrollment-modal small{line-height:1.35}.field-help{display:block;margin-top:6px;color:#74869a;font-size:12px}.field-error{display:none;margin-top:6px;color:#a92525;font-size:12px;font-weight:650}.fg.has-error .field-error{display:block}.fg.has-error input,.fg.has-error select,.fg.has-error textarea{border-color:#c94a4a!important;box-shadow:0 0 0 3px rgba(201,74,74,.08)!important}
.choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;grid-column:1/-1;margin-bottom:16px}.choice-card{position:relative;display:flex;align-items:flex-start;gap:11px;padding:14px;border:1px solid #dfe8ef;border-radius:14px;background:#fff;cursor:pointer;min-height:66px;transition:.18s}.choice-card:hover{border-color:#9fc6df;background:#f8fcff}.choice-card input{position:absolute;opacity:0;pointer-events:none}.choice-card:has(input:checked){border-color:#2f86c7;background:#eef8ff;box-shadow:0 0 0 3px rgba(47,134,199,.08)}.choice-icon{width:34px;height:34px;border-radius:10px;background:#eef5fa;display:grid;place-items:center;color:#225c87;font-weight:800;flex:0 0 34px}.choice-card strong{display:block;color:#203a54;margin-bottom:3px}.choice-card small{display:block;color:#708297}.choice-card input:focus-visible+span{outline:3px solid #8fc5e7;outline-offset:3px}
.enroll-vote-preview input{background:#f5f8fb!important;font-weight:800;color:#183f61!important}.enroll-context{grid-column:1/-1;padding:12px 14px;border-radius:12px;background:#f6fafc;border:1px solid #e1ebf2;color:#52687f;font-size:13px;margin-bottom:14px}.enroll-context strong{color:#203f5c}.inline-check{display:flex;align-items:flex-start;gap:9px;margin-top:8px;color:#52687f;font-size:13px}.inline-check input{width:20px;height:20px;flex:0 0 20px}
.enroll-check{display:flex!important;gap:10px;align-items:flex-start;padding:12px 13px;font-size:13px;line-height:1.35;border:1px solid #e2e9ef;border-radius:12px;background:#fff;cursor:pointer;min-height:48px;margin-bottom:10px}.enroll-check input[type=checkbox]{appearance:auto!important;-webkit-appearance:checkbox!important;width:20px!important;height:20px!important;min-width:20px!important;max-width:20px!important;margin:0!important;padding:0!important;flex:0 0 20px!important}.enroll-fieldset{border:0;padding:0;margin:16px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px}.enroll-fieldset legend{grid-column:1/-1;font-weight:750;font-size:14px;padding:0;margin-bottom:4px}.enroll-info-card{border:1px solid #dce8f1;border-radius:14px;padding:16px;background:#f7fbfe;display:flex;flex-direction:column;justify-content:center;margin-bottom:15px}.enroll-info-card strong{font-size:12px;color:#5f7388}.enroll-info-card span{font-size:28px;font-weight:800;color:#163d5f}.enroll-review{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.enroll-review-item{border:1px solid #e4ebf1;border-radius:12px;padding:12px 14px;background:#fbfcfd}.enroll-review-item small{display:block;color:#7b8b9c;font-size:10px;text-transform:uppercase;letter-spacing:.05em;margin-bottom:3px}.enroll-review-item strong{display:block;color:#233b52;font-size:13px;overflow-wrap:anywhere}.enroll-actions{display:flex;align-items:center;gap:10px;padding:12px 26px calc(12px + env(safe-area-inset-bottom));border-top:1px solid #e5edf3;background:#fff;flex:0 0 auto}.enroll-actions [data-step-copy]{margin-right:auto;color:#758697;font-size:12px}.enroll-feedback{display:none;margin:14px 0 0;padding:11px 13px;border-radius:10px;font-size:13px;line-height:1.4}.enroll-feedback.show{display:block}.enroll-feedback.error{background:#fff0f0;color:#8b2020;border:1px solid #f2cccc}.enroll-save-later{margin-right:auto}.enroll-mobile-progress{display:none}.enroll-success{padding:28px}.enroll-success h4{margin-top:0;color:#1c4d73}
@media(max-width:760px){.lp-modal-bg{padding:0!important;align-items:stretch!important;background:#fff!important;backdrop-filter:none!important}.enrollment-modal{width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;box-shadow:none!important}.enroll-wizard-head{padding:calc(14px + env(safe-area-inset-top)) 16px 11px}.enroll-wizard-head h3{font-size:22px;line-height:1.1}.enroll-intro{font-size:12px}.enroll-progress{display:none}.enroll-mobile-progress{display:flex;align-items:center;gap:10px;padding:8px 16px;border-bottom:1px solid #edf2f6;background:#fbfcfd}.enroll-mobile-progress-bar{height:6px;background:#e8eef3;border-radius:99px;overflow:hidden;flex:1}.enroll-mobile-progress-bar span{display:block;height:100%;background:#2f86c7;border-radius:99px;transition:width .2s}.enroll-mobile-progress strong{font-size:12px;color:#567087;white-space:nowrap}.enrollment-modal form{min-height:0}.enroll-step{padding:18px 16px 130px;overflow-y:auto;-webkit-overflow-scrolling:touch}.enroll-grid,.enroll-property-fields,.enroll-fieldset,.enroll-review,.choice-grid{grid-template-columns:1fr!important}.enroll-step-title{margin-bottom:18px}.enroll-step-title h4{font-size:19px}.enroll-step-title p{font-size:12px}.choice-card{min-height:72px}.enroll-actions{position:absolute;left:0;right:0;bottom:0;padding:10px 12px calc(10px + env(safe-area-inset-bottom));box-shadow:0 -10px 28px rgba(25,59,91,.08);flex-wrap:nowrap}.enroll-actions [data-step-copy],.enroll-save-later{display:none}.enroll-actions .btn{min-height:50px;justify-content:center}.enroll-actions [data-prev-step]{flex:0 0 92px}.enroll-actions [data-next-step],.enroll-actions [data-submit]{flex:1}.lp-modal-close{width:44px!important;height:44px!important;min-width:44px}.enroll-save-status{font-size:11px}.enroll-property-fields{gap:0}.enrollment-modal input:not([type=checkbox]):not([type=radio]),.enrollment-modal select,.enrollment-modal textarea{font-size:16px!important}.enroll-context{font-size:12px}.enroll-success{padding:24px 16px}}
@media(max-width:360px){.enroll-wizard-head{padding-left:12px;padding-right:12px}.enroll-step{padding-left:12px;padding-right:12px}.choice-card{padding:12px}.choice-icon{display:none}.enroll-actions{padding-left:10px;padding-right:10px}.enroll-actions [data-prev-step]{flex-basis:78px}}
@media(prefers-reduced-motion:reduce){.choice-card,.enroll-mobile-progress-bar span{transition:none!important}}

/* V32 — resiliencia, accesibilidad y ayuda contextual */
.enroll-network-status{display:inline-flex;align-items:center;margin-left:8px;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:750;background:#fff4d8;color:#745719}
.enroll-network-status.is-offline{background:#fff0f0;color:#8b2020}.enroll-network-status.is-online{background:#eef8f0;color:#2d7041}
.enroll-help{margin-top:7px;border-top:1px dashed #dbe5ed;padding-top:7px;color:#5b6f84;font-size:12px}.enroll-help summary{cursor:pointer;font-weight:750;color:#355d7f;min-height:32px;display:flex;align-items:center}.enroll-help p{margin:6px 0 0;line-height:1.45}
.enrollment-modal :focus-visible{outline:3px solid #82bde5!important;outline-offset:3px!important}
.enroll-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:760px){.enroll-network-status{margin-left:0;margin-top:6px}.enroll-help summary{min-height:44px}.enroll-step{overscroll-behavior:contain}.enroll-actions{padding-bottom:max(10px,env(safe-area-inset-bottom))}}
@media(max-height:620px) and (max-width:760px){.enroll-wizard-head{padding-top:max(8px,env(safe-area-inset-top));padding-bottom:7px}.enroll-wizard-head .enroll-intro{display:none}.enroll-step{padding-top:12px;padding-bottom:110px}}
\n\n/* V33 — small-screen hardening, WCAG polish and slow-connection states */\n.enroll-network-status.is-slow{background:#fff7df;color:#76590b}\n.enroll-success[tabindex="-1"]:focus{outline:none!important}\n.enrollment-modal input,.enrollment-modal select,.enrollment-modal textarea,.enrollment-modal button{touch-action:manipulation}\n.enrollment-modal input::placeholder,.enrollment-modal textarea::placeholder{color:#7a8997;opacity:1}\n.enroll-actions .btn[disabled]{opacity:.65;cursor:wait}\n@media(max-width:430px){.enrollment-modal{font-size:16px}.enroll-wizard-head{gap:8px}.enroll-kicker{font-size:10px}.enroll-step-title>span{width:30px;height:30px;flex-basis:30px}.enroll-step-title h4{font-size:18px}.enroll-step-title p{line-height:1.4}.enroll-info-card span{font-size:24px}.enroll-review-item{padding:11px 12px}.enroll-check{font-size:14px}.field-help,.field-error,.enroll-help{font-size:13px}.enroll-actions .btn{font-size:15px;padding-inline:14px}}\n@media(max-width:360px){.enrollment-modal{width:100%;min-width:0}.enroll-wizard-head h3{font-size:20px}.enroll-wizard-head .enroll-save-status,.enroll-wizard-head .enroll-network-status{font-size:10px}.enroll-step{padding-bottom:118px}.enroll-step-title{gap:8px}.choice-card{min-height:64px}.choice-card strong{font-size:14px}.choice-card small{font-size:12px}.enroll-actions [data-prev-step]{flex-basis:72px}.enroll-actions .btn{padding-inline:10px;font-size:14px}.enroll-review-item strong{font-size:12px}}\n@media(max-width:320px){.enroll-wizard-head{padding-left:10px;padding-right:10px}.enroll-step{padding-left:10px;padding-right:10px}.enroll-mobile-progress{padding-left:10px;padding-right:10px}.enroll-actions{padding-left:8px;padding-right:8px;gap:6px}.enroll-actions [data-prev-step]{flex-basis:68px}.enroll-actions .btn{min-width:0}.enrollment-modal input:not([type=checkbox]):not([type=radio]),.enrollment-modal select,.enrollment-modal textarea{min-height:50px}.choice-card{padding:10px}}\n@media(prefers-contrast:more){.enrollment-modal input,.enrollment-modal select,.enrollment-modal textarea,.choice-card,.enroll-check{border-color:#61778c}.field-help,.choice-card small,.enroll-step-title p{color:#43576b}}\n@media(prefers-reduced-motion:reduce){.enrollment-modal *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}\n
/* V34 — reglas de campo explícitas */
.field-optional{font-size:.82em;font-weight:600;opacity:.68}
/* V35 — resiliencia para sesiones largas/conectividad irregular */
.enroll-session-note{font-size:.82rem;color:#52647b;line-height:1.45}

/* V36 · envío guiado y tranquilizador */
.enroll-submit-overlay[hidden]{display:none!important}.enroll-submit-overlay{position:fixed;inset:0;z-index:9999;background:rgba(8,28,52,.72);backdrop-filter:blur(8px);display:grid;place-items:center;padding:20px;padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right));padding-bottom:max(20px,env(safe-area-inset-bottom))}.enroll-submit-card{width:min(100%,460px);background:#fff;border-radius:26px;padding:30px 26px;box-shadow:0 28px 80px rgba(0,0,0,.28);text-align:center;color:#102a4c;outline:none}.enroll-submit-logo img{width:58px;height:58px;object-fit:contain}.enroll-submit-spinner{width:42px;height:42px;margin:18px auto;border:4px solid #dcebf5;border-top-color:#347eaf;border-radius:50%;animation:aumacaSpin .9s linear infinite}.enroll-submit-card h3{font-size:24px;line-height:1.15;margin:0 0 9px}.enroll-submit-card p{font-size:16px;line-height:1.55;color:#566a80;margin:0 auto 18px;max-width:370px}.enroll-submit-safe{background:#f1f8fc;border:1px solid #d8eaf5;border-radius:16px;padding:13px 14px;font-size:14px;line-height:1.45;color:#40566e}.enroll-submit-safe strong{display:block;color:#102a4c;margin-bottom:2px}.enroll-submit-steps{display:flex;justify-content:center;gap:8px;margin:19px 0 11px}.enroll-submit-steps span{width:34px;height:6px;border-radius:999px;background:#dbe7ef;transition:.25s}.enroll-submit-steps span.active{background:#4f94bf}.enroll-submit-card small{display:block;color:#718095;font-size:12px;line-height:1.45}.enroll-submit-overlay.is-slow .enroll-submit-spinner{border-top-color:#b9822c}.enroll-submit-overlay.is-offline .enroll-submit-spinner{animation:none;border-color:#d98b8b}.enroll-submit-overlay.is-offline .enroll-submit-safe{background:#fff6f6;border-color:#f0cece}.enroll-submit-overlay.is-success .enroll-submit-spinner{animation:none;border:0;width:50px;height:50px;background:#eaf7ef;position:relative}.enroll-submit-overlay.is-success .enroll-submit-spinner:after{content:'✓';position:absolute;inset:0;display:grid;place-items:center;font-size:28px;font-weight:800;color:#278455}.enroll-submit-overlay.is-success .enroll-submit-steps span{background:#72b58d}.enroll-submit-overlay.is-success .enroll-submit-safe{background:#f1faf4;border-color:#d6eddc}.enroll-submit-overlay.is-error .enroll-submit-spinner{animation:none;border:0;width:50px;height:50px;background:#fff3f3;position:relative}.enroll-submit-overlay.is-error .enroll-submit-spinner:after{content:'!';position:absolute;inset:0;display:grid;place-items:center;font-size:28px;font-weight:800;color:#b44949}@keyframes aumacaSpin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.enroll-submit-spinner{animation-duration:2s}.enroll-submit-steps span{transition:none}}@media(max-width:430px){.enroll-submit-overlay{padding:14px}.enroll-submit-card{border-radius:22px;padding:26px 18px}.enroll-submit-card h3{font-size:22px}.enroll-submit-card p{font-size:16px}.enroll-submit-safe{font-size:14px}}


/* AUMACA Easy Enrollment V37 — confirmación premium + accesibilidad de cierre */
.enroll-success-v37{max-width:720px;margin:0 auto;padding:clamp(24px,5vw,44px);text-align:left;border:1px solid #dfeaf3;border-radius:28px;background:linear-gradient(180deg,#fff 0,#f8fcff 100%);box-shadow:0 24px 70px rgba(16,42,76,.10)}
.enroll-success-badge{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:#e9f8ef;color:#146c43;font-size:30px;font-weight:800;margin-bottom:18px}
.enroll-success-kicker{margin:0 0 6px;color:#377da8;font-weight:800;text-transform:uppercase;letter-spacing:.08em;font-size:12px}
.enroll-success-v37 h4{font-size:clamp(30px,5vw,44px);line-height:1.05;margin:0 0 12px;color:#102a4c}
.enroll-success-lead{font-size:17px;line-height:1.6;color:#52647b;margin:0 0 22px}
.enroll-success-reference{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;padding:16px 18px;background:#fff;border:1px solid #dfeaf3;border-radius:18px;margin-bottom:18px}
.enroll-success-reference span{font-size:13px;color:#718094}.enroll-success-reference strong{font-size:18px;color:#102a4c}
.enroll-success-next{padding:18px 20px;background:#f1f8fd;border-radius:18px;margin-bottom:18px}.enroll-success-next strong{color:#102a4c}.enroll-success-next ol{margin:10px 0 0;padding-left:22px;color:#52647b;line-height:1.7}
.enroll-success-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.enroll-success-actions .btn{min-height:48px}
.enroll-success-note{font-size:13px;line-height:1.5;color:#718094;margin:18px 0 0}
@media(max-width:560px){.enroll-success-v37{border-radius:0;box-shadow:none;min-height:100%;padding:24px 18px calc(28px + env(safe-area-inset-bottom))}.enroll-success-reference{grid-template-columns:1fr auto}.enroll-success-reference button{grid-column:1/-1;width:100%}.enroll-success-actions{display:grid;grid-template-columns:1fr}.enroll-success-actions .btn{width:100%}}
@media print{body>*:not(#modalRegistro){display:none!important}#modalRegistro{position:static!important;display:block!important;background:#fff!important;padding:0!important}.enroll-card{box-shadow:none!important;border:0!important;max-width:none!important}.enroll-progress,.enroll-mobile-progress,.lp-modal-close,.enroll-actions,#formRegistro,#enrollSubmitOverlay{display:none!important}.enroll-success-v37{display:block!important;box-shadow:none!important;border:1px solid #ddd!important}.enroll-success-actions{display:none!important}}
