/* ====================================
   PlantillaNegocioPyme.com · Design System
   Palette (as specified):
     --green: #16a34a;  --green-light: #22c55e;  --green-dim: #dcfce7;
     --teal: #0d9488;   --navy: #0f172a;         --slate: #1e293b;
     --muted: #64748b;  --border: #e2e8f0;       --white: #ffffff;
     --cream: #f8fafc;  --gold: #f59e0b;         --accent: #059669;
   ==================================== */

:root {
  --green: #16a34a;
  --green-light: #22c55e;
  --green-dim: #dcfce7;
  --teal: #0d9488;
  --teal-light: #14b8a6;
  --navy: #0f172a;
  --slate: #1e293b;
  --slate-2: #334155;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --border: #e2e8f0;
  --border-soft: #eef2f6;
  --white: #ffffff;
  --cream: #f8fafc;
  --cream-2: #f1f5f9;
  --gold: #f59e0b;
  --accent: #059669;
  --danger: #dc2626;

  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #64748b;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 1px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.10), 0 2px 4px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 48px -12px rgba(15, 23, 42, 0.22), 0 8px 16px -8px rgba(15, 23, 42, 0.12);
  --shadow-navy: 0 24px 60px -20px rgba(13, 148, 136, 0.35), 0 10px 20px -10px rgba(15, 23, 42, 0.4);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --container: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button { font-family: inherit; cursor: pointer; border: 0; background: transparent; }
input, select, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }

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

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 14px; color: var(--ink-2); font-weight: 500;
  transition: color .15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px;
  font-weight: 600; font-size: 14.5px; letter-spacing: -0.005em;
  transition: transform .1s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--green); color: var(--white);
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 6px 14px -4px rgba(22,163,74,0.45);
}
.btn-primary:hover { background: #15803d; }

.btn-ghost { color: var(--ink); padding: 10px 14px; }
.btn-ghost:hover { background: var(--cream-2); }

.btn-outline {
  background: var(--white); color: var(--ink);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.btn-outline:hover { border-color: var(--ink-3); }

.btn-dark {
  background: var(--navy); color: var(--white);
}
.btn-dark:hover { background: var(--slate); }

.btn-lg { padding: 14px 24px; font-size: 15.5px; border-radius: 12px; }

.btn-icon { width: 16px; height: 16px; }

/* ============ HERO ============ */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy);
  color: var(--white);
  padding: 80px 0 100px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 50%, black 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 50%, black 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; top: -10%; right: -5%; width: 60%; height: 120%;
  background: radial-gradient(circle at center, rgba(13,148,136,0.18), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
  color: #a7f3d0; text-transform: uppercase;
  padding: 6px 12px; border: 1px solid rgba(167,243,208,0.25); border-radius: 999px;
  background: rgba(22,163,74,0.08);
}
.hero-eyebrow .ping {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green-light);
  box-shadow: 0 0 0 4px rgba(34,197,94,0.2);
}
.hero h1 {
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1.02; letter-spacing: -0.03em; font-weight: 800;
  margin: 24px 0 20px;
}
.hero h1 .accent { color: var(--green-light); }
.hero h1 .under { position: relative; white-space: nowrap; }
.hero h1 .under::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 4px;
  height: 10px; background: rgba(13,148,136,0.35); z-index: -1; border-radius: 2px;
}
.hero-sub {
  font-size: 19px; color: #cbd5e1; max-width: 540px; line-height: 1.55;
}
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 28px; display: flex; gap: 24px; flex-wrap: wrap;
  font-size: 13.5px; color: #94a3b8;
}
.hero-trust .chk { color: var(--green-light); margin-right: 4px; }

.hero-visual {
  position: relative;
  transform: perspective(1400px) rotateY(-8deg) rotateX(2deg);
  transform-origin: center;
}

