/* ===== Frutto — design tokens (compartidos con la app) ===== */
:root {
  --brand-primary: #059669;
  --brand-primary-hover: #047857;
  --brand-primary-soft: #ECFDF5;
  --brand-primary-muted: #D1FAE5;
  --brand-primary-ink: #047857;
  --brand-primary-gradient: linear-gradient(135deg, #10B981 0%, #047857 100%);
  --brand-primary-glow: 0 8px 24px rgba(16, 185, 129, .28);
  --brand-accent: #F59E0B;
  --brand-accent-soft: #FFFBEB;
  --brand-accent-gradient: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
  --danger: #F43F5E;
  --danger-soft: #FFF1F2;
  --danger-ink: #BE123C;

  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --surface-alt: #F7F7F2;
  --surface-dark: #0A0F0A;
  --border-subtle: rgba(20, 20, 15, .05);
  --border: rgba(20, 20, 15, .08);
  --border-strong: rgba(20, 20, 15, .14);

  --text-primary: #14140F;
  --text-secondary: #5C5C55;
  --text-tertiary: #787870;
  --text-on-dark: #F7F7F2;
  --text-on-dark-secondary: rgba(247, 247, 242, .68);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(20, 20, 15, .06);
  --shadow-md: 0 12px 32px rgba(20, 20, 15, .10);
  --shadow-lg: 0 24px 64px rgba(20, 20, 15, .20);

  --max-w: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0A07;
    --surface: #14140F;
    --surface-alt: #1A1A14;
    --border-subtle: rgba(255, 255, 255, .04);
    --border: rgba(255, 255, 255, .08);
    --border-strong: rgba(255, 255, 255, .14);
    --text-primary: #F7F7F2;
    --text-secondary: #A8A89E;
    --text-tertiary: #787870;
    --brand-primary-soft: rgba(16, 185, 129, .12);
    --brand-accent-soft: rgba(245, 158, 11, .12);
    --danger-soft: rgba(244, 63, 94, .12);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font-family: var(--font-sans); }
img { max-width: 100%; display: block; }
ul { margin: 0; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: var(--brand-primary-soft);
  color: var(--brand-primary-ink);
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.eyebrow.center { display: inline-block; }

.section-title {
  font-size: 40px; font-weight: 800; letter-spacing: -0.03em;
  color: var(--text-primary); text-align: center; margin: 0 0 16px;
  line-height: 1.12;
}
.section-title.left { text-align: left; }
@media (max-width: 720px) { .section-title { font-size: 30px; } }
.section-sub {
  font-size: 17px; color: var(--text-secondary); text-align: center;
  margin: 0 auto 48px; max-width: 620px; line-height: 1.6;
}
.section-sub.left { text-align: left; margin-left: 0; margin-right: 0; }
.section-head { text-align: center; margin-bottom: 48px; }

/* ===== Buttons ===== */
.btn {
  padding: 14px 26px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 200ms;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
}
.btn.primary { background: var(--brand-primary-gradient); color: white; box-shadow: var(--brand-primary-glow); }
.btn.primary:hover { transform: translateY(-2px); }
.btn.secondary { background: var(--surface); color: var(--text-primary); border: 1.5px solid var(--border); }
.btn.secondary:hover { background: var(--surface-alt); }
.btn.on-dark { background: white; color: var(--surface-dark); }
.btn.on-dark:hover { transform: translateY(-2px); background: #F0F0EA; }
.btn.ghost-on-dark { background: transparent; color: var(--text-on-dark); border: 1.5px solid rgba(255,255,255,.24); }
.btn.ghost-on-dark:hover { background: rgba(255,255,255,.08); }
.btn.lg { padding: 17px 34px; font-size: 16px; }

.trust-badges {
  display: flex; gap: 16px; margin-top: 24px; font-size: 12.5px;
  color: var(--text-tertiary); font-weight: 600; flex-wrap: wrap;
}
.trust-badges span { display: flex; align-items: center; gap: 4px; }
.trust-badges.on-dark span { color: var(--text-on-dark-secondary); }

.store-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; padding: 11px 22px;
  font-size: 14px; font-weight: 700;
  color: var(--text-primary) !important;
  text-decoration: none !important;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: all 200ms;
}
.store-link .store-link-icon { font-size: 16px; }
.store-link:hover { background: var(--surface-alt); transform: translateY(-2px); }
.store-link.on-dark {
  color: var(--text-on-dark) !important;
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .22);
}
.store-link.on-dark:hover { background: rgba(255, 255, 255, .18); }
.store-link.center { justify-content: center; }

/* ===== Nav ===== */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, .85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
}
@media (prefers-color-scheme: dark) {
  .topnav { background: rgba(10, 10, 7, .85); }
}
.topnav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; }
.logo-mark { font-size: 24px; }
.logo-name { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.topnav-links { display: flex; align-items: center; gap: 8px; }
.topnav-links a {
  padding: 8px 12px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 200ms;
}
.topnav-links a:hover, .topnav-links a.active { background: var(--surface-alt); color: var(--text-primary); }
.topnav-links a.cta {
  background: var(--brand-primary);
  color: white !important;
  padding: 8px 16px;
}
.topnav-links a.cta:hover { background: var(--brand-primary-hover); }
@media (max-width: 780px) {
  .topnav-links a:not(.cta) { display: none; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 76px 24px 90px;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
  overflow: hidden;
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 44px 20px 56px; }
  .hero-visual { order: -1; max-width: 340px; margin: 0 auto; }
}
.hero-bg {
  position: absolute;
  inset: -100px;
  background: radial-gradient(ellipse at 30% 30%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 80%, rgba(245, 158, 11, 0.10) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(20, 20, 15, 0.04) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(20, 20, 15, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; }
.hero-title {
  font-size: 60px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.06;
  color: var(--text-primary);
  margin: 0 0 20px;
}
@media (max-width: 720px) { .hero-title { font-size: 38px; } }
.gradient {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #047857 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 32px;
  max-width: 560px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== Hero visual: balanza pesando ===== */
.hero-visual { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; }
.scale-card {
  background: var(--surface);
  border-radius: var(--radius-2xl);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  width: 300px;
  animation: float 4.5s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.scale-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.scale-head-item { display: flex; align-items: center; gap: 10px; }
.scale-icon {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.14), transparent);
  font-size: 26px;
}
.scale-product-name { font-size: 16px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.01em; }
.scale-product-unit { font-size: 12.5px; color: var(--text-tertiary); font-weight: 600; }
.scale-live {
  display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700;
  color: var(--brand-primary-ink); background: var(--brand-primary-soft); padding: 4px 9px; border-radius: var(--radius-full);
}
.scale-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-primary); animation: pulse-dot 1.4s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.scale-readout {
  background: var(--surface-dark);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  text-align: center;
  margin-bottom: 16px;
}
.scale-weight { font-size: 40px; font-weight: 800; color: var(--text-on-dark); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.scale-weight-unit { font-size: 16px; color: var(--text-on-dark-secondary); font-weight: 600; margin-left: 4px; }
.scale-bars { display: flex; align-items: flex-end; gap: 3px; height: 22px; justify-content: center; margin-top: 10px; }
.scale-bars span { width: 4px; background: var(--brand-primary); border-radius: 2px; animation: bar-bounce 1s ease-in-out infinite; }
.scale-bars span:nth-child(1) { height: 40%; animation-delay: 0s; }
.scale-bars span:nth-child(2) { height: 100%; animation-delay: .1s; }
.scale-bars span:nth-child(3) { height: 65%; animation-delay: .2s; }
.scale-bars span:nth-child(4) { height: 85%; animation-delay: .3s; }
.scale-bars span:nth-child(5) { height: 50%; animation-delay: .4s; }
@keyframes bar-bounce { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
.scale-total { display: flex; justify-content: space-between; align-items: baseline; }
.scale-total-label { font-size: 13px; color: var(--text-tertiary); font-weight: 600; }
.scale-total-price { font-size: 24px; font-weight: 800; color: var(--brand-primary-ink); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.scale-btn { margin-top: 16px; width: 100%; padding: 12px; background: var(--brand-primary-gradient); color: white; border: none; border-radius: var(--radius-md); font-size: 13.5px; font-weight: 700; box-shadow: var(--brand-primary-glow); }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Stats ===== */
.stats {
  padding: 64px 24px;
  background: var(--surface-alt);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.stats-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
@media (max-width: 860px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; } }
.stat { text-align: center; position: relative; }
.stat-value {
  font-size: 48px; font-weight: 800; letter-spacing: -0.03em; color: var(--text-primary);
  font-variant-numeric: tabular-nums; line-height: 1; margin-bottom: 8px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
@media (max-width: 720px) { .stat-value { font-size: 34px; } }
.stat-value .gradient { display: inline-block; }
.stat-label { font-size: 14px; color: var(--text-secondary); font-weight: 600; line-height: 1.4; }
.stat-info {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%; background: var(--border);
  color: var(--text-tertiary); font-size: 10px; font-weight: 800; cursor: help;
  position: relative; vertical-align: middle; margin-left: 2px;
}
.stat-info .tooltip {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  width: 220px; background: var(--surface-dark); color: var(--text-on-dark);
  font-size: 12.5px; font-weight: 500; line-height: 1.5; padding: 12px 14px;
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity 160ms ease, transform 160ms ease;
  z-index: 10; text-align: left;
}
.stat-info:hover .tooltip, .stat-info:focus .tooltip { opacity: 1; transform: translateX(-50%) translateY(-2px); }

/* ===== Features ===== */
.features { padding: 88px 24px; max-width: var(--max-w); margin: 0 auto; }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 780px) { .features-grid { grid-template-columns: 1fr; } }
.feature {
  padding: 32px; background: var(--surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl); transition: all 240ms;
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
.feature.has-mock { grid-template-columns: 1.1fr 1fr; align-items: center; }
@media (max-width: 640px) { .feature.has-mock { grid-template-columns: 1fr; } }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md); background: var(--brand-primary-soft);
  font-size: 22px; margin-bottom: 14px;
}
.feature-title { font-size: 19px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.01em; margin: 0 0 10px; }
.feature-desc { font-size: 14.5px; color: var(--text-secondary); line-height: 1.6; margin: 0; }
.feature-mock { display: flex; align-items: center; justify-content: center; }
.feature-mock img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); max-height: 280px; width: auto; }
.feature-mock.float img { animation: float 5s ease-in-out infinite; }

/* --- real screenshot + floating overlay chips --- */
.feature-mock-wrap { position: relative; display: inline-flex; }
.feature-mock-wrap img { animation: float 5.5s ease-in-out infinite; }
.price-chip {
  position: absolute; display: flex; align-items: center; gap: 6px;
  background: var(--surface); border-radius: var(--radius-full); box-shadow: var(--shadow-md);
  padding: 7px 12px 7px 7px; font-size: 12.5px; font-weight: 800; color: var(--text-primary);
  opacity: 0; transform: translateY(10px) scale(.9);
  animation: chip-in 500ms ease forwards;
}
.price-chip .emoji {
  width: 22px; height: 22px; border-radius: 50%; background: var(--brand-primary-soft);
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.price-chip.c1 { top: 6%; left: -14px; animation-delay: .2s; }
.price-chip.c2 { top: 42%; right: -18px; animation-delay: .5s; }
.price-chip.c3 { bottom: 8%; left: -10px; animation-delay: .8s; }
@keyframes chip-in { to { opacity: 1; transform: translateY(0) scale(1); } }

.notif-overlay { position: absolute; top: -18px; right: -26px; width: 220px; opacity: 0; animation: chip-in 600ms ease .4s forwards; }
@media (max-width: 640px) { .notif-overlay { position: static; width: 100%; margin-top: 14px; animation-delay: .1s; } }

/* --- mini list mockup (ventas rápidas fallback / generic) --- */
.mock-card { background: var(--surface-alt); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 16px; width: 100%; }

/* --- balanza mockup (feature b) --- */
.mock-scale { text-align: center; padding: 20px; }
.mock-scale-body {
  background: var(--surface-dark); border-radius: var(--radius-lg); padding: 24px 20px;
  box-shadow: var(--shadow-md);
}
.mock-scale-weight { font-size: 34px; font-weight: 800; color: var(--text-on-dark); font-variant-numeric: tabular-nums; }
.mock-scale-sub { font-size: 12px; color: var(--text-on-dark-secondary); font-weight: 600; margin-top: 4px; }
.mock-bt {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 6px 12px;
  background: rgba(255,255,255,.08); border-radius: var(--radius-full); color: var(--text-on-dark);
  font-size: 11px; font-weight: 700;
}
.mock-bt-dot { width: 6px; height: 6px; border-radius: 50%; background: #22D3EE; animation: pulse-dot 1.4s ease-in-out infinite; }

/* --- merma bar chart mockup (feature c) --- */
.mock-merma { padding: 20px; }
.mock-merma-title { font-size: 12.5px; font-weight: 700; color: var(--text-tertiary); margin-bottom: 16px; }
.mock-merma-bars { display: flex; align-items: flex-end; gap: 28px; height: 140px; justify-content: center; }
.mock-merma-col { text-align: center; }
.mock-merma-bar { width: 48px; border-radius: 8px 8px 0 0; margin: 0 auto; }
.mock-merma-bar.before { height: 120px; background: linear-gradient(180deg, #FB7185, var(--danger)); }
.mock-merma-bar.after { height: 36px; background: var(--brand-primary-gradient); }
.mock-merma-pct { font-size: 15px; font-weight: 800; margin-top: 8px; }
.mock-merma-col.before .mock-merma-pct { color: var(--danger-ink); }
.mock-merma-col.after .mock-merma-pct { color: var(--brand-primary-ink); }
.mock-merma-label { font-size: 11.5px; color: var(--text-tertiary); font-weight: 600; margin-top: 2px; }

/* --- fiado list mockup (feature d) --- */
.mock-fiado { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.mock-fiado-row {
  display: flex; align-items: center; justify-content: space-between; background: var(--surface);
  border-radius: var(--radius-md); padding: 12px 14px; box-shadow: var(--shadow-sm);
}
.mock-fiado-who { display: flex; align-items: center; gap: 10px; }
.mock-fiado-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--brand-primary-soft); color: var(--brand-primary-ink);
  display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 800;
}
.mock-fiado-name { font-size: 13.5px; font-weight: 700; color: var(--text-primary); }
.mock-fiado-days { font-size: 11.5px; color: var(--text-tertiary); }
.mock-fiado-days.alert { color: var(--danger-ink); font-weight: 700; }
.mock-fiado-amount { font-size: 14px; font-weight: 800; color: var(--text-primary); }

/* --- stock alert notification mockup (feature e) --- */
.mock-notif { padding: 20px; display: flex; justify-content: center; }
.mock-notif-card {
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 14px 16px; max-width: 300px; display: flex; gap: 12px; border: 1px solid var(--border-subtle);
  animation: notif-in 700ms ease both;
}
@keyframes notif-in { from { opacity: 0; transform: translateY(-10px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.mock-notif-icon {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: var(--danger-soft);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.mock-notif-title { font-size: 13px; font-weight: 800; color: var(--text-primary); margin-bottom: 3px; }
.mock-notif-body { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }

/* --- multi-sucursal mockup (feature h) --- */
.mock-branches { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.mock-branch-row {
  display: flex; align-items: center; justify-content: space-between; background: var(--surface);
  border-radius: var(--radius-md); padding: 12px 14px; box-shadow: var(--shadow-sm);
}
.mock-branch-name { font-size: 13px; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.mock-branch-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-primary); }
.mock-branch-total { font-size: 14px; font-weight: 800; color: var(--brand-primary-ink); }
.mock-employees { display: flex; gap: -8px; margin-top: 4px; }
.mock-employee-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700;
  background: var(--surface-alt); border-radius: var(--radius-full); padding: 4px 10px 4px 4px; color: var(--text-secondary);
}
.mock-employee-avatar {
  width: 20px; height: 20px; border-radius: 50%; background: var(--brand-accent-gradient); color: white;
  display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 800;
}
.mock-employee-list { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }

/* ===== Remote control section ===== */
.remote {
  padding: 88px 24px; background: linear-gradient(180deg, var(--surface-alt) 0%, var(--bg) 100%);
}
.remote-inner { max-width: var(--max-w); margin: 0 auto; text-align: center; }
.remote-inner .section-title { max-width: 640px; margin-left: auto; margin-right: auto; }
.remote-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; text-align: left; }
@media (max-width: 860px) { .remote-cards { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; margin-top: 40px; } }
.remote-card {
  background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl);
  padding: 28px; transition: all 240ms;
}
.remote-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.remote-card-icon { font-size: 30px; margin-bottom: 14px; }
.remote-card h3 { font-size: 17px; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.01em; }
.remote-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin: 0; }
.remote-cta { margin-top: 40px; }

/* ===== Calculator ===== */
.calc { padding: 88px 24px; background: var(--surface-dark); color: var(--text-on-dark); }
.calc-inner { max-width: var(--max-w); margin: 0 auto; }
.calc .section-title, .calc .section-sub { color: var(--text-on-dark); }
.calc .section-sub { color: var(--text-on-dark-secondary); }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-top: 40px; }
@media (max-width: 900px) { .calc-grid { grid-template-columns: 1fr; gap: 32px; } }
.calc-form {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-xl);
  padding: 28px;
}
.calc-field { margin-bottom: 26px; }
.calc-field:last-child { margin-bottom: 0; }
.calc-field-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.calc-field label { font-size: 14px; font-weight: 700; color: var(--text-on-dark); }
.calc-field-value { font-size: 15px; font-weight: 800; color: #34D399; font-variant-numeric: tabular-nums; }
.calc-field input[type="range"] {
  width: 100%; accent-color: var(--brand-primary); height: 4px; cursor: pointer;
}
.calc-field input[type="number"] {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-md); border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06); color: var(--text-on-dark); font-size: 15px; font-weight: 700;
  font-family: var(--font-sans);
}
.calc-field input[type="number"]:focus { outline: 2px solid var(--brand-primary); outline-offset: 1px; }
.calc-field-hint { font-size: 12px; color: var(--text-on-dark-secondary); margin-top: 6px; }

.calc-results {
  background: linear-gradient(160deg, rgba(16,185,129,.16), rgba(16,185,129,.02));
  border: 1px solid rgba(16,185,129,.24); border-radius: var(--radius-xl); padding: 28px;
}
.calc-results-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 24px; }
.calc-result-row { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.calc-result-row:last-child { border-bottom: none; padding-bottom: 0; }
.calc-result-label { font-size: 13.5px; color: var(--text-on-dark-secondary); font-weight: 600; max-width: 60%; }
.calc-result-value { font-size: 20px; font-weight: 800; color: var(--text-on-dark); font-variant-numeric: tabular-nums; }
.calc-total {
  border-top: 1px solid rgba(255,255,255,.14); margin-top: 4px; padding-top: 20px;
  display: flex; flex-direction: column; gap: 4px;
}
.calc-total-label { font-size: 13px; color: var(--text-on-dark-secondary); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.calc-total-value { font-size: 34px; font-weight: 800; color: #34D399; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc-total-sub { font-size: 13px; color: var(--text-on-dark-secondary); }
.calc-cta { margin-top: 24px; width: 100%; justify-content: center; }

/* ===== Demo steps ===== */
.demo { padding: 88px 24px; max-width: var(--max-w); margin: 0 auto; }
.demo-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 780px) { .demo-steps { grid-template-columns: 1fr; } }
.demo-step { padding: 32px 28px; background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); text-align: center; transition: all 240ms; }
.demo-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--brand-primary-gradient); color: white;
  font-size: 17px; font-weight: 800; margin: 0 auto 16px; box-shadow: var(--brand-primary-glow);
}
.demo-step h3 { font-size: 18px; font-weight: 800; color: var(--text-primary); margin: 0 0 8px; }
.demo-step p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* ===== Why ===== */
.why { padding: 64px 24px; max-width: var(--max-w); margin: 0 auto; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 920px) { .why-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }
.why-item { text-align: center; padding: 24px; }
.why-icon { font-size: 36px; margin-bottom: 12px; }
.why-item h3 { font-size: 17px; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.01em; }
.why-item p { font-size: 14px; color: var(--text-secondary); line-height: 1.55; margin: 0; }

