/* MSV Reservas · checkout, estados y cuestionario.
   Usa las variables del tema MSV Nutrition con valores de respaldo. */

.flow {
	--f-ink: var(--ink, #161819);
	--f-muted: #5f6064;
	--f-line: #d9d7d3;
	--f-card: #faf9f6;
	--f-panel: #ecebe7;
	--f-display: var(--f-display, "Archivo", Arial, sans-serif);
	--f-mono: var(--f-mono, "Space Mono", monospace);
	padding: clamp(18px, 2.4vw, 34px) 0 clamp(56px, 6vw, 96px);
}
body.is-flow { background: #f5f4f1; }
.flow-main { min-height: 70vh; }

/* Encabezado y pie del flujo (definidos en el tema) */
.flow-header { background: #f5f4f1; border-bottom: 1px solid #d9d7d3; }
.flow-header__inner { height: 98px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand--flow img { width: clamp(190px, 23vw, 362px); height: auto; }
.flow-header__help { font-size: clamp(16px, 1.4vw, 21px); }
.flow-footer { border-top: 1px solid #e0ded9; padding: 22px 0 calc(22px + env(safe-area-inset-bottom)); font-size: 14px; color: #6b6b6e; }
.flow-footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; }
.flow-footer ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.flow-footer a { color: inherit; }

/* Indicador de pasos */
.stepper { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0 auto clamp(26px, 3.6vw, 52px); padding: 0; list-style: none; }
.stepper--3 { max-width: 560px; }
.stepper--6 { max-width: 1400px; }
.stepper__item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.stepper__item:not(:last-child)::after { content: ""; position: absolute; top: 13px; left: calc(50% + 24px); right: calc(-50% + 24px); height: 1px; background: #bcbab6; }
.stepper__item.is-done:not(:last-child)::after { background: var(--f-ink); }
.stepper__dot { display: grid; place-items: center; width: 27px; height: 27px; }
.stepper__dot::before { content: ""; width: 15px; height: 15px; border-radius: 50%; background: #a3a4a7; }
.stepper__item.is-current .stepper__dot::before { width: 19px; height: 19px; background: var(--f-ink); }
.stepper__item.is-done .stepper__dot, .stepper__item.is-wait .stepper__dot { border-radius: 50%; background: var(--f-ink); color: #fff; }
.stepper__item.is-done .stepper__dot::before, .stepper__item.is-wait .stepper__dot::before { display: none; }
.stepper__item.is-wait .stepper__dot { background: transparent; color: var(--f-ink); }
.stepper__dot .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.stepper__item.is-wait .stepper__dot .icon { width: 27px; height: 27px; stroke-width: 1.6; }
.stepper__label { font-size: clamp(15px, 1.3vw, 19px); color: #8a8b8f; }
.stepper__item.is-current .stepper__label, .stepper__item.is-done .stepper__label, .stepper__item.is-wait .stepper__label { color: var(--f-ink); }
button.stepper__item { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }

/* Rejilla */
.flow__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr); gap: clamp(28px, 3vw, 44px); align-items: start; }
.flow__grid--quiz { grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr); }
.flow__aside { position: sticky; top: 24px; display: grid; gap: 22px; }

/* Tipografía del flujo */
.flow-label { font-family: var(--f-body, "Hanken Grotesk", sans-serif); font-weight: 500; font-size: 14px; letter-spacing: 0.3em; text-transform: uppercase; color: #3a3b3e; margin: 0 0 12px; }
.flow-label--group { margin: 28px 0 14px; padding: 0; }
.quiz-label { font-family: var(--f-mono); font-size: 15px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--f-ink); margin: 0 0 8px; }
.quiz-sub { font-size: clamp(16px, 1.4vw, 20px); color: #8a8b8f; margin: 0 0 10px; }
.flow-title { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; font-size: clamp(36px, 4vw, 62px); margin: 0 0 14px; color: var(--f-ink); outline: none; }
.flow-title--xl { font-size: clamp(42px, 4.6vw, 70px); line-height: 0.98; }
.flow-title--q { font-size: clamp(30px, 3.3vw, 50px); max-width: 17em; }
.flow-pre { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; font-size: clamp(28px, 3vw, 46px); margin: 0 0 22px; max-width: 18em; }
.flow-intro { font-size: clamp(18px, 1.65vw, 25px); line-height: 1.38; color: #2b2c2f; margin: 0 0 8px; }
.flow-hint { font-size: clamp(15px, 1.3vw, 19px); color: #7a7b7f; margin: 0 0 22px; }
.flow-note { font-size: 17px; margin: 12px 0 18px; }
.flow-alert { margin: 18px 0; padding: 16px 18px; border-radius: 8px; background: #fde8e6; color: #7a1d16; font-size: 16px; }
.muted { color: #8a8b8f; }
.flow [tabindex="-1"]:focus, .flow [tabindex="-1"]:focus-visible { outline: none; }

/* Botones */
.fbtn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 56px; padding: 0 26px; border-radius: 7px; border: 1px solid transparent; font: 600 18px/1.15 var(--f-body, "Hanken Grotesk", sans-serif); text-decoration: none; cursor: pointer; transition: background-color .18s, opacity .18s; }
.fbtn .icon { width: 22px; height: 22px; }
.fbtn--dark { background: #121314; color: #fff; }
.fbtn--dark:hover { background: #2b2e31; }
.fbtn--outline { background: transparent; border-color: var(--f-ink); color: var(--f-ink); }
.fbtn--outline:hover { background: #ecebe7; }
.fbtn--sm { min-height: 42px; padding: 0 22px; font-weight: 500; font-size: 16px; }
.fbtn--lg { min-height: 72px; font-size: clamp(18px, 1.6vw, 24px); }
.fbtn--block { width: 100%; }
.fbtn[disabled], .fbtn[aria-disabled="true"] { background: #a8a9ac; color: #eeeeee; cursor: not-allowed; }
.fbtn.is-loading { opacity: .7; pointer-events: none; }
.link-back { display: inline-flex; align-items: center; gap: 14px; margin-top: 28px; padding: 6px 0; background: none; border: 0; font-size: clamp(17px, 1.5vw, 22px); color: var(--f-ink); cursor: pointer; }
.link-back span { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.link-back .icon { width: 26px; height: 26px; }
.link-under { display: inline-block; background: none; border: 0; padding: 4px 0; font-size: clamp(16px, 1.4vw, 20px); color: var(--f-ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; cursor: pointer; }

/* Tarjetas de elección (radio) */
.choice-group { border: 0; margin: 0; padding: 0; display: grid; gap: 16px; }
.choice-group + .choice-group { margin-top: 6px; }
.choice { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0 clamp(18px, 2.4vw, 40px); padding: clamp(20px, 2vw, 28px) clamp(20px, 2.6vw, 38px); border: 1px solid var(--f-line); border-radius: 9px; background: var(--f-card); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.choice:hover { border-color: #9fa0a3; }
.choice input[type="radio"], .choice input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__radio { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid #57595c; display: grid; place-items: center; background: #fff; flex: none; }
.choice__radio::after { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--f-ink); transform: scale(0); transition: transform .15s; }
.choice:has(input:checked), .choice.is-checked { border: 1.5px solid var(--f-ink); background: #fbfaf8; }
.choice:has(input:checked) .choice__radio, .choice.is-checked .choice__radio { border: 2px solid var(--f-ink); }
.choice:has(input:checked) .choice__radio::after, .choice.is-checked .choice__radio::after { transform: scale(1); }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus, #2f6f8f); outline-offset: 3px; }
.choice__body { display: grid; gap: 4px; }
.choice__title { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(19px, 1.75vw, 27px); line-height: 1.15; }
.choice__sub { font-size: clamp(16px, 1.45vw, 21px); color: #66676b; }
.choice__note { font-size: clamp(14px, 1.2vw, 18px); color: #66676b; margin-top: 4px; }
.choice__price { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(24px, 2.2vw, 33px); }
.choice--method { grid-template-columns: auto auto minmax(0, 1fr); }
.choice__icon .icon { width: 58px; height: 46px; stroke-width: 1.4; }
.choice.is-disabled { opacity: .55; cursor: not-allowed; }
.choice--expand { display: block; padding: 0; cursor: default; }
.choice__head { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 0 clamp(18px, 2.4vw, 40px); padding: clamp(20px, 2vw, 28px) clamp(20px, 2.6vw, 38px); cursor: pointer; }
.choice--expand:has(input:checked) { border: 1.5px solid var(--f-ink); }

.transfer { margin: 0 clamp(20px, 2.6vw, 38px) clamp(20px, 2.6vw, 30px); padding-top: 20px; border-top: 1px solid var(--f-line); }
.transfer .flow-label { font-family: var(--f-mono); font-weight: 400; font-size: 14px; letter-spacing: .18em; color: #555; }
.bank { margin: 0 0 22px; }
.bank div { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--f-line); font-size: clamp(16px, 1.4vw, 20px); }
.bank dt { color: var(--f-ink); }
.bank dd { margin: 0; }
.transfer__label { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(17px, 1.5vw, 22px); margin: 0 0 12px; }
.dropzone { display: grid; justify-items: center; gap: 10px; padding: 22px; border: 1.5px dashed #b7b5b1; border-radius: 8px; text-align: center; font-size: 17px; color: #555; transition: border-color .15s, background-color .15s; }
.dropzone.is-over { border-color: var(--f-ink); background: #f1f0ed; }
.dropzone.has-file { border-style: solid; border-color: var(--f-ink); color: var(--f-ink); }
.dropzone > .icon { width: 30px; height: 30px; }
.dropzone p { margin: 0; }
.dropzone .field-help { margin: 0; }
.dropzone label { cursor: pointer; }

/* Campos */
.field { margin-bottom: 24px; }
.field label, .field .field__label { display: block; font-size: clamp(17px, 1.55vw, 23px); margin-bottom: 12px; color: var(--f-ink); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field textarea, .phone {
	width: 100%; min-height: 70px; padding: 0 26px; border: 1px solid #c4c2be; border-radius: 7px; background: #faf9f7; font-size: clamp(17px, 1.5vw, 22px); color: var(--f-ink); transition: border-color .15s;
}
.field textarea { min-height: 150px; padding: 18px 22px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #8f9093; }
.field input:focus, .field textarea:focus, .phone:focus-within { outline: none; border-color: var(--f-ink); box-shadow: 0 0 0 3px rgba(47,111,143,.25); }
.field.has-error input, .field.has-error textarea, .field.has-error .phone { border-color: #b3261e; }
.field--sm input { min-height: 50px !important; padding: 0 14px !important; font-size: 16px !important; }
.field--sm label { font-size: 15px !important; margin-bottom: 6px !important; }
.phone { display: flex; align-items: stretch; padding: 0; }
.phone__prefix { position: relative; display: flex; align-items: center; border-right: 1px solid #c4c2be; margin: 14px 0; }
.phone__prefix select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; padding: 0 52px 0 26px; height: 100%; font-size: inherit; color: inherit; cursor: pointer; }
.phone__prefix select:focus { outline: none; }
.phone__prefix .icon { position: absolute; right: 18px; width: 20px; height: 20px; pointer-events: none; }
.phone input { border: 0 !important; background: transparent !important; box-shadow: none !important; min-height: 68px !important; flex: 1; }
.field-help { font-size: clamp(14px, 1.25vw, 18px); color: #7a7b7f; margin: 10px 0 0; }
.field-error { font-size: 15px; color: #b3261e; margin: 8px 0 0; min-height: 0; }
.field-error:empty { display: none; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Resumen */
.summary { background: var(--f-panel); border-radius: 14px; padding: clamp(26px, 2.8vw, 42px); }
.summary__title { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.045em; font-size: clamp(26px, 2.5vw, 38px); margin: 0 0 clamp(18px, 2vw, 32px); }
.summary__name { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(20px, 1.85vw, 28px); margin: 0 0 6px; }
.summary__detail { font-size: clamp(16px, 1.45vw, 22px); color: #6b6c70; margin: 0 0 6px; }
.summary__muted { font-size: clamp(15px, 1.3vw, 19px); color: #6b6c70; margin: 0; }
.summary__row { display: grid; gap: 6px; padding: 22px 0; border-top: 1px solid #cfcdc8; margin-top: 18px; font-size: clamp(16px, 1.5vw, 22px); }
.summary__total { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid #cfcdc8; margin: 20px 0 26px; padding-top: 26px; }
.summary__row + .summary__total { margin-top: 0; }
.summary__total span { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(20px, 1.85vw, 27px); }
.summary__total strong { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.04em; font-size: clamp(30px, 2.8vw, 42px); }
.summary .fbtn--lg { min-height: 80px; }
.summary__note { font-size: clamp(14px, 1.25vw, 18px); color: #6b6c70; margin: 16px 0 0; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 0; margin: 14px 0 0; font-size: clamp(14px, 1.3vw, 19px); }
.legal-links a { color: #4c4d51; text-underline-offset: 5px; }
.legal-links a + a { border-left: 1px solid #b8b6b2; margin-left: 28px; padding-left: 28px; }
.summary__state { margin: 0 -14px -14px; padding: 22px 26px; background: #e0dfdb; border-radius: 10px; }
.summary__state .flow-label { font-family: var(--f-mono); font-weight: 400; letter-spacing: .2em; color: #444; margin-bottom: 6px; }
.summary__state-value { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.04em; font-size: clamp(22px, 2.2vw, 34px); margin: 0; }
.after-box { border: 1px solid #d6d4cf; border-radius: 10px; padding: clamp(22px, 2.4vw, 34px) clamp(22px, 2.6vw, 40px); background: transparent; }
.after-box p { margin: 0; font-size: clamp(17px, 1.6vw, 23px); line-height: 1.45; }
.after-box .flow-label { font-size: 14px; margin-bottom: 12px; }
.after-box__small { margin-top: 12px !important; font-size: clamp(15px, 1.35vw, 19px) !important; color: #6b6c70; }

/* Estados */
.state-icon { display: inline-block; margin-bottom: 18px; }
.state-icon .icon { width: clamp(64px, 6vw, 92px); height: clamp(64px, 6vw, 92px); stroke-width: 1.4; }
.next-title { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.04em; font-size: clamp(24px, 2.2vw, 34px); margin: clamp(26px, 3vw, 42px) 0 10px; }
.next-list { list-style: none; margin: 0 0 30px; padding: 0; }
.next-list li { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 0 clamp(18px, 3vw, 66px); align-items: center; padding: 18px 0 18px clamp(0px, 1.6vw, 24px); border-bottom: 1px solid var(--f-line); }
.next-list li:last-child { border-bottom: 0; }
.next-list .icon { width: 56px; height: 56px; stroke-width: 1.4; }
.next-list strong { display: block; font-family: var(--f-display); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(18px, 1.65vw, 25px); }
.next-list span { display: block; font-size: clamp(16px, 1.5vw, 22px); color: #6b6c70; margin-top: 4px; }
.state-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 10px; }
.flow-message { max-width: 860px; padding-top: clamp(20px, 5vw, 70px); }
.only-mobile-block { display: none; }

/* Cuestionario */
.quiz-progress { margin-bottom: clamp(26px, 3.4vw, 50px); }
.quiz-progress__compact { display: none; }
.quiz-screen { min-height: 300px; }
.q-options { display: grid; gap: 16px; margin: 0 0 26px; padding: 0; border: 0; }
.q-options--row { grid-template-columns: 1fr 1fr; }
.q-options--chips { display: flex; flex-wrap: wrap; gap: 14px; }
.q-opt { position: relative; display: flex; align-items: center; gap: 26px; min-height: 86px; padding: 14px 30px; border: 1px solid var(--f-line); border-radius: 8px; background: var(--f-card); font-size: clamp(17px, 1.6vw, 24px); line-height: 1.3; cursor: pointer; transition: border-color .15s, background-color .15s; }
.q-options--chips .q-opt { min-height: 74px; padding: 12px 26px; gap: 22px; flex: 1 1 auto; }
.q-opt:hover { border-color: #9fa0a3; }
.q-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.q-opt__mark { flex: none; width: 32px; height: 32px; border: 1.5px solid #4f5154; background: #fff; display: grid; place-items: center; }
.q-opt--radio .q-opt__mark { border-radius: 50%; }
.q-opt--check .q-opt__mark { border-radius: 5px; }
.q-opt--radio .q-opt__mark::after { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--f-ink); transform: scale(0); transition: transform .15s; }
.q-opt--check .q-opt__mark .icon { width: 22px; height: 22px; stroke-width: 2.4; color: #fff; opacity: 0; }
.q-opt:has(input:checked) { border: 1.5px solid var(--f-ink); background: #ecebe8; }
.q-opt--radio:has(input:checked) .q-opt__mark { border-width: 2px; }
.q-opt--radio:has(input:checked) .q-opt__mark::after { transform: scale(1); }
.q-opt--check:has(input:checked) .q-opt__mark { background: var(--f-ink); border-color: var(--f-ink); }
.q-opt--check:has(input:checked) .q-opt__mark .icon { opacity: 1; }
.q-opt:has(input:focus-visible) { outline: 3px solid var(--focus, #2f6f8f); outline-offset: 3px; }
.q-sep { flex-basis: 100%; margin: 4px 0 -2px; font-size: 15px; color: #7a7b7f; }
.q-detail { margin: -6px 0 26px; }
/* Pantallas con varias preguntas: separación clara y controles más compactos */
.q-item + .q-item { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--f-line); }
.q-item:not(.q-item--solo):first-of-type { margin-top: 18px; }
.q-item__title { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.025em; font-size: clamp(20px, 1.9vw, 27px); line-height: 1.2; margin: 0 0 6px; }
.q-req { color: #6b6c70; font-weight: 400; }
.q-item__pre { font-size: clamp(15px, 1.3vw, 18px); color: #3a3b3e; margin: 0 0 4px; }
.q-item__hint { margin-bottom: 14px; }
.q-item:not(.q-item--solo) .q-options { margin-bottom: 18px; gap: 12px; }
.q-item:not(.q-item--solo) .q-opt { min-height: 66px; padding: 12px 24px; font-size: clamp(16px, 1.45vw, 21px); }
.q-item:not(.q-item--solo) .q-options--chips .q-opt { min-height: 58px; padding: 10px 20px; gap: 16px; flex: 0 1 auto; }
.q-item:not(.q-item--solo) .q-opt__mark { width: 28px; height: 28px; }
.q-item:not(.q-item--solo) .q-options--row { grid-template-columns: repeat(2, minmax(0, 220px)); }
.q-item:not(.q-item--solo) .q-detail { margin-top: 0; }
.q-item .field-error { margin-top: -6px; }
.q-detail label { display: block; font-size: clamp(17px, 1.55vw, 23px); margin-bottom: 12px; }
.q-detail .field-help { margin: -4px 0 12px; }
.q-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.q-unit { display: flex; align-items: stretch; border: 1px solid #c4c2be; border-radius: 7px; background: #faf9f7; min-height: 78px; }
.q-unit:focus-within { border-color: var(--f-ink); box-shadow: 0 0 0 3px rgba(47,111,143,.25); }
.q-unit input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; min-height: 76px !important; padding: 0 0 0 26px !important; box-shadow: none !important; -moz-appearance: textfield; }
.q-unit input::-webkit-outer-spin-button, .q-unit input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.q-unit span { display: flex; align-items: center; padding: 0 22px; margin: 14px 0; border-left: 1px solid #c4c2be; color: #7a7b7f; font-size: clamp(16px, 1.5vw, 22px); }
.has-error .q-unit { border-color: #b3261e; }
.q-imc { margin: 0 0 26px; padding: 22px 26px 20px; border-radius: 8px; background: #e8e7e3; }
.q-imc__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.q-imc strong { display: block; font-family: var(--f-body, sans-serif); font-weight: 700; font-size: 17px; letter-spacing: .06em; margin-bottom: 4px; }
.q-imc__what { display: block; font-size: clamp(14px, 1.2vw, 17px); color: #6b6c70; max-width: 30em; }
.q-imc p { margin: 0; }
.q-imc__empty { margin-top: 12px !important; font-size: clamp(16px, 1.5vw, 20px); color: #6b6c70; }
.q-imc__result { display: flex; align-items: center; gap: 12px; flex: none; }
.q-imc__value { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(28px, 2.6vw, 38px); line-height: 1; color: var(--f-ink); }
.q-imc__tag { padding: 6px 12px; border-radius: 999px; background: var(--f-ink); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; }
.q-imc__scale { margin: 22px 0 6px; opacity: .45; transition: opacity .3s ease; }
.q-imc.has-value .q-imc__scale { opacity: 1; }
.q-imc__bar { position: relative; height: 10px; }
.q-imc__bar > span { position: absolute; top: 0; bottom: 0; border-radius: 3px; box-shadow: inset -3px 0 0 #e8e7e3; transition: background-color .35s ease; }
.q-imc__bar > span:nth-child(1) { background: #d6d4cf; }
.q-imc__bar > span:nth-child(2) { background: #c3c1bc; }
.q-imc__bar > span:nth-child(3) { background: #a9a7a2; }
.q-imc__bar > span:nth-child(4) { background: #8f8d89; }
.q-imc__bar > span.is-active { background: var(--f-ink); }
.q-imc__marker { position: absolute; top: 50%; left: 0; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: #fff; border: 3px solid var(--f-ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); opacity: 0; transition: left .6s cubic-bezier(.2, .8, .2, 1), opacity .3s ease; }
.q-imc.has-value .q-imc__marker { opacity: 1; }
.q-imc__ticks { position: relative; height: 20px; margin-top: 8px; font-family: var(--f-mono); font-size: 12px; color: #6b6c70; }
.q-imc__ticks span { position: absolute; transform: translateX(-50%); }
.q-imc__note { margin-top: 8px !important; font-size: clamp(13px, 1.1vw, 15px); color: #6b6c70; line-height: 1.45; }
@media (max-width: 560px) {
	.q-imc { padding: 18px 18px 16px; }
	.q-imc__head { flex-direction: column; gap: 12px; }
}
.q-nav { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px clamp(24px, 6vw, 110px); margin-top: 6px; }
.q-nav--first { grid-template-columns: minmax(0, 1fr); }
.q-nav .fbtn--dark { min-height: 64px; font-size: clamp(18px, 1.6vw, 24px); font-weight: 500; }
.q-save { text-align: center; margin-top: 16px; }
.q-nav .link-back { margin: 0; }
.q-error-box { margin: 0 0 20px; padding: 16px 20px; border-radius: 8px; background: #fde8e6; color: #7a1d16; font-size: 16px; }
.q-error-box ul { margin: 8px 0 0; padding-left: 20px; }
.save-status { min-height: 24px; margin: 14px 0 0; text-align: center; font-size: 15px; color: #4a4b4f; }
.save-status.is-error { color: #b3261e; }

.review { display: grid; gap: 10px; margin: 0 0 30px; }
.review details { border: 1px solid var(--f-line); border-radius: 8px; background: #fbfaf8; }
.review summary { display: flex; align-items: center; gap: 20px; min-height: 62px; padding: 0 22px; cursor: pointer; list-style: none; font-family: var(--f-display); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(17px, 1.5vw, 22px); }
.review summary::-webkit-details-marker { display: none; }
.review summary .review__edit { margin-left: auto; font-family: var(--f-body, sans-serif); font-weight: 400; letter-spacing: 0; font-size: 16px; text-decoration: underline; text-underline-offset: 5px; }
.review summary .icon { width: 22px; height: 22px; transition: transform .2s; }
.review details[open] summary .icon { transform: rotate(180deg); }
.review__body { padding: 4px 22px 20px; }
.review__body dl { margin: 0 0 14px; }
.review__body div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid #e6e4e0; font-size: 16px; }
.review__body dt { color: #6b6c70; }
.review__body dd { margin: 0; white-space: pre-line; }
.review__body .is-empty { color: #a1a2a5; font-style: italic; }
.review__body .fbtn { min-height: 44px; }
.review-title { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.04em; font-size: clamp(22px, 2.1vw, 32px); margin: 26px 0 14px; }
.consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: start; margin: 0 0 26px; cursor: pointer; font-size: clamp(16px, 1.5vw, 22px); line-height: 1.4; }
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent .q-opt__mark { border-radius: 5px; margin-top: 2px; }
.consent:has(input:checked) .q-opt__mark { background: var(--f-ink); border-color: var(--f-ink); }
.consent:has(input:checked) .q-opt__mark .icon { opacity: 1; }
.consent .q-opt__mark .icon { width: 22px; height: 22px; stroke-width: 2.4; color: #fff; opacity: 0; }
.consent:has(input:focus-visible) .q-opt__mark { outline: 3px solid var(--focus, #2f6f8f); outline-offset: 3px; }
.send-hint { text-align: center; font-size: 15px; color: #6b6c70; margin: 10px 0 0; }

.svc-box { border: 1px solid #d6d4cf; border-radius: 10px; padding: clamp(24px, 2.6vw, 38px); background: #f2f1ee; }
.svc-box .flow-label { font-family: var(--f-mono); font-weight: 400; letter-spacing: .22em; font-size: 14px; color: #222; }
.svc-box__title { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.045em; font-size: clamp(30px, 3vw, 46px); margin: 6px 0 10px; }
.svc-box__line { font-size: clamp(17px, 1.6vw, 23px); margin: 0 0 6px; color: #333; }
.svc-box__checks { list-style: none; margin: 22px 0; padding: 22px 0; border-block: 1px solid #cfcdc8; display: grid; gap: 18px; }
.svc-box__checks li { display: flex; align-items: center; gap: 24px; font-size: clamp(17px, 1.6vw, 23px); }
.svc-box__checks .icon { width: 38px; height: 38px; color: var(--f-ink); }
.svc-box__text { font-size: clamp(16px, 1.45vw, 21px); color: #333; margin: 0 0 14px; line-height: 1.45; }
.svc-box__state { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.045em; font-size: clamp(26px, 2.6vw, 40px); margin: 0; }
.contact-panel { margin-top: 14px; }
.svc-mobile { display: none; }
.done-label { display: flex; align-items: center; gap: 22px; font-family: var(--f-mono); font-size: 15px; letter-spacing: .22em; text-transform: uppercase; margin: 0 0 18px; }
.done-label .icon { width: 50px; height: 50px; }
.next-card { margin-top: 30px; border: 1px solid #d6d4cf; border-radius: 10px; padding: clamp(24px, 3vw, 44px); background: #f6f5f2; }
.next-card h2 { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.05em; font-size: clamp(26px, 2.6vw, 40px); margin: 0 0 18px; }
.next-card__lead { font-size: clamp(18px, 1.8vw, 27px); margin: 0 0 8px; }
.next-card__small { font-size: clamp(16px, 1.45vw, 21px); color: #6b6c70; margin: 0 0 26px; }
.next-card .fbtn { min-height: 62px; font-weight: 500; margin-bottom: 18px; }

.mobile-action, .mobile-summary { display: none; }

/* Responsive */
@media (max-width: 900px) {
	.flow-header__inner { height: auto; padding-block: 16px 14px; flex-direction: column; align-items: center; gap: 10px; }
	.flow-header__help { font-size: 15px; }
	.flow__grid, .flow__grid--quiz { grid-template-columns: 1fr; }
	.flow__aside { position: static; }
	.flow[data-checkout] .summary, .flow[data-checkout] .flow__aside .after-box { display: none; }
	.flow[data-checkout] .flow__aside .after-box.is-mobile-visible { display: block; }
	.mobile-action { display: block; margin-top: 26px; }
	.mobile-action__note { font-size: 15px; color: #6b6c70; margin: 12px 0 0; }
	.mobile-summary { display: block; margin: 18px 0 22px; }
	.flow[data-checkout] .mobile-summary .summary { display: block; padding: 22px; border: 1px solid #d6d4cf; background: #faf9f6; }
	.mobile-summary .summary__title { font-size: 24px; margin-bottom: 16px; }
	.mobile-summary .summary__total { margin: 16px 0 10px; padding-top: 16px; }
	.only-mobile-block { display: block; margin: 22px 0 8px; }
	.only-desktop-block { display: none; }
	.flow-title--xl { font-size: clamp(40px, 10vw, 56px); }
	.stepper__label { font-size: 15px; }
	.legal-links { flex-direction: column; gap: 10px; }
	.legal-links a + a { border: 0; margin: 0; padding: 0; }

	/* Cuestionario móvil */
	.flow--quiz .stepper--6 { display: none; }
	.quiz-progress__compact { display: block; }
	.quiz-progress__compact .qp-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
	.quiz-progress__compact .quiz-label { margin: 0; font-size: 13px; }
	.quiz-progress__compact .qp-dots { display: flex; align-items: center; }
	.quiz-progress__compact .qp-dots span { width: 14px; height: 14px; border-radius: 50%; background: #b0b1b4; flex: none; }
	.quiz-progress__compact .qp-dots span.is-on { background: var(--f-ink); width: 16px; height: 16px; }
	.quiz-progress__compact .qp-dots i { flex: 1; height: 2px; background: #c9c8c4; }
	.quiz-progress__compact .qp-dots i.is-on { background: var(--f-ink); }
	.quiz-progress .stepper--6.is-expanded { display: grid; grid-auto-flow: row; grid-auto-columns: auto; margin-top: 16px; gap: 8px; }
	.quiz-progress .stepper--6.is-expanded .stepper__item { flex-direction: row; text-align: left; }
	.quiz-progress .stepper--6.is-expanded .stepper__item::after { display: none; }
	.flow--quiz .flow__aside { display: none; }
	.quiz-screen > .quiz-label { display: none; }
	.quiz-screen > .quiz-sub { font-family: var(--f-mono); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--f-ink); }
	.svc-mobile { display: block; margin: 0 0 22px; border: 1px solid #d6d4cf; border-radius: 8px; background: #faf9f6; }
	.svc-mobile summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: 0 18px; list-style: none; cursor: pointer; font-size: 17px; }
	.svc-mobile summary::-webkit-details-marker { display: none; }
	.svc-mobile summary .icon { width: 22px; height: 22px; }
	.svc-mobile__body .svc-box { border: 0; border-top: 1px solid #d6d4cf; border-radius: 0 0 8px 8px; }
	.q-row { grid-template-columns: 1fr; gap: 0; }
	.q-row .field { margin-bottom: 18px; }
	.q-nav { grid-template-columns: 1fr; }
	.q-nav .link-back { order: 2; justify-self: start; }
	.q-options--chips .q-opt { flex: 1 1 100%; min-height: 64px; }
	.q-opt { min-height: 66px; padding: 12px 20px; gap: 18px; }
	.q-opt__mark { width: 28px; height: 28px; }
	.next-list li { grid-template-columns: 52px minmax(0, 1fr); gap: 0 18px; padding-left: 0; }
	.next-list .icon { width: 42px; height: 42px; }
	.done-label .icon { width: 40px; height: 40px; }
	.review__body div { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 560px) {
	.q-item:not(.q-item--solo) .q-options--chips { display: grid; grid-template-columns: 1fr 1fr; }
	.q-item:not(.q-item--solo) .q-options--chips .q-opt { padding: 10px 14px; gap: 12px; }
	.q-item:not(.q-item--solo) .q-options--chips .q-sep { grid-column: 1 / -1; }
	/* Listas de selección múltiple: opciones cortas comparten fila */
	.q-item:not(.q-item--solo) .q-options--chips:has(.q-opt--check) { display: flex; flex-wrap: wrap; gap: 8px; }
	.q-item:not(.q-item--solo) .q-options--chips:has(.q-opt--check) .q-opt { flex: 0 1 auto; min-height: 48px; padding: 8px 14px; gap: 10px; font-size: 15px; }
	.q-item:not(.q-item--solo) .q-options--chips:has(.q-opt--check) .q-opt__mark { width: 22px; height: 22px; }
	.q-item:not(.q-item--solo) .q-options--chips:has(.q-opt--check) .q-opt__mark .icon { width: 16px; height: 16px; }
	.choice { grid-template-columns: auto minmax(0, 1fr); padding: 18px; gap: 0 16px; }
	.choice__price { grid-column: 2; margin-top: 8px; font-size: 22px; }
	.choice__radio { width: 28px; height: 28px; }
	.choice__radio::after { width: 14px; height: 14px; }
	.choice--method, .choice__head { grid-template-columns: auto auto minmax(0, 1fr); gap: 0 14px; padding: 18px; }
	.choice__icon .icon { width: 38px; height: 32px; }
	.choice__title { font-size: 18px; }
	.choice__sub { font-size: 15px; }
	.transfer { margin: 0 18px 18px; }
	.bank div { grid-template-columns: 1fr; gap: 2px; }
	.field input[type="text"], .field input[type="email"], .field input[type="tel"], .phone { min-height: 58px; padding-inline: 18px; font-size: 17px; }
	.phone__prefix select { padding: 0 40px 0 18px; }
	.phone__prefix .icon { right: 12px; }
	.phone input { min-height: 56px !important; padding-left: 14px !important; }
	.q-unit { min-height: 60px; }
	.q-unit input { min-height: 58px !important; padding-left: 18px !important; }
	.q-options--row { grid-template-columns: 1fr 1fr; gap: 12px; }
	.q-options--row .q-opt { padding: 12px 16px; }
	.fbtn--lg { min-height: 62px; }
	.summary__state { margin: 0; }
}

/* Movimiento del flujo: entradas suaves al cambiar de paso o de pregunta.
   Se desactiva con «movimiento reducido». */
@media (prefers-reduced-motion: no-preference) {
	.flow-step:not([hidden]) > *, .quiz-screen > *, .flow-message > *,
	.flow__main > .state-icon, .flow__main > .flow-label, .flow__main > .flow-title, .flow__main > .flow-intro, .flow__main > .next-title, .flow__main > .next-list, .flow__main > .state-actions, .flow__main > .next-card, .flow__main > .done-label {
		animation: flow-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
	}
	.flow-step:not([hidden]) > :nth-child(2), .quiz-screen > :nth-child(2), .flow__main > :nth-child(2), .flow-message > :nth-child(2) { animation-delay: 0.04s; }
	.flow-step:not([hidden]) > :nth-child(3), .quiz-screen > :nth-child(3), .flow__main > :nth-child(3), .flow-message > :nth-child(3) { animation-delay: 0.08s; }
	.flow-step:not([hidden]) > :nth-child(4), .quiz-screen > :nth-child(4), .flow__main > :nth-child(4), .flow-message > :nth-child(4) { animation-delay: 0.12s; }
	.flow-step:not([hidden]) > :nth-child(5), .quiz-screen > :nth-child(5), .flow__main > :nth-child(5) { animation-delay: 0.16s; }
	.flow-step:not([hidden]) > :nth-child(6), .quiz-screen > :nth-child(6), .flow__main > :nth-child(6) { animation-delay: 0.2s; }
	.flow-step:not([hidden]) > :nth-child(n+7), .quiz-screen > :nth-child(n+7), .flow__main > :nth-child(n+7) { animation-delay: 0.24s; }
	.flow__aside > * { animation: flow-in 0.7s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
	.stepper__dot { transition: background-color 0.35s ease, color 0.35s ease, transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
	.stepper__item.is-current .stepper__dot { animation: flow-pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); }
	.stepper__item:not(:last-child)::after { transition: background-color 0.5s ease; }
	.q-detail:not([hidden]), .transfer:not([hidden]) { animation: flow-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
	.q-opt, .choice, .fbtn { transition: border-color 0.2s, background-color 0.2s, transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s; }
	.q-opt:active, .choice:active { transform: scale(0.99); }
	.q-opt--check:has(input:checked) .q-opt__mark .icon { animation: flow-check 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
	.state-icon .icon, .done-label .icon { stroke-dasharray: 80; stroke-dashoffset: 80; animation: flow-draw 1.1s 0.2s cubic-bezier(0.6, 0, 0.2, 1) forwards; }
	.dropzone.has-file > .icon { animation: flow-pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); }
}
@keyframes flow-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes flow-pop { 0% { transform: scale(0.6); } 100% { transform: scale(1); } }
@keyframes flow-check { from { transform: scale(0.3); opacity: 0; } }
@keyframes flow-draw { to { stroke-dashoffset: 0; } }