/* Mini demo shell (inside hero or feature) */
.demo-shell {
  background: var(--white); color: var(--ink);
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(15,23,42,0.04);
  display: flex; flex-direction: column;
}
.demo-chrome {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; background: #f8fafc; border-bottom: 1px solid var(--border);
}
.demo-dots { display: flex; gap: 6px; }
.demo-dots span { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.demo-dots span:nth-child(1) { background: #ef4444; }
.demo-dots span:nth-child(2) { background: #f59e0b; }
.demo-dots span:nth-child(3) { background: #10b981; }
.demo-filename {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-2);
  display: flex; align-items: center; gap: 8px;
  flex: 1; justify-content: center;
}
.demo-xls {
  background: #16a34a; color: white; font-family: var(--font-sans); font-weight: 700;
  font-size: 10px; padding: 2px 6px; border-radius: 4px; letter-spacing: 0.04em;
}
.demo-live {
  font-family: var(--font-mono); font-size: 11px; color: var(--green);
  display: flex; align-items: center; gap: 6px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.dot-live {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(22,163,74,0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(22,163,74,0); }
}

.demo-kpis {
  display: grid; grid-template-columns: 1fr 1fr 1.2fr;
  gap: 1px; background: var(--border);
  border-bottom: 1px solid var(--border);
}
.kpi { background: white; padding: 18px 20px; }
.kpi-hero { background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 100%); }
.kpi-label {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.kpi-val { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: 12.5px; color: var(--muted-2); margin-top: 4px; }
.kpi-sub strong { color: var(--teal); font-weight: 700; }
.kpi-bar { margin-top: 10px; height: 4px; background: var(--cream-2); border-radius: 2px; overflow: hidden; }
.kpi-bar > div { height: 100%; border-radius: 2px; transition: width .3s ease; }

.demo-body {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 1px;
  background: var(--border);
}
.demo-chart, .demo-table { background: white; padding: 18px 20px; min-width: 0; }
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.chart-title { font-size: 13.5px; font-weight: 600; }
.chart-sub { font-size: 11px; color: var(--muted); font-family: var(--font-mono); }
.chart-legend { display: flex; gap: 10px; font-size: 11px; color: var(--muted); }
.chart-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.chart-bars {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
  height: 160px; align-items: end;
  padding-top: 8px;
}
.bar-group { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars { display: flex; gap: 3px; align-items: end; height: 100%; width: 100%; justify-content: center; }
.bar { width: 10px; border-radius: 3px 3px 0 0; transition: height .4s ease; min-height: 3px; }
.bar.ing { background: linear-gradient(180deg, #22c55e, #16a34a); }
.bar.gas { background: linear-gradient(180deg, #cbd5e1, #94a3b8); }
.bar-label { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }

.demo-table { display: flex; flex-direction: column; min-width: 0; }
.tbl-head, .tbl-row {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.8fr 0.9fr 24px;
  gap: 4px; align-items: center;
}
.tbl-head {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
  padding: 4px 6px; border-bottom: 1px solid var(--border);
}
.tbl-body { flex: 1; max-height: 240px; overflow-y: auto; margin-top: 2px; }
.tbl-row { padding: 1px; border-radius: 6px; transition: background .1s; position: relative; }
.tbl-row:hover { background: var(--cream); }
.tbl-row.editing { background: #ecfdf5; box-shadow: 0 0 0 1px var(--green) inset; }
.cell {
  border: 0; background: transparent; padding: 7px 8px; width: 100%;
  font-size: 12.5px; color: var(--ink); border-radius: 5px; outline: none;
  min-width: 0;
}
.cell:focus { background: white; box-shadow: 0 0 0 1.5px var(--green); }
.cell.amount { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-mono); font-size: 12px; }
.cell.tag-ingreso { color: #15803d; font-weight: 600; font-size: 11px; }
.cell.tag-gasto { color: #b91c1c; font-weight: 600; font-size: 11px; }
.row-del {
  width: 20px; height: 20px; border-radius: 4px; color: var(--muted-2);
  font-size: 16px; line-height: 1; opacity: 0; transition: opacity .15s;
}
.tbl-row:hover .row-del { opacity: 1; }
.row-del:hover { background: #fee2e2; color: var(--danger); }
.tbl-add {
  margin-top: 10px; padding: 8px 10px; font-size: 12px; color: var(--teal);
  font-weight: 600; border: 1px dashed var(--border); border-radius: 6px;
  transition: all .15s;
}
.tbl-add:hover { border-color: var(--teal); background: #f0fdfa; }

.demo-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; background: var(--cream); border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
}
.foot-chip { color: var(--green); font-weight: 600; }

/* ============ LOGO STRIP ============ */
.logos {
  padding: 28px 0; background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.logos-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 40px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.logos-label { color: var(--muted-2); }
.logos-items { display: flex; gap: 36px; flex-wrap: wrap; }
.logos-items span { font-weight: 600; color: var(--slate-2); letter-spacing: 0.02em; text-transform: none; font-family: var(--font-sans); font-size: 15px; }

/* ============ SECTIONS ============ */
section { padding: 100px 0; }
.section-head {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  margin-bottom: 56px;
}
.section-eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--green); font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
}
.section-eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--green); }
.section-eyebrow::after { content: ''; width: 18px; height: 1px; background: var(--green); }
h2.section-title {
  font-size: clamp(32px, 3.6vw, 46px); letter-spacing: -0.025em; font-weight: 700;
  margin: 14px 0 12px; max-width: 780px; line-height: 1.08; text-wrap: balance;
}
.section-lede { font-size: 18px; color: var(--ink-3); max-width: 640px; text-wrap: pretty; }

/* ============ PROBLEM ============ */
.problem { background: var(--cream); }
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pain {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; position: relative;
  transition: transform .2s, box-shadow .2s;
}
.pain:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pain-num {
  font-family: var(--font-mono); font-size: 11px; color: var(--muted-2);
  letter-spacing: 0.08em;
}
.pain-title { font-size: 18px; font-weight: 600; margin: 10px 0 8px; letter-spacing: -0.01em; }
.pain-desc { font-size: 14px; color: var(--ink-3); line-height: 1.55; }
.pain-x {
  position: absolute; top: 18px; right: 18px; width: 28px; height: 28px;
  border-radius: 50%; background: #fee2e2; color: var(--danger);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}

/* ============ BENEFITS ============ */
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benefit {
  padding: 28px 24px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--white);
  transition: all .2s;
}
.benefit:hover { border-color: var(--green); box-shadow: var(--shadow); }
.benefit-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--green-dim); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.benefit h3 { font-size: 17px; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.01em; }
.benefit p { margin: 0; font-size: 14px; color: var(--ink-3); }

/* ============ DEMO SECTION ============ */
.demo-section { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.demo-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black, transparent 75%);
}
.demo-section .section-head { position: relative; z-index: 2; }
.demo-section h2.section-title { color: white; }
.demo-section .section-lede { color: #94a3b8; }
.demo-section .section-eyebrow { color: var(--green-light); }
.demo-section .section-eyebrow::before, .demo-section .section-eyebrow::after { background: var(--green-light); }
.demo-wrap { position: relative; z-index: 2; max-width: 1080px; margin: 0 auto; }
.demo-cta { display: flex; justify-content: center; gap: 12px; margin-top: 32px; position: relative; z-index: 2; }

/* ============ PRODUCTS ============ */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
  position: relative; transition: all .2s; cursor: pointer;
  overflow: hidden;
}
.product::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent, currentColor);
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product.featured { grid-column: span 2; background: linear-gradient(135deg, var(--navy), var(--slate)); color: var(--white); border-color: transparent; }
.product.featured .product-desc { color: #94a3b8; }
.product.featured .product-meta { color: #64748b; }
.product-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.product-tag {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 4px;
  background: var(--green-dim); color: var(--green); font-weight: 600;
}
.product.featured .product-tag { background: rgba(245,158,11,0.15); color: var(--gold); }
.product-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--cream-2); display: flex; align-items: center; justify-content: center;
  color: var(--accent, var(--green));
}
.product.featured .product-icon { background: rgba(255,255,255,0.08); color: var(--green-light); }
.product-name { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; margin-top: 4px; }
.product-desc { font-size: 14px; color: var(--ink-3); line-height: 1.5; margin: 0; }
.product-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 14px; border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  margin-top: auto;
}
.product.featured .product-meta { border-color: rgba(255,255,255,0.08); }
.product-price { font-family: var(--font-sans); font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.product.featured .product-price { color: var(--white); }
.product-price small { font-family: var(--font-mono); font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 3px; }
.product.featured .product-price small { color: #94a3b8; }
.product-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--accent);
}
.product.featured .product-cta { color: var(--green-light); }

/* ============ DETAIL PAGE (Modal-style inline) ============ */
.detail {
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
  padding: 100px 0;
}
.detail-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: start; }
.detail-crumb {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  letter-spacing: 0.04em; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.detail-crumb .sep { color: var(--muted-2); }
.detail-title { font-size: clamp(32px, 3.5vw, 44px); letter-spacing: -0.025em; line-height: 1.05; font-weight: 700; margin: 8px 0 16px; }
.detail-lede { font-size: 18px; color: var(--ink-2); line-height: 1.55; margin-bottom: 28px; }
.detail-included { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.incl-item { display: flex; gap: 12px; align-items: flex-start; }
.incl-dot {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-dim); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.incl-text { font-size: 15px; }
.incl-text strong { display: block; letter-spacing: -0.005em; }
.incl-text span { color: var(--ink-3); font-size: 13.5px; }

.detail-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 32px; position: sticky; top: 90px;
}
.detail-price-row { display: flex; align-items: baseline; gap: 12px; }
.detail-price { font-size: 48px; font-weight: 800; letter-spacing: -0.03em; }
.detail-price-currency { font-size: 18px; color: var(--muted); font-family: var(--font-mono); }
.detail-price-old { font-size: 17px; color: var(--muted-2); text-decoration: line-through; margin-left: auto; }
.detail-price-sub { font-size: 13px; color: var(--muted); margin-top: 4px; font-family: var(--font-mono); }
.detail-buy { width: 100%; margin-top: 20px; padding: 16px; font-size: 16px; }
.detail-reassure {
  margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
  font-size: 13px; color: var(--ink-3);
}
.detail-reassure-item { display: flex; gap: 10px; align-items: center; }
.detail-reassure-item svg { color: var(--green); flex-shrink: 0; }

.use-case {
  background: var(--navy); color: var(--white); border-radius: var(--radius);
  padding: 20px 24px; margin-top: 24px; position: relative; overflow: hidden;
}
.use-case::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(13,148,136,0.2), transparent 60%);
}
.use-case-label {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em;
  color: var(--green-light); text-transform: uppercase; position: relative;
}
.use-case-text { font-size: 15.5px; line-height: 1.5; margin-top: 8px; position: relative; }

/* ============ TESTIMONIALS ============ */
.testimonials { background: var(--cream); }
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.case {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; display: grid; grid-template-columns: auto 1fr; gap: 20px;
  transition: all .2s;
}
.case:hover { box-shadow: var(--shadow); }
.case-metric {
  background: var(--navy); color: var(--white); border-radius: var(--radius-sm);
  padding: 20px 18px; text-align: center; min-width: 140px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.case-metric::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(22,163,74,0.25), transparent 60%);
}
.case-metric-val {
  font-size: 24px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--green-light); position: relative; line-height: 1.1;
}
.case-metric-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: #94a3b8; margin-top: 8px; position: relative;
}
.case-body { min-width: 0; }
.case-quote { font-size: 16px; line-height: 1.5; color: var(--ink); margin: 0 0 16px; text-wrap: pretty; }
.case-who { display: flex; gap: 12px; align-items: center; }
.case-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--teal));
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px;
}
.case-name { font-size: 14px; font-weight: 600; }
.case-role { font-size: 12.5px; color: var(--muted); font-family: var(--font-mono); }
.case-template {
  display: inline-block; font-size: 11px; font-family: var(--font-mono);
  color: var(--teal); margin-top: 8px; padding: 3px 8px;
  background: #f0fdfa; border-radius: 4px; letter-spacing: 0.02em;
}

