/* ==========================================================
   saving.cl — Sistema de marca
   Verde esmeralda (confianza, crecimiento) + dorado moneda (valor)
   ========================================================== */
:root {
  --green-900: #064E3B;
  --green-700: #047857;
  --green-600: #059669;
  --green-500: #10B981;
  --mint-100: #D1FAE5;
  --mint-50: #ECFDF5;
  --coin: #F4B740;
  --coin-soft: #FFF4DA;
  --warn-soft: #FEF3C7;
  --warn-ink: #92400E;

  --ink: #0B2B26;
  --ink-2: #33504A;
  --muted: #5F7671;
  --bg: #F7FBF9;
  --surface: #FFFFFF;
  --border: #E1ECE7;
  --section-mint: #EEF8F3;
  --dark: #0B2B26;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(11, 43, 38, .05), 0 8px 24px rgba(11, 43, 38, .07);
  --shadow-lg: 0 24px 60px rgba(4, 120, 87, .18);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 108px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #E6F2EE;
    --ink-2: #BFD3CD;
    --muted: #8EA6A0;
    --bg: #0A1714;
    --surface: #10221E;
    --border: #1F3832;
    --section-mint: #0D1E1A;
    --mint-50: #12302A;
    --mint-100: #164036;
    --coin-soft: #3A2E12;
    --warn-soft: #3A2E12;
    --warn-ink: #FCD38A;
    --dark: #061210;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  }
}
:root[data-theme="dark"] {
  --ink: #E6F2EE; --ink-2: #BFD3CD; --muted: #8EA6A0; --bg: #0A1714; --surface: #10221E;
  --border: #1F3832; --section-mint: #0D1E1A; --mint-50: #12302A; --mint-100: #164036;
  --coin-soft: #3A2E12; --warn-soft: #3A2E12; --warn-ink: #FCD38A; --dark: #061210;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green-600); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select { font: inherit; color: inherit; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 28px; } }
.container--narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--green-700); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--green-500); outline-offset: 2px; border-radius: 6px; }

