/* =============================================================
   SCROLLÓMETRO — styles.css
   Archetype: Mouse-Reactive Gradient (oscuro + neón morado/rosa)
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #0a0a12;
  --bg-2:      #110f1e;
  --surface:   rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --ink:       #f4f2fb;
  --ink-soft:  #cdc9e0;
  --mute:      #948dad;
  --line:      rgba(255, 255, 255, 0.10);
  --line-2:    rgba(255, 255, 255, 0.18);

  /* Neón */
  --violet:    #b14bff;
  --pink:      #ff3d9a;
  --magenta:   #ff2e63;
  --blue:      #6d5ef6;
  --accent:    var(--pink);

  --grad:      linear-gradient(100deg, var(--violet), var(--pink) 55%, #ff7847);
  --grad-soft: linear-gradient(100deg, rgba(177,75,255,.22), rgba(255,61,154,.22));

  --radius:    20px;
  --radius-sm: 13px;
  --radius-lg: 28px;

  --shadow-neon: 0 18px 60px -20px rgba(255, 61, 154, .55);
  --shadow-soft: 0 24px 70px -30px rgba(0, 0, 0, .8);

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --display: "Space Grotesk", system-ui, sans-serif;
  --sans:    "Inter", system-ui, -apple-system, sans-serif;

  --maxw: 1080px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
  min-height: 100svh;
}
img, svg, video, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
input { font: inherit; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; line-height: 1.04; letter-spacing: -0.025em; font-family: var(--display); font-weight: 600; }
::selection { background: var(--pink); color: #fff; }

:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg);
  border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* =============================================================
   3. Fondo reactivo + tarjetas flotantes
   ============================================================= */
.bg-field { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: var(--bg); }
.bg-gradient {
  position: absolute; inset: -20%;
  background:
    radial-gradient(38vw 38vw at var(--mx, 30%) var(--my, 25%), rgba(177,75,255,.55), transparent 60%),
    radial-gradient(34vw 34vw at calc(var(--mx, 70%) + 18%) calc(var(--my, 60%) + 8%), rgba(255,61,154,.50), transparent 60%),
    radial-gradient(40vw 40vw at 80% 85%, rgba(109,94,246,.40), transparent 62%),
    radial-gradient(30vw 30vw at 15% 90%, rgba(255,120,71,.28), transparent 60%);
  filter: blur(70px) saturate(135%);
  transition: background .5s var(--ease-soft);
  animation: meshDrift 26s ease-in-out infinite alternate;
  opacity: .85;
}
@keyframes meshDrift {
  0%   { transform: scale(1) translate3d(0,0,0); }
  100% { transform: scale(1.18) translate3d(2%, -3%, 0); }
}
.bg-grain {
  position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.bg-field::after { /* viñeta para legibilidad */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 30%, transparent 40%, rgba(8,8,16,.55) 100%),
              linear-gradient(180deg, rgba(8,8,16,.35), transparent 25%, transparent 70%, rgba(8,8,16,.6));
}

.bg-cards {
  position: absolute; inset: 0; pointer-events: none;
  transition: opacity .6s var(--ease-soft);
  /* Vacía la zona central: cualquier tarjeta que toque el texto del hero se
     desvanece casi por completo; las de los bordes siguen vivas. */
  -webkit-mask-image: radial-gradient(ellipse 60% 52% at 50% 44%, transparent 0%, transparent 34%, rgba(0,0,0,.55) 56%, #000 76%);
          mask-image: radial-gradient(ellipse 60% 52% at 50% 44%, transparent 0%, transparent 34%, rgba(0,0,0,.55) 56%, #000 76%);
}
/* Las tarjetas flotantes son el efecto del hero: fuera de él solo estorban. */
body:not([data-screen="hero"]) .bg-cards { opacity: 0; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: .45rem;
  padding: .5rem .7rem; border-radius: 12px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  font-size: .76rem; color: var(--ink-soft); white-space: nowrap;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.6);
  will-change: transform, opacity;
}
.float-card .fc-time { color: var(--mute); font-variant-numeric: tabular-nums; }

/* Insignias de icono de app (badge con color de marca + glifo blanco) */
.app-badge, .rank-ico, .fc-ico {
  display: inline-grid; place-items: center; flex: 0 0 auto;
  color: #fff; border-radius: 7px; box-shadow: 0 2px 8px -2px rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.1);
}
.app-badge svg, .rank-ico svg, .fc-ico svg { display: block; }
.fc-ico { width: 22px; height: 22px; }
.fc-ico svg { width: 13px; height: 13px; }
.rank-ico { width: 28px; height: 28px; border-radius: 9px; margin-right: .6rem; vertical-align: middle; }
.rank-ico svg { width: 16px; height: 16px; }

/* =============================================================
   4. Cabecera y pie
   ============================================================= */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 2.4rem);
}
.brand { display: flex; align-items: center; gap: .55rem; font-family: var(--display); font-weight: 600; }
.brand-mark { width: 22px; height: 22px; border-radius: 7px; background: var(--grad); box-shadow: var(--shadow-neon); }
.brand-name { font-size: 1.05rem; letter-spacing: -.02em; }
.brand-tag { color: var(--mute); font-size: .82rem; }