/* ============ PRICING ============ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1050px; margin: 0 auto; }
.tier {
  background: var(--white); border: 1px solid var(--border); border-radius: 18px;
  padding: 32px; display: flex; flex-direction: column; gap: 20px;
  position: relative;
}
.tier.hi {
  background: var(--navy); color: var(--white); border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}
.tier-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--navy); font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; letter-spacing: 0.04em;
  text-transform: uppercase; font-family: var(--font-sans);
}
.tier-name { font-size: 14px; font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.tier.hi .tier-name { color: var(--green-light); }
.tier-price { display: flex; align-items: baseline; gap: 4px; }
.tier-price-val { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; }
.tier-price-cur { font-size: 16px; color: var(--muted); font-family: var(--font-mono); }
.tier.hi .tier-price-cur { color: #94a3b8; }
.tier-price-old { font-size: 15px; color: var(--muted-2); text-decoration: line-through; margin-left: 6px; }
.tier.hi .tier-price-old { color: #64748b; }
.tier-desc { font-size: 14.5px; color: var(--ink-3); }
.tier.hi .tier-desc { color: #cbd5e1; }
.tier-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.tier-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.tier-features .chk {
  flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green-dim); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; margin-top: 1px;
}
.tier.hi .tier-features .chk { background: rgba(34,197,94,0.2); color: var(--green-light); }
.tier .btn { width: 100%; padding: 14px; }

/* ============ FAQ ============ */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); overflow: hidden;
  transition: all .15s;
}
.faq-item.open { border-color: var(--ink-3); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; padding: 20px 24px; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-size: 16px; font-weight: 600; color: var(--ink);
}
.faq-q .toggle {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--cream-2); color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 400; flex-shrink: 0;
  transition: transform .2s, background .15s;
}
.faq-item.open .faq-q .toggle { background: var(--green); color: white; transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .25s ease;
}
.faq-item.open .faq-a { max-height: 300px; }
.faq-a-inner { padding: 0 24px 20px; font-size: 15px; color: var(--ink-2); line-height: 1.6; }

