/* Layout: panel de control oscuro; menú lateral en compu, barra inferior en celu; tarjetas en grilla */
:root {
  --bg: #0b0d0c; --panel: #121514; --panel-2: #181c1a; --line: #242a27; --line-2: #2e3531;
  --fg: #e8ece9; --muted: #8b958f; --dim: #7b847f;
  --accent: #3ddc97; --accent-ink: #04281a; --accent-soft: rgba(61,220,151,.12); --ok: #3ddc97; --ok-soft: rgba(61,220,151,.12);
  --danger: #f47c7c; --warn: #f3c25b; --note: #e8d5b7;
  --h1: #3ddc97; --h2: #f59e5b; --h3: #8aa2ff; --h4: #ec84c3; --h5: #e3cf5a; --h6: #5ccbe8;
  --sans: "Geist", "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.app { display: grid; grid-template-columns: 236px 1fr; min-height: 100%; }

/* menú lateral */
.side { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; font-weight: 600; font-size: 16px; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--mono); font-size: 13px; font-weight: 600; }
.brand small { color: var(--muted); font-weight: 400; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding: 0 10px 6px; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px; border: 1px solid transparent; background: none; text-align: left; color: var(--muted); font-size: 14px; }
.nav-item svg { width: 17px; height: 17px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-item:hover { color: var(--fg); background: var(--panel); }
.nav-item[aria-current="page"] { color: var(--fg); background: var(--panel-2); border-color: var(--line); }
.nav-item.soon { cursor: default; opacity: .5; }
.nav-item.soon:hover { background: none; color: var(--muted); }
.nav-item .tag { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--dim); }
.side-foot { margin-top: auto; border-top: 1px solid var(--line); padding: 14px 8px 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.side-foot .who { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* principal */
main { min-width: 0; padding: 22px 32px 48px; display: flex; flex-direction: column; gap: 22px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.sync { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.sync i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.sync.on i { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sync.saving i { background: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 18%, transparent); animation: syncBlink 1s ease-in-out infinite; }
@keyframes syncBlink { 50% { opacity: .35; } }
.top-brand { display: none; align-items: center; gap: 9px; background: none; border: 0; padding: 0; color: var(--fg); font-family: var(--sans); font-weight: 700; font-size: 16.5px; letter-spacing: -.01em; }
.top-brand .brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--h1); color: #04281a; }
.hero h1 { margin: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.08; letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
.hero h1 span { color: var(--muted); display: block; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 16px; align-items: start; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pill { font-family: var(--mono); font-size: 11px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.pill.ok { color: var(--ok); border-color: rgba(61,220,151,.35); background: var(--ok-soft); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.big { font-size: 34px; font-weight: 600; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.link { background: none; border: none; padding: 0; color: var(--accent); font-size: 13px; font-family: var(--mono); }
.link:hover { text-decoration: underline; }
.btn { border: none; background: var(--accent); color: var(--accent-ink); border-radius: 10px; padding: 11px 18px; font-weight: 600; white-space: nowrap; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn:disabled { opacity: .6; }
.field { width: 100%; min-width: 0; border: 1px solid var(--line-2); background: var(--panel-2); border-radius: 10px; padding: 11px 13px; }
.field::placeholder { color: var(--dim); }
.row { display: flex; gap: 8px; }
.row > .field { flex: 1; }

/* login */
.login { background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--panel); border-color: rgba(61,220,151,.3); }
.login h2 { margin: 0; font-size: 18px; }
.login p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

/* anillo de progreso */
.today { display: flex; align-items: center; gap: 20px; }
.ring { position: relative; width: 112px; height: 112px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring .track { stroke: var(--line-2); }
.ring .bar { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .5s ease; }
.ring div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring b { font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; }
.ring small { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.today h3 { margin: 0 0 4px; font-size: 18px; }
.today p { margin: 0; color: var(--muted); font-size: 14px; }

/* hábitos */
.hlist { display: flex; flex-direction: column; }
.h-item { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.h-item:first-child { border-top: none; padding-top: 0; }
.h-name { font-weight: 500; overflow-wrap: anywhere; }
.h-meta { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.check { width: 36px; height: 36px; border-radius: 9px; border: 1.5px solid var(--line-2); background: var(--panel-2); display: grid; place-items: center; transition: background .15s, border-color .15s, transform .1s; }
.check:active { transform: scale(.9); }
.check svg { width: 18px; height: 18px; stroke: var(--accent-ink); stroke-width: 3; fill: none; opacity: 0; }
.check[aria-pressed="true"] { background: var(--c); border-color: var(--c); }
.check[aria-pressed="true"] svg { opacity: 1; }
.dots { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; }
.dots span { aspect-ratio: 1; border-radius: 2px; background: var(--line); max-width: 100%; }
.dots span.on { background: var(--c); }
.h-tag { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); border-radius: 99px; padding: 1px 7px; margin-right: 7px; vertical-align: 2px; font-weight: 400; }
.qty { display: flex; align-items: center; gap: 4px; }
.qty .mono { font-size: 12.5px; color: var(--muted); min-width: 52px; text-align: center; white-space: nowrap; }
.qty .mono b { color: var(--fg); font-size: 15px; font-weight: 600; }
.qbtn { width: 34px; height: 34px; border-radius: 9px; border: 1.5px solid var(--line-2); background: var(--panel-2); color: var(--fg); font-size: 18px; line-height: 1; display: grid; place-items: center; transition: background .15s, transform .1s; }
.qbtn:active { transform: scale(.9); } .qbtn:disabled { opacity: .35; }
.qbtn.plus { border-color: color-mix(in srgb, var(--c) 60%, var(--line-2)); color: var(--c); }
.qbtn.plus[aria-pressed="true"] { background: var(--c); border-color: var(--c); }
.qbtn svg { width: 18px; height: 18px; stroke: var(--accent-ink); stroke-width: 3; fill: none; }
.qbar { grid-column: 1 / -1; height: 5px; border-radius: 5px; background: var(--line); overflow: hidden; }
.qbar b { display: block; height: 100%; background: var(--c); border-radius: 5px; transition: width .3s ease; }
.slip { border: 1px solid var(--line-2); background: none; color: var(--muted); border-radius: 9px; padding: 7px 12px; font-size: 13px; white-space: nowrap; }
.slip:hover, .slip.on { border-color: var(--danger); color: var(--danger); }
.dots span.skip { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.dots span.slip { background: var(--danger); }
.h-tools { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.tool { border: 1px solid var(--line-2); background: none; color: var(--fg); border-radius: 8px; padding: 5px 12px; font-size: 13px; }
.tool:hover { border-color: var(--accent); }
.h-rest summary { cursor: pointer; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 14px 0 6px; border-top: 1px solid var(--line); }
.h-rest .h-item { opacity: .7; }
.hf-sub { display: flex; flex-direction: column; gap: 8px; }
.hf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hf-note { margin: 0; font-size: 13px; }
.dow-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.dow-pick button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: none; color: var(--muted); font-weight: 600; font-size: 13px; }
.dow-pick button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.stepper { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stepper button { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--fg); font-size: 18px; line-height: 1; }
.stepper b { font-size: 20px; min-width: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.stepper span { color: var(--muted); font-size: 14px; flex: 1; min-width: 140px; }
.toggle-row { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); cursor: pointer; }
.toggle-row input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.hf-msg { margin: 0; color: var(--danger); font-size: 13px; } .hf-msg:empty { display: none; }
#habitForm .btn { align-self: flex-start; }
@media (max-width: 460px) { .hf-row { grid-template-columns: 1fr; } }
.del { grid-column: 1 / -1; justify-self: start; border: 1px solid var(--danger); color: var(--danger); background: none; border-radius: 8px; padding: 5px 12px; font-size: 13px; }

.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day { border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 8px 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.day small { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.day b { font-size: 17px; font-variant-numeric: tabular-nums; }
.day i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.day i.full { background: var(--accent); }
.day i.part { background: var(--warn); }
.day[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line-2); background: none; border-radius: 999px; padding: 6px 12px; font-size: 13px; color: var(--muted); }
.chip:hover { color: var(--fg); border-color: var(--accent); }
.swatches { display: flex; gap: 8px; }
.sw { width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--panel); background: var(--c); box-shadow: 0 0 0 1px var(--line-2); }
.sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--fg); }

/* números */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { border: 1px solid var(--line); background: var(--panel-2); border-radius: 11px; padding: 13px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tile .big { font-size: 28px; }
.tile .sub { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.pos { color: var(--ok); }
.neg { color: var(--danger); }

/* barras */
.bars { display: flex; flex-direction: column; gap: 11px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; font-size: 14px; }
.bar-row .track { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar-row .fill { height: 100%; border-radius: 99px; background: var(--accent); }
.bar-row .val { font-family: var(--mono); font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

.week-chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 130px; }
.wc-col { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.wc-bar { width: 100%; max-width: 34px; border-radius: 6px 6px 3px 3px; background: var(--line-2); min-height: 4px; }
.wc-bar.full { background: var(--accent); }
.wc-col small { font-family: var(--mono); font-size: 10.5px; color: var(--muted); text-transform: uppercase; }

/* finanzas */
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 3px; }
.seg button { border: none; background: none; border-radius: 8px; padding: 8px; color: var(--muted); font-weight: 500; }
.seg button[aria-pressed="true"] { background: var(--line-2); color: var(--fg); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grid .full { grid-column: 1 / -1; }
.month { display: flex; align-items: center; gap: 6px; }
.month button { border: 1px solid var(--line-2); background: var(--panel); border-radius: 8px; width: 30px; height: 30px; }
.month span { font-family: var(--mono); font-size: 12.5px; min-width: 120px; text-align: center; text-transform: capitalize; }
.tx-day { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding: 14px 0 4px; }
.tx { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.tx-day + .tx { border-top: none; }
.tx .t { font-weight: 500; overflow-wrap: anywhere; }
.tx .c { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.tx .a { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.x { border: none; background: none; color: var(--dim); width: 28px; height: 28px; border-radius: 7px; }
.x:hover, .x.sure { color: var(--danger); background: rgba(244,124,124,.1); }
.empty { color: var(--muted); font-size: 14px; border: 1px dashed var(--line-2); border-radius: 11px; padding: 16px; }

/* inicio */
.kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis-3 .big { font-size: clamp(20px, 3.2vw, 30px); }
.done-line { font-family: var(--mono); font-size: 12px; color: var(--dim); border-top: 1px solid var(--line); padding-top: 12px; overflow-wrap: anywhere; }
.acc-ico { margin-right: 6px; }
.tile.acc-total { text-align: left; cursor: pointer; border-color: color-mix(in srgb, var(--h5) 40%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, var(--h5) 10%, var(--panel)), var(--panel) 70%); color: var(--fg); font: inherit; }
.acc-adjust { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .acc-adjust .field { flex: 1; min-width: 140px; }
.acc-def, .acc-pick { display: flex; flex-direction: column; gap: 4px; } .acc-pick { grid-column: 1 / -1; }
.trend .chart { width: 100%; height: auto; }
.trend-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); } .trend-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }
.trend-diff { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.trend-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 70px; gap: 10px; align-items: center; font-size: 14.5px; }
.trend-row b { text-align: right; font-family: var(--mono); font-size: 13px; } .trend-row.up b { color: var(--danger); } .trend-row.down b { color: var(--ok); }
.cq-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.cq-bar { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); text-transform: capitalize; }
.cq-col { height: 90px; width: 100%; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--line); }
.cq-col i { width: min(18px, 80%); min-height: 2px; border-radius: 4px 4px 0 0; background: var(--danger); opacity: .85; }
.cq-frees { display: flex; flex-direction: column; gap: 8px; }
.cq-free { display: flex; gap: 10px; align-items: baseline; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--ok) 8%, var(--panel-2)); border: 1px solid color-mix(in srgb, var(--ok) 30%, var(--line)); font-size: 14px; }
.cq-free > b { color: var(--ok); text-transform: capitalize; min-width: 72px; }
.fin-start { border-color: color-mix(in srgb, var(--h5) 40%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, var(--h5) 9%, var(--panel)), var(--panel) 60%); }
.fin-start .label { color: var(--h5); } .fin-start h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; } .fin-start p { margin: 0; font-size: 14.5px; }
.fs-steps { display: flex; flex-direction: column; gap: 8px; }
.fs-step { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); color: var(--fg); text-align: left; font: inherit; }
.fs-step b { display: block; font-size: 15px; } .fs-step small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.fs-n { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; background: color-mix(in srgb, var(--h5) 16%, transparent); color: var(--h5); }
.fs-n svg { width: 18px; height: 18px; stroke: #2a2300; stroke-width: 3; fill: none; }
.fs-go { color: var(--h5); font-size: 18px; }
.fs-step.done { opacity: .6; } .fs-step.done .fs-n { background: var(--h5); } .fs-step.done b { text-decoration: line-through; }
.fs-step:not(.done):hover { border-color: color-mix(in srgb, var(--h5) 50%, var(--line)); }
.inst-ov { position: fixed; inset: 0; z-index: 125; display: flex; align-items: flex-end; justify-content: center; padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); background: rgba(0,0,0,.55); animation: revIn .25s ease; }
.inst-card { width: min(440px, 100%); display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 -10px 40px rgba(0,0,0,.4); animation: instUp .35s cubic-bezier(.2,1,.3,1); }
@keyframes instUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.inst-head { display: flex; gap: 14px; align-items: center; } .inst-head img { border-radius: 14px; flex: none; box-shadow: 0 6px 18px color-mix(in srgb, var(--h1) 30%, transparent); }
.inst-head b { display: block; font-size: 18px; letter-spacing: -.01em; } .inst-head span { color: var(--muted); font-size: 14px; }
.inst-why { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.inst-why li::before { content: "✓"; color: var(--h1); font-weight: 700; margin-right: 8px; }
.inst-steps { margin: 0; padding: 12px 14px 12px 32px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.inst-ico svg { width: 17px; height: 17px; vertical-align: -3px; fill: none; stroke: var(--h6); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.inst-btns { display: flex; flex-direction: column; gap: 8px; align-items: stretch; } .inst-btns .link { align-self: center; padding: 8px; }
.remind { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 3px 4px 3px 8px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--h5) 35%, var(--line-2)); background: color-mix(in srgb, var(--h5) 8%, transparent); font-size: 12px; cursor: pointer; }
.remind select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: var(--h5); font: 600 12px var(--sans); padding: 2px 16px 2px 2px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--h5) 50%), linear-gradient(135deg, var(--h5) 50%, transparent 50%); background-position: right 6px center, right 2px center; background-size: 4px 4px; background-repeat: no-repeat; }
.remind select option { color: var(--fg); background: var(--panel); }
.remind.off { border-color: var(--line-2); background: none; } .remind.off select { color: var(--muted); }
.remind i { font-style: normal; color: var(--muted); }
.row-extra { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 2px; } .row-extra .remind { margin-top: 0; } .row-extra .link { font-size: 13px; }
.nt-bell { width: 56px; height: 56px; border-radius: 14px; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--h1) 16%, transparent); }
.nt-bell svg { width: 28px; height: 28px; fill: none; stroke: var(--h1); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: ntRing 2.4s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes ntRing { 0%, 60%, 100% { transform: rotate(0); } 66% { transform: rotate(14deg); } 72% { transform: rotate(-12deg); } 78% { transform: rotate(8deg); } 84% { transform: rotate(-4deg); } }
.nt-ex { display: flex; flex-direction: column; gap: 8px; }
.nt-msg { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); border-left: 3px solid var(--c); animation: instUp .4s ease both; }
.nt-msg:nth-child(2) { animation-delay: .12s; } .nt-msg:nth-child(3) { animation-delay: .24s; }
.nt-msg img { border-radius: 7px; flex: none; } .nt-msg b { display: block; font-size: 14px; } .nt-msg small { color: var(--muted); font-size: 12.5px; }
@media (prefers-reduced-motion: reduce) { .inst-ov, .inst-card, .nt-msg, .nt-bell svg { animation: none; } }
.party-day { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 20px; pointer-events: auto; overflow: hidden; background: color-mix(in srgb, var(--bg) 35%, transparent); animation: partyBg 3.4s ease forwards; }
.party-day i { position: absolute; top: -20px; left: var(--x); width: 9px; height: 14px; border-radius: 2px; transform: scale(var(--s)); animation: partyFall 2.6s cubic-bezier(.3,.6,.5,1) var(--d) forwards; opacity: 0; }
@keyframes partyFall { 0% { opacity: 1; transform: translateY(0) rotate(0) scale(var(--s)); } 100% { opacity: .9; transform: translateY(110vh) rotate(var(--r)) scale(var(--s)); } }
@keyframes partyBg { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
.party-card { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 24px 28px; border-radius: 20px; background: var(--panel); border: 1px solid color-mix(in srgb, var(--h1) 45%, var(--line)); box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 0 6px color-mix(in srgb, var(--h1) 10%, transparent); animation: partyPop .5s cubic-bezier(.2,1.4,.4,1); }
.party-card b { font-size: 24px; letter-spacing: -.02em; } .party-card span { color: var(--muted); font-size: 14.5px; }
.party-card .party-run { color: var(--h2); font-weight: 600; margin-top: 2px; }
.party-mark { width: 56px; height: 56px; border-radius: 16px; background: var(--h1); display: grid; place-items: center; margin-bottom: 4px; }
.party-mark svg { width: 30px; height: 30px; stroke: #04281a; stroke-width: 3; fill: none; }
@keyframes partyPop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .party-day, .party-card { animation: none; } }
.celebrate { display: flex; align-items: center; gap: 16px; }
.celebrate .mark { width: 48px; height: 48px; border-radius: 13px; background: var(--accent); display: grid; place-items: center; flex: none; }
.celebrate .mark svg { width: 24px; height: 24px; stroke: var(--accent-ink); stroke-width: 3; fill: none; }
.celebrate h3 { margin: 0 0 2px; font-size: 18px; }
.celebrate p { margin: 0; color: var(--muted); font-size: 14px; }
.insight { flex-direction: row; align-items: flex-start; gap: 14px; }
.insight .bulb { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; flex: none; }
.insight .bulb svg { width: 19px; height: 19px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.insight p { margin: 6px 0 6px; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-ghost { background: var(--panel); color: var(--fg); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); }

/* finanzas por zonas */
.ztabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin-inline: -2px; }
.ztabs::-webkit-scrollbar { display: none; }
.ztabs button { flex: none; border: 1px solid var(--line-2); background: var(--panel); color: var(--muted); border-radius: 99px; padding: 8px 14px; font-size: 14px; font-weight: 500; }
.ztabs button small { font-family: var(--mono); font-size: 10px; color: var(--dim); margin-left: 4px; }
.ztabs button[aria-selected="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.ztabs button[aria-selected="true"] small { color: var(--bg); opacity: .6; }
.stack-bar { display: flex; height: 16px; border-radius: 99px; overflow: hidden; gap: 2px; background: var(--line); }
.stack-bar span { min-width: 4px; }
.legend { display: flex; flex-direction: column; gap: 9px; }
.legend-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.legend-row i { width: 10px; height: 10px; border-radius: 3px; }
.legend-row .val { font-family: var(--mono); font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.alerts { display: flex; flex-direction: column; gap: 8px; }
.alert { display: flex; gap: 10px; align-items: flex-start; text-align: left; border: 1px solid var(--line); background: var(--panel-2); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.alert i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); margin-top: 7px; flex: none; }
.alert.warn i { background: var(--warn); } .alert.neg i { background: var(--danger); } .alert.ok i { background: var(--accent); }
.alert:hover { border-color: var(--line-2); }
.rows { display: flex; flex-direction: column; }
.row-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.row-item:first-child { border-top: none; padding-top: 0; }
.row-item .c { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.row-item.dim .h-name { text-decoration: line-through; color: var(--muted); }
.row-right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; }
.row-right .a { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.row-act { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.row-form, .row-item .progress { grid-column: 1 / -1; }
.status { font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.status.ok { color: var(--ok); } .status.warn { color: var(--warn); } .status.neg { color: var(--danger); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px; }
.inline-form .field { flex: 1; min-width: 120px; }
.progress { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--danger); border-radius: 99px; }
.form-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.field-label { display: flex; flex-direction: column; gap: 4px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.field-label .field { font-family: var(--sans); font-size: 15px; color: var(--fg); }
.ant-hero { border: 1px solid var(--line); border-radius: 18px; padding: 24px; background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--h2) 22%, transparent), transparent 60%), var(--panel); }
.ant-hero .label { color: var(--h2); }
.ant-big { font-size: clamp(36px, 6vw, 56px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; margin: 6px 0 8px; font-variant-numeric: tabular-nums; }
.ant-hero p { margin: 0; color: var(--muted); max-width: 52ch; }
.ant-hero b { color: var(--fg); }
.presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.preset-wrap { position: relative; }
.preset-wrap .x { position: absolute; top: -8px; right: -8px; background: var(--panel); border: 1px solid var(--line-2); }
.preset { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; border: 1px solid var(--line-2); background: var(--panel-2); border-radius: 12px; padding: 12px 14px; transition: border-color .15s, transform .1s; }
.preset:hover { border-color: var(--h2); }
.preset:active { transform: scale(.96); }
.preset b { font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--h2); }
.soon-big h2 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.soon-big p { margin: 0; color: var(--muted); max-width: 60ch; }

/* entrenamiento */
.tr-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px;
  background: radial-gradient(120% 160% at 100% 0%, color-mix(in srgb, var(--c) 18%, transparent), transparent 60%), var(--panel); }
.tr-card h3 { margin: 6px 0 4px; font-size: 20px; letter-spacing: -.01em; }
.tr-card p { margin: 0; color: var(--muted); font-size: 14px; }
.tr-card .btn { background: var(--c); color: var(--bg); }
.tr-type { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--c, var(--muted)); }
.tr-empty h2 { margin: 0; font-size: 22px; } .tr-empty p { margin: 0; color: var(--muted); } .tr-empty .btn { align-self: flex-start; }
.day.is-today { border-color: var(--h6); }
.day i.plan { background: transparent; border: 1.5px solid var(--dim); width: 7px; height: 7px; }
.dot-type { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.live { background: radial-gradient(120% 160% at 100% 0%, color-mix(in srgb, var(--c) 20%, transparent), transparent 60%), var(--panel); border-color: color-mix(in srgb, var(--c) 40%, var(--line)); }
.live h2 { margin: 6px 0 0; font-size: 24px; letter-spacing: -.02em; }
.ex-card { gap: 12px; }
.ex-name { margin: 0 0 2px; font-size: 17px; }
.ex-note { display: block; font-size: 13px; color: var(--h6); margin-bottom: 2px; }
.goal-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; align-items: start;
  background: radial-gradient(120% 160% at 0% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 55%), var(--panel); }
.goal-card h2 { margin: 6px 0 8px; font-size: 26px; letter-spacing: -.02em; }
.goal-card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.guide { display: flex; flex-direction: column; }
.guide-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.guide-row:first-child { border-top: none; padding-top: 0; }
.guide-row span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.guide-row b { font-weight: 500; }
.programs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; align-items: start; }
.program { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.program h3 { margin: 8px 0 4px; font-size: 18px; }
.program p { margin: 0; color: var(--muted); font-size: 14px; }
.program-days { display: flex; flex-wrap: wrap; gap: 6px; }
.program-days span { font-size: 12.5px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 99px; padding: 4px 10px; }
.program-days b { color: var(--fg); font-weight: 500; }
.program-act { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.program-detail { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.pd-routine h4 { margin: 0 0 6px; font-size: 14.5px; }
.pd-routine h4 small { font-family: var(--mono); font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.pd-routine ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pd-routine li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; font-size: 13.5px; }
.pd-routine li b { font-family: var(--mono); font-weight: 500; color: var(--c); }
.pd-routine li small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
@media (max-width: 760px) { .goal-card { grid-template-columns: 1fr; } .guide-row { grid-template-columns: 100px minmax(0, 1fr); } }
.ex-card .c { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.sets { display: flex; flex-direction: column; gap: 6px; }
.set-h, .set-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr) 40px; gap: 8px; align-items: center; }
.set-h span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.set-row .field { padding: 9px 11px; text-align: center; font-variant-numeric: tabular-nums; }
.set-row.done .field { border-color: color-mix(in srgb, var(--h6) 45%, transparent); color: var(--h6); }
.set-row .mono { color: var(--muted); text-align: center; }
.pace-box { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding-bottom: 8px; }
.pace-box b { font-family: var(--mono); font-size: 22px; font-weight: 500; }
.seg-3 { grid-template-columns: repeat(3, 1fr); }
.btn.danger { border-color: var(--danger); color: var(--danger); }
.ex-edit { display: flex; flex-direction: column; gap: 8px; }
.ex-row { display: grid; grid-template-columns: minmax(0, 2.4fr) repeat(3, minmax(0, .8fr)) 32px; gap: 8px; align-items: center; }
.ex-head span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.ex-row .field { padding: 9px 10px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 380px; }
.kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 700px) { .kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cal-h { font-family: var(--mono); font-size: 10.5px; color: var(--dim); text-align: center; }
.cal-d { aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; font-size: 13px; color: var(--muted); background: var(--panel-2); font-variant-numeric: tabular-nums; }
.cal-d.on { background: var(--c); color: var(--bg); font-weight: 600; }
.cal-d.is-today { outline: 1.5px solid var(--fg); }
.legend-inline { flex-direction: row; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); }
.legend-inline span { display: inline-flex; align-items: center; gap: 6px; }
.legend-inline i { width: 9px; height: 9px; border-radius: 3px; }
.ex-pick { width: auto; padding: 7px 10px; font-size: 13px; }
.chart-wrap { overflow-x: auto; }
.chart { width: 100%; min-width: 320px; height: auto; display: block; }
.enter .pulse { stroke-dasharray: 1; animation: draw 1.4s ease-out .3s backwards; }
.pulse { stroke-dasharray: 1; }
.lift { animation: lift 2.6s ease-in-out infinite; }
@keyframes lift { 0%, 100% { transform: translateY(14px); } 45%, 55% { transform: translateY(-6px); } }
@media (min-width: 640px) { .portals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ex-row { grid-template-columns: minmax(0, 1fr) repeat(3, 46px) 28px; gap: 5px; } .tr-card { flex-direction: column; align-items: flex-start; } }

/* trabajo */
.setup h2 { margin: 6px 0 6px; font-size: 26px; letter-spacing: -.02em; }
.setup p { margin: 0; color: var(--muted); }
.setup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.setup-opt { text-align: left; border: 1px solid var(--line-2); background: var(--panel-2); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; transition: border-color .15s, background .15s; }
.setup-opt span { color: var(--muted); font-size: 13px; }
.setup-opt[aria-pressed="true"] { border-color: var(--h3); background: color-mix(in srgb, var(--h3) 14%, var(--panel-2)); }
.setup-opt[aria-pressed="true"] b::before { content: "✓ "; color: var(--h3); }
.star { border: none; background: none; padding: 0 6px 0 0; font-size: 17px; line-height: 1; color: var(--line-2); vertical-align: -1px; }
.star[aria-pressed="true"] { color: var(--h5); }
.prio { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; vertical-align: 2px; }
.status-btn { border: 1px solid var(--line-2); background: var(--panel-2); border-radius: 99px; padding: 5px 11px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.st-curso, .st-entregado { border-color: color-mix(in srgb, var(--h3) 55%, transparent); color: var(--h3); }
.st-hecha, .st-cobrado { border-color: color-mix(in srgb, var(--accent) 55%, transparent); color: var(--accent); }
.st-pendiente { color: var(--muted); }
.task .row-act { flex-direction: row; align-items: center; }
.dim-soft { opacity: .6; }
.stepper { display: flex; gap: 4px; }
.stepper button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel-2); font-size: 16px; }
.big-progress { height: 10px; }
.timer-live { border-color: color-mix(in srgb, var(--h3) 50%, var(--line)); }
textarea.field { resize: vertical; min-height: 90px; line-height: 1.5; }
.kanban { display: grid; grid-template-columns: repeat(5, minmax(190px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.k-col { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.k-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 14px; padding: 2px 2px 4px; }
.st-ganado .k-head span:first-child { color: var(--accent); } .st-perdido .k-head span:first-child { color: var(--muted); }
.k-card { background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.k-card .mono { font-size: 12.5px; color: var(--h3); }
.k-card .c { font-size: 12px; color: var(--muted); }
.k-card .x { width: 22px; height: 22px; }
.k-move { display: flex; justify-content: space-between; margin-top: 4px; }
.k-move button { width: 30px; height: 26px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--panel); }
.k-move button:disabled { opacity: .3; }
.k-empty { color: var(--dim); text-align: center; padding: 10px; }
.k-fly { animation: kfly 5s ease-in-out infinite; }
@keyframes kfly { 0%, 12% { transform: translate(0, 0); } 38%, 50% { transform: translate(100px, -28px); } 76%, 88% { transform: translate(200px, -28px); opacity: 1; } 100% { transform: translate(200px, -28px); opacity: 0; } }

.brand-mark svg { width: 74%; height: 74%; fill: none; stroke: currentColor; stroke-width: 2.2; }
.brand-mark svg path { fill: currentColor; stroke: none; }
/* dólar e inflación */
.tile.usd .big { font-size: 26px; }
.usd-extra { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13.5px; color: var(--muted); }
.usd-extra b { color: var(--fg); font-weight: 600; margin-left: 4px; }
.usd-month { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.usd-month > div { border: 1px solid var(--line); background: var(--panel-2); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.usd-month b { font-size: 21px; font-variant-numeric: tabular-nums; }
.usd-month small { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.infl-head { display: flex; gap: 28px; flex-wrap: wrap; }
.infl-head > div { display: flex; flex-direction: column; gap: 4px; }
.infl-chart { width: 100%; height: auto; display: block; }
.calc-out { display: flex; flex-direction: column; gap: 10px; }
.verdict { border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; border: 1px solid; }
.verdict.ok { border-color: rgba(61,220,151,.35); background: var(--ok-soft); }
.verdict.ok b { color: var(--accent); }
.verdict.warn { border-color: rgba(243,194,91,.4); background: rgba(243,194,91,.1); }
.verdict.warn b { color: var(--warn); }
.verdict b { font-size: 17px; } .verdict span { font-size: 14px; color: var(--muted); }
.calc-rows { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; font-size: 14px; }
.calc-rows span { color: var(--muted); } .calc-rows b { font-family: var(--mono); font-weight: 500; text-align: right; }
@media (max-width: 560px) { .usd-month { grid-template-columns: 1fr; } }

/* synergia */
.nav-item .tag.new { color: var(--accent); }
.syn-teaser { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 18px; text-align: left; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 18px; padding: 14px 20px;
  background: radial-gradient(120% 160% at 0% 50%, var(--accent-soft), transparent 60%), var(--panel); transition: border-color .2s, transform .2s; }
.syn-teaser:hover { border-color: var(--accent); transform: translateY(-2px); }
.syn-teaser b { display: block; font-size: 38px; line-height: 1; margin: 6px 0; letter-spacing: -.02em; }
.syn-teaser b small, .syn-num small { font-size: .45em; color: var(--muted); font-weight: 500; }
.syn-teaser p { margin: 0; color: var(--muted); font-size: 14px; }
.syn-mini svg { width: 100%; display: block; }
.syn-mini text { display: none; }
.syn-mini .radar-shape { stroke-width: 6; fill-opacity: .45; }
.syn-mini circle { r: 9; }
.syn-top { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; align-items: stretch; }
.syn-num { font-size: 72px; font-weight: 700; line-height: 1; letter-spacing: -.04em; color: var(--accent); font-variant-numeric: tabular-nums; }
.syn-score p { margin: 0; color: var(--muted); }
.area-bars { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.area-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: 14px; }
.area-bar .mono { color: var(--muted); font-size: 12.5px; }
.area-bar i { grid-column: 1 / -1; height: 7px; border-radius: 9px; background: var(--line); overflow: hidden; }
.area-bar i b { display: block; height: 100%; border-radius: 9px; transition: width .6s ease; }
.radar { width: 100%; max-width: 420px; margin: 0 auto; display: block; overflow: visible; }
.radar-shape { transform-box: fill-box; transform-origin: center; animation: pop .7s cubic-bezier(.3, 1.4, .5, 1); }
.syn-wheel .legend-inline { gap: 14px; }
.wheel-tip { margin: 0; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.disc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.disc { position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: var(--panel); display: flex; flex-direction: column; gap: 10px; }
.disc p { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.4; }
.disc small { color: var(--muted); font-family: var(--mono); font-size: 11.5px; }
.disc.example { border-style: dashed; opacity: .7; }
.ex-tag { position: absolute; top: 12px; right: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.disc-areas { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.area-chip { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); border-radius: 99px; padding: 3px 9px; }
.plus { font-style: normal; color: var(--dim); font-size: 12px; }
.learning h3 { margin: 0; font-size: 17px; }
.links { display: flex; flex-direction: column; }
.link-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.link-row:first-child { border-top: none; padding-top: 0; }
.link-row > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.link-row span:not(.link-ico):not(.status) { color: var(--muted); font-size: 13.5px; }
.link-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); }
.link-sel { width: auto; max-width: 200px; padding: 8px 10px; font-size: 13px; }
.alert-row b { color: var(--danger); }
.a-orbit { animation: orbitPulse 2.4s ease-in-out infinite; }
.o2 { animation-delay: .6s; } .o3 { animation-delay: 1.2s; } .o4 { animation-delay: 1.8s; }
@keyframes orbitPulse { 0%, 100% { transform: scale(.8); opacity: .6; } 50% { transform: scale(1.15); opacity: 1; } }
@media (max-width: 760px) { .syn-top { grid-template-columns: 1fr; } .syn-teaser { grid-template-columns: 100px minmax(0, 1fr); padding: 12px 16px; } .link-row { grid-template-columns: auto minmax(0, 1fr); } .link-row > :last-child { grid-column: 2; justify-self: start; } }

/* tu domingo synergia */
.review.cta { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: center; gap: 22px; border-color: color-mix(in srgb, var(--h5) 35%, var(--line));
  background: radial-gradient(110% 140% at 0% 100%, color-mix(in srgb, var(--h5) 12%, transparent), transparent 60%), var(--panel); }
.review h2 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.rev-art svg, .rev-nudge-art svg { width: 100%; display: block; }
.rev-art svg *, .rev-nudge-art svg * { transform-box: fill-box; transform-origin: center; }
.row-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rev-dots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rev-dots span { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.rev-dots i { height: 4px; border-radius: 4px; background: var(--line); transition: background .3s; }
.rev-dots .on { color: var(--muted); } .rev-dots .on i { background: var(--accent); }
.rev-body { animation: revIn .35s ease; }
@keyframes revIn { from { opacity: 0; transform: translateY(6px); } }
.rev-score { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.rev-score > b { font-size: 56px; line-height: 1; color: var(--accent); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.rev-score > b small { font-size: .4em; color: var(--muted); font-weight: 500; }
.rev-score span { color: var(--muted); }
.rev-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.rev-stat { border: 1px solid var(--line); border-left: 3px solid var(--c); background: var(--panel-2); border-radius: 11px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rev-stat b { font-size: 24px; font-variant-numeric: tabular-nums; }
.rev-stat small { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.rev-prev { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.rev-prev p { margin: 0; }
.review .chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.area-pick[aria-pressed="true"] { border-color: var(--c) !important; color: var(--c) !important; background: color-mix(in srgb, var(--c) 14%, transparent) !important; }
.area-pick .mono { font-size: 11px; opacity: .7; margin-left: 4px; }
.rev-nav { justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px; }
.rev-focus { border: 1px solid color-mix(in srgb, var(--c) 40%, var(--line)); border-left: 4px solid var(--c); border-radius: 14px; padding: 14px 18px; background: color-mix(in srgb, var(--c) 7%, var(--panel)); display: flex; flex-direction: column; gap: 6px; }
.rev-focus p { margin: 0; font-size: 16px; font-weight: 500; }
.rev-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.rev-notes p { margin: 4px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.rev-hist summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.rev-hist-row { display: grid; grid-template-columns: auto 40px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; align-items: baseline; }
.rev-hist-row .mono { font-size: 12px; color: var(--muted); } .rev-hist-row b { color: var(--accent); } .rev-hist-row span:last-child { color: var(--muted); }
.rev-nudge { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 16px; text-align: left; width: 100%; border: 1px solid color-mix(in srgb, var(--h5) 40%, var(--line)); border-radius: 18px; padding: 12px 18px;
  background: radial-gradient(120% 160% at 0% 50%, color-mix(in srgb, var(--h5) 13%, transparent), transparent 60%), var(--panel); color: var(--fg); transition: border-color .2s, transform .2s; }
.rev-nudge:hover { border-color: var(--h5); transform: translateY(-2px); }
.rev-nudge > span:last-child { display: flex; flex-direction: column; gap: 4px; } .rev-nudge b { font-size: 18px; } .rev-nudge .muted { font-size: 14px; }
.share-ov { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.72); display: grid; place-items: center; padding: 16px; animation: revIn .25s ease; }
.share-box { background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; padding: 16px; width: min(400px, 100%); max-height: calc(100vh - 32px); overflow: auto; display: flex; flex-direction: column; gap: 12px; }
.share-box img { width: 100%; border-radius: 12px; display: block; }
.share-box a.btn { text-decoration: none; text-align: center; }
.share-box .muted { margin: 0; font-size: 13px; }
@media (max-width: 760px) { .review.cta { grid-template-columns: 1fr; } .rev-art { max-width: 220px; } .rev-nudge { grid-template-columns: 84px minmax(0, 1fr); padding: 10px 14px; } .rev-dots span { font-size: 0; gap: 0; } }
@media (prefers-reduced-motion: reduce) { .rev-art svg *, .rev-nudge-art svg * { animation: none !important; } .rev-body, .share-ov { animation: none; } }

/* primer uso y guías */
.onb { position: fixed; inset: 0; z-index: 90; overflow-y: auto; display: grid; place-items: center; padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  background: radial-gradient(70% 50% at 80% 0%, rgba(61,220,151,.14), transparent 70%), radial-gradient(60% 40% at 0% 100%, rgba(138,162,255,.1), transparent 70%), var(--bg); animation: revIn .3s ease; }
.onb-box { width: min(560px, 100%); min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.onb { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.onb-top { display: flex; align-items: center; gap: 14px; }
.onb-dots { display: flex; gap: 6px; flex: 1; }
.onb-dots i { height: 4px; flex: 1; max-width: 60px; border-radius: 4px; background: var(--line); transition: background .3s; }
.onb-dots i.on { background: var(--sc, var(--accent)); }
.onb { background: radial-gradient(70% 50% at 85% 0%, color-mix(in srgb, var(--sc, var(--accent)) 16%, transparent), transparent 70%), radial-gradient(60% 40% at 0% 100%, rgba(138,162,255,.08), transparent 70%), var(--bg); transition: background .6s; }
.onb .brand-mark svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.onb-body { display: flex; flex-direction: column; gap: 14px; }
.onb-body.enter { animation: onbIn .45s cubic-bezier(.2,.9,.3,1); }
@keyframes onbIn { from { opacity: 0; transform: translateX(18px); } }
.onb-body h2 { margin: 0; font-size: clamp(25px, 5.4vw, 32px); letter-spacing: -.02em; line-height: 1.12; }
.onb-body > .muted { margin: -6px 0 0; }
.onb-body .center { text-align: center; }
.onb-hint { margin-top: -4px; font-size: 12.5px; }
.onb-name { display: flex; align-items: center; gap: 12px; }
.onb-avatar { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 19px; box-shadow: 0 0 0 4px var(--accent-soft); }
.onb-q { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 4px; }
.onb-q span { font-weight: 600; } .onb-q small { color: var(--sc, var(--accent)); font-family: var(--mono); font-size: 12px; }
.onb-ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.onb-check { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--c); transform: scale(0); transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.onb-check svg { width: 14px; height: 14px; stroke: var(--bg); stroke-width: 3.2; fill: none; }
[aria-pressed="true"] > .onb-check { transform: scale(1); }
.pop { animation: onbPop .35s cubic-bezier(.3,1.6,.5,1); }
@keyframes onbPop { 40% { transform: scale(.95); } 70% { transform: scale(1.03); } }
.onb-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.onb-tile { position: relative; display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 12px 14px 14px; border: 1.5px solid var(--line); border-radius: 18px; color: var(--fg); min-width: 0;
  background: linear-gradient(165deg, color-mix(in srgb, var(--c) 10%, var(--panel)), var(--panel) 70%); transition: border-color .2s, background .25s, box-shadow .25s; }
.onb-tile:hover { border-color: color-mix(in srgb, var(--c) 50%, var(--line)); }
.onb-tile[aria-pressed="true"] { border-color: var(--c); background: linear-gradient(165deg, color-mix(in srgb, var(--c) 24%, var(--panel)), var(--panel) 80%); box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--c) 60%, transparent); }
.onb-tile-art svg { display: block; height: 62px; width: auto; max-width: 100%; opacity: .55; transition: opacity .25s; }
.onb-tile[aria-pressed="true"] .onb-tile-art svg { opacity: 1; }
.onb-tile-h { display: flex; align-items: center; gap: 7px; color: var(--c); }
.onb-tile-h b { color: var(--fg); font-size: 16px; }
.onb-tile small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.onb-list { display: flex; flex-direction: column; gap: 8px; }
.onb-row { position: relative; display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 46px 12px 12px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--fg); transition: border-color .2s, background .2s; }
.onb-row .onb-check { top: 50%; margin-top: -12px; right: 12px; }
.onb-row:not([aria-pressed="true"])::after { content: ""; position: absolute; right: 12px; top: 50%; margin-top: -12px; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); }
.onb-row[aria-pressed="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, var(--panel)); }
.onb-row-ico { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); }
.onb-row-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.onb-row-txt b { font-size: 15px; } .onb-row-txt small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.onb-sec { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid color-mix(in srgb, var(--c) 35%, var(--line)); border-radius: 16px; background: linear-gradient(165deg, color-mix(in srgb, var(--c) 9%, var(--panel)), var(--panel) 70%); }
.onb-sec-h { display: flex; align-items: center; gap: 8px; color: var(--c); flex-wrap: wrap; }
.onb-sec-h b { color: var(--fg); } .onb-sec-h small { color: var(--muted); margin-left: auto; }
.onb-money { display: flex; align-items: center; gap: 8px; } .onb-money > span { font-size: 20px; font-weight: 600; color: var(--c); }
.onb-money .field { font-size: 18px; font-weight: 600; }
.onb-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.onb-mini-opt { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--fg); transition: border-color .2s, background .2s; }
.onb-mini-opt .onb-ico { color: var(--c); margin-bottom: 2px; }
.onb-mini-opt b { font-size: 14px; } .onb-mini-opt small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.onb-mini-opt[aria-pressed="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--panel)); }
.onb-party { position: relative; height: 150px; display: grid; place-items: center; }
.onb-party i { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--c); opacity: 0; animation: onbBurst 1.1s var(--d) cubic-bezier(.2,.8,.3,1) forwards; }
.onb-party i:nth-child(3n) { border-radius: 2px; width: 8px; height: 14px; }
@keyframes onbBurst { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(.4); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-95px) scale(1); } }
.onb-big-check { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); box-shadow: 0 0 0 10px var(--accent-soft), 0 20px 50px -10px rgba(61,220,151,.6); animation: onbPop .6s cubic-bezier(.3,1.6,.5,1); }
.onb-big-check svg { width: 42px; height: 42px; stroke: var(--accent-ink); stroke-width: 3; fill: none; stroke-dasharray: 30; stroke-dashoffset: 30; animation: onbDraw .5s .25s ease forwards; }
@keyframes onbDraw { to { stroke-dashoffset: 0; } }
.onb-summary { display: flex; flex-direction: column; gap: 8px; }
.onb-sum { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--c) 35%, var(--line)); background: color-mix(in srgb, var(--c) 8%, var(--panel)); color: var(--c); opacity: 0; animation: onbSumIn .4s var(--d) ease forwards; }
@keyframes onbSumIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.onb-sum span { color: var(--fg); font-size: 14.5px; }
.onb-next { background: var(--sc, var(--accent)); color: var(--bg); transition: background .4s; }
@media (prefers-reduced-motion: reduce) { .onb-body.enter, .pop, .onb-party i, .onb-big-check, .onb-sum { animation: none !important; opacity: 1; } .onb-party i { display: none; } .onb-big-check svg { animation: none; stroke-dashoffset: 0; } }
.onb-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; position: sticky; bottom: 0; padding: 12px 0 4px; background: linear-gradient(transparent, var(--bg) 35%); }
.tour-btn { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--panel) 70%, transparent); color: var(--muted); border-radius: 99px; padding: 6px 12px 6px 6px; font-size: 13px; }
.tour-btn span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--c, var(--accent)); color: var(--bg); font-weight: 700; font-size: 12px; }
.tour-btn:hover { color: var(--fg); border-color: var(--c, var(--accent)); }
.greet .tour-btn { margin: 0 0 0 6px; vertical-align: middle; font-size: 12.5px; --c: var(--accent); }
#tour { position: fixed; inset: 0; z-index: 95; }
#tour[hidden] { display: none; }
.tour-hole { position: fixed; border-radius: 16px; box-shadow: 0 0 0 200vmax rgba(3,5,4,.74); outline: 2px solid var(--accent); outline-offset: 0; pointer-events: none;
  transition: left .4s cubic-bezier(.3,1,.4,1), top .4s cubic-bezier(.3,1,.4,1), width .4s cubic-bezier(.3,1,.4,1), height .4s cubic-bezier(.3,1,.4,1); }
.tour-hole::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; border: 2px solid var(--accent); animation: tourPulse 1.8s ease-out infinite; }
@keyframes tourPulse { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(1.06); } }
.tour-tip { position: fixed; background: var(--panel-2); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line-2)); border-radius: 16px; padding: 16px 16px 12px; box-shadow: 0 18px 50px rgba(0,0,0,.55);
  display: flex; flex-direction: column; gap: 6px; transition: left .4s cubic-bezier(.3,1,.4,1), top .4s cubic-bezier(.3,1,.4,1); animation: tipIn .3s ease; }
