/* GastoClaro · estilos propios. La base (colores, letras, botones, campos) es zojim-ui.css. */

/* Color de la app (violeta: orden y calma con la plata). Hasta que Interfaz lo sume a zojim-ui.css, va acá. */
:root { --z-gastos-1: #c4b5fd; --z-gastos-2: #8b5cf6; }
[data-app="gastos"] { --z-app-1: var(--z-gastos-1); --z-app-2: var(--z-gastos-2); --z-app-tinta: #14082e; --z-app-acento: var(--z-gastos-1); }

/* Colores de los gráficos (validados para fondo oscuro) y de gasto e ingreso */
:root {
  --g-1: #3987e5; --g-2: #d95926; --g-3: #199e70; --g-4: #c98500; --g-5: #d55181; --g-6: #9085e9; --g-gris: #7c7a74;
  --c-gasto: #f4a582;   /* texto de montos que salen (más claro que la barra, para que se lea) */
  --c-ingreso: #7ee2a8; /* texto de montos que entran */
}

body.z { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
.contenedor { max-width: 760px; padding-top: 8px; padding-bottom: 32px; }
.cabecera { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--z-negro) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--z-borde); }
.z-marca img { border-radius: 22%; }
.cargando-app { display: flex; gap: 12px; align-items: center; color: var(--z-texto-2); padding: 40px 0; }
#pantalla:focus, #vista-pro:focus { outline: none; box-shadow: none; }
.ic, .icono { width: 1.25em; height: 1.25em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.centro { text-align: center; }
.chico { font-size: var(--z-t-chico); }
.suave { color: var(--z-texto-2); }
.gasto-t { color: var(--c-gasto); }
.ingreso-t { color: var(--c-ingreso); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Barra de abajo ---------- */
.barra {
  position: fixed; inset: auto 0 0 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end;
  padding: 6px max(6px, env(safe-area-inset-left, 0px)) calc(6px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, #111112 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--z-borde);
}
.barra a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 56px; padding: 4px 2px; border-radius: 14px;
  color: var(--z-texto-3); text-decoration: none; font-size: .78rem; font-weight: 600; line-height: 1.1; text-align: center;
}
.barra a span { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 359px) { .barra { padding-inline: 2px; } .barra a { font-size: .68rem; padding-inline: 0; } }
.barra a .ic { width: 26px; height: 26px; }
.barra a[aria-current="page"] { color: var(--z-app-1); background: var(--z-app-fondo); }
.barra a.barra-anotar { color: var(--z-app-tinta); }
.barra a.barra-anotar .ic { width: 52px; height: 52px; padding: 13px; border-radius: 50%; background: linear-gradient(135deg, var(--z-app-1), var(--z-app-2)); box-shadow: 0 10px 24px -10px var(--z-app-2); margin-top: -20px; stroke-width: 2.6; }
.barra a.barra-anotar span { color: var(--z-texto-2); }
.barra a.barra-anotar[aria-current="page"] { background: none; }
@media (min-width: 900px) { .barra { max-width: 760px; margin-inline: auto; border: 1px solid var(--z-borde); border-bottom: 0; border-radius: 20px 20px 0 0; } }

/* ---------- Encabezado de pantalla ---------- */
.cab-pantalla { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 8px 0 4px; }
.cab-pantalla h1 { margin: 0; }
.btn-volver { padding-left: 14px; }
.nav-mes { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.nav-mes h2 { margin: 0; text-align: center; font-size: var(--z-t-medio); font-weight: 600; }
.nav-mes .z-btn { padding: 8px 14px; }
.nav-mes .z-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Tarjetas propias ---------- */
.caja { padding: 18px 18px; border-radius: var(--z-radio-grande); border: 1px solid var(--z-borde); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); }
.caja > * + * { margin-top: 12px; }
.caja h2, .caja h3 { margin: 0; font-size: var(--z-t-medio); font-weight: 600; letter-spacing: -0.01em; }
.caja-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.caja-cab a { font-weight: 600; color: var(--z-app-1); }
.pila > * + * { margin-top: 16px; }
.pila-chica > * + * { margin-top: 8px; }

/* Número grande (lo que tengo, lo que gasté) */
.heroe { padding: 22px 20px; border-radius: var(--z-radio-grande); border: 1px solid color-mix(in srgb, var(--z-app-1) 30%, transparent); background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--z-app-2) 22%, transparent), transparent 60%), var(--z-superficie); }
.heroe .z-kicker { margin: 0; }
.heroe-num { margin: 4px 0 0; font-size: clamp(2.1rem, 9vw, 3rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.heroe-sub { margin: 6px 0 0; color: var(--z-texto-2); }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.trio > div { padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.04); min-width: 0; }
.trio dt { font-size: var(--z-t-chico); color: var(--z-texto-3); }
.trio dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (max-width: 380px) { .trio { grid-template-columns: minmax(0, 1fr); } .trio > div { display: flex; justify-content: space-between; gap: 8px; } .trio dd { margin: 0; } }

/* ---------- Avisos de la app ---------- */
.alerta { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--z-radio); border: 1px solid rgba(245, 203, 110, .45); background: var(--z-alerta-fondo); }
.alerta.pasado { border-color: rgba(248, 165, 155, .55); background: var(--z-error-fondo); }
.alerta.info { border-color: color-mix(in srgb, var(--z-app-1) 40%, transparent); background: var(--z-app-fondo); }
.alerta .ic { margin-top: 2px; color: var(--z-alerta); }
.alerta.pasado .ic { color: var(--z-error); }
.alerta.info .ic { color: var(--z-app-1); }
.alerta p { margin: 0; }
.alerta > div { min-width: 0; flex: 1; }
.alerta .fila-botones { margin-top: 10px; }

