/* ---------------------------------------------------------------------------
 * Sitio público de Tally (keeptally.io).
 * Misma familia que la app (apps/web/src/corte/corte.css): Schibsted Grotesk,
 * tinta navy #131D30, verde #35DC8D como energía (lo que te queda, acciones,
 * brillo). Oscuro por defecto, claro por preferencia del sistema o selector.
 * --------------------------------------------------------------------------- */

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url('/fonts/schibsted-grotesk-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
}

:root {
  --bg: #0b1018;
  --bg-2: #0e1521;
  --surface: #111827;
  --surface-2: #162034;
  --surface-3: #1c2840;
  --ink: #ecf0f6;
  --ink-2: #bac3d2;
  --ink-3: #909bae;
  --line: #243042;
  --line-2: #1a2333;
  --pos: #4fe3a0;
  --green: #35dc8d;
  --green-ink: #04392a;
  --neg: #ff8a93;
  --warn: #f4be6e;
  --navy: #131d30;
  --seg-iva: #3a4659;
  --seg-fee: #e8b931;
  --seg-ship: #7c8aa5;
  --seg-cost: #dfe5ed;
  --glow: rgba(53, 220, 141, 0.22);
  --glow-2: rgba(53, 220, 141, 0.08);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.75);
  --font: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --radius: 20px;
  --radius-sm: 12px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    --bg: #f4f5f7;
    --bg-2: #eceff4;
    --surface: #ffffff;
    --surface-2: #f1f4f8;
    --surface-3: #e6eaf0;
    --ink: #131d30;
    --ink-2: #46526a;
    --ink-3: #5f6a80;
    --line: #dfe3ea;
    --line-2: #eceff3;
    --pos: #0a7a4f;
    --neg: #b0343c;
    --warn: #8f5300;
    --seg-iva: #c9d0db;
    --seg-ship: #9aa7b8;
    --seg-cost: #131d30;
    --glow: rgba(53, 220, 141, 0.28);
    --glow-2: rgba(53, 220, 141, 0.1);
    --shadow: 0 30px 70px -34px rgba(19, 29, 48, 0.35);
    color-scheme: light;
  }
}
:root[data-theme='light'] {
  --bg: #f4f5f7;
  --bg-2: #eceff4;
  --surface: #ffffff;
  --surface-2: #f1f4f8;
  --surface-3: #e6eaf0;
  --ink: #131d30;
  --ink-2: #46526a;
  --ink-3: #5f6a80;
  --line: #dfe3ea;
  --line-2: #eceff3;
  --pos: #0a7a4f;
  --neg: #b0343c;
  --warn: #8f5300;
  --seg-iva: #c9d0db;
  --seg-ship: #9aa7b8;
  --seg-cost: #131d30;
  --glow: rgba(53, 220, 141, 0.28);
  --glow-2: rgba(53, 220, 141, 0.1);
  --shadow: 0 30px 70px -34px rgba(19, 29, 48, 0.35);
  color-scheme: light;
}

/* Logos: el lockup claro u oscuro según el tema */
.on-light { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) .on-light { display: block; }
  :root:not([data-theme='dark']) .on-dark { display: none; }
}
:root[data-theme='light'] .on-light { display: block; }
:root[data-theme='light'] .on-dark { display: none; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pos); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; margin: 0; letter-spacing: -0.02em; line-height: 1.08; font-weight: 650; }
p { text-wrap: pretty; margin: 0; }
::selection { background: var(--green); color: var(--green-ink); }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--green); color: var(--green-ink); padding: 8px 14px; border-radius: 999px; }
.skip:focus { left: 12px; }

