:root {
  --bg: #050e1f;
  --bg-2: #0a1324;
  --card: rgba(117,170,219,0.05);
  --text: #f0f4ff;
  --muted: #8899bb;
  --primary: #75aadb;
  --primary-2: #c8e3f7;
  --accent: #e8b84b;
  --success: #25d366;
  --shadow: 0 20px 50px rgba(0,0,0,.5);
  --radius: 20px;
  --border: rgba(117,170,219,.2);
  --glow: rgba(117,170,219,.15);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--accent));
}

* { margin: 0; padding: 0; box-sizing: border-box; }
a { color: inherit; text-decoration: none; }

body {
  font-family: Geist, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(1500px 1200px at 70% 0%, rgba(117,170,219,.1), transparent 70%),
    radial-gradient(1200px 1000px at 20% 10%, rgba(117,170,219,.06), transparent 70%),
    radial-gradient(1800px 1200px at 50% 80%, rgba(117,170,219,.05), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ── HEADER ── */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  background: rgba(5,14,31,0.75);
  border-bottom: 1px solid rgba(117,170,219,.12);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .3px; font-family: Geist, system-ui, sans-serif; }
.logo { width: 32px; height: 32px; border-radius: 12px; display: block; flex: 0 0 auto; overflow: visible; }
.logo img { width: 100%; height: 100%; display: block; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px;
  background: var(--gradient-primary);
  color: #001d32; font-weight: 700; border-radius: 999px;
  box-shadow: 0 6px 24px rgba(117,170,219,.25);
  text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 10px 36px rgba(117,170,219,.38); }
.container { width: min(940px, 92%); margin-inline: auto; }

/* ── HERO BANNER ── */
.hero-header {
  background: linear-gradient(135deg, #050e1f 0%, #0a1324 60%, #050e1f 100%);
  border-bottom: 1px solid rgba(117,170,219,.1);
  padding: 40px 40px 36px;
  position: relative;
  overflow: hidden;
}
.hero-header::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(117,170,219,.14) 0%, transparent 70%);
  pointer-events: none;
}
.hero-header::after {
  content: '';
  position: absolute;
  bottom: -60px; left: 30%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(232,184,75,.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-header .header-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(1px 1px at 15% 25%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 45% 65%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 75% 20%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 85% 55%, rgba(255,255,255,.4), transparent);
  background-size: 200px 200px;
  opacity: .1;
  pointer-events: none;
  z-index: 0;
}
.header-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(117,170,219,.28);
  background: rgba(117,170,219,.06);
  color: var(--muted);
  font-size: 12px; font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: .02em;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary);
  animation: blink 1.4s infinite;
  flex-shrink: 0;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

