@font-face { font-family: "Bricolage"; src: url("fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("fonts/instrument.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --ink: #070b1f; --ink2: #0d1330; --ink3: #151c44;
  --glass: rgba(255,255,255,.055); --glass2: rgba(255,255,255,.09); --line: rgba(255,255,255,.1);
  --text: #eef1ff; --mute: #98a0c8; --faint: #5d668f;
  --inc: #5be7b8; --exp: #ff7d93; --warn: #ffc466;
  --a1: #4fe3c1; --a2: #8b7cff;
  --grad: linear-gradient(120deg, var(--a1), var(--a2));
  --display: "Bricolage", "Avenir Next", system-ui, sans-serif;
  --body: "Instrument", system-ui, -apple-system, sans-serif;
  --spring: cubic-bezier(.2,.9,.25,1.15); --out: cubic-bezier(.22,.8,.26,1);
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
[data-accent="solar"] { --a1: #ffb648; --a2: #ff6f91; }
[data-accent="ocean"] { --a1: #58c7ff; --a2: #4f7dff; }
[data-accent="orchid"] { --a1: #ff8fd0; --a2: #9a7bff; }
[data-accent="lime"] { --a1: #b6f36a; --a2: #37d6c4; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body { background: var(--ink); color: var(--text); font: 16px/1.45 var(--body); overscroll-behavior: none; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .num { font-family: var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ic { width: 22px; height: 22px; flex: none; }
:focus-visible { outline: 2px solid var(--a1); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }

/* Fondo: dos luces que derivan despacio, teñidas por el color elegido */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(120% 80% at 50% 0%, var(--ink3), var(--ink) 60%); }
.sky i { position: absolute; width: 85vmax; height: 85vmax; border-radius: 50%; filter: blur(90px); opacity: .22; animation: drift 38s ease-in-out infinite alternate; }
.sky i:nth-child(1) { background: var(--a1); top: -48vmax; left: -30vmax; }
.sky i:nth-child(2) { background: var(--a2); top: -40vmax; right: -44vmax; animation-delay: -19s; opacity: .26; }
@keyframes drift { to { transform: translate3d(9vmax, 7vmax, 0) scale(1.12); } }

#app { max-width: 520px; margin: 0 auto; min-height: 100%; position: relative; }

/* ---------- Pantallas de entrada (bienvenida, asistente, bloqueo) ---------- */
.stage { min-height: 100dvh; display: flex; flex-direction: column; padding: calc(var(--safe-t) + 22px) 24px calc(var(--safe-b) + 24px); }
.stage-top { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 18px var(--display); }
.brand svg { width: 30px; height: 30px; }
.lang { display: inline-flex; background: var(--glass); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--mute); }
.lang button.on { background: var(--glass2); color: var(--text); }
.hero-word { margin-top: auto; }
.hero-word h1 { font-size: clamp(44px, 13vw, 64px); line-height: .98; font-weight: 700; }
.hero-word h1 span { display: block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-word p { color: var(--mute); margin: 18px 0 30px; max-width: 32ch; font-size: 17px; }
.horizon { display: block; margin: 0 -24px 6px; width: calc(100% + 48px); height: 150px; }
.horizon path { fill: none; stroke-linecap: round; }
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s .15s var(--out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; padding: 0 20px; border-radius: 18px; font-weight: 650; font-size: 16.5px; transition: transform .15s var(--out), opacity .2s, filter .2s; }
.btn:active { transform: scale(.97); }
.btn.pri { background: var(--grad); color: #071022; box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--a2) 80%, transparent); }
.btn.sec { background: var(--glass); border: 1px solid var(--line); }
.btn.ghost { color: var(--mute); min-height: 46px; font-weight: 550; }
.btn.danger { background: rgba(255,125,147,.12); color: var(--exp); border: 1px solid rgba(255,125,147,.3); }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn.busy { pointer-events: none; color: transparent; position: relative; }
.btn.busy::after { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid #071022; border-top-color: transparent; animation: spin .7s linear infinite; }
.btn.sec.busy::after { border-color: var(--text); border-top-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.stack { display: grid; gap: 12px; }

.wiz { flex: 1; display: flex; flex-direction: column; }
.wiz-bar { display: flex; gap: 6px; flex: 1; margin: 0 14px; }
.wiz-bar i { flex: 1; height: 4px; border-radius: 4px; background: var(--glass2); overflow: hidden; position: relative; }
.wiz-bar i::after { content: ""; position: absolute; inset: 0; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--out); }
.wiz-bar i.done::after { transform: scaleX(1); }
.back { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--glass); border: 1px solid var(--line); }
.wiz-body { flex: 1; display: flex; flex-direction: column; padding-top: 34px; animation: stepIn .45s var(--out); }
.wiz-body.rev { animation-name: stepBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(28px); } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-28px); } }
.wiz-body h2 { font-size: 32px; line-height: 1.05; font-weight: 650; }
.wiz-body .lead { color: var(--mute); margin: 12px 0 26px; max-width: 36ch; }
.wiz-foot { margin-top: auto; padding-top: 22px; display: grid; gap: 10px; }

.field { display: grid; gap: 7px; }
.field > span { font-size: 13.5px; color: var(--mute); font-weight: 550; }
.input { width: 100%; min-height: 54px; padding: 0 16px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); outline: none; transition: border-color .2s, background .2s; font-size: 16.5px; appearance: none; -webkit-appearance: none; }
.input:focus { border-color: var(--a1); background: var(--glass2); }
.input::placeholder { color: var(--faint); }
select.input { background-image: none; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 52px; }
.input-wrap button { position: absolute; right: 6px; top: 6px; width: 42px; height: 42px; display: grid; place-items: center; color: var(--mute); }
.money { position: relative; }
.money::before { content: "$"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--mute); font: 600 18px var(--display); }
.money .input { padding-left: 32px; font: 600 19px var(--display); }
.meter { display: flex; gap: 5px; margin-top: 2px; }
.meter i { flex: 1; height: 4px; border-radius: 4px; background: var(--glass2); transition: background .3s; }
.hint { font-size: 13.5px; color: var(--mute); }
.hint.err { color: var(--exp); }
.note { display: flex; gap: 12px; padding: 14px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); font-size: 14px; color: var(--mute); }
.note .ic { color: var(--a1); margin-top: 1px; }
.note.warn .ic { color: var(--warn); }

