/* =============================================================================
 * Tasador Cantabria — UI v8 (Apple-minimal severo)
 * Tipografía protagonista (Inter / Inter Tight), sin foto, mucho aire.
 * ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: var(--text-base); line-height: 1.5;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
  font-feature-settings: "cv11" 1, "ss03" 1;
}
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; color: var(--ink); }
p { margin: 0; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.tnum { font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum" 1, "lnum" 1; }
.muted-tag { font-weight: 500; color: var(--muted); font-size: 0.92em; }

/* ============================ APP SHELL ============================ */
.app { width: 100%; max-width: var(--app-w); margin-inline: auto; min-height: 100dvh; display: flex; flex-direction: column; padding-inline: clamp(1.25rem, 5vw, 1.5rem); overflow-x: clip; }

/* ============================ BOTONES ============================ */
.iconbtn { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border: 0; background: var(--surface-2); border-radius: 980px; color: var(--ink); cursor: pointer; transition: transform var(--dur-fast) var(--ease-spring), background var(--dur-fast); flex: none; }
.iconbtn:hover { background: var(--surface-3); }
.iconbtn:active { transform: scale(0.92); }

.btn { min-height: 52px; padding: 0 1.4rem; font: inherit; font-size: var(--text-md); font-weight: 600; border: 0; border-radius: 980px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; transition: transform var(--dur-fast) var(--ease-spring), background var(--dur-fast), color var(--dur-fast); letter-spacing: -0.01em; white-space: nowrap; }
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: var(--ink-2); }
.btn--secondary { background: var(--surface-2); color: var(--ink); }
.btn--secondary:hover { background: var(--surface-3); }
.btn--ghost { background: transparent; color: var(--ink); padding: 0 1rem; }
.btn--ghost:hover { background: var(--surface-2); }
.btn--lg { width: 100%; min-height: 58px; font-size: var(--text-md); font-weight: 600; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ============================ TOPBAR (universal) ============================ */
.topbar {
  position: sticky; top: 0; z-index: var(--z-bar);
  display: grid; grid-template-columns: 2.5rem 1fr 2.5rem; align-items: center; gap: var(--space-2xs);
  padding-block: var(--space-sm);
  background: var(--glass); backdrop-filter: saturate(1.6) blur(20px); -webkit-backdrop-filter: saturate(1.6) blur(20px);
  border-bottom: 1px solid var(--line-2);
  margin-inline: calc(-1 * clamp(1.25rem, 5vw, 1.5rem));
  padding-inline: clamp(1.25rem, 5vw, 1.5rem);
}
.topbar__title { font-size: var(--text-sm); font-weight: 600; letter-spacing: -0.01em; color: var(--ink); text-align: center; }
.topbar__spacer { display: block; width: 2.5rem; height: 2.5rem; }

/* ============================ LANDING ============================ */
.landing { display: flex; flex-direction: column; min-height: 100dvh; gap: 0; padding-bottom: var(--space-xl); }

/* HERO TIPOGRÁFICO (sin foto) */
.hero { padding-block: var(--space-md) var(--space-lg); text-align: center; }
.hero__eyebrow { display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 0.4rem 0.85rem; border-radius: 980px; background: var(--surface-2); }
.hero__h1 { font-family: var(--font-display); font-size: var(--text-hero); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; color: var(--ink); margin-top: var(--space-sm); }
.hero__figure { font-family: var(--font-display); font-size: var(--text-figure); font-weight: 800; letter-spacing: -0.055em; line-height: 0.92; color: var(--ink); margin-top: var(--space-md); white-space: nowrap; }
.hero__eur { color: var(--muted); font-weight: 600; }
.hero__range { font-size: var(--text-base); color: var(--muted); margin-top: var(--space-sm); }
.hero__range b { color: var(--ink); font-weight: 600; }
.hero__caption { font-size: var(--text-sm); color: var(--faint); margin-top: var(--space-sm); }

/* INPUTS RÁPIDOS landing */
.quick { display: flex; flex-direction: column; gap: var(--space-md); padding-block: var(--space-lg); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.quick__field { display: flex; flex-direction: column; gap: 0.5rem; }
.quick__label { font-size: var(--text-sm); font-weight: 500; color: var(--ink-2); letter-spacing: -0.005em; }
.quick__label b { color: var(--ink); font-weight: 700; }
.quick__hint { font-size: var(--text-xs); color: var(--muted); text-align: center; margin-top: var(--space-2xs); }

/* BLOQUES informativos (mercado, factores, FAQ) */
.block { padding-block: var(--space-xl) var(--space-md); }
.block__eyebrow { display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.block__h2 { font-family: var(--font-display); font-size: clamp(1.75rem, 5vw, 2.4rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; color: var(--ink); margin-top: var(--space-2xs); }
.block__h2 .num-acc { color: var(--accent); font-weight: 800; }

.metric-grid { list-style: none; margin: var(--space-lg) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md) var(--space-sm); }
.metric-grid li { display: flex; flex-direction: column; gap: 0.2rem; padding-top: var(--space-sm); border-top: 1px solid var(--line-2); }
.metric-grid b { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; letter-spacing: -0.025em; color: var(--ink); }
.metric-grid span { font-size: var(--text-xs); color: var(--muted); line-height: 1.4; }

.factor-list { list-style: none; margin: var(--space-lg) 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
.factor-list li { display: flex; flex-direction: column; gap: 0.3rem; padding-top: var(--space-sm); border-top: 1px solid var(--line-2); }
.factor-list b { font-family: var(--font-display); font-size: var(--text-base); font-weight: 700; color: var(--ink); }
.factor-list span { font-size: var(--text-sm); color: var(--muted); line-height: 1.5; }

.faq { margin-top: var(--space-lg); display: flex; flex-direction: column; }
.faq__item { border-top: 1px solid var(--line-2); padding-block: var(--space-md); }
.faq__item summary { font-family: var(--font-display); font-size: var(--text-base); font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; position: relative; padding-right: 2rem; letter-spacing: -0.015em; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; line-height: 1; color: var(--muted); font-weight: 300; transition: transform var(--dur) var(--ease-spring); }
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { color: var(--ink-2); font-size: var(--text-sm); line-height: 1.65; margin-top: 0.7rem; max-width: 60ch; }

.landing__src { text-align: center; font-size: var(--text-xs); color: var(--faint); margin-top: var(--space-xl); padding-block: var(--space-md); border-top: 1px solid var(--line-2); }

/* ============================ CAMPOS / INPUTS ============================ */
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field__label { font-size: var(--text-sm); font-weight: 500; color: var(--ink-2); }
.field__label b { color: var(--ink); font-weight: 700; }
.field__hint { font-size: var(--text-xs); color: var(--muted); line-height: 1.5; margin-top: 0.3rem; }

.input, .select {
  width: 100%; min-height: 50px; padding: 0 1rem; font: inherit; font-size: var(--text-md); font-weight: 500;
  color: var(--ink); background: var(--surface-2); border: 1px solid transparent; border-radius: 12px;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast), box-shadow var(--dur-fast);
}
.input::placeholder { color: var(--faint); }
.input:hover, .select:hover { background: var(--surface-3); }
.input:focus, .select:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-weak); }
.select { appearance: none; cursor: pointer; padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236e6e73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; }
.input--num { text-align: center; -moz-appearance: textfield; appearance: textfield; max-width: 7rem; }
.input--num::-webkit-outer-spin-button, .input--num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.input--lg, .select--lg { min-height: 56px; font-size: var(--text-md); font-weight: 500; }

/* CHIPS Apple-style */
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  font: inherit; font-size: var(--text-sm); font-weight: 500; cursor: pointer;
  min-height: 38px; padding: 0.4rem 0.95rem; border-radius: 980px;
  border: 0; background: var(--surface-2); color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 0.4rem;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-spring), background var(--dur-fast), color var(--dur-fast);
}
.chip:hover { background: var(--surface-3); color: var(--ink); }
.chip:active { transform: scale(0.96); }
.chip[aria-checked="true"] { background: var(--ink); color: var(--bg); }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.chips--tight { gap: 0.35rem; }
.chips--big .chip { min-height: 46px; padding: 0.6rem 1.15rem; font-size: var(--text-base); font-weight: 500; }
@media (max-width: 30rem) {
  .chips { gap: 0.35rem; }
  .chip { padding: 0.4rem 0.85rem; font-size: var(--text-sm); }
  .chips--big .chip { min-height: 42px; padding: 0.5rem 0.95rem; font-size: var(--text-sm); }
  .chips--cee .chip { padding: 0.4rem 0.7rem; min-width: 2.5rem; }
}

