:root {
  --bg: #13151b;                       /* mezcla negro + gris oscuro */
  --surface: #1b1e26;                  /* tarjetas */
  --surface-2: #171a21;                /* paneles alternos */
  --surface-3: #0f1116;                /* gris más profundo */
  --border: #2a2e38;                   /* borde sutil sobre oscuro */
  --text: #e9eef6;                     /* texto claro */
  --text-strong: #ffffff;
  --text-dim: #aeb8c7;                  /* gris claro */
  --text-mute: #8a93a3;                 /* gris medio */
  --blue: #2562E8;                      /* azul solicitado */
  --blue-hover: #1d4ed8;
  --blue-soft: rgba(37, 98, 232, 0.16);
  --pastel: #18233f;                    /* azul profundo para detalles */
  --pastel-deep: #21304f;
  --radius: 16px;
  --maxw: 1160px;
  /* Easing tipo Apple: asentado suave, sin rebote para UI general */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1); /* leve overshoot solo en press/hover */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Glassmorphism ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 17, 21, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}

.logo strong { font-weight: 800; color: var(--text); }

.logo-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid rgba(37, 99, 235, 0.22);
}
.logo-img { height: 30px; width: auto; display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 22px;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .14s var(--ease-out), box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
  border: 1px solid transparent;
  will-change: transform;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
/* Feedback inmediato al presionar (Apple: responder en pointer-down) */
.btn:active { transform: scale(0.97); transition: transform 80ms ease-out; }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.btn-primary {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 8px 24px -10px rgba(37, 99, 235, 0.45);
}
.btn-primary:hover {
  background: var(--blue-hover);
  box-shadow: 0 10px 28px -10px rgba(37, 99, 235, 0.55);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: #cbd5e1; background: var(--surface-2); }

.btn-sm { padding: 9px 16px; font-size: 0.875rem; border-radius: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 84px; background: linear-gradient(180deg, var(--pastel) 0%, var(--bg) 62%); }

.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 420px;
  background: radial-gradient(circle at center, rgba(37, 98, 232, 0.18), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 820px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  margin-bottom: 28px;
}
.hero-badge svg { width: 15px; height: 15px; color: var(--blue); }
.hero-badge { background: var(--pastel); border-color: var(--pastel-deep); }

.hero-title {
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
}
.text-blue { color: var(--blue); }

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-mute);
}
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 15px; height: 15px; color: var(--blue); }

/* ---------- Section ---------- */
.section { padding: 72px 0; }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}
.section-head h1,
.section-head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.section-head p { color: var(--text-dim); margin: 0; }

/* ---------- Dual grid ---------- */
.dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.card:hover { border-color: rgba(37,99,235,0.35); background: var(--surface-2); transform: translateY(-2px); }

.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }

.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--blue);
}
.card-icon svg { width: 24px; height: 24px; }

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-mute);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 11px;
}

.card h3 { font-size: 1.3rem; font-weight: 700; color: var(--text-strong); letter-spacing: -0.01em; margin: 0 0 10px; }
.card > p { color: var(--text-dim); font-size: 0.95rem; margin: 0 0 20px; }

.card-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.card-list li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--text-strong); }
.card-list svg { width: 17px; height: 17px; color: var(--blue); flex-shrink: 0; }

/* ---------- Benefits ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.benefit {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: border-color .2s ease, transform .2s ease;
}
.benefit:hover { border-color: rgba(37,99,235,0.3); transform: translateY(-2px); }

.benefit-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--pastel);
  border: 1px solid var(--pastel-deep);
  color: var(--text-dim);
  margin-bottom: 18px;
}
.benefit-icon svg { width: 23px; height: 23px; }

.benefit h3 { font-size: 1.12rem; font-weight: 700; color: var(--text-strong); margin: 0 0 8px; }
.benefit p { color: var(--text-mute); font-size: 0.92rem; margin: 0; }

/* ---------- CTA ---------- */
.cta { padding: 24px 0 96px; }

