/* Financiatodo — page styles */

/* ====== Landing ====== */
.landing { padding: 0; }
.landing__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 48px 36px;
  text-align: center;
}
.landing__hero-inner { max-width: 760px; }
.landing__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 28px;
}
.landing__eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px var(--signal-soft); }

.landing__headline {
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--primary);
  text-wrap: balance;
}
.landing__headline-accent { color: var(--ink); font-weight: 600; }

.landing__sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 auto 20px;
  max-width: 560px;
}

.landing__cta-row {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.landing__cta-sub { font-size: 13px; color: var(--muted); }

.landing__trust {
  display: flex; gap: 6px; flex-wrap: wrap;
  justify-content: center; align-items: center;
  font-size: 12.5px; color: var(--muted);
}
.landing__trust-item { display: inline; }
.landing__trust-sep { color: var(--muted-2); padding: 0 2px; }

/* Viz card */
.landing__viz { position: relative; }
.landing__viz-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow-lg);
  max-width: 440px;
  margin-left: auto;
}
.landing__viz-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.landing__viz-tag-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.landing__viz-tag-chip svg { width: 18px; height: 18px; }
.landing__viz-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--signal); animation: pulse 2s ease infinite; }

.landing__viz-amount { padding: 10px 0 16px; border-bottom: 1px dashed var(--line-2); margin-bottom: 16px; }
.landing__viz-amount-lbl { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.landing__viz-amount-val { font-size: 38px; letter-spacing: -0.03em; line-height: 1; color: var(--ink); font-weight: 500; }

.landing__viz-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; margin: 0 0 10px; background: var(--bg-elev); }
.landing__viz-bar-seg { background: var(--primary); height: 100%; animation: grow 1.2s ease 0.3s both; }
.landing__viz-bar-seg--int { background: var(--accent); }
@keyframes grow { from { transform: scaleX(0); transform-origin: left; } }
.landing__viz-legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.landing__viz-sq { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--primary); margin-right: 6px; vertical-align: middle; }
.landing__viz-sq--int { background: var(--accent); }

.landing__viz-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.landing__viz-row { display: flex; justify-content: space-between; font-size: 13px; }
.landing__viz-lbl { color: var(--muted); }
.landing__viz-val { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }

.landing__viz-final {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 14px; border-top: 1px solid var(--ink);
}
.landing__viz-final-lbl { font-size: 12px; color: var(--muted); }
.landing__viz-final-val { font-size: 28px; color: var(--accent-2); font-weight: 500; letter-spacing: -0.02em; }

/* Stats */
.landing__stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: 1240px; margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.landing__stat {
  padding: 22px 32px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.landing__stat:last-child { border-right: none; }
.landing__stat-value { font-size: 24px; line-height: 1.1; letter-spacing: -0.015em; color: var(--primary); font-weight: 600; }
.landing__stat-label { font-size: 12.5px; color: var(--muted); max-width: 260px; line-height: 1.4; }

/* Loan picker */
.landing__pick { max-width: 1240px; margin: 0 auto; padding: 24px 48px 40px; }
.landing__pick-head { text-align: left; margin: 0 4px 16px; }
.landing__pick-title { font-size: 18px; letter-spacing: -0.005em; font-weight: 600; margin: 0 0 4px; color: var(--primary); }
.landing__pick-sub { font-size: 14px; color: var(--muted); margin: 0; }

/* Loan picker — tabbed interactive */
.picker {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.picker__tabs {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
}
.picker__tab {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 10px; align-items: center;
  padding: 14px 16px;
  text-align: left;
  border-right: 1px solid var(--line);
  transition: background 0.2s ease, color 0.2s ease;
  position: relative;
}
.picker__tab:last-child { border-right: none; }
.picker__tab::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 3px; background: var(--primary); transform: scaleX(0);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: left;
}
.picker__tab.active { background: var(--bg-card); }
.picker__tab.active::after { transform: scaleX(1); }
.picker__tab:hover:not(.active) { background: rgba(255,255,255,0.5); }
.picker__tab-num { font-size: 10.5px; color: var(--muted-2); letter-spacing: 0.08em; font-weight: 600; }
.picker__tab.active .picker__tab-num { color: var(--primary); }
.picker__tab-icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--bg); color: var(--muted);
  display: grid; place-items: center;
  transition: all 0.2s ease;
}
.picker__tab-icon svg { width: 16px; height: 16px; }
.picker__tab.active .picker__tab-icon { background: var(--primary); color: #fff; }
.picker__tab-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.picker__tab-name { font-size: 15px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.picker__tab-sub { font-size: 12px; color: var(--muted); }

.picker__panel {
  padding: 36px 40px 40px;
  display: grid; grid-template-columns: 1fr auto; gap: 32px;
  align-items: end;
}

/* Live preview card inside panel */
.picker__preview {
  grid-column: 1 / -1;
  padding: 24px 26px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  animation: pickerSlide 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes pickerSlide {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.picker__preview-head {
  display: flex; justify-content: flex-end; align-items: center;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px dashed var(--line-2);
}
.picker__preview-kicker { font-size: 11px; color: var(--primary); letter-spacing: 0.1em; font-weight: 600; }
.picker__preview-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.picker__preview-tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }

.picker__preview-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px;
}
.picker__preview-col { display: flex; flex-direction: column; gap: 10px; }
.picker__preview-row { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; }
.picker__preview-row-lbl { font-size: 13px; color: var(--muted); font-weight: 500; }
.picker__preview-row-val { font-size: 14px; color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }

.picker__preview-hero {
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 8px;
}
.picker__preview-hero-lbl { font-size: 12px; color: var(--muted); font-weight: 500; }
.picker__preview-hero-val { font-size: 38px; line-height: 1; letter-spacing: -0.03em; color: var(--primary); font-weight: 500; margin-bottom: 6px; }

.picker__preview-bar { display: flex; height: 22px; border-radius: 6px; overflow: hidden; background: var(--bg-elev); }
.picker__preview-bar-seg {
  height: 100%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: flex-end;
  padding: 0 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  animation: pickerGrow 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: left;
}
.picker__preview-bar-seg--int { background: var(--accent); color: var(--ink); }
@keyframes pickerGrow { from { transform: scaleX(0); } }

.picker__preview-legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); }
.picker__preview-sq { display: inline-block; width: 9px; height: 9px; border-radius: 2px; background: var(--primary); vertical-align: middle; margin-right: 5px; }
.picker__preview-sq--int { background: var(--accent); }

