/* ═══════════════════════════════════════════════
   XYGOX — Design System
   ═══════════════════════════════════════════════ */
:root {
  --bg: #05060a;
  --bg-elev: #0b0d13;
  --surface: #0c0e13;
  --surface-2: #11141c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eef1f6;
  --text-soft: #a8b0bf;
  --text-faint: #6b7280;
  --accent: #6ea8ff;
  --accent-strong: #4f82e8;
  --accent-soft: rgba(110, 168, 255, 0.12);
  --check: #7aa5f0;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --nav-h: 68px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }

/* ── Tipografía de sección ─────────────────── */
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section { padding: 110px 0; position: relative; }
.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.section__sub { color: var(--text-soft); max-width: 560px; font-size: 1.05rem; }

/* ── Botones ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
  padding: 12px 24px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease), opacity 0.25s;
  will-change: transform;
}
.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn--sm { padding: 9px 18px; font-size: 0.88rem; border-radius: 10px; }
.btn--block { width: 100%; }
.btn--primary {
  background: linear-gradient(180deg, #7fa9e6, #5b86cf);
  color: #f4f8ff;
  box-shadow: 0 10px 26px -12px rgba(91, 134, 207, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(91, 134, 207, 0.7), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.05); transform: translateY(-2px); }
.btn--outline {
  border: 1px solid var(--border-strong);
  color: var(--text-soft);
  background: transparent;
}
.btn--outline:hover:not(:disabled) { border-color: rgba(255,255,255,0.28); color: var(--text); }
.btn:disabled { cursor: default; opacity: 0.75; transform: none !important; }

/* ── Loader ────────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.loader__logo {
  width: 84px; height: 84px; object-fit: contain;
  animation: loaderFloat 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 26px rgba(110, 168, 255, 0.35));
}
.loader__word {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.25rem; letter-spacing: 0.5em; text-indent: 0.5em;
  animation: loaderFade 1.2s var(--ease) both;
}
.loader__bar { width: 140px; height: 2px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
.loader__bar-fill { display: block; height: 100%; width: 100%; background: var(--accent); transform: translateX(-100%); animation: loaderBar 1.6s var(--ease) forwards; }
@keyframes loaderFloat { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }
@keyframes loaderFade { from { opacity: 0; letter-spacing: 0.8em } to { opacity: 1 } }
@keyframes loaderBar { to { transform: translateX(0) } }

/* ── Navbar ────────────────────────────────── */
.nav {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 100;
  transition: top 0.3s var(--ease);
}
.nav__inner {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 10px 0 20px;
  border-radius: 18px;
  border: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s;
}
.nav.is-scrolled .nav__inner {
  background: rgba(9, 11, 16, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--border);
  box-shadow: 0 12px 40px -18px rgba(0, 0, 0, 0.8);
}
.nav__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.14em; }
.nav__logo { width: 28px; height: 28px; object-fit: contain; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links > a {
  padding: 8px 14px; border-radius: 10px;
  color: var(--text-soft); font-size: 0.92rem; font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav__links > a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav__links > a.is-active { color: var(--text); }
.nav__cta-mobile { display: none; }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__burger {
  display: none;
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--border);
  position: relative;
}
.nav__burger span {
  position: absolute; left: 11px; right: 11px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.nav__burger span:nth-child(1) { top: 16px; }
.nav__burger span:nth-child(2) { top: 24px; }
.nav__burger.is-open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

/* ── Hero ──────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 60px) 0 80px;
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__glow {
  position: absolute; left: 50%; top: 34%;
  width: 720px; height: 720px; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(110, 168, 255, 0.10) 0%, transparent 62%);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hero__logo {
  width: 96px; height: 96px; object-fit: contain;
  margin-bottom: 26px;
  filter: drop-shadow(0 0 34px rgba(110, 168, 255, 0.35));
  animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
.hero__brand {
  font-family: var(--font-display); font-weight: 600;
  letter-spacing: 0.55em; text-indent: 0.55em; font-size: 0.9rem;
  color: var(--accent); margin-bottom: 22px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 6.4vw, 4.4rem);
  font-weight: 700; line-height: 1.06; letter-spacing: -0.03em;
  max-width: 24ch;
}
.hero__title-accent {
  background: linear-gradient(120deg, #cfe0ff 10%, #6ea8ff 55%, #9a7bff 95%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero__sub { color: var(--text-soft); max-width: 560px; margin: 24px 0 36px; font-size: 1.08rem; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2;
}
.hero__scroll span {
  display: block; width: 24px; height: 38px;
  border: 1.5px solid var(--border-strong); border-radius: 14px;
  position: relative;
}
.hero__scroll span::after {
  content: ""; position: absolute; left: 50%; top: 7px;
  width: 4px; height: 8px; margin-left: -2px;
  border-radius: 3px; background: var(--text-faint);
  animation: scrollHint 1.8s var(--ease) infinite;
}
@keyframes scrollHint { 0% { opacity: 1; transform: translateY(0) } 70% { opacity: 0; transform: translateY(10px) } 100% { opacity: 0 } }

/* ── Intro ─────────────────────────────────── */
.intro__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: 52px;
}
.intro__item {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s;
}
.intro__item:hover { border-color: rgba(110, 168, 255, 0.35); transform: translateY(-4px); background: var(--surface-2); }
.intro__item h3 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 10px; }
.intro__item p { color: var(--text-soft); font-size: 0.94rem; }

