/* ==========================================================================
   Sniper SaaS — landing publica
   Paleta heredada del dashboard (style.css). Sin frameworks, sin CDNs.
   Mobile-first; breakpoint principal a 760px.
   ========================================================================== */

:root {
  --bg: #0a0e14;
  --bg-2: #0d1117;
  --bg-card: #11151c;
  --bg-card-2: #161b24;
  --fg: #e6edf3;
  --fg-mute: #8b949e;
  --fg-dim: #6e7681;
  --accent: #00d1b2;
  --accent-2: #00a890;
  --buy: #2ea043;
  --sell: #f85149;
  --warn: #d29922;
  --border: #21262d;
  --border-soft: #1a1f29;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.55 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-2); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 720px;
}
.center { text-align: center; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: rgba(13, 17, 23, 0.85);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 50;
}
.nav .brand,
.footer .brand { display: flex; align-items: center; gap: 10px; }
.logo {
  font-weight: 900; font-size: 22px;
  letter-spacing: 2.5px; color: var(--accent);
  line-height: 1;
}
.tag { color: var(--fg-mute); font-size: 11px; letter-spacing: 1.5px; align-self: center; }

/* Emblem grafico "TP" — circular, junto al wordmark */
.emblem {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 209, 178, 0.35));
  transition: transform 0.25s ease;
}
.nav .brand:hover .emblem { transform: rotate(-8deg) scale(1.05); }
.emblem svg { width: 100%; height: 100%; display: block; }
.emblem-sm { width: 28px; height: 28px; filter: none; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link {
  color: var(--fg);
  font-size: 14px; font-weight: 500;
  transition: opacity 0.15s;
}
.nav-link:hover { color: var(--accent); }
.btn-cta-sm {
  background: var(--accent);
  color: #061a18 !important;
  padding: 9px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3px;
}
.btn-cta-sm:hover {
  background: var(--accent-2);
  color: #061a18 !important;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  padding: 80px 0 60px;
  background:
    radial-gradient(circle at 15% 25%, rgba(0,209,178,0.10), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(46,160,67,0.08), transparent 50%),
    var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;        /* el canvas no debe desbordar */
  isolation: isolate;      /* aisla z-index para que el overlay funcione */
}

/* Canvas de velas animadas — fondo ambiental. Opacity baja para que el
   texto del hero domine. blend mode 'screen' mezcla bien con el bg oscuro. */
.velas-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.32;
  mix-blend-mode: screen;
  pointer-events: none;
}

/* Overlay de gradiente que aclara los bordes del hero y resalta el centro
   para garantizar legibilidad del titulo grande. */
.hero-overlay {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, rgba(10,14,20,0.55) 0%, rgba(10,14,20,0.85) 70%, var(--bg) 100%);
  pointer-events: none;
}

.hero > .container {
  position: relative;
  z-index: 2;              /* contenido encima del canvas y el overlay */
}
.badge-eyebrow {
  display: inline-block;
  font-size: 11px; letter-spacing: 2px;
  color: var(--accent);
  background: rgba(0,209,178,0.10);
  border: 1px solid rgba(0,209,178,0.35);
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 22px;
}
.badge-eyebrow.center { display: inline-block; }
.hero-title {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 0 auto 22px;
  max-width: 900px;
  color: var(--fg);
}
.hero-sub {
  font-size: clamp(15px, 1.8vw, 19px);
  color: var(--fg-mute);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.hero-sub strong { color: var(--fg); }
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #061a18 !important;
  box-shadow: 0 4px 18px rgba(0,209,178,0.30);
}
.btn-primary:hover {
  background: var(--accent-2);
  color: #061a18 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0,209,178,0.45);
}
.btn-secondary {
  background: transparent;
  color: var(--fg) !important;
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--accent);
  color: var(--accent) !important;
}
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { display: block; width: 100%; text-align: center; margin-top: 24px; }
.hero-microcopy {
  color: var(--fg-dim);
  font-size: 13px;
  margin-top: 12px;
  margin-bottom: 56px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 880px;
  margin: 0 auto;
}
.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 16px;
}
.stat-value {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 12px;
  color: var(--fg-mute);
  line-height: 1.45;
}
.stat-label small {
  display: block;
  color: var(--fg-dim);
  font-size: 11px;
  margin-top: 4px;
}

