@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  /* Marca FacturGo */
  --bosque: #0F4D2E;
  --bosque-hover: #0B3D24;
  --verde: #2E9E3E;
  --ala: #238A35;
  --claro: #3DB854;
  --menta: #F3F9F1;
  --menta-borde: #D5E8D0;
  --papel: #FFFFFF;

  /* Roles */
  --canvas: var(--menta);
  --surface: var(--papel);
  --ink: #0A2116;
  --muted: #4D5F55;
  --hair: rgba(15, 77, 46, 0.9);
  --divider: var(--menta-borde);

  --display: "Bricolage Grotesque", "Inter", ui-sans-serif, system-ui, sans-serif;
  --ui: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono-num: "Inter", ui-sans-serif, system-ui, sans-serif;

  --radius: 10px;
  --radius-hero: 15px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);

  --lift: rgba(10, 33, 22, 0.01) 0 90px 40px, rgba(10, 33, 22, 0.05) 0 50px 30px,
          rgba(10, 33, 22, 0.08) 0 20px 20px, rgba(10, 33, 22, 0.1) 0 6px 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 16px/1.5 var(--ui);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
::selection { background: var(--bosque); color: var(--papel); }
:focus-visible { outline: 2px solid var(--verde); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--bosque) var(--menta); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--bosque); color: var(--papel); padding: 10px 16px; border-radius: var(--radius);
  text-decoration: none; font-weight: 500;
}
.skip:focus { top: 12px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--radius);
  font: 500 15px/1 var(--ui);
  text-decoration: none; white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-sm { min-height: 40px; padding: 10px 18px; }
.btn-primary { background: var(--bosque); color: var(--papel); }
.btn-primary:hover { background: var(--bosque-hover); }
.btn-ghost { border: 1px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--papel); }
.btn-light { background: var(--papel); color: var(--bosque); }
.btn-light:hover { background: var(--menta); }
.arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--canvas) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 12px var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  min-height: 64px;
}
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; justify-self: start; }
.lockup span { font: 800 19px/1 var(--ui); letter-spacing: -0.02em; color: var(--bosque); }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  padding: 8px 12px; border-radius: 8px;
  font: 500 15px/1 var(--ui); text-decoration: none; color: var(--ink);
  transition: background-color 0.2s var(--ease);
}
.nav-links a:hover { background: var(--papel); }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 18px; }
.link-quiet { font: 500 15px/1 var(--ui); text-decoration: none; }
.link-quiet:hover { text-decoration: underline; }

