/* ── Variables ──────────────────────────────────────────────────── */
:root {
  --bg:          #080808;
  --surface:     #111111;
  --card:        #171717;
  --card-hover:  #1e1e1e;
  --border:      rgba(255,255,255,0.06);
  --border-light:rgba(255,255,255,0.10);

  --green:       #16c955;
  --green-dark:  #0ea043;
  --green-glow:  rgba(22, 201, 85, 0.12);
  --green-glow2: rgba(22, 201, 85, 0.06);
  --amber:       #f59e0b;
  --amber-glow:  rgba(245, 158, 11, 0.10);
  --purple:      #8b5cf6;
  --purple-glow: rgba(139, 92, 246, 0.10);

  --text:        #f0f0f0;
  --text-muted:  #8a8a8a;
  --text-dim:    #444;

  --radius:      14px;
  --radius-sm:   8px;
  --radius-lg:   20px;
  --ease:        cubic-bezier(0.23, 1, 0.32, 1);
  --max-w:       1180px;
}

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a  { color: var(--green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green-dark); }
ul { list-style: none; }

/* ── Scrollbar ───────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 99px; }

/* ── Helpers ─────────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 99px;
  border: 1px solid var(--border-light);
  font-size: .75rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--green); background: var(--green-glow);
  margin-bottom: 18px;
}
.section-label { text-align: center; margin-bottom: 48px; }
.section-label h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700; letter-spacing: -.03em;
  line-height: 1.2;
}
.section-label p { color: var(--text-muted); margin-top: 12px; font-size: 1.05rem; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ── Navbar ──────────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 64px;
  display: flex; align-items: center;
  background: rgba(8,8,8,0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  transition: background .3s;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.1rem; color: var(--text); letter-spacing: -.02em;
}
.nav-brand .dot { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  color: var(--text-muted); font-size: .875rem; font-weight: 500;
  padding: 6px 14px; border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-cta {
  background: var(--green) !important;
  color: #000 !important;
  font-weight: 600 !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-sm) !important;
}
.nav-cta:hover { background: var(--green-dark) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .3s, opacity .3s;
  margin: 4px 0;
}

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 0 80px;
  position: relative; overflow: hidden;
}
.hero-glow {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at 50% 40%, rgba(22,201,85,0.09) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.hero-badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; }
.hero-badge span {
  display: inline-block; width: 8px; height: 8px;
  background: var(--green); border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(22,201,85,0.2);
  animation: pulse 2s infinite;
}
.hero-badge p { font-size: .8rem; color: var(--text-muted); font-weight: 500; }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 3px rgba(22,201,85,0.2)} 50%{box-shadow:0 0 0 6px rgba(22,201,85,0.08)} }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800; letter-spacing: -.04em; line-height: 1.1;
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--green); }
.hero p.lead {
  font-size: 1.1rem; color: var(--text-muted); line-height: 1.7;
  max-width: 480px; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius-sm); font-weight: 600;
  font-size: .9rem; cursor: pointer; border: none; transition: all .2s var(--ease);
}
.btn-primary { background: var(--green); color: #000; }
.btn-primary:hover { background: var(--green-dark); color: #000; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(22,201,85,0.25); }
.btn-ghost {
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border-light);
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); color: var(--text); }

/* Mock dashboard visual */
.hero-visual { position: relative; }
.mock-window {
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px var(--border);
}
.mock-titlebar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--border);
}
.mock-dot { width: 10px; height: 10px; border-radius: 50%; }
.mock-dot.r { background: #ff5f57; }
.mock-dot.y { background: #febc2e; }
.mock-dot.g { background: #28c840; }
.mock-bar { flex: 1; height: 6px; background: var(--border); border-radius: 4px; margin: 0 10px; }
.mock-body { padding: 20px; }
.mock-kpi-row { display: flex; gap: 10px; margin-bottom: 16px; }
.mock-kpi {
  flex: 1; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px;
}
.mock-kpi-val { font-size: 1.4rem; font-weight: 700; color: var(--green); }
.mock-kpi-lbl { font-size: .65rem; color: var(--text-muted); margin-top: 2px; }
.mock-chart { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }
.mock-chart-title { font-size: .7rem; color: var(--text-muted); margin-bottom: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.mock-bars { display: flex; align-items: flex-end; gap: 6px; height: 70px; }
.mock-bar-item { flex: 1; background: var(--green); border-radius: 3px 3px 0 0; opacity: .7; }
.mock-bar-item:nth-child(1) { height: 40%; }
.mock-bar-item:nth-child(2) { height: 65%; }
.mock-bar-item:nth-child(3) { height: 50%; }
.mock-bar-item:nth-child(4) { height: 80%; }
.mock-bar-item:nth-child(5) { height: 60%; }
.mock-bar-item:nth-child(6) { height: 90%; }
.mock-bar-item:nth-child(7) { height: 70%; opacity: 1; }
.mock-float-1, .mock-float-2 {
  position: absolute;
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); padding: 10px 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  font-size: .75rem;
}
.mock-float-1 { bottom: -20px; left: -30px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.mock-float-2 { top: 60px; right: -30px; }
.mock-notif { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.mock-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; font-size: .65rem; font-weight: 700; color: #000; margin-bottom: 4px; }

/* ── Stat strip ──────────────────────────────────────────────────── */
.stats-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.stats-strip .container { display: flex; justify-content: center; flex-wrap: wrap; }
.stat-item { text-align: center; padding: 32px 48px; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--green); letter-spacing: -.04em; line-height: 1; }
.stat-lbl { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }

/* ── Sistemas (products) ─────────────────────────────────────────── */
.sistemas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sistema-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.sistema-card::before {
  content: ''; position: absolute; inset: 0;
  opacity: 0; transition: opacity .3s;
  border-radius: var(--radius-lg);
}
.sistema-card.green::before  { background: var(--green-glow2); }
.sistema-card.amber::before  { background: var(--amber-glow); }
.sistema-card.purple::before { background: var(--purple-glow); }
.sistema-card:hover { transform: translateY(-4px); }
.sistema-card.green:hover  { border-color: rgba(22,201,85,0.3);  box-shadow: 0 20px 60px rgba(22,201,85,0.08); }
.sistema-card.amber:hover  { border-color: rgba(245,158,11,0.3); box-shadow: 0 20px 60px rgba(245,158,11,0.08); }
.sistema-card.purple:hover { border-color: rgba(139,92,246,0.3); box-shadow: 0 20px 60px rgba(139,92,246,0.08); }
.sistema-card:hover::before { opacity: 1; }
.sistema-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.sistema-card.green  .sistema-icon { background: var(--green-glow);  color: var(--green); }
.sistema-card.amber  .sistema-icon { background: var(--amber-glow);  color: var(--amber); }
.sistema-card.purple .sistema-icon { background: var(--purple-glow); color: var(--purple); }
.sistema-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -.02em; }
.sistema-card .desc { color: var(--text-muted); font-size: .9rem; margin-bottom: 24px; line-height: 1.6; }
.sistema-features { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.feat {
  display: flex; align-items: center; gap: 10px;
  font-size: .85rem; color: var(--text-muted);
}
.feat-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.green .feat-dot  { background: var(--green); }
.amber .feat-dot  { background: var(--amber); }
.purple .feat-dot { background: var(--purple); }
.sistema-badge {
  display: inline-block; padding: 4px 12px; border-radius: 99px;
  font-size: .72rem; font-weight: 600;
}
.green  .sistema-badge { background: var(--green-glow);  color: var(--green);  border: 1px solid rgba(22,201,85,0.2); }
.amber  .sistema-badge { background: var(--amber-glow);  color: var(--amber);  border: 1px solid rgba(245,158,11,0.2); }
.purple .sistema-badge { background: var(--purple-glow); color: var(--purple); border: 1px solid rgba(139,92,246,0.2); }

/* ── Características ─────────────────────────────────────────────── */
.features-section { background: var(--surface); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--border); }
.feature-item {
  background: var(--surface); padding: 32px 28px;
  transition: background .2s;
}
.feature-item:hover { background: var(--card); }
.feature-icon {
  width: 44px; height: 44px; background: var(--green-glow);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--green); margin-bottom: 16px;
}
.feature-item h4 { font-size: .95rem; font-weight: 600; margin-bottom: 6px; }
.feature-item p  { font-size: .82rem; color: var(--text-muted); line-height: 1.55; }

/* ── Proceso ─────────────────────────────────────────────────────── */
.proceso-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.proceso-grid::before {
  content: ''; position: absolute;
  top: 28px; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light) 20%, var(--border-light) 80%, transparent);
}
.proceso-step { text-align: center; padding: 0 16px; }
.proceso-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; color: var(--green);
  margin: 0 auto 16px; position: relative; z-index: 1;
}
.proceso-step h4 { font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.proceso-step p  { font-size: .8rem; color: var(--text-muted); line-height: 1.5; }

/* ── Precios ─────────────────────────────────────────────────────── */
.precios-section { background: var(--surface); }
.precios-intro { max-width: 560px; margin: 0 auto 48px; text-align: center; }
.precios-intro p { color: var(--text-muted); }
.precios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 880px; margin: 0 auto; }
.precio-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  text-align: center; position: relative;
  transition: transform .3s var(--ease), border-color .3s;
}
.precio-card.featured {
  border-color: rgba(22,201,85,0.35);
  background: linear-gradient(160deg, rgba(22,201,85,0.06) 0%, var(--card) 60%);
}
.precio-card:hover { transform: translateY(-3px); }
.precio-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: #000;
  font-size: .7rem; font-weight: 700; padding: 4px 14px; border-radius: 99px;
  white-space: nowrap;
}
.precio-plan { font-size: .8rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.precio-amount { font-size: 2.2rem; font-weight: 800; letter-spacing: -.04em; color: var(--text); }
.precio-amount span { font-size: .9rem; font-weight: 400; color: var(--text-muted); }
.precio-soporte { font-size: .8rem; color: var(--text-muted); margin: 8px 0 20px; }
.precio-soporte strong { color: var(--green); }
.precio-list { text-align: left; margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.precio-list li { display: flex; align-items: flex-start; gap: 8px; font-size: .82rem; color: var(--text-muted); }
.precio-check { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.precio-note { font-size: .72rem; color: var(--text-dim); margin-top: 16px; }
.precio-disclaimer {
  text-align: center; margin-top: 32px;
  font-size: .82rem; color: var(--text-muted);
}
.precio-disclaimer strong { color: var(--text); }

/* ── CTA final ───────────────────────────────────────────────────── */
.cta-section {
  text-align: center; padding: 100px 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(22,201,85,0.08) 0%, transparent 65%);
}
.cta-section h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.04em; margin-bottom: 16px; }
.cta-section p  { color: var(--text-muted); max-width: 480px; margin: 0 auto 36px; }
.cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn-wa {
  background: #25d366; color: #fff;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .9rem;
  transition: all .2s var(--ease);
}
.btn-wa:hover { background: #1ebe59; color: #fff; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(37,211,102,0.25); }

/* ── Footer ──────────────────────────────────────────────────────── */
footer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-brand { font-weight: 700; font-size: 1rem; }
.footer-brand .dot { color: var(--green); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: .8rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: .75rem; color: var(--text-dim); }

/* ── Animations ──────────────────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: .1s; }
.fade-up:nth-child(3) { transition-delay: .2s; }
.fade-up:nth-child(4) { transition-delay: .3s; }
.fade-up:nth-child(5) { transition-delay: .4s; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .sistemas-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .proceso-grid  { grid-template-columns: 1fr 1fr; gap: 32px; }
  .proceso-grid::before { display: none; }
  .precios-grid  { grid-template-columns: 1fr; max-width: 400px; }
}
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: rgba(8,8,8,0.97); border-bottom: 1px solid var(--border); padding: 16px 24px; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .stat-item { padding: 24px 28px; }
  .features-grid { grid-template-columns: 1fr; }
  .proceso-grid  { grid-template-columns: 1fr; }
  .footer-inner  { flex-direction: column; text-align: center; }
  .footer-links  { flex-wrap: wrap; justify-content: center; }
}