/* ── Features ──────────────────────────────── */
.features__main {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  background: linear-gradient(145deg, var(--surface-2), var(--bg-elev));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 52px;
  margin: 52px 0 24px;
  position: relative; overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s;
  transform-style: preserve-3d;
}
.features__main::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 85% 20%, rgba(110, 168, 255, 0.08), transparent 70%);
  pointer-events: none;
}
.features__main:hover { border-color: rgba(110, 168, 255, 0.3); }
.features__chip {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid rgba(110, 168, 255, 0.25);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.features__main-copy h3 { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 14px; line-height: 1.2; }
.features__main-copy p { color: var(--text-soft); max-width: 46ch; }
.chat-demo {
  background: rgba(5, 6, 10, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow-card);
}
.chat-demo__msg {
  max-width: 85%; padding: 12px 16px; border-radius: 14px; font-size: 0.9rem; line-height: 1.5;
}
.chat-demo__msg--user {
  align-self: flex-end;
  background: linear-gradient(180deg, #7fa9e6, #5b86cf);
  color: #f4f8ff;
  border-bottom-right-radius: 4px;
}
.chat-demo__msg--ai {
  align-self: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  display: flex; gap: 6px; align-items: center; min-height: 44px;
}
.chat-demo__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  animation: chatBlink 1.2s ease-in-out infinite;
}
.chat-demo__dot:nth-child(2) { animation-delay: 0.18s; }
.chat-demo__dot:nth-child(3) { animation-delay: 0.36s; }
@keyframes chatBlink { 0%,100% { opacity: 0.25; transform: translateY(0) } 50% { opacity: 1; transform: translateY(-3px) } }

.features__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: 24px;
}
.features__card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.features__card:hover { transform: translateY(-5px); border-color: rgba(110, 168, 255, 0.35); }
.features__icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  border: 1px solid rgba(110, 168, 255, 0.22);
  color: var(--accent);
  margin-bottom: 18px;
}
.features__icon svg { width: 20px; height: 20px; }
.features__card h3 { font-family: var(--font-display); font-size: 1.02rem; margin-bottom: 8px; }
.features__card p { color: var(--text-soft); font-size: 0.92rem; }

/* ── Modelos ───────────────────────────────── */
.models__selector {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin: 52px 0 34px;
}
.models__tab {
  text-align: left;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}