.picker__preview-overpay {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 4px;
  padding: 10px 12px;
  background: var(--accent-soft);
  border-radius: 10px;
  font-size: 12px;
}
.picker__preview-overpay > span:first-child { display: flex; align-items: baseline; gap: 8px; }
.picker__preview-overpay-plus { font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--accent-2); line-height: 1; letter-spacing: -0.02em; }
.picker__preview-overpay-lbl { color: var(--muted); font-size: 11.5px; }
.picker__preview-overpay-val { font-weight: 600; color: var(--accent-2); font-variant-numeric: tabular-nums; }

.picker__action {
  grid-column: 1 / -1;
  display: flex; justify-content: flex-end; align-items: center;
  padding-top: 4px;
}
.picker__action-text { flex: 1 1 320px; }
.picker__action-title { font-size: 26px; margin: 0 0 4px; letter-spacing: -0.025em; font-weight: 500; color: var(--ink); }
.picker__action-desc { font-size: 14.5px; color: var(--muted); margin: 0; max-width: 560px; line-height: 1.45; }

/* How */
.landing__how { max-width: 1240px; margin: 0 auto; padding: 60px 48px 80px; }
.landing__how-title { font-size: 36px; margin: 0 0 40px; letter-spacing: -0.03em; font-weight: 500; color: var(--primary); }
.landing__how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.landing__how-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 26px;
  min-height: 200px;
  display: flex; flex-direction: column;
}
.landing__how-num { font-size: 11px; color: var(--primary); letter-spacing: 0.08em; margin-bottom: 18px; font-weight: 600; }
.landing__how-t { font-size: 19px; margin: 0 0 8px; font-weight: 600; letter-spacing: -0.015em; }
.landing__how-d { font-size: 14.5px; color: var(--muted); line-height: 1.5; margin: 0; }

.landing__footer {
  max-width: 1240px; margin: 0 auto; padding: 40px 48px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 24px;
  font-size: 13px; color: var(--muted);
}