.site-foot {
  position: relative; z-index: 2; text-align: center;
  padding: 3rem 1.5rem 4rem; color: var(--mute); font-size: .88rem;
  border-top: 1px solid var(--line);
}
.site-foot a { color: var(--ink-soft); border-bottom: 1px solid var(--line-2); }
.site-foot a:hover { color: var(--pink); }
.foot-fine { margin-top: .5rem; font-size: .8rem; max-width: 46ch; margin-inline: auto; opacity: .8; }

/* =============================================================
   5. Botones, chips, slider (componentes)
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; letter-spacing: -.01em;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .3s, border-color .3s, color .3s;
  will-change: transform;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-neon); }
.btn-primary:hover { transform: translateY(-2px) scale(1.015); box-shadow: 0 24px 70px -18px rgba(255,61,154,.7); }
.btn-primary:active { transform: translateY(0) scale(.985); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--pink); transform: translateY(-1px); }
.btn-arrow { transition: transform .35s var(--ease-out); }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

.chips { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; }
.chip {
  padding: .7rem 1.1rem; border-radius: 999px; font-weight: 500;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft);
  transition: all .25s var(--ease-out);
}
.chip:hover { border-color: var(--line-2); color: var(--ink); transform: translateY(-1px); }
.chip.is-selected { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--shadow-neon); }

.slider {
  -webkit-appearance: none; appearance: none; width: 100%; height: 9px;
  border-radius: 999px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, var(--violet), var(--pink)) no-repeat,
              rgba(255,255,255,.12);
  background-size: var(--pct, 30%) 100%, 100% 100%;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 28px; height: 28px; border-radius: 50%;
  background: #fff; border: 4px solid var(--pink);
  box-shadow: 0 6px 22px -4px rgba(255,61,154,.9); cursor: grab;
  transition: transform .2s var(--ease-out);
}
.slider::-webkit-slider-thumb:active { transform: scale(1.12); cursor: grabbing; }
.slider::-moz-range-thumb {
  width: 28px; height: 28px; border-radius: 50%;
  background: #fff; border: 4px solid var(--pink); cursor: grab;
  box-shadow: 0 6px 22px -4px rgba(255,61,154,.9);
}
.slider::-moz-range-progress { background: linear-gradient(90deg, var(--violet), var(--pink)); height: 9px; border-radius: 999px; }

/* =============================================================
   6. Sistema de pantallas (hero / quiz / upload / report)
   ============================================================= */
.screen { position: relative; z-index: 2; }
.screen[hidden] { display: none; }
.hero, .quiz, .upload {
  min-height: 100svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 6rem clamp(1.2rem, 5vw, 2rem) 4rem; text-align: center;
}
.screen-enter { animation: screenIn .7s var(--ease-out) both; }
@keyframes screenIn { from { opacity: 0; transform: translateY(18px) scale(.99); } to { opacity: 1; transform: none; } }

/* ---- Hero ---- */
.kicker, .step-kicker, .block-kicker {
  display: inline-block; font-family: var(--display); font-weight: 500;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft);
  padding: .4rem .85rem; border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(255,255,255,.03);
}
.hero-inner { max-width: 880px; }
.hero-title {
  margin: 1.3rem 0 1.1rem; font-size: clamp(2.5rem, 8.5vw, 6rem);
  font-weight: 700; line-height: .98;
}
.hero-title em {
  font-style: normal;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { max-width: 56ch; margin: 0 auto 2.2rem; font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.hero-fine { margin-top: 1.5rem; color: var(--mute); font-size: .85rem; }

.hero-scroll-hint { position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%); width: 24px; height: 38px; border: 2px solid var(--line-2); border-radius: 14px; }
.hero-scroll-hint span { position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; border-radius: 4px; background: var(--pink); transform: translateX(-50%); animation: scrollHint 1.8s var(--ease-soft) infinite; }
@keyframes scrollHint { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 12px); } 100% { opacity: 0; } }

