/* ─── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #ffffff;
  --bg-alt: #f8f7f4;
  --text: #111111;
  --text-muted: #666666;
  --accent: #5b4cdb;
  --accent-hover: #4a3cc4;
  --accent-light: #ede9ff;
  --good: #16a34a;
  --bad: #dc2626;
  --border: #e5e5e5;
  --radius: 12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 18px;
}

/* ─── NAV ───────────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  z-index: 100;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
}

/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-outline {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}
.btn-outline:hover { background: var(--accent-light); }

.btn-ghost {
  color: var(--text-muted);
  background: transparent;
}
.btn-ghost:hover { color: var(--text); }

.btn-large {
  padding: 0.9rem 2.2rem;
  font-size: 1.1rem;
}

/* ─── HERO COMPARTIDO ───────────────────────────────────────── */
.hero { padding: 5rem 2rem; }

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

/* HERO — centered */
.hero-centered {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.hero-centered .hero-sub { margin-left: auto; margin-right: auto; }
.hero-centered .hero-actions { justify-content: center; }

/* ─── SECCIONES ─────────────────────────────────────────────── */
.section { padding: 5rem 2rem; }
.section-alt { background: var(--bg-alt); }

.container { max-width: 1000px; margin: 0 auto; }

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
  text-align: center;
  line-height: 1.2;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

/* ─── PILLARS ───────────────────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pillar {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
}

.pillar-icon { font-size: 2rem; display: block; margin-bottom: 0.75rem; }
.pillar h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.pillar p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.6; }

/* ─── COMPARATIVA ───────────────────────────────────────────── */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 680px;
  margin: 0 auto;
}

.comparison-col {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.comparison-col-good {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-light);
}

.comparison-header {
  padding: 1rem 1.5rem;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comparison-col-bad .comparison-header { background: #fef2f2; }
.comparison-col-good .comparison-header { background: var(--accent-light); }

.comparison-label-bad { color: var(--bad); }
.comparison-label-good { color: var(--accent); }

.comparison-list {
  list-style: none;
  padding: 0.75rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.comparison-list li {
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comparison-list li::before { font-size: 0.85rem; }
.comparison-list li.good { color: var(--good); }
.comparison-list li.good::before { content: "✓"; font-weight: 700; }
.comparison-list li.bad { color: var(--bad); }
.comparison-list li.bad::before { content: "✗"; font-weight: 700; }

/* ─── FEATURES ──────────────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg);
}

.feature-icon { font-size: 1.75rem; display: block; margin-bottom: 0.75rem; }
.feature h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.feature p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* ─── CTA FINAL ─────────────────────────────────────────────── */
.cta-section { background: var(--accent); }
.cta-container { text-align: center; }

.cta-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: -1px;
}

.cta-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
}

.cta-section .btn-primary {
  background: #fff;
  color: var(--accent);
}
.cta-section .btn-primary:hover { background: var(--accent-light); }

/* ─── FOOTER ────────────────────────────────────────────────── */
.footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer p { font-size: 0.85rem; color: var(--text-muted); }

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pillars { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }

  .comparison {
    grid-template-columns: 1fr;
  }

  .nav { padding: 1rem 1.25rem; }
  .hero { padding: 3rem 1.25rem; }
  .section { padding: 3.5rem 1.25rem; }
}