/* CEE chips: cuando seleccionado, mantener color de la dot pero acentuado */
.chips--cee { gap: 0.35rem; }
.chip[data-cee] { padding: 0.45rem 0.95rem; min-width: 3rem; justify-content: center; font-weight: 600; }
.chip[data-cee="A"] .dot { background: #00a651; }
.chip[data-cee="B"] .dot { background: #52b748; }
.chip[data-cee="C"] .dot { background: #bfd631; }
.chip[data-cee="D"] .dot { background: #fff200; }
.chip[data-cee="E"] .dot { background: #fdb913; }
.chip[data-cee="F"] .dot { background: #f37021; }
.chip[data-cee="G"] .dot { background: #ed1c24; }

/* COMPASS — rosa de los vientos, alineada a la izquierda como el resto del form */
.compass { display: grid; grid-template-columns: repeat(3, 64px); justify-content: start; gap: 0.45rem; width: 100%; }
.compass__btn, .compass__center {
  font: inherit; font-size: var(--text-sm); font-weight: 600; cursor: pointer;
  aspect-ratio: 1; min-height: 60px;
  border: 0; background: var(--surface-2); color: var(--ink-2);
  border-radius: 16px; display: grid; place-items: center;
  transition: transform var(--dur-fast) var(--ease-spring), background var(--dur-fast), color var(--dur-fast);
}
.compass__btn:hover, .compass__center:hover { background: var(--surface-3); color: var(--ink); }
.compass__btn:active, .compass__center:active { transform: scale(0.94); }
.compass__btn[aria-checked="true"], .compass__center[aria-checked="true"] {
  background: var(--ink); color: var(--bg);
}
.compass__btn--prime { font-weight: 800; font-size: var(--text-md); }
.compass__center { color: var(--muted); }

/* SLIDER */
.slider { padding-top: 1.8rem; position: relative; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 980px;
  background: linear-gradient(90deg, var(--ink), var(--ink)) no-repeat, var(--surface-3); background-size: var(--fill, 30%) 100%; cursor: pointer; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.12); cursor: grab; transition: transform var(--dur-fast) var(--ease-spring); }
.range::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.15); }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--ink); cursor: grab; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--accent-weak); }
.bubble { position: absolute; top: 0; transform: translateX(-50%); padding: 0.22rem 0.65rem; background: var(--ink); color: var(--bg); border-radius: 980px; font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--ink); border-bottom: 0; }

/* ROWS + STEPPER + SWITCH */
.rows { background: var(--surface-2); border-radius: 16px; overflow: hidden; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.7rem 0.9rem; min-height: 56px; cursor: default; min-width: 0; }
.row + .row { border-top: 1px solid var(--line-2); }
.row__label { font-size: var(--text-base); color: var(--ink); font-weight: 500; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__label .muted-tag { display: inline-block; margin-left: 0.3rem; }
@media (max-width: 30rem) {
  .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 0.6rem 0.8rem; gap: 0.5rem; }
  .row__label { font-size: var(--text-sm); min-width: 0; }
  .stepper { flex: 0 0 auto; justify-self: end; }
  .stepper__btn { width: 30px; height: 30px; font-size: 1.1rem; }
  .stepper__val { width: 4.2rem; font-size: var(--text-base); font-weight: 600; }  /* ancho generoso para "2005" sin recortes */
  /* chips: flex con wrap natural, NUNCA 2 líneas por chip */
  .chips--big .chip { padding: 0.5rem 0.95rem; font-size: var(--text-sm); min-height: 40px; }
  .chips { gap: 0.35rem; }
}

