/* SmartCaja — landing del producto.
   Misma identidad que la app: azul #1f4e79, verde para positivos, rojo para deudas,
   tipografía del sistema (system-ui). Un solo tema claro, como la app. */

:root {
  --paper: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --blue: #1f4e79;       /* azul de marca (sidebar/botones de la app) */
  --blue-ink: #163a5c;   /* hover / degradés */
  --blue-soft: #e8f0f8;  /* celeste claro */
  --green: #15803d;      /* saldos / positivos */
  --green-soft: #e7f6ec;
  --red: #b91c1c;        /* deudas / por recuperar */
  --shadow: 0 1px 2px rgba(31,41,55,.06), 0 12px 30px -16px rgba(31,41,55,.20);
  --radius: 14px;
  --maxw: 1120px;
  --f-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: 20px; }
h1, h2, h3 { font-family: var(--f-sans); font-weight: 700; line-height: 1.12;
  letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: inherit; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); font-weight: 700; }

/* header */
header { position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 22px; height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700;
  font-size: 17px; letter-spacing: -.01em; }
.brand-sm { font-size: 15px; }
.glyph { width: 26px; height: 26px; border-radius: 7px; flex: none;
  background: linear-gradient(145deg, var(--blue), var(--blue-ink));
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; }
.glyph-sm { width: 22px; height: 22px; font-size: 13px; }
nav.top { margin-left: auto; display: flex; gap: 24px; align-items: center; }
nav.top a { color: var(--muted); text-decoration: none; font-size: 14.5px; }
nav.top a:hover { color: var(--ink); }
.btn { font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer;
  border-radius: 8px; padding: 9px 16px; border: 1px solid transparent;
  text-decoration: none; display: inline-flex; align-items: center; gap: 7px;
  transition: transform .12s ease, background .12s ease; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-ink); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--blue); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-ghost-brand { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); color: #fff; }
.btn-ghost-brand:hover { background: rgba(255,255,255,.24); }
@media (max-width: 720px) { nav.top a.navlink { display: none; } }

/* hero */
.hero { padding-block: 64px 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 54px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }
.hero h1 { font-size: clamp(34px, 5.2vw, 54px); }
.hero p.lead { margin-top: 18px; font-size: 18.5px; color: var(--muted); max-width: 32ch; }
.hero .cta-row { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .mini-note { margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.hero .mini-note b { color: var(--ink); font-weight: 600; }

/* dashboard mock */
.mock { background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.mock-top { display: flex; align-items: center; gap: 7px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); background: var(--surface-2); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-tabs { margin-left: 10px; display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); }
.mock-tabs .on { color: var(--blue); font-weight: 700;
  border-bottom: 2px solid var(--blue); padding-bottom: 2px; }
.mock-body { padding: 18px 18px 20px; display: grid; gap: 14px; }
.kpi-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; background: var(--surface); }
.kpi .lbl { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kpi .val { font-family: var(--f-mono); font-variant-numeric: tabular-nums;
  font-size: 22px; font-weight: 700; margin-top: 4px; letter-spacing: -.01em; }
.kpi .val.green { color: var(--green); }
.kpi.badge-blue { background: var(--blue-soft); border-color: color-mix(in srgb, var(--blue) 25%, var(--line)); }
.kpi.badge-blue .val { color: var(--blue); font-size: 18px; }
.panel { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.panel h4 { margin: 0; font-weight: 700; font-size: 12.5px;
  padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--muted);
  letter-spacing: .04em; text-transform: uppercase; }
.row { display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px; font-size: 13.5px; border-top: 1px solid var(--line); }
.row:first-of-type { border-top: 0; }
.row .who { color: var(--ink); }
.row .who small { display: block; color: var(--muted); font-size: 11.5px; }
.amt { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-weight: 700; }
.amt.neg { color: var(--red); }

/* generic section */
section.block { padding-block: 56px; }
section.block.tight { padding-top: 8px; }
.section-head { max-width: 62ch; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin-top: 10px; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 17px; }

/* ledger truth */
.truth { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-top: 26px; }
@media (max-width: 760px) { .truth { grid-template-columns: 1fr; } }
.truth .card { background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; }
.truth .card .k { font-family: var(--f-mono); font-size: 12px; color: var(--blue); }
.truth .card h3 { font-size: 19px; margin-top: 8px; }
.truth .card p { color: var(--muted); font-size: 14.5px; margin-top: 7px; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; }
.feature .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); margin-bottom: 13px; }
.feature.alt .ic { background: var(--green-soft); color: var(--green); }
.feature h3 { font-size: 17.5px; }
.feature p { color: var(--muted); font-size: 14px; margin-top: 7px; }
svg.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; }

/* split highlight */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.h2-sm { font-size: clamp(24px, 3.2vw, 32px); margin-top: 10px; }
.lead-sm { color: var(--muted); margin-top: 12px; font-size: 16.5px; }
.assistant { background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow); padding: 18px; display: grid; gap: 12px; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 14px; font-size: 14.5px; }
.msg.user { justify-self: end; background: var(--blue); color: #fff; border-bottom-right-radius: 5px; }
.msg.bot { justify-self: start; background: var(--surface-2); border: 1px solid var(--line);
  border-bottom-left-radius: 5px; }
.msg.bot .amt { color: var(--green); }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; margin-top: 10px; }
.barcol { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.barset { display: flex; gap: 3px; align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
.bar { width: 14px; border-radius: 4px 4px 0 0; }
.bar.in { background: var(--blue); }
.bar.out { background: #cdd6e2; }
/* alturas de las barras (datos de ejemplo) */
.h30 { height: 30%; } .h38 { height: 38%; } .h40 { height: 40%; } .h44 { height: 44%; }
.h52 { height: 52%; } .h70 { height: 70%; } .h78 { height: 78%; } .h95 { height: 95%; }
.barcol small { font-size: 11px; color: var(--muted); font-family: var(--f-mono); }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.legend i.sw-in { background: var(--blue); }
.legend i.sw-out { background: #cdd6e2; }

/* cta */
.cta { background: linear-gradient(160deg, var(--blue-ink), var(--blue));
  color: #fff; border-radius: 18px; padding: 44px; text-align: center; }
.cta h2 { color: #fff; font-size: clamp(26px, 3.6vw, 38px); }
.cta p { color: rgba(255,255,255,.85); margin-top: 12px; font-size: 17px; }
.contact { margin-top: 24px; display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; align-items: center; }
.mailbox { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
  border-radius: 8px; padding: 9px 14px; font-family: var(--f-mono); font-size: 14.5px; color: #fff; user-select: all; }
.btn-white { background: #fff; color: var(--blue-ink); }
.btn-white:hover { background: #eef2f7; }
.copied { font-size: 13px; color: rgba(255,255,255,.9); }
[hidden] { display: none; }

footer { padding-block: 34px; border-top: 1px solid var(--line); margin-top: 20px; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: 13.5px; align-items: center; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
