/* ============================================================
   ÓRBITA — Landing promocional · Tema "Espacio profundo"
   ============================================================ */

:root {
  /* Tokens de marca (galaxia oscuro) */
  --bg: #0C0920;
  --bg-2: #120C2E;
  --surface: #131030;
  --card: #191438;
  --ink: #F1EEFF;
  --muted: #9C94C9;
  --border: #2B2550;
  --accent: #8B7CFF;
  --accent-strong: #6D5AE6;
  --accent-soft: #221C47;
  --callout: #1B1740;
  --comet: #5CC8FF;
  --star: #FFC24B;
  --danger: #E85D75;
  --ok: #34D399;

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;

  --r-sm: 8px; --r-md: 12px; --r-lg: 18px;
  --sh-md: 0 8px 24px rgba(11,7,34,.35);
  --sh-lg: 0 24px 60px rgba(11,7,34,.45);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(120% 90% at 50% -10%, #1b1240 0%, transparent 55%),
    radial-gradient(90% 70% at 100% 100%, #140d33 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 60%, var(--bg) 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

/* ---------- fondo de estrellas ---------- */
.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.starfield span {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  opacity: var(--o, 0.7);
  animation: twinkle var(--d, 3s) ease-in-out var(--dl, 0s) infinite;
}

/* ---------- barra de progreso ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  z-index: 60;
  background: linear-gradient(90deg, var(--comet), var(--accent), #F472B6);
  box-shadow: 0 0 12px rgba(139,124,255,.6);
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(12, 9, 32, .72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-color: var(--border);
  box-shadow: 0 8px 30px rgba(11,7,34,.4);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { filter: drop-shadow(0 0 10px rgba(255,180,92,.35)); }
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: .9rem; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn { color: #fff; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 8px 24px rgba(109, 90, 230, .45);
}
.btn-primary:hover { box-shadow: 0 12px 34px rgba(139,124,255,.55); transform: translateY(-2px); }
.btn-ghost {
  background: rgba(139,124,255,.06);
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(139,124,255,.12); }
.btn-sm { padding: 8px 18px; font-size: .85rem; }
.btn-lg { padding: 14px 30px; font-size: 1rem; }
.btn-xl { padding: 17px 40px; font-size: 1.05rem; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 70px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--comet);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: linear-gradient(90deg, var(--comet), transparent);
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -.02em;
}
.grad-accent {
  background: linear-gradient(100deg, var(--star) 0%, #FF8A5C 45%, var(--danger) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 22px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 30px; }
.hero-badges li { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-comet { background: var(--comet); box-shadow: 0 0 8px var(--comet); }
.dot-star { background: var(--star); box-shadow: 0 0 8px var(--star); }
.dot-ok { background: var(--ok); box-shadow: 0 0 8px var(--ok); }

/* ---------- hero visual ---------- */
.hero-visual { position: relative; }
.hero-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(11,7,34,.5));
}
.halo-pulse { animation: haloPulse 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.tw { animation: twinkle 4s ease-in-out infinite; }
.orbiter { will-change: transform; }

.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(19, 16, 48, .82);
  border: 1px solid var(--border);
  box-shadow: var(--sh-md);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.chip strong { display: block; font-size: .8rem; font-weight: 600; }
.chip small { display: block; font-size: .7rem; color: var(--muted); margin-top: 1px; }
.chip span[class^="chip-"] {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 9px;
  display: grid; place-items: center;
}
.chip-check { background: rgba(52, 211, 153, .15); }
.chip-check::after { content: "✓"; color: var(--ok); font-weight: 700; }
.chip-bell { background: rgba(255, 194, 75, .15); }
.chip-bell::after { content: "●"; color: var(--star); font-size: .6rem; }
.chip-sync { background: rgba(92, 200, 255, .15); }
.chip-sync::after { content: "↻"; color: var(--comet); font-weight: 700; }
.chip-1 { top: 6%; left: -6%; animation: chipFloat 5s ease-in-out infinite; }
.chip-2 { bottom: 14%; left: 0; animation: chipFloat 6s ease-in-out 1s infinite; }
.chip-3 { top: 30%; right: -4%; animation: chipFloat 5.5s ease-in-out .5s infinite; }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 1.1rem;
  animation: hintBob 2s ease-in-out infinite;
}

/* ---------- nebulosas decorativas ---------- */
.nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  z-index: 0;
  pointer-events: none;
}
.nebula-a { width: 520px; height: 520px; top: -140px; left: -140px; background: radial-gradient(circle, rgba(124,58,237,.55), transparent 70%); }
.nebula-b { width: 460px; height: 460px; bottom: -120px; right: -120px; background: radial-gradient(circle, rgba(236,72,153,.4), transparent 70%); }
.nebula-c { width: 380px; height: 380px; top: 30%; right: -160px; background: radial-gradient(circle, rgba(37,99,235,.45), transparent 70%); }
.nebula-d { width: 520px; height: 520px; bottom: -200px; left: -140px; background: radial-gradient(circle, rgba(124,58,237,.4), transparent 70%); }
.nebula-e { width: 560px; height: 560px; top: -200px; right: -160px; background: radial-gradient(circle, rgba(236,72,153,.35), transparent 70%); }

