/* IPEA · Inscripción — sistema visual
   Mobile first (360 px). Base 17 px para lectura adulta. Contraste AA verificado sobre blanco. */
:root {
  --bg: #f3f5fa;
  --surface: #ffffff;
  --ink: #111a2e;
  --ink-2: #3d4759;          /* 9.4:1 sobre blanco */
  --muted: #566074;          /* 6.3:1 */
  --line: #d9dfea;
  --line-strong: #b8c2d4;
  --brand: #1b3fa8;          /* azul IPEA · 8.6:1 */
  --brand-600: #16358f;
  --brand-50: #eef2fc;
  --accent: #b0156b;         /* magenta IPEA, sólo acentos · 6.4:1 */
  --ok: #0c6b40;             /* 6.6:1 */
  --ok-50: #e8f5ee;
  --warn: #7a4d00;
  --warn-50: #fff4dc;
  --err: #b0241b;            /* 6.4:1 */
  --err-50: #fdecea;
  --wa: #0b7a3b;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(17,26,46,.06), 0 6px 20px rgba(17,26,46,.06);
  --shadow-lift: 0 2px 4px rgba(17,26,46,.08), 0 14px 32px rgba(17,26,46,.10);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bar-h: 76px;
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  padding-bottom: 40px;
}
body.has-bar { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom) + var(--s6)); }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

/* ---------- barra superior ---------- */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top__in { max-width: 720px; margin: 0 auto; padding: 10px var(--s4); display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand img { width: 36px; height: 36px; border-radius: 50%; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.15; font-size: 13px; color: var(--muted); white-space: nowrap; }
.brand__txt strong { font-size: 17px; color: var(--ink); letter-spacing: .02em; }
.help-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--wa); font-weight: 600; font-size: 15px; cursor: pointer; }
.help-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.demo-banner { background: #fff4dc; color: #6a4300; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .04em; padding: 6px var(--s4); border-bottom: 1px solid #f0d9a4; }

.wrap { max-width: 720px; margin: 0 auto; padding: var(--s4) var(--s4) 0; outline: none; }

/* ---------- progreso ---------- */
.progress ol { list-style: none; margin: var(--s2) 0 var(--s5); padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.progress li { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; font-size: 13px; color: var(--muted); text-align: center; }
.progress li::before { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; transition: background .4s var(--ease); }
.progress li:first-child::before { display: none; }
.progress__dot { width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line-strong); position: relative; z-index: 1;
  display: grid; place-items: center; transition: all .35s var(--ease); }
.progress li.is-current { color: var(--ink); font-weight: 700; }
.progress li.is-current .progress__dot { border-color: var(--brand); box-shadow: 0 0 0 5px var(--brand-50); }
.progress li.is-done .progress__dot { background: var(--ok); border-color: var(--ok); }
.progress li.is-done .progress__dot::after { content: ""; width: 9px; height: 5px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) translate(1px,-1px); }
.progress li.is-done::before, .progress li.is-current::before { background: var(--ok); }
.progress li.is-current::before { background: linear-gradient(90deg, var(--ok), var(--brand)); }

/* ---------- pasos ---------- */
.step { animation: enter .35s var(--ease); }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.step__title { font-size: 26px; line-height: 1.2; margin: 0 0 var(--s2); letter-spacing: -.01em; outline: none; }
.step__lead { margin: 0 0 var(--s5); color: var(--ink-2); }

