/* Gastos — estilo iOS: colores de sistema, claro/oscuro según el teléfono, todo al alcance del pulgar. Letra: Poppins (alojada acá). */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/Poppins-Regular.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/Poppins-Medium.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/Poppins-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/Poppins-Bold.woff2") format("woff2"); }
:root {
  color-scheme: light dark;
  --bg: #f2f2f7; --el: #ffffff; --el2: #e5e5ea;
  --label: #000; --label2: #3c3c4399; --sep: #3c3c4329;
  --acc: #34c759; --acc-txt: #1f8a3b; --rojo: #ff3b30; --azul: #007aff;
  --acc-boton: #1e7f35; --naranja: #ff9500; --violeta: #af52de; --gris: #c7c7cc; --rojo-txt: #d70015;
  --radio: 14px;
  --arriba: env(safe-area-inset-top); --abajo: env(safe-area-inset-bottom);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #000; --el: #1c1c1e; --el2: #2c2c2e; --label: #fff; --label2: #ebebf599; --sep: #54545899;
          --acc: #30d158; --acc-txt: #30d158; --rojo: #ff453a; --azul: #0a84ff;
          --naranja: #ff9f0a; --violeta: #bf5af2; --gris: #636366; --rojo-txt: #ff6961; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--label); }
body { min-height: 100dvh; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; touch-action: manipulation; }
input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- login ---------- */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px; padding-top: calc(24px + var(--arriba)); }
.login-caja { width: min(100%, 340px); display: grid; gap: 14px; text-align: center; }
.login-icono { width: 72px; height: 72px; border-radius: 16px; margin: 0 auto; }
.login h1 { margin: 0 0 8px; font-size: 28px; }
.login input { height: 52px; padding: 0 16px; border-radius: 12px; border: 0; background: var(--el); font-size: 17px; }