/* ---------- stats ---------- */
.stats { position: relative; z-index: 1; padding: 26px 0 10px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 26px 30px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: rgba(19, 16, 48, .5);
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 700;
  background: linear-gradient(100deg, var(--comet), var(--accent), #F472B6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { display: block; margin-top: 6px; font-size: .82rem; color: var(--muted); }

/* ---------- secciones ---------- */
.section { position: relative; z-index: 1; padding: 96px 0; }
.section-alt { overflow: hidden; }
.section-head { max-width: 560px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin: 0 0 40px; text-align: left; }
.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.01em;
}
.section-sub { margin-top: 16px; color: var(--muted); font-size: 1.02rem; line-height: 1.6; }

/* ---------- tarjetas de características ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(25, 20, 56, .9), rgba(19, 16, 48, .9));
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(300px 160px at 50% -20%, rgba(139,124,255,.18), transparent 70%);
  opacity: 0;
  transition: opacity .3s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--sh-lg); }
.card:hover::before { opacity: 1; }
.card-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--i, var(--accent));
  margin-bottom: 18px;
  box-shadow: inset 0 0 0 1px var(--border);
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-family: var(--font-serif); font-size: 1.18rem; font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .92rem; line-height: 1.6; }

/* ---------- cómo funciona ---------- */
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.how-visual { position: relative; }
.app-card {
  position: relative;
  z-index: 1;
  padding: 34px 30px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(25,20,56,.95), rgba(19,16,48,.95));
  box-shadow: var(--sh-lg);
  text-align: center;
  max-width: 340px;
  margin-inline: auto;
}
.app-icon {
  width: 84px; height: 84px;
  margin: 0 auto 16px;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(11,7,34,.55);
  filter: drop-shadow(0 0 18px rgba(139,124,255,.35));
}
.app-name { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; }
.app-rows { margin-top: 20px; display: grid; gap: 12px; text-align: left; }
.app-rows li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(12, 9, 32, .5);
  border: 1px solid rgba(43, 37, 80, .6);
}
.float-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 12px;
  font-size: .8rem;
  font-weight: 600;
  background: rgba(19, 16, 48, .9);
  border: 1px solid var(--border);
  box-shadow: var(--sh-md);
}
.float-chip-a { top: -18px; right: -10px; animation: chipFloat 5s ease-in-out infinite; }
.float-chip-b { bottom: -18px; left: -10px; animation: chipFloat 6s ease-in-out 1s infinite; }
.float-chip .chip-check { width: 24px; height: 24px; border-radius: 7px; }
.float-chip .chip-bell { width: 24px; height: 24px; border-radius: 7px; }

.steps { display: grid; gap: 26px; }
.steps li { display: flex; gap: 20px; }
.step-num {
  flex-shrink: 0;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: .95rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--border);
  background: rgba(139, 124, 255, .08);
  box-shadow: 0 0 20px rgba(139,124,255,.15);
}
.steps h3 { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: .95rem; line-height: 1.6; }

/* ---------- CTA ---------- */
.cta { overflow: hidden; }
.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 70px 30px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(25,20,56,.9), rgba(12,9,32,.9));
  overflow: hidden;
}
.cta-art { width: 220px; margin: 0 auto 20px; filter: drop-shadow(0 0 30px rgba(255,180,92,.3)); }
.cta-inner h2 { font-family: var(--font-serif); font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 600; line-height: 1.1; }
.cta-sub { margin: 18px auto 0; max-width: 46ch; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.cta-inner .hero-cta { justify-content: center; }
.cta-note { margin-top: 20px; font-size: .85rem; color: var(--muted); }

/* ---------- footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 34px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-tag { color: var(--muted); font-size: .85rem; margin-left: 4px; }
.footer-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: .88rem; transition: color .2s; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { color: var(--muted); font-size: .82rem; }

/* ---------- animaciones ---------- */
@keyframes twinkle {
  0%, 100% { opacity: var(--o, .7); }
  50% { opacity: .15; }
}
@keyframes haloPulse {
  0%, 100% { opacity: .8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes hintBob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 110px; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-cta, .hero-badges { justify-content: center; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: 1fr; gap: 56px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .chip-1 { left: 0; }
  .chip-3 { right: 0; }
}

@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .cards { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(2.2rem, 10vw, 3rem); }
  .hero-cta .btn { width: 100%; }
  .stats-grid { grid-template-columns: 1fr 1fr; padding: 20px; }
}

/* ---------- accesibilidad ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}
