/* ============================================================
   Repers — sitio oficial
   Tokens de diseño heredados de la app
   ============================================================ */
:root {
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --ink: #1D1D1F;
  --ink-soft: #6E7076;
  --ink-faint: #A2A4A8;
  --accent: #0071E3;
  --accent-dark: #0058B0;
  --accent-deep: #0B3FBF;
  --accent-glow: rgba(0, 113, 227, 0.35);
  --accent-tint: #EAF4FF;
  --line: rgba(0, 0, 0, 0.06);
  --p-red: #E8483C;
  --p-blue: #3C6FE8;
  --p-yellow: #F2B33D;
  --p-green: #3DAA6E;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, .display { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(245, 247, 250, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; text-decoration: none; }
.nav-brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 2px 8px var(--accent-glow); }
.nav-links { display: flex; align-items: center; gap: clamp(10px, 2.5vw, 26px); }
.nav-links a { text-decoration: none; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent); color: #fff !important; padding: 9px 18px; border-radius: 999px;
  box-shadow: 0 4px 14px var(--accent-glow); transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px var(--accent-glow); }

/* Language toggle */
.lang-toggle {
  display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 3px; gap: 2px; box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.lang-toggle button {
  border: 0; background: transparent; font: 600 12.5px var(--font-body); color: var(--ink-soft);
  padding: 5px 11px; border-radius: 999px; cursor: pointer; transition: all 0.2s;
}
.lang-toggle button.active { background: var(--accent); color: #fff; }

/* ---------- Fondo animado ---------- */
.blobs { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; animation: drift 22s ease-in-out infinite alternate; }
.blob-1 { width: 480px; height: 480px; background: var(--accent-tint); top: -120px; right: -100px; }
.blob-2 { width: 380px; height: 380px; background: rgba(60,111,232,0.16); bottom: 8%; left: -140px; animation-delay: -7s; }
.blob-3 { width: 300px; height: 300px; background: rgba(242,179,61,0.13); top: 45%; right: -80px; animation-delay: -14s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-60px, 50px) scale(1.15); }
}

/* Partículas (confetti flotante sutil) */
.particles { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.particle { position: absolute; border-radius: 4px; opacity: 0.55; animation: floaty linear infinite; }
@keyframes floaty {
  0% { transform: translateY(110vh) rotate(0deg); }
  100% { transform: translateY(-10vh) rotate(360deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: clamp(126px, 15vw, 158px) 20px 56px;
}
.hero-logo-wrap { position: relative; width: clamp(130px, 18vw, 180px); margin-bottom: 26px; }
.hero-logo {
  width: 100%; height: auto; aspect-ratio: 1; border-radius: 26%;
  box-shadow: 0 24px 60px rgba(11, 63, 191, 0.35), 0 6px 18px rgba(11, 63, 191, 0.25);
  animation: bob 5s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-16px) rotate(1.5deg); }
}
/* mini-badges orbitando el logo */
.orb {
  position: absolute; width: 52px; height: 52px; border-radius: 16px; background: var(--surface);
  display: grid; place-items: center; font-size: 24px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.12); border: 1px solid var(--line);
  animation: bob 6s ease-in-out infinite;
}
.orb-1 { top: -6px; left: -34px; animation-delay: -1.2s; }
.orb-2 { bottom: 18px; right: -38px; animation-delay: -2.8s; }
.orb-3 { top: 42%; left: -56px; animation-delay: -4.2s; }

.hero h1 {
  font-size: clamp(38px, 6.6vw, 72px); font-weight: 700;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span { display: inline-block; animation: rise 0.9s var(--ease) both; }
.hero h1 .line:nth-child(2) span { animation-delay: 0.12s; color: var(--accent); }
.hero h1 .line:nth-child(3) span {
  animation-delay: 0.24s;
  color: transparent;
  -webkit-text-stroke: 2.5px var(--ink);
  paint-order: stroke fill;
}
@keyframes rise {
  from { transform: translateY(105%); }
  to { transform: translateY(0); }
}
.hero-sub {
  max-width: 620px; margin: 18px auto 28px; font-size: clamp(15.5px, 2.1vw, 18px);
  color: var(--ink-soft); animation: fadeUp 1s 0.35s var(--ease) both;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; animation: fadeUp 1s 0.5s var(--ease) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font: 600 16px var(--font-body); text-decoration: none; cursor: pointer;
  padding: 15px 30px; border-radius: 16px; border: 0;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-dark)); color: #fff;
  box-shadow: 0 10px 26px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px var(--accent-glow); }
.btn-ghost {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.btn-ghost:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,0.09); }
.btn-big { font-size: 18px; padding: 18px 38px; border-radius: 18px; }

.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: var(--ink-faint); font-size: 22px; animation: bob 2.2s ease-in-out infinite; text-decoration: none;
}

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--surface); padding: 13px 0; }
.ticker-track { display: flex; width: max-content; animation: ticker 30s linear infinite; }
.ticker-track span { font: 600 14px var(--font-display); color: var(--ink-soft); white-space: nowrap; margin-right: 44px; }
.ticker-track span b { color: var(--accent); }
/* Los items se repiten 4 veces (ver HTML) con espaciado por margin, no por gap,
   así el ancho de cada tramo es idéntico y el -25% cae exacto donde empieza la
   siguiente copia: el loop no tiene salto ni se queda corto en pantallas anchas. */
@keyframes ticker { to { transform: translateX(-25%); } }