.tour-tip::before { content: ""; position: absolute; left: var(--ax, 50%); width: 14px; height: 14px; background: var(--panel-2); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line-2)); transform: translateX(-50%) rotate(45deg); }
.tour-tip.below::before { top: -8px; border-right: none; border-bottom: none; }
.tour-tip.above::before { bottom: -8px; border-left: none; border-top: none; }
.tour-tip.over::before { display: none; }
@keyframes tipIn { from { opacity: 0; transform: translateY(6px) scale(.97); } }
.tour-step { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.tour-tip h3 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.tour-tip p { margin: 0 0 6px; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.tour-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tour-nav > span { display: flex; gap: 8px; }
.tour-back { border: 1px solid var(--line-2); background: none; color: var(--fg); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
@media (pointer: coarse) { .tour-btn, .tour-back { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { .onb, .onb-body, .tour-tip { animation: none; } .tour-hole, .tour-tip { transition: none; } .tour-hole::after { animation: none; } }
/* inicio: tu día */
.insight-line { display: flex; align-items: center; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; padding: 12px 16px; background: var(--panel); }
.insight-line p { margin: 0; font-size: 14.5px; flex: 1; min-width: 200px; }
.quick-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.quick-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px; padding: 10px 4px; border: 1px solid var(--line); background: var(--panel); border-radius: 14px; color: var(--fg); font-size: 13px; font-weight: 500; transition: border-color .2s, transform .15s; }
.quick-btn span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); font-weight: 700; font-size: 17px; }
.quick-btn:hover { border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.quick-btn:active { transform: scale(.96); }
.hoy-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 28px; }
.hoy-block { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); }
.hoy-grid > div > .hoy-block:first-child { border-top: none; padding-top: 0; }
.hoy-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hoy-h .label { color: var(--c); }
.hoy-block > p { margin: 0; font-size: 14px; }
.hoy-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14.5px; }
.hoy-line b { font-weight: 600; }
.prio-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 4px 0; text-align: left; background: none; border: none; color: var(--fg); font-size: 14.5px; }
.prio-row i { width: 24px; height: 24px; flex: none; border-radius: 7px; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: background .15s; }
.prio-row i svg { width: 14px; height: 14px; stroke: var(--bg); stroke-width: 3; fill: none; opacity: 0; }
.prio-row[aria-pressed="true"] i { background: var(--h3); border-color: var(--h3); }
.prio-row[aria-pressed="true"] i svg { opacity: 1; }
.prio-row[aria-pressed="true"] span { text-decoration: line-through; color: var(--muted); }
.areas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.area-card { display: flex; flex-direction: column; gap: 4px; min-width: 0; text-align: left; padding: 12px 14px 14px; border: 1px solid var(--line); border-radius: 16px; color: var(--fg);
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 13%, var(--panel)), var(--panel) 70%); transition: border-color .2s, transform .2s; }
.area-card:hover { border-color: color-mix(in srgb, var(--c) 55%, transparent); transform: translateY(-2px); }
.area-art svg { display: block; height: 66px; width: auto; max-width: 100%; margin-bottom: 4px; }
.area-card .label { color: var(--c); }
.area-card b { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.areas.enter .area-card { animation: revIn .45s ease backwards; }
.areas.enter .area-card:nth-child(2) { animation-delay: .06s; } .areas.enter .area-card:nth-child(3) { animation-delay: .12s; } .areas.enter .area-card:nth-child(4) { animation-delay: .18s; }
.tip-card { border: 1px dashed var(--line-2); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.tip-card .label { color: var(--c); }
.tip-card p { margin: 0; font-size: 15px; font-weight: 500; }
@media (max-width: 760px) { .hoy-grid { grid-template-columns: 1fr; } .hoy-grid > div + div > .hoy-block:first-child { border-top: 1px solid var(--line); padding-top: 14px; } .areas { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .areas.enter .area-card { animation: none; } }

/* perfil: foto, áreas, logros, ayuda */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.avatar.has-photo { background: var(--panel-2) !important; }
.photo-pick { position: relative; cursor: pointer; overflow: hidden; }
.photo-edit { position: absolute; inset: auto 0 0 0; padding: 5px 0 7px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; font-weight: 600; text-align: center; opacity: 0; transition: opacity .2s; }
.photo-pick:hover .photo-edit, .photo-pick:focus-within .photo-edit { opacity: 1; }
.photo-pick:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (pointer: coarse) { .photo-edit { opacity: 1; } }
.photo-row { display: flex; flex-direction: column; gap: 8px; }
.photo-row label.btn { cursor: pointer; }
.areas-pick { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.areas-pick .area-pick[aria-pressed="true"] { border-color: var(--c); color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.badge { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 14px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); }
.badge b { font-size: 14px; } .badge small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.medal { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px; border: 2px dashed var(--line-2); color: var(--dim); font-weight: 700; font-size: 18px; font-family: var(--mono); }
.badge.on { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%), var(--panel-2); }
.badge.on .medal { border: none; color: var(--bg); background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 55%, #fff), var(--c) 60%); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent), 0 8px 20px color-mix(in srgb, var(--c) 30%, transparent); }
.bprog { width: 80%; height: 5px; border-radius: 5px; background: var(--line); overflow: hidden; margin-top: 6px; }
.bprog b { display: block; height: 100%; background: var(--c); border-radius: 5px; }
.fb-row { align-items: flex-start; }
.fb-form { display: flex; flex-direction: column; gap: 8px; flex: 1 1 280px; }
.fb-form textarea { min-height: 80px; }
.fb-form .btn { align-self: flex-start; }
/* áreas apagadas: fuera del menú y de la barra de abajo */
body[data-hidden~="habitos"] :is(.side, .tabbar) [data-go="habitos"], body[data-hidden~="finanzas"] :is(.side, .tabbar) [data-go="finanzas"],
body[data-hidden~="entrenamiento"] :is(.side, .tabbar) [data-go="entrenamiento"], body[data-hidden~="trabajo"] :is(.side, .tabbar) [data-go="trabajo"] { display: none !important; }
.tabbar { grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.quick-bar { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
.hoy-grid.single { grid-template-columns: 1fr; }

/* finanzas: próximos pagos, presupuestos, metas, buscador */
.upc { display: flex; flex-direction: column; }
.upc-row { display: grid; grid-template-columns: 74px 10px minmax(0, 1fr) auto; gap: 10px; align-items: center; text-align: left; padding: 10px 0; border: none; border-top: 1px solid var(--line); background: none; color: var(--fg); min-height: 44px; }
.upc-row:first-child { border-top: none; padding-top: 0; }
.upc-day { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.upc-row i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.upc-name { display: flex; flex-direction: column; min-width: 0; } .upc-name b { font-weight: 500; font-size: 14.5px; overflow-wrap: anywhere; } .upc-name small { color: var(--muted); font-size: 12px; }
.upc-amt { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 14px; }
.upc-row.late .upc-day, .upc-row.late .upc-name small { color: var(--danger); }
.bud-row { display: flex; flex-direction: column; gap: 5px; font-size: 14px; }
.bud-h { display: flex; justify-content: space-between; gap: 10px; } .bud-h .val { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.bud-row .track { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bud-row .fill { height: 100%; border-radius: 99px; background: var(--accent); transition: width .5s ease; }
.bud-row.warn .fill { background: var(--warn); } .bud-row.neg .fill { background: var(--danger); }
.bud-row small { color: var(--muted); font-size: 12.5px; } .bud-row.neg small { color: var(--danger); }
.budget-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.budget-form .full { grid-column: 1 / -1; }
.search-field { padding: 10px 12px; font-size: 14px; }
.search-sum { font-size: 13.5px; color: var(--muted); padding: 2px 0 6px; } .search-sum b { color: var(--fg); }
.meta-card h3 { margin: 0; font-size: 20px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.meta-num { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; } .meta-num b { font-size: 26px; font-variant-numeric: tabular-nums; } .meta-num span { color: var(--muted); }
.meta-num em { margin-left: auto; font-style: normal; font-family: var(--mono); color: var(--accent); }
.meta-bar { height: 12px; border-radius: 99px; background: var(--line); overflow: hidden; }
.meta-bar b { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 70%, #fff), var(--accent)); transition: width .6s cubic-bezier(.2,.9,.3,1); }
.meta-card.done { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); } .meta-card.done .meta-bar b { background: var(--ok); } .meta-card.done .meta-num em { color: var(--ok); }
.quit-move { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.quit-move:nth-child(2) { border-top: none; } .quit-move > div { display: flex; flex-direction: column; } .quit-move small { color: var(--muted); font-size: 12.5px; }
.quit-move .field { padding: 8px 10px; font-size: 13px; max-width: 150px; }
.next-pay { font-size: 13.5px; color: var(--muted); } .next-pay b { color: var(--fg); font-weight: 500; }
@media (max-width: 480px) { .budget-form { grid-template-columns: 1fr; } .quit-move { grid-template-columns: 1fr auto; } .quit-move > div { grid-column: 1 / -1; } }

/* inversiones */
.inv-card h3 { margin: 0; font-size: 19px; overflow-wrap: anywhere; }
.inv-card .label { color: var(--c); }
.inv-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.inv-nums > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.inv-nums small { color: var(--muted); font-size: 12px; } .inv-nums b { font-size: 15.5px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.inv-vs { display: flex; flex-wrap: wrap; gap: 6px; }
.inv-vs span { font-size: 12.5px; border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px; background: var(--panel-2); }
.inv-due { margin: 0; font-size: 14px; color: var(--ok); }
.inv-chip[aria-pressed="true"] { background: var(--c) !important; border-color: var(--c) !important; color: var(--bg) !important; }
.inv-note { margin: 0; font-size: 12.5px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 12px; padding: 12px 14px; line-height: 1.5; }
.inv-done summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.cur-split { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.cur-split b { color: var(--fg); }
.cur-split i { height: 8px; border-radius: 99px; background: var(--ok); overflow: hidden; }
.cur-split i b { display: block; height: 100%; background: var(--h5); }
@media (max-width: 520px) { .inv-nums { grid-template-columns: 1fr 1fr; } .inv-nums > div:last-child { grid-column: 1 / -1; } #invTotal .kpis-3 { grid-template-columns: 1fr; } #invTotal .tile { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; } #invTotal .tile .label { width: 100%; } }

/* notas y avisos */
.notes-grid { columns: 3 260px; column-gap: 12px; }
.notes-grid .empty { column-span: all; }
.note { break-inside: avoid; margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 10px; border: 1px solid color-mix(in srgb, var(--c) 30%, var(--line)); border-top: 4px solid var(--c); border-radius: 14px; background: linear-gradient(170deg, color-mix(in srgb, var(--c) 8%, var(--panel)), var(--panel) 60%); }
.note.pinned { box-shadow: 0 8px 24px -14px color-mix(in srgb, var(--c) 70%, transparent); }
.note p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.5; }
.note-h { display: flex; justify-content: space-between; gap: 8px; }
.note-area { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.note-date { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.note-actions { display: flex; justify-content: flex-end; gap: 4px; }
.note-actions [data-note-pin][aria-pressed="true"] { color: var(--c); }
.note.editing textarea { min-height: 120px; }
.note-chip[aria-pressed="true"] { background: var(--c) !important; border-color: var(--c) !important; color: var(--bg) !important; }
.note-chip .mono { font-size: 11px; opacity: .7; margin-left: 2px; }
#noteText { min-height: 96px; }
.notes-mini { display: flex; flex-direction: column; gap: 8px; }
.note-mini { text-align: left; border: 1px solid var(--line); border-left: 3px solid var(--c); border-radius: 10px; padding: 10px 12px; background: var(--panel-2); color: var(--fg); font-size: 14px; overflow-wrap: anywhere; }
.note-mini b { color: var(--c); font-weight: 400; }
.notif-rows { display: flex; flex-direction: column; }
.notif-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.notif-row:first-child { border-top: none; padding-top: 0; }
.notif-row span { display: flex; flex-direction: column; gap: 2px; } .notif-row small { color: var(--muted); font-size: 12.5px; }
.notif-row .field { width: auto; min-width: 110px; padding: 8px 10px; }
@media (max-width: 760px) { .notes-grid { columns: 1; } }

/* entrenamiento: descanso, ficha, sugerencia, récords, series por músculo */
.ex-name-btn { border: none; background: none; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ex-name-btn span { color: var(--accent); font-size: .85em; }
.ex-info { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.ex-info ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.muscle-chip { font-size: 12px; border: 1px solid var(--line-2); border-radius: 99px; padding: 3px 10px; color: var(--muted); }
.muscle-chip.main { border-color: var(--accent); color: var(--accent); }
.ex-sug { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); font-size: 13.5px; }
.set-row.pr .field { border-color: var(--warn); color: var(--warn); }
.set-row.pr .mono { color: var(--warn); }
.tr-when { display: flex; gap: 10px; flex-wrap: wrap; } .tr-when .field-label { flex: 1; min-width: 140px; }
.rest-bar { position: sticky; bottom: 16px; z-index: 8; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 16px; overflow: hidden; background: var(--panel-2); border: 1px solid var(--accent); box-shadow: 0 12px 30px -10px rgba(0,0,0,.6); }
.rest-fill { position: absolute; inset: 0 auto 0 0; background: var(--accent-soft); transition: width 1s linear; pointer-events: none; }
.rest-txt, .rest-btns { position: relative; display: flex; gap: 6px; align-items: center; }
.rest-txt b { font-family: var(--mono); font-size: 22px; color: var(--accent); }
.vol { display: flex; flex-direction: column; gap: 8px; }
.vol-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 32px; gap: 10px; align-items: center; font-size: 13.5px; }
.vol-row i { position: relative; height: 10px; border-radius: 99px; background: var(--line); }
.vol-row i b { display: block; height: 100%; border-radius: 99px; background: var(--muted); }
.vol-row i em { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--fg); opacity: .35; }
.vol-row.lo i b { background: var(--warn); } .vol-row.ok i b { background: var(--accent); } .vol-row.hi i b { background: var(--h3); }
.vol-row .mono { text-align: right; color: var(--muted); }
@media (max-width: 880px) { .rest-bar { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); } }

/* explicación de programas */
.program-why { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 12px; background: color-mix(in srgb, var(--c) 8%, var(--panel-2)); border: 1px solid color-mix(in srgb, var(--c) 30%, var(--line)); }
.program-why .label { color: var(--c); }
.program-why p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; }
.program-why ul { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.weeks { display: flex; flex-direction: column; margin-top: 6px; }
.weeks > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.weeks > div:first-child { border-top: none; }
.weeks b { font-family: var(--mono); font-size: 12px; color: var(--c); font-weight: 500; }

/* entrenamiento: asistente, por tiempo, racha y peso */
.wiz { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); background: radial-gradient(120% 120% at 100% 0%, var(--accent-soft), transparent 55%), var(--panel); }
.wiz-q { display: flex; flex-direction: column; gap: 6px; }
.wiz .chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.wiz-result { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px; border: 1px solid var(--accent); background: var(--panel-2); animation: revIn .35s ease; }
.wiz-result h3 { margin: 0; font-size: 19px; }
.wiz-note { margin: 0; font-size: 13px; color: var(--warn); }
.sets.timed .set-row, .sets.timed .set-h { grid-template-columns: 40px minmax(0, 1fr) auto 44px; }
.timer-go { min-width: 108px; }
.tr-streak { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.tr-streak b { color: var(--fg); } .tr-streak-n b { color: var(--accent); }
.tr-kpis { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.body-stats { display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted); } .body-stats b { color: var(--fg); }
#bodyForm { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.body-list summary { cursor: pointer; color: var(--muted); font-size: 14px; }

/* biblioteca de ejercicios y cambio de ejercicio */
.exl-filter { display: flex; flex-direction: column; gap: 6px; }
#exLib .chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.exl { display: flex; flex-direction: column; }
.exl-item { border-top: 1px solid var(--line); }
.exl-item:first-child { border-top: none; }
.exl-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 12px 0; border: none; background: none; color: var(--fg); text-align: left; min-height: 44px; }
.exl-h > span:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.exl-h b { font-weight: 600; font-size: 15px; } .exl-h small { color: var(--muted); font-size: 12.5px; }
.exl-tags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.exl-tags i { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 99px; padding: 2px 8px; white-space: nowrap; }
.exl-body { display: flex; flex-direction: column; gap: 10px; padding: 0 0 14px; }
.exl-body ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.exl-sel { width: auto; padding: 8px 10px; font-size: 13px; }
.ex-swap-btn { margin-left: 8px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--accent); border-radius: 8px; width: 32px; height: 32px; font-size: 15px; vertical-align: middle; }
@media (pointer: coarse) { .ex-swap-btn { width: 44px; height: 44px; } }
.ex-swap { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
@media (max-width: 520px) { .exl-h { flex-direction: column; align-items: flex-start; gap: 6px; } .exl-tags { justify-content: flex-start; } }

/* trabajo: agenda, subtareas, foco */
.task-title { border: none; background: none; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.task-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.sub-count, .rep-tag { margin-left: 7px; font-family: var(--mono); font-size: 11px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 99px; padding: 1px 7px; font-weight: 400; vertical-align: 1px; }
.rep-tag { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--line-2)); }
.task-detail { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; padding: 12px; margin-top: 4px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.subs { display: flex; flex-direction: column; }
.subtask { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; font-size: 14px; cursor: pointer; }
.subtask input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.subtask.done span { text-decoration: line-through; color: var(--muted); }
.rep-sel { flex-direction: row; align-items: center; gap: 8px; } .rep-sel .field { width: auto; padding: 7px 10px; font-size: 13px; }
.agenda { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.ag-day { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); min-height: 120px; }
.ag-day.today { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--panel-2)); }
.ag-day.past { opacity: .7; }
.ag-h { display: flex; justify-content: space-between; align-items: center; text-transform: capitalize; font-size: 13.5px; }
.ag-item { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; line-height: 1.35; overflow-wrap: anywhere; }
.ag-item small { color: var(--muted); }
.ag-item.done span { text-decoration: line-through; color: var(--muted); }
.ag-time { flex: none; font-family: var(--mono); font-size: 11px; color: var(--accent); min-width: 34px; }
.ag-item.follow .ag-time { color: var(--h2); } .ag-item.money .ag-time { color: var(--ok); }
.ag-check { flex: none; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-2); background: none; display: grid; place-items: center; padding: 0; }
.ag-check svg { width: 11px; height: 11px; stroke: var(--accent); stroke-width: 3; fill: none; }
.ag-star { color: var(--warn); font-weight: 400; }
.ag-empty { font-size: 12px; color: var(--dim); }
.ag-late { font-size: 13.5px; color: var(--danger); }
#wkAgenda .month { gap: 4px; } #wkAgenda .month .link { min-width: 0; }
@media (max-width: 900px) { .agenda { grid-template-columns: 1fr; } .ag-day { min-height: 0; } .ag-item { font-size: 14px; } .ag-check { width: 24px; height: 24px; } }
.focus-ov { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; background: radial-gradient(60% 50% at 50% 30%, color-mix(in srgb, var(--h3) 18%, transparent), transparent 70%), var(--bg); animation: revIn .3s ease; }
.focus-box { width: min(440px, 100%); display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.focus-box h2 { margin: 0; font-size: clamp(22px, 5vw, 30px); letter-spacing: -.02em; overflow-wrap: anywhere; }
.focus-box .label { color: var(--h3); }
.focus-box .chip[aria-pressed="true"] { background: var(--h3); border-color: var(--h3); color: #0c1640; }
.focus-box .btn:not(.btn-ghost) { background: var(--h3); color: #0c1640; }
.focus-ring { --p: 1; width: 230px; height: 230px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--h3) calc(var(--p) * 360deg), var(--line) 0); position: relative; }
.focus-ring::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--bg); }
.focus-ring b { position: relative; font-family: var(--mono); font-size: 48px; font-weight: 500; }
.focus-btn { margin-left: auto; }
.ibx-item { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); }
.ibx-t { font-size: 14.5px; overflow-wrap: anywhere; min-width: 0; }
.ibx-act { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ibx-act .chip { padding: 6px 10px; font-size: 12.5px; }
.mx { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mx-q { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); border-top: 3px solid var(--c); }
.mx-h { display: flex; justify-content: space-between; align-items: center; } .mx-h b { color: var(--c); font-size: 14.5px; }
.mx-d { font-size: 12px; color: var(--muted); }
.mx-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 13.5px; overflow-wrap: anywhere; }
.mx-item small { color: var(--muted); font-size: 11.5px; } .mx-item small.neg { color: var(--danger); } .mx-item small.warn { color: var(--warn); }
.mx-imp { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); background: none; color: var(--dim); font-weight: 700; padding: 0; }
.mx-imp[aria-pressed="true"] { color: var(--danger); border-color: var(--danger); }
@media (max-width: 640px) { .mx { grid-template-columns: 1fr; } }
.wplan { border-color: color-mix(in srgb, var(--h3) 45%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, var(--h3) 10%, var(--panel)), var(--panel) 60%); }
.wplan > .label, .wplan .card-h > .label { color: var(--h3); }
.plan-steps { display: flex; gap: 6px; } .plan-steps i { flex: 1; height: 4px; border-radius: 99px; background: var(--line); } .plan-steps i.on { background: var(--h3); }
.plan-task { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; overflow-wrap: anywhere; }
.plan-days { display: flex; flex-wrap: wrap; gap: 6px; } .plan-days .chip { padding: 6px 10px; font-size: 12.5px; text-transform: capitalize; }
.wgoal { display: flex; gap: 10px; align-items: center; width: 100%; padding: 8px 0; border: 0; background: none; color: inherit; font: inherit; font-size: 14.5px; text-align: left; overflow-wrap: anywhere; }
.wgoal i { flex: none; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line-2); display: grid; place-items: center; }
.wgoal svg { width: 13px; height: 13px; stroke: #0c1640; stroke-width: 3; fill: none; }
.wgoal.done i { background: var(--h3); border-color: var(--h3); } .wgoal.done span { text-decoration: line-through; color: var(--muted); }
.wbars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wbar { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); text-transform: capitalize; }
.wbar-c { height: 110px; width: 100%; display: flex; justify-content: center; align-items: flex-end; gap: 3px; border-bottom: 1px solid var(--line); }
.wbar-c i { width: min(14px, 40%); min-height: 2px; border-radius: 4px 4px 0 0; background: var(--h3); }
.wbar-c i.f { background: var(--ok); }
.wbar.today span { color: var(--fg); font-weight: 600; }
.wst-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); } .wst-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; background: var(--h3); margin-right: 5px; } .wst-legend i.f { background: var(--ok); }
.prio-card .card-h { flex-wrap: wrap; }

/* mi perfil */
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--h1); color: var(--bg); font-weight: 700; font-size: 13px; flex: none; letter-spacing: .02em; }
.avatar.big { width: 84px; height: 84px; font-size: 30px; background: var(--c); box-shadow: 0 0 0 4px var(--panel), 0 0 0 5px color-mix(in srgb, var(--c) 60%, transparent); }
.top-right { display: flex; align-items: center; gap: 14px; }
.avatar-btn { border: none; background: none; padding: 0; border-radius: 50%; }
.avatar-btn:hover .avatar { box-shadow: 0 0 0 2px var(--fg); }
.me-btn { display: flex; align-items: center; gap: 10px; width: 100%; border: 1px solid transparent; background: none; border-radius: 10px; padding: 8px; text-align: left; }
.me-btn:hover, .me-btn[aria-current="page"] { background: var(--panel-2); border-color: var(--line); }
.me-txt { display: flex; flex-direction: column; min-width: 0; }
.me-txt b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg); }
.me-txt small { font-size: 12px; color: var(--muted); }
.profile-head { display: flex; align-items: center; gap: 22px; border: 1px solid var(--line); border-radius: 20px; padding: 26px;
  background: radial-gradient(120% 160% at 0% 0%, color-mix(in srgb, var(--c) 18%, transparent), transparent 60%), var(--panel); }