.cta-box {
  position: relative;
  overflow: hidden;
  text-align: center;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--pastel) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
}
.cta-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 540px;
  height: 320px;
  background: radial-gradient(circle at center, rgba(37, 98, 232, 0.20), transparent 65%);
  pointer-events: none;
}
.cta-box h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 800; color: var(--text); margin: 0 0 12px; }
.cta-box p { color: var(--text-dim); max-width: 520px; margin: 0 auto 18px; }
.cta-box .hero-cta { margin: 28px 0 0; }
.cta-box > *, .cta-box .hero-cta { position: relative; z-index: 1; }

/* ---------- Contact form ---------- */
.link-blue { color: var(--blue); font-weight: 600; }
.link-blue:hover { text-decoration: underline; }

.form-wrap { max-width: 620px; }
.form-head { text-align: center; margin-bottom: 40px; }
.form-head h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; }
.form-head p { color: var(--text-dim); margin: 0 auto; max-width: 480px; }

.lead-form {
  display: grid;
  gap: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.field { display: grid; gap: 7px; }
.field span { font-size: 0.85rem; font-weight: 600; color: var(--text-strong); }
.field input,
.field textarea {
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  resize: vertical;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.btn-block { width: 100%; margin-top: 4px; }
.form-note { text-align: center; font-size: 0.82rem; color: var(--text-mute); margin: 0; }

/* ---------- Screenshots ---------- */
.shots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.shot { margin: 0; }
.shot-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface-2);
}
.shot-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-mute);
  font-weight: 600;
  font-size: 1rem;
}
.shot-placeholder small { font-weight: 500; color: var(--text-dim); }
.shot figcaption { margin-top: 12px; font-size: 0.9rem; color: var(--text-dim); }
.center { text-align: center; }

@media (max-width: 820px) {
  .shots-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 32px 0; background: var(--surface-2); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-mute);
}
.footer-links { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-email { display: inline-flex; align-items: center; gap: 8px; }
.footer-email svg { width: 15px; height: 15px; color: var(--text-dim); }
.footer a:hover { color: var(--text); }

/* ---------- Scroll reveal (suave, tipo spring asentado) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); will-change: opacity, transform; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive (mobile first adjustments) ---------- */
@media (max-width: 900px) {
  .dual-grid, .benefits-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero { padding: 64px 0 56px; }
  .section { padding: 52px 0; }
  .btn { padding: 13px 18px; font-size: 0.9rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .card { padding: 24px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .cta-box { min-height: auto; padding: 26px 20px; }
}

/* ---------- Nav links + mobile menu ---------- */
.nav { position: relative; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 0.92rem; font-weight: 600; color: var(--text-dim); transition: color .2s ease; }
.nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle:hover { color: var(--text); border-color: #cbd5e1; }

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: grid; }
  .site-header.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 34px -22px rgba(15, 23, 42, 0.28);
    padding: 12px 24px 16px;
    z-index: 55;
  }
  .site-header.nav-open .nav-links a { display: block; padding: 11px 0; border-bottom: 1px solid var(--border); width: 100%; }
  .site-header.nav-open .nav-links li:last-child a { border-bottom: none; }
}

/* ---------- Sección alternativa ---------- */
.section-alt { background: var(--surface-2); }

/* ---------- Pasos ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  overflow: hidden;
}
.step-num {
  position: absolute;
  top: 14px;
  right: 20px;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--pastel-deep);
  line-height: 1;
}
.step-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--pastel);
  border: 1px solid var(--pastel-deep);
  color: var(--blue);
  margin-bottom: 18px;
}
.step-icon svg { width: 23px; height: 23px; }
.step h3 { font-size: 1.12rem; font-weight: 700; color: var(--text-strong); margin: 0 0 8px; }
.step p { color: var(--text-mute); font-size: 0.92rem; margin: 0; }

/* ---------- Planes ---------- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  gap: 20px;
  justify-content: center;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.plan:hover { border-color: rgba(37, 99, 235, 0.35); transform: translateY(-2px); }
.plan-featured {
  border-color: rgba(37, 99, 235, 0.45);
  background: linear-gradient(180deg, var(--pastel) 0%, var(--surface) 100%);
  box-shadow: 0 18px 44px -22px rgba(37, 99, 235, 0.4);
}
.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-name { font-size: 1.25rem; font-weight: 800; color: var(--text); margin: 0 0 6px; }
.plan-desc { color: var(--text-dim); font-size: 0.92rem; margin: 0 0 18px; }
.plan-price { font-size: 1.05rem; font-weight: 700; color: var(--blue); margin-bottom: 20px; }
.plan-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--text-strong); }
.plan-list svg { width: 16px; height: 16px; color: var(--blue); margin-top: 3px; flex-shrink: 0; }
.plan .btn { margin-top: auto; }
.plans-note { text-align: center; font-size: 0.92rem; color: var(--text-mute); margin: 28px 0 0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 720px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq-item[open] { border-color: rgba(37, 99, 235, 0.45); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text-strong);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue); }
.faq-chevron { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; transition: transform .2s ease; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item p { margin: 0; padding: 0 22px 20px; font-size: 0.93rem; color: var(--text-dim); }

/* ---------- Botón flotante WhatsApp ---------- */
.float-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 26px -10px rgba(37, 211, 102, 0.6);
  z-index: 60;
  transition: transform .35s var(--ease-spring), box-shadow .2s ease;
}
.float-whatsapp:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 16px 32px -10px rgba(37, 211, 102, 0.7); }
.float-whatsapp svg { width: 28px; height: 28px; }