/* =============================================================
   7. Flujo (quiz)
   ============================================================= */
.quiz-shell, .upload-shell {
  width: 100%; max-width: 620px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 5vw, 2.6rem); box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.quiz-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.quiz-back, .upload-shell .quiz-back {
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); font-size: 1.2rem;
  display: grid; place-items: center; transition: all .25s var(--ease-out);
}
.quiz-back:hover { background: var(--surface-2); border-color: var(--pink); }
.progress { flex: 1; height: 6px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.progress-bar { display: block; height: 100%; width: 25%; border-radius: 999px; background: var(--grad); transition: width .5s var(--ease-out); }
.quiz-count { font-family: var(--display); color: var(--mute); font-variant-numeric: tabular-nums; }
.quiz-count b { color: var(--ink); }

.step { display: none; }
.step.is-active { display: block; animation: stepIn .45s var(--ease-out) both; }
@keyframes stepIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.step-title { font-size: clamp(1.4rem, 4vw, 2rem); margin: .6rem 0 1.6rem; }
.step-help { color: var(--mute); margin: -1rem 0 1.4rem; }
.step-next { width: 100%; margin-top: 1.8rem; }

.time-readout { margin-bottom: 1.6rem; }
.time-big { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(3rem, 12vw, 5rem); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.time-foot { color: var(--mute); }
.chips-time, .chips-age, .chips-value { margin-top: 1.4rem; }

.age-readout { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 10vw, 4rem); margin-bottom: 1.2rem; }
.age-readout .age-unit { font-size: 1.2rem; color: var(--mute); font-weight: 500; }

.value-custom { display: flex; flex-direction: column; gap: .5rem; margin-top: 1.5rem; color: var(--mute); font-size: .9rem; }
.value-input-wrap { display: inline-flex; align-items: center; gap: .4rem; align-self: center; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: .2rem .9rem; }
.value-input-wrap input { width: 90px; background: none; border: 0; color: var(--ink); font-family: var(--display); font-size: 1.4rem; text-align: right; outline: none; }
.value-eur { color: var(--mute); }

.goals { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.goal {
  display: flex; flex-direction: column; align-items: flex-start; gap: .3rem;
  padding: .9rem 1rem; border-radius: var(--radius-sm); text-align: left;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft);
  transition: all .25s var(--ease-out);
}
.goal .goal-ico { font-size: 1.4rem; }
.goal .goal-label { font-weight: 600; color: var(--ink); }
.goal:hover { border-color: var(--line-2); transform: translateY(-2px); }
.goal.is-selected { border-color: transparent; background: var(--grad-soft); box-shadow: inset 0 0 0 1.5px var(--pink); color: var(--ink); }

/* =============================================================
   8. Uploader (OCR)
   ============================================================= */
.upload-shell { text-align: center; }
.upload-shell .step-title { margin-top: .8rem; }
.upload-shell .step-title em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  padding: 2.4rem 1rem; margin: 1.6rem 0 0;
  border: 2px dashed var(--line-2); border-radius: var(--radius);
  background: var(--surface); cursor: pointer; transition: all .25s var(--ease-out);
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--pink); background: var(--surface-2); }
.dropzone-icon { font-size: 2.2rem; }
.dropzone-text { font-weight: 600; }
.dropzone-sub { color: var(--mute); font-size: .85rem; }