.stepper { display: inline-flex; align-items: center; background: var(--surface); border-radius: 980px; flex: none; }
.stepper__btn { width: 34px; height: 34px; border: 0; background: transparent; color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; border-radius: 980px; transition: background var(--dur-fast), transform var(--dur-fast) var(--ease-spring); }
.stepper__btn:active { background: var(--surface-3); transform: scale(0.92); }
.stepper__val { width: 4rem; border: 0; background: transparent; text-align: center; font: inherit; font-weight: 600; font-size: var(--text-md); color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.stepper__val::-webkit-outer-spin-button, .stepper__val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch__track { position: absolute; inset: 0; border-radius: 980px; background: var(--surface-3); transition: background var(--dur) var(--ease-out); }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #ffffff; box-shadow: 0 2px 4px rgba(0,0,0,.12); transition: transform var(--dur) var(--ease-spring); }
.switch input:checked + .switch__track { background: var(--accent); }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { box-shadow: 0 0 0 4px var(--accent-weak); }

/* ============================ WIZARD ============================ */
.wiz { display: flex; flex-direction: column; min-height: 100dvh; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.wiz__stage { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.wiz__step { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.wiz__step.is-active { overflow-x: clip; overflow-y: visible; }
.wiz__body { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.wiz__body > * { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
.field { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
.chips { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
.rows { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
.row { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
.wiz__progress { display: flex; flex-direction: column; gap: 0.35rem; align-items: stretch; min-width: 0; }
.wiz__progress-bar { height: 4px; background: var(--surface-2); border-radius: 980px; overflow: hidden; }
.wiz__progress-bar i { display: block; height: 100%; width: 20%; background: var(--ink); border-radius: inherit; transition: width var(--dur-slow) var(--ease-spring); }
.wiz__progress-lbl { font-size: 0.7rem; font-weight: 500; color: var(--muted); letter-spacing: 0; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wiz__progress-lbl b { color: var(--ink); font-weight: 700; }

.wiz__stage { flex: 1; padding-block: var(--space-xl) calc(var(--space-2xl) + 100px); }
.wiz__step { display: none; }
.wiz__step.is-active { display: block; animation: stepEnter var(--dur) var(--ease-spring); }
@keyframes stepEnter { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wiz__step.is-active { animation: none; } }

.wiz__head { margin-bottom: var(--space-lg); }
.wiz__eyebrow { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; color: var(--accent); text-transform: uppercase; }
.wiz__title { font-family: var(--font-display); font-size: clamp(2rem, 7vw, 2.8rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; margin-top: var(--space-2xs); color: var(--ink); }
.wiz__sub { color: var(--ink-2); font-size: var(--text-md); margin-top: var(--space-2xs); max-width: min(38ch, 100%); line-height: 1.45; font-weight: 400; }
@media (max-width: 30rem) {
  .wiz__title { font-size: clamp(1.6rem, 7vw, 2rem); }
  .wiz__sub { font-size: var(--text-base); max-width: 100%; }
}
.wiz__sub b { color: var(--accent); font-weight: 700; }

.wiz__body { display: flex; flex-direction: column; gap: var(--space-lg); }

.wiz__optional { margin-top: var(--space-md); }
.wiz__optional summary {
  font-size: var(--text-sm); font-weight: 600; color: var(--ink-2); cursor: pointer; list-style: none;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0.95rem; background: var(--surface-2); border-radius: 980px;
  transition: background var(--dur-fast) var(--ease-soft), color var(--dur-fast);
}
.wiz__optional summary:hover { background: var(--surface-3); color: var(--ink); }
.wiz__optional summary::-webkit-details-marker { display: none; }
.wiz__optional-chev { flex: none; color: var(--muted); transition: transform 360ms var(--ease-spring), color var(--dur-fast); }
.wiz__optional summary:hover .wiz__optional-chev { color: var(--ink); }
.wiz__optional[open] .wiz__optional-chev { transform: rotate(180deg); color: var(--ink); }
.wiz__optional[open] summary { background: var(--surface-3); color: var(--ink); }
.wiz__optional-body { overflow: hidden; }
.wiz__optional[open] .wiz__optional-body { animation: optionalOpen 420ms var(--ease-out) both; padding-top: var(--space-md); }
@keyframes optionalOpen {
  from { opacity: 0; transform: translateY(-8px); max-height: 0; }
  to   { opacity: 1; transform: none; max-height: 600px; }
}

/* BOTTOM SHEET — fixed para que SIEMPRE quede al pie del viewport */
.wiz__foot {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: var(--z-bar);
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--space-sm);
  padding: var(--space-sm) clamp(1.25rem, 5vw, 1.5rem) calc(var(--space-sm) + env(safe-area-inset-bottom, 0px));
  background: var(--glass); backdrop-filter: saturate(1.8) blur(24px); -webkit-backdrop-filter: saturate(1.8) blur(24px);
  border-top: 1px solid var(--line-2);
}
.wiz__value { display: flex; flex-direction: column; min-width: 0; gap: 0.1rem; }
.wiz__value-lbl { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.wiz__value-fig { font-family: var(--font-display); font-size: clamp(1.4rem, 5.5vw, 1.85rem); font-weight: 800; letter-spacing: -0.035em; color: var(--ink); line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wiz__value-rng { font-size: 0.72rem; color: var(--muted); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wiz__next { min-height: 52px; padding: 0 1.2rem; flex: 0 0 auto; }
.wiz__next svg { transition: transform var(--dur-fast) var(--ease-spring); }
/* el desplazamiento de la flecha solo en dispositivos con ratón real (no táctiles) */
@media (hover: hover) {
  .wiz__next:hover svg { transform: translateX(3px); }
}
.wiz__next.is-pulsing { animation: pulseBtn 1.4s ease-in-out 1; }
@keyframes pulseBtn { 0%,100%{box-shadow: none;} 50%{box-shadow: 0 0 0 8px var(--accent-weak);} }

@media (max-width: 30rem) {
  .wiz__next .wiz__next-label { display: none; }
  .wiz__next { width: 52px; height: 52px; min-width: 52px; min-height: 52px; padding: 0; aspect-ratio: 1; flex: 0 0 auto; }
  .wiz__next svg { display: block; }
}

/* ============================ STEP 6: form de contacto ============================ */
.consent {
  display: flex; align-items: flex-start; gap: 0.7rem;
  padding: 0.95rem 1rem; margin-top: var(--space-md);
  background: var(--surface-2); border-radius: 14px;
  cursor: pointer;
  transition: background 200ms var(--ease-soft);
}
.consent:hover { background: var(--surface-3); }
.consent input { width: 20px; height: 20px; margin-top: 0.15rem; flex: none; accent-color: var(--ink); cursor: pointer; }
.consent__text { font-size: var(--text-sm); color: var(--ink-2); line-height: 1.5; }
.consent__text b { color: var(--ink); font-weight: 600; }
.consent__text a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.consent__text a:hover { text-decoration: none; }

.lead-error {
  margin-top: var(--space-md);
  padding: 0.75rem 0.95rem;
  background: #fff0f0;
  color: #b32d33;
  border: 1px solid #fac4c4;
  border-radius: 12px;
  font-size: var(--text-sm);
  animation: shake 350ms var(--ease-out);
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

/* Bottom-sheet: en step 6 ocultamos la cifra para crear suspense */
.wiz__foot.is-cta-mode .wiz__value-lbl::after { content: "Tu valoración está lista"; display: block; font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; margin-top: 0.15rem; text-transform: none; }
.wiz__foot.is-cta-mode .wiz__value-lbl { font-size: 0.62rem; }
.wiz__foot.is-cta-mode .wiz__value-fig, .wiz__foot.is-cta-mode .wiz__value-rng { display: none; }

/* ============================ RESULTADO ============================ */
.result { display: flex; flex-direction: column; min-height: 100dvh; }

.result__hero { padding-block: var(--space-2xl) var(--space-xl); text-align: center; border-bottom: 1px solid var(--line-2); }
.result__eyebrow { display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.result__figure { font-family: var(--font-display); font-size: var(--text-figure); font-weight: 800; letter-spacing: -0.055em; line-height: 0.95; color: var(--ink); margin-top: var(--space-md); white-space: nowrap; }
.result__eur { color: var(--muted); font-weight: 600; }
.result__meta { display: flex; align-items: center; justify-content: center; gap: 0.55rem; font-size: var(--text-sm); color: var(--ink-2); margin-top: var(--space-md); flex-wrap: wrap; }
.result__meta b { color: var(--ink); font-weight: 600; }
.result__meta .dot-sep { color: var(--faint); }

.gauge { margin: var(--space-lg) auto 0; max-width: 22rem; }
.gauge__bar { position: relative; height: 6px; border-radius: 980px; background: var(--surface-2); }
.gauge__band { position: absolute; top: 0; bottom: 0; border-radius: 980px; background: var(--accent); }
.gauge__pin { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--ink); transform: translate(-50%, -50%); }
.gauge__labels { display: flex; justify-content: space-between; margin-top: 0.55rem; font-size: var(--text-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.gauge__labels .mid { color: var(--ink); font-weight: 600; }

.result__main { padding-block: var(--space-lg) var(--space-xl); display: flex; flex-direction: column; gap: var(--space-xl); }

.insight { text-align: center; padding: var(--space-md) 0; }
.insight p { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; color: var(--ink); letter-spacing: -0.02em; line-height: 1.3; word-spacing: 0.05em; }
.insight b { color: var(--ink); font-weight: 800; padding-inline: 0.1em; }
.insight .up { color: var(--good); }
.insight .down { color: var(--bad); }

.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.kpi { background: var(--surface-2); border-radius: 16px; padding: var(--space-sm); text-align: center; }
.kpi__k { display: block; font-size: 0.66rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.kpi__v { display: block; font-family: var(--font-display); font-size: var(--text-md); font-weight: 700; margin-top: 0.3rem; color: var(--ink); letter-spacing: -0.015em; }

.bonus { display: flex; align-items: stretch; gap: 0; background: var(--surface-2); border-radius: 16px; padding: var(--space-sm); }
.bonus__item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.2rem; text-align: center; min-width: 0; padding-inline: 0.5rem; }
.bonus__item + .bonus__item { border-left: 1px solid var(--line-2); }
.bonus__item b { font-family: var(--font-display); font-size: var(--text-md); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.bonus__item small { font-size: 0.7rem; color: var(--muted); font-weight: 500; }

/* BLOCK RESULT — sección con cabecera + contenido */
.block-result { display: flex; flex-direction: column; gap: var(--space-md); }
.block-result__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-sm); }
.block-result__head h3 { font-family: var(--font-display); font-size: var(--text-md); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }

/* COSTES */
.costs { background: var(--surface-2); border-radius: 16px; padding: var(--space-sm) var(--space-md); display: flex; flex-direction: column; }
.costs__toggle { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); padding: 0.6rem 0; border-bottom: 1px solid var(--line-2); margin-bottom: 0.5rem; cursor: pointer; }
.costs__toggle span:first-child { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; flex: 1; }
.costs__toggle b { font-size: var(--text-base); font-weight: 600; color: var(--ink); }
.costs__toggle small { font-size: var(--text-xs); color: var(--muted); }
.costs__row { display: flex; justify-content: space-between; align-items: center; padding: 0.55rem 0; font-size: var(--text-base); }
.costs__row + .costs__row { border-top: 1px solid var(--line-2); }
.costs__row span { color: var(--ink-2); font-weight: 500; }
.costs__row b { color: var(--ink); font-weight: 600; }
.costs__row.costs__total { border-top: 1px solid var(--line); margin-top: 0.3rem; padding-top: 0.85rem; }
.costs__row.costs__total b { color: var(--ink); font-weight: 700; }
.costs__row.costs__grand { background: var(--ink); margin: 0.7rem calc(-1 * var(--space-md)) calc(-1 * var(--space-sm)); padding: 0.85rem var(--space-md); border-radius: 0 0 16px 16px; border: 0; }
.costs__row.costs__grand span { color: var(--bg); font-weight: 600; opacity: 0.8; }
.costs__row.costs__grand b { color: var(--bg); font-family: var(--font-display); font-size: var(--text-md); font-weight: 700; }

/* SPEC desglose */
.spec { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; }
.spec td { padding: 0.75rem 0; border-bottom: 1px solid var(--line-2); font-size: var(--text-base); color: var(--ink); }
.spec td:last-child { text-align: right; font-weight: 600; }
.spec .k { color: var(--ink-2); font-weight: 500; }
.spec .sub td { color: var(--muted); font-size: var(--text-sm); padding: 0.4rem 0; border: 0; font-weight: 500; }
.spec .sub td:first-child { padding-left: var(--space-sm); }
.spec .subtotal td { border-top: 1px solid var(--line-2); padding-top: 0.7rem; font-weight: 600; color: var(--ink); }
.spec .total td { border: 0; border-top: 2px solid var(--ink); padding-top: var(--space-sm); font-family: var(--font-display); font-size: var(--text-md); font-weight: 700; letter-spacing: -0.02em; }

.chart-box { position: relative; height: 240px; background: var(--surface-2); border-radius: 16px; padding: var(--space-sm); }

/* PRO CTA */
.pro-cta { background: var(--surface-2); border-radius: 18px; padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-md); }
.pro-cta__txt h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; letter-spacing: -0.025em; color: var(--ink); }
.pro-cta__txt p { color: var(--ink-2); font-size: var(--text-sm); margin-top: 0.5rem; line-height: 1.6; }
.pro-cta__txt b { color: var(--ink); font-weight: 600; }
.pro-cta__btn { text-decoration: none; }

.disclaimer { font-size: var(--text-xs); color: var(--muted); line-height: 1.6; padding-block: var(--space-sm); max-width: 60ch; }

.result__actions { display: flex; gap: var(--space-2xs); padding-block: var(--space-md) calc(var(--space-md) + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line-2); margin-top: var(--space-md); align-items: center; }
.result__actions .btn--ghost { flex: 0 0 auto; min-width: 44px; }
.result__actions .btn--primary { flex: 1; }

/* CONFETTI */
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 70; }

/* ============================ DESKTOP (≥ 64rem) ============================ */
@media (min-width: 64rem) {
  .app { max-width: 87.5rem; padding-inline: 3rem; }   /* 1400px contenido */

  /* LANDING desktop — split, NO sticky (scrolea con el resto) */
  .landing { display: grid; grid-template-columns: 1.25fr 0.9fr; column-gap: var(--space-2xl); row-gap: var(--space-xl); align-items: start; padding-block: var(--space-md) var(--space-2xl); min-height: auto; }
  .hero { grid-column: 1; padding-block: var(--space-xl) var(--space-lg); text-align: left; }
  .quick { grid-column: 2; grid-row: 1; border-top: 0; border-bottom: 0; background: var(--surface-2); border-radius: 22px; padding: var(--space-lg); align-self: start; position: static; top: auto; }
  .block { grid-column: 1 / -1; padding-block: var(--space-2xl) 0; max-width: 68rem; }
  .metric-grid { grid-template-columns: repeat(4, 1fr); }
  .factor-list { grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
  .landing__src, .cta-band, .site-footer { grid-column: 1 / -1; }
  .market-bars { max-width: 56rem; }
  .factor-index { max-width: 56rem; }

  /* WIZARD desktop — 2 columnas: formulario (izq) + panel valor sticky (der) */
  .wiz {
    max-width: 78rem; margin-inline: auto; min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(0, 42rem) 23rem;
    grid-template-areas: "wtop wtop" "wstage wpanel";
    column-gap: var(--space-2xl);
    justify-content: center; align-items: start;
  }
  .wiz > .topbar { grid-area: wtop; max-width: none; margin-inline: 0; padding-inline: 0; border-bottom: 1px solid var(--line-2); }
  .wiz__stage { grid-area: wstage; display: block; min-height: auto; padding-block: var(--space-2xl) var(--space-2xl); }
  .wiz__step.is-active { width: 100%; max-width: 100%; }
  .wiz__title { font-size: clamp(2.2rem, 3.4vw, 2.8rem); }
  /* el bottom-sheet se convierte en panel lateral sticky */
  .wiz__foot {
    grid-area: wpanel; position: sticky; top: var(--space-xl);
    left: auto; right: auto; bottom: auto;
    display: flex; flex-direction: column; align-items: stretch; gap: var(--space-md);
    background: var(--surface-2); border: 1px solid var(--line-2);
    border-radius: 22px; margin: var(--space-2xl) 0 0; padding: var(--space-lg);
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .wiz__foot .wiz__value { align-items: flex-start; gap: 0.25rem; }
  .wiz__foot .wiz__value-fig { font-size: clamp(2rem, 3vw, 2.6rem); }
  .wiz__foot .wiz__value-rng { white-space: normal; }
  .wiz__next { width: 100%; min-height: 56px; }

  /* result topbar sigue centrado */
  .result .topbar { max-width: 48rem; margin-inline: auto; padding-inline: 0; }

  /* RESULT desktop — centrado pero un poco más ancho */
  .result { max-width: 48rem; margin-inline: auto; width: 100%; }
  .result__hero { padding-block: var(--space-3xl) var(--space-xl); }
}

/* ============================ TABLET (40–64rem) ============================ */
@media (min-width: 40rem) and (max-width: 63.99rem) {
  .app { max-width: 46rem; padding-inline: 2rem; }
  /* wizard: contenido centrado más ancho + bottom-sheet centrado (no de borde a borde) */
  .wiz__stage { max-width: 40rem; margin-inline: auto; }
  .wiz__foot {
    left: 50%; right: auto; transform: translateX(-50%);
    width: min(46rem, calc(100vw - 2rem));
    border-radius: 22px 22px 0 0;
  }
  /* result también más ancho */
  .result { max-width: 42rem; margin-inline: auto; }
}

/* ============================ DESKTOP XL (≥ 96rem) ============================ */
@media (min-width: 96rem) {
  /* en pantallas muy anchas, dejar más aire al hero pero sin pasarse */
  .landing { grid-template-columns: 1.35fr 0.85fr; }
  .hero__h1 { font-size: clamp(3rem, 4.5vw, 4.5rem); }
}

/* ============================ LANDING INFERIOR — REDISEÑO ============================ */
.block__lead { color: var(--ink-2); font-size: var(--text-md); line-height: 1.6; margin-top: var(--space-md); max-width: 52ch; }

/* --- Cómo funciona: 3 pasos --- */
.howsteps { list-style: none; margin: var(--space-xl) 0 0; padding: 0; display: grid; gap: var(--space-md); }
@media (min-width: 48rem) { .howsteps { grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); } }
.howstep { display: flex; gap: var(--space-md); align-items: flex-start; padding-top: var(--space-md); border-top: 2px solid var(--ink); }
.howstep__n { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); flex: none; line-height: 1; }
.howstep__body h3 { font-family: var(--font-display); font-size: var(--text-md); font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.howstep__body p { color: var(--ink-2); font-size: var(--text-sm); line-height: 1.55; margin-top: 0.4rem; }

/* --- Mercado: barras comparativas --- */
.market-bars { margin-top: var(--space-xl); display: flex; flex-direction: column; gap: var(--space-lg); }
.market-bar { display: flex; flex-direction: column; gap: 0.5rem; }
.market-bar__top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-sm); }
.market-bar__place { font-family: var(--font-display); font-size: var(--text-md); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.market-bar__val { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.market-bar__track { height: 12px; background: var(--surface-2); border-radius: 980px; overflow: hidden; }
.market-bar__track i { display: block; height: 100%; background: var(--ink); border-radius: inherit; }
.market-bar__tag { font-size: var(--text-xs); color: var(--muted); }

/* --- Factores: índice numerado --- */
.factor-index { list-style: none; margin: var(--space-xl) 0 0; padding: 0; }
.factor-index li {
  display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1rem; align-items: baseline;
  padding: var(--space-md) 0; border-top: 1px solid var(--line-2);
}
.factor-index li:last-child { border-bottom: 1px solid var(--line-2); }
.factor-index__n { grid-row: span 2; font-family: var(--font-display); font-size: var(--text-md); font-weight: 800; color: var(--faint); letter-spacing: -0.02em; }
.factor-index b { font-family: var(--font-display); font-size: var(--text-md); font-weight: 700; letter-spacing: -0.015em; color: var(--ink); }
.factor-index__d { grid-column: 2; color: var(--muted); font-size: var(--text-sm); line-height: 1.5; }
@media (min-width: 48rem) {
  .factor-index li { grid-template-columns: auto auto 1fr; align-items: baseline; }
  .factor-index__n { grid-row: 1; }
  .factor-index b { min-width: 7rem; }
  .factor-index__d { grid-column: 3; }
}

/* --- Banda CTA final --- */
.cta-band {
  margin-top: var(--space-2xl);
  background: var(--ink); color: var(--bg);
  border-radius: var(--r-card, 18px);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
}
.cta-band__title { font-family: var(--font-display); font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; color: var(--bg); }
.cta-band__sub { color: var(--bg); opacity: 0.7; font-size: var(--text-md); margin-top: var(--space-sm); }
.cta-band__btn { background: var(--bg); color: var(--ink); margin-top: var(--space-lg); min-height: 56px; padding: 0 2rem; font-size: var(--text-md); }
.cta-band__btn:hover { background: #fff; transform: translateY(-2px); }

/* --- Footer --- */
.site-footer { margin-top: var(--space-2xl); padding-top: var(--space-xl); border-top: 1px solid var(--line-2); text-align: center; }
.site-footer__brand { font-family: var(--font-display); font-size: var(--text-md); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.site-footer__src { color: var(--muted); font-size: var(--text-xs); line-height: 1.6; margin-top: var(--space-md); }
.site-footer__legal { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; margin-top: var(--space-md); }
.site-footer__legal a { color: var(--ink-2); font-size: var(--text-sm); text-decoration: none; font-weight: 500; transition: color 180ms; }
.site-footer__legal a:hover { color: var(--ink); text-decoration: underline; }
.site-footer__copy { color: var(--faint); font-size: var(--text-xs); margin-top: var(--space-lg); }

/* --- Reveal up (animación scroll para secciones nuevas) --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-up { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-spring); }
  .reveal-up.is-in { opacity: 1; transform: none; }
}

/* ============================ COOKIE BANNER (LSSI-CE) ============================ */
.cookie-banner {
  position: fixed; bottom: 1rem; left: 1rem; right: 1rem; z-index: 90;
  background: var(--ink); color: var(--bg);
  border-radius: 16px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.45);
  padding: var(--space-md) var(--space-lg);
  animation: cookieIn 420ms var(--ease-spring);
  max-width: 56rem; margin-inline: auto;
}
@keyframes cookieIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.cookie-banner__inner { display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap; }
.cookie-banner__txt { flex: 1; min-width: 14rem; font-size: var(--text-sm); line-height: 1.5; color: var(--bg); opacity: 0.92; margin: 0; }
.cookie-banner__txt a { color: var(--bg); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__txt b { color: var(--bg); font-weight: 700; }
.cookie-banner__btn { background: var(--bg); color: var(--ink); flex: 0 0 auto; }
.cookie-banner__btn:hover { background: #fff; transform: translateY(-1px); }
@media (max-width: 30rem) {
  .cookie-banner { left: 0.5rem; right: 0.5rem; padding: var(--space-sm); }
  .cookie-banner__btn { width: 100%; }
}

/* ============================ COMBOBOX (typeahead municipios) ============================ */
.combobox { position: relative; z-index: 1; }
.combobox.is-open { z-index: 100; }   /* por encima del campo "Zona" de abajo */
.combobox__input { width: 100%; padding-right: 2.8rem; }
.combobox__toggle {
  position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%);
  width: 2rem; height: 2rem; display: grid; place-items: center;
  background: transparent; border: 0; color: var(--muted); cursor: pointer;
  border-radius: 8px;
  transition: color 180ms, background 180ms;
}
.combobox__toggle:hover { color: var(--ink); background: var(--surface-3); }
.combobox__toggle svg { transition: transform 240ms var(--ease-spring); }
.combobox.is-open .combobox__toggle svg { transform: rotate(180deg); }

.combobox__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px);
  z-index: 100; max-height: 18rem; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.20);
  padding: 0.35rem; margin: 0; list-style: none;
  scrollbar-width: thin;
}
.combobox__list::-webkit-scrollbar { width: 8px; }
.combobox__list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.combobox__opt {
  padding: 0.6rem 0.85rem; border-radius: 10px; cursor: pointer;
  font-size: var(--text-sm); color: var(--ink-2); font-weight: 500;
  display: flex; justify-content: space-between; align-items: center; gap: 0.5rem;
  transition: background 120ms, color 120ms;
}
.combobox__opt:hover, .combobox__opt.is-active { background: var(--surface-2); color: var(--ink); }
.combobox__opt.is-selected { background: var(--ink); color: var(--bg); }
.combobox__opt-hint { font-size: var(--text-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.combobox__opt.is-selected .combobox__opt-hint { color: var(--bg); opacity: 0.7; }
.combobox__empty { padding: 1rem; text-align: center; color: var(--muted); font-size: var(--text-sm); }

/* ============================ FOOTER LEGAL ============================ */
.landing__legal { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; align-items: center; margin-top: 0.6rem; font-size: var(--text-xs); color: var(--muted); }
.landing__legal a { color: var(--muted); text-decoration: none; transition: color 180ms; }
.landing__legal a:hover { color: var(--ink); text-decoration: underline; }
.landing__legal span { color: var(--faint); }

/* ============================ ANIMACIONES A TOPE ============================ */
html { scroll-behavior: smooth; }

@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes riseFig {
  0%   { opacity: 0; transform: translateY(28px) scale(0.94); letter-spacing: -0.02em; }
  60%  { opacity: 1; transform: translateY(0) scale(1.02); letter-spacing: -0.058em; }
  100% { opacity: 1; transform: translateY(0) scale(1); letter-spacing: -0.055em; }
}

/* --- Entradas con opacity 0 inicial: solo cuando no se prefiere motion-reduced --- */
@media (prefers-reduced-motion: no-preference) {
  /* Hero landing: cascada */
  .hero__eyebrow { opacity: 0; animation: rise 600ms var(--ease-out) 150ms forwards; }
  .hero__h1     { opacity: 0; animation: rise 700ms var(--ease-out) 250ms forwards; }
  .hero__figure { opacity: 0; animation: riseFig 900ms var(--ease-spring) 400ms forwards; }
  .hero__range  { opacity: 0; animation: rise 600ms var(--ease-out) 600ms forwards; }
  .hero__caption{ opacity: 0; animation: rise 500ms var(--ease-out) 750ms forwards; }
  .quick        { opacity: 0; animation: rise 700ms var(--ease-out) 350ms forwards; }

  /* Result hero: cascada espectacular pero rápida */
  .result__hero .result__eyebrow { opacity: 0; animation: rise 500ms var(--ease-out) 80ms forwards; }
  .result__hero .result__figure  { opacity: 0; animation: riseFig 900ms var(--ease-spring) 160ms forwards; }
  .result__hero .result__meta    { opacity: 0; animation: rise 500ms var(--ease-out) 420ms forwards; }
  .result__hero .gauge           { opacity: 0; animation: rise 600ms var(--ease-out) 540ms forwards; }
  .result__main > *              { opacity: 0; animation: rise 500ms var(--ease-out) both; }
  .result__main > *:nth-child(1) { animation-delay: 380ms; }
  .result__main > *:nth-child(2) { animation-delay: 450ms; }
  .result__main > *:nth-child(3) { animation-delay: 520ms; }
  .result__main > *:nth-child(4) { animation-delay: 590ms; }
  .result__main > *:nth-child(5) { animation-delay: 660ms; }
  .result__main > *:nth-child(6) { animation-delay: 730ms; }
  .result__main > *:nth-child(7) { animation-delay: 800ms; }
  .result__main > *:nth-child(8) { animation-delay: 870ms; }

  /* Wizard step entrance — más dramático */
  .wiz__step.is-active .wiz__eyebrow { opacity: 0; animation: rise 500ms var(--ease-out) 50ms forwards; }
  .wiz__step.is-active .wiz__title   { opacity: 0; animation: rise 600ms var(--ease-out) 100ms forwards; }
  .wiz__step.is-active .wiz__sub     { opacity: 0; animation: rise 500ms var(--ease-out) 180ms forwards; }
  .wiz__step.is-active .wiz__body > * { opacity: 0; animation: rise 600ms var(--ease-out) forwards; }
  .wiz__step.is-active .wiz__body > *:nth-child(1) { animation-delay: 240ms; }
  .wiz__step.is-active .wiz__body > *:nth-child(2) { animation-delay: 300ms; }
  .wiz__step.is-active .wiz__body > *:nth-child(3) { animation-delay: 360ms; }
  .wiz__step.is-active .wiz__body > *:nth-child(4) { animation-delay: 420ms; }
  .wiz__step.is-active .wiz__body > *:nth-child(5) { animation-delay: 480ms; }

  /* Scroll-reveal landing blocks (los pongo aquí también) */
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-spring); }
  .reveal.is-in { opacity: 1; transform: none; }
}
.reveal[data-stagger="1"].is-in { transition-delay: 60ms; }
.reveal[data-stagger="2"].is-in { transition-delay: 120ms; }
.reveal[data-stagger="3"].is-in { transition-delay: 180ms; }
.reveal[data-stagger="4"].is-in { transition-delay: 240ms; }
.reveal[data-stagger="5"].is-in { transition-delay: 300ms; }
.reveal[data-stagger="6"].is-in { transition-delay: 360ms; }

/* --- Hover lift en cards de la landing (sutil) --- */
.metric-grid li, .factor-list li { transition: transform 420ms var(--ease-out), border-color 300ms var(--ease-soft); cursor: default; }
.metric-grid li:hover, .factor-list li:hover { transform: translateY(-2px); border-top-color: var(--ink); }
.metric-grid b, .factor-list b { transition: transform 420ms var(--ease-spring); transform-origin: left; display: inline-block; }
.metric-grid li:hover b { transform: scale(1.03); }

/* --- FAQ: animación de apertura --- */
.faq__item summary { transition: color 200ms; }
.faq__item summary:hover { color: var(--accent); }
.faq__item[open] summary { color: var(--ink); }
.faq__item p { animation: faqOpen 400ms var(--ease-out); }
@keyframes faqOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* --- Botón CTA primary: shine sweep al hover + lift --- */
.btn--primary { position: relative; overflow: hidden; isolation: isolate; transition: transform var(--dur-fast) var(--ease-spring), background var(--dur-fast), box-shadow 300ms var(--ease-out); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.22) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 700ms var(--ease-out);
  pointer-events: none;
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 32px -12px rgba(0,0,0,0.35); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--primary:active { transform: translateY(0) scale(0.97); }

/* --- Chips: pop al activarse + sombra sutil --- */
.chip { transition: transform 220ms var(--ease-spring), background 200ms var(--ease-soft), color 200ms var(--ease-soft), box-shadow 280ms var(--ease-out); }
.chip[aria-checked="true"] { animation: chipPop 360ms var(--ease-spring); box-shadow: 0 8px 22px -10px rgba(0,0,0,0.35); }
@keyframes chipPop { 0% { transform: scale(0.96); } 55% { transform: scale(1.035); } 100% { transform: scale(1); } }

/* --- Compass: ripple sutil + lift hover --- */
.compass__btn, .compass__center { position: relative; overflow: visible; transition: transform 220ms var(--ease-spring), background 200ms var(--ease-soft), color 200ms var(--ease-soft), box-shadow 280ms var(--ease-out); }
.compass__btn:hover, .compass__center:hover { transform: translateY(-2px); }
.compass__btn[aria-checked="true"]::after, .compass__center[aria-checked="true"]::after {
  content: ""; position: absolute; inset: -3px; border-radius: 18px;
  border: 1.5px solid var(--ink); opacity: 0;
  animation: ripple 600ms var(--ease-out);
  pointer-events: none;
}
@keyframes ripple {
  0%   { opacity: 0.6; transform: scale(0.88); }
  100% { opacity: 0; transform: scale(1.15); }
}
.compass__btn[aria-checked="true"], .compass__center[aria-checked="true"] {
  animation: chipPop 360ms var(--ease-spring);
  box-shadow: 0 8px 22px -10px rgba(0,0,0,0.35);
}

/* --- Wizard: progress bar con sheen + transition mejorada --- */
.wiz__progress-bar { position: relative; overflow: hidden; }
.wiz__progress-bar i { position: relative; overflow: hidden; }
.wiz__progress-bar i::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: progressSheen 2.2s ease-in-out infinite;
}
@keyframes progressSheen {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

/* --- Wizard bottom-sheet value flash al cambiar --- */
.wiz__value-fig { transition: transform 200ms var(--ease-spring); display: inline-block; }
.wiz__value-fig.is-flash { animation: figFlash 600ms var(--ease-spring); }
@keyframes figFlash {
  0%   { transform: scale(1); color: var(--ink); }
  35%  { transform: scale(1.08); color: var(--accent); }
  100% { transform: scale(1); color: var(--ink); }
}

/* --- KPIs y bonus: hover lift sutil --- */
.kpi { transition: transform 340ms var(--ease-out), background 240ms var(--ease-soft); cursor: default; }
.kpi:hover { transform: translateY(-2px); background: var(--surface-3); }
.bonus__item { transition: transform 320ms var(--ease-out); }
.bonus__item:hover { transform: translateY(-1px); }

/* --- Gauge: el pin pulsa cuando aparece --- */
.gauge__pin { animation: pinDrop 800ms var(--ease-spring); }
.gauge__band { animation: bandGrow 1000ms var(--ease-out); transform-origin: left; }
@keyframes pinDrop {
  0%   { transform: translate(-50%, -200%) scale(0.5); opacity: 0; }
  60%  { transform: translate(-50%, -50%) scale(1.4); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
@keyframes bandGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* --- Insight: pulse en el % vs media al cambiar --- */
.insight b { display: inline-block; transition: transform 300ms var(--ease-spring); }
.insight:hover b { transform: scale(1.08); }

/* --- num-acc (+15%): subrayado animado al hover --- */
.num-acc { display: inline-block; position: relative; }
.num-acc::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease-spring); }
.block:hover .num-acc::after { transform: scaleX(1); }

/* --- Pro-cta: subtle border glow + hover --- */
.pro-cta { transition: transform 350ms var(--ease-spring), background 250ms; }
.pro-cta:hover { transform: translateY(-2px); background: var(--surface-3); }
.pro-cta__btn { position: relative; overflow: hidden; }

/* --- Range slider: thumb glow --- */
.range::-webkit-slider-thumb { transition: transform 200ms var(--ease-spring), box-shadow 250ms; }
.range:hover::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(29, 29, 31, 0.08); }
.range:active::-webkit-slider-thumb { box-shadow: 0 0 0 10px rgba(29, 29, 31, 0.12); transform: scale(1.18); }

/* (eyebrows estáticos: el breathe distraía) */

/* --- Switch: bounce al cambiar --- */
.switch input:checked + .switch__track::after { animation: switchPop 380ms var(--ease-spring); }
@keyframes switchPop {
  0%   { transform: translateX(0) scale(1); }
  50%  { transform: translateX(20px) scale(1.15); }
  100% { transform: translateX(20px) scale(1); }
}

/* --- Stepper buttons: bounce al pulsar --- */
.stepper__btn:active { transform: scale(0.82); }

/* --- Toda animación: reduce-motion respect --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ============================ TÁCTIL: anular hovers que se "pegan" tras un tap ============================ */
@media (hover: none) {
  .wiz__next:hover svg { transform: none; }
  .btn--primary:hover { transform: none; }
  .btn--primary:hover::after { transform: translateX(-120%); }  /* el shine no se dispara en touch */
  .chip:hover, .compass__btn:hover, .compass__center:hover,
  .kpi:hover, .bonus__item:hover, .metric-grid li:hover, .factor-list li:hover,
  .market-bar:hover, .pro-cta:hover { transform: none; }
  .iconbtn:hover { background: var(--surface-2); }
}

/* ============================ PRINT ============================ */
@media print {
  body, .app { background: #fff !important; color: #000 !important; max-width: 100% !important; padding: 0; }
  .confetti, .landing, .wiz, .topbar, .result__actions, .pro-cta__btn, .iconbtn, .theme-toggle { display: none !important; }
  .result, .result__main { display: block; padding: 0; }
  .result__hero { padding-block: 0 var(--space-md); border-bottom: 2px solid #000; text-align: left; }
  .result__hero::before { content: "Informe de valoración · Cantabria · " attr(data-date); display: block; font-size: 9pt; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.4rem; }
  .result__eyebrow { font-size: 8pt; }
  .result__figure { font-size: 36pt; }
  .result__main { gap: 1rem; }
  .kpi, .bonus, .costs, .chart-box, .pro-cta { background: #fff !important; border: 1px solid #ddd !important; break-inside: avoid; }
  .block-result__head h3 { font-size: 11pt; }
  .chart-box { height: 200px; break-inside: avoid; }
  .disclaimer { font-size: 7.5pt; color: #444; }
  .pro-cta { display: none !important; }
  .gauge__band { background: #000 !important; }
  .gauge__pin { background: #fff !important; border-color: #000 !important; }
  @page { margin: 1.5cm; size: A4; }
}
