:root {
  --bg: #f6f7f5; --surface: #fff; --ink: #14201c; --muted: #5d6b66; --line: #e3e8e5;
  --brand: #0f766e; --brand-d: #0b5a54; --brand-l: #e3f3f1;
  --accent: #f59e0b; --accent-l: #fef3dc;
  --ok: #15803d; --ok-l: #e2f5e8; --warn: #b45309; --warn-l: #fef3dc; --bad: #b91c1c; --bad-l: #fde8e8; --info: #1d4ed8; --info-l: #e5edff;
  --r: 12px; --shadow: 0 1px 2px rgba(20,32,28,.05), 0 4px 16px rgba(20,32,28,.05);
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font: 15px/1.5 -apple-system, "Segoe UI", Roboto, Inter, system-ui, sans-serif; color: var(--ink); background: var(--bg); }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.01em; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.sm { width: 16px; height: 16px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .right { text-align: right; } .nowrap { white-space: nowrap; }
.row { display: flex; align-items: center; gap: 10px; } .between { justify-content: space-between; } .wrap { flex-wrap: wrap; } .grow { flex: 1; }
.stack > * + * { margin-top: 12px; }

/* Botones y formularios */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; cursor: pointer; transition: .15s; white-space: nowrap; }
.btn:hover { border-color: #c9d2ce; background: #fafbfa; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-d); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #2b1b00; }
.btn.ghost { border-color: transparent; background: transparent; } .btn.ghost:hover { background: rgba(20,32,28,.05); }
.btn.sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; } .btn.lg { padding: 14px 22px; font-size: 16px; }
.btn.danger { color: var(--bad); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
label.f { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
label.f > :is(input, select, textarea) { display: block; margin-top: 5px; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid #cfd8d4; border-radius: 10px; background: #fff; }
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 3px solid rgba(15,118,110,.25); border-color: var(--brand); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--brand); padding: 0; }

/* Contenedores */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; }
.card h3 { font-size: 15px; margin-bottom: 12px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.g-main { grid-template-columns: 1.6fr 1fr; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--line); color: var(--muted); white-space: nowrap; }
.chip.ok { background: var(--ok-l); color: var(--ok); } .chip.warn { background: var(--warn-l); color: var(--warn); }
.chip.bad { background: var(--bad-l); color: var(--bad); } .chip.info { background: var(--info-l); color: var(--info); } .chip.brand { background: var(--brand-l); color: var(--brand-d); }
.kpi .label { font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi .value { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
.kpi .delta { font-size: 13px; margin-top: 2px; }
.pos { color: var(--ok); } .neg { color: var(--bad); }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); background: #fafbfa; }
td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.tablewrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
.bar { height: 8px; border-radius: 9px; background: var(--line); overflow: hidden; } .bar > i { display: block; height: 100%; background: var(--brand); border-radius: 9px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 14px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.tabs button.on { color: var(--brand); border-color: var(--brand); }
.empty { text-align: center; color: var(--muted); padding: 28px 10px; }

/* Modal y toast */
.overlay { position: fixed; inset: 0; background: rgba(10,20,17,.5); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modal { background: #fff; border-radius: 16px; width: min(480px, 100%); max-height: 92vh; overflow: auto; padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal h3 { font-size: 20px; margin-bottom: 4px; }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: #14201c; color: #fff; padding: 11px 18px; border-radius: 10px; z-index: 60; font-weight: 600; box-shadow: 0 8px 30px rgba(0,0,0,.25); }

/* Bloqueo por plan */
.locked { position: relative; }
.locked > .lock-body { filter: blur(3px); opacity: .55; pointer-events: none; user-select: none; }
.lock-cta { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 20px; }
.lock-cta .badge { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-l); color: var(--warn); display: grid; place-items: center; }

/* ---------- App ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: #0e2a26; color: #cfe3df; padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.brandmark { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: #fff; padding: 4px 8px 16px; letter-spacing: -.02em; }
.brandmark .logo { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, #14b8a6, #0f766e); display: grid; place-items: center; color: #fff; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-weight: 600; color: #b7d0cb; cursor: pointer; }
.nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav a.on { background: #14b8a6; color: #04302b; }
.nav .lockmini { margin-left: auto; opacity: .7; }
.side .foot { margin-top: auto; font-size: 13px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.06); }
.side select { background: #0b211e; border-color: #24514a; color: #fff; padding: 6px 8px; margin-top: 6px; font-size: 13px; }
.main { padding: 26px clamp(16px, 3vw, 48px) 60px; max-width: 1720px; width: 100%; min-width: 0; }
.app.side-right { grid-template-columns: 1fr 248px; } .app.side-right .side { order: 2; }
@media (min-width: 1600px) { .app { grid-template-columns: 280px 1fr; } .app.side-right { grid-template-columns: 1fr 280px; } .main { font-size: 16px; } }
.pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.pagehead h1 { font-size: 26px; } .pagehead p { color: var(--muted); }
.banner { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; background: var(--accent-l); color: #5a3a00; border: 1px solid #f7d58f; flex-wrap: wrap; }
.banner.bad { background: var(--bad-l); border-color: #f5b5b5; color: var(--bad); }

/* Calculadora de ventas */
.calc .total { font-size: 40px; font-weight: 800; letter-spacing: -.03em; }
.calc .lines { max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.calc .line { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.calc .line:last-child { border-bottom: 0; }
.calc .qrow { display: grid; grid-template-columns: 1.6fr .6fr .9fr auto; gap: 8px; }
.pill { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.pill button { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; font-size: 13px; }
.pill button.on { background: var(--brand-l); border-color: var(--brand); color: var(--brand-d); }

/* Calendario */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dow { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cal .day { min-height: 74px; border: 1px solid var(--line); border-radius: 8px; padding: 4px 6px; font-size: 12px; background: #fff; }
.cal .day.out { background: #f6f7f5; color: #aab4b0; } .cal .day.today { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.cal .ev { display: block; margin-top: 2px; padding: 1px 5px; border-radius: 5px; font-size: 11px; background: var(--brand-l); color: var(--brand-d); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal .ev.r { background: var(--accent-l); color: var(--warn); }

/* Gráfico */
.chart { display: flex; align-items: flex-end; gap: 4px; height: 170px; padding-top: 8px; }
.chart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.chart .col i { width: 100%; max-width: 22px; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 2px; opacity: .85; }
.chart .col:hover i { opacity: 1; background: var(--brand-d); }
.chart .col span { font-size: 10px; color: var(--muted); margin-top: 4px; }

/* Auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth .art { background: linear-gradient(160deg, #0e2a26, #0f766e); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.auth .art h2 { font-size: 34px; } .auth .art li { list-style: none; display: flex; gap: 10px; margin-top: 10px; }
.auth .form { display: grid; place-items: center; padding: 32px; }
.auth .box { width: min(400px, 100%); }

/* ---------- Landing ---------- */
.container { width: min(1120px, 100% - 40px); margin: 0 auto; }
.nav-top { position: sticky; top: 0; background: rgba(246,247,245,.9); backdrop-filter: blur(10px); z-index: 20; border-bottom: 1px solid var(--line); }
.nav-top .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-top .brandmark { color: var(--ink); padding: 0; } .nav-top nav { display: flex; gap: 26px; font-weight: 600; color: var(--muted); }
.hero { padding: 72px 0 56px; background: radial-gradient(1000px 400px at 80% -10%, #d4efea, transparent), var(--bg); }
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.hero h1 { font-size: 52px; letter-spacing: -.035em; } .hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 18px 0 26px; max-width: 520px; }
.trust { display: flex; gap: 18px; margin-top: 22px; color: var(--muted); font-size: 14px; flex-wrap: wrap; } .trust span { display: flex; gap: 6px; align-items: center; } .trust .ic { color: var(--brand); }
.mock { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 80px rgba(15,60,54,.18); padding: 16px; transform: rotate(1.2deg); }
.mock .mk-top { display: flex; gap: 6px; margin-bottom: 12px; } .mock .mk-top i { width: 10px; height: 10px; border-radius: 50%; background: #dfe5e2; }
.section { padding: 76px 0; } .section.alt { background: #fff; border-block: 1px solid var(--line); }
.section h2 { font-size: 36px; text-align: center; } .section .sub { text-align: center; color: var(--muted); max-width: 640px; margin: 10px auto 40px; font-size: 17px; }
.feat { display: flex; flex-direction: column; gap: 8px; } .feat .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-l); color: var(--brand); display: grid; place-items: center; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } .vs .paper { background: #fffbe8; border: 1px dashed #d9c77a; font-family: "Segoe Print", "Comic Sans MS", cursive; line-height: 1.9; }
.steps { counter-reset: s; } .steps .card { position: relative; padding-top: 30px; } .steps .card::before { counter-increment: s; content: counter(s); position: absolute; top: -16px; left: 18px; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; }
.price { display: flex; flex-direction: column; gap: 14px; position: relative; }
.price.pop { border: 2px solid var(--brand); } .price .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; padding: 3px 14px; border-radius: 99px; font-size: 12px; font-weight: 800; }
.price .amt { font-size: 42px; font-weight: 800; letter-spacing: -.03em; } .price .amt small { font-size: 15px; font-weight: 600; color: var(--muted); }
.price ul { list-style: none; padding: 0; display: grid; gap: 9px; flex: 1; } .price li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; } .price li .ic { color: var(--brand); margin-top: 2px; } .price li.off { color: #9aa6a1; } .price li.off .ic { color: #c3ccc8; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; } summary { font-weight: 700; cursor: pointer; } details p { color: var(--muted); margin-top: 8px; }
.cta-final { background: linear-gradient(135deg, #0e2a26, #0f766e); color: #fff; text-align: center; border-radius: 24px; padding: 56px 24px; }
footer { padding: 40px 0; color: var(--muted); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .g3, .g4 { grid-template-columns: 1fr 1fr; } .g-main, .hero .container, .auth, .vs { grid-template-columns: 1fr; }
  .auth .art { display: none; } .hero h1 { font-size: 38px; } .nav-top nav { display: none; } .mock { transform: none; }
}
@media (max-width: 760px) {
  .app, .app.side-right { grid-template-columns: 1fr; }
  .app.bar-top .side { top: 0; bottom: auto; border-top: 0; border-bottom: 1px solid #1c4a43; }
  .app.bar-top .main { padding: 84px 16px 40px; } .app.bar-top ~ .toast, .toast { bottom: 90px; }
  .nav a span:not(.lockmini) { font-size: 10px; } .nav a { min-width: 0; flex: 1; align-items: center; padding: 6px 2px; }
  .side { position: fixed; z-index: 30; bottom: 0; left: 0; right: 0; top: auto; height: auto; flex-direction: row; padding: 4px; border-top: 1px solid #1c4a43; }
  .side .brandmark, .side .foot { display: none; }
  .nav { display: flex; width: 100%; justify-content: space-around; } .nav a { flex-direction: column; gap: 2px; font-size: 11px; padding: 6px 8px; } .nav .lockmini { display: none; }
  .main { padding: 18px 16px 100px; } .g2, .g3, .g4 { grid-template-columns: 1fr; } .kpi .value { font-size: 24px; }
  .grid.g4.keep2 { grid-template-columns: 1fr 1fr; }
  .calc .qrow { grid-template-columns: 1fr 1fr; } .calc .qrow > :first-child { grid-column: 1 / -1; }
  .cal .day { min-height: 54px; } .cal .ev { font-size: 0; padding: 3px; display: inline-block; margin-right: 2px; }
  .section h2 { font-size: 28px; } .section { padding: 52px 0; } .hero { padding-top: 40px; }
}

/* ---------- Dashboard y ventas rápidas ---------- */
.link { color: var(--brand); font-weight: 700; cursor: pointer; } .link:hover { text-decoration: underline; }
.kpi.tint-brand { background: var(--brand-l); border-color: #b4ddd8; } .kpi.tint-brand .value { color: var(--brand-d); } .kpi.tint-brand .delta { color: var(--brand-d); }
.kpi.tint-red { background: #fde8e8; border-color: #f3bcbc; } .kpi.tint-red .value, .kpi.tint-red .delta { color: #a11a1a; }
.kpi.tint-green { background: #e2f5e8; border-color: #b0e0be; } .kpi.tint-green .value, .kpi.tint-green .delta { color: #14632f; }
.modal.wide { width: min(720px, 100%); }
.venta3 { display: grid; grid-template-columns: minmax(290px, .95fr) minmax(320px, 1.1fr) minmax(270px, .95fr); gap: 16px; align-items: start; }
.cdisp { font-size: 30px; font-weight: 800; text-align: right; padding: 12px 14px; letter-spacing: -.01em; }
.keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 8px; }
.keys button { min-height: 50px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 20px; font-weight: 700; cursor: pointer; touch-action: manipulation; }
.keys button:hover { background: #f1f5f3; } .keys button:active { transform: scale(.96); background: var(--brand-l); }
.keys .op { background: var(--brand-l); color: var(--brand-d); border-color: #b4ddd8; }
.keys .clr { background: var(--bad-l); color: var(--bad); border-color: #f3bcbc; }
.keys .eq { grid-column: span 3; background: var(--brand); color: #fff; border-color: var(--brand); font-size: 16px; }
.keys .eq:hover { background: var(--brand-d); }
.sugg { display: grid; gap: 4px; margin-top: 6px; } .sugg:empty { display: none; }
.sg { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; text-align: left; }
.sg:hover, .sg:first-child { background: var(--brand-l); border-color: #b4ddd8; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; } .chips .btn { border-radius: 99px; }
@media (max-width: 1180px) { .venta3 { grid-template-columns: 1fr 1fr; } .venta3 > :nth-child(3) { grid-column: 1 / -1; } }
@media (max-width: 760px) { .venta3 { grid-template-columns: 1fr; } .cdisp { font-size: 26px; } .keys button { min-height: 54px; } }
.mode { display: inline-flex; gap: 8px; align-items: center; padding: 9px 14px; border: 1px solid var(--line); border-radius: 99px; cursor: pointer; font-weight: 600; font-size: 14px; background: #fff; }
.mode:has(input:checked) { background: var(--brand-l); border-color: var(--brand); color: var(--brand-d); }
.mode input { width: 16px; height: 16px; }
[hidden] { display: none !important; }

/* ---------- Tipografía premium ---------- */
:root { --font: "Inter", -apple-system, "Segoe UI", Roboto, system-ui, sans-serif; --display: "Manrope", "Inter", system-ui, sans-serif; }
body { font-family: var(--font); font-weight: 400; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; letter-spacing: -.003em; }
h1, h2, h3, h4, .brandmark { font-family: var(--display); font-weight: 700; letter-spacing: -.025em; }
.pagehead h1 { font-size: 28px; } .card h3 { font-size: 15px; font-weight: 700; }
b, strong { font-weight: 600; } .btn, .tabs button, .pill button, .chip { font-weight: 600; } th { font-weight: 600; letter-spacing: .06em; }
.kpi .value, .total, .cdisp, .price .amt, .keys button, .chart .col span {
  font-family: var(--display); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "tnum" 1, "lnum" 1;
}
.kpi .value { font-size: 31px; font-weight: 600; letter-spacing: -.04em; line-height: 1.15; margin-top: 4px; }
.kpi .label { font-weight: 500; letter-spacing: .01em; }
.total { font-size: 38px; font-weight: 600; letter-spacing: -.04em; }
.cdisp { font-size: 30px; font-weight: 600; letter-spacing: -.03em; }
.keys button { font-weight: 600; font-size: 19px; }
.price .amt { font-weight: 600; letter-spacing: -.04em; } .price .amt small { font-family: var(--font); letter-spacing: 0; }
td, .sg b, .line b { font-variant-numeric: tabular-nums lining-nums; }
.hero h1 { font-weight: 700; letter-spacing: -.04em; } .section h2 { font-weight: 700; }
.nav a { font-weight: 500; } .nav a.on { font-weight: 600; }

/* ---------- Ajustes: gráfico del mes, formularios, listas ---------- */
.pagehead p { font-size: 13.5px; }
.hint { font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.opt { font-weight: 400; font-size: 11.5px; color: #8a9893; margin-left: 4px; }
.scroll { max-height: 470px; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.scroll thead th { position: sticky; top: 0; z-index: 1; }
.click-row { cursor: pointer; border-radius: 8px; transition: background .12s; } .click-row:hover { background: var(--brand-l); }
.cal .day.click { cursor: pointer; transition: .12s; } .cal .day.click:hover { border-color: var(--brand); background: var(--brand-l); }
.mchart { display: flex; align-items: flex-end; gap: 3px; height: 230px; padding-top: 6px; }
.mchart .col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.mchart .col i { width: 100%; max-width: 22px; background: var(--brand); border-radius: 4px 4px 0 0; opacity: .88; }
.mchart .col:hover i { opacity: 1; background: var(--brand-d); }
.mchart .col em { font-style: normal; font-size: 10px; color: var(--ink); font-variant-numeric: tabular-nums; margin-bottom: 3px; white-space: nowrap; font-weight: 500; }
.mchart .col span { font-size: 10.5px; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.mchart .col.fut i { background: var(--line); opacity: 1; } .mchart .col.today span { color: var(--brand); font-weight: 700; } .mchart .col.today i { background: var(--accent); }
.pform { display: grid; gap: 16px; margin-top: 14px; } .pform .f { margin: 0; }
.pform .sect { padding: 14px 0 2px; border-top: 1px solid var(--line); }
.sumbox { text-align: center; padding: 11px 14px; border-radius: 10px; background: var(--brand-l); color: var(--brand-d); font-size: 13.5px; }
details.more { border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; } details.more summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.grid.g1 { grid-template-columns: 1fr; }
.pin { width: 74px; padding: 3px 6px; border-radius: 6px; font-size: 12px; }
.smline { display: grid; grid-template-columns: 1fr 64px 92px auto; gap: 6px; margin-bottom: 6px; }
@media (max-width: 760px) {
  .mchart { gap: 1px; height: 250px; } .mchart .col em { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 9px; } .mchart .col span { font-size: 8.5px; }
  .smline { grid-template-columns: 1fr 56px 78px auto; }
}
.cap1::first-letter { text-transform: uppercase; }

/* ---------- Marca, soporte, pantalla de entrada ---------- */
.brandmark .bname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; min-width: 0; }
.brandmark .logo { overflow: hidden; flex: none; } .brandmark .logo-img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.logo-box { width: 84px; height: 84px; border-radius: 18px; border: 1px dashed #c3cfca; background: #f6f8f7; display: grid; place-items: center; overflow: hidden; flex: none; color: var(--brand); }
.logo-box img { width: 100%; height: 100%; object-fit: contain; background: #fff; } .logo-box .ic { width: 30px; height: 30px; }
.btn.wa { background: #25d366; border-color: #25d366; color: #05321b; } .btn.wa:hover { background: #1fbd5a; border-color: #1fbd5a; }
.help { margin-top: auto; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); display: grid; gap: 2px; }
.help + .foot { margin-top: 10px; } .help .btn { margin-top: 8px; width: 100%; }
.wa-fab { position: fixed; right: 16px; bottom: 84px; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #05321b; display: none; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.28); z-index: 25; }
.wa-fab .ic { width: 26px; height: 26px; }
.tier-chip { display: inline-flex; align-items: center; padding: 1px 8px; margin-left: 6px; border-radius: 99px; background: var(--accent-l); color: var(--warn); font-size: 10.5px; font-weight: 700; letter-spacing: .02em; line-height: 1.6; white-space: nowrap; }
.nav a .tier-chip { background: rgba(245,158,11,.18); color: #fbd38d; margin: 0; } .nav .lockmini { opacity: 1; }
.tier-wrap { position: relative; } .tier-wrap > .tier-chip:first-child { position: absolute; top: -2px; right: 0; z-index: 2; }
.side { overflow-y: auto; }
/* pantalla de entrada */
.auth .art { position: relative; justify-content: flex-start; gap: 18px; color: #fff; padding: 44px 48px; background-color: #0e2a26;
  background-image: linear-gradient(180deg, rgba(7,26,23,.9) 0%, rgba(7,26,23,.55) 42%, rgba(7,26,23,.05) 100%), url('hero.jpg'), url('almacen.svg');
  background-size: cover, cover, cover; background-position: center, center, center bottom; background-repeat: no-repeat; }
.auth .art h2 { font-size: 46px; letter-spacing: -.04em; line-height: 1.05; } .auth .art .lead { opacity: .85; font-size: 17px; max-width: 420px; }
.auth .art ul { padding: 0; margin-top: 4px; } .auth .art li { font-size: 14.5px; opacity: .92; } .auth .art li .ic { color: #5eead4; width: 18px; height: 18px; }
.auth .art .quote { margin-top: auto; padding: 16px 20px; border-radius: 16px; background: rgba(8,28,25,.55); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(8px); }
.auth .art .quote p { font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -.01em; transition: opacity .4s; }
.auth .mhead { display: none; }
@media (max-width: 900px) {
  .auth .mhead { display: grid; gap: 4px; padding: 22px; border-radius: 18px; color: #fff; margin-bottom: 8px; min-height: 130px; align-content: end;
    background: linear-gradient(180deg, rgba(7,26,23,.75), rgba(7,26,23,.15)), url('hero.jpg') center/cover, url('almacen.svg') center bottom/cover, #0e2a26; }
  .auth .mhead b { font-family: var(--display); font-size: 22px; } .auth .mhead span { font-size: 13.5px; opacity: .9; }
}
@media (max-width: 760px) {
  .help { display: none; } .wa-fab { display: grid; } .app.bar-top .wa-fab { bottom: 20px; }
}
.auth .art { background-color: #08211e; background-size: cover, cover, 100% auto; background-position: center, center, center bottom; }

/* ---------- Colores por plan ---------- */
.tier-chip.pro { background: linear-gradient(135deg, #fbe9a6, #f0c850); color: #6b4a00; } .tier-chip.premium { background: #efe7ff; color: #6d28d9; }
.nav a .tier-chip.pro { background: linear-gradient(135deg, #fbe9a6, #f0c850); color: #6b4a00; } .nav a .tier-chip.premium { background: rgba(167,139,250,.26); color: #ddd6fe; }
.lock-cta .tier-chip { font-size: 12px; padding: 2px 12px; }
.pn-pro { color: #a16c00; } .pn-medida { color: #6d28d9; }
.price.t-pro h3 { color: #a16c00; } .price.t-medida h3 { color: #6d28d9; }
.price.pop.t-pro { border-color: #d9a520; } .price.pop.t-pro .ribbon { background: #d9a520; color: #3d2a00; }
.price.pop.t-medida { border-color: #7c3aed; } .price.pop.t-medida .ribbon { background: #7c3aed; }
.nav a { font-size: 14.5px; } @media (max-width: 760px) { .nav a { font-size: 10px; } .nav a .ic { width: 19px; height: 19px; } }

/* ---------- Análisis premium ---------- */
.mchart.big .col i { max-width: 46px; } .mchart .col span small { display: block; font-size: 9.5px; color: #8a9893; font-weight: 500; line-height: 1.2; margin-top: 1px; }
.ai-card { background: linear-gradient(135deg, #f6f1ff, #eef7f6); border-color: #d9ccff; }
.ai-dot { width: 8px; height: 8px; border-radius: 50%; background: #7c3aed; margin-top: 7px; flex: none; }
.ai-ans { margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid #d9ccff; line-height: 1.5; }
@media (max-width: 760px) { .mchart.big .col span small { font-size: 8px; } }

/* ---------- A cuenta ---------- */
.paywrap { display: grid; gap: 8px; justify-items: end; } .csel { width: 100%; min-width: 200px; padding: 7px 10px; font-size: 13px; }
.g5 { grid-template-columns: repeat(5, 1fr); } @media (max-width: 900px) { .g5 { grid-template-columns: 1fr 1fr; } }

.help { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; } .help b { display: block; color: #fff; font-size: 12.5px; line-height: 1.2; } .help span { display: block; font-size: 10.5px; opacity: .72; line-height: 1.3; } .help .btn { margin: 0; width: auto; padding: 5px 9px; font-size: 12px; flex: none; }

/* ---------- Modo administrador ---------- */
.adminbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; min-height: 44px; background: #312e81; color: #fff; font-size: 13px; flex-wrap: wrap; }
.adminbar .btn { background: #fff; color: #312e81; border-color: #fff; }
.has-bar .side { top: 44px; height: calc(100vh - 44px); }
@media (max-width: 760px) { .has-bar .app.bar-top .side { top: 44px; } .adminbar { font-size: 12px; padding: 6px 12px; } }

/* ---------- Pantalla de entrada: textos más completos ---------- */
.auth .art .lead { font-size: 15.5px; line-height: 1.55; max-width: 470px; opacity: .9; } .auth .art .lead b { color: #fff; font-weight: 600; }
.auth .art ul.why { display: grid; gap: 12px; margin-top: 6px; } .auth .art ul.why li { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.auth .art ul.why li .ic { margin-top: 2px; }
.auth .art ul.why b { display: block; font-size: 14.5px; color: #fff; font-weight: 600; } .auth .art ul.why span { display: block; font-size: 13px; opacity: .8; line-height: 1.4; max-width: 440px; }
@media (max-height: 820px) { .auth .art ul.why span { display: none; } .auth .art h2 { font-size: 38px; } .auth .art .lead { font-size: 14px; } }

/* ---------- Cuenta regresiva de la prueba ---------- */
.cd { display: inline-block; padding: 1px 9px; border-radius: 8px; background: rgba(0,0,0,.08); font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.trialpill { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 11px; padding: 6px 8px; margin-bottom: 8px; border-radius: 8px; background: rgba(245,158,11,.16); color: #fbd38d; }
.trialpill b { font-variant-numeric: tabular-nums; color: #fde68a; font-weight: 600; white-space: nowrap; }

/* ---------- Ventanas: cierre con cruz ---------- */
.modal { position: relative; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.modal-body { overflow-y: auto; overflow-x: hidden; padding: 24px; min-height: 0; flex: 1; -webkit-overflow-scrolling: touch; }
.modal-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--muted); z-index: 2; }
.modal-x:hover { background: rgba(20,32,28,.08); color: var(--ink); } .modal-x .ic { width: 18px; height: 18px; }
.modal-body > h3:first-child { padding-right: 36px; }

@media (max-width: 760px) { .side .help, .side .foot, .side .trialpill { display: none !important; } }

.ic.fill { fill: currentColor; stroke: none; }

/* ---------- Entrada: todo arriba, sin pisar el cartel ---------- */
.auth .art { padding-top: 34px; gap: 14px;
  background-image: linear-gradient(180deg, rgba(7,26,23,.94) 0%, rgba(7,26,23,.82) 46%, rgba(7,26,23,.12) 66%, rgba(7,26,23,0) 100%), url('hero.jpg'), url('almacen.svg');
  background-position: center, center, center calc(100% + 44px); }
.auth .art h2 { font-size: 40px; line-height: 1.1; white-space: nowrap; }
.auth .art .lead { font-size: 15px; line-height: 1.5; max-width: 480px; }
.auth .art ul.why { gap: 10px; } .auth .art ul.why b { font-size: 14.5px; } .auth .art ul.why span { font-size: 13px; opacity: .85; }
@media (max-height: 760px) { .auth .art ul.why span { display: none; } .auth .art h2 { font-size: 34px; } }

.auth .art .lead .q { display: block; font-size: 17px; line-height: 1.3; margin-bottom: 5px; color: #fde68a; font-weight: 600; }

/* ventana de producto más amplia y ordenada */
.modal.wide { width: min(760px, 100%); }
.pform { gap: 14px; }
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; } .fgrid.one { grid-template-columns: 1fr; }
@media (max-width: 560px) { .fgrid { grid-template-columns: 1fr 1fr; } .fgrid > :first-child:nth-last-child(odd) { grid-column: 1 / -1; } }
.optrows { display: grid; gap: 10px; }
.optrow { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.optlbl { font-size: 13px; font-weight: 600; color: var(--muted); }
.optrow .pill { justify-content: flex-end; margin-left: auto; }
.optrow .mode { padding: 6px 12px; font-size: 13px; }

.kpi.tint-sky { background: #e0f2fe; border-color: #b6dcf5; } .kpi.tint-sky .value, .kpi.tint-sky .delta { color: #075985; }
.perbar { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-bottom: 14px; }
.perbar input[type=date] { width: auto; padding: 7px 10px; }

/* ---------- portada: libretita, marcador y tarjetas ---------- */
.chip.xl { font-size: 15px; padding: 8px 18px; }
.hero-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; max-width: 460px; font-weight: 600; font-size: 15.5px; }
.hero-list li { display: flex; gap: 8px; align-items: center; } .hero-list .ic { color: var(--brand); }
.hero-vis { position: relative; padding: 10px 0 10px 120px; }
.hero-vis .mock { position: relative; z-index: 1; }
.notebook { position: relative; background-color: #fffdf3; background-image: repeating-linear-gradient(transparent 0 31px, #c7dcec 31px 32px); font-family: 'Caveat', 'Segoe Print', cursive; color: #1e3a8a; padding: 12px 16px 14px 42px; border-radius: 6px; box-shadow: 0 14px 40px rgba(60,50,20,.2); }
.notebook::before { content: ''; position: absolute; left: 30px; top: 0; bottom: 0; width: 2px; background: #f0a8a8; }
.notebook .nb-h { font-size: 22px; font-weight: 700; line-height: 32px; color: #7c2d12; }
.notebook .nb-line { font-size: 26px; line-height: 32px; font-weight: 500; white-space: nowrap; }
.notebook .nb-sum { font-size: 21px; color: #475569; border-top: 2px solid #1e3a8a; width: fit-content; line-height: 28px; margin-top: 2px; }
.notebook .nb-tot { font-weight: 700; font-size: 28px; }
.notebook .nb-tot small { font-size: 22px; color: #b91c1c; }
.notebook s { text-decoration-color: #b91c1c; text-decoration-thickness: 2.5px; color: #64748b; }
.notebook .fix { display: inline-block; color: #b91c1c; transform: rotate(-4deg) translateY(-2px); font-weight: 700; }
.nb-hero { position: absolute; left: -6px; top: 40px; width: 236px; transform: rotate(-7deg); z-index: 0; }
.vs { align-items: stretch; }
.nb-big { transform: rotate(-.8deg); padding: 18px 26px 22px 50px; background-position: 0 6px; }
.nb-big::before { left: 38px; }
.nb-big .nb-h { font-size: 30px; line-height: 32px; margin-bottom: 4px; }
.nb-big .nb-line { font-size: 31px; } .nb-big .nb-sum { font-size: 25px; } .nb-big .nb-tot { font-size: 33px; }
.nb-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; }
.nb-notes { color: #475569; font-size: 26px; line-height: 32px; transform: rotate(2deg); padding-top: 10px; }
.nb-notes p { margin: 0 0 10px; line-height: 1.05; } .nb-notes .nb-q { color: #b91c1c; transform: rotate(-3deg); }
.with-criterio { background: linear-gradient(160deg, #dff1fd, #eef8fe 55%, #e6f6f2); border: 1px solid #b7dcf3; padding: 28px; }
.with-criterio h3 { font-size: 26px; }
.with-criterio .stack { gap: 14px; font-size: 16px; }
.vtick { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; margin-top: 1px; } .vtick .ic { width: 13px; height: 13px; }
.mk { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath d='M3 12 C22 6 55 15 96 9 C135 4 170 13 197 8 L199 21 C196 30 192 33 197 36 C160 32 120 38 80 33 C50 31 24 36 5 31 C2 26 6 22 3 12 Z' fill='%23fde047' fill-opacity='.85'/%3E%3Cpath d='M8 16 C50 12 100 19 150 13 C170 11 185 14 195 12 L194 18 C150 21 100 15 50 20 C30 22 15 20 8 16 Z' fill='%23facc15' fill-opacity='.55'/%3E%3C/svg%3E") center / 100% 100% no-repeat; padding: .02em .32em; margin: 0 -.12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.feat { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease; outline: none; }
.feat:hover, .feat:focus-visible, .feat:active { transform: translateY(-4px); border-color: var(--brand); background: linear-gradient(180deg, #fff, #effaf8); box-shadow: 0 16px 36px rgba(15,118,110,.18); }
.feat .ico { transition: background .18s ease, color .18s ease, transform .18s ease; }
.feat:hover .ico, .feat:focus-visible .ico, .feat:active .ico { background: var(--brand); color: #fff; transform: scale(1.06); }
.custom-amt { display: block; font-size: 25px; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; }
.price.t-medida { gap: 20px; } .price.t-medida ul { gap: 13px; } .price.t-medida li { line-height: 1.45; }
@media (max-width: 900px) {
  .hero-vis { padding-left: 0; } .nb-hero { display: none; }
  .nb-cols { grid-template-columns: 1fr; gap: 4px; } .nb-notes { transform: none; padding-top: 14px; }
}
@media (max-width: 520px) { .hero-list { grid-template-columns: 1fr; } }

/* ---------- inicio: cartelitos Pro en cada cuadro ---------- */
.card.tagged { position: relative; } .card.tagged > .tier-chip { position: absolute; top: 12px; right: 12px; margin: 0; z-index: 2; }
.card.tagged > .row.between:first-of-type { padding-right: 48px; }
.card.tagged > h3 { padding-right: 48px; }

/* ---------- ventas: calculadora compacta, todo en una pantalla ---------- */
.vfit .pagehead { margin-bottom: 8px; } .vfit .pagehead p { display: none; } .vfit .tabs { margin-bottom: 10px; }
.venta3 .calc .lines { max-height: none; }
.venta3 > .card { overflow-x: hidden; }
.icb { width: 26px; height: 26px; border-radius: 8px; border: 0; display: grid; place-items: center; cursor: pointer; flex: none; padding: 0; }
.icb .ic { width: 14px; height: 14px; }
.icb.ok { background: var(--ok-l); color: var(--ok); } .icb.ok:hover { background: #cdeed7; }
.icb.no { background: transparent; color: #d98a8a; } .icb.no:hover { background: var(--bad-l); color: var(--bad); }
.calc .line.tl { padding: 4px 8px; font-size: 13.5px; gap: 8px; } .calc .line.tl b { font-size: 14px; font-weight: 600; }
.hoylist { overflow-x: hidden; overflow-y: auto; }
@media (min-width: 1000px) {
  .venta3 { grid-template-columns: minmax(250px, .9fr) minmax(280px, 1.15fr) minmax(240px, .9fr); gap: 14px; align-items: stretch; }
  .venta3 > :nth-child(3) { grid-column: auto; }
  .venta3 > .card { display: flex; flex-direction: column; min-height: 0; padding: 14px 16px; overflow-y: auto; }
  .venta3 > .card > h3 { margin-bottom: 8px; }
  .venta3 .calc .lines { flex: 1 1 60px; min-height: 60px; overflow-y: auto; }
  .venta3 .hoylist { flex: 1; min-height: 0; }
  .venta3 .cdisp { font-size: 24px; padding: 8px 12px; }
  .venta3 .keys { gap: 5px; margin-top: 6px; } .venta3 .keys button { min-height: 38px; font-size: 17px; border-radius: 10px; } .venta3 .keys .eq { font-size: 14px; }
  .venta3 .calc .total { font-size: 26px; }
  .venta3 .chips { max-height: 66px; overflow: hidden; }
  .vfit ~ * { }
  .main:has(.venta3) { padding-bottom: 16px; }
}

/* los cartelitos Pro también se ven en el menú del celular */
@media (max-width: 760px) {
  .nav a { position: relative; } .nav .lockmini { display: block !important; position: absolute; top: 0; right: 4px; margin: 0; }
  .nav .lockmini .tier-chip { font-size: 8px; padding: 0 5px; line-height: 14px; }
}
@media (min-width: 1000px) and (max-height: 780px) {
  .venta3 > .card { padding: 10px 14px; }
  .venta3 > .card > h3 { margin-bottom: 4px; font-size: 14px; }
  .venta3 .cdisp { font-size: 20px; padding: 5px 10px; }
  .venta3 #cprev { min-height: 14px !important; font-size: 12px; }
  .venta3 .keys { gap: 4px; margin-top: 3px; } .venta3 .keys button { min-height: 31px; font-size: 15px; border-radius: 8px; } .venta3 .keys .eq { font-size: 13px; }
  .venta3 .calc .lines { flex-basis: 40px; min-height: 40px; }
  .venta3 .calc .total { font-size: 21px; }
  .venta3 .calc .btn.lg { padding: 8px 14px; font-size: 14px; }
  .venta3 .pays button, .venta3 .pill button { padding: 4px 10px; font-size: 12px; }
  .venta3 .calc .row.between.wrap { margin-top: 6px !important; gap: 4px; }
  .venta3 .calc > .row:last-child { margin-top: 6px !important; }
  .venta3 .calc .small.muted { line-height: 1.2; }
}

.notebook .circ { display: inline-block; border: 2.5px solid #b91c1c; border-radius: 50% 45% 55% 48%; padding: 0 8px; transform: rotate(-4deg); }
.notebook s { text-decoration-style: wavy; }
.nb-messy .nb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.nb-messy .nb-line { transform-origin: left center; }
.nb-messy .nb-line:nth-child(odd) { transform: rotate(-1.4deg) translateX(3px); }
.nb-messy .nb-line:nth-child(3n) { transform: rotate(1.6deg) translateX(-2px); }
.nb-messy .nb-line:nth-child(4n) { transform: rotate(-.6deg) translateX(7px); }
.nb-messy .nb-tot { margin-top: 6px; transform: rotate(-1.2deg); font-size: 30px; }
.nb-messy .nb-notes p { font-size: 25px; } .nb-messy .nb-notes p:nth-child(2) { transform: rotate(-2deg); margin-left: 8px; } .nb-messy .nb-notes p:nth-child(3) { transform: rotate(1.5deg); }
.notebook .nb-line small { font-size: 20px; color: #b91c1c; }

.vwrap { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.vwrap > .locked, .vwrap > .tier-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.vwrap .lock-body, .vcol { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.vwrap .lock-cta { background: rgba(255,255,255,.35); }

/* menú del celular: más grande y se desliza hacia los costados */
@media (max-width: 760px) {
  .wa-fab { display: none !important; }
  .side { padding: 6px 6px calc(12px + env(safe-area-inset-bottom)); }
  .nav { overflow-x: auto; justify-content: flex-start; gap: 2px; -webkit-overflow-scrolling: touch; scrollbar-width: none; scroll-snap-type: x proximity; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: 0 0 auto; min-width: 78px; padding: 10px 8px 8px; scroll-snap-align: start; gap: 4px; }
  .nav a .ic { width: 24px; height: 24px; }
  .nav a span:not(.lockmini) { font-size: 11.5px; }
  .main { padding-bottom: 140px; } .toast { bottom: 110px; }
}

/* celular: la pantalla queda fija, sin deslizarse hacia los costados */
html, body { max-width: 100%; overflow-x: hidden; overscroll-behavior-x: none; }
.app, .main { max-width: 100%; overflow-x: clip; }
.mchart { max-width: 100%; }
.banner.slim { padding: 7px 12px; font-size: 12.5px; gap: 8px; line-height: 1.35; align-items: center; margin-bottom: 12px; }
.banner.slim .ic { flex: none; } .banner.slim .btn { padding: 4px 10px; font-size: 12px; white-space: nowrap; }
@media (max-width: 760px) { .banner.slim { margin: 0 0 10px; padding: 6px 10px; font-size: 12px; } .banner.slim .grow b { font-weight: 700; } }
@media (max-width: 760px) { .banner.slim .bx { display: none; } .banner.slim { flex-wrap: nowrap; } .banner.slim .cd { font-size: 12px; padding: 1px 6px; } }
@media (max-width: 760px) { .banner.slim .grow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }

.nb-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.nb-q1 { font-size: 26px; color: #475569; transform: rotate(-1.5deg); } .nb-q1 small { font-size: 22px; color: #b91c1c; }
.nb-grid3 { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 0 18px; }
.nb-rule { border-top: 2.5px solid #1e3a8a; margin: 4px 6px 2px 0; transform: rotate(-.8deg); }
.nb-n { font-size: 23px; line-height: 1.05; color: #475569; margin: 8px 0 0; transform: rotate(1.4deg); } .nb-n:nth-of-type(even) { transform: rotate(-1.6deg); margin-left: 6px; }
.nb-big .nb-grid3 .nb-tot { font-size: 30px; margin-top: 2px; }
@media (max-width: 520px) { .nb-grid3 { grid-template-columns: 1fr 1fr; } .nb-grid3 > :nth-child(3) { grid-column: 1 / -1; } .nb-big .nb-line { font-size: 26px; } }

/* ventanas emergentes en el celular: sin zoom automático, que entren enteras en la pantalla */
.overlay { padding: 12px; overflow: hidden; }
.modal { max-height: calc(100dvh - 24px); max-width: 100%; }
.modal-body { overscroll-behavior: contain; }
@media (max-width: 760px), (pointer: coarse) {
  input, select, textarea { font-size: 16px !important; }
  .overlay { align-items: flex-start; padding-top: max(12px, env(safe-area-inset-top)); }
  .modal-body { padding: 18px 16px 16px; }
  .modal.wide { width: 100%; }
}

/* pila de hojas arriba, abiertas en V */
.hero-vis { padding-left: 150px; }
.nb-pile { position: absolute; left: -10px; top: 0; bottom: 0; width: 240px; z-index: 0; }
.nb-pile .nb-hero { position: absolute; width: 190px; padding: 6px 10px 8px 34px; background-image: repeating-linear-gradient(transparent 0 27px, #c7dcec 27px 28px); }
.nb-pile .notebook::before { left: 24px; }
.nb-pile .nb-h { font-size: 19px; line-height: 28px; }
.nb-pile .nb-line { font-size: 22px; line-height: 28px; }
.nb-pile .nb-tot { font-size: 23px; }
.nb-pile .n1 { left: 0; top: 10px; transform: rotate(-10deg); }
.nb-pile .n2 { left: 46px; top: 150px; transform: rotate(8deg); z-index: 1; }
.nb-pile .n3 { left: 6px; top: 300px; transform: rotate(-4deg); z-index: 2; }
@media (max-width: 900px) { .hero-vis { padding-left: 0; } .nb-pile { display: none; } }

/* libreta grande: igual en la PC y en el celular, corta y con todo visible */
.nb-big { --lh: clamp(26px, 7.2vw, 32px); background-image: repeating-linear-gradient(transparent 0 calc(var(--lh) - 1px), #c7dcec calc(var(--lh) - 1px) var(--lh)); background-position: 0 4px; padding: 14px clamp(12px, 3vw, 26px) 16px clamp(38px, 9vw, 50px); }
.nb-big::before { left: clamp(28px, 7vw, 38px); }
.nb-big .nb-h { font-size: clamp(22px, 6.4vw, 30px); line-height: var(--lh); margin-bottom: 2px; }
.nb-big .nb-line { font-size: clamp(21px, 5.6vw, 30px); line-height: var(--lh); }
.nb-big .nb-grid3 { grid-template-columns: 1fr 1fr 1.5fr; gap: 0 clamp(8px, 2.5vw, 18px); }
.nb-big .nb-grid3 .nb-tot { font-size: clamp(20px, 5.4vw, 30px); }
.nb-big .nb-rule { margin-top: 3px; }
.nb-qs { margin: 10px 0 0; text-align: center; font-size: clamp(19px, 5vw, 25px); line-height: 1.25; color: #475569; transform: rotate(-.6deg); }
.emo { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -.16em; background: url('emoji-confused.svg') center / contain no-repeat; }
@media (max-width: 520px) { .nb-big .nb-grid3 { grid-template-columns: 1fr 1fr 1.5fr; } .nb-big .nb-grid3 > :nth-child(3) { grid-column: auto; } }
.nb-big .nb-grid3 { grid-template-columns: 1fr 1fr 1.7fr; }
.nb-big .nb-grid3 .nb-tot { font-size: clamp(17px, 4.9vw, 30px); white-space: nowrap; }
@media (max-width: 520px) { .nb-big .nb-grid3 { grid-template-columns: 1fr 1fr 1.7fr; } }

/* iPhone: la barra de abajo nunca puede estirarse; altura fija y compacta */
html { overflow-x: hidden; }
body { overflow-x: clip; }
.app { overflow-x: visible; }
@media (max-width: 760px) {
  .side, .app.bar-top .side { height: auto !important; min-height: 0 !important; max-height: 100px !important; overflow: visible !important; align-items: flex-start !important; }
  .nav { height: auto !important; max-height: 92px; flex: 1 1 auto; min-width: 0; align-items: flex-start !important; align-content: flex-start; overflow-y: hidden; }
  .nav a { align-self: flex-start; height: auto; max-height: 82px; }
}

/* barra del administrador: una sola línea y bien chica en el celular */
.adminbar .ab-short, .adminbar .ab-dot { display: none; }
@media (max-width: 760px) {
  .adminbar { flex-wrap: nowrap; min-height: 40px; height: 40px; padding: 0 10px; gap: 8px; font-size: 12.5px; }
  .adminbar .ab-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .adminbar .ab-full, .adminbar .ab-x, .adminbar .ab-x2 { display: none; }
  .adminbar .ab-short, .adminbar .ab-dot { display: inline; }
  .adminbar .btn { padding: 5px 10px; font-size: 12px; white-space: nowrap; }
  .has-bar .app.bar-top .side { top: 40px; }
}

/* modo administrador en el celular: respetar si el menú va abajo o arriba */
@media (max-width: 760px) {
  .has-bar .app .side { top: auto !important; bottom: 0 !important; height: auto !important; }
  .has-bar .app.bar-top .side { top: 40px !important; bottom: auto !important; }
  .has-bar .app.bar-top .main { padding-top: 70px; }
}

/* dentro de una sección Pro no se repite el cartelito en cada botón */
.notags .tier-wrap > .tier-chip, .notags .btn .tier-chip, .notags h3 .tier-chip { display: none; }
.vwrap .tier-wrap > .tier-chip { display: none; }
/* el teclado del celular no se abre solo: la calculadora usa sus propias teclas */
.cdisp { caret-color: transparent; }
@media (pointer: fine) { .cdisp { caret-color: auto; } }

/* arriba: una sola hoja caída a la izquierda y la pantalla caída a la derecha */
.hero-vis { padding-left: 170px; }
.nb-pile { width: 250px; left: -20px; }
.nb-pile .n1 { left: 0; top: 24px; width: 214px; transform: rotate(-9deg); }
.nb-hero .nb-rule { height: 2px; background: #3b4252; margin: 2px 0 0; opacity: .55; }
.hero-vis .mock { transform: rotate(5deg); transform-origin: 40% 60%; }
.vs-tag { position: absolute; z-index: 3; font: 800 12px/1 var(--font, inherit); letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: #e2e8f0; color: #475569; }
.nb-pile .vs-tag { left: 8px; top: -6px; }
.vs-new { right: 6px; top: -6px; background: var(--brand, #0f766e); color: #fff; }
@media (max-width: 900px) { .hero-vis { padding-left: 0; } .vs-tag { display: none; } .hero-vis .mock { transform: rotate(2deg); } }

/* libreta grande: columnas completas, preguntas una por renglón, papelito atrás */
.nb-wrap { position: relative; margin-bottom: 124px; }
.nb-wrap .notebook { position: relative; z-index: 1; }
.nb-big .nb-grid3 { grid-template-columns: .8fr .8fr 2fr; grid-template-areas: "a b c" "a b q"; align-items: start; }
.nb-big .nb-grid3 .ga { grid-area: a; } .nb-big .nb-grid3 .gb { grid-area: b; } .nb-big .nb-grid3 .gc { grid-area: c; } .nb-big .nb-grid3 .gq { grid-area: q; }
.nb-big .gq .nb-line { font-size: clamp(17px, 4.6vw, 25px); white-space: nowrap; color: #334155; }
.nb-big .gq .nb-line:nth-child(odd) { transform: rotate(-.8deg); } .nb-big .gq .nb-line:nth-child(even) { transform: rotate(.6deg) translateX(6px); }
.star { color: #b91c1c; font-weight: 700; font-size: 1.25em; display: inline-block; transform: translateY(.12em) rotate(8deg); }
.boxed { display: inline-block; border: 2px solid #1e3a8a; border-radius: 3px 6px 4px 5px; padding: 0 7px; line-height: 1.15; transform: rotate(-.8deg); }
@media (max-width: 520px) { .nb-big .nb-grid3 { grid-template-columns: 1fr 1fr 1.7fr; grid-template-areas: "a b c" "q q q"; } .nb-big .xr { display: none; } .nb-big .gq { margin-top: 8px; } .nb-big .gq .nb-line { font-size: clamp(17px, 5.2vw, 22px); } }
.nb-slip { position: absolute; z-index: 0; right: 26px; width: min(300px, 70%); bottom: -122px; padding: 30px 16px 12px; background: #fff9c9; border-radius: 3px; box-shadow: 0 8px 22px rgba(60,50,20,.22); transform: rotate(2.4deg); font-family: 'Caveat', 'Segoe Print', cursive; color: #111827; font-size: 22px; line-height: 26px; }
.nb-slip .sl-h { font-weight: 700; font-size: 23px; text-decoration: underline; text-decoration-thickness: 1.5px; }
.nb-slip .sl-r { display: flex; justify-content: space-between; gap: 10px; }
.nb-slip s { color: #6b7280; text-decoration-color: #111827; text-decoration-thickness: 2px; }
.nb-slip b { font-weight: 700; display: inline-block; transform: rotate(-3deg); }

/* tachado con lapicera: varias rayas cruzadas */
.notebook s, .nb-slip s { text-decoration: none !important; position: relative; display: inline-block; color: #3f4a63; }
.notebook s::after, .nb-slip s::after { content: ''; position: absolute; left: -5px; right: -5px; top: 14%; bottom: 8%; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%2040'%20preserveAspectRatio%3D'none'%3E%3Cpath%20d%3D'M2%2030%20L97%209%20L5%2024%20L96%2033%20L3%2016%20L98%2022%20L8%2036%20L94%2012'%20fill%3D'none'%20stroke%3D'%231b2559'%20stroke-width%3D'1.8'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20vector-effect%3D'non-scaling-stroke'%20opacity%3D'.88'%2F%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat; pointer-events: none; }
.notebook .nb-line:nth-child(even) s::after, .nb-slip .sl-r:nth-child(even) s::after { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%2040'%20preserveAspectRatio%3D'none'%3E%3Cpath%20d%3D'M3%2012%20L96%2031%20L2%2027%20L97%2010%20L6%2034%20L95%2020%20L4%2018%20L98%2036'%20fill%3D'none'%20stroke%3D'%231b2559'%20stroke-width%3D'1.8'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20vector-effect%3D'non-scaling-stroke'%20opacity%3D'.88'%2F%3E%3C%2Fsvg%3E"); transform: rotate(-1.5deg); }
.nb-slip s::after { background-size: 100% 100%; filter: brightness(.55); }
.nb-slip s { color: #4b5563; }

/* arriba: hoja larga con tres columnas, separada de la pantalla */
.hero-vis { padding-left: 215px; }
.nb-pile { left: -6px; width: 270px; }
.nb-pile .n1 { left: 0; top: 14px; width: 262px; padding: 8px 10px 12px 34px; transform: rotate(-6deg); }
.nb-hero .hg { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 0 12px; }
.nb-hero .hg .nb-rule { margin: 3px 4px 0 0; }
.nb-hero .hg .nb-tot { font-size: 21px; white-space: nowrap; }
.hero-vis .mock { transform: rotate(5deg) translateX(10px); }
@media (max-width: 900px) { .hero-vis { padding-left: 0; } }

/* tachados distintos, cada uno a su manera */
.notebook s.t1::after, .nb-slip s.t1::after { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%2040'%20preserveAspectRatio%3D'none'%3E%3Cpath%20d%3D'M2%2030%20L97%209%20L5%2024%20L96%2033%20L3%2016%20L98%2022%20L8%2036%20L94%2012'%20fill%3D'none'%20stroke%3D'%231b2559'%20stroke-width%3D'1.8'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20vector-effect%3D'non-scaling-stroke'%20opacity%3D'.9'%2F%3E%3C%2Fsvg%3E"); transform: none; filter: none; }
.notebook s.t2::after, .nb-slip s.t2::after { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%2040'%20preserveAspectRatio%3D'none'%3E%3Cpath%20d%3D'M3%2012%20L96%2031%20L2%2027%20L97%2010%20L6%2034%20L95%2020'%20fill%3D'none'%20stroke%3D'%231b2559'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20vector-effect%3D'non-scaling-stroke'%20opacity%3D'.9'%2F%3E%3C%2Fsvg%3E"); transform: none; filter: none; }
.notebook s.t3::after, .nb-slip s.t3::after { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%2040'%20preserveAspectRatio%3D'none'%3E%3Cpath%20d%3D'M0%2033%20L100%207%20M4%2037%20L99%2014'%20fill%3D'none'%20stroke%3D'%231b2559'%20stroke-width%3D'2.6'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20vector-effect%3D'non-scaling-stroke'%20opacity%3D'.9'%2F%3E%3C%2Fsvg%3E"); transform: none; filter: none; }
.notebook s.t4::after, .nb-slip s.t4::after { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%2040'%20preserveAspectRatio%3D'none'%3E%3Cpath%20d%3D'M0%2024%20C15%2014%2030%2032%2048%2021%20S80%2027%20100%2016'%20fill%3D'none'%20stroke%3D'%231b2559'%20stroke-width%3D'2.4'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20vector-effect%3D'non-scaling-stroke'%20opacity%3D'.9'%2F%3E%3C%2Fsvg%3E"); transform: none; filter: none; }
.notebook s.t5::after, .nb-slip s.t5::after { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%2040'%20preserveAspectRatio%3D'none'%3E%3Cpath%20d%3D'M2%208%20L98%2034%20M3%2033%20L97%207%20M0%2022%20L100%2018'%20fill%3D'none'%20stroke%3D'%231b2559'%20stroke-width%3D'1.9'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20vector-effect%3D'non-scaling-stroke'%20opacity%3D'.9'%2F%3E%3C%2Fsvg%3E"); transform: none; filter: none; }

.nb-slip s::after { filter: brightness(.5); }
.notebook s.t3::after { top: 8%; bottom: 4%; } .notebook s.t4::after { top: 20%; bottom: 10%; }

/* hoja de arriba: entera, hasta abajo, con textura y agujeros */
.nb-pile .n1 { padding-bottom: 16px; box-shadow: 0 18px 40px rgba(60,50,20,.28), inset 0 0 40px rgba(150,120,40,.12); }
.nb-hero .hg > div { min-width: 0; }
.notebook::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .5; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'160'%20height%3D'160'%3E%3Cfilter%20id%3D'n'%3E%3CfeTurbulence%20type%3D'fractalNoise'%20baseFrequency%3D'.85'%20numOctaves%3D'2'%20seed%3D'4'%2F%3E%3CfeColorMatrix%20values%3D'0%200%200%200%20.45%200%200%200%200%20.38%200%200%200%200%20.2%200%200%200%20.16%200'%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D'160'%20height%3D'160'%20filter%3D'url(%23n)'%2F%3E%3C%2Fsvg%3E"); }
.nb-hero::after { background-image: radial-gradient(circle at 9px 16%, rgba(70,60,40,.55) 0 4.5px, transparent 5.5px), radial-gradient(circle at 9px 50%, rgba(70,60,40,.55) 0 4.5px, transparent 5.5px), radial-gradient(circle at 9px 84%, rgba(70,60,40,.55) 0 4.5px, transparent 5.5px), url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'160'%20height%3D'160'%3E%3Cfilter%20id%3D'n'%3E%3CfeTurbulence%20type%3D'fractalNoise'%20baseFrequency%3D'.85'%20numOctaves%3D'2'%20seed%3D'4'%2F%3E%3CfeColorMatrix%20values%3D'0%200%200%200%20.45%200%200%200%200%20.38%200%200%200%200%20.2%200%200%200%20.16%200'%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D'160'%20height%3D'160'%20filter%3D'url(%23n)'%2F%3E%3C%2Fsvg%3E"); opacity: .75; }

/* preguntas: una sola frase, cuadrado a lapicera, flechita y (revisar) */
.nb-big .nb-grid3 { grid-template-columns: .7fr .7fr 2.3fr; }
.nb-big .gq .nb-line { font-size: clamp(16px, 4.1vw, 23px); }
.pbox { display: inline-block; padding: 1px 12px 3px; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%2040'%20preserveAspectRatio%3D'none'%3E%3Cpath%20d%3D'M3%206%20L97%203%20L98%2036%20L2%2037%20L4%204%20L9%205%20M96%202%20L99%205'%20fill%3D'none'%20stroke%3D'%231b2559'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20vector-effect%3D'non-scaling-stroke'%20opacity%3D'.9'%2F%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat; }
.pb-line { position: relative; }
.pb-line .arr { position: absolute; left: -44px; top: 4px; width: 38px; height: 20px; stroke: #1b2559; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-6deg); }
.rev { color: #b91c1c; font-weight: 700; }
@media (max-width: 520px) { .pb-line .arr { left: -2px; top: -16px; transform: rotate(60deg); } }

/* papelito: post-it pegado */
.nb-slip { background: linear-gradient(180deg, #fff59a 0, #ffee6e 18%, #ffe94f 100%); border-radius: 2px 2px 3px 3px; padding: 30px 16px 14px; bottom: -146px; box-shadow: 0 1px 2px rgba(0,0,0,.18), 0 14px 18px -10px rgba(60,50,20,.45); transform: rotate(2.2deg); font-family: 'Caveat', 'Segoe Print', cursive; }
.nb-slip::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 22px; background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0)); }
.nb-wrap { margin-bottom: 150px; }

/* campanita de avisos y promos */
.bell { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.bell:hover { border-color: var(--brand); color: var(--brand); }
.bell i { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: #dc2626; color: #fff; font: 700 11px/19px inherit; font-style: normal; text-align: center; }
.promo-line { background: var(--brand-l); border-radius: 8px; padding: 6px 10px; margin-top: 6px; gap: 8px; align-items: center; }

.bellwrap { position: relative; display: inline-block; }
.bellp { position: absolute; right: 0; top: calc(100% + 8px); width: min(390px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 34px rgba(0,0,0,.2); padding: 14px 16px; z-index: 70; transform-origin: top right; opacity: 0; transform: translateY(-10px) scaleY(.94); visibility: hidden; pointer-events: none; transition: opacity .2s, transform .2s, visibility .2s; text-align: left; }
.bellp.open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }

.live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #16a34a; margin: 0 2px; vertical-align: middle; animation: livepulse 1.6s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.5); } 70% { box-shadow: 0 0 0 7px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }

/* punto de equilibrio con más aire */
#beCard { padding: 26px 30px 32px; }
.be-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 20px; align-items: start; }
.be-big { font-size: 38px; font-weight: 800; line-height: 1.15; margin: 8px 0 4px; }
.be-left .bar { max-width: 400px; }
.be-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.be-net { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; }
@media (max-width: 800px) { .be-grid { grid-template-columns: 1fr; gap: 30px; } #beCard { padding: 20px 18px 24px; } .be-big { font-size: 30px; } }

.selbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 10px; background: var(--brand-l); border-radius: 10px; position: sticky; top: 8px; z-index: 5; }
.selbar:empty { display: none; }

.nav .sm { display: none; } @media (max-width: 760px) { .nav .lg { display: none; } .nav .sm { display: inline; } }

.be-left .bar { max-width: none; }
.venta3 .calc #tlist { flex: 1 0 226px; min-height: 226px; }

.scroll.cmp { max-height: 392px; }
table.compact td, table.compact th { padding: 6px 10px; font-size: 13.5px; }
table.compact .btn.sm { padding: 3px 7px; min-height: 0; }
table.compact .chip { font-size: 11px; padding: 1px 6px; }

.stockwrap { max-height: 500px; overflow-y: auto; }
.stockwrap thead th { position: sticky; top: 0; z-index: 1; background: var(--surface); }
table.compact td .small { font-size: 12px; line-height: 1.25; }

.psub { max-width: 320px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stockwrap td { white-space: nowrap; }
.stockwrap td:nth-child(2) { white-space: normal; }

.calc .line.cl { padding: 3px 8px; gap: 6px; flex-wrap: nowrap; min-height: 0; }
.cl .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.cl .pw { display: inline-flex; align-items: center; gap: 3px; flex: none; font-size: 12.5px; color: var(--muted); }
.cl .pw small { font-size: 11px; }
.cl .pin { width: 62px; padding: 3px 5px; font-size: 13px; }
.cl .btn.sm { padding: 1px 7px; min-height: 0; line-height: 1.3; }
.cl .qn { min-width: 18px; text-align: center; font-size: 13.5px; color: var(--ink); }
.cl .lt { min-width: 56px; text-align: right; font-size: 13.5px; flex: none; }

/* venta por artículos: filas bajas y con lugar para el nombre */
@media (min-width: 1181px) { .venta3 { grid-template-columns: minmax(250px, .8fr) minmax(380px, 1.45fr) minmax(250px, .8fr); } }
.cl .pin { width: 50px; border-color: transparent; background: transparent; padding: 2px 3px; }
.cl .pin:hover, .cl .pin:focus { border-color: var(--line); background: var(--surface); }
.cl .nm { font-size: 13px; }
.cl .btn.sm { padding: 1px 6px; }
.cl .lt { min-width: 50px; }

/* elección simple: dos opciones, tilde azul, sin círculos verdes */
.paychoice .plabel { font-size: 13px; font-weight: 600; color: var(--muted); }
.radios { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 8px; }
.radios label { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; }
.radios input[type=radio] { width: 16px; height: 16px; margin: 0; accent-color: #2563eb; cursor: pointer; }

/* nueva venta: calculadora completa a la izquierda; a la derecha, venta por artículos y las ventas de hoy debajo */
.venta2 { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.venta2 .vright { display: grid; gap: 16px; min-width: 0; }
.c2grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.c2keys, .c2tot { min-width: 0; display: flex; flex-direction: column; }
.c2tot #tlist { height: 226px; max-height: 226px; overflow-y: auto; }
.venta2 .keys button { min-height: 46px; }
.venta2 #lines { max-height: 340px; }
.venta2 .hoylist { max-height: 320px; overflow-y: auto; }
@media (max-width: 1100px) { .venta2 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .c2grid { grid-template-columns: 1fr; } .venta2 .keys button { min-height: 54px; } }
.c2tot > .row { flex-wrap: wrap; }
.c2tot .btn.lg { padding: 10px 14px; font-size: 15px; }
.c2tot > .row .btn.primary { flex: 1 1 150px; }

.ctr { text-align: center; }

#muh { white-space: pre; }

table.merm { table-layout: fixed; width: 100%; }
table.merm td, table.merm th { overflow: hidden; text-overflow: ellipsis; }

.kpi.tint-amber { background: #fef3c7; border-color: #f5dd9a; } .kpi.tint-amber .value, .kpi.tint-amber .delta { color: #92400e; }

/* control de cajas: cada día en un bloque, con la fecha al medio */
table.ccg td.dcell { text-align: center; vertical-align: middle; font-weight: 700; border-right: 1px solid var(--line); white-space: nowrap; }
table.ccg td.dact { vertical-align: middle; }
table.ccg tr.dinner td { border-bottom: 0; }
table.ccg tr.dlast td { border-bottom: 2px solid var(--line); }

/* celular: campanita y PDF arriba a la derecha, botones chicos en fila, tarjetas de a dos */
@media (max-width: 760px) {
  .pagehead { position: relative; display: block; margin-bottom: 12px; padding-right: 96px; min-height: 44px; }
  .pagehead > .row.wrap { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px -96px 0 0; }
  .pagehead > .row.wrap:not(:has(.btn:not(.xb))) { margin: 0; }
  .pagehead .bellwrap { position: absolute; top: 0; right: 0; }
  .pagehead .bell { width: 40px; height: 40px; }
  .pagehead .xb { position: absolute; top: 0; right: 48px; width: 40px; height: 40px; padding: 0; border-radius: 50%; justify-content: center; }
  .pagehead .xb .xt, .pagehead .xb .tier-chip { display: none; }
  .pagehead > .row.wrap .btn:not(.xb) { padding: 7px 11px; font-size: 13px; }
  .grid.g3.keep2 { grid-template-columns: 1fr 1fr; }
  .grid.keep2 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .kpi { padding: 12px 14px; } .kpi .value { font-size: 22px; } .kpi .label { font-size: 12.5px; }
}
@media (max-width: 760px) {
  .pagehead > .row.wrap .btn .tier-chip { display: none; }
  .pagehead p { display: none; }
  .pagehead { min-height: 40px; margin-bottom: 10px; }
}
@media (max-width: 760px) {
  .pagehead { padding-right: 178px; }
  .pagehead > .row.wrap { margin-right: -178px; }
  .pagehead h1 { font-size: 24px; }
  .pagehead .xb { width: auto; height: 40px; padding: 0 13px; border-radius: 99px; font-size: 13px; }
  .pagehead .xb svg { display: none; }
  .pagehead .xb .xt { display: inline; }
}

/* selector de semana */
.perpick { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.perlabel { font-size: 13px; font-weight: 600; color: var(--brand-d); background: var(--brand-l); padding: 6px 12px; border-radius: 99px; white-space: nowrap; }
/* mermas: recuadros */
.mg3 { display: grid; grid-template-columns: 1fr 1fr 1.7fr; gap: 16px; margin: 4px 0 16px; align-items: stretch; }
.toplist { margin-top: 6px; font-size: 13.5px; } .toplist .row { padding: 3px 0; border-bottom: 1px solid var(--line); } .toplist .row:last-child { border-bottom: 0; }
@media (max-width: 760px) { .mg3 { grid-template-columns: 1fr 1fr; gap: 10px; } .mg3 > :last-child { grid-column: 1 / -1; } .perpick input { flex: 1 1 150px; } }
/* escritorio: campanita arriba a la derecha y botones del mismo tamaño */
@media (min-width: 761px) {
  .pagehead { position: relative; padding-right: 56px; align-items: flex-start; }
  .pagehead .bellwrap { position: absolute; top: 0; right: 0; }
  .pagehead > .row.wrap { justify-content: flex-end; align-items: center; }
  .pagehead > .row.wrap > .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
}
@media (max-width: 760px) { .pagehead .xb { border-radius: 10px; height: 40px; padding: 0 14px; } }

/* acciones de stock, debajo de las pestañas */
.toolrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.toolrow .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
@media (max-width: 760px) { .toolrow { gap: 6px; } .toolrow .btn { padding: 0 11px; font-size: 13px; } .toolrow .tier-chip { display: none; } }
@media (max-width: 760px) {
  .pagehead { padding-right: 190px; }
  .pagehead > .row.wrap { margin-right: -190px; }
  .pagehead .xb { top: 3px; right: 48px; height: 34px; padding: 0 10px; gap: 6px; font-size: 12.5px; border-radius: 10px; }
  .pagehead .xb svg { display: inline-block; width: 15px; height: 15px; }
}

/* clientes en el celular: una tarjeta por cliente, sin deslizar de costado */
@media (max-width: 760px) {
  .cliwrap { max-height: none; overflow: visible; margin: 0; padding: 0; }
  table.cli, table.cli tbody, table.cli tr, table.cli td { display: block; width: 100%; }
  table.cli thead { display: none; }
  table.cli tr { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: var(--surface); }
  table.cli td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: right; white-space: normal; }
  table.cli td::before { content: attr(data-l); color: var(--muted); font-size: 12px; font-weight: 600; text-align: left; flex: none; }
  table.cli td:first-child { display: block; text-align: left; font-size: 15px; padding-bottom: 6px; }
  table.cli td:first-child::before { content: none; }
  table.cli td:last-child { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 6px; padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--line); }
  table.cli td:last-child::before { content: none; }
  table.cli .psub { max-width: 100%; }
}

.lm { display: inline-block; }
@media (max-width: 760px) { .scroll.cmp.cliwrap { max-height: none; overflow: visible; } .lm { text-align: right; } table.cli td { white-space: normal; } }

.lm { text-align: center; }
@media (min-width: 761px) { table.cli { table-layout: fixed; width: 100%; } table.cli td, table.cli th { overflow: hidden; text-overflow: ellipsis; } table.cli td:last-child { text-align: right; } }
@media (max-width: 760px) { .lm { text-align: right; } }
@media (min-width: 761px) { table.cli td:last-child { overflow: visible; text-overflow: clip; } }

/* WhatsApp: solo el logo, en verde y sin fondo */
.walogo { display: inline-flex; align-items: center; justify-content: center; color: #25d366; padding: 2px; border-radius: 6px; line-height: 0; flex: none; }
.walogo:hover { background: rgba(37, 211, 102, .12); }
.walogo svg { width: 20px; height: 20px; }
@media (min-width: 761px) { table.cli th.endc, table.cli td.endc { text-align: right; padding-right: 18px; } }

/* WhatsApp: al lado del nombre en la compu, abajo con los botones en el celular */
.wa-bot { display: none; }
@media (max-width: 760px) { .wa-top { display: none; } table.cli td:last-child .wa-bot { display: inline-flex; padding: 4px; } .wa-bot svg { width: 24px; height: 24px; } }
@media (max-width: 760px) { table.cli td:last-child .wa-bot { order: 99; margin-left: auto; } }

.icb.asisb { background: transparent; border: 0; box-shadow: none; } .icb.ok.asisb { color: #16a34a; } .icb.ok.asisb:hover { background: transparent; color: #15803d; } .icb.no.asisb { color: #9aa5a1; } .icb.no.asisb:hover { background: transparent; color: #dc2626; }

/* calculadora: total arriba y medios de pago siempre debajo, en una sola fila */
.c2tot > .row.between.wrap { flex-direction: column; align-items: flex-start; gap: 8px; }
.c2tot .pays { flex-wrap: nowrap; }
.c2tot .pays button { padding: 6px 11px; font-size: 13px; white-space: nowrap; }
@media (max-width: 760px) { .venta2 .calc .row.between.wrap { flex-direction: column; align-items: flex-start; gap: 8px; } .venta2 .calc .pays { flex-wrap: wrap; } }

.c2tot .pays .tier-chip { font-size: 10px; padding: 1px 6px; margin-left: 4px; }
.c2tot .pays { gap: 4px; }
.c2tot .pays button { padding: 5px 9px; font-size: 12.5px; }
.c2tot .pays .tier-chip { font-size: 9.5px; padding: 1px 5px; margin-left: 3px; }
/* escritorio: calculadora y venta por artículos del mismo alto; ventas de hoy abajo, a lo ancho */
@media (min-width: 1101px) {
  .venta2 { align-items: stretch; }
  .venta2 .vright { display: contents; }
  .venta2 > .calc { grid-column: 1; grid-row: 1; }
  .venta2 .vright > .calc { grid-column: 2; grid-row: 1; }
  .venta2 .vright > :last-child:not(.calc) { grid-column: 1 / -1; grid-row: 2; }
  .venta2 .card.calc { display: flex; flex-direction: column; }
  .venta2 #lines { flex: 1 1 auto; }
}

/* pedido sugerido */
.pgrid { display: grid; grid-template-columns: 1fr 190px; align-items: center; gap: 10px; }
.pgrid.prow { padding: 8px 0; border-bottom: 1px solid var(--line); }
.pgrid .pc { text-align: center; }
.pmsg { margin-top: 10px; }
.pmsgtxt { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13px; white-space: pre-wrap; margin: 6px 0 6px; }
@media (max-width: 560px) { .pgrid { grid-template-columns: 1fr 140px; } }

/* pedido sugerido: tabla por proveedor */
.ped { margin-bottom: 20px; }
.pedh { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
table.ptab { width: 100%; } table.ptab td, table.ptab th { padding: 7px 10px; }
/* pedido sugerido: cada proveedor con su fondo, uno sí y uno no */
.ped { padding: 12px 14px; border-radius: 12px; margin-bottom: 10px; }
.ped:nth-child(odd) { background: #fbf6ea; }
.ped:nth-child(even) { background: #f3f4f2; }
.ped table.ptab, .ped table.ptab thead, .ped table.ptab thead th, .ped table.ptab tbody, .ped table.ptab tr, .ped table.ptab td { background: transparent !important; }
.ped table.ptab thead th { border-bottom: 1px solid rgba(0, 0, 0, .08); }
.ped table.ptab td { border-bottom: 0; }

/* actualizar precios */
.pickl { max-height: 170px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 2px 10px; }
.pk { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; cursor: pointer; }
.pk:last-child { border-bottom: 0; } .pk span { flex: 1; } .pk input { width: 16px; height: 16px; margin: 0; accent-color: #2563eb; }

.sumbox.cajadif { font-size: 20px; font-weight: 700; text-align: center; padding: 16px 14px; }
@media (min-width: 761px) { table.ccg { table-layout: fixed; width: 100%; } table.ccg td, table.ccg th { overflow: hidden; text-overflow: ellipsis; } table.ccg td:last-child { overflow: visible; } table.ccg td.dact { text-align: right; } }
@media (min-width: 761px) { table.ccg th { white-space: normal; text-overflow: clip; font-size: 11.5px; letter-spacing: .02em; } }

/* interruptor */
.sw { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; }
.sw input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.sw i { position: absolute; inset: 0; background: #cbd5d1; border-radius: 99px; transition: .2s; }
.sw i::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.sw input:checked + i { background: var(--brand); } .sw input:checked + i::before { transform: translateX(18px); }

/* titulos de las tarjetas con mas presencia */
.kpi .label { font-size: 15.5px; font-weight: 600; color: var(--ink, #14201c); opacity: .78; }
@media (max-width: 760px) { .kpi .label { font-size: 14px !important; } }
/* mermas: tarjetas chicas */
.mg3 { align-items: start; }
.mg3 > .kpi { padding: 14px 16px; }
/* clientes: numero bien repartido */
.ckp .kpi { display: flex; flex-direction: column; justify-content: space-evenly; min-height: 108px; gap: 6px; }
.ckp .kpi .value { margin-top: 0; }
/* fechas dentro del recuadro */
input[type=date] { min-width: 0; max-width: 100%; box-sizing: border-box; -webkit-appearance: none; appearance: none; }
label.f, .fgrid > *, .stack > * { min-width: 0; }
.grid > *, .g-main > *, .main > * { min-width: 0; }
@media (max-width: 760px) { .grid, .g-main, .g2 { grid-template-columns: minmax(0, 1fr); } .grid.keep2, .grid.g3.keep2, .grid.g4.keep2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .mg3 { align-items: stretch; } }
.cajadif .ic { width: 1.15em; height: 1.15em; vertical-align: -.2em; stroke-width: 3; margin-left: 4px; margin-right: 0; }
.okt { color: #16a34a; display: inline-flex; vertical-align: -3px; margin-left: 2px; } .okt .ic { stroke-width: 3; }
/* barra del total */
.totbar { margin-top: 12px; padding: 10px 14px; background: #f3f8f6; border: 1px solid #dbe9e4; border-radius: 14px; gap: 10px; align-items: center; }
.totbar .total, .venta3 .totbar .total { font-size: 28px; font-weight: 700; letter-spacing: -.03em; color: var(--brand-d); line-height: 1.1; }
@media (max-width: 760px) { .totbar .total, .venta3 .totbar .total { font-size: 26px; } }
/* encabezados de tabla un poco mas marcados */
th, .stockwrap thead th { background: #f0f3f1; }
.ped table.ptab thead th { background: transparent !important; }
/* columnas proporcionales */
@media (min-width: 761px) { table.pa { table-layout: fixed; width: 100%; } table.pa th:first-child { width: 28%; } table.pa th:not(:first-child) { width: 18%; } table.pa th { letter-spacing: .03em; padding-left: 4px; padding-right: 4px; } table.pa th:first-child { padding-left: 10px; } }
table.pa th { white-space: normal; }
/* historial de ventas */
.dl-s { display: none; }
@media (max-width: 760px) {
  .dl-l { display: none; } .dl-s { display: inline; }
  table.hist { table-layout: fixed; width: 100%; }
  table.hist th, table.hist td { padding: 8px 4px; font-size: 13px; }
  table.hist th { font-size: 10.5px; letter-spacing: .02em; }
  table.hist th:nth-child(1) { width: 15%; padding-left: 8px; } table.hist th:nth-child(2) { width: 35%; }
  table.hist th:nth-child(3) { width: 20%; text-align: center; } table.hist th:nth-child(4) { width: 17%; } table.hist th:nth-child(5) { width: 13%; }
  table.hist td:nth-child(1) { padding-left: 8px; } table.hist td:nth-child(2) { overflow-wrap: anywhere; line-height: 1.3; }
  table.hist td:nth-child(3) { text-align: center; } table.hist td .chip { font-size: 10.5px; padding: 2px 6px; }
  table.hist th.hpay select { display: block; margin: 3px auto 0 !important; font-size: 10.5px !important; padding: 1px 3px !important; border-radius: 6px; }
  table.hist td:last-child { white-space: normal; text-align: center; } table.hist td:last-child .btn { padding: 3px; display: block; margin: 0 auto 2px; }
}
th.hpay select { width: 76px !important; padding-right: 4px !important; }

th.hpay select { width: 66px !important; }
@media (max-width: 760px) {
  table.hist td { vertical-align: middle; }
  table.hist td:nth-child(2) { vertical-align: top; padding-top: 7px; padding-bottom: 7px; font-size: 12.5px; line-height: 1.3; }
  table.hist .it { display: block; } table.hist .cm { display: none; }
}
@media (max-width: 760px) { th.hpay select { width: 54px !important; } table.hist th:nth-child(2) { width: 38%; } table.hist th:nth-child(3) { width: 17%; } }
table.hist .cm { color: #9aa5a1; margin: 0 4px; }
@media (max-width: 760px) {
  .tablewrap:has(table.hist) { margin: 0 -10px; }
  table.hist th:nth-child(1) { width: 12%; padding-left: 4px; } table.hist td:nth-child(1) { padding-left: 4px; padding-right: 2px; font-size: 12px; line-height: 1.3; }
  table.hist th:nth-child(2) { width: 44%; } table.hist th:nth-child(3) { width: 16%; }
  table.hist th:nth-child(4) { width: 17%; text-align: right; padding-right: 4px; } table.hist td:nth-child(4) { text-align: right; padding-right: 4px; }
  table.hist th:nth-child(5) { width: 11%; }
  table.hist td:nth-child(2) { padding-left: 6px; padding-right: 2px; }
}
@media (max-width: 760px) {
  .tablewrap:has(table.hist) { margin: 0 -12px; padding: 0 !important; }
  table.hist th:nth-child(1) { width: 14%; } table.hist th:nth-child(2) { width: 43%; } table.hist th:nth-child(3) { width: 16%; } table.hist th:nth-child(4) { width: 17%; } table.hist th:nth-child(5) { width: 10%; }
}

/* detalle del historial: items enteros, sin cortarse */
.hist .it { white-space: nowrap; } .hist .ab { display: none; }
.hist .cm { color: #9aa5a1; margin: 0 5px; }
@media (min-width: 761px) { table.hist td:nth-child(2) { font-size: 13.5px; } }
@media (max-width: 760px) {
  table.hist .it { display: block; white-space: normal; } table.hist .cm { display: none; }
  table.hist .fn { display: none; } table.hist .ab { display: inline; }
}
@media (max-width: 760px) { table.hist .it { white-space: nowrap; } table.hist td:nth-child(2) { font-size: 12px; } }

/* historial y por articulo en el celular */
.hsel-top { display: none; }
@media (max-width: 760px) {
  .hsel-top { display: inline-block; } .hsel-top select { width: auto !important; padding: 8px 10px; font-size: 14px !important; }
  table.hist th.hpay select { display: none !important; }
  table.hist th { vertical-align: middle; } table.hist th:nth-child(2) { text-align: center; }
  table.pa { table-layout: fixed; width: 100%; }
  table.pa th, table.pa td { padding: 8px 3px; font-size: 12px; }
  table.pa th { font-size: 9.5px; letter-spacing: .01em; white-space: normal; line-height: 1.2; }
  table.pa td b { font-weight: 400; }
  table.pa td:first-child, table.pa th:first-child { padding-left: 8px; }
  table.pa th:first-child { width: 30%; } table.pa th:not(:first-child) { width: 17.5%; }
}
@media (max-width: 760px) {
  .tablewrap:has(table.pa) { margin: 0 -12px; padding: 0 !important; }
  table.pa th { font-size: 9px; letter-spacing: 0; } table.pa th:first-child { width: 28%; } table.pa th:not(:first-child) { width: 18%; }
  table.pa td { font-size: 12px; }
}
table.pa .ab { display: none; }
@media (max-width: 760px) {
  table.pa .fn { display: none; } table.pa .ab { display: inline; }
  table.pa th:first-child { width: 32%; } table.pa th:nth-child(2) { width: 14%; } table.pa th:nth-child(3) { width: 19%; } table.pa th:nth-child(4) { width: 18%; } table.pa th:nth-child(5) { width: 17%; }
}

/* pestañas alineadas con el titulo y con pista de que hay mas */
.tabs button:first-child { padding-left: 0; }
@media (max-width: 760px) {
  .tabs.more { -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); }
  .promoit .pi-txt { flex-basis: 100%; line-height: 1.45; } .promoit .pi-btn { width: 100%; justify-content: flex-end; margin-top: 6px; }
  .promoit .pi-btn .btn { padding: 5px 12px; font-size: 13px; }
}
/* fecha vacia: que se note que es para elegir una fecha */
input[type=date][data-empty] { color: #8a9893; position: relative; min-height: 44px; }
@media (pointer: coarse) {
  input[type=date][data-empty]::before { content: "Elegí una fecha"; color: #8a9893; }
  input[type=date][data-empty]::-webkit-datetime-edit { display: none; }
}
.akp .kpi .value { margin-top: 10px; }
@media (min-width: 761px) { .perbar input[type=month] { width: auto; min-width: 190px; } }
.akp .kpi .value { font-size: 26px; }

/* punto de equilibrio: titulos y espacio */
.be-title { font-size: 20px; font-weight: 700; display: inline-block; padding-bottom: 6px; border-bottom: 2px solid var(--brand); margin: 0; }
.be-sub { font-size: 17px; margin-bottom: 10px; }
.be-grid { gap: 72px; margin-top: 28px; }
.be-left > .small { letter-spacing: .04em; }
.be-line { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin: 12px 0 0; }
.be-big { margin: 0; } .be-eq { color: var(--muted); font-size: 16px; } .be-eq b { color: var(--ink); }
.be-sep { margin: 28px 0 18px; border-top: 2px dotted #cfd8d4; }
.be-txt { line-height: 1.55; }
.be-netv { font-size: 28px; letter-spacing: -.02em; }
.be-net { padding-top: 26px; }
@media (max-width: 800px) {
  #beCard { padding: 16px 16px 18px; }
  .be-grid { gap: 0; margin-top: 18px; }
  .be-big { font-size: 28px; } .be-eq { font-size: 14px; }
  .be-sep { margin: 14px 0 12px; } .be-txt { font-size: 14px; }
  .be-left .small { font-size: 11.5px; }
  .be-st { margin-top: 12px !important; font-size: 14px; }
  .be-right { margin-top: 16px; padding-top: 14px; border-top: 2px dotted #cfd8d4; }
  .be-sub { margin-bottom: 4px; font-size: 16px; }
  .be-row { padding: 8px 0; font-size: 14.5px; }
  .be-net { padding-top: 12px; } .be-net > b:first-child { font-size: 16px !important; } .be-netv { font-size: 24px; }
}

.be-help { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--brand-d); font-weight: 600; font-size: 14px; cursor: pointer; padding: 4px 0; }
.bh-q { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--brand); display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.be-how { margin-top: 6px; }
.be-ins { margin-top: 20px; padding: 18px 20px; background: #fff8e6; border: 1px solid #f1deaa; border-radius: 14px; } .be-ins ul { margin: 6px 0 10px 20px; } .be-ins li { margin: 3px 0; }
.behow { margin: 0 0 0 20px; display: grid; gap: 10px; line-height: 1.5; }
@media (max-width: 800px) { .bh-l { display: none; } .be-how { font-size: 12px; } }

/* margen real + ayuda en el celular + tarjetas mas chicas */
.mrg { background: linear-gradient(180deg, #f2f9f6, #fff); border-color: #d6ebe4; }
.mrg-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.mrg-b { background: #fff; border: 1px solid #dcebe5; border-radius: 12px; padding: 12px 14px; }
.mrg-b b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 4px 0; color: var(--brand-d); }
@media (max-width: 760px) { .mrg-g { grid-template-columns: 1fr; gap: 8px; } .mrg-b { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 8px 12px; } .mrg-b b { grid-row: 1 / 3; grid-column: 2; font-size: 20px; margin: 0; } .mrg-b .small { grid-column: 1; } }
.be-row { padding: 11px 0; }
@media (max-width: 800px) { .bh-l { display: inline !important; font-size: 12.5px; } .be-help { gap: 6px; } .bh-q { width: 22px; height: 22px; font-size: 13px; } .be-row { padding: 7px 0; font-size: 14px; } }
.akp .kpi { padding: 12px 14px; } .akp .kpi .label { font-size: 14px; } .akp .kpi .value { font-size: 22px; margin-top: 6px; }
@media (min-width: 761px) { .akp .kpi .value { font-size: 24px; } }
.mrg-b b { font-size: 21px; }

/* inicio: tarjetas mas chicas, ganancia en rojo si es negativa, impuestos */
.kpi.tint-green .value.neg { color: #dc2626; }
.ikp .kpi { padding: 12px 14px; } .ikp .kpi .label { font-size: 14px; } .ikp .kpi .value { font-size: 24px; margin-top: 6px; } .ikp .kpi .delta { font-size: 12px; margin-top: 3px; }
.tx-r { display: block; }
@media (max-width: 760px) { .ikp .kpi .value { font-size: 22px; } .tx-tile .tx-r { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; } .tx-tile .tx-r .delta { text-align: right; margin: 0; } }

.tx-tile .tx-r .delta { line-height: 1.4; }
@media (max-width: 760px) { .tx-tile .tx-r .delta { font-size: 12.5px; } }
/* calculadora que entra en la pantalla del celular */
@media (max-width: 760px) {
  .venta2 .calc { padding: 10px 12px 12px; }
  .venta2 .calc > h3, .venta2 .c2tot > .small.muted { display: none; }
  .venta2 .cdisp { height: 44px; font-size: 22px; padding: 6px 12px; }
  .venta2 #cprev { min-height: 0 !important; height: 16px; font-size: 12px; margin: 2px 0 0; line-height: 16px; }
  .venta2 .keys { gap: 5px; margin-top: 2px; }
  .venta2 .keys button { min-height: 0; height: 56px; font-size: 18px; padding: 0; }
  .venta2 .keys .eq { font-size: 15px; }
  .venta2 .calc #tlist { flex: none !important; min-height: 0 !important; max-height: 130px; overflow-y: auto; margin: 6px 0 0; }
  .venta2 .totbar { margin-top: 6px; padding: 6px 10px; }
  .venta2 .totbar .total { font-size: 22px; }
  .venta2 .totbar .pays button, .venta2 .totbar .pill button { padding: 4px 9px; font-size: 12px; }
  .venta2 .c2tot > .row:last-child { margin-top: 8px !important; }
  .venta2 .c2tot .btn.lg { padding: 9px 14px; font-size: 15px; min-height: 0; }
}
@media (max-width: 760px) {
  .venta2 .keys button { height: 56px; }
  .venta2 .calc #tlist { max-height: 130px; margin-top: 5px; } .venta2 #tlist .empty { padding: 5px 8px; font-size: 12px; }
  .venta2 .totbar { flex-wrap: nowrap; gap: 6px; padding: 5px 8px; }
  .venta2 .totbar .total { font-size: 20px; }
  .venta2 .totbar .pays, .venta2 .totbar .pill { gap: 4px; flex-wrap: nowrap; } .venta2 .totbar .pays button, .venta2 .totbar .pill button { padding: 4px 7px; font-size: 11.5px; white-space: nowrap; }
}
@media (max-width: 760px) { .venta2 .totbar { flex-wrap: nowrap !important; } .venta2 .totbar .total { flex: none; } .venta2 .totbar .pays, .venta2 .totbar .pill { flex-wrap: nowrap !important; margin-left: auto; } }
@media (max-width: 760px) { .venta2 .totbar { flex-direction: row !important; align-items: center; justify-content: space-between; } .venta2 .totbar .paywrap { margin: 0; } }

.be-arr { display: inline-block; position: relative; width: 56px; height: 2px; background: var(--muted); vertical-align: middle; margin-right: 12px; border-radius: 2px; }
.be-arr::after { content: ''; position: absolute; right: -1px; top: -4px; width: 8px; height: 8px; border-top: 2px solid var(--muted); border-right: 2px solid var(--muted); transform: rotate(45deg); }
@media (max-width: 760px) { .be-arr { width: 36px; margin-right: 8px; } }

/* venta por articulos en el celular: titulo visible, chip Pro arriba a la derecha, lista que ocupa toda la pantalla */
@media (max-width: 760px) {
  .venta2 .vright > .calc > h3 { display: flex !important; align-items: center; gap: 8px; margin: 0 0 10px; padding-right: 52px; }
  .venta2 .vright > .calc.tagged > .tier-chip { top: 10px; right: 10px; }
  .venta2 .vright > .calc { display: flex; flex-direction: column; height: 680px; }
  .venta2 .vright .calc #lines { flex: 1 1 0 !important; min-height: 120px; max-height: none !important; overflow-y: auto; margin-top: 12px; }
}
/* celular: los totales van de a dos por fila (cada uno con su tick y su X) */
@media (max-width: 760px) {
  .venta2 .calc #tlist { display: grid; grid-template-columns: 1fr 1fr; align-content: start; }
  .venta2 .calc #tlist .empty { grid-column: 1 / -1; }
  .venta2 .calc #tlist .line.tl { padding: 3px 4px 3px 6px; gap: 3px; min-width: 0; border-right: 1px solid var(--line); }
  .venta2 .calc #tlist .line.tl:nth-child(2n) { border-right: 0; }
  .venta2 .calc #tlist .line.tl > span { width: auto !important; font-size: 12px; }
  .venta2 .calc #tlist .line.tl b { font-size: 13px; white-space: nowrap; }
  .venta2 .calc #tlist .icb { width: 26px; height: 26px; flex: none; }
}
.be-line { gap: 0 !important; column-gap: 0 !important; }
.be-line .be-big { margin-right: 22px; }
.be-arr { margin-right: 25px !important; }
@media (max-width: 760px) { .be-line .be-big { margin-right: 14px; } .be-arr { margin-right: 17px !important; } }

/* celular: los totales bajan por columna (1,2,3,4 abajo; 5,6,7,8 al lado) */
@media (max-width: 760px) {
  .venta2 .calc #tlist { display: block; }
  .venta2 .calc #tlist .tgrid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(var(--r), auto); grid-template-columns: 1fr 1fr; background: linear-gradient(var(--line), var(--line)) center / 1px 100% no-repeat; }
  .venta2 .calc #tlist .line.tl, .venta2 .calc #tlist .line.tl:nth-child(2n) { border-right: 0; }
}


.bellp .avx { background: none; border: 0; color: var(--muted); padding: 4px; margin-left: 4px; border-radius: 6px; cursor: pointer; display: inline-flex; align-self: flex-start; } .bellp .avx:hover { background: var(--line); color: var(--ink); }
/* tu margen real: cuadros blancos sobre fondo suave */
.mrg-b b small { font-size: .62em; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.mrg-b .mrg-d { margin-top: 2px; font-size: 12.5px; font-weight: 600; min-height: 0; } .mrg-d.pos { color: #16a34a; } .mrg-d.neg { color: #dc2626; }
.mrg-b b.neg { color: #dc2626; }
.mrg .pill button { padding: 5px 11px; font-size: 13px; }

.yrsel { appearance: none; -webkit-appearance: none; border: 0; border-bottom: 1px dashed var(--muted); background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 4l3-3 3 3M2 6l3 3 3-3' fill='none' stroke='%236b7280' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right 2px center; padding: 0 16px 0 2px; font: inherit; color: inherit; width: auto; min-width: 0; height: auto; cursor: pointer; border-radius: 0; box-shadow: none; }
.mrg-b .yrsel { font-size: inherit !important; padding: 0 16px 0 2px !important; }

.amt { font-weight: 400; } .amt.red { color: #dc2626; } .amt.amb { color: #d4900a; }

@media (min-width: 761px) { .banner.stkal { display: inline-flex; width: auto; max-width: 100%; padding-right: 14px; } .banner.stkal .grow { flex: none; } }
.banner.stkal { display: inline-flex; width: auto; max-width: 100%; padding-right: 12px; } .banner.stkal .grow { flex: none; overflow: visible; }
/* agenda en el celular: rayitas azules en los dias con algo */
@media (max-width: 760px) {
  .cal .day .ev { display: block; width: 16px; height: 3px; padding: 0; margin: 4px 0 0; border-radius: 2px; background: #2563eb; font-size: 0; }
  .cal .day .ev.r { background: #2563eb; }
}

/* mermas: titulo subrayado, numeros mas cerca del nombre, selector de fecha siempre del mismo tamano */
.kpi .label.ul { display: inline-block; padding-bottom: 5px; border-bottom: 2px solid var(--brand); margin-bottom: 10px; color: var(--ink); font-weight: 700; }
.toplist { max-width: 300px; } @media (max-width: 760px) { .toplist { max-width: 240px; } }
.perbar input[type=date], .perbar input[type=month] { width: 190px !important; min-width: 190px !important; height: 40px; padding: 7px 10px; box-sizing: border-box; flex: none; }
@media (max-width: 760px) { .perbar .row input[type=date] { width: 150px !important; min-width: 0 !important; } .perpick input { flex: none !important; } }

/* mermas en el celular: formulario parejo y registro legible */
.hint:empty { display: none; } .mq, .ds { display: none; }
@media (max-width: 760px) {
  #mermaf .fgrid { align-items: start; gap: 10px; }
  #mermaf .fgrid.fg2 { grid-template-columns: 138px 1fr; }
  #mermaf input:not([type=checkbox]), #mermaf select { height: 46px; padding-top: 0; padding-bottom: 0; }
  .mq, .ds { display: block; } .dl { display: none; }
  table.merm.compact { table-layout: fixed; }
  table.merm.compact col:nth-child(1) { width: 15% !important; } table.merm.compact col:nth-child(2) { width: 37% !important; } table.merm.compact col:nth-child(3) { width: 17% !important; }
  table.merm.compact col:nth-child(4), table.merm.compact th:nth-child(4), table.merm.compact td:nth-child(4) { display: none; }
  table.merm.compact col:nth-child(5) { width: 23% !important; } table.merm.compact col:nth-child(6) { width: 8% !important; }
  table.merm.nm.compact col:nth-child(5) { width: 8% !important; } table.merm.nm.compact col:nth-child(2) { width: 52% !important; }
  table.merm.compact th, table.merm.compact td { padding: 8px 4px; font-size: 13px; overflow: visible; text-overflow: clip; white-space: normal; }
  table.merm.compact th { font-size: 11px; letter-spacing: 0; }
  table.merm.compact td.neg { white-space: nowrap; font-size: 13px; }
  table.merm.compact td .btn { padding: 4px; }
}

.macts { display: inline-flex; gap: 2px; }
@media (max-width: 760px) {
  .macts { flex-direction: column; gap: 0; align-items: center; }
  table.merm.compact col:nth-child(2) { width: 33% !important; } table.merm.compact col:nth-child(5) { width: 21% !important; } table.merm.compact col:nth-child(6) { width: 14% !important; }
}

.adminbar .vpsel { width: auto; min-width: 0; height: 30px; padding: 0 22px 0 8px; font-size: 12.5px !important; border-radius: 8px; border: 1px solid #fff; background-color: #fff; color: #312e81; font-weight: 600; }
@media (max-width: 760px) { .adminbar .vpsel { height: 28px; font-size: 12px !important; max-width: 132px; } }

/* portada: texto en vez de lista de tics, reaseguros arriba de los botones, celular mas ancho */
.hero-text { font-size: 18px; line-height: 1.5; color: var(--muted); max-width: 520px; margin: 0 0 14px; }
.hero .trust { margin: 0 0 20px; } .hero-cta { margin-top: 0; }
@media (min-width: 901px) and (max-width: 1199px) { .hero-vis .mock { margin: 0; transform: rotate(3deg) !important; } .hero-vis { padding-left: 110px; } }
@media (min-width: 1200px) { .hero-vis .mock { margin-right: -58px; margin-left: 36px; } }

/* recorrido animado de la portada: el sistema real dentro de un marco */
.demo { max-width: none; margin: 0 auto 34px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 70px rgba(15,60,54,.18); overflow: hidden; }
.demo-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f1f5f3; border-bottom: 1px solid var(--line); }
.demo-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d5dcd9; }
.demo-url { margin-left: 10px; flex: 1; max-width: 320px; font-size: 12px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 3px 12px; }
.demo-stage { position: relative; background: #f4f6f5; overflow: hidden; height: 450px; }
.demo-stage iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; pointer-events: none; background: #fff; }
.demo-cur { position: absolute; left: 0; top: 0; width: 24px; height: 24px; transform: translate(60%, 40%); transition: transform .6s cubic-bezier(.4, 0, .2, 1); z-index: 8; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.demo-cur.clk svg { transform: scale(.78); } .demo-cur svg { transition: transform .15s; display: block; }
.demo-toast { position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 14px); background: #14201c; color: #fff; padding: 9px 18px; border-radius: 99px; font-size: 14px; font-weight: 600; opacity: 0; transition: .3s; z-index: 9; white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis; }
.demo-toast.on { opacity: 1; transform: translate(-50%, 0); }
.demo-cap { text-align: center; font-size: 15px; font-weight: 600; color: var(--brand-d); background: var(--brand-l); padding: 10px 14px; min-height: 42px; }
.demo-steps { display: flex; border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; } .demo-steps::-webkit-scrollbar { display: none; }
.demo-steps button { flex: 1 0 auto; min-width: 84px; background: #fff; border: 0; border-right: 1px solid var(--line); padding: 12px 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.demo-steps button:last-child { border-right: 0; } .demo-steps button.on { color: var(--brand-d); background: #fff; box-shadow: inset 0 -3px 0 var(--brand); }
@media (max-width: 560px) { .demo-url { display: none; } .demo-cap { font-size: 13.5px; } .demo-steps button { padding: 11px 8px; font-size: 12.5px; min-width: 70px; } }
/* portada en celular: el cuadro de ejemplo no se sale de la pantalla */
@media (max-width: 900px) { .hero-vis .mock { transform: rotate(1.2deg) !important; margin-right: 0; margin-left: 0; } }

/* celular: botones fáciles de tocar y letras que se leen */
@media (max-width: 760px) {
  .btn.sm { min-height: 34px; padding-top: 6px; padding-bottom: 6px; }
  .btn.sm.ghost { min-width: 34px; }
  .venta2 .totbar .pays button, .venta2 .totbar .pill button, .venta3 .pays button, .venta3 .pill button { min-height: 32px; }
  .walogo { padding: 6px; }
  .link.small, a.link { display: inline-block; padding: 6px 0; }
  table th { font-size: 10px; }
  .mchart .col em { font-size: 10px; } .mchart .col span { font-size: 10px; }
  .tier-chip { font-size: 10.5px; }
  .trialpill .btn, .banner .btn.sm { min-height: 32px; }
}

/* stock en el celular: cada producto es una tarjeta chica, sin tener que deslizar de costado */
@media (max-width: 760px) {
  .stockwrap { max-height: none; overflow: visible; margin: 0; }
  .stockwrap table, .stockwrap tbody { display: block; width: 100%; table-layout: auto; }
  .stockwrap thead tr { display: grid; grid-template-columns: 34px 1fr; align-items: center; }
  .stockwrap.staff thead tr { grid-template-columns: 1fr; }
  .stockwrap thead th.c-stk, .stockwrap thead th.c-min, .stockwrap thead th.c-est, .stockwrap thead th.c-act { display: none; }
  .stockwrap tbody tr { display: grid; grid-template-columns: 34px 1fr auto; grid-template-areas: "chk prod stk" "chk prod est" "chk act act"; column-gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .stockwrap.staff tbody tr { grid-template-columns: 1fr auto; grid-template-areas: "prod stk" "prod est" "act act"; }
  .stockwrap tbody td { display: block; border: 0; padding: 0; width: auto; }
  .stockwrap td.c-chk { grid-area: chk; } .stockwrap td.c-prod { grid-area: prod; min-width: 0; } .stockwrap td.c-stk { grid-area: stk; text-align: right; } .stockwrap td.c-est { grid-area: est; text-align: right; margin-top: 4px; } .stockwrap td.c-act { grid-area: act; text-align: left; margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
  .stockwrap td.c-min { display: none; }
  .stockwrap td.c-prod .psub { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.3; }
  .stockwrap td.c-stk b { font-size: 17px; }
}
@media (max-width: 760px) { .bellp .avx { min-width: 36px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; } }
@media (max-width: 400px) { .banner.slim .grow { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; } .banner.slim { flex-wrap: nowrap; align-items: center; } }

/* libreta de "Del papel al control total": letra manuscrita mas grande y del mismo color que las cuentas */
.nb-big .gq .nb-line { font-size: clamp(22px, 3.2vw, 31px); color: #1e3a8a; line-height: 36px; }
.nb-big .gq .pbox { font-size: inherit; }
@media (max-width: 520px) { .nb-big .gq .nb-line { font-size: clamp(20px, 5.6vw, 24px); white-space: normal; line-height: 28px; } }
.nb-slip, .nb-slip .sl-r { font-size: 27px; line-height: 1.15; } .nb-slip .sl-h { font-size: 29px; } .nb-slip { color: #1e3a8a; }

.demo-steps button { display: flex; align-items: center; justify-content: center; gap: 6px; }
.demo-steps .dsi { display: inline-flex; } .demo-steps .dsi .ic { width: 16px; height: 16px; }
.demo-steps .tier-chip { font-size: 9.5px; padding: 1px 6px; margin: 0; }
@media (max-width: 560px) { .demo-steps button { min-width: 74px; flex-direction: column; gap: 3px; } }

.be-line .be-big { margin-right: 14px; } .be-eq { white-space: nowrap; }
@media (max-width: 760px) { .be-line { flex-wrap: wrap; } .be-eq { font-size: 14px; } }

/* ventas en la compu: si la columna de totales queda angosta, los botones de pago bajan de renglon y no se salen */
@media (min-width: 761px) { .venta2 .totbar .paywrap { max-width: 100%; } .venta2 .totbar .pays, .venta2 .totbar .pill { flex-wrap: wrap; row-gap: 4px; } }


/* ===== portada (version final): cuadro de ejemplo mas ancho, sin renglones partidos ===== */
.hero-vis .mock .delta, .hero-vis .mock .label { white-space: nowrap; }
.hero-vis .mock .kpi { padding: 12px 14px; }
.hero-vis .mock .tint-green .delta { white-space: normal; line-height: 1.35; }
.hero-vis .mock .banner { white-space: nowrap; }
@media (min-width: 901px) { .hero .container { grid-template-columns: 1fr 1.14fr; } }
@media (min-width: 1200px) { .nb-pile { width: 292px; } .nb-pile .n1 { width: 284px; } }

/* ===== portada en celular: el cuadro inclinado de un lado y la libreta de fondo del otro ===== */
@media (max-width: 900px) {
  .hero-vis { padding: 12px 0 18px 54px; overflow-x: clip; }
  .nb-pile { display: block !important; position: absolute; left: -6px; top: 34px; bottom: auto; width: 200px; z-index: 0; }
  .nb-pile .n1 { left: 0; top: 0; width: 196px; transform: rotate(-9deg); }
  .hero-vis .mock { transform: rotate(2.2deg) !important; margin: 0 !important; }
  .hero-vis .mock .grid.g2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .hero-vis .mock .grid.g2 { grid-template-columns: 1fr; }
  .hero-vis .mock .kpi .delta { white-space: normal; }
}

/* ===== papelitos con alfiler ===== */
.nb-wrap { margin-bottom: 214px; }
.nb-posts { position: absolute; z-index: 0; right: 4px; bottom: -206px; width: min(640px, 100%); height: 250px; pointer-events: none; }
.nb-posts .nb-slip { position: absolute; top: 0; bottom: auto; right: auto; width: 232px; padding: 30px 14px 12px; font-size: 25px; line-height: 1.12; color: #1e3a8a; }
.nb-posts .nb-slip .sl-h { font-size: 27px; } .nb-posts .nb-slip .sl-r { font-size: 25px; }
.nb-posts .ps1 { left: 0; transform: rotate(-3.2deg); z-index: 1; }
.nb-posts .ps2 { left: 198px; top: 26px; transform: rotate(2.4deg); z-index: 2; background: linear-gradient(180deg, #ffd3e0 0, #ffc2d4 20%, #ffb3c9 100%); }
.nb-posts .ps3 { left: 396px; top: 4px; transform: rotate(-1.6deg); z-index: 3; background: linear-gradient(180deg, #d8f6d4 0, #c4efbf 20%, #b3e8ad 100%); }
 .nb-slip .pin { position: absolute; top: -7px; left: 50%; width: 19px; height: 19px; margin-left: -9px; border-radius: 50%; z-index: 4; box-shadow: 0 4px 5px rgba(0,0,0,.35), inset -2px -3px 4px rgba(0,0,0,.28); }
 .nb-slip .pin::after { content: ''; position: absolute; left: 4px; top: 3px; width: 6px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.65); }
 .nb-slip .pin.red { background: radial-gradient(circle at 35% 30%, #ff8a8a, #dc2626 55%, #8f1515); }
 .nb-slip .pin.green { background: radial-gradient(circle at 35% 30%, #86efac, #16a34a 55%, #0b5d27); }
 .nb-slip .pin.yellow { background: radial-gradient(circle at 35% 30%, #fde68a, #f59e0b 55%, #9a5b00); }
@media (max-width: 760px) {
  .nb-wrap { margin-bottom: 232px; }
  .nb-posts { left: 0; right: 0; width: 100%; bottom: -222px; height: 250px; }
  .nb-posts .nb-slip { width: 54%; padding: 28px 10px 10px; font-size: 21px; } .nb-posts .nb-slip .sl-h { font-size: 22px; } .nb-posts .nb-slip .sl-r { font-size: 21px; }
  .nb-posts .ps1 { left: 0; } .nb-posts .ps2 { left: 23%; top: 30px; } .nb-posts .ps3 { left: 46%; top: 6px; }
}
.hero-vis .mock .kpi { padding: 10px 12px; } .hero-vis .mock .kpi .label { font-size: 12.5px; } .hero-vis .mock .kpi .delta { font-size: 11.5px; }
@media (min-width: 901px) { .hero .container { grid-template-columns: 1fr 1.28fr; gap: 32px; } }
@media (min-width: 1200px) { .hero-vis .mock { margin-right: -70px; } }
@media (min-width: 1200px) { .hero-vis .mock { margin-left: 58px; margin-right: -92px; } }
/* papelitos: que los numeros se lean (apenas se tapan entre si) */
.nb-posts { width: 100%; right: 0; left: 0; }
.nb-posts .nb-slip { width: 36%; font-size: 23px; } .nb-posts .nb-slip .sl-h { font-size: 25px; } .nb-posts .nb-slip .sl-r { font-size: 23px; }
.nb-posts .ps1 { left: 0; } .nb-posts .ps2 { left: 32%; } .nb-posts .ps3 { left: 64%; }
@media (max-width: 760px) { .nb-posts .nb-slip { width: 52%; } .nb-posts .ps1 { left: 0; } .nb-posts .ps2 { left: 24%; } .nb-posts .ps3 { left: 48%; } }

.nb-posts .nb-slip { width: 37%; padding-right: 20px; font-size: 22px; } .nb-posts .nb-slip .sl-h { font-size: 24px; } .nb-posts .nb-slip .sl-r { font-size: 22px; gap: 6px; }
.nb-posts .ps1 { left: 0; } .nb-posts .ps2 { left: 34.5%; } .nb-posts .ps3 { left: 69%; padding-right: 14px; }
@media (max-width: 760px) { .nb-posts .nb-slip { width: 50%; padding-right: 16px; font-size: 20px; } .nb-posts .nb-slip .sl-h { font-size: 21px; } .nb-posts .nb-slip .sl-r { font-size: 20px; } .nb-posts .ps1 { left: 0; } .nb-posts .ps2 { left: 24%; } .nb-posts .ps3 { left: 48%; } }
.nb-posts .ps1, .nb-posts .ps2 { padding-right: 30px; }
@media (max-width: 760px) { .nb-posts .ps1, .nb-posts .ps2 { padding-right: 24px; } }
@media (max-width: 900px) { .nb-pile .nb-hero { display: block !important; position: absolute; } .nb-pile .nb-line { font-size: 19px; line-height: 24px; } .nb-pile .nb-h { font-size: 16px; line-height: 24px; } }
@media (max-width: 760px) {
  .nb-posts .ps3 { display: none; }
  .nb-posts .nb-slip { width: 52%; } .nb-posts .ps1 { left: 0; } .nb-posts .ps2 { left: 47%; top: 22px; padding-right: 14px; }
  .nb-wrap { margin-bottom: 210px; } .nb-posts { bottom: -196px; }
}
@media (max-width: 760px) { .nb-posts { bottom: -244px; } .nb-wrap { margin-bottom: 262px; } }
.nb-posts .sl-r { white-space: nowrap; }
@media (max-width: 760px) { .nb-posts .nb-slip .sl-r { font-size: 18.5px; } .nb-posts .nb-slip .sl-h { font-size: 20px; } .nb-posts .nb-slip { padding-left: 10px; } .nb-posts .ps1 { padding-right: 20px; } }

/* historial en el celular: un solo producto va completo, al medio y en un renglon finito */
table.hist .it.one .fn { display: inline !important; } table.hist .it.one .ab { display: none !important; }
table.hist .it.one { white-space: normal; }
table.hist td:nth-child(2):has(.it.one) { vertical-align: middle; padding-top: 4px; padding-bottom: 4px; }
@media (max-width: 760px) {
  table.hist th:nth-child(1) { width: 13%; } table.hist th:nth-child(2) { width: 40%; } table.hist th:nth-child(3) { width: 15%; } table.hist th:nth-child(4) { width: 16%; } table.hist th:nth-child(5) { width: 16%; }
  table.hist td:last-child { white-space: nowrap; text-align: right; padding-right: 2px; }
  table.hist td:last-child .btn { display: inline-flex; margin: 0 1px; min-height: 28px; min-width: 28px; padding: 3px; vertical-align: middle; }
  table.hist td { padding-top: 6px; padding-bottom: 6px; }
  /* por articulo: el nombre completo; si no entra, baja de renglon */
  table.pa .fn { display: inline !important; } table.pa .ab { display: none !important; }
  table.pa th:first-child { width: 38%; } table.pa th:nth-child(2) { width: 12%; } table.pa th:nth-child(3) { width: 18%; } table.pa th:nth-child(4) { width: 17%; } table.pa th:nth-child(5) { width: 15%; }
  table.pa td:first-child { overflow-wrap: anywhere; line-height: 1.25; }
}
/* papelitos: los tres amarillos, cada uno con su alfiler de color */
.nb-posts .ps2, .nb-posts .ps3 { background: linear-gradient(180deg, #fff59a 0, #ffee6e 18%, #ffe94f 100%); }
 .nb-slip .pin.blue { background: radial-gradient(circle at 35% 30%, #93c5fd, #2563eb 55%, #123a8a); }
@media (max-width: 760px) { table.hist th:nth-child(1) { width: 12%; } table.hist th:nth-child(2) { width: 43%; } table.hist th:nth-child(3) { width: 15%; } table.hist th:nth-child(4) { width: 15%; } table.hist th:nth-child(5) { width: 15%; } table.hist td:last-child .btn { margin: 0; } }
@media (max-width: 760px) {
  table.pa td .fn { display: inline !important; } table.pa td .ab { display: none !important; }
  table.pa th .fn { display: none !important; } table.pa th .ab { display: inline !important; }
  table.pa th:first-child { width: 37%; } table.pa th:nth-child(2) { width: 14%; } table.pa th:nth-child(3) { width: 18%; } table.pa th:nth-child(4) { width: 16%; } table.pa th:nth-child(5) { width: 15%; }
}


/* alfileres: todos rojos, modelo chinche realista */
 .nb-slip .pin, .nb-slip .pin.red, .nb-slip .pin.green, .nb-slip .pin.blue, .nb-slip .pin.yellow { top: -9px; width: 22px; height: 22px; margin-left: -11px; background: radial-gradient(circle at 34% 28%, #ffe1e1 0 7%, #ff6a6a 18%, #d81b1b 52%, #8a0c0c 100%); box-shadow: inset 0 -3px 4px rgba(60,0,0,.45), inset 0 2px 2px rgba(255,255,255,.4), 0 1px 0 rgba(0,0,0,.25), 7px 9px 7px -3px rgba(0,0,0,.45); border: 1px solid rgba(90,0,0,.55); }
 .nb-slip .pin::before { content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, rgba(255,255,255,.55), rgba(255,255,255,0) 70%), rgba(120,0,0,.35); box-shadow: inset 0 1px 2px rgba(0,0,0,.35); }
 .nb-slip .pin::after { left: 5px; top: 3px; width: 7px; height: 5px; background: rgba(255,255,255,.7); filter: blur(.4px); }
.nb-slip .sl-r.subh { font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.nb-posts .ps3 .sl-r { line-height: 1.02; }
.nb-posts .ps3 .sl-r { line-height: 1.12; }

/* papelitos dentro de su columna (no pisan el cuadro de Criterio) y titulo del cuadro */
.nb-posts .nb-slip { width: 35%; } .nb-posts .ps1 { left: 0; } .nb-posts .ps2 { left: 32.5%; } .nb-posts .ps3 { left: 65%; padding-right: 12px; font-size: 21px; } .nb-posts .ps3 .sl-r, .nb-posts .ps3 .sl-h { font-size: 21px; }
.with-criterio { padding-top: 34px; }
.with-criterio .wf-title { font-size: 34px; line-height: 1.15; margin: 0 0 26px; letter-spacing: -.02em; }
@media (max-width: 760px) { .nb-posts .nb-slip { width: 50%; } .nb-posts .ps2 { left: 47%; } .with-criterio .wf-title { font-size: 28px; margin-bottom: 20px; } }
/* control de cajas en el celular: la fecha va corta (3 nov) y la nota gana ese lugar */
@media (max-width: 760px) { table.ccg col:nth-child(1) { width: 7% !important; } table.ccg col:nth-child(7) { width: 33% !important; } table.ccg td.dcell { white-space: nowrap; } }

/* fechas cortas en el celular (nov 2026, 3 nov 2026) y la semana al lado de la fecha */
.pk { display: contents; } .pk-t { display: none; }
@media (max-width: 760px) {
  .pk { position: relative; display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 14px; font-weight: 600; flex: none; }
  .pk-t { display: inline; white-space: nowrap; }
  .pk input[type=date], .pk input[type=month] { position: absolute !important; inset: 0; width: 100% !important; min-width: 0 !important; height: 100% !important; opacity: 0; padding: 0 !important; margin: 0; border: 0; }
  .perbar .perpick { flex-wrap: nowrap; gap: 8px; } .perbar .perlabel { font-size: 12.5px; padding: 5px 10px; white-space: nowrap; }
  .perbar .prange { gap: 6px; flex-wrap: nowrap; } .perbar .prange .pk { padding: 0 9px; font-size: 13px; }
}


/* ===== portada: libreta de apuntes y subtitulos ===== */
.nb-big .gc .nb-rule { width: 168px; max-width: 100%; margin-top: 4px; }
.pb-line .arr-r { position: static; display: inline-block; vertical-align: middle; width: 38px; height: 20px; margin-left: 8px; stroke: #1b2559; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transform: scaleX(-1) rotate(-6deg); }
@media (max-width: 520px) { .pb-line .arr-r { display: none; } }
.vs { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); }
.with-criterio .stack { font-size: 16px; }
.with-criterio .stack > .row { white-space: nowrap; }
@media (max-width: 900px) { .vs { grid-template-columns: 1fr; } .with-criterio .stack > .row { white-space: normal; } }
@media (min-width: 761px) { .section .sub { max-width: none; white-space: nowrap; } }
.vs { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
@media (min-width: 901px) { .nb-big .gq .nb-line { font-size: clamp(22px, 2.3vw, 28px); } .nb-big .nb-grid3 { overflow: hidden; } .pb-line .arr-r { width: 30px; margin-left: 6px; } }
@media (max-width: 900px) { .vs { grid-template-columns: 1fr; } }
/* la libreta de apuntes vuelve a su ancho: la tarjeta de Criterio se ajusta a su lista en una linea */
@media (min-width: 901px) { .vs { grid-template-columns: 1fr 1fr; } .nb-big .gq .nb-line { font-size: clamp(22px, 3.2vw, 31px); } .nb-big .nb-grid3 { overflow: visible; } .pb-line .arr-r { width: 34px; margin-left: 8px; } }
@media (min-width: 761px) { .nb-wrap { margin-bottom: 250px; } .nb-posts { bottom: -244px; } }

/* tarjeta de Criterio: se ajusta al largo de su lista para que cada punto quede en un renglon */
@media (min-width: 901px) { .vs { grid-template-columns: minmax(0, 1fr) max-content; } }

/* "ANTES": rojo, mas grande y centrado sobre la libreta (igual que "CON CRITERIO" sobre el cuadro) */
@media (min-width: 901px) {
  .nb-pile .vs-tag { left: 140px; top: -16px; transform: translateX(-50%) rotate(-4deg); background: #dc2626; color: #fff; font-size: 15px; padding: 8px 18px; letter-spacing: .1em; box-shadow: 0 6px 14px rgba(185, 28, 28, .35); }
}

/* ===== portada en celular (v2): cuadros de 2 en 2, de borde a borde, sin flechas ===== */
.pb-line .arr { display: none !important; }
@media (max-width: 900px) {
  .hero { overflow-x: clip; }
  .hero-vis { margin: 0 -20px; padding: 12px 0 18px 64px; overflow: visible; }
  .nb-pile { left: 0; }
  .hero-vis .mock { border-radius: 14px 0 0 14px; border-right: 0; padding: 12px 10px 12px 12px; margin-right: -8px !important; }
  .hero-vis .mock .grid.g2 { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
  .hero-vis .mock .kpi { padding: 8px 10px; }
  .hero-vis .mock .kpi .label { font-size: 11.5px; white-space: normal; line-height: 1.2; }
  .hero-vis .mock .kpi .value { font-size: 17px !important; }
  .hero-vis .mock .kpi .delta { font-size: 10.5px; white-space: normal; line-height: 1.25; }
  .hero-vis .mock .banner, .hero-vis .mock .stack > div:nth-child(4) { display: none; }
  .hero-vis .mock > .card { margin-top: 8px !important; padding: 10px !important; }
}
@media (max-width: 520px) {
  .hero-vis .mock .grid.g2 { grid-template-columns: 1fr 1fr !important; }
  .with-criterio { padding: 22px 14px; }
  .with-criterio .stack { font-size: 12.6px; gap: 10px; }
  .with-criterio .stack > .row { white-space: nowrap; gap: 6px; }
  .with-criterio .vtick { transform: scale(.85); }
}
@media (max-width: 760px) { .nb-wrap { margin-bottom: 150px; } }

/* ===== transiciones suaves entre bloques (gris <-> blanco) ===== */
.section.alt { position: relative; border-block: 0; }
.section.alt::before, .section.alt::after { content: ''; position: absolute; left: 0; right: 0; height: 80px; pointer-events: none; z-index: 0; }
.section.alt::before { top: 0; background: linear-gradient(180deg, var(--bg), rgba(255,255,255,0)); }
.section.alt::after { bottom: 0; background: linear-gradient(0deg, var(--bg), rgba(255,255,255,0)); }
.section.alt > .container { position: relative; z-index: 1; }
.demo-hint { display: none; }
.demo-sw { position: relative; }
@media (max-width: 760px) {
  .demo-bar { display: none; }
  .demo-hint { display: grid; position: absolute; right: 0; top: 0; bottom: 0; width: 44px; place-items: center; padding-left: 10px; background: linear-gradient(90deg, rgba(255,255,255,0), #fff 55%); color: var(--brand); font-size: 30px; font-weight: 800; line-height: 1; pointer-events: none; animation: dnudge 1.1s ease-in-out infinite; }
  .demo-sw.end .demo-hint { display: none; }
  .demo-steps { padding-right: 30px; }
  .hero-vis { overflow: hidden; padding: 12px 0 56px 72px; }
  .nb-pile { height: calc(100% - 120px); overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 60px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 60px), transparent); }
  .hero-vis .mock { margin-right: 0 !important; }
  .hero-vis .mock .banner { display: block; font-size: 11.5px; padding: 7px 10px; }
  .hero-vis .mock .stack > div:nth-child(4) { display: block; }
}
@keyframes dnudge { 0%, 100% { transform: translateX(-3px); } 50% { transform: translateX(4px); } }

/* celular: sin recorte de sombra (era la franja), recorrido con el titulo arriba y mas grande */
@media (max-width: 760px) {
  .hero-vis { overflow: visible; }
  .hero-vis .mock { box-shadow: 0 18px 40px rgba(15,60,54,.16); }
  .demo { display: flex; flex-direction: column; }
  .demo-cap { order: -1; font-size: 12.5px; padding: 7px 12px; min-height: 0; line-height: 1.25; }
  .demo-stage { order: 0; } .demo-sw { order: 1; }
  .demo-hand { position: absolute; left: 0; bottom: 4px; width: 26px; height: 26px; pointer-events: none; z-index: 3; opacity: 0; animation: dhand 7s ease-in-out infinite; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
  .demo-sw.end .demo-hand, .demo-sw.touched .demo-hand { display: none; }
}
.demo-hand { display: none; }
@media (max-width: 760px) { .demo-hand { display: block; } .demo-sw.end .demo-hand, .demo-sw.touched .demo-hand { display: none; } }
@keyframes dhand {
  0% { opacity: 0; transform: translate(30px, 10px) scale(1); }
  8% { opacity: 1; }
  14% { transform: translate(30px, 10px) scale(.78); } 20% { transform: translate(30px, 10px) scale(1); }
  38% { transform: translate(110px, 10px) scale(1); } 44% { transform: translate(110px, 10px) scale(.78); } 50% { transform: translate(110px, 10px) scale(1); }
  68% { transform: translate(190px, 10px) scale(1); } 74% { transform: translate(190px, 10px) scale(.78); } 80% { transform: translate(190px, 10px) scale(1); }
  92% { opacity: 1; } 100% { opacity: 0; transform: translate(190px, 10px) scale(1); }
}

/* celular: libreta difuminada tambien arriba y cuadro mas inclinado para que se vea mas libreta */
@media (max-width: 760px) {
  .nb-pile { top: 14px; height: calc(100% - 96px); -webkit-mask-image: linear-gradient(180deg, transparent, #000 56px, #000 calc(100% - 60px), transparent); mask-image: linear-gradient(180deg, transparent, #000 56px, #000 calc(100% - 60px), transparent); }
  .hero-vis .mock { transform: rotate(4.2deg) !important; transform-origin: 0 40%; }
}

/* PC: la primera pregunta mas chica para que la carita quede dentro del papel */
@media (min-width: 901px) { .nb-big .gq .nb-line:first-child { font-size: clamp(14px, 1.65vw, 27px); white-space: nowrap; } .nb-big .gq .nb-line:first-child .emo { width: .95em; height: .95em; margin-left: 2px; } }
@media (min-width: 901px) and (max-width: 1199px) { .nb-big .gq .nb-line:first-child { font-size: clamp(12px, 1.38vw, 20px); } }

/* celular: "Miercoles 3 de abril" bien legible (la libreta baja un poco y el difuminado queda arriba) y cuadro mas volcado */
@media (max-width: 760px) {
  .nb-pile { top: 4px; height: calc(100% - 86px); -webkit-mask-image: linear-gradient(180deg, transparent, #000 44px, #000 calc(100% - 60px), transparent); mask-image: linear-gradient(180deg, transparent, #000 44px, #000 calc(100% - 60px), transparent); }
  .nb-pile .n1 { top: 48px; }
  .hero-vis .mock { transform: rotate(6.2deg) !important; }
}

/* recorrido: nombres de las pestañas de Ventas arriba, y barra de abajo del sistema mas fina */
.cap-subs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; margin-top: 5px; }
.cap-subs[hidden] { display: none; }
.cap-subs i { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: rgba(255,255,255,.7); color: var(--muted); border: 1px solid transparent; transition: .2s; }
.cap-subs i.on { background: var(--brand); color: #fff; }
@media (max-width: 760px) { .demo-cap { text-align: center; } }
.is-tour input, .is-tour select, .is-tour textarea { font-size: 16px !important; }
@media (max-width: 760px) {
  .is-tour .side, .is-tour .app.bar-top .side { padding: 2px 4px !important; max-height: 54px !important; }
  .is-tour .nav a { padding: 3px 2px !important; max-height: 48px !important; gap: 1px !important; }
  .is-tour .nav a svg, .is-tour .nav a .ic { width: 20px !important; height: 20px !important; }
  .is-tour .nav a span:not(.lockmini) { font-size: 9.5px !important; }
  .is-tour .main { padding-bottom: 70px !important; }
}
@media (max-width: 760px) { .cap-subs { flex-wrap: nowrap; gap: 3px; margin-top: 4px; } .cap-subs i { font-size: 10.5px; padding: 2px 6px; white-space: nowrap; } .demo-cap { padding: 6px 8px; } }

.demo-stage { background: #fff; }

.demo-cap[hidden] { display: none; }
.is-tour .nav-top, .is-tour * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.is-tour .nav-top { background: #f6f7f5 !important; }
@media (max-width: 560px) { .demo-steps button { padding: 8px 6px; } .demo-steps .dsi .ic { width: 15px; height: 15px; } }

/* dentro del recorrido: nada de mascaras ni filtros (en iPhone dejaban media pantalla en blanco) */
.is-tour *, .is-tour *::before, .is-tour *::after { -webkit-mask-image: none !important; mask-image: none !important; filter: none !important; }

/* ANTES (cruz roja, tachado) y CON CRITERIO (tick): mismo tamaño */
@media (min-width: 901px) {
  .vs-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; padding: 8px 18px 8px 10px; letter-spacing: .1em; white-space: nowrap; }
  .vs-tag::before { content: ''; flex: none; width: 20px; height: 20px; border-radius: 50%; background: #fff center / 12px 12px no-repeat; }
  .vs-old::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 2.5l7 7M9.5 2.5l-7 7' stroke='%23dc2626' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
  .vs-new::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.4l2.6 2.6L10 3.4' fill='none' stroke='%230f766e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
  .vs-old .t { text-decoration: line-through; text-decoration-thickness: 2.5px; text-decoration-color: #fff; }
  .vs-new { box-shadow: 0 6px 14px rgba(15, 118, 110, .35); }
}
@media (min-width: 901px) { .hero-vis .vs-tag, .hero-vis .nb-pile .vs-tag { font-size: 15px; line-height: 20px; padding: 7px 18px 7px 9px; letter-spacing: .1em; } }

/* ===== video corto de la portada (animacion liviana) ===== */
.pv { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: center; max-width: 920px; margin: 0 auto 8px; padding: 8px 0 12px; }
.pv-copy { transition: opacity .22s, transform .22s; min-height: 190px; display: flex; flex-direction: column; justify-content: center; }
.pv-copy.out { opacity: 0; transform: translateY(8px); }
.pv-kick { align-self: flex-start; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); background: var(--brand-l); padding: 6px 12px; border-radius: 99px; }
.pv-copy h3 { font-size: 40px; line-height: 1.1; margin: 14px 0 10px; letter-spacing: -.02em; }
.pv-copy p { font-size: 18px; color: var(--muted); margin: 0; max-width: 460px; }
.pv-dev { position: relative; width: 340px; height: 596px; padding: 10px; border-radius: 40px; background: #14201c; box-shadow: 0 18px 40px rgba(20,32,28,.22); }
.pv-scr { position: relative; width: 320px; height: 576px; border-radius: 30px; overflow: hidden; background: #f6f7f5; display: flex; flex-direction: column; font-size: 13px; color: var(--ink); }
.pv-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px 8px; background: #fff; border-bottom: 1px solid var(--line); }
.pv-logo { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--brand); color: #fff; } .pv-logo .ic { width: 14px; height: 14px; }
.pv-bar b { font-size: 14px; }
.pv-body { flex: 1; min-height: 0; padding: 10px 12px; overflow: hidden; position: relative; }
.pv-nav { display: flex; background: #0e2a26; padding: 6px 4px 8px; }
.pv-nav span { flex: 1; display: grid; justify-items: center; gap: 2px; padding: 5px 0; border-radius: 10px; color: #a9c4bf; font-size: 10px; } .pv-nav span.on { background: #14b8a6; color: #04231f; } .pv-nav .ic { width: 18px; height: 18px; } .pv-nav small { font-size: 10px; }
.pv-scr.paper .pv-bar, .pv-scr.paper .pv-nav { display: none; } .pv-scr.paper .pv-body { padding: 0; } .pv-scr.paper { background: #fffdf3; }
.pv-toast { position: absolute; left: 50%; bottom: 74px; transform: translate(-50%, 10px); background: #14201c; color: #fff; padding: 8px 16px; border-radius: 99px; font-weight: 700; opacity: 0; transition: .25s; white-space: nowrap; z-index: 5; } .pv-toast.on { opacity: 1; transform: translate(-50%, 0); }
.pv-cur { position: absolute; left: 0; top: 0; width: 22px; height: 22px; pointer-events: none; z-index: 9; opacity: 0; transition: transform .45s cubic-bezier(.4,0,.2,1), opacity .2s; } .pv-cur svg { display: block; transition: transform .12s; } .pv-cur.clk svg { transform: scale(.75); }
.pv-h { font-size: 20px; font-weight: 800; margin: 2px 0 10px; }
.pv-tabs { display: flex; gap: 12px; border-bottom: 1px solid var(--line); margin: -2px -2px 10px; padding: 0 2px; white-space: nowrap; overflow: hidden; }
.pv-tabs span { padding: 7px 0; font-weight: 700; color: var(--muted); font-size: 12px; border-bottom: 2px solid transparent; } .pv-tabs span.on { color: var(--brand-d); border-color: var(--brand); } .pv-tabs i { font-style: normal; font-size: 8.5px; font-weight: 800; background: #fde68a; color: #7a5200; padding: 1px 5px; border-radius: 99px; margin-left: 3px; }
.pv-tabs span.glow { color: var(--brand-d); animation: pvglow 1s ease-in-out infinite; }
@keyframes pvglow { 0%, 100% { background: transparent; } 50% { background: #d9f2ee; } }
.pv-disp { text-align: right; font-size: 20px; font-weight: 700; padding: 6px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; height: 38px; margin-bottom: 8px; }
.pv-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; } .pv-keys b { display: grid; place-items: center; height: 33px; border-radius: 9px; background: #fff; border: 1px solid var(--line); font-size: 15px; font-weight: 600; transition: transform .1s, background .1s; }
.pv-keys b:nth-child(4n) { background: #e1f1ef; color: var(--brand-d); } .pv-keys b.c { background: #fde8e8; color: #b91c1c; } .pv-keys b.add { grid-column: span 3; background: var(--brand); color: #fff; border: 0; font-size: 13px; }
.pv-keys b.hit, .pv-pay span.hit, .pv-reg.hit, .pv-pay2 span.hit { transform: scale(.94); background: #bfe6e1; } .pv-keys b.add.hit { background: var(--brand-d); }
.pv-tl { margin: 8px 0; min-height: 74px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 6px 10px; } .pv-tl .ph { display: block; text-align: center; color: var(--muted); font-size: 11.5px; padding-top: 22px; }
.pv-tl .r, .pv-card .r { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; animation: pvin .35s both; } .pv-tl .r b, .pv-card .r b { font-weight: 700; }
@keyframes pvin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pv-pay { display: flex; align-items: center; gap: 6px; background: #eef7f5; border: 1px solid #d3e9e5; border-radius: 10px; padding: 6px 8px; } .pv-pay b { font-size: 17px; margin-right: auto; color: var(--brand-d); }
.pv-pay span, .pv-pay2 span { padding: 4px 10px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: 11.5px; transition: .15s; } .pv-pay span.on, .pv-pay2 span.on { border-color: var(--brand); color: var(--brand-d); box-shadow: inset 0 0 0 1px var(--brand); }
.pv-reg { margin-top: 8px; text-align: center; padding: 10px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 800; transition: .1s; }
.pv-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; } .pv-card > small { font-weight: 700; color: var(--muted); }
.pv-in { margin-top: 8px; height: 36px; border: 1.5px solid var(--brand); border-radius: 9px; padding: 8px 10px; font-size: 14px; display: flex; align-items: center; box-shadow: 0 0 0 3px #d4ece9; } .pv-in .caret { width: 1.5px; height: 16px; background: var(--ink); margin-left: 1px; animation: pvblink 1s steps(2) infinite; }
@keyframes pvblink { 50% { opacity: 0; } }
.pv-sg { margin-top: 6px; } .pv-sg .s { display: flex; justify-content: space-between; padding: 8px 10px; background: #e1f1ef; border-radius: 9px; font-weight: 700; } .pv-sg .s.hit { background: #bfe6e1; }
#pvit { margin-top: 8px; min-height: 96px; } #pvit .r { border-bottom: 1px dashed var(--line); padding: 5px 0; } #pvit .r em { font-style: normal; color: var(--muted); margin: 0 auto 0 10px; }
.pv-sum { display: flex; justify-content: space-between; align-items: center; margin: 10px 2px 6px; font-size: 14px; font-weight: 700; } .pv-sum b { font-size: 20px; color: var(--brand-d); }
.pv-pay2 { display: flex; gap: 6px; }
.pv-hist { display: grid; gap: 6px; } .pv-hist .r { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; font-weight: 700; animation: pvin .4s both; } .pv-hist .r small { color: var(--muted); font-weight: 500; margin-left: 4px; } .pv-hist .r i { font-style: normal; font-size: 11px; background: #eef1ef; padding: 2px 8px; border-radius: 99px; } .pv-hist .r.new { background: #e2f5e8; border-color: #b6e3c3; }
.pv-k { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .pv-k .k { border-radius: 12px; padding: 9px 10px; border: 1px solid; } .pv-k small { display: block; font-size: 10.5px; font-weight: 700; opacity: .8; } .pv-k b { display: block; font-size: 19px; margin: 2px 0; } .pv-k em { display: block; font-style: normal; font-size: 9.5px; opacity: .8; }
.pv-k .t1 { background: #e1f3f1; border-color: #bfe0dc; color: #0b5a54; } .pv-k .t2 { background: #fde8e8; border-color: #f4c3c3; color: #991b1b; } .pv-k .t3 { background: #e2f5e8; border-color: #b6e3c3; color: #166534; } .pv-k .t4 { background: #e0efff; border-color: #bcd6f5; color: #1e4f8f; }
.pv-bars { margin-top: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 7px; } .pv-bars > small { font-weight: 700; color: var(--muted); }
.pv-bars > div { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font-size: 11.5px; } .pv-bars u { grid-column: 1 / -1; order: 3; height: 7px; border-radius: 99px; background: #e9eeec; position: relative; overflow: hidden; text-decoration: none; } .pv-bars u::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 0; background: var(--brand); border-radius: 99px; transition: width 1.1s ease; } .pv-bars u.go::after { width: var(--w); }
.pv-an { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; } .pv-an .c { background: #e2f5e8; border: 1px solid #b6e3c3; border-radius: 12px; padding: 9px 10px; animation: pvin .4s both; } .pv-an .c + .c { background: #fef3dc; border-color: #f2d9a0; } .pv-an small { display: block; font-size: 10.5px; font-weight: 700; color: var(--muted); } .pv-an b { display: block; font-size: 19px; margin: 2px 0; } .pv-an em { font-style: normal; font-size: 10px; color: var(--muted); }
.pv-cj { display: grid; gap: 10px; } .pv-cj .c { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; } .pv-cj small { font-weight: 700; color: var(--muted); } .pv-cj .f, .pv-fl .f { margin: 8px 0 6px; height: 38px; border: 1.5px solid var(--line); border-radius: 9px; padding: 9px 11px; font-size: 16px; font-weight: 700; background: #fbfcfb; } .pv-cj em { font-style: normal; font-size: 11px; color: var(--muted); }
.pv-ok { margin-top: 12px; text-align: center; background: #e2f5e8; color: #166534; font-weight: 800; padding: 11px; border-radius: 12px; animation: pvin .4s both; }
.pv-fl { display: grid; grid-template-columns: 1fr 96px; gap: 8px; }
.pv-end { height: 100%; display: grid; align-content: center; justify-items: center; text-align: center; gap: 4px; padding: 10px; } .pv-end .lg { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--brand); color: #fff; } .pv-end .lg .ic { width: 34px; height: 34px; } .pv-end h4 { margin: 8px 0 0; font-size: 28px; } .pv-end p { margin: 0; font-size: 22px; font-weight: 800; color: var(--brand-d); } .pv-end small { color: var(--muted); } .pv-cta { margin-top: 16px; padding: 12px 20px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 800; animation: pvpulse 1.4s ease-in-out infinite; }
@keyframes pvpulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
/* libreta */
.pp { height: 100%; padding: 22px 18px 16px 34px; background: repeating-linear-gradient(transparent 0 33px, #c7dcec 33px 34px) 0 14px, #fffdf3; font-family: 'Caveat', 'Segoe Print', cursive; color: #1e3a8a; position: relative; } .pp::before { content: ''; position: absolute; left: 24px; top: 0; bottom: 0; width: 2px; background: #f3a3a3; }
.pp-h { font-size: 28px; font-weight: 700; color: #8a1c1c; margin-bottom: 6px; } .pp-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 10px; } .pp-g span { font-size: 27px; line-height: 34px; animation: pvin .4s both; opacity: 0; } .pp-g s { text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: #1b2559; } .pp-g u { text-decoration: none; border: 2px solid #c1272d; border-radius: 50%; padding: 0 8px; color: #c1272d; }
.pp-q, .pp-q2 { font-size: 27px; line-height: 34px; margin-top: 12px; color: #c1272d; opacity: 0; animation: pvin .5s 3.6s both; } .pp-q2 { margin-top: 0; animation-delay: 4.3s; }
.pv-dots { grid-column: 1 / -1; display: flex; justify-content: center; gap: 8px; } .pv-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: #cdd6d2; cursor: pointer; } .pv-dots button.on { background: var(--brand); width: 24px; border-radius: 99px; }
@media (max-width: 800px) {
  .pv { grid-template-columns: 1fr; gap: 14px; justify-items: center; }
  .pv-copy { min-height: 150px; text-align: center; align-items: center; } .pv-kick { align-self: center; } .pv-copy h3 { font-size: 26px; margin: 10px 0 6px; } .pv-copy p { font-size: 15px; }
}

/* celular: sin desenfoque de fondo en el encabezado (en iPhone dejaba la pantalla en blanco al subir rapido) */
@media (max-width: 760px) { .nav-top { -webkit-backdrop-filter: none; backdrop-filter: none; background: #f6f7f5; } }
@media (max-width: 800px) { .pv-dev { zoom: .8; } .pv-copy { min-height: 128px; } }

/* ===== video corto: ajustes (titulos de pantalla, historial, analisis, cierre, hoja) ===== */
.pv-body { padding-top: 12px; }
.pv-top { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; } .pv-top b { font-size: 21px; font-weight: 800; margin-right: auto; }
.pv-top .pdf { font-size: 10.5px; font-weight: 700; border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 6px 9px; }
.pv-top .bell { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); background: #fff; border-radius: 50%; } .pv-top .bell .ic { width: 15px; height: 15px; } .pv-top .bell i { position: absolute; top: -4px; right: -3px; background: #dc2626; color: #fff; font-style: normal; font-size: 9px; font-weight: 800; min-width: 15px; height: 15px; border-radius: 99px; display: grid; place-items: center; }
.pv-qty, #pvit .q { display: inline-flex; align-items: center; gap: 6px; margin: 0 auto 0 8px; } #pvit .q u { text-decoration: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-weight: 800; } #pvit .q u.hit { background: #bfe6e1; transform: scale(.9); } #pvit .q em { min-width: 12px; text-align: center; font-style: normal; font-weight: 700; color: var(--ink); }
#pvit .r { align-items: center; }
.pv-hl { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; } .pv-hl .hh, .pv-hl .hr { display: grid; grid-template-columns: 42px 1fr 52px 56px 34px; gap: 6px; align-items: center; padding: 7px 8px; }
.pv-hl .hh { background: #eef2f0; font-size: 9px; font-weight: 800; color: var(--muted); letter-spacing: .04em; grid-template-columns: 42px 1fr 52px 56px 34px; } .pv-hl .hh span:nth-child(4) { grid-column: 4 / 6; }
.pv-hl .hr { border-top: 1px solid var(--line); font-size: 10.5px; animation: pvin .4s both; } .pv-hl .hr .d { color: var(--muted); line-height: 1.25; } .pv-hl .hr .wl { line-height: 1.25; } .pv-hl .hr i { font-style: normal; font-size: 9.5px; font-weight: 700; background: #eef1ef; border-radius: 99px; padding: 2px 6px; text-align: center; } .pv-hl .hr b { font-size: 11.5px; text-align: right; } .pv-hl .ed { display: flex; gap: 4px; justify-content: flex-end; } .pv-hl .ed .ic { width: 11px; height: 11px; } .pv-hl .ed .ic:last-child { color: #dc2626; }
.pv-chips { display: flex; gap: 6px; margin-bottom: 8px; } .pv-chips span { padding: 5px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: 11.5px; } .pv-chips span.on { border-color: var(--brand); color: var(--brand-d); box-shadow: inset 0 0 0 1px var(--brand); background: #e9f6f4; }
.pv-an2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; } .pv-an2 .c { border-radius: 12px; padding: 9px 11px; border: 1px solid; animation: pvin .4s both; } .pv-an2 small { display: block; font-size: 10.5px; font-weight: 700; opacity: .8; } .pv-an2 b { display: block; font-size: 19px; margin-top: 3px; }
.pv-an2 .g, .pv-ck .g { background: #e2f5e8; border-color: #b6e3c3; color: #166534; } .pv-an2 .g2 { background: #e0f2ef; border-color: #bfe0dc; color: #0b5a54; } .pv-an2 .y, .pv-ck .y { background: #fef3dc; border-color: #f2d9a0; color: #8a5a00; } .pv-an2 .b, .pv-ck .b { background: #e0efff; border-color: #bcd6f5; color: #1e4f8f; } .pv-an2 .r { background: #fde8e8; border-color: #f4c3c3; color: #991b1b; grid-column: 1 / -1; }
.pv-pe { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; } .pv-pe .t { font-weight: 800; border-bottom: 2px solid var(--brand); display: inline-block; margin-bottom: 8px; } .pv-pe small { display: block; font-size: 9.5px; font-weight: 800; color: var(--muted); letter-spacing: .03em; } .pv-pe b { display: block; font-size: 24px; margin: 2px 0; } .pv-pe em { font-style: normal; font-size: 11px; color: var(--muted); } .pv-pe .bar { margin-top: 8px; height: 7px; border-radius: 99px; background: #e9eeec; overflow: hidden; } .pv-pe .bar u { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 99px; transition: width 1.4s ease; } .pv-pe .bar u.go { width: 78%; }
.pv-ck { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .pv-ck .c { border-radius: 12px; padding: 9px 11px; border: 1px solid; } .pv-ck small { display: block; font-size: 10.5px; font-weight: 700; opacity: .85; } .pv-ck b { display: block; font-size: 19px; margin: 2px 0; } .pv-ck em { display: block; font-style: normal; font-size: 9.5px; opacity: .85; }
.pv-card .lbl { font-size: 11px; color: var(--muted); margin-top: 8px; } .pv-card .f { margin: 4px 0 0; height: 34px; border: 1.5px solid var(--line); border-radius: 9px; padding: 8px 10px; font-size: 14px; font-weight: 700; background: #fbfcfb; }
/* hoja: numeros hacia abajo, en columnas */
.pp { padding-top: 16px; } .pp-h { font-size: 26px; margin-bottom: 2px; }
.pp-g { grid-auto-flow: column; grid-template-columns: none; grid-template-rows: repeat(9, 32px); grid-auto-columns: 1fr; gap: 0 8px; } .pp-g span { font-size: 25px; line-height: 32px; white-space: nowrap; }
.pp-q, .pp-q2 { font-size: 24px; line-height: 32px; margin-top: 4px; } .pp-q2 { margin-top: 0; } .pp-q2.b { animation-delay: 5s; }
@media (max-width: 800px) { .pv-dev { zoom: .92; } .pv-copy { min-height: 112px; } }
@media (max-width: 800px) { .pv-dev { zoom: .85; } .pv-copy { min-height: 118px; } .pv-copy h3 { font-size: 24px; } .pv-copy p { font-size: 14px; } }

/* costos fijos reflejados en los movimientos */
.amt.vio { color: #6d28d9; font-weight: 600; }
.chip.fix { background: #ede9fe; color: #5b21b6; border-color: #ddd6fe; }
.fixrow td { background: #faf8ff; }

.pv-hist .r.fx { background: #faf8ff; border-color: #ddd6fe; } .pv-hist .r .fj { text-decoration: none; font-size: 9px; font-weight: 800; background: #ede9fe; color: #5b21b6; padding: 1px 6px; border-radius: 99px; margin-left: 4px; } .pv-hist .r i.v { background: transparent; color: #6d28d9; font-weight: 800; font-size: 12px; }

/* ===== video: sin textos, mas grande, calculadora sin que se corra el boton ===== */
.pv { grid-template-columns: 1fr !important; justify-items: center; margin-top: 28px; gap: 16px; }
.pv-dev { zoom: 1.12; }
@media (max-width: 800px) { .pv-dev { zoom: .98; } }
.pv-top { margin-bottom: 6px; } .pv-top b { font-size: 19px; }
.pv-tabs { margin-bottom: 8px; } .pv-tabs span { padding: 5px 0; }
.pv-disp { height: 32px; padding: 4px 12px; font-size: 18px; margin-bottom: 6px; }
.pv-keys { gap: 5px; } .pv-keys b { height: 30px; font-size: 14px; }
.pv-tl { height: 70px; min-height: 0; margin: 6px 0; padding: 4px 9px; overflow: hidden; }
.pv-tl .ph { padding-top: 22px; } .pv-tl .r { align-items: center; gap: 6px; padding: 0; font-size: 11px; line-height: 15px; } .pv-tl .r b { margin-left: auto; } .pv-tl .ed { display: inline-flex; gap: 4px; } .pv-tl .ed .ic { width: 11px; height: 11px; } .pv-tl .ed .ic:last-child { color: #dc2626; }
.pv-cli { display: flex; align-items: center; justify-content: space-between; margin: 0 0 6px; padding: 5px 9px; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: 11.5px; font-weight: 700; } .pv-cli span { display: inline-flex; align-items: center; gap: 5px; } .pv-cli .ic { width: 13px; height: 13px; } .pv-cli i { font-style: normal; font-size: 8.5px; font-weight: 800; background: #fde68a; color: #7a5200; padding: 1px 6px; border-radius: 99px; } .pv-cli em { font-style: normal; font-weight: 600; color: var(--muted); }
.pv-pay { padding: 5px 8px; } .pv-reg { margin-top: 6px; padding: 8px; } .pv-reg.sm { margin-top: 8px; padding: 6px; font-size: 12px; }
#pvit { min-height: 80px; } #pvit .r .ed { display: inline-flex; margin-left: 8px; } #pvit .r .ed .ic { width: 12px; height: 12px; color: #dc2626; } #pvit .q { margin: 0 0 0 auto; }
.pv-sum { margin: 6px 2px 4px; } .pv-card { padding: 8px 10px; }
.pv-k .t2 em { line-height: 1.3; } .pv-k b { font-size: 18px; } .pv-bars { margin-top: 8px; padding: 8px 10px; gap: 5px; } .pv-bars > div { font-size: 11px; }
.pv-an2 .b b.sm { font-size: 14.5px; margin-top: 6px; white-space: nowrap; }
.pv-ck { gap: 6px; } .pv-ck .c { padding: 6px 9px; } .pv-ck b { font-size: 16px; margin: 0; } .pv-ck em { font-size: 9px; }
.pv-cc .lbl { font-size: 10.5px; margin-top: 6px; } .pv-cc .f { height: 28px; padding: 5px 9px; font-size: 13px; margin-top: 3px; } .pv-cc .row2 { display: flex; justify-content: space-between; font-size: 11px; padding: 4px 0; border-bottom: 1px dashed var(--line); } .pv-cc .row2.sc { font-weight: 800; border-bottom: 0; border-top: 1px solid var(--line); } .pv-cc .row2.sc small { font-weight: 500; color: var(--muted); font-size: 9.5px; } .pv-cc .row2.sc b { font-size: 14px; color: var(--brand-d); }
.pv-cc .pv-ok { margin-top: 8px; padding: 7px; font-size: 12px; } .pv-cc .pv-reg { margin-top: 6px; }
/* final grande */
.pv-end .lg { width: 92px; height: 92px; border-radius: 26px; } .pv-end .lg .ic { width: 50px; height: 50px; } .pv-end h4 { font-size: 40px; margin-top: 12px; } .pv-end p { font-size: 34px; margin-top: 2px; } .pv-end small { font-size: 15px; margin-top: 4px; } .pv-cta { margin-top: 22px; padding: 16px 34px; font-size: 20px; border: 0; cursor: pointer; font-family: inherit; }

.pv-scr.final .pv-nav { display: none; } .pv-scr.final { background: #f6f7f5; }

/* importes alineados a la izquierda (sobre el signo de peso) */
.cmp th.amtc, .cmp td.amtc { text-align: left; white-space: nowrap; }

.pv-pay { gap: 5px; } .pv-pay b { font-size: 15px; } .pv-pay span { padding: 3px 8px; font-size: 10.5px; white-space: nowrap; } .pv-pay span i { font-style: normal; font-size: 8px; font-weight: 800; background: #fde68a; color: #7a5200; padding: 1px 5px; border-radius: 99px; margin-left: 2px; }

/* hoja: raya de la suma, total encerrado y preguntas de a una */
.pp-g { grid-template-rows: repeat(8, 31px); } .pp-g span { line-height: 31px; font-size: 25px; animation-duration: .35s; }
.pp-rule { height: 3px; background: #1e3a8a; border-radius: 3px; margin: 6px 4px 0 0; opacity: 0; animation: pvin .4s both; transform-origin: left; }
.pp-tot { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding-right: 6px; opacity: 0; animation: pvin .5s both; } .pp-tot s { font-size: 24px; text-decoration: line-through; text-decoration-thickness: 3px; color: #6b7280; } .pp-tot .box { font-size: 30px; font-weight: 700; border: 3px solid #1e3a8a; border-radius: 6px 12px 7px 13px; padding: 0 10px; margin: 6px 0; transform: rotate(-1.5deg); }
.pp-q { color: #c1272d; font-size: 25px; line-height: 33px; margin-top: 2px; opacity: 0; animation: pvin .5s both; } .pp-q .emo { width: 1em; height: 1em; vertical-align: -.15em; }
.pp-q .pbx { color: #1e3a8a; border: 2.5px solid #1e3a8a; border-radius: 4px 9px 5px 8px; padding: 0 8px; display: inline-block; } .pp-q .star { color: #1e3a8a; font-weight: 800; }
.pp { padding-top: 12px; } .pp-h { font-size: 24px; margin-bottom: 0; }
.pp-g { grid-template-rows: repeat(8, 27px); } .pp-g span { line-height: 27px; font-size: 22px; }
.pp-tot .box { font-size: 26px; margin: 3px 0; } .pp-tot s { font-size: 21px; }
.pp-q { font-size: 21px; line-height: 27px; margin-top: 0; } .pp-q .pbx { padding: 0 6px; border-width: 2px; white-space: nowrap; font-size: 19.5px; }
.pp-tot + .pp-q { font-size: 18.5px; white-space: nowrap; }

/* hoja (v3): raya solo al final de la 3ª columna, cuadro a lapicera, letras mas grandes */
.pp-g { grid-template-rows: repeat(8, 29px); } .pp-g span { line-height: 29px; font-size: 24px; }
.pp-rule { display: block; align-self: center; height: 3px; background: #1e3a8a; border-radius: 3px; margin: 0 4px 0 0; opacity: 0; animation: pvin .4s both; }
.pp-tot { grid-row: span 2; display: flex; align-items: center; opacity: 0; animation: pvin .5s both; padding: 4px 0 0; }
.pp-tot .boxed { font-size: 25px; font-weight: 700; padding: 1px 9px; }
.boxed { position: relative; display: inline-block; color: #1e3a8a; } .boxed .scr { position: absolute; left: -3px; top: -3px; width: calc(100% + 6px); height: calc(100% + 6px); fill: none; stroke: #1e3a8a; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; } .boxed .scr path { vector-effect: non-scaling-stroke; }
.pp-q { font-size: 25px; line-height: 31px; margin-top: 4px; white-space: normal; } .pp-tot + .pp-q, .pp-g + .pp-q { font-size: 25px; white-space: normal; }
.pp-q .pbx { border: 0; padding: 2px 10px; font-size: 23px; white-space: nowrap; margin: 4px 0 2px; } .pp-q .pbx .star { font-size: 26px; }

.pv-pay2 span { white-space: nowrap; } .pv-pay2 span i { font-style: normal; font-size: 8px; font-weight: 800; background: #fde68a; color: #7a5200; padding: 1px 5px; border-radius: 99px; margin-left: 2px; }

/* costos: renglones chicos, importes sin negrita */
.fxr { padding: 5px 0 !important; gap: 8px; font-size: 13px; align-items: center; } .fxr .small { font-size: 11px; line-height: 1.2; } .fxr .amt { font-size: 13px; } .fxr .chip { font-size: 10px; padding: 1px 7px; } .fxr .btn.sm { padding: 2px 6px; min-height: 0; } .fxr input[type=checkbox] { width: 16px; height: 16px; }
.cmp .amt, .fxr .amt, .amt.vio { font-weight: 400 !important; }

.be-example { border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 14px; background: #fafcfb; }