.upload-status { margin-top: 1.6rem; display: flex; flex-direction: column; align-items: center; gap: .8rem; color: var(--ink-soft); }
.spinner { width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--pink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.upload-result { margin-top: 1.4rem; }
.upload-found { color: var(--mute); margin-bottom: .8rem; }
.upload-detected { display: flex; flex-direction: column; gap: .5rem; }
.detected-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.detected-row .dr-name { font-weight: 600; display: inline-flex; align-items: center; }
.detected-row .dr-time { font-family: var(--display); color: var(--pink); font-variant-numeric: tabular-nums; }
.detected-total { background: var(--grad-soft); border-color: transparent; box-shadow: inset 0 0 0 1.5px rgba(255,61,154,.35); }
.detected-total .dr-time { color: var(--ink); }
.upload-edit-hint { color: var(--mute); font-size: .82rem; margin: 1rem 0 1.2rem; }
.upload-actions { display: flex; flex-direction: column; gap: .6rem; }

/* =============================================================
   9. Informe (report)
   ============================================================= */
.report { padding-top: 6rem; }
.block {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 9vw, 6rem) clamp(1.2rem, 5vw, 2rem);
}
.block-kicker { margin-bottom: 1rem; }
.block-title { font-size: clamp(1.8rem, 5vw, 3rem); margin-bottom: 2rem; }
.block-title em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.block-note { color: var(--mute); margin-top: 1.4rem; }
.block-fine { color: var(--mute); font-size: .8rem; margin-top: 1.6rem; max-width: 60ch; }

