/* Evaluación pública (/evaluacion) — port del flujo de xserbia.github.io/xs-member-site/formula-dinero-onboarding/
   new-onboarding.html (2026-11-15). Prefijo ob-, scope .ob-root, que va DENTRO del .hm-root del home (cabecera y pie
   compartidos, y su capa que neutraliza los resets globales de la app). La cabecera simple de 2 logos y el
   "<footer class=foot>" del mockup se sustituyen por HomeHeader/SiteFooter (decisión del owner). Las preguntas usan
   DiagnosticQuestionInput (Prefix "ob-") y la ayuda QuestionHelpPopover (Prefix "ob-").
   ⚠️ El mockup declara Sora + Space Grotesk pero NO las carga (se pinta con la fuente del sistema); aquí sí se cargan
   (index.html), así que algún texto corta en otra línea que en el mockup: se replica la intención, no ese fallo.
   Los resets van con :where() (especificidad mínima) para que las clases del mockup (.ob-sub, .ob-option…) ganen. */

.hm-root .ob-root{
  --ob-blue:#155EEF; --ob-blue-light:#EEF4FF; --ob-blue-mid:#C7D7FD; --ob-navy:#0F172A; --ob-gray:#64748B;
  --ob-bg:#F8FAFC; --ob-border:#E2E8F0;
  --ob-e1:#E24B4A; --ob-e2:#EF9F27; --ob-e3:#378ADD; --ob-e4:#1D9E75; --ob-e5:#7F77DD;
  --ob-head:'Space Grotesk',system-ui,sans-serif; --ob-body:'Sora',system-ui,sans-serif;
  font-family:var(--ob-body); font-size:16px; background:var(--ob-bg); color:var(--ob-navy); line-height:1.6;
  -webkit-font-smoothing:antialiased; padding:48px 24px 60px; min-height:60vh
}
.hm-root .ob-root *,.hm-root .ob-root *::before,.hm-root .ob-root *::after{box-sizing:border-box}
/* reset con especificidad mínima (:where) para que las clases del mockup (.ob-sub, .ob-muted…) ganen */
.hm-root :where(.ob-root) :where(h1,h2,h3,p,ol,ul){margin:0;padding:0}
.hm-root .ob-root h1,.hm-root .ob-root h2,.hm-root .ob-root h3{letter-spacing:normal}
.hm-root :where(.ob-root) :where(button){font:inherit;cursor:pointer}
.hm-root .ob-root a{color:var(--ob-blue);text-decoration:underline}

