/* ===== Finanzas familiares · tema futurista ===== */
:root {
  color-scheme: light;
  --bg: #f6f8fc; --bg2: #eef2fa;
  --card: rgba(255,255,255,.72); --card-solid: #ffffff; --card-hi: rgba(99,102,241,.06);
  --ink: #0b1226; --muted: #64708f; --line: rgba(99,115,180,.16); --line-hi: rgba(99,115,180,.32);
  --accent: #0891b2; --accent2: #7c3aed; --accent-2: rgba(6,182,212,.10);
  --good: #059669; --warn: #d97706; --bad: #e11d48;
  --good-bg: rgba(16,185,129,.10); --warn-bg: rgba(245,158,11,.12); --bad-bg: rgba(244,63,94,.09);
  --grad: linear-gradient(135deg, #06b6d4 0%, #6366f1 55%, #a855f7 100%);
  --glow: 0 6px 24px rgba(99,102,241,.28), 0 2px 6px rgba(6,182,212,.18);
  --radius: 18px; --shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 28px rgba(30,41,90,.07);
  --font-d: "Space Grotesk", "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 15px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 85% -10%, rgba(99,102,241,.14), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(6,182,212,.12), transparent 60%),
    radial-gradient(800px 600px at 60% 120%, rgba(168,85,247,.10), transparent 60%);
  background-attachment: fixed; min-height: 100vh;
}
body::before { /* rejilla sutil */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .35;
  background-image: linear-gradient(rgba(99,115,180,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(99,115,180,.07) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
}
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { font-family: var(--font-d); line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.01em; }
h2 { font-size: 1.05rem; font-weight: 600; } h3 { font-size: .95rem; }
.shell { display: flex; min-height: 100vh; position: relative; z-index: 1; }
.side { display: none; }
main { flex: 1; min-width: 0; padding: 0 16px 120px; max-width: 1100px; margin: 0 auto; }

/* cabecera */
.top { display: flex; align-items: center; gap: 10px; padding: 14px 0 12px; position: sticky; top: 0; z-index: 6;
  background: linear-gradient(rgba(246,248,252,.95) 70%, transparent); }
.top h1 { font-size: 1.3rem; flex: 1; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--card); border: 1px solid var(--line); color: var(--ink); cursor: pointer; }
.icon-btn.primary { background: var(--grad); border: 0; color: #fff; box-shadow: var(--glow); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-d); font-weight: 700; color: var(--ink); }
.logo { width: 34px; height: 34px; border-radius: 11px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; box-shadow: var(--glow); flex-shrink: 0; }

/* barra inferior + botón cámara */
.bottom { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 10;
  display: flex; align-items: center; padding: 6px; border-radius: 22px;
  background: rgba(255,255,255,.82); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(30,41,90,.14); }
.bottom a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 5px; font-size: 10.5px; color: var(--muted); border-radius: 14px; position: relative; }
.bottom a.on { color: var(--accent); }
.bottom a.on::after { content: ""; position: absolute; bottom: 1px; width: 18px; height: 3px; border-radius: 3px; background: var(--grad); }
.bottom .fab { flex: 0 0 68px; margin-top: -30px; padding: 0; }
.fab-in { width: 62px; height: 62px; border-radius: 20px; display: grid; place-items: center; background: var(--grad); color: #fff;
  box-shadow: 0 0 0 4px #fff, 0 10px 30px rgba(34,211,238,.45); animation: pulse 2.8s ease-in-out infinite; }
.bottom .fab > span:last-child { margin-top: 4px; color: var(--ink); font-weight: 600; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px #fff, 0 10px 30px rgba(34,211,238,.4); } 50% { box-shadow: 0 0 0 4px #fff, 0 10px 44px rgba(167,139,250,.65); } }

/* hojas (menú y registro rápido) */
.sheet { display: none; position: fixed; inset: 0; background: rgba(15,23,42,.35); backdrop-filter: blur(4px); z-index: 30; }
.menu-open #menu, .quick-open #quick { display: flex; align-items: flex-end; }
.sheet-in { background: var(--card-solid); border: 1px solid var(--line); width: 100%; border-radius: 26px 26px 0 0;
  padding: 10px 14px calc(18px + env(safe-area-inset-bottom)); animation: up .22s ease-out; }
.sheet-in::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line-hi); margin: 0 auto 12px; }
.sheet-in h3 { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin: 4px 4px 10px; font-family: inherit; }
.sheet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sheet-grid a { display: flex; gap: 10px; align-items: center; padding: 14px 12px; border-radius: 14px; color: var(--ink); background: var(--card); border: 1px solid var(--line); }
@keyframes up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.qa { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qa a { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.qa a .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.qa a small { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.qa a.big { grid-column: 1 / -1; flex-direction: row; align-items: center; background: linear-gradient(135deg, rgba(6,182,212,.10), rgba(168,85,247,.10)); border-color: rgba(99,102,241,.3); }
.qa a.big .ic { background: var(--grad); color: #fff; width: 52px; height: 52px; border-radius: 16px; box-shadow: var(--glow); }
.ic.g { background: var(--good-bg); color: var(--good); } .ic.r { background: var(--bad-bg); color: var(--bad); }
.ic.c { background: var(--accent-2); color: var(--accent); } .ic.v { background: rgba(167,139,250,.14); color: var(--accent2); }

@media (min-width: 900px) {
  .side { display: flex; flex-direction: column; width: 244px; flex-shrink: 0; padding: 20px 14px; position: sticky; top: 0; height: 100vh;
    background: rgba(255,255,255,.75); border-right: 1px solid var(--line); backdrop-filter: blur(16px); }
  .side nav { display: flex; flex-direction: column; gap: 3px; margin-top: 24px; flex: 1; }
  .side nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px; color: var(--muted); }
  .side nav a:hover { background: var(--card); color: var(--ink); }
  .side nav a.on { background: var(--accent-2); color: var(--ink); box-shadow: inset 3px 0 0 #6366f1; color: #4f46e5; }
  .side nav a.scan { background: var(--grad); color: #fff; font-weight: 600; margin-bottom: 10px; box-shadow: var(--glow); }
  .side-foot { font-size: 13px; color: var(--muted); padding: 8px 12px; }
  .bottom, .m-only { display: none !important; }
  main { padding: 0 36px 48px; }
}
.dot { margin-left: auto; background: var(--bad); color: #fff; font-size: 11px; border-radius: 10px; padding: 0 7px; box-shadow: 0 2px 8px rgba(225,29,72,.35); }
.bottom .dot { position: absolute; top: 2px; right: calc(50% - 20px); margin: 0; font-size: 10px; padding: 0 5px; }

/* tarjetas */
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: 1fr; } .g3 { grid-template-columns: 1fr 1fr; } .g4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 700px) { .g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--card); border: 1px solid rgba(255,255,255,.9); outline: 1px solid var(--line); outline-offset: -1px; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); min-width: 0; }
.card + .card, .grid + .card, .card + .grid, .grid + .grid, .qa + .card, .card + .qa, .grid + .qa, .qa + .grid { margin-top: 12px; }
.grid > .card { margin-top: 0 !important; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.card-h h2 { margin: 0; }
.kpi .l { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.kpi .v { font-family: var(--font-d); font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpi .s { font-size: 12.5px; color: var(--muted); }
.hero { position: relative; overflow: hidden; border-color: rgba(34,211,238,.3);
  background: linear-gradient(140deg, rgba(6,182,212,.10), rgba(255,255,255,.85) 50%, rgba(168,85,247,.10)); }
.hero::after { content: ""; position: absolute; width: 220px; height: 220px; right: -60px; top: -80px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,.22), transparent 70%); filter: blur(10px); }
.hero .big { font-family: var(--font-d); font-size: 2.3rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin: 4px 0 8px;
  background: linear-gradient(90deg, #0b1226, #4f46e5 70%, #0891b2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pos { color: var(--good); } .neg { color: var(--bad); } .muted { color: var(--muted); } .small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; font-family: var(--font-d); }

/* anillo de equilibrio */
.score { display: flex; align-items: center; gap: 16px; }
.ring { --p: 50; --c: var(--accent); width: 92px; height: 92px; border-radius: 50%; flex-shrink: 0; position: relative;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(99,115,180,.12) 0); display: grid; place-items: center;
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--c) 55%, transparent)); }
.ring b { width: 74px; height: 74px; border-radius: 50%; background: var(--card-solid); display: grid; place-items: center; font-family: var(--font-d); font-size: 1.6rem; }

/* listas */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .t { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .d { font-size: 12.5px; color: var(--muted); }
.av { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; font-family: var(--font-d); font-weight: 700; font-size: 15px; }
.av.g { background: var(--good-bg); color: var(--good); } .av.r { background: var(--bad-bg); color: var(--bad); } .av.n { background: var(--card-hi); color: var(--muted); }
.tag { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 20px; background: var(--card-hi); color: var(--muted); white-space: nowrap; border: 1px solid var(--line); }
.tag.bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; } .tag.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.tag.good { background: var(--good-bg); color: var(--good); border-color: transparent; } .tag.acc { background: var(--accent-2); color: var(--accent); border-color: transparent; }
.bar { height: 8px; border-radius: 6px; background: rgba(99,115,180,.12); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; border-radius: 6px; }
.bar .good { background: linear-gradient(90deg, #10b981, #34d399); box-shadow: 0 0 10px rgba(52,211,153,.5); }
.bar .warn { background: linear-gradient(90deg, #f59e0b, #fbbf24); box-shadow: 0 0 10px rgba(251,191,36,.5); }
.bar .bad { background: linear-gradient(90deg, #f43f5e, #fb7185); box-shadow: 0 0 10px rgba(251,113,133,.5); }
.bar .acc { background: var(--grad); box-shadow: 0 0 10px rgba(34,211,238,.5); }
.alert { padding: 10px 12px 10px 14px; border-radius: 12px; margin-bottom: 8px; font-size: 14px; border-left: 3px solid; }
.alert.bad { background: var(--bad-bg); border-color: var(--bad); } .alert.warn { background: var(--warn-bg); border-color: var(--warn); }
.alert.good { background: var(--good-bg); border-color: var(--good); } .alert.info { background: var(--accent-2); border-color: var(--accent); }
.flash { padding: 11px 14px; border-radius: 12px; margin-bottom: 14px; background: var(--good-bg); color: var(--good); border: 1px solid rgba(52,211,153,.3); animation: up .25s ease-out; }
.flash.err { background: var(--bad-bg); color: var(--bad); border-color: rgba(251,113,133,.3); }
.empty { text-align: center; color: var(--muted); padding: 22px 8px; }

/* tablas */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.scroll { overflow-x: auto; }

/* formularios */
form.f { display: grid; gap: 12px; }
.row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.row.r3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 520px) { .row.r3 { grid-template-columns: 1fr 1fr; } }
label { display: grid; gap: 5px; font-size: 12.5px; color: var(--muted); }
label.chk { display: flex; align-items: center; gap: 8px; color: var(--ink); }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; min-height: 46px; transition: border-color .15s, box-shadow .15s; }
select option, select optgroup { background: var(--card-solid); color: var(--ink); }
input[type=checkbox] { width: 18px; min-height: 18px; accent-color: var(--accent); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(6,182,212,.18); }
input.amount { font-family: var(--font-d); font-size: 2rem; font-weight: 600; text-align: center; min-height: 70px; letter-spacing: -.02em; }
.seg { display: flex; background: rgba(99,115,180,.07); border: 1px solid var(--line); border-radius: 14px; padding: 4px; gap: 4px; }
.seg label { flex: 1; text-align: center; padding: 9px; border-radius: 10px; cursor: pointer; color: var(--muted); font-size: 14px; display: block; }
.seg input { display: none; }
.seg label:has(input:checked) { background: var(--grad); color: #fff; font-weight: 600; box-shadow: var(--glow); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: inherit; font-weight: 600; padding: 11px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; white-space: nowrap; transition: transform .1s, box-shadow .15s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--grad); border: 0; color: #fff; box-shadow: var(--glow); }
.btn.sm { padding: 7px 13px; font-size: 13.5px; }
.btn.block { width: 100%; padding: 15px; font-size: 16px; }
.btn.link { border: 0; background: none; color: var(--accent); padding: 4px 6px; font-weight: 500; box-shadow: none; }
.btn.danger { color: var(--bad); }
.actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.inline { display: inline; }
details.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 16px; margin-bottom: 12px; backdrop-filter: blur(14px); }
details.box summary { cursor: pointer; font-weight: 600; color: var(--accent); list-style: none; display: flex; align-items: center; gap: 8px; }
details.box summary::-webkit-details-marker { display: none; }
details.box summary::before { content: "+"; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; }
details.box[open] summary::before { content: "−"; }
details.box[open] summary { margin-bottom: 14px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters > * { flex: 1 1 140px; }

/* chat */
.chat { display: flex; flex-direction: column; gap: 12px; padding-bottom: 8px; }
.msg { max-width: 92%; padding: 11px 15px; border-radius: 18px; line-height: 1.55; overflow-wrap: anywhere; }
.msg.user { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 5px; font-weight: 500; }
.msg.assistant { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 5px; backdrop-filter: blur(14px); }
.msg p { margin: 0 0 .6em; } .msg p:last-child { margin: 0; }
.msg ul, .msg ol { margin: .2em 0 .6em; padding-left: 1.3em; }
.msg h3, .msg h4 { margin: .6em 0 .3em; font-size: 1rem; font-family: var(--font-d); }
.msg table { border-collapse: collapse; font-size: 13.5px; margin: .4em 0; }
.msg td, .msg th { border: 1px solid var(--line); padding: 4px 8px; }
.msg .acc { font-size: 12.5px; background: var(--good-bg); color: var(--good); border-radius: 10px; padding: 6px 10px; margin-top: 8px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; }
.chips button { flex-shrink: 0; font: inherit; font-size: 13.5px; padding: 8px 13px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.composer { position: sticky; bottom: calc(92px + env(safe-area-inset-bottom)); display: flex; gap: 8px; padding: 8px 0; }
@media (min-width: 900px) { .composer { bottom: 0; } }
.composer textarea { min-height: 48px; max-height: 160px; resize: none; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); }
.typing { color: var(--muted); font-size: 13.5px; }
.typing::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: var(--accent); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.chart-box { position: relative; height: 260px; }

/* escáner de tickets */
.scan-hero { text-align: center; padding: 26px 18px; }
.scan-ico { width: 96px; height: 96px; margin: 6px auto 16px; border-radius: 28px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 12px 40px rgba(99,102,241,.35); }
.scan-box { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid rgba(34,211,238,.4); max-height: 60vh; display: flex; justify-content: center; background: #000; }
.scan-box img { max-width: 100%; max-height: 60vh; object-fit: contain; display: block; }
.scan-box.busy::after { content: ""; position: absolute; left: 0; right: 0; height: 3px; top: 0; background: var(--accent);
  box-shadow: 0 0 18px 6px rgba(34,211,238,.7); animation: laser 1.6s ease-in-out infinite alternate; }
.scan-box.busy::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(34,211,238,.08), rgba(167,139,250,.08)); }
@keyframes laser { from { top: 2%; } to { top: 97%; } }
.scan-status { text-align: center; margin: 14px 0; color: var(--muted); }
.ok-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 20px; background: var(--good-bg); color: var(--good); font-weight: 600; font-size: 13.5px; }
.items { font-size: 13.5px; }
.items li { padding: 6px 0 !important; }
.hidden { display: none !important; }

/* login / instalación */
.auth { max-width: 400px; margin: 9vh auto; padding: 0 16px; position: relative; z-index: 1; }
.auth .card { padding: 26px; }
.auth h1 { font-size: 1.4rem; }
.row-acts { }
@media (max-width: 640px) { .row-acts { display: none; } li.tap { cursor: pointer; } }
.list li.wrap { flex-wrap: wrap; } .list li.wrap .actions { width: 100%; }

/* mensajes de ánimo */
.animo { background: linear-gradient(120deg, rgba(16,185,129,.10), rgba(6,182,212,.10) 50%, rgba(168,85,247,.10)); border-color: rgba(16,185,129,.25); margin-bottom: 12px; }
.animo-logro { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.animo-logro span { font-size: 1.4rem; line-height: 1.2; }
.animo-frase { font-family: var(--font-d); font-size: 1.02rem; color: var(--ink); opacity: .85; font-style: italic; }
.auth .animo-frase { text-align: center; margin-top: 18px; font-size: .95rem; color: var(--muted); }
.m-edit { font-size: 15px; padding: 4px; } @media (min-width: 641px) { .m-edit { display: none; } }
.animo .ref { font-style: normal; font-size: .85em; color: var(--accent); white-space: nowrap; }
.grat-form { display: flex; gap: 8px; margin-top: 12px; } .grat-form input { min-height: 40px; padding: 8px 12px; font-size: 15px; background: rgba(255,255,255,.75); }

/* panel: tarjetas desplegables y saldos por cuenta */
.kpi-btn { text-align: left; font: inherit; color: inherit; cursor: pointer; width: 100%; transition: transform .1s, box-shadow .15s; }
.kpi-btn:hover { box-shadow: var(--glow); } .kpi-btn[aria-expanded=true] { outline: 2px solid #6366f1; outline-offset: -2px; }
.kpi-btn .chev { display: inline-block; transition: transform .2s; } .kpi-btn[aria-expanded=true] .chev { transform: rotate(180deg); }
.detalle { animation: up .2s ease-out; } .detalle h3 { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin: 4px 0 8px; font-family: inherit; }
.ctas { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 6px; position: relative; z-index: 1; }
.cta-chip { display: flex; flex-direction: column; padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.7); border: 1px solid var(--line); color: var(--ink); font-size: 12px; }
.cta-chip span { color: var(--muted); } .cta-chip b { font-family: var(--font-d); font-size: 14px; }
.qcat select { min-height: 34px; padding: 4px 10px; font-size: 13.5px; margin-top: 6px; max-width: 260px; border-color: var(--warn); }
/* menú: que nunca se salga de la pantalla (Android con barra de navegación) */
.sheet-in { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.sheet-grid a { padding: 11px 12px; font-size: 14.5px; line-height: 1.25; min-height: 52px; }
.sheet-grid a svg { flex-shrink: 0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: -10px; background: var(--card-solid); padding: 4px 0 8px; z-index: 1; }
.sheet-head h3 { margin: 0 4px; }
.sheet-close { border: 0; background: var(--card-hi); color: var(--ink); width: 34px; height: 34px; border-radius: 10px; font-size: 18px; cursor: pointer; }
.hero .big.neg { background: none; color: var(--bad); -webkit-text-fill-color: var(--bad); }