/* ============ FINAL CTA ============ */
.final {
  background: var(--navy); color: var(--white); position: relative; overflow: hidden;
  padding: 120px 0;
}
.final::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 70%);
}
.final-inner { text-align: center; position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.final h2 { font-size: clamp(36px, 4vw, 54px); letter-spacing: -0.03em; line-height: 1.05; font-weight: 800; margin: 18px 0 18px; }
.final h2 .accent { color: var(--green-light); }
.final p { font-size: 19px; color: #cbd5e1; margin-bottom: 32px; }
.final-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.final-micro { margin-top: 20px; font-size: 13px; color: #94a3b8; font-family: var(--font-mono); }

/* ============ FOOTER ============ */
.footer { background: var(--navy); color: #94a3b8; padding: 40px 0; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  flex-wrap: wrap;
}
.footer-left { font-size: 13px; }
.footer-right { display: flex; gap: 20px; font-size: 13px; }
.footer-right a:hover { color: white; }

/* ============ TWEAKS PANEL ============ */
.tweaks-panel {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 20px; min-width: 280px;
  font-family: var(--font-sans); font-size: 13px;
}
.tweaks-head {
  font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 12px; font-family: var(--font-mono);
  display: flex; justify-content: space-between; align-items: center;
}
.tweaks-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.tweak-row { margin-bottom: 14px; }
.tweak-row:last-child { margin-bottom: 0; }
.tweak-label { font-weight: 600; font-size: 12px; color: var(--ink-2); margin-bottom: 6px; }
.tweak-opts { display: flex; gap: 6px; }
.tweak-opt {
  flex: 1; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--white); font-size: 12px; font-weight: 500;
  transition: all .1s; cursor: pointer;
}
.tweak-opt:hover { border-color: var(--muted); }
.tweak-opt.active { background: var(--navy); color: white; border-color: var(--navy); }
.tweak-preview {
  margin-top: 10px; padding: 14px; background: var(--navy); border-radius: 8px;
  display: flex; justify-content: center; align-items: center; min-height: 60px;
}

/* ============ PAYMENTS ============ */
.payments-section { background: var(--white); }
.pay-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px;
  max-width: 980px; margin: 0 auto;
}
.pay-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 18px 14px 14px; display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: all .15s;
}
.pay-card:hover { border-color: var(--muted); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.pay-card-logo { width: 72px; height: 48px; display: flex; align-items: center; justify-content: center; }
.pay-card-logo svg { width: 100%; height: auto; }
.pay-card-name {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em;
  color: var(--muted); text-align: center;
}
.pay-security {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 920px; margin: 40px auto 0;
  padding: 24px; background: var(--cream); border-radius: var(--radius);
}
.pay-security-item { display: flex; gap: 12px; align-items: flex-start; color: var(--teal); }
.pay-security-item > div { display: flex; flex-direction: column; }
.pay-security-item strong { font-size: 14px; color: var(--ink); font-weight: 600; letter-spacing: -0.005em; }
.pay-security-item span { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.pay-security-item svg { flex-shrink: 0; margin-top: 2px; }

/* Compact strip for detail card */
.pay-strip { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.pay-strip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-chip {
  width: 44px; height: 29px; border-radius: 5px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.pay-chip svg { width: 100%; height: 100%; display: block; }
.detail-pay-label {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}

@media (max-width: 960px) {
  .pay-grid { grid-template-columns: repeat(4, 1fr); }
  .pay-security { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 600px) {
  .pay-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============ SECURITY ============ */
.security-section { background: var(--cream); }
.sec-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  max-width: 1080px; margin: 0 auto;
}
.sec-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; gap: 16px; align-items: flex-start;
  transition: all .15s;
}
.sec-card:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.sec-icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  background: #f0fdfa; color: var(--teal);
  display: flex; align-items: center; justify-content: center;
}
.sec-card-body { flex: 1; min-width: 0; }
.sec-card-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin-bottom: 6px;
}
.sec-card h3 { font-size: 15.5px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.sec-tag {
  font-family: var(--font-mono); font-size: 10px; color: var(--teal);
  background: #f0fdfa; padding: 3px 7px; border-radius: 4px;
  letter-spacing: 0.04em; white-space: nowrap;
}
.sec-card p { font-size: 13.5px; color: var(--ink-3); margin: 0; line-height: 1.5; }

.sec-promise {
  max-width: 900px; margin: 36px auto 0; background: var(--navy); color: var(--white);
  border-radius: var(--radius); padding: 32px 36px; position: relative; overflow: hidden;
}
.sec-promise::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 90% 20%, rgba(13,148,136,0.2), transparent 55%);
}
.sec-promise-head {
  position: relative;
  display: flex; align-items: center; gap: 10px; color: var(--green-light);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 18px; font-weight: 600;
}
.sec-promise-list {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px;
  list-style: none; padding: 0; margin: 0;
}
.sec-promise-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14.5px; color: #cbd5e1;
}
.sec-promise-list strong { color: var(--white); font-weight: 600; }
.sec-promise-list .chk {
  flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(34,197,94,0.2); color: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; margin-top: 2px;
}