/* ── flujo / panel ── */
.hm-root .ob-flow{max-width:650px;margin:0 auto}
.hm-root .ob-panel{background:#fff;border:1px solid var(--ob-border);border-radius:24px;padding:36px;box-shadow:0 15px 60px #17254c08}
.hm-root .ob-eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:1px;color:var(--ob-blue);font-weight:700}
.hm-root .ob-root h1{font-family:var(--ob-head);font-size:34px;line-height:1.2;margin:14px 0;font-weight:700}
.hm-root .ob-sub{color:var(--ob-gray);font-size:14px;margin:12px 0 24px}
.hm-root .ob-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.hm-root .ob-field{display:block;font-size:13px;margin:16px 0}
.hm-root .ob-root .ob-field input,.hm-root .ob-root .ob-input,.hm-root .ob-root .ob-phone select{
  width:100%;padding:15px;border:1px solid var(--ob-border);border-radius:12px;font:inherit;font-size:16px;
  margin-top:7px;background:#fff;color:var(--ob-navy);appearance:auto}
.hm-root .ob-root .ob-field input:focus,.hm-root .ob-root .ob-input:focus,.hm-root .ob-root .ob-phone select:focus{outline:2px solid #A4BCFD}
.hm-root .ob-phone{display:grid;grid-template-columns:120px 1fr;gap:10px}
.hm-root .ob-primary{background:var(--ob-blue);color:#fff;border:0;border-radius:12px;padding:15px 24px;font-weight:600}
.hm-root .ob-primary:disabled{opacity:.6;cursor:default}
.hm-root .ob-wide{width:100%;margin-top:20px}
.hm-root .ob-muted{font-size:11px;color:var(--ob-gray);margin-top:16px}
.hm-root .ob-row{display:flex;justify-content:space-between;align-items:center;gap:12px}
.hm-root .ob-nav{margin-top:28px;padding-top:20px;border-top:1px solid var(--ob-border)}
.hm-root .ob-back{background:none;border:0;font-size:13px;color:var(--ob-gray)}
.hm-root .ob-back.ob-wide{display:block;text-align:center}
.hm-root .ob-track{height:5px;border-radius:9px;background:#DCE7FF;margin-bottom:28px}
.hm-root .ob-fill{height:100%;background:var(--ob-blue);border-radius:9px;transition:width .3s}
.hm-root .ob-root h1.ob-qtitle{font-size:26px;margin:22px 0 10px}
.hm-root .ob-check{display:flex;gap:10px;align-items:flex-start;font-size:12px;color:var(--ob-gray);margin-top:16px;cursor:pointer}
.hm-root .ob-root .ob-check input{width:17px;height:17px;margin-top:3px;flex-shrink:0;padding:0}
.hm-root .ob-error{color:#bd3030;font-size:13px;margin-top:12px}
.hm-root .ob-hp{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}

/* ── opciones (DiagnosticQuestionInput Prefix="ob-" + preguntas de próximo paso) ── */
.hm-root .ob-option,.hm-root .ob-nose-btn{display:flex;justify-content:flex-start;width:100%;text-align:left;gap:14px;align-items:center;background:#fff;
  border:1px solid var(--ob-border);border-radius:12px;padding:14px 16px;margin-top:10px;font-size:14px;color:var(--ob-navy)}
.hm-root .ob-option::before,.hm-root .ob-nose-btn::before{content:'';width:17px;height:17px;border:1px solid #bbc2d0;border-radius:50%;flex-shrink:0}
.hm-root .ob-multi::before{border-radius:5px}
.hm-root .ob-option.selected,.hm-root .ob-nose-btn.active{border-color:var(--ob-blue);background:var(--ob-blue-light);color:var(--ob-blue)}
.hm-root .ob-option.selected::before,.hm-root .ob-nose-btn.active::before{background:var(--ob-blue);box-shadow:inset 0 0 0 4px #fff;border-color:var(--ob-blue)}
.hm-root .ob-input-block{margin-top:6px}
.hm-root .ob-input-block > div{position:relative}
.hm-root .ob-suffix-label{position:absolute;right:16px;top:50%;transform:translateY(-35%);color:var(--ob-gray);font-size:15px;pointer-events:none}
.hm-root .ob-root .ob-input:disabled{background:#f4f6fa;color:#9aa3b2}

/* ── ayuda (QuestionHelpPopover Prefix="ob-") — en el mockup: overlay + helpbox arriba a la derecha / bottom sheet ── */
.hm-root .ob-help-btn{border:0;color:var(--ob-blue);background:var(--ob-blue-light);padding:9px 13px;border-radius:20px;font-size:12px;
  display:inline-flex;align-items:center;gap:6px}
.hm-root .ob-help-q{display:inline-grid;place-items:center;width:16px;height:16px;border-radius:50%;border:1.5px solid currentColor;font-size:10px;font-weight:700}
.hm-root .ob-help-overlay{position:fixed;inset:0;background:#18213c40;z-index:1300}
.hm-root .ob-help-pop{position:fixed;z-index:1301;background:#fff;border-radius:20px;width:420px;max-height:70dvh;overflow:auto;padding:26px;
  box-shadow:0 20px 70px #1e174733;top:170px;right:max(25px,calc((100vw - 650px)/2));outline:none;font-family:var(--ob-body);color:var(--ob-navy)}
.hm-root .ob-help-head{display:flex;align-items:center;gap:8px;font-weight:700}
.hm-root .ob-help-head > span:nth-child(2){flex:1}
.hm-root .ob-help-close{border:0;background:#f1f2f6;border-radius:50%;width:32px;height:32px;font-size:18px;line-height:1}
.hm-root .ob-help-title{font-family:var(--ob-head);font-weight:700;font-size:16px;margin-top:14px}
.hm-root .ob-help-pop p{font-size:14px;margin:16px 0}
.hm-root .ob-help-example{background:var(--ob-blue-light);border-radius:12px;padding:16px}
.hm-root .ob-help-example-title{font-weight:700;font-size:14px}
.hm-root .ob-help-example p{margin:8px 0 0}

/* ── bienvenida (2 columnas con "Esto vas a descubrir") ── */
.hm-root .ob-flow.ob-welcome-flow{max-width:1060px;display:grid;grid-template-columns:1.05fr 1fr;gap:24px;align-items:stretch}
.hm-root .ob-welcome-form{padding:38px}
.hm-root .ob-welcome-form .ob-fields{grid-template-columns:1fr;gap:0}
.hm-root .ob-welcome-form .ob-field{margin:15px 0}
.hm-root .ob-welcome-form .ob-muted{font-size:12px;line-height:1.7}
.hm-root .ob-welcome-promise{background:linear-gradient(145deg,#082755,#0b3475);border-radius:24px;padding:38px;color:#fff;display:flex;flex-direction:column}
.hm-root .ob-promise-kicker{font-size:11px;letter-spacing:.12em;text-transform:uppercase;font-weight:600;color:#a9c8ff}
.hm-root .ob-welcome-promise h2{font-family:var(--ob-head);font-size:32px;line-height:1.2;margin:16px 0;font-weight:700;color:#fff}
.hm-root .ob-promise-intro{font-size:14px;line-height:1.7;color:#c6d7f1}
.hm-root .ob-promise-list{list-style:none;margin:26px 0 0;padding:0}
.hm-root .ob-promise-list li{display:flex;gap:16px;align-items:flex-start;padding:19px 0;border-top:1px solid #ffffff24}
.hm-root .ob-promise-number{display:grid;place-items:center;flex-shrink:0;width:38px;height:38px;border-radius:11px;background:#ffffff15;color:#a9c8ff;font:600 15px var(--ob-head)}
.hm-root .ob-promise-list h3{font:600 17px var(--ob-head);margin:0 0 5px;color:#fff}
.hm-root .ob-promise-list p{font-size:13px;line-height:1.6;color:#c6d7f1;margin:0}
.hm-root .ob-promise-foot{margin-top:auto;padding-top:20px;font-size:11px;line-height:1.7;color:#a9c8ff}

/* ── pantalla puente (etapa calculada) ── */
.hm-root .ob-transition-icon{width:72px;height:72px;background:var(--ob-blue-light);color:var(--ob-blue);border-radius:50%;display:grid;place-items:center;font-size:34px;margin:0 auto 22px}
.hm-root .ob-bridge-stage{border:1px solid var(--ob-border);border-radius:18px;padding:22px;background:#fff;margin:24px 0}
.hm-root .ob-bridge-stage-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.hm-root .ob-bridge-complete{color:#13734e;background:#ecfdf5;border-radius:20px;padding:4px 9px;font-size:10px;font-weight:600}
.hm-root .ob-bridge-stage h2{font:700 23px var(--ob-head);margin:16px 0 10px}
.hm-root .ob-bridge-ladder{display:flex;align-items:flex-end;gap:8px;padding:24px 2px 8px}
.hm-root .ob-bridge-step{flex:1;min-width:0;border-radius:8px 8px 0 0;background:var(--step-color);opacity:.2;position:relative;display:flex;align-items:flex-end;
  justify-content:center;padding:8px 3px;color:#fff;text-align:center;font-size:9px;font-weight:600;line-height:1.3;overflow-wrap:anywhere}
.hm-root .ob-bridge-current{opacity:1;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--step-color)}
.hm-root .ob-bridge-step-number{position:absolute;top:-13px;left:50%;transform:translateX(-50%);background:#fff;color:var(--ob-navy);border:2px solid var(--step-color);
  width:25px;height:25px;border-radius:50%;display:grid;place-items:center;font-size:10px}
.hm-root .ob-bridge-current .ob-bridge-step-number{background:var(--ob-navy);border-color:var(--ob-navy);color:#fff}
.hm-root .ob-bridge-stage-note{font-size:11px;color:var(--ob-gray);margin:12px 0 0}
.hm-root .ob-bridge-report{border:1px solid var(--ob-border);border-radius:18px;background:#f8faff;overflow:hidden;margin:22px 0}
.hm-root .ob-bridge-report-top{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#fff;padding:15px 18px;font-size:13px;border-bottom:1px solid var(--ob-border)}
.hm-root .ob-bridge-report-top span{font-size:10px;color:var(--ob-gray)}
.hm-root .ob-bridge-preview{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:18px 18px 6px;user-select:none;pointer-events:none}
.hm-root .ob-bridge-preview-column{border:1px solid #e4eaf4;border-radius:10px;padding:12px;background:#fff;overflow:hidden}
.hm-root .ob-bridge-preview-column b{font-size:11px;color:var(--ob-gray)}
.hm-root .ob-bridge-blurred{filter:blur(5px);opacity:.6;margin-top:15px}
.hm-root .ob-bridge-faux-line{height:9px;border-radius:4px;background:#91a7c7;margin:12px 0;width:92%}
.hm-root .ob-bridge-faux-line:nth-child(2){width:74%}
.hm-root .ob-bridge-faux-line:nth-child(3){width:83%}
.hm-root .ob-bridge-faux-box{height:35px;border-radius:7px;background:#b5cafa;margin-bottom:14px}
.hm-root .ob-bridge-report-message{padding:16px 24px 22px;text-align:center;background:linear-gradient(#f8faff99,#f8faff);position:relative}
.hm-root .ob-bridge-ready-icon{display:inline-grid;place-items:center;background:#e8f0ff;color:var(--ob-blue);border-radius:50%;width:27px;height:27px;margin-right:6px}
.hm-root .ob-bridge-report-message strong{font-size:14px}
.hm-root .ob-bridge-report-message p{font-size:12px;color:var(--ob-gray);line-height:1.7;margin:10px 0 0}
.hm-root .ob-bridge-five{text-align:center;font-size:11px;color:var(--ob-gray);margin:13px 0 0}

/* ── confirmación / código ── */
.hm-root .ob-contact-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0 4px}
.hm-root .ob-contact-summary div{background:var(--ob-bg);border-radius:12px;padding:12px 14px;font-size:13px;overflow-wrap:anywhere}
.hm-root .ob-contact-summary strong{display:block;font-size:11px;color:var(--ob-gray);font-weight:600;margin-bottom:2px}
.hm-root .ob-otp-row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:22px 0 4px}
.hm-root .ob-root .ob-otp-row input{width:100%;height:58px;text-align:center;font:700 24px var(--ob-head);border:1px solid var(--ob-border);border-radius:12px;
  background:#fff;color:var(--ob-navy);padding:0}
.hm-root .ob-root .ob-otp-row input:focus{outline:2px solid #A4BCFD;border-color:var(--ob-blue)}
.hm-root .ob-resend{text-align:center;font-size:12px;color:var(--ob-gray);margin-top:16px}
.hm-root .ob-resend button{border:0;background:none;color:var(--ob-blue);font-weight:600;font-size:12px;padding:0}
.hm-root .ob-resend button:disabled{color:var(--ob-gray);cursor:default}
.hm-root .ob-loading{text-align:center;color:var(--ob-gray);padding:40px 0;font-size:14px}

@media(max-width:760px){
  .hm-root .ob-flow.ob-welcome-flow{max-width:650px;grid-template-columns:1fr;gap:20px}
  .hm-root .ob-welcome-form,.hm-root .ob-welcome-promise{padding:28px}
  .hm-root .ob-welcome-promise h2{font-size:28px}
  .hm-root .ob-welcome-form h1{font-size:29px}
}
@media(max-width:720px){
  .hm-root .ob-help-overlay{background:#18213c40}
  .hm-root .ob-help-pop{top:auto;bottom:0;right:0;left:0;width:100%;border-radius:22px 22px 0 0;padding-bottom:30px}
}
@media(max-width:600px){
  .hm-root .ob-root{padding:24px 16px 32px}
  .hm-root .ob-panel{padding:24px 20px;border-radius:18px}
  .hm-root .ob-fields{grid-template-columns:1fr;gap:0}
  .hm-root .ob-root h1{font-size:29px}
  .hm-root .ob-root h1.ob-qtitle{font-size:23px}
  .hm-root .ob-contact-summary{grid-template-columns:1fr}
  .hm-root .ob-phone{grid-template-columns:104px 1fr}
  .hm-root .ob-otp-row{gap:6px}
  .hm-root .ob-root .ob-otp-row input{height:50px;font-size:20px}
}
@media(max-width:420px){
  .hm-root .ob-welcome-form,.hm-root .ob-welcome-promise{padding:24px 20px}
  .hm-root .ob-bridge-stage{padding:16px}
  .hm-root .ob-bridge-ladder{gap:6px}
  .hm-root .ob-bridge-step{font-size:8px;padding:7px 1px}
  .hm-root .ob-bridge-stage h2{font-size:20px}
  .hm-root .ob-bridge-preview{gap:8px;padding:12px}
  .hm-root .ob-bridge-preview-column{padding:8px}
  .hm-root .ob-bridge-report-message{padding:14px 16px 20px}
}

/* ══════════════════ /mi-evaluacion — resultado + oferta (mockup new-onboarding.html, renderRecommendation) ══════════
   .mev-root va FUERA de .hm-root (el panel de resultado rg2- depende de los resets globales de la app), así que aquí
   SÍ aplican account/css/index.css (* { line-height:normal; margin:unset }): line-heights y márgenes explícitos. */
.mev-root{
  --mev-blue:#155EEF; --mev-blue-light:#EEF4FF; --mev-navy:#0F172A; --mev-gray:#64748B; --mev-bg:#F8FAFC; --mev-border:#E2E8F0;
  --mev-head:'Space Grotesk',system-ui,sans-serif; --mev-body:'Sora',system-ui,sans-serif;
  font-family:var(--mev-body); background:var(--mev-bg); color:var(--mev-navy); line-height:1.6; padding:32px 24px 60px
}
.mev-root *{box-sizing:border-box}
.mev-root p,.mev-root li,.mev-root strong,.mev-root span,.mev-root div{line-height:inherit}
.mev-loading{text-align:center;color:var(--mev-gray);padding:80px 0;font-size:14px}
.mev-note{max-width:1060px;margin:0 auto 20px;font-size:11px;color:var(--mev-gray)}
.mev-offers{max-width:1060px;margin:32px auto 0}
.mev-eyebrow{display:inline-block;font-size:11px;text-transform:uppercase;letter-spacing:1px;color:var(--mev-blue);font-weight:700}
.mev-muted{font-size:11px;color:var(--mev-gray);margin-top:16px}
.mev-context{padding:24px;background:#fff;border:1px solid var(--mev-border);border-radius:18px;margin-bottom:24px}
.mev-context-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:16px}
.mev-context-grid p{font-size:14px;margin-top:4px}
.mev-recommended{background:#fff;border:2px solid var(--mev-blue);border-radius:22px;padding:30px;margin-bottom:32px}
.mev-badge{display:inline-block;color:var(--mev-blue);background:var(--mev-blue-light);padding:6px 12px;border-radius:20px;font-size:12px;font-weight:600}
.mev-rec-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:32px;margin-top:18px;align-items:start}
.mev-rec-grid h2{font:700 27px/1.25 var(--mev-head);margin:0 0 12px;letter-spacing:normal}
.mev-rec-grid h3{font:700 15px/1.4 var(--mev-head);margin:24px 0 8px}
.mev-rec-grid p{font-size:14px;line-height:1.7;margin-bottom:10px}
.mev-summary{color:var(--mev-gray);font-size:13px;margin:8px 0 18px}
.mev-price-panel{background:var(--mev-bg);border-radius:16px;padding:22px}
.mev-price{font:700 36px/1.2 var(--mev-head)}
.mev-term{font-size:13px;color:var(--mev-gray)}
.mev-offers ul{padding-left:19px;font-size:13px;line-height:1.65;margin:18px 0;list-style:disc}
.mev-offers li{margin-bottom:9px}
.mev-primary{background:var(--mev-blue);color:#fff;border:0;border-radius:12px;padding:15px 24px;font:600 14px/1.4 var(--mev-body);cursor:pointer}
.mev-primary:disabled,.mev-secondary:disabled{opacity:.6;cursor:default}
.mev-wide{width:100%;margin-top:8px}
.mev-secondary{border:1px solid var(--mev-border);border-radius:12px;background:#fff;font:600 12px/1.4 var(--mev-body);color:var(--mev-navy);cursor:pointer}
.mev-budget{margin-top:24px;border-top:1px solid var(--mev-border);padding-top:18px;font-size:13px;color:var(--mev-gray);line-height:1.65}
.mev-heading{font:700 25px/1.3 var(--mev-head);margin:8px 0;letter-spacing:normal}
.mev-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:22px 0}
.mev-card{background:#fff;border:1px solid var(--mev-border);border-radius:16px;padding:20px;display:flex;flex-direction:column;min-width:0}
.mev-card.mev-active{border:2px solid var(--mev-blue);background:#F8FAFF}
.mev-card h3{font:700 20px/1.3 var(--mev-head);margin:12px 0 0}
.mev-card .mev-price{font-size:30px}
.mev-card-badge{font-size:10px;min-height:20px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--mev-gray)}
.mev-active .mev-card-badge{color:var(--mev-blue)}
.mev-card .mev-summary{min-height:48px}
.mev-billing{font-size:11px;color:var(--mev-gray);margin:8px 0;min-height:34px}
.mev-card ul{font-size:12px;flex:1}
.mev-card button{width:100%;padding:12px 8px;font-size:12px}
.mev-renewal{font-size:11px;color:var(--mev-gray);line-height:1.6;margin-bottom:22px}
@media(max-width:950px){.mev-grid{grid-template-columns:1fr 1fr}}
@media(max-width:620px){
  .mev-root{padding:20px 16px 40px}
  .mev-rec-grid,.mev-context-grid{grid-template-columns:1fr;gap:18px}
  .mev-recommended{padding:22px}
  .mev-rec-grid h2{font-size:23px}
  .mev-context{padding:20px}
}
@media(max-width:400px){.mev-grid{grid-template-columns:1fr}.mev-card .mev-summary,.mev-billing{min-height:0}}
