/* =============================================
   Splitto — Calculadora web
   Extiende landing-styles.css con la paleta Splitto
   ============================================= */

:root {
  /* Splitto app palette */
  --splitto-dark: #2D4A32;
  --splitto-light: #4CAF50;
  --savings-blue: #5C6BC0;

  /* Buckets */
  --bucket-essential: #C8943A;
  --bucket-leisure: #E57373;
  --bucket-health: #4DB6AC;
  --bucket-treats: #9575CD;

  /* Savings categories */
  --cat-travel: #4CAF50;
  --cat-investment: #1565C0;
  --cat-education: #7B1FA2;
  --cat-dreams: #E65100;

  /* Health */
  --health-good-bg: #E8F5E9;
  --health-good-fg: #2E7D32;
  --health-tight-bg: #FFF3E0;
  --health-tight-fg: #E65100;
  --health-risk-bg: #FFEBEE;
  --health-risk-fg: #C62828;

  /* Page tags */
  --tag-blue-bg: #E3F2FD;
  --tag-blue-fg: #1565C0;
  --tag-orange-bg: #FFF3E0;
  --tag-orange-fg: #E65100;
  --tag-green-bg: #E8F5E9;
  --tag-green-fg: #2E7D32;
  --tag-purple-bg: #F3E5F5;
  --tag-purple-fg: #7B1FA2;
  --tag-indigo-bg: #E8EAF6;
  --tag-indigo-fg: #283593;
}

body.splitto-page { background: var(--cream); }

/* ---- Nav mode: transparent over dark hero, solid over cream ---- */
.splitto-page .nav { background: transparent; }
.splitto-page .nav.scrolled {
  background: rgba(26, 42, 26, 0.95);
}

/* ---- HERO ---- */
.splitto-hero {
  background: linear-gradient(160deg, #0F1A0F 0%, #1A2A1A 40%, #162016 100%);
  color: var(--white);
  padding: 7rem 0 3.5rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.splitto-hero::before {
  content: ''; position: absolute; inset: auto;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(76,175,80,0.10) 0%, transparent 70%);
  top: 40%; right: 5%; transform: translate(0, -50%);
  pointer-events: none;
}
.splitto-hero-inner { position: relative; max-width: 720px; margin: 0 auto; }
.splitto-hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.02em; text-wrap: balance;
  margin: 1.25rem 0 1rem;
}
.splitto-hero-sub {
  font-size: clamp(0.98rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,0.7); line-height: 1.65;
  max-width: 560px; margin: 0 auto 2rem;
}
.splitto-hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(76,175,80,0.14);
  border: 1px solid rgba(76,175,80,0.3);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem; font-weight: 700; color: #A5D6A7;
}
.splitto-avatar-mini {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--splitto-dark), var(--splitto-light));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
}
.beta-tag {
  background: #FF9800; color: #fff;
  font-size: 0.6rem; font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 6px; border-radius: 4px;
  text-transform: uppercase; font-style: normal;
  margin-left: 0.35rem;
  vertical-align: 3px;
}
.btn-start {
  background: linear-gradient(135deg, var(--splitto-light), var(--splitto-dark));
  color: #fff;
  padding: 1rem 2.4rem;
  font-size: 1.05rem;
  box-shadow: 0 8px 24px rgba(76,175,80,0.35);
}
.btn-start:hover { box-shadow: 0 12px 30px rgba(76,175,80,0.45); }
.splitto-hero-fine {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================
   WIZARD SHELL
   ============================================ */
.wizard {
  padding: 3rem 0 4rem;
  background: var(--cream);
}
.wizard-shell {
  max-width: 720px;
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
  padding: 1.75rem 1.5rem 2rem;
  border: 1px solid rgba(0,0,0,0.04);
}
@media (min-width: 640px) {
  .wizard-shell { padding: 2.25rem 2.25rem 2.5rem; }
}

/* Progress dots */
.progress-dots {
  display: flex; gap: 8px; justify-content: center;
  margin-bottom: 1.25rem;
}
.progress-dots .dot {
  width: 32px; height: 4px; border-radius: 2px;
  background: #E5E7EB;
  transition: background .3s;
}
.progress-dots .dot.active,
.progress-dots .dot.done { background: var(--splitto-dark); }

/* Bubble */
.splitto-bubble {
  display: flex; align-items: flex-start; gap: 0.75rem;
  background: linear-gradient(135deg, #F1F8E9, #E8F5E9);
  padding: 1rem 1.1rem;
  border-radius: 16px 16px 16px 4px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(45,74,50,0.08);
}
.splitto-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--splitto-dark), var(--splitto-light));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px rgba(45,74,50,0.25);
}
.splitto-bubble-text {
  font-size: 0.95rem; line-height: 1.55; color: #1B3A20;
}