/* Botones: una forma, píldora */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--green); color: var(--green-ink); font-weight: 650; font-size: 16px;
  text-decoration: none; border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: 0 0 0 0 var(--glow);
}
.btn:hover { color: var(--green-ink); transform: translateY(-1px); box-shadow: 0 10px 30px -8px var(--glow); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); background: var(--surface-2); box-shadow: none; }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 15px; }
.more { display: inline-block; margin-top: 18px; font-weight: 600; color: var(--pos); text-decoration: none; }
.more:hover { text-decoration: underline; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line-2); }
.bar { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }
.brand-lg img { height: 36px; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current='page'] { color: var(--ink); border-bottom-color: var(--green); }
.bar-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang, .theme {
  display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink-2); font: 600 13px var(--font); text-decoration: none; cursor: pointer;
}
.lang:hover, .theme:hover { color: var(--ink); background: var(--surface-2); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 42px; height: 38px; border-radius: 999px; border: 1px solid var(--line); display: grid; place-content: center; gap: 5px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 16px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease; }
.menu[open] summary span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu[open] summary span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.menu nav { position: absolute; right: 0; top: 48px; display: grid; min-width: 220px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.menu nav a { padding: 12px 14px; border-radius: 10px; text-decoration: none; font-size: 16px; }
.menu nav a:hover { background: var(--surface-2); }

/* Héroe */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 7vw, 96px); }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 980px; max-height: 980px;
  background: radial-gradient(closest-side, var(--glow), var(--glow-2) 55%, transparent 72%); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 76px); letter-spacing: -0.035em; line-height: 0.98; font-weight: 700; max-width: 12ch; }
.lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--ink-2); margin-top: 24px; max-width: 58ch; }
.hero .lead { color: var(--ink); opacity: 0.86; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fine { margin-top: 18px; font-size: 15px; color: var(--ink-3); }

/* Calculadora (fragmento de interfaz) */
.calc {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.02) inset, 0 0 120px -40px var(--glow);
}
.calc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.calc h2 { font-size: 19px; letter-spacing: -0.01em; }
.chip { font-size: 13px; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.field { display: grid; gap: 6px; font-size: 13px; color: var(--ink-3); }
.input { display: flex; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.input:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px var(--glow-2); }
.input input { flex: 1; min-width: 0; height: 44px; background: transparent; border: 0; color: var(--ink); font: 500 17px var(--mono); outline: none; -moz-appearance: textfield; }
.input input::-webkit-outer-spin-button, .input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.input em { font-style: normal; font-size: 13px; color: var(--ink-3); }
.stack { display: block; width: 100%; height: 12px; margin: 22px 0 6px; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.stack rect { transition: x 0.25s ease, width 0.25s ease; }
.stack .iva { fill: var(--seg-iva); }
.stack .fee { fill: var(--seg-fee); }
.stack .ship { fill: var(--seg-ship); }
.stack .cost { fill: var(--seg-cost); }
.stack .keep { fill: var(--green); }
.rows { margin: 8px 0 0; display: grid; }
.rows .row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 15px; border-bottom: 1px dashed var(--line-2); }
.rows dt { color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.rows dt::before { content: ''; width: 9px; height: 9px; border-radius: 3px; background: var(--surface-3); flex-shrink: 0; }
.rows .iva dt::before { background: var(--seg-iva); }
.rows .fee dt::before { background: var(--seg-fee); }
.rows .ship dt::before { background: var(--seg-ship); }
.rows .cost dt::before { background: var(--seg-cost); }
.rows .sale dt::before { background: transparent; border: 1px solid var(--ink-3); }
.rows dd { margin: 0; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.rows .row.keep { border-bottom: 0; padding-top: 14px; align-items: baseline; }
.rows .row.keep dt { color: var(--ink); font-weight: 600; flex-wrap: wrap; }
.rows .row.keep dt::before { background: var(--green); box-shadow: 0 0 12px var(--glow); }
.rows .row.keep dd { font: 700 clamp(26px, 2.6vw, 34px) var(--font); letter-spacing: -0.02em; color: var(--pos); text-shadow: 0 0 28px var(--glow); }
.calc.loss .rows .row.keep dd { color: var(--neg); text-shadow: none; }
.calc-note { margin-top: 12px; font-size: 13px; color: var(--ink-3); }

/* Secciones */
section { scroll-margin-top: 84px; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: 40px; }
.section-head h2, .section-title { font-size: clamp(30px, 3.6vw, 50px); }
.section-head p { color: var(--ink-2); font-size: 18px; }
.section-title { margin-bottom: 48px; max-width: 20ch; }
.showcase { padding: 24px 0 clamp(72px, 8vw, 112px); }

/* Capturas reales */
.shot { margin: 0; position: relative; }
.shot-frame {
  position: relative; border-radius: var(--radius); overflow: hidden; background: #0b0f17; border: 1px solid var(--line);
  box-shadow: var(--shadow), 0 0 90px -30px var(--glow);
}
.shot-frame img { width: 100%; }
.shot-hero .shot-frame { box-shadow: var(--shadow), 0 0 160px -30px var(--glow); }
.shot figcaption, .fragment figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-3); }
.shot-narrow { max-width: 560px; justify-self: center; width: 100%; }
.shot-tall { max-width: 384px; justify-self: end; width: 100%; }

/* Filas de funciones: 5/7 */
.features-home { padding: clamp(40px, 6vw, 80px) 0 clamp(72px, 8vw, 112px); background: var(--bg-2); }
.feature-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(28px, 4vw, 56px) 0; }
.feature-row.reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature-row.reverse .feature-text { order: 2; }
.feature-text h2, .feature-text h3 { font-size: clamp(26px, 2.6vw, 38px); }
.feature-text p { margin-top: 16px; color: var(--ink-2); font-size: 18px; }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink); font-size: 16px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 0.45em; width: 14px; height: 8px; border-left: 2px solid var(--pos); border-bottom: 2px solid var(--pos); transform: rotate(-45deg); }
.ticks.cross li::before { width: 14px; height: 2px; border: 0; background: var(--neg); top: 0.75em; transform: rotate(45deg); box-shadow: none; }
.ticks.cross li::after { content: ''; position: absolute; left: 0; top: 0.75em; width: 14px; height: 2px; background: var(--neg); transform: rotate(-45deg); }

