/* Hormiga — estilos. Mobile-first: todo está pensado para pantallas de 360–430 px
   y se amplía en tablet/escritorio con media queries al final de cada bloque.
   Sistema visual claro: papel cálido, tarjetas blancas con sombras suaves,
   esmeralda para ganancias, coral para pérdidas e índigo para lo "Pro".
   Tipografía: Geist (interfaz y números) + Instrument Serif en cursiva para acentos. */
:root {
  /* Paleta cálida: papel crema, terracota (firma de la marca), azafrán, verde bosque y vino */
  --bg: #fbf5ec;
  --bg-2: #f4ece0;
  --card: #fffdf9;
  --card-2: #faf3e8;
  --line: #ecdfcd;
  --line-2: #dccbb4;
  --text: #241a13;
  --text-2: #4b3d32;
  --muted: #6e5e50; /* algo más oscuro: contraste AA también sobre el fondo melocotón */
  --clay: #c2562f;
  --clay-ink: #a5441f;
  --clay-dim: #fbe5d8;
  --saffron: #f2a93b;
  --saffron-dim: #fdefd2;
  --green: #2e8b57;
  --green-ink: #23704a;
  --green-dim: #e4f1e4;
  --mint: #f9dcc4;
  --coral: #cf4038;
  --coral-ink: #ad3129;
  --coral-dim: #fbe4df;
  --blue: #3f5e9c;
  --blue-ink: #34508a;
  --blue-dim: #e7ecf6;
  --gold: #f2a93b;
  --radius: 26px;
  --radius-sm: 16px;
  --shadow-sm: 0 1px 2px rgba(74, 45, 24, .06), 0 2px 6px -2px rgba(74, 45, 24, .06);
  --shadow: 0 2px 4px rgba(74, 45, 24, .05), 0 16px 36px -18px rgba(110, 58, 26, .22);
  --shadow-lg: 0 4px 10px rgba(74, 45, 24, .06), 0 32px 70px -28px rgba(110, 58, 26, .32);
  --font: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --serif: "Fraunces", Georgia, serif;
  --gutter: 16px;
  --max: 1120px;
  color-scheme: light;
  accent-color: var(--clay);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.no-scroll { overflow: hidden; }
body {
  margin: 0; color: var(--text); font-family: var(--font);
  background: radial-gradient(900px 520px at 105% -8%, rgba(242, 169, 59, .22), transparent 65%), radial-gradient(700px 480px at -10% 2%, rgba(232, 120, 80, .14), transparent 60%), var(--bg);
  background-repeat: no-repeat;
  font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--mint); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
code { font-size: .9em; background: var(--bg-2); padding: 1px 6px; border-radius: 6px; }

/* Acentos editoriales: palabras en serif cursiva */
h1 em, h2 em, .lib-title em, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

/* ---------- Cabecera ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(251, 245, 236, .82); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid rgba(236, 223, 205, .9); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 21px; letter-spacing: -0.04em; text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--text-2); padding: 8px 12px; border-radius: 999px; transition: background .2s, color .2s; }
.nav a:hover { color: var(--text); background: rgba(36, 26, 19, .05); }
.nav .nav-cta { color: #fff; background: var(--text); font-weight: 600; padding: 9px 16px; }
.nav .nav-cta:hover { background: #3a2b20; color: #fff; }
.nav .hide-sm { display: none; }
@media (min-width: 760px) { .nav .hide-sm { display: inline-block; } }

/* ---------- Botones y chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 26px; border-radius: 999px; border: 0; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; cursor: pointer; text-decoration: none; transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s; }
.btn:active { transform: scale(0.985); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-primary { background: var(--text); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(74, 45, 24, .2), 0 10px 24px -10px rgba(74, 45, 24, .45); }
.btn-primary:hover { background: #3a2b20; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 2px 4px rgba(74, 45, 24, .2), 0 16px 32px -12px rgba(74, 45, 24, .5); }
.btn-ghost { background: var(--card); color: var(--text); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: #cbb79c; background: #fff; }
.btn-block { width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 13px; font-size: 14px; font-weight: 500; color: var(--text-2); cursor: pointer; transition: all .15s; }
.chip-btn:hover { border-color: var(--line-2); color: var(--text); }
.chip-btn.is-on { color: #fff; background: var(--text); border-color: var(--text); }
.chip { display: inline-flex; align-items: center; border-radius: 999px; padding: 6px 13px; font-weight: 600; font-size: 15px; background: var(--card-2); border: 1px solid var(--line); }
.chip.up { color: var(--green-ink); background: var(--green-dim); border-color: transparent; }
.chip.down { color: var(--coral-ink); background: var(--coral-dim); border-color: transparent; }

/* ---------- Héroe ---------- */
.hero { position: relative; isolation: isolate; padding: 36px 0 8px; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: -64px 0 auto; height: 780px; pointer-events: none;
  background:
    radial-gradient(40% 50% at 88% 12%, rgba(242, 169, 59, .45), transparent 70%),
    radial-gradient(35% 40% at 8% 30%, rgba(232, 120, 80, .35), transparent 70%),
    radial-gradient(30% 35% at 60% 0%, rgba(255, 196, 150, .45), transparent 70%);
  filter: blur(8px); }
.hero > .wrap { position: relative; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 500; color: var(--text-2); background: rgba(255, 255, 255, .7); border: 1px solid var(--line); padding: 5px 12px 5px 10px; border-radius: 999px; box-shadow: var(--shadow-sm); backdrop-filter: blur(8px); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-dim); }
h1, h2, h3 { line-height: 1.05; letter-spacing: -0.045em; margin: 0; font-weight: 600; }
.hero h1 { font-size: clamp(44px, 12vw, 88px); margin: 18px 0 14px; max-width: 15ch; }
.hero h1 em { color: var(--green-ink); }
.hero .sub { color: var(--text-2); font-size: 19px; margin: 0 0 14px; max-width: 38ch; }
.trust { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 26px; padding: 0; list-style: none; color: var(--muted); font-size: 14px; font-weight: 500; }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--green-dim) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%2323704a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.tm-page-head { padding: 30px 0 8px; }
.tm-page-head h1 { font-size: clamp(38px, 9vw, 64px); margin: 14px 0 8px; }
.tm-page-head p { color: var(--text-2); margin: 0 0 20px; }

