/* Horizonte v2 · sistema de diseño
   Base blanca y gris muy claro, azul CaixaBank para las acciones, verde y rojo para subidas y bajadas,
   dorado para las millas. Tipografía Figtree. */

:root {
    --blue: #007eae; --blue-600: #006a93; --blue-700: #005678; --blue-50: #eef7fb; --blue-100: #d6ebf4;
    --ink: #0f1419; --ink-2: #48525e; --ink-3: #7b8591; --ink-4: #a9b1ba;
    --page: #f3f7fa; --surface: #ffffff; --line: #e6e9ed; --line-2: #d5dae0; --soft: #eef0f3; --soft-2: #f5f7f9; --hover: #f3f5f7; --track: #edf0f3;
    --green: #12925a; --green-50: #e8f6ef; --red: #d23b2f; --red-50: #fdeeec; --amber: #b7791f; --amber-50: #fbf3e4; --gold: #c99a2e;
    --r: 16px; --r-lg: 22px;
    --shadow-1: 0 1px 2px rgba(15, 20, 25, .04), 0 1px 1px rgba(15, 20, 25, .03);
    --shadow-2: 0 10px 30px -12px rgba(15, 20, 25, .18), 0 2px 6px rgba(15, 20, 25, .05);
    --side: 256px; --tab: 64px;
    --font: Figtree, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-family: Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-size: 16px; line-height: 1.5; background: var(--surface); }
body[data-view="app"] { background: var(--page); }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 40%, transparent); outline-offset: 2px; border-radius: 8px; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.kicker { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.note { font-size: 13px; line-height: 1.5; color: var(--ink-3); margin-top: 14px; }
.up { color: var(--green); } .down { color: var(--red); }

/* ---------------------------------------------------------------- marca */
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; flex: none; }
.brand-star { height: 30px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; gap: 5px; }
.brand-sub { font-size: 10.5px; font-weight: 500; letter-spacing: .02em; color: var(--ink-3); line-height: 1; white-space: nowrap; }
.brand-word { font-family: var(--font); font-weight: 650; font-optical-sizing: auto; font-size: 25px; font-weight: 300; letter-spacing: .004em; line-height: 1; }

/* ---------------------------------------------------------------- botones y controles */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s, transform .08s; }
.btn:hover { background: var(--soft-2); border-color: var(--ink-4); }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 18px; height: 18px; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 1px 2px rgba(0, 86, 120, .25); }
.btn.primary:hover { background: var(--blue-600); border-color: var(--blue-600); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--blue); padding: 0 12px; box-shadow: none; }
.btn.ghost:hover { background: var(--blue-50); }
.btn.danger { color: var(--red); border-color: color-mix(in srgb, var(--red) 35%, var(--line-2)); }
.btn.danger:hover { background: var(--red-50); }
.btn.light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn.light:hover { background: rgba(255, 255, 255, .12); }
.btn.lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn.sm { min-height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-2); display: grid; place-items: center; cursor: pointer; flex: none; text-decoration: none; }
.icon-btn:hover { background: var(--soft); color: var(--ink); }
.icon-btn.primary { background: var(--blue); color: #fff; }
.icon-btn.primary:hover { background: var(--blue-600); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--soft); color: var(--ink-2); white-space: nowrap; }
.badge .ic { width: 15px; height: 15px; stroke-width: 2.4; }
.badge.ok { background: var(--green-50); color: var(--green); }
.badge.warn { background: var(--amber-50); color: var(--amber); }
.count { font-size: 13px; font-weight: 700; color: var(--ink-3); background: var(--soft); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.bar { height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--ink-4); transition: width .4s cubic-bezier(.2, .8, .2, 1); }
.bar.blue i { background: var(--blue); } .bar.up i { background: var(--green); } .bar.gold i { background: linear-gradient(90deg, #d9b45a, var(--gold)); }
.switch { position: relative; width: 50px; height: 30px; flex: none; cursor: pointer; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--line-2); transition: background .2s; }
.switch i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .18); transition: transform .2s; }
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 3px solid color-mix(in srgb, var(--blue) 40%, transparent); outline-offset: 2px; }
input[type="range"] { width: 100%; accent-color: var(--blue); }

/* formularios */
.form { display: grid; gap: 16px; }
.form.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form .full, .form:not(.two) > .btn { grid-column: 1 / -1; }
.form.two > .btn:not(.full) { justify-self: start; }
.field { display: grid; gap: 7px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, select[data-act] { font: inherit; font-size: 16px; height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--ink); width: 100%; transition: border-color .15s, box-shadow .15s; }
select[data-act] { width: auto; height: 40px; padding-right: 30px; font-size: 15px; }
.field input:focus, .field select:focus, select[data-act]:focus, .ask input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); line-height: 1.45; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.chip:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-50); }

/* ---------------------------------------------------------------- página de bienvenida */
.lp-in { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.lp-nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line); }
.lp-nav .lp-in { height: 68px; display: flex; align-items: center; gap: 28px; }
.lp-links { display: flex; gap: 26px; flex: 1; justify-content: center; }
.lp-links a { color: var(--ink-2); font-size: 14px; font-weight: 400; letter-spacing: .01em; }
.lp-links a:hover { color: var(--ink); }
.lp-copy h1 { font-size: clamp(40px, 5.6vw, 66px); line-height: 1.02; letter-spacing: -.035em; font-weight: 750; }
.lp-lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--ink-2); margin-top: 22px; max-width: 560px; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.lp-cta.center { justify-content: center; }
.lp-trust { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.lp-trust li { display: flex; align-items: center; gap: 8px; }
.lp-trust .ic { color: var(--blue); width: 18px; height: 18px; }
.lp-sec { padding: 104px 0; }
.lp-sec.alt { background: var(--page); }
.lp-sec h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -.03em; font-weight: 720; max-width: 760px; }
.lp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.lp-split .btn { margin-top: 28px; }
.lp-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.lp-checks li { display: flex; gap: 16px; padding: 22px; background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); }
.lp-checks li > span { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; flex: none; }
.lp-checks b { display: block; font-size: 16px; margin-bottom: 2px; } .lp-checks small { font-size: 14.5px; color: var(--ink-2); }
.lp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 48px; }
.lp-grid span { width: 48px; height: 48px; border-radius: 14px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; margin-bottom: 18px; }
.lp-grid h3 { font-size: 18px; margin-bottom: 8px; } .lp-grid p { color: var(--ink-2); font-size: 15px; }
.lp-narrow { max-width: 820px; }
.faq { margin-top: 40px; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 17px; font-weight: 600; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--ink-3); transition: transform .2s; }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { padding: 0 40px 24px 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.lp-foot { padding-top: 40px; padding-bottom: 48px; }
.lp-foot .legal { margin-top: 20px; }

/* ---------------------------------------------------------------- alta y verificación */
.auth { min-height: 100vh; background: var(--page); padding-bottom: 48px; }
.auth-top { display: flex; align-items: center; justify-content: space-between; max-width: 1160px; margin: 0 auto; padding: 18px 24px; }
.auth-card { max-width: 480px; margin: 24px auto 0; padding: 36px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
.auth-card h1 { font-family: var(--font); font-weight: 650; font-size: 32px; font-weight: 400; letter-spacing: -.02em; margin-top: 4px; }
.auth-card .sub { color: var(--ink-2); margin: 8px 0 26px; }
.auth-card .btn.ghost.block { margin-top: -6px; }
.auth-steps { list-style: none; padding: 0; margin: 0 0 28px; display: flex; gap: 8px; }
.auth-steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); padding-top: 10px; border-top: 3px solid var(--line); }
.auth-steps li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); font-size: 11.5px; flex: none; }
.auth-steps li span .ic { width: 13px; height: 13px; stroke-width: 3; }
.auth-steps li.on { color: var(--ink); border-color: var(--blue); }
.auth-steps li.on span { background: var(--blue); color: #fff; }
.auth-steps li.done { border-color: var(--blue); }
.auth-steps li.done span { background: var(--blue-100); color: var(--blue-700); }
.auth-foot { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); margin-top: 22px; }
.auth-foot .ic { width: 15px; height: 15px; }
.verify { max-width: 900px; margin: 24px auto 0; padding: 0 24px; }
.verify h1 { font-size: clamp(30px, 4vw, 44px); margin-top: 14px; }
.verify .sub { color: var(--ink-2); margin: 8px 0 24px; }

/* ---------------------------------------------------------------- estructura de la app */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--surface); border-right: 1px solid var(--line); padding: 22px 16px; display: flex; flex-direction: column; z-index: 20; }
.side .brand { padding: 0 8px; margin-bottom: 26px; }
.side .area, .topbar .area { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); background: var(--amber-50); border-radius: 999px; padding: 4px 10px; align-self: flex-start; margin: -12px 8px 18px; }
.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 12px; color: var(--ink-2); font-size: 15px; font-weight: 550; transition: background .15s, color .15s; }
.side-nav a:hover { background: var(--hover); color: var(--ink); }
.side-nav a.on { background: var(--blue-50); color: var(--blue-700); font-weight: 650; }
.side-nav a.on .ic { color: var(--blue); }
.side-nav .sep { height: 1px; background: var(--line); margin: 12px 8px; }
.me { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; color: var(--ink); }
.me:hover { background: var(--hover); }
.me b { display: block; font-size: 14px; font-weight: 600; } .me small { font-size: 12.5px; color: var(--ink-3); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; text-decoration: none; }
.fam .avatar { background: var(--amber); }
.topbar, .tabbar { display: none; }
.main { margin-left: var(--side); min-height: 100vh; outline: none; }
.page { max-width: 1120px; margin: 0 auto; padding: 40px 44px 64px; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.page-h h1 { font-family: var(--font); font-weight: 650; font-size: 36px; font-weight: 400; letter-spacing: -.02em; }
.page-h p { color: var(--ink-2); margin-top: 6px; max-width: 680px; font-size: 16px; }

/* rejilla y tarjetas */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; align-items: start; }
.c-3 { grid-column: span 3; } .c-4 { grid-column: span 4; } .c-5 { grid-column: span 5; } .c-6 { grid-column: span 6; } .c-7 { grid-column: span 7; } .c-8 { grid-column: span 8; } .c-12 { grid-column: span 12; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-1); min-width: 0; align-self: stretch; }
.card-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.card-h h2 { font-size: 18px; font-weight: 680; letter-spacing: -.015em; }
.card-h p { color: var(--ink-2); font-size: 14.5px; margin-top: 4px; max-width: 640px; }
.stat > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.stat > b { display: block; font-size: 30px; font-weight: 720; letter-spacing: -.03em; line-height: 1.15; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat > small { display: block; font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.card .stat + .bar, .card .stat + .stack { margin-top: 16px; }
.stat-card { display: flex; flex-direction: column; justify-content: space-between; }
.stat-card .btn { margin-top: 18px; }
.split { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.split .stat > b { font-size: 22px; }
.empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 28px 12px; }
.empty-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--soft); color: var(--ink-3); display: grid; place-items: center; margin-bottom: 6px; }
.empty b { font-size: 15.5px; } .empty p { color: var(--ink-3); font-size: 14px; max-width: 420px; }
.empty .btn { margin-top: 12px; }
.legal { display: flex; gap: 12px; margin-top: 32px; padding: 18px 20px; border-radius: var(--r); background: rgba(15, 20, 25, .035); color: var(--ink-3); font-size: 12.5px; line-height: 1.6; }
.legal .ic { width: 18px; height: 18px; margin-top: 1px; }