/* ===== Comparison table ===== */
.compare { padding: 88px 24px; max-width: var(--max-w); margin: 0 auto; }
.compare-scroll { overflow-x: auto; border-radius: var(--radius-xl); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-sm); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--surface); }
.compare-table th, .compare-table td { padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--border-subtle); font-size: 14px; }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; font-weight: 600; color: var(--text-secondary); }
.compare-table thead th {
  font-size: 13px; font-weight: 800; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: .03em;
  background: var(--surface-alt); border-bottom: 1px solid var(--border);
}
.compare-table thead th.brand { color: var(--brand-primary-ink); background: var(--brand-primary-soft); }
.compare-table td.brand-col { background: rgba(16,185,129,.045); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.check.yes { color: var(--brand-primary); font-weight: 800; font-size: 16px; }
.check.no { color: var(--text-tertiary); font-weight: 700; font-size: 16px; opacity: .5; }
.check.half { color: var(--brand-accent); font-weight: 800; font-size: 13px; }

/* ===== Testimonials ===== */
.testimonials { padding: 88px 24px; background: var(--surface-alt); }
.testimonials-inner { max-width: var(--max-w); margin: 0 auto; }
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.testi-card {
  background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl);
  padding: 26px; display: flex; flex-direction: column; gap: 16px; transition: all 240ms;
}
.testi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testi-quote { font-size: 14.5px; color: var(--text-primary); line-height: 1.65; margin: 0; flex: 1; }
.testi-quote::before { content: '\201C'; color: var(--brand-primary); font-weight: 800; }
.testi-person { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--brand-primary-gradient); color: white;
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800;
}
.testi-name { font-size: 13.5px; font-weight: 800; color: var(--text-primary); }
.testi-meta { font-size: 12px; color: var(--text-tertiary); }