/* ---------- Ilustraciones (capturas) ---------- */
.shot-placeholder.illustration { gap: 3px; text-align: center; }
.illustration-svg { width: 150px; max-width: 76%; height: auto; margin-bottom: 8px; }
.shot-placeholder.illustration span { font-weight: 700; font-size: 1.05rem; color: var(--text-strong); }
.shot-placeholder.illustration small { font-weight: 500; color: var(--text-dim); font-size: 0.85rem; }

/* ---------- Utilidades ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ---------- TL;DR / Key Takeaways ---------- */
.takeaways { padding-top: 0; }
.tldr-box {
  background: linear-gradient(180deg, var(--pastel) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px 30px;
  box-shadow: 0 14px 36px -22px rgba(15, 23, 42, 0.22);
}
.tldr-title {
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 22px;
  text-align: center;
}
.tldr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.tldr-list li { display: flex; align-items: flex-start; gap: 14px; }
.tldr-icon {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  border: 1px solid rgba(37, 99, 235, 0.45);
}
.tldr-icon svg { width: 24px; height: 24px; }
.tldr-list li > div { color: var(--text-dim); font-size: 0.95rem; padding-top: 4px; }
.tldr-list strong { color: var(--text-strong); }

/* ---------- Botones de compartir ---------- */
.share-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-top: 28px; padding-top: 22px;
  border-top: 1px solid var(--border);
}
.share-label { font-size: 0.85rem; font-weight: 600; color: var(--text-mute); }
.share-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  font: inherit; font-size: 0.78rem; font-weight: 700;
  transition: transform .15s ease, border-color .2s ease, color .2s ease, background .2s ease;
}
.share-btn svg { width: 19px; height: 19px; }
.share-btn:hover { color: var(--blue); border-color: rgba(37,99,235,0.4); transform: translateY(-2px); background: var(--surface); }

/* ---------- Tabla comparativa (Antes/Después) ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--surface); }
.compare-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.compare-table th, .compare-table td { text-align: left; padding: 16px 18px; font-size: 0.92rem; border-bottom: 1px solid var(--border); }
.compare-table thead th {
  background: var(--pastel);
  color: var(--text-strong);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}
.compare-table thead th:last-child { color: #fff; }
.compare-table tbody th[scope="row"] { color: var(--text-strong); font-weight: 700; width: 22%; }
.compare-table tbody td { color: var(--text-dim); }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:nth-child(even) { background: var(--surface-2); }

/* ---------- Related / Clusters de interlinking ---------- */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.related-card:hover { border-color: rgba(37,99,235,0.35); transform: translateY(-2px); box-shadow: 0 22px 48px -22px rgba(37,99,235,0.3); }
.related-card h3 { font-size: 1.12rem; font-weight: 700; color: var(--text-strong); margin: 0 0 8px; }
.related-card p { color: var(--text-dim); font-size: 0.92rem; margin: 0 0 16px; }
.related-link { margin-top: auto; color: var(--blue); font-weight: 700; font-size: 0.9rem; }