h1 {
  font-family: 'Sora', Geist, system-ui, sans-serif;
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h1 .wa-green {
  background: linear-gradient(135deg, #25d366, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.subtitle {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  max-width: 580px;
}

/* ── LAYOUT ── */
main { max-width: 900px; margin: 0 auto; padding: 0 24px 80px; }

/* ── SECTIONS ── */
section {
  padding: 60px 0 0;
  position: relative;
}
section::after {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(117,170,219,.35), transparent);
  opacity: 1;
}

/* ── SECTION LABELS ── */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 999px;
  border: 1px solid rgba(117,170,219,.3);
  background: rgba(117,170,219,.06);
  color: var(--primary);
  font-size: 12px; font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.section-label svg { width: 13px; height: 13px; flex-shrink: 0; }

.section-header { margin-bottom: 28px; }
h2 {
  font-family: 'Sora', Geist, system-ui, sans-serif;
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}
h2.gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sub {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ── CARDS ── */
.card {
  background: rgba(117,170,219,.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(117,170,219,.2);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(0,0,0,.3), 0 0 60px rgba(117,170,219,.06);
  border-color: rgba(117,170,219,.35);
}

/* ── MINI CARDS ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.mini-card {
  background: rgba(117,170,219,.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(117,170,219,.2);
  border-radius: var(--radius);
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.mini-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.mini-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,.28), 0 0 40px rgba(117,170,219,.08);
  border-color: rgba(117,170,219,.38);
}
.mini-card:hover::before { opacity: 1; }

.mini-card-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(117,170,219,.15), rgba(232,184,75,.1));
  border-radius: 12px;
  border: 1px solid rgba(117,170,219,.3);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: var(--primary);
  flex-shrink: 0;
}
.mini-card-icon svg { width: 20px; height: 20px; }
.mini-card strong {
  display: block;
  font-size: 14px; font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.mini-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── ARCH WRAP ── */
.arch-wrap {
  background: rgba(117,170,219,.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(117,170,219,.2);
  border-radius: var(--radius);
  padding: 32px 24px;
  overflow-x: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}

/* ── TAGS / CHIPS ── */
.tag {
  display: inline-block;
  padding: 5px 12px;
  border: 1px dashed rgba(117,170,219,.2);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(117,170,219,.03);
  font-size: 11px;
  white-space: nowrap;
  margin: 3px;
}
.tag.green  { border-color: rgba(37,211,102,.35);  color: #25d366; }
.tag.blue   { border-color: rgba(117,170,219,.35); color: var(--primary); }
.tag.orange { border-color: rgba(249,115,22,.35);  color: #f97316; }
.tag.purple { border-color: rgba(167,139,250,.35); color: #a78bfa; }

/* ── PROVIDER STEPS ── */
.provider-steps {
  counter-reset: step;
  list-style: none;
  display: flex; flex-direction: column; gap: 14px;
}
.provider-steps li {
  counter-increment: step;
  display: flex; gap: 14px; align-items: flex-start;
}
.provider-steps li::before {
  content: counter(step);
  background: var(--gradient-primary);
  color: #001d32;
  font-size: 12px; font-weight: 800;
  min-width: 28px; height: 28px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 4px 10px rgba(117,170,219,.22);
}
.provider-steps li span { font-size: 14px; color: var(--text); line-height: 1.65; }
.provider-steps li span strong { color: var(--primary-2); font-weight: 600; }
.provider-steps li span code {
  background: rgba(117,170,219,.08);
  border: 1px solid rgba(117,170,219,.2);
  color: var(--accent);
  font-size: 12px;
  padding: 2px 8px; border-radius: 6px;
  font-family: 'Courier New', Courier, monospace;
}

/* ── PRO/CON GRID ── */
.pro-con-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px;
}
.pro-list, .con-list {
  list-style: none; display: flex; flex-direction: column; gap: 9px;
}
.pro-list li::before { content: '✓ '; color: var(--primary); font-weight: 700; }
.con-list li::before { content: '· '; color: var(--muted); }
.pro-list li { font-size: 13px; color: var(--text); line-height: 1.5; }
.con-list li { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ── EMBEDDED SIGNUP FLOW DIAGRAM ── */
.embed-flow-diagram {
  background: rgba(5,14,31,.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 22px;
  border: 1px solid rgba(117,170,219,.2);
}
.embed-flow-nodes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.embed-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 14px 18px;
  text-align: center;
  border: 1px solid;
  backdrop-filter: blur(6px);
  width: 100%;
  max-width: 260px;
  transition: border-color .25s var(--ease);
}
.embed-node .node-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border: 1px solid;
  background: rgba(117,170,219,.1);
  border-color: rgba(117,170,219,.25);
  color: var(--primary);
}
.embed-node .node-icon svg { width: 18px; height: 18px; }
.embed-node .node-label { font-size: 12px; font-weight: 700; color: var(--text); line-height: 1.3; }
.embed-node .node-sub { font-size: 10px; color: var(--muted); margin-top: 3px; }

.node-botargento { background: rgba(117,170,219,.08); border-color: rgba(117,170,219,.45); }
.node-meta-embed { background: rgba(117,170,219,.05); border-color: rgba(117,170,219,.3); }
.node-waba       { background: rgba(37,211,102,.07); border-color: rgba(37,211,102,.38); }
.node-waba .node-icon { background: rgba(37,211,102,.12); border-color: rgba(37,211,102,.3); color: #25d366; }
.node-automation { background: rgba(232,184,75,.06); border-color: rgba(232,184,75,.35); }
.node-automation .node-icon { background: rgba(232,184,75,.12); border-color: rgba(232,184,75,.3); color: var(--accent); }

.embed-arrow-down {
  width: 2px; height: 28px;
  background: rgba(117,170,219,.22);
  margin: 0 auto;
  position: relative;
}
.embed-arrow-down::after {
  content: '▼';
  position: absolute;
  bottom: -10px; left: -4px;
  color: var(--muted);
  font-size: 10px;
}

/* ── STEP MICROCOPY ── */
.step-micro {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
  font-weight: 400;
  line-height: 1.5;
}

/* ── INNER LABELS ── */
.inner-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 14px;
}
.inner-label-muted {
  font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}

/* ── HIGHLIGHT BOX ── */
.highlight-box {
  margin-top: 20px; padding: 14px 18px;
  background: rgba(117,170,219,.06);
  border: 1px solid rgba(117,170,219,.18);
  border-radius: 10px;
  font-size: 13px; color: var(--muted);
  line-height: 1.6;
}
.highlight-box strong { color: var(--primary); font-weight: 700; }

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(117,170,219,.25), transparent);
  margin: 8px 0 28px;
}

/* ── CTA BUTTON ── */
.cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gradient-primary);
  color: #001d32;
  font-size: 15px; font-weight: 800;
  padding: 14px 32px; border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(117,170,219,.28), 0 2px 8px rgba(232,184,75,.15);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s var(--ease);
  letter-spacing: .02em;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 48px rgba(117,170,219,.4), 0 4px 16px rgba(232,184,75,.2);
  filter: brightness(1.05);
}
.cta-btn-arrow {
  display: inline-block;
  transition: transform .22s var(--ease);
}
.cta-btn:hover .cta-btn-arrow { transform: translateX(4px); }

/* ── CTA FINAL ── */
.cta-final {
  background: linear-gradient(135deg, rgba(117,170,219,.08), rgba(232,184,75,.05));
  border: 1px solid rgba(117,170,219,.25);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
}
.cta-final-desc {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 28px;
  line-height: 1.7;
}
.cta-final-points {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
}
.cta-final-point {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cta-final-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 12px rgba(37,211,102,.45);
  flex: 0 0 auto;
}

/* ── FOOTER ── */
footer {
  padding: 42px 0;
  color: var(--muted);
  border-top: 1px solid rgba(117,170,219,.1);
  background: rgba(5,14,31,.6);
  margin-top: 64px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13.5px;
}
.footer-links a {
  opacity: .7;
  transition: opacity .2s;
}
.footer-links a:hover { opacity: 1; color: var(--primary); }
.footer-copy {
  font-size: 13px;
  opacity: .6;
}

/* ── FAB WHATSAPP ── */
.fab-whatsapp {
  position: fixed;
  right: 20px; bottom: 22px;
  width: 56px; height: 56px;
  border-radius: 999px;
  background: rgba(37,211,102,.92);
  backdrop-filter: blur(8px);
  color: #001b0e;
  display: grid; place-items: center;
  box-shadow: 0 8px 28px rgba(37,211,102,.3);
  z-index: 9999;
  border: 1px solid rgba(37,211,102,.4);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  animation: fabPulse 3s ease-in-out infinite;
}
.fab-whatsapp svg { width: 30px; height: 30px; display: block; }
.fab-whatsapp::before {
  content: "Escribinos por WhatsApp";
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(5,14,31,.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(117,170,219,.2);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  padding: 7px 12px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--ease);
}
.fab-whatsapp:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 36px rgba(37,211,102,.4);
  animation: none;
}
.fab-whatsapp:hover::before { opacity: 1; }
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(37,211,102,.3); }
  50% { box-shadow: 0 8px 40px rgba(37,211,102,.5), 0 0 50px rgba(37,211,102,.1); }
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-scale {
  opacity: 0;
  transform: scale(.97);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.card-grid .mini-card.reveal:nth-child(1) { transition-delay: 0ms; }
.card-grid .mini-card.reveal:nth-child(2) { transition-delay: 80ms; }
.card-grid .mini-card.reveal:nth-child(3) { transition-delay: 160ms; }
.card-grid .mini-card.reveal:nth-child(4) { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-scale { opacity: 1; transform: none; transition: none; }
}

/* ── RESPONSIVE ── */
@media(max-width: 920px) {
  .hero-header { padding: 24px 20px 20px; }
  main { padding: 0 16px 60px; }
  .pro-con-grid { grid-template-columns: 1fr; }
  .provider-grid { grid-template-columns: 1fr !important; }
}
@media(max-width: 480px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .cta-final { padding: 32px 20px; }
}