.code { font: 600 21px/1.7 var(--display); letter-spacing: .06em; text-align: center; padding: 20px 12px; border-radius: 20px; background: var(--glass); border: 1px dashed color-mix(in srgb, var(--a1) 55%, transparent); display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 0 16px; user-select: all; -webkit-user-select: all; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; gap: 12px; align-items: center; padding: 14px 4px; font-size: 15px; }
.check input { appearance: none; -webkit-appearance: none; width: 26px; height: 26px; border-radius: 9px; border: 1.5px solid var(--faint); flex: none; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.check input:checked { background: var(--a1); border-color: var(--a1); }
.check input:checked::after { content: ""; width: 11px; height: 6px; border: solid #071022; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translateY(-1px); }

/* PIN */
.pin { display: flex; flex-direction: column; align-items: center; flex: 1; }
.avatar { width: 68px; height: 68px; border-radius: 24px; background: var(--grad); color: #071022; display: grid; place-items: center; font: 700 28px var(--display); }
.avatar.sm { width: 40px; height: 40px; border-radius: 14px; font-size: 17px; }
.dots { display: flex; gap: 14px; margin: 26px 0 8px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--faint); transition: transform .2s var(--spring), background .15s, border-color .15s; }
.dots i.on { background: var(--a1); border-color: var(--a1); transform: scale(1.15); }
.dots.shake { animation: shake .4s; }
.dots.shake i { border-color: var(--exp); background: transparent; }
@keyframes shake { 20% { transform: translateX(-9px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: min(300px, 100%); margin: auto auto 0; }
.pad button { height: 68px; border-radius: 24px; background: var(--glass); border: 1px solid var(--line); font: 500 27px var(--display); display: grid; place-items: center; transition: transform .12s var(--out), background .12s; }
.pad button:active { transform: scale(.92); background: var(--glass2); }
.pad button.flat { background: none; border-color: transparent; color: var(--mute); }
.pin-msg { min-height: 22px; font-size: 14px; color: var(--mute); text-align: center; }
.pin-msg.err { color: var(--exp); }

/* ---------- Aplicación ---------- */
.view { padding: calc(var(--safe-t) + 14px) 18px calc(var(--safe-b) + 120px); }
.view.in-r { animation: viewR .32s var(--out); }
.view.in-l { animation: viewL .32s var(--out); }
@keyframes viewR { from { opacity: 0; transform: translateX(18px); } }
@keyframes viewL { from { opacity: 0; transform: translateX(-18px); } }
.top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.top .who { flex: 1; min-width: 0; }
.top .who small { display: block; color: var(--mute); font-size: 13px; }
.top .who b { font: 600 18px var(--display); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.round { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--line); color: var(--mute); transition: transform .15s; }
.round:active { transform: scale(.9); }
.sync { width: 9px; height: 9px; border-radius: 50%; background: var(--inc); box-shadow: 0 0 0 4px rgba(91,231,184,.14); transition: background .3s; }
.sync.saving { background: var(--warn); box-shadow: 0 0 0 4px rgba(255,196,102,.14); animation: pulse 1s infinite; }
.sync.offline { background: var(--faint); box-shadow: none; }
@keyframes pulse { 50% { opacity: .35; } }
h2.title { font-size: 30px; font-weight: 650; margin-bottom: 16px; }

.hero { position: relative; border-radius: 30px; padding: 22px 22px 0; overflow: hidden; background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.03)); border: 1px solid var(--line); }
.hero .lbl { color: var(--mute); font-size: 14px; display: flex; justify-content: space-between; }
.hero .big { font: 700 clamp(40px, 12.5vw, 54px)/1.05 var(--display); letter-spacing: -.035em; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.hero .big.neg { color: var(--exp); }
.hero .end { font-size: 14px; color: var(--mute); }
.hero .end b { color: var(--text); font-weight: 600; }
.chart { display: block; width: calc(100% + 44px); margin: 6px -22px 0; height: 118px; }
.chart path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.legend { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin: 0 -22px; }
.legend div { padding: 13px 22px 15px; }
.legend div + div { border-left: 1px solid var(--line); }
.legend small { color: var(--mute); font-size: 13px; display: flex; align-items: center; gap: 7px; }
.legend small::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--inc); }
.legend div + div small::before { background: var(--exp); }
.legend b { font: 600 19px var(--display); font-variant-numeric: tabular-nums; }

.sec { margin-top: 26px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 11px; }
.sec-h h3 { font-size: 18px; font-weight: 600; }
.sec-h button { color: var(--a1); font-size: 14px; font-weight: 600; padding: 4px 0 4px 12px; }

.quick { display: flex; gap: 10px; overflow-x: auto; margin: 0 -18px; padding: 2px 18px 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
.quick::-webkit-scrollbar { display: none; }
.q { flex: none; min-width: 92px; padding: 13px 14px 12px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); text-align: left; display: grid; gap: 9px; scroll-snap-align: start; transition: transform .15s var(--out), background .15s; }
.q:active { transform: scale(.94); background: var(--glass2); }
.q .dot { width: 36px; height: 36px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--a1)) 20%, transparent); color: var(--c, var(--a1)); }
.q b { font-size: 14px; font-weight: 600; white-space: nowrap; }
.q small { display: block; color: var(--mute); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.q.add { border-style: dashed; color: var(--mute); background: none; }
.q.done { animation: pop .5s var(--spring); }
@keyframes pop { 40% { transform: scale(1.08); background: color-mix(in srgb, var(--inc) 22%, transparent); } }

.card { border-radius: 22px; background: var(--glass); border: 1px solid var(--line); }
.rows > * + * { border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 13px; padding: 13px 15px; width: 100%; text-align: left; }
button.row:active { background: var(--glass); }
.row .dot { width: 40px; height: 40px; border-radius: 14px; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--a1)) 18%, transparent); color: var(--c, var(--a1)); }
.row .mid { flex: 1; min-width: 0; }
.row .mid b { display: block; font-weight: 600; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .mid small { color: var(--mute); font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .amt { font: 600 16px var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.row .amt.inc { color: var(--inc); }
.row > .ic { color: var(--faint); }
.row.new { animation: rowIn .6s var(--out); }
@keyframes rowIn { from { opacity: 0; transform: translateY(-10px); background: color-mix(in srgb, var(--a1) 18%, transparent); } }
.pill { font-size: 12.5px; font-weight: 650; padding: 5px 11px; border-radius: 999px; background: color-mix(in srgb, var(--a1) 18%, transparent); color: var(--a1); white-space: nowrap; }

.bud { padding: 14px 15px; display: grid; gap: 8px; }
.bud-h { display: flex; justify-content: space-between; font-size: 14.5px; gap: 10px; }
.bud-h b { font-weight: 600; } .bud-h span { color: var(--mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar { height: 8px; border-radius: 8px; background: var(--glass2); overflow: hidden; position: relative; }
.bar i { position: absolute; inset: 0; border-radius: 8px; background: var(--c, var(--a1)); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .8s var(--out); }
.bar i.over { background: var(--exp); }
.bar i.ghost { opacity: .35; }
.empty { padding: 30px 22px; text-align: center; color: var(--mute); display: grid; gap: 14px; justify-items: center; }
.empty .ic { width: 34px; height: 34px; color: var(--a1); }
.empty .btn { width: auto; min-height: 46px; }

/* Barra inferior */
.tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--safe-b) + 12px); width: min(484px, calc(100% - 28px)); height: 68px; border-radius: 26px; display: grid; grid-template-columns: 1fr 1fr 72px 1fr 1fr; align-items: center; background: rgba(16,22,56,.72); backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5); border: 1px solid var(--line); z-index: 10; box-shadow: 0 18px 40px -12px rgba(0,0,0,.6); }
.tab { display: grid; justify-items: center; gap: 3px; color: var(--faint); font-size: 11px; font-weight: 600; height: 100%; align-content: center; transition: color .2s; }
.tab .ic { transition: transform .3s var(--spring); }
.tab.on { color: var(--text); }
.tab.on .ic { transform: translateY(-1px) scale(1.08); color: var(--a1); }
.fab { width: 58px; height: 58px; border-radius: 21px; margin: -22px auto 0; background: var(--grad); color: #071022; display: grid; place-items: center; box-shadow: 0 12px 28px -8px color-mix(in srgb, var(--a2) 90%, transparent); transition: transform .2s var(--spring); }
.fab .ic { width: 28px; height: 28px; stroke-width: 2.2; }
.fab:active { transform: scale(.9) rotate(90deg); }

/* Hojas */
.scrim { position: fixed; inset: 0; background: rgba(3,5,18,.62); z-index: 20; animation: fade .25s; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.scrim.out { animation: fadeOut .22s forwards; }
@keyframes fade { from { opacity: 0; } } @keyframes fadeOut { to { opacity: 0; } }
.sheet { position: fixed; left: 50%; bottom: 0; width: min(520px, 100%); max-height: 94dvh; transform: translateX(-50%); z-index: 21; background: linear-gradient(180deg, #171e4a, #0d1330); border: 1px solid var(--line); border-bottom: 0; border-radius: 30px 30px 0 0; display: flex; flex-direction: column; animation: up .42s var(--spring); }
.sheet.out { animation: down .24s var(--out) forwards; }
@keyframes up { from { transform: translate(-50%, 100%); } } @keyframes down { to { transform: translate(-50%, 100%); } }
.sheet-h { display: flex; align-items: center; gap: 10px; padding: 16px 16px 6px; }
.sheet-h h3 { flex: 1; font-size: 20px; font-weight: 600; text-align: center; }
.sheet-h .round { width: 38px; height: 38px; }
.sheet-h .sp { width: 38px; }
.sheet-b { overflow-y: auto; padding: 10px 18px calc(var(--safe-b) + 20px); -webkit-overflow-scrolling: touch; }
.sheet-b.page { animation: stepIn .3s var(--out); }
.grp { margin-top: 20px; } .grp > small { display: block; color: var(--mute); font-size: 13px; font-weight: 600; margin: 0 4px 8px; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); }
.seg button { min-height: 40px; border-radius: 12px; font-weight: 600; font-size: 14.5px; color: var(--mute); transition: background .2s, color .2s; }
.seg button.on { background: var(--glass2); color: var(--text); }
.seg button.on[data-v="exp"] { background: color-mix(in srgb, var(--exp) 22%, transparent); color: var(--exp); }
.seg button.on[data-v="inc"] { background: color-mix(in srgb, var(--inc) 20%, transparent); color: var(--inc); }
.amount { text-align: center; font: 700 56px/1.1 var(--display); letter-spacing: -.035em; padding: 14px 0 10px; font-variant-numeric: tabular-nums; }
.amount small { font-size: 30px; color: var(--mute); font-weight: 500; margin-right: 3px; }
.amount.bump { animation: bump .18s var(--out); }
@keyframes bump { 50% { transform: scale(1.045); } }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -18px; padding: 2px 18px 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.chip { flex: none; display: flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); font-size: 14px; font-weight: 550; color: var(--mute); transition: all .18s var(--out); }
.chip .ic { width: 18px; height: 18px; color: var(--c, var(--a1)); }
.chip.on { background: color-mix(in srgb, var(--c, var(--a1)) 22%, transparent); border-color: var(--c, var(--a1)); color: var(--text); transform: scale(1.03); }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.keys button { height: 54px; border-radius: 16px; background: var(--glass); font: 500 23px var(--display); display: grid; place-items: center; transition: transform .1s, background .1s; }
.keys button:active { transform: scale(.94); background: var(--glass2); }
.inline { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.inline .input { min-height: 46px; font-size: 15px; border-radius: 14px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches button { width: 38px; height: 38px; border-radius: 50%; background: var(--c); border: 3px solid transparent; transition: transform .2s var(--spring); }
.swatches button.on { border-color: var(--text); transform: scale(1.12); }
.swatches.grad button { background: linear-gradient(135deg, var(--g1), var(--g2)); }
.icons { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.icons button { aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; color: var(--mute); }
.icons button.on { background: var(--glass2); color: var(--a1); }

/* Análisis de compra */
.verdict { border-radius: 26px; padding: 20px; border: 1px solid color-mix(in srgb, var(--vc) 45%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--vc) 20%, transparent), color-mix(in srgb, var(--vc) 5%, transparent)); animation: verdictIn .5s var(--spring); }
@keyframes verdictIn { from { opacity: 0; transform: scale(.94); } }
.verdict .tag { display: inline-flex; align-items: center; gap: 8px; color: var(--vc); font-weight: 650; font-size: 14px; }
.verdict h3 { font-size: 27px; line-height: 1.1; margin: 8px 0 8px; font-weight: 650; }
.verdict ul { margin: 0; padding-left: 18px; color: var(--mute); font-size: 14.5px; display: grid; gap: 5px; }
.cmp { padding: 15px; display: grid; gap: 9px; }
.cmp-h { display: flex; justify-content: space-between; font-size: 14.5px; font-weight: 600; }
.cmp-h small { color: var(--mute); font-weight: 500; }
.cmp-r { display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 10px; font-size: 13px; color: var(--mute); }
.cmp-r b { font: 600 15px var(--display); color: var(--text); font-variant-numeric: tabular-nums; min-width: 84px; text-align: right; }
.cmp-r b.neg { color: var(--exp); }

/* Consejos */
.split { display: flex; height: 14px; border-radius: 10px; overflow: hidden; gap: 3px; margin: 14px 0 12px; }
.split i { border-radius: 4px; flex: var(--f) 0 0; min-width: 4px; transition: flex .8s var(--out); }
.split-l { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 13px; color: var(--mute); }
.split-l b { display: block; font: 600 18px var(--display); color: var(--text); }
.split-l span { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.tip { display: flex; gap: 14px; padding: 16px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line); margin-top: 10px; }
.tip .dot { width: 40px; height: 40px; border-radius: 14px; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
.tip b { font-weight: 650; font-size: 16px; display: block; margin-bottom: 3px; }
.tip p { color: var(--mute); font-size: 14.5px; }

.month { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.month b { font: 600 19px var(--display); }
.day-h { display: flex; justify-content: space-between; color: var(--mute); font-size: 13px; font-weight: 600; margin: 18px 4px 8px; }
.totals { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.totals div { padding: 12px 13px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); min-width: 0; }
.totals small { color: var(--mute); font-size: 12.5px; display: block; }
.totals b { font: 600 16px var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }

.toast { position: fixed; left: 50%; bottom: calc(var(--safe-b) + 96px); transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: #232b62; border: 1px solid var(--line); box-shadow: 0 16px 40px -10px rgba(0,0,0,.7); font-size: 14.5px; font-weight: 550; animation: toastIn .4s var(--spring); max-width: calc(100% - 36px); white-space: nowrap; }
.toast.out { animation: toastOut .25s forwards; }
.toast .ic { color: var(--inc); width: 20px; height: 20px; }
.toast button { color: var(--a1); font-weight: 650; padding-left: 4px; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 20px) scale(.92); } } @keyframes toastOut { to { opacity: 0; transform: translate(-50%, 12px); } }
.banner { margin-bottom: 14px; }

@media (min-width: 700px) { .stage { min-height: 100vh; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .sky i { animation: none; }
}