/* ---------- Listas ---------- */
.lista { list-style: none; margin: 0; padding: 0; }
.lista > li + li { border-top: 1px solid var(--z-borde); }
.fila-mov { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 4px; min-height: 60px; color: var(--z-texto) !important; text-decoration: none; border-radius: 12px; }
a.fila-mov:hover { background: rgba(255,255,255,.04); }
.fila-mov .punto { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #0b0b0c; font-weight: 800; font-size: .95rem; }
.fila-mov .punto .ic { width: 22px; height: 22px; stroke-width: 2.2; }
.fila-mov .que { min-width: 0; }
.fila-mov .que b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fila-mov .que span { display: block; font-size: var(--z-t-chico); color: var(--z-texto-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fila-mov .cuanto { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fila-mov .cuanto small { display: block; font-weight: 500; font-size: var(--z-t-chico); color: var(--z-texto-3); }
.dia-titulo { margin: 14px 0 2px; font-size: var(--z-t-chico); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--z-texto-3); display: flex; justify-content: space-between; gap: 8px; }
.vacio { padding: 26px 16px; text-align: center; color: var(--z-texto-2); border: 1px dashed var(--z-borde-fuerte); border-radius: var(--z-radio-grande); }
.vacio > * + * { margin-top: 12px; }

/* Fila simple con nombre y número a la derecha */
.fila-dato { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; }
.fila-dato > :first-child { min-width: 0; }
.fila-dato b { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Cuentas ---------- */
.cuentas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.cuenta { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; min-height: 92px; border-radius: 18px; border: 1px solid var(--z-borde); background: var(--z-superficie); color: var(--z-texto) !important; text-decoration: none; }
a.cuenta:hover { border-color: var(--z-borde-fuerte); }
.cuenta .cuenta-cab { display: flex; gap: 8px; align-items: center; color: var(--z-texto-2); font-weight: 600; min-width: 0; }
.cuenta .cuenta-cab span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cuenta .cuenta-saldo { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cuenta .cuenta-pie { font-size: var(--z-t-chico); color: var(--z-texto-3); }
.cuenta.tarjeta { background: linear-gradient(135deg, color-mix(in srgb, var(--z-app-2) 20%, var(--z-superficie)), var(--z-superficie) 70%); }
.cuenta.archivada { opacity: .6; }

/* ---------- Formulario de anotar ---------- */
.segmento { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; border-radius: 999px; background: var(--z-superficie); border: 1px solid var(--z-borde); }
.segmento button, .segmento a { min-height: 46px; border: 0; border-radius: 999px; background: transparent; color: var(--z-texto-2); font: 600 var(--z-t-base)/1.1 var(--z-sans); cursor: pointer; display: grid; place-items: center; text-decoration: none; padding: 4px 8px; text-align: center; }
.segmento [aria-pressed="true"], .segmento [aria-current="page"] { background: var(--z-superficie-2); color: var(--z-texto); box-shadow: inset 0 0 0 2px var(--z-borde-fuerte); }
.segmento [data-tipo="gasto"][aria-pressed="true"] { box-shadow: inset 0 0 0 2px #d95926; }
.segmento [data-tipo="ingreso"][aria-pressed="true"] { box-shadow: inset 0 0 0 2px #199e70; }
.segmento [data-tipo="transferencia"][aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--z-app-2); }

.monto-caja { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: var(--z-radio-grande); border: 2px solid var(--z-borde-fuerte); background: var(--z-superficie); }
.monto-caja:focus-within { border-color: var(--z-app-1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--z-app-1) 25%, transparent); }
.monto-caja .signo { font-size: 1.8rem; font-weight: 700; color: var(--z-texto-3); }
.monto-caja input { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; color: var(--z-texto); font: 700 clamp(2rem, 10vw, 2.6rem)/1.2 var(--z-sans); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; padding: 6px 0; }
.monto-caja input:focus { outline: none; }
.monto-caja select { border: 0; background: var(--z-superficie-2); color: var(--z-texto); font: 600 var(--z-t-base) var(--z-sans); border-radius: 12px; min-height: 44px; padding: 0 10px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--z-borde); background: rgba(255,255,255,.03); color: var(--z-texto); font: 600 var(--z-t-base)/1.15 var(--z-sans); cursor: pointer; text-align: left; max-width: 100%; text-decoration: none; }
.chip:hover { border-color: var(--z-borde-fuerte); }
.chip[aria-pressed="true"] { border-color: var(--z-app-1); background: var(--z-app-fondo); }
.chip .bolita { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.chip .ic { width: 20px; height: 20px; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.chips-scroll .chip { flex-shrink: 0; }
.chip-mas { border-style: dashed; color: var(--z-texto-2); }

.dos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 420px) { .dos.apilar { grid-template-columns: minmax(0, 1fr); } }
select.z-entrada { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--z-texto-2) 50%), linear-gradient(135deg, var(--z-texto-2) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
input[type="date"].z-entrada { color-scheme: dark; }
.extra { border: 1px solid var(--z-borde); border-radius: var(--z-radio); padding: 0 16px; }
.extra summary { min-height: 52px; display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; list-style: none; }
.extra summary::-webkit-details-marker { display: none; }
.extra summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--z-texto-2); border-bottom: 2px solid var(--z-texto-2); transform: rotate(45deg); transition: transform .2s; }
.extra[open] summary::after { transform: rotate(-135deg); }
.extra[open] { padding-bottom: 16px; }
.extra > div > * + * { margin-top: 14px; }
.cuotas-info { font-size: var(--z-t-chico); color: var(--z-texto-2); margin: 0; }

.fila-botones { display: flex; flex-wrap: wrap; gap: 10px; }
.fila-botones > .z-btn { flex: 1 1 auto; }
.atajos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 8px; }
.atajo { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 64px; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--z-borde); background: var(--z-superficie); color: var(--z-texto); font: 600 var(--z-t-base)/1.2 var(--z-sans); cursor: pointer; text-align: left; }
.atajo:hover { border-color: var(--z-app-1); }
.atajo small { color: var(--z-texto-3); font-weight: 500; font-size: var(--z-t-chico); }

/* ---------- Gráficos ---------- */
.g-anillo { width: min(240px, 70vw); height: auto; display: block; margin: 0 auto; }
.g-centro { fill: var(--z-texto); font: 700 20px var(--z-sans); letter-spacing: -0.5px; }
.g-centro-sub { fill: var(--z-texto-3); font: 500 12px var(--z-sans); }
.g-porcion { cursor: pointer; transition: opacity .15s; }
.g-anillo:hover .g-porcion:not(:hover) { opacity: .55; }
.g-porcion:focus-visible { outline: none; opacity: 1; stroke: var(--z-texto); stroke-width: 2; }
.g-barras { width: 100%; height: auto; max-height: 280px; display: block; overflow: visible; }
.g-base { stroke: var(--z-borde-fuerte); stroke-width: 1; }
.g-guia { stroke: var(--z-borde); stroke-width: 1; stroke-dasharray: 3 4; }
.g-eje { fill: var(--z-texto-3); font: 500 11px var(--z-sans); }
.g-mes { cursor: default; }
.g-mes:hover rect, .g-mes:focus-visible rect { fill: rgba(255,255,255,.05); }
.g-mes.g-actual .g-eje { fill: var(--z-texto); font-weight: 700; }
.g-mes:focus-visible { outline: none; }
.leyenda { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.leyenda li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 4px; border-radius: 10px; }
.leyenda li + li { border-top: 1px solid var(--z-borde); }
.leyenda .bolita { width: 12px; height: 12px; border-radius: 4px; }
.leyenda .nombre { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leyenda .pct { color: var(--z-texto-3); font-size: var(--z-t-chico); font-variant-numeric: tabular-nums; min-width: 3.2em; text-align: right; }
.leyenda b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.leyenda a { color: inherit; text-decoration: none; display: contents; }
.leyenda-barras { display: flex; gap: 16px; flex-wrap: wrap; font-size: var(--z-t-chico); color: var(--z-texto-2); }
.leyenda-barras span { display: inline-flex; gap: 8px; align-items: center; }
.leyenda-barras i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.torta-caja { display: grid; gap: 16px; }
@media (min-width: 640px) { .torta-caja { grid-template-columns: 240px minmax(0, 1fr); align-items: center; } }

.g-avance { height: 10px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.g-avance span { display: block; height: 100%; border-radius: 999px; background: #199e70; transition: width .4s var(--z-ease); }
.g-cerca span { background: #c98500; }
.g-pasado span { background: #e5484d; }
.g-meta span { background: linear-gradient(90deg, var(--z-app-2), var(--z-app-1)); }
.estado-txt { font-size: var(--z-t-chico); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.estado-txt.bien { color: var(--z-ok); }
.estado-txt.cerca { color: var(--z-alerta); }
.estado-txt.pasado { color: var(--z-error); }
.estado-txt .ic { width: 16px; height: 16px; }

.tabla { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tabla th, .tabla td { padding: 10px 6px; text-align: right; border-bottom: 1px solid var(--z-borde); }
.tabla th:first-child, .tabla td:first-child { text-align: left; }
.tabla th { font-size: var(--z-t-chico); color: var(--z-texto-3); font-weight: 600; }
.tabla td:first-child { max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sube { color: var(--c-gasto); }
.baja { color: var(--c-ingreso); }

/* ---------- Filtros ---------- */
.buscador { display: flex; gap: 8px; }
.buscador .z-entrada { flex: 1; min-width: 0; }
.buscador .z-btn { padding-inline: 16px; flex-shrink: 0; }
.filtros-caja { padding: 16px; border-radius: var(--z-radio-grande); border: 1px solid var(--z-borde); background: var(--z-superficie); }
.filtros-caja > * + * { margin-top: 12px; }
.total-filtro { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--z-radio); background: rgba(255,255,255,.04); }

/* ---------- Mensajito de abajo (con Deshacer) ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  width: min(92vw, 520px); display: flex; align-items: center; gap: 12px;
  padding: 12px 14px 12px 18px; border-radius: 18px; background: #f5f3ee; color: #111; font-weight: 600;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.9); transition: opacity .2s, transform .25s var(--z-ease);
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast.error { background: #fde2de; color: #5b0f08; }
.toast.aviso { background: #fff1c9; color: #3d2a00; }
.toast p { margin: 0; flex: 1; min-width: 0; }
.toast button { flex-shrink: 0; min-height: 44px; padding: 6px 14px; border-radius: 999px; border: 2px solid currentColor; background: transparent; color: inherit; font: 700 var(--z-t-base) var(--z-sans); cursor: pointer; }

/* ---------- Diálogo ---------- */
#dialogo { width: min(94vw, 480px); max-height: 88dvh; overflow: auto; padding: 0; border: 1px solid var(--z-borde-fuerte); border-radius: var(--z-radio-grande); background: var(--z-fondo-2); color: var(--z-texto); }
#dialogo::backdrop { background: rgba(0,0,0,.7); }
#dialogo .espacio { padding: 22px 20px; }
#dialogo .espacio > * + * { margin-top: 14px; }
#dialogo h2 { margin: 0; font-size: var(--z-t-h3); line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; }

/* ---------- Candado (PIN) ---------- */
.candado { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px 16px; background: var(--z-negro); }
.candado-caja { width: min(100%, 360px); text-align: center; }
.candado-caja > * + * { margin-top: 16px; }
.candado-caja img { margin-inline: auto; border-radius: 22%; }
.candado-caja form { text-align: left; }
.candado-caja form > * + * { margin-top: 10px; }
.pin { text-align: center; font-size: 1.8rem; letter-spacing: .4em; font-variant-numeric: tabular-nums; }
body.bloqueada #principal, body.bloqueada .barra, body.bloqueada .cabecera { visibility: hidden; }

/* ---------- Bienvenida ---------- */
.bienvenida { padding-top: 12px; }
.bienvenida .z-icono-app { margin-bottom: 4px; }
.beneficios { display: grid; gap: 10px; }
.beneficio { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 16px; border-radius: 18px; background: var(--z-superficie); border: 1px solid var(--z-borde); }
.beneficio .ic { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--z-app-fondo); color: var(--z-app-1); }
.beneficio b { display: block; }
.beneficio span { color: var(--z-texto-2); font-size: var(--z-t-chico); }
.demo-franja { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 16px; margin: 8px 0 4px; border-radius: var(--z-radio); background: var(--z-app-fondo); border: 1px solid color-mix(in srgb, var(--z-app-1) 40%, transparent); }
.demo-franja p { margin: 0; font-weight: 600; }

/* Accesos del menú interno (Más) */
.accesos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 8px; }
.acceso { display: flex; gap: 12px; align-items: center; min-height: 60px; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--z-borde); background: var(--z-superficie); color: var(--z-texto) !important; text-decoration: none; font-weight: 600; }
.acceso .ic { color: var(--z-app-1); }
.acceso small { display: block; font-weight: 500; color: var(--z-texto-3); font-size: var(--z-t-chico); }

.legal-chico { font-size: var(--z-t-chico); color: var(--z-texto-3); }
.etiqueta-pro { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--z-app-fondo); color: var(--z-app-1); font-size: .72rem; font-weight: 800; letter-spacing: .06em; vertical-align: middle; }

@media (prefers-reduced-motion: reduce) { .toast, .g-avance span, .g-porcion { transition: none; } }

/* Presupuestos: cada caja es un link al detalle de la categoría */
a.caja.presu { display: block; color: inherit; text-decoration: none; }
a.caja.presu:hover { border-color: color-mix(in srgb, var(--z-app-1) 40%, transparent); }
.fila-dato .tope { width: 9.5em; max-width: 45%; text-align: right; }
.oculto-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.con-candado { overflow: hidden; }
body.z.sin-barra { padding-bottom: env(safe-area-inset-bottom, 0px); }