/* Wizard pages */
.wizard-page { display: none; }
.wizard-page.active { display: block; animation: fadeIn 0.35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.page-tag {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.35rem 0.75rem; border-radius: 6px;
  margin-bottom: 1rem;
}
.welcome-tag { background: rgba(76,175,80,0.14); color: var(--splitto-dark); }
.tag-income { background: var(--tag-blue-bg); color: var(--tag-blue-fg); }
.tag-spending { background: var(--tag-orange-bg); color: var(--tag-orange-fg); }
.tag-emergency { background: var(--tag-green-bg); color: var(--tag-green-fg); }
.tag-categories { background: var(--tag-purple-bg); color: var(--tag-purple-fg); }
.tag-weights { background: var(--tag-indigo-bg); color: var(--tag-indigo-fg); }

.page-title {
  font-size: 1.75rem; font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}
.page-sub {
  font-size: 1rem; color: var(--gray-500);
  margin-bottom: 1.5rem;
}
.section-label {
  font-size: 0.95rem; font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  text-transform: none;
  letter-spacing: 0;
}
.section-sub-plain {
  font-size: 0.9rem; color: var(--gray-500);
  margin-bottom: 1.25rem; line-height: 1.55;
}

.beta-note {
  background: #FFF8E1;
  border: 1px solid #FFE082;
  color: #6D4C00;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.88rem; line-height: 1.55;
  margin-bottom: 1.5rem;
}

/* Wizard nav (Back / Next) */
.wizard-nav {
  display: flex; justify-content: space-between; gap: 0.75rem;
  margin-top: 2rem;
}
.btn-next, .btn-back {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.85rem 1.6rem;
  border-radius: 12px;
  transition: transform .18s, box-shadow .18s, background .18s;
}
.btn-next {
  background: var(--splitto-dark);
  color: #fff;
  margin-left: auto;
}
.btn-next:hover:not([disabled]) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(45,74,50,0.28);
}
.btn-next[disabled] {
  background: #C7CDD2;
  cursor: not-allowed;
}
.btn-back {
  background: transparent;
  color: var(--gray-500);
}
.btn-back:hover { color: var(--gray-900); }

/* ============================================
   PAGE 1 · Income
   ============================================ */
.income-label {
  display: block;
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: 0.75rem;
}
.income-label strong { color: var(--splitto-dark); font-weight: 700; }
.income-input-wrap {
  display: flex; align-items: baseline; gap: 0.5rem;
  border-bottom: 2px solid var(--splitto-dark);
  padding: 0.5rem 0;
  margin-bottom: 1.25rem;
}
.income-input-wrap input {
  flex: 1;
  font-family: inherit;
  font-size: clamp(1.75rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--gray-900);
  border: none; outline: none; background: transparent;
  text-align: right;
  width: 100%;
  min-width: 0;
}
.income-suffix {
  font-size: 1.1rem; font-weight: 600;
  color: var(--gray-500);
}
.tip-box {
  display: flex; gap: 0.6rem; align-items: flex-start;
  background: #E8F5E9;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.9rem; color: #2E4A32; line-height: 1.55;
  margin-bottom: 1rem;
}
.tip-icon { font-size: 1.2rem; line-height: 1; }
.privacy-note {
  font-size: 0.78rem; color: var(--gray-400);
  text-align: center;
  margin-top: 0.5rem;
}

/* ============================================
   PAGE 2 · Spending buckets
   ============================================ */