/* ---------- Secciones ---------- */
section { position: relative; }
.wrap { max-width: 1080px; margin: 0 auto; padding: clamp(48px, 6vw, 76px) 22px; }
/* Entre dos secciones "blancas" seguidas (no la banda azul, que necesita su
   propio padding completo), el padding-bottom de la primera ya separa
   visualmente: no sumar además el padding-top de la siguiente. */
section:not(.band) + section:not(.band) > .wrap { padding-top: 0; }
.kicker {
  display: inline-block; font: 700 13px var(--font-display); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-tint); padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.section-title { font-size: clamp(32px, 5.5vw, 52px); font-weight: 700; margin-bottom: 14px; }
.section-sub { color: var(--ink-soft); font-size: 17px; max-width: 620px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Features */
.grid { display: grid; gap: 18px; margin-top: 44px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.card:hover { transform: translateY(-6px) rotate(-0.4deg); box-shadow: 0 18px 40px rgba(0,0,0,0.09); }
.card .icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  font-size: 26px; margin-bottom: 16px;
}
.icon-red { background: rgba(232,72,60,0.12); }
.icon-blue { background: var(--accent-tint); }
.icon-yellow { background: rgba(242,179,61,0.15); }
.icon-green { background: rgba(61,170,110,0.13); }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 14.5px; }

/* Pasos */
.steps { display: grid; gap: 18px; margin-top: 44px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: paso; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px;
  position: relative; overflow: hidden;
}
.step::before {
  counter-increment: paso; content: counter(paso);
  position: absolute; right: 10px; top: -14px;
  font: 700 110px var(--font-display); color: var(--accent-tint); line-height: 1; z-index: 0;
}
.step > * { position: relative; z-index: 1; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 14.5px; }

/* Banda azul (avatar/market) */
.band {
  background: linear-gradient(160deg, var(--accent-deep) 0%, var(--accent) 55%, #2E8BFF 100%);
  color: #fff; border-radius: clamp(24px, 4vw, 40px);
  margin: 0 clamp(10px, 3vw, 34px); overflow: hidden; position: relative;
}
.band .wrap { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 820px) { .band .wrap { grid-template-columns: 1.1fr 0.9fr; } }
.band h2 { font-size: clamp(30px, 4.6vw, 46px); margin-bottom: 14px; }
.band p { opacity: 0.92; font-size: 16.5px; max-width: 480px; }
.band .chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.band .chip {
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.25);
  padding: 8px 16px; border-radius: 999px; font: 600 13.5px var(--font-body); backdrop-filter: blur(4px);
}
.band-art { display: grid; place-items: center; }
.band-art img { width: clamp(180px, 24vw, 260px); height: auto; aspect-ratio: 1; border-radius: 26%; box-shadow: 0 30px 70px rgba(0,0,0,0.35); animation: bob 6s ease-in-out infinite; }

/* ---------- Feedback ---------- */
.feedback-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 26px;
  padding: clamp(28px, 4.5vw, 56px); margin: 40px auto 0; box-shadow: 0 10px 40px rgba(0,0,0,0.05);
  max-width: 760px;
}
.feedback-card textarea { min-height: 160px; font-size: 16px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 22px; }
.chip-btn {
  border: 1.5px solid var(--line); background: var(--bg); border-radius: 999px;
  font: 600 14px var(--font-body); color: var(--ink-soft); padding: 9px 18px; cursor: pointer;
  transition: all 0.2s;
}
.chip-btn:hover { border-color: var(--accent); color: var(--accent); }
.chip-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 4px 14px var(--accent-glow); }
.field-label { display: block; font: 600 14px var(--font-body); margin-bottom: 8px; }
textarea, input[type="text"], input[type="email"] {
  width: 100%; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg);
  font: 400 15px var(--font-body); color: var(--ink); padding: 14px 16px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s; resize: vertical;
}
textarea:focus, input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0,113,227,0.12); background: #fff; }
textarea { min-height: 130px; }
.form-row { margin-bottom: 20px; }
.form-note { font-size: 12.5px; color: var(--ink-faint); margin-top: 10px; }
.form-msg { margin-top: 16px; font: 600 15px var(--font-body); display: none; }
.form-msg.ok { display: block; color: var(--p-green); }
.form-msg.err { display: block; color: var(--p-red); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-wrap {
  max-width: 1080px; margin: 0 auto; padding: 40px 22px;
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
}
.footer-wrap .nav-brand img { width: 28px; height: 28px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 13.5px; color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-note { font-size: 12.5px; color: var(--ink-faint); width: 100%; }

/* ---------- Página beta ---------- */
.beta-hero { min-height: 88svh; display: flex; align-items: center; }
.beta-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(242,179,61,0.16); color: #A96F0E; border: 1px solid rgba(242,179,61,0.4);
  font: 700 13px var(--font-display); letter-spacing: 0.1em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 20px;
}
.beta-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--p-yellow); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: 0.5; } }
.tf-note {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--accent-tint); border-radius: 16px; padding: 16px 18px; margin-top: 26px;
  font-size: 14px; color: var(--accent-dark); max-width: 560px;
}

/* Confetti burst */
.confetti-piece { position: fixed; width: 10px; height: 10px; z-index: 999; pointer-events: none; border-radius: 3px; }

/* ---------- Responsive / accesibilidad ---------- */
@media (max-width: 640px) {
  .nav-links a.nav-link-sec { display: none; }
  .orb-3 { display: none; }
  .nav { padding: 10px 14px; }
  .nav-brand { font-size: 16px; gap: 7px; }
  .nav-brand img { width: 28px; height: 28px; }
  .nav-links { gap: 8px; }
  .nav-cta { padding: 8px 13px; font-size: 13px; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