.models__tab:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.models__tab.is-active {
  border-color: rgba(110, 168, 255, 0.5);
  background: linear-gradient(145deg, rgba(110, 168, 255, 0.08), var(--bg-elev));
  box-shadow: 0 0 0 1px rgba(110, 168, 255, 0.2), 0 14px 34px -20px rgba(110, 168, 255, 0.5);
}
.models__tab-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.models__tab-tag { font-size: 0.8rem; color: var(--text-faint); letter-spacing: 0.08em; text-transform: uppercase; }
.models__panel {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 52px;
  min-height: 320px;
  overflow: hidden; /* recorta los anillos orbitales decorativos en móvil */
}
.models__panel.is-switching { animation: modelSwitch 0.45s var(--ease); }
@keyframes modelSwitch { from { opacity: 0.2; transform: translateY(8px) } to { opacity: 1; transform: none } }
.models__visual { display: grid; place-items: center; }
.models__orb {
  width: 170px; height: 170px; border-radius: 50%;
  position: relative;
  background:
    radial-gradient(circle at 32% 30%, rgba(160, 195, 255, 0.55), transparent 42%),
    radial-gradient(circle at 68% 72%, rgba(140, 110, 255, 0.4), transparent 48%),
    radial-gradient(circle at 50% 50%, #10131c 58%, #060810 100%);
  border: 1px solid rgba(110, 168, 255, 0.28);
  box-shadow: 0 0 60px -14px rgba(110, 168, 255, 0.45), inset 0 0 30px rgba(110, 168, 255, 0.12);
  animation: orbSpin 14s linear infinite;
}
.models__orb span {
  position: absolute; inset: 14%;
  border-radius: 50%;
  border: 1px dashed rgba(110, 168, 255, 0.35);
  animation: orbSpin 9s linear infinite reverse;
}
.models__orb[data-variant="core"] {
  background:
    radial-gradient(circle at 50% 40%, rgba(160, 195, 255, 0.5), transparent 50%),
    radial-gradient(circle at 50% 50%, #10131c 58%, #060810 100%);
}
.models__orb[data-variant="apex"] {
  background:
    radial-gradient(circle at 32% 30%, rgba(200, 170, 255, 0.5), transparent 45%),
    radial-gradient(circle at 70% 65%, rgba(110, 168, 255, 0.45), transparent 50%),
    radial-gradient(circle at 50% 50%, #10131c 58%, #060810 100%);
}
@keyframes orbSpin { to { transform: rotate(360deg) } }
.models__level { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; font-weight: 600; }
.models__name { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.models__desc { color: var(--text-soft); margin-bottom: 22px; max-width: 52ch; }
.models__caps li {
  position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--text-soft); font-size: 0.95rem;
}
.models__caps li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 14px; height: 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(110, 168, 255, 0.4);
  border-radius: 4px;
}
.models__caps li::after {
  content: ""; position: absolute; left: 4px; top: 9.5px;
  width: 7px; height: 4px;
  border-left: 1.8px solid var(--accent); border-bottom: 1.8px solid var(--accent);
  transform: rotate(-45deg);
}

/* ═══════════════════════════════════════════════
   PLANES — estilo referencia
   ═══════════════════════════════════════════════ */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
  margin-top: 64px;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid #262a33;
  border-radius: 18px;
  padding: 30px 26px 26px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.plan:hover {
  transform: translateY(-6px);
  border-color: #3a4150;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.85);
}
.plan--popular { border-color: #3d4554; }
.plan--popular:hover { border-color: rgba(110, 168, 255, 0.45); }

/* Badges superpuestos al borde */
.plan__badge {
  position: absolute;
  top: 0; left: 26px;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan__badge--current {
  color: var(--text-soft);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
}
.plan__badge--popular {
  color: #eaf1ff;
  background: linear-gradient(180deg, #7fa9e6, #5b86cf);
  box-shadow: 0 6px 18px -6px rgba(91, 134, 207, 0.6);
  letter-spacing: 0.12em;
}

.plan__head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.plan__icon {
  width: 22px; height: 22px; color: var(--accent); flex-shrink: 0;
  display: grid; place-items: center;
}
.plan__icon svg { width: 18px; height: 18px; }
.plan__name {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 700;
  letter-spacing: 0.12em;
}
.plan__price { margin-bottom: 26px; display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.plan__amount {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.plan__period { color: var(--text-faint); font-size: 0.95rem; }

.plan__features { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; flex: 1; }
.plan__features li {
  position: relative;
  padding-left: 28px;
  color: #c6ccd8;
  font-size: 0.94rem;
  line-height: 1.5;
}
.plan__features li::before {
  content: "";
  position: absolute; left: 2px; top: 4px;
  width: 16px; height: 16px;
}
.plan__features li::after {
  content: "";
  position: absolute; left: 6px; top: 7.5px;
  width: 9px; height: 5px;
  border-left: 2px solid var(--check);
  border-bottom: 2px solid var(--check);
  transform: rotate(-45deg);
}
.plan__limits {
  font-size: 0.8rem;
  color: var(--text-faint);
  padding-top: 18px;
  margin-bottom: 18px;
  border-top: 1px solid var(--border);
  line-height: 1.5;
}

/* ── Sobre XYGOX ───────────────────────────── */
.about__story {
  display: flex; align-items: center; justify-content: center; gap: 26px;
  margin: 56px 0;
  flex-wrap: wrap;
}
.about__node {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 34px;
  text-align: center;
  min-width: 160px;
}
.about__node--core {
  border-color: rgba(110, 168, 255, 0.45);
  box-shadow: 0 0 44px -14px rgba(110, 168, 255, 0.4);
}
.about__node-label { display: block; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 6px; }
.about__node strong { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 0.04em; }
.about__link { display: flex; gap: 7px; }
.about__link i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  opacity: 0.35;
  animation: linkPulse 1.8s ease-in-out infinite;
}
.about__link i:nth-child(2) { animation-delay: 0.25s; }
.about__link i:nth-child(3) { animation-delay: 0.5s; }
@keyframes linkPulse { 0%,100% { opacity: 0.25 } 50% { opacity: 1 } }
.about__founder {
  display: flex; gap: 22px; align-items: flex-start;
  max-width: 640px; margin: 0 auto;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 34px;
}
.about__founder-mark { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.about__founder blockquote { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.45; margin-bottom: 10px; }
.about__founder cite { font-style: normal; color: var(--text-faint); font-size: 0.88rem; }

/* ── CTA final ─────────────────────────────── */
.final-cta { padding-bottom: 130px; }
.final-cta__box {
  text-align: center;
  background:
    radial-gradient(520px 240px at 50% 0%, rgba(110, 168, 255, 0.1), transparent 70%),
    var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 72px 32px;
}
.final-cta__logo {
  width: 64px; height: 64px; object-fit: contain;
  margin: 0 auto 22px;
  filter: drop-shadow(0 0 24px rgba(110, 168, 255, 0.4));
}
.final-cta__box h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 14px; letter-spacing: -0.02em; }
.final-cta__box p { color: var(--text-soft); max-width: 52ch; margin: 0 auto 30px; }

/* ── Footer ────────────────────────────────── */
.footer { border-top: 1px solid var(--border); background: #040508; padding: 64px 0 0; }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding-bottom: 48px;
}
.footer__tag { color: var(--text-faint); font-size: 0.92rem; margin: 14px 0 20px; }
.footer__social { display: flex; flex-direction: column; gap: 10px; }
.footer__social a {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text-soft); font-size: 0.92rem;
  transition: color 0.2s;
}
.footer__social a:hover { color: var(--accent); }
.footer__social svg { width: 18px; height: 18px; }
.footer__nav { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer__nav h4 {
  font-family: var(--font-display); font-size: 0.8rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 6px;
}
.footer__nav a, .footer__nav button {
  color: var(--text-soft); font-size: 0.94rem;
  transition: color 0.2s; text-align: left;
}
.footer__nav a:hover, .footer__nav button:hover { color: var(--accent); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  color: var(--text-faint); font-size: 0.85rem;
}

/* ── Modales ───────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(3, 4, 7, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.3s var(--ease);
}
.modal__card {
  position: relative;
  width: min(480px, 100%);
  max-height: min(84vh, 640px);
  overflow-y: auto;
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 40px 36px 36px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
  animation: modalIn 0.4s var(--ease);
}
.modal.is-closing .modal__card { animation: modalOut 0.25s var(--ease) forwards; }
.modal.is-closing .modal__backdrop { animation: fadeOut 0.25s var(--ease) forwards; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes fadeOut { from { opacity: 1 } to { opacity: 0 } }
@keyframes modalIn { from { opacity: 0; transform: translateY(22px) scale(0.97) } to { opacity: 1; transform: none } }
@keyframes modalOut { to { opacity: 0; transform: translateY(14px) scale(0.97) } }
.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  color: var(--text-soft);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.modal__close:hover { color: var(--text); border-color: var(--border-strong); background: rgba(255,255,255,0.05); }
.modal__close svg { width: 16px; height: 16px; }
.modal__mark { width: 52px; height: 52px; object-fit: contain; margin-bottom: 20px; filter: drop-shadow(0 0 18px rgba(110,168,255,0.35)); }
.modal__card h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 12px; letter-spacing: -0.01em; }
.modal__card p { color: var(--text-soft); font-size: 0.97rem; margin-bottom: 14px; }
.modal__card h4 {
  font-family: var(--font-display); font-size: 0.98rem;
  margin: 22px 0 8px; color: var(--text);
}
.modal__card--doc { width: min(560px, 100%); }
.modal__social { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.modal__social a {
  padding: 9px 18px; border-radius: 10px;
  border: 1px solid var(--border-strong);
  font-size: 0.88rem; font-weight: 500;
  transition: border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.modal__social a:hover { border-color: rgba(110, 168, 255, 0.5); color: var(--accent); transform: translateY(-2px); }
.modal__plan-chip {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.14em;
  color: #eaf1ff;
  background: linear-gradient(180deg, #7fa9e6, #5b86cf);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 18px;
}

/* ── Reveal on scroll ──────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ── Responsive ────────────────────────────── */
@media (max-width: 1024px) {
  .intro__grid { grid-template-columns: repeat(2, 1fr); }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .features__main { grid-template-columns: 1fr; padding: 40px; gap: 28px; }
  .models__panel { grid-template-columns: 1fr; gap: 32px; text-align: center; padding: 40px; }
  .models__visual { order: -1; }
  .models__caps li { text-align: left; }
  .models__desc { margin-inline: auto; }
  .pricing__grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; margin-top: 56px; gap: 30px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .nav__links {
    position: fixed;
    top: calc(var(--nav-h) + 22px);
    left: 16px; right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(9, 11, 16, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-strong);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.9);
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
    z-index: 99;
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links > a { padding: 13px 16px; font-size: 1rem; }
  .nav__cta-mobile { display: inline-flex; margin-top: 8px; }
  .nav__actions .btn { display: none; }
  .nav__burger { display: block; }
  .about__story { flex-direction: column; }
  .about__link { transform: rotate(90deg); }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 36px); }
  .intro__grid { grid-template-columns: 1fr; }
  .features__grid { grid-template-columns: 1fr; }
  .models__selector { grid-template-columns: 1fr; gap: 10px; }
  .models__panel { padding: 30px 24px; }
  .features__main { padding: 30px 24px; }
  .plan { padding: 28px 22px 24px; }
  .plan__badge { left: 22px; }
  .hero__cta .btn { width: 100%; }
  .about__founder { flex-direction: column; padding: 26px 24px; }
  .modal__card { padding: 32px 24px 28px; }
}

/* ── Reduced motion ────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .loader { display: none; }
}

/* ═══════════════════════════════════════════════
   ENHANCEMENTS — capa premium v2
   ═══════════════════════════════════════════════ */
@property --spin {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

::selection { background: rgba(110, 168, 255, 0.32); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: #1c2029;
  border-radius: 8px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #2b3242; }

/* Grano cinematográfico global */
body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Barra de progreso de scroll */
.progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 130;
  background: transparent;
  pointer-events: none;
}
.progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, #4f82e8, #6ea8ff, #9a7bff);
  transform-origin: 0 50%;
  transform: scaleX(0);
  box-shadow: 0 0 12px rgba(110, 168, 255, 0.6);
}

/* Aurora ambiental en el hero */
.hero__aurora {
  position: absolute; inset: -22%;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.75;
}
.hero__aurora span {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
}
.hero__aurora span:nth-child(1) {
  width: 46vw; height: 46vw;
  left: 12%; top: 6%;
  background: radial-gradient(circle, rgba(80, 120, 220, 0.16), transparent 65%);
  animation: auroraDrift1 26s ease-in-out infinite alternate;
}
.hero__aurora span:nth-child(2) {
  width: 40vw; height: 40vw;
  right: 8%; bottom: 4%;
  background: radial-gradient(circle, rgba(140, 100, 255, 0.12), transparent 65%);
  animation: auroraDrift2 32s ease-in-out infinite alternate;
}
.hero__aurora span:nth-child(3) {
  width: 30vw; height: 30vw;
  left: 38%; top: 42%;
  background: radial-gradient(circle, rgba(110, 168, 255, 0.10), transparent 60%);
  animation: auroraDrift1 22s ease-in-out infinite alternate-reverse;
}
@keyframes auroraDrift1 {
  from { transform: translate3d(-4%, -3%, 0) scale(1); }
  to   { transform: translate3d(6%, 8%, 0) scale(1.15); }
}
@keyframes auroraDrift2 {
  from { transform: translate3d(5%, 4%, 0) scale(1.1); }
  to   { transform: translate3d(-6%, -5%, 0) scale(0.95); }
}

/* Botones: brillo que recorre + magnético (JS) */
.btn--primary {
  position: relative;
  overflow: hidden;
}
.btn--primary::after {
  content: "";
  position: absolute; top: 0; left: -90%;
  width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s var(--ease);
  pointer-events: none;
}
.btn--primary:hover::after { left: 145%; }

/* Navbar: pill en el enlace activo */
.nav__links > a.is-active {
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

/* PLANES: spotlight que sigue el cursor */
.plan::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    460px circle at var(--mx, 50%) var(--my, 50%),
    rgba(110, 168, 255, 0.09),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}
.plan:hover::after { opacity: 1; }

/* PLAN POPULAR: borde de luz rotatorio */
.plan--popular::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: 19px;
  padding: 1px;
  background: conic-gradient(
    from var(--spin),
    transparent 0deg,
    rgba(110, 168, 255, 0.75) 40deg,
    rgba(154, 123, 255, 0.45) 70deg,
    transparent 110deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: spinBorder 7s linear infinite;
  pointer-events: none;
}
@keyframes spinBorder { to { --spin: 360deg; } }

/* Modelos: acento por variante + anillos orbitales */
.models__orb::before,
.models__orb::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(110, 168, 255, 0.22);
  pointer-events: none;
}
.models__orb::before {
  inset: -14%;
  border-style: dashed;
  animation: orbSpin 18s linear infinite;
}
.models__orb::after {
  inset: -28%;
  border-color: rgba(110, 168, 255, 0.12);
  animation: orbSpin 26s linear infinite reverse;
}
.models__orb[data-variant="core"] {
  box-shadow: 0 0 60px -14px rgba(120, 210, 255, 0.5), inset 0 0 30px rgba(120, 210, 255, 0.14);
  border-color: rgba(120, 210, 255, 0.35);
}
.models__orb[data-variant="apex"] {
  box-shadow: 0 0 66px -12px rgba(165, 120, 255, 0.55), inset 0 0 30px rgba(165, 120, 255, 0.16);
  border-color: rgba(165, 120, 255, 0.4);
}

/* Chat demo: cursor de escritura */
.chat-demo__msg--user .caret {
  display: inline-block;
  width: 2px; height: 1em;
  margin-left: 2px;
  background: rgba(255, 255, 255, 0.85);
  vertical-align: text-bottom;
  animation: caretBlink 0.8s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

/* Footer: wordmark gigante */
.footer {
  position: relative;
  overflow: hidden;
}
.footer__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4.5rem, 17vw, 15rem);
  line-height: 0.85;
  letter-spacing: 0.12em;
  text-indent: 0.12em;
  text-align: center;
  background: linear-gradient(180deg, rgba(110, 168, 255, 0.14), rgba(110, 168, 255, 0.0) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  pointer-events: none;
  margin-top: 26px;
  transform: translateY(14%);
}

/* Botón volver arriba */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 95;
  width: 46px; height: 46px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: rgba(12, 14, 19, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-soft);
  display: grid; place-items: center;
  opacity: 0;
  transform: translateY(14px) scale(0.92);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
              color 0.2s, border-color 0.2s;
}
.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.to-top:hover { color: var(--accent); border-color: rgba(110, 168, 255, 0.45); }
.to-top svg { width: 18px; height: 18px; }

/* Glow ambiental entre secciones */
.section + .section::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(720px, 80%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(110, 168, 255, 0.35), transparent);
  pointer-events: none;
}

/* Título de sección con destello */
.section__title {
  background: linear-gradient(180deg, #ffffff 55%, #b9c4d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Responsive de la capa v2 */
@media (max-width: 768px) {
  .hero__aurora { filter: blur(52px); opacity: 0.6; }
  .to-top { right: 16px; bottom: 16px; }
  .plan--popular::before { animation: none; background: none; }
}

@media (prefers-reduced-motion: reduce) {
  .plan--popular::before { animation: none; background: none; }
  body::after { display: none; }
  .hero__aurora span { animation: none; }
}