.profile-id h1 { margin: 4px 0 4px; font-size: clamp(26px, 4vw, 36px); letter-spacing: -.02em; line-height: 1.1; overflow-wrap: anywhere; }
.profile-id p { margin: 0; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.prof-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.login-cta { border-color: rgba(61,220,151,.3); background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--panel); }
.login-cta h2 { margin: 0; font-size: 20px; }
.account-rows { display: flex; flex-direction: column; }
.acc-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.acc-row:first-child { border-top: none; padding-top: 0; }
.acc-row > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 260px; }
.acc-row span { color: var(--muted); font-size: 13.5px; }
.acc-row form .field { min-width: 160px; }
.danger-txt { color: var(--danger); }
.danger-box { border: 1px solid color-mix(in srgb, var(--danger) 50%, transparent); background: color-mix(in srgb, var(--danger) 8%, var(--panel)); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
.danger-box p { margin: 0; font-size: 14px; }
.btn-danger { background: var(--danger); color: #2a0a0a; }
@media (max-width: 700px) { .prof-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .profile-head { padding: 20px; gap: 16px; } .avatar.big { width: 64px; height: 64px; font-size: 24px; } }

/* pantalla de entrada */
body.gated .app, body.gated .tabbar { display: none !important; }
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { padding: 32px 40px; display: flex; flex-direction: column; gap: 18px; justify-content: center;
  background: radial-gradient(110% 90% at 0% 100%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 60%), var(--panel); border-right: 1px solid var(--line); --c: var(--accent); }
.auth-side .brand { padding: 0; }
.auth-art { max-width: 340px; }
/* escena de la entrada: las 4 áreas conectadas con Synergia en el centro */
.auth-art.has-scene { max-width: 400px; width: 100%; }
.ascene { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 58px 64px; padding: 4px 0; }
.as-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.as-lines line { stroke: var(--c); stroke-width: 2; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; opacity: .5; animation: asFlow 1.4s linear infinite; transition: opacity .35s, stroke-width .35s; }
.ascene.focus .as-lines line { opacity: .12; }
.ascene.focus .as-lines line.on { opacity: 1; stroke-width: 2.5; }
@keyframes asFlow { to { stroke-dashoffset: -16; } }
.as-core { position: absolute; left: 50%; top: 50%; z-index: 2; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 18px; display: grid; place-items: center; background: var(--h1); box-shadow: 0 0 0 6px color-mix(in srgb, var(--h1) 18%, transparent), 0 12px 32px color-mix(in srgb, var(--h1) 35%, transparent); }
.as-core::after { content: ""; position: absolute; inset: -6px; border-radius: 22px; border: 2px solid var(--h1); animation: asPulse 2.4s ease-out infinite; }
.as-core svg { width: 32px; height: 32px; fill: none; stroke: #04281a; stroke-width: 2; }
@keyframes asPulse { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.45); } }
.as-node { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 7px; padding: 11px 12px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line-2); border-top: 3px solid var(--c); cursor: pointer; transition: opacity .35s, transform .35s, box-shadow .35s; }
.as-node b { font-size: 13.5px; } .as-node small { font-size: 11.5px; color: var(--muted); font-family: var(--mono); }
.ascene.focus .as-node:not(.on) { opacity: .4; }
.as-node.on { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--c), 0 12px 30px color-mix(in srgb, var(--c) 28%, transparent); }
.as-mini { height: 26px; display: flex; align-items: flex-end; gap: 4px; }
.as-grid i { flex: 1; height: 100%; border-radius: 4px; background: var(--line-2); animation: asFill 4.2s infinite; }
@keyframes asFill { 0%, 8% { background: var(--line-2); } 18%, 85% { background: var(--c); } 100% { background: var(--line-2); } }
.as-bars i { flex: 1; border-radius: 3px 3px 0 0; background: var(--c); height: var(--h); opacity: .85; transform-origin: bottom; animation: asGrow 2.6s ease-in-out infinite alternate; }
@keyframes asGrow { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.as-ring { align-items: center; gap: 8px; } .as-ring svg { width: 26px; height: 26px; flex: none; }
.as-ring circle + circle { stroke: var(--c); stroke-dasharray: 100; animation: asRing 3.6s ease-in-out infinite; }
@keyframes asRing { 0% { stroke-dashoffset: 100; } 70%, 100% { stroke-dashoffset: 0; } }
.as-ring span { font-size: 12px; font-weight: 600; color: var(--c); }
.as-tasks { flex-direction: column; align-items: stretch; justify-content: space-between; height: 30px; gap: 3px; }
.as-tasks i { position: relative; height: 7px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.as-tasks i::after { content: ""; position: absolute; inset: 0; background: var(--c); transform: scaleX(0); transform-origin: left; animation: asTask 4.5s ease-in-out infinite; animation-delay: inherit; }
@keyframes asTask { 0%, 10% { transform: scaleX(0); } 30%, 85% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
.as-cap { margin: 20px 0 0; min-height: 2.6em; font-size: 15px; color: var(--muted); transition: opacity .3s; }
.as-cap b { color: var(--fg); font-weight: 600; }
.as-cap.fade { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .ascene *, .ascene *::after { animation: none !important; } .as-grid i { background: var(--c); } }
.auth-side h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; max-width: 18ch; }
.auth-side p { margin: 0; color: var(--muted); }
.auth-main { padding: 32px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.auth-card { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.auth-card h1 { margin: 0; font-size: 26px; letter-spacing: -.02em; }
.auth-card .muted { margin: 4px 0 0; font-size: 14.5px; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form .btn { padding: 13px; font-size: 15px; }
.pass { position: relative; display: block; }
.pass .field { padding-right: 70px; }
.pass .link { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-width: 48px; min-height: 40px; padding: 0 8px; }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--line-2); background: var(--fg); color: var(--bg); border-radius: 10px; padding: 12px; font-weight: 600; }
.btn-google svg { width: 18px; height: 18px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 12.5px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.auth-links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.auth-msg { margin: 0; font-size: 14px; min-height: 1em; }
.legal-note { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; } .legal-note a { color: var(--muted); text-decoration: underline; }
.legal-note[hidden] { display: none; }
.captcha:empty { display: none; } .captcha { min-height: 0; }
.auth-msg:empty { display: none; }
.auth-msg.err { color: var(--danger); } .auth-msg.ok { color: var(--accent); }
.guest-box { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 8px; text-align: center; }
.guest-box span { font-size: 13px; color: var(--muted); }
.guest-box[hidden] { display: none; }
.auth-back { font-size: 13px; color: var(--muted); text-decoration: none; font-family: var(--mono); }
.auth-back:hover { color: var(--fg); }
@media (max-width: 820px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { padding: calc(20px + env(safe-area-inset-top, 0px)) 20px 20px; border-right: none; border-bottom: 1px solid var(--line); gap: 10px; }
  .auth-art { max-width: 200px; }
  .auth-art.has-scene { max-width: 360px; }
  .ascene { gap: 34px 44px; }
  .as-node { padding: 8px 10px; gap: 5px; } .as-node small { display: none; } .as-mini { height: 18px; } .as-tasks { height: 22px; }
  .as-core { width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 14px; } .as-core svg { width: 24px; height: 24px; }
  .as-cap { margin-top: 8px; font-size: 13.5px; min-height: 0; }
  .auth-side h2 { font-size: 21px; }
  .auth-main { padding: 20px 16px calc(28px + env(safe-area-inset-bottom, 0px)); justify-content: flex-start; }
}

/* cabeceras ilustradas de cada sección */
.sec-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, 260px); align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 20px; padding: 20px 24px;
  background: radial-gradient(120% 160% at 100% 0%, color-mix(in srgb, var(--c) 18%, transparent), transparent 60%), var(--panel); }
.sec-hero h1 { margin: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.06; letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
.sec-hero h1 span { display: block; color: var(--muted); }
.sec-art svg { width: 100%; height: auto; display: block; max-height: 150px; }
.goal-art { width: 150px; margin-bottom: 8px; }
.goal-art svg { width: 100%; height: auto; display: block; }
.sec-art svg *, .goal-art svg * { transform-box: fill-box; transform-origin: center; }
.a-wave { animation: wave 2.6s ease-in-out infinite; opacity: .2; }
.a-flicker { transform-origin: bottom !important; animation: flicker 1.4s ease-in-out infinite; }
.a-spin { animation: spin 5s linear infinite; }
.a-spin-slow { animation: spin 24s linear infinite; }
.a-float { animation: float 3.4s ease-in-out infinite; }
.a-d2 { animation-delay: -1.6s; }
.a-drop { animation: drop2 2.1s ease-in infinite; }
.a-blink { animation: blink 2.8s ease-in-out infinite; }
.a-pop-loop { animation: popLoop 3.2s ease-in-out infinite; }
.a-march { animation: march 8.4s linear infinite; }
.a-tilt { animation: tilt 4s ease-in-out infinite; }
.a-shrink { transform-origin: left !important; animation: shrink 4.5s ease-in-out infinite; }
.a-grow { transform-origin: bottom !important; animation: growLoop 4s ease-in-out infinite; }
.a-drawloop { stroke-dasharray: 1; animation: drawLoop 3.6s ease-in-out infinite; }
.a-curl { animation: curl 2.6s ease-in-out infinite; }
.a-press { animation: press 3s ease-in-out infinite; }
.a-flash { animation: flash 1.8s ease-in-out infinite; }
.a-bounce { animation: bounce 1.1s cubic-bezier(.5, 0, .5, 1) infinite alternate; }
.a-beat { animation: beat 1.1s ease-in-out infinite; }
.a-breath { animation: breathe2 5s ease-in-out infinite; }
@keyframes wave { 0%, 100% { opacity: .18; } 35% { opacity: 1; } }
@keyframes flicker { 0%, 100% { transform: scaleY(1) scaleX(1); } 50% { transform: scaleY(1.1) scaleX(.94); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drop2 { 0% { transform: translateY(-14px); opacity: 0; } 20% { opacity: 1; } 75% { transform: translateY(40px); opacity: 1; } 100% { transform: translateY(46px); opacity: 0; } }
@keyframes popLoop { 0%, 15% { transform: scale(0); } 30%, 80% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes march { from { transform: translateX(-40px); } to { transform: translateX(290px); } }
@keyframes tilt { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg) translateY(-3px); } }
@keyframes shrink { 0%, 10% { transform: scaleX(1); } 70%, 100% { transform: scaleX(.18); } }
@keyframes growLoop { 0%, 8% { transform: scaleY(.25); } 45%, 100% { transform: scaleY(1); } }
@keyframes drawLoop { 0% { stroke-dashoffset: 1; } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
@keyframes curl { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-62deg); } }
@keyframes press { 0%, 100% { transform: translateY(14px); } 50% { transform: translateY(-8px); } }
@keyframes flash { 0%, 100% { opacity: .45; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes bounce { from { transform: translateY(0); } to { transform: translateY(46px) scaleY(.9); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.12); } 30% { transform: scale(.98); } 45% { transform: scale(1.06); } }
@keyframes breathe2 { 0%, 100% { transform: scale(.75); } 50% { transform: scale(1.05); } }
@media (max-width: 560px) { .sec-hero { grid-template-columns: minmax(0, 1fr) 130px; padding: 16px 18px; } .sec-hero h1 { font-size: 26px; } }
@media (prefers-reduced-motion: reduce) { .sec-art svg *, .goal-art svg * { animation: none !important; } .a-wave { opacity: .6; } }

/* banner del inicio */
.greet { font-size: clamp(20px, 2.6vw, 24px); font-weight: 700; letter-spacing: -.02em; }
.greet span { color: var(--muted); }
.hero-banner { position: relative; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--panel); }
.slides { display: grid; }
.slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 20px; padding: 30px 30px 46px;
  background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--c) 20%, transparent), transparent 60%);
  opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.slide.on { opacity: 1; visibility: visible; }