/* ---------- Tipografía editorial ---------- */
.display {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: "opsz" 96;
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}
.dot { color: var(--verde); }
.heading {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: "opsz" 72;
  font-size: clamp(2.25rem, 5.4vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.heading-sm {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.lead, .sub {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.45;
  color: var(--muted);
  max-width: 38rem;
  text-wrap: pretty;
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(56px, 10vw, 128px) var(--gutter) clamp(48px, 7vw, 88px);
  display: grid; justify-items: center; text-align: center; gap: 28px;
}
.hero .lead { margin-top: -4px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 4px; }

/* ---------- Hoja de contacto ---------- */
.sheet { padding: 0 clamp(10px, 1.6vw, 24px); }
.sheet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: clamp(8px, 1vw, 12px);
  max-width: 1680px; margin: 0 auto;
}
.tile {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  box-shadow: var(--lift);
  overflow: hidden;
  display: grid; grid-template-rows: 1fr auto;
  min-height: 300px;
}
.tile figcaption {
  padding: 12px 16px 14px;
  border-top: 1px solid var(--divider);
  font-size: 14px; line-height: 1.35; color: var(--muted);
  background: var(--papel);
}
.tile-ticket { grid-row: span 2; background: #E9F2E6; }
.tile-stock, .tile-phone { grid-column: span 2; }
.tile-stock .screen { max-width: 520px; width: 100%; }
.tile-dian, .tile-phone { background: var(--bosque); }
.tile-dian figcaption, .tile-phone figcaption { background: var(--bosque); color: #CFE5D3; border-top-color: rgba(255,255,255,0.14); }
.sheet-note { max-width: 1680px; margin: 14px auto 0; padding: 0 4px; font-size: 13px; color: var(--muted); text-align: right; }

/* Entrada: una sola vez, contenido visible por defecto */
@media (prefers-reduced-motion: no-preference) {
  .sheet-grid .tile { animation: settle 1.1s var(--ease) both; }
  .sheet-grid .tile:nth-child(2) { animation-delay: 60ms; }
  .sheet-grid .tile:nth-child(3) { animation-delay: 120ms; }
  .sheet-grid .tile:nth-child(4) { animation-delay: 180ms; }
  .sheet-grid .tile:nth-child(5) { animation-delay: 140ms; }
  .sheet-grid .tile:nth-child(6) { animation-delay: 200ms; }
  .sheet-grid .tile:nth-child(7) { animation-delay: 260ms; }
  .sheet-grid .tile:nth-child(8) { animation-delay: 320ms; }
}
@keyframes settle {
  from { transform: translateY(28px) scale(0.985); }
  to { transform: none; }
}

/* Tiquete térmico */
.receipt {
  align-self: center; justify-self: center;
  width: min(84%, 270px);
  margin: 28px 0;
  padding: 22px 18px 26px;
  background: var(--papel);
  color: #1b1b1b;
  font: 500 12.5px/1.55 var(--mono-num);
  font-variant-numeric: tabular-nums;
  box-shadow: rgba(10,33,22,0.06) 0 18px 24px, rgba(10,33,22,0.08) 0 3px 6px;
  -webkit-mask: radial-gradient(circle 5px at 50% 100%, transparent 98%, #000) 50% 100% / 14px 100% repeat-x;
  mask: radial-gradient(circle 5px at 50% 100%, transparent 98%, #000) 50% 100% / 14px 100% repeat-x;
  transform: rotate(-1.2deg);
}
.receipt-logo { width: 150px; height: auto; margin: 0 auto 4px; }
.r-small { font-size: 11px; color: #555; text-align: center; }
.r-center { margin-top: 6px; }
.r-rule { border-top: 1px dashed #9a9a9a; margin: 10px 0; }
.r-row { display: flex; justify-content: space-between; gap: 12px; }
.r-total { font-weight: 700; font-size: 14px; }
.qr { width: 74px; height: 74px; margin: 14px auto 0; fill: #1b1b1b; }
.receipt-kitchen { transform: rotate(1deg); width: min(80%, 240px); }
.k-title { font: 800 15px/1.2 var(--ui); letter-spacing: 0.14em; text-align: center; margin-bottom: 8px; }
.k-item { font-weight: 700; font-size: 14px; margin-top: 6px; }
.k-note { font-size: 12px; color: #444; }

/* Pantallas */
.screen { padding: 18px; display: grid; align-content: start; gap: 14px; }
.screen-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.screen-bar strong { font: 600 16px/1.2 var(--ui); }
.muted { font-size: 13px; color: var(--muted); }
.chip { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 100px; background: var(--menta); color: var(--bosque); border: 1px solid var(--menta-borde); }

.tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.table {
  border: 1px solid var(--menta-borde); border-radius: 8px; padding: 10px 11px;
  display: grid; gap: 1px; min-height: 74px; align-content: start;
  font-variant-numeric: tabular-nums;
}
.table b { font: 600 14px/1.2 var(--ui); }
.table span { font-size: 13px; font-weight: 600; color: var(--bosque); }
.table small { font-size: 12px; color: var(--muted); }
.table.busy { background: var(--menta); border-color: #BFDDB9; }

.tile-dian .screen { color: var(--papel); align-content: center; height: 100%; padding: 26px 22px; gap: 22px; }
.dian-head { display: flex; gap: 14px; align-items: center; }
.check { width: 44px; height: 44px; flex: none; }
.check circle { fill: var(--claro); }
.check path { fill: none; stroke: var(--bosque); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.dian-head strong { display: block; font: 600 18px/1.2 var(--ui); }
.dian-head small { font-size: 13px; color: #CFE5D3; }
.timeline { display: grid; gap: 0; border-left: 1px solid rgba(255,255,255,0.25); margin-left: 21px; }
.timeline li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0 8px 18px; position: relative; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: -4px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--claro); }
.timeline time { font-variant-numeric: tabular-nums; color: #CFE5D3; }

.ledger { display: grid; font-variant-numeric: tabular-nums; }
.ledger div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--divider); font-size: 14px; }
.ledger dt { color: var(--muted); }
.ledger dd { font-weight: 600; }
.ledger .minus dd { color: #9B2C1F; }
.ledger .sum { border-bottom: 0; padding-top: 12px; }
.ledger .sum dt { color: var(--ink); font-weight: 600; }
.ledger .sum dd { font: 700 18px/1.2 var(--ui); color: var(--bosque); }

.bars { display: grid; gap: 12px; }
.bars li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 13px; }
.bars span { color: var(--ink); }
.bars b { font-variant-numeric: tabular-nums; font-weight: 600; }
.bars i { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: linear-gradient(var(--verde), var(--verde)) 0 0 / var(--w) 100% no-repeat, var(--menta); }

.stock { display: grid; }
.stock li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--divider); font-size: 14px; }
.stock li:last-child { border-bottom: 0; }
.stock b { font-weight: 600; font-variant-numeric: tabular-nums; }
.stock .low { color: #9B2C1F; }
.stock .low::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #D9483B; margin-right: 7px; vertical-align: 1px; }

.phone {
  align-self: center; justify-self: center;
  width: min(78%, 230px); margin: 26px 0;
  padding: 22px 18px;
  border-radius: 28px;
  background: var(--papel);
  border: 6px solid #062715;
  display: grid; gap: 4px;
  font-variant-numeric: tabular-nums;
}
.p-label { font-size: 13px; color: var(--muted); }
.p-big { font: 700 28px/1.1 var(--ui); letter-spacing: -0.02em; color: var(--bosque); }
.p-sub { font-size: 12.5px; color: var(--muted); }
.p-split { display: grid; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--divider); }
.p-split span { display: flex; justify-content: space-between; font-size: 13px; }

/* ---------- Bloques de sección ---------- */
.block {
  max-width: var(--max); margin: 0 auto;
  padding: var(--section) var(--gutter) clamp(32px, 4vw, 48px);
  display: grid; justify-items: center; text-align: center; gap: 20px;
}

.services {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) var(--section);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.service { padding: 24px 24px 8px 0; display: grid; gap: 10px; align-content: start; }
.service + .service { padding-left: 24px; border-left: 1px solid var(--divider); }
.service h3 { font: 600 20px/1.2 var(--ui); letter-spacing: -0.01em; color: var(--bosque); }
.service p { font-size: 15.5px; line-height: 1.5; color: var(--muted); }

/* Tu marca */
.brand-band {
  max-width: var(--max); margin: 0 auto;
  padding: var(--section) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center;
  border-top: 1px solid var(--divider);
}
.brand-copy { display: grid; gap: 22px; }
.tile-pos { min-height: 0; }
.pos { display: grid; grid-template-columns: 172px 1fr; min-height: 340px; --accent: #A97A3B; }
.pos-side { background: #F7F5F0; border-right: 1px solid #ECE6DA; padding: 16px 12px; display: grid; align-content: start; gap: 18px; }
.pos-brand { display: flex; align-items: center; gap: 8px; }
.pos-logo { width: 38px; height: 38px; border-radius: 9px; background: var(--papel); border: 1px solid #ECE6DA; display: grid; place-items: center; overflow: hidden; flex: none; }
.pos-logo img { width: 34px; height: auto; }
.pos-brand b { display: block; font: 700 14px/1.15 var(--ui); }
.pos-brand small { font-size: 11px; color: #6E6556; }
.pos-side ul { display: grid; gap: 2px; }
.pos-side li { font-size: 13px; padding: 7px 9px; border-radius: 7px; color: #3C372F; }
.pos-side li.on { background: color-mix(in srgb, var(--accent) 16%, white); color: #5E4220; font-weight: 600; }
.pos-main { padding: 16px; display: grid; align-content: start; gap: 14px; background: var(--papel); }
.pos-cats { display: flex; gap: 6px; flex-wrap: wrap; }
.pos-cats span { font-size: 12.5px; padding: 6px 11px; border-radius: 100px; border: 1px solid #E5E0D6; }
.pos-cats span.on { border-color: var(--accent); color: #5E4220; background: color-mix(in srgb, var(--accent) 12%, white); font-weight: 600; }
.pos-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pos-products div { border: 1px solid #ECE6DA; border-radius: 8px; padding: 10px; min-height: 76px; display: grid; align-content: space-between; }
.pos-products b { font: 600 13px/1.25 var(--ui); }
.pos-products small { font-size: 12.5px; color: #6E6556; font-variant-numeric: tabular-nums; }

/* Para quién */
.audiences { padding-bottom: var(--section); }
.audience-list { width: 100%; margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: left; border-top: 1px solid var(--ink); }
.audience { padding: 22px 24px 0 0; display: grid; gap: 8px; align-content: start; }
.audience + .audience { padding-left: 24px; border-left: 1px solid var(--divider); }
.audience h3 { font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.1; letter-spacing: -0.02em; }
.audience p { color: var(--muted); font-size: 15.5px; }

/* Prueba */
.proof {
  background: var(--papel);
  border-block: 1px solid var(--divider);
  padding: clamp(48px, 7vw, 88px) var(--gutter);
  display: grid; justify-items: center; text-align: center; gap: 24px;
}
.proof-logo { width: min(300px, 70vw); height: auto; }
.proof .heading-sm { max-width: 26ch; }

/* Pilares */
.pillars {
  max-width: var(--max); margin: 0 auto; padding: var(--section) var(--gutter) 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px;
}
.pillars h3 { font: 600 17px/1.3 var(--ui); color: var(--bosque); margin-bottom: 6px; }
.pillars p { font-size: 15px; color: var(--muted); }

/* Pasos */
.steps-block { padding-bottom: var(--section); }
.steps { width: 100%; margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: step; text-align: left; }
.steps li {
  counter-increment: step;
  background: var(--papel); border: 1px solid var(--divider); border-radius: var(--radius);
  padding: 22px 22px 24px; display: grid; gap: 8px; align-content: start;
}
.steps li::before {
  content: counter(step);
  font-family: var(--display); font-weight: 500; font-size: 44px; line-height: 1; letter-spacing: -0.03em;
  color: var(--verde); margin-bottom: 10px;
}
.steps h3 { font: 600 18px/1.25 var(--ui); }
.steps p { color: var(--muted); font-size: 15px; }

/* Preguntas */
.faq { max-width: 820px; margin: 0 auto; padding: 0 var(--gutter) var(--section); }
.faq h2 { margin-bottom: 20px; }
.faq details { border-top: 1px solid var(--divider); }
.faq details:last-of-type { border-bottom: 1px solid var(--divider); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; min-height: 44px;
  font: 500 17px/1.35 var(--ui);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 1.8px solid var(--bosque); border-bottom: 1.8px solid var(--bosque);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 62ch; }

/* Cierre */
.close {
  margin: 0 clamp(10px, 1.6vw, 24px);
  border-radius: var(--radius-hero);
  background: var(--bosque);
  color: var(--papel);
  padding: clamp(64px, 10vw, 128px) var(--gutter);
  display: grid; justify-items: center; text-align: center; gap: 32px;
}
.close-mark { width: 72px; height: auto; }
.display-close { color: var(--papel); font-size: clamp(2.5rem, 7vw, 5.25rem); }

/* Pie */
.footer { padding: 40px var(--gutter) 48px; }
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 24px;
  font-size: 14px; color: var(--muted);
}
.footer nav { display: flex; gap: 18px; }
.footer nav a { text-decoration: none; color: var(--ink); font-weight: 500; }
.footer nav a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .sheet-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile-kitchen { grid-row: span 1; }
  .tile-stock, .tile-phone { grid-column: span 1; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service:nth-child(3) { padding-left: 0; border-left: 0; }
  .service:nth-child(n+3) { border-top: 1px solid var(--divider); margin-top: 16px; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; }
  .brand-band { grid-template-columns: 1fr; }
  .audience-list, .steps { grid-template-columns: 1fr; }
  .audience + .audience { padding-left: 0; border-left: 0; border-top: 1px solid var(--divider); margin-top: 18px; }
  .audience { padding-bottom: 4px; }
  .footer-inner { grid-template-columns: 1fr auto; }
  .footer-inner > p:first-of-type { display: none; }
}
@media (max-width: 640px) {
  .sheet-grid { grid-template-columns: 1fr; gap: 12px; }
  .sheet-grid .tile { grid-row: auto; grid-column: auto; min-height: 0; }
  .screen { padding: 14px; }
  .tile-dian .screen { padding: 18px 14px; }
  .dian-head strong { font-size: 15px; }
  .check { width: 34px; height: 34px; }
  .timeline { margin-left: 16px; }
  .phone { width: min(78%, 240px); }
  .services { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 20px 0 8px; border-left: 0; }
  .service + .service { border-top: 1px solid var(--divider); margin-top: 0; }
  .pillars { grid-template-columns: 1fr; gap: 22px; }
  .pos { grid-template-columns: 1fr; }
  .pos-side { border-right: 0; border-bottom: 1px solid #ECE6DA; }
  .pos-side ul { display: flex; gap: 4px; overflow: hidden; }
  .pos-side li { white-space: nowrap; }
  .pos-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-actions { gap: 12px; }
  .footer-inner { grid-template-columns: 1fr; gap: 14px; }
  .sheet-note { text-align: left; }
}