.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }
.fine { font-size: .82rem; color: var(--muted); margin-top: 1rem; }
.hint { color: var(--muted); font-size: .8rem; }
.grad { background: linear-gradient(90deg, var(--green-600), var(--green-500) 60%, #34D399); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--green-600); margin-bottom: .9rem;
}
.eyebrow--light { color: #6EE7B7; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 1em 1.7em; font-size: 1.05rem; }
.btn--sm { padding: .5em 1.05em; font-size: .9rem; }
.btn--primary { background: var(--green-600); color: #fff; box-shadow: 0 8px 20px rgba(5, 150, 105, .3); }
.btn--primary:hover { background: var(--green-700); }
.btn--ghost { color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--mint-50); }
.btn--outline { border-color: var(--green-600); color: var(--green-600); }
.btn--outline:hover { background: var(--green-600); color: #fff; }
.btn--coin { background: var(--coin); color: #3B2A05; box-shadow: 0 8px 20px rgba(244, 183, 64, .35); }
.btn--coin:hover { background: #F7C65E; }
.btn--ghost-light { color: #CFE9E1; border-color: rgba(255,255,255,.2); background: transparent; }
.btn--ghost-light:hover { background: rgba(255,255,255,.08); }

.chip {
  display: inline-flex; align-items: center; gap: .35em; padding: .3em .8em; border-radius: 999px;
  font-size: .8rem; font-weight: 600; background: var(--mint-50); color: var(--green-700); border: 1px solid var(--border);
}
.chip--mint { background: var(--mint-100); border-color: transparent; }
.chip--coin { background: var(--coin-soft); color: #8A5A00; border-color: transparent; }
.chip--warn { background: var(--warn-soft); color: var(--warn-ink); border-color: transparent; }
.chip--xs { font-size: .7rem; padding: .2em .65em; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip--coin { color: #FCD38A; } :root:not([data-theme="light"]) .chip { color: #6EE7B7; } :root:not([data-theme="light"]) .chip--warn, :root:not([data-theme="light"]) .chip--coin { color: var(--warn-ink); } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; }
.sale-bar { background: var(--green-900); color: #D1FAE5; font-size: .88rem; }
.sale-bar__inner { display: flex; align-items: center; justify-content: center; gap: .6rem; padding-top: .5rem; padding-bottom: .5rem; text-align: center; }
.sale-bar p { margin: 0; }
.sale-bar a { color: var(--coin); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.sale-bar__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coin); flex: none; box-shadow: 0 0 0 0 rgba(244,183,64,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(244,183,64,0); } 100% { box-shadow: 0 0 0 0 rgba(244,183,64,0); } }
@media (max-width: 520px) { .hide-sm { display: none; } .sale-bar { font-size: .8rem; } }

.nav { background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.brand__word { font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em; }
.brand__word span { color: var(--green-500); }
.brand--light { color: #fff; }
.nav__menu { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav__menu a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .45em .75em; border-radius: 8px; }
.nav__menu a:not(.btn):hover { color: var(--green-600); background: var(--mint-50); }
.nav__toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: .5rem 16px 1rem; box-shadow: var(--shadow);
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a:not(.btn) { padding: .8em .5em; }
  .nav__menu .btn { margin-top: .5rem; }
  .nav { position: relative; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem); overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 10%, color-mix(in srgb, var(--green-500) 18%, transparent), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, color-mix(in srgb, var(--coin) 14%, transparent), transparent 60%);
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 1.5rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; padding: 0; margin: 0; color: var(--muted); font-weight: 600; font-size: .92rem; }
.hero__trust span { color: var(--green-500); }
.hero__visual { position: relative; }
.mock-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 1.6rem; box-shadow: var(--shadow-lg);
  transform: rotate(-1.5deg);
}
.mock-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.mock-card__pct { font-weight: 800; color: var(--green-600); font-size: 1.1rem; }
.mock-card__amount { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }
.mock-card__amount small { font-size: .9rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.mock-card__chart { width: 100%; height: 110px; margin: 1.2rem 0 .8rem; }
.mock-card__foot { display: flex; justify-content: space-between; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.mock-card__foot .up { color: var(--green-600); }
.float-pill {
  position: absolute; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  padding: .6rem 1rem; border-radius: 999px; font-weight: 700; font-size: .9rem; white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.float-pill--a { top: -18px; right: -6px; }
.float-pill--b { bottom: -46px; left: -14px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }

.progress { height: 10px; border-radius: 999px; background: var(--mint-50); overflow: hidden; margin-top: .9rem; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green-600), var(--green-500)); transition: width .5s ease; }
.progress--light { background: rgba(255,255,255,.1); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero__visual { max-width: 440px; margin: 0 auto; width: 100%; }
  .float-pill--a { right: 0; }
  .float-pill--b { left: 0; }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--tight { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section--mint { background: var(--section-mint); }
.section--dark { background: var(--dark); color: #E6F2EE; }
.section--dark .section__head p { color: #A7C4BC; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section__head p { color: var(--ink-2); font-size: 1.08rem; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow);
}
.card__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.card__head h3 { margin: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-2--center { align-items: center; gap: 3rem; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; list-style: none; padding: 0; margin: 0; counter-reset: none; }
.step { position: relative; padding: 2rem 1.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step p { color: var(--ink-2); margin: 0; }
.step__n {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; margin-bottom: 1.1rem;
  background: var(--mint-100); color: var(--green-700); font-weight: 800; font-size: 1.15rem;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Formularios ---------- */
.field { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.25rem; }
.field > span { font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.field > span b { color: var(--green-600); }
.field--big .input-wrap input { font-size: 1.5rem; font-weight: 800; }
.field--inline { margin: 0; }
.input-wrap {
  display: flex; align-items: center; gap: .5rem; background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 0 1rem; transition: border-color .2s, box-shadow .2s;
}
.input-wrap:focus-within { border-color: var(--green-500); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green-500) 18%, transparent); }
.input-wrap em { font-style: normal; color: var(--muted); font-weight: 700; }
.input-wrap input { border: 0; outline: 0; background: transparent; padding: .85rem 0; width: 100%; font-weight: 700; font-size: 1.05rem; min-width: 0; }
select {
  border: 1.5px solid var(--border); background: var(--bg); border-radius: var(--radius-sm); padding: .6rem 1rem; font-weight: 700; cursor: pointer;
}
.section--dark select { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); color: #fff; }
.section--dark select option { color: #0B2B26; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; background: var(--mint-100); outline-offset: 6px; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--green-600); border: 4px solid var(--surface); box-shadow: 0 2px 8px rgba(4,120,87,.4); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--green-600); border: 4px solid var(--surface); box-shadow: 0 2px 8px rgba(4,120,87,.4); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .row-2 { grid-template-columns: 1fr; } }

/* ---------- Calculadora ---------- */
.calc { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); padding: clamp(1.1rem, 3vw, 2.2rem); }
.tabs { display: inline-flex; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 4px; margin-bottom: 1.75rem; max-width: 100%; }
.tab { border: 0; background: transparent; padding: .6em 1.2em; border-radius: 999px; font-weight: 700; cursor: pointer; color: var(--muted); font-size: .95rem; }
.tab.is-active { background: var(--green-600); color: #fff; box-shadow: 0 4px 12px rgba(5,150,105,.3); }
.calc__grid { display: grid; grid-template-columns: 360px 1fr; gap: 2.5rem; }
.calc__result { background: var(--bg); border-radius: var(--radius); padding: clamp(1.1rem, 3vw, 1.75rem); border: 1px solid var(--border); min-width: 0; }
.result-main span { color: var(--muted); font-weight: 600; }
.result-main strong { display: block; font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.035em; color: var(--green-600); line-height: 1.1; margin: .2rem 0 1rem; }
.result-split { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; font-size: .95rem; color: var(--ink-2); }
.result-split b { color: var(--ink); margin-left: .3rem; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .45rem; vertical-align: 0; }
.dot--ink { background: #8FB5AB; }
.dot--green { background: var(--green-500); }
.dot--coin { background: var(--coin); }
.chart { width: 100%; height: auto; margin-top: 1.25rem; overflow: visible; }
.chart text { font-size: 13px; fill: var(--muted); font-family: var(--font); }
.chart .grid { stroke: var(--border); stroke-dasharray: 4 6; }
[data-show] { display: none; }
.calc[data-mode="proyeccion"] [data-show="proyeccion"],
.calc[data-mode="meta"] [data-show="meta"] { display: flex; }
@media (max-width: 900px) { .calc__grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- UF ---------- */
.convert { display: grid; grid-template-columns: 1fr auto 1fr; gap: .75rem; align-items: center; }
.convert .field { margin-bottom: 0; }
.convert__arrow { font-size: 1.4rem; color: var(--green-600); padding-top: 1.6rem; }
@media (max-width: 480px) { .convert { grid-template-columns: 1fr; } .convert__arrow { padding: 0; text-align: center; transform: rotate(90deg); } }
.inflation { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: .5rem 0 1rem; }
.inflation div { background: var(--bg); border-radius: var(--radius-sm); padding: 1rem; border: 1px solid var(--border); }
.inflation span { display: block; font-size: .85rem; color: var(--muted); font-weight: 600; }
.inflation strong { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.inflation__loss strong { color: #DC2626; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .inflation__loss strong { color: #F87171; } }
.bar-compare { height: 12px; border-radius: 999px; background: color-mix(in srgb, #DC2626 25%, transparent); overflow: hidden; }
.bar-compare span { display: block; height: 100%; background: var(--green-500); border-radius: inherit; transition: width .4s ease; }

/* ---------- Metas ---------- */
.goals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.goal {
  text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem;
  cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s; display: flex; flex-direction: column;
}
.goal:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--green-500); }
.goal__icon { font-size: 2rem; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--mint-50); margin-bottom: 1rem; }
.goal p { color: var(--ink-2); font-size: .95rem; flex: 1; }
.goal__tag { font-size: .82rem; font-weight: 700; color: var(--green-600); }
.goal__tag::after { content: " · Calcular →"; }
@media (max-width: 900px) { .goals { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .goals { grid-template-columns: 1fr; } }

/* ---------- 50/30/20 ---------- */
.budget { background: var(--surface); border-radius: 24px; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); border: 1px solid var(--border); }
.budget__row { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.budget__row--hl strong { color: var(--green-600); }
.budget__label b { margin-right: .35rem; }
.budget__label small { display: block; color: var(--muted); font-size: .82rem; margin-left: 1.3rem; }
.budget__row strong { font-size: 1.35rem; font-weight: 800; }
.budget__bar { grid-column: 1 / -1; height: 8px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.budget__bar span { display: block; height: 100%; border-radius: inherit; }
.b-50 { background: #8FB5AB; } .b-30 { background: var(--coin); } .b-20 { background: var(--green-500); }
.budget__note { margin: 1.25rem 0 0; color: var(--ink-2); }
.budget__note b { color: var(--green-600); }

/* ---------- Comparador ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
.compare { width: 100%; border-collapse: collapse; min-width: 760px; font-size: .95rem; }
.compare th, .compare td { padding: 1.05rem 1.25rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.compare thead th { background: var(--mint-50); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--green-700); }
.compare tbody th { font-weight: 700; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare tbody tr:hover { background: color-mix(in srgb, var(--mint-50) 50%, transparent); }
.lvl { display: inline-block; padding: .25em .7em; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.lvl--1 { background: #D1FAE5; color: #065F46; }
.lvl--2 { background: #FEF3C7; color: #92400E; }
.lvl--3 { background: #FEE2E2; color: #991B1B; }
.meter { display: inline-block; width: 52px; height: 8px; border-radius: 999px; margin-right: .6rem; vertical-align: middle;
  background: linear-gradient(90deg, var(--green-500) calc(var(--v) * 25%), var(--border) 0); }

/* ---------- Retos ---------- */
.challenge { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 24px; padding: clamp(1.25rem, 3vw, 2.25rem); }
.challenge__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; flex-wrap: wrap; }
.challenge__head p { color: #A7C4BC; max-width: 560px; }
.challenge__head .field > span { color: #CFE9E1; }
.challenge__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1rem 0 0; }
.challenge__stats span { display: block; font-size: .82rem; color: #A7C4BC; font-weight: 600; }
.challenge__stats strong { font-size: clamp(1.2rem, 3vw, 1.7rem); font-weight: 800; color: #fff; }
.challenge__stats div:first-child strong { color: #6EE7B7; }
.weeks { display: grid; grid-template-columns: repeat(13, 1fr); gap: 6px; margin: 1.5rem 0 1.25rem; }
.week {
  aspect-ratio: 1; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04);
  color: #A7C4BC; font-size: .72rem; font-weight: 700; cursor: pointer; display: grid; place-items: center; padding: 0;
  transition: background .15s, transform .15s;
}
.week:hover { transform: scale(1.08); border-color: #6EE7B7; }
.week.is-done { background: var(--green-500); border-color: var(--green-500); color: #053B2D; }
@media (max-width: 640px) { .weeks { grid-template-columns: repeat(7, 1fr); } .challenge__stats { grid-template-columns: 1fr 1fr 1fr; gap: .5rem; } }

.challenge-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.mini { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 1.6rem; }
.mini p { color: #A7C4BC; margin-bottom: .6rem; }
.mini__icon { font-size: 1.8rem; display: block; margin-bottom: .75rem; }
.mini__result { color: #fff !important; font-weight: 600; }
.mini__result b { color: var(--coin); font-size: 1.2rem; }
.inline-input { width: 90px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: 8px; padding: .2em .5em; color: #fff; font-weight: 700; }
@media (max-width: 860px) { .challenge-cards { grid-template-columns: 1fr; } }

/* ---------- Tips ---------- */
.tips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.tip { padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.tip span { font-weight: 800; color: var(--green-500); font-size: .9rem; display: block; margin-bottom: .6rem; }
.tip p { color: var(--ink-2); font-size: .95rem; margin: 0; }
@media (max-width: 960px) { .tips { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tips { grid-template-columns: 1fr; } }

/* ---------- Cifras e historias ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 5rem; }
.stats div { text-align: center; padding: 1.5rem; }
.stats strong { display: block; font-size: clamp(2.2rem, 4.5vw, 3rem); font-weight: 800; color: var(--green-600); letter-spacing: -.03em; }
.stats span { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; margin-bottom: 3rem; } }
.stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.story { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; gap: 1rem; box-shadow: var(--shadow); }
.story .chip { align-self: flex-start; }
.story blockquote { margin: 0; font-size: 1.02rem; color: var(--ink); flex: 1; }
.story figcaption { display: flex; align-items: center; gap: .75rem; }
.story figcaption small { display: block; color: var(--muted); }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: hsl(var(--h) 55% 42%); flex: none; }
@media (max-width: 900px) { .stories { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 1.3rem 2.5rem 1.3rem 0; font-weight: 700; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--mint-50); color: var(--green-600); font-size: 1.2rem; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 1.25rem; margin: 0; }

/* ---------- Lista de espera ---------- */
.waitlist {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; border-radius: 28px; padding: clamp(1.5rem, 5vw, 3.5rem);
  background: linear-gradient(135deg, var(--green-700), var(--green-600) 55%, var(--green-500)); color: #fff; box-shadow: var(--shadow-lg);
}
.waitlist h2 { color: #fff; margin-top: .75rem; }
.waitlist p { color: #D1FAE5; }
.waitlist .chip--coin { color: #8A5A00; background: #FFF4DA; }
.waitlist__form { display: flex; flex-wrap: wrap; gap: .75rem; }
.waitlist__form input { flex: 1 1 220px; border: 0; border-radius: 999px; padding: 1rem 1.4rem; font-size: 1rem; background: #fff; color: #0B2B26; min-width: 0; }
.waitlist__form .btn--primary { background: var(--dark); box-shadow: none; }
.waitlist__form .btn--primary:hover { background: #000; }
.waitlist__form .fine { flex-basis: 100%; color: #D1FAE5; margin: 0; }
@media (max-width: 860px) { .waitlist { grid-template-columns: 1fr; } }

/* ---------- Venta del dominio ---------- */
.sale {
  display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; padding: clamp(1.5rem, 4vw, 2.75rem);
  border-radius: 28px; border: 2px dashed var(--coin); background: var(--coin-soft);
}
.sale__badge { width: 110px; height: 110px; border-radius: 28px; background: var(--surface); display: grid; place-items: center; box-shadow: var(--shadow); }
.sale h2 { margin-top: .6rem; }
.sale p { color: var(--ink-2); margin-bottom: .75rem; }
.sale__points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.sale__cta { display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.sale__mail { font-weight: 700; color: var(--ink); text-decoration: none; font-size: .95rem; }
.sale__mail:hover { color: var(--green-600); }
@media (max-width: 900px) { .sale { grid-template-columns: 1fr; text-align: center; } .sale__badge { margin: 0 auto; } .sale__points { justify-content: center; } }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #A7C4BC; padding: 4rem 0 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer a { color: #A7C4BC; text-decoration: none; }
.footer a:hover { color: #6EE7B7; }
.footer .brand { margin-bottom: 1rem; color: #fff; }
.footer__legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding-top: 1.5rem; font-size: .82rem; }
.footer__legal p { margin: 0; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-pill, .sale-bar__dot { animation: none; }
}
