@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700;800&family=Figtree:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --bg: #F6FAF7;
  --surface: #FFFFFF;
  --surface-soft: #EFF7F1;
  --ink: #0E1F1A;
  --ink-soft: #4B5D55;
  --muted: #7C8F87;
  --border: #E1EAE4;
  --primary: #25D366;
  --primary-dark: #075E54;
  --on-primary: #06231C;
  --accent-soft: #E7F7E9;
  --violet-bg: #EEF2FF;
  --violet: #4F46E5;
  --orange-bg: #FFF7ED;
  --orange: #EA580C;
  --pink-bg: #FDF2F8;
  --pink: #DB2777;
  --shadow: 0 10px 30px -12px rgba(7, 94, 84, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Figtree', -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Sora', 'Figtree', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

.mono { font-family: 'IBM Plex Mono', monospace; }

a { color: var(--primary-dark); }

img { max-width: 100%; display: block; }

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

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 250, 247, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand img { width: 30px; height: 30px; }
.brand span {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--primary-dark);
}
.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}
.nav-link:hover { color: var(--primary-dark); }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 40px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 12px; }
  .phone-wrap { margin: 0 auto; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--primary-dark);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--primary);
}

.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  color: var(--ink);
}
.hero h1 em {
  font-style: normal;
  color: var(--primary-dark);
}
.hero p.lead {
  margin: 20px 0 0;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14.5px;
}
.badge-soon svg { width: 20px; height: 20px; }
.badge-soon .small { display: block; font-size: 10.5px; font-weight: 500; opacity: 0.7; letter-spacing: 0.03em; text-transform: uppercase; }

.hero-note {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Phone mockup ---------- */
.phone-wrap { perspective: 1200px; }
.phone {
  width: 280px;
  margin: 0 auto;
  background: var(--primary-dark);
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow), 0 2px 0 rgba(0,0,0,0.04) inset;
  transform: rotate(2deg);
}
.phone-screen {
  background: #F0F2F5;
  border-radius: 30px;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  flex-direction: column;
}
.phone-notch {
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-notch::after {
  content: "";
  width: 90px; height: 6px;
  border-radius: 999px;
  background: rgba(0,0,0,0.15);
}
.phone-body { padding: 6px 14px 18px; flex: 1; }

.mock-pozo {
  background: var(--primary-dark);
  border-radius: 16px;
  padding: 16px;
  color: #fff;
  margin-bottom: 12px;
}
.mock-pozo .label { font-size: 10.5px; color: rgba(255,255,255,0.75); }
.mock-pozo .amount { font-family: 'Sora', sans-serif; font-size: 24px; font-weight: 700; margin-top: 4px; }
.mock-pozo .capsule {
  margin-top: 12px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}
.mock-pozo .capsule .code { font-family: 'IBM Plex Mono', monospace; }
.mock-pozo .capsule .share {
  background: #fff; color: var(--primary-dark);
  border-radius: 999px; padding: 4px 9px; font-weight: 700; font-size: 9.5px;
}

.mock-aporte {
  background: #fff;
  border: 1.3px solid var(--primary);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.mock-aporte .t { font-size: 9.5px; color: var(--muted); }
.mock-aporte .v { font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 700; margin-top: 2px; }
.mock-aporte .pill {
  background: var(--primary); color: var(--on-primary);
  font-size: 9.5px; font-weight: 700;
  padding: 7px 12px; border-radius: 999px;
}

.mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mock-tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
}
.mock-tile .dot {
  width: 26px; height: 26px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  margin-bottom: 6px;
}
.mock-tile .tt { font-size: 10px; font-weight: 700; }
.mock-tile .ts { font-size: 8.5px; color: var(--muted); margin-top: 1px; }

/* ---------- Explainer band ---------- */
.band {
  background: var(--surface-soft);
  padding: 64px 0;
  margin-top: 24px;
}
.band-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.band h2 { font-size: clamp(24px, 3.4vw, 32px); }
.band p { color: var(--ink-soft); font-size: 16.5px; margin-top: 14px; }

/* ---------- Steps ---------- */
.steps {
  padding: 72px 0;
}
.steps-head { text-align: center; max-width: 560px; margin: 0 auto 44px; }
.steps-head h2 { font-size: clamp(26px, 3.6vw, 34px); }
.steps-head p { color: var(--ink-soft); margin-top: 12px; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 780px) { .steps-grid { grid-template-columns: 1fr; } }

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 22px;
}
.step .num {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: var(--primary-dark);
  background: var(--accent-soft);
  width: 32px; height: 32px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

/* ---------- Feature grid ---------- */
.features { padding: 20px 0 76px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 2px 10px rgba(14,31,26,0.03);
}
.feature-card .dot {
  width: 42px; height: 42px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
  margin-bottom: 14px;
}
.feature-card h3 { font-size: 15.5px; margin-bottom: 6px; }
.feature-card p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }

/* ---------- Code showcase ---------- */
.showcase {
  background: var(--primary-dark);
  border-radius: 28px;
  padding: 48px 40px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  margin: 0 24px 76px;
  max-width: 1052px;
  margin-inline: auto;
}
@media (max-width: 780px) {
  .showcase { grid-template-columns: 1fr; padding: 34px 24px; text-align: left; }
}
.showcase h2 { font-size: clamp(22px, 3vw, 28px); }
.showcase p { color: rgba(255,255,255,0.78); margin-top: 12px; font-size: 15px; max-width: 42ch; }
.showcase-code {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 22px;
}
.showcase-code .msg { font-size: 12.5px; color: rgba(255,255,255,0.7); margin-bottom: 10px; }
.showcase-code .block {
  background: rgba(0,0,0,0.25);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  letter-spacing: 0.03em;
  color: #B7F5CE;
}

/* ---------- CTA ---------- */
.cta {
  padding: 20px 0 90px;
  text-align: center;
}
.cta h2 { font-size: clamp(24px, 3.4vw, 32px); }
.cta p { color: var(--ink-soft); margin: 12px 0 26px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 40px;
}
footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
footer .brand span { font-size: 15px; }
.footer-links {
  display: flex;
  gap: 22px;
  font-size: 13.5px;
}
.footer-links a { color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--primary-dark); }
.footer-note { font-size: 12.5px; color: var(--muted); width: 100%; margin-top: 4px; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Doc page (política de privacidad) ---------- */
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 90px;
}
.doc h1 { font-size: clamp(28px, 4vw, 36px); }
.doc .doc-meta {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}
.doc section { margin-top: 40px; }
.doc h2 {
  font-size: 19px;
  color: var(--primary-dark);
  margin-bottom: 12px;
}
.doc p, .doc li { color: var(--ink-soft); font-size: 15.5px; }
.doc ul { padding-left: 20px; margin: 10px 0; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--ink); }
.doc a { font-weight: 600; }
.doc .callout {
  background: var(--accent-soft);
  border: 1px solid rgba(37,211,102,0.25);
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 14px;
}
.doc .callout p { margin: 0; color: var(--ink); font-size: 14.5px; }