.slide-text { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; min-width: 0; }
.slide-text .label { color: var(--c); }
.slide h2 { margin: 0; font-size: clamp(24px, 3.4vw, 36px); line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
.slide p { margin: 0; color: var(--muted); max-width: 42ch; }
.slide .btn { margin-top: 8px; background: var(--c); color: var(--bg); }
.slide-art svg { width: 100%; height: auto; max-height: 220px; display: block; overflow: visible; }
.slide-art svg * { transform-box: fill-box; transform-origin: center; }
.dots { position: absolute; left: 30px; bottom: 18px; display: flex; gap: 8px; }
.dot-btn { width: 8px; height: 8px; border-radius: 99px; border: none; padding: 0; background: var(--line-2); transition: width .3s, background .3s; }
.dot-btn[aria-current="true"] { width: 26px; background: var(--fg); }
/* animaciones: corren cada vez que un mensaje aparece */
.step { transform-origin: bottom; }
.slide.on .step { animation: grow .6s cubic-bezier(.2, .9, .3, 1) backwards; animation-delay: calc(var(--i) * 90ms); }
.slide.on .curve { animation: draw 1.2s ease-out .4s backwards; }
.slide.on .flag { animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) 1.3s backwards; }
.slide.on .formula { animation: fadeUp .6s ease-out .2s backwards; }
.fill { transform-origin: bottom; }
.slide.on .fill { animation: fillUp 2.4s cubic-bezier(.3, .8, .3, 1) .3s backwards; }
.slide.on .coin { animation: drop 1.8s cubic-bezier(.5, 0, .9, .5) infinite; animation-delay: calc(var(--i) * .6s); }
.slide.on .amount { animation: fadeUp .6s ease-out 2s backwards; }
.slide.on .stem { animation: draw 1.2s ease-out backwards; }
.slide.on .leaf { animation: pop .6s cubic-bezier(.3, 1.6, .5, 1) backwards; }
.slide.on .l1 { animation-delay: .7s; } .slide.on .l2 { animation-delay: 1s; } .slide.on .l3 { animation-delay: 1.3s; }
.slide.on .sun { animation: pop .7s ease-out .2s backwards, breathe 4s ease-in-out 1s infinite; }
@keyframes fillUp { from { transform: scaleY(.05); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
@keyframes drop { 0% { transform: translateY(-10px); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateY(110px); opacity: 1; } 100% { transform: translateY(120px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .slide-art svg * { animation: none !important; } .slide { transition: none; } }

/* portadas del inicio */
.portals { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.portal { text-align: left; border: 1px solid var(--line); background: var(--panel); border-radius: 18px; padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.portal:hover { border-color: color-mix(in srgb, var(--c) 55%, transparent); transform: translateY(-2px); }
.portal .art { background: linear-gradient(160deg, color-mix(in srgb, var(--c) 14%, var(--panel)), var(--panel) 75%); padding: 22px 22px 6px; border-bottom: 1px solid var(--line); }
.portal .art svg { width: 100%; height: auto; display: block; max-height: 190px; }
.portal-body { padding: 18px 22px 20px; display: flex; flex-direction: column; gap: 8px; }
.portal-body .label { color: var(--c); }
.portal h2 { margin: 0; font-size: clamp(22px, 2.6vw, 27px); letter-spacing: -.02em; line-height: 1.1; }
.portal p { margin: 0; color: var(--muted); font-size: 14.5px; }
.portal-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.chip-live { font-family: var(--mono); font-size: 11.5px; padding: 4px 10px; border-radius: 99px; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.go { font-weight: 600; font-size: 14px; transition: transform .2s; }
.portal:hover .go { transform: translateX(4px); }

/* animación de las ilustraciones: entrada al abrir el inicio + movimiento suave que queda */
.art svg * { transform-box: fill-box; transform-origin: center; }
.art .bar { transform-origin: bottom; }
.ck-p { stroke-dasharray: 1; stroke-dashoffset: 0; }
.art .line { stroke-dasharray: 1; stroke-dashoffset: 0; }
.enter .sq { animation: pop .45s cubic-bezier(.3, 1.5, .5, 1) backwards; animation-delay: calc(var(--i) * 28ms); }
.enter .ck-c { animation: pop .55s cubic-bezier(.3, 1.6, .5, 1) .8s backwards; }
.enter .ck-p { animation: draw .45s ease-out 1.15s backwards; }
.enter .bar { animation: grow .6s cubic-bezier(.2, .9, .3, 1) backwards; animation-delay: calc(var(--i) * 70ms); }
.enter .line { animation: draw 1.1s ease-out .45s backwards; }
.enter .dot { animation: pop .4s cubic-bezier(.3, 1.6, .5, 1) 1.5s backwards; }
.sq.today { animation: blink 2.4s ease-in-out 2s infinite; }
.breathe { animation: breathe 3.2s ease-in-out 1.8s infinite; }
.float { animation: float 3.4s ease-in-out infinite; }
.float-2 { animation-duration: 4.2s; animation-delay: -1.5s; }
@keyframes pop { from { transform: scale(0); opacity: 0; } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes breathe { 50% { transform: scale(1.06); } }
@keyframes float { 50% { transform: translateY(-7px); } }
@media (prefers-reduced-motion: reduce) { .art svg * { animation: none !important; } }
.soon-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.soon-card { display: flex; gap: 14px; align-items: center; border: 1px dashed var(--line-2); border-radius: 14px; padding: 14px; }
.soon-art { width: 48px; height: 48px; flex: none; }
.soon-art svg { width: 100%; height: 100%; }
.soon-card h3 { margin: 0; font-size: 15px; }
.soon-card p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

/* recomendados y biblioteca */
.recs { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.rec { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.rec-cat { align-self: flex-start; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); border-radius: 99px; padding: 2px 9px; }
.rec h3 { margin: 4px 0 0; font-size: 16px; }
.rec p { margin: 0; color: var(--muted); font-size: 13.5px; flex: 1; }
.rec .btn { padding: 9px 14px; font-size: 14px; margin-top: 4px; }
.chip[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); column-gap: 24px; }
.lib-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.lib-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.lib-why { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.lib-preset { font-family: var(--mono); font-size: 11px; color: var(--c); margin-top: 3px; }
.sci-tag { display: inline-block; margin-left: 7px; vertical-align: 1px; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--ok); border: 1px solid rgba(61,220,151,.35); border-radius: 99px; padding: 1px 7px; font-weight: 400; white-space: nowrap; }
.lib-add { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel-2); font-size: 18px; line-height: 1; }
.lib-add:hover { border-color: var(--accent); color: var(--accent); }
.lib-added { font-family: var(--mono); font-size: 11px; color: var(--accent); }

/* formulario rápido */
.sheet-back { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 16px; }
.sheet { width: 100%; max-width: 440px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.sheet h2 { margin: 0; font-size: 19px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 60; background: var(--fg); color: var(--bg); border-radius: 10px; padding: 10px 16px; font-size: 14px; font-weight: 500; max-width: calc(100% - 32px); }

/* celu */
.tabbar { display: none; }
@media (max-width: 880px) {
  .top-brand { display: inline-flex; }
  .topbar .sync { margin-left: auto; border: 0; padding: 6px; }
  .topbar .sync #syncText { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .topbar .sync i { width: 9px; height: 9px; }
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  main { padding: 16px 16px calc(92px + env(safe-area-inset-bottom, 0px)); gap: 18px; }
  .grid-2 { grid-template-columns: 1fr; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    background: rgba(11,13,12,.94); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)); }
  .tabbar button { border: none; background: none; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; color: var(--dim); font-size: 11.5px; }
  .tabbar svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar button[aria-current="page"] { color: var(--accent); }
  .topbar .clock { display: none; }
  .slide { grid-template-columns: 1fr; padding: 22px 20px 44px; gap: 8px; }
  .slide-art { order: -1; max-width: 300px; }
  .slide-art svg { max-height: 150px; }
  .dots { left: 20px; }
  .sheet-back { place-items: end center; padding: 0; }
  .sheet { max-width: none; border-radius: 18px 18px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
  .toast { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 640px) { .form-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) {
  .ring { width: 96px; height: 96px; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* accesibilidad: tamaños táctiles, textos chicos y respuesta al tocar */
button, a, summary, label, select { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.h-meta { font-size: 12px; }
.day small, .h-tag, .ztabs button small, .area-chip, .rec-cat, .ex-tag { font-size: 11px; }
.dot-btn { position: relative; }
.dot-btn::after { content: ""; position: absolute; inset: -16px -8px; }
.syn-btn { display: none; }
@media (max-width: 880px) {
  .syn-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line-2)); background: var(--accent-soft); color: var(--accent); font-family: var(--sans); font-size: 13px; font-weight: 600; margin-right: 8px; }
  .syn-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
  .syn-btn[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
  .syn-btn { width: 44px; padding: 0; justify-content: center; } .syn-btn span { display: none; } .syn-btn svg { width: 22px; height: 22px; }
  .tabbar button { min-height: 52px; }
}
@media (pointer: coarse) {
  .check, .lib-add, .qbtn, .stepper button, .dow-pick button, .month button { width: 44px; height: 44px; }
  .chip, .slip, .tool, .del, .btn { min-height: 44px; }
  .chip { padding: 8px 14px; }
  .ztabs button { min-height: 44px; }
  .sw { width: 34px; height: 34px; }
  .swatches { gap: 12px; flex-wrap: wrap; }
  .h-rest summary, .rev-hist summary { padding-block: 14px; }
  button.link, a.link { min-height: 44px; display: inline-flex; align-items: center; }
  .avatar-btn { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; }
}

/* cada sección tiene su color en botones, pestañas, chips y selección; el verde queda para la marca, Inicio y Synergia, y --ok para "salió bien" */
body[data-sec="habitos"] #view, .side [data-go="habitos"], .tabbar [data-go="habitos"] { --accent: var(--h2); --accent-ink: #3a1904; --accent-soft: rgba(245,158,91,.13); }
body[data-sec="synergia"] #view, [data-go="synergia"]:not(.portal), .syn-teaser { --accent: var(--h4); --accent-ink: #3d0a2a; --accent-soft: rgba(236,132,195,.13); }
body[data-sec="notas"] #view, .side [data-go="notas"] { --accent: var(--note); --accent-ink: #2b2418; --accent-soft: rgba(232,213,183,.12); }
body[data-sec="finanzas"] #view, .side [data-go="finanzas"], .tabbar [data-go="finanzas"] { --accent: var(--h5); --accent-ink: #2a2405; --accent-soft: rgba(227,207,90,.13); }
body[data-sec="entrenamiento"] #view, .side [data-go="entrenamiento"], .tabbar [data-go="entrenamiento"] { --accent: var(--h6); --accent-ink: #052a33; --accent-soft: rgba(92,203,232,.13); }
body[data-sec="trabajo"] #view, .side [data-go="trabajo"], .tabbar [data-go="trabajo"] { --accent: var(--h3); --accent-ink: #0c1640; --accent-soft: rgba(138,162,255,.14); }
.nav-item[aria-current="page"] svg { color: var(--accent); }

/* estilo vidrio (igual que la landing): luces de color atrás según la sección y tarjetas translúcidas; las ventanas que se abren encima quedan casi sólidas para que se lea bien */
:root {
  --bg: #07090b; --panel: rgba(255,255,255,.035); --panel-2: rgba(255,255,255,.055); --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
  --solid: rgba(16,20,22,.94);
  --glass: linear-gradient(155deg, rgba(255,255,255,.065), rgba(255,255,255,.015) 60%);
  --glass-hi: inset 0 1px 0 rgba(255,255,255,.07);
  --au1: rgba(61,220,151,.2); --au2: rgba(92,203,232,.14); --au3: rgba(140,110,255,.12);
}
html { background: var(--bg); }
body { background: transparent; }
body[data-sec="habitos"] { --au1: rgba(245,158,91,.2); --au2: rgba(236,132,195,.1); }
body[data-sec="finanzas"] { --au1: rgba(227,207,90,.17); --au2: rgba(61,220,151,.11); }
body[data-sec="entrenamiento"] { --au1: rgba(92,203,232,.2); --au2: rgba(138,162,255,.12); }
body[data-sec="trabajo"] { --au1: rgba(138,162,255,.2); --au2: rgba(140,110,255,.13); }
body[data-sec="synergia"] { --au1: rgba(236,132,195,.18); --au2: rgba(138,162,255,.12); }
body[data-sec="notas"] { --au1: rgba(232,213,183,.13); }
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; will-change: transform; animation: aurora 30s ease-in-out infinite alternate; transition: background 1s; }
.aurora i:nth-child(1) { background: radial-gradient(circle, var(--au1), transparent 62%); top: -38vmax; right: -20vmax; }
.aurora i:nth-child(2) { background: radial-gradient(circle, var(--au2), transparent 62%); top: 20vh; left: -36vmax; animation-delay: -11s; }
.aurora i:nth-child(3) { background: radial-gradient(circle, var(--au3), transparent 62%); bottom: -42vmax; right: 0; animation-delay: -20s; }
.aurora::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 45% at 60% 0%, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 45% at 60% 0%, #000, transparent 75%); }
@keyframes aurora { to { transform: translate(-8vmax, 7vmax) scale(1.12); } }

/* menú lateral, barra de abajo y marca */
.side { background: rgba(8,11,12,.4); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); }
.nav-item[aria-current="page"] { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, transparent), rgba(255,255,255,.03)); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); box-shadow: var(--glass-hi); }
.brand-mark { background: linear-gradient(135deg, #3ddc97, #5ccbe8); color: #04281a; box-shadow: 0 0 16px -3px rgba(61,220,151,.55), inset 0 1px 0 rgba(255,255,255,.4); }
.top-brand .brand-mark { background: linear-gradient(135deg, #3ddc97, #5ccbe8); }
.sync { background: rgba(255,255,255,.03); }

/* tarjetas de vidrio */
.card { background: var(--glass); box-shadow: var(--glass-hi), 0 20px 50px -32px rgba(0,0,0,.85); }
.tile { background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); box-shadow: var(--glass-hi); }
.quick-btn { background: var(--glass); box-shadow: var(--glass-hi); }
option { background: #15191b; color: var(--fg); }

/* botones */
.btn:where(:not(.btn-ghost, .btn-danger, .danger, .btn-google)) { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 72%, #ffffff));
  box-shadow: 0 8px 22px -10px var(--accent), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-ghost { background: rgba(255,255,255,.04); box-shadow: var(--glass-hi); }
.btn-ghost:hover { background: rgba(255,255,255,.07); }

/* lo que se abre encima: casi sólido, con desenfoque */
.sheet, .inst-card, .share-box, .tour-tip { background: linear-gradient(155deg, rgba(255,255,255,.06), rgba(255,255,255,0) 60%), var(--solid); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 30px 70px -20px rgba(0,0,0,.8); }
.sheet-back, .inst-ov { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

/* entrada: vidrio y cubos flotando */
.auth-side { position: relative; overflow: hidden; background: radial-gradient(110% 90% at 0% 100%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%), rgba(255,255,255,.02); }
.auth-card { background: var(--glass); box-shadow: var(--glass-hi), 0 30px 70px -30px rgba(0,0,0,.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.auth-side > :not(.cube) { position: relative; z-index: 1; }
.cube { --s: 54px; position: absolute; z-index: 0; width: var(--s); height: var(--s); transform-style: preserve-3d; pointer-events: none; animation: cubeFloat 8s ease-in-out infinite; }
.cube i { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 12px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--c) 45%, rgba(255,255,255,.1)), color-mix(in srgb, var(--c) 8%, transparent));
  border: 1px solid color-mix(in srgb, var(--c) 60%, rgba(255,255,255,.3)); box-shadow: inset 0 0 20px color-mix(in srgb, var(--c) 35%, transparent); }
.cube i:nth-child(1) { transform: translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(2) { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(3) { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
.cube svg { width: 46%; height: 46%; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px var(--c)); }
.cb1 { top: 7%; right: 10%; } .cb2 { --s: 42px; bottom: 9%; right: 16%; animation-delay: -3s; } .cb3 { --s: 36px; top: 12%; left: 46%; animation-delay: -5.5s; }
@keyframes cubeFloat { 0%, 100% { transform: translateY(0) rotateX(-20deg) rotateY(-34deg); } 50% { transform: translateY(-12px) rotateX(-10deg) rotateY(-10deg); } }

@media (max-width: 880px) {
  .tabbar { background: rgba(8,11,12,.6); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
  .cb1 { --s: 38px; top: auto; bottom: 14px; right: 16px; } .cb2, .cb3 { display: none; }
}
@media (prefers-reduced-motion: reduce) { .aurora i, .cube { animation: none !important; } }

/* menú de vidrio: lateral flotante (compu) y barra flotante (celu), con la pastilla que se desliza, contadores, Finanzas desplegable, achicar y buscador */
@media (min-width: 881px) { .app { grid-template-columns: 256px minmax(0, 1fr); transition: grid-template-columns .3s ease; } }
.side { top: 12px; height: calc(100vh - 24px); margin: 12px 0 12px 12px; padding: 16px 12px 12px; gap: 14px; border: 1px solid var(--line-2); border-radius: 22px; overflow-y: auto; scrollbar-width: none;
  background: linear-gradient(170deg, rgba(255,255,255,.075), rgba(255,255,255,.02) 45%), rgba(8,11,12,.45); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 30px 60px -30px rgba(0,0,0,.9); }
.side::-webkit-scrollbar { display: none; }
.side-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.side-collapse { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255,255,255,.05); color: var(--muted); padding: 0; transition: color .2s, background .2s; }
.side-collapse:hover { color: var(--fg); background: rgba(255,255,255,.1); }
.side-collapse svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.side-search { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255,255,255,.035); color: var(--dim); font-size: 13.5px; text-align: left; transition: border-color .2s, color .2s; }
.side-search:hover { border-color: var(--line-2); color: var(--muted); }
.side-search svg, .top-search svg, .cmdk-in svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.side-search kbd, .cmdk-in kbd { margin-left: auto; font-family: var(--mono); font-size: 10.5px; border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; color: var(--muted); background: rgba(255,255,255,.04); white-space: nowrap; }
.nav-group { position: relative; }
.nav-label { padding: 2px 10px 6px; }
.nav-item { position: relative; z-index: 1; transition: color .2s; }
.nav-item:hover, .nav-item[aria-current="page"] { background: transparent; border-color: transparent; box-shadow: none; }
.nav-item:hover { color: var(--fg); }
.nav-pill, .tab-pill { position: absolute; left: 0; top: 0; z-index: 0; width: 0; opacity: 0; pointer-events: none; border-radius: 11px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--pc, #3ddc97) 22%, rgba(255,255,255,.05)), rgba(255,255,255,.025));
  border: 1px solid color-mix(in srgb, var(--pc, #3ddc97) 42%, rgba(255,255,255,.1)); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 8px 22px -10px var(--pc, #3ddc97);
  transition: transform .4s cubic-bezier(.3, 1.25, .5, 1), width .3s, height .3s, opacity .2s, background .3s, border-color .3s; }
.nbadge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 99px; font: 600 11px/1 var(--mono);
  color: var(--accent); background: color-mix(in srgb, var(--accent) 20%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent); }
.nbadge.late { color: #2a0a0a; background: var(--danger); border-color: var(--danger); box-shadow: 0 0 12px -2px var(--danger); }
.nbadge.dot { min-width: 8px; width: 8px; height: 8px; padding: 0; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.nav-sub { display: none; flex-direction: column; gap: 1px; margin: 2px 0 6px 19px; padding-left: 10px; border-left: 1px solid var(--line-2); }
body[data-sec="finanzas"] .nav-sub { display: flex; animation: navSubIn .3s ease; }
@keyframes navSubIn { from { opacity: 0; transform: translateY(-4px); } }
.nav-subitem { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 13px; text-align: left; transition: color .15s, background .15s; }
.nav-subitem:hover { color: var(--fg); background: rgba(255,255,255,.04); }
.nav-subitem[aria-current="true"] { color: var(--fg); background: rgba(255,255,255,.07); }
.nav-subitem i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.side-foot { border-top: none; padding: 0; }
.me-btn { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--glass-hi); }
.top-search { display: none; }

/* menú achicado: solo íconos */
@media (min-width: 881px) {
  body.side-mini .app { grid-template-columns: 84px minmax(0, 1fr); }
  body.side-mini .side { padding: 14px 9px 10px; }
  body.side-mini .side-top { flex-direction: column; gap: 12px; }
  body.side-mini .side-top .brand { font-size: 0; padding: 0; gap: 0; }
  body.side-mini .side-collapse svg { transform: rotate(180deg); }
  body.side-mini :is(.ni-t, .nav-label, .nav-sub, .side-search span, .side-search kbd, .me-txt, #authOpenBtn, #logoutBtn) { display: none !important; }
  body.side-mini .nav-item, body.side-mini .side-search, body.side-mini .me-btn { justify-content: center; padding-inline: 0; }
  body.side-mini .nbadge { position: absolute; top: 1px; right: 5px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 9.5px; }
  body.side-mini .nbadge.dot { min-width: 8px; height: 8px; top: 6px; right: 12px; }
}

/* celu: barra de abajo flotante */
@media (max-width: 880px) {
  .tabbar { left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); padding: 6px; border: 1px solid var(--line-2); border-radius: 24px;
    background: linear-gradient(170deg, rgba(255,255,255,.08), rgba(255,255,255,.02)), rgba(8,11,12,.62); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 20px 40px -14px rgba(0,0,0,.9); }
  .tabbar button { position: relative; z-index: 1; transition: color .25s; }
  .tab-pill { border-radius: 18px; }
  .tabbar .nbadge { position: absolute; top: 1px; left: calc(50% + 5px); margin: 0; min-width: 17px; height: 17px; padding: 0 4px; font-size: 10px; }
  .tabbar .nbadge.dot { min-width: 8px; width: 8px; height: 8px; top: 5px; left: calc(50% + 9px); }
  main { padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px)); }
  .rest-bar { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  .top-search { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--muted); padding: 0; }
  .top-search svg { width: 18px; height: 18px; }
}

/* buscador */
.cmdk-ov { position: fixed; inset: 0; z-index: 140; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; background: rgba(0,0,0,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: revIn .2s ease; }
.cmdk { width: min(560px, 100%); max-height: 72vh; display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; border: 1px solid var(--line-2);
  background: linear-gradient(155deg, rgba(255,255,255,.07), rgba(255,255,255,0) 60%), var(--solid); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 40px 90px -20px rgba(0,0,0,.9); animation: cmdkIn .25s cubic-bezier(.2, 1, .3, 1); }
@keyframes cmdkIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.cmdk-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.cmdk-in input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 16px; color: var(--fg); }
.cmdk-list { overflow-y: auto; padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.cmdk-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: 11px; background: none; text-align: left; color: var(--fg); }
.cmdk-row:hover { background: rgba(255,255,255,.04); }
.cmdk-row[aria-selected="true"] { background: color-mix(in srgb, var(--c) 14%, rgba(255,255,255,.04)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); }
.cmdk-row i { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; font-style: normal; font-weight: 700; font-size: 14px; color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); }
.cmdk-row b { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-row small { font-family: var(--mono); font-size: 11px; color: var(--dim); white-space: nowrap; }
.cmdk-empty { padding: 22px; text-align: center; color: var(--muted); font-size: 14px; }
.cmdk-foot { padding: 9px 16px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--dim); }
@media (max-width: 880px) { .cmdk-ov { padding-top: calc(12px + env(safe-area-inset-top, 0px)); } .cmdk-foot { display: none; } .cmdk-in kbd { display: none; } }
@media (prefers-reduced-motion: reduce) { .nav-pill, .tab-pill, .cmdk, .nav-sub { transition: none !important; animation: none !important; } }

/* pulido del vidrio: luces que cambian de color suave, fundido al cambiar de sección, accesos rápidos de vidrio, barra de arriba fija en el celu y modo liviano */
@property --au1 { syntax: '<color>'; inherits: true; initial-value: rgba(61,220,151,.2); }
@property --au2 { syntax: '<color>'; inherits: true; initial-value: rgba(92,203,232,.14); }
body { transition: --au1 1.2s ease, --au2 1.2s ease; }
#view.view-in { animation: viewIn .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } }
.quick-btn { transition: transform .2s, border-color .2s, background .2s; }
.quick-btn span { width: 40px; height: 40px; border-radius: 12px; color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 52%, transparent), color-mix(in srgb, var(--c) 12%, transparent));
  border: 1px solid color-mix(in srgb, var(--c) 58%, transparent); box-shadow: 0 8px 20px -8px var(--c), inset 0 1px 0 rgba(255,255,255,.32); }
.quick-btn span svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.quick-btn:hover { transform: translateY(-2px); background: linear-gradient(155deg, color-mix(in srgb, var(--c) 16%, transparent), rgba(255,255,255,.02)); }
.quick-btn:active { transform: scale(.96); }
@media (max-width: 880px) {
  .topbar { position: sticky; top: 0; z-index: 9; margin: -16px -16px 0; padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; border-bottom: 1px solid transparent; transition: background .25s, border-color .25s, box-shadow .25s; }
  body.scrolled .topbar { background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)), rgba(8,11,12,.62); border-bottom-color: var(--line);
    backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 12px 30px -20px rgba(0,0,0,.9); }
  .quick-btn span { width: 36px; height: 36px; border-radius: 11px; }
}
/* modo liviano */
body.lite .aurora i, body.lite .cube { animation: none; }
body.lite *, body.lite *::before, body.lite *::after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
body.lite .tabbar, body.lite.scrolled .topbar { background: rgba(12,15,17,.97); }
body.lite #view.view-in { animation: none; }
body.lite { transition: none; }
@media (prefers-reduced-motion: reduce) { #view.view-in { animation: none; } body { transition: none; } }

/* fondo: formas de vidrio difuminadas que flotan detrás (así el vidrio de adelante tiene algo para desenfocar), grano finito y 4 fondos para elegir */
@property --c1 { syntax: '<color>'; inherits: true; initial-value: #3ddc97; }
@property --c2 { syntax: '<color>'; inherits: true; initial-value: #5ccbe8; }
@property --c3 { syntax: '<color>'; inherits: true; initial-value: #8c6eff; }
body { --c1: #3ddc97; --c2: #5ccbe8; --c3: #8c6eff; --sho: .4; transition: --au1 1.2s ease, --au2 1.2s ease, --c1 1.2s ease, --c2 1.2s ease, --c3 1.2s ease; }
body[data-sec="habitos"] { --c1: #f59e5b; --c2: #ec84c3; }
body[data-sec="finanzas"] { --c1: #e3cf5a; --c2: #3ddc97; }
body[data-sec="entrenamiento"] { --c1: #5ccbe8; --c2: #8aa2ff; }
body[data-sec="trabajo"] { --c1: #8aa2ff; --c2: #8c6eff; }
body[data-sec="synergia"] { --c1: #ec84c3; --c2: #8aa2ff; }
body[data-sec="notas"] { --c1: #e8d5b7; --c2: #8aa2ff; }
body[data-bg="oceano"], body[data-bg="oceano"][data-sec] { --au1: rgba(59,130,246,.24); --au2: rgba(92,203,232,.18); --au3: rgba(99,102,241,.16); --c1: #3b82f6; --c2: #5ccbe8; --c3: #6366f1; }
body[data-bg="atardecer"], body[data-bg="atardecer"][data-sec] { --au1: rgba(245,140,80,.24); --au2: rgba(236,100,160,.17); --au3: rgba(140,90,255,.16); --c1: #f59e5b; --c2: #ec84c3; --c3: #8c6eff; }
body[data-bg="noche"], body[data-bg="noche"][data-sec] { --au1: rgba(255,255,255,.045); --au2: rgba(138,162,255,.05); --au3: rgba(255,255,255,.03); --c1: #5a6472; --c2: #3b4252; --c3: #2e3440; --sho: .3; }
.aurora::before { content: ""; position: absolute; inset: 0; z-index: 2; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 160px; opacity: .06; mix-blend-mode: overlay; }
.aurora .sh { position: absolute; display: block; opacity: var(--sho); filter: blur(16px); will-change: transform; animation: shFloat 24s ease-in-out infinite alternate; }
.sh1 { width: 36vmin; height: 36vmin; top: 7%; right: 5%; border-radius: 50%; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.6), var(--c1) 36%, color-mix(in srgb, var(--c1) 35%, transparent) 64%, transparent 71%); }
.sh2 { width: 24vmin; height: 24vmin; bottom: 10%; left: 18%; border-radius: 50%; animation-duration: 30s; animation-delay: -9s; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.55), var(--c2) 38%, color-mix(in srgb, var(--c2) 30%, transparent) 64%, transparent 71%); }
.sh3 { width: 19vmin; height: 19vmin; top: 52%; right: 24%; border-radius: 28%; animation-name: shTurn; animation-duration: 36s; animation-delay: -4s; background: linear-gradient(135deg, rgba(255,255,255,.4), var(--c3) 45%, color-mix(in srgb, var(--c3) 35%, transparent)); }
.sh4 { width: 12vmin; height: 12vmin; top: 30%; left: 7%; border-radius: 50%; animation-duration: 20s; animation-delay: -13s; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.6), var(--c1) 40%, transparent 71%); }
.sh5 { width: 10vmin; height: 10vmin; top: 3%; left: 42%; border-radius: 26%; animation-name: shTurn; animation-duration: 26s; animation-delay: -17s; background: linear-gradient(135deg, rgba(255,255,255,.4), var(--c2) 50%, color-mix(in srgb, var(--c2) 30%, transparent)); }
@keyframes shFloat { to { transform: translate(-5vmax, 6vmax) scale(1.08); } }
@keyframes shTurn { from { transform: rotate(18deg); } to { transform: translate(4vmax, -5vmax) rotate(62deg); } }
/* las tarjetas desenfocan lo que tienen atrás */
.card, .quick-btn, .me-btn { backdrop-filter: blur(16px) saturate(1.25); -webkit-backdrop-filter: blur(16px) saturate(1.25); }
/* muestras de fondo en Mi perfil */
.bg-pick { display: flex; flex-direction: column; gap: 8px; }
.bg-opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bg-opt { display: flex; flex-direction: column; gap: 6px; padding: 6px 6px 8px; border-radius: 13px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted); font-size: 12.5px; transition: border-color .2s, color .2s; }
.bg-opt i { height: 46px; border-radius: 9px; background: radial-gradient(circle at 75% 25%, var(--a) 0 16%, transparent 17%), radial-gradient(circle at 28% 72%, var(--b) 0 12%, transparent 13%),
  radial-gradient(90% 90% at 80% 0%, color-mix(in srgb, var(--a) 45%, transparent), transparent 70%), radial-gradient(80% 80% at 0% 100%, color-mix(in srgb, var(--d) 40%, transparent), transparent 70%), #07090b; }
.bg-opt:hover { color: var(--fg); border-color: var(--line-2); }
.bg-opt[aria-pressed="true"] { color: var(--fg); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 8px 20px -10px var(--accent); }
body.lite .aurora .sh { animation: none; }
@media (prefers-reduced-motion: reduce) { .aurora .sh { animation: none; } }

/* tanda 1: anotar rápido y pausa */
.q-quick { border-color: color-mix(in srgb, var(--h5) 45%, var(--line-2)); background: linear-gradient(135deg, color-mix(in srgb, var(--h5) 10%, transparent), rgba(255,255,255,.03)); }
.q-quick::placeholder { color: var(--dim); }
.pause-card { border-color: color-mix(in srgb, var(--h6) 35%, var(--line)); }
.pause-card.on { background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--h6) 18%, transparent), transparent 60%), var(--glass); }
.pause-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; padding: 8px 0; border-top: 1px solid var(--line); }
.pause-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .pause-form .btn { grid-column: 1 / -1; }
.pause-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }

/* tanda 2: tarjeta del mes, pregunta de 0 a 10 e inflación */
.month-card { border-color: color-mix(in srgb, var(--h4) 40%, var(--line)); background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--h4) 18%, transparent), transparent 60%), var(--glass); }
.nps-card { border-color: color-mix(in srgb, var(--h1) 35%, var(--line)); }
.nps-scale { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 5px; }
.nps-scale button { min-height: 40px; padding: 0; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--fg); font-weight: 600; font-family: var(--mono); }
.nps-scale button:hover { border-color: var(--accent); background: var(--accent-soft); }
.nps-ends { display: flex; justify-content: space-between; color: var(--dim); }
.infl-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 16px; border-radius: 14px; font-size: 14.5px;
  border: 1px solid color-mix(in srgb, var(--warn) 40%, var(--line)); background: linear-gradient(135deg, color-mix(in srgb, var(--warn) 12%, transparent), rgba(255,255,255,.02)); }
@media (max-width: 420px) { .nps-scale { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* tanda 3: momentos del día, calendario por hábito, entre amigos, entrada en calor y gráfico del peso */
.h-moment { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 10px 2px 2px; }
.hc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.hc-top select { flex: 1; min-width: 140px; }
.hc-nav { display: flex; align-items: center; gap: 6px; font-size: 14px; text-transform: capitalize; }
.hc-nav button { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--fg); }
.hc-nav button:disabled { opacity: .35; }
.hc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; max-width: 360px; width: 100%; }
.hc-grid small { text-align: center; font-family: var(--mono); font-size: 10.5px; color: var(--dim); }
.hc-day { aspect-ratio: 1; border-radius: 9px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted); font-size: 12.5px; font-family: var(--mono); padding: 0; }
.hc-day.on { background: var(--c, var(--h2)); border-color: var(--c, var(--h2)); color: #111; font-weight: 700; box-shadow: 0 4px 12px -6px var(--c, var(--h2)); }
.hc-day.miss { border-color: color-mix(in srgb, var(--danger) 55%, transparent); color: var(--fg); }
.hc-day.off { opacity: .45; } .hc-day.fut { opacity: .3; } .hc-day.pause { border-style: dashed; border-color: var(--h6); color: var(--h6); }
.hc-day.empty { visibility: hidden; }
.hc-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.hc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.fr-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fr-kpis div { padding: 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.fr-kpis b { display: block; font-size: 20px; } .fr-kpis small { color: var(--muted); font-size: 12.5px; }
.fr-in { color: var(--ok) !important; } .fr-out { color: var(--danger) !important; }
.warm-card { border-color: color-mix(in srgb, var(--h2) 40%, var(--line)); background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--h2) 14%, transparent), transparent 60%), var(--glass); }
.warm-card ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }

/* tanda 4: pantalla de carga, cubo en los títulos y brillo que sigue al mouse */
.splash { position: fixed; inset: 0; z-index: 300; display: grid; place-content: center; justify-items: center; gap: 26px; background: var(--bg); perspective: 600px; transition: opacity .4s ease; }
.splash.out { opacity: 0; pointer-events: none; }
.splash b { font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--fg); }
.splash .splash-cube { position: relative; --s: 72px; animation: splashSpin 2.6s linear infinite; }
@keyframes splashSpin { from { transform: rotateX(-18deg) rotateY(0deg); } to { transform: rotateX(-18deg) rotateY(360deg); } }
.sec-hero h1 { perspective: 400px; }
.title-cube { position: relative; display: inline-block; vertical-align: middle; --s: 30px; margin: -6px 0 0 14px; animation: titleSpin 14s linear infinite; }
@keyframes titleSpin { from { transform: rotateX(-20deg) rotateY(-30deg); } to { transform: rotateX(-20deg) rotateY(330deg); } }
.title-cube i { border-radius: 8px; }
.title-cube svg { width: 52%; height: 52%; }
@media (hover: hover) and (pointer: fine) {
  .card, .tile, .quick-btn { position: relative; }
  .card::after, .tile::after, .quick-btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(280px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.07), transparent 65%); }
  .card:hover::after, .tile:hover::after, .quick-btn:hover::after { opacity: 1; }
}
body.lite .splash .splash-cube, body.lite .title-cube { animation: none; }
body.lite .card::after, body.lite .tile::after, body.lite .quick-btn::after { display: none; }
@media (prefers-reduced-motion: reduce) { .splash .splash-cube, .title-cube { animation: none; } }
@media (max-width: 880px) { .title-cube { --s: 24px; margin-left: 10px; } }
