/* ===== Pesuma v5: recordatorios, modo pareja, categoría automática, importador y guía de inicio =====
   Misma colorimetría: verde = lo que entra / acción · rosa = gasto / peligro · ámbar = deuda / atención · azul = información */

/* ---------- Piezas comunes ---------- */
.fz-eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fz-success); }
.fz-btn-primary, .fz-btn-soft, .fz-btn-wa { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; font-weight: 700; font-size: .88rem; border-radius: .85rem; padding: .7rem 1.1rem; min-height: 2.75rem; cursor: pointer; text-decoration: none; border: 1px solid transparent; transition: transform .1s, filter .15s, background .15s; white-space: nowrap; }
.fz-btn-primary { background: linear-gradient(180deg, #34d399, var(--fz-green)); color: #04130d; box-shadow: 0 8px 20px -10px rgb(16 185 129 / .7); }
.fz-btn-primary:hover { filter: brightness(1.06); } .fz-btn-primary:active, .fz-btn-soft:active, .fz-btn-wa:active { transform: scale(.98); }
.fz-btn-primary[disabled] { opacity: .6; cursor: progress; }
.fz-btn-soft { background: var(--fz-track); color: inherit; border-color: var(--fz-border); }
.fz-btn-soft:hover { background: color-mix(in srgb, var(--fz-green) 10%, var(--fz-track)); }
.fz-btn-wa { background: #25d366; color: #052e16; }
.fz-btn-link { background: none; border: 0; padding: .5rem .25rem; font-size: .84rem; font-weight: 600; color: var(--fz-muted); cursor: pointer; text-decoration: none; }
.fz-btn-link:hover { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.fz-btn-lg { font-size: 1rem; padding: .9rem 1.6rem; min-height: 3.2rem; border-radius: 1rem; }
.fz-btn-block { width: 100%; }
.fz-btn-primary svg, .fz-btn-soft svg { width: 1.05rem; height: 1.05rem; }
.fz-card-pane { background: var(--fz-card); border: 1px solid var(--fz-border); border-radius: var(--fz-radius); box-shadow: var(--fz-shadow); padding: 1.15rem; display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.fz-pane-head { display: flex; flex-direction: column; gap: .2rem; }
.fz-pane-head h2 { font-size: 1.02rem; font-weight: 800; letter-spacing: -.02em; }
.fz-pane-head p { font-size: .8rem; color: var(--fz-muted); margin: 0; line-height: 1.45; }
.fz-field { display: flex; flex-direction: column; gap: .45rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.fz-field-label { font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--fz-muted); }
.fz-field > small { font-size: .75rem; color: var(--fz-muted); }
.fz-seg-sm { display: flex; flex-wrap: wrap; gap: .3rem; padding: .25rem; border-radius: .85rem; background: var(--fz-track); }
.fz-seg-sm button { flex: 1 1 auto; font-size: .78rem; font-weight: 600; padding: .45rem .7rem; border-radius: .6rem; border: 0; background: transparent; color: var(--fz-muted); cursor: pointer; white-space: nowrap; min-height: 2.2rem; }
.fz-seg-sm button.is-on { background: var(--fz-card); color: inherit; box-shadow: 0 1px 3px rgb(0 0 0 / .18); }
.fz-switches { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.fz-switches li, .fz-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--fz-border); }
.fz-switch-row { border: 0; padding: .2rem 0; cursor: default; }
.fz-switches li div, .fz-switch-row div { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.fz-switches b, .fz-switch-row b { font-size: .88rem; } .fz-switches small, .fz-switch-row small { font-size: .75rem; color: var(--fz-muted); line-height: 1.4; }
.fz-switch { flex: none; position: relative; width: 2.9rem; height: 1.7rem; border-radius: 99px; border: 0; background: var(--fz-ring-track); cursor: pointer; transition: background .2s; }
.fz-switch i { position: absolute; top: .2rem; left: .2rem; width: 1.3rem; height: 1.3rem; border-radius: 99px; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: transform .2s; }
.fz-switch.is-on { background: var(--fz-green); } .fz-switch.is-on i { transform: translateX(1.2rem); }
.fz-avatar { --c: var(--fz-green); flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 99px; font-weight: 800; font-size: .85rem; letter-spacing: -.02em; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 45%, transparent); }
.fz-avatar.is-ghost { --c: var(--fz-muted); }
.fz-avatar-xs { width: 1.35rem; height: 1.35rem; font-size: .55rem; }
:focus-visible { outline-color: var(--fz-green); }

/* ---------- Siguientes pasos (Panorama) ---------- */
.fz-nudges { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: .6rem; }
.fz-nudge { --t: var(--fz-green); display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: .7rem; padding: .75rem .8rem; border-radius: var(--fz-radius); background: linear-gradient(120deg, color-mix(in srgb, var(--t) 10%, transparent), transparent 70%), var(--fz-card); border: 1px solid color-mix(in srgb, var(--t) 28%, var(--fz-border)); }
.fz-tone-amber { --t: var(--fz-amber); } .fz-tone-sky { --t: var(--fz-sky); } .fz-tone-green { --t: var(--fz-green); }
.fz-nudge-ic { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: .7rem; background: color-mix(in srgb, var(--t) 16%, transparent); color: var(--t); }
.fz-nudge-ic svg { width: 1.15rem; height: 1.15rem; }
.fz-nudge-body { display: flex; flex-direction: column; gap: .1rem; } .fz-nudge-body b { font-size: .85rem; line-height: 1.3; } .fz-nudge-body small { font-size: .74rem; color: var(--fz-muted); line-height: 1.35; }
.fz-nudge-cta { font-size: .78rem; font-weight: 700; padding: .45rem .8rem; border-radius: 99px; background: color-mix(in srgb, var(--t) 16%, transparent); color: var(--t); text-decoration: none; white-space: nowrap; }
.fz-nudge-x { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 99px; border: 0; background: transparent; color: var(--fz-muted); cursor: pointer; }
.fz-nudge-x:hover { background: var(--fz-track); } .fz-nudge-x svg { width: .95rem; height: .95rem; }

/* ---------- Recordatorios ---------- */
.fz-rem { display: flex; flex-direction: column; gap: 1rem; }
.fz-rem-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 1.2rem; border-radius: var(--fz-radius); border: 1px solid var(--fz-border); background: radial-gradient(40rem 12rem at 0% 0%, rgb(245 158 11 / .14), transparent 60%), var(--fz-card); box-shadow: var(--fz-shadow); }
.fz-rem-hero.is-on { background: radial-gradient(40rem 12rem at 0% 0%, rgb(16 185 129 / .16), transparent 60%), var(--fz-card); border-color: rgb(16 185 129 / .3); }
.fz-rem-hero.is-warn { background: radial-gradient(40rem 12rem at 0% 0%, rgb(14 165 233 / .12), transparent 60%), var(--fz-card); }
.fz-rem-bell { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 1rem; background: rgb(245 158 11 / .16); color: var(--fz-amber); }
.fz-rem-hero.is-on .fz-rem-bell { background: rgb(16 185 129 / .16); color: var(--fz-green); }
.fz-rem-bell svg { width: 1.6rem; height: 1.6rem; }
.fz-rem-hero.is-on .fz-rem-bell svg { animation: fz-ring 2.4s ease-in-out 1; transform-origin: 50% 10%; }
@keyframes fz-ring { 0%, 100% { transform: rotate(0); } 10% { transform: rotate(14deg); } 20% { transform: rotate(-12deg); } 30% { transform: rotate(8deg); } 40% { transform: rotate(-4deg); } 50% { transform: rotate(0); } }
.fz-rem-hero-body h2 { font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em; }
.fz-rem-hero-body p { font-size: .84rem; color: var(--fz-muted); margin: .2rem 0 0; line-height: 1.5; max-width: 60ch; }
.fz-rem-hero-cta { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; }
.fz-rem-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.fz-devices { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.fz-devices li { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: .8rem; background: var(--fz-track); }
.fz-devices li > svg { width: 1.2rem; height: 1.2rem; color: var(--fz-muted); flex: none; }
.fz-devices li div { display: flex; flex-direction: column; flex: 1; min-width: 0; } .fz-devices b { font-size: .84rem; } .fz-devices small { font-size: .72rem; color: var(--fz-muted); }
.fz-rem-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.fz-rem-list li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: .75rem; align-items: start; }
.fz-rem-list time { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 3rem; border-radius: .8rem; background: var(--fz-track); font-size: .6rem; text-transform: uppercase; color: var(--fz-muted); line-height: 1.15; text-align: center; }
.fz-rem-list time b { font-size: .95rem; color: var(--fz-fg, inherit); text-transform: none; }
.fz-rem-hoy time { background: rgb(245 158 11 / .15); color: var(--fz-warning); }
.fz-rem-pago time { background: rgb(16 185 129 / .15); color: var(--fz-success); }
.fz-rem-bubble { display: flex; flex-direction: column; gap: .15rem; padding: .6rem .8rem; border-radius: .9rem; background: color-mix(in srgb, var(--fz-track) 80%, transparent); border: 1px solid var(--fz-border); min-width: 0; }
.fz-rem-app { display: flex; align-items: center; gap: .3rem; font-size: .64rem; font-weight: 600; color: var(--fz-muted); text-transform: uppercase; letter-spacing: .05em; }
.fz-rem-app img { border-radius: 4px; }
.fz-rem-bubble b { font-size: .84rem; line-height: 1.3; } .fz-rem-bubble p { font-size: .76rem; color: var(--fz-muted); margin: 0; line-height: 1.4; }

/* ---------- Mi hogar (modo pareja) ---------- */
.fz-home { display: flex; flex-direction: column; gap: 1rem; }
.fz-people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.fz-people li { display: flex; align-items: center; gap: .85rem; padding: .8rem 0; border-top: 1px solid var(--fz-border); flex-wrap: wrap; }
.fz-people li:first-child { border-top: 0; padding-top: 0; }
.fz-people-body { flex: 1 1 14rem; display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.fz-people-name { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; } .fz-people-name b { font-size: .92rem; }
.fz-people-body small { font-size: .76rem; color: var(--fz-muted); }
.fz-people-name .fz-chip { font-size: .62rem; padding: .1rem .45rem; }
.fz-people-bar { height: .35rem; border-radius: 99px; background: var(--fz-track); overflow: hidden; max-width: 18rem; }
.fz-people-bar i { display: block; height: 100%; border-radius: inherit; }
.fz-people-actions { display: flex; align-items: center; gap: .4rem; margin-left: auto; }
.fz-people-actions .fi-input-wrp { min-width: 10.5rem; }
.fz-home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.fz-invite-form { display: flex; flex-direction: column; gap: 1rem; }
.fz-role-cards { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.fz-role-card { position: relative; display: flex; flex-direction: column; gap: .3rem; padding: .8rem; border-radius: .9rem; border: 1.5px solid var(--fz-border); cursor: pointer; transition: border-color .15s, background .15s; }
.fz-role-card svg { width: 1.2rem; height: 1.2rem; color: var(--fz-muted); }
.fz-role-card b { font-size: .86rem; } .fz-role-card small { font-size: .73rem; color: var(--fz-muted); line-height: 1.4; }
.fz-role-card.is-on { border-color: var(--fz-green); background: rgb(16 185 129 / .07); } .fz-role-card.is-on svg { color: var(--fz-green); }
.fz-role-card:has(input:focus-visible) { outline: 2px solid var(--fz-green); outline-offset: 2px; }
.fz-invite { display: flex; flex-direction: column; gap: .7rem; padding: .85rem; border-radius: .95rem; border: 1px solid var(--fz-border); background: var(--fz-track); }
.fz-invite + .fz-invite { margin-top: .2rem; }
.fz-invite.is-new { border-color: rgb(16 185 129 / .45); box-shadow: 0 0 0 3px rgb(16 185 129 / .12); }
.fz-invite-head { display: flex; align-items: center; gap: .65rem; } .fz-invite-head div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.fz-invite-head b { font-size: .9rem; } .fz-invite-head small { font-size: .74rem; color: var(--fz-muted); }
.fz-invite-link input { width: 100%; font-size: .76rem; font-family: ui-monospace, monospace; padding: .55rem .7rem; border-radius: .65rem; border: 1px dashed var(--fz-border); background: var(--fz-card); color: var(--fz-muted); }
.fz-invite-actions { display: flex; flex-wrap: wrap; gap: .45rem; } .fz-invite-actions > * { flex: 1 1 auto; }
.fz-howto { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.fz-howto div { display: flex; flex-direction: column; gap: .2rem; padding: .85rem; border-radius: var(--fz-radius); border: 1px dashed var(--fz-border); }
.fz-howto span { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 99px; background: rgb(16 185 129 / .14); color: var(--fz-success); font-weight: 800; font-size: .78rem; margin-bottom: .25rem; }
.fz-howto b { font-size: .85rem; } .fz-howto small { font-size: .75rem; color: var(--fz-muted); }

/* ---------- Registro rápido: categoría automática ---------- */
.fz-note-wrap { position: relative; display: block; }
.fz-note-wrap > svg { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); width: 1rem; height: 1rem; color: var(--fz-muted); pointer-events: none; }
.fz-note-wrap .fz-note { padding-left: 2.4rem; }
.fz-qe-h-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.fz-auto-chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .7rem; font-weight: 700; padding: .25rem .6rem; border-radius: 99px; background: rgb(14 165 233 / .14); color: var(--fz-sky); animation: fz-pop .25s ease-out; }
.fz-auto-chip svg { width: .8rem; height: .8rem; }
.fz-cat.is-auto { box-shadow: 0 0 0 2px var(--fz-sky) inset !important; }
@keyframes fz-pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Importar extracto ---------- */
.fz-imp { display: flex; flex-direction: column; gap: 1rem; }
.fz-stepper { list-style: none; margin: 0; padding: 0; display: flex; gap: .4rem; counter-reset: s; }
.fz-stepper li { flex: 1; display: flex; align-items: center; gap: .5rem; padding: .55rem .7rem; border-radius: .8rem; background: var(--fz-track); font-size: .8rem; font-weight: 600; color: var(--fz-muted); }
.fz-stepper li span { display: grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 99px; background: var(--fz-card); font-size: .72rem; font-weight: 800; flex: none; }
.fz-stepper li span svg { width: .85rem; height: .85rem; }
.fz-stepper li.is-on { background: rgb(16 185 129 / .12); color: inherit; } .fz-stepper li.is-on span { background: var(--fz-green); color: #04130d; }
.fz-stepper li.is-done span { background: rgb(16 185 129 / .2); color: var(--fz-success); }
.fz-imp-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.fz-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; padding: 1.6rem 1rem; border-radius: 1rem; border: 2px dashed var(--fz-border); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.fz-drop:hover, .fz-drop.is-over { border-color: var(--fz-green); background: rgb(16 185 129 / .06); }
.fz-drop svg { width: 2rem; height: 2rem; color: var(--fz-green); } .fz-drop b { font-size: .9rem; word-break: break-all; } .fz-drop small { font-size: .75rem; color: var(--fz-muted); }
.fz-paste summary { cursor: pointer; font-size: .82rem; font-weight: 600; color: var(--fz-success); }
.fz-paste textarea { margin-top: .5rem; width: 100%; font: .78rem/1.5 ui-monospace, monospace; padding: .7rem; border-radius: .8rem; border: 1px solid var(--fz-border); background: var(--fz-track); color: inherit; resize: vertical; }
.fz-imp-steps { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .5rem; font-size: .84rem; line-height: 1.45; }
.fz-imp-steps li::marker { color: var(--fz-success); font-weight: 800; }
.fz-imp-promise { display: flex; flex-direction: column; gap: .55rem; padding-top: .8rem; border-top: 1px solid var(--fz-border); }
.fz-imp-promise div { display: flex; gap: .55rem; font-size: .8rem; line-height: 1.45; color: var(--fz-muted); }
.fz-imp-promise svg { width: 1.1rem; height: 1.1rem; color: var(--fz-sky); flex: none; margin-top: .1rem; } .fz-imp-promise b { color: var(--fz-fg, inherit); }
.fz-imp-review { padding: .9rem; gap: .7rem; }
.fz-imp-toolbar .fz-seg-sm { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.fz-imp-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.fz-imp-rows li { display: grid; grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .65rem .2rem; border-top: 1px solid var(--fz-border); }
.fz-imp-rows li:first-child { border-top: 0; }
.fz-imp-rows li.is-off { opacity: .45; } .fz-imp-rows li.is-dup .fz-imp-main b { text-decoration: line-through; }
.fz-check { display: grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: .45rem; border: 1.5px solid var(--fz-border); background: transparent; color: transparent; cursor: pointer; }
.fz-check.is-on { background: var(--fz-green); border-color: var(--fz-green); color: #04130d; } .fz-check svg { width: .9rem; height: .9rem; }
.fz-imp-main { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.fz-imp-main b { font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .fz-imp-main small { font-size: .72rem; color: var(--fz-muted); }
.fz-imp-cat { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .1rem .45rem; min-width: 0; }
.fz-imp-cat select { width: 100%; font-size: .8rem; padding: .4rem .5rem; border-radius: .6rem; border: 1px solid var(--fz-border); background: var(--fz-card); color: inherit; }
.fz-imp-cat select.is-missing { border-color: rgb(244 63 94 / .5); color: var(--fz-danger); }
.fz-imp-src { grid-column: 2; display: flex; align-items: center; gap: .2rem; font-size: .66rem; color: var(--fz-sky); }
.fz-imp-src svg { width: .7rem; height: .7rem; }
.fz-imp-amt { font-size: .88rem; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.fz-imp-none { justify-content: center; color: var(--fz-muted); font-size: .85rem; padding: 1.5rem !important; display: flex !important; }
.fz-sticky-actions { position: sticky; bottom: .75rem; z-index: 5; display: flex; justify-content: flex-end; align-items: center; gap: .6rem; padding: .6rem; border-radius: 1.1rem; background: color-mix(in srgb, var(--fz-card) 88%, transparent); backdrop-filter: blur(12px); border: 1px solid var(--fz-border); box-shadow: 0 12px 30px -15px rgb(0 0 0 / .5); }
.fz-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .7rem; padding: 2rem 1.2rem; border-radius: var(--fz-radius); background: radial-gradient(30rem 14rem at 50% 0%, rgb(16 185 129 / .14), transparent 70%), var(--fz-card); border: 1px solid var(--fz-border); }
.fz-done h2 { font-size: 1.4rem; font-weight: 800; letter-spacing: -.03em; } .fz-done > p { color: var(--fz-muted); font-size: .88rem; max-width: 46ch; margin: 0; }
.fz-done-ic svg { width: 3.2rem; height: 3.2rem; color: var(--fz-green); }
.fz-done-top { width: 100%; max-width: 28rem; display: flex; flex-direction: column; gap: .5rem; text-align: left; margin-top: .4rem; }
.fz-done-row { display: grid; grid-template-columns: minmax(0, 9rem) 1fr auto; align-items: center; gap: .6rem; font-size: .82rem; }
.fz-done-row > span { display: flex; align-items: center; gap: .4rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fz-done-row .fz-people-bar { max-width: none; } .fz-done-row b { font-variant-numeric: tabular-nums; }
.fz-done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: .6rem; }

/* ---------- Guía de inicio ---------- */
.fz-ob { max-width: 40rem; margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: 1.2rem; padding-bottom: 6rem; }
.fz-ob-progress { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; font-size: .76rem; font-weight: 700; color: var(--fz-muted); }
.fz-ob-progress div { height: .4rem; border-radius: 99px; background: var(--fz-track); overflow: hidden; }
.fz-ob-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--fz-green), #34d399); transition: width .4s ease; }
.fz-ob-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .8rem; padding: 2rem 1.2rem; border-radius: 1.4rem; background: radial-gradient(36rem 18rem at 50% -10%, rgb(16 185 129 / .18), transparent 70%), var(--fz-card); border: 1px solid var(--fz-border); box-shadow: var(--fz-shadow); }
.fz-ob-logo img { border-radius: 1rem; box-shadow: 0 12px 30px -12px rgb(16 185 129 / .6); }
.fz-ob h1 { font-size: clamp(1.45rem, 4.5vw, 1.9rem); line-height: 1.15; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
.fz-ob-hero > p, .fz-ob-step > p { color: var(--fz-muted); font-size: .93rem; line-height: 1.55; max-width: 48ch; margin: 0; }
.fz-ob-benefits { list-style: none; margin: .4rem 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; width: 100%; max-width: 26rem; text-align: left; }
.fz-ob-benefits li { display: flex; gap: .75rem; align-items: center; padding: .7rem .85rem; border-radius: .95rem; background: var(--fz-track); }
.fz-ob-benefits svg { width: 1.3rem; height: 1.3rem; color: var(--fz-green); flex: none; }
.fz-ob-benefits div { display: flex; flex-direction: column; } .fz-ob-benefits b { font-size: .87rem; } .fz-ob-benefits small { font-size: .75rem; color: var(--fz-muted); }
.fz-ob-fine { font-size: .74rem; color: var(--fz-muted); }
.fz-ob-step { display: flex; flex-direction: column; gap: .9rem; }
.fz-ob-rows { display: flex; flex-direction: column; gap: .55rem; }
.fz-ob-row { display: flex; align-items: flex-end; gap: .55rem; padding: .75rem; border-radius: 1rem; background: var(--fz-card); border: 1px solid var(--fz-border); flex-wrap: wrap; }
.fz-ob-row-name { flex: 1 1 8rem; font-weight: 700; font-size: .92rem; align-self: center; }
.fz-ob-f { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.fz-ob-f > span:first-child { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fz-muted); }
.fz-ob-f input, .fz-ob-debt-head input { width: 100%; font-size: 1rem; font-weight: 600; padding: .6rem .7rem; border-radius: .7rem; border: 1px solid var(--fz-border); background: var(--fz-track); color: inherit; font-variant-numeric: tabular-nums; }
.fz-ob-f select { width: 100%; font-size: 1rem; font-weight: 600; padding: .6rem .7rem; border-radius: .7rem; border: 1px solid var(--fz-border); background: var(--fz-track); color: inherit; }
.fz-ob-f-freq { flex: 1 1 9rem; }
.fz-ob-f select:focus, .fz-ob-f input:focus, .fz-ob-debt-head input:focus { outline: 2px solid var(--fz-green); outline-offset: 0; border-color: transparent; }
.fz-ob-f-name { flex: 1 1 9rem; } .fz-ob-f-money { flex: 1 1 9rem; } .fz-ob-f-day { flex: 0 0 5.2rem; }
.fz-ob-money { position: relative; display: block; } .fz-ob-money i { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--fz-muted); font-weight: 600; }
.fz-ob-money input { padding-left: 1.5rem; }
.fz-ob-x { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: .7rem; border: 0; background: transparent; color: var(--fz-muted); cursor: pointer; flex: none; }
.fz-ob-x:hover { background: var(--fz-track); color: var(--fz-danger); } .fz-ob-x svg { width: 1rem; height: 1rem; }
.fz-ob-banks { display: flex; flex-wrap: wrap; gap: .45rem; }
.fz-ob-banks button { display: inline-flex; align-items: center; gap: .35rem; padding: .6rem .95rem; border-radius: 99px; border: 1.5px solid var(--fz-border); background: var(--fz-card); font-weight: 600; font-size: .86rem; color: inherit; cursor: pointer; min-height: 2.6rem; transition: all .15s; }
.fz-ob-banks button svg { width: .95rem; height: .95rem; }
.fz-ob-banks button.is-on { border-color: var(--fz-green); background: rgb(16 185 129 / .1); color: var(--fz-success); }
.fz-ob-fixed { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.fz-ob-fx { border-radius: 1rem; border: 1.5px solid var(--fz-border); background: var(--fz-card); overflow: hidden; transition: border-color .15s; }
.fz-ob-fx.is-on { border-color: color-mix(in srgb, var(--fz-sky) 55%, transparent); grid-column: span 1; }
.fz-ob-fx-head { width: 100%; display: flex; align-items: center; gap: .6rem; padding: .7rem .75rem; border: 0; background: none; color: inherit; cursor: pointer; text-align: left; }
.fz-ob-fx-head b { flex: 1; font-size: .84rem; line-height: 1.3; }
.fz-ob-fx-ic { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .6rem; background: var(--fz-track); color: var(--fz-muted); flex: none; }
.fz-ob-fx.is-on .fz-ob-fx-ic { background: rgb(14 165 233 / .15); color: var(--fz-sky); }
.fz-ob-fx-ic svg { width: 1.05rem; height: 1.05rem; }
.fz-ob-tick { display: grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 99px; border: 1.5px solid var(--fz-border); flex: none; }
.fz-ob-fx.is-on .fz-ob-tick { background: var(--fz-sky); border-color: var(--fz-sky); color: #fff; } .fz-ob-tick svg { width: .8rem; height: .8rem; }
.fz-ob-fx-body { display: flex; gap: .45rem; padding: 0 .75rem .75rem; }
.fz-ob-fx-body .fz-ob-f-money { flex: 1; } .fz-ob-fx-body .fz-ob-f-day { flex: 0 0 4.2rem; }
.fz-ob-debts { display: flex; flex-direction: column; gap: .6rem; }
.fz-ob-debt { display: flex; flex-direction: column; gap: .6rem; padding: .85rem; border-radius: 1rem; background: var(--fz-card); border: 1px solid var(--fz-border); border-left: 3px solid var(--fz-amber); }
.fz-ob-debt-head { display: flex; gap: .4rem; } .fz-ob-debt-head input { font-weight: 700; background: transparent; border-color: transparent; padding-left: .2rem; }
.fz-ob-debt-head input:hover { border-color: var(--fz-border); }
.fz-ob-debt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.fz-ob-hint { font-size: .72rem; color: var(--fz-muted); line-height: 1.4; }
.fz-ob-nodebt { display: flex; align-items: center; gap: .7rem; padding: 1rem; border-radius: 1rem; border: 1px dashed var(--fz-border); color: var(--fz-muted); font-size: .86rem; }
.fz-ob-nodebt svg { width: 1.4rem; height: 1.4rem; color: var(--fz-green); flex: none; } .fz-ob-nodebt p { margin: 0; }
.fz-ob-sheet { width: 100%; max-width: 24rem; display: flex; flex-direction: column; border-radius: 1rem; background: var(--fz-track); padding: .4rem 1rem; margin-top: .3rem; }
.fz-ob-sheet div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; font-size: .9rem; border-top: 1px solid var(--fz-border); }
.fz-ob-sheet div:first-child { border-top: 0; } .fz-ob-sheet span { color: var(--fz-muted); } .fz-ob-sheet b { font-variant-numeric: tabular-nums; }
.fz-ob-sheet .is-total { font-size: 1.05rem; border-top: 1.5px solid var(--fz-border); } .fz-ob-sheet .is-total span { color: inherit; font-weight: 700; }
.fz-ob-insights { width: 100%; max-width: 26rem; display: flex; flex-direction: column; gap: .45rem; text-align: left; }
.fz-ob-insight { display: flex; gap: .55rem; align-items: flex-start; font-size: .84rem; line-height: 1.45; margin: 0; padding: .65rem .8rem; border-radius: .85rem; background: rgb(14 165 233 / .08); }
.fz-ob-insight svg { width: 1.05rem; height: 1.05rem; color: var(--fz-sky); flex: none; margin-top: .12rem; }
.fz-ob-insight.is-danger { background: rgb(244 63 94 / .1); } .fz-ob-insight.is-danger svg { color: var(--fz-rose); }
.fz-ob-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 30; width: min(40rem, calc(100% - 2rem)); display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .6rem .6rem .6rem 1rem; border-radius: 1.2rem; background: color-mix(in srgb, var(--fz-card) 90%, transparent); backdrop-filter: blur(14px); border: 1px solid var(--fz-border); box-shadow: 0 18px 40px -18px rgb(0 0 0 / .6); }
.fz-ob-live { display: flex; flex-direction: column; } .fz-ob-live span { font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fz-muted); }
.fz-ob-live b { font-size: 1.05rem; font-variant-numeric: tabular-nums; letter-spacing: -.02em; } .fz-ob-live small { font-size: .7rem; color: var(--fz-muted); font-weight: 600; margin-left: .15rem; }
.fz-ob-nav { display: flex; align-items: center; gap: .3rem; }

/* ---------- Celular ---------- */
@media (max-width: 1023px) {
    .fz-rem-grid, .fz-home-grid, .fz-imp-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
    .fz-rem-hero { grid-template-columns: auto minmax(0, 1fr); padding: 1rem; }
    .fz-rem-hero-cta { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
    .fz-rem-hero-cta .fz-btn-primary, .fz-rem-hero-cta .fz-btn-soft { flex: 1; }
    .fz-card-pane { padding: 1rem; }
    .fz-nudges { grid-template-columns: minmax(0, 1fr); }
    .fz-nudge { grid-template-columns: auto minmax(0, 1fr) auto; }
    .fz-nudge-cta { grid-column: 2; justify-self: start; }
    .fz-nudge-x { grid-row: 1; grid-column: 3; }
    .fz-howto { grid-template-columns: minmax(0, 1fr); }
    .fz-people-actions { width: 100%; margin-left: 3.45rem; }
    .fz-role-cards { grid-template-columns: minmax(0, 1fr); }
    .fz-stepper li { font-size: 0; justify-content: center; } .fz-stepper li.is-on { font-size: .78rem; flex: 2; }
    .fz-imp-rows li { grid-template-columns: auto minmax(0, 1fr) auto; }
    .fz-imp-cat { grid-column: 2 / -1; }
    .fz-sticky-actions { bottom: calc(5rem + env(safe-area-inset-bottom)); }
    .fz-ob-fixed { grid-template-columns: minmax(0, 1fr); }
    .fz-ob-debt-grid { grid-template-columns: 1fr 1fr; }
    .fz-ob-hero { padding: 1.5rem 1rem; }
    .fz-ob-bar { bottom: max(.75rem, env(safe-area-inset-bottom)); width: calc(100% - 1.5rem); }
}
@media (prefers-reduced-motion: reduce) {
    .fz-rem-hero.is-on .fz-rem-bell svg, .fz-auto-chip { animation: none; }
    .fz-ob-progress i, .fz-switch, .fz-switch i { transition: none; }
}

/* Siguientes pasos en el celular: carrusel horizontal para no empujar el panorama */
@media (max-width: 767px) {
    .fz-nudges { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .55rem; margin-inline: -1rem; padding: 0 1rem .2rem; scrollbar-width: none; }
    .fz-nudges::-webkit-scrollbar { display: none; }
    .fz-nudge { flex: 0 0 86%; scroll-snap-align: start; grid-template-columns: auto minmax(0, 1fr) auto; padding: .65rem .7rem; }
    .fz-nudge:only-child { flex-basis: 100%; }
}

/* ---------- Mi cuenta ---------- */
.fz-acc { display: flex; flex-direction: column; gap: 1rem; }
.fz-acc-id { flex-direction: row; align-items: center; flex-wrap: wrap; gap: .9rem; }
.fz-acc-id-body { flex: 1 1 14rem; display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; min-width: 0; }
.fz-acc-id-body b { font-size: 1.05rem; } .fz-acc-id-body small { color: var(--fz-muted); font-size: .82rem; overflow-wrap: anywhere; }
.fz-acc-id-body .fz-chip { margin-top: .2rem; font-size: .68rem; }
.fz-acc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: stretch; }
.fz-acc-counts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
.fz-acc-counts li { display: flex; flex-direction: column; padding: .55rem .65rem; border-radius: .75rem; background: var(--fz-track); }
.fz-acc-counts b { font-size: 1rem; font-variant-numeric: tabular-nums; } .fz-acc-counts span { font-size: .7rem; color: var(--fz-muted); }
.fz-acc-grid .fz-btn-primary { align-self: flex-start; margin-top: auto; }
.fz-acc-promises { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.fz-acc-promises li { display: flex; gap: .6rem; align-items: flex-start; font-size: .84rem; line-height: 1.45; color: var(--fz-muted); }
.fz-acc-promises svg { width: 1.1rem; height: 1.1rem; color: var(--fz-green); flex: none; margin-top: .1rem; } .fz-acc-promises b { color: var(--fz-fg, inherit); }
.fz-acc-links { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: auto; padding-top: .7rem; border-top: 1px solid var(--fz-border); font-size: .82rem; font-weight: 600; }
.fz-acc-links a { color: var(--fz-success); text-decoration: none; } .fz-acc-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fz-acc-danger { border-color: rgb(244 63 94 / .28); background: linear-gradient(120deg, rgb(244 63 94 / .06), transparent 55%), var(--fz-card); }
.fz-btn-danger { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; font-weight: 700; font-size: .88rem; border-radius: .85rem; padding: .7rem 1.1rem; min-height: 2.75rem; cursor: pointer; border: 1px solid rgb(244 63 94 / .45); background: rgb(244 63 94 / .12); color: var(--fz-danger); white-space: nowrap; }
.fz-btn-danger:hover { background: rgb(244 63 94 / .2); } .fz-btn-danger svg { width: 1.05rem; height: 1.05rem; }
.fz-btn-danger[type=submit] { background: var(--fz-rose); color: #fff; border-color: transparent; }
.fz-acc-confirm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.fz-acc-loss { padding: .85rem 1rem; border-radius: .9rem; background: rgb(244 63 94 / .08); font-size: .85rem; }
.fz-acc-loss ul { margin: .4rem 0; padding-left: 1.1rem; line-height: 1.6; } .fz-acc-loss small { color: var(--fz-muted); }
.fz-acc-form { display: flex; flex-direction: column; gap: .8rem; }
.fz-acc-err { color: var(--fz-danger); font-size: .76rem; font-weight: 600; }
.fz-acc-actions { display: flex; gap: .5rem; flex-wrap: wrap; } .fz-acc-actions > * { flex: 1 1 auto; }
.fz-legal-foot { display: flex; justify-content: center; flex-wrap: wrap; gap: .3rem .9rem; margin-top: 1rem; font-size: .76rem; }
.fz-legal-foot a { color: var(--fz-muted); text-decoration: none; } .fz-legal-foot a:hover { color: inherit; }
.fz-legal-ok { margin-bottom: 1rem; padding: .7rem .9rem; border-radius: .8rem; background: rgb(16 185 129 / .12); color: var(--fz-success); font-size: .84rem; font-weight: 600; text-align: center; }
@media (max-width: 767px) {
    .fz-acc-grid, .fz-acc-confirm { grid-template-columns: minmax(0, 1fr); }
    .fz-acc-id .fz-btn-soft { width: 100%; }
    .fz-acc-grid .fz-btn-primary { align-self: stretch; }
}

/* ---------- Asistente IA ---------- */
.fz-ai { display: flex; flex-direction: column; gap: 1rem; max-width: 52rem; }
.fz-ai-composer { position: relative; border-radius: 1.2rem; padding: 2px; background: linear-gradient(120deg, rgb(16 185 129 / .55), rgb(14 165 233 / .45), rgb(168 85 247 / .45)); box-shadow: 0 20px 50px -30px rgb(16 185 129 / .7); }
.fz-ai-composer textarea { display: block; width: 100%; border: 0; border-radius: 1.1rem 1.1rem 0 0; padding: 1rem 1.1rem; background: var(--fz-card); color: inherit; font: 500 1rem/1.55 inherit; resize: vertical; min-height: 7.5rem; }
.fz-ai-composer textarea:focus { outline: none; }
.fz-ai-composer textarea::placeholder { color: var(--fz-muted); font-weight: 400; }
.fz-ai-bar { display: flex; align-items: center; gap: .6rem; padding: .55rem .6rem .6rem; background: var(--fz-card); border-radius: 0 0 1.1rem 1.1rem; border-top: 1px solid var(--fz-border); }
.fz-ai-left { margin-left: auto; font-size: .72rem; color: var(--fz-muted); white-space: nowrap; }
.fz-ai-mic { display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .8rem; border-radius: 99px; border: 1px solid var(--fz-border); background: var(--fz-track); color: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; min-height: 2.5rem; }
.fz-ai-mic svg { width: 1rem; height: 1rem; }
.fz-ai-mic.is-on { background: rgb(244 63 94 / .15); border-color: rgb(244 63 94 / .5); color: var(--fz-danger); animation: fz-pulse 1.2s ease-in-out infinite; }
@keyframes fz-pulse { 50% { box-shadow: 0 0 0 6px rgb(244 63 94 / .12); } }
.fz-ai-error { display: flex; gap: .5rem; align-items: flex-start; margin: 0; padding: .75rem .9rem; border-radius: .9rem; background: rgb(244 63 94 / .1); color: var(--fz-danger); font-size: .86rem; font-weight: 600; }
.fz-ai-error svg { width: 1.1rem; height: 1.1rem; flex: none; margin-top: .1rem; }
.fz-ai-skeleton { flex-direction: column; gap: .6rem; }
.fz-ai-skeleton span { height: 5.5rem; border-radius: 1rem; background: linear-gradient(90deg, var(--fz-track) 25%, color-mix(in srgb, var(--fz-track) 40%, var(--fz-card)) 50%, var(--fz-track) 75%); background-size: 200% 100%; animation: fz-shimmer 1.2s linear infinite; }
.fz-ai-skeleton span:first-child { height: 2.6rem; width: 70%; }
@keyframes fz-shimmer { to { background-position: -200% 0; } }
.fz-ai-examples { display: flex; flex-direction: column; gap: .6rem; }
.fz-ai-examples > div { display: flex; flex-wrap: wrap; gap: .45rem; }
.fz-ai-examples button { text-align: left; font-size: .82rem; line-height: 1.35; padding: .55rem .8rem; border-radius: .85rem; border: 1px dashed var(--fz-border); background: transparent; color: inherit; cursor: pointer; }
.fz-ai-examples button:hover { border-style: solid; border-color: var(--fz-green); background: rgb(16 185 129 / .06); }
.fz-ai-can { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.fz-ai-can li { display: flex; flex-direction: column; gap: .2rem; padding: .8rem; border-radius: .95rem; background: var(--fz-card); border: 1px solid var(--fz-border); }
.fz-ai-can b { font-size: .84rem; } .fz-ai-can small { font-size: .76rem; color: var(--fz-muted); line-height: 1.4; }
.fz-ai-result { display: flex; flex-direction: column; gap: .8rem; }
.fz-ai-say { display: flex; gap: .7rem; align-items: flex-start; }
.fz-ai-say p { margin: 0; padding: .7rem .9rem; border-radius: .3rem 1rem 1rem 1rem; background: var(--fz-card); border: 1px solid var(--fz-border); font-size: .92rem; line-height: 1.5; }
.fz-ai-orb { flex: none; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 99px; background: linear-gradient(135deg, #10b981, #0ea5e9 60%, #a855f7); color: #fff; box-shadow: 0 6px 18px -6px rgb(14 165 233 / .7); }
.fz-ai-orb svg { width: 1.05rem; height: 1.05rem; }
.fz-ai-questions { padding: .75rem .9rem; border-radius: .9rem; background: rgb(245 158 11 / .08); border: 1px solid rgb(245 158 11 / .3); font-size: .85rem; }
.fz-ai-questions ul { margin: .3rem 0; padding-left: 1.1rem; line-height: 1.55; } .fz-ai-questions small { color: var(--fz-muted); }
.fz-ai-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.fz-ai-item { --t: var(--fz-green); display: flex; flex-direction: column; gap: .55rem; padding: .85rem; border-radius: 1rem; background: var(--fz-card); border: 1px solid var(--fz-border); border-left: 3px solid var(--t); transition: opacity .15s; }
.fz-ai-item.fz-tone-rose { --t: var(--fz-rose); } .fz-ai-item.fz-tone-amber { --t: var(--fz-amber); } .fz-ai-item.fz-tone-sky { --t: var(--fz-sky); } .fz-ai-item.fz-tone-green { --t: var(--fz-green); }
.fz-ai-item.is-off { opacity: .55; }
.fz-ai-item header { display: flex; align-items: center; gap: .6rem; }
.fz-ai-kind { display: inline-flex; align-items: center; gap: .3rem; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .25rem .55rem; border-radius: 99px; background: color-mix(in srgb, var(--t) 14%, transparent); color: var(--t); white-space: nowrap; }
.fz-ai-kind svg { width: .85rem; height: .85rem; }
.fz-ai-amount { margin-left: auto; display: flex; align-items: center; gap: .15rem; }
.fz-ai-amount i { font-style: normal; color: var(--fz-muted); font-weight: 700; }
.fz-ai-amount input { width: 8.5rem; text-align: right; font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; border: 1px solid transparent; border-radius: .6rem; padding: .25rem .4rem; background: transparent; color: inherit; }
.fz-ai-amount input:hover, .fz-ai-amount input:focus { border-color: var(--fz-border); background: var(--fz-track); outline: none; }
.fz-ai-desc { width: 100%; font-size: .95rem; font-weight: 600; border: 1px solid transparent; border-radius: .6rem; padding: .3rem .4rem; background: transparent; color: inherit; }
.fz-ai-desc:hover, .fz-ai-desc:focus { border-color: var(--fz-border); background: var(--fz-track); outline: none; }
.fz-ai-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .5rem; }
.fz-ai-fields label { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.fz-ai-fields label > span { display: flex; align-items: center; gap: .35rem; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fz-muted); }
.fz-ai-fields em { font-style: normal; font-size: .6rem; padding: .05rem .35rem; border-radius: 99px; background: rgb(14 165 233 / .15); color: var(--fz-sky); letter-spacing: .02em; }
.fz-ai-fields select, .fz-ai-fields input { width: 100%; font-size: .84rem; padding: .45rem .55rem; border-radius: .6rem; border: 1px solid var(--fz-border); background: var(--fz-track); color: inherit; color-scheme: dark light; }
.fz-ai-fields select.is-missing { border-color: rgb(244 63 94 / .55); }
.fz-ai-meta { grid-column: 1 / -1; margin: 0; font-size: .8rem; color: var(--fz-muted); }
.fz-ai-note, .fz-ai-problem { display: flex; gap: .4rem; align-items: flex-start; margin: 0; font-size: .78rem; line-height: 1.4; }
.fz-ai-note { color: var(--fz-muted); } .fz-ai-note svg { color: var(--fz-amber); }
.fz-ai-problem { color: var(--fz-danger); font-weight: 600; }
.fz-ai-note svg, .fz-ai-problem svg { width: .95rem; height: .95rem; flex: none; margin-top: .05rem; }
.fz-ai-done-list { list-style: none; margin: .2rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; text-align: left; font-size: .88rem; }
.fz-ai-done-list li { display: flex; gap: .45rem; align-items: flex-start; } .fz-ai-done-list svg { width: 1rem; height: 1rem; color: var(--fz-green); flex: none; margin-top: .15rem; }
.fz-ai-privacy { display: flex; gap: .45rem; align-items: flex-start; margin: .4rem 0 0; font-size: .74rem; line-height: 1.45; color: var(--fz-muted); }
.fz-ai-privacy svg { width: .9rem; height: .9rem; flex: none; margin-top: .1rem; }
.fz-ai-entry { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 700; padding: .4rem .75rem; border-radius: 99px; text-decoration: none; color: #fff; background: linear-gradient(120deg, #10b981, #0ea5e9 60%, #a855f7); box-shadow: 0 6px 16px -8px rgb(14 165 233 / .8); white-space: nowrap; }
.fz-ai-entry svg { width: .9rem; height: .9rem; }
@media (max-width: 767px) {
    .fz-ai-can { grid-template-columns: minmax(0, 1fr); }
    .fz-ai-fields { grid-template-columns: 1fr 1fr; }
    .fz-ai-amount input { width: 7.2rem; font-size: 1.1rem; }
    .fz-ai-left { display: none; }
    .fz-ai-bar .fz-btn-primary { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { .fz-ai-skeleton span, .fz-ai-mic.is-on { animation: none; } }

/* ---------- Asistente: chat ---------- */
.fz-chat { position: relative; display: flex; flex-direction: column; gap: .9rem; max-width: 50rem; margin: -1rem auto 0; width: 100%; min-height: calc(100dvh - 9rem); }
.fz-chat > .fz-thread { flex: 1; }
.fz-chat-top { position: sticky; top: 4rem; z-index: 8; display: flex; align-items: center; gap: .7rem; padding: .55rem .6rem; border-radius: 1.1rem; background: color-mix(in srgb, var(--fz-card) 72%, transparent); backdrop-filter: blur(14px); border: 1px solid color-mix(in srgb, var(--fz-border) 60%, transparent); }
.fz-chat-title { min-width: 0; flex: 1; }
.fz-chat-title h1 { margin: 0; font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.fz-chat-title small { display: block; font-size: .76rem; color: var(--fz-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fz-chat-tools { display: flex; gap: .35rem; }
.fz-icon-btn { position: relative; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .85rem; border: 1px solid var(--fz-border); background: var(--fz-card); color: inherit; cursor: pointer; }
.fz-icon-btn svg { width: 1.15rem; height: 1.15rem; }
.fz-icon-btn:hover { border-color: color-mix(in srgb, var(--fz-green) 50%, var(--fz-border)); }
.fz-icon-btn.is-accent { background: linear-gradient(135deg, #10b981, #0ea5e9); border-color: transparent; color: #fff; }
.fz-icon-btn.is-sm { width: 2rem; height: 2rem; border-radius: .65rem; background: transparent; border-color: transparent; color: var(--fz-muted); }
.fz-icon-btn.is-sm:hover { color: var(--fz-danger); }
.fz-icon-btn.is-sm svg { width: 1rem; height: 1rem; }
.fz-dot { position: absolute; top: -.3rem; right: -.3rem; min-width: 1.1rem; height: 1.1rem; padding: 0 .25rem; border-radius: 99px; background: var(--fz-amber); color: #111; font: 800 .62rem/1.1rem inherit; font-style: normal; text-align: center; }
.fz-ai-orb.is-lg { width: 2.5rem; height: 2.5rem; } .fz-ai-orb.is-lg svg { width: 1.2rem; height: 1.2rem; }
.fz-ai-orb.is-xl { width: 3.6rem; height: 3.6rem; box-shadow: 0 14px 40px -12px rgb(14 165 233 / .8); } .fz-ai-orb.is-xl svg { width: 1.7rem; height: 1.7rem; }
.fz-ai-orb.is-busy { animation: fz-orb 1.6s ease-in-out infinite; }
@keyframes fz-orb { 50% { transform: scale(.9); filter: hue-rotate(40deg); } }

.fz-chat-panel { position: absolute; top: 4.4rem; right: 0; z-index: 20; width: min(24rem, 100%); max-height: 70vh; overflow: auto; padding: 1rem; border-radius: 1.1rem; background: var(--fz-card); border: 1px solid var(--fz-border); box-shadow: 0 24px 60px -20px rgb(0 0 0 / .6); }
.fz-chat-panel h2 { margin: 0 0 .5rem; font-size: .95rem; font-weight: 800; }
.fz-chat-panel h3 { margin: .8rem 0 .3rem; font-size: .66rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--fz-muted); }
.fz-chat-note { margin: 0 0 .4rem; font-size: .78rem; line-height: 1.45; color: var(--fz-muted); }
.fz-chat-empty { margin: .4rem 0; font-size: .82rem; color: var(--fz-muted); }
.fz-chat-row { display: flex; align-items: center; gap: .3rem; border-radius: .75rem; }
.fz-chat-row > button:first-child { flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: left; padding: .55rem .6rem; border: 0; background: none; color: inherit; cursor: pointer; border-radius: .75rem; }
.fz-chat-row > button:first-child:hover, .fz-chat-row.is-on > button:first-child { background: var(--fz-track); }
.fz-chat-row b { font-size: .84rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .fz-chat-row small { font-size: .7rem; color: var(--fz-muted); }
.fz-mem { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.fz-mem li { display: flex; align-items: flex-start; gap: .3rem; padding: .45rem .55rem; border-radius: .7rem; background: var(--fz-track); font-size: .82rem; line-height: 1.4; }
.fz-mem li span { flex: 1; padding-top: .2rem; }
.fz-btn-link.is-danger { color: var(--fz-danger); margin-top: .6rem; }

.fz-chat-consent, .fz-chat-hello { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .75rem; padding: 1.6rem 1rem 1rem; }
.fz-chat-consent { border-radius: 1.4rem; background: radial-gradient(28rem 14rem at 50% 0%, rgb(14 165 233 / .14), transparent 70%), var(--fz-card); border: 1px solid var(--fz-border); }
.fz-chat-consent h2, .fz-chat-hello h2 { margin: .2rem 0 0; font-size: 1.4rem; font-weight: 800; letter-spacing: -.03em; }
.fz-chat-consent > p, .fz-chat-hello > p { margin: 0; max-width: 44ch; font-size: .9rem; line-height: 1.5; color: var(--fz-muted); }
.fz-chat-consent ul { list-style: none; margin: .3rem 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; text-align: left; max-width: 30rem; }
.fz-chat-consent li { display: flex; gap: .6rem; font-size: .83rem; line-height: 1.45; color: var(--fz-muted); }
.fz-chat-consent li b { color: var(--fz-text, inherit); font-weight: 650; }
.fz-chat-consent li svg { width: 1.1rem; height: 1.1rem; flex: none; margin-top: .1rem; color: var(--fz-green); }
.fz-chat-consent small a { color: var(--fz-muted); font-size: .78rem; }
.fz-suggest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; width: 100%; margin-top: .6rem; }
.fz-suggest button { display: flex; align-items: flex-start; gap: .55rem; text-align: left; padding: .75rem .8rem; border-radius: 1rem; border: 1px solid var(--fz-border); background: var(--fz-card); color: inherit; font-size: .84rem; line-height: 1.35; font-weight: 550; cursor: pointer; transition: border-color .15s, transform .15s; }
.fz-suggest button:hover { border-color: color-mix(in srgb, var(--fz-green) 55%, var(--fz-border)); transform: translateY(-1px); }
.fz-suggest svg { width: 1.05rem; height: 1.05rem; flex: none; margin-top: .05rem; color: var(--fz-sky); }

.fz-thread { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.fz-msg { display: flex; gap: .6rem; align-items: flex-start; }
.fz-msg.is-user { justify-content: flex-end; }
.fz-bubble { max-width: 85%; padding: .65rem .9rem; border-radius: 1.1rem 1.1rem .3rem 1.1rem; background: linear-gradient(135deg, rgb(16 185 129 / .22), rgb(14 165 233 / .18)); border: 1px solid rgb(16 185 129 / .25); font-size: .92rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.fz-msg-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .5rem; }
.fz-msg.is-error .fz-md { color: var(--fz-danger); }
.fz-used { display: flex; align-items: center; gap: .3rem; margin: 0; font-size: .72rem; color: var(--fz-muted); }
.fz-used svg { width: .85rem; height: .85rem; color: var(--fz-green); }
/* Fuentes de la búsqueda web, debajo de la respuesta */
.fz-sources { margin-top: .5rem; padding-top: .45rem; border-top: 1px dashed var(--fz-border); font-size: .74rem; }
.fz-sources p { margin: 0 0 .2rem; font-size: .66rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--fz-muted); }
.fz-sources ol { margin: 0; padding-left: 1.1rem; display: grid; gap: .15rem; }
.fz-sources a { color: #0ea5e9; text-decoration: none; overflow-wrap: anywhere; }
.fz-sources a:hover { text-decoration: underline; }
.fz-sources span { margin-left: .3rem; color: var(--fz-muted); }
.fz-md { font-size: .93rem; line-height: 1.6; overflow-wrap: anywhere; }
.fz-md > :first-child { margin-top: 0; } .fz-md > :last-child { margin-bottom: 0; }
.fz-md p { margin: 0 0 .65rem; }
.fz-md ul, .fz-md ol { margin: 0 0 .65rem; padding-left: 1.2rem; } .fz-md li { margin: .2rem 0; } .fz-md ul { list-style: disc; } .fz-md ol { list-style: decimal; }
.fz-md li::marker { color: var(--fz-green); }
.fz-md strong { font-weight: 700; color: var(--fz-text, inherit); }
.fz-md h1, .fz-md h2, .fz-md h3, .fz-md h4 { margin: .8rem 0 .35rem; font-size: .98rem; font-weight: 800; }
.fz-md a { color: var(--fz-sky); text-decoration: underline; }
.fz-md code { font-size: .85em; padding: .05rem .3rem; border-radius: .35rem; background: var(--fz-track); }
.fz-md blockquote { margin: 0 0 .65rem; padding: .5rem .8rem; border-left: 3px solid var(--fz-amber); background: rgb(245 158 11 / .07); border-radius: 0 .6rem .6rem 0; }
.fz-md table { display: block; overflow-x: auto; border-collapse: collapse; font-size: .84rem; margin: 0 0 .65rem; }
.fz-md th, .fz-md td { padding: .35rem .6rem; border-bottom: 1px solid var(--fz-border); text-align: left; white-space: nowrap; }
.fz-md hr { border: 0; border-top: 1px solid var(--fz-border); margin: .8rem 0; }
.fz-live { font-size: .93rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.fz-live:empty { display: none; }
.fz-status { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: .8rem; color: var(--fz-muted); }
.fz-dots { display: inline-flex; gap: .2rem; } .fz-dots i { width: .35rem; height: .35rem; border-radius: 99px; background: var(--fz-sky); animation: fz-bounce 1s infinite ease-in-out; }
.fz-dots i:nth-child(2) { animation-delay: .15s; } .fz-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes fz-bounce { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.fz-proposal { display: flex; flex-direction: column; gap: .6rem; }
.fz-proposal-actions { display: flex; justify-content: flex-end; align-items: center; gap: .6rem; }
.fz-proposal-done { padding: .75rem .9rem; border-radius: .95rem; background: rgb(16 185 129 / .09); border: 1px solid rgb(16 185 129 / .3); font-size: .84rem; }
.fz-proposal-done b { display: flex; align-items: center; gap: .35rem; color: var(--fz-green); } .fz-proposal-done b svg { width: 1rem; height: 1rem; }
.fz-proposal-done ul { margin: .35rem 0 0; padding-left: 1.1rem; line-height: 1.55; }
.fz-proposal-off { margin: 0; font-size: .8rem; color: var(--fz-muted); font-style: italic; }
.fz-rate { display: flex; gap: .15rem; margin-top: -.1rem; }
.fz-rate button { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: .6rem; border: 0; background: transparent; color: var(--fz-muted); cursor: pointer; opacity: .75; }
.fz-rate button:hover { background: var(--fz-track); opacity: 1; }
.fz-rate button.is-on { color: var(--fz-green); opacity: 1; } .fz-rate button.is-neg { color: var(--fz-rose); }
.fz-rate svg { width: 1rem; height: 1rem; }
.fz-feedback { display: flex; flex-direction: column; gap: .35rem; padding: .7rem; border-radius: .9rem; background: var(--fz-track); }
.fz-feedback label { font-size: .78rem; color: var(--fz-muted); }
.fz-feedback div { display: flex; gap: .4rem; }
.fz-feedback input { flex: 1; min-width: 0; font-size: .86rem; padding: .5rem .65rem; border-radius: .65rem; border: 1px solid var(--fz-border); background: var(--fz-card); color: inherit; }

.fz-composer { position: sticky; bottom: .75rem; z-index: 6; display: flex; align-items: flex-end; gap: .4rem; padding: .45rem .45rem .45rem .9rem; border-radius: 1.4rem; background: var(--fz-card); border: 1px solid var(--fz-border); box-shadow: 0 18px 40px -18px rgb(0 0 0 / .6), 0 0 0 1px rgb(16 185 129 / .08); }
.fz-composer:focus-within { border-color: color-mix(in srgb, var(--fz-green) 55%, var(--fz-border)); }
.fz-composer textarea { flex: 1; min-width: 0; border: 0; background: transparent; color: inherit; font: 500 .95rem/1.45 inherit; padding: .5rem 0; resize: none; max-height: 180px; }
.fz-composer textarea:focus { outline: none; box-shadow: none; }
.fz-composer textarea::placeholder { color: var(--fz-muted); font-weight: 400; }
.fz-composer-mic, .fz-composer-send { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 99px; border: 0; cursor: pointer; }
.fz-composer-mic { background: transparent; color: var(--fz-muted); }
.fz-composer-mic.is-on { color: var(--fz-danger); background: rgb(244 63 94 / .14); animation: fz-pulse 1.2s ease-in-out infinite; }
.fz-composer-send { background: linear-gradient(135deg, #10b981, #0ea5e9); color: #fff; box-shadow: 0 6px 16px -6px rgb(16 185 129 / .8); }
.fz-composer-send:disabled { opacity: .4; cursor: default; box-shadow: none; }
.fz-composer svg { width: 1.2rem; height: 1.2rem; }
.fz-chat .fz-ai-privacy { justify-content: center; text-align: center; margin: -.3rem 0 0; font-size: .7rem; }
[x-cloak] { display: none !important; }
@media (max-width: 767px) {
    .fz-chat { margin-top: -.5rem; min-height: calc(100dvh - 13rem); }
    .fz-chat-top { top: 3.5rem; }
    .fz-chat-panel { left: 0; right: 0; width: auto; }
    .fz-suggest { grid-template-columns: minmax(0, 1fr); }
    .fz-composer { bottom: calc(5rem + env(safe-area-inset-bottom)); }
    .fz-bubble { max-width: 90%; }
    .fz-msg.is-ai > .fz-ai-orb { display: none; }
}
@media (prefers-reduced-motion: reduce) { .fz-dots i, .fz-ai-orb.is-busy, .fz-composer-mic.is-on { animation: none; } }

/* ---------- Asistente: fotos y documentos ---------- */
.fz-bubble-wrap { max-width: 85%; display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; }
.fz-bubble-wrap .fz-bubble { max-width: 100%; }
.fz-att { display: block; border-radius: 1rem; overflow: hidden; border: 1px solid var(--fz-border); background: var(--fz-card); }
.fz-att img { display: block; max-width: 14rem; max-height: 16rem; object-fit: cover; }
.fz-att.is-pdf { display: flex; align-items: center; gap: .45rem; padding: .6rem .8rem; font-size: .82rem; font-weight: 600; color: inherit; text-decoration: none; }
.fz-att.is-pdf svg { width: 1.3rem; height: 1.3rem; color: var(--fz-rose); flex: none; }
.fz-snap { display: flex; align-items: center; gap: .8rem; width: 100%; margin-top: .4rem; padding: .85rem 1rem; text-align: left; border-radius: 1.1rem; cursor: pointer; color: inherit;
    border: 1px solid rgb(14 165 233 / .35); background: linear-gradient(120deg, rgb(16 185 129 / .12), rgb(14 165 233 / .12) 60%, rgb(168 85 247 / .1)); }
.fz-snap > span { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; flex: none; border-radius: .9rem; background: linear-gradient(135deg, #10b981, #0ea5e9); color: #fff; }
.fz-snap > span svg { width: 1.3rem; height: 1.3rem; }
.fz-snap b { display: block; font-size: .9rem; } .fz-snap small { display: block; font-size: .76rem; line-height: 1.4; color: var(--fz-muted); margin-top: .15rem; }
.fz-snap:hover { border-color: rgb(14 165 233 / .6); }
.fz-composer-wrap { position: sticky; bottom: .75rem; z-index: 6; display: flex; flex-direction: column; gap: .4rem; }
.fz-composer-wrap .fz-composer { position: static; }
.fz-attach-chip { display: flex; align-items: center; gap: .6rem; padding: .45rem .5rem; border-radius: 1rem; background: var(--fz-card); border: 1px solid var(--fz-border); box-shadow: 0 10px 30px -18px rgb(0 0 0 / .6); }
.fz-attach-chip img, .fz-attach-pdf { width: 2.8rem; height: 2.8rem; border-radius: .7rem; object-fit: cover; flex: none; }
.fz-attach-pdf { display: grid; place-items: center; background: rgb(244 63 94 / .12); color: var(--fz-rose); } .fz-attach-pdf svg { width: 1.3rem; height: 1.3rem; }
.fz-attach-chip div { flex: 1; min-width: 0; } .fz-attach-chip b { display: block; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fz-attach-chip small { font-size: .72rem; color: var(--fz-muted); }
@media (max-width: 767px) { .fz-composer-wrap { bottom: calc(5rem + env(safe-area-inset-bottom)); } .fz-bubble-wrap { max-width: 90%; } }
