/* Habita Finanzas · piezas de identidad: barra «dilo o escríbelo», cifras que ruedan, el mes día a día, pulso y saldos reales */
.omni { position: relative; display: grid; grid-template-columns: 44px 1fr auto auto; align-items: center; gap: 4px; padding: 6px; border-radius: 20px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line2), var(--sh); margin-bottom: 14px; transition: box-shadow .2s; }
.omni:focus-within { box-shadow: inset 0 0 0 2px var(--acc-t), 0 14px 40px -18px var(--acc-glow); }
.omni-ic { width: 44px; height: 44px; display: grid; place-items: center; color: var(--acc-t); }
.omni input { all: unset; min-width: 0; height: 48px; font-size: 16px; color: var(--tx); width: 100%; }
.omni input::placeholder { color: var(--tx3); }
.omni button { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--tx2); }
.omni .omni-mic { background: var(--acc-bg); color: var(--acc-t); } .omni .omni-ir { background: var(--acc); color: var(--on-acc); }
.omni .omni-ir[disabled] { background: var(--s2); color: var(--tx3); }
.omni-pre { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; padding: 0 6px; } .omni-pre:not(:empty) { padding: 4px 6px 8px; }
.omni:focus-within .omni-pre:empty { padding: 2px 10px 10px; } .omni:focus-within .omni-pre:empty::before { content: attr(data-ej); font-size: 13px; color: var(--tx3); }
.omni-pre .chip { height: 30px; font-size: 13px; animation: entra .25s var(--ease); } .omni-pre .chip b { font-weight: 600; }

.dgs { display: inline-flex; align-items: flex-start; line-height: 1.05; } .dg { display: inline-block; height: 1.05em; overflow: hidden; }
.dg > span { display: block; transform: translateY(calc(var(--d, 0) * -10%)); transition: transform .9s var(--ease); transition-delay: calc(var(--n, 0) * 35ms); }
.sin-anim .dg > span { transition: none; }

.pulso { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--acc) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc-t) 22%, transparent); }
.pulso small { display: block; font-size: 12px; color: var(--tx2); } .pulso b { font-size: 22px; font-weight: 600; letter-spacing: -.03em; } .pulso em { display: block; font-style: normal; font-size: 12px; color: var(--tx2); }
.pulso.sobre { background: var(--neg-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--neg) 25%, transparent); }

.ritmo .dias { display: flex; align-items: flex-end; gap: clamp(2px, .7vw, 5px); height: 96px; touch-action: pan-y; cursor: crosshair; outline-offset: 6px; border-radius: 8px; }
.ritmo .d { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; position: relative; }
.ritmo .d i { width: 100%; max-width: 18px; border-radius: 5px 5px 2px 2px; height: var(--h, 0%); min-height: 3px; background: color-mix(in srgb, var(--acc-t) 42%, var(--s3)); transition: height .7s var(--ease), background .15s; }
.ritmo .d.fu i { background: var(--s3); opacity: .55; } .ritmo .d.hoy i { background: var(--acc-t); } .ritmo .d.sel i { background: var(--tx); }
.ritmo .d b { position: absolute; top: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--pos); }
.ritmo .eje { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--tx3); margin-top: 6px; }
.ritmo .info { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: var(--s2); min-height: 60px; }
.ritmo .info small { display: block; font-size: 12.5px; color: var(--tx2); } .ritmo .info b { font-size: 17px; font-weight: 600; letter-spacing: -.02em; } .ritmo .info .pos { font-size: 13px; font-weight: 500; }

.saldo-eq { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.saldo-eq div { display: flex; justify-content: space-between; gap: 10px; } .saldo-eq span { color: var(--tx2); } .saldo-eq b { font-weight: 600; }
.saldo-eq .dif b { font-size: 19px; letter-spacing: -.02em; }

.vz-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; min-height: 30px; } .vz-chips .chip { height: 30px; font-size: 13px; animation: entra .25s var(--ease); }
.vz-paso { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--tx2); }
.vz-paso i { flex: 1; height: 4px; border-radius: 9px; background: var(--s3); overflow: hidden; } .vz-paso i::after { content: ''; display: block; height: 100%; width: var(--w); background: var(--acc); border-radius: 9px; transition: width .4s var(--ease); }
.vz-corr { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 12px; margin-top: 10px; border-radius: 13px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; font-weight: 500; color: var(--tx2); text-align: left; }
.vz-corr.on { background: var(--acc-bg); color: var(--acc-t); box-shadow: inset 0 0 0 1px var(--acc-t); } .vz-corr span { flex: 1; }

