:root {
  --bg: #070a0f;
  --bg-card: rgba(16, 24, 36, 0.85);
  --border: rgba(148, 163, 184, 0.14);
  --border-accent: rgba(52, 211, 153, 0.35);
  --text: #f8fafc;
  --muted: #94a3b8;
  --dim: #64748b;
  --accent: #34d399;
  --accent-2: #38bdf8;
  --warning: #fbbf24;
  --radius: 14px;
  --radius-lg: 22px;
  --font: "DM Sans", system-ui, sans-serif;
  --font-display: "Syne", system-ui, sans-serif;
  --max: 1140px;
  --nav-h: 68px;
  --transition: 0.22s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.bg-mesh {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 50% -10%, rgba(52, 211, 153, 0.12), transparent),
    radial-gradient(ellipse 50% 35% at 100% 40%, rgba(56, 189, 248, 0.07), transparent),
    var(--bg);
}

a:focus-visible, button:focus-visible, .btn:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
}
.nav.is-scrolled {
  background: rgba(7, 10, 15, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 0.92rem;
}
.brand__mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 800; color: #042f1a;
}
.nav__links { display: none; gap: 1.4rem; }
.nav__links a { color: var(--muted); text-decoration: none; font-size: 0.88rem; font-weight: 500; }
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; gap: 0.6rem; align-items: center; }
.nav__toggle {
  display: flex; flex-direction: column; gap: 5px; width: 40px; height: 40px;
  padding: 8px; border: 1px solid var(--border); border-radius: 10px;
  background: rgba(16, 24, 36, 0.8); cursor: pointer; color: var(--text);
}
.nav__toggle span { height: 2px; background: currentColor; border-radius: 1px; }
@media (min-width: 900px) {
  .nav__toggle { display: none; }
  .nav__links { display: flex; }
}
@media (max-width: 899px) {
  .nav__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; padding: 1rem; background: rgba(7, 10, 15, 0.97);
    border-bottom: 1px solid var(--border);
  }
  .nav__links.is-open { display: flex; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.7rem 1.2rem; border-radius: 11px; font-weight: 600; font-size: 0.88rem;
  text-decoration: none; border: none; cursor: pointer; font-family: var(--font);
  transition: transform 0.15s ease, box-shadow var(--transition);
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn--primary {
  background: linear-gradient(135deg, #10b981, #0ea5e9);
  color: #04120c; box-shadow: 0 8px 28px rgba(52, 211, 153, 0.25);
}
.btn--ghost {
  background: transparent; color: var(--text); border: 1px solid var(--border);
}
.btn--lg { padding: 0.95rem 1.6rem; font-size: 1rem; border-radius: 13px; }
.btn--block { width: 100%; }

/* Hero */
.hero { padding: calc(var(--nav-h) + 3rem) 0 3.5rem; }
.hero__inner { max-width: 720px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.3rem 0.8rem; margin-bottom: 1rem;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent); border: 1px solid var(--border-accent);
  border-radius: 999px; background: rgba(52, 211, 153, 0.08);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 1rem;
}
.hero h1 .hl {
  background: linear-gradient(135deg, #ecfdf5, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { font-size: 1.1rem; color: var(--muted); margin: 0 0 1.5rem; max-width: 36rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem; }
.hero__micro { font-size: 0.88rem; color: var(--dim); margin: 0 0 2rem; max-width: 32rem; }
.trust-pills {
  display: flex; flex-wrap: wrap; gap: 0.65rem;
}
.trust-pill {
  padding: 0.45rem 0.85rem; border-radius: 999px; font-size: 0.8rem;
  border: 1px solid var(--border); color: var(--muted); background: var(--bg-card);
}

.section { padding: 4rem 0; }
.section--alt { background: rgba(12, 18, 28, 0.55); border-block: 1px solid var(--border); }
.section__head { max-width: 640px; margin-bottom: 2.25rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); font-weight: 600; margin-bottom: 0.5rem;
}
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  margin: 0 0 0.75rem; letter-spacing: -0.02em; line-height: 1.15;
}
.section__lead { color: var(--muted); margin: 0; font-size: 1.02rem; }

/* Segmentos */
.segments { display: grid; gap: 1rem; }
@media (min-width: 640px) { .segments { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .segments { grid-template-columns: repeat(3, 1fr); } }
.segment {
  padding: 1.25rem; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--bg-card);
}
.segment__icon { font-size: 1.4rem; margin-bottom: 0.5rem; }
.segment h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.segment p { margin: 0; font-size: 0.88rem; color: var(--muted); }
.segment-fit {
  margin-top: 1.5rem; padding: 1rem 1.25rem; border-radius: var(--radius);
  border: 1px dashed var(--border-accent); background: rgba(52, 211, 153, 0.06);
  font-size: 0.92rem; color: var(--muted);
}
.segment-fit strong { color: var(--text); }

/* Paquetes */
.packages { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .packages { grid-template-columns: repeat(3, 1fr); } }
.package {
  display: flex; flex-direction: column; padding: 1.5rem;
  border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--bg-card);
}
.package--featured {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.15);
}
.package__badge {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent); font-weight: 700; margin-bottom: 0.4rem;
}
.package__badge--pop { color: var(--warning); }
.package h3 { margin: 0 0 0.25rem; font-size: 1.12rem; }
.package__meta { font-size: 0.82rem; color: var(--dim); margin-bottom: 0.75rem; }
.package__desc { font-size: 0.9rem; color: var(--muted); margin: 0 0 1rem; flex: 1; }
.package ul { margin: 0 0 1.25rem; padding-left: 1.1rem; font-size: 0.85rem; color: var(--muted); }
.package li { margin-bottom: 0.3rem; }
.package .btn { margin-top: auto; }

