/* =====================================================================
   Kontto · sistema de diseño del sitio público
   Un solo modo (claro). Misma paleta que las apps de Kontto.
   Tipografía: Schibsted Grotesk. Ver docs del proyecto: kontto-web-design-system.md
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Tinta y superficies */
  --ink: #17142B;         /* títulos, importes, banda oscura */
  --ink-2: #4B4860;       /* cuerpo */
  --ink-3: #6B6880;       /* secundario, metadatos */
  --ink-4: #A9A6B8;       /* "no incluido", deshabilitado */
  --paper: #FFFFFF;
  --ground: #F4F3F8;      /* bandas alternas */
  --line: #E4E2EC;
  --line-strong: #D3D0DE;

  /* Violeta de marca */
  --violet: #594CD1;
  --violet-press: #4A3EC2;
  --violet-ink: #3B2FB0;
  --violet-soft: #EEEBFD;
  --violet-wash: #F7F6FE;

  /* Estados */
  --ok: #0B6B45;
  --ok-bg: #E3F4EC;
  --wa: #128C4B;

  /* Forma */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --shadow-frame: 0 1px 0 rgba(23,20,43,.04), 0 28px 56px -28px rgba(23,20,43,.28);
  --nav-h: 68px;

  --font: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Alias heredados (las subpáginas los usan en sus <style> propios) */
  --text: var(--ink);
  --text-muted: var(--ink-2);
  --text-subtle: var(--ink-3);
  --bg: var(--paper);
  --surface: var(--paper);
  --surface-2: var(--ground);
  --surface-3: var(--ground);
  --border: var(--line);
  --border-soft: var(--line);
  --primary: var(--violet);
  --primary-dark: var(--violet-press);
  --primary-light: var(--violet-soft);
  --secondary: var(--violet);
  --secondary-dark: var(--violet-ink);
  --violet-light: var(--violet-soft);
  --violet-mid: #DCD8FB;
  --violet-bright: var(--violet);
  --violet-hover: var(--violet-press);
  --body-color: var(--ink-2);
  --gray-1: var(--ground);
  --gray-2: var(--ground);
  --gray-border: var(--line);
  --white: var(--paper);
  --dark: var(--ink);
  --navy: var(--ink);
  --radius: var(--r-lg);
  --mono: var(--font);
  --shadow-sm: 0 1px 2px rgba(23,20,43,.05);
  --shadow-md: var(--shadow-frame);
  --shadow-lg: var(--shadow-frame);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
section[id], .hash-anchor, [id^="mod-"] { scroll-margin-top: calc(var(--nav-h) + 24px); }
.hash-anchor { display: block; height: 0; visibility: hidden; }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
strong { color: var(--ink); font-weight: 600; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 32px; }
.inline-link { color: var(--violet); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.inline-link:hover { color: var(--violet-press); }

/* ===================== Botones ===================== */
.btn, .btn-primary, .btn-ghost, .btn-wa, .btn-cta, .btn-cta-ghost, .btn-hero-primary,
.btn-store-primary, .btn-store-ghost, .btn-plan, .btn-premium, .btn-whatsapp, .btn-email {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r);
  font-size: 16px; font-weight: 600; line-height: 1; white-space: nowrap;
  border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg, .btn-primary svg, .btn-ghost svg, .btn-wa svg, .btn-cta svg, .btn-cta-ghost svg,
.btn-store-ghost svg, .btn-whatsapp svg, .btn-email svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary, .btn-cta, .btn-hero-primary, .btn-store-primary, .btn-plan.is-primary {
  background: var(--violet); color: #fff; border-color: var(--violet);
}
.btn-primary:hover, .btn-cta:hover, .btn-hero-primary:hover, .btn-store-primary:hover, .btn-plan.is-primary:hover {
  background: var(--violet-press); border-color: var(--violet-press);
}
.btn-ghost, .btn-store-ghost, .btn-plan, .btn-email {
  background: var(--paper); color: var(--ink); border-color: var(--line-strong);
}
.btn-ghost:hover, .btn-store-ghost:hover, .btn-plan:hover, .btn-email:hover { border-color: var(--ink); }
.btn-wa, .btn-whatsapp { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.btn-wa svg, .btn-whatsapp svg { color: var(--wa); }
.btn-wa:hover, .btn-whatsapp:hover { border-color: var(--ink); }

/* Sobre la banda oscura */
.on-dark .btn-ghost, .btn-cta-ghost, .cta-section .btn-wa, .cta-section .btn-email {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.32);
}
.on-dark .btn-ghost:hover, .btn-cta-ghost:hover, .cta-section .btn-wa:hover, .cta-section .btn-email:hover { border-color: #fff; }
.cta-section .btn-wa svg { color: #5FD08F; }
.cta-section .btn-cta { background: #fff; color: var(--ink); border-color: #fff; }
.cta-section .btn-cta:hover { background: var(--violet-soft); border-color: var(--violet-soft); }

/* ===================== Navegación ===================== */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.94); border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
@supports (backdrop-filter: blur(1px)) { .navbar { background: rgba(255,255,255,.86); backdrop-filter: saturate(160%) blur(12px); } }
.navbar.scrolled { border-bottom-color: var(--line); }
.navbar .container { display: flex; align-items: center; gap: 32px; width: 100%; }
.nav-logo img { height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 8px 12px; border-radius: var(--r-sm); }
.nav-links a:hover { color: var(--ink); background: var(--ground); }
.nav-links a.active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--violet); border-radius: 0; }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.theme-toggle { display: none !important; }
.nav-actions .btn-login { font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 10px 14px; border-radius: var(--r-sm); }
.nav-actions .btn-login:hover { color: var(--ink); background: var(--ground); }
.nav-actions .btn-cta-nav {
  font-size: 15px; font-weight: 600; color: #fff; background: var(--violet);
  padding: 10px 16px; border-radius: var(--r-sm);
}
.nav-actions .btn-cta-nav:hover { background: var(--violet-press); }
.mobile-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; margin-left: auto; }
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