/* ---------- recompensas ---------- */
.reward { margin: var(--s3) 0 0; min-height: 0; color: var(--ok); font-weight: 600; display: flex; gap: 8px; align-items: flex-start; }
.reward:empty { display: none; }
.reward::before { content: ""; flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.1 8.4 18.7 7z'/%3E%3C/svg%3E") center/16px no-repeat; margin-top: 1px; }
.reward.is-new { animation: pop .45s var(--ease); }
@keyframes pop { 0% { opacity: 0; transform: translateY(4px) scale(.98); } 60% { opacity: 1; transform: scale(1.01); } 100% { transform: none; } }
.reward--inline { background: var(--ok-50); border-radius: var(--radius-sm); padding: 10px 12px; margin: 0 0 var(--s4); font-size: 15px; }
.reward--final { justify-content: center; margin-top: var(--s5); }

/* ---------- actividad elegida / selector ---------- */
.selected, .act { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.selected { padding: var(--s4); display: grid; grid-template-columns: 72px 1fr; gap: var(--s4); align-items: start; border-color: #a9c7b6; }
.selected__img, .act__img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; background: var(--brand-50); display: grid; place-items: center; color: var(--brand); font-weight: 800; font-size: 22px; }
.selected__tag { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 700; font-size: 14px; background: var(--ok-50); padding: 3px 10px; border-radius: 999px; }
.selected__name { font-size: 21px; font-weight: 750; margin: 6px 0 2px; line-height: 1.25; }
.meta { list-style: none; padding: 0; margin: var(--s2) 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-2); font-size: 15px; }
.meta li { display: inline-flex; align-items: center; gap: 6px; }
.meta li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.price { margin-top: var(--s3); font-size: 15px; color: var(--ink-2); }
.price strong { font-size: 22px; color: var(--ink); margin-right: 6px; }
.price__note { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.reqs { margin: var(--s3) 0 0; padding: 10px 12px; background: var(--bg); border-radius: 10px; font-size: 15px; color: var(--ink-2); }
.reqs b { color: var(--ink); }
.change { grid-column: 1 / -1; justify-self: start; }
.linkbtn { background: none; border: 0; padding: 10px 2px; color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }

.picker { border: 0; margin: 0; padding: 0; }
.picker__group { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: var(--s5) 0 var(--s2); }
.picker__group:first-child { margin-top: 0; }
.picker__list { display: grid; gap: var(--s3); }
.act { position: relative; display: grid; grid-template-columns: 56px 1fr auto; gap: var(--s3); align-items: center; padding: 12px; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); min-height: 76px; }
.act input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.act__img { width: 56px; height: 56px; font-size: 18px; }
.act__name { display: block; font-weight: 700; line-height: 1.25; }
.act__sub { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.is-icon svg { width: 60%; height: 60%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.act__price { font-weight: 700; font-size: 15px; white-space: nowrap; }
.act__radio { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; }
.act:hover { border-color: var(--line-strong); }
.act:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50), var(--shadow); }
.act:has(input:checked) .act__radio { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 4px #fff; }
.act:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.act__right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

/* ---------- actividad elegida, versión compacta (paso 2) ---------- */
.pick { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: start; background: var(--surface); border: 1px solid #a9c7b6;
  border-radius: var(--radius); padding: 12px; margin-bottom: var(--s5); box-shadow: var(--shadow); }
.pick__img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--brand-50); display: grid; place-items: center; color: var(--brand); font-weight: 800; }
.pick__body { min-width: 0; }
.pick .selected__tag { font-size: 13px; padding: 2px 8px 2px 4px; }
.pick .ok-dot { flex-basis: 18px; height: 18px; background-size: 12px; }
.pick__name { margin: 6px 0 0; font-weight: 750; font-size: 18px; line-height: 1.25; }
.pick__line { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.pick__price { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.pick__price b { font-size: 17px; color: var(--ink); }
.pick__req { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.pick__change { position: absolute; top: 4px; right: 10px; padding: 0 2px; min-height: 44px; }
.pick__body .selected__tag { margin-right: 76px; }

/* ---------- resumen compacto de pasos previos ---------- */
.chosen { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: var(--s5); font-size: 15px; }
.chosen__txt { display: flex; align-items: center; gap: 8px; min-width: 0; }
.chosen__txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ok-dot { flex: 0 0 20px; height: 20px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.1 8.4 18.7 7z'/%3E%3C/svg%3E") center/14px no-repeat; }
.chosen .linkbtn { padding: 6px 2px; min-height: 44px; white-space: nowrap; }

/* ---------- formulario ---------- */
.grid2 { display: grid; gap: 0 var(--s3); }
/* Que un campo enfocado no quede tapado por la barra superior ni por la inferior. */
.field, .form-error, .opt, .check { scroll-margin-top: 84px; scroll-margin-bottom: calc(var(--bar-h) + 24px); }
input, select, textarea { scroll-margin-top: 110px; scroll-margin-bottom: calc(var(--bar-h) + 40px); }
.field { margin: 0 0 var(--s4); border: 0; padding: 0; }
.field--narrow input { max-width: 140px; }
label, legend { display: block; font-weight: 650; margin-bottom: 6px; }
.hint { font-weight: 400; color: var(--muted); font-size: 14px; }
.hint--block { display: block; margin: 6px 0 0 36px; }
input[type=text], input:not([type]), input[type=tel], input[type=email], input[type=date], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid #737f95; border-radius: var(--radius-sm);
  background: var(--surface); font-size: 18px; transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23566074'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 24px; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
input.is-valid { border-color: var(--ok); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230c6b40'%3E%3Cpath d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.1 8.4 18.7 7z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 40px; }
input[aria-invalid=true], .seg[aria-invalid=true] .seg__opt span { border-color: var(--err); }
.field__err { color: var(--err); font-size: 15px; font-weight: 600; margin: 6px 0 0; }
.field__err:empty { display: none; }
.field__err::before { content: "! "; font-weight: 800; }
.seg__opts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.seg__opt { margin: 0; position: relative; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; }
.seg__opt span { display: grid; place-items: center; min-height: 52px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); font-weight: 600; cursor: pointer; }
.seg__opt input:checked + span { border-color: var(--brand); background: var(--brand-50); color: var(--brand-600); box-shadow: 0 0 0 3px var(--brand-50); }
.seg__opt input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.check { min-height: 44px; display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-weight: 400; cursor: pointer; }
.check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--brand); }
.note { background: var(--brand-50); color: var(--ink-2); border-radius: var(--radius-sm); padding: 12px 14px; margin: 0 0 var(--s4); font-size: 15px; }
.note--warn { background: var(--warn-50); color: var(--warn); }
.form-error { background: var(--err-50); color: var(--err); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: var(--s4); font-weight: 600; }
.lock { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; margin: var(--s2) 0 0; }
.lock svg { width: 16px; height: 16px; fill: currentColor; flex: 0 0 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 14px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 17px; cursor: pointer; text-decoration: none; transition: background .15s, transform .1s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(27,63,168,.25); }
.btn--primary:hover { background: var(--brand-600); }
.btn--primary[disabled], .btn--primary[aria-busy=true] { background: #7f93c9; box-shadow: none; cursor: default; }
.btn--ghost { background: transparent; color: var(--brand); border-color: var(--line-strong); }
.btn--soft { background: var(--surface); color: var(--ink); border-color: var(--line-strong); font-weight: 600; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #086530; }
.btn--sm { min-height: 44px; padding: 0 14px; font-size: 15px; }
.btn--block { width: 100%; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.45); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- barra inferior fija ---------- */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(17,26,46,.08); padding-bottom: env(safe-area-inset-bottom); backdrop-filter: saturate(1.4) blur(8px); }
.bar__in { max-width: 720px; margin: 0 auto; padding: 10px var(--s4); display: flex; gap: var(--s3); align-items: center; min-height: var(--bar-h); }
.bar__info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.bar__name { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar__price { font-weight: 800; font-size: 18px; }
.bar__btn { flex: 0 0 auto; min-width: 150px; }

/* ---------- paso 3: opciones ---------- */
.saved { display: inline-flex; align-items: center; gap: 8px; background: var(--ok-50); color: var(--ok); font-weight: 700; border-radius: 999px; padding: 6px 14px 6px 8px; font-size: 15px; margin-bottom: var(--s3); }
.trust { list-style: none; margin: 0 0 var(--s5); padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.trust li { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 6px; line-height: 1.3; }
.trust li::before { content: ""; flex: 0 0 18px; height: 18px; border-radius: 50%; background: var(--ok-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230c6b40'%3E%3Cpath d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.1 8.4 18.7 7z'/%3E%3C/svg%3E") center/13px no-repeat; }
.options { display: grid; gap: var(--s3); }
.opt { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.opt.is-open { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50), var(--shadow-lift); }
.opt__head { width: 100%; display: grid; grid-template-columns: 48px 1fr 24px; gap: var(--s3); align-items: center; padding: 14px; background: none; border: 0; text-align: left; cursor: pointer; min-height: 76px; }
.opt__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.opt__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.opt--advisor .opt__icon { background: #e6f4ec; color: var(--wa); }
.opt--in_person .opt__icon { background: #fdeaf3; color: var(--accent); }
.opt__title { font-weight: 750; font-size: 17px; line-height: 1.25; display: block; }
.opt__sub { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }
.opt__chev { width: 24px; height: 24px; transition: transform .25s var(--ease); fill: var(--muted); }
.opt.is-open .opt__chev { transform: rotate(180deg); }
.opt__body { padding: 0 var(--s4) var(--s4); border-top: 1px solid var(--line); animation: enter .3s var(--ease); }
.opt__body > :first-child { margin-top: var(--s4); }
.opt.is-unavailable .opt__title { color: var(--ink-2); }
.pill { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .03em; padding: 2px 8px; border-radius: 999px; background: var(--bg); color: var(--muted); margin-left: 6px; vertical-align: 2px; }
.pill--ok { background: var(--ok-50); color: var(--ok); }
.summary { background: var(--bg); border-radius: var(--radius-sm); padding: 12px 14px; margin: 0 0 var(--s4); }
.summary__row { display: flex; justify-content: space-between; gap: var(--s3); padding: 6px 0; font-size: 15px; }
.summary__row + .summary__row { border-top: 1px dashed var(--line); }
.summary__row span { color: var(--muted); }
.summary__row b { text-align: right; }
.summary__row--total b { font-size: 20px; }
.copyrow { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: 10px 0; border-bottom: 1px solid var(--line); }
.copyrow span { color: var(--muted); font-size: 14px; display: block; }
.copyrow b { font-size: 17px; word-break: break-all; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
input[type="file"] { width: 100%; max-width: 100%; min-width: 0; min-height: 44px; }
.small { font-size: 14px; color: var(--muted); }
.demo-note { font-size: 13px; font-weight: 700; color: #6a4300; background: #fff4dc; border-radius: 8px; padding: 6px 10px; margin: 0 0 var(--s3); }
.wa-preview { background: #eaf6ef; border-radius: 12px 12px 12px 2px; padding: 12px 14px; white-space: pre-line; font-size: 15px; margin: 0 0 var(--s4); color: #123; border: 1px solid #cfe8d9; }
.place { display: grid; gap: 6px; margin-bottom: var(--s3); }
.place__name { font-weight: 800; font-size: 18px; }
.place__line { color: var(--ink-2); }
.hours { list-style: none; padding: 0; margin: var(--s2) 0 var(--s3); font-size: 15px; }
.hours li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed var(--line); gap: var(--s3); }
.map { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--brand-50); aspect-ratio: 16 / 10; margin: var(--s3) 0; border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--brand); font-weight: 600; padding: var(--s4); }
.walkin { background: #fdeaf3; color: #7a0f4a; border-radius: var(--radius-sm); padding: 12px 14px; font-size: 15px; margin: var(--s3) 0; }
.btnrow { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.safe { margin: var(--s6) 0 0; padding: var(--s4); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.safe__title { font-weight: 750; margin: 0 0 var(--s3); }
.safe__btns { display: grid; gap: var(--s2); }

/* ---------- paso 4 ---------- */
.done { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lift); padding: var(--s6) var(--s5); text-align: center; }
.done__check { width: 72px; height: 72px; border-radius: 50%; background: var(--ok); margin: 0 auto var(--s3); display: grid; place-items: center; animation: pop .6s var(--ease); box-shadow: 0 0 0 10px var(--ok-50); }
.done__check svg { width: 40px; height: 40px; fill: #fff; }
.done__kicker { text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--ok); font-size: 14px; margin: var(--s2) 0 var(--s1); }
.done__title { font-size: 24px; margin: 0 0 var(--s4); outline: none; }
.ref { background: var(--brand-50); border-radius: var(--radius); padding: var(--s4); margin: 0 0 var(--s4); }
.ref__lbl { margin: 0; font-size: 14px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.ref__code { margin: 4px 0 8px; white-space: nowrap; font-size: clamp(21px, 7.2vw, 30px); font-weight: 800; letter-spacing: .06em; color: var(--brand-600); font-variant-numeric: tabular-nums; }
.ref__help { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); }
.kv { text-align: left; margin: 0 0 var(--s4); }
.kv div { display: grid; grid-template-columns: 90px 1fr; gap: var(--s3); padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 650; }
.done__next { text-align: left; }

/* ---------- reanudar / toast ---------- */
.resume { background: var(--surface); border: 1.5px solid var(--brand); border-radius: var(--radius); padding: var(--s4); margin-bottom: var(--s5); box-shadow: var(--shadow); }
.resume__title { font-weight: 750; margin: 0 0 4px; }
.resume__detail { margin: 0 0 var(--s3); color: var(--ink-2); font-size: 15px; }
.resume__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 15px; z-index: 40; max-width: calc(100% - 32px); box-shadow: var(--shadow-lift); animation: enter .3s var(--ease); }
.saving { display: flex; align-items: center; gap: 12px; justify-content: center; padding: var(--s4); color: var(--brand); font-weight: 700; }
.saving .spinner { border-color: var(--brand-50); border-top-color: var(--brand); width: 22px; height: 22px; }

/* ---------- utilidades (sin estilos en línea: la CSP los bloquea) ---------- */
.m0 { margin: 0; }
.mt16 { margin-top: 16px; }
.mt24 { margin-top: 24px; }
.mb12 { margin: 0 0 12px; }
.ok-txt { color: var(--ok); font-weight: 700; }

body.has-bar .toast { bottom: calc(var(--bar-h) + 16px + env(safe-area-inset-bottom)); }

/* ---------- responsive ---------- */
@media (min-width: 560px) {
  .grid2 { grid-template-columns: 1fr 1fr; }
  .safe__btns { grid-template-columns: repeat(3, 1fr); }
  .step__title { font-size: 30px; }
}
@media (min-width: 900px) {
  .wrap { padding-top: var(--s6); }
  .progress ol { margin-bottom: var(--s8); }
}
@media (max-width: 400px) {
  .resume__actions { grid-template-columns: 1fr; }
  .bar__btn { min-width: 0; padding: 0 16px; }
  .btnrow { grid-template-columns: 1fr; }
  .step__title { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- V2 auditada: alivio, descubrimiento y combinación ---------- */
body {
  background:
    radial-gradient(circle at 50% -160px, rgba(27,63,168,.10), transparent 340px),
    linear-gradient(180deg, #f8faff 0, #f3f5fa 420px, #f3f5fa 100%);
}
.top { box-shadow: 0 1px 10px rgba(17,26,46,.035); }
.help-link { border-color: #bcd8c9; background: #f6fbf8; }

.actwrap { display: grid; gap: 7px; }
.actinfo {
  width: max-content; max-width: 100%; margin: -2px 0 2px 12px; min-height: 36px;
  display: inline-flex; align-items: center; color: var(--brand); font-size: 14px; font-weight: 700;
  text-decoration: none; border-radius: 8px; padding: 3px 6px;
}
.actinfo:hover { text-decoration: underline; }

.calm-card {
  display: grid; grid-template-columns: 34px 1fr; gap: 11px; align-items: start;
  margin: -4px 0 var(--s5); padding: 13px 14px; border: 1px solid #bcd8c9; border-radius: var(--radius);
  background: linear-gradient(135deg, #f3fbf6 0%, #f8fcfa 100%); color: #173d2d;
  box-shadow: 0 4px 14px rgba(12,107,64,.05);
}
.calm-card__icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; font-weight: 900; }
.calm-card b { display: block; margin-bottom: 2px; }
.calm-card span:not(.calm-card__icon) { display: block; color: #365848; font-size: 14px; line-height: 1.45; }

.discover {
  position: relative; overflow: hidden; margin: 0 0 var(--s5); padding: 16px;
  border: 1px solid #cfd8ee; border-radius: 20px;
  background: linear-gradient(145deg, #f7f9ff 0%, #eef4ff 58%, #f3fbf6 100%);
  box-shadow: 0 8px 24px rgba(27,63,168,.07);
}
.discover::after {
  content: ""; position: absolute; width: 140px; height: 140px; right: -78px; top: -82px;
  border-radius: 50%; background: rgba(27,63,168,.06); pointer-events: none;
}
.discover__head { position: relative; z-index: 1; }
.discover__eyebrow {
  display: inline-flex; margin-bottom: 6px; padding: 3px 8px; border-radius: 999px;
  background: #fff; border: 1px solid #cfd8ee; color: var(--brand); font-size: 12px; line-height: 1.2;
  font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
}
.discover h3 { margin: 0 0 5px; font-size: 20px; line-height: 1.25; letter-spacing: -.01em; }
.discover__head p, .discover--inverse > p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.discover__grid { display: grid; gap: 10px; margin-top: 14px; }
.discover-card {
  position: relative; z-index: 1; display: grid; grid-template-columns: 64px 1fr; gap: 11px;
  padding: 11px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.96);
  box-shadow: 0 3px 12px rgba(17,26,46,.045); transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.discover-card.is-added { border-color: #8fc5a8; box-shadow: 0 0 0 3px rgba(12,107,64,.07); }
.discover-card img, .discover-card__icon { width: 64px; height: 64px; border-radius: 11px; object-fit: cover; background: var(--brand-50); }
.discover-card__icon { display: grid; place-items: center; color: var(--brand); }
.discover-card__icon svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.discover-card__body { min-width: 0; }
.discover-card h4 { margin: 0 0 2px; font-size: 16px; line-height: 1.25; }
.discover-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.discover-card__benefit { display: block; margin-top: 7px; color: var(--ok); font-size: 13px; line-height: 1.35; font-weight: 750; }
.discover-card__actions { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-top: 8px; }
.discover-card__actions .linkbtn { min-height: 44px; padding: 4px 0; font-size: 13px; }
.discover-card__actions .btn { min-height: 44px; }
.discover__foot, .discover__quiet { display: block; margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.discover--inverse .btn { margin-top: 12px; }
.pick__addons { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--ok-50); color: #315c48; font-size: 13px; line-height: 1.4; }

.summary__row--addon b { display: flex; flex-direction: column; gap: 2px; }
.summary__row--addon small { color: var(--ok); font-size: 12px; font-weight: 650; }

/* La tranquilidad institucional se lee mejor como lista que como nube de chips. */
.trust { display: grid; gap: 7px; }
.trust li { width: 100%; border-radius: 11px; padding: 7px 10px 7px 7px; }

@media (min-width: 560px) {
  .discover__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 400px) {
  .discover { padding: 14px; }
  .discover-card { grid-template-columns: 56px 1fr; }
  .discover-card img, .discover-card__icon { width: 56px; height: 56px; }
}


/* V2.3 · responsive real para tablet/notebook/desktop. Mobile original queda intacto. */
@media (min-width:700px){
  .wrap,.top__in,.bar__in{max-width:860px}
  .picker__list,.discover__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .picker__group{grid-column:1/-1}
  .step__title{font-size:clamp(30px,4vw,40px);line-height:1.08;letter-spacing:-.025em}
  .step__lead{font-size:clamp(17px,2vw,20px);line-height:1.5}
}
@media (min-width:980px){
  body{font-family:"Segoe UI Variable Text","Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,Roboto,Arial,sans-serif;text-rendering:optimizeLegibility}
  .top__in,.wrap,.bar__in{max-width:1180px}
  .wrap{padding-left:32px;padding-right:32px}
  .progress{max-width:900px;margin-left:auto;margin-right:auto}
  #step1 .picker__list{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px}
  #step2{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);column-gap:38px;align-items:start}
  #step2>.chosen,#step2>.step__title,#step2>.step__lead,#step2>form{grid-column:1}
  #step2>.discover{grid-column:2;grid-row:1 / span 8;position:sticky;top:92px;margin-top:0}
  #step2 .grid2{grid-template-columns:repeat(2,minmax(0,1fr))}
  #step3{display:grid;grid-template-columns:minmax(0,1fr) minmax(390px,.9fr);column-gap:42px;align-items:start}
  #step3>.saved,#step3>.step__title,#step3>.step__lead,#step3>.calm-card,#step3>.trust,#step3>.note,#step3>.safe{grid-column:1}
  #step3>.options{grid-column:2;grid-row:1 / span 9;position:sticky;top:92px;margin-top:0}
  #step4{max-width:780px;margin-left:auto;margin-right:auto}
  .bar{left:50%;right:auto;bottom:18px;width:min(720px,calc(100vw - 48px));transform:translateX(-50%);border-radius:18px;border:1px solid var(--line);box-shadow:0 16px 45px rgba(0,0,0,.18);overflow:hidden}
  .bar__in{max-width:none}
  .opt__head{min-height:72px}
  .btn{min-height:50px}
}
@media (min-width:1380px){.top__in,.wrap{max-width:1240px}}