/* Tabla comparativa */
.compare-wrap { overflow-x: auto; margin-top: 2.5rem; border-radius: var(--radius); border: 1px solid var(--border); }
.compare {
  width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.88rem;
}
.compare th, .compare td {
  padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--border);
}
.compare thead th { background: rgba(52, 211, 153, 0.08); color: var(--text); font-weight: 600; }
.compare tbody th { color: var(--muted); font-weight: 500; width: 38%; }
.compare td { color: var(--text); }
.compare .col-featured { background: rgba(52, 211, 153, 0.04); }

/* Costo */
.cost-grid {
  display: grid; gap: 1.25rem;
}
@media (min-width: 768px) { .cost-grid { grid-template-columns: 1fr 1fr; } }
.cost-card {
  padding: 1.5rem; border-radius: var(--radius-lg); border: 1px solid var(--border);
}
.cost-card--bad { background: rgba(248, 113, 113, 0.05); border-color: rgba(248, 113, 113, 0.2); }
.cost-card--good {
  background: rgba(52, 211, 153, 0.06); border-color: var(--border-accent);
}
.cost-card h3 { margin: 0 0 0.75rem; font-size: 1.05rem; }
.cost-card ul { margin: 0; padding: 0; list-style: none; }
.cost-card li {
  position: relative; padding-left: 1.35rem; margin-bottom: 0.45rem;
  font-size: 0.9rem; color: var(--muted);
}
.cost-card--bad li::before { content: "✕"; position: absolute; left: 0; color: #f87171; }
.cost-card--good li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); }
.cost-note { margin-top: 1.25rem; font-size: 0.85rem; color: var(--dim); font-style: italic; }

/* FAQ */
.faq { display: grid; gap: 0.65rem; max-width: 760px; margin-inline: auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card);
  overflow: hidden;
}
.faq-item__question {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 1.15rem; background: none; border: none; color: var(--text);
  font-family: var(--font); font-size: 0.95rem; font-weight: 600; text-align: left; cursor: pointer;
}
.faq-item__question::after {
  content: "+"; color: var(--accent); font-size: 1.2rem; flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item.is-open .faq-item__question::after { transform: rotate(45deg); }
.faq-item__answer {
  display: none; padding: 0 1.15rem 1rem; font-size: 0.9rem; color: var(--muted);
}
.faq-item.is-open .faq-item__answer { display: block; }

/* CTA + form */
.cta-section { padding: 4rem 0 5rem; }
.cta-box {
  text-align: center; padding: 2.5rem 1.5rem; border-radius: var(--radius-lg);
  border: 1px solid var(--border-accent);
  background: linear-gradient(160deg, rgba(52, 211, 153, 0.1), rgba(6, 10, 15, 0.9));
  margin-bottom: 2.5rem;
}
.cta-box h2 { font-family: var(--font-display); margin: 0 0 0.75rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-box p { color: var(--muted); max-width: 32rem; margin: 0 auto 1.25rem; }
.form-layout {
  display: grid; gap: 2rem;
}
@media (min-width: 900px) { .form-layout { grid-template-columns: 1fr 1.05fr; align-items: start; } }
.lead-form {
  display: grid; gap: 0.9rem; padding: 1.5rem; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: var(--bg-card);
}
.lead-form label { display: grid; gap: 0.35rem; font-size: 0.84rem; color: var(--muted); font-weight: 500; }
.lead-form input, .lead-form select, .lead-form textarea {
  padding: 0.75rem 0.9rem; border-radius: 10px; border: 1px solid var(--border);
  background: rgba(7, 10, 15, 0.9); color: var(--text); font-family: var(--font); font-size: 0.95rem;
}
.form-note { font-size: 0.78rem; color: var(--dim); margin: 0; }
.form-status { font-size: 0.88rem; min-height: 1.2rem; margin: 0; }
.form-status.is-ok { color: var(--accent); }
.form-status.is-error { color: #f87171; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

.form-aside h3 { margin: 0 0 1rem; font-size: 1.1rem; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.65rem; }
.check-list li {
  padding-left: 1.4rem; position: relative; font-size: 0.9rem; color: var(--muted);
}
.check-list li::before {
  content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700;
}

.footer {
  padding: 2.5rem 0; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--dim);
}
.footer__links { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 0.75rem; }
.footer__links a { color: var(--muted); text-decoration: none; }
.footer__links a:hover { color: var(--accent); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