.mobile-menu { position: fixed; inset: 0; z-index: 1100; background: rgba(23,20,43,.4); display: none; }
.mobile-menu.active { display: block; }
.mobile-menu-inner {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 88vw);
  background: var(--paper); padding: 72px 24px 24px; display: flex; flex-direction: column; gap: 2px;
}
.mobile-menu-close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--r-sm); color: var(--ink); }
.mobile-link { font-size: 18px; font-weight: 500; color: var(--ink); padding: 13px 4px; border-bottom: 1px solid var(--line); }
.btn-mobile-cta { margin-top: 18px; border: 0; background: var(--violet); color: #fff !important; text-align: center; border-radius: var(--r); font-weight: 600; }

/* ===================== Hero (compartido con subpáginas) ===================== */
.hero-glow { display: none; }
.hero-eyebrow, .section-label { display: none; }
.hero-accent { color: inherit; }
.hero-desc { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 34em; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.hero-note { font-size: 14.5px; color: var(--ink-3); }

/* Hero del index */
.hero { padding: calc(var(--nav-h) + 72px) 0 0; background: var(--paper); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 66px); line-height: 1.02; letter-spacing: -0.03em; margin-bottom: 24px; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 88px; border-top: 1px solid var(--line); }
.fact { padding: 22px 24px 28px 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact strong { display: block; font-size: 16px; margin-bottom: 4px; }
.fact span { font-size: 14.5px; color: var(--ink-3); line-height: 1.45; display: block; }

/* ===================== Comprobante (pieza distintiva) ===================== */
.invoice {
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  box-shadow: var(--shadow-frame); font-size: 12.5px; color: var(--ink-2); line-height: 1.45;
  position: relative;
}
.inv-head { display: grid; grid-template-columns: 1fr auto 1fr; border-bottom: 1px solid var(--line-strong); }
.inv-issuer, .inv-doc { padding: 18px 18px 16px; }
.inv-issuer { border-right: 1px solid var(--line-strong); }
.inv-doc { text-align: right; }
.inv-issuer b, .inv-doc b { display: block; color: var(--ink); font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.inv-letter {
  align-self: start; width: 64px; border: 1.5px solid var(--ink); border-top: 0; background: var(--paper);
  display: flex; flex-direction: column; align-items: center; padding: 6px 0 7px; margin-top: -1px;
}
.inv-letter span { font-size: 42px; line-height: 1; font-weight: 800; color: var(--ink); }
.inv-letter small { font-size: 9.5px; color: var(--ink-3); margin-top: 3px; }
.inv-client { padding: 12px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.inv-items { width: 100%; border-collapse: collapse; }
.inv-items th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: 11.5px; padding: 10px 18px 6px; border-bottom: 1px solid var(--line); }
.inv-items td { padding: 8px 18px; border-bottom: 1px solid var(--line); color: var(--ink); }
.inv-items .num { text-align: right; white-space: nowrap; }
.inv-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 18px; border-bottom: 1px solid var(--line-strong); }
.inv-total span { color: var(--ink-3); }
.inv-total b { font-size: 22px; color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }
.inv-foot { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 14px 18px 16px; }
.inv-qr { width: 56px; height: 56px; color: var(--ink); }
.inv-cae b { color: var(--ink); font-weight: 600; }
.inv-cae .row { display: flex; gap: 6px; }
.inv-stamp {
  font-size: 12px; font-weight: 700; color: var(--ok); background: var(--ok-bg);
  padding: 7px 10px; border-radius: var(--r-sm); display: inline-flex; align-items: center; gap: 6px;
}
.inv-stamp svg { width: 14px; height: 14px; }
.inv-caption { font-size: 13.5px; color: var(--ink-3); margin-top: 14px; }

/* El único momento animado de la página: el CAE se autoriza */
.inv-pending { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .invoice.is-live .inv-cae .val { animation: caeIn .01s linear 1.5s both; }
  .invoice.is-live .inv-stamp { animation: stampIn .35s cubic-bezier(.2,.9,.3,1.3) 1.5s both; }
  .invoice.is-live .inv-pending { display: inline; animation: caeOut .01s linear 1.5s both; color: var(--ink-3); }
  .invoice.is-live .inv-cae .val { display: inline; }
}
@keyframes caeIn { from { visibility: hidden; } to { visibility: visible; } }
@keyframes caeOut { from { visibility: visible; } to { visibility: hidden; position: absolute; } }
@keyframes stampIn { from { opacity: 0; transform: scale(.85) rotate(-4deg); } to { opacity: 1; transform: none; } }

/* ===================== Secciones ===================== */
.section { padding: 112px 0; background: var(--paper); }
.section-invert { background: var(--ground); }
.section-header {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px 64px;
  align-items: end; margin-bottom: 56px;
}
.section-header.stack { grid-template-columns: 1fr; max-width: 760px; }
.section-title { font-size: clamp(30px, 3.5vw, 44px); line-height: 1.08; letter-spacing: -0.025em; max-width: 18em; }
.section-desc { font-size: 18px; color: var(--ink-2); max-width: 32em; }
.section-header:has(> :only-child) { grid-template-columns: 1fr; }

/* Marco de captura del producto (sin falsos botones de ventana) */
.browser-frame, .shot {
  border-radius: var(--r-lg); overflow: hidden; background: var(--paper);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-frame);
}
.browser-bar { display: none; }
.browser-frame img, .browser-frame video, .shot img, .shot video { width: 100%; }
.phone-frame { width: 280px; max-width: 100%; border-radius: 36px; padding: 10px; background: var(--ink); box-shadow: var(--shadow-frame); }

/* ===================== Mostrador (video POS) ===================== */
.feature-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: center; }
.feature-split.reverse { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.feature-split.reverse > :first-child { order: 2; }
.feature-split h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 16px; }
.feature-split h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 14px; }
.feature-split p { margin-bottom: 20px; }
.ticks { display: grid; gap: 10px; margin: 4px 0 28px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink); }
.ticks li::before {
  content: ''; position: absolute; left: 2px; top: .42em; width: 14px; height: 8px;
  border-left: 2px solid var(--violet); border-bottom: 2px solid var(--violet); transform: rotate(-45deg);
}
.feature-split + .feature-split { margin-top: 112px; }
.phone-video { width: 300px; max-width: 100%; margin: 0 auto; border-radius: 44px; overflow: hidden; background: #000; box-shadow: var(--shadow-frame); }
.phone-video video, .phone-video img { width: 100%; }
.plan-hint { font-size: 14.5px; color: var(--ink-3); margin-top: 14px; }

/* ===================== Módulos (índice) ===================== */
.modules { border-top: 1px solid var(--ink); }
.module {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--line-strong);
}
.module h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 10px; }
.module .module-link { font-size: 15px; font-weight: 600; color: var(--violet); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.module .module-link:hover { color: var(--violet-press); }
.module p { color: var(--ink-2); }
.module ul { display: grid; gap: 6px; font-size: 15.5px; color: var(--ink); }
.module ul li { padding-left: 16px; position: relative; }
.module ul li::before { content: ''; position: absolute; left: 0; top: .7em; width: 6px; height: 1.5px; background: var(--ink-3); }
.module-plan { display: inline-block; margin-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--violet-ink); background: var(--violet-soft); padding: 3px 9px; border-radius: 5px; }