/* ===== Support ===== */
.support { padding: 88px 24px; max-width: var(--max-w); margin: 0 auto; }
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .support-grid { grid-template-columns: 1fr; gap: 40px; } }
.support-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 480px) { .support-items { grid-template-columns: 1fr; } }
.support-item-icon { font-size: 26px; margin-bottom: 10px; }
.support-item h3 { font-size: 15.5px; font-weight: 800; margin: 0 0 6px; }
.support-item p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.55; margin: 0; }

.chat-mock {
  background: #E5DDD3; border-radius: var(--radius-xl); padding: 20px; box-shadow: var(--shadow-lg);
  max-width: 360px; margin: 0 auto;
}
@media (prefers-color-scheme: dark) { .chat-mock { background: #1a2c25; } }
.chat-mock-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(0,0,0,.06); }
.chat-mock-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--brand-primary-gradient); color: white;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.chat-mock-name { font-size: 13.5px; font-weight: 800; color: var(--text-primary); }
.chat-mock-status { font-size: 11px; color: var(--brand-primary-ink); font-weight: 600; }
.chat-bubble { max-width: 82%; padding: 9px 13px; border-radius: 12px; font-size: 13px; line-height: 1.5; margin-bottom: 8px; }
.chat-bubble.in { background: var(--surface); color: var(--text-primary); border-top-left-radius: 3px; }
.chat-bubble.out { background: #DCF8C6; color: #14140F; margin-left: auto; border-top-right-radius: 3px; }
@media (prefers-color-scheme: dark) { .chat-bubble.in { background: #263831; color: #F7F7F2; } }

/* ===== Pricing ===== */
.plans { padding: 88px 24px; max-width: var(--max-w); margin: 0 auto; text-align: center; }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
@media (max-width: 920px) { .plans-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }
.plan-card {
  position: relative; padding: 28px; background: var(--surface); border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-xl); display: flex; flex-direction: column; transition: all 240ms;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan-card.highlight {
  background: linear-gradient(135deg, var(--brand-primary-soft) 0%, var(--surface) 50%);
  border-color: var(--brand-primary); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}
@media (min-width: 921px) { .plan-card.highlight { transform: scale(1.03); } }
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 5px 14px; background: var(--brand-primary-gradient); color: white;
  border-radius: var(--radius-full); font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; box-shadow: var(--brand-primary-glow); white-space: nowrap;
}
.plan-head { margin-bottom: 20px; }
.plan-head h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 8px; }
.price-amount { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; }
.price-period { font-size: 14px; color: var(--text-tertiary); font-weight: 500; }
.plan-tag { font-size: 13px; color: var(--text-tertiary); margin: 0 0 16px; font-weight: 500; }
.plan-features { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan-features li { padding: 8px 0; font-size: 14px; color: var(--text-secondary); display: flex; align-items: center; gap: 8px; }
.plan-features li::before { content: '✓'; color: var(--brand-primary); font-weight: 800; flex-shrink: 0; }
.plan-cta {
  display: block; width: 100%; padding: 14px; border: none; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; text-align: center; transition: all 200ms;
}
.plan-cta.primary { background: var(--brand-primary-gradient); color: white; box-shadow: var(--brand-primary-glow); }
.plan-cta.primary:hover { transform: translateY(-1px); }
.plan-cta.secondary { background: var(--surface-alt); color: var(--text-primary); border: 1.5px solid var(--border); }
.plans-note { font-size: 13px; color: var(--text-tertiary); margin-top: 32px; }

/* ===== FAQ ===== */
.faq { max-width: 720px; margin: 0 auto; padding: 0 24px 88px; }
.faq details { background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 16px 18px; margin-bottom: 8px; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 20px; color: var(--brand-primary); flex-shrink: 0; transition: transform 200ms; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { margin-bottom: 10px; }
.faq p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* ===== CTA final ===== */
.cta-final { padding: 96px 24px; text-align: center; background: linear-gradient(135deg, #0A0F0A 0%, #1F2937 100%); color: white; }
.cta-final h2 { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 14px; }
@media (max-width: 720px) { .cta-final h2 { font-size: 30px; } }
.cta-final p { font-size: 16px; color: rgba(255, 255, 255, 0.7); margin: 0 0 28px; }
.cta-final-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }

/* ===== Footer ===== */
.footer {
  padding: 32px 24px;
  background: var(--surface-alt);
  text-align: center;
}
.footer-inner { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.footer p { font-size: 12px; color: var(--text-tertiary); margin: 0 0 14px; }
.footer-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.footer-links a { font-size: 13px; color: var(--text-secondary); text-decoration: none; }
.footer-links a:hover { color: var(--text-primary); text-decoration: underline; }

/* ===== Legal pages (Privacidad / Términos) ===== */
.legal-wrap { max-width: 760px; margin: 0 auto; padding: 48px 24px 96px; }
.legal-wrap .legal-updated { font-size: 13px; color: var(--text-tertiary); margin: 0 0 8px; }
.legal-wrap h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; color: var(--text-primary); margin: 0 0 4px; }
@media (max-width: 600px) { .legal-wrap h1 { font-size: 26px; } }
.legal-wrap h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--text-primary); margin: 36px 0 12px; }
.legal-wrap h2:first-of-type { margin-top: 28px; }
.legal-wrap p { font-size: 15px; line-height: 1.7; color: var(--text-secondary); margin: 0 0 14px; }
.legal-wrap ul { margin: 0 0 14px; padding-left: 20px; }
.legal-wrap li { font-size: 15px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 6px; }
.legal-wrap strong { color: var(--text-primary); font-weight: 600; }
.legal-wrap a { color: var(--brand-primary-ink); }
