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

:root {
  --bg: #0f0f13;
  --bg-2: #17171d;
  --bg-3: #1e1e26;
  --border: rgba(255,255,255,0.08);
  --text: #f0f0f4;
  --text-muted: #8b8b9a;
  --accent: #6c63ff;
  --accent-hover: #5a52e0;
  --accent-glow: rgba(108, 99, 255, 0.3);
  --green: #22c55e;
  --yellow: #eab308;
  --red: #ef4444;
  --radius: 12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg);
  background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

a { text-decoration: none; color: inherit; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  padding: 10px 22px;
  white-space: nowrap;
}
.btn-sm { padding: 7px 16px; font-size: 0.875rem; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-full { width: 100%; }

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

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

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 19, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.5px; }
.accent { color: var(--accent); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(108,99,255,0.22) 0%, transparent 70%);
}
.badge {
  display: inline-block;
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.4);
  color: #a29bff;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}
.hero h1 {
  max-width: 780px;
  margin: 0 auto 20px;
}
.hero-sub {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
  font-size: 1.1rem;
}
.hero-trust {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 20px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============================================================
   PROBLEMA
   ============================================================ */
.problem {
  padding: 80px 0;
  background: rgba(23, 23, 29, 0.88);
}
.problem h2 { text-align: center; margin-bottom: 48px; }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.problem-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.problem-icon { font-size: 2rem; }
.problem-card p { color: var(--text-muted); }

/* ============================================================
   SOLUCIÓN
   ============================================================ */
.solution {
  padding: 80px 0;
}
.solution-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.tag {
  display: inline-block;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.3);
  color: var(--green);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.solution-text h2 { margin-bottom: 16px; }
.solution-text p { color: var(--text-muted); margin-bottom: 24px; }
.solution-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.solution-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.solution-list li::before { content: ''; display: none; }

/* Report preview */
.report-preview {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.report-header {
  background: var(--bg-3);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #22c55e; }
.report-title { font-size: 0.78rem; color: var(--text-muted); margin-left: 4px; }
.report-body { padding: 24px; }
.report-score {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 20px;
}
.score-num { font-size: 3rem; font-weight: 800; color: var(--red); line-height: 1; }
.score-label { font-size: 1.2rem; color: var(--text-muted); }
.score-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.score-badge.critical { background: rgba(239,68,68,0.15); color: var(--red); }
.report-items { display: flex; flex-direction: column; gap: 10px; }
.report-item {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
}
.report-item.bad { background: rgba(239,68,68,0.08); color: #fca5a5; border: 1px solid rgba(239,68,68,0.2); }
.report-item.warn { background: rgba(234,179,8,0.08); color: #fde68a; border: 1px solid rgba(234,179,8,0.2); }
.report-item.ok { background: rgba(34,197,94,0.08); color: #86efac; border: 1px solid rgba(34,197,94,0.2); }

/* ============================================================
   PRODUCTOS / PRICING
   ============================================================ */
.productos {
  padding: 80px 0;
  background: rgba(23, 23, 29, 0.88);
}
.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-header p { color: var(--text-muted); margin-top: 10px; font-size: 1.05rem; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.pricing-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 16px 48px var(--accent-glow);
}
.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 4px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.pricing-top { flex: 1; }
.pricing-icon { font-size: 2rem; margin-bottom: 12px; }
.pricing-card h3 { margin-bottom: 10px; }
.pricing-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; line-height: 1.5; }
.pricing-bottom { margin-top: auto; }
.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 20px;
}
.price-num { font-size: 2.4rem; font-weight: 800; }
.price-before { color: var(--text-muted); text-decoration: line-through; font-size: 1rem; }
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 28px;
}
.pricing-features li { font-size: 0.9rem; color: var(--text-muted); }
.pricing-features li:first-child { color: var(--text); }

/* ============================================================
   CÓMO FUNCIONA
   ============================================================ */
.howto {
  padding: 80px 0;
}
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.step {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  flex: 1;
  min-width: 200px;
  max-width: 280px;
}
.step-num {
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.step h4 { margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.9rem; }
.step-arrow { font-size: 1.5rem; color: var(--text-muted); }

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  padding: 80px 0;
  background: rgba(23, 23, 29, 0.88);
}
.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 24px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--accent);
  transition: transform 0.2s;
  font-weight: 400;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  padding: 0 24px 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final {
  padding: 100px 0;
  text-align: center;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(108,99,255,0.2) 0%, transparent 70%);
}
.cta-final h2 { margin-bottom: 16px; }
.cta-final p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 36px;
  font-size: 1.05rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { color: var(--text-muted); font-size: 0.875rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .solution-inner { grid-template-columns: 1fr; gap: 48px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .footer-inner { justify-content: center; text-align: center; }
  .hero-trust { gap: 16px; }
}

@media (max-width: 480px) {
  .hero { padding: 70px 0 60px; }
  .problem, .solution, .productos, .howto, .faq, .cta-final { padding: 60px 0; }
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.comparison {
  padding: 80px 0;
}
.comparison-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.comp-col { display: flex; flex-direction: column; }
.comp-header {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.comp-bad .comp-header { background: rgba(239,68,68,.1); color: var(--red); }
.comp-medium .comp-header { background: rgba(234,179,8,.1); color: var(--yellow); }
.comp-good .comp-header { background: rgba(108,99,255,.15); color: #a29bff; }
.comp-header-good { color: var(--accent) !important; }
.comp-row {
  padding: 13px 20px;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
  flex: 1;
}
.comp-row:last-child { border-bottom: none; }
.comp-bad { background: rgba(239,68,68,.04); }
.comp-medium { background: rgba(234,179,8,.04); border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.comp-good { background: rgba(108,99,255,.06); }
.comp-good .comp-row { color: var(--text); font-weight: 500; }
@media(max-width:768px) { .comparison-table { grid-template-columns: 1fr; } .comp-medium { border-left: none; border-right: none; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); } }

/* ============================================================
   GUARANTEE BADGE
   ============================================================ */
.guarantee-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(34,197,94,.08);
  border: 1px solid rgba(34,197,94,.2);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-top: 24px;
}
.guarantee-icon { font-size: 1.5rem; flex-shrink: 0; }
.guarantee-badge strong { display: block; font-size: .9rem; color: var(--green); }
.guarantee-badge span { font-size: .82rem; color: var(--text-muted); }

/* ============================================================
   PRICING FOOTER
   ============================================================ */
.pricing-footer {
  text-align: center;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  padding: 80px 0;
  background: rgba(23, 23, 29, 0.88);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonial-card.featured-testimonial {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 32px var(--accent-glow);
}
.testimonial-stars { color: #f59e0b; font-size: 1rem; letter-spacing: 2px; }
.testimonial-text {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.65;
  flex: 1;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: .9rem; }
.testimonial-author span { font-size: .78rem; color: var(--text-muted); }
@media(max-width:768px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CTA TRUST STRIP
   ============================================================ */
.cta-trust {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.875rem;
  flex-wrap: wrap;
}

/* Misc */
.btn-ghost { background: transparent; color: var(--text-muted); border-color: transparent; }
.btn-ghost:hover { color: var(--text); }
.hide-mobile { display: inline-flex; }
@media(max-width:600px) { .hide-mobile { display: none; } }