/* cambio de espacio: el color nuevo se abre desde el selector */
html.revela::view-transition-old(root) { animation: none; } html.revela::view-transition-new(root) { animation: revela .55s var(--ease); }
@keyframes revela { from { clip-path: circle(0 at var(--vx, 50%) var(--vy, 10%)); } to { clip-path: circle(150vmax at var(--vx, 50%) var(--vy, 10%)); } }
@media (prefers-reduced-motion: reduce) { html.revela::view-transition-new(root) { animation: none; } .dg > span { transition: none; } }

/* espera de confirmación del servidor */
.gira { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: inline-block; animation: gira .7s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.velo.espera .cu { opacity: .6; pointer-events: none; transition: opacity .2s; }
.linea-sync { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 90; background: linear-gradient(90deg, transparent, var(--acc), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: corre 1s linear infinite; }
@keyframes corre { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.banda { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 16px; background: var(--warn-bg); margin-bottom: 14px; font-size: 14px; } .banda b { font-weight: 600; } .banda span { flex: 1 1 220px; }
.acc-w { min-height: 100dvh; display: grid; align-content: center; gap: 18px; padding: calc(24px + var(--sat)) 20px calc(24px + var(--sab)); max-width: 440px; margin: 0 auto; }
.acc-w h1 { font-size: clamp(28px, 7.6vw, 36px); font-weight: 600; letter-spacing: -.04em; line-height: 1.08; text-wrap: balance; } .acc-w h1 em { font-style: normal; color: var(--acc-t); }
.acc-w form { display: grid; gap: 2px; } .acc-w .enlaces { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; } .acc-w .enlaces button { color: var(--acc-t); font-weight: 600; font-size: 14px; min-height: 44px; }
.codigo { font: 600 clamp(20px, 6vw, 26px)/1.2 var(--f); letter-spacing: .06em; padding: 16px; border-radius: 16px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line2); text-align: center; user-select: all; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .gira, .linea-sync { animation-duration: 2s !important; } }
/* campos de correo y contraseña con el mismo estilo que el resto */
input[type=email], input[type=password] { width: 100%; height: 48px; padding: 0 14px; border-radius: 13px; background: var(--s2); border: 0; box-shadow: inset 0 0 0 1px var(--line); outline: 0; transition: box-shadow .15s; font-size: 16px; -webkit-appearance: none; appearance: none; }
input[type=email]:focus, input[type=password]:focus { box-shadow: inset 0 0 0 2px var(--acc-t); }

/* Asistente: día a día y general */
.asis > header { flex-wrap: wrap; }
.asis .asis-seg { padding: 3px; border-radius: 11px; box-shadow: none; background: var(--s2); }
.asis .asis-seg button { height: 40px; min-height: 40px; min-width: 0; margin: 0; padding: 0 12px; border-radius: 8px; font-size: 12.5px; color: var(--tx2); }
.asis .asis-seg button[aria-pressed="true"] { background: var(--s1); color: var(--tx); box-shadow: 0 1px 2px rgb(0 0 0 / .12); }
.asis-nav { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; margin-bottom: 12px; text-align: center; }
.asis-nav button { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--s2); color: var(--tx); transition: background .2s, opacity .2s; }
.asis-nav button:hover { background: var(--s3); } .asis-nav button:disabled { opacity: .3; cursor: default; }
.asis-nav button svg { width: 18px; height: 18px; }
.asis-nav b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.02em; } .asis-nav small { font-size: 12.5px; color: var(--tx2); }
.asis-cif { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.asis-cif > div { padding: 10px 12px; border-radius: 14px; background: var(--s2); min-width: 0; }
.asis-cif small { display: block; font-size: 12px; color: var(--tx2); } .asis-cif b { display: block; font-size: clamp(14px, 3.9vw, 17px); font-weight: 600; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asis-movs { margin-top: 12px; }
.asis-hoy { display: block; margin: 10px auto 0; min-height: 40px; padding: 0 12px; font-size: 13px; font-weight: 600; color: var(--acc-t); }
.asis-per { font-size: 12.5px; color: var(--tx2); margin-bottom: 6px; }
.asis-tit { font-size: 17px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; text-wrap: balance; margin-bottom: 12px; }
.asis-pie { font-size: 12px; color: var(--tx3); margin-top: 12px; }
/* en pantallas angostas el asistente va justo bajo el resumen (en Negocio quedaba después de la tarjeta larga de Habita Taller) */
@media (max-width: 1099px) { .grid > .hero { order: -2; } .grid > .asis { order: -1; } }