@media (max-width: 960px) {
  .sec-grid { grid-template-columns: 1fr 1fr; }
  .sec-promise-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .sec-grid { grid-template-columns: 1fr; }
  .sec-promise { padding: 24px; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { transform: none; }
  .pain-grid, .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .product.featured { grid-column: span 2; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; }
  .tier.hi { transform: none; }
  .case-grid { grid-template-columns: 1fr; }
  .detail-wrap { grid-template-columns: 1fr; }
  .detail-card { position: static; }
  .demo-body { grid-template-columns: 1fr; }
  .demo-kpis { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  section { padding: 72px 0; }
  .hero { padding: 56px 0 72px; }
  .pain-grid, .benefits-grid, .products-grid { grid-template-columns: 1fr; }
  .product.featured { grid-column: span 1; }
  .case { grid-template-columns: 1fr; }
  .case-metric { min-width: 0; }
}

/* ── Auth Modal ─────────────────────────────────────────────────────────────── */
.auth-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn 0.15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.auth-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%; max-width: 420px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.18s ease;
}
@keyframes slideUp { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.auth-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--muted);
}
.auth-close:hover { color: var(--ink); }

.auth-title { font-size: 20px; font-weight: 700; color: var(--ink); margin: 0 0 6px; }

.auth-tabs {
  display: flex; gap: 4px;
  background: var(--cream-2); border-radius: var(--radius-sm);
  padding: 4px; margin-bottom: 24px;
}
.auth-tabs button {
  flex: 1; padding: 9px; border: none; border-radius: 8px;
  background: none; cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--muted);
  transition: all 0.15s;
}
.auth-tabs button.active {
  background: #fff; color: var(--ink); font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.auth-form { display: flex; flex-direction: column; gap: 0; }
.auth-form label {
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  margin: 14px 0 6px;
}
.auth-form label:first-child { margin-top: 0; }
.auth-form input {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 15px; font-family: var(--font-sans); color: var(--ink);
  background: var(--cream); outline: none; transition: border-color 0.15s;
  box-sizing: border-box;
}
.auth-form input:focus { border-color: var(--green); background: #fff; }

.auth-submit {
  width: 100%; margin-top: 20px; padding: 14px;
  font-size: 15px; font-weight: 600;
}
.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.auth-error {
  background: #fef2f2; border: 1px solid #fecaca; color: #dc2626;
  border-radius: var(--radius-sm); padding: 10px 14px;
  font-size: 13.5px; margin-bottom: 16px;
}

.auth-link {
  background: none; border: none; cursor: pointer;
  color: var(--green); font-size: 13px; font-weight: 500;
  margin-top: 12px; text-align: center; width: 100%;
  padding: 6px;
}
.auth-link:hover { text-decoration: underline; }

.auth-sent {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; text-align: center; padding: 12px 0;
}
.auth-sent p { font-size: 14px; color: var(--muted); max-width: 300px; }

/* ============ MOBILE FIXES ============ */
@media (max-width: 768px) {
  /* Contenedor con padding adecuado */
  .container { padding: 0 16px; }

  /* Hero: ocultar visual en móvil para evitar overflow */
  .hero-inner { grid-template-columns: 1fr !important; gap: 32px; }
  .hero-visual { display: none; }
  .hero { padding: 48px 0 64px; }
  .hero h1 { font-size: clamp(30px, 8vw, 46px); margin: 16px 0 14px; }
  .hero-sub { font-size: 16px; }
  .hero-cta { flex-direction: column; gap: 10px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-trust { gap: 12px; font-size: 12px; }
  .hero::after { display: none; }

  /* Nav */
  .nav-inner { padding: 12px 0; }
  .nav-cta .btn-ghost { display: none; }
  .nav-cta .btn-primary { padding: 10px 14px; font-size: 13px; white-space: nowrap; }
  .nav-cta .btn-primary svg { display: none; }

  /* Secciones */
  section { padding: 56px 0; }
  h2.section-title { font-size: clamp(26px, 7vw, 36px); }
  .section-lede { font-size: 15px; }
  .section-head { margin-bottom: 36px; }

  /* Products */
  .products-grid { grid-template-columns: 1fr !important; }
  .product.featured { grid-column: span 1 !important; }

  /* Detail */
  .detail-wrap { grid-template-columns: 1fr !important; gap: 32px; }
  .detail-card { position: static; }
  .detail-title { font-size: clamp(26px, 7vw, 36px); }
  .detail-price { font-size: 36px; }

  /* Demo shell en sección demo */
  .demo-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .demo-kpis { grid-template-columns: 1fr 1fr !important; }
  .demo-body { grid-template-columns: 1fr !important; }
  .demo-table { display: none; } /* Ocultar tabla en móvil */
  .chart-bars { height: 120px; }

  /* Pain & Benefits */
  .pain-grid { grid-template-columns: 1fr !important; }
  .benefits-grid { grid-template-columns: 1fr !important; }

  /* Cases */
  .case { grid-template-columns: 1fr !important; gap: 16px; }
  .case-metric { min-width: 0; padding: 16px; }

  /* Pricing */
  .pricing-grid { grid-template-columns: 1fr !important; max-width: 100%; }
  .tier.hi { transform: none; }
  .tier-price-val { font-size: 36px; }

  /* Final CTA */
  .final { padding: 72px 0; }
  .final h2 { font-size: clamp(28px, 7vw, 40px); }
  .final p { font-size: 16px; }
  .final-cta { flex-direction: column; align-items: center; }
  .final-cta .btn { width: 100%; max-width: 340px; justify-content: center; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-right { flex-wrap: wrap; gap: 12px; }

  /* Security */
  .sec-grid { grid-template-columns: 1fr !important; }
  .sec-promise { padding: 20px; }
  .sec-promise-list { grid-template-columns: 1fr !important; }

  /* Pay grid */
  .pay-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .pay-security { grid-template-columns: 1fr !important; }

  /* Auth modal */
  .auth-modal { padding: 24px 20px; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 28px; }
  .nav-cta .btn-primary { padding: 10px 14px; font-size: 13px; }
  .pay-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