/* ---------- Máquina del Tiempo ---------- */
.tm { display: grid; gap: 14px; }
.tm-form, .tm-result { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.tm-form { display: grid; gap: 20px; }
.field > label, .field > .label { display: block; font-weight: 500; font-size: 13px; color: var(--muted); margin-bottom: 8px; letter-spacing: .01em; }
.field .chips { margin-top: 10px; }
.field > label.switch { display: flex; margin: 0; font-size: 15px; color: var(--text-2); }
.asset-picker { position: relative; }
.asset-current { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 16px; border-radius: var(--radius-sm); background: var(--card-2); border: 1px solid var(--line); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; cursor: pointer; text-align: left; transition: border-color .2s, background .2s; }
.asset-current:hover { border-color: var(--line-2); background: #fff; }
.asset-current small { color: var(--muted); font-weight: 500; font-size: 14px; letter-spacing: 0; }
.asset-current::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); }
.asset-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px rgba(36, 26, 19, .05); }
.asset-pop { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 8px; }
.asset-pop input { width: 100%; min-height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2); padding: 0 14px; font-size: 16px; }
.asset-pop ul { list-style: none; margin: 8px 0 0; padding: 0; max-height: 300px; overflow: auto; overscroll-behavior: contain; }
.asset-pop li { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; cursor: pointer; }
.asset-pop li b { font-weight: 600; }
.asset-pop li small { margin-left: auto; color: var(--muted); font-size: 13px; text-align: right; }
.asset-pop li:hover, .asset-pop li[aria-selected=true] { background: var(--bg-2); }
.asset-pop li.empty { color: var(--muted); cursor: default; }
.money-input { position: relative; }
.money-input span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-weight: 500; font-size: 22px; color: var(--muted); }
.money-input input { width: 100%; min-height: 58px; border-radius: var(--radius-sm); background: var(--card-2); border: 1px solid var(--line); padding: 0 16px 0 36px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; transition: border-color .2s, box-shadow .2s, background .2s; }
.money-input input:focus, .text-input:focus, .pct-input input:focus, .date-row select:focus, .asset-pop input:focus { outline: 0; border-color: var(--text); background: #fff; box-shadow: 0 0 0 4px rgba(36, 26, 19, .06); }
.money-input small { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 500; font-size: 14px; }
.date-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.date-row select { width: 100%; min-height: 54px; border-radius: var(--radius-sm); background-color: var(--card-2); border: 1px solid var(--line); padding: 0 12px; font-size: 17px; font-weight: 500; appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 500; font-size: 15px; color: var(--text-2); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { width: 46px; height: 28px; border-radius: 999px; background: var(--line-2); position: relative; flex: none; transition: background .2s; }
.switch .track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(74, 45, 24, .25); transition: transform .2s; }
.switch input:checked + .track { background: var(--green); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--text); outline-offset: 2px; }
.monthly-wrap { margin-top: 12px; }

.tm-result { position: relative; overflow: hidden; scroll-margin-top: 80px; }
.tm-result::before { content: ""; position: absolute; inset: 0 0 auto; height: 220px; background: radial-gradient(60% 100% at 85% 0%, rgba(242, 169, 59, .28), transparent 70%); pointer-events: none; transition: background .4s; }
.tm-result.is-down::before { background: radial-gradient(60% 100% at 85% 0%, rgba(222, 110, 95, .3), transparent 70%); }
.tm-result > * { position: relative; }
.res-lead { margin: 0; color: var(--text-2); font-size: 16px; }
.res-lead b { color: var(--text); font-weight: 600; }
.res-label { margin: 14px 0 2px; font-weight: 500; color: var(--muted); font-size: 15px; }
.res-big { margin: 0; font-size: clamp(52px, 16vw, 104px); font-weight: 600; letter-spacing: -0.055em; line-height: .95; color: var(--green-ink); font-variant-numeric: tabular-nums; word-break: break-all; }
.is-down .res-big { color: var(--coral-ink); }
.res-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 6px; }
.res-chips .chip:not(.up):not(.down) { color: var(--text-2); }
.res-note { margin: 8px 0 0; font-size: 14px; color: #8a5a00; background: #fff6e3; border-radius: 10px; padding: 8px 12px; }
.chart { position: relative; margin: 16px -6px 0; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-axis { fill: var(--muted); font-size: 11px; font-family: var(--font); font-weight: 500; font-variant-numeric: tabular-nums; }
.chart-cursor { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 3; }
.chart-tip { position: absolute; top: -8px; pointer-events: none; background: rgba(255, 255, 255, .96); border: 1px solid var(--line); border-radius: 12px; padding: 8px 11px; font-size: 13px; display: grid; gap: 2px; white-space: nowrap; box-shadow: var(--shadow-lg); color: var(--text-2); font-variant-numeric: tabular-nums; }
.chart-tip b { color: var(--text); font-weight: 600; }
.chart-tip i, .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); font-weight: 500; margin: 6px 0 16px; }
.compare { display: grid; gap: 8px; }
.cmp { background: var(--card-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 10px; }
.cmp span { color: var(--muted); font-size: 14px; font-weight: 500; }
.cmp b { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; text-align: right; font-variant-numeric: tabular-nums; }
.cmp-diff { grid-column: 1 / -1; font-size: 13px; font-weight: 600; }
.cmp-diff.up { color: var(--green-ink); }
.cmp-diff.down { color: var(--coral-ink); }
.res-insight { margin: 16px 0; color: var(--text-2); font-size: 16px; }
.disclaimer { margin: 14px 0 0; font-size: 13px; color: var(--muted); border-left: 2px solid var(--gold); padding: 3px 0 3px 12px; }
.data-note { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
@media (min-width: 900px) {
  .tm { grid-template-columns: 380px 1fr; align-items: start; gap: 18px; }
  .tm-form { position: sticky; top: 84px; padding: 24px; }
  .tm-result { padding: 30px; }
  .compare { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
  .cmp { grid-template-columns: 1fr; align-content: start; gap: 4px; }
  .cmp b { text-align: left; font-size: 24px; order: 2; }
  .cmp span { order: 1; }
  .cmp-diff { order: 3; }
}

/* ---------- Secciones de la página de inicio ---------- */
.section { padding: 88px 0 8px; }
.section h2 { font-size: clamp(34px, 8.5vw, 58px); margin-bottom: 12px; }
.section h2 em { color: var(--green-ink); }
.section .lede { color: var(--text-2); margin: 0 0 28px; max-width: 46ch; font-size: 18px; }
.kicker { display: block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green-ink); margin-bottom: 12px; }
.steps { display: grid; gap: 12px; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; box-shadow: var(--shadow-sm); }
.step::before { counter-increment: s; content: "0" counter(s); display: block; font-family: var(--serif); font-style: italic; font-size: 44px; line-height: 1; color: var(--green); margin-bottom: 18px; }
.step h3 { font-size: 22px; margin-bottom: 6px; letter-spacing: -0.03em; }
.step p { margin: 0; color: var(--text-2); }
.examples { display: grid; gap: 12px; }
.ex { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.ex:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.ex small { color: var(--muted); font-weight: 500; }
.ex .ex-big { display: block; font-size: 44px; font-weight: 600; letter-spacing: -0.05em; color: var(--green-ink); margin: 10px 0 2px; font-variant-numeric: tabular-nums; }
.ex .ex-big.down { color: var(--coral-ink); }
.ex .ex-go { display: inline-block; margin-top: 14px; color: var(--text); font-weight: 600; font-size: 15px; }
.pro-teaser { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 32px; padding: 30px 22px; box-shadow: var(--shadow); }
.pro-teaser::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 70% at 100% 0%, rgba(232, 120, 80, .35), transparent 70%), radial-gradient(40% 60% at 0% 100%, rgba(242, 169, 59, .25), transparent 70%); pointer-events: none; }
.pro-teaser > * { position: relative; }
.pro-teaser ul { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 12px; }
.pro-teaser h2 em { color: var(--blue-ink); }
.pro-teaser li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--text-2); }
.pro-teaser li::before { content: "✦"; color: var(--blue); }
.tag-soon { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-ink); background: var(--blue-dim); padding: 5px 11px; border-radius: 999px; margin-bottom: 14px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 20px; margin-bottom: 8px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; padding: 19px 32px 19px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0 0 20px; color: var(--text-2); }
@media (min-width: 760px) {
  .steps, .examples { grid-template-columns: repeat(3, 1fr); }
  .pro-teaser { padding: 52px; }
  .pro-teaser ul { grid-template-columns: 1fr 1fr; }
  .faq .wrap { max-width: 820px; }
}