[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* Bloque 1 — factura */
.bill-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.bill-tile {
  padding: 1.6rem 1.4rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden;
}
.bill-tile-cost { grid-column: 1 / -1; background: var(--grad-soft); border-color: transparent; box-shadow: inset 0 0 0 1.5px rgba(255,61,154,.45); }
.bill-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--ink-soft); }
.bill-ico svg { width: 24px; height: 24px; }
.bill-tile-cost .bill-ico { color: var(--pink); border-color: rgba(255,61,154,.4); background: rgba(255,61,154,.1); }
.bill-num { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 8vw, 3.6rem); line-height: 1; margin: .5rem 0 .3rem; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.bill-tile-cost .bill-num { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bill-lab { color: var(--mute); font-size: .9rem; }

/* Bloque 2 — ranking */
.ranking { display: flex; flex-direction: column; gap: 1rem; }
.rank-row { display: grid; grid-template-columns: 1fr; gap: .4rem; }
.rank-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.rank-name { font-weight: 600; display: inline-flex; align-items: center; }
.rank-val { font-family: var(--display); color: var(--ink-soft); font-variant-numeric: tabular-nums; font-size: .9rem; white-space: nowrap; }
.rank-cost { color: var(--mute); }
.rank-track { height: 14px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.rank-fill { height: 100%; width: 0; border-radius: 999px; transition: width 1.1s var(--ease-out); }

/* Bloque 3 — could */
.could-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .9rem; }
.could-card { padding: 1.3rem 1.1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .3s var(--ease-out), border-color .3s; }
.could-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.could-ico { font-size: 1.7rem; }
.could-num { display: block; font-family: var(--display); font-weight: 700; font-size: 2rem; margin: .4rem 0 .1rem; font-variant-numeric: tabular-nums; }
.could-num em { font-style: normal; font-size: 1.05rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.could-lab { color: var(--ink-soft); font-size: .92rem; }
.could-note { display: block; color: var(--mute); font-size: .72rem; margin-top: .5rem; }

/* Bloque 4 — vida */
.day-bar-wrap { margin-bottom: 2.4rem; }
.day-bar-title { color: var(--mute); margin-bottom: .6rem; font-size: .9rem; }
.day-bar { display: flex; height: 30px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.day-seg { height: 100%; transition: width 1s var(--ease-out); }
.day-seg.sleep   { background: #3b3a63; }
.day-seg.work    { background: #2f6f6a; }
.day-seg.leisure { background: #c79a3a; }
.day-seg.social  { background: var(--magenta); }
.day-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .8rem; color: var(--ink-soft); font-size: .85rem; }
.day-legend li { display: flex; align-items: center; gap: .4rem; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sw-sleep { background: #3b3a63; } .sw-work { background: #2f6f6a; } .sw-leisure { background: #c79a3a; } .sw-social { background: var(--magenta); }

.life-grid { display: grid; grid-template-columns: repeat(50, 1fr); gap: 3px; margin-top: .5rem; }
.life-cell { aspect-ratio: 1; border-radius: 2px; background: rgba(255,255,255,.07); }
.life-cell.social { background: var(--magenta); box-shadow: 0 0 6px rgba(255,46,99,.6); }

/* Bloque 5 — comparativa */
.compare { display: flex; flex-direction: column; gap: 1.4rem; }
.cmp-row { }
.cmp-label { display: flex; justify-content: space-between; margin-bottom: .4rem; font-size: .92rem; }
.cmp-label .cmp-you { color: var(--pink); font-weight: 600; }
.cmp-bars { display: grid; gap: .4rem; }
.cmp-bar { height: 16px; border-radius: 999px; background: rgba(255,255,255,.08); position: relative; overflow: hidden; }
.cmp-bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; transition: width 1.1s var(--ease-out); }
.cmp-bar.you i { background: var(--grad); }
.cmp-bar.avg i { background: rgba(255,255,255,.3); }
.cmp-statement { font-size: clamp(1.1rem, 3vw, 1.5rem); font-family: var(--display); line-height: 1.3; }
.cmp-statement b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Bloque 6 — futuro */
.future { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.future-card { padding: 1.5rem 1.2rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.future-when { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 1.1rem; margin-bottom: .8rem; }
.future-row { display: flex; justify-content: space-between; gap: .6rem; padding: .35rem 0; border-top: 1px solid var(--line); font-size: .9rem; }
.future-row span:first-child { color: var(--mute); }
.future-row b { font-family: var(--display); font-variant-numeric: tabular-nums; }
.future-card:last-child .future-row b { color: var(--pink); }

/* Bloque 7 — mensaje final */
.block-final { text-align: center; }
.final-message { font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 5vw, 3rem); line-height: 1.2; max-width: 22ch; margin: 0 auto; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Gamificación + compartir */
.block-share { text-align: center; display: flex; flex-direction: column; gap: 3rem; }
.level-badge { display: inline-block; margin: 1rem 0 .6rem; font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 5vw, 2.4rem); padding: .5rem 1.4rem; border-radius: 999px; background: var(--grad-soft); border: 1.5px solid var(--pink); }
.level-desc { color: var(--ink-soft); max-width: 48ch; margin: 0 auto; }
.recover-control { display: flex; flex-direction: column; gap: .8rem; max-width: 420px; margin: 1rem auto; }
.recover-control span { color: var(--ink-soft); }
.recover-out { font-size: 1.2rem; }
.recover-out b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: var(--display); }

.sharecard { width: 100%; max-width: 360px; margin: 1rem auto 0; border-radius: var(--radius); box-shadow: var(--shadow-soft); border: 1px solid var(--line); }
.share-buttons { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.4rem; }
.restart { align-self: center; }

/* =============================================================
   10. SEO
   ============================================================= */
.seo { position: relative; z-index: 2; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(8,8,16,.5)); }
.seo-inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 8vw, 5rem) clamp(1.2rem, 5vw, 2rem); }
.seo-h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 1rem; }
.seo-inner > p { max-width: 64ch; color: var(--ink-soft); margin-bottom: 2.4rem; }
.seo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; }
.seo-grid article { padding: 1.4rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.seo-grid h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.seo-grid p { color: var(--mute); font-size: .92rem; }
.seo-cta { text-align: center; margin-top: 2.6rem; }

/* =============================================================
   11. Toast
   ============================================================= */
.toast {
  position: fixed; left: 50%; bottom: 1.6rem; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--bg); font-weight: 600; font-size: .9rem;
  padding: .7rem 1.2rem; border-radius: 999px; z-index: 9999; opacity: 0;
  transition: opacity .3s, transform .3s var(--ease-out); pointer-events: none;
  box-shadow: var(--shadow-soft);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* =============================================================
   12. Responsive
   ============================================================= */
@media (min-width: 720px) {
  .goals { grid-template-columns: repeat(4, 1fr); }
  .bill-grid { grid-template-columns: repeat(4, 1fr); }
  .bill-tile-cost { grid-column: auto; }
  .life-grid { grid-template-columns: repeat(73, 1fr); }
}
@media (max-width: 520px) {
  .future { grid-template-columns: 1fr; }
  .brand-tag { display: none; }
  /* En móvil el texto ocupa casi todo el ancho: ensancha el hueco central. */
  .bg-cards {
    -webkit-mask-image: radial-gradient(ellipse 78% 50% at 50% 44%, transparent 0%, transparent 42%, rgba(0,0,0,.55) 62%, #000 82%);
            mask-image: radial-gradient(ellipse 78% 50% at 50% 44%, transparent 0%, transparent 42%, rgba(0,0,0,.55) 62%, #000 82%);
  }
}

/* =============================================================
   13. Reduced-motion (solo lo intrusivo)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .bg-gradient { animation: none; }
  .hero-scroll-hint span { animation: none; }
  .float-card { animation: none !important; }
}