/* ====== Step ====== */
.step-wrap { max-width: 820px; margin: 0 auto; padding: 56px 32px 120px; }
.step__header { margin-bottom: 36px; }
.step__sub { font-size: 11px; color: var(--primary); letter-spacing: 0.1em; display: block; margin-bottom: 10px; font-weight: 600; }
.step__title { font-size: 40px; letter-spacing: -0.03em; margin: 0; line-height: 1.05; font-weight: 500; color: var(--ink); }
.step__body { display: flex; flex-direction: column; gap: 24px; }
.step__toggle { display: flex; gap: 8px; }
.step__footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* Brand grid */
.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.brand-card {
  padding: 18px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: all 0.15s ease;
  font-size: 13.5px; font-weight: 600;
}
.brand-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.brand-card.active { border-color: var(--primary); background: var(--primary-soft); }
.brand-card__mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-elev);
  display: grid; place-items: center;
  font-size: 20px; color: var(--primary); font-weight: 600;
}
.brand-card.active .brand-card__mark { background: var(--primary); color: #fff; }

/* Familia grid (Marca → Familia → Modelo step picker) */
.familia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.familia-card {
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  transition: all 0.15s ease;
  text-align: left;
}
.familia-card:hover { border-color: var(--primary); }
.familia-card.active { border-color: var(--primary); background: var(--primary-soft); }
.familia-card__name { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.familia-card__price { font-size: 12.5px; color: var(--muted); font-weight: 500; }

/* Model list */
.model-list, .model-list-scroll { display: flex; flex-direction: column; gap: 6px; }
.model-list-scroll { max-height: 320px; overflow-y: auto; padding-right: 4px; }
.model-search { margin-bottom: 8px; }
.model-list__empty { padding: 24px; text-align: center; color: var(--muted); font-size: 13.5px; }
.model-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15px; font-weight: 500;
  transition: all 0.15s ease;
}
.model-row:hover { border-color: var(--primary); }
.model-row.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.model-row__price { color: var(--muted); font-size: 13px; font-weight: 500; }
.model-row.active .model-row__price { color: rgba(255,255,255,0.8); }

/* Price input */
.price-input { position: relative; }
.price-input__prefix {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  font-size: 14px; color: var(--muted); font-weight: 600; z-index: 1; font-family: var(--mono);
}
.price-input__input { padding-left: 68px; font-variant-numeric: tabular-nums; font-weight: 500; }

/* Compact price input for the slider header (drag OR type) */
.slider-value-input { max-width: 220px; }
.slider-value-input .price-input__prefix { left: 12px; font-size: 12px; }
.slider-value-input .price-input__input { padding: 8px 12px 8px 56px; font-size: 18px; font-weight: 600; text-align: right; border-color: var(--line); background: var(--bg); }
.slider-value-input .price-input__input:focus { border-color: var(--primary); }

/* Slider cards */
.slider-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 26px;
}

/* Rate card */
.rate-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: 18px; padding: 24px 26px; }

/* Auto-rate card (market average from public source) */
.auto-rate {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 26px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden;
}
.auto-rate::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--primary);
}
.auto-rate__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.auto-rate__label-wrap { display: flex; flex-direction: column; gap: 4px; }
.auto-rate__label { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); }
.auto-rate__src { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--primary); font-weight: 500; }
.auto-rate__src svg { opacity: 0.7; }
.auto-rate__value {
  font-size: 32px; font-weight: 500; color: var(--ink); line-height: 1;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  font-family: var(--display);
}
.auto-rate__value small { font-size: 14px; color: var(--muted); margin-left: 2px; font-weight: 500; }
.auto-rate__hint { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.5; max-width: 540px; }
.auto-rate__monthly { font-size: 13px; color: var(--muted-2); margin: 4px 0 0; font-family: var(--mono); }

/* Rate mode toggle (market vs custom) */
.rate-mode { display: flex; gap: 6px; margin: 12px 0 0; }
.rate-mode__chip { font-size: 12.5px; padding: 6px 12px; }
.rate-custom { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; padding: 12px; background: var(--bg-elev); border-radius: 10px; }
.rate-custom__field { display: flex; flex-direction: column; gap: 4px; }
.rate-custom__lbl { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase; }
.rate-custom__input { padding: 10px 12px; font-size: 15px; font-family: var(--mono); }

