/* ── Eliezer, el asistente ── */
.eli-fab { position: fixed; right: max(16px, calc(50vw - 228px)); bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 19;
  height: 48px; padding: 0 16px 0 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px;
  background: var(--hero); color: #fff; border: 1px solid var(--hero-border); box-shadow: var(--shadow-float); font-size: var(--fs-13); font-weight: 700; }
.eli-fab .ico { width: 20px; height: 20px; color: var(--accent-hero); }
body[data-ruta="eliezer"] .eli-fab, body[data-ruta="aviso"] .eli-fab { display: none; }
@media (min-width: 960px) { .eli-fab { right: 28px; bottom: 28px; } }

.eli-pantalla { display: flex; flex-direction: column; gap: 14px; }
.eli-chat { display: flex; flex-direction: column; gap: 14px; }
.eli-msg { display: flex; gap: 8px; align-items: flex-start; scroll-margin-top: 12px; }
.eli-msg.yo { justify-content: flex-end; }
.eli-avatar { flex: none; width: 32px; height: 32px; border-radius: 12px; background: var(--hero); color: var(--accent-hero); display: grid; place-items: center; }
.eli-avatar .ico { width: 18px; height: 18px; }
.eli-cuerpo { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.eli-burbuja { padding: 10px 14px; border-radius: 18px; font-size: var(--fs-14); line-height: 1.5; overflow-wrap: anywhere; }
.eli-msg.eli .eli-burbuja { background: var(--surface); border: 1px solid var(--border); border-top-left-radius: 6px; align-self: flex-start; }
.eli-msg.yo .eli-burbuja { background: var(--gold); color: var(--on-gold); border-bottom-right-radius: 6px; max-width: 82%; }
.eli-bloque { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.eli-barras { display: flex; flex-direction: column; gap: 10px; }
.eli-barra { display: flex; flex-direction: column; gap: 5px; width: 100%; padding: 0; border: none; background: none; color: inherit; font: inherit; text-align: left; }
button.eli-barra { cursor: pointer; min-height: 40px; justify-content: center; }
.eli-barra-cab { display: flex; justify-content: space-between; gap: 10px; font-size: var(--fs-13); }
.eli-barra-cab b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.eli-barra-cab > span { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 700; }
.eli-barra-cab small { color: var(--muted); font-weight: 500; font-size: var(--fs-11); }
.eli-pista { display: block; height: 8px; border-radius: 4px; background: var(--chip); overflow: hidden; }
.eli-pista > i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--m, var(--gold)); }
button.eli-barra:hover .eli-pista > i, button.eli-barra:focus-visible .eli-pista > i { filter: brightness(1.15); }
.eli-cols { display: flex; align-items: flex-end; gap: 8px; height: 150px; }
.eli-col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0; border: none; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.eli-col-v { font-size: var(--fs-11); font-weight: 600; font-variant-numeric: tabular-nums; }
.eli-col-b { flex: 1; width: 100%; max-width: 44px; display: flex; align-items: flex-end; border-bottom: 1px solid var(--border); }
.eli-col-b > i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: var(--exp); }
.eli-col.parcial .eli-col-b > i { background: repeating-linear-gradient(135deg, var(--exp) 0 4px, transparent 4px 7px); outline: 1px solid var(--exp); outline-offset: -1px; }
.eli-col.on { color: var(--ink); }
.eli-col.on .eli-col-b > i { background: var(--gold); outline: none; }
.eli-col.on.parcial .eli-col-b > i { background: repeating-linear-gradient(135deg, var(--gold) 0 4px, transparent 4px 7px); outline: 1px solid var(--gold); outline-offset: -1px; }
.eli-col-e { font-size: var(--fs-11); font-weight: 600; }
.eli-pie { min-height: 18px; }
.eli-lista { display: flex; flex-direction: column; }
.eli-fila { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-13); }
.eli-fila:last-child { border-bottom: none; padding-bottom: 0; }
.eli-fila:first-child { padding-top: 0; }
.eli-fila-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.eli-fila-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.eli-fila-txt small { color: var(--muted); font-size: var(--fs-12); }
.eli-monto { white-space: nowrap; font-variant-numeric: tabular-nums; }
.eli-fila.alerta .eli-fila-txt small { color: var(--warn-fg); font-weight: 600; }
.eli-datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.eli-datos > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.eli-datos b { font-size: var(--fs-14); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.eli-confirmar { border-color: var(--gold); }
.eli-confirmar.hecho { border-color: var(--pos); }
.eli-acciones { display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.eli-acciones .chip { min-height: 44px; padding: 0 16px; cursor: pointer; }
.eli-acciones .btn-oro { margin-left: 0; flex: 0 1 auto; }
.eli-ok { color: var(--pos); font-weight: 700; font-size: var(--fs-13); }
.eli-mal { color: var(--danger); font-weight: 600; font-size: var(--fs-13); }
.eli-enlace { align-self: flex-start; color: var(--link); }
.eli-enlace .ico { width: 14px; height: 14px; }
.eli-sug { display: flex; flex-wrap: wrap; gap: 8px; }
.eli-sug .chip { cursor: pointer; text-align: left; min-height: 40px; height: auto; padding: 8px 12px; color: var(--link); font-weight: 600; }
.eli-form { position: sticky; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 5; display: flex; gap: 8px; padding: 8px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-float); }
.eli-form .campo { flex: 1; min-width: 0; border: none; background: transparent; font-size: 16px; padding: 0 10px; min-height: 44px; }
.eli-form .campo:focus { outline: none; }
.eli-form:focus-within { border-color: var(--gold); }
.eli-enviar { flex: none; width: 44px; height: 44px; border-radius: 16px; border: none; background: var(--gold); color: var(--on-gold); display: grid; place-items: center; cursor: pointer; }
.eli-enviar[disabled] { opacity: .5; }
.eli-enviar .ico { width: 20px; height: 20px; }
.eli-limpiar { align-self: center; background: none; border: none; cursor: pointer; text-decoration: underline; padding: 8px; }
.eli-pensando { display: inline-flex; gap: 5px; align-items: center; min-height: 40px; }
.eli-pensando i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: eli-punto 1s infinite ease-in-out; }
.eli-pensando i:nth-child(2) { animation-delay: .15s; } .eli-pensando i:nth-child(3) { animation-delay: .3s; }
@keyframes eli-punto { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .eli-pensando i { animation: none; } }
@media (min-width: 960px) { .eli-form { bottom: 20px; } .eli-pantalla { max-width: 640px; } }
.eli-cat { margin-left: auto; flex: none; }