/* ---------- Estados del formulario Formspree ---------- */
.form-success { text-align: center; font-size: 0.92rem; font-weight: 600; color: #34d399; margin: 0; }
.form-error { text-align: center; font-size: 0.88rem; color: #f87171; margin: 0; }
.lead-form button[disabled] { opacity: 0.7; cursor: not-allowed; }

/* ---------- CTA fijo en móvil (solo móvil) ---------- */
.mobile-sticky-cta { display: none; }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1ebe5d; }

@media (max-width: 600px) {
  .mobile-sticky-cta {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 70;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(15, 17, 21, 0.82);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .mobile-sticky-cta .btn { flex: 1; width: auto; }
  /* En móvil ocultamos el botón flotante para evitar solaparse con la barra fija */
  .float-whatsapp { display: none; }
  .related-grid { grid-template-columns: 1fr; }
}

/* ---------- Animaciones elegantes ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}
@keyframes glowPulseSoft {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Entrada escalonada del hero */
.hero-badge,
.hero-title,
.hero-subtitle,
.hero-cta,
.hero-note {
  animation: fadeUp 1.7s ease both;
}
.hero-title { animation-delay: 0.08s; }
.hero-subtitle { animation-delay: 0.16s; }
.hero-cta { animation-delay: 0.24s; }
.hero-note { animation-delay: 0.32s; }

/* Glows vivos */
.hero-glow { animation: glowPulse 7s ease-in-out infinite; }
.cta-glow { animation: glowPulseSoft 6s ease-in-out infinite; }

/* Subrayado animado en la navegación */
.nav-links a { position: relative; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 100%;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

/* Flotación suave de las tarjetas de pasos al aparecer */
.step-icon { animation: floatY 5s ease-in-out infinite; }

/* Entrada del header al cargar */
@keyframes headerIn {
  from { opacity: 0; transform: translateY(-100%); }
  to { opacity: 1; transform: none; }
}
.site-header { animation: headerIn 1.6s ease both; }

/* Sombras suaves y elegantes */
.card,
.benefit,
.step,
.plan:not(.plan-featured),
.cta-box,
.lead-form {
  box-shadow: 0 14px 36px -22px rgba(15, 23, 42, 0.22);
}
.card:hover,
.benefit:hover,
.step:hover {
  box-shadow: 0 22px 48px -22px rgba(37, 99, 235, 0.30);
}
.plan:hover { box-shadow: 0 22px 48px -22px rgba(37, 99, 235, 0.32); }
.btn-primary { box-shadow: 0 10px 26px -10px rgba(37, 99, 235, 0.55); }
.btn-primary:hover { box-shadow: 0 14px 32px -10px rgba(37, 99, 235, 0.65); }

/* Swing del botón de WhatsApp: 3 repeticiones, más lento */
.btn-primary.animate__swing {
  animation-iteration-count: 1;
  animation-duration: 0.8s;
  animation-timing-function: ease-in-out;
}

/* Pulso del botón flotante: arranca 3 min después de cargar */
@keyframes waPulseScale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.float-whatsapp.animate__pulse {
  animation: waPulseScale 1.6s ease-in-out 180s infinite !important;
}

/* ---------- Responsive additions ---------- */
@media (max-width: 900px) {
  .steps-grid, .plans-grid { grid-template-columns: 1fr; }
  .plan-featured { box-shadow: 0 14px 34px -20px rgba(37, 99, 235, 0.4); }
}

/* ---------- Feedback táctil (Apple: responder en pointer-down) ---------- */
.card, .plan, .benefit, .step, .related-card {
  transition: transform .18s var(--ease-out), border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.card:active, .plan:active, .benefit:active, .step:active, .related-card:active { transform: scale(0.99); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Glass edge detail (brillo en esquinas tipo objeto físico) ---------- */
.card, .plan, .benefit, .step, .related-card, .tldr-box, .cta-box, .lead-form {
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* ---------- Sección contacto: ancho de formulario ---------- */
#contacto { display: block; }
#contacto .container { width: 100%; }
.cta-box .lead-form {
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
}

/* ---------- Reduced transparency ---------- */
@media (prefers-reduced-transparency: reduce) {
  .site-header, .mobile-sticky-cta, .float-whatsapp {
    background: rgba(15, 17, 21, 0.96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-badge, .hero-title, .hero-subtitle, .hero-cta, .hero-note { opacity: 1; transform: none; }
}