/* filas */
.rows { display: grid; }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); color: inherit; min-width: 0; }
.rows .row:first-child { border-top: 0; padding-top: 4px; }
.row > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.row > div b { font-weight: 600; font-size: 15px; }
.row > div span { font-size: 13.5px; color: var(--ink-3); }
.row.tall { align-items: flex-start; }
a.row:hover b { color: var(--blue); }
.row .chev { color: var(--ink-4); width: 18px; height: 18px; }
.row .amt { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.amt.gold { color: var(--amber); }
.tick { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; color: var(--ink-3); font-size: 13px; font-weight: 700; }
.tick .ic { width: 15px; height: 15px; stroke-width: 2.8; }
.row.ok .tick { background: var(--green); border-color: var(--green); color: #fff; }
.row.ok > div b { color: var(--ink-3); font-weight: 550; }
.mv-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--blue-50); color: var(--blue); }
.mv-ic .ic { width: 18px; height: 18px; }
.mv-ic.gift, .mv-ic.warn { background: var(--amber-50); color: var(--amber); }
.sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.row.tall .sw { margin-top: 6px; }
.stack { display: flex; height: 12px; border-radius: 999px; overflow: hidden; gap: 2px; margin-bottom: 14px; }
.stack i { display: block; height: 100%; }
.f-global { background: #007eae; } .f-tecnologia { background: #5b50d6; } .f-inmobiliario { background: #d9a03a; } .f-energia { background: #1f9d63; }
.f-inflacion { background: #d4622a; } .f-salud { background: #d33f73; } .f-movilidad { background: #11867c; } .f-infraestructuras { background: #6d7f99; } .f-agua { background: #1aa3c4; }
ul.plain { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--ink-2); font-size: 14.5px; }

.dip-wrap { background: var(--page); border-radius: var(--r); padding: clamp(12px, 3vw, 28px); }
svg.diploma { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 16px 40px -18px rgba(15, 20, 25, .3); }
.exam { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 18px; background: var(--page); border-radius: var(--r); }
.exam > div { flex: 1; display: grid; gap: 2px; } .exam b { font-size: 15px; } .exam span:not(.mv-ic) { font-size: 13.5px; color: var(--ink-3); }

/* dinero */
.value-head { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.value-head > .stat > b { font-size: 40px; }
.vh-side { display: grid; grid-auto-flow: column; grid-auto-columns: auto; gap: 8px 36px; }
.vh-side span { display: block; font-size: 13px; color: var(--ink-3); font-weight: 500; }
.vh-side b { font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }
.protect { display: grid; gap: 12px; }
.pr-num b { font-size: 30px; font-weight: 720; letter-spacing: -.03em; margin-right: 8px; }
.pr-num span { color: var(--ink-3); font-size: 14px; }
.protect .bar { height: 10px; }
.protect .note { margin-top: 0; }
.sim { margin-top: 20px; padding: 18px; background: var(--page); border-radius: var(--r); }
.sim label, .viz label { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.sim label input, .viz label input { grid-column: 1 / -1; }
.sim output, .viz output { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.sim p { margin-top: 12px; font-size: 14.5px; color: var(--ink-2); }
.sim p b { color: var(--ink); }
.terms { margin-top: 14px; }
.terms summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--blue); cursor: pointer; }
.terms summary::-webkit-details-marker { display: none; }
.terms summary .ic { width: 15px; height: 15px; transition: transform .2s; }
.terms[open] summary .ic { transform: rotate(45deg); }
.terms ul { margin: 10px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 13.5px; display: grid; gap: 4px; }

/* hoja (modal) */
#sheet { position: fixed; inset: 0; z-index: 70; display: none; }
#sheet.open { display: grid; place-items: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(15, 20, 25, .42); backdrop-filter: blur(2px); animation: fade .2s; }
.sheet-card { position: relative; width: min(440px, 92vw); background: var(--surface); border-radius: var(--r-lg); padding: 24px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .35); animation: pop .22s cubic-bezier(.2, .8, .2, 1); }
.sheet-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sheet-h h2 { font-size: 20px; font-weight: 700; }
.amount-in { display: flex; align-items: baseline; justify-content: center; gap: 6px; padding: 8px 0 0; }
.amount-in input { font: inherit; font-size: 52px; font-weight: 720; letter-spacing: -.03em; width: 220px; text-align: right; border: 0; outline: none; background: transparent; color: var(--ink); -moz-appearance: textfield; }
.amount-in input::-webkit-outer-spin-button, .amount-in input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.amount-in span { font-size: 36px; font-weight: 650; color: var(--ink-3); }
.sheet-card .chips { justify-content: center; }
.sheet-card .note { margin-top: 0; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* antídoto */
.fears { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fear { position: relative; display: grid; gap: 4px; align-content: start; text-align: left; font: inherit; padding: 18px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.fear:hover { border-color: var(--line-2); box-shadow: var(--shadow-1); }
.fi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); color: var(--ink-2); flex: none; }
.fear .fi { margin-bottom: 8px; }
.fi.sm { width: 32px; height: 32px; border-radius: 10px; }
.fi .ic { width: 22px; height: 22px; }
.fi.sm .ic { width: 18px; height: 18px; }
.fear b { font-size: 15.5px; line-height: 1.3; padding-right: 24px; } .fear small { font-size: 13px; color: var(--ink-3); }
.fcheck { position: absolute; top: 16px; right: 16px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; }
.fcheck .ic { width: 13px; height: 13px; stroke-width: 3; }
.fear.on { border-color: var(--blue); background: var(--blue-50); }
.fear.on .fi { background: var(--blue); color: #fff; }
.fear.on .fcheck { background: var(--blue); border-color: var(--blue); color: #fff; }
.gem { display: inline-flex; align-items: center; gap: 8px; }
.gem .ic { color: #6b6fe8; }
.chat { display: grid; gap: 10px; max-height: 420px; overflow-y: auto; padding: 2px; margin-bottom: 14px; }
.ask { display: flex; gap: 8px; margin-top: 14px; }
.ask input { flex: 1; min-width: 0; font: inherit; font-size: 15px; height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); }
.ask .icon-btn { width: 44px; height: 44px; }
.rank { display: grid; }
.rk { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.rk:first-child { border-top: 0; }
.rk > div { flex: 1; display: grid; gap: 6px; } .rk b { font-size: 14.5px; font-weight: 600; }
.rk-n { width: 18px; font-weight: 700; color: var(--ink-4); font-size: 14px; }
.rk-p { font-weight: 700; min-width: 48px; text-align: right; font-variant-numeric: tabular-nums; }
.rk.mine .fi { background: var(--blue); color: #fff; }

/* casa */
.miles-hero { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.miles-hero > div:first-child { max-width: 560px; }
.miles-hero .stat > b { font-size: 44px; color: var(--amber); }
.miles-hero p { color: var(--ink-2); margin-top: 8px; }
.miles-hero p b { color: var(--ink); }
.mh-meter { flex: 1; min-width: 240px; max-width: 380px; display: grid; gap: 8px; }
.mh-meter span { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.mh-meter .bar { height: 12px; }
.mh-meter small { font-size: 13px; color: var(--ink-3); }
.viz { display: grid; gap: 14px; }
.vrow { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.vrow b { font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; }
.viz .split { margin-top: 6px; }
.focus-body .viz { margin-top: 26px; padding: 20px; background: var(--page); border-radius: var(--r); }
figure.viz { margin: 26px 0 0; }
svg.line { width: 100%; height: auto; display: block; }
figcaption { font-size: 13px; color: var(--ink-3); }

/* modo concentración: temas y examen */
.focus { min-height: 100vh; background: var(--surface); }
.focus-top { position: sticky; top: 0; display: flex; align-items: center; gap: 16px; max-width: 760px; margin: 0 auto; padding: 18px 24px; background: var(--surface); z-index: 5; }
.focus-top .bar { flex: 1; }
.focus-top span { font-size: 13px; font-weight: 600; color: var(--ink-3); min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; }
.focus-body { max-width: 680px; margin: 0 auto; padding: 32px 24px 80px; }
.focus-body h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.12; letter-spacing: -.03em; font-weight: 720; margin-bottom: 18px; }
.focus-body > p { font-size: 18px; line-height: 1.6; color: var(--ink-2); margin-top: 14px; }
.focus-body > p b { color: var(--ink); }
.focus-body .center { text-align: center; }
.focus-body .center p { font-size: 17px; color: var(--ink-2); max-width: 520px; margin: 12px auto 0; }
.focus-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; }
.focus-nav.center { justify-content: center; }
.result { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 32px auto 24px; }
.result .ic { width: 38px; height: 38px; stroke-width: 2.6; }
.result.ok { background: var(--green-50); color: var(--green); } .result.ko { background: var(--red-50); color: var(--red); }
.opts { display: grid; gap: 10px; margin-top: 26px; }
.opt { display: flex; align-items: center; gap: 14px; text-align: left; font: inherit; font-size: 16px; padding: 16px 18px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.opt > span { width: 30px; height: 30px; border-radius: 9px; background: var(--soft); color: var(--ink-3); display: grid; place-items: center; font-weight: 700; font-size: 13.5px; flex: none; }
.opt:hover:not([disabled]) { border-color: var(--blue); background: var(--blue-50); }
.opt[disabled] { cursor: default; }
.opt.right { border-color: var(--green); background: var(--green-50); } .opt.right > span { background: var(--green); color: #fff; }
.opt.wrong { border-color: var(--red); background: var(--red-50); } .opt.wrong > span { background: var(--red); color: #fff; }
.why { display: flex; gap: 12px; margin-top: 18px; padding: 16px; border-radius: var(--r); background: var(--page); }
.why .ic { margin-top: 2px; } .why.ok .ic { color: var(--green); } .why.ko .ic { color: var(--amber); }
.why > div { display: grid; gap: 2px; }
.why b { font-size: 15px; } .why p { color: var(--ink-2); font-size: 15px; }

/* avisos */
#toasts { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(92vw, 440px); pointer-events: none; }
.toast { background: #111820; color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 14px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; }
.toast.in { opacity: 1; transform: none; }
body[data-view="app"] #toasts { left: calc(50% + var(--side) / 2); }


/* ---------------------------------------------------------------- landing: horizonte (azul CaixaBank, claro y limpio) */
:root { --night: #00334d; --night-2: #00455f; --sun: #f7b500; --sun-2: #ee7b1f; --blue-soft: #f2f8fc; }
.serif { font-family: var(--font); font-weight: 650 !important; letter-spacing: -.02em !important; }
.btn.gold { background: linear-gradient(180deg, #f9c93d, var(--sun)); border-color: transparent; color: #2a1a04; box-shadow: 0 8px 22px -12px rgba(247, 181, 0, .6); }
.btn.gold:hover { background: linear-gradient(180deg, #fad25a, #f2bb12); }
.btn.white { background: #fff; border-color: #fff; color: var(--blue-700); }
.btn.white:hover { background: var(--blue-soft); border-color: var(--blue-soft); }
.btn.primary { box-shadow: 0 10px 22px -12px rgba(0, 126, 174, .75); }
.kicker.gold { color: var(--sun); } .kicker.gold-ink { color: var(--amber); }
.lp-nav { transition: background .2s; }
.lp-nav .lp-in { height: 72px; }
.lp-nav .brand-word { font-size: 25px; }

/* portada */
.hz-hero { position: relative; overflow: hidden; padding: 28px 0 36px; min-height: calc(100vh - 72px); display: flex; align-items: center;
    background: radial-gradient(900px 520px at 90% 0%, rgba(0, 126, 174, .16), transparent 62%), radial-gradient(640px 380px at 0% 100%, rgba(247, 181, 0, .12), transparent 62%), linear-gradient(180deg, #eef7fc 0%, #ffffff 92%); }
.hz-hero::before { content: ""; position: absolute; right: -150px; top: -90px; width: 720px; height: 600px; background: url("brand/horizonte-logo.png") no-repeat center / contain; opacity: .07; pointer-events: none; }
.hz-hero-in { position: relative; z-index: 2; width: 100%; display: grid; grid-template-columns: .98fr 1.02fr; gap: 48px; align-items: center; }
.hz-kicker { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 9px; margin-bottom: 22px; border-radius: 999px; background: var(--surface); border: 1px solid var(--blue-100); color: var(--blue-700); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; box-shadow: var(--shadow-1); }
.hz-kicker img { height: 18px; width: auto; display: block; }
.hz-copy h1 { font-family: var(--font); font-weight: 700; font-size: clamp(34px, 3.9vw, 54px); line-height: 1.08; letter-spacing: -.035em; color: var(--ink); }
.hz-copy h1 em { font-style: normal; font-weight: 700; color: var(--blue); }
.hz-lead { font-size: clamp(16.5px, 1.3vw, 18.5px); line-height: 1.6; color: var(--ink-2); margin-top: 18px; max-width: 480px; }
.hz-trust { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14px; color: var(--ink-2); }
.hz-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hz-trust .ic { width: 18px; height: 18px; color: var(--blue); }
.hz-visual { position: relative; display: grid; place-items: center; padding: 8px 0; }
.hz-card { position: relative; z-index: 2; width: min(100%, 440px); padding: 28px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 44px 90px -44px rgba(0, 70, 105, .45), 0 2px 8px rgba(15, 20, 25, .04); }
.hc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.hc-top b { font-size: 15px; font-weight: 650; } .hc-top small { font-size: 12.5px; color: var(--ink-3); }
.hz-card label { display: grid; grid-template-columns: 1fr auto; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.hz-card label input { grid-column: 1 / -1; margin-top: 8px; }
.hz-card output { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.hc-ring { display: flex; align-items: center; gap: 22px; margin: 26px 0 8px; padding: 18px; border-radius: 20px; background: var(--blue-soft); }
.hc-ring svg { width: 112px; height: 112px; flex: none; transform: rotate(-90deg); }
.hc-ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.hc-ring .rg-bg { stroke: #dbe9f1; } .hc-ring .rg-fg { stroke: var(--blue); transition: stroke-dashoffset .45s cubic-bezier(.2, .8, .2, 1); }
.hc-ring p { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.hc-ring b { display: block; font-family: var(--font); font-weight: 650; font-size: 34px; letter-spacing: -.02em; color: var(--ink); line-height: 1.1; }
.hc-rows > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.hc-rows > div:first-child { border-top: 0; }
.hc-rows b { font-size: 17px; color: var(--ink); font-variant-numeric: tabular-nums; }
.hz-card .note { margin-top: 6px; }
.hz-badge { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 11px 16px 11px 11px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.hz-badge > span { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
.hz-badge.b2 > span { background: var(--amber-50); color: var(--amber); }
.hz-badge .ic { width: 18px; height: 18px; }
.hz-badge.b1 { left: -20px; bottom: -14px; } .hz-badge.b2 { right: -14px; top: -14px; }
.hz-chart { position: relative; z-index: 2; width: min(100%, 520px); padding: 20px 22px 14px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 44px 90px -46px rgba(0, 70, 105, .45), 0 2px 8px rgba(15, 20, 25, .04); }
.hch-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hch-top b { display: block; font-size: 15.5px; font-weight: 650; } .hch-top small { font-size: 12.5px; color: var(--ink-3); }
.hch-chips { display: flex; gap: 6px; flex-wrap: nowrap; justify-content: flex-end; flex: none; }
.hch-chips button { font: inherit; font-size: 13px; font-weight: 600; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.hch-chips button span { font-weight: 400; }
.hch-chips button:hover { border-color: var(--blue); color: var(--blue); }
.hch-chips button.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.hch-plot { margin: 6px -4px 0; } .hch-plot svg { display: block; width: 100%; height: auto; }
.hch-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 4px 0 0; padding: 0; font-size: 13px; color: var(--ink-2); }
.hch-legend li { display: inline-flex; align-items: center; gap: 8px; } .hch-legend b { color: var(--ink); font-variant-numeric: tabular-nums; }
.hch-legend i { width: 10px; height: 10px; border-radius: 3px; } .hch-legend .l1 { background: rgba(0, 126, 174, .35); } .hch-legend .l2 { background: linear-gradient(180deg, #f7b500, #ee7b1f); }
.hch-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.hch-foot span { display: block; font-size: 12.5px; color: var(--ink-3); }
.hch-foot b { display: block; margin-top: 2px; font-family: var(--font); font-weight: 650; font-size: 24px; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.hch-foot div:first-child b { color: var(--blue-600); }
.hz-chart .note { margin-top: 8px; font-size: 12px; }
.hch-rate { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 12.5px; color: var(--ink-3); }
.hz-stats { background: var(--surface); border-bottom: 1px solid var(--line); }
.hz-stats dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.hz-stats dl > div { padding: 40px 32px; border-left: 1px solid var(--line); }
.hz-stats dl > div:first-child { padding-left: 0; border-left: 0; }
.hz-stats dt { font-family: var(--font); font-weight: 650; font-size: clamp(38px, 4vw, 52px); letter-spacing: -.03em; line-height: 1.05; color: var(--blue-600); }
.hz-stats dd { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 280px; }
.lp-sec h2.serif { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.07; }
.lp-sec { padding: 112px 0; }
/* el ciclo */
.cycle { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; counter-reset: c; }
.cycle::before { content: ""; position: absolute; left: 6%; right: 6%; top: 47px; height: 2px; background: linear-gradient(90deg, var(--blue), var(--blue) 60%, var(--sun)); opacity: .35; }
.cycle li { position: relative; padding: 0 18px; }
.cy-n { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--ink-4); }
.cy-ic { margin: 14px 0 22px; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); color: var(--blue); position: relative; }
.cy-ic .ic { width: 26px; height: 26px; }
.cycle li.casa .cy-ic { background: linear-gradient(160deg, #fff6e6, #fde9c6); color: var(--amber); border-color: #f2dcae; }
.cycle h3 { font-size: 20px; letter-spacing: -.02em; margin-bottom: 8px; }
.cycle p { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.cycle-foot { display: flex; align-items: center; gap: 12px; margin-top: 48px; padding: 18px 22px; border-radius: 16px; background: var(--page); color: var(--ink-2); font-size: 15px; }
.cycle-foot .ic { color: var(--blue); }
/* juego de muestra */
.lp-game { padding: 30px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.lg-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.lg-top span { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--blue); }
.lg-top small { font-size: 12.5px; color: var(--ink-3); }
.lp-game blockquote { margin: 0; font-family: var(--font); font-weight: 650; font-size: 26px; line-height: 1.25; letter-spacing: -.01em; }
.lp-game > p { margin-top: 14px; color: var(--ink-2); }
.lg-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.lg-opts .btn.right { border-color: var(--green); background: var(--green-50); color: var(--green); opacity: 1; }
.lg-out { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--page); font-size: 14.5px; color: var(--ink-2); }
/* primer año */
.big-num span { display: block; font-family: var(--font); font-weight: 650; font-size: clamp(88px, 13vw, 168px); line-height: .9; letter-spacing: -.05em; color: var(--blue); }
.big-num p { margin-top: 22px; font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 520px; }
.lp-sim { padding: 30px; border-radius: 24px; background: var(--page); display: grid; gap: 14px; }
.lp-sim label { display: grid; grid-template-columns: 1fr auto; gap: 10px; font-weight: 600; color: var(--ink-2); font-size: 15px; }
.lp-sim label input { grid-column: 1 / -1; margin-top: 6px; }
.lp-sim output { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.ls-row { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line-2); font-size: 15px; color: var(--ink-2); }
.ls-row b { font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.ls-row.hi b { color: var(--blue); font-size: 28px; }
.lp-sim.gold { background: linear-gradient(160deg, #fffaf0, #fbefd7); } .lp-sim.gold input { accent-color: var(--amber); } .lp-sim.gold .ls-row.hi b { color: var(--amber); }
/* antídoto oscuro */
.hz-dark { padding: 112px 0; color: #fff; background: radial-gradient(700px 420px at 100% 0%, rgba(247, 181, 0, .16), transparent 60%), radial-gradient(900px 520px at 0% 100%, rgba(255, 255, 255, .08), transparent 60%), linear-gradient(135deg, #006a93, #004564 55%, #00334d); }
.hz-dark h2 { font-size: clamp(36px, 5vw, 62px); line-height: 1.04; max-width: 820px; }
.hz-dark .lp-lead { color: rgba(255, 255, 255, .8); }
.lp-fears { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.lf { display: inline-flex; align-items: center; gap: 10px; font: inherit; font-size: 15px; font-weight: 500; padding: 12px 18px 12px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .07); color: #fff; cursor: pointer; transition: background .15s, border-color .15s; }
.lf > span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); }
.lf > span .ic { width: 18px; height: 18px; }
.lf:hover { background: rgba(255, 255, 255, .14); }
.lf.on { background: #fff; color: var(--night); border-color: #fff; } .lf.on > span { background: var(--sun); color: #2a1a04; }
.lf-out { margin-top: 26px; padding: 26px 28px; border-radius: 20px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); max-width: 760px; }
.lf-out b { display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--sun); margin-bottom: 8px; }
.lf-out p { font-size: 19px; line-height: 1.55; color: rgba(255, 255, 255, .94); }
.hz-small { margin-top: 26px; font-size: 14px; color: rgba(255, 255, 255, .62); max-width: 760px; line-height: 1.6; }
.hz-final { position: relative; overflow: hidden; padding: 112px 0; text-align: center; color: #fff;
    background: radial-gradient(800px 380px at 85% 0%, rgba(255, 255, 255, .16), transparent 62%), radial-gradient(600px 300px at 10% 100%, rgba(247, 181, 0, .22), transparent 62%), linear-gradient(135deg, #008cc2, #00678f 60%, #005070); }
.hz-final::before { content: ""; position: absolute; left: 50%; top: -120px; width: 620px; height: 520px; transform: translateX(-50%); background: url("brand/horizonte-logo.png") no-repeat center / contain; opacity: .1; filter: brightness(0) invert(1); pointer-events: none; }
.hz-final .lp-in { position: relative; }
.hz-final h2 { font-size: clamp(38px, 5.6vw, 68px); line-height: 1.04; margin: 0 auto; }
.hz-final .hz-lead { margin: 20px auto 0; color: rgba(255, 255, 255, .86); }
.hz-final .lp-cta { position: relative; z-index: 2; }
.lp-sec.alt { background: var(--page); }
.hz-horizon { display: none; }
/* valores: los de CaixaBank (azul) unidos a los de Horizonte (dorado) */
.vals-key { display: flex; gap: 22px; margin-top: 34px; font-size: 12.5px; color: var(--ink-3); }
.vals-key span { display: inline-flex; align-items: center; gap: 8px; }
.vals-key span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.vals-key .hz::before { background: var(--gold); }
.vals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 18px; border-top: 1px solid var(--line-2); }
.vals article { padding: 30px 28px 6px 0; }
.vals article + article { padding-left: 28px; border-left: 1px solid var(--line); }
.val-pair { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-height: 18px; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.val-pair .cb { color: var(--blue); } .val-pair .hz { color: var(--amber); } .val-pair i { font-style: normal; color: var(--ink-4); }
.vals h3 { font-family: var(--font); font-weight: 650; font-size: 23px; line-height: 1.2; letter-spacing: -.01em; margin: 18px 0 12px; }
.vals p { color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.vals-src { margin-top: 36px; max-width: 720px; }
.vals-src a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------------------------------------------------------------- Certificado Horizonte */
.cred { position: relative; width: 340px; aspect-ratio: 1.586; border-radius: 16px; padding: 18px 20px 16px; color: #fff; overflow: hidden; flex: none; display: flex; flex-direction: column;
    background: radial-gradient(120% 90% at 100% 0%, rgba(247, 181, 0, .3), transparent 52%), linear-gradient(155deg, #0a8fc4, #005a80 55%, #0b2f45);
    box-shadow: 0 24px 48px -26px rgba(0, 60, 90, .65), inset 0 0 0 1px rgba(255, 255, 255, .14); }
.cred.big { width: 420px; padding: 24px 26px 20px; border-radius: 20px; }
.cred.st0 { background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .12), transparent 50%), linear-gradient(155deg, #3a4854, #161f27 72%); }
.cred-top { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .82); }
.cred-top span { white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; } .cred-top .cred-st, .cred-top img { flex: none; }
.cred-top img { width: 30px; height: auto; filter: brightness(0) invert(1); opacity: .9; }
.cred-top .cred-st { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-style: normal; font-size: 9.5px; letter-spacing: .1em; white-space: nowrap; }
.cred-mid { position: relative; margin-top: auto; }
.cred-mid small { display: block; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .6); margin-bottom: 2px; }
.cred-mid b { font-family: var(--font); font-weight: 650; font-size: 30px; letter-spacing: -.01em; line-height: 1.05; }
.cred.big .cred-mid b { font-size: 36px; }
.cred-name { position: relative; margin-top: 10px; font-size: 15px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cred.big .cred-name { font-size: 18px; }
.cred-stages { position: relative; display: flex; gap: 6px; margin: 12px 0 10px; }
.cred-stages i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .2); }
.cred-stages i.done { background: rgba(255, 255, 255, .85); } .cred-stages i.on { background: var(--sun); box-shadow: 0 0 10px rgba(240, 182, 90, .8); }
.cred-bottom { position: relative; display: flex; gap: 28px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .16); }
.cred-bottom small { display: block; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); margin-bottom: 2px; }
.cred-bottom b { font-size: 13px; font-weight: 600; white-space: nowrap; letter-spacing: .02em; }
.hero-cred { display: flex; align-items: center; gap: 28px; }
.hero-cred .cred { width: 330px; }
.hc-copy h2 { font-size: 24px; font-weight: 720; }
.hc-copy p { color: var(--ink-2); margin: 8px 0 18px; }
.cred-hero { display: flex; align-items: center; gap: 44px; }
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; flex: 1; }
.stages li { display: flex; align-items: center; gap: 14px; }
.stages li > span { width: 44px; height: 44px; border-radius: 50%; background: var(--soft); color: var(--ink-3); display: grid; place-items: center; font-weight: 700; flex: none; }
.stages li.on > span { background: var(--night); color: var(--sun); box-shadow: 0 0 0 4px rgba(240, 182, 90, .25); }
.stages li.done > span { background: var(--green); color: #fff; }
.stages li.done > span .ic { stroke-width: 2.8; }
.stages b { display: block; font-size: 16px; } .stages small { color: var(--ink-3); font-size: 14px; }

/* ---------------------------------------------------------------- ciclo en inicio, semana, racha, juegos */
.loop-card { padding: 10px; }
.loop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.loop a { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; color: var(--ink); }
.loop a:hover { background: var(--page); }
.lp-dot { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--soft); color: var(--ink-3); }
.lp-dot .ic { width: 17px; height: 17px; stroke-width: 2.6; }
.loop b { font-size: 14.5px; } .loop small { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loop li.done .lp-dot { background: var(--green); color: #fff; }
.loop li.on a { background: var(--blue-50); } .loop li.on .lp-dot { background: var(--blue); color: #fff; }
.loop li.casa .lp-dot { background: var(--amber-50); color: var(--amber); }
.week p { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); margin-bottom: 8px; } .week p b { color: var(--ink); }
.week-funds { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.week-funds div { display: flex; align-items: center; gap: 10px; font-size: 14px; } .week-funds span:not(.sw) { flex: 1; color: var(--ink-2); }
.week-funds b { font-variant-numeric: tabular-nums; }
.gem { display: inline-flex; align-items: center; gap: 8px; }
.streak { display: flex; align-items: center; gap: 6px; margin-top: 14px; }
.streak i { width: 22px; height: 8px; border-radius: 4px; background: var(--track); } .streak i.on { background: linear-gradient(90deg, #f6c873, var(--sun-2)); }
.streak small { margin-left: 8px; font-size: 12.5px; color: var(--ink-3); }
.games { display: grid; gap: 10px; }
.game { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); color: var(--ink); transition: border-color .15s, background .15s; }
.game:hover { border-color: var(--blue); background: var(--blue-50); }
.game > span { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--night); color: var(--sun); flex: none; }
.game > div { flex: 1; } .game b { display: block; font-size: 15.5px; } .game small { font-size: 13px; color: var(--ink-3); line-height: 1.4; display: block; }
.game .play { color: var(--blue); width: 26px; height: 26px; }
.mv-ic.gold { background: var(--amber-50); color: var(--amber); }
.row.tall > div .bar { margin-top: 8px; }
.focus-body h1.serif-q { font-family: var(--font); font-weight: 650; letter-spacing: -.015em; }
.lead-q { font-size: 18px; color: var(--ink-2); }


/* portada: gráfica simple, por qué Horizonte, pasos del Antídoto, menú a lo ancho */
.lp-nav .lp-in { max-width: none; padding: 0 clamp(20px, 3vw, 44px); }
.lp-links { gap: clamp(16px, 1.8vw, 28px); }
.hz-chart { padding: 24px 26px 18px; }
.hch-ask { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.hch-big { margin-top: 18px; }
.hch-big b { display: block; font-family: var(--font); font-weight: 650; font-size: clamp(40px, 4.4vw, 56px); line-height: 1; letter-spacing: -.03em; color: var(--blue-600); font-variant-numeric: tabular-nums; }
.hch-big span { display: block; margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.hz-chart .hch-plot { margin: 18px -2px 0; }
.hch-key { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.hch-key span { display: inline-flex; align-items: center; gap: 8px; }
.hch-key i { width: 10px; height: 10px; border-radius: 3px; } .hch-key .l1 { background: rgba(0, 126, 174, .35); } .hch-key .l2 { background: linear-gradient(180deg, #f7b500, #ee7b1f); }
.hz-chart .note { margin-top: 10px; font-size: 12px; color: var(--ink-4); }
.why { background: var(--page); }
.why-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.why-head .lp-lead { margin: 0; }
.why-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 48px 0 0; }
.why-stats > div { padding: 30px 26px 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.why-stats dt { font-family: var(--font); font-weight: 650; font-size: clamp(40px, 4vw, 54px); line-height: 1; letter-spacing: -.03em; color: var(--blue-600); }
.why-stats dd { margin: 18px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.why-stats dd b { display: block; font-size: 16px; color: var(--ink); margin-bottom: 4px; }
.anti-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.anti-steps li { display: flex; gap: 14px; padding: 14px 18px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.anti-steps li > span { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--sun, #f0b65a); color: #2a1a04; }
.anti-steps b { display: block; font-size: 15px; color: #fff; margin-bottom: 2px; }
.anti-steps p { font-size: 13.5px; line-height: 1.45; color: rgba(255, 255, 255, .72); }
.anti-steps li > span { width: 28px !important; height: 28px !important; font-size: 13px; }
@media (max-width: 1180px) { .lp-links a[href="#por-que"] { display: none; } }
@media (max-width: 860px) { .why-stats { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .why-head { grid-template-columns: 1fr; gap: 16px; } .anti-grid { grid-template-columns: 1fr !important; gap: 32px !important; } .hz-final .hz-lead { white-space: normal !important; } }
@media (max-width: 420px) { .why-stats { grid-template-columns: 1fr; } .hch-ask { flex-direction: column; align-items: flex-start; } }


/* portada algo más compacta y elegante */
.lp-sec, .lp-sec.why { padding: 84px 0; }
.lp-sec h2.serif { font-size: clamp(30px, 3.5vw, 44px); }
.lp-lead { font-size: clamp(16px, 1.35vw, 18px); margin-top: 18px; }
.hz-copy h1 { font-size: clamp(32px, 3.5vw, 48px); }
.hz-lead { font-size: clamp(15.5px, 1.15vw, 17px); }
.cycle { margin-top: 44px; } .cycle h3 { font-size: 18px; } .cycle p { font-size: 14px; }
.cy-ic { width: 56px; height: 56px; border-radius: 18px; margin: 12px 0 18px; }
.cycle::before { top: 43px; }
.why-stats { margin-top: 36px; } .why-stats > div { padding: 26px 24px; } .why-stats dt { font-size: clamp(36px, 3.4vw, 46px); }
.lp-game blockquote { font-size: 23px; }
.lp-sim { padding: 26px; } .ls-row b { font-size: 20px; } .ls-row.hi b { font-size: 24px; }
.hz-dark { padding: 64px 0; }
.anti-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hz-dark h2 { font-size: clamp(32px, 3.6vw, 46px) !important; }
.anti-q { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .7); margin-bottom: 14px; }
.anti-r .lp-fears { margin-top: 0; gap: 8px; }
.anti-r .lf { font-size: 14px; padding: 9px 14px 9px 9px; } .anti-r .lf > span { width: 28px; height: 28px; }
.anti-r .lf-out { margin-top: 18px; padding: 20px 22px; } .anti-r .lf-out p { font-size: 16.5px; }
.anti-r .hz-small { margin-top: 16px; font-size: 12.5px; }
.hz-final { padding: 88px 0; }
.hz-final h2 { font-size: clamp(34px, 4.4vw, 56px) !important; }
.hz-final .hz-lead { max-width: none; white-space: nowrap; }
.faq summary { font-size: 15.5px; }

/* ---------------------------------------------------------------- v22: inicio, certificado, dinero, asistente, modo noche */
.center-note { text-align: center; margin-top: 22px; }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 0 4px 8px; font-size: 13px; color: var(--ink-3); }
.side-foot + .me { margin-top: 0; }
.lp-right { display: flex; align-items: center; gap: 6px; }
.theme-btn .ic { width: 19px; height: 19px; }

/* cabecera de inicio con la tarjeta del certificado */
.home-h { align-items: center; }
.home-h h1 { font-size: 34px; }
.home-h p { font-size: 15.5px; }
.cred-chip { all: unset; box-sizing: border-box; cursor: pointer; flex: none; width: 168px; aspect-ratio: 1.586; border-radius: 14px; padding: 11px 13px 10px; color: #fff; display: flex; flex-direction: column; position: relative; overflow: hidden;
    background: radial-gradient(140% 120% at 100% 100%, rgba(247, 181, 0, .42), transparent 48%), linear-gradient(150deg, #0089bd, #005a80 58%, #003a56);
    box-shadow: 0 14px 30px -16px rgba(0, 60, 90, .7), inset 0 0 0 1px rgba(255, 255, 255, .14); transition: transform .18s, box-shadow .18s; }
.cred-chip:hover { transform: translateY(-2px) rotate(-.6deg); box-shadow: 0 20px 36px -16px rgba(0, 60, 90, .75), inset 0 0 0 1px rgba(255, 255, 255, .2); }
.cred-chip:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 50%, transparent); outline-offset: 3px; }
.cred-chip.st0 { background: radial-gradient(140% 120% at 100% 100%, rgba(255, 255, 255, .1), transparent 45%), linear-gradient(150deg, #56636e, #2a343d 70%); box-shadow: 0 12px 26px -16px rgba(15, 20, 25, .55), inset 0 0 0 1px rgba(255, 255, 255, .1); }
.cred-chip.st2 { background: radial-gradient(140% 120% at 100% 100%, rgba(255, 214, 120, .55), transparent 50%), linear-gradient(150deg, #c99a2e, #8a6114 60%, #5a3d07); }
.cc-top { display: flex; align-items: center; justify-content: space-between; }
.cc-top img { width: 18px; height: auto; filter: brightness(0) invert(1); opacity: .9; }
.cc-top small { font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, .16); }
.cred-chip:not(.st0) .cc-top small { background: var(--sun); color: #2a1a04; }
.cred-chip b { margin-top: auto; font-family: var(--font); font-weight: 650; font-size: 17px; line-height: 1.05; }
.cc-st { font-size: 11px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.cc-bars { display: flex; gap: 4px; margin-top: 7px; }
.cc-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .22); }
.cc-bars i.done { background: rgba(255, 255, 255, .9); } .cc-bars i.on { background: var(--sun); }

/* ficha del certificado */
.sheet-card.cert-sheet { width: min(1040px, 94vw); max-height: 92vh; overflow-y: auto; padding: 0; }
.cs-close { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--surface); }
.cs-grid { display: grid; grid-template-columns: 1.3fr 1fr; }
.cs-dip { position: relative; padding: 36px; background: var(--soft-2); border-right: 1px solid var(--line); display: grid; place-items: center; }
.cs-dip .diploma { width: 100%; height: auto; display: block; border-radius: 6px; box-shadow: 0 24px 50px -28px rgba(15, 20, 25, .5); }
.cs-dip.pending .diploma { filter: grayscale(1); opacity: .55; }
.cs-stamp { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-8deg); font-size: 15px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); padding: 10px 20px; border: 2px solid var(--ink-3); border-radius: 10px; background: color-mix(in srgb, var(--surface) 85%, transparent); }
.cs-info { padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cs-info .badge { align-self: flex-start; margin-bottom: 10px; }
.cs-info h2 { font-family: var(--font); font-weight: 650; font-size: 26px; }
.cs-sub { color: var(--ink-3); font-size: 14px; }
.cs-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 16px 0 4px; }
.cs-facts div:first-child { grid-column: 1 / -1; }
.cs-facts dt { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.cs-facts dd { margin: 2px 0 0; font-weight: 600; font-size: 15px; }
.cs-facts div:first-child dd { font-family: var(--font); font-weight: 650; font-size: 21px; }
.cs-info > .bar { margin-top: 8px; }
.cs-h { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 18px 0 8px; }
.cs-stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cs-stages li { display: flex; gap: 12px; align-items: center; }
.cs-stages li > span { width: 28px; height: 28px; border-radius: 50%; background: var(--soft); color: var(--ink-3); display: grid; place-items: center; font-size: 12.5px; font-weight: 700; flex: none; }
.cs-stages li > span .ic { width: 15px; height: 15px; }
.cs-stages li.done > span { background: var(--green); color: #fff; } .cs-stages li.on > span { background: var(--blue); color: #fff; box-shadow: 0 0 0 4px var(--blue-50); }
.cs-stages b { display: block; font-size: 14.5px; } .cs-stages small { color: var(--ink-3); font-size: 12.5px; }
.cs-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-skills span { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 550; padding: 5px 10px; border-radius: 999px; background: var(--soft); color: var(--ink-2); }
.cs-skills span.ok { background: var(--green-50); color: var(--green); } .cs-skills .ic { width: 13px; height: 13px; }
.cs-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* dinero: saldo, curva y lo añadido */
.vhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.vh-k { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.vh-v { display: block; font-size: 44px; font-weight: 650; letter-spacing: -.03em; line-height: 1.1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.vhead.sm .vh-v { font-size: 32px; }
.vh-chg { margin-top: 6px; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.vh-chg small { font-weight: 500; color: var(--ink-3); font-size: 13.5px; margin-left: 4px; }
.vh-added { display: flex; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.vh-added > div { padding: 10px 18px; min-width: 104px; }
.vh-added > div + div { border-left: 1px solid var(--line); }
.vh-added .tot { background: var(--soft-2); }
.vh-added dt { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.vh-added dd { margin: 2px 0 0; font-weight: 650; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vchart { display: block; margin: 22px -4px 0; min-height: 200px; touch-action: pan-y; }
.vchart svg { display: block; width: 100%; height: auto; overflow: visible; cursor: crosshair; }
.vchart.mini { min-height: 70px; margin: 14px 0 6px; } .vchart.mini svg { cursor: pointer; }
.vc-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 5; }
.vc-lbl { font-size: 11.5px; fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.vc-put { fill: none; stroke: var(--ink-4); stroke-width: 1.4; stroke-dasharray: 3 4; }
.vc-hover line { stroke: var(--ink-4); stroke-width: 1; }
.vc-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.vc-ranges { display: flex; gap: 4px; }
.vc-ranges button { font: inherit; font-size: 13.5px; font-weight: 650; min-width: 46px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--ink-3); cursor: pointer; transition: background .15s, color .15s; }
.vc-ranges button:hover { background: var(--hover); color: var(--ink); }
.vc-ranges button.on { color: var(--green); border-color: color-mix(in srgb, var(--green) 45%, transparent); background: var(--green-50); }
.vc-key { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-3); }
.vc-key span { display: inline-flex; align-items: center; gap: 7px; }
.vc-key i { width: 16px; height: 0; border-top: 2.5px solid var(--green); border-radius: 2px; } .vc-key i.k2 { border-top: 1.5px dashed var(--ink-4); }
.vchart-empty { margin-top: 8px; }
.home-money { display: flex; flex-direction: column; } .home-money .actions { margin-top: auto; padding-top: 12px; }
.home-money .vchart.mini { flex: 1; min-height: 110px; position: relative; } .home-money .vchart.mini svg { position: absolute; inset: 0; }
.mini-empty { height: 70px; margin: 14px 0 6px; border-bottom: 2px dashed var(--line-2); }
.moves .row { padding-top: 11px; padding-bottom: 11px; }
.more { all: unset; cursor: pointer; display: block; width: 100%; text-align: center; padding: 12px 0 0; margin-top: 6px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--blue); }
.more:hover { text-decoration: underline; }
.auto { display: grid; }
.auto-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.auto-row + .auto-row { border-top: 1px solid var(--line); }
.auto-row b { display: block; font-size: 15px; } .auto-row span { font-size: 13px; color: var(--ink-3); }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--soft); flex: none; }
.seg button { font: inherit; font-size: 13px; font-weight: 600; height: 30px; min-width: 40px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(15, 20, 25, .14); }

/* asistente */
.chat { gap: 16px; padding: 4px 2px; }
.amsg { display: flex; gap: 10px; align-items: flex-start; max-width: 94%; }
.am-av { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: none; color: #fff; background: linear-gradient(140deg, #6b6fe8, var(--blue)); }
.am-av .ic { width: 16px; height: 16px; }
.am-body { min-width: 0; padding: 14px 16px; border-radius: 4px 16px 16px 16px; background: var(--soft-2); border: 1px solid var(--line); }
.am-t { display: block; font-size: 15px; font-weight: 650; margin-bottom: 4px; }
.am-body p { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.am-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; margin-top: 12px; }
.am-facts > div { padding: 9px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.am-facts span { display: block; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-facts b { display: block; font-size: 15px; font-weight: 650; margin-top: 1px; font-variant-numeric: tabular-nums; }
.am-acts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; }
.am-act { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--blue); }
.am-act.pri { padding: 7px 14px; border-radius: 999px; background: var(--blue); color: #fff; }
.am-act.pri:hover { background: var(--blue-600); } .am-act:not(.pri):hover { text-decoration: underline; }
.am-act .ic { width: 15px; height: 15px; }
.am-meta { display: block; margin-top: 10px; font-size: 11.5px; color: var(--ink-4); }
.am-body.typing { display: flex; gap: 5px; padding: 16px; }
.am-body.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-4); animation: blink 1.2s infinite; }
.am-body.typing i:nth-child(2) { animation-delay: .2s; } .am-body.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.umsg { justify-self: end; max-width: 80%; padding: 10px 15px; border-radius: 16px 16px 4px 16px; background: var(--blue); color: #fff; font-size: 14.5px; line-height: 1.5; }
.sugg { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.sugg::-webkit-scrollbar { display: none; }
.sugg .chip { flex: none; font-size: 13px; padding: 6px 12px; }

@media (max-width: 860px) {
    .page-h.home-h { flex-direction: row; align-items: center; gap: 14px; }
    .home-h h1 { font-size: 24px; } .home-h p { font-size: 14px; }
    .cred-chip { width: 118px; padding: 8px 10px; border-radius: 11px; }
    .cred-chip b { font-size: 13.5px; } .cc-st { font-size: 9.5px; } .cc-top small { font-size: 8px; padding: 1px 5px; } .cc-top img { width: 14px; } .cc-bars { margin-top: 5px; }
    .topbar .icon-btn { width: 36px; height: 36px; }
    .cs-grid { grid-template-columns: 1fr; }
    .cs-dip { padding: 22px; border-right: 0; border-bottom: 1px solid var(--line); }
    .cs-info { padding: 22px 20px 24px; }
    .vh-v { font-size: 36px; }
    .vh-added { width: 100%; display: grid; grid-template-columns: 1fr 1fr; } .vh-added > div { min-width: 0; padding: 9px 12px; } .vh-added > div:nth-child(3) { border-left: 0; } .vh-added > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
    .home-money .vchart.mini { min-height: 96px; flex: none; }
    .vc-key { display: none; } .vc-ranges { width: 100%; justify-content: space-between; }
    .auto-row { flex-wrap: wrap; } .seg { width: 100%; } .seg button { flex: 1; }
}

/* ---------------------------------------------------------------- tableta y móvil */
@media (max-width: 1080px) {
    .c-4 { grid-column: span 6; } .c-5, .c-7, .c-8 { grid-column: span 12; }
    .lp-grid { grid-template-columns: repeat(2, 1fr); }
    .c-3 { grid-column: span 6; }
    .cycle { grid-template-columns: repeat(3, 1fr); row-gap: 40px; } .cycle::before { display: none; }
    .vals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vals article:nth-child(odd) { padding-left: 0; border-left: 0; } .vals article:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 30px; }
    .loop { grid-template-columns: repeat(3, 1fr); }
    .vh-side { grid-auto-flow: row; grid-template-columns: repeat(3, auto); }
}
@media (max-width: 860px) {
    body { font-size: 15.5px; }
    .side { display: none; }
    .main { margin-left: 0; padding-bottom: calc(var(--tab) + env(safe-area-inset-bottom)); }
    .topbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 20; height: 58px; padding: 0 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
    .topbar .brand { flex: 1; } .topbar .brand-star { height: 25px; } .topbar .brand-word { font-size: 21px; } .topbar .brand-sub { font-size: 9.5px; }
    .topbar .area { margin: 0; }
    .topbar .avatar { width: 34px; height: 34px; font-size: 14px; }
    .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--tab) + env(safe-area-inset-bottom)); padding: 6px 6px env(safe-area-inset-bottom); background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
    .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--ink-3); border-radius: 12px; }
    .tabbar a .ic { width: 23px; height: 23px; }
    .tabbar a.on { color: var(--blue); }
    body[data-view="app"] #toasts { left: 50%; bottom: calc(var(--tab) + 14px); }
    .page { padding: 22px 16px 32px; }
    .page-h { flex-direction: column; align-items: stretch; margin-bottom: 20px; }
    .page-h h1 { font-size: 26px; }
    .page-h .btn { align-self: flex-start; }
    .grid { gap: 14px; }
    .c-4, .c-5, .c-6, .c-7, .c-8, .c-12 { grid-column: span 12; }
    .card { padding: 20px; border-radius: 20px; }
    .hero-cred, .cred-hero { flex-direction: column; align-items: stretch; gap: 22px; }
    .hero-cred .cred, .cred, .cred.big { width: 100%; max-width: 380px; }
    .cred-hero .cred, .hero-cred .cred { align-self: center; }
    .c-3 { grid-column: span 6; }
    .loop-card { padding: 6px; }
    .loop { grid-template-columns: repeat(5, 1fr); gap: 2px; } .loop a { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 10px 2px; row-gap: 6px; }
    .lp-dot { grid-row: auto; width: 30px; height: 30px; } .loop small { display: none; } .loop b { font-size: 11.5px; line-height: 1.2; }
    .value-head > .stat > b { font-size: 34px; }
    .vh-side { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; width: 100%; }
    .fears { grid-template-columns: 1fr 1fr; }
    .form.two { grid-template-columns: 1fr; }
    .form.two > .btn:not(.full) { justify-self: stretch; }
    .exam { flex-wrap: wrap; } .exam .btn { width: 100%; }
    .row > select { max-width: 96px; }
    .lp-links { display: none; }
    .lp-nav .lp-in { justify-content: space-between; height: 60px; }
    .lp-in { padding: 0 20px; }
    .hz-hero { padding: 28px 0 48px; min-height: 0; display: block; }
    .hch-top { flex-direction: column; } .hch-chips { justify-content: flex-start; } .hch-chips button span { display: none; }
    .hz-hero-in, .lp-split { grid-template-columns: 1fr; gap: 40px; }
    .hz-stats dl { grid-template-columns: 1fr; } .hz-stats dl > div, .hz-stats dl > div:first-child { padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); } .hz-stats dl > div:first-child { border-top: 0; } .hz-stats dd { max-width: none; }
    .hz-card { padding: 22px; } .hz-trust { gap: 8px 18px; }
    .hz-visual { min-height: 0; } .hz-badge { display: none; }
    .cycle { grid-template-columns: 1fr; row-gap: 28px; } .cycle li { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; padding: 0; } .cy-n { display: none; } .cy-ic { margin: 0; grid-row: span 2; } .cycle h3 { margin: 6px 0 4px; }
    .hz-dark, .hz-final { padding: 80px 0 100px; } .lp-sim, .lp-game { padding: 22px; } .lp-game blockquote { font-size: 22px; }
    .lp-cta .btn { flex: 1 1 100%; }
    .lp-sec { padding: 72px 0; }
    .lp-grid { grid-template-columns: 1fr; gap: 14px; }
    .lp-grid { gap: 28px; }
    .vals { grid-template-columns: 1fr; }
    .vals article, .vals article + article, .vals article:nth-child(odd) { padding: 26px 0 4px; border-left: 0; }
    .vals article + article { border-top: 1px solid var(--line); margin-top: 22px; }
    .vals-key { flex-wrap: wrap; gap: 8px 22px; }
    .auth-card { margin: 8px 12px 0; padding: 26px 20px; }
    .focus-body { padding-top: 16px; }
    .focus-nav .btn { flex: 1; }
}
@media (max-width: 420px) {
    .fears { grid-template-columns: 1fr; }
    .fear { grid-template-columns: 40px 1fr; column-gap: 14px; align-items: center; padding: 14px 16px; }
    .fear .fi { grid-row: span 2; margin: 0; }
    .c-3 { grid-column: span 12; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------------------------------------------------------------- modo noche */
[data-theme="dark"] {
    color-scheme: dark;
    --ink: #eef2f6; --ink-2: #b8c2cc; --ink-3: #8794a1; --ink-4: #5d6a76;
    --page: #0b1218; --surface: #121b23; --line: #22303b; --line-2: #2f3f4c;
    --soft: #1b2630; --soft-2: #16212a; --hover: #1a2530; --track: #22303b;
    --blue: #2aa6d8; --blue-600: #4ab6e2; --blue-700: #7cccec; --blue-50: rgba(42, 166, 216, .14); --blue-100: rgba(42, 166, 216, .28); --blue-soft: #14212b;
    --green: #2fc285; --green-50: rgba(47, 194, 133, .13); --red: #f0675b; --red-50: rgba(240, 103, 91, .13); --amber: #e2a94a; --amber-50: rgba(226, 169, 74, .14);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3); --shadow-2: 0 14px 34px -14px rgba(0, 0, 0, .7);
}
[data-theme="dark"] body, [data-theme="dark"] body[data-view="public"] { background: var(--page); color: var(--ink); }
[data-theme="dark"] .btn.primary, [data-theme="dark"] .icon-btn.primary, [data-theme="dark"] .am-act.pri, [data-theme="dark"] .umsg { color: #04151e; }
[data-theme="dark"] .btn.primary { background: var(--blue); border-color: var(--blue); }
[data-theme="dark"] .avatar, [data-theme="dark"] .hch-chips button.on, [data-theme="dark"] .auth-steps li.on span, [data-theme="dark"] .loop li.on .lp-dot, [data-theme="dark"] .fear.on .fi, [data-theme="dark"] .fear.on .fcheck, [data-theme="dark"] .cs-stages li.on > span { color: #04151e; }
[data-theme="dark"] .side, [data-theme="dark"] .topbar { background: var(--surface); }
[data-theme="dark"] .switch i::after { background: #e9eef2; }
[data-theme="dark"] .toast { background: #e9eef2; color: #0b1218; }
[data-theme="dark"] .hz-hero { background: radial-gradient(900px 520px at 90% 0%, rgba(42, 166, 216, .18), transparent 62%), radial-gradient(640px 380px at 0% 100%, rgba(247, 181, 0, .1), transparent 62%), linear-gradient(180deg, #0e1a23 0%, var(--page) 92%); }
[data-theme="dark"] .cycle li.casa .cy-ic { background: rgba(226, 169, 74, .14); border-color: rgba(226, 169, 74, .35); }
[data-theme="dark"] .lp-sim.gold { background: linear-gradient(160deg, #1d1a12, #19160e); }
[data-theme="dark"] .btn.white { background: #fff; color: #00455f; }
[data-theme="dark"] .seg button.on { background: var(--line-2); }
[data-theme="dark"] .am-av { color: #fff; }
[data-theme="dark"] .cs-dip { background: #0e161d; }
[data-theme="dark"] .cs-close { background: var(--soft); }
[data-theme="dark"] .brand-star { filter: brightness(1.15); }
[data-theme="dark"] .sheet-bg { background: rgba(0, 0, 0, .6); }

/* ---------------------------------------------------------------- amigos en los juegos */
.fr-code { font-weight: 700; letter-spacing: .1em; color: var(--ink); }
.fr-err { font-size: 13.5px; color: var(--red); background: var(--red-50); padding: 10px 14px; border-radius: 12px; margin-bottom: 12px; }
.fr-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.fr-intro ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14.5px; color: var(--ink-2); }
.fr-intro li { display: flex; align-items: center; gap: 8px; } .fr-intro .ic { width: 16px; height: 16px; color: var(--green); }
.fr-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 14px; font-weight: 700; color: var(--blue-700); background: var(--blue-50); }
.fr-av .ic { width: 16px; height: 16px; }
.fr-inv { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; background: var(--soft-2); }
.fr-inv > div:not(.fr-btns) { flex: 1; min-width: 0; } .fr-inv b { display: block; font-size: 14.5px; } .fr-inv span { font-size: 13px; color: var(--ink-3); }
.fr-btns { display: flex; gap: 6px; }
.fr-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; margin-top: 6px; }
.fr-h { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.fr-board { list-style: none; margin: 0; padding: 0; }
.fr-board li { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; }
.fr-board li + li { border-top: 1px solid var(--line); }
.fr-board li.me { background: var(--blue-50); border-top-color: transparent; } .fr-board li.me + li { border-top-color: transparent; }
.fr-board li > div { flex: 1; min-width: 0; } .fr-board li > div b { display: block; font-size: 14.5px; } .fr-board li > div span { font-size: 12.5px; color: var(--ink-3); }
.fr-pos { width: 18px; text-align: center; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.fr-board li:first-child .fr-pos { color: var(--gold); }
.fr-pts { font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; } .fr-pts small { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.fr-feed { display: grid; gap: 10px; }
.fr-feed > div { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); }
.fr-feed b { color: var(--ink); }
.fr-none { font-size: 14px; color: var(--ink-3); padding: 8px 0; }
.fr-empty { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 16px 18px; border-radius: 14px; background: var(--soft-2); }
.fr-empty p { font-size: 14.5px; color: var(--ink-2); max-width: 560px; }
.fr-mycode { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px; background: var(--soft-2); border: 1px solid var(--line); margin-bottom: 16px; }
.fr-mycode span { font-size: 13px; color: var(--ink-3); } .fr-mycode b { flex: 1; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 22px; letter-spacing: .14em; }
.fr-list { margin-top: 14px; }
.fr-today { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; margin: 18px 0 4px; font-size: 14px; color: var(--ink-3); }
.fr-today b { color: var(--ink); background: var(--soft); padding: 3px 10px; border-radius: 999px; font-weight: 600; }
@media (max-width: 860px) { .fr-grid { grid-template-columns: 1fr; gap: 18px; } .fr-inv { flex-wrap: wrap; } .fr-btns { width: 100%; justify-content: flex-end; } }

/* ---------------------------------------------------------------- inicio editorial: sin cajas, con filetes y aire */
.home { display: grid; gap: 0; }
.home > * + * { border-top: 1px solid var(--line-2); }
.hsteps { list-style: none; margin: 0 0 8px; padding: 0 0 30px; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; border-top: 0 !important; }
.hsteps::before { content: ""; position: absolute; left: 6px; right: 6px; top: 6px; height: 1px; background: var(--line-2); }
.hsteps li { position: relative; }
.hsteps a { display: grid; gap: 3px; color: var(--ink-3); padding-right: 12px; }
.hs-dot { width: 13px; height: 13px; border-radius: 50%; background: var(--page); border: 1.5px solid var(--ink-4); display: grid; place-items: center; margin-bottom: 12px; position: relative; z-index: 1; }
.hs-dot .ic { width: 9px; height: 9px; stroke-width: 3; }
.hsteps b { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.hsteps small { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hsteps li.done .hs-dot { background: var(--green); border-color: var(--green); color: #fff; }
.hsteps li.on .hs-dot { border-color: var(--blue); background: var(--blue); box-shadow: 0 0 0 5px var(--blue-50); }
.hsteps li.on b { color: var(--ink); } .hsteps li.on small { color: var(--blue); }
.hsteps a:hover b { color: var(--blue); }

.h-hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; padding: 34px 0; }
.h-money { display: flex; flex-direction: column; min-width: 0; }
.h-money .vchart.mini { height: 110px; min-height: 0; margin: 18px 0 14px; position: relative; } .h-money .vchart.mini svg { position: absolute; inset: 0; }
.h-money .vh-v { font-size: 40px; }
.h-acts { display: flex; gap: 6px; align-items: center; margin-top: auto; }
.h-acts .ghost .ic { width: 15px; height: 15px; }
.h-week { padding-left: 56px; border-left: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.h-k { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.h-k .ic { width: 15px; height: 15px; color: #6b6fe8; }
.h-week p { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.h-week p b { color: var(--ink); font-weight: 650; }
.h-week .h-funds { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.h-funds span { display: inline-flex; align-items: center; gap: 7px; } .h-funds .sw { width: 7px; height: 7px; border-radius: 50%; }
.h-link { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--blue); margin-top: 4px; align-self: flex-start; }
.h-link .ic { width: 15px; height: 15px; transition: transform .15s; } .h-link:hover .ic { transform: translateX(3px); }

.h-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 30px 0; }
.h-stats > div { padding: 0 28px; } .h-stats > div:first-child { padding-left: 0; }
.h-stats > div + div { border-left: 1px solid var(--line-2); }
.h-stats dt { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.h-stats dd { margin: 6px 0 4px; font-size: 30px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.h-stats dd span { font-size: 15px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.h-stats small { font-size: 13px; color: var(--ink-3); }

.h-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 32px 0 8px; }
.h-cols > div:only-child { grid-column: 1 / -1; }
.h-h { display: flex; align-items: baseline; gap: 10px; font-size: 17px; font-weight: 650; letter-spacing: -.01em; margin-bottom: 6px; }
.h-h small { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.h-h a { margin-left: auto; font-size: 13.5px; font-weight: 600; }
.h-list { display: grid; }
.h-item { display: flex; align-items: center; gap: 14px; padding: 13px 0; color: var(--ink); border-bottom: 1px solid var(--line); }
.h-item:last-child { border-bottom: 0; }
.h-item > div { flex: 1; min-width: 0; } .h-item b { display: block; font-size: 14.5px; font-weight: 600; } .h-item > div span { display: block; font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-item .amt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.h-item .chev { width: 16px; height: 16px; color: var(--ink-4); transition: transform .15s; }
a.h-item:hover .chev { transform: translateX(3px); color: var(--blue); } a.h-item:hover b { color: var(--blue); }
.h-tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; color: var(--ink-3); }
.h-tick .ic { width: 12px; height: 12px; stroke-width: 2.6; }
.h-item.ok .h-tick { background: var(--green); border-color: var(--green); color: #fff; }
.h-item.ok b { color: var(--ink-3); font-weight: 500; text-decoration: line-through; text-decoration-color: var(--ink-4); }
.h-item.next .h-tick { border-color: var(--blue); }
.h-tick.own, .h-tick.gift { border: 0; width: 22px; } .h-tick.own { color: var(--blue); } .h-tick.gift { color: var(--amber); } .h-tick.own .ic, .h-tick.gift .ic { width: 18px; height: 18px; stroke-width: 1.8; }
.h-none { font-size: 14px; color: var(--ink-3); padding: 12px 0; }

@media (max-width: 1080px) { .h-hero { gap: 36px; } .h-week { padding-left: 36px; } .h-cols { gap: 36px; } }
@media (max-width: 860px) {
    .hsteps { padding-bottom: 22px; } .hsteps small { display: none; } .hsteps b { font-size: 11.5px; } .hsteps a { padding-right: 4px; }
    .h-hero, .h-cols { grid-template-columns: 1fr; gap: 26px; padding: 24px 0; }
    .h-week { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line-2); }
    .h-stats { grid-template-columns: 1fr; padding: 8px 0; }
    .h-stats > div, .h-stats > div:first-child { padding: 16px 0; border-left: 0; display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 12px; }
    .h-stats > div + div { border-top: 1px solid var(--line); border-left: 0; }
    .h-stats dd { margin: 0; font-size: 22px; grid-row: span 2; } .h-stats small { grid-column: 1; }
}
.h-week .h-funds b.up { color: var(--green); } .h-week .h-funds b.down { color: var(--red); }
.h-money .vchart.mini { height: 140px; }
@media (max-width: 860px) { .h-money .vchart.mini { height: 110px; } }

/* ---------------------------------------------------------------- toda la app sin cajas: filetes, aire y tipografía */
body[data-view="app"] .grid { column-gap: 56px; row-gap: 0; }
body[data-view="app"] .card { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 32px 0; border-top: 1px solid var(--line-2); }
body[data-view="app"] .page-h { margin-bottom: 8px; }
body[data-view="app"] .card-h { margin-bottom: 16px; }
body[data-view="app"] .card-h h2 { font-size: 19px; font-weight: 650; }
body[data-view="app"] .card-h .gem .ic { width: 17px; height: 17px; }
/* piezas interiores sin fondo */
.mv-ic { background: none !important; width: 26px; height: 26px; border-radius: 0; }
.mv-ic .ic { width: 19px; height: 19px; }
.fi { background: none; border: 1px solid var(--line-2); border-radius: 50%; }
.dip-wrap { background: none; padding: 0; }
.exam { background: none; border-radius: 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.games { gap: 0; }
.game { border: 0; border-radius: 0; padding: 14px 0; border-top: 1px solid var(--line); }
.game:first-child { border-top: 0; padding-top: 0; }
.game:hover { background: none; } .game:hover b { color: var(--blue); }
.game > span { width: 38px; height: 38px; border-radius: 50%; background: none; border: 1px solid var(--line-2); color: var(--ink-2); }
.game > span .ic { width: 18px; height: 18px; }
.sim { background: none; padding: 16px 0 0; border-top: 1px solid var(--line); border-radius: 0; }
.vh-added { border: 0; border-radius: 0; overflow: visible; }
.vh-added .tot { background: none; }
.vh-added > div { padding: 2px 22px; } .vh-added > div:first-child { padding-left: 0; }
.vh-added > div + div { border-left: 1px solid var(--line-2); }
.vc-foot { border-top: 0; padding-top: 6px; }
.fr-inv { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 12px 0; margin: 0 0 6px; }
.fr-empty, .fr-mycode { background: none; border: 0; padding: 4px 0; border-radius: 0; }
.fr-mycode { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.fr-board li.me { background: none; } .fr-board li.me b { color: var(--blue); }
.fr-board li { padding: 10px 0; }
/* Antídoto: las preocupaciones como lista seleccionable, no como baldosas */
.fears { gap: 0 40px; grid-template-columns: repeat(2, 1fr); }
.fear { grid-template-columns: 40px 1fr 24px; column-gap: 14px; align-items: center; padding: 14px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.fear:nth-child(-n + 2) { border-top: 0; }
.fear:hover { box-shadow: none; border-color: var(--line); } .fear:hover b { color: var(--blue); }
.fear .fi { grid-row: span 2; margin: 0; }
.fear b { padding-right: 0; } .fear small { grid-column: 2; }
.fcheck { position: static; grid-column: 3; grid-row: 1 / span 2; }
.fear.on { background: none; border-color: var(--line); } .fear.on b { color: var(--blue); }
.fear.on .fi { background: var(--blue); border-color: var(--blue); }
/* el certificado en Aprende y en el área familiar, sin marco */
.hero-cred, .cred-hero { gap: 48px; }
@media (max-width: 860px) {
    body[data-view="app"] .card { padding: 26px 0; }
    .fears { grid-template-columns: 1fr; } .fear:nth-child(2) { border-top: 1px solid var(--line); }
    .vh-added > div { padding: 8px 12px; } .vh-added > div:nth-child(odd) { padding-left: 0; border-left: 0; }
}
.fr-jump { margin-top: 16px; } .fr-jump .ic:first-child { width: 17px; height: 17px; }
.am-body { background: none; border: 0; padding: 4px 0 0; }
.am-facts { display: flex; flex-wrap: wrap; gap: 10px 0; }
.am-facts > div { background: none; border: 0; border-radius: 0; padding: 0 18px; border-left: 1px solid var(--line-2); }
.am-facts > div:first-child { padding-left: 0; border-left: 0; }
.empty-ic { background: none; border: 1px solid var(--line-2); border-radius: 50%; }
.legal { background: none; border-radius: 0; padding: 22px 0 0; border-top: 1px solid var(--line-2); }

/* ---------------------------------------------------------------- certificado en Aprende: se pulsa para ver el diploma */
.cred-btn { all: unset; cursor: pointer; display: grid; justify-items: center; gap: 12px; flex: none; }
.cred-btn .cred { transition: transform .2s, box-shadow .2s; }
.cred-btn:hover .cred { transform: translateY(-3px) rotate(-.5deg); }
.cred-btn:focus-visible .cred { outline: 3px solid color-mix(in srgb, var(--blue) 50%, transparent); outline-offset: 4px; }
.cred-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--blue); }
.cred-cta .ic { width: 15px; height: 15px; transition: transform .15s; } .cred-btn:hover .cred-cta .ic { transform: translateX(3px); }
.cred-st { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; opacity: 1; }
.cred:not(.st0) .cred-st { background: var(--sun); color: #2a1a04; }

/* ---------------------------------------------------------------- Antídoto */
.ad-how { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.ad-why h2 { font-family: var(--font); font-weight: 650; font-size: 30px; line-height: 1.15; letter-spacing: -.015em; margin-bottom: 14px; }
.ad-why p { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }
.ad-cases { display: grid; gap: 0; }
.ad-case { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.ad-case:first-child { border-top: 0; padding-top: 4px; }
.ad-case b { font-size: 15.5px; } .ad-case p { grid-column: 2; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); margin-top: 3px; }
.ad-ic { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.ad-ic .ic { width: 21px; height: 21px; }
.ad-ic.bad { background: color-mix(in srgb, var(--amber) 14%, transparent); color: var(--amber); }
.ad-ic.good { background: var(--green-50); color: var(--green); }
.ad-steps { list-style: none; margin: 30px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ad-steps li { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; }
.ad-steps span { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--blue); color: var(--blue); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.ad-steps b { font-size: 14.5px; } .ad-steps small { font-size: 13px; color: var(--ink-3); }
.ad-add { display: flex; gap: 10px; }
.ad-add input { flex: 1; min-width: 0; font: inherit; font-size: 16px; height: 50px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink); }
.ad-add input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }
.ad-add .btn { min-height: 50px; }
.ad-ideas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.ad-ideas > span { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-right: 4px; }
.ad-ideas .chip { font-size: 13.5px; padding: 6px 13px; }
.ad-mine { margin-top: 22px; border-top: 1px solid var(--line); }
.ad-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ad-item > div { flex: 1; min-width: 0; display: grid; gap: 4px; }
.ad-item b { font-size: 16.5px; font-family: var(--font); font-weight: 650; }
.ad-item > div > span { font-size: 14px; line-height: 1.55; color: var(--ink-2); } .ad-item strong { color: var(--ink); font-weight: 600; }
.ad-item .warn { color: var(--amber); }
.ad-dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.ad-dot .ic { width: 19px; height: 19px; }
.ad-change { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12.5px; color: var(--ink-3); }
.ad-change select { font: inherit; font-size: 13px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); }
.ad-soon { font-size: 14px; line-height: 1.6; color: var(--ink-3); }
/* el mapa: de tu dinero a cada inversión */
.amap { display: grid; grid-template-columns: 170px minmax(120px, 1fr) minmax(0, 1.5fr); align-items: center; min-height: var(--h); margin: 8px 0 6px; }
.am-src { justify-self: start; width: 158px; height: 158px; border-radius: 50%; display: grid; place-content: center; text-align: center; gap: 2px; background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--blue) 22%, var(--surface)), var(--surface) 70%); border: 1px solid var(--blue-100); box-shadow: 0 0 0 10px var(--blue-50); position: relative; z-index: 1; }
.am-src span { font-size: 12px; color: var(--ink-3); font-weight: 600; } .am-src b { font-size: 22px; letter-spacing: -.02em; } .am-src small { font-size: 11.5px; color: var(--ink-3); }
.am-lines { width: 100%; height: var(--h); margin-left: -6px; }
.am-path { stroke-opacity: .85; stroke-dasharray: 700; stroke-dashoffset: 700; animation: amDraw 1.1s cubic-bezier(.3, .7, .2, 1) forwards; }
.am-path[stroke-dasharray] { stroke-dasharray: 2 10; stroke-dashoffset: 0; animation: none; stroke-opacity: 1; }
.am-path:nth-child(2) { animation-delay: .12s; } .am-path:nth-child(3) { animation-delay: .24s; }
@keyframes amDraw { to { stroke-dashoffset: 0; } }
.am-nodes { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-rows: 1fr; height: var(--h); }
.am-nodes li { display: flex; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding: 0 0 0 4px; }
.am-nodes li:first-child { border-top: 0; }
.am-nodes li > div { display: grid; gap: 2px; min-width: 0; }
.am-nodes b { font-size: 15.5px; font-weight: 600; } .am-nodes span:not(.am-pct) { font-size: 13px; color: var(--ink-3); }
.am-pct { font-size: 26px; font-weight: 650; letter-spacing: -.02em; min-width: 76px; font-variant-numeric: tabular-nums; }
.am-nodes li.ghost b { color: var(--ink-3); }
@media (max-width: 1080px) { .ad-how { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 860px) {
    .ad-steps { grid-template-columns: 1fr; gap: 16px; }
    .ad-why h2 { font-size: 25px; }
    .ad-add { flex-direction: column; } .ad-add .btn { align-self: flex-start; }
    .amap { grid-template-columns: 1fr; min-height: 0; }
    .am-src { justify-self: center; width: 132px; height: 132px; margin-bottom: 18px; }
    .am-lines { display: none; }
    .am-nodes { height: auto; grid-auto-rows: auto; }
    .am-nodes li { padding: 14px 0; } .am-pct { font-size: 22px; min-width: 64px; }
}
.ad-change { flex-wrap: wrap; max-width: 100%; } .ad-change select { max-width: 100%; min-width: 0; }
@media (max-width: 1080px) { .ad-how { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) { .ad-steps, .amap { grid-template-columns: minmax(0, 1fr); } .ad-item { gap: 12px; } }
@media (max-width: 1080px) { body[data-view="app"] .grid { column-gap: 32px; } }
@media (max-width: 860px) {
    body[data-view="app"] .grid { column-gap: 0; }
    .hsteps { grid-template-columns: repeat(5, minmax(0, 1fr)); } .hsteps b { overflow-wrap: anywhere; }
}
.home { grid-template-columns: minmax(0, 1fr); } .h-k { display: flex; flex-wrap: wrap; }
.h-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .h-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
@media (max-width: 860px) { .h-hero, .h-cols { grid-template-columns: minmax(0, 1fr); } }
.h-list { grid-template-columns: minmax(0, 1fr); } .am-pct { white-space: nowrap; }
.proj-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.proj .split { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 26px; }
.proj .split .stat > b { font-size: 26px; }
@media (max-width: 860px) { .proj-in { grid-template-columns: minmax(0, 1fr); gap: 18px; } .proj .split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- Tu casa: camino a casa */
.pj { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; align-items: start; }
.pj-ctrl { display: grid; gap: 26px; padding-top: 4px; }
.pj-ctrl label { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 8px 12px; }
.pj-ctrl span { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.pj-ctrl output { font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }
.pj-ctrl input { grid-column: 1 / -1; width: 100%; accent-color: var(--blue); }
.pj-out { padding-left: 56px; border-left: 1px solid var(--line-2); }
.pj-k { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.pj-big { margin-top: 8px; font-size: 17px; color: var(--ink-2); }
.pj-big b { display: block; font-size: 44px; font-weight: 650; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.pj-bar { margin-top: 14px; display: grid; gap: 8px; } .pj-bar .bar { height: 10px; } .pj-bar small { font-size: 13px; color: var(--ink-3); }
.pj-tip { margin-top: 14px; font-size: 15px; line-height: 1.55; color: var(--ink-2); } .pj-tip b { color: var(--ink); }
.pj-list { margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); padding-top: 18px; }
.pj-list > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.pj-list dt { font-size: 12.5px; color: var(--ink-3); } .pj-list dd { margin: 4px 0 0; font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
    .pj { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .pj-out { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line-2); }
    .pj-big b { font-size: 36px; }
    .pj-list { grid-template-columns: minmax(0, 1fr); gap: 12px; } .pj-list > div + div { padding-left: 0; border-left: 0; }
    .pj-list > div { display: flex; justify-content: space-between; align-items: baseline; } .pj-list dd { margin: 0; font-size: 17px; }
}
.ex { margin: 22px 0 4px; padding: 4px 0 4px 18px; border-left: 3px solid var(--sun); }
.ex b { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.ex p { font-size: 16px; line-height: 1.6; color: var(--ink-2); margin: 0; }
.pj2-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.pj2-f { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 6px 12px; }
.pj2-f span { font-size: 14px; color: var(--ink-3); font-weight: 500; }
.pj2-f output { font-size: 30px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pj2-f input { grid-column: 1 / -1; width: 100%; accent-color: var(--blue); margin-top: 6px; }
.pj2-say { margin: 30px 0 6px; font-family: var(--font); font-weight: 650; font-size: 24px; line-height: 1.35; color: var(--ink-2); max-width: 760px; }
.pj2-say b { color: var(--ink); font-weight: 600; }
.pj2-chart { margin: 10px 0 4px; } .pj2-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.pj2-t { font-size: 11.5px; fill: var(--ink-3); }
.pj2-need { font-size: 12px; font-weight: 600; fill: var(--gold); }
.pj2-reach { font-size: 13px; font-weight: 700; fill: var(--ink); }
.pj2 .pj-list { margin-top: 18px; }
@media (max-width: 860px) { .pj2-in { grid-template-columns: minmax(0, 1fr); gap: 22px; } .pj2-f output { font-size: 24px; } .pj2-say { font-size: 20px; } }
/* Antídoto más ligero: explicación y mapa arriba, lo que te preocupa debajo */
.ad-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.ad-hero .ad-why h2 { font-size: 30px; }
.ad-hero .ad-why p { font-size: 15.5px; }
.ad-if { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.ad-if li { display: flex; gap: 14px; align-items: center; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.ad-if b { color: var(--ink); }
.ad-if .ad-ic { width: 34px; height: 34px; flex: none; } .ad-if .ad-ic .ic { width: 16px; height: 16px; }
.ad-mapcol { min-width: 0; }
.ad-maph { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.ad-mapcol .amap { grid-template-columns: 124px minmax(60px, .8fr) minmax(0, 1.6fr); }
.ad-mapcol .am-src { width: 120px; height: 120px; box-shadow: 0 0 0 8px var(--blue-50); } .ad-mapcol .am-src b { font-size: 18px; }
.ad-mapcol .am-pct { font-size: 20px; min-width: 60px; } .ad-mapcol .am-nodes b { font-size: 14.5px; }
.ad-more { all: unset; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--blue); padding: 6px 4px; }
.ad-item small { font-size: 13px; line-height: 1.5; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-item .ad-change { margin-top: 2px; font-size: 13.5px; color: var(--ink-2); }
.ad-item .ad-change select { font-weight: 600; }
@media (max-width: 1080px) { .ad-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
@media (max-width: 860px) { .ad-mapcol .amap { grid-template-columns: minmax(0, 1fr); } .ad-hero .ad-why h2 { font-size: 25px; } }

/* ---------------------------------------------------------------- Tu voz */
.vz-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.vz-prog { display: flex; gap: 4px; } .vz-prog i { width: 18px; height: 3px; border-radius: 3px; background: var(--line-2); }
.vz-prog i.done { background: var(--ink-3); } .vz-prog i.on { background: var(--blue); }
.vz-card { position: relative; padding: 30px 32px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 26px 50px -34px rgba(15, 20, 25, .45); cursor: grab; touch-action: pan-y; user-select: none; transition: transform .24s ease, opacity .24s ease; }
.vz-card:active { cursor: grabbing; transition: none; }
.vz-card h2, .lp-vz h3 { font-family: var(--font); font-weight: 650; font-size: 27px; line-height: 1.2; letter-spacing: -.01em; margin: 6px 0 12px; }
.vz-card p, .lp-vz p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.vz-co { font-size: 12px !important; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3) !important; }
.vz-why { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); } .vz-why b { color: var(--ink); }
.vz-stamp { position: absolute; top: 22px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 5px 12px; border: 2px solid; border-radius: 8px; opacity: 0; transition: opacity .15s; }
.vz-stamp.a { right: 24px; color: var(--green); transform: rotate(8deg); } .vz-stamp.c { left: 24px; color: var(--red); transform: rotate(-8deg); }
.vz-card.lean-r .vz-stamp.a, .vz-card.lean-l .vz-stamp.c { opacity: 1; }
.vz-card.out-r { transform: translateX(130%) rotate(14deg) !important; opacity: 0; } .vz-card.out-l { transform: translateX(-130%) rotate(-14deg) !important; opacity: 0; } .vz-card.out-d { transform: translateY(40px) !important; opacity: 0; }
.vz-btns { display: flex; justify-content: center; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.vz-btns .btn { min-width: 132px; justify-content: center; }
.btn.vz-c { color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, transparent); background: none; } .btn.vz-c:hover { background: var(--red-50); }
.btn.vz-a { color: var(--green); border-color: color-mix(in srgb, var(--green) 40%, transparent); background: none; } .btn.vz-a:hover { background: var(--green-50); }
.vz-done h2 { font-family: var(--font); font-weight: 650; font-size: 28px; margin: 8px 0 10px; } .vz-done p { color: var(--ink-2); margin-bottom: 18px; }
.vz-lt { font-size: 17px; line-height: 1.35; margin: 8px 0 18px; }
.vz-bars { display: grid; gap: 12px; }
.vz-bars > div { display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; font-size: 13.5px; color: var(--ink-2); }
.vz-bars > div.me { color: var(--ink); font-weight: 600; }
.vz-bars i { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: var(--track); overflow: hidden; }
.vz-bars em { display: block; height: 100%; border-radius: 6px; } .vz-bars .vz-a { background: var(--green); } .vz-bars .vz-c { background: var(--red); } .vz-bars .vz-s { background: var(--ink-4); }
.vz-bars small { font-size: 12px; color: var(--ink-3); }
.vz-none { font-size: 14px; color: var(--ink-3); line-height: 1.55; }
.vz-how { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 16px; }
.vz-how li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.vz-how li > span { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--blue); color: var(--blue); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.vz-how b { display: block; font-size: 14.5px; } .vz-how small { font-size: 13px; color: var(--ink-3); }
.vz-list { display: grid; }
.vz-row { display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr); gap: 24px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.vz-row:first-child { border-top: 0; }
.vz-row > div:first-child b { display: block; font-size: 14.5px; } .vz-row > div:first-child span { font-size: 12.5px; color: var(--ink-3); }
.vz-mine { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.vz-mine.vz-a { color: var(--green); background: var(--green-50); } .vz-mine.vz-c { color: var(--red); background: var(--red-50); } .vz-mine.vz-s { color: var(--ink-2); background: var(--soft); }
.vz-row .vz-bars { gap: 6px; } .vz-row .vz-bars > div { font-size: 12px; }
.lp-vz { padding: 30px 32px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(15, 20, 25, .45); }
.lp-vz .vz-btns { justify-content: flex-start; } .lp-vz .vz-btns .btn { min-width: 0; }
.lp-vz small { display: block; margin-top: 14px; font-size: 12px; color: var(--ink-3); }

/* ---------------------------------------------------------------- Tu proyecto */
.pj-empty h2, .pj-title { font-family: var(--font); font-weight: 650; font-size: 30px; line-height: 1.2; margin: 8px 0 12px; }
.pj-empty p { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); margin-bottom: 22px; max-width: 560px; }
.pj-safe { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.pj-safe li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.pj-safe .ic { width: 17px; height: 17px; color: var(--green); flex: none; margin-top: 2px; }
.pj-k2 { display: block; margin-top: 28px; }
.pj-head { display: flex; justify-content: space-between; align-items: center; }
.pj-desc { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.pj-needs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pj-needs span { font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--blue-50); color: var(--blue-700); }
.pj-h { display: flex; align-items: baseline; gap: 10px; font-size: 17px; margin: 30px 0 4px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.pj-h small { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.pj-m { display: flex; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pj-m > div { flex: 1; min-width: 0; display: grid; gap: 3px; }
.pj-m b { font-size: 15px; } .pj-m b em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--green); margin-left: 8px; }
.pj-m span:not(.fr-av) { font-size: 13.5px; color: var(--ink-2); } .pj-m small { font-size: 12.5px; color: var(--ink-3); }
.pj-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pj-opts label { cursor: pointer; } .pj-opts input { position: absolute; opacity: 0; pointer-events: none; }
.pj-opts span { display: inline-block; font-size: 13.5px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); }
.pj-opts input:checked + span { border-color: var(--blue); background: var(--blue-50); color: var(--blue-700); font-weight: 600; }
.pj-opts input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
fieldset.field { border: 0; padding: 0; margin: 0; } fieldset.field legend { font-size: 13.5px; font-weight: 600; color: var(--ink-2); padding: 0; }
.pj-preview { display: grid; gap: 6px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.pj-preview small { font-size: 12.5px; color: var(--ink-3); } .pj-preview p { font-size: 14.5px; color: var(--ink-2); }
.more-nav { display: grid; }
.more-nav a { display: flex; align-items: center; gap: 14px; padding: 16px 2px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.more-nav a span { flex: 1; } .more-nav .ic { width: 20px; height: 20px; } .more-nav .chev { color: var(--ink-4); width: 16px; height: 16px; }
@media (max-width: 860px) {
    .vz-card { padding: 22px 20px; } .vz-card h2 { font-size: 22px; }
    .vz-btns .btn { min-width: 0; flex: 1; }
    .vz-row { grid-template-columns: minmax(0, 1fr) auto; } .vz-row .vz-bars { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- portada: más contenida y una pantalla por sección */
/* En pantallas de ordenador todo se reduce un 18 % a la vez (texto, imágenes y márgenes), y cada sección
   ocupa como mínimo lo que queda de pantalla bajo la barra de navegación, con el contenido centrado. */
.lp { --z: 1; --navh: 72px; }
.lp > section { scroll-margin-top: var(--navh); }
@media (min-width: 1100px) {
    .lp { --z: .85; zoom: var(--z); }
    .lp > section .lp-in:not(.lp-narrow), .lp > .lp-foot { max-width: 1340px; }
    .lp > section:not(.hz-final) { min-height: calc(100vh / var(--z) - var(--navh)); display: flex; flex-direction: column; justify-content: center; box-sizing: border-box; }
    .lp > section > .lp-in { width: 100%; box-sizing: border-box; }
    .hz-hero { min-height: calc(100vh / var(--z) - var(--navh)); }
    .lp-sec, .lp-sec.why { padding: 64px 0; }
}
/* Antídoto de la portada: cabe en una pantalla */
.hz-dark { padding: 56px 0; }
.anti-grid { gap: 64px; }
.anti-l .lp-lead { font-size: 17px; margin-top: 14px; }
.anti-steps { margin-top: 26px; gap: 0; }
.anti-steps li { padding: 14px 0; border: 0; border-top: 1px solid rgba(255, 255, 255, .14); border-radius: 0; background: none; align-items: flex-start; }
.anti-steps li:first-child { border-top: 0; padding-top: 4px; }
.anti-steps p { font-size: 13.5px; margin-top: 2px; }
.anti-r .lp-fears { gap: 8px; }
.anti-r .lf { font-size: 13.5px; padding: 7px 13px 7px 7px; } .anti-r .lf > span { width: 26px; height: 26px; }
.anti-r .lf-out { margin-top: 16px; padding: 18px 20px; } .anti-r .lf-out p { font-size: 15.5px; line-height: 1.55; }
.anti-r .hz-small { margin-top: 14px; }
/* hojas: nunca más altas que la pantalla; el botón final siempre a la vista */
.sheet-card { max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.sheet-card.wide { width: min(600px, 94vw); }
.field textarea { font: inherit; font-size: 15px; line-height: 1.5; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--ink); width: 100%; resize: vertical; min-height: 64px; box-sizing: border-box; }
.field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }
.pj-form { gap: 14px; }
.pj-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; }
.pj-form .pj-opts { gap: 6px; } .pj-form .pj-opts span { font-size: 13px; padding: 6px 12px; }
.pj-foot { position: sticky; bottom: -24px; margin: 0 -24px -24px; padding: 14px 24px 18px; background: var(--surface); border-top: 1px solid var(--line); display: grid; gap: 8px; }
.pj-foot .note { text-align: center; }
@media (max-width: 560px) { .pj-row { grid-template-columns: 1fr; } }
/* Más o menos */
.mm { display: grid; gap: 14px; max-width: 560px; margin: 0 auto; }
.mm-top { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-3); } .mm-top b { color: var(--ink); font-size: 16px; }
.mm-timer { height: 5px; border-radius: 5px; background: var(--track); overflow: hidden; }
.mm-timer i { display: block; height: 100%; width: 100%; background: var(--blue); border-radius: 5px; transition: width .05s linear; } .mm-timer i.hot { background: var(--red); }
.mm-card { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); transition: border-color .2s, background .2s; }
.mm-card b { display: block; font-size: 16px; } .mm-card small { font-size: 13px; color: var(--ink-3); }
.mm-card output { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.mm-card.ok { border-color: var(--green); background: var(--green-50); } .mm-card.ko { border-color: var(--red); background: var(--red-50); }
.mm-code { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--c); border: 1.5px solid var(--c); }
.mm-q { text-align: center; font-size: 16px; color: var(--ink-2); margin: 0; }
.mm-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mm-btns .btn { justify-content: center; min-height: 54px; font-size: 16px; }
.btn.mm-up { color: var(--green); border-color: color-mix(in srgb, var(--green) 45%, transparent); background: none; } .btn.mm-up:hover { background: var(--green-50); }
.btn.mm-down { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, transparent); background: none; } .btn.mm-down:hover { background: var(--red-50); }
.mm-big { font-size: 88px !important; font-weight: 700; letter-spacing: -.04em; line-height: 1; margin: 8px 0; }
.mm-learn { font-size: 14.5px; color: var(--ink-2); max-width: 460px; margin: 12px auto 0; }
/* Liga del lunes */
.lg { max-width: 760px; margin: 0 auto; }
.lg-rows { margin-top: 22px; border-top: 1px solid var(--line); }
.lg-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.lg-row b { display: block; font-size: 16px; } .lg-row small { font-size: 12.5px; color: var(--ink-3); }
.lg-now { font-size: 13.5px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lg-now.up { color: var(--green); } .lg-now.down { color: var(--red); }
.lg-pick { display: flex; gap: 6px; }
.lg-pick button { font: inherit; font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--ink-2); cursor: pointer; }
.lg-pick button .ic { width: 15px; height: 15px; }
.lg-pick button.on.up { border-color: var(--green); background: var(--green-50); color: var(--green); }
.lg-pick button.on.down { border-color: var(--red); background: var(--red-50); color: var(--red); }
.lg-mine { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); } .lg-mine .ic { width: 16px; height: 16px; }
.lg-row.ok .lg-mine { color: var(--green); } .lg-row.ko .lg-mine { color: var(--red); } .lg-mine.none { color: var(--ink-4); font-weight: 500; }
.lg-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 26px 0 0; }
.lg-stats > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.lg-stats dt { font-size: 12.5px; color: var(--ink-3); } .lg-stats dd { margin: 4px 0 0; font-size: 26px; font-weight: 650; } .lg-stats dd small { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.lg-h { font-size: 15px; font-weight: 650; margin: 28px 0 8px; }
.lg-past { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.lg-past > div { display: flex; gap: 10px; align-items: baseline; font-size: 14px; color: var(--ink-3); } .lg-past b { color: var(--ink); }
@media (max-width: 640px) {
    .lg-row { grid-template-columns: 40px minmax(0, 1fr) auto; } .lg-pick { grid-column: 1 / -1; } .lg-pick button { flex: 1; justify-content: center; }
    .lg-stats { grid-template-columns: minmax(0, 1fr); gap: 10px; } .lg-stats > div + div { padding-left: 0; border-left: 0; }
}
.lg .mm-learn { margin: 22px 0 0; max-width: none; }
.inst-p { font-size: 14.5px; color: var(--ink-2); margin-bottom: 14px; }
.inst-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; color: var(--ink-2); }
/* como app instalada: respetar la zona de la cámara y de la barra del sistema */
@media (display-mode: standalone) {
    .topbar { padding-top: env(safe-area-inset-top); height: calc(58px + env(safe-area-inset-top)); }
    .lp-nav { padding-top: env(safe-area-inset-top); }
    .focus-top { padding-top: calc(14px + env(safe-area-inset-top)); }
}

/* ---------------------------------------------------------------- móvil y app instalada (no afecta al ordenador) */
@media (max-width: 860px) {
    html { -webkit-tap-highlight-color: transparent; }
    body { overscroll-behavior-y: none; }
    /* campos a 16 px para que el iPhone no haga zoom al escribir */
    .field input, .field select, .field textarea, .ask input, .ad-add input { font-size: 16px; }
    /* portada: la barra cabe en el ancho del móvil */
    .lp-nav .lp-in { gap: 10px; padding: 0 14px; }
    .lp-nav .brand-sub { display: none; }
    .lp-nav .brand-word { font-size: 20px; }
    .lp-nav .brand-star { width: 40px; height: auto; }
    .lp-right { gap: 2px; } .lp-right .btn { padding: 0 14px; min-height: 36px; font-size: 13.5px; }
    .hz-final .hz-lead { white-space: normal; }
    /* Tu voz: los tres botones sin pisarse */
    .vz-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .vz-btns .btn { min-width: 0; width: 100%; justify-content: center; }
    .vz-btns .btn.ghost { grid-column: 1 / -1; grid-row: 2; min-height: 40px; }
    /* barra superior del área familiar */
    .topbar .area { font-size: 10px; padding: 3px 8px; }
    .topbar .brand-sub { display: none; }
    /* hojas como en las apps: suben desde abajo y ocupan el ancho */
    #sheet.open { place-items: end stretch; }
    .sheet-card, .sheet-card.wide { width: 100%; max-width: none; border-radius: 22px 22px 0 0; max-height: 92dvh; padding: 10px 20px calc(20px + env(safe-area-inset-bottom)); animation: sheetUp .26s cubic-bezier(.2, .8, .2, 1); }
    .sheet-card::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); margin: 0 auto 10px; }
    .sheet-card.cert-sheet { padding: 0; } .sheet-card.cert-sheet::before { margin: 10px auto 0; }
    .pj-foot { margin: 0 -20px calc(-20px - env(safe-area-inset-bottom)); padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); bottom: calc(-20px - env(safe-area-inset-bottom)); }
}
@keyframes sheetUp { from { transform: translateY(100%); } }
.more-h { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 14px 2px 2px; }
.more-h:first-child { margin-top: 2px; }
.more-nav a { padding: 13px 2px; }
.more-nav a.on { color: var(--blue); } .more-nav a.on .ic:first-child { color: var(--blue); }
/* portada en el móvil: cada sección ocupa al menos una pantalla y se distingue de la siguiente */
@media (max-width: 1099px) {
    .lp > section:not(.hz-final) { min-height: calc(100svh - var(--navh)); display: flex; flex-direction: column; justify-content: center; box-sizing: border-box; }
    .lp > section > .lp-in { width: 100%; box-sizing: border-box; }
    .lp-sec, .lp-sec.why { padding: 56px 0; }
    .hz-hero { min-height: calc(100svh - var(--navh)); }
}
/* portada en el móvil: secciones más compactas, cada una empieza arriba al desplazar y se distinguen entre sí */
@media (max-width: 1099px) { .lp { --navh: 61px; } #preguntas { background: var(--surface); } }
@media (max-width: 860px) {
    .lp-sec, .lp-sec.why { padding: 40px 0; }
    .lp-sec h2.serif, .hz-dark h2 { font-size: 30px !important; }
    .lp-lead { font-size: 15.5px; }
    /* inicio */
    .hz-hero { padding: 24px 0; }
    .hz-hero-in { gap: 22px; }
    /* cómo funciona */
    .cycle { margin-top: 24px; } .cycle li { padding: 10px 0; } .cycle p { font-size: 13.5px; } .cycle-foot { display: none; }
    /* por qué */
    .why-stats { margin-top: 22px; gap: 10px; } .why-stats > div { padding: 16px 18px; } .why-stats dt { font-size: 32px !important; } .why-stats dd { margin-top: 8px; font-size: 13.5px; }
    /* antídoto: el texto ya lo explica; se quedan las preocupaciones */
    .hz-dark { padding: 40px 0; } .anti-grid { gap: 24px; } .anti-steps { display: none; }
    .anti-r .lf-out { margin-top: 12px; padding: 14px 16px; } .anti-r .lf-out p { font-size: 14.5px; }
    /* tu voz y tu proyecto */
    .lp-vz { padding: 20px; } .lp-vz h3 { font-size: 21px; } .lp-vz > p:not(.vz-co) { display: none; }
    .lp-checks { gap: 8px; } .lp-checks li { padding: 12px 14px; }
    .lp-split { gap: 26px; } .lp-split .btn { margin-top: 18px; }
}

/* ---- revisión: confianza, probar sin cuenta, familias, condiciones, test, insignias ---- */
.hz-sello { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.hz-sello .ic { width: 18px; height: 18px; flex: none; color: var(--blue); margin-top: 1px; }
.hz-try { margin-top: 14px; font-size: 14.5px; } .hz-try a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.hch-scn { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 2px; }
.hch-scn button { font: inherit; font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.hch-scn button.on, .hch-chips button.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.hch-big span { display: block; }
.hch-gap { margin-top: 10px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.demo-banner, .warn-box { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; margin: 0 0 18px; border-radius: var(--r); background: var(--amber-50); color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.demo-banner .ic, .warn-box .ic { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--amber); }
.demo-note { padding: 10px 12px; border-radius: var(--r); background: var(--amber-50); }
.pub-h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.1; margin: 8px 0 14px; }
.pub-card { margin-top: 22px; }
.lp-narrow .lp-cta { margin-top: 26px; }
.legal-page .lg-sec { margin-top: 30px; } .legal-page h2 { font-size: 20px; margin-bottom: 8px; }
.legal-page ul { margin: 8px 0 0 18px; display: grid; gap: 8px; color: var(--ink-2); line-height: 1.6; } .legal-page p { color: var(--ink-2); line-height: 1.65; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 6px; }
.bdg { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--soft); color: var(--ink-3); }
.bdg .ic { width: 14px; height: 14px; } .bdg.on { background: var(--blue-50); color: var(--blue); }
.suit { display: grid; gap: 14px; } .suit-q { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.suit-q legend { font-weight: 650; font-size: 15px; margin-bottom: 4px; }
.inv-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; } .inv-card h2 { font-size: 20px; margin: 2px 0 4px; } .inv-card p { color: var(--ink-2); font-size: 14.5px; max-width: 520px; }
.fr-fam { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--blue-50); color: var(--blue); margin-left: 6px; }
.fr-rel { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; color: var(--ink-3); } .fr-rel select { font: inherit; padding: 3px 6px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); }
.pj2-range { margin-top: -6px; }
.page-h .h-acts { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 720px) { .hch-scn button { font-size: 12px; padding: 5px 9px; } .inv-card .actions { width: 100%; } }

/* ---- conexión familia ↔ joven y resumen familiar ---- */
.conn-card { border: 1px solid var(--blue-100); background: linear-gradient(180deg, var(--blue-50), var(--surface)); }
.conn { display: grid; gap: 14px; } .conn.ok { display: flex; align-items: center; gap: 14px; }
.conn.ok b { display: block; } .conn.ok span:not(.mv-ic) { color: var(--ink-3); font-size: 14px; }
.conn-t h2 { font-size: 21px; margin: 2px 0 6px; } .conn-t p { color: var(--ink-2); max-width: 640px; font-size: 15px; line-height: 1.55; }
.conn-link { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.conn-link input { flex: 1 1 280px; min-width: 0; font: inherit; font-size: 13.5px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); text-overflow: ellipsis; }
.conn-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.fam-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.fam-steps li { display: flex; align-items: center; gap: 12px; }
.fam-steps li > span { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; color: #fff; }
.fam-steps li.ok > span { background: var(--green); border-color: var(--green); } .fam-steps .ic { width: 14px; height: 14px; stroke-width: 3; }
.fam-steps b { display: block; font-size: 14.5px; } .fam-steps small { color: var(--ink-3); font-size: 13px; }
@media (max-width: 720px) { .fam-steps { grid-template-columns: 1fr; } }

/* ---- tarjeta de la portada: más sobria ---- */
.hz-chart { border-radius: 16px; padding: 26px 28px 20px; box-shadow: 0 1px 2px rgba(15, 20, 25, .05), 0 28px 56px -34px rgba(0, 50, 80, .4); }
.hch-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hch-lab { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.seg-lite { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.seg-lite button { font: inherit; font-size: 13px; font-weight: 600; padding: 7px 13px; border: 0; border-left: 1px solid var(--line-2); background: transparent; color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s; }
.seg-lite button:first-child { border-left: 0; } .seg-lite button:hover { background: var(--soft); }
.seg-lite button.on { background: var(--ink); color: var(--surface); }
.hch-tabs { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 18px; border-bottom: 1px solid var(--line); }
.hch-tabs button { font: inherit; font-size: 13px; font-weight: 500; color: var(--ink-3); background: none; border: 0; border-bottom: 2px solid transparent; padding: 0 0 9px; margin-bottom: -1px; cursor: pointer; }
.hch-tabs button:hover { color: var(--ink-2); } .hch-tabs button.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--blue); }
.hz-chart .hch-big { margin-top: 20px; }
.hz-chart .hch-big b { color: var(--ink); font-size: clamp(38px, 4vw, 50px); letter-spacing: -.025em; }
.hz-chart .hch-big span { margin-top: 6px; font-size: 13.5px; color: var(--ink-3); }
.hz-chart .hch-plot { margin: 14px -4px 0; }
.hz-chart .hch-gap { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.hz-chart .note { color: var(--ink-4); }
@media (max-width: 480px) { .hz-chart { padding: 20px 18px 16px; } .hch-tabs { gap: 14px; } .seg-lite button { padding: 6px 10px; } }

/* ---- regalos y varias personas por familia ---- */
.gf-card { display: grid; gap: 6px; padding: 26px 28px; border-radius: 16px; color: #fff; background: radial-gradient(120% 90% at 100% 0%, rgba(247, 181, 0, .28), transparent 55%), linear-gradient(155deg, #0a8fc4, #005a80 55%, #0b2f45); box-shadow: 0 24px 48px -28px rgba(0, 60, 90, .6), inset 0 0 0 1px rgba(255, 255, 255, .14); max-width: 440px; }
.gf-k { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.gf-to { font-family: var(--font); font-weight: 650; font-size: 26px; margin-top: 8px; }
.gf-amt { font-family: var(--font); font-weight: 650; font-size: 44px; line-height: 1.05; letter-spacing: -.02em; }
.gf-msg { font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .9); margin: 4px 0; }
.gf-from { font-size: 13px; color: rgba(255, 255, 255, .75); padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .18); margin-top: 6px; }
.gf-from b { color: #fff; }
.auth-card .gf-card { margin-bottom: 22px; } .lp-narrow .gf-card { margin: 22px 0 18px; }
.gf-form { margin-top: 22px; } .gf-link { margin: 14px 0 18px; } .gf-note { margin: 0 0 16px; }
.fam-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -8px 0 20px; }
.fam-bar > span { font-size: 12.5px; color: var(--ink-3); margin-right: 2px; }
.fam-bar .chip.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.fam-bar .chip.add { display: inline-flex; align-items: center; gap: 6px; border-style: dashed; } .fam-bar .chip .ic { width: 14px; height: 14px; }
.fam-other { margin: -6px 0 18px; } .fam-other a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---- portada: el valor de empezar hoy ---- */
.ht { width: 100%; max-width: 580px; }
.ht-k { font-size: 16px; color: var(--ink-2); } .ht-k b { color: var(--ink); white-space: nowrap; }
.ht-big { margin: 4px 0 6px; font-weight: 760; font-size: clamp(60px, 8vw, 108px); line-height: 1; letter-spacing: -.05em; color: var(--ht-gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
:root { --ht-gold: #c97a00; } [data-theme="dark"] { --ht-gold: #ffc247; }
.ht-say { font-size: clamp(18px, 1.7vw, 22px); font-weight: 600; line-height: 1.3; letter-spacing: -.015em; color: var(--ink); }
.ht-plot { margin-top: 10px; } .ht-plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.ht-a { stroke: var(--blue); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; animation: htDraw 1.4s cubic-bezier(.3, .7, .2, 1) both; }
.ht-b { stroke: var(--ink-3); stroke-width: 2.5; stroke-linejoin: round; }
.ht-gap { stroke: var(--ht-gold); stroke-width: 4; }
.ht-t1 { font-size: 20px; font-weight: 720; fill: var(--ink); } .ht-t2 { font-size: 17px; font-weight: 600; fill: var(--ink-2); } .ht-t3 { font-size: 13px; fill: var(--ink-3); }
.ht.still .ht-a { animation: none; }
@keyframes htDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .ht-a { animation: none; } }
.ht-range { display: block; margin-top: 16px; } .ht-range span { font-size: 15px; color: var(--ink-2); } .ht-range b { color: var(--ink); font-size: 17px; }
.ht-range input { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 6px; margin: 14px 0 4px; border-radius: 6px; cursor: pointer; background: linear-gradient(90deg, var(--blue) var(--p, 44%), var(--line-2) var(--p, 44%)); }
.ht-range input::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 6px solid var(--blue); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.ht-range input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 6px solid var(--blue); }
.ht .note { font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 720px) { .ht-t1 { font-size: 23px; } .ht-t2 { font-size: 20px; } .ht-t3 { font-size: 16px; } }
.hz-copy .lp-cta .btn { margin-left: 0 !important; margin-right: 0 !important; }
/* misma escala, peso y azul que el titular de la portada */
.ht { max-width: 500px; }
.ht-k { font-size: 14.5px; }
.ht-big { font-size: clamp(40px, 3.9vw, 56px); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; color: var(--blue); margin: 4px 0; }
.ht-say { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--ink-2); }
.ht-plot { margin-top: 14px; }
.ht-a { stroke-width: 3.5; } .ht-b { stroke-width: 2; } .ht-gap { stroke: var(--blue); stroke-width: 2; stroke-dasharray: 2 4; }
.ht-t1 { font-size: 18px; font-weight: 680; } .ht-t2 { font-size: 16px; }
.ht-range { margin-top: 12px; } .ht-range span { font-size: 14px; } .ht-range b { font-size: 14px; }
.ht-range input { height: 4px; } .ht-range input::-webkit-slider-thumb { width: 20px; height: 20px; border-width: 5px; }
.ht-range input::-moz-range-thumb { width: 10px; height: 10px; border-width: 5px; }
.ht .note { font-size: 12px; }
@media (max-width: 720px) { .ht-t1 { font-size: 22px; } .ht-t2 { font-size: 20px; } }
/* asteriscos de la portada */
.lp sup { font-size: .72em; line-height: 0; vertical-align: super; color: inherit; }
.lp-ast { margin-top: 16px; display: grid; gap: 8px; font-size: 12.5px; line-height: 1.6; color: var(--ink-3); } .lp-ast a { text-decoration: underline; }
.lp-links a { white-space: nowrap; } @media (max-width: 1080px) { .lp-nav .lp-links { display: none; } .lp-nav .lp-right { margin-left: auto; } }

.ht-say b { color: var(--ink); } .ht-say em { font-style: normal; font-weight: 700; color: var(--blue); }
.hz-copy h1 { text-wrap: balance; }
/* tus ideas: voz y proyecto juntos */
.vp { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 36px; }
.vp-c { display: flex; flex-direction: column; padding: 28px 0 0; border-top: 1px solid var(--line-2); }
.vp-ic { color: var(--blue); } .vp-ic .ic { width: 26px; height: 26px; }
.vp-c h3 { margin: 18px 0 8px; font-size: 21px; } .vp-c p { color: var(--ink-2); line-height: 1.6; }
.vp-c blockquote { margin: auto 0 0; padding: 16px 0 0; border: 0; font-size: 15.5px; font-weight: 600; line-height: 1.45; } .vp-c blockquote small { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-3); margin-bottom: 4px; }
.vp-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; } .vp-foot small { color: var(--ink-3); font-size: 13px; }
.ideas-tabs { display: flex; gap: 26px; margin: -8px 0 24px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.ideas-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 0 0 12px; font-size: 15px; font-weight: 600; white-space: nowrap; color: var(--ink-3); border-bottom: 2px solid transparent; } .ideas-tabs a.on { color: var(--ink); border-color: var(--blue); } .ideas-tabs .ic { width: 18px; height: 18px; }
@media (max-width: 720px) { .vp { grid-template-columns: 1fr; } .vp { gap: 28px; } }
.vp-foot .btn { margin: 0 !important; } .ideas-tabs { margin-top: 6px; }

.ht-plot { cursor: crosshair; touch-action: pan-y; } .ht-cur { stroke: var(--blue); stroke-width: 1.5; stroke-dasharray: 3 4; } .ht-t4 { font-size: 11px; fill: var(--ink-4); }
.ht .note { min-height: 4.6em; } .ht-k b, .ht-say b, .ht-say em { font-variant-numeric: tabular-nums; }

/* ================================================================ acabado de la app: sin cajas, con filetes, aire y tipografía.
   Marco solo en lo necesario: respuestas, campos y la tarjeta del certificado. */
body[data-view="app"] .page { max-width: 1140px; padding-top: 48px; }
body[data-view="app"] .page-h h1 { font-size: 40px; line-height: 1.1; }
body[data-view="app"] .card { padding: 38px 0; }
body[data-view="app"] .card-h h2 { font-size: 20px; } body[data-view="app"] .card-h p { font-size: 14.5px; line-height: 1.55; color: var(--ink-3); }
body[data-view="app"] .row { padding: 16px 0; }
.home-h { align-items: center; padding-bottom: 12px; }
.h-hero { padding: 42px 0; } .h-stats { padding: 36px 0; } .h-cols { padding: 40px 0 8px; } .h-money .vh-v { font-size: 46px; } .h-stats dd { font-size: 32px; }

/* aprende */
.cert-card .cred-hero { flex-direction: column; align-items: stretch; gap: 26px; } .cert-card .cred-btn { width: 100%; } .cert-card .cred.big { width: 100%; max-width: 420px; }
.course .row { padding: 20px 0; } .course .tick.num { width: 34px; height: 34px; border: 0; background: none; border-radius: 0; font-family: var(--font); font-weight: 650; font-size: 28px; color: var(--blue); display: grid; place-items: center; flex: none; }
.course .row.ok .tick { background: none; color: var(--green); } .course .row > div b { font-size: 16.5px; } .course .row > div span { font-size: 14px; }
.games-card .games, .pub-card .games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.games-card .game, .pub-card .game { flex-direction: column; align-items: flex-start; gap: 14px; padding: 4px 28px; border: 0; border-left: 1px solid var(--line-2); } .games-card .game:first-child, .pub-card .game:first-child { padding: 4px 28px 4px 0; border-left: 0; }
.game b { font-size: 16.5px; margin-bottom: 4px; } .game small { font-size: 14px; line-height: 1.5; } .game > span { border: 0; width: auto; height: auto; color: var(--blue); } .game > span .ic { width: 24px; height: 24px; }
.badges { gap: 10px 22px; margin: 26px 0 8px; } .bdg, .bdg.on { padding: 0; background: none; }

/* alta: dos mitades */
.auth.split { display: grid; grid-template-columns: minmax(360px, 5fr) 7fr; padding: 0; background: var(--surface); }
.auth-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 40px 48px; color: #fff; background: radial-gradient(90% 60% at 100% 0%, rgba(247, 181, 0, .22), transparent 60%), linear-gradient(160deg, #0a85b5, #00587e 52%, #07283b); overflow: auto; }
.auth-side .brand-word, .auth-side .brand-sub { color: #fff !important; } .auth-side .brand-star { filter: brightness(0) invert(1); }
.auth-side h2 { font-family: var(--font); font-weight: 650; font-size: clamp(32px, 3.2vw, 46px); line-height: 1.12; } .auth-side p { margin-top: 14px; font-size: 17px; color: rgba(255, 255, 255, .85); }
.auth-side ul { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; font-size: 15.5px; } .auth-side li { display: flex; align-items: center; gap: 12px; } .auth-side sup { line-height: 0; }
.auth-ast, .auth-side .auth-ast p { font-size: 11.5px; line-height: 1.5; color: rgba(255, 255, 255, .72); margin: 0; }
.auth-main { display: flex; flex-direction: column; min-height: 100vh; } .auth-main .auth-top { width: 100%; max-width: none; margin: 0; padding: 26px 40px; } .auth-main .auth-top .brand { visibility: hidden; }
.auth.split .auth-card { width: 100%; max-width: 460px; margin: auto; padding: 12px 0 56px; background: none; box-shadow: none; border-radius: 0; border: 0; }
.auth.split .auth-card h1 { font-size: 38px; line-height: 1.12; } .auth.split .auth-steps { margin-bottom: 36px; } .auth.split .auth-steps li { font-size: 13.5px; }
.auth.split .form { gap: 20px; } .auth.split .field span { font-size: 14px; } .auth.split .field input, .auth.split .field select { height: 54px; } .auth.split .form .btn.lg { height: 54px; margin-top: 6px; } .auth.split .form .note { margin-top: 0; }
.auth.split .auth-foot { flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .auth.split { display: block; } .auth-side { display: none; } .auth-main .auth-top { padding: 18px 20px; } .auth-main .auth-top .brand { visibility: visible; } .auth.split .auth-card { margin: 0 auto; padding: 16px 20px 48px; } .auth.split .auth-card h1 { font-size: 32px; } }

/* temario y ejercicios */
.focus { background: var(--surface); display: flex; flex-direction: column; }
.focus-top { width: 100%; max-width: 860px; background: var(--surface); }
.focus-body { width: 100%; max-width: 780px; margin: 0 auto; padding: 48px 40px 60px; }
.focus-body h1 { font-family: var(--font); font-weight: 650; font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -.02em; line-height: 1.15; }
.focus-body > p { font-size: 18px; line-height: 1.7; } .focus-body > p + p { margin-top: 18px; }
.ex { margin: 30px 0 6px; padding: 4px 0 4px 22px; }
.focus-nav { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); } .focus-nav.center { border: 0; padding-top: 0; } .focus-nav .btn { min-height: 48px; padding-left: 24px; padding-right: 24px; }
.opts { gap: 14px; margin-top: 32px; } .opt { padding: 20px 22px; font-size: 17px; border-radius: 16px; transition: border-color .15s, background .15s, box-shadow .15s; }
.opt > span { width: 36px; height: 36px; border-radius: 50%; font-size: 14.5px; background: var(--page); border: 1px solid var(--line-2); } .opt:hover:not([disabled]) { box-shadow: 0 12px 26px -20px rgba(0, 60, 90, .6); } .opt:hover:not([disabled]) > span { border-color: var(--blue); color: var(--blue); }
.opt.right > span, .opt.wrong > span { border-color: transparent; } .opt[disabled]:not(.right):not(.wrong) { opacity: .55; }
.focus .why { margin-top: 26px; padding: 4px 0 4px 20px; border-radius: 0; background: none; border-left: 3px solid var(--amber); } .focus .why.ok { border-color: var(--green); } .focus .why b { font-size: 16px; } .focus .why p { font-size: 15.5px; line-height: 1.6; margin-top: 4px; }
.focus-body .viz { padding: 26px 0 0; border-radius: 0; background: none; border-top: 1px solid var(--line); }
.focus.has-rail { display: grid; grid-template-columns: 310px minmax(0, 1fr); grid-template-rows: auto 1fr; }
.rail { grid-row: 1 / span 2; position: sticky; top: 0; height: 100vh; overflow: auto; padding: 30px 26px; background: var(--surface); border-right: 1px solid var(--line); }
.rail-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-3); } .rail-back .ic { width: 17px; height: 17px; }
.rail h2 { margin-top: 26px; font-family: var(--font); font-weight: 650; font-size: 26px; line-height: 1.2; } .rail > p { margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }
.rail ol { list-style: none; margin: 26px 0 0; padding: 0; position: relative; } .rail ol::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 1px; background: var(--line-2); }
.rail li a { position: relative; display: flex; align-items: center; gap: 13px; padding: 10px; border-radius: 12px; font-size: 14px; line-height: 1.35; color: var(--ink-3); } .rail li a:hover { background: var(--hover); }
.rail li a > span { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--surface); border: 1.5px solid var(--line-2); color: #fff; } .rail li.q a > span { border-radius: 7px; } .rail li .ic { width: 12px; height: 12px; stroke-width: 3.2; }
.rail li.done a { color: var(--ink-2); } .rail li.done a > span { background: var(--green); border-color: var(--green); }
.rail li.on a { background: none; color: var(--ink); font-weight: 650; } .rail li.on a > span { border: 6px solid var(--blue); }
@media (max-width: 1000px) { .focus.has-rail { display: flex; } .rail { display: none; } }
@media (max-width: 860px) {
    body[data-view="app"] .page { padding: 24px 18px 36px; } body[data-view="app"] .card { padding: 28px 0; } body[data-view="app"] .page-h h1 { font-size: 30px; }
    .h-hero, .h-cols { padding: 26px 0; } .h-stats { padding: 8px 0; } .h-stats dd { font-size: 22px; } .h-money .vh-v { font-size: 38px; }
    .games-card .games, .pub-card .games { grid-template-columns: 1fr; } .games-card .game, .games-card .game:first-child, .pub-card .game, .pub-card .game:first-child { flex-direction: row; align-items: center; padding: 16px 0; border-left: 0; border-top: 1px solid var(--line); } .games-card .game:first-child, .pub-card .game:first-child { border-top: 0; }
    .focus-body { padding: 24px 20px 40px; } .focus-body > p { font-size: 17px; } .focus-nav { margin-top: 30px; padding-top: 20px; } .opt { padding: 16px; font-size: 16px; }
}
.focus-body { align-self: start; height: auto; } .focus:not(.has-rail) .focus-body { align-self: center; }
.auth.split { margin: 0; border: 0; gap: 0; }

.conn-card { border-left: 0 !important; border-right: 0 !important; background: none !important; }
.demo-banner, .demo-note { background: none; padding-left: 0; padding-right: 0; border-radius: 0; }
body[data-view="app"] .page-h:not(.home-h) { margin-bottom: 24px; }

/* ---- asistente flotante ---- */
.gem-fab { position: fixed; right: 28px; bottom: 28px; z-index: 40; display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 22px 0 18px; border: 0; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 650; color: #fff; cursor: pointer; background: linear-gradient(120deg, #6b5fe8, #1f8fd0); box-shadow: 0 16px 34px -12px rgba(40, 60, 170, .6); transition: transform .15s, box-shadow .15s; }
.gem-fab:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -12px rgba(40, 60, 170, .7); } .gem-fab .ic { width: 22px; height: 22px; }
.gem-panel { position: fixed; right: 28px; bottom: 28px; z-index: 45; width: 408px; height: min(640px, calc(100vh - 56px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-2); border-radius: 22px; box-shadow: 0 34px 80px -24px rgba(0, 20, 50, .5); overflow: hidden; animation: pop .2s ease-out; }
.gem-panel header { display: flex; align-items: center; gap: 12px; padding: 16px 14px 14px 18px; border-bottom: 1px solid var(--line); } .gem-panel header > div { flex: 1; min-width: 0; } .gem-panel header b { display: block; font-size: 15.5px; } .gem-panel header small { display: block; font-size: 12.5px; line-height: 1.4; color: var(--ink-3); }
.gem-panel .chat { flex: 1; min-height: 0; max-height: none; height: auto; overflow-y: auto; padding: 18px; margin: 0; border: 0; overscroll-behavior: contain; }
.gem-panel .sugg { flex: none; display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding: 4px 18px 10px; margin: 0; scrollbar-width: none; } .gem-panel .sugg .chip { flex: none; }
.gem-panel .ask { flex: none; margin: 0; padding: 0 18px; } .gem-panel .note { flex: none; margin: 10px 18px 14px; font-size: 11.5px; } .gem-perm { all: unset; cursor: pointer; font-weight: 600; color: var(--blue); }
body[data-view="app"] .page { padding-bottom: 110px; }
@media (max-width: 860px) {
    .gem-fab { right: 16px; bottom: calc(var(--tab) + env(safe-area-inset-bottom) + 14px); width: 54px; padding: 0; justify-content: center; } .gem-fab span { display: none; } body[data-view="focus"] .gem-fab { bottom: calc(env(safe-area-inset-bottom) + 16px); }
    .gem-panel { inset: auto 0 0 0; width: auto; height: min(86dvh, 720px); border-radius: 22px 22px 0 0; border-width: 1px 0 0; padding-bottom: env(safe-area-inset-bottom); z-index: 60; }
    body[data-view="focus"] .focus-body { padding-bottom: 100px; }
}
@media (prefers-reduced-motion: reduce) { .gem-panel { animation: none; } }
@media print { #gem { display: none; } }

@media (min-width: 861px) { .games-card .games { grid-template-columns: repeat(4, 1fr); } .games-card .game, .games-card .game:first-child { padding-right: 22px; } .games-card .game:not(:first-child) { padding-left: 22px; } }

.hz-ex { all: unset; cursor: pointer; color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---- portada: desplazamiento natural; cada sección aparece una vez ---- */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); } .rv.in { opacity: 1; transform: none; }
.hz-path { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; border-top: 1px solid var(--line-2); padding-top: 24px; }
.hz-path a { display: flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; } .hz-path .ic { width: 24px; height: 24px; color: var(--blue); flex: none; } .hz-path b, .hz-path small { display: block; } .hz-path b { font-size: 16px; font-weight: 650; } .hz-path small { font-size: 13.5px; color: var(--ink-3); margin-top: 2px; } .hz-path a:hover b { color: var(--blue); }
.ht .note { min-height: 4.9em; } .ht-say { min-height: 1.5em; } .ht-k, .ht-say { font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .hz-path { grid-template-columns: 1fr 1fr; gap: 20px 16px; } .hz-path b { font-size: 15px; } .hz-path small { font-size: 12.5px; } .ht .note { min-height: 6.6em; } }

/* ---- tipografía actual: una sola familia, redonda y clara ---- */
.serif, .lp-sec h2.serif, .hz-dark h2, .hz-final h2, .pub-h1 { font-weight: 700 !important; letter-spacing: -.032em !important; }
.page-h h1, body[data-view="app"] .page-h h1 { font-weight: 700; letter-spacing: -.032em; font-size: 36px; }
.focus-body h1, .focus-body h1.serif-q, .auth-card h1, .auth-side h2, .rail h2, .ad-why h2, .cs-info h2, .vz-card h2, .lp-vz h3, .pj-empty h2, .pj-title { font-weight: 700; letter-spacing: -.028em; }
.why-stats dt, .gf-amt, .stat b, .vh-v, .ht-big { font-weight: 700; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.brand-word { font-weight: 700 !important; letter-spacing: -.03em; } .cred-mid b, .cred-chip b, .gf-to { font-weight: 650; letter-spacing: -.02em; }
.lp-game blockquote, .pj2-say, .ad-item b { font-weight: 600; letter-spacing: -.015em; } .course .tick.num { font-weight: 700; font-size: 22px; }
/* ---- tus millas ---- */
.mls { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; padding: 6px 0 26px; } .mls-n b { display: block; font-size: 52px; font-weight: 750; line-height: 1; letter-spacing: -.04em; color: var(--gold); font-variant-numeric: tabular-nums; } .mls-n span { font-size: 14px; color: var(--ink-3); }
.mls dl { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 0; } .mls dt { font-size: 13px; color: var(--ink-3); } .mls dd { margin: 2px 0 0; font-size: 17px; font-weight: 650; }
.mtab { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; } .mtab th { text-align: left; font-size: 13px; font-weight: 500; color: var(--ink-3); padding: 0 12px 10px 0; } .mtab td { padding: 14px 12px 14px 0; border-top: 1px solid var(--line); color: var(--ink-2); } .mtab td:last-child { text-align: right; padding-right: 0; font-size: 13.5px; color: var(--ink-3); } .mtab td b { color: var(--ink); }
.pj2-key { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 12px 0 22px; font-size: 13.5px; color: var(--ink-2); } .pj2-key span { display: inline-flex; align-items: center; gap: 8px; } .pj2-key i { width: 20px; border-top: 3px solid var(--blue); } .pj2-key .k-b { border-top: 2px dotted var(--ink-3); } .pj2-key .k-c { border-top: 3px dashed var(--gold); }
.pj-list dd small { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.pj2-notes { margin-top: 24px; font-size: 13.5px; line-height: 1.6; color: var(--ink-3); } .pj2-notes b { color: var(--ink-2); } .pj2-notes ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 5px; }
.cat-f { margin-bottom: 14px; } .cat { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.cat-i { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); } .cat-i:nth-child(-n+2) { border-top: 0; } .cat-i:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 40%, transparent); outline-offset: 2px; border-radius: 8px; }
.cat-i > span { color: var(--blue); display: grid; } .cat-i > span .ic { width: 26px; height: 26px; } .cat-i > div { flex: 1; min-width: 0; } .cat-i b { display: block; font-size: 16px; } .cat-i small { font-size: 13.5px; color: var(--ink-3); } .cat-i em { font-style: normal; font-weight: 700; font-size: 17px; color: var(--gold); text-align: right; white-space: nowrap; } .cat-i em small { display: block; font-weight: 500; font-size: 12.5px; } .cat-i:hover b { color: var(--blue); }
.cat-opts { display: grid; gap: 8px; } .cat-o { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: 14px; cursor: pointer; } .cat-o:has(:checked) { border-color: var(--blue); background: var(--blue-50); } .cat-o.off { opacity: .5; cursor: default; } .cat-o span { flex: 1; } .cat-o b, .cat-o small { display: block; } .cat-o small { font-size: 12.5px; color: var(--ink-3); } .cat-o em { font-style: normal; font-weight: 700; text-align: right; } .cat-o em small { font-weight: 500; }
.wm { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: center; } .wm-d { position: relative; } .wm-d svg { display: block; width: 100%; } .wm-d > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; } .wm-d small { font-size: 13px; color: var(--ink-3); } .wm-d b { font-size: 23px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.wm-l h3 { font-size: 15px; margin: 0 0 8px; } .wm-l ul + h3 { margin-top: 22px; } .wm-l h3 span { color: var(--ink-3); font-weight: 500; } .wm-l ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; } .wm-l li { break-inside: avoid; display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; } .wm-l li i { width: 10px; height: 10px; border-radius: 3px; flex: none; } .wm-l li span { flex: 1; color: var(--ink-2); } .wm-l li small { display: block; font-size: 12px; color: var(--ink-3); } .wm-l li b { font-variant-numeric: tabular-nums; } .wm-l li em { font-style: normal; min-width: 66px; text-align: right; color: var(--ink-3); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .cat { grid-template-columns: 1fr; } .cat-i:nth-child(2) { border-top: 1px solid var(--line); } .wm { grid-template-columns: 1fr; gap: 24px; } .wm-d { max-width: 240px; margin: 0 auto; } .wm-l ul { columns: 1; } .mls-n b { font-size: 44px; } .mtab { font-size: 13.5px; } }
.ideas-tabs + .grid > .card:first-child { border-top: 0; padding-top: 8px; }
.chip.on { background: var(--blue); border-color: var(--blue); color: var(--page); }
#sheet form[data-form="mlUse"] { margin-top: 16px; } .cat-o input { accent-color: var(--blue); }
@media (max-width: 860px) { .card-h:has([data-real]) { flex-direction: column; align-items: flex-start; gap: 14px; } .pj-list dd { text-align: right; } }