.eli-texto { white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--fs-13); line-height: 1.5; background: var(--chip); border-radius: 12px; padding: 10px 12px; max-height: 260px; overflow-y: auto; font-variant-numeric: tabular-nums; }
.eli-acciones a.btn-oro { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; text-decoration: none; }
.eli-confirmar select.campo { width: 100%; min-height: 44px; font-size: 16px; }
.eli-sug .chip.sugerida { border-color: var(--gold); background: var(--gold); color: var(--on-gold); }
.eli-barra-cab b { white-space: normal; }

/* Para la app de Finanzas, que no carga tarjetas.css */
.eli-pantalla .btn-oro { margin-left: auto; min-height: 44px; padding: 0 18px; border: none; border-radius: 14px; background: var(--gold); color: var(--on-gold); font: inherit; font-weight: 700; font-size: var(--fs-13); cursor: pointer; }
.eli-pantalla .btn-oro[disabled] { opacity: .45; cursor: default; }
.eli-mov { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 10px 0; border: none; border-bottom: 1px solid var(--line); background: none; color: inherit; font: inherit; font-size: var(--fs-13); text-align: left; cursor: pointer; min-height: 48px; }
.eli-mov:last-child { border-bottom: none; }
.eli-mov .eli-cat-tag { color: var(--link); font-weight: 600; }

/* Movimientos que se pueden tocar para cambiar su categoría */
a.tx { color: inherit; text-decoration: none; }
a.eli-ir { color: inherit; text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