/* ---------- estructura ---------- */
.cabecera { position: sticky; top: 0; z-index: 2; padding: calc(10px + var(--arriba)) 20px 8px;
            background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.cabecera h1 { margin: 0; font-size: 34px; font-weight: 700; letter-spacing: .01em; }
.contenido { padding: 4px 16px calc(96px + var(--abajo)); }

/* ---------- listas ---------- */
.lista { list-style: none; margin: 0; padding: 0; background: var(--el); border-radius: var(--radio); overflow: hidden; }
.lista:empty { display: none; }
.lista > li + li { border-top: .5px solid var(--sep); }
.fila { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; width: 100%;
        padding: 12px 16px; min-height: 56px; text-align: left; }
.fila:active { background: var(--el2); }
.fila-titulo { font-size: 17px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fila-sub { grid-column: 1; font-size: 13px; color: var(--label2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fila-monto { grid-row: 1 / span 2; grid-column: 2; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fila-monto.falta { color: var(--rojo); font-weight: 500; font-size: 15px; }

/* pendiente con todo sabido: confirmar con un toque */
.pendiente-rapido { display: flex; align-items: center; gap: 10px; padding: 0 16px 12px; }
.pendiente-rapido .etiqueta { flex: 1; font-size: 14px; color: var(--label2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.boton-chico { flex: none; height: 36px; padding: 0 16px; border-radius: 18px; background: var(--acc-boton); color: #fff; font-weight: 600; font-size: 15px; }
.boton-chico:active { opacity: .7; }

.vacio { text-align: center; color: var(--label2); padding: 64px 24px; }
.vacio-titulo { font-size: 20px; font-weight: 600; color: var(--label); margin-bottom: 6px; }

/* ---------- mes ---------- */
.mes-nav { display: flex; align-items: center; justify-content: space-between; margin: 0 -8px; }
.mes-nav span { font-size: 17px; font-weight: 600; }
.icono-boton { width: 44px; height: 44px; font-size: 28px; color: var(--azul); border-radius: 22px; }
.icono-boton:disabled { opacity: .3; }
.total { padding: 8px 4px 20px; }
.total-monto { margin: 0; font-size: 44px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.total-extra { margin: 2px 0 0; color: var(--label2); font-size: 15px; }
.aviso { margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, #ff9f0a 18%, transparent);
         color: var(--label); font-size: 14px; text-align: left; }
.balance { margin: 12px 0 0; font-size: 15px; }
.balance b { font-weight: 600; }
.nota { margin: 6px 4px 0; font-size: 13px; color: var(--label2); }
.fila.quieta:active { background: none; }
.seccion { margin: 24px 4px 8px; font-size: 13px; font-weight: 400; text-transform: uppercase; letter-spacing: .02em; color: var(--label2); }
.barras .fila { grid-template-columns: 1fr auto; }
.barra-fondo { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--el2); overflow: hidden; margin-top: 6px; }
.barra-lleno { height: 100%; background: var(--acc); border-radius: 2px; }
.barras .fila-titulo { font-weight: 500; }
.barras .fila-monto { grid-row: 1; }
.boton.texto { display: block; margin: 32px auto 0; color: var(--label2); font-size: 15px; height: 44px; }

/* ---------- barra de abajo ---------- */
.barra { position: fixed; inset: auto 0 0 0; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; align-items: center;
         padding: 6px 12px calc(6px + var(--abajo)); background: color-mix(in srgb, var(--el) 88%, transparent);
         backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: .5px solid var(--sep); }
.pestana { position: relative; display: grid; justify-items: center; gap: 2px; font-size: 11px; color: var(--label2); height: 52px; align-content: center; }
.pestana-icono { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.pestana.activa { color: var(--azul); }
.insignia { position: absolute; top: 2px; left: calc(50% + 8px); min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
            background: var(--rojo); color: #fff; font-size: 13px; font-weight: 600; line-height: 20px; }
.efectivo-boton { height: 48px; padding: 0 22px; border-radius: 24px; background: var(--acc-boton); color: #fff; font-size: 17px; font-weight: 600;
                  box-shadow: 0 4px 14px color-mix(in srgb, var(--acc) 35%, transparent); }
.efectivo-boton:active { transform: scale(.97); }

/* ---------- hojas (dialog abajo) ---------- */
.hoja { margin: auto 0 0; width: 100%; max-width: 100%; max-height: 92dvh; border: 0; padding: 0; border-radius: 16px 16px 0 0;
        background: var(--bg); color: var(--label); overflow-y: auto; overscroll-behavior: contain; }
.hoja::backdrop { background: rgb(0 0 0 / .4); }
.hoja[open] { animation: subir .28s cubic-bezier(.32,.72,0,1); }
@keyframes subir { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .hoja[open] { animation: none; } }
.hoja form { padding: 8px 16px calc(16px + var(--abajo)); display: grid; gap: 14px; }
.hoja-asa { width: 36px; height: 5px; border-radius: 3px; background: var(--el2); margin: 0 auto 4px; }
.hoja-titulo { margin: 0; font-size: 20px; text-align: center; }
.hoja-detalle { margin: 0; text-align: center; color: var(--label2); font-size: 14px; }
.campo-monto { display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.campo-monto .moneda { font-size: 32px; font-weight: 600; color: var(--label2); }
.campo-monto input { width: 7ch; min-width: 0; border: 0; background: none; font-size: 48px; font-weight: 700; text-align: left;
                     font-variant-numeric: tabular-nums; outline: none; caret-color: var(--acc); }
.campo { display: grid; gap: 6px; }
.campo input { height: 44px; padding: 0 14px; border-radius: 10px; border: 0; background: var(--el); font-size: 17px; }
.campo-rotulo { font-size: 13px; color: var(--label2); text-transform: uppercase; letter-spacing: .02em; margin: 0; padding: 0; }
.grupo { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 40px; padding: 0 14px; border-radius: 20px; background: var(--el); font-size: 15px; border: 1.5px solid transparent; }
.chip[aria-pressed="true"] { background: var(--acc-boton); color: #fff; font-weight: 600; }
.chip.sugerido:not([aria-pressed="true"]) { border: 1.5px dashed var(--acc); }
.chips.grandes { display: grid; grid-template-columns: repeat(3, 1fr); }
.chips.grandes .chip { height: auto; min-height: 64px; border-radius: 14px; display: grid; place-content: center; gap: 2px; font-size: 13px; line-height: 1.2; padding: 8px 4px; }
.chips.grandes .chip b { font-size: 24px; font-weight: 400; line-height: 1; }
.chips.grandes .chip:active { background: var(--acc-boton); color: #fff; }
.sugerencia { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--el); font-size: 14px; line-height: 1.35; }
.sugerencia small { display: block; color: var(--label2); font-size: 12px; margin-top: 2px; }
.hoja-acciones { position: sticky; bottom: calc(-16px - var(--abajo)); display: grid; grid-template-columns: 1fr 2fr; gap: 10px;
                 margin: 4px -16px calc(-16px - var(--abajo)); padding: 10px 16px calc(16px + var(--abajo)); background: var(--bg); border-top: .5px solid var(--sep); }
.boton { height: 52px; border-radius: 14px; font-size: 17px; font-weight: 600; }
.boton.primario { background: var(--acc-boton); color: #fff; }
.boton.primario:disabled { opacity: .4; }
.boton.peligro { background: var(--el); color: var(--rojo); }
.boton:active { opacity: .75; }
.error { margin: 0; min-height: 1em; color: var(--rojo); font-size: 14px; text-align: center; }
.error:empty { display: none; }
.hoja-acciones .error { grid-column: 1 / -1; }
.grupo.falta .campo-rotulo { color: var(--rojo); font-weight: 600; }
.hoja.arrastrando { animation: none; }
.hoja.soltando { transition: transform .2s ease-out; }

/* ---------- aviso ---------- */
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(80px + var(--abajo)); z-index: 5; display: flex; align-items: center; gap: 12px;
         padding: 12px 16px; border-radius: 14px; background: #1c1c1eeb; color: #fff; font-size: 15px;
         backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.toast span { flex: 1; }
.toast-boton { color: #64d2ff; font-weight: 600; height: 32px; }
#lista-viene .fila-sub { white-space: normal; grid-column: 1 / -1; }

/* ---------- inicio (tablero) ---------- */
.cabecera-fecha { margin: 0; font-size: 13px; color: var(--label2); }
.tablero { display: grid; gap: 14px; }
.tarjeta { background: var(--el); border-radius: 16px; padding: 16px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.tarjeta-titulo { margin: 0; font-size: 17px; font-weight: 600; }
.tarjeta-sub { margin: -6px 0 2px; font-size: 13px; color: var(--label2); line-height: 1.4; }
.esqueleto { background: linear-gradient(90deg, var(--el) 30%, var(--el2) 50%, var(--el) 70%) 0 0 / 300% 100%; animation: brillo 1.4s linear infinite; }
@keyframes brillo { to { background-position: -100% 0; } }
.cifra { margin: 2px 0 0; font-size: 34px; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
.cifra small { font-size: 13px; font-weight: 400; color: var(--label2); letter-spacing: 0; }
.cifra-sub { margin: -4px 0 0; font-size: 14px; color: var(--label2); }
.lista-pares { display: grid; }
.lista-pares.separada { border-top: .5px solid var(--sep); padding-top: 6px; }
.par { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 0; font-size: 14px; }
.par span:first-child { color: var(--label2); min-width: 0; }
.par span:last-child { font-weight: 600; white-space: nowrap; }
.par.fuerte span:first-child { color: var(--label); }
.par.suave span { color: var(--label2); font-weight: 400; }
.lista-pares.rayada .par { padding: 11px 0; font-size: 15px; }
.lista-pares.rayada .par + .par { border-top: .5px solid var(--sep); }
.lista-pares.rayada .par span:first-child { color: var(--label); }
.lista-pares.rayada .par.fuerte { font-weight: 600; }
.caja { border-radius: 12px; padding: 10px 14px; font-size: 13px; display: grid; gap: 2px; }
.caja p { margin: 0; line-height: 1.4; }
.caja .par { padding: 2px 0; font-size: 13px; }
.caja .par span:first-child { color: var(--label); }
.caja-titulo { font-weight: 600; font-size: 14px; }
.caja.gris { background: var(--bg); }
.caja.gris .caja-titulo { font-size: 12px; color: var(--label2); }
.caja.roja { background: color-mix(in srgb, var(--rojo) 12%, transparent); color: var(--rojo-txt); }
.caja.verde { background: color-mix(in srgb, var(--acc) 15%, transparent); color: var(--acc-txt); }
.boton.azul { background: var(--azul); color: #fff; height: 46px; font-size: 15px; }
.rotulo { display: block; font-size: 12px; color: var(--label2); }
.extremos { display: flex; justify-content: space-between; gap: 12px; }
.extremos b { font-size: 16px; font-weight: 600; }
.extremos .der { text-align: right; }
.extremos.chico { font-size: 12px; color: var(--label2); }
.extremos.chico b { font-size: 12px; color: var(--label); }
.azul-txt { color: var(--azul); font-weight: 600; } .verde-txt { color: var(--acc-txt); font-weight: 600; }
.nota-tablero { margin: 0; font-size: 12px; color: var(--label2); line-height: 1.45; }

/* barra horizontal con marca de promedio / meta */
.bh { position: relative; height: 10px; border-radius: 5px; background: var(--el2); }
.bh-lleno { height: 100%; width: 0; border-radius: 5px; transition: width .2s ease-out; }
.bh-marca { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--label); border-radius: 1px; }
.verde { background: var(--acc); } .azul { background: var(--azul); } .naranja { background: var(--naranja); }
.violeta { background: var(--violeta); } .gris { background: var(--gris); }

/* columnas (ahorro y de dónde entra) */
.columnas { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; padding-top: 18px; }
.columnas-linea { position: absolute; left: 0; right: 0; height: 1.5px; background: var(--sep); pointer-events: none; z-index: 0; }
.columna { display: grid; grid-template-rows: 1fr auto; gap: 6px; justify-items: center; }
.columna-zona { position: relative; width: 100%; height: 120px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.columnas.apiladas .columna-zona { height: 130px; }
.columna-barra, .pila { width: 100%; max-width: 34px; height: 0; border-radius: 5px 5px 2px 2px; transition: height .2s ease-out; }
.columna-barra { background: var(--acc); }
.columna-barra.clara { background: color-mix(in srgb, var(--acc) 35%, transparent); }
.columna-valor { font-size: 11px; font-weight: 600; color: var(--acc-txt); margin-bottom: 2px; white-space: nowrap; }
.columna-mes { font-size: 11px; line-height: 16px; color: var(--label2); }
.columna-barra { position: relative; z-index: 1; }
.pila { display: flex; flex-direction: column-reverse; overflow: hidden; gap: 0; }
.pila > div { min-height: 0; }
.pila-azul { background: var(--azul); } .pila-naranja { background: var(--naranja); } .pila-violeta { background: var(--violeta); } .pila-gris { background: var(--gris); }
.leyenda { margin: 0; font-size: 12px; color: var(--label2); display: flex; align-items: center; gap: 6px; }
.leyenda-marca { display: inline-block; width: 2px; height: 12px; background: var(--label); }
.leyenda.fuentes { flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; color: var(--label); font-size: 12px; }
.punto { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }

/* en qué se me va */
.rubros { display: grid; gap: 12px; }
.rubro { display: grid; gap: 5px; }
.rubro-linea { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.rubro-nombre { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rubro-var { font-size: 12px; color: var(--label2); }
.rubro-var.sube { color: var(--rojo-txt); font-weight: 600; }
.rubro-linea b { font-weight: 600; }
.rubro-nota { margin: 0; font-size: 12px; color: var(--label2); }

/* lo que viene */
.viene, .cuota { display: grid; gap: 12px; align-items: center; padding: 10px 0; font-size: 14px; }
.viene { grid-template-columns: 64px 1fr auto; border-bottom: .5px solid var(--sep); }
.cuota { grid-template-columns: 1fr auto; padding: 6px 0; }
.viene-fecha { font-size: 13px; color: var(--label2); }
.viene-fecha.hoy { color: var(--rojo-txt); font-weight: 600; }
.viene-concepto small, .cuota small { display: block; font-size: 12px; color: var(--label2); }
.viene b, .cuota b { font-weight: 600; text-align: right; }
.subtitulo { margin: 6px 0 0; font-size: 15px; font-weight: 600; }

/* pesos y dólares */
.franja { display: flex; gap: 4px; height: 24px; }
.franja > div { border-radius: 6px; }
.franja-azul { background: var(--azul); } .franja-verde { background: var(--acc); }

/* pie */
.pie-tablero { padding: 2px 4px 8px; font-size: 12px; color: var(--label2); }
.pie-tablero p { margin: 0 0 2px; }
.enlace { padding: 0; height: auto; color: var(--azul); font-size: 13px; font-weight: 600; text-align: left; }

@media (prefers-reduced-motion: reduce) {
  .bh-lleno, .columna-barra, .pila { transition: none; }
  .esqueleto { animation: none; }
}

/* escritorio: el mismo diseño, centrado; Inicio en 2 columnas */
@media (min-width: 760px) {
  .cabecera, .contenido { max-width: 680px; margin-inline: auto; width: 100%; }
}
@media (min-width: 1000px) {
  .cabecera, .contenido { max-width: 1000px; }
  #vista-movimientos, #vista-mes, #vista-apagar { max-width: 680px; margin-inline: auto; }
  .tablero { display: block; columns: 2; column-gap: 16px; }
  .tablero > * { break-inside: avoid; margin-bottom: 16px; }
  .barra { padding-inline: calc(50% - 300px); }
}

/* ---------- App v2: atajos en círculo (Inicio) ---------- */
.atajos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0 16px; }
.atajo { display: grid; justify-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--label); min-height: 44px; }
.atajo-circulo { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--el); color: var(--azul); }
.atajo-circulo svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.atajo-circulo.verde-fuerte { background: var(--acc-boton); color: #fff; }
.atajo:active .atajo-circulo { transform: scale(.94); }

/* ---------- App v2: Presupuesto ---------- */
.segmentos { display: flex; gap: 8px; margin: 0 0 14px; }
.segmento { height: 36px; padding: 0 16px; border-radius: 18px; background: var(--el); font-size: 15px; font-weight: 500; color: var(--label); }
.segmento[aria-pressed="true"] { background: var(--label); color: var(--bg); font-weight: 600; }
.cifra-fila { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cifra.roja { color: var(--rojo-txt); }
.sello { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 10px; }
.sello.rojo { background: color-mix(in srgb, var(--rojo) 12%, transparent); color: var(--rojo-txt); }
.sello.verde { background: color-mix(in srgb, var(--acc) 15%, transparent); color: var(--acc-txt); }
.rojo { background: var(--rojo); }
.caja.naranja-suave { background: color-mix(in srgb, var(--naranja) 14%, transparent); color: color-mix(in srgb, var(--naranja) 55%, var(--label)); }
.sobre { display: grid; gap: 6px; padding: 10px 0; }
.sobre + .sobre { border-top: .5px solid var(--sep); }
.sobre-cabeza { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sobre-nombre { font-size: 15px; font-weight: 600; min-width: 0; }
.sobre-estado { font-size: 14px; font-weight: 600; white-space: nowrap; }
.sobre-estado.mal { color: var(--rojo-txt); } .sobre-estado.ojo { color: color-mix(in srgb, var(--naranja) 60%, var(--label)); } .sobre-estado.bien { color: var(--acc-txt); }
.sobre-pie { font-size: 12px; color: var(--label2); }
.rojo-txt { color: var(--rojo-txt); font-weight: 600; }

/* ---------- App v2: cabecera con ojito y volver ---------- */
.cabecera-fila { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.cabecera-textos { min-width: 0; }
.volver { display: block; height: 36px; padding: 0; color: var(--azul); font-size: 17px; font-weight: 500; }
.ojito { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--el); display: grid; place-items: center; margin-bottom: 4px; }
.ojito svg { width: 24px; height: 24px; fill: none; stroke: var(--label); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ojito .ojo-tachado { display: none; }
.ojito.tachado .ojo-abierto { display: none; }
.ojito.tachado .ojo-tachado { display: inline; }

/* ---------- App v2: Inicio billetera ---------- */
#saldo { margin-bottom: 18px; }
.saldo { gap: 8px; }
.saldo-rotulo { margin: 0; font-size: 15px; color: var(--label2); }
.cifra.grande { font-size: 40px; }
.saldo-tenes { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; border-top: .5px solid var(--sep); padding-top: 12px; margin-top: 4px; }
.tenes { margin: 2px 0 0; font-size: 22px; font-weight: 700; }
.tenes small { font-size: 13px; font-weight: 400; color: var(--label2); }
.enlace.ver { height: 44px; padding: 0 2px; font-size: 15px; }
.desglose { display: grid; gap: 8px; }
.aviso-urgente { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border-radius: 16px; text-align: left;
                 background: color-mix(in srgb, var(--rojo) 12%, transparent); color: var(--rojo-txt); }
.aviso-urgente > span:first-child { flex: 1; display: grid; gap: 2px; }
.aviso-urgente small { font-size: 13px; }
.aviso-urgente b { font-size: 17px; font-weight: 600; }
.flecha { font-size: 24px; line-height: 1; }
.tarjeta-cabeza { display: flex; justify-content: space-between; align-items: center; }
.tarjeta-cabeza .enlace { height: 44px; font-size: 15px; }
.franja-revisar { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 12px; text-align: left; font-size: 15px;
                  background: color-mix(in srgb, var(--naranja) 16%, transparent); color: color-mix(in srgb, var(--naranja) 45%, var(--label)); }
.franja-revisar > span:nth-child(2) { flex: 1; }
.franja-numero { min-width: 26px; height: 26px; border-radius: 13px; padding: 0 7px; background: var(--naranja); color: #fff; font-weight: 600; font-size: 13px; display: grid; place-items: center; }
.naranja-txt { color: color-mix(in srgb, var(--naranja) 60%, var(--rojo-txt)); }

/* filas de movimientos (Inicio, Movimientos) */
.lista-mov { display: grid; gap: 0; padding-block: 4px; }
.tarjeta.lista-mov { padding: 4px 16px; }
.mov + .mov { border-top: .5px solid var(--sep); }
.mov-fila { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 0; text-align: left; }
.mov-fila:not(.quieta):active { opacity: .6; }
.mov-icono { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: var(--bg); }
.mov-icono.revisar { background: color-mix(in srgb, var(--naranja) 18%, transparent); color: var(--naranja); font-weight: 700; font-size: 20px; }
.mov-textos { display: grid; min-width: 0; }
.mov-titulo { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mov-sub { font-size: 13px; color: var(--label2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mov-sub.envuelve { white-space: normal; }
.mov-monto { font-size: 16px; font-weight: 600; white-space: nowrap; }
.mov-monto.falta { color: var(--rojo-txt); font-size: 14px; font-weight: 500; }
.mov-acciones { display: flex; align-items: center; gap: 10px; margin: -4px 0 0; padding: 0 0 12px 56px; min-height: 36px; }
.mov-pista { flex: none; font-size: 13px; color: var(--label2); }
.mov-acciones .boton-chico { margin-left: auto; }
.chips-fila { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
.chips-fila::-webkit-scrollbar { display: none; }
.chip.chico { flex: none; height: 36px; padding: 0 12px; font-size: 14px; font-weight: 600; background: var(--bg); }
.chip.chico:active { background: var(--acc-boton); color: #fff; }
.segmentos.llenos { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 3px; border-radius: 12px; background: var(--el2); }
.segmentos.llenos .segmento { border-radius: 9px; background: none; height: 36px; }
.segmentos.llenos .segmento[aria-pressed="true"] { background: var(--el); color: var(--label); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.dia .seccion { margin-top: 18px; text-transform: none; font-size: 14px; }
#vista-movimientos .nota { margin-top: 12px; }

/* ---------- App v2: hoja Cargar con teclado propio ---------- */
.hoja form.cargar { gap: 10px; }
.cargar-monto { margin: 0; display: flex; justify-content: center; align-items: baseline; gap: 6px; font-size: 52px; font-weight: 700; line-height: 1.1; }
.cargar-monto .moneda { font-size: 30px; color: var(--label2); }
.cuenta-pastilla { justify-self: center; margin: 0; padding: 6px 14px; border-radius: 16px; background: var(--el); font-size: 15px; font-weight: 600; }
.cargar-ayuda { margin: 0; text-align: center; font-size: 14px; color: var(--label2); }
.sobres-rapidos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sobre-rapido { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: 14px; min-height: 44px; }
.sobre-rapido:active { background: var(--el); }
.sobre-rapido-icono { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: var(--el); }
.sobre-rapido-nombre { font-size: 14px; font-weight: 500; line-height: 1.2; text-align: center; }
.sobre-rapido-estado { font-size: 12px; color: var(--label2); }
.sobre-rapido-estado.mal { color: var(--rojo-txt); } .sobre-rapido-estado.bien { color: var(--acc-txt); }
.teclado { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.tecla { height: 50px; border-radius: 10px; background: var(--el); font-size: 22px; font-weight: 500; }
.tecla:active { background: var(--el2); }

/* ---------- App v2: A pagar ---------- */
.pagar { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; }
.pagar + .pagar { border-top: .5px solid var(--sep); }
.pagar-fecha { display: grid; justify-items: center; padding: 6px 0; border-radius: 10px; background: var(--bg); line-height: 1.1; }
.pagar-fecha b { font-size: 18px; } .pagar-fecha small { font-size: 11px; color: var(--label2); font-weight: 600; }
.pagar-fecha.cerca { background: color-mix(in srgb, var(--naranja) 18%, transparent); color: color-mix(in srgb, var(--naranja) 55%, var(--label)); }
.pagar-fecha.cerca small { color: inherit; }
.pagar-textos { display: grid; min-width: 0; }
.pagar > b { font-weight: 600; font-size: 16px; }
.nota-tablero.grande { font-size: 14px; }
/* que la fila de sobres se deslice adentro de la tarjeta y no la estire */
.lista-mov { grid-template-columns: minmax(0, 1fr); }
.mov { min-width: 0; }
.mov-acciones { min-width: 0; }
.chips-fila { flex: 1; min-width: 0; }
.tablero { grid-template-columns: minmax(0, 1fr); }
.rubro-linea b { white-space: nowrap; }
html, body { overflow-x: hidden; }
.pagar .mov-titulo { white-space: normal; }
#apagar .cuota { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; }
#apagar .cuota > span { flex: 1 1 160px; min-width: 0; }
#apagar .cuota > b { flex: 0 1 auto; }
.sobre-rapido-estado { white-space: nowrap; font-size: 11.5px; }
