@font-face {
  font-family: "Nunito"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/fonts/nunito-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Encreci - estilo "despensa fresca": crema, verde lima, íconos de línea y mascota sonriente */
:root {
  --bg: #ffffff; --card: #ffffff; --ink: #1c2b1e; --muted: #6f7b6b; --line: #e6ebd8; --field: #f4f6ec;
  --lime: #c8f533; --lime-soft: #eef9bd; --dark: #1f3a26;
  --mic: #7b61ff; --mic-glow: rgba(123, 97, 255, .45); /* el micrófono es el único botón de este color: se encuentra rápido */
  --primary: #1f3a26; --primary-ink: #ffffff; --accent: #2f7a3b;
  --good: #2e8b4f; --bad: #d6455d; --warn: #8a5a0b; --warn-soft: #fff2d3;
  --radius: 24px; --shadow: 0 1px 0 rgba(28, 43, 30, .03), 0 10px 26px rgba(70, 90, 30, .09);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #121314; --card: #1c1d1f; --ink: #f2f3ef; --muted: #a1a49b; --line: #2d2f31; --field: #242628;
    --lime-soft: #2d3120; --dark: #c8f533; --primary: #c8f533; --primary-ink: #14230f; --accent: #c8f533;
    --good: #5fdc8a; --bad: #ff7d92; --warn: #f5c15d; --warn-soft: #3a2f10; --shadow: none; }
}
:root[data-theme="dark"] { --bg: #121314; --card: #1c1d1f; --ink: #f2f3ef; --muted: #a1a49b; --line: #2d2f31; --field: #242628;
  --lime-soft: #2d3120; --dark: #c8f533; --primary: #c8f533; --primary-ink: #14230f; --accent: #c8f533;
  --good: #5fdc8a; --bad: #ff7d92; --warn: #f5c15d; --warn-soft: #3a2f10; --shadow: none; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: calc(15.5px * var(--fs, 1)); line-height: 1.45; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h2 { font-size: calc(21px * var(--fs, 1)); letter-spacing: -.01em; } h3 { font-size: calc(16px * var(--fs, 1)); }
.muted { color: var(--muted); } .small { font-size: calc(13px * var(--fs, 1)); }
.good { color: var(--good); } .bad { color: var(--bad); }
.ico { width: 22px; height: 22px; flex: none; }
.illus { width: 100%; height: 100%; color: #1c2b1e; }

.shell { max-width: 560px; margin: 0 auto; padding: 0 18px calc(118px + env(safe-area-inset-bottom)); min-height: 100vh; }

/* Encabezado */
header.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 4px; gap: 10px; }
.biznav .small { display: block; line-height: 1.1; }
.biz { font-weight: 800; font-size: calc(16px * var(--fs, 1)); display: flex; align-items: center; gap: 4px; max-width: 58vw; }
.biz span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.biz .ico { width: 16px; height: 16px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: calc(12.5px * var(--fs, 1)); font-weight: 700; padding: 8px 14px; border-radius: 99px; background: var(--lime); color: #1c2b1e; border: 0; flex: none; }
.badge .ico { width: 15px; height: 15px; }
.hello { font-size: calc(28px * (1 + (var(--fs, 1) - 1) * 0.5)); font-weight: 800; letter-spacing: -.02em; margin: 12px 0 12px; line-height: 1.12; }

/* Barra para registrar (como un buscador) */
.search { display: flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 5px 5px 5px 16px; box-shadow: var(--shadow); }
.search > .ico { color: var(--muted); width: 20px; height: 20px; }
.search input { border: 0; background: transparent; min-height: 44px; padding: 0 6px; flex: 1; min-width: 0; border-radius: 0; font-size: calc(15px * var(--fs, 1)); }
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--dark); }
.round { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; flex: none; background: var(--lime-soft); color: var(--dark); }
.round .ico { width: 20px; height: 20px; }
.round.go { background: var(--primary); color: var(--primary-ink); }
.round.rec { background: var(--bad); color: #fff; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.examples { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 2px; scrollbar-width: none; }
.examples::-webkit-scrollbar { display: none; }
.examples button { flex: none; border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 99px; padding: 6px 13px; font-size: calc(13px * var(--fs, 1)); font-weight: 600; }

/* Atajos */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0 14px; }
.tile { position: relative; border: 1px solid var(--line); background: var(--card); border-radius: 22px; padding: 12px 4px 10px; display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: calc(12.5px * var(--fs, 1)); font-weight: 700; color: var(--ink); }
.tile .ti { width: 44px; height: 44px; border-radius: 16px; display: grid; place-items: center; background: var(--lime-soft); color: var(--dark); }
.tile .ti .ico { width: 24px; height: 24px; }
.tile .lk { position: absolute; top: 7px; right: 9px; width: 14px; height: 14px; color: var(--muted); }

/* Tarjeta principal lima */
.hero { position: relative; border-radius: 30px; padding: 18px; margin-bottom: 14px; color: #1c2b1e; background: var(--lime); overflow: hidden; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hero .lbl { font-size: calc(14px * var(--fs, 1)); font-weight: 700; opacity: .75; }
.hero .val { font-size: calc(40px * (1 + (var(--fs, 1) - 1) * 0.5)); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin-top: 2px; }
.hero .hint { font-size: calc(13px * var(--fs, 1)); opacity: .7; margin-top: 4px; }
.hero-art { width: 104px; height: 104px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; padding: 8px; }
.hero-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.mini { background: rgba(255, 255, 255, .92); border-radius: 20px; padding: 11px 13px; }
.mini span { display: block; font-size: calc(12.5px * var(--fs, 1)); color: #5b6a57; font-weight: 600; }
.mini b { display: block; font-size: calc(19px * var(--fs, 1)); letter-spacing: -.01em; }
.mini small { color: #6f7b6b; font-size: calc(11.5px * var(--fs, 1)); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.card.flat { box-shadow: none; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.sec { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 10px; }
.sec h3 { font-size: calc(17px * var(--fs, 1)); font-weight: 800; }

.tabs { display: flex; gap: 4px; background: var(--card); border: 1px solid var(--line); padding: 4px; border-radius: 99px; margin-bottom: 14px; }
.tabs button { flex: 1; border: 0; background: transparent; padding: 9px 4px; border-radius: 99px; font-weight: 700; color: var(--muted); min-height: 40px; font-size: calc(14px * var(--fs, 1)); }
.tabs button.on { background: var(--primary); color: var(--primary-ink); }

.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.kpi .lbl { font-size: calc(13px * var(--fs, 1)); color: var(--muted); } .kpi .val { font-size: calc(26px * (1 + (var(--fs, 1) - 1) * 0.5)); font-weight: 800; letter-spacing: -.02em; }

.bars { display: flex; align-items: flex-end; gap: 9px; height: 120px; padding-top: 8px; margin-top: 6px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 5px; }
.bars .col { width: 100%; max-width: 30px; border-radius: 12px; background: var(--lime-soft); min-height: 6px; }
.bars .b:last-child .col { background: var(--lime); }
.bars .d { font-size: calc(11.5px * var(--fs, 1)); color: var(--muted); font-weight: 700; }

.btn { border: 0; border-radius: 99px; padding: 13px 22px; font-weight: 800; min-height: 50px; background: var(--primary); color: var(--primary-ink); display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:active { transform: scale(.98); }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.soft { background: var(--lime-soft); color: var(--dark); }
.btn.lime { background: var(--lime); color: #1c2b1e; }
.btn.danger { background: transparent; color: var(--muted); border: 0; padding: 6px 10px; min-height: 36px; }
.btn.sm { padding: 7px 15px; min-height: 36px; font-size: calc(14px * var(--fs, 1)); }
.btn:disabled { opacity: .45; }
.btn .ico { width: 20px; height: 20px; }

label { display: block; font-size: calc(13px * var(--fs, 1)); font-weight: 700; color: var(--muted); margin-bottom: 5px; }
input, select { width: 100%; padding: 12px 16px; border: 1.5px solid transparent; border-radius: 18px; background: var(--field); min-height: 50px; }
input:focus, select:focus { outline: none; border-color: var(--dark); background: var(--card); }
button:focus-visible { outline: 3px solid var(--lime); outline-offset: 1px; }
.field + .field { margin-top: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: var(--card); border-radius: 99px; padding: 8px 16px; font-weight: 700; min-height: 40px; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.chip .ico { width: 17px; height: 17px; }
.chip.on { background: var(--primary); border-color: transparent; color: var(--primary-ink); }

/* Productos */
.prods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.prod { position: relative; text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 24px; padding: 12px; min-height: 132px; display: flex; flex-direction: column; }
.prod:active { transform: scale(.98); }
.prod .pi { width: 46px; height: 46px; border-radius: 50%; background: var(--lime-soft); display: grid; place-items: center; color: var(--dark); margin-bottom: 8px; }
.prod .n { font-weight: 800; line-height: 1.2; padding-right: 30px; }
.prod .p { color: var(--accent); font-weight: 800; margin-top: auto; padding-top: 6px; }
.prod .add { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; }
.prod .add .ico { width: 18px; height: 18px; }

.list > .item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list > .item:first-child { padding-top: 2px; }
.list > .item:last-child { border-bottom: 0; padding-bottom: 2px; }
.ri { width: 42px; height: 42px; border-radius: 15px; display: grid; place-items: center; background: var(--lime-soft); color: var(--dark); flex: none; }
.ri .ico { width: 22px; height: 22px; }
.amt { font-weight: 800; white-space: nowrap; }
.pill { display: inline-block; font-size: calc(11.5px * var(--fs, 1)); font-weight: 800; padding: 2px 9px; border-radius: 99px; background: var(--lime-soft); color: var(--dark); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }

.empty { text-align: center; color: var(--muted); padding: 18px 8px 8px; }
.empty .art { width: 132px; height: 132px; margin: 0 auto 8px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; padding: 14px; }
.empty b { display: block; color: var(--ink); font-size: calc(17px * var(--fs, 1)); margin-bottom: 2px; }
.empty .btn { margin-top: 14px; }

.lock { background: var(--lime-soft); color: var(--dark); border-radius: 20px; padding: 13px 14px; font-size: calc(14px * var(--fs, 1)); font-weight: 700; display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.lock span { display: flex; align-items: center; gap: 8px; }
.lock .ico { width: 18px; height: 18px; }
.alert { background: var(--warn-soft); color: var(--warn); border-radius: 20px; padding: 12px 14px; font-size: calc(14px * var(--fs, 1)); margin-bottom: 14px; }

.menu-item { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 24px; padding: 14px 16px; margin-bottom: 12px; }
.menu-item .chev { color: var(--muted); width: 20px; height: 20px; }
.backbtn { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); display: grid; place-items: center; color: var(--ink); flex: none; }

/* Menú inferior: el activo va en círculo lima */
nav.bottom { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; z-index: 5; padding: 0 12px calc(10px + env(safe-area-inset-bottom)); pointer-events: none; }
nav.bottom .in { display: flex; width: 100%; max-width: 536px; background: var(--card); border: 1px solid var(--line); border-radius: 36px; padding: 8px 8px 6px; pointer-events: auto; box-shadow: 0 14px 36px rgba(40, 60, 20, .18); }
nav.bottom .in button { flex: 1; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); font-size: calc(11px * var(--fs, 1)); font-weight: 700; padding: 0 0 2px; }
nav.bottom .ni { width: 48px; height: 44px; border-radius: 22px; display: grid; place-items: center; transition: background .15s; }
nav.bottom .ni .ico { width: 24px; height: 24px; }
nav.bottom .in button.on-m { color: var(--ink); }
nav.bottom .in button.on-m .ni { background: var(--lime); color: #1c2b1e; }

.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.modal { background: var(--bg); width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 32px 32px 0 0; padding: 22px 18px calc(24px + env(safe-area-inset-bottom)); }
.modal::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 5px; background: var(--line); margin: -10px auto 14px; }
@media (min-width: 600px) { .modal-bg { align-items: center; } .modal { border-radius: 32px; } }

.plan { border: 2px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--card); margin-bottom: 12px; }
.plan.cur { border-color: var(--dark); }
.plan ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: calc(14px * var(--fs, 1)); }
.plan .price { font-size: calc(24px * (1 + (var(--fs, 1) - 1) * 0.5)); font-weight: 800; }

/* Pantalla de éxito */
.done-bg { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(0, 0, 0, .5); animation: fade .15s; }
.done { width: min(86vw, 340px); background: var(--card); border-radius: 34px; padding: 26px 22px 22px; text-align: center; animation: pop .22s cubic-bezier(.2, 1.3, .4, 1); }
.done-art { width: 156px; height: 156px; border-radius: 50%; background: var(--lime); margin: 0 auto 14px; display: grid; place-items: center; padding: 18px; }
.done h2 { font-size: calc(24px * (1 + (var(--fs, 1) - 1) * 0.5)); } .done p { margin: 6px 0 0; color: var(--muted); }
.done .tap { margin-top: 14px; font-size: calc(12.5px * var(--fs, 1)); color: var(--muted); }
@keyframes pop { from { transform: scale(.88); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes fade { from { opacity: 0; } }

/* Ingreso */
.auth { max-width: 420px; margin: 0 auto; padding: 40px 20px 30px; }
.auth .art { width: 150px; height: 150px; border-radius: 50%; background: var(--lime); margin: 0 auto 18px; display: grid; place-items: center; padding: 16px; }
.auth h1 { font-size: calc(28px * (1 + (var(--fs, 1) - 1) * 0.5)); letter-spacing: -.02em; text-align: center; }
.auth p.muted { text-align: center; margin: 6px 0 24px !important; }
.auth form { background: var(--card); border: 1px solid var(--line); border-radius: 30px; padding: 22px 18px; margin-bottom: 14px; }
.err { color: var(--bad); font-size: calc(14px * var(--fs, 1)); min-height: 20px; margin: 8px 0; }

.netbar { display: block; width: calc(100% - 24px); max-width: 536px; margin: 10px auto 0; border: 0; text-align: center; padding: 10px 14px; font-size: calc(13.5px * var(--fs, 1)); font-weight: 700;
  position: sticky; top: 8px; z-index: 6; color: #3a2600; background: #ffd98a; border-radius: 18px; }
.netbar.sync { background: var(--lime); color: #1c2b1e; }
.netbar.bad { background: var(--bad); color: #fff; }
#toast { position: fixed; left: 50%; bottom: calc(112px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px);
  background: #1c2b1e; color: #fff; padding: 11px 18px; border-radius: 18px; opacity: 0; pointer-events: none; transition: .2s; z-index: 50; font-size: calc(14.5px * var(--fs, 1)); max-width: 90vw; }
#toast.show { opacity: 1; transform: translateX(-50%); }
#toast.error { background: var(--bad); }

[hidden] { display: none !important; }

/* Escáner de códigos de barras */
.scanner { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; background: #0c150e; color: #fff; }
.scan-top { display: flex; align-items: center; justify-content: space-between; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; }
.scan-top .round { background: rgba(255, 255, 255, .15); color: #fff; }
.scan-view { position: relative; flex: 1; min-height: 0; background: #000; overflow: hidden; }
.scan-view video { width: 100%; height: 100%; object-fit: cover; }
.scan-frame { position: absolute; left: 9%; right: 9%; top: 46%; height: 30%; transform: translateY(-50%); border: 3px solid var(--lime); border-radius: 22px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .42); pointer-events: none; }
.scan-msg { position: absolute; left: 14px; right: 14px; bottom: 14px; text-align: center; background: rgba(12, 21, 14, .8); padding: 10px 14px; border-radius: 16px; font-weight: 700; font-size: calc(14.5px * var(--fs, 1)); }
.scan-bottom { padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); background: var(--bg); color: var(--ink); }
.scan-list { margin-bottom: 10px; }
.scan-line { display: flex; justify-content: space-between; gap: 10px; padding: 4px 2px; font-size: calc(14.5px * var(--fs, 1)); }
.scan-total { margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--line); font-weight: 800; }
.scan-empty { color: var(--muted); text-align: center; padding: 6px 0; font-size: calc(14px * var(--fs, 1)); }

/* Buscar, editar cantidad y precio, tamaño de letra y guía */
.item[data-act] { cursor: pointer; }
.item[data-act]:active { background: var(--lime-soft); }
.minin { width: 88px; min-height: 40px; padding: 6px 10px; border-radius: 12px; font-weight: 800; text-align: center; }
.minin.qty { width: 66px; }
.priceedit, .qtyedit { display: flex; align-items: center; gap: 6px; }
.qtyedit .round { width: 34px; height: 34px; }
.list > .item.cartline { display: grid; grid-template-columns: 1fr auto auto; align-items: center; column-gap: 8px; row-gap: 8px; }
.cartline > .grow { display: contents; }
.cartline .ln { grid-column: 1; grid-row: 1; line-height: 1.2; }
.cartline .lineamt { grid-column: 2; grid-row: 1; text-align: right; min-width: 70px; }
.cartline > .btn.danger { grid-column: 3; grid-row: 1; }
.cartline .priceedit { grid-column: 1; grid-row: 2; }
.cartline .qtyedit { grid-column: 2 / 4; grid-row: 2; justify-self: end; }
.prod .top { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--lime); color: #1c2b1e; display: grid; place-items: center; }
.prod .top .ico { width: 15px; height: 15px; }
.sec .small { font-weight: 600; }
.done .undo { margin-top: 12px; }
.tour { text-align: center; padding: 4px 4px 0; }
.tour-art { width: 170px; height: 170px; border-radius: 50%; background: var(--lime); margin: 4px auto 16px; display: grid; place-items: center; padding: 18px; }
.tour h2 { font-size: calc(24px * (1 + (var(--fs, 1) - 1) * 0.5)); margin-bottom: 8px; }
.tour p { margin: 0 0 6px; font-size: calc(16px * var(--fs, 1)); }
.dots { display: flex; justify-content: center; gap: 8px; margin: 14px 0 16px; }
.dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.dots span.on { background: var(--dark); width: 22px; border-radius: 6px; }
html[data-size="large"] { --fs: 1.14; }
html[data-size="xl"] { --fs: 1.3; }

/* Peso y redondeo */
.chip.sm { padding: 5px 12px; min-height: 34px; font-size: calc(13px * var(--fs, 1)); }
.roundrow { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.bigin { font-size: calc(22px * (1 + (var(--fs, 1) - 1) * 0.5)); font-weight: 800; text-align: center; min-height: 58px; }
.minin.wide { width: 120px; }

.priceedit { flex-wrap: wrap; }
.list > .item.cartline.kilo .qtyedit { grid-column: 1 / -1; grid-row: 3; justify-self: end; }

/* Venta: en celular todo en una columna; el carrito va antes de la lista de productos */
.vgrid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "cart" "list"; }
.vtop { grid-area: top; } .vcart { grid-area: cart; } .vlist { grid-area: list; }
.vempty { display: none; }
.dcols { display: block; }

/* Computadora: la misma barra de abajo que en el celular, más ancho y columnas */
@media (min-width: 960px) {
  .shell { max-width: none; margin: 0; padding: 0 clamp(28px, 3vw, 56px) 130px; }
  nav.bottom { padding-bottom: 20px; }
  nav.bottom .in { max-width: 640px; }
  nav.bottom .in button { cursor: pointer; }
  nav.bottom .in button:hover .ni { background: var(--lime-soft); }
  .netbar { max-width: 640px; }
  .vgrid { grid-template-columns: minmax(0, 1fr) 400px; grid-template-areas: "top cart" "list cart"; column-gap: 28px; align-items: start; }
  .vcart { position: sticky; top: 16px; align-self: start; max-height: calc(100vh - 32px); overflow: auto; }
  .vcart > .card { margin-top: 14px; }
  .vempty { display: block; margin-top: 14px; }
  .prods { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .dcols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; align-items: start; }
  .dcols > .hero { grid-column: 1 / -1; }
  .hello { margin-top: 20px; }
  .prod, .tile, .item[data-act], .menu-item, .chip, .btn { cursor: pointer; }
  .prod:hover, .tile:hover { border-color: var(--dark); }
}
@media (min-width: 1400px) { .dcols { grid-template-columns: 1fr 1fr 1fr; } }

.split { display: block; }
@media (min-width: 960px) {
  .split { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 24px; align-items: start; }
  .split > .card:first-child { position: sticky; top: 16px; }
  .list.cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .dcols.mas { grid-template-columns: 1fr 1fr; }
  .dcols.mas > .btn { grid-column: 1 / -1; }
  .vgrid { grid-template-columns: minmax(0, 1fr) 380px; }
  .modal { max-width: 520px; }
}
@media (min-width: 1400px) { .list.cols { grid-template-columns: 1fr 1fr 1fr; } .dcols.mas { grid-template-columns: 1fr 1fr 1fr; } }
@media (min-width: 960px) {
  .vlist .prods { max-height: calc(100vh - 150px); overflow: auto; padding: 2px 6px 12px 2px; align-content: start; }
  .prod { min-height: 112px; }
}

/* Ingreso en computadora: ilustración a un lado y formulario al otro */
@media (min-width: 900px) {
  main.auth { max-width: 940px; min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 40px 32px; }
  .auth-side { text-align: center; padding: 0 12px; }
  .auth-side h1 { font-size: calc(34px * (1 + (var(--fs, 1) - 1) * 0.5)); }
  .auth-side > p.muted { margin: 8px 0 0 !important; }
}

input.chk { width: 24px; min-height: 24px; height: 24px; padding: 0; flex: none; accent-color: var(--dark); }

.linkbtn { background: none; border: 0; padding: 4px 0; color: var(--muted); font-weight: 700; text-decoration: underline; text-align: left; cursor: pointer; font-size: calc(14px * var(--fs, 1)); }

/* Pantallas muy anchas: se aprovecha el espacio con más columnas */
@media (min-width: 1900px) {
  .dcols, .dcols.mas { grid-template-columns: repeat(4, 1fr); }
  .list.cols { grid-template-columns: repeat(4, 1fr); }
  .vgrid { grid-template-columns: minmax(0, 1fr) 420px; }
  .prods { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
}

/* Botón de voz grande: la forma más rápida de registrar */
.micwrap { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 14px 0 -16px; position: relative; z-index: 2; }
.mictext { font-weight: 800; font-size: calc(14px * var(--fs, 1)); color: var(--muted); text-align: center; }
.micbig { width: 78px; height: 78px; border-radius: 50%; border: 5px solid var(--bg); background: var(--lime); color: #1c2b1e; display: grid; place-items: center; flex: none; cursor: pointer;
  box-shadow: 0 10px 26px rgba(120, 160, 0, .38); transition: transform .12s; }
.micbig .ico { width: 36px; height: 36px; }
.micbig:active { transform: scale(.94); }
.micbig.rec { background: var(--bad); color: #fff; box-shadow: 0 0 0 0 rgba(192, 57, 43, .5); animation: micpulse 1.1s infinite; }
@keyframes micpulse { 0% { box-shadow: 0 0 0 0 rgba(192, 57, 43, .5); } 100% { box-shadow: 0 0 0 22px rgba(192, 57, 43, 0); } }
.hasmic > .search, .vbar-in > .search { padding-top: 14px; }
@media (min-width: 960px) {
  .vbar { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
  .vbar .micwrap { margin: 0; flex: none; } .vbar .mictext { display: none; }
  .vbar-in { flex: 1; min-width: 0; } .vbar-in > .search { padding-top: 5px; }
  .micbig { width: 72px; height: 72px; }
  .hasmic { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
  .hasmic .micwrap { margin: 0; } .hasmic .mictext { display: none; } .hasmic > .search { flex: 1; min-width: 260px; padding-top: 5px; } .hasmic > .examples { flex-basis: 100%; }
}

/* Productos de Vender: tarjetas más limpias (nombre y precio; el stock solo avisa cuando se acaba) */
.prods { gap: 10px; }
.prod { min-height: 92px; padding: 14px 14px 12px; border-radius: 22px; justify-content: space-between; gap: 8px; box-shadow: none; transition: border-color .12s, background .12s; }
.prod:hover { border-color: var(--lime); background: var(--lime-soft); }
.prod .n { font-size: calc(15px * var(--fs, 1)); line-height: 1.22; padding-right: 36px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod .n .top { position: static; display: inline-flex; vertical-align: -2px; margin-right: 5px; width: auto; height: auto; background: none; color: #e0a100; }
.prod .n .top .ico { width: 14px; height: 14px; fill: currentColor; }
.prod .p { margin-top: 0; padding-top: 0; font-size: calc(16px * var(--fs, 1)); color: var(--ink); letter-spacing: -.01em; }
.prod .p .small { color: var(--muted); font-weight: 700; }
.prod .lowp { align-self: flex-start; margin-top: -2px; }
.prod .add { right: 10px; bottom: 10px; width: 32px; height: 32px; background: var(--lime); color: #1c2b1e; }
.prod .add .ico { width: 18px; height: 18px; }

/* Guardado rápido: barra que se llena en 3 segundos */
.autobar { height: 6px; border-radius: 6px; background: var(--field); overflow: hidden; margin-top: 12px; }
.autobar i { display: block; height: 100%; width: 0; background: var(--lime); animation: autobar 3s linear forwards; }
@keyframes autobar { to { width: 100%; } }
/* Guía de primer uso */
.startcard { border-color: var(--lime); }
.step { display: flex; gap: 12px; padding: 10px 0; } .step + .step { border-top: 1px solid var(--line); }
.stn { width: 30px; height: 30px; border-radius: 50%; background: var(--lime); color: #1c2b1e; font-weight: 800; display: grid; place-items: center; flex: none; }

/* Micrófono único: centro de la barra de abajo (celular) y botón Hablar en la barra lateral (computadora) */
.hasmic > .search, .vbar-in > .search { padding-top: 5px; }
.navmic-wrap { flex: 0 0 76px; position: relative; pointer-events: none; }
nav.bottom .in .navmic-wrap .navmic { position: absolute; left: 50%; top: -34px; transform: translateX(-50%); width: 70px; height: 70px; flex: none; padding: 0; border-radius: 50%;
  background: var(--mic); color: #fff; border: 5px solid var(--bg); box-shadow: 0 10px 24px var(--mic-glow); display: grid; place-items: center; pointer-events: auto; }
nav.bottom .in .navmic .ico { width: 32px; height: 32px; }
nav.bottom .in .navmic:active { transform: translateX(-50%) scale(.94); }
nav.bottom .in .navmic.rec { background: var(--bad); color: #fff; animation: micpulse 1.1s infinite; }
.listenpill { position: absolute; left: 50%; top: -66px; transform: translateX(-50%); background: var(--bad); color: #fff; font-weight: 800; font-size: calc(13px * var(--fs, 1)); padding: 5px 12px; border-radius: 99px; white-space: nowrap; pointer-events: none; }
.sb-talk { display: none; }
@media (min-width: 960px) {
  .vbar { display: block; margin-top: 12px; }
  .hasmic { display: block; }
}


/* Inicio: en celular las piezas van en columna (con su orden); en computadora, dos zonas */
.igrid { display: flex; flex-direction: column; }
.ig-main, .ig-side, .ig-pair { display: contents; }
.ig-cash { order: 3; } .ig-tabs { order: 1; } .ig-lim { order: 2; } .ig-hero { order: 3; } .ig-fiados { order: 4; } .ig-low { order: 5; } .ig-sales { order: 6; } .morebtn { order: 7; }
.ig-chart { order: 8; } .ig-pay { order: 9; } .ig-rank { order: 10; } .ig-stock { order: 11; }
@media (min-width: 1100px) {
  .topline { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 4px; }
  .topline .hello { margin: 20px 0 12px; }
  .topline #quickcard { flex: 1; max-width: 640px; }
  .igrid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 0 24px; align-items: start; }
  .ig-main, .ig-side { display: block; } .ig-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; align-items: start; }
  .ig-side .tiles { grid-template-columns: 1fr 1fr; margin-top: 0; }
  .ig-main .ig-hero { margin-top: 0; }
}
@media (min-width: 1800px) { .igrid { grid-template-columns: minmax(0, 2.4fr) minmax(360px, 1fr); } }
@media (min-width: 960px) { .shell > #quickcard, .shell > .vbar { max-width: 760px; } }

@media (min-width: 960px) {
  .split.has-gcol, .split:has(> .gcol) { grid-template-columns: 460px minmax(0, 1fr); }
  .split > .gcol { position: sticky; top: 16px; }
  .split > .gcol > #quickcard { max-width: none; }
}
@media (min-width: 1200px) { .list.cols { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1900px) { .list.cols { grid-template-columns: repeat(4, 1fr); } }

/* Inicio en computadora (2.ª versión): resumen y accesos a la izquierda; las últimas ventas, como lista de actividad, arriba a la derecha */
@media (min-width: 1100px) {
  .ig-main .tiles { grid-template-columns: repeat(4, 1fr); margin: 0 0 14px; }
  .ig-main .tile { flex-direction: row; justify-content: center; gap: 10px; padding: 12px 10px; font-size: calc(14px * var(--fs, 1)); }
  .ig-main .tile .ti { width: 36px; height: 36px; border-radius: 13px; } .ig-main .tile .ti .ico { width: 20px; height: 20px; }
  .ig-side .ig-sales { max-height: calc(100vh - 150px); overflow: auto; }
  .ig-side .ig-sales .list .item { padding-left: 0; padding-right: 0; }
}

.seeall { display: none; }
@media (min-width: 1100px) {
  .seeall { display: inline-flex; } .seeall-bottom { display: none; }
  .ig-side .ig-sales { max-height: calc(100vh - 260px); }
}

/* Producto por kilo en el carrito: falta el peso */
.list > .item.cartline.pending { background: var(--lime-soft); border-radius: 18px; padding-left: 10px; padding-right: 10px; }
.cartline .kgask { grid-column: 1 / -1; padding-top: 4px; }
.cartline.pending .qty { border: 2px solid var(--lime); }

/* Cambiar de usuario con PIN */
.userchip { display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); border-radius: 99px; padding: 4px 12px 4px 4px; font: inherit; font-weight: 800; font-size: calc(13px * var(--fs, 1)); cursor: pointer; }
.userchip .uc { width: 28px; height: 28px; border-radius: 50%; background: var(--lime); color: #1c2b1e; display: grid; place-items: center; }
.userchip .ico { width: 16px; height: 16px; color: var(--muted); }
@media (max-width: 420px) { .userchip .un { display: none; } .userchip { padding-right: 8px; } .userchip .ico { display: none; } }
.pindots { display: flex; justify-content: center; gap: 14px; margin: 14px 0 6px; }
.pindots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--muted); display: block; } .pindots i.on { background: var(--lime); border-color: var(--lime); }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 300px; margin: 8px auto 4px; }
.pinpad button { height: 64px; border-radius: 22px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 800; font-size: calc(24px * (1 + (var(--fs, 1) - 1) * 0.5)); display: grid; place-items: center; cursor: pointer; }
.pinpad button:active { background: var(--lime); color: #1c2b1e; } .pinpad .ico { width: 24px; height: 24px; }

/* Corregir lo que se entendió */
.qfix { display: flex; align-items: center; gap: 6px; background: var(--field); border-radius: 99px; padding: 4px 4px 4px 14px; }
.qfix input { flex: 1; min-width: 0; border: 0; background: transparent; min-height: 40px; padding: 0 4px; font-weight: 700; }
.qfix input:focus { outline: none; }
.round.sm { width: 34px; height: 34px; } .round.sm .ico { width: 17px; height: 17px; }
.qctl { display: inline-flex; align-items: center; gap: 6px; }

/* Fiados: una tarjeta por cliente (nombre y deuda arriba, acciones abajo) */
.fgrid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 14px; }
.fcard { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 14px; }
.fhead { display: flex; align-items: center; gap: 12px; }
.fname { display: block; font-size: calc(16px * var(--fs, 1)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.famt { font-size: calc(18px * var(--fs, 1)); flex: none; }
.fbtns { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.fbtns .btn { flex: 1 1 auto; justify-content: center; min-width: 88px; }
@media (min-width: 700px) { .fgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .fgrid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1900px) { .fgrid { grid-template-columns: repeat(4, 1fr); } }

.fbtns .wabtn { flex: 0 0 54px; min-width: 54px; padding: 7px 0; background: var(--lime-soft); color: var(--dark); border: 0; }
.fbtns .wabtn .ico { width: 26px; height: 26px; stroke-width: 2; }

/* Barra: orden de los botones (el micrófono va siempre en el centro) y accesos extra solo en computadora */
nav.bottom .in .n-inicio { order: 1; } nav.bottom .in .n-vender { order: 2; } nav.bottom .in .navmic-wrap { order: 3; } nav.bottom .in .n-gastos { order: 4; } nav.bottom .in .n-mas { order: 9; }
nav.bottom .in button.dx { display: none; }
nav.bottom .ni { position: relative; } nav.bottom .ni .nlk { position: absolute; right: 2px; bottom: 2px; width: 13px; height: 13px; color: var(--muted); }
@media (min-width: 960px) {
  nav.bottom .in { max-width: 920px; }
  nav.bottom .in button.dx { display: flex; }
  nav.bottom .in .n-gastos { order: 3; } nav.bottom .in .n-productos { order: 4; } nav.bottom .in .navmic-wrap { order: 5; }
  nav.bottom .in .n-fiados { order: 6; } nav.bottom .in .n-compras { order: 7; } nav.bottom .in .n-caja { order: 8; }
  nav.bottom .in { font-size: 12.5px; } nav.bottom .in button { font-size: calc(12.5px * var(--fs, 1)); }
  nav.bottom .in button.on-m:not(.on-d) { color: var(--muted); } nav.bottom .in button.on-m:not(.on-d) .ni { background: transparent; color: inherit; }
  nav.bottom .in button.on-d { color: var(--ink); } nav.bottom .in button.on-d .ni { background: var(--lime); color: #1c2b1e; }
}
/* Panel de accesos rápidos */

/* Leer factura: cada línea es una tarjeta ordenada (leído · producto · cantidad y total) */
.ivlist { display: flex; flex-direction: column; gap: 10px; margin: 10px 0 0; max-height: 46vh; overflow: auto; padding-right: 2px; }
.ivrow { border: 1.5px solid var(--line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: var(--field); }
.ivrow.check { border-color: var(--warn); }
.ivtop { display: flex; align-items: center; gap: 8px; }
.ivsaid { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.25; }
.ivrow select { width: 100%; }
.ivrow label { margin-bottom: 3px; }
.ivsum { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 12px; border-radius: 12px; background: var(--field); font-size: calc(13.5px * var(--fs, 1)); }
.ivsum.ok { background: var(--lime-soft); }
.ivsum.warn { background: var(--warn-soft); color: var(--warn); }
.ivlist { max-height: 54vh; }
.ivrow { padding: 10px 12px; gap: 8px; }
.ivrow select, .ivrow input { min-height: 42px; padding-top: 8px; padding-bottom: 8px; }
.ivrow .grid2 { gap: 8px; }
.ivrow label { font-size: calc(12px * var(--fs, 1)); margin-bottom: 2px; }
.ivtop .round.sm { width: 34px; height: 34px; min-width: 34px; }

/* Ayuda del micrófono: una sola línea pequeña, se cierra con la X y desaparece sola cuando ya saben usarlo */
.mictip { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + 124px); z-index: 30; max-width: min(92vw, 340px);
  display: flex; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 99px; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); animation: fade .25s ease; }
.mt-say { border: 0; background: none; color: var(--ink); font: inherit; font-size: calc(13px * var(--fs, 1)); font-weight: 700; padding: 8px 4px 8px 14px; cursor: pointer; text-align: left; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-l { color: var(--mic); font-weight: 800; }
.mt-x { flex: none; width: 32px; height: 32px; margin-right: 4px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.mt-x .ico { width: 16px; height: 16px; }

#qtext[data-rot]::placeholder { transition: opacity .25s ease; }
#qtext[data-rot].ph-out::placeholder { opacity: 0; }

.mini.wide { grid-column: 1 / -1; }
.mini.wide b { display: inline-block; margin-right: 8px; }
.mini.wide small { display: block; }

.soles-in { display: inline-flex; align-items: center; gap: 4px; }
.soles-in .minin { width: 84px; }

.debtold { color: var(--bad); font-weight: 800; }

/* Interruptores de Mis herramientas */
.toollist { display: flex; flex-direction: column; gap: 10px; }
.toolrow { cursor: default; }
.switch { position: relative; display: inline-block; width: 52px; height: 30px; flex: none; margin: 0; }
.switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.switch .sw { position: absolute; inset: 0; border-radius: 99px; background: var(--line); transition: background .2s; }
.switch .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + .sw { background: var(--mic); }
.switch input:checked + .sw::after { transform: translateX(22px); }
.switch input:focus-visible + .sw { outline: 2px solid var(--ink); outline-offset: 2px; }

.amtedit { display: inline-flex; align-items: center; gap: 4px; }
.amtedit .minin { width: 88px; }

/* Confirmación de voz: el nombre arriba y los controles (cantidad y monto) debajo, para que el nombre no se aplaste */
.qline { flex-wrap: wrap; gap: 8px 10px; }
.qline > .grow { flex: 1 1 100%; }
.qline .qctl { margin-right: auto; }

.morebtn { margin: 4px 0 12px; }

/* Celular: abajo solo Vender, micrófono y Gastos; Inicio y Más van arriba */
.hbtn { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; padding: 0; cursor: pointer; }
.hbtn .ico { width: 20px; height: 20px; }
.hbtn.on { background: var(--lime); color: #1c2b1e; border-color: var(--lime); }
@media (min-width: 960px) { .mobonly { display: none; } }

/* Inicio: lo anotado como mensajes cortos */
.feed { display: flex; flex-direction: column; gap: 8px; }
.bubble { align-self: flex-end; max-width: 94%; background: var(--lime-soft); border-radius: 18px 18px 6px 18px; padding: 10px 14px; }
.bubble .bt { font-weight: 700; overflow-wrap: anywhere; }
.bubble .bm { font-size: calc(12.5px * var(--fs, 1)); color: var(--muted); margin-top: 2px; }
.bubble .bundo { margin-top: 4px; background: none; border: 0; color: var(--muted); text-decoration: underline; font: inherit; font-size: calc(12.5px * var(--fs, 1)); cursor: pointer; padding: 2px 0; }

/* Barra de registro: el botón del micrófono lleva el color del micrófono; al escuchar, rojo */
#quickcard .round.go[data-act="quick-mic"] { background: var(--mic); color: #fff; }
#quickcard .round.go.rec { background: var(--bad); color: #fff; animation: micpulse 1.1s infinite; }

/* Celular: un solo panel pegado al borde de abajo (de lado a lado, sin flotar): arriba la barra para escribir, hablar y fotografiar; debajo los botones.
   En PC la barra queda dentro de la pantalla y el menú flota abajo, como antes. */
@media (max-width: 959px) {
  nav.bottom { padding: 0; }
  nav.bottom .in { max-width: none; width: 100%; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 5px 6px calc(3px + env(safe-area-inset-bottom)); }
  nav.bottom .ni { width: 44px; height: 30px; border-radius: 15px; }
  nav.bottom .ni .ico { width: 22px; height: 22px; }
  nav.bottom .in button { font-size: calc(10.5px * var(--fs, 1)); gap: 1px; padding-bottom: 1px; }
  #quickcard .search, .vbar .search { position: fixed; left: 0; right: 0; width: auto; transform: none; bottom: calc(env(safe-area-inset-bottom, 0px) + 56px); z-index: 6; margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 7px 10px 7px 12px; gap: 8px; background: var(--card); }
  #quickcard .search input, .vbar .search input { background: var(--field); border-radius: 99px; min-height: 40px; padding: 0 16px; }
  .shell { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
  .barhint { margin-top: 2px; }
  .mictip { bottom: calc(env(safe-area-inset-bottom, 0px) + 130px); }
}

/* Una sola entrada de voz en todos los tamaños: el micrófono vive en la barra (Alt + M sigue funcionando) */
.navmic-wrap { display: none; }
@media (min-width: 960px) { .mictip { display: none; } }

/* PC: el menú va ARRIBA, en el encabezado: negocio a la izquierda, pestañas al centro y plan a la derecha. Abajo no queda nada flotando. */
@media (min-width: 960px) {
  header.top { position: fixed; top: 0; left: 0; right: 0; height: 60px; z-index: 6; padding: 0 clamp(28px, 3vw, 56px); background: var(--bg); border-bottom: 1px solid var(--line); }
  nav.bottom { top: 0; bottom: auto; height: 60px; padding: 0; z-index: 7; align-items: center; }
  nav.bottom .in { width: auto; max-width: none; background: transparent; border: 0; box-shadow: none; border-radius: 0; padding: 0; gap: 4px; align-items: center; }
  nav.bottom .in button { flex: none; flex-direction: row; gap: 8px; padding: 8px 14px; border-radius: 99px; font-size: calc(14px * var(--fs, 1)); font-weight: 800; }
  nav.bottom .ni { width: auto; height: auto; border-radius: 0; background: transparent; }
  nav.bottom .ni .ico { width: 20px; height: 20px; }
  nav.bottom .in button.on-d { background: var(--lime); color: #1c2b1e; }
  nav.bottom .in button.on-d .ni { background: transparent; color: inherit; }
  nav.bottom .in button.on-m:not(.on-d) .ni { background: transparent; }
  body { padding-top: 60px; }
  .shell { padding-top: 14px; padding-bottom: 48px; }
  .netbar { margin-top: 10px; }
}

/* PC: la barra va SIEMPRE en el mismo lugar (justo bajo el menú, a la izquierda) en Inicio, Vender y Gastos, para memorizarla */
@media (min-width: 960px) {
  .shell.hasbar { padding-top: 92px; }
  #quickcard .search, .vbar .search { position: fixed; top: 74px; left: clamp(28px, 3vw, 56px); width: min(720px, calc(100% - 2 * clamp(28px, 3vw, 56px))); z-index: 5; margin: 0; box-shadow: 0 8px 20px rgba(0, 0, 0, .28); }
}

/* Secciones que se abren al tocarlas (Mi cuenta) */
details.dsum > summary { cursor: pointer; font-weight: 800; font-size: calc(17px * var(--fs, 1)); list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.dsum > summary::-webkit-details-marker { display: none; }
details.dsum > summary::after { content: '+'; font-size: 22px; font-weight: 700; color: var(--muted); }
details.dsum[open] > summary::after { content: '–'; }
details.dsum[open] > summary { margin-bottom: 12px; }

.cashrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.cashchip { display: flex; align-items: baseline; gap: 8px; padding: 9px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: calc(14px * var(--fs, 1)); }
.cashchip span { color: var(--muted); }
.cashchip b { font-weight: 800; }

/* Página principal */
.lp { max-width: 1000px; margin: 0 auto; padding: 0 20px 40px; }
.lp section { margin: 44px 0; }
.lp h2 { font-size: calc(24px * (1 + (var(--fs, 1) - 1) * 0.5)); letter-spacing: -.02em; margin: 0 0 14px; }
.lp-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; }
.lp-brand { font-weight: 800; font-size: 18px; }
.lp-hero { display: grid; gap: 28px; align-items: center; margin-top: 18px !important; }
.lp-hero h1 { font-size: calc(36px * (1 + (var(--fs, 1) - 1) * 0.5)); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 12px; }
.lp-hero h1 span { background: var(--lime); padding: 0 8px; border-radius: 10px; color: #1c2b1e; }
.lp-hero p { font-size: calc(17px * var(--fs, 1)); color: var(--muted); margin: 0 0 18px; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.lp-demo { background: var(--field); border-radius: 28px; padding: 18px; display: grid; gap: 10px; }
.lp-me { justify-self: end; max-width: 85%; background: var(--primary, var(--lime)); color: var(--primary-ink, #14230f); padding: 10px 14px; border-radius: 18px 18px 4px 18px; font-weight: 700; }
.lp-bot { justify-self: start; max-width: 90%; background: var(--card); border: 1px solid var(--line); padding: 10px 14px; border-radius: 18px 18px 18px 4px; }
.lp-steps, .lp-feats, .lp-plans { display: grid; gap: 12px; }
.lp-step, .lp-feat, .lp-plan { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 16px; }
.lp-step i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--lime); color: #1c2b1e; font-style: normal; font-weight: 800; margin-bottom: 8px; }
.lp-feat { display: flex; gap: 12px; align-items: flex-start; }
.lp-sub { margin: -8px 0 14px; }
.lp-plan { display: flex; flex-direction: column; gap: 6px; }
.lp-plan.hot { border: 2px solid var(--lime); }
.lp-price { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.lp-price small { font-size: 14px; color: var(--muted); font-weight: 600; }
.lp-plan ul { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 6px; flex: 1; }
.lp-plan li { padding-left: 22px; position: relative; font-size: calc(14px * var(--fs, 1)); }
.lp-plan li::before { content: "✓"; position: absolute; left: 0; color: var(--primary, #4a7c1f); font-weight: 800; }
.lp-faq { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px; margin-bottom: 8px; }
.lp-faq summary { cursor: pointer; font-weight: 700; }
.lp-faq p { margin: 8px 0 0; }
.lp-end { text-align: center; background: var(--lime); color: #1c2b1e; border-radius: 28px; padding: 30px 18px; }
.lp-end .btn { background: #1c2b1e; color: #fff; }
.lp footer { text-align: center; }
@media (min-width: 760px) {
  .lp-hero { grid-template-columns: 1.1fr 1fr; gap: 48px; }
  .lp-hero h1 { font-size: calc(48px * (1 + (var(--fs, 1) - 1) * 0.5)); }
  .lp-steps, .lp-plans { grid-template-columns: repeat(3, 1fr); }
  .lp-feats { grid-template-columns: repeat(3, 1fr); }
}

/* Ilustraciones de la página principal */
.lp-step .lp-art { max-width: 190px; margin: 0 auto 6px; }
.lp-side { display: grid; gap: 14px; }
.lp-art-hero { max-width: 340px; margin: 0 auto; }
.lp-art-end { --wash: #fff; max-width: 220px; margin: 0 auto 6px; }
.lp-end .lp-art { --ink: #1c2b1e; --bg: #fff; }
.lp-end .lp-art { --ink: #1c2b1e; --bg: #fff; background: none; padding: 0; }
.lp footer a { color: var(--muted); }

/* Identidad en los paneles */
.ri { background: var(--teal-soft); color: var(--ink); }
.empty .art { width: 210px; height: auto; margin: 0 auto 8px; border-radius: 0; background: none; padding: 0; display: block; }
.done-art { width: 230px; height: auto; margin: 0 auto 10px; border-radius: 0; background: none; padding: 0; display: block; }
.auth .art, .tour-art { width: 230px; height: auto; margin: 0 auto 18px; border-radius: 0; background: none; padding: 0; display: block; }
.auth-side .art { width: 270px; height: auto; border-radius: 0; background: none; padding: 0; display: block; margin: 0 auto 24px; }
.hero-art { width: 132px; height: 99px; border-radius: 0; background: none; padding: 0; display: block; }
.hero-art .lp-art, .done-art .lp-art { --wash: #fff; background: none !important; padding: 0 !important; }
.lp-feat .ri { background: var(--teal-soft); }

a.btn { text-decoration: none; }

/* Entrar: sin panel verde; la ilustración y el título, y el formulario al lado */
.auth-side .art { width: 100%; max-width: 300px; margin: 0 auto 18px; }
.auth .small a, .auth-form .small a { color: var(--muted); }

/* Tarjeta de respuesta: aparece junto a la barra, como un mensaje */
.reply-what { font-weight: 700; margin: 2px 0 2px; overflow-wrap: anywhere; }
.reply-amt { font-size: calc(26px * (1 + (var(--fs, 1) - 1) * 0.5)); font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
@keyframes replyin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Menú de 5: Hoy, Vender, Productos, Mi plata, Más */
nav.bottom .in .n-productos { order: 3; } nav.bottom .in .n-plata { order: 4; }

/* Chat unido a la barra */
.chatpanel { position: fixed; z-index: 8; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 56px + 59px + 8px); background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 10px 12px; box-shadow: 0 12px 34px rgba(0, 0, 0, .28); max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; max-height: min(62vh, 540px); }
.chatlist { overflow: auto; display: flex; flex-direction: column; gap: 6px; min-height: 0; max-height: 36vh; }
.cmsg { max-width: 88%; padding: 8px 12px; border-radius: 16px; font-size: calc(14.5px * var(--fs, 1)); overflow-wrap: anywhere; }
.cmsg.me { align-self: flex-end; background: var(--lime); color: #14230f; border-bottom-right-radius: 5px; font-weight: 700; }
.cmsg.bot { align-self: flex-start; background: var(--field); border-bottom-left-radius: 5px; }
.cmsg.saved { border-left: 4px solid var(--lime); }
.reply { border: 1px solid var(--line); border-radius: 18px; padding: 10px 12px; background: var(--card); }
@media (min-width: 960px) { .chatpanel { bottom: auto; top: 142px; left: clamp(28px, 3vw, 56px); right: auto; margin: 0; width: min(720px, calc(100% - 2 * clamp(28px, 3vw, 56px))); max-width: none; max-height: calc(100vh - 170px); } .chatlist { max-height: 40vh; } }

/* Hoy: el chat dentro de la pantalla, con el campo para escribir al final */
.chatcol { display: flex; flex-direction: column; gap: 8px; }
.chatcol .chathead { margin-bottom: 0; }
.chatcol .chatinline { max-height: none; }
.chatcol .bubble { align-self: flex-start; max-width: 92%; }
.chatchips { margin-top: 2px; }
@media (min-width: 960px) {
  .ig-side .chatcol { position: sticky; top: 76px; height: calc(100vh - 100px); max-height: none; overflow: hidden; }
  .chatcol .chatinline { flex: 1; max-height: none; overflow: auto; }
  .chatcol #quickcard .search { position: static; width: auto; top: auto; left: auto; box-shadow: none; margin: 4px 0 0; }
  .chatcol #quickcard { max-width: none; }
}

/* La voz primero: botón grande para hablar (PC) y micrófono grande en la barra (celular); escribir sigue a un lado */
.voicebtn { display: none; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; border: 0; border-radius: 99px; background: var(--mic); color: #fff; font-weight: 800; font-size: calc(16px * var(--fs, 1)); box-shadow: 0 6px 18px var(--mic-glow); }
.voicebtn .ico { width: 24px; height: 24px; }
.voicebtn.rec { background: var(--bad); animation: micpulse 1.1s infinite; }
@media (min-width: 960px) { .chatcol .voicebtn { display: flex; } .chatcol #quickcard .round.go[data-act="quick-mic"] { display: none; } }
@media (max-width: 959px) { #quickcard .round.go { width: 52px; height: 52px; box-shadow: 0 0 0 4px var(--mic-glow); } #quickcard .round.go .ico { width: 26px; height: 26px; } }

/* PC: botones flotantes y ventana de chat abajo a la derecha */
.fab { display: none; }
.widget .wcomposer { display: flex; align-items: center; gap: 8px; }
.widget .wcomposer input { flex: 1; min-width: 0; background: var(--field); border: 0; border-radius: 99px; min-height: 44px; padding: 0 16px; }
.widget .voicebtn { display: flex; }
@media (min-width: 960px) {
  .fab { display: flex; flex-direction: column; align-items: center; gap: 12px; position: fixed; right: 26px; bottom: 26px; z-index: 8; }
  .fab-chat { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .22); }
  .fab-mic { width: 68px; height: 68px; border-radius: 50%; border: 0; background: var(--mic); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px var(--mic-glow), 0 0 0 5px var(--mic-glow); }
  .fab-mic .ico { width: 32px; height: 32px; } .fab-chat .ico { width: 22px; height: 22px; }
  .fab-mic.rec { background: var(--bad); animation: micpulse 1.1s infinite; }
  .chatpanel.widget { top: auto; left: auto; right: 24px; bottom: 24px; margin: 0; width: 390px; max-width: none; max-height: min(680px, calc(100vh - 48px)); }
  .chatpanel.widget .chatlist { max-height: 42vh; min-height: 90px; }
}

/* Hoy en el celular: vender y hablar en grande; el chat a pantalla completa */
.ig-act { order: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 6px; }
.ig-act .btn { min-height: 58px; font-size: calc(17px * var(--fs, 1)); }
.ig-act .btn.talk { background: var(--mic); color: #fff; box-shadow: 0 6px 18px var(--mic-glow); }
.ig-actlink { order: 3; text-align: center; margin-bottom: 8px; }
.ig-actlink .linkbtn { background: none; border: 0; color: var(--muted); text-decoration: underline; padding: 4px 8px; font-weight: 700; }
@media (min-width: 960px) { .ig-act, .ig-actlink { display: none; } }
.chatpanel.full { position: fixed; inset: 0; z-index: 20; border-radius: 0; max-width: none; max-height: none; width: auto; margin: 0; border: 0; box-shadow: none; background: var(--bg); padding: calc(env(safe-area-inset-top, 0px) + 12px) 14px calc(env(safe-area-inset-bottom, 0px) + 12px); }
.chatpanel.full .chatlist { flex: 1; max-height: none; }
.chatpanel.full .wcomposer { display: flex; align-items: center; gap: 8px; }
.chatpanel.full .wcomposer input { flex: 1; min-width: 0; background: var(--field); border: 0; border-radius: 99px; min-height: 48px; padding: 0 16px; }
.chatpanel.full .round.go.mic { background: var(--mic); color: #fff; width: 52px; height: 52px; box-shadow: 0 0 0 4px var(--mic-glow); }
.chatpanel.full .round.go.mic.rec { background: var(--bad); animation: micpulse 1.1s infinite; }

/* PC: menú lateral por secciones; arriba ya no hay encabezado ni pestañas */
.side { display: none; }
@media (min-width: 960px) {
  .side { display: flex; flex-direction: column; gap: 2px; position: fixed; left: 0; top: 0; bottom: 0; width: 236px; padding: 18px 12px 14px; background: var(--bg); border-right: 1px solid var(--line); overflow: auto; z-index: 7; }
  .side-biz { display: flex; flex-direction: column; padding: 0 10px 4px; line-height: 1.2; }
  .side-biz b { font-size: calc(17px * var(--fs, 1)); letter-spacing: -.01em; overflow-wrap: anywhere; }
  .side-h { margin: 16px 10px 4px; font-size: calc(11px * var(--fs, 1)); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .si { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); font-weight: 700; font-size: calc(14.5px * var(--fs, 1)); text-align: left; }
  .si:hover { background: var(--field); }
  .si .ico { width: 20px; height: 20px; flex: none; } .si span { flex: 1; }
  .si.on { background: var(--lime); color: #1c2b1e; }
  .si.vend { justify-content: center; min-height: 48px; margin: 14px 0 8px; border-radius: 99px; background: var(--primary); color: var(--primary-ink); font-size: calc(16px * var(--fs, 1)); font-weight: 800; }
  .si.vend span { flex: none; } .si.vend.on { background: var(--lime); color: #1c2b1e; }
  .side-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
  .side-user { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
  .side-user .si { width: auto; flex: 1; }
  header.top { display: none; }
  nav.bottom { display: none; }
  body { padding-top: 0; }
  body.has-side { padding-left: 236px; }
  .shell { padding-top: 22px; }
  .shell.hasbar { padding-top: 92px; }
  #quickcard .search, .vbar .search { top: 18px; left: calc(236px + clamp(28px, 3vw, 56px)); width: min(720px, calc(100% - 236px - 2 * clamp(28px, 3vw, 56px))); }
  .chatpanel:not(.widget) { top: 84px; left: calc(236px + clamp(28px, 3vw, 56px)); width: min(720px, calc(100% - 236px - 2 * clamp(28px, 3vw, 56px))); }
}
@media (min-width: 960px) {
  .side { padding-top: 12px; padding-bottom: 10px; }
  .si { padding: 7px 12px; }
  .side-h { margin: 11px 10px 2px; }
  .si.vend { min-height: 44px; margin: 10px 0 6px; }
  .side-foot { padding-top: 8px; }
}

.salerow .salecol { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.salerow .bundo { margin: 0; }
.salerow .bundo { background: none; border: 0; color: var(--muted); text-decoration: underline; font: inherit; font-size: calc(12.5px * var(--fs, 1)); cursor: pointer; padding: 2px 0; }

/* Celular: el mismo micrófono flotante y la misma ventana de chat que en PC, por encima de la barra de abajo */
@media (max-width: 959px) {
  .fab { display: flex; flex-direction: column; align-items: center; gap: 10px; position: fixed; right: 14px; bottom: calc(env(safe-area-inset-bottom, 0px) + 56px + 16px); z-index: 8; }
  .fab-chat { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .22); }
  .fab-mic { width: 62px; height: 62px; border-radius: 50%; border: 0; background: var(--mic); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px var(--mic-glow), 0 0 0 4px var(--mic-glow); }
  .fab-mic .ico { width: 30px; height: 30px; } .fab-chat .ico { width: 21px; height: 21px; }
  .fab-mic.rec { background: var(--bad); animation: micpulse 1.1s infinite; }
  .chatpanel.widget { left: 10px; right: 10px; bottom: calc(env(safe-area-inset-bottom, 0px) + 56px + 8px); width: auto; max-width: none; margin: 0; max-height: 78vh; }
  .chatpanel.widget .chatlist { max-height: 34vh; min-height: 80px; }
}

/* Aviso pequeño de guardado (en lugar de la pantalla grande) */
.snack { position: fixed; z-index: 9; left: 12px; right: 92px; bottom: calc(env(safe-area-inset-bottom, 0px) + 56px + 16px); display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--lime); border-radius: 16px; padding: 10px 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, .28); }
.snack.up { right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 56px + 59px + 12px); }
@media (min-width: 960px) { .snack, .snack.up { left: calc(236px + 24px); right: auto; bottom: 26px; min-width: 300px; max-width: 440px; } }
.linkundo { background: none; border: 0; color: var(--muted); text-decoration: underline; font: inherit; font-size: calc(12.5px * var(--fs, 1)); cursor: pointer; padding: 4px 0 0; }

/* Chat: el micrófono va en la misma fila donde se escribe */
.wcomposer .round.go.mic { background: var(--mic); color: #fff; width: 48px; height: 48px; box-shadow: 0 0 0 3px var(--mic-glow); }
.wcomposer .round.go.mic .ico { width: 24px; height: 24px; }
.wcomposer .round.go.mic.rec { background: var(--bad); animation: micpulse 1.1s infinite; }
.wcomposer [hidden] { display: none !important; }

/* Chat más limpio: menos tamaño, una sola fila de preguntas, mensajes compactos */
.chatpanel { gap: 6px; }
.chatlist { gap: 5px; }
.cmsg { padding: 7px 12px; font-size: calc(14px * var(--fs, 1)); line-height: 1.35; }
.cmsg.saved { padding: 6px 12px; }
.cmsg.saved b { font-size: calc(14px * var(--fs, 1)); }
.cmsg.saved div { font-size: calc(13px * var(--fs, 1)); color: var(--muted); }
.cmsg .chips .chip { font-size: calc(13px * var(--fs, 1)); padding: 6px 12px; min-height: 0; }
.chatchips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 6px; padding: 2px 0; }
.chatchips::-webkit-scrollbar { display: none; }
.chatchips .chip { flex: none; white-space: nowrap; font-size: calc(13px * var(--fs, 1)); padding: 6px 12px; min-height: 0; }
.chatpanel .reply { padding: 10px 12px; }
.chatpanel .reply-amt { font-size: calc(24px * (1 + (var(--fs, 1) - 1) * 0.5)); }

/* Recibo dentro del chat: cada producto con su monto y el total con la forma de pago */
.rcpt { margin: 6px 0 4px; font-size: calc(13.5px * var(--fs, 1)); }
.rcpt .rl { display: flex; justify-content: space-between; gap: 14px; padding: 1px 0; color: var(--ink); }
.rcpt .rl span:last-child { white-space: nowrap; }
.rcpt .rl.rt { border-top: 1px solid var(--line); margin-top: 5px; padding-top: 5px; font-size: calc(15px * var(--fs, 1)); }
.cmsg.saved .rcpt div { color: var(--ink); font-size: inherit; }

.chathint { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 2px 4px; font-size: calc(13px * var(--fs, 1)); color: var(--muted); }
.chathint .chip { font-size: calc(13px * var(--fs, 1)); padding: 5px 11px; min-height: 0; }

/* «No te entendí»: una burbuja roja sencilla */
.chathint { align-self: flex-start; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 7px 12px; border-radius: 14px; background: color-mix(in srgb, var(--bad) 16%, var(--card)); color: var(--bad); font-weight: 700; }
.chathint .hintex { background: none; border: 0; padding: 0; color: inherit; font: inherit; font-weight: 600; font-size: calc(12.5px * var(--fs, 1)); text-decoration: underline; cursor: pointer; opacity: .9; text-align: left; }

/* Página principal: más ancha, con menú arriba y maquetas del chat */
html { scroll-behavior: smooth; }
.lp { max-width: 1180px; padding: 0 24px 40px; }
.lp section { scroll-margin-top: 84px; }
.lp-nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.lp-nav-in { max-width: 1180px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 22px; }
.lp-nav .lp-brand { font-weight: 800; font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.lp-links { display: none; gap: 4px; flex: 1; justify-content: center; }
.lp-links a { padding: 8px 14px; border-radius: 99px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: calc(14.5px * var(--fs, 1)); }
.lp-links a:hover { background: var(--field); }
.lp-nav-cta { display: flex; gap: 8px; margin-left: auto; }
@media (min-width: 900px) { .lp-links { display: flex; } .lp-nav-cta { margin-left: 0; } }
.lp-top { display: none; }
.lp-hero { margin-top: 28px !important; }
@media (min-width: 900px) { .lp-hero { grid-template-columns: 1.05fr 1fr; gap: 56px; } .lp-hero h1 { font-size: calc(54px * (1 + (var(--fs, 1) - 1) * 0.5)); } }
.mock { background: var(--card); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; box-shadow: 0 18px 50px rgba(0, 0, 0, .18); max-width: 400px; margin: 0 auto; width: 100%; }
.mock-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.mock-body { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.mock-bar { display: flex; align-items: center; justify-content: space-between; margin: 0 14px 14px; padding: 10px 10px 10px 16px; border-radius: 99px; background: var(--field); color: var(--muted); font-size: calc(14px * var(--fs, 1)); }
.mock-bar i { width: 34px; height: 34px; border-radius: 50%; background: var(--mic); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 12px; box-shadow: 0 0 0 3px var(--mic-glow); }
.mock .cmsg { max-width: 92%; }
.mock .linkundo { display: inline-block; cursor: default; }
.mock .reply { border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; background: var(--card); }
.lp-sub { margin: -6px 0 18px; }
.lp-uses, .lp-bizs { display: grid; gap: 16px; }
.lp-use { display: flex; flex-direction: column; gap: 6px; }
.lp-use b { margin-top: 8px; font-size: calc(17px * var(--fs, 1)); }
.lp-use .mock { margin: 0; max-width: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .1); }
.lp-biz { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 14px; text-align: center; }
.lp-biz .lp-art { max-width: 190px; margin: 0 auto 6px; }
@media (min-width: 760px) { .lp-uses { grid-template-columns: repeat(3, 1fr); } .lp-bizs { grid-template-columns: repeat(4, 1fr); } }
.lp-nav .btn.sm { min-height: 40px; padding: 8px 16px; }

/* Movimiento suave (se apaga si la persona prefiere menos movimiento) */
@keyframes lpfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .25; transform: scale(.7); } }
@keyframes popin { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes tdot { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-4px); opacity: 1; } }
.spk { transform-box: fill-box; transform-origin: center; animation: twinkle 2.6s ease-in-out infinite; }
.lp-steps .lp-art svg, .lp-biz .lp-art svg, .lp-art-end svg { animation: lpfloat 6s ease-in-out infinite; }
.lp-steps > :nth-child(2) .lp-art svg, .lp-bizs > :nth-child(2) .lp-art svg { animation-delay: -1.5s; }
.lp-steps > :nth-child(3) .lp-art svg, .lp-bizs > :nth-child(3) .lp-art svg { animation-delay: -3s; }
.lp-bizs > :nth-child(4) .lp-art svg { animation-delay: -4.5s; }
.mock .cmsg { animation: popin .35s ease-out; }
.demo .mock-body { min-height: 340px; justify-content: flex-start; }
.cmsg.typing { display: flex; gap: 5px; padding: 11px 14px; }
.cmsg.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: tdot 1s infinite; }
.cmsg.typing span:nth-child(2) { animation-delay: .15s; } .cmsg.typing span:nth-child(3) { animation-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .spk, .lp-art svg, .mock .cmsg, .cmsg.typing span { animation: none !important; } }
.lp-use .mock { min-height: 236px; }

/* Demo de voz: persona que habla + celular que escucha */
.lp-voice { display: grid; gap: 22px; align-items: center; }
@media (min-width: 860px) { .lp-voice { grid-template-columns: 1.05fr 1fr; gap: 12px; } }
.lp-avatar { max-width: 520px; margin: 0 auto; width: 100%; }
.lp-avatar .wave { stroke: var(--mic); stroke-width: 3.4; opacity: 0; fill: none; transform-box: fill-box; }
.lp-avatar .mouth { transform-box: fill-box; transform-origin: center; }
.lp-avatar.talking .mouth { animation: talk .34s ease-in-out infinite; }
.lp-avatar.talking .wave { animation: wv 1.2s ease-out infinite; }
.lp-avatar.talking .w2 { animation-delay: .22s; } .lp-avatar.talking .w3 { animation-delay: .44s; }
@keyframes talk { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(3.4); } }
@keyframes wv { 0% { opacity: 0; transform: translateX(-8px); } 35% { opacity: 1; } 100% { opacity: 0; transform: translateX(12px); } }
.vmock .mock-body { min-height: 300px; justify-content: flex-start; }
.vbar { padding: 6px 14px 14px; }
.vstate { font-size: calc(12.5px * var(--fs, 1)); color: var(--muted); font-weight: 700; margin: 0 4px 6px; min-height: 1.2em; }
.vrow { display: flex; align-items: center; gap: 12px; }
.vmic { flex: none; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--mic); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 4px var(--mic-glow); transition: transform .2s; }
.vmic.tap { transform: scale(.88); }
.vmic.rec { background: var(--bad); animation: micpulse 1.1s infinite; }
.vwave { flex: 1; display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 6px; border-radius: 99px; background: var(--field); }
.vwave i { display: block; width: 4px; height: 6px; border-radius: 3px; background: var(--muted); opacity: .6; }
.vmock.rec .vwave i { background: var(--bad); opacity: 1; animation: vbar .8s ease-in-out infinite; animation-delay: var(--d); }
@keyframes vbar { 0%, 100% { height: 6px; } 50% { height: 24px; } }
.btn.press { transform: scale(.95); filter: brightness(1.15); }
@media (prefers-reduced-motion: reduce) { .lp-avatar.talking .mouth, .lp-avatar.talking .wave, .vmock.rec .vwave i, .vmic.rec { animation: none !important; } }

/* Slider de la portada: Escribe / Habla */
.lp-slider { overflow: hidden; width: 100%; max-width: 440px; margin: 0 auto; }
.lp-track { display: flex; transition: transform .55s cubic-bezier(.4, 0, .2, 1); }
.lp-slide { flex: 0 0 100%; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 4px 2px 10px; }
.lp-slide .mock { max-width: none; }
.lp-voiceslide .lp-avatar { max-width: 270px; margin: 0 auto; }
.lp-voiceslide .vmock .mock-body { min-height: 150px; }
.lp-tabs { display: flex; gap: 6px; justify-content: center; padding: 4px 0 2px; }
.lp-tabs button { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 99px; padding: 7px 18px; font-weight: 800; font-size: calc(14px * var(--fs, 1)); cursor: pointer; }
.lp-tabs button.on { background: var(--lime); border-color: var(--lime); color: #1c2b1e; }
.demo .mock-body { min-height: 320px; }
.lp-slide .mock { flex: 1; display: flex; flex-direction: column; }
.lp-slide .mock-body { flex: 1; }
.lp-voiceslide .lp-avatar { max-width: 340px; }

/* Slider: flechas, puntos y arrastrar */
.lp-slider { position: relative; }
.lp-track { touch-action: pan-y; cursor: grab; user-select: none; }
.lp-slider.dragging .lp-track { cursor: grabbing; }
.lp-arrow { position: absolute; top: 42%; z-index: 5; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--lime); color: #1c2b1e; font-size: 28px; line-height: 1; font-weight: 800; display: grid; place-items: center; padding: 0 0 4px; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); cursor: pointer; }
.lp-arrow.prev { left: 6px; } .lp-arrow.next { right: 6px; }
.lp-arrow:active { transform: scale(.92); }
.lp-dots { display: flex; justify-content: center; gap: 8px; padding: 6px 0 0; }
.lp-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); transition: all .3s; }
.lp-dots i.on { width: 26px; border-radius: 99px; background: var(--lime); }
.lp-hint { text-align: center; padding: 2px 0 0; }

/* Página principal minimalista: sin sombras, solo bordes finos */
.lp .mock, .lp-use .mock, .lp-slider .mock, .lp-arrow, .vmic, .mock-bar i, .lp-slider .btn, .lp-plan, .lp-biz, .lp-step, .lp-faq { box-shadow: none !important; }
.lp-nav { backdrop-filter: none; background: var(--bg); }

/* Chats ilustrados (globos dibujados en línea que aparecen y se mueven); sin avatares ni tarjetas */
.lp { --page-ink: var(--ink); --page-bg: var(--bg); }
.lp-slider { max-width: 520px; }
.scene, .scene-mini { display: flex; flex-direction: column; gap: 12px; }
.scene { min-height: 450px; justify-content: flex-end; padding: 6px 4px; }
.scene-chat { display: flex; flex-direction: column; gap: 12px; flex: 1; justify-content: flex-end; }
.sbody { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.sb { position: relative; max-width: 90%; padding: 10px 15px; border: 2.6px solid var(--ink); border-radius: 22px; background: var(--bg); color: var(--ink); font-weight: 700; font-size: calc(14.5px * var(--fs, 1)); line-height: 1.35; animation: sbpop .45s cubic-bezier(.3, 1.5, .5, 1) both; }
.sb.me { align-self: flex-end; background: var(--lime); color: #14230f; border-bottom-right-radius: 6px; }
.sb.bot { align-self: flex-start; border-bottom-left-radius: 6px; }
.sb.me:not(.typing), .sb.saved { animation: sbpop .45s cubic-bezier(.3, 1.5, .5, 1) both, sbbob 5.5s ease-in-out .6s infinite; }
.sb .rcpt { font-weight: 600; margin: 6px 0 2px; } .sb .rl { color: var(--ink); }
.sb .rcpt .rl.rt { border-top-color: var(--ink); }
.sb.saved { background: color-mix(in srgb, var(--lime) 16%, var(--bg)); }
.sbtns { display: flex; gap: 8px; margin-top: 8px; }
.sbtn { border: 2.2px solid var(--ink); border-radius: 99px; padding: 4px 15px; font-size: calc(13px * var(--fs, 1)); font-weight: 800; }
.sbtn.go { background: var(--lime); color: #14230f; } .sbtn.press { transform: scale(.92); filter: brightness(1.15); }
.sbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 2.6px solid var(--ink); border-radius: 99px; padding: 7px 7px 7px 18px; color: var(--muted); font-weight: 700; font-size: calc(14px * var(--fs, 1)); }
.sbar i { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--mic); color: #fff; display: grid; place-items: center; }
.sb.typing { display: flex; gap: 5px; padding: 12px 16px; align-self: flex-start; }
.sb.typing span { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); opacity: .5; animation: tdot 1s infinite; }
.sb.typing span:nth-child(2) { animation-delay: .15s; } .sb.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes sbpop { from { opacity: 0; transform: translateY(12px) scale(.93); } to { opacity: 1; transform: none; } }
@keyframes sbbob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
/* escena de voz */
.vstate { font-size: calc(13px * var(--fs, 1)); color: var(--muted); font-weight: 800; min-height: 1.3em; text-align: center; }
.vrow { display: flex; align-items: center; gap: 14px; }
.vorb { position: relative; flex: none; width: 66px; height: 66px; border-radius: 50%; background: var(--mic); color: #fff; display: grid; place-items: center; transition: transform .2s; }
.vorb.tap { transform: scale(.86); }
.vorb.rec { background: var(--bad); }
.vorb.rec::before { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 3px solid var(--bad); animation: ripple 1.1s ease-out infinite; }
@keyframes ripple { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.3); opacity: 0; } }
.scene .vwave { flex: 1; display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 12px; border: 2.6px solid var(--ink); border-radius: 99px; background: none; }
.scene .vwave i { display: block; width: 4px; height: 6px; border-radius: 3px; background: var(--ink); opacity: .5; }
.scene.rec .vwave i { background: var(--bad); opacity: 1; animation: vbar .8s ease-in-out infinite; animation-delay: var(--d); }
/* escenas pequeñas: aparecen cuando llegan a la pantalla */
.scene-mini { min-height: 230px; justify-content: flex-start; }
.scene-mini .sb { opacity: 0; animation: none; }
.scene-mini.in .sb { animation: sbpop .45s cubic-bezier(.3, 1.5, .5, 1) both; }
.scene-mini.in .sb:nth-child(2) { animation-delay: .55s; } .scene-mini.in .sb:nth-child(3) { animation-delay: 1.1s; } .scene-mini.in .sb:nth-child(4) { animation-delay: 1.65s; }
.scene-mini .sbar { margin-top: auto; }
.lp-use .scene-mini { padding: 4px 2px; }
@media (prefers-reduced-motion: reduce) { .sb, .sb.me, .sb.saved, .scene-mini .sb, .vorb.rec::before, .scene.rec .vwave i { animation: none !important; opacity: 1 !important; } }

/* Chat de ejemplo: el micrófono se pulsa, se ve la voz y se escribe lo que se dice */
.mock-bar span { flex: 1; min-width: 0; }
.mock-bar .mwave { display: none; align-items: center; gap: 3px; height: 28px; margin: 0 10px; }
.mock-bar .mwave b { display: block; width: 3px; height: 5px; border-radius: 2px; background: var(--bad); }
.mock-bar.rec .mwave { display: flex; }
.mock-bar.rec .mwave b { animation: vbar .8s ease-in-out infinite; animation-delay: var(--d); }
.mock-bar i { position: relative; transition: transform .2s, background .2s; }
.mock-bar i.tap { transform: scale(.82); }
.mock-bar.rec i { background: var(--bad); }
.mock-bar.rec i::before { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--bad); animation: ripple 1.1s ease-out infinite; }
@keyframes ripple { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.3); opacity: 0; } }
@keyframes vbar { 0%, 100% { height: 5px; } 50% { height: 22px; } }

/* Banner principal: siempre la misma altura (el chat de ejemplo no la cambia al animarse) */
.demo .mock-body { height: 340px; min-height: 340px; overflow: hidden; justify-content: flex-start; }
@media (min-width: 900px) { .lp-hero { min-height: 470px; } }
.mock-bar { height: 56px; box-sizing: border-box; }
.demo { height: 466px; }
.lp-use .mock { height: 268px; min-height: 0; overflow: hidden; }

@media (min-width: 960px) { .stafftiles { display: none; } }

/* Lo que ya está en el menú lateral de PC no se repite en Ajustes (en celular sí se ve) */
.onlym { display: contents; }
@media (min-width: 960px) { .onlym { display: none; } }

/* Recorrido guiado: resalte + aviso flotante que señala cada lugar */
.tour-layer { position: fixed; inset: 0; z-index: 60; }
.tspot { position: fixed; border: 3px solid var(--lime); border-radius: 18px; box-shadow: 0 0 0 9999px rgba(18, 24, 14, .6); pointer-events: none; transition: all .3s ease; }
.tcard { position: fixed; z-index: 61; width: min(320px, calc(100vw - 24px)); background: var(--card); color: var(--ink); border: 2px solid var(--ink); border-radius: 20px; padding: 14px 16px 14px; transition: left .3s ease, top .3s ease; }
.tcard h3 { font-size: calc(18px * var(--fs, 1)); margin: 4px 0 4px; }
.tcard p { margin: 0; color: var(--muted); font-size: calc(14.5px * var(--fs, 1)); line-height: 1.4; }
.tdots { display: flex; gap: 5px; }
.tdots span { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.tdots span.on { width: 20px; border-radius: 99px; background: var(--lime); }
.tcaret { position: absolute; width: 14px; height: 14px; background: var(--card); border: 2px solid var(--ink); border-right: 0; border-bottom: 0; transform: rotate(45deg); }
.tcard[data-side="top"] .tcaret { transform: rotate(225deg); }
.tcard[data-side="right"] .tcaret { transform: rotate(-45deg); }
.tcard[data-side="left"] .tcaret { transform: rotate(135deg); }
@media (prefers-reduced-motion: reduce) { .tspot, .tcard { transition: none; } }

/* Venta actual: una fila por producto (nombre, cantidad, total); el precio se cambia tocándolo */
.list > .item.cartline.cl1 { display: grid; grid-template-columns: 1fr auto auto; align-items: center; column-gap: 10px; row-gap: 0; padding-top: 9px; padding-bottom: 9px; }
.cartline.cl1 > .grow { display: block; min-width: 0; grid-column: 1; }
.cartline.cl1 .ln { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.2; }
.cartline.cl1 .qtyedit { grid-column: 2; grid-row: 1; justify-self: end; gap: 4px; }
.cartline.cl1 .qtyedit .round { width: 32px; height: 32px; }
.cartline.cl1 .minin.qty { width: 46px; text-align: center; padding: 0 4px; height: 34px; }
.cartline.cl1 .lineamt { grid-column: 3; grid-row: 1; min-width: 72px; text-align: right; }
.cl-price { margin-top: 1px; }
.pricelink { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; text-align: left; }
.chips.compact { gap: 6px; }
.chips.compact .chip { padding: 7px 12px; font-size: calc(13.5px * var(--fs, 1)); min-height: 0; }
.moreopt { margin: 4px 0 6px; }
.moreopt summary { cursor: pointer; color: var(--muted); font-weight: 700; font-size: calc(13px * var(--fs, 1)); padding: 4px 0; list-style: none; }
.moreopt summary::-webkit-details-marker { display: none; }
.moreopt summary::before { content: '+ '; }
.moreopt[open] summary::before { content: '– '; }

/* Vender: buscador para escribir, arriba y sin encabezados; los productos empiezan justo debajo */
.vbar .search.psearch { gap: 8px; padding: 6px 8px 6px 16px; }
.psearch > .ico { color: var(--muted); flex: none; }
.psearch input { flex: 1; min-width: 0; }
@media (min-width: 960px) {
  .vbar .search.psearch { position: static; top: auto; left: auto; width: auto; margin: 0; box-shadow: none; border: 1.5px solid var(--line); background: var(--card); }
  .vbar { display: block; margin-top: 4px; }
  .shell.hasbar { padding-top: 92px; }
}
@media (max-width: 959px) { .fab.up { bottom: calc(env(safe-area-inset-bottom, 0px) + 56px + 59px + 16px); } }
.psearch .go[hidden] { display: none; }

/* El alto sobrante de la venta actual va a la lista, no entre el buscador y los productos */
@media (min-width: 960px) { .vgrid { grid-template-rows: auto 1fr; } }
/* «Otro monto»: una casilla más de la cuadrícula */
.prod.otro { border: 2px dashed var(--line); background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; font-weight: 800; color: var(--ink); min-height: 96px; }
.prod.otro .otro-plus { width: 34px; height: 34px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; color: #1c2b1e; }
.prod.otro .otro-plus .ico { width: 18px; height: 18px; }
.prod.otro.open { align-items: stretch; text-align: left; border-style: solid; cursor: default; }
.otro-row { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.otro-row input { flex: 1; min-width: 0; width: 100%; background: var(--field); border: 0; border-radius: 12px; padding: 8px 10px; font-weight: 800; }

/* «Otro monto» abierto: campo grande con S/ dentro, sin flechitas, y el botón debajo */
.prod.otro.open { gap: 8px; padding: 12px; }
.otro-field { display: flex; align-items: center; gap: 8px; background: var(--field); border-radius: 14px; padding: 0 14px; min-height: 46px; }
.otro-field span { color: var(--muted); font-weight: 800; }
.otro-field input { flex: 1; min-width: 0; width: 100%; background: transparent; border: 0; padding: 10px 0; font-size: calc(20px * var(--fs, 1)); font-weight: 800; -moz-appearance: textfield; appearance: textfield; outline: none; }
.otro-field input::-webkit-outer-spin-button, .otro-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.prod.otro.open .btn.block { width: 100%; }

.prod .newtag { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 99px; background: var(--lime); color: #1c2b1e; font-size: calc(11px * var(--fs, 1)); font-weight: 800; vertical-align: 1px; }

.linkcancel { display: block; margin: 10px auto 0; background: none; border: 0; color: var(--muted); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 8px 12px; }

/* Producto por kilo en la venta: nombre y total arriba, precio y peso abajo, atajos solo si falta el peso */
.list > .item.cartline.kl { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px; row-gap: 4px; padding-top: 9px; padding-bottom: 9px; }
.cartline.kl .ln { grid-column: 1; grid-row: 1; }
.cartline.kl .soles-in { grid-column: 2; grid-row: 1; justify-self: end; display: flex; align-items: center; gap: 4px; }
.cartline.kl .soles-in input { width: 84px; text-align: right; height: 34px; }
.cartline.kl .cl-price { grid-column: 1; grid-row: 2; }
.cartline.kl .qtyedit { grid-column: 2; grid-row: 2; justify-self: end; gap: 4px; }
.cartline.kl .qtyedit .round { width: 32px; height: 32px; }
.cartline.kl .minin.qty { width: 56px; text-align: center; padding: 0 4px; height: 34px; }
.cartline.kl .kgask { grid-column: 1 / -1; grid-row: 3; padding-top: 2px; }
.list > .item.cartline.kl.pending { background: transparent; padding-left: 0; padding-right: 0; }
.cartline.kl.pending .qty { border: 2px solid var(--lime); }

/* Por kilo: mientras falta el peso, solo el casillero y atajos de texto; los − / + aparecen después */
.cartline.kl .kgask { display: flex; align-items: center; gap: 2px; grid-column: auto; grid-row: auto; padding: 0; }
.cartline.kl .kgask button { background: none; border: 0; padding: 6px 7px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; }
.cartline.kl .kgask button:hover, .cartline.kl .kgask button:active { color: var(--ink); }
.cartline.kl.pending .qtyedit .round { display: none; }
.cartline.kl.pending .minin.qty { width: 64px; }

/* Cómo paga: los métodos de siempre, en una sola fila */
.chips.one { flex-wrap: nowrap; gap: 5px; }
.chips.one .chip { flex: 1 1 auto; min-width: 0; padding: 9px 4px; font-size: calc(12.5px * var(--fs, 1)); white-space: nowrap; text-align: center; justify-content: center; }
.chips.one .chip .ico { display: none; }

/* Por kilo sin peso: el casillero de kg es el principal; el de soles, una opción discreta y sin recortes */
.cartline.kl.pending .qtyedit > .small { display: none; }
.cartline.kl.pending .qtyedit .minin.qty { width: 78px; height: 38px; font-size: calc(16px * var(--fs, 1)); font-weight: 800; }
.list > .item.cartline.kl.pending .soles-in input.minin { width: 104px; height: 32px; padding: 0 10px; text-align: center; font-size: calc(13px * var(--fs, 1)); font-weight: 600; background: transparent; border: 1.5px dashed var(--line); }
.cartline.kl .kgask { gap: 0; }
.cartline.kl .kgask button { padding: 6px 8px; }

.list > .item.cartline { transition: background .5s; }
.list > .item.cartline.flash { background: var(--lime-soft); border-radius: 14px; }


/* Línea por kilo con peso: mismo orden que las demás (nombre y precio · cantidad · total); el casillero de soles solo si falta el peso */
.list > .item.cartline.kl:not(.pending) { grid-template-columns: 1fr auto auto; }
.cartline.kl:not(.pending) .ln { grid-column: 1; grid-row: 1; }
.cartline.kl:not(.pending) .cl-price { grid-column: 1; grid-row: 2; }
.cartline.kl:not(.pending) .qtyedit { grid-column: 2; grid-row: 1 / span 2; }
.cartline.kl:not(.pending) .lineamt { grid-column: 3; grid-row: 1 / span 2; min-width: 72px; text-align: right; }
.cartline.kl .lineamt { display: block; }
.cartline.kl.pending .lineamt { display: none; }
.cartline.kl:not(.pending) .soles-in:not(:focus-within) { display: none; }
.cartline.kl:has(.soles-in:focus-within) .lineamt { display: none; }
.cartline.kl:not(.pending) .minin.qty { width: 70px; }
.cartline.kl:not(.pending) .qtyedit > .small { display: none; }
/* − y +: discretos; el número, sin recuadro */
.cartline .qtyedit .round { width: 28px; height: 28px; background: transparent; border: 1.5px solid var(--line); color: var(--muted); }
.cartline .qtyedit .round .ico { width: 14px; height: 14px; }
.cartline .qtyedit .round:active { background: var(--lime-soft); color: var(--ink); }
.cartline .minin.qty { background: transparent; font-weight: 800; }
.cartline.cl1 .minin.qty { width: 40px; }
.cartline.cl1 .qtyedit .round, .cartline.kl .qtyedit .round { width: 28px; height: 28px; }
.cartline .qtyedit .round { flex: none; min-width: 28px; }

/* Venta actual (PC): la lista de productos se desplaza sola; cómo paga, total y «Cobrar» siempre visibles abajo */
@media (min-width: 960px) {
  .vcart { overflow: visible; }
  .vcart > .card { display: flex; flex-direction: column; max-height: calc(100vh - 62px); }
  .cartlist { flex: 1 1 auto; min-height: 110px; overflow-y: auto; overscroll-behavior: contain; }
  .cartfoot { flex: none; border-top: 1px solid var(--line); margin-top: 4px; }
}

/* Cobro en menos filas: «Pagó con» en una línea, vuelto junto al total, «Redondear» y «Cancelar» lado a lado */
.payrow2 { display: flex; align-items: center; gap: 5px; margin: 4px 0 2px; flex-wrap: nowrap; }
.payrow2 .small { flex: none; }
.payrow2 .chip { flex: 1 1 auto; min-width: 0; padding: 8px 4px; text-align: center; justify-content: center; white-space: nowrap; }
.payrow2 .minin { flex: 1.2 1 0; min-width: 0; width: auto; height: 36px; padding: 0 8px; text-align: center; }
.totrow { align-items: baseline; gap: 8px; }
.totrow .vuelto { font-size: calc(14px * var(--fs, 1)) !important; margin-left: auto; font-weight: 800; }
.totrow .vuelto:empty { display: none; }
.linkrow { display: flex; justify-content: space-between; align-items: center; }
.linkrow .linkcancel { margin: 4px 0 0; display: inline-block; }

.cartline .qtyedit .round.rm, .cartline .qtyedit .round:has(.ico) { }
.payrow2 .minin { flex: 1.6 1 56px; min-width: 56px; }
.payrow2 .chip { padding: 8px 2px; }

/* Marca Encreci */
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.brand .bmark { flex: none; border-radius: 22%; }
.brand .bname { font-size: 1.15em; }
.side-brand { padding: 2px 6px 10px; font-size: 20px; }
.auth-side h1 .brand { font-size: 34px; gap: 12px; }

/* Crédito sutil */
.credit { margin: 14px 0 4px; text-align: center; font-size: 12px; color: var(--muted); opacity: .75; }
.credit a { color: inherit; text-decoration: none; }
.credit a:hover { text-decoration: underline; }
.credit { font-size: 11px; opacity: .5; letter-spacing: .02em; margin-top: 10px; }

/* Celular: la línea por kilo se acomoda en filas limpias (nombre y total · precio · atajos y peso) */
@media (max-width: 520px) {
  .list > .item.cartline.kl { grid-template-columns: 1fr auto; row-gap: 6px; }
  .cartline.kl .ln { grid-column: 1; grid-row: 1; }
  .cartline.kl .soles-in, .cartline.kl .lineamt { grid-column: 2; grid-row: 1; justify-self: end; }
  .cartline.kl .cl-price { grid-column: 1 / -1; grid-row: 2; white-space: nowrap; }
  .cartline.kl .cl-price .pricelink { white-space: nowrap; }
  .cartline.kl .qtyedit { grid-column: 1 / -1; grid-row: 3; justify-self: stretch; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
  .cartline.kl .kgask { margin-right: auto; }
  .list > .item.cartline.kl:not(.pending) .qtyedit { grid-row: 3; }
  .list > .item.cartline.kl:not(.pending) .lineamt { grid-row: 1; }
}
@media (max-width: 520px) {
  .list > .item.cartline.kl:not(.pending) { grid-template-columns: 1fr auto; }
  .cartline.kl:not(.pending) .ln { grid-column: 1; grid-row: 1; }
  .cartline.kl:not(.pending) .lineamt { grid-column: 2; grid-row: 1; justify-self: end; min-width: 0; }
  .cartline.kl:not(.pending) .cl-price { grid-column: 1 / -1; grid-row: 2; }
  .cartline.kl:not(.pending) .qtyedit { grid-column: 1 / -1; grid-row: 3; justify-self: stretch; justify-content: flex-end; }
}

/* Sugerencias de productos mientras se escribe en el chat */
.wsug { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; padding: 0 2px 6px; scrollbar-width: none; }
.wsug::-webkit-scrollbar { display: none; }
.wsug:empty { display: none; }
.wsug .chip { flex: none; white-space: nowrap; background: var(--lime-soft); border-color: transparent; }

/* Cerrar siempre a la vista en las ventanas (planes y demás) */
.modal-x { position: sticky; top: 0; z-index: 3; float: right; width: 40px; height: 40px; margin: -8px -4px 0 8px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.modal-x .ico { width: 18px; height: 18px; }

/* Cambiar el precio en la línea de la venta: «S/ [precio] por kilo» en una sola línea, sin apilarse */
.cartline .cl-price .priceedit { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 6px; white-space: nowrap; grid-column: auto; grid-row: auto; margin: 0; }
.cartline .cl-price .priceedit .minin { width: 76px; height: 32px; padding: 0 8px; text-align: center; }
.cartline .cl-price .priceedit > span { flex: none; }

/* Inicio: aire entre los chips de «cómo te pagaron» y la tarjeta de fiados */
.cashrow { margin: 14px 0 18px; gap: 10px; }
.ig-fiados { margin-top: 4px; }

/* Aviso «Venta guardada»: más pequeño, sin tapar el micrófono ni el chat flotantes */
.snack, .snack.up { right: 84px; gap: 8px; padding: 7px 8px 7px 11px; border-radius: 14px; box-shadow: none; }
.snack .grow b { font-size: calc(14px * var(--fs, 1)); line-height: 1.2; }
.snack .grow .small { font-size: calc(12px * var(--fs, 1)); line-height: 1.25; margin-top: 1px; }
.snack .btn.sm { padding: 5px 10px; min-height: 0; font-size: calc(13px * var(--fs, 1)); }
.snack .round.sm { width: 28px; height: 28px; flex: none; }
.snack .round.sm .ico { width: 14px; height: 14px; }
@media (min-width: 960px) { .snack, .snack.up { right: auto; } }

/* Cantidad en la venta: caben 3 y 4 dígitos (ej. 250) sin cortarse */
.cartline.cl1 .minin.qty { width: 58px; padding: 0 2px; text-align: center; -moz-appearance: textfield; appearance: textfield; font-size: calc(17px * var(--fs, 1)); }
.cartline.cl1 .minin.qty::-webkit-outer-spin-button, .cartline.cl1 .minin.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Aviso de instalar la app (celular, una sola vez) */
.instbar { display: flex; align-items: center; gap: 10px; margin: 8px 0 12px; padding: 10px 10px 10px 12px; border-radius: 16px; background: var(--lime-soft); border: 1px solid var(--line); }
.instbar .ri { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--lime); display: grid; place-items: center; color: #1c2b1e; }
.instbar .ri .ico { width: 18px; height: 18px; }
.instbar .btn.sm { flex: none; padding: 7px 12px; min-height: 0; }
.instbar .round.sm { flex: none; width: 28px; height: 28px; }