.spending-summary {
  background: #FAFBFC;
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1.25rem;
  border: 1px solid #EEF0F2;
}
.dist-bar {
  display: flex; height: 16px;
  background: #E5E7EB;
  border-radius: 8px; overflow: hidden;
  margin-bottom: 0.9rem;
}
.dist-seg {
  height: 100%;
  transition: width .3s;
  min-width: 0;
}
.dist-seg[data-bucket="essential"] { background: var(--bucket-essential); }
.dist-seg[data-bucket="leisure"]   { background: var(--bucket-leisure); }
.dist-seg[data-bucket="health"]    { background: var(--bucket-health); }
.dist-seg[data-bucket="treats"]    { background: var(--bucket-treats); }
.dist-seg.dist-savings             { background: var(--savings-blue); }

.summary-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.summary-card {
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  color: #fff;
}
.summary-spending { background: var(--bucket-essential); }
.summary-savings  { background: var(--splitto-light); }
.summary-label {
  font-size: 0.75rem; font-weight: 600;
  opacity: 0.9;
}
.summary-amount {
  font-size: 1.15rem; font-weight: 800;
  margin-top: 2px;
}
.summary-pct {
  font-size: 0.78rem; opacity: 0.85; font-weight: 600;
}

.health-message {
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  font-size: 0.88rem; line-height: 1.5;
  font-weight: 500;
}
.health-good  { background: var(--health-good-bg);  color: var(--health-good-fg); }
.health-tight { background: var(--health-tight-bg); color: var(--health-tight-fg); }
.health-risk  { background: var(--health-risk-bg);  color: var(--health-risk-fg); }
.health-neutral { background: #F3F4F6; color: var(--gray-500); }

.buckets {
  display: flex; flex-direction: column; gap: 0.5rem;
}
.bucket {
  background: #FFFFFF;
  border: 1px solid #EEF0F2;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.bucket:focus-within { box-shadow: 0 0 0 2px rgba(45,74,50,0.15); }
.bucket-head {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
}
.bucket-emoji { font-size: 1.5rem; line-height: 1; }
.bucket-info { flex: 1; min-width: 0; }
.bucket-name { font-size: 0.95rem; font-weight: 700; color: var(--gray-900); }
.bucket-cats {
  font-size: 0.78rem; color: var(--gray-400);
  overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}
.bucket-input-wrap {
  display: flex; align-items: center; gap: 4px;
  flex-shrink: 0;
}
.bucket-input {
  width: 88px;
  font-family: inherit;
  font-size: 1rem; font-weight: 700;
  color: var(--gray-900);
  text-align: right;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  outline: none;
  transition: border-color .18s;
}
.bucket-input:focus { border-color: var(--splitto-dark); }
.bucket-suffix {
  font-size: 0.85rem; color: var(--gray-500); font-weight: 600;
}
.bucket-pct {
  font-size: 0.85rem; font-weight: 700;
  min-width: 40px; text-align: right;
}
.bucket-chips {
  display: none;
  flex-wrap: wrap; gap: 6px;
  padding: 0 0.9rem 0.9rem;
}
.bucket.expanded .bucket-chips { display: flex; }
.bucket-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: #F3F4F6;
  padding: 4px 9px;
  border-radius: 12px;
  font-size: 0.75rem;
  color: var(--gray-600);
}
.bucket-chip-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}

/* ============================================
   PAGE 3 · Emergency
   ============================================ */