/* ===================== Plataforma ===================== */
.platform { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; }
.platform h3 { font-size: 18px; margin-bottom: 6px; }
.platform p { font-size: 15.5px; color: var(--ink-2); }

/* ===================== Próximamente ===================== */
.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--paper); overflow: hidden; }
.roadmap > div { padding: 24px; }
.roadmap > div + div { border-left: 1px solid var(--line); }
.roadmap h3 { font-size: 18px; margin-bottom: 6px; }
.roadmap p { font-size: 15px; }
.status { display: inline-block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 14px; }
.status::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: #E0A93B; margin-right: 8px; vertical-align: 1px; }

/* ===================== Clientes ===================== */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); margin-bottom: 64px; }
.numbers > div { padding: 20px 24px 0 0; }
.numbers b { display: block; font-size: clamp(32px, 3.6vw, 44px); line-height: 1; letter-spacing: -0.03em; color: var(--ink); font-weight: 700; margin-bottom: 8px; }
.numbers span { font-size: 15px; color: var(--ink-3); }
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.quote { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.quote blockquote { font-size: 19px; line-height: 1.5; color: var(--ink); letter-spacing: -0.005em; }
.quote figcaption { font-size: 15px; color: var(--ink-3); }
.quote figcaption b { color: var(--ink); font-weight: 600; display: block; }

/* ===================== Planes: grilla comparativa ===================== */
.plans-intro { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; align-items: baseline; margin-bottom: 24px; font-size: 15.5px; color: var(--ink-2); }
.plans-intro strong { color: var(--ink); }
.plans-switch { display: none; }
.plans-wrap { position: relative; }
.plans-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r-lg); }
.plans-table col.c-feat { width: 25%; }
.plans-table thead th {
  position: sticky; top: var(--nav-h); z-index: 2; background: var(--paper);
  vertical-align: top; text-align: left; padding: 40px 16px 16px; border-bottom: 1px solid var(--ink);
  font-weight: 400; height: 1px;
}
.plan-head { display: flex; flex-direction: column; height: 100%; position: relative; }
.plan-head .btn-plan { margin-top: auto; }
.plan-head .plan-list { margin-bottom: 14px; }
.plans-table thead th:first-child { border-top-left-radius: var(--r-lg); }
.plans-table thead th:last-child { border-top-right-radius: var(--r-lg); }
.plans-table thead th.feat-head { vertical-align: bottom; font-size: 14.5px; color: var(--ink-3); }
.plan-name { display: block; font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.plan-for { display: block; font-size: 14px; color: var(--ink-3); min-height: 2.6em; line-height: 1.3; margin-top: 2px; }
.plan-price { display: block; margin-top: 6px; color: var(--ink); white-space: nowrap; }
.plan-price b { font-size: 25px; font-weight: 700; letter-spacing: -0.02em; }
.plan-price small { font-size: 14px; color: var(--ink-3); margin-left: 2px; }
.plan-list { display: block; font-size: 13.5px; color: var(--ink-3); margin-top: 2px; }
.plan-list s { text-decoration-thickness: 1px; }
.plans-table .btn-plan { width: 100%; min-height: 42px; font-size: 15px; padding: 0 12px; }
.plan-tag { position: absolute; top: -29px; left: 0; font-size: 12.5px; font-weight: 700; color: #fff; background: var(--violet); padding: 4px 9px; border-radius: 5px; }

.plans-table tbody th, .plans-table tbody td { padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 15px; }
.plans-table tbody th { text-align: left; font-weight: 500; color: var(--ink); }
.plans-table tbody th small { display: block; font-weight: 400; color: var(--ink-3); font-size: 13.5px; line-height: 1.35; margin-top: 2px; }
.plans-table tbody td { text-align: left; color: var(--ink); }
.plans-table tbody tr:last-child > * { border-bottom: 0; }
.plans-table .plans-for td, .plans-table .plans-for th { font-size: 14.5px; color: var(--ink-2); vertical-align: top; line-height: 1.4; padding-top: 18px; padding-bottom: 18px; }
.plans-table .plans-for th { color: var(--ink-3); font-weight: 500; }
.plans-table tr.group th {
  padding: 30px 18px 10px; font-size: 13.5px; font-weight: 700; color: var(--ink);
  border-bottom: 1px solid var(--line-strong); background: var(--paper);
}
.plans-table tbody tr:not(.group):hover > * { background-color: var(--violet-wash); }
.plans-table thead th.is-featured { background: var(--violet-wash); box-shadow: inset 0 3px 0 var(--violet); }

.yes { display: inline-block; width: 20px; height: 20px; color: var(--violet); vertical-align: -4px; }
.no { display: inline-block; width: 12px; height: 1.5px; background: var(--ink-4); vertical-align: middle; }
.val { font-weight: 600; }

.plans-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; margin-top: 28px; font-size: 15px; color: var(--ink-2); }
.plans-foot p + p { margin-top: 8px; }

/* ===================== CTA y contacto ===================== */
.cta-section { background: var(--ink); color: #D9D6E8; padding: 104px 0; }
.cta-content { max-width: 760px; }
.cta-content h2 { color: #fff; font-size: clamp(32px, 4vw, 48px); line-height: 1.06; letter-spacing: -0.03em; margin-bottom: 18px; }
.cta-content p { font-size: 18px; color: #C9C6DA; margin-bottom: 32px; max-width: 34em; }
.cta-content .hero-actions { margin-bottom: 0; }
.contact-lines { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); font-size: 15.5px; color: #C9C6DA; }
.contact-lines a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.4); }

/* ===================== FAQ ===================== */
.faq, .faq-list { max-width: 860px; border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary, .faq details.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: baseline;
  padding: 22px 0; font-size: 18px; font-weight: 600; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 24px; font-weight: 400; line-height: 1; color: var(--violet); flex-shrink: 0; }
.faq-item[open] summary::after { content: '–'; }
.faq-item p, .faq details.faq-item p { padding: 0 48px 24px 0; margin: 0; color: var(--ink-2); font-size: 16.5px; line-height: 1.6; }
.faq details.faq-item { padding: 0; }

/* ===================== Footer ===================== */
.footer { background: var(--ink); color: #A9A6BD; padding: 72px 0 32px; border-top: 1px solid rgba(255,255,255,.08); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; }
.footer-logo { height: 26px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: 15px; line-height: 1.6; max-width: 26em; }
.footer-social { display: flex; gap: 8px; margin-top: 20px; }
.footer-social a { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.18); border-radius: var(--r-sm); color: #fff; }
.footer-social a:hover { border-color: #fff; }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h3 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 9px; }
.footer-col a { font-size: 15px; color: #A9A6BD; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a:hover { color: #fff; }

.back-to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 900; width: 44px; height: 44px; display: none;
  align-items: center; justify-content: center; border-radius: var(--r); background: var(--paper);
  border: 1px solid var(--line-strong); color: var(--ink);
}
.back-to-top svg { width: 20px; height: 20px; }

/* Las animaciones de entrada por scroll se retiran: el contenido está siempre visible */
.anim { opacity: 1; transform: none; }

/* ===================== Responsive ===================== */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-actions .btn-login { display: none; }
  .navbar .container { gap: 16px; }
  .nav-actions { margin-left: auto; }
  .mobile-toggle { display: flex; margin-left: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-grid .invoice-wrap { max-width: 560px; }
  .facts { grid-template-columns: repeat(2, 1fr); margin-top: 64px; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .feature-split, .feature-split.reverse { grid-template-columns: 1fr; gap: 40px; }
  .feature-split.reverse > :first-child { order: 0; }
  .module { grid-template-columns: 1fr 1fr; }
  .module > :first-child { grid-column: 1 / -1; }
  .roadmap { grid-template-columns: repeat(2, 1fr); }
  .roadmap > div:nth-child(3) { border-left: 0; }
  .roadmap > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .plans-table col.c-feat { width: 24%; }
  .plans-table thead th, .plans-table tbody th, .plans-table tbody td { padding-left: 12px; padding-right: 12px; }
  .plan-price b { font-size: 21px; }
}
@media (max-width: 820px) {
  body { font-size: 16.5px; }
  .container, .container-narrow { padding: 0 20px; }
  .section { padding: 80px 0; }
  .section-header { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; }
  .platform { grid-template-columns: 1fr 1fr; gap: 28px 32px; }
  .numbers { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .quotes { grid-template-columns: 1fr; }

  /* Planes: se compara un plan por vez */
  .plans-switch {
    display: flex; gap: 4px; padding: 4px; margin-bottom: 16px; border-radius: var(--r);
    background: var(--paper); border: 1px solid var(--line-strong); flex-wrap: wrap;
    position: sticky; top: calc(var(--nav-h) + 8px); z-index: 3;
  }
  .plans-switch button { flex: 1 1 30%; padding: 10px 12px; border-radius: var(--r-sm); font-size: 14.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
  .plans-switch button[aria-selected="true"] { background: var(--ink); color: #fff; }
  .plans-table [data-plan] { display: none; }
  .plans-table[data-show="bienvenida"] [data-plan="bienvenida"],
  .plans-table[data-show="emprendedor"] [data-plan="emprendedor"],
  .plans-table[data-show="pyme"] [data-plan="pyme"],
  .plans-table[data-show="pro"] [data-plan="pro"],
  .plans-table[data-show="premium"] [data-plan="premium"] { display: table-cell; }
  .plans-table { table-layout: auto; }
  .plans-table col.c-feat, .plans-table col.c-plan { width: auto; }
  .plans-table tbody th { width: 62%; }
  .plans-table thead th { position: static; }
  .plans-table thead th.feat-head { font-size: 0; }
  .plans-table thead th:last-child, .plans-table thead th[data-plan] { border-top-right-radius: var(--r-lg); }
  .plan-tag { position: static; align-self: flex-start; margin-bottom: 8px; }
  .plans-foot { grid-template-columns: 1fr; }
  .cta-section { padding: 80px 0; }
}
@media (max-width: 560px) {
  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .hero-desc { font-size: 17.5px; }
  .hero-actions > * { flex: 1 1 100%; }
  .facts { grid-template-columns: 1fr; margin-top: 48px; }
  .fact, .fact + .fact { padding: 16px 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
  .invoice { font-size: 11.5px; }
  .inv-issuer, .inv-doc { padding: 14px 12px; }
  .inv-letter { width: 50px; }
  .inv-letter span { font-size: 32px; }
  .inv-items th, .inv-items td, .inv-client, .inv-total, .inv-foot { padding-left: 12px; padding-right: 12px; }
  .inv-items .col-unit { display: none; }
  .inv-foot { grid-template-columns: 44px 1fr; }
  .inv-qr { width: 44px; height: 44px; }
  .inv-stamp { grid-column: 1 / -1; justify-self: start; }
  .module { grid-template-columns: 1fr; gap: 14px; padding: 26px 0; }
  .platform { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr; }
  .roadmap > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .quote { padding: 24px; }
  .quote blockquote { font-size: 17.5px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .plans-table tbody th, .plans-table tbody td { padding: 12px 10px; font-size: 14.5px; }
  .plans-table .plans-for td, .plans-table .plans-for th { font-size: 14.5px; color: var(--ink-2); vertical-align: top; line-height: 1.4; padding-top: 18px; padding-bottom: 18px; }
.plans-table .plans-for th { color: var(--ink-3); font-weight: 500; }
.plans-table tr.group th { padding: 24px 10px 8px; }
  .plans-table thead th { padding: 18px 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ===================== Agregados oct-2026 (planes, páginas nuevas) ===================== */
.plan-promo { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--violet-ink); }
.plan-promo + .plan-price { margin-top: 0; }
.nav-links a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--violet); border-radius: 0; }
.mobile-link[aria-current="page"] { color: var(--violet); }
.footer-contact { margin-top: 14px; font-size: 15px; line-height: 1.7; }
.footer-contact a { color: #fff; }
.footer-contact a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-grid { grid-template-columns: 1.5fr 1.1fr 1fr 1fr; }
.plans-intro .inline-link { white-space: nowrap; }

/* Documento genérico (orden de compra, hoja de reparto) con la misma receta que la factura */
.doc { background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r-sm); box-shadow: var(--shadow-frame); font-size: 13px; color: var(--ink-2); }
.doc-head { display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line-strong); }
.doc-head b { display: block; color: var(--ink); font-size: 15px; }
.doc-tag { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 5px 9px; border-radius: var(--r-sm); background: var(--violet-soft); color: var(--violet-ink); white-space: nowrap; }
.doc-tag.ok { background: var(--ok-bg); color: var(--ok); }
.doc-rows { width: 100%; border-collapse: collapse; }
.doc-rows th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: 12px; padding: 10px 20px 6px; border-bottom: 1px solid var(--line); }
.doc-rows td { padding: 10px 20px; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: top; }
.doc-rows td small { display: block; color: var(--ink-3); font-size: 12px; }
.doc-rows .num { text-align: right; white-space: nowrap; }
.doc-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 20px; }
.doc-foot b { font-size: 20px; color: var(--ink); }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 5px; background: var(--ground); color: var(--ink-2); white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: #FDF1DF; color: #8A4A0B; }

/* Secuencia real (pasos de un proceso) */
.flow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: fs; }
.flow-steps > div { border-top: 1px solid var(--ink); padding-top: 18px; }
.flow-steps > div::before { counter-increment: fs; content: counter(fs); display: block; font-size: 40px; line-height: 1; font-weight: 700; color: var(--violet); letter-spacing: -0.03em; margin-bottom: 14px; }
.flow-steps h3 { font-size: 19px; margin-bottom: 6px; }
.flow-steps p { font-size: 15.5px; }

.fit { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.fit > div { background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 28px; }
.fit h3 { font-size: 20px; margin-bottom: 4px; }
.fit .fit-price { color: var(--ink-3); font-size: 15px; margin-bottom: 14px; }
.fit .ticks { margin-bottom: 20px; }

.notfound { padding: calc(var(--nav-h) + 96px) 0 120px; }
.notfound h1 { font-size: clamp(40px, 5vw, 60px); line-height: 1.04; letter-spacing: -0.03em; margin-bottom: 18px; }
.notfound ul { display: grid; gap: 8px; margin: 28px 0 0; }
.notfound li a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1080px) {
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) { .fit { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .flow-steps { grid-template-columns: 1fr; gap: 24px; }
  .doc { font-size: 12px; }
  .doc-rows th, .doc-rows td, .doc-head, .doc-foot { padding-left: 12px; padding-right: 12px; }
  .doc-rows .hide-sm { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
.plan-price small:first-child { display: block; margin: 0 0 2px; }

/* ===================== Demo animada: app de preventa + impresora térmica ===================== */
.prev-demo { width: 100%; max-width: 560px; margin: 0 auto; }
.prev-stage { position: relative; container-type: inline-size; aspect-ratio: 560 / 640; }
.prev-phone {
  position: absolute; left: 2cqw; top: 0; width: 50cqw; padding: 1.6cqw; border-radius: 7.5cqw;
  background: var(--ink); box-shadow: var(--shadow-frame);
  transition: transform .6s cubic-bezier(.5,0,.2,1), opacity .5s ease;
}
.prev-screen { position: relative; aspect-ratio: 390 / 844; border-radius: 6cqw; overflow: hidden; background: #F4F3F8; }
.prev-screen img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .25s ease; }
.prev-screen img.on { opacity: 1; }
.prev-print {
  position: absolute; left: 4.1%; right: 4.1%; top: 78%; height: 6.2%;
  display: flex; align-items: center; justify-content: center; gap: 1.2cqw;
  border-radius: 1.75cqw; background: var(--violet); color: #fff; font: 600 2cqw/1 var(--font);
  opacity: 0; transform: translateY(1cqw); transition: opacity .3s ease, transform .3s ease; pointer-events: none;
}
.prev-print svg { width: 2.4cqw; height: 2.4cqw; }
.prev-demo.btn-on .prev-print { opacity: 1; transform: none; }
.prev-tap {
  position: absolute; width: 9cqw; height: 9cqw; margin: -4.5cqw 0 0 -4.5cqw; border-radius: 50%;
  background: rgba(89,76,209,.28); border: 2px solid rgba(89,76,209,.75); opacity: 0; pointer-events: none;
}
.prev-tap.go { animation: prevTap .45s ease-out; }
@keyframes prevTap { 0% { opacity: 0; transform: scale(.4); } 35% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.25); } }

.prev-printer {
  position: absolute; left: 57cqw; bottom: 0; width: 40cqw; height: 100%;
  opacity: 0; transform: translateY(4cqw); transition: opacity .45s ease, transform .6s cubic-bezier(.5,0,.2,1);
}
.prev-demo.p-on .prev-printer { opacity: 1; transform: none; }
.prev-demo.done .prev-printer { transform: translateX(-27cqw); }
.prev-demo.done .prev-phone { opacity: 0; transform: translateY(6cqw) scale(.96); }
.prev-body {
  position: absolute; left: 0; right: 0; bottom: 0; height: 15cqw; border-radius: 2.4cqw 2.4cqw 1.6cqw 1.6cqw;
  background: linear-gradient(#3A3654, #24213A); box-shadow: var(--shadow-frame);
}
.prev-slot { position: absolute; left: 3cqw; right: 3cqw; top: 2cqw; height: 1cqw; border-radius: 1cqw; background: #0E0C1A; }
.prev-led { position: absolute; right: 3.4cqw; bottom: 3cqw; width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background: #3D3A55; }
.prev-demo.printing .prev-led { background: #4ADE80; box-shadow: 0 0 1.2cqw #4ADE80; }
.prev-paper {
  position: absolute; left: 4cqw; right: 4cqw; bottom: 12.4cqw; height: 0; overflow: hidden;
  display: flex; align-items: flex-start;
}
.prev-demo.printing .prev-paper { height: 78cqw; transition: height 2.6s steps(26, end); }
.prev-ticket {
  width: 100%; height: 78cqw; flex-shrink: 0; background: #FFFFFF; color: #1d1b26;
  padding: 3cqw 2.6cqw 4cqw; display: flex; flex-direction: column; gap: .9cqw;
  font: 400 2.05cqw/1.35 ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  box-shadow: 0 .5cqw 2cqw rgba(23,20,43,.18);
  -webkit-mask: linear-gradient(#000, #000) bottom / 100% calc(100% - 1.2cqw) no-repeat,
                conic-gradient(from -45deg at 50% 1.2cqw, #000 90deg, #0000 0) top / 2.4cqw 1.2cqw repeat-x;
          mask: linear-gradient(#000, #000) bottom / 100% calc(100% - 1.2cqw) no-repeat,
                conic-gradient(from -45deg at 50% 1.2cqw, #000 90deg, #0000 0) top / 2.4cqw 1.2cqw repeat-x;
}
.prev-ticket .t-brand { font: 800 3.6cqw/1 var(--font); color: #1d1b26; text-align: center; letter-spacing: -0.02em; margin-top: 1cqw; }
.prev-ticket .t-c { text-align: center; }
.prev-ticket .t-rule { border-top: .3cqw dashed #9A97AC; margin: .6cqw 0; }
.prev-ticket .t-row { display: flex; justify-content: space-between; gap: 1cqw; }
.prev-ticket .t-item { display: flex; flex-direction: column; }
.prev-ticket .t-item span { align-self: flex-end; }
.prev-ticket .t-total { font-weight: 700; font-size: 2.5cqw; }
.prev-printer { z-index: 2; }
@container (max-width: 480px) {
  .prev-phone { left: 0; width: 66cqw; padding: 2cqw; border-radius: 9.5cqw; }
  .prev-screen { border-radius: 7.6cqw; }
  .prev-print { font-size: 2.6cqw; border-radius: 2.3cqw; }
  .prev-print svg { width: 3cqw; height: 3cqw; }
  .prev-printer { left: 52cqw; width: 48cqw; }
  .prev-demo.done .prev-printer { transform: translateX(-26cqw); }
  .prev-ticket { font-size: 2.4cqw; }
  .prev-ticket .t-total { font-size: 2.9cqw; }
  .prev-demo.printing .prev-paper, .prev-ticket { height: 96cqw; }
}
@media (max-width: 560px) { .prev-stage { aspect-ratio: 100 / 150; } }
.prev-caption { font-size: 14px; color: var(--ink-3); margin-top: 14px; text-align: center; max-width: 34em; margin-left: auto; margin-right: auto; }
@media (prefers-reduced-motion: reduce) {
  .prev-phone, .prev-printer, .prev-screen img, .prev-print { transition: none; }
  .prev-demo.printing .prev-paper { transition: none; }
}

/* ===================== Punto de venta recreado en HTML ===================== */
.pos-mock {
  container-type: inline-size; background: #F6F5FA; border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-frame); color: #17142B; font-family: var(--font);
}
.pm-top { display: flex; gap: 1.2cqw; align-items: center; padding: 1.6cqw; background: #fff; border-bottom: 1px solid #E4E2EC; }
.pm-client { flex: 1; display: flex; align-items: center; gap: 1.2cqw; background: #EEEBFD; border-radius: 1.2cqw; padding: 1cqw 1.4cqw; font-size: 1.9cqw; font-weight: 600; }
.pm-client em { font-style: normal; font-size: 1.5cqw; font-weight: 700; color: #3B2FB0; background: #fff; border-radius: .8cqw; padding: .5cqw .8cqw; }
.pm-pill { font-size: 1.7cqw; font-weight: 600; padding: 1.1cqw 1.4cqw; border: 1px solid #E4E2EC; border-radius: 1.2cqw; white-space: nowrap; }
.pm-pill.pm-ok { color: #0B6B45; background: #E3F4EC; border-color: #E3F4EC; }
.pm-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.pm-left { padding: 1.6cqw; border-right: 1px solid #E4E2EC; min-width: 0; }
.pm-search { font-size: 1.7cqw; color: #8C89A0; background: #fff; border: 1px solid #E4E2EC; border-radius: 1.2cqw; padding: 1.3cqw 1.6cqw; }
.pm-chips { display: flex; gap: .8cqw; margin: 1.4cqw 0; overflow: hidden; }
.pm-chips span { font-size: 1.5cqw; font-weight: 600; padding: .7cqw 1.2cqw; border-radius: 1cqw; background: #fff; border: 1px solid #E4E2EC; white-space: nowrap; }
.pm-chips span.on { background: #17142B; color: #fff; border-color: #17142B; }
.pm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1cqw; }
.pm-tile { min-width: 0; position: relative; background: #fff; border: 1px solid #E4E2EC; border-radius: 1.2cqw; padding: 1cqw; display: flex; flex-direction: column; gap: .7cqw; }
.pm-tile.is-sel { border-color: #594CD1; box-shadow: 0 0 0 1px #594CD1; }
.pm-qty { position: absolute; top: -1cqw; right: -1cqw; width: 2.6cqw; height: 2.6cqw; border-radius: 50%; background: #594CD1; color: #fff; font-size: 1.4cqw; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.pm-letter { height: 6cqw; border-radius: .9cqw; display: flex; align-items: center; justify-content: center; font-size: 3cqw; font-weight: 700; }
.pm-letter.c-r { background: #FCE8EC; color: #C2416B; }
.pm-letter.c-b { background: #E3F0FD; color: #2F74C0; }
.pm-letter.c-v { background: #EEEBFD; color: #594CD1; }
.pm-letter.c-g { background: #E3F4EC; color: #1F8A5B; }
.pm-name { font-size: 1.45cqw; font-weight: 600; line-height: 1.25; min-height: 3.6cqw; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pm-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4cqw; }
.pm-foot b { font-size: 1.5cqw; }
.pm-foot i { font-style: normal; font-size: 1.2cqw; font-weight: 600; color: #0B6B45; background: #E3F4EC; border-radius: .6cqw; padding: .2cqw .6cqw; white-space: nowrap; }
.pm-right { background: #fff; padding: 1.6cqw 1.8cqw; display: flex; flex-direction: column; min-width: 0; }
.pm-ticket-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 1.2cqw; border-bottom: 1px solid #E4E2EC; }
.pm-ticket-head b { font-size: 2.1cqw; }
.pm-ticket-head span { font-size: 1.5cqw; color: #6B6880; }
.pm-line { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n t" "n s"; gap: .6cqw 1.2cqw; padding: 1.2cqw 0; border-bottom: 1px solid #EFEEF4; }
.pm-line > div:first-child { grid-area: n; min-width: 0; }
.pm-line b { display: block; font-size: 1.7cqw; font-weight: 600; line-height: 1.25; }
.pm-line span { font-size: 1.35cqw; color: #6B6880; }
.pm-line strong { grid-area: t; font-size: 1.8cqw; text-align: right; }
.pm-step { grid-area: s; display: flex; align-items: center; gap: .8cqw; justify-self: end; }
.pm-step i { font-style: normal; width: 2.6cqw; height: 2.6cqw; border: 1px solid #E4E2EC; border-radius: .7cqw; display: flex; align-items: center; justify-content: center; font-size: 1.6cqw; }
.pm-step span { font-size: 1.6cqw; color: #17142B; font-weight: 600; }
.pm-sum { margin-top: auto; padding-top: 1.6cqw; display: grid; gap: .6cqw; font-size: 1.5cqw; color: #4B4860; }
.pm-sum div { display: flex; justify-content: space-between; }
.pm-total { margin-top: 1.2cqw; background: #EEEBFD; border-radius: 1.2cqw; padding: 1.4cqw 1.6cqw; display: flex; justify-content: space-between; align-items: center; }
.pm-total span { font-size: 1.4cqw; font-weight: 700; color: #3B2FB0; }
.pm-total b { font-size: 3.4cqw; letter-spacing: -0.02em; }
.pm-pay { margin-top: 1.2cqw; background: #594CD1; color: #fff; border-radius: 1.2cqw; text-align: center; padding: 1.6cqw; font-size: 2cqw; font-weight: 700; }
/* En pantallas angostas solo se muestra el ticket, con letra más grande */
@container (max-width: 520px) {
  .pm-body { grid-template-columns: 1fr; }
  .pm-left { display: none; }
  .pm-top { padding: 3cqw; gap: 2cqw; }
  .pm-client { font-size: 3.6cqw; padding: 2cqw 2.6cqw; border-radius: 2.2cqw; }
  .pm-client em { font-size: 2.8cqw; padding: .8cqw 1.4cqw; border-radius: 1.4cqw; }
  .pm-pill { display: none; }
  .pm-pill.pm-ok { display: inline-block; font-size: 3.2cqw; padding: 2cqw 2.4cqw; border-radius: 2.2cqw; }
  .pm-right { padding: 3.4cqw 4cqw; }
  .pm-ticket-head b { font-size: 4.4cqw; } .pm-ticket-head span { font-size: 3.2cqw; }
  .pm-line { padding: 2.6cqw 0; gap: 1.2cqw 2.4cqw; }
  .pm-line b { font-size: 3.6cqw; } .pm-line span { font-size: 2.9cqw; } .pm-line strong { font-size: 3.7cqw; }
  .pm-step i { width: 5.6cqw; height: 5.6cqw; font-size: 3.4cqw; border-radius: 1.4cqw; } .pm-step span { font-size: 3.4cqw; } .pm-step { gap: 1.6cqw; }
  .pm-sum { font-size: 3.2cqw; padding-top: 3cqw; gap: 1.2cqw; }
  .pm-total { padding: 3cqw 3.4cqw; border-radius: 2.4cqw; margin-top: 2.4cqw; } .pm-total span { font-size: 3cqw; } .pm-total b { font-size: 6.6cqw; }
  .pm-pay { font-size: 4.2cqw; padding: 3.4cqw; border-radius: 2.4cqw; margin-top: 2.4cqw; }
}

/* ===================== Mobile first: inicio compacto ===================== */
.chips { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.chips li { font-size: 14.5px; font-weight: 500; color: var(--ink-2); padding: 7px 12px 7px 30px; border-radius: 999px; background: var(--ground); position: relative; }
.chips li::before { content: ''; position: absolute; left: 13px; top: 50%; width: 9px; height: 5px; margin-top: -4px; border-left: 2px solid var(--violet); border-bottom: 2px solid var(--violet); transform: rotate(-45deg); }

.mods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mod { display: flex; flex-direction: column; gap: 4px; padding: 20px; min-height: 108px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); transition: border-color .15s; }
.mod b { font-size: 16.5px; color: var(--ink); font-weight: 650; }
.mod span { font-size: 14.5px; color: var(--ink-3); line-height: 1.4; }
.mod:hover { border-color: var(--violet); }
.mod b::after { content: ' →'; color: var(--violet); opacity: 0; transition: opacity .15s; }
.mod:hover b::after { opacity: 1; }

/* Planes en tarjetas */
.pcards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.pcard { position: relative; display: flex; flex-direction: column; padding: 24px 20px; background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r-lg); }
.pcard.is-featured { border: 2px solid var(--violet); padding: 23px 19px; }
.pcard .plan-tag { position: absolute; top: -12px; left: 18px; }
.pcard h3 { font-size: 20px; letter-spacing: -0.01em; }
.pc-for { font-size: 14px; color: var(--ink-3); line-height: 1.4; margin: 6px 0 16px; min-height: 3.9em; }
.pc-price { color: var(--ink); line-height: 1; }
.pc-price b { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.pc-price small { font-size: 14px; color: var(--ink-3); }
.pc-list { font-size: 13px; color: var(--ink-3); margin: 8px 0 0; }
.pc-limits { font-size: 13.5px; font-weight: 600; color: var(--ink); margin: 16px 0 0; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pc-lead { font-size: 13.5px; color: var(--ink-3); margin: 14px 0 0; }
.pcard ul { display: grid; gap: 8px; margin: 10px 0 22px; font-size: 14.5px; color: var(--ink); line-height: 1.35; flex: 1; }
.pcard li { position: relative; padding-left: 22px; }
.pcard li::before { content: ''; position: absolute; left: 2px; top: .38em; width: 10px; height: 6px; border-left: 2px solid var(--violet); border-bottom: 2px solid var(--violet); transform: rotate(-45deg); }
.pcard .btn-plan { width: 100%; justify-content: center; }
.pcards-dots { display: none; }
.plans-more { margin-top: 28px; text-align: center; }

/* Barra fija de acción en el celular */
.mbar { display: none; }

@media (max-width: 1080px) {
  .mods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcards {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin: 0 -32px; padding: 16px 32px 8px; scroll-padding: 0 32px; scrollbar-width: none;
  }
  .pcards::-webkit-scrollbar { display: none; }
  .pcard { flex: 0 0 300px; scroll-snap-align: start; }
  .pcards-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
  .pcards-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); transition: background .2s, width .2s; }
  .pcards-dots span.on { background: var(--violet); width: 20px; border-radius: 4px; }
}
@media (max-width: 820px) {
  .pcards { margin: 0 -20px; padding: 16px 20px 8px; scroll-padding: 0 20px; }
  .pcard { flex-basis: min(82vw, 320px); }
  .pc-for { min-height: 0; }
  .section { padding: 64px 0; }
  .section-header { margin-bottom: 28px; }
  .feature-split h2 { font-size: 28px; }
  .section-title { font-size: 30px; }
  .feature-split p { margin-bottom: 16px; }
  .ticks { margin-bottom: 20px; }
  .numbers { grid-template-columns: repeat(3, 1fr); margin-bottom: 32px; }
  .numbers > div { padding: 16px 12px 0 0; }
  .numbers b { font-size: 26px; }
  .numbers span { font-size: 13.5px; }
  .cta-section { padding: 64px 0 96px; }
  .mbar {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96);
    border-top: 1px solid var(--line); backdrop-filter: blur(10px);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .mbar.show { transform: none; }
  .mbar .btn-primary { flex: 1; justify-content: center; }
  .mbar-wa { flex: 0 0 48px; display: flex; align-items: center; justify-content: center; border-radius: var(--r); background: #1FA855; color: #fff; }
  .mbar-wa svg { width: 22px; height: 22px; }
  .has-mbar .back-to-top { display: none; }
  .has-mbar .footer { padding-bottom: 88px; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 36px; margin-bottom: 16px; }
  .hero-desc { font-size: 17px; }
  .chips { margin-top: 36px; padding-top: 20px; }
  .chips li { font-size: 13.5px; }
  .mod { padding: 16px 14px; min-height: 0; }
  .mod b { font-size: 15.5px; }
  .mod span { font-size: 13.5px; }
  .quote { padding: 20px; }
  .quote blockquote { font-size: 16.5px; }
}
.mod b::after { position: absolute; margin-left: 4px; content: '→'; }
.mod { position: relative; }
@media (max-width: 560px) {
  .numbers b { font-size: 22px; }
  .numbers span { font-size: 12.5px; }
  .inv-client { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-brand p { font-size: 14px; }
}
.pcard ul { align-content: start; }
@media (min-width: 1081px) { .pcard { padding: 24px 18px; } .pcard.is-featured { padding: 23px 17px; } }
.plans-compare-title { margin: 88px 0 8px; }
#planes .pcards + .pcards-dots + .plans-compare-title, #planes .pcards + .plans-compare-title { scroll-margin-top: calc(var(--nav-h) + 16px); }
@media (max-width: 820px) { .plans-compare-title { margin-top: 56px; } }
.compare > summary { list-style: none; cursor: pointer; }
.compare > summary::-webkit-details-marker { display: none; }
.compare > summary .plans-compare-title { display: block; }
.compare-btn { display: none; }
@media (min-width: 821px) { .compare > summary { pointer-events: none; } }
@media (max-width: 820px) {
  .compare > summary { margin-top: 40px; }
  .compare > summary .plans-compare-title { display: none; }
  .compare-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--paper); font-weight: 600; color: var(--ink); }
  .compare-btn::after { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
  .compare[open] .compare-btn::after { transform: rotate(-135deg) translateY(-2px); }
  .compare[open] > summary { margin-bottom: 24px; }
  .plans-switch { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .plans-switch::-webkit-scrollbar { display: none; }
  .plans-switch button { flex: 0 0 auto; }
}
.compare .plans-compare-title { font-weight: 700; color: var(--ink); }
@media (max-width: 560px) {
  .flow-steps { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .flow-steps > div::before { font-size: 28px; margin-bottom: 8px; }
  .flow-steps h3 { font-size: 17px; }
  .flow-steps p { font-size: 14.5px; }
  .platform { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .platform h3 { font-size: 16px; }
  .platform p { font-size: 14.5px; }
}