/* Fragmento de facturas */
.fragment { margin: 0; }
.fragment .frag-head, .fragment .inv { background: var(--surface); }
.fragment .frag-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; font-weight: 600; }
.inv { list-style: none; margin: 0; padding: 6px 8px 10px; border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow), 0 0 90px -30px var(--glow); }
.inv li { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: 'id amt amt' 'kind kind pill'; gap: 4px 16px; align-items: center; padding: 14px 12px; border-radius: 12px; }
.inv li + li { border-top: 1px solid var(--line-2); }
.inv li:hover { background: var(--surface-2); }
.inv-id { grid-area: id; font: 400 14px var(--mono); color: var(--ink-2); }
.inv-amt { grid-area: amt; justify-self: end; font: 500 16px var(--mono); font-variant-numeric: tabular-nums; }
.inv-kind { grid-area: kind; font-size: 15px; }
.pill { grid-area: pill; justify-self: end; font-size: 13px; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill.ok { color: var(--pos); background: var(--glow-2); }
.pill.wait { color: var(--warn); background: rgba(244, 190, 110, 0.12); }

/* Integraciones */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.integrations-home { padding: clamp(72px, 8vw, 112px) 0; }
.integrations-home h2, .pricing-home h2, .never h2, .report h2 { font-size: clamp(28px, 3vw, 44px); }
.integrations-home p, .pricing-home p, .never p, .report p { margin-top: 16px; color: var(--ink-2); font-size: 18px; }
.channels { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ch { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: transform 0.2s ease, border-color 0.2s ease; }
.ch:hover { transform: translateX(4px); border-color: var(--ink-3); }
.ch-name { font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -0.01em; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ink-3); }
.ch-ml .dot { background: #ffe600; }
.ch-tts .dot { background: #fe2c55; box-shadow: 3px 0 0 -1px #25f4ee; }
.ch-shopify .dot { background: #96bf48; }
.ch-amazon .dot { background: #ff9900; }
.state { font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.state.live { color: var(--pos); background: var(--glow-2); }
.state.soon { color: var(--warn); background: rgba(244, 190, 110, 0.12); }

/* Seguridad (inicio) */
.security-home { padding: clamp(72px, 8vw, 112px) 0; background: var(--bg-2); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.facts li { display: grid; gap: 10px; align-content: start; padding: 28px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.facts strong { font-size: 20px; letter-spacing: -0.01em; }
.facts span { color: var(--ink-2); }

/* Precios (inicio) */
.pricing-home { padding: clamp(72px, 8vw, 112px) 0; }
.price-strip { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.price-strip li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'plan amount' 'detail amount'; gap: 2px 20px; align-items: center; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.price-strip .plan { grid-area: plan; font-weight: 600; font-size: 19px; }
.price-strip .detail { grid-area: detail; color: var(--ink-3); font-size: 15px; }
.price-strip .amount { grid-area: amount; font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; letter-spacing: -0.02em; }
.price-strip small { font-size: 14px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.price-strip .featured { border-color: color-mix(in srgb, var(--green) 55%, var(--line)); box-shadow: 0 0 60px -24px var(--glow); }

/* Franja final */
.cta-band { padding: clamp(64px, 8vw, 110px) 0; background: var(--navy); color: #ecf0f6; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; right: -10%; top: -60%; width: 60%; height: 220%; background: radial-gradient(closest-side, rgba(53, 220, 141, 0.26), transparent 70%); pointer-events: none; }
.cta-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.cta-band h2 { font-size: clamp(30px, 3.6vw, 50px); color: #fff; }
.cta-band p { margin-top: 14px; color: #bac3d2; font-size: 18px; max-width: 56ch; }
.cta-band a:not(.btn) { color: #fff; }
.cta-band .btn-ghost { color: #fff; border-color: #3a4659; }
.cta-band .btn-ghost:hover { background: #1c2840; color: #fff; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Páginas internas */
.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(32px, 4vw, 56px); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; right: -12%; top: -50%; width: 60vw; height: 60vw; max-width: 820px; max-height: 820px; background: radial-gradient(closest-side, var(--glow-2), transparent 70%); pointer-events: none; }
.page-hero h1 { position: relative; font-size: clamp(40px, 5.4vw, 72px); letter-spacing: -0.035em; max-width: 16ch; }
.page-hero .lead { position: relative; }
.feature-list { padding-bottom: clamp(64px, 8vw, 120px); }
.feature-list .feature-row + .feature-row { border-top: 1px solid var(--line-2); }

.integration-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-bottom: clamp(64px, 8vw, 100px); }
.integration { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.integration header { display: flex; align-items: center; gap: 14px; }
.integration h2 { font-size: 26px; }
.integration header .state { margin-left: auto; }
.integration dl { margin: 22px 0 0; display: grid; gap: 16px; }
.integration dt { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.integration dd { margin: 4px 0 0; }
.never { padding-bottom: clamp(64px, 8vw, 100px); }
.disclaimer { color: var(--ink-3); font-size: 14px; padding-bottom: clamp(48px, 6vw, 80px); max-width: 1240px; }

.security-grid { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-bottom: clamp(64px, 8vw, 100px); }
.security-grid > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.security-grid dt { font-size: 20px; font-weight: 650; letter-spacing: -0.01em; }
.security-grid dd { margin: 12px 0 0; color: var(--ink-2); }
.security-grid > div:first-child { grid-column: span 2; background: var(--surface-2); box-shadow: 0 0 80px -40px var(--glow); }
.report { padding-bottom: clamp(64px, 8vw, 110px); }
.mailboxes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mailboxes li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.mailboxes span { color: var(--ink-3); }
.mailboxes a { font-weight: 600; }

.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan-card { display: flex; flex-direction: column; gap: 18px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.plan-card h2 { font-size: 22px; letter-spacing: -0.01em; }
.plan-card .price { display: flex; align-items: flex-end; gap: 10px; }
.plan-card .amount { font-size: clamp(34px, 3.2vw, 46px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.plan-card .unit { font-size: 13px; color: var(--ink-3); line-height: 1.25; }
.plan-card > p { color: var(--ink-2); }
.plan-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1; }
.plan-facts li { color: var(--ink-2); }
.plan-facts strong { color: var(--ink); font-weight: 650; }
.plan-card .btn { width: 100%; margin-top: auto; }
.plan-card.featured { background: linear-gradient(180deg, color-mix(in srgb, var(--green) 10%, var(--surface)), var(--surface) 60%); border-color: color-mix(in srgb, var(--green) 50%, var(--line)); box-shadow: 0 0 90px -30px var(--glow); }
.plan-card.enterprise .amount { font-size: clamp(28px, 2.6vw, 36px); }
.extras { padding: clamp(56px, 7vw, 96px) var(--gutter) clamp(64px, 8vw, 110px); }
.extras h2 { font-size: clamp(26px, 2.8vw, 38px); margin-bottom: 24px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 14px 18px; vertical-align: top; border-bottom: 1px solid var(--line-2); }
thead th { font-size: 13px; color: var(--ink-3); font-weight: 600; background: var(--surface-2); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; }
td { font-variant-numeric: tabular-nums; }
.note { display: block; font-weight: 400; font-size: 13px; color: var(--ink-3); margin-top: 4px; max-width: 34ch; }
.na { color: var(--ink-3); }
.price-notes { margin: 20px 0 0; padding-left: 20px; color: var(--ink-2); display: grid; gap: 6px; font-size: 15px; }

.faq-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 72px); padding-block: clamp(56px, 8vw, 104px); align-items: start; }
.faq-side { position: sticky; top: 100px; }
.faq-side h1 { font-size: clamp(36px, 4.4vw, 60px); letter-spacing: -0.03em; }
.faq-side p { margin-top: 18px; color: var(--ink-2); }
.faq-list { display: grid; gap: 8px; }
.faq-list details { background: var(--surface); border-radius: 16px; border: 1px solid var(--line); transition: background 0.2s ease, border-color 0.2s ease; }
.faq-list details[open] { border-color: color-mix(in srgb, var(--green) 45%, var(--line)); box-shadow: 0 0 60px -30px var(--glow); }
.faq-list summary { cursor: pointer; list-style: none; padding: 22px 60px 22px 24px; font-size: 19px; font-weight: 600; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after { content: ''; position: absolute; right: 24px; top: 50%; width: 16px; height: 3px; border-radius: 2px; background: var(--ink-2); transition: transform 0.2s ease; }
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-list details[open] summary::before, .faq-list details[open] summary::after { background: var(--pos); }
.faq-list details p { padding: 0 24px 24px; color: var(--ink-2); max-width: 64ch; }

.contact-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); padding-block: clamp(56px, 8vw, 104px) clamp(72px, 8vw, 112px); align-items: start; }
.contact-layout h1 { font-size: clamp(40px, 5vw, 68px); letter-spacing: -0.035em; }
.contact-layout address { font-style: normal; margin: 28px 0; color: var(--ink-2); line-height: 1.6; }
.contact-layout address strong { color: var(--ink); }
.contact-boxes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-boxes li { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-boxes li:first-child { box-shadow: 0 0 80px -36px var(--glow); border-color: color-mix(in srgb, var(--green) 40%, var(--line)); }
.contact-boxes h2 { font-size: 22px; }
.contact-boxes p { margin-top: 8px; color: var(--ink-2); }
.contact-boxes a { display: inline-block; margin-top: 14px; font-size: clamp(19px, 1.8vw, 24px); font-weight: 650; color: var(--pos); text-decoration: none; word-break: break-word; }
.contact-boxes a:hover { text-decoration: underline; }

/* Documentos legales */
.legal { padding-block: clamp(48px, 7vw, 96px); }
.legal-head h1 { font-size: clamp(36px, 4.6vw, 60px); letter-spacing: -0.03em; }
.legal-head .meta { margin-top: 14px; color: var(--ink-3); font-size: 15px; }
.legal-head .lead { max-width: 75ch; }
.draft-note { margin-top: 24px; padding: 16px 20px; border-radius: 14px; background: rgba(244, 190, 110, 0.12); color: var(--ink); border: 1px solid rgba(244, 190, 110, 0.35); max-width: 75ch; }
mark.pending { background: rgba(244, 190, 110, 0.22); color: var(--warn); border-radius: 4px; padding: 0 4px; }
.legal-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(28px, 4vw, 64px); margin-top: 48px; align-items: start; }
.toc { position: sticky; top: 96px; font-size: 14px; }
.toc h2 { font-size: 14px; color: var(--ink-3); letter-spacing: 0; margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); }
.legal-sections section { padding-bottom: 32px; }
.legal-sections h2 { font-size: 24px; letter-spacing: -0.01em; margin-bottom: 12px; }
.legal-sections p, .legal-sections ul { margin: 12px 0 0; max-width: 75ch; color: var(--ink); }
.legal-sections ul { padding-left: 22px; display: grid; gap: 8px; }
.legal-sections .table-wrap { margin-top: 16px; }
.legal-sections td { font-variant-numeric: normal; }

/* Pie */
.site-footer { padding: 72px 0 32px; background: var(--bg); border-top: 1px solid var(--line-2); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand p { margin-top: 16px; color: var(--ink-2); max-width: 40ch; }
.footer-brand .address { color: var(--ink-3); font-size: 14px; }
.site-footer h2 { font-size: 14px; color: var(--ink-3); letter-spacing: 0; margin-bottom: 14px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .enter { color: var(--pos); font-weight: 600; }
.legal-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-2); color: var(--ink-3); font-size: 13px; }
.legal-line span:nth-child(2) { flex: 1 1 420px; }

.not-found { min-height: 100vh; display: grid; align-content: center; gap: 20px; }
.not-found h1 { font-size: clamp(36px, 5vw, 64px); }

/* Entradas (site.js agrega .rise sólo si hay movimiento permitido) */
.rise { opacity: 0; transform: translateY(22px); transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms), transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms); }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Tableta */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu { display: block; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .security-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero-grid, .split, .feature-row, .feature-row.reverse, .section-head, .faq-layout, .contact-layout, .legal-body, .cta-inner { grid-template-columns: minmax(0, 1fr); }
  .feature-row.reverse .feature-text { order: 0; }
  .facts, .integration-list { grid-template-columns: minmax(0, 1fr); }
  .faq-side, .toc { position: static; }
  .toc { display: none; }
  .shot-tall { justify-self: start; }
  .hero h1 { max-width: 14ch; }
}
/* Teléfono */
@media (max-width: 620px) {
  body { font-size: 16px; }
  .bar { gap: 12px; min-height: 60px; }
  .brand img { height: 26px; }
  .bar-end .btn-small { display: none; }
  .hero { padding-top: 36px; }
  .hero h1 { font-size: clamp(36px, 10vw, 46px); }
  .actions .btn { flex: 1 1 100%; }
  .calc { padding: 18px; border-radius: 20px; }
  .fields { grid-template-columns: 1fr; }
  .plans, .security-grid { grid-template-columns: minmax(0, 1fr); }
  .security-grid > div:first-child { grid-column: auto; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .ch { padding: 16px 18px; }
  .integration, .facts li, .security-grid > div, .plan-card, .contact-boxes li { padding: 22px; }
  th, td { padding: 12px 14px; }
  .extras table { min-width: 640px; }
  .extras td { white-space: nowrap; }
  .cta-actions .btn { flex: 1 1 100%; }
}