.emergency-card {
  background: #F1F8E9;
  border-left: 4px solid var(--splitto-light);
  border-radius: 12px;
  padding: 1.25rem 1.15rem;
  margin-bottom: 1rem;
}
.emergency-title {
  font-size: 1rem; font-weight: 700; color: var(--splitto-dark);
  margin-bottom: 0.5rem;
}
.emergency-title .prio { font-weight: 500; color: var(--gray-500); font-size: 0.85rem; }
.emergency-desc {
  font-size: 0.88rem; color: var(--gray-600); line-height: 1.55;
  margin-bottom: 1.25rem;
}
.months-label {
  display: block; font-size: 0.9rem; color: var(--gray-600);
  margin-bottom: 0.35rem;
}
.months-label strong { color: var(--splitto-dark); font-weight: 700; }
#monthsSlider {
  width: 100%;
  -webkit-appearance: none; appearance: none;
  height: 5px; border-radius: 3px;
  background: #C8E6C9;
  outline: none;
}
#monthsSlider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--splitto-light);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  cursor: pointer;
}
#monthsSlider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--splitto-light);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  cursor: pointer;
}
.months-scale {
  display: flex; justify-content: space-between;
  font-size: 0.75rem; color: var(--gray-400);
  margin-top: 4px; margin-bottom: 1rem;
  padding: 0 6px;
}
.formula-chip {
  display: inline-block;
  background: rgba(76,175,80,0.12);
  color: var(--splitto-dark);
  font-family: 'SF Mono', ui-monospace, monospace;
  font-size: 0.85rem; font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.emergency-goal {
  display: flex; align-items: baseline; gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.emergency-goal-label {
  font-size: 0.9rem; color: var(--gray-500); font-weight: 600;
}
.emergency-goal-amount {
  font-size: 2rem; font-weight: 800;
  color: var(--splitto-dark);
  letter-spacing: -0.02em;
}
.emergency-eta {
  font-size: 0.85rem; color: var(--gray-500); font-style: italic;
  min-height: 1.2em;
  margin-bottom: 1rem;
}
.already-toggle {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem; color: var(--gray-700, #374151);
}
.already-toggle input { accent-color: var(--splitto-light); width: 18px; height: 18px; }

/* ============================================
   PAGE 4 · Savings categories
   ============================================ */
.categories { display: flex; flex-direction: column; gap: 0.6rem; }
.category {
  background: #fff;
  border: 1px solid #EEF0F2;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.category.expanded { box-shadow: 0 4px 16px rgba(0,0,0,0.05); }
.category-head {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.9rem 1rem;
  cursor: pointer;
}
.category-emoji {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}
.category-info { flex: 1; min-width: 0; }
.category-name { font-size: 0.98rem; font-weight: 700; color: var(--gray-900); }
.category-sub {
  font-size: 0.78rem; color: var(--gray-400);
  margin-top: 2px;
}
.category-caret {
  font-size: 1.1rem; color: var(--gray-400);
  transition: transform .25s;
}
.category.expanded .category-caret { transform: rotate(180deg); }
.category-body {
  display: none;
  padding: 0 1rem 1rem;
  border-top: 1px solid #F3F4F6;
}
.category.expanded .category-body { display: block; }
.subgoal {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #F9FAFB;
}
.subgoal:last-child { border-bottom: 0; }
.subgoal-check {
  width: 22px; height: 22px; flex-shrink: 0;
  border: 2px solid #D1D5DB;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .18s, border-color .18s;
}
.subgoal-check.checked {
  background: var(--splitto-light);
  border-color: var(--splitto-light);
  color: #fff;
}
.subgoal-info { flex: 1; min-width: 0; }
.subgoal-name { font-size: 0.9rem; color: var(--gray-900); }
.subgoal-badge {
  display: inline-block;
  font-size: 0.68rem; font-weight: 700;
  padding: 2px 7px; border-radius: 6px;
  border: 1px solid;
  margin-top: 3px;
}
.badge-recurrent { border-color: var(--splitto-light); color: var(--splitto-light); }
.badge-meta { border-color: var(--cat-dreams); color: var(--cat-dreams); }
.subgoal-goal-wrap {
  display: none;
  align-items: center; gap: 4px;
  flex-shrink: 0;
}
.subgoal.checked .subgoal-goal-wrap { display: flex; }
.subgoal-goal {
  width: 78px;
  font-family: inherit;
  font-size: 0.9rem; font-weight: 700;
  text-align: right;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 0.3rem 0.4rem;
  outline: none;
  color: var(--gray-900);
}
.subgoal-goal:focus { border-color: var(--splitto-dark); }
.subgoal-goal-suffix { font-size: 0.8rem; color: var(--gray-500); }
.subgoal-goal-hint {
  font-size: 0.65rem; color: var(--gray-400);
  margin-left: 2px;
}

/* ============================================
   PAGE 5 · Weights / Lifestyle
   ============================================ */
.profiles {
  display: grid; gap: 0.75rem;
  margin-bottom: 1rem;
}
@media (min-width: 640px) {
  .profiles { grid-template-columns: 1fr 1fr 1fr; }
}
.profile {
  background: #fff;
  border: 2px solid #EEF0F2;
  border-radius: 14px;
  padding: 1rem;
  cursor: pointer;
  transition: border-color .18s, transform .18s;
  text-align: center;
}
.profile:hover { transform: translateY(-1px); }
.profile.selected {
  border-color: var(--splitto-dark);
  background: #F1F8E9;
}
.profile-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(45,74,50,0.08);
  color: var(--splitto-dark);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.5rem;
  font-size: 1.35rem;
}
.profile.selected .profile-icon {
  background: var(--splitto-dark); color: #fff;
}
.profile-name { font-size: 0.98rem; font-weight: 700; color: var(--gray-900); }
.profile-sub { font-size: 0.78rem; color: var(--gray-500); margin-top: 2px; }

.profile-description {
  background: #F1F8E9;
  border-left: 3px solid var(--splitto-light);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem; color: #1B3A20;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.weights-card {
  background: #FAFBFC;
  border-radius: 14px;
  padding: 1rem;
  border: 1px solid #EEF0F2;
}
.weights-title { font-size: 0.85rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.dist-bar--weights { margin-bottom: 0.75rem; height: 18px; position: relative; }
.dist-bar--weights .dist-seg {
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.7rem; font-weight: 700;
  overflow: hidden; white-space: nowrap;
}
.weights-legend {
  display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem;
  margin-bottom: 1rem;
}
.legend-item {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.78rem; color: var(--gray-600);
}
.legend-dot { width: 10px; height: 10px; border-radius: 3px; }

.weights-sliders {
  display: flex; flex-direction: column; gap: 0.85rem;
}
.slider-row {
  display: grid; grid-template-columns: 1.4fr 2fr auto auto;
  gap: 0.5rem; align-items: center;
}
.slider-row-label {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; font-weight: 600;
  color: var(--gray-900);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.slider-row-emoji { font-size: 1rem; }
.slider-input {
  -webkit-appearance: none; appearance: none;
  width: 100%;
  height: 4px; border-radius: 2px;
  background: #E5E7EB;
  outline: none;
}
.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--splitto-light);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  cursor: pointer;
}
.slider-input::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--splitto-light);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  cursor: pointer;
}
.slider-pct {
  font-size: 0.85rem; font-weight: 700;
  min-width: 40px; text-align: right;
}
.slider-amount {
  font-size: 0.78rem; color: var(--gray-500);
  min-width: 70px; text-align: right;
  font-variant-numeric: tabular-nums;
}
.weights-tip {
  font-size: 0.78rem; color: var(--gray-400);
  margin-top: 1rem; line-height: 1.5;
  text-align: center;
}

/* ============================================
   PAGE 6 · Summary
   ============================================ */
.done-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--splitto-light), var(--splitto-dark));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 700;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 20px rgba(76,175,80,0.35);
}
.wizard-page[data-page="6"] { text-align: center; }
.wizard-page[data-page="6"] .page-title,
.wizard-page[data-page="6"] .page-sub { text-align: center; }

