body { padding-bottom: 150px; }
.banner { background: var(--ambar); text-align: center; padding: 8px 12px; font-size: 13px; font-weight: 600; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; margin: 22px 0 14px; } .brand img { border-radius: 50%; }
.brand.sm { margin: 0; }
.view h1 { font-size: 30px; margin: 10px 0 16px; }
.center { text-align: center; margin-top: 16px; }
.field { display: grid; gap: 5px; margin-bottom: 12px; }
.field label { font-size: 14px; color: var(--tinta-2); font-weight: 500; }
input, select { font: 600 16px "Inter"; color: var(--tinta); background: #fff; border: 1px solid var(--linea); border-radius: 12px; padding: 12px 14px; min-height: 48px; width: 100%; }
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 3px solid var(--azul); outline-offset: 1px; border-color: var(--pizarra); }
.hint { font-size: 12px; color: var(--tinta-2); }
.msg { min-height: 20px; font-size: 14px; color: var(--pizarra); margin: 4px 0 8px; } .msg.err { color: #A3341F; }
.btn.full { width: 100%; } button.btn { cursor: pointer; }
.links { margin-top: 14px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px; } a { color: var(--pizarra); }
.apphead { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; padding-bottom: 6px; }
.month input { min-height: 40px; padding: 6px 10px; font-size: 14px; width: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tab h2 { font-size: 27px; margin: 6px 0 14px; } .h3 { font-size: 18px; margin: 18px 0 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.gasto { display: grid; grid-template-columns: 1fr 96px 40px; gap: 8px; margin-bottom: 8px; }
.del { min-height: 48px; border: 0; background: transparent; font-size: 22px; color: var(--tinta-2); cursor: pointer; border-radius: 12px; }
.link { background: none; border: 0; color: var(--pizarra); font: 600 15px "Inter"; padding: 10px 0; min-height: 44px; cursor: pointer; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 12px; }
.kpis .card { padding: 14px; } .kpis b { display: block; font-size: 22px; margin-top: 4px; }
.card.blue { background: var(--azul); border: 0; } .card.paper { background: #fff; padding: 22px; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linea); font-size: 15px; } .row:last-child { border: 0; }
.bote { margin-top: 12px; } .bote .gasto { grid-template-columns: 1fr 44px; }
.bar { height: 12px; border-radius: 6px; background: var(--linea); overflow: hidden; margin: 8px 0; } .bar i { display: block; height: 100%; background: var(--pizarra); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--linea); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 14px; }
.seg button { border: 0; background: transparent; border-radius: 9px; min-height: 44px; font: 500 14px "Inter"; color: var(--tinta); cursor: pointer; }
.seg button[aria-checked="true"] { background: #fff; font-weight: 700; }
.tip { background: var(--azul); border-radius: 14px; padding: 12px 14px; margin-top: 12px; font-size: 14px; } .tip:empty { display: none; }
details summary { cursor: pointer; min-height: 28px; }
.savebar { position: fixed; left: 0; right: 0; bottom: 64px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 20px; background: rgba(245,240,237,.96); }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; height: 64px; background: var(--papel); border-top: 1px solid var(--linea); display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom); }
.tabs button { border: 0; background: none; font: 600 12px "Plex"; letter-spacing: .04em; color: var(--tinta-2); cursor: pointer; text-transform: uppercase; }
.tabs button.on { color: var(--pizarra); box-shadow: inset 0 3px 0 var(--pizarra); background: var(--azul); }
.disc { text-align: center; padding: 20px; }
svg text { font-family: "Inter"; }
@media print {
  body * { visibility: hidden; } #acuerdo, #acuerdo * { visibility: visible; }
  #acuerdo { position: absolute; left: 0; top: 0; width: 100%; border: 0; }
}
@media (prefers-reduced-motion: no-preference) { .bar i { transition: width .4s ease; } }