/* ---------- Pie ---------- */
.foot { margin-top: 96px; border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: 14px; background: var(--card-2); }
.foot .brand { color: var(--text); margin-bottom: 10px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 16px 0; }
.foot nav a { text-decoration: none; font-weight: 500; color: var(--text-2); }
.foot nav a:hover { color: var(--text); }
.foot .legal { font-size: 13px; line-height: 1.6; max-width: 72ch; }

/* ---------- Páginas legales / SEO ---------- */
.doc { padding: 40px 0 0; max-width: 760px; }
.doc h1 { font-size: clamp(36px, 8vw, 56px); margin: 14px 0 16px; }
.doc h2 { font-size: 24px; margin: 34px 0 8px; letter-spacing: -0.03em; }
.doc p, .doc li { color: var(--text-2); }
.doc .updated { color: var(--muted); font-size: 14px; }
.seo-answer { font-size: clamp(56px, 16vw, 104px); font-weight: 600; letter-spacing: -0.055em; color: var(--green-ink); line-height: 1; margin: 8px 0 12px; font-variant-numeric: tabular-nums; }
.seo-answer.down { color: var(--coral-ink); }
.seo-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.seo-table th, .seo-table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); }
.seo-table td:last-child, .seo-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.link-grid { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.link-grid a { text-decoration: none; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 13px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.link-grid a:hover { border-color: var(--line-2); color: var(--text); }

/* ---------- Ventanas (compartir, Pro) ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; align-items: end; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(36, 26, 19, .32); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-card { position: relative; background: var(--card); border-radius: 28px 28px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); max-height: 94vh; overflow: auto; box-shadow: var(--shadow-lg); animation: up .32s cubic-bezier(.2, .8, .2, 1); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.modal-card h2 { font-size: 26px; margin: 0 44px 16px 0; }
.modal-x { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--bg-2); font-size: 22px; color: var(--text-2); cursor: pointer; }
.modal-x:hover { background: var(--line); }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-2); border-radius: 999px; padding: 4px; margin-bottom: 16px; }
.seg button { border: 0; background: transparent; min-height: 40px; border-radius: 999px; font-weight: 500; font-size: 15px; color: var(--muted); cursor: pointer; transition: all .2s; }
.seg button[aria-selected=true] { background: #fff; color: var(--text); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.share-preview { display: grid; place-items: center; margin-bottom: 16px; min-height: 200px; padding: 8px; background: var(--bg-2); border-radius: 20px; }
.share-preview img { border-radius: 14px; box-shadow: var(--shadow-lg); }
.share-preview.is-story img { height: min(50vh, 440px); width: auto; aspect-ratio: 9 / 16; }
.share-preview.is-square img { width: min(100%, 320px); aspect-ratio: 1; }
.share-preview.is-loading img { opacity: .4; }
.share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share-actions .btn-primary { grid-column: 1 / -1; }
.fine { font-size: 12px; color: var(--muted); margin: 12px 0 0; line-height: 1.5; }
.fine a { color: var(--text-2); }
@media (min-width: 640px) {
  .modal { align-items: center; justify-items: center; }
  .modal-card { border-radius: 28px; width: 448px; padding: 28px; }
}

/* ---------- Tu Fecha de Libertad ---------- */
.lib { max-width: 640px; padding-top: 30px; }
.lib-title { font-size: clamp(38px, 10.5vw, 62px); margin: 16px 0 12px; }
.lib-title em { color: var(--green-ink); }
.lib-title.sm { font-size: clamp(32px, 8.5vw, 46px); }
.lib .sub { color: var(--text-2); font-size: 18px; margin: 0 0 22px; }
.lib-perks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.lib-perks li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; display: grid; gap: 2px; box-shadow: var(--shadow-sm); }
.lib-perks b { font-weight: 600; }
.lib-perks span { color: var(--muted); font-size: 15px; }
.lib-alt { text-align: center; color: var(--muted); margin: 16px 0; }
.link-btn { background: none; border: 0; padding: 4px; color: var(--text); font-weight: 600; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.link-btn:hover { text-decoration-color: var(--text); }
.nav-user { color: var(--muted); font-size: 13px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-link { background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; font-weight: 500; font-size: 14px; cursor: pointer; }
.progress { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress span { display: block; height: 100%; width: 20%; background: var(--text); border-radius: 99px; transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.step-count { color: var(--muted); font-weight: 500; font-size: 14px; margin: 12px 0 20px; }
.wstep { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 14px; animation: stepIn .35s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateX(16px); } }
.wstep legend { font-size: clamp(32px, 8.5vw, 44px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.05; padding: 0; margin-bottom: 12px; }
.hint { color: var(--muted); margin: 0; }
.leftover { margin: 0; color: var(--text-2); background: var(--green-dim); border-radius: var(--radius-sm); padding: 13px 15px; }
.debts { display: grid; gap: 10px; }
.debt { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; display: grid; gap: 10px; box-shadow: var(--shadow-sm); }
.debt-head { display: flex; gap: 8px; }
.debt-head .text-input { flex: 1; }
.debt-x { width: 46px; flex: none; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2); font-size: 22px; cursor: pointer; color: var(--muted); }
.debt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.debt-grid label:first-child { grid-column: 1 / -1; }
.debt-grid label > span { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
.money-input.sm input { min-height: 50px; font-size: 19px; padding-left: 30px; }
.money-input.sm span { font-size: 18px; left: 13px; }
.pct-input { position: relative; }
.pct-input input { width: 100%; min-height: 50px; border-radius: var(--radius-sm); background: var(--card-2); border: 1px solid var(--line); padding: 0 34px 0 14px; font-size: 19px; font-weight: 600; }
.pct-input span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 500; }
.text-input { width: 100%; min-height: 52px; border-radius: var(--radius-sm); background: var(--card-2); border: 1px solid var(--line); padding: 0 15px; font-size: 16px; transition: border-color .2s, box-shadow .2s, background .2s; }
.code-input { font-size: 28px; font-weight: 600; letter-spacing: .4em; text-align: center; }
.form-error { color: var(--coral-ink); font-weight: 500; margin: 12px 0 0; }
.wnav { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 24px; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 12px; margin-bottom: 14px; box-shadow: var(--shadow); }
.auth-card form { display: grid; gap: 10px; }
.btn-google { background: #fff; color: var(--text); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); }
.btn-google:hover { border-color: #cbb79c; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.fi-hero { position: relative; overflow: hidden; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 32px; padding: 30px 16px 24px; margin-bottom: 14px; box-shadow: var(--shadow); }
.fi-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 70%; background: radial-gradient(60% 80% at 50% 0%, rgba(242, 169, 59, .38), transparent 70%); pointer-events: none; }
.fi-hero > * { position: relative; }
.fi-month { margin: 16px 0 0; font-family: var(--serif); font-style: italic; font-size: 34px; font-weight: 400; letter-spacing: -0.01em; }
.fi-year { margin: -4px 0 0; font-size: clamp(100px, 31vw, 176px); font-weight: 600; letter-spacing: -0.07em; line-height: .9; color: var(--green-ink); font-variant-numeric: tabular-nums; }
.countdown { display: grid; grid-template-columns: repeat(2, minmax(0, 120px)); justify-content: center; gap: 8px; margin: 22px 0 16px; }
.countdown div { background: var(--card-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 4px; display: grid; }
.countdown b { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.countdown span { font-size: 12px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.fi-explain { color: var(--text-2); margin: 0 auto; max-width: 44ch; font-size: 16px; }
.fi-none { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; margin: 16px 0 8px; color: var(--coral-ink); }
.saved { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 600; color: var(--green-ink); background: var(--green-dim); padding: 4px 10px; border-radius: 99px; }
.saved.pop { animation: pop .5s ease; }
@keyframes pop { 40% { transform: scale(1.12); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.card-title { font-size: 21px; margin-bottom: 6px; letter-spacing: -0.03em; }
.whatif-impact { font-size: 18px; margin: 0 0 16px; min-height: 27px; color: var(--text-2); }
b.up, .up > b { color: var(--green-ink); }
b.down { color: var(--coral-ink); }
.slider { display: grid; gap: 8px; margin-bottom: 20px; }
.slider > span { display: flex; justify-content: space-between; gap: 10px; font-weight: 500; color: var(--text-2); font-size: 15px; }
.slider b { color: var(--text); font-size: 16px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: var(--line); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 99px; background: var(--line); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 1px var(--line-2), 0 2px 6px rgba(74, 45, 24, .2), inset 0 0 0 7px var(--text); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--text); border: 4px solid #fff; box-shadow: 0 0 0 1px var(--line-2), 0 2px 6px rgba(74, 45, 24, .2); }
.methods { display: grid; gap: 10px; margin: 14px 0; }
.method { position: relative; background: var(--card-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; }
.method:has(.badge:not([hidden])) { background: #fff; border-color: rgba(46, 139, 87, .45); box-shadow: 0 0 0 3px var(--green-dim); }
.method h3 { font-size: 19px; margin-bottom: 4px; letter-spacing: -0.03em; }
.method-desc { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.method-date { margin: 0; font-size: 15px; color: var(--text-2); }
.method-date b { color: var(--text); font-weight: 600; }
.method-int { margin: 2px 0 8px; color: var(--muted); font-size: 14px; }
.method-order { margin: 0; padding-left: 20px; font-size: 14px; color: var(--text-2); }
.method-order small { color: var(--muted); }
.badge { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #fff; background: var(--green); padding: 4px 9px; border-radius: 99px; }
.debt-verdict { margin: 0; font-size: 16px; color: var(--text-2); }
.how summary { cursor: pointer; font-weight: 600; font-size: 17px; }
.how ul { margin: 12px 0 0; padding-left: 20px; color: var(--text-2); display: grid; gap: 8px; }
.center { text-align: center; }
.lib-loading { display: grid; place-items: center; min-height: 50vh; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--text); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 640px) { .methods { grid-template-columns: 1fr 1fr; } .fi-hero { padding: 40px 28px 30px; } }
.freedom-teaser { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 32px; padding: 30px 22px; box-shadow: var(--shadow); }
.freedom-teaser::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 100% 0%, rgba(242, 169, 59, .4), transparent 70%); pointer-events: none; }
.freedom-teaser > * { position: relative; }
.freedom-teaser .fy { font-size: clamp(84px, 24vw, 140px); font-weight: 600; letter-spacing: -0.07em; color: var(--green-ink); line-height: .9; margin: 10px 0 16px; }
@media (min-width: 760px) { .freedom-teaser { padding: 52px; } }

/* ---------- Funciones Pro ("puertas falsas") ---------- */
.pro-badge { display: inline-flex; align-items: center; font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: .08em; color: var(--blue-ink); background: var(--blue-dim); border: 1px solid rgba(63, 94, 156, .2); padding: 1px 6px; border-radius: 6px; vertical-align: 2px; margin-left: 4px; }
.pro-tools { display: grid; gap: 10px; margin: 0 0 16px; }
button.switch { background: none; border: 0; padding: 4px 0; text-align: left; }
.pro-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tool-btn { position: relative; display: grid; justify-items: center; gap: 4px; padding: 15px 4px 11px; border-radius: 14px; border: 1px solid var(--line); background: var(--card-2); font-weight: 500; font-size: 13px; color: var(--text-2); cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.tool-btn i { font-style: normal; font-size: 20px; line-height: 1; }
.tool-btn .pro-badge { position: absolute; top: -8px; right: 6px; margin: 0; background: #fff; }
.tool-btn:hover, .tool-tile:hover, .prob-card:hover { border-color: rgba(63, 94, 156, .4); background: #fff; box-shadow: 0 0 0 3px var(--blue-dim); }
.prob-card { width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; text-align: left; position: relative; cursor: pointer; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; color: var(--text); box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
.prob-card > .pro-badge { position: absolute; top: 14px; right: 14px; }
.prob-ring { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--blue) 0 72%, var(--line) 72% 100%); position: relative; }
.prob-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.prob-ring span { position: relative; font-weight: 600; font-size: 20px; filter: blur(3px); }
.prob-text { display: grid; gap: 3px; padding-right: 30px; }
.prob-text b { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.prob-text span { color: var(--muted); font-size: 14px; }
.prob-text em { font-style: normal; color: var(--blue-ink); font-weight: 600; font-size: 15px; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.tool-tile { position: relative; display: grid; gap: 2px; text-align: left; padding: 16px 13px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--card-2); cursor: pointer; color: var(--text); transition: border-color .2s, background .2s, box-shadow .2s; }
.tool-tile > span { font-size: 22px; margin-bottom: 4px; }
.tool-tile b { font-size: 15px; font-weight: 600; }
.tool-tile small { color: var(--muted); font-size: 12px; }
.tool-tile .pro-badge { position: absolute; top: 12px; right: 12px; }
@media (min-width: 640px) { .tool-grid { grid-template-columns: repeat(3, 1fr); } }
.pro-modal .modal-card { text-align: center; }
.pro-tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-ink); background: var(--blue-dim); padding: 5px 11px; border-radius: 99px; }
.pro-emoji { font-size: 48px; margin: 12px 0 6px; }
.pro-modal h2 { margin: 0 0 8px; font-size: 28px; }
.pro-desc { color: var(--text-2); margin: 0 0 18px; }
.coupon-teaser { display: flex; align-items: center; gap: 14px; text-align: left; background: linear-gradient(135deg, var(--green-dim), var(--blue-dim)); border: 1px dashed rgba(35, 112, 74, .4); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 14px; }
.coupon-teaser b { font-size: 40px; font-weight: 600; color: var(--green-ink); letter-spacing: -0.05em; line-height: 1; }
.coupon-teaser span { font-weight: 500; font-size: 15px; color: var(--text-2); }
.pro-lead { margin: 0 0 16px; color: var(--text-2); }
.pro-modal form { display: grid; gap: 10px; }
.coupon { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; text-align: left; border: 1.5px dashed rgba(35, 112, 74, .5); border-radius: var(--radius-sm); padding: 13px 15px; margin-bottom: 10px; background: var(--green-dim); }
.coupon span { grid-column: 1; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.coupon b { grid-column: 1; font-size: clamp(18px, 5.4vw, 23px); font-weight: 600; letter-spacing: .02em; color: var(--green-ink); white-space: nowrap; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.coupon .btn { grid-column: 2; grid-row: 1 / 3; min-height: 42px; padding: 0 16px; }

/* ---------- Página Hormiga Pro ---------- */
.pro-hero::before { background: radial-gradient(40% 50% at 85% 10%, rgba(232, 120, 80, .5), transparent 70%), radial-gradient(35% 40% at 10% 30%, rgba(242, 169, 59, .35), transparent 70%); }
.pro-hero h1 { font-size: clamp(60px, 17vw, 120px); margin: 14px 0 12px; }
.pro-hero h1 em { color: var(--blue-ink); }
.pro-hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.feat-grid { display: grid; gap: 8px; }
.feat { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 0 12px; align-items: start; padding: 16px 46px 16px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--card); cursor: pointer; box-shadow: var(--shadow-sm); transition: border-color .2s, background .2s, opacity .2s, box-shadow .2s; }
.feat input { position: absolute; opacity: 0; pointer-events: none; }
.feat-ico { grid-row: 1 / 3; font-size: 24px; line-height: 1.25; }
.feat b { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.feat small { color: var(--muted); font-size: 13px; }
.feat::after { content: ""; position: absolute; top: 16px; right: 16px; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2); background: #fff; transition: all .15s; }
.feat:hover { border-color: var(--line-2); }
.feat:has(input:checked) { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-dim); }
.feat:has(input:checked)::after { border-color: var(--green); background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.4 2.4L12 5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.feat:has(input:focus-visible) { outline: 2px solid var(--text); outline-offset: 2px; }
.feat.is-off { opacity: .45; }
.survey-bar { position: sticky; bottom: 0; z-index: 5; margin: 16px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(74, 45, 24, .2); }
.survey-count { margin: 0 0 8px; font-weight: 500; color: var(--muted); }
.survey-count b { color: var(--text); font-weight: 600; }
.survey-count.is-full { color: var(--green-ink); }
.survey-row { display: grid; gap: 8px; }
.survey-bar:not(.is-ready) .survey-row { display: none; } /* el correo aparece al elegir las 3 */
.survey-bar:not(.is-ready) .survey-count { margin: 0; }
.survey-done { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.founder { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 32px; padding: 30px 20px; box-shadow: var(--shadow-lg); }
.founder::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 50% at 100% 0%, rgba(242, 169, 59, .4), transparent 70%), radial-gradient(45% 45% at 0% 100%, rgba(232, 120, 80, .3), transparent 70%); pointer-events: none; }
.founder > * { position: relative; }
.founder h2 { margin-top: 16px; }
.founder-price { display: flex; align-items: center; gap: 14px; margin: 8px 0 22px; }
.founder-price b { font-size: clamp(68px, 19vw, 104px); font-weight: 600; letter-spacing: -0.06em; line-height: 1; color: var(--text); }
.founder-price span { color: var(--muted); font-weight: 500; line-height: 1.35; }
.founder-price s { color: var(--coral-ink); }
.founder-perks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.founder-perks li { display: flex; gap: 10px; font-weight: 500; color: var(--text-2); }
.founder-perks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--green-dim) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%2323704a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.spots { margin-bottom: 16px; }
.spots-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.spots-bar span { display: block; height: 100%; background: var(--green); border-radius: 99px; transition: width .8s ease; }
.spots p { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.spots b { color: var(--text); font-weight: 600; }
.founder-form { display: grid; gap: 8px; }
.founder-done { text-align: center; padding: 8px 0; }
.founder-num { margin: 0; font-family: var(--serif); font-style: italic; font-size: 80px; font-weight: 400; color: var(--green-ink); line-height: 1; }
@media (min-width: 760px) {
  .feat-grid { grid-template-columns: repeat(3, 1fr); }
  .survey-row { grid-template-columns: 1fr auto; }
  .survey-bar { margin: 16px 0 0; border: 1px solid var(--line); border-radius: 999px; padding: 8px 8px 8px 22px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; }
  .survey-bar .survey-count { margin: 0; }
  .survey-bar .form-error { grid-column: 1 / -1; margin: 0 0 6px; }
  .founder { padding: 52px; max-width: 660px; margin: 0 auto; }
}

/* ---------- Panel de administración ---------- */
.admin main { padding-top: 28px; }
.admin-tag { font-size: 12px; font-weight: 500; color: var(--muted); background: var(--bg-2); border: 1px solid var(--line); padding: 2px 8px; border-radius: 999px; letter-spacing: 0; }
.admin-login { max-width: 460px; }
.admin-head { display: grid; gap: 12px; margin-bottom: 16px; }
.admin-head h1 { font-size: 38px; }
.admin-range { grid-template-columns: repeat(4, 1fr); margin: 0; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-actions .btn { min-height: 44px; font-size: 14px; padding: 0 18px; }
.demo-banner { background: #fff8e8; border: 1px solid #f3dca6; color: #7a5200; border-radius: var(--radius-sm); padding: 11px 15px; margin: 0 0 16px; font-size: 14px; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; display: grid; gap: 2px; min-width: 0; box-shadow: var(--shadow-sm); }
.kpi span { color: var(--muted); font-size: 13px; font-weight: 500; }
.kpi b { font-size: clamp(26px, 7vw, 36px); font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi small { color: var(--muted); font-size: 12px; }
.admin-grid { display: grid; gap: 0 14px; }
.rank { display: grid; gap: 9px; margin-top: 12px; }
.rank-row { display: grid; grid-template-columns: minmax(90px, 38%) 1fr auto; align-items: center; gap: 10px; font-size: 14px; }
.rank-name { color: var(--text-2); line-height: 1.25; overflow-wrap: anywhere; }
.rank-bar { height: 10px; display: block; }
.rank-bar i { display: block; height: 100%; background: var(--green); border-radius: 0 4px 4px 0; }
.rank-row b { font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 600; }
.rank-row b small { color: var(--muted); font-weight: 500; }
.table-wrap { overflow-x: auto; margin-top: 8px; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-table th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 8px; border-bottom: 1px solid var(--line); }
.adm-table td { padding: 11px 8px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; color: var(--text-2); }
.adm-table td:not(:first-child) { white-space: nowrap; }
.adm-table td:not(:first-child), .adm-table th:not(:first-child) { text-align: right; }
.cell-bar { display: inline-block; width: 60px; height: 8px; margin-right: 8px; vertical-align: middle; }
.cell-bar i { display: block; height: 100%; background: var(--blue); border-radius: 0 3px 3px 0; }
@media (max-width: 640px) { .cell-bar { display: none; } .adm-table th, .adm-table td { padding: 9px 4px; } }
@media (min-width: 760px) {
  .admin-head { grid-template-columns: auto 1fr auto; align-items: center; }
  .admin-range { max-width: 420px; justify-self: center; width: 100%; }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .admin-grid { grid-template-columns: 1fr 1fr; }
}

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; z-index: 200; background: var(--text); color: #fff; font-weight: 500; padding: 12px 18px; border-radius: 999px; box-shadow: var(--shadow-lg); transition: all .3s ease; max-width: calc(100% - 32px); }
.toast.is-in { opacity: 1; transform: translate(-50%, 0); }

/* Aparición suave al hacer scroll (solo si JS está activo) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* =====================================================================
   Capa de personalidad (cálida). Va al final para afinar lo anterior.
   - Fraunces (serif suave, con "SOFT" al máximo) para titulares y cifras
   - Figtree para el texto · terracota como firma · azafrán para subrayar
   - Motivo de marca: la "ruta" (línea punteada con paradas) = rumbo
   ===================================================================== */
html { scrollbar-color: var(--line-2) var(--bg); }
body { caret-color: var(--clay); }
::selection { background: var(--saffron-dim); color: var(--text); }
:focus-visible { outline-color: var(--clay); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; border: 3px solid var(--bg); }
/* Grano de papel muy sutil sobre toda la página */
body::after { content: ""; position: fixed; inset: 0; z-index: 999; pointer-events: none; opacity: .32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .3 0 0 0 0 .18 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Tipografía con carácter */
h1, h2, h3, .wstep legend, .card-title, .brand { font-family: var(--display); font-weight: 600; letter-spacing: -0.025em; font-variation-settings: "SOFT" 100, "WONK" 0; }
.brand { font-weight: 700; letter-spacing: -0.03em; }
h1 em, h2 em, .lib-title em, .serif, .fi-month { font-family: var(--display); font-style: italic; font-weight: 500; letter-spacing: -0.02em; color: var(--clay-ink); font-variation-settings: "SOFT" 100, "WONK" 1; }
.hero h1 { font-size: clamp(46px, 12.5vw, 96px); line-height: .98; letter-spacing: -0.035em; max-width: 14ch; }
.hero h1 em { color: var(--clay); }
.section h2 { font-size: clamp(36px, 9vw, 64px); line-height: 1; }
.res-big, .fi-year, .ex .ex-big, .seo-answer, .founder-price b, .kpi b, .countdown b, .cmp b, .coupon-teaser b, .freedom-teaser .fy, .founder-num, .slider b {
  font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 0; font-feature-settings: "tnum", "lnum"; font-style: normal; }
.res-big { font-weight: 700; letter-spacing: -0.04em; }
.fi-year, .freedom-teaser .fy { font-weight: 700; color: var(--clay); letter-spacing: -0.045em; }
.fi-month { font-size: 38px; color: var(--text); }

/* Subrayado "a mano" en el titular: lo único que se anima al cargar */
.scribble { position: relative; white-space: nowrap; }
.scribble svg { position: absolute; left: -2%; bottom: -0.12em; width: 104%; height: .32em; overflow: visible; color: var(--saffron); }
.scribble path { fill: none; stroke: currentColor; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; animation: scribble 1.1s cubic-bezier(.16, 1, .3, 1) .35s forwards; }
@keyframes scribble { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .scribble path { animation: none; stroke-dashoffset: 0; } }

/* Botones cálidos */
.btn-primary { background: var(--clay); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(110, 40, 10, .25), 0 10px 22px -10px rgba(194, 86, 47, .7); }
.btn-primary:hover { background: var(--clay-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 2px 4px rgba(110, 40, 10, .25), 0 16px 30px -12px rgba(194, 86, 47, .75); }
.btn .ico { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .ico { transform: translateX(3px); }
.nav .nav-cta { background: var(--text); }
.chip-btn.is-on { background: var(--text); border-color: var(--text); }
.chip.up { background: var(--green-dim); }
.link-btn { text-decoration-color: var(--saffron); text-decoration-thickness: 2px; }

/* Iconos propios */
.ico { width: 1.2em; height: 1.2em; display: inline-block; flex: none; vertical-align: -0.22em; }
.ico-badge { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--clay-dim); color: var(--clay-ink); }
.ico-badge .ico { width: 22px; height: 22px; }

/* Sello "Próximamente" / "Plazas limitadas" (en lugar de etiquetas sobre los títulos) */
.stamp { display: inline-block; vertical-align: middle; margin-left: .35em; padding: .3em .7em .25em; border: 1.5px solid currentColor; border-radius: 8px; font-family: var(--font); font-style: normal; font-size: clamp(11px, 2.6vw, 13px); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1; color: var(--clay-ink); transform: rotate(-5deg) translateY(-.4em); background: rgba(255, 253, 249, .7); }
.stamp.blue { color: var(--blue-ink); }
.stamp.green { color: var(--green-ink); }

/* Fila de confianza del héroe */
.trust li::before { background-color: var(--saffron-dim); }

/* Aviso legal sin borde de color: icono + texto */
.disclaimer { border-left: 0; padding: 0; display: flex; gap: 8px; align-items: flex-start; }
.disclaimer::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 1px; background: var(--muted); -webkit-mask: url("/assets/icons.svg#i-info") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 11v5M12 8v.2'/%3E%3C/svg%3E") center / contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 11v5M12 8v.2'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Resultado de la Máquina del Tiempo: un poco de sol detrás de la cifra */
.tm-result::before { background: radial-gradient(55% 100% at 88% 0%, rgba(242, 169, 59, .28), transparent 70%); }

/* ----- "Cómo funciona" como una ruta con paradas ----- */
.band { background: linear-gradient(180deg, transparent, var(--bg-2) 18%, var(--bg-2) 82%, transparent); padding-bottom: 72px; }
.route { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 34px; position: relative; }
.route::before { content: ""; position: absolute; left: 27px; top: 30px; bottom: 30px; border-left: 2.5px dotted var(--clay); opacity: .55; }
.route li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.route .stop { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 2px solid var(--clay); color: var(--clay); font-family: var(--display); font-weight: 700; font-size: 26px; font-variation-settings: "SOFT" 100; box-shadow: 0 0 0 6px var(--bg-2); position: relative; z-index: 1; }
.route li:last-child .stop { background: var(--clay); color: #fff; }
.route h3 { font-size: 26px; margin: 10px 0 6px; }
.route p { margin: 0; color: var(--text-2); max-width: 34ch; }
@media (min-width: 760px) {
  .route { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .route::before { left: 28px; right: 16%; top: 28px; bottom: auto; border-left: 0; border-top: 2.5px dotted var(--clay); }
  .route li { grid-template-columns: 1fr; gap: 6px; }
  .route li:last-child .stop::after { content: ""; position: absolute; left: 100%; top: 50%; width: 46px; border-top: 2.5px dotted var(--clay); opacity: .55; }
}

/* ----- Ejemplos: el primero manda ----- */
.ex:first-child { background: linear-gradient(160deg, var(--saffron-dim), var(--card) 70%); border-color: #f1d8a8; }
@media (min-width: 760px) { .examples { grid-template-columns: 1.35fr 1fr 1fr; } .ex:first-child .ex-big { font-size: 60px; } }
.ex .ex-go { display: inline-flex; align-items: center; gap: 6px; color: var(--clay-ink); }

/* ----- Tarjetas destacadas ----- */
.freedom-teaser { background: linear-gradient(135deg, #fff8ec, var(--card) 55%); }
.pro-teaser li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: .62em; background: var(--clay); transform: rotate(45deg); border-radius: 1px; }
.pro-teaser li { align-items: flex-start; }
.feat-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--clay-dim); color: var(--clay-ink); grid-row: 1 / 3; }
.feat-ico .ico { width: 21px; height: 21px; }
.feat:has(input:checked) .feat-ico { background: var(--green-dim); color: var(--green-ink); }
.tool-btn .ico { width: 22px; height: 22px; color: var(--clay-ink); }
.tool-tile > .ico { width: 24px; height: 24px; margin-bottom: 6px; color: var(--clay-ink); }
.lib-perks li { grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
.lib-perks li .ico-badge { grid-row: 1 / 3; }
.pro-emoji { display: grid; place-items: center; width: 64px; height: 64px; margin: 14px auto 8px; border-radius: 20px; background: var(--clay-dim); color: var(--clay-ink); }
.pro-emoji .ico { width: 30px; height: 30px; }
.fi-label { display: block; margin: 10px 0 0; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.meta-line { color: var(--muted); font-weight: 600; font-size: 15px; margin: -4px 0 18px; }
.founder-price b { color: var(--text); font-weight: 700; }
.coupon b { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.section h2 em, .lib-title em, .doc h1 em { color: var(--clay-ink); }
.pro-hero h1 em, .pro-teaser h2 em { color: var(--blue-ink); }
.coupon-teaser { background: linear-gradient(135deg, var(--saffron-dim), var(--clay-dim)); border-color: rgba(194, 86, 47, .35); }
.coupon-teaser b { color: var(--clay-ink); }
.coupon { background: var(--saffron-dim); border-color: rgba(194, 86, 47, .45); }
.coupon b { color: var(--clay-ink); }

/* =====================================================================
   Detalles con encanto (Impeccable · delight + animate)
   Tesis: "cada acción te hace avanzar en tu ruta". Ruta, banderas y sellos.
   Duraciones: 100–150 ms respuesta · 150–300 ms estados · 450–600 ms momento principal.
   ===================================================================== */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); }

/* Botón principal: un barrido de luz cálida al pasar el ratón y respuesta al pulsar */
.btn-primary { background-color: var(--clay); background-image: linear-gradient(110deg, transparent 30%, rgba(255, 226, 180, .38) 50%, transparent 70%); background-size: 260% 100%; background-position: 130% 0; background-repeat: no-repeat;
  transition: background-position .8s var(--ease-out), background-color .2s, box-shadow .2s, transform .12s; }
.btn-primary:hover { background-position: -30% 0; }
.btn:active { transform: translateY(1px) scale(.97); transition-duration: .08s; }
.btn.is-done { background-color: var(--green-ink); color: #fff; border-color: transparent; }
.btn.is-done .ico { animation: pop .35s var(--ease-out); }
.chip-btn { transition: background-color .15s, color .15s, border-color .15s, transform .12s; }
.chip-btn:active { transform: scale(.94); }
.tool-btn:active, .tool-tile:active, .prob-card:active, .feat:active { transform: scale(.98); }
.tool-btn, .tool-tile, .prob-card, .feat { transition: border-color .2s, background .2s, box-shadow .2s, transform .12s, opacity .2s; }
.switch .track::after { transition: transform .22s var(--ease-out), width .12s; }
.switch:active .track::after { width: 27px; }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch:active input:checked + .track::after { transform: translateX(13px); }

/* Sello que "cae" sobre el resultado (×4.7) */
.res-chips { align-items: center; }
.res-stamp { margin-left: 4px; font-size: 13px; padding: 6px 10px 5px; transform: rotate(-6deg); color: var(--clay-ink); background: var(--card); }
.res-stamp.stamp-in, .founder-num, .stamp-in { animation: stampIn .5s var(--ease-out) both; }
@keyframes stampIn {
  0% { opacity: 0; transform: rotate(-12deg) scale(1.7); }
  55% { opacity: 1; transform: rotate(-4deg) scale(.92); }
  100% { opacity: 1; transform: rotate(-6deg) scale(1); }
}

/* Bandera plantada al final de la línea del gráfico */
.chart-flag { transform-box: fill-box; transform-origin: 0% 100%; animation: plant .5s var(--ease-out) both; }
.chart-flag text { font-family: var(--font); font-size: 11px; font-weight: 700; fill: #fff; letter-spacing: .02em; }
@keyframes plant { from { opacity: 0; transform: translateY(-10px) scaleY(.4); } to { opacity: 1; transform: none; } }

/* Barra de progreso como ruta punteada con un marcador que avanza */
.progress { height: 14px; overflow: visible; background: repeating-linear-gradient(90deg, var(--line-2) 0 4px, transparent 4px 10px) center / 100% 3px no-repeat; }
.progress span { position: relative; height: 3px; margin-top: 5.5px; background: var(--clay); box-shadow: none; transition: width .5s var(--ease-out); }
.progress span::after { content: ""; position: absolute; right: -7px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--clay); border: 3px solid var(--card); box-shadow: 0 0 0 1.5px var(--clay); }

/* Fecha de Libertad: el año "salta" cuando cambia y la mejora se subraya */
.fi-year.tick { animation: yearTick .45s var(--ease-out); }
@keyframes yearTick { from { opacity: .25; transform: translateY(14%); } to { opacity: 1; transform: none; } }
.whatif-impact b.up, .whatif-impact b.down { padding: 0 2px; background: linear-gradient(var(--saffron-dim), var(--saffron-dim)) no-repeat 0 88% / 100% 45%; animation: highlight .5s var(--ease-out); }
.whatif-impact b.down { background-image: linear-gradient(var(--coral-dim), var(--coral-dim)); }
@keyframes highlight { from { background-size: 0% 45%; } }

/* Encuesta: la casilla "salta" al marcarse */
.feat:has(input:checked)::after { animation: pop .3s var(--ease-out); }

/* Cupón: aparece como un ticket que se imprime */
.coupon { animation: ticket .6s var(--ease-out) both; }
@keyframes ticket { from { clip-path: inset(0 100% 0 0 round 16px); } to { clip-path: inset(0 0 0 0 round 16px); } }

/* Contador de la cuenta atrás: los segundos respiran */
.countdown div:last-child b { transition: color .3s; }

@media (prefers-reduced-motion: reduce) {
  .res-stamp.stamp-in, .founder-num, .stamp-in, .chart-flag, .fi-year.tick, .coupon, .feat:has(input:checked)::after { animation: none; }
  .whatif-impact b.up, .whatif-impact b.down { animation: none; }
  .btn-primary { transition: background-color .2s, box-shadow .2s; }
  .btn:active, .chip-btn:active, .tool-btn:active, .tool-tile:active, .prob-card:active, .feat:active { transform: none; }
  .progress span { transition: none; }
}
.res-stamp { font-size: 15px; padding: 7px 12px 6px; }
.admin-sub { margin: 26px 0 10px; }
.familia-teaser { position: relative; overflow: hidden; display: grid; gap: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 32px; padding: 30px 22px; box-shadow: var(--shadow); }
.familia-teaser video { width: 100%; aspect-ratio: 1; border-radius: 22px; border: 1px solid var(--line); background: var(--card-2); }
.familia-teaser .ctas { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 760px) { .familia-teaser { grid-template-columns: 1.1fr .9fr; align-items: center; padding: 48px; } }

/* =====================================================================
   Barra superior con las secciones (igual en todas las páginas)
   Móvil: logo arriba + fila de secciones que se desliza de lado.
   Escritorio: todo en una línea. El logo siempre vuelve al inicio.
   ===================================================================== */
.top .top-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "brand actions" "sections sections"; align-items: center; height: auto; gap: 0 12px; padding-top: 10px; }
.top-row .brand { grid-area: brand; }
.top-actions { grid-area: actions; display: flex; align-items: center; gap: 8px; }
.sections { grid-area: sections; display: flex; gap: 6px; margin: 8px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.sections::-webkit-scrollbar { display: none; }
.sections a { flex: none; scroll-snap-align: start; text-decoration: none; white-space: nowrap; font-size: 15px; font-weight: 600; color: var(--text-2); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 253, 249, .7); transition: background-color .15s, color .15s, border-color .15s; }
.sections a:hover { color: var(--text); border-color: var(--line-2); }
.sections a[aria-current="page"] { color: #fff; background: var(--clay); border-color: var(--clay); }
.tm-result { scroll-margin-top: 124px; }
@media (min-width: 980px) {
  .top .top-row { grid-template-columns: auto 1fr auto; grid-template-areas: "brand sections actions"; height: 68px; padding-top: 0; }
  .sections { justify-content: center; margin: 0; padding: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .sections a { border-color: transparent; background: none; padding: 8px 13px; }
  .sections a:hover { background: rgba(36, 26, 19, .05); }
  .sections a[aria-current="page"] { background: var(--clay); }
  .tm-result { scroll-margin-top: 90px; }
}
/* En Hormiga Familia, pestañas más grandes y legibles */
@media (min-width: 980px) { .familia .sections a { font-size: 17px; padding: 10px 16px; } }
@media (max-width: 979px) { .sections { padding-right: 48px; } }

/* Acceso por correo: lo principal es pulsar el enlace; el código queda como opción plegada */
.mail-sent { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 16px; border-radius: 18px; background: var(--green-dim); margin: 0 0 16px; }
.mail-sent-ico { margin: 0; font-size: 30px; line-height: 1; }
.mail-sent p:last-child { margin: 0; color: var(--text); }
.code-alt { margin: 4px 0 10px; }
.code-alt summary { cursor: pointer; font-weight: 600; color: var(--clay-ink); padding: 8px 0; }
.code-alt[open] summary { margin-bottom: 8px; }
/* Fecha de Libertad: invitación a guardar el plan (solo sin sesión) */
.save-card { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; margin: 0 0 18px; padding: 16px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.save-card[hidden] { display: none; }
.save-card b { display: block; font-size: 17px; }
.save-card span { display: block; font-size: 15px; color: var(--text-2); }
.save-card > div { flex: 1 1 240px; }
/* Aviso legal: datos del titular aún sin rellenar */
.legal-data { list-style: none; padding: 0; }
.legal-data li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.pending { background: #fff1c7; color: #6b4a00; padding: 0 6px; border-radius: 6px; }
/* ---------- Revisión de Impeccable: lectura y móvil ---------- */
/* Barra de secciones en móvil: nombres cortos para que quepan las 5 sin deslizar */
/* inline-block (no flex): en un flex se pierden los espacios junto al span ("Máquinadel Tiempo") */
.sections a { display: inline-block; line-height: 26px; min-height: 44px; }
@media (max-width: 640px) {
  .nav-long { display: none; }
  .sections { justify-content: space-between; gap: 4px; padding-right: var(--gutter); overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .sections a { padding: 0 11px; font-size: 14px; line-height: 42px; }
}
/* Objetivos táctiles de 44 px en pantallas táctiles */
@media (pointer: coarse) {
  .chip-btn { min-height: 44px; }
  .foot nav a { display: inline-block; padding: 11px 0; }
  .link-btn { min-height: 44px; }
}
/* En móvil el resultado va primero: quien llega desde TikTok ve el gancho sin bajar */
@media (max-width: 899px) {
  .tm { display: flex; flex-direction: column; }
  .tm-result { order: -1; }
}
/* ---------- /empieza: página del enlace del perfil (TikTok / Instagram) ---------- */
body.bio { background: radial-gradient(70% 40% at 100% 0%, rgba(242,169,59,.28), transparent 70%), radial-gradient(60% 40% at 0% 100%, rgba(232,120,80,.18), transparent 70%), var(--bg); min-height: 100vh; }
.bio-wrap { max-width: 520px; padding-top: 28px; padding-bottom: 40px; }
.bio-brand { display: inline-flex; font-size: 26px; margin-bottom: 26px; }
.bio-hello { margin: 0; font-size: 18px; font-weight: 600; color: var(--muted); }
.bio-title { font-family: var(--display); font-size: clamp(40px, 11vw, 56px); line-height: 1.02; letter-spacing: -0.03em; margin: 6px 0 22px; text-wrap: balance; }
.bio-title em { font-style: italic; font-weight: 500; color: var(--clay); }
.bio-tools { display: grid; gap: 12px; }
.bio-tool { display: grid; grid-template-columns: 56px 1fr 24px; gap: 14px; align-items: center; min-height: 88px; padding: 14px 18px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: transform .15s, border-color .15s; }
.bio-tool:first-child { background: var(--clay); border-color: var(--clay); color: #fff; }
.bio-tool:first-child small { color: rgba(255,255,255,.85); }
.bio-tool:active { transform: scale(.98); }
.bio-tool:hover { border-color: var(--clay); }
.bio-emoji { font-size: 36px; text-align: center; }
.bio-tool b { display: block; font-size: 19px; line-height: 1.2; }
.bio-tool small { display: block; font-size: 15px; color: var(--text-2); margin-top: 2px; }
.bio-go { font-size: 24px; font-weight: 700; }
.bio-h2 { font-family: var(--display); font-size: 26px; margin: 34px 0 4px; }
.bio-sub { margin: 0 0 14px; font-size: 15px; color: var(--muted); }
.bio-examples { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bio-examples a { display: flex; align-items: center; min-height: 56px; padding: 10px 14px; border-radius: 16px; background: rgba(255,253,249,.85); border: 1px solid var(--line); font-size: 15px; font-weight: 600; line-height: 1.25; color: var(--text); text-decoration: none; }
.bio-examples a:hover { border-color: var(--clay); }
.bio-trust { margin: 26px 0 8px; text-align: center; font-size: 15px; font-weight: 700; color: var(--green-ink); }
.bio-legal { text-align: center; font-size: 13px; color: var(--muted); }