/* ==========================================================================
   SECCIONES GENERICAS
   ========================================================================== */
.section {
  padding: 88px 0;
}
.section-alt {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
}
.section-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.4px;
  text-align: center;
  margin: 14px auto 18px;
  max-width: 780px;
}
.section-sub {
  text-align: center;
  color: var(--fg-mute);
  max-width: 680px;
  margin: 0 auto 50px;
  font-size: 16px;
}
.section-sub code {
  font-size: 13px;
  background: var(--bg-card);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--accent);
}

/* ==========================================================================
   COMO FUNCIONA — steps
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.step:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.step-num {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.step h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--fg);
}
.step p {
  font-size: 14px;
  color: var(--fg-mute);
  line-height: 1.6;
  margin: 0;
}
.step p strong { color: var(--fg); }

/* ==========================================================================
   FEATURES
   ========================================================================== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: border-color 0.2s ease;
}
.feature:hover { border-color: var(--accent); }
.feature-icon {
  font-size: 26px;
  color: var(--accent);
  margin-bottom: 14px;
  line-height: 1;
}
.feature h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--fg);
}
.feature p {
  font-size: 14px;
  color: var(--fg-mute);
  line-height: 1.65;
  margin: 0;
}

/* ==========================================================================
   METRICAS
   ========================================================================== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.metric {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 18px;
  text-align: center;
}
.metric-hl {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(0,209,178,0.06), var(--bg-card));
}
.metric-num {
  font-size: 34px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.8px;
  margin-bottom: 8px;
}
.metric-lbl {
  font-size: 14px;
  color: var(--fg);
  font-weight: 600;
  margin-bottom: 4px;
}
.metric-foot {
  font-size: 11px;
  color: var(--fg-dim);
  line-height: 1.4;
}
.micro-disclaimer {
  text-align: center;
  color: var(--fg-dim);
  font-size: 12px;
  max-width: 720px;
  margin: 36px auto 0;
  line-height: 1.6;
  font-style: italic;
}

/* ==========================================================================
   PRECIO
   ========================================================================== */
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 44px 36px;
  margin-top: 40px;
  box-shadow: var(--shadow);
  position: relative;
}
.price-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.price-tag {
  text-align: center;
  margin-bottom: 28px;
}
.price-amt {
  font-size: 52px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -1.5px;
}
.price-per {
  font-size: 18px;
  color: var(--fg-mute);
  margin-left: 8px;
}
.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}
.price-list li {
  padding: 10px 0 10px 30px;
  position: relative;
  color: var(--fg);
  font-size: 14.5px;
  border-bottom: 1px solid var(--border-soft);
}
.price-list li:last-child { border-bottom: none; }
.price-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 10px;
  color: var(--buy);
  font-weight: 800;
  font-size: 16px;
}
.price-foot {
  font-size: 12px;
  color: var(--fg-dim);
  text-align: center;
  margin-top: 18px;
  line-height: 1.6;
}

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.cta-final {
  padding: 96px 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(0,209,178,0.12), transparent 60%),
    var(--bg-2);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.cta-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 36px;
  letter-spacing: -0.3px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  padding: 60px 0 28px;
  background: var(--bg-2);
  color: var(--fg-mute);
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.6fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer h4 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--fg);
  margin: 0 0 14px;
}
.footer a {
  display: block;
  color: var(--fg-mute);
  font-size: 13px;
  margin-bottom: 8px;
}
.footer a:hover { color: var(--accent); }
.footer-tagline {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--fg-dim);
}
.footer-disclaimer {
  font-size: 12px;
  line-height: 1.6;
  color: var(--fg-dim);
  margin: 0;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  font-size: 12px;
  color: var(--fg-dim);
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   MOBILE
   ========================================================================== */
@media (max-width: 760px) {
  .nav { padding: 14px 20px; }
  .nav-links { gap: 14px; }
  .nav-link { display: none; }
  .btn-cta-sm { display: inline-block; }

  .hero { padding: 56px 0 48px; }
  .hero-cta { flex-direction: column; align-items: stretch; padding: 0 20px; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; }

  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }

  .section { padding: 60px 0; }
  .cta-final { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .price-card { padding: 32px 22px; }
  .price-amt { font-size: 42px; }
}

@media (max-width: 420px) {
  .hero-stats { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Reduce motion para usuarios sensibles */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