.summary-block {
  background: #FAFBFC;
  border: 1px solid #EEF0F2;
  border-radius: 14px;
  padding: 1rem 1.15rem;
  margin: 1rem 0;
  text-align: left;
}
.summary-block-title {
  font-size: 0.78rem; font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid #F3F4F6;
  font-size: 0.9rem;
}
.summary-row:last-child { border-bottom: 0; }
.summary-row-name {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--gray-700, #374151);
  min-width: 0; overflow: hidden; text-overflow: ellipsis;
}
.summary-row-emoji { font-size: 1.1rem; }
.summary-row-amount {
  font-weight: 700; color: var(--gray-900);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.summary-row-pct {
  font-size: 0.78rem; color: var(--gray-400); font-weight: 500;
  margin-left: 4px;
}
.summary-row.highlight {
  background: rgba(76,175,80,0.08);
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  margin: 0.35rem -0.3rem 0;
  border-bottom: 0;
}
.summary-row.highlight .summary-row-amount { color: var(--splitto-dark); }

.finish-ctas {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.6rem; margin: 1.5rem 0 0.75rem;
}
.btn-secondary-dark {
  border-color: var(--gray-500) !important;
  color: var(--gray-900) !important;
}
.btn-secondary-dark:hover {
  border-color: var(--gray-900) !important;
  background: rgba(0,0,0,0.03) !important;
}
.finish-utility {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: center;
  margin: 0.75rem 0 1.5rem;
}
.link-btn {
  color: var(--splitto-dark);
  font-size: 0.85rem; font-weight: 600;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  transition: background .18s;
}
.link-btn:hover { background: rgba(45,74,50,0.06); }
.finish-note {
  font-size: 0.85rem; color: var(--gray-500);
  line-height: 1.6;
  max-width: 520px; margin: 0 auto;
  text-align: center;
}

/* ============================================
   Marketing tail
   ============================================ */
.splitto-marketing { padding-top: 4rem; padding-bottom: 4rem; }
.splitto-marketing h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.splitto-marketing .hero-ctas { justify-content: flex-start; margin-top: 1.5rem; margin-bottom: 0; }

/* ============================================
   Responsive tweaks
   ============================================ */
@media (max-width: 480px) {
  .wizard-shell { padding: 1.5rem 1.15rem 1.75rem; border-radius: 20px; }
  .progress-dots .dot { width: 24px; }
  .bucket-head { flex-wrap: wrap; }
  .bucket-input-wrap { margin-left: auto; }
  .summary-cards { grid-template-columns: 1fr; }
  .slider-row { grid-template-columns: 1.2fr 1.6fr auto; gap: 0.35rem 0.5rem; }
  .slider-amount { grid-column: 2 / -1; text-align: right; min-width: 0; }
}

/* ============================================
   Splitto avatar (Lottie)
   ============================================ */
.splitto-lottie {
  display: inline-block;
  width: 180px;
  height: 180px;
  vertical-align: middle;
  contain: layout paint;
}
.splitto-lottie svg { width: 100% !important; height: 100% !important; display: block; }
/* First-frame fallback if lottie fails or motion is blocked before mount. */
.splitto-lottie .splitto-fallback {
  display: inline-block;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #4CAF50 0%, #2D4A32 70%);
}
@media (prefers-reduced-motion: reduce) {
  .splitto-lottie svg { animation: none !important; }
}

/* Hero avatar: centrado por encima del badge, con margen simétrico */
.splitto-hero-avatar {
  display: block;
  margin: 0 auto 1rem;
  width: 200px;
  height: 200px;
}
@media (max-width: 720px) {
  .splitto-hero-avatar { width: 150px; height: 150px; }
}

/* Profiles preview: 3 columnas SIEMPRE (también en móvil) para ocupar poco */
.splitto-profiles-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 640px;
  margin: 2.5rem auto 0;
  padding: 0 1rem;
}
.splitto-profile-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 0.9rem 0.6rem 1rem;
  text-align: center;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.splitto-profile-card .splitto-lottie { width: 88px; height: 88px; margin-bottom: 0.35rem; }
.splitto-profile-card h3 { font-size: 0.95rem; font-weight: 700; margin: 0 0 0.15rem; letter-spacing: 0.01em; }
.splitto-profile-card p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  line-height: 1.35;
}
@media (max-width: 480px) {
  .splitto-profiles-preview { gap: 0.5rem; padding: 0 0.5rem; }
  .splitto-profile-card { padding: 0.75rem 0.35rem 0.85rem; }
  .splitto-profile-card .splitto-lottie { width: 64px; height: 64px; }
  .splitto-profile-card h3 { font-size: 0.85rem; }
  .splitto-profile-card p { font-size: 0.7rem; line-height: 1.25; }
}

/* Sample tag for the marketing demo */
.splitto-sample-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  margin-top: 0.75rem;
}