/* Debt-to-income indicator (mortgage only) */
.dti { margin-top: 16px; padding: 14px 16px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; }
.dti--results { background: transparent; border: none; padding: 12px 0 0; }
.dti__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.dti__lbl { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); text-transform: uppercase; }
.dti__value { font-size: 18px; font-weight: 700; }
.dti__value--ok    { color: var(--signal-2); }
.dti__value--tight { color: #b3771a; }
.dti__value--high  { color: var(--danger); }
.dti__bar { height: 8px; background: var(--bg-elev); border-radius: 4px; overflow: hidden; }
.dti__bar-fill { height: 100%; transition: width 0.3s ease, background 0.3s ease; }
.dti__bar-fill--ok    { background: var(--signal-2); }
.dti__bar-fill--tight { background: #d99632; }
.dti__bar-fill--high  { background: var(--danger); }
.dti__hint { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; }
.dti__hint--ok    { color: var(--signal-2); }
.dti__hint--tight { color: #8a5e1b; }
.dti__hint--high  { color: var(--danger); }
.rate-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rate-option {
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  text-align: left;
  display: flex; flex-direction: column; gap: 6px;
  transition: all 0.15s ease;
}
.rate-option:hover { border-color: var(--primary); }
.rate-option.active { border-color: var(--primary); background: var(--primary-soft); }
.rate-option__top { display: flex; justify-content: space-between; align-items: baseline; }
.rate-option__label { font-size: 14px; font-weight: 600; }
.rate-option__pct { font-size: 13px; color: var(--primary); font-weight: 600; }
.rate-option__desc { font-size: 12px; color: var(--muted); line-height: 1.4; }

/* Live preview */
.live-preview {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 22px 26px;
  background: var(--primary); color: #fff;
  border-radius: 18px;
}
.live-preview__lbl { font-size: 12px; color: rgba(255,255,255,0.7); letter-spacing: 0.04em; font-weight: 500; }
.live-preview__val { font-size: 36px; letter-spacing: -0.025em; font-weight: 500; }

/* ====== Results ====== */
.results { max-width: 1100px; margin: 0 auto; padding: 48px 32px 120px; }
.results__top { margin-bottom: 24px; }

.results__hero {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px;
  padding: 48px 44px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 24px;
  margin-bottom: 20px;
  align-items: center;
}
.results__hero-lead { font-size: 14px; color: var(--muted); margin: 0 0 8px; font-weight: 500; }
.results__hero-value {
  font-size: clamp(64px, 9vw, 100px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0 0 8px;
  color: var(--primary);
  font-weight: 500;
}
.results__hero-for { font-size: 15px; color: var(--muted); margin: 0 0 24px; }
.results__hero-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.results__hero-chip {
  display: flex; flex-direction: column;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12.5px;
}
.results__hero-chip-lbl { color: var(--muted); font-size: 11px; margin-bottom: 3px; font-weight: 500; }
.results__hero-chip-val { font-weight: 600; font-size: 14px; }

.results__hero-right { display: flex; justify-content: center; }
.results__shock { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.results__shock-ring { position: relative; width: 160px; height: 160px; }
.results__shock-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.results__shock-plus { font-family: var(--display); font-size: 28px; color: var(--accent); line-height: 1; margin-bottom: -4px; font-weight: 500; }
.results__shock-pct { font-size: 52px; line-height: 1; color: var(--accent-2); letter-spacing: -0.04em; font-weight: 500; }
.results__shock-pct small { font-size: 22px; }
.results__shock-lbl { font-size: 13px; color: var(--muted); max-width: 220px; line-height: 1.4; margin: 0; }
.results__shock-lbl strong { color: var(--accent-2); font-weight: 600; }

/* Totals */
.results__totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.results__total {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.results__total--accent { background: var(--primary); color: #fff; border-color: var(--primary); }
.results__total--accent .results__total-lbl { color: rgba(255,255,255,0.7); }
.results__total--accent .results__total-hint { color: rgba(255,255,255,0.7); }
.results__total--accent .results__total-val { color: var(--accent); }
.results__total-lbl { font-size: 11px; color: var(--muted); letter-spacing: 0.03em; font-weight: 600; }
.results__total-val { font-size: 34px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 500; }
.results__total-hint { font-size: 11.5px; color: var(--muted); }
.results__total-breakdown { display: block; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 11.5px; color: rgba(255,255,255,0.75); font-variant-numeric: tabular-nums; line-height: 1.4; }

/* Chart */
.results__chart-section, .results__scenarios, .results__cta-block {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 16px;
}
.results__section-title { font-size: 22px; font-weight: 600; margin: 0 0 4px; letter-spacing: -0.015em; }
.results__section-sub { font-size: 14px; color: var(--muted); margin: 0 0 20px; }

.amort { padding: 16px 0; position: relative; }
.amort__grid { display: none; }
.amort__bars { display: flex; gap: 12px; align-items: flex-end; height: 200px; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.amort__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; position: relative; cursor: pointer; }
.amort__value-top { font-size: 10.5px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; line-height: 1; }

/* Modality comparison (UVR vs Pesos for mortgage Results) */
.modality-compare { max-width: 1100px; margin: 0 auto 32px; padding: 0 32px; }
.modality-compare__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.modality-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.modality-card--chosen { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.modality-card__tag { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.modality-card--chosen .modality-card__tag { color: var(--ink); }
.modality-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.modality-card__title { font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.modality-card__rate { font-size: 13px; color: var(--muted); font-weight: 500; }
.modality-card__rows { display: flex; flex-direction: column; gap: 8px; }
.modality-card__row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted); }
.modality-card__row .num { color: var(--ink); font-weight: 500; }
.modality-card__row--strong { padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; }
.modality-card__row--strong > span:first-child { color: var(--ink-2); font-weight: 500; }
.modality-card__row--strong .num { font-weight: 700; }

@media (max-width: 720px) {
  .modality-compare { padding: 0 16px; }
  .modality-compare__grid { grid-template-columns: 1fr; }
}
.amort__bar { flex: 1; width: 100%; max-width: 56px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 4px 4px 0 0; overflow: hidden; }
.amort__seg { width: 100%; transition: opacity 0.2s; }
.amort__seg--principal { background: var(--primary); }
.amort__seg--interest { background: var(--accent); }

/* Year-bar hover tooltip — surfaces capital + interest values per year.
   Stays inside the chart container; positioned above the column. */
.amort__tooltip {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 9px 11px;
  border-radius: 8px; font-size: 11.5px; line-height: 1.45;
  white-space: nowrap; min-width: 140px;
  display: flex; flex-direction: column; gap: 4px;
  opacity: 0; pointer-events: none; transition: opacity 0.15s ease;
  z-index: 10;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}
.amort__tooltip::after {
  content: ''; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: var(--ink);
}
.amort__col:hover .amort__tooltip,
.amort__col:focus-visible .amort__tooltip { opacity: 1; }
.amort__tooltip-year { font-weight: 600; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.amort__tooltip-row { display: grid; grid-template-columns: auto 1fr auto; gap: 6px; align-items: center; }
.amort__tooltip-row .num { font-variant-numeric: tabular-nums; font-weight: 600; }
.amort__tooltip-swatch { width: 8px; height: 8px; border-radius: 2px; }
.amort__tooltip-swatch--principal { background: var(--primary); }
.amort__tooltip-swatch--interest { background: var(--accent); }
.amort__col:hover .amort__seg { opacity: 0.85; }
.amort__label { font-size: 11px; color: var(--muted); position: absolute; bottom: -24px; font-weight: 500; }
.amort__tip { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 8px 10px; border-radius: 8px; font-size: 11px; white-space: nowrap; z-index: 10; display: flex; flex-direction: column; gap: 3px; box-shadow: var(--shadow); }
.amort__tip .swatch { margin-right: 4px; }
.results__chart-legend { display: flex; gap: 20px; margin-top: 36px; font-size: 13px; color: var(--muted); }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.swatch--primary { background: var(--primary); }
.swatch--accent { background: var(--accent); }

/* CTA block */
.results__cta-block { background: var(--primary); color: #fff; border-color: var(--primary); }
.results__cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.results__cta-inner > div { flex: 1 1 320px; min-width: 0; max-width: 520px; }
.results__cta-inner > .btn { flex: 0 0 auto; }
.results__cta-title { font-size: 30px; margin: 0 0 6px; color: #fff; letter-spacing: -0.025em; font-weight: 500; }
.results__cta-sub { font-size: 14.5px; color: rgba(255,255,255,0.75); margin: 0; max-width: 460px; }

/* Scenarios */
.scenarios__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.scenario { padding: 22px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; gap: 12px; }
.scenario--hl { border-color: var(--signal); background: var(--signal-soft); }
.scenario__top { display: flex; flex-direction: column; gap: 3px; }
.scenario__lbl { font-size: 13px; font-weight: 600; }
.scenario__sub { font-size: 11px; color: var(--muted); }
.scenario__main { display: flex; align-items: baseline; gap: 6px; }
.scenario__val { font-size: 28px; line-height: 1; letter-spacing: -0.025em; font-weight: 500; }
.scenario__val-lbl { font-size: 12px; color: var(--muted); }
.scenario__rows { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px dashed var(--line-2); font-size: 12.5px; color: var(--muted); }
.scenario__row { display: flex; justify-content: space-between; }
.scenario__savings {
  display: flex; justify-content: space-between;
  padding: 8px 12px;
  background: var(--signal-2); color: #fff;
  border-radius: 8px;
  font-size: 12.5px; font-weight: 600;
}
.scenario--hl .scenario__savings { background: var(--signal-2); }

.results__footer { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }

/* ====== Form ====== */
.form-step { max-width: 940px; margin: 0 auto; padding: 48px 32px 120px; display: grid; grid-template-columns: 320px 1fr; gap: 32px; align-items: start; }
.form-step__summary { background: var(--primary); color: #fff; border-radius: 20px; padding: 26px; position: sticky; top: 100px; }
.form-step__summary-lbl { font-size: 10.5px; color: rgba(255,255,255,0.6); letter-spacing: 0.1em; display: block; margin-bottom: 18px; font-weight: 600; }
.form-step__summary-row { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.form-step__summary-row:first-of-type { border-top: none; }
.form-step__body { background: var(--bg-card); border: 1px solid var(--line); border-radius: 20px; padding: 36px; }
.form-step__sub { color: var(--muted); font-size: 14.5px; margin: 8px 0 28px; }
.form-step__form { display: flex; flex-direction: column; gap: 18px; }
.input--err { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(196,74,42,0.08) !important; }
.wa-input { position: relative; }
.wa-input__prefix { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--muted); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.wa-input__prefix svg { border-radius: 1.5px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); }
.wa-input .input { padding-left: 72px; }
.form-step__commit { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--signal-soft); color: var(--signal-2); border-radius: 10px; font-size: 12.5px; font-weight: 500; margin: 8px 0 0; }

/* Habeas Data consent block on the form step */
.consent { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); margin: 12px 0 0; }
.consent__title { font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; padding: 0 4px; }
.consent__row { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; cursor: pointer; }
.consent__row input[type=checkbox] { margin-top: 2px; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--primary); }
.consent__row a { color: var(--ink); text-decoration: underline; }
.consent__row--err { color: var(--danger); }
.consent__error { color: var(--danger); font-size: 12.5px; margin: -4px 0 0 26px; }

/* Legal pages (privacy policy, etc.) */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 32px 96px; font-size: 15px; line-height: 1.65; color: var(--ink); }
.legal h1 { font-size: 32px; margin: 0 0 8px; font-weight: 700; }
.legal h2 { font-size: 18px; margin: 32px 0 12px; font-weight: 700; }
.legal__meta { color: var(--muted); font-size: 12.5px; margin: 0 0 24px; }
.legal p, .legal ul, .legal ol { margin: 0 0 14px; }
.legal ul, .legal ol { padding-left: 22px; }
.legal a { color: var(--ink); }

/* Wizard step item context (Fin) */
.step__context { margin: 12px 0 0; font-size: 14px; color: var(--muted); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.step__context strong { color: var(--ink); font-weight: 600; }
.step__context-sep { color: var(--muted-2); }

/* Results hero context line */
.results__hero-context { margin: 0 0 6px; font-size: 13.5px; color: var(--muted); letter-spacing: 0.01em; }
.results__hero-context strong { color: var(--ink); font-weight: 600; }

/* ====== Confirm ====== */
.confirm { max-width: 720px; margin: 0 auto; padding: 64px 32px 120px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.confirm__check { color: var(--signal-2); margin-bottom: 24px; }
@keyframes draw { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }
.confirm__eyebrow { font-size: 11px; color: var(--signal-2); letter-spacing: 0.14em; margin-bottom: 16px; font-weight: 600; }
.confirm__title { font-size: 48px; letter-spacing: -0.03em; margin: 0 0 16px; line-height: 1.05; color: var(--primary); font-weight: 500; }
.confirm__sub { font-size: 17px; color: var(--muted); max-width: 520px; margin: 0 0 24px; line-height: 1.5; }
.confirm__summary { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 18px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; margin: 0 0 36px; }
.confirm__summary-lbl { font-size: 10.5px; color: var(--muted); letter-spacing: 0.08em; font-weight: 600; }
.confirm__summary-val { font-size: 14px; color: var(--ink); }
.confirm__summary-val strong { font-weight: 600; }
.confirm__summary-val small { color: var(--muted); margin-left: 2px; }

.confirm__wa-preview { max-width: 380px; width: 100%; background: #E5DDD5; border-radius: 16px; padding: 14px; margin-bottom: 48px; text-align: left; }
.confirm__wa-bar { display: flex; align-items: center; gap: 10px; padding: 4px 4px 14px; }
.confirm__wa-avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; }
.confirm__wa-avatar svg { width: 100%; height: 100%; }
.confirm__wa-avatar--x { font-weight: 600; letter-spacing: -0.04em; }
.confirm__wa-msg { background: #DCF8C6; padding: 10px 14px; border-radius: 10px 10px 10px 2px; font-size: 13.5px; line-height: 1.45; position: relative; color: #111; }
.confirm__wa-msg p { margin: 0 0 8px; }
.confirm__wa-msg p:last-of-type { margin-bottom: 2px; }
.confirm__wa-time { display: block; text-align: right; font-size: 10.5px; color: rgba(0,0,0,0.45); margin-top: 2px; }

.confirm__tips { width: 100%; margin-bottom: 36px; text-align: left; }
.confirm__tips-lbl { font-size: 11px; color: var(--primary); letter-spacing: 0.1em; display: block; margin-bottom: 16px; text-align: center; font-weight: 600; }
.confirm__tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.confirm__tip { padding: 22px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px; }
.confirm__tip-num { font-size: 11px; color: var(--primary); letter-spacing: 0.08em; display: block; margin-bottom: 10px; font-weight: 600; }
.confirm__tip h4 { font-size: 15px; margin: 0 0 6px; font-weight: 600; }
.confirm__tip p { font-size: 13px; color: var(--muted); line-height: 1.45; margin: 0; }

/* Responsive */
@media (max-width: 860px) {
  .landing__hero { grid-template-columns: 1fr; gap: 40px; padding: 40px 24px 60px; }
  .landing__stats { grid-template-columns: 1fr; }
  .landing__stat { border-right: none; border-bottom: 1px solid var(--line); }
  .landing__stat:last-child { border-bottom: none; }
  .landing__pick, .landing__how { padding: 56px 24px; }
  .landing__how-title { font-size: 28px; }
  .landing__how-grid { grid-template-columns: 1fr; }
  .ltype-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .picker__tabs { grid-template-columns: 1fr !important; }
  .picker__tab { border-right: none; border-bottom: 1px solid var(--line); }
  .picker__tab:last-child { border-bottom: none; }
  .picker__panel { padding: 24px; }
  .picker__preview { padding: 20px; }
  .picker__preview-grid { grid-template-columns: 1fr; gap: 20px; }
  .picker__action { flex-direction: column; align-items: stretch; }
  .picker__action .btn { width: 100%; }
  .landing__footer { padding: 24px; flex-direction: column; align-items: flex-start; gap: 8px; }

  .step-wrap { padding: 32px 20px 80px; }
  .step__title { font-size: 32px; }
  .two-col { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .rate-options { grid-template-columns: 1fr; }

  .results { padding: 32px 20px 80px; }
  .results__hero { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; }
  .results__hero-value { font-size: 56px; }
  .results__totals { grid-template-columns: 1fr; }
  .scenarios__grid { grid-template-columns: 1fr; }
  .results__cta-inner { flex-direction: column; align-items: flex-start; }
  .results__cta-title { font-size: 24px; }

  .form-step { grid-template-columns: 1fr; }
  .form-step__summary { position: static; }
  .form-step__body { padding: 24px; }

  .confirm__title { font-size: 32px; }
  .confirm__tips-grid { grid-template-columns: 1fr; }
}

/* ====== Admin ====== */
.admin { background: var(--bg); }
.admin-nav { display: flex; align-items: center; gap: 24px; padding: 14px 24px; border-bottom: 1px solid var(--border); background: var(--bg-card); position: sticky; top: 0; z-index: 50; }
.admin-nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 14px; }
.admin-nav__brand-mark { display: inline-flex; }
.admin-nav__links { display: flex; gap: 4px; margin-left: 16px; }
.admin-nav__link { padding: 6px 12px; border-radius: 8px; font-size: 13.5px; color: var(--muted); text-decoration: none; }
.admin-nav__link:hover { background: var(--bg); color: var(--ink); }
.admin-nav__link.active { background: var(--bg); color: var(--ink); font-weight: 600; }
.admin-nav__logout { margin-left: auto; }

.admin-page { max-width: 1280px; margin: 0 auto; padding: 32px 24px 80px; }
.admin-header { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.admin-header h1 { font-size: 28px; margin: 0; font-weight: 700; }
.admin-header__count { color: var(--muted); font-size: 13.5px; }

.admin-filters { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr auto auto; gap: 8px; margin-bottom: 12px; align-items: center; }
.admin-filters .input, .admin-filters .select { padding: 10px 12px; font-size: 13.5px; }
.admin-filters-extra { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding-top: 4px; margin-bottom: 8px; }
.admin-filters-extra__lbl { font-size: 12px; color: var(--muted); font-weight: 500; }
.admin-filters-extra__opt { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.admin-filters-extra__opt input { accent-color: var(--primary); width: 14px; height: 14px; }

.admin-empty { padding: 64px 24px; text-align: center; color: var(--muted); background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; }

.admin-table-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.admin-table th { text-align: left; padding: 12px 14px; font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--border); background: var(--bg); }
.admin-table th.num, .admin-table td.num { text-align: right; }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr:hover td { background: rgba(0,0,0,0.015); }
.admin-table .nowrap { white-space: nowrap; }
.admin-table .mono { font-family: var(--mono); font-size: 12.5px; color: var(--muted-2); }

.estado-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; }
.estado-pill--pending     { background: #f0eee8; color: #6e6657; }
.estado-pill--contacted   { background: #e6f0fb; color: #1f4f86; }
.estado-pill--won         { background: var(--signal-soft); color: var(--signal-2); }
.estado-pill--lost        { background: #f7e6e3; color: #8a3625; }
.estado-pill--no_response { background: #f4ecdc; color: #7a5a18; }

.admin-pager { display: flex; align-items: center; gap: 16px; justify-content: center; margin-top: 24px; }
.admin-pager__pos { font-size: 13.5px; color: var(--muted); }

.admin-detail__head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.admin-detail__head h1 { font-size: 24px; margin: 0; font-weight: 700; }
.admin-flash { padding: 10px 14px; background: var(--signal-soft); color: var(--signal-2); border-radius: 10px; margin-bottom: 16px; font-size: 13.5px; font-weight: 500; }
.admin-detail__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-detail__h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 12px; font-weight: 600; }
.admin-detail__action, .admin-detail__history { grid-column: 1 / -1; }
.admin-history { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-history th { text-align: left; padding: 8px 10px; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--border); }
.admin-history th.num, .admin-history td.num { text-align: right; }
.admin-history td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-history tr:last-child td { border-bottom: 0; }
.admin-history .mono { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.admin-history .nowrap { white-space: nowrap; }
.admin-detail__action .field__label { margin-top: 12px; display: block; }
.admin-detail__action textarea.input { resize: vertical; padding: 12px 14px; }
.admin-detail__actions { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.admin-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; font-size: 13.5px; }
.admin-dl dt { color: var(--muted); }
.admin-dl dd { margin: 0; }
.admin-dl .muted { color: var(--muted); font-size: 12.5px; margin-left: 4px; }

.admin-login { min-height: calc(100vh - 80px); display: grid; place-items: center; padding: 32px 24px; }
.admin-login__card { width: 100%; max-width: 380px; padding: 32px; }
.admin-login__title { font-size: 22px; margin: 0 0 6px; font-weight: 700; }
.admin-login__sub { color: var(--muted); margin: 0 0 20px; font-size: 13.5px; }
.admin-login__error { padding: 10px 14px; background: #f7e6e3; color: #8a3625; border-radius: 10px; margin-bottom: 12px; font-size: 13.5px; }
.admin-login__submit { width: 100%; margin-top: 16px; }

/* Funnel page */
.funnel-range { display: flex; gap: 8px; margin-bottom: 20px; }
.funnel { display: flex; flex-direction: column; gap: 6px; margin-bottom: 28px; }
.funnel-row { display: grid; grid-template-columns: 220px 1fr 240px; align-items: center; gap: 16px; padding: 12px 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; }
.funnel-row__label { display: flex; flex-direction: column; gap: 2px; }
.funnel-row__name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.funnel-row__count { font-size: 16px; font-weight: 700; color: var(--ink); font-family: var(--mono); }
.funnel-row__bar { height: 10px; background: var(--bg-elev); border-radius: 5px; overflow: hidden; }
.funnel-row__bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width 0.4s ease; }
.funnel-row__rates { font-size: 12px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.funnel-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.funnel-stat { padding: 16px 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; }
.funnel-stat__lbl { display: block; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-bottom: 6px; }
.funnel-stat__val { font-size: 28px; font-weight: 700; color: var(--ink); font-family: var(--mono); }

@media (max-width: 800px) {
  .admin-filters { grid-template-columns: 1fr 1fr; }
  .admin-detail__grid { grid-template-columns: 1fr; }
  .funnel-row { grid-template-columns: 1fr; }
  .funnel-row__rates { justify-content: flex-start; }
  .funnel-totals { grid-template-columns: 1fr; }
}

/* Sticky "Simular [tipo]" CTA pinned to viewport bottom on phones. The
   element sits at the end of .picker; sticky positioning keeps it glued to
   the viewport while the user scrolls anywhere within the picker section,
   then scrolls away naturally once #pick is past. Hidden on desktop. */
.picker__cta-mobile { display: none; }

/* Phone-specific fixes (≤600px) */
@media (max-width: 600px) {
  .picker__cta-mobile {
    display: block;
    position: sticky;
    bottom: 0;
    /* Extend past the section's horizontal padding so the gradient background
       reaches the viewport edges. Tuned to match .landing__pick (56px 24px). */
    margin: 16px -24px 0;
    padding: 16px 24px calc(16px + env(safe-area-inset-bottom));
    background: linear-gradient(to bottom, rgba(250,249,245,0) 0%, var(--bg) 35%);
    z-index: 20;
    pointer-events: none;
  }
  .picker__cta-mobile__btn {
    width: 100%;
    justify-content: center;
    pointer-events: auto;
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
  }

  /* Slider header — label was wrapping because the new typeable price-input
     pushes it. Stack label above input, full-width input. */
  .slider-top { flex-direction: column; align-items: stretch; gap: 6px; }
  .slider-value-input { max-width: none; width: 100%; }
  .slider-value-input .price-input__input { text-align: left; font-size: 20px; }

  /* Picker tab — make the "active" state much more obvious when stacked. */
  .picker__tab.active { background: var(--bg-card); border-left: 3px solid var(--primary); }
  .picker__tab.active::after { display: none; } /* the bottom-bar indicator is for desktop only */

  /* Brand grid: tighten the cards so 12 brands don't dominate the page */
  .brand-card { padding: 12px 10px; gap: 6px; font-size: 12.5px; }
  .brand-card__mark { width: 32px; height: 32px; font-size: 16px; border-radius: 8px; }

  /* Familia grid: more compact rows so the user reaches Versión faster */
  .familia-card { padding: 10px 12px; }
  .familia-card__name { font-size: 13.5px; }
  .familia-card__price { font-size: 11.5px; }

  /* Sticky wizard footer on phones — same engagement principle as
     .picker__cta-mobile. The Continuar / Ver el resultado / Submit button
     stays pinned to the viewport while the user scrolls through the form,
     keeping the disabled→enabled transition visible as they fill the
     required fields. Same fade-bg trick. */
  .step__footer {
    position: sticky;
    bottom: 0;
    /* column-reverse so the HTML order [Back, Primary] visually stacks
       Primary on top — more room for long labels and the thumb's natural
       resting zone. */
    flex-direction: column-reverse;
    gap: 6px;
    margin: 24px -20px 0;
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
    background: linear-gradient(to bottom, rgba(250,249,245,0) 0%, var(--bg) 35%);
    border-top: none;
    z-index: 10;
  }
  .step__footer .btn {
    width: 100%;
    justify-content: center;
  }
  .step__footer .btn--lg {
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
  }
  /* Demote the secondary "Atrás" / "Volver a resultados" to a text link
     so the sticky bar doesn't dominate the screen. */
  .step__footer .btn--ghost {
    background: transparent;
    border: none;
    padding: 8px;
    font-size: 14px;
    box-shadow: none;
  }
}

