@import url('fonts.css');

/* ============================================================
   GLIM — landing
   Sistema: oscuro cósmico + gradiente de marca (rosa→magenta→violeta).
   Sin dependencias. Todo el movimiento respeta prefers-reduced-motion.
   ============================================================ */

:root {
  /* marca */
  --pink: #ff2e84;
  --magenta: #d348d9;
  --violet: #9b4dff;
  --grad: linear-gradient(115deg, var(--pink) 0%, var(--magenta) 48%, var(--violet) 100%);
  --grad-soft: linear-gradient(115deg, rgba(255, 46, 132, .16), rgba(155, 77, 255, .16));

  /* superficie */
  --bg: #07060d;
  --bg-2: #0b0916;
  --ink: #ffffff;
  --ink-sub: rgba(255, 255, 255, .72);
  --ink-dim: rgba(255, 255, 255, .52);
  --line: rgba(255, 255, 255, .10);
  --line-soft: rgba(255, 255, 255, .06);
  --glass: rgba(255, 255, 255, .045);
  --glass-2: rgba(255, 255, 255, .075);

  /* medidas */
  --wrap: 1200px;
  --wrap-wide: 1400px;
  --r-s: 12px;
  --r-m: 18px;
  --r-l: 26px;
  --r-xl: 34px;

  /* tipografía fluida */
  --t-hero: clamp(2.75rem, 1.05rem + 5.8vw, 5.6rem);
  --t-h2: clamp(2.1rem, 1.2rem + 3.1vw, 3.9rem);
  --t-h3: clamp(1.35rem, 1.1rem + .9vw, 1.85rem);
  --t-lead: clamp(1.06rem, .98rem + .45vw, 1.32rem);
  --t-body: clamp(1rem, .96rem + .2vw, 1.08rem);
  --t-small: .93rem;

  --ease: cubic-bezier(.2, .7, .25, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: var(--t-body);
  line-height: 1.62;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.03;
  letter-spacing: -.038em;
  font-weight: 700;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

::selection { background: var(--pink); color: #fff; }

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  background: #fff;
  color: #000;
  border-radius: 10px;
  font-weight: 600;
  transition: top .2s;
}
.skip:focus { top: 16px; }

.wrap { width: min(100% - 2.6rem, var(--wrap)); margin-inline: auto; }
.wrap-wide { width: min(100% - 2.6rem, var(--wrap-wide)); margin-inline: auto; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   ATMÓSFERA
   ============================================================ */
#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.aura {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.aura span {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  will-change: transform;
}
.aura span:nth-child(1) {
  width: 46vw; height: 46vw; min-width: 380px; min-height: 380px;
  background: radial-gradient(circle, rgba(255, 46, 132, .58), transparent 66%);
  top: -14vh; left: -8vw;
  animation: drift1 26s var(--ease) infinite alternate;
}
.aura span:nth-child(2) {
  width: 40vw; height: 40vw; min-width: 340px; min-height: 340px;
  background: radial-gradient(circle, rgba(155, 77, 255, .55), transparent 66%);
  top: 4vh; right: -10vw;
  animation: drift2 32s var(--ease) infinite alternate;
}
.aura span:nth-child(3) {
  width: 52vw; height: 52vw; min-width: 400px; min-height: 400px;
  background: radial-gradient(circle, rgba(211, 72, 217, .34), transparent 68%);
  top: 52vh; left: 26vw;
  animation: drift3 38s var(--ease) infinite alternate;
}
@keyframes drift1 { to { transform: translate3d(9vw, 7vh, 0) scale(1.16); } }
@keyframes drift2 { to { transform: translate3d(-8vw, 11vh, 0) scale(1.1); } }
@keyframes drift3 { to { transform: translate3d(6vw, -9vh, 0) scale(.9); } }

/* grano fino: quita el banding de los degradados */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .038;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page { position: relative; z-index: 2; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: background .35s var(--ease), backdrop-filter .35s, border-color .35s, padding .35s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(7, 6, 13, .78);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom-color: var(--line-soft);
  padding: 9px 0;
}
.nav__in {
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -.045em;
  flex-shrink: 0;
}
.brand img { width: 30px; height: 30px; border-radius: 9px; }

.nav__links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}
.nav__links a {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: .935rem;
  color: var(--ink-sub);
  font-weight: 500;
  transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--ink); background: var(--glass); }

.nav__act { display: flex; align-items: center; gap: 9px; margin-left: 6px; }

/* selector de idioma */
.lang { position: relative; }
.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--ink-sub);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.lang__btn:hover { color: var(--ink); border-color: rgba(255, 255, 255, .24); }
.lang__btn svg { width: 15px; height: 15px; opacity: .8; }
.lang__menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  min-width: 172px;
  padding: 7px;
  border-radius: var(--r-m);
  border: 1px solid var(--line);
  background: rgba(14, 12, 24, .96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.97);
  transform-origin: top right;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 11px;
  font-size: .92rem;
  color: var(--ink-sub);
  transition: background .16s, color .16s;
}
.lang__menu a:hover { background: var(--glass-2); color: var(--ink); }
.lang__menu a[aria-current='true'] { color: var(--ink); font-weight: 650; }
.lang__menu a[aria-current='true']::after {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 10px var(--pink);
}

.burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--glass);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.burger span {
  display: block;
  width: 17px; height: 1.8px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.burger span + span { margin-top: 4.4px; }
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(6.2px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6.2px) rotate(-45deg); }

.mobile {
  position: fixed;
  inset: 0 0 auto 0;
  top: 0;
  padding: 88px 26px 34px;
  background: rgba(7, 6, 13, .97);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-102%);
  transition: transform .42s var(--ease-out);
  z-index: 99;
  max-height: 100dvh;
  overflow-y: auto;
}
.mobile.is-open { transform: none; }
.mobile a {
  display: block;
  padding: 15px 0;
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -.03em;
  border-bottom: 1px solid var(--line-soft);
}
.mobile .btn { margin-top: 22px; width: 100%; justify-content: center; }
.mobile__langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.mobile__langs a {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile__langs a[aria-current='true'] { background: var(--glass-2); color: #fff; }

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 25px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1rem;
  letter-spacing: -.015em;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease), border-color .25s, background .25s, color .25s;
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; }

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 26px rgba(255, 46, 132, .34), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, var(--violet), var(--pink));
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(255, 46, 132, .46), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn--primary:hover::after { opacity: 1; }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: var(--glass);
  border-color: var(--line);
  color: var(--ink);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--ghost:hover { background: var(--glass-2); border-color: rgba(255, 255, 255, .26); transform: translateY(-2px); }

.btn--lg { padding: 17px 32px; font-size: 1.06rem; }
.btn--sm { padding: 10px 18px; font-size: .92rem; }

/* ============================================================
   BLOQUES / TIPOGRAFÍA DE SECCIÓN
   ============================================================ */
section { position: relative; }

.sec { padding: clamp(66px, 7.4vw, 108px) 0; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-sub);
  margin-bottom: 22px;
}
.kicker::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 12px var(--pink);
}

.sec__title { font-size: var(--t-h2); max-width: 19ch; }
.sec__sub {
  margin-top: 20px;
  font-size: var(--t-lead);
  color: var(--ink-sub);
  max-width: 62ch;
  line-height: 1.55;
}
.sec__head { margin-bottom: clamp(42px, 5vw, 66px); }
.sec__head--center { text-align: center; }
.sec__head--center .sec__title { margin-inline: auto; }
.sec__head--center .sec__sub { margin-inline: auto; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* tarjeta base con luz que sigue al cursor */
.card {
  position: relative;
  border-radius: var(--r-l);
  border: 1px solid var(--line);
  background: var(--glass);
  padding: 30px;
  overflow: hidden;
  transition: transform .4s var(--ease-out), border-color .35s, background .35s;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 46, 132, .13), transparent 62%);
  pointer-events: none;
}
.card:hover { border-color: rgba(255, 255, 255, .2); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(104px, 12.5vh, 140px) 0 clamp(48px, 6vw, 76px);
  text-align: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 17px 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: .855rem;
  font-weight: 550;
  color: var(--ink-sub);
  margin-bottom: 22px;
}
.hero__badge i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #37e58f;
  box-shadow: 0 0 12px #37e58f;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.82); } }

.hero h1 {
  font-size: var(--t-hero);
  max-width: 15ch;
  margin-inline: auto;
  letter-spacing: -.05em;
}
.hero h1 .l { display: block; overflow: hidden; }
.hero h1 .l > span { display: block; }

.hero__sub {
  margin: 24px auto 0;
  max-width: 58ch;
  font-size: var(--t-lead);
  color: var(--ink-sub);
  line-height: 1.55;
}
.hero__cta {
  margin-top: 30px;
  display: flex;
  gap: 13px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__proof {
  margin-top: 22px;
  display: flex;
  gap: 10px 26px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: .89rem;
  color: var(--ink-dim);
}
.hero__proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero__proof svg { width: 15px; height: 15px; color: #37e58f; flex-shrink: 0; }

/* escenario del hero: teléfono + cards flotantes */
.stage {
  position: relative;
  margin: clamp(34px, 4vw, 52px) auto 0;
  width: min(100%, 1080px);
  display: grid;
  place-items: center;
  perspective: 1400px;
}
.stage__glow {
  position: absolute;
  width: 76%;
  height: 62%;
  top: 16%;
  background: radial-gradient(ellipse at center, rgba(211, 72, 217, .38), transparent 68%);
  filter: blur(70px);
  pointer-events: none;
}
.stage__phone { position: relative; z-index: 3; }

.float {
  position: absolute;
  z-index: 4;
  border-radius: var(--r-m);
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(17, 14, 28, .82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  padding: 13px 16px;
  font-size: .875rem;
  display: flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
  animation: bob 7s ease-in-out infinite;
}
.float b { font-weight: 650; }
.float small { display: block; color: var(--ink-dim); font-size: .78rem; line-height: 1.35; }
.float__ico {
  width: 34px; height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.float__ico svg { width: 17px; height: 17px; }
.float--1 { top: 12%; left: 0; animation-delay: -1s; }
.float--2 { top: 42%; right: 0; animation-delay: -3.4s; }
.float--3 { bottom: 12%; left: 4%; animation-delay: -5.2s; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-13px); }
}

.avatars { display: flex; }
.avatars img, .avatars span {
  width: 27px; height: 27px;
  border-radius: 50%;
  border: 2px solid rgba(17, 14, 28, .95);
  object-fit: cover;
  display: grid;
  place-items: center;
  font-size: .68rem;
  font-weight: 700;
}
.avatars > * + * { margin-left: -9px; }

.hero__caption {
  margin-top: 26px;
  font-size: .85rem;
  color: var(--ink-dim);
  text-align: center;
}

/* ── marco de dispositivo ─────────────────────────────────── */
.device {
  position: relative;
  width: var(--dw, 300px);
  aspect-ratio: 440 / 956;
  border-radius: calc(var(--dw, 300px) / 8.2);
  padding: calc(var(--dw, 300px) / 42);
  background: linear-gradient(160deg, #2b2740, #100e1c 42%, #241f36);
  box-shadow:
    0 2px 4px rgba(255, 255, 255, .12) inset,
    0 50px 90px -24px rgba(0, 0, 0, .82),
    0 0 0 1px rgba(255, 255, 255, .07);
  flex-shrink: 0;
}
.device {
  --sb: calc(var(--dw, 300px) / 8.6);   /* alto de la barra de estado */
}
.device__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--dw, 300px) / 9.6);
  overflow: hidden;
  background: #f5f5f7;
}
/* barra de estado simulada: la captura no la trae y sin ella el marco miente */
.device__status {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--sb);
  padding: 0 calc(var(--dw, 300px) / 13) 0 calc(var(--dw, 300px) / 11);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: calc(var(--dw, 300px) / 90);
  font-size: calc(var(--dw, 300px) / 26);
  font-weight: 650;
  letter-spacing: -.02em;
  color: #08070e;
  background: #f5f5f7;
  position: relative;
  z-index: 4;
}
.device__status svg {
  width: calc(var(--dw, 300px) / 6.4);
  height: auto;
  color: #08070e;
}
/* todas las capturas ocupan la MISMA área (bajo la barra) y se cruzan en opacidad */
.device__screen img {
  position: absolute;
  top: var(--sb);
  left: 0;
  width: 100%;
  height: calc(100% - var(--sb));
  object-fit: cover;
  object-position: top center;
}
.device__island {
  position: absolute;
  top: calc(var(--dw, 300px) / 44);
  left: 50%;
  transform: translateX(-50%);
  width: 27%;
  height: calc(var(--dw, 300px) / 15.5);
  background: #08070e;
  border-radius: 99px;
  z-index: 6;
}

/* ============================================================
   PROBLEMA
   ============================================================ */
.problem__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 18px;
  margin-top: 8px;
}
.problem__item {
  padding: 30px;
  border-radius: var(--r-l);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012));
  position: relative;
  overflow: hidden;
}
.problem__item h3 { font-size: 1.16rem; letter-spacing: -.028em; margin-bottom: 9px; line-height: 1.28; }
.problem__item p { color: var(--ink-dim); font-size: .97rem; line-height: 1.55; }
.problem__n {
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.06em;
  background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .03));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
  display: block;
}
.problem__close {
  margin-top: 30px;
  text-align: center;
  font-size: clamp(1.16rem, 1rem + .9vw, 1.72rem);
  font-weight: 650;
  letter-spacing: -.032em;
  line-height: 1.35;
  max-width: 30ch;
  margin-inline: auto;
  text-wrap: balance;
}

/* ============================================================
   TOUR — scroll-telling
   ============================================================ */
.tour__track { height: calc(var(--steps, 5) * 82vh); }

.tour__sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 380px);
  align-items: center;
  gap: clamp(30px, 5vw, 78px);
  padding: 96px 0 40px;
}
/* los 5 pasos ocupan el MISMO sitio y se cruzan en opacidad */
.tour__steps {
  position: relative;
  min-height: 300px;
  display: grid;
}
.tour__step {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .5s var(--ease), transform .62s var(--ease-out);
  pointer-events: none;
  align-self: center;
}
.tour__step.is-on { opacity: 1; transform: none; pointer-events: auto; }

.tour__n {
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.06em;
  display: block;
  margin-bottom: 18px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tour__step h3 { font-size: var(--t-h2); margin-bottom: 16px; letter-spacing: -.038em; max-width: 15ch; }
.tour__step p { color: var(--ink-sub); max-width: 44ch; font-size: var(--t-lead); line-height: 1.56; }

/* barra de progreso del recorrido */
.tour__bar {
  margin-top: 34px;
  display: flex;
  gap: 7px;
  align-items: center;
}
.tour__bar i {
  height: 3px;
  flex: 1;
  border-radius: 3px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
  position: relative;
}
.tour__bar i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.tour__bar i.is-done::after { transform: scaleX(1); }

.tour__phone {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
}
.tour__phone .device { --dw: clamp(250px, 26vw, 330px); }
.tour__phone .device__screen img {
  opacity: 0;
  transform: scale(1.035);
  transition: opacity .6s var(--ease), transform .8s var(--ease-out);
}
.tour__phone .device__screen img.is-on { opacity: 1; transform: none; }
.tour__phoneglow {
  position: absolute;
  inset: -14% -22%;
  background: radial-gradient(ellipse at center, rgba(155, 77, 255, .34), transparent 66%);
  filter: blur(58px);
  z-index: -1;
}
.tour__dots {
  display: flex;
  gap: 7px;
  justify-content: center;
  margin-top: 26px;
}
.tour__dots i {
  width: 6px; height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .22);
  transition: width .4s var(--ease-out), background .4s;
}
.tour__dots i.is-on { width: 24px; background: var(--grad); }

/* versión apilada (móvil) */
.tour__stack { display: none; }
.tour__card {
  border-radius: var(--r-l);
  border: 1px solid var(--line);
  background: var(--glass);
  padding: 28px 24px 0;
  overflow: hidden;
  margin-bottom: 20px;
}
.tour__card h3 { font-size: 1.42rem; margin-bottom: 11px; }
.tour__card p { color: var(--ink-sub); font-size: 1rem; }
.tour__card .device { --dw: 232px; margin: 26px auto -60px; }

/* ============================================================
   IA
   ============================================================ */
.ai { position: relative; }
.ai__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}
.ai__points { margin-top: 34px; display: grid; gap: 16px; }
.ai__point { display: flex; gap: 15px; align-items: flex-start; }
.ai__point i {
  width: 34px; height: 34px;
  border-radius: 11px;
  background: var(--grad-soft);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.ai__point svg { width: 16px; height: 16px; color: var(--pink); }
.ai__point b { display: block; font-weight: 650; letter-spacing: -.02em; margin-bottom: 2px; }
.ai__point span { color: var(--ink-dim); font-size: .95rem; line-height: 1.5; }

.ai__works {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
  font-size: .89rem;
  color: var(--ink-dim);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 13px;
  border-radius: 999px;
  font-weight: 650;
  font-size: .93rem;
  border: 1px solid var(--line);
  background: var(--glass);
  transition: transform .3s var(--ease-out), background .3s;
}
.chip:hover { transform: translateY(-2px); background: var(--glass-2); }
.chip svg { width: 17px; height: 17px; }
.chip--claude { color: #fff; }
.chip--claude svg { color: #d97757; }

/* ventana de chat */
.chatwin {
  border-radius: var(--r-l);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 17, 32, .92), rgba(11, 9, 22, .92));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 34px 80px rgba(0, 0, 0, .5);
  overflow: hidden;
}
.chatwin__bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .022);
}
.chatwin__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.chatwin__bar span { margin-left: 8px; font-size: .84rem; color: var(--ink-dim); font-weight: 550; }
.chatwin__body { padding: 24px 22px; display: grid; gap: 15px; min-height: 350px; align-content: start; }

.bubble {
  max-width: 84%;
  padding: 14px 18px;
  border-radius: 20px;
  font-size: .97rem;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease-out);
}
.bubble.is-in { opacity: 1; transform: none; }
.bubble b { font-weight: 650; color: #fff; }
.bubble--you {
  justify-self: end;
  background: var(--grad);
  color: #fff;
  border-bottom-right-radius: 7px;
  box-shadow: 0 8px 24px rgba(255, 46, 132, .3);
}
.bubble--ai {
  justify-self: start;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line);
  color: var(--ink-sub);
  border-bottom-left-radius: 7px;
}
.bubble--ai .who {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 8px;
}
.bubble--ai .who svg { width: 13px; height: 13px; color: #d97757; }

.typing { display: inline-flex; gap: 4px; align-items: center; padding: 4px 0; }
.typing i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink-dim);
  animation: blink 1.3s ease-in-out infinite;
}
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.ai__log {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 17px;
  border-radius: var(--r-m);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  font-size: .86rem;
  color: var(--ink-dim);
}
.ai__log svg { width: 16px; height: 16px; color: #37e58f; flex-shrink: 0; }

/* ============================================================
   PRIVACIDAD
   ============================================================ */
.priv { position: relative; }
.priv__wrap {
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(900px circle at 84% 8%, rgba(155, 77, 255, .17), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  padding: clamp(36px, 5vw, 72px);
  overflow: hidden;
  position: relative;
}
.priv__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 4vw, 60px); align-items: center; }
.priv__items { display: grid; gap: 14px; }
.priv__item {
  display: flex;
  gap: 15px;
  padding: 18px 20px;
  border-radius: var(--r-m);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .028);
  transition: border-color .3s, background .3s, transform .3s var(--ease-out);
}
.priv__item:hover { border-color: var(--line); background: rgba(255, 255, 255, .05); transform: translateX(4px); }
.priv__item i {
  width: 36px; height: 36px;
  border-radius: 11px;
  background: var(--grad);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(255, 46, 132, .28);
}
.priv__item svg { width: 17px; height: 17px; color: #fff; }
.priv__item b { display: block; font-weight: 650; letter-spacing: -.02em; }
.priv__item span { color: var(--ink-dim); font-size: .93rem; line-height: 1.5; }

.priv__quote {
  margin-top: 34px;
  font-size: clamp(1.16rem, 1rem + .8vw, 1.6rem);
  font-weight: 650;
  letter-spacing: -.032em;
  line-height: 1.34;
  padding-left: 22px;
  border-left: 3px solid;
  border-image: var(--grad) 1;
  text-wrap: balance;
}

/* candado / visual de cifrado */
.lockart {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
}
.lockart__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.lockart__ring:nth-child(1) { width: 300px; height: 300px; animation: spin 34s linear infinite; }
.lockart__ring:nth-child(2) { width: 216px; height: 216px; border-style: dashed; animation: spin 22s linear infinite reverse; }
.lockart__ring:nth-child(3) { width: 136px; height: 136px; border-color: rgba(255, 46, 132, .3); animation: spin 16s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.lockart__core {
  width: 96px; height: 96px;
  border-radius: 30px;
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: 0 20px 50px rgba(255, 46, 132, .42);
  position: relative;
  z-index: 2;
}
.lockart__core svg { width: 42px; height: 42px; color: #fff; }
.lockart__key {
  position: absolute;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(17, 14, 28, .92);
  font-size: .76rem;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  color: var(--ink-dim);
  white-space: nowrap;
  backdrop-filter: blur(8px);
}
.lockart__key--a { top: 6%; left: 0; animation: bob 8s ease-in-out infinite; }
.lockart__key--b { bottom: 16%; right: 0; animation: bob 8s ease-in-out infinite -2.6s; }
.lockart__key--c { bottom: 2%; left: 8%; animation: bob 8s ease-in-out infinite -5s; }

/* ============================================================
   COMPARATIVA
   ============================================================ */
.cmp { overflow-x: auto; border-radius: var(--r-l); border: 1px solid var(--line); background: var(--glass); }
.cmp table { width: 100%; border-collapse: collapse; min-width: 660px; }
.cmp th, .cmp td { padding: 15px 16px; text-align: center; font-size: .94rem; }
.cmp th:first-child, .cmp td:first-child {
  text-align: left;
  width: 38%;
  font-weight: 550;
  color: var(--ink-sub);
  position: sticky;
  left: 0;
  background: #0c0a17;
}
.cmp thead th {
  font-weight: 650;
  font-size: .88rem;
  letter-spacing: .02em;
  color: var(--ink-dim);
  border-bottom: 1px solid var(--line);
  padding-top: 22px;
  padding-bottom: 18px;
  background: #0c0a17;
}
.cmp thead th:nth-child(2) {
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: -.02em;
  position: relative;
}
.cmp thead th:nth-child(2)::after {
  content: '';
  position: absolute;
  left: 12%; right: 12%; bottom: -1px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}
.cmp tbody tr { border-bottom: 1px solid var(--line-soft); transition: background .25s; }
.cmp tbody tr:last-child { border-bottom: 0; }
.cmp tbody tr:hover { background: rgba(255, 255, 255, .03); }
.cmp tbody td:nth-child(2) { background: rgba(255, 46, 132, .052); }
.m {
  display: inline-grid;
  place-items: center;
  width: 25px; height: 25px;
  border-radius: 50%;
  vertical-align: middle;
}
.m svg { width: 14px; height: 14px; }
.m--y { background: rgba(55, 229, 143, .16); color: #37e58f; }
.m--h { background: rgba(255, 255, 255, .08); color: var(--ink-dim); }
.m--n { background: rgba(255, 255, 255, .045); color: rgba(255, 255, 255, .26); }
.cmp__legend {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: .85rem;
  color: var(--ink-dim);
}
.cmp__legend span { display: inline-flex; align-items: center; gap: 7px; }

/* ============================================================
   FEATURES
   ============================================================ */
.feat__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 14px;
}
.feat {
  padding: 26px;
  border-radius: var(--r-m);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .026);
  transition: transform .35s var(--ease-out), border-color .3s, background .3s;
}
.feat:hover { transform: translateY(-4px); border-color: var(--line); background: rgba(255, 255, 255, .05); }
.feat i {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--grad-soft);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  margin-bottom: 15px;
}
.feat svg { width: 18px; height: 18px; color: #fff; }
.feat b { display: block; font-weight: 650; letter-spacing: -.024em; margin-bottom: 5px; font-size: 1.04rem; }
.feat span { color: var(--ink-dim); font-size: .94rem; line-height: 1.5; }

/* ============================================================
   PLATAFORMAS
   ============================================================ */
.plat__shot {
  margin-top: 50px;
  border-radius: clamp(12px, 1.6vw, 20px);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 48px 100px -26px rgba(0, 0, 0, .82);
  position: relative;
}
.plat__shot img { width: 100%; display: block; }
.plat__badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; justify-content: center; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 11px 20px 11px 17px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05);
  transition: transform .3s var(--ease-out), background .3s, border-color .3s;
}
.store:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .22); }
.store svg { width: 24px; height: 24px; }
.store small { display: block; font-size: .68rem; color: var(--ink-dim); line-height: 1.2; }
.store b { display: block; font-size: 1rem; font-weight: 650; letter-spacing: -.02em; }

/* ============================================================
   FAQ
   ============================================================ */
.faq__list { display: grid; gap: 11px; max-width: 860px; margin-inline: auto; }
.faq__item {
  border-radius: var(--r-m);
  border: 1px solid var(--line);
  background: var(--glass);
  overflow: hidden;
  transition: border-color .3s, background .3s;
}
.faq__item[open] { border-color: rgba(255, 255, 255, .2); background: var(--glass-2); }
.faq__item summary {
  padding: 21px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -.024em;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '';
  width: 11px; height: 11px;
  border-right: 2px solid var(--ink-dim);
  border-bottom: 2px solid var(--ink-dim);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .32s var(--ease), border-color .3s;
  flex-shrink: 0;
}
.faq__item[open] summary::after { transform: rotate(225deg) translateY(-2px); border-color: var(--pink); }
.faq__item .a { padding: 0 24px 22px; color: var(--ink-sub); line-height: 1.62; max-width: 72ch; }

/* ============================================================
   CTA FINAL
   ============================================================ */
.final { text-align: center; padding: clamp(84px, 10vw, 148px) 0; }
.final__box {
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  padding: clamp(46px, 6vw, 86px) clamp(26px, 4vw, 62px);
  background:
    radial-gradient(700px circle at 50% -10%, rgba(255, 46, 132, .24), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012));
  position: relative;
  overflow: hidden;
}
.final h2 { font-size: var(--t-h2); max-width: 16ch; margin-inline: auto; }
.final p { margin: 20px auto 0; max-width: 52ch; color: var(--ink-sub); font-size: var(--t-lead); }
.final__cta { margin-top: 36px; display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }
.final__note { margin-top: 20px; font-size: .87rem; color: var(--ink-dim); }

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  border-top: 1px solid var(--line-soft);
  padding: 62px 0 34px;
  background: rgba(0, 0, 0, .3);
}
.foot__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
}
.foot__brand .brand { margin-bottom: 15px; }
.foot__brand p { color: var(--ink-dim); font-size: .95rem; max-width: 30ch; }
.foot h4 {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-dim);
  margin-bottom: 15px;
  font-weight: 650;
}
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot ul a { color: var(--ink-sub); font-size: .95rem; transition: color .2s; }
.foot ul a:hover { color: var(--ink); }
.foot__social { display: flex; gap: 9px; margin-top: 20px; }
.foot__social a {
  width: 36px; height: 36px;
  border-radius: 11px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink-sub);
  transition: color .25s, border-color .25s, transform .25s var(--ease-out), background .25s;
}
.foot__social a:hover { color: #fff; border-color: rgba(255, 255, 255, .28); background: var(--glass); transform: translateY(-2px); }
.foot__social svg { width: 17px; height: 17px; }
.foot__bot {
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: .87rem;
  color: var(--ink-dim);
}
.foot__bot a { color: var(--ink-sub); }
.foot__bot a:hover { color: var(--ink); }
.foot__powered { display: inline-flex; align-items: center; gap: 8px; }
.foot__powered img { height: 15px; opacity: .65; transition: opacity .25s; }
.foot__powered:hover img { opacity: 1; }

/* ============================================================
   LEGALES
   ============================================================ */
.legal { padding: 128px 0 80px; }
.legal h1 { font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.2rem); margin-bottom: 12px; }
.legal__eff { color: var(--ink-dim); font-size: .95rem; margin-bottom: 34px; }
.legal__card {
  border-radius: var(--r-l);
  border: 1px solid var(--line);
  background: var(--glass);
  padding: clamp(26px, 4vw, 52px);
  max-width: 78ch;
}
.prose { color: var(--ink-sub); line-height: 1.72; }
.prose .lead { font-size: 1.1rem; color: var(--ink); margin-bottom: 26px; }
.prose section + section { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line-soft); }
.prose h2 {
  font-size: 1.24rem;
  color: var(--ink);
  margin-bottom: 12px;
  display: flex;
  gap: 11px;
  align-items: baseline;
  letter-spacing: -.026em;
}
.prose h2 .num { color: var(--pink); font-size: .95rem; font-weight: 700; flex-shrink: 0; }
.prose h3 { font-size: 1.05rem; color: var(--ink); margin: 20px 0 8px; }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { margin: 12px 0; padding-left: 22px; }
.prose li { margin: 7px 0; }
.prose li::marker { color: var(--pink); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose a { color: var(--pink); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--violet); }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .94rem; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line-soft); text-align: left; }
.prose th { color: var(--ink); background: rgba(255, 255, 255, .03); }

.legal__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 34px;
}
.legal__nav a {
  padding: 10px 17px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  font-size: .9rem;
  color: var(--ink-sub);
  transition: color .2s, border-color .2s, background .2s;
}
.legal__nav a:hover { color: var(--ink); border-color: rgba(255, 255, 255, .24); }
.legal__nav a[aria-current='page'] { color: #fff; background: var(--glass-2); border-color: rgba(255, 255, 255, .28); }

/* ============================================================
   REVEAL
   ============================================================ */
.rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .82s var(--ease), transform .82s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.rv.is-in { opacity: 1; transform: none; }

.rv-s {
  opacity: 0;
  transform: translateY(16px) scale(.985);
  transition: opacity .9s var(--ease), transform .9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.rv-s.is-in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .ai__grid, .priv__grid { grid-template-columns: 1fr; }
  .lockart { min-height: 260px; order: -1; }
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .foot__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .lang { display: none; }
  .burger { display: grid; }
  .nav__act .btn--ghost { display: none; }
  .float--1, .float--3 { display: none; }
  .float--2 { right: -6px; top: 8%; }
  .tour__track { height: auto; }        /* sin sticky el track no debe reservar alto */
  .tour__sticky { display: none; }
  .tour__stack { display: block; }
}

@media (max-width: 640px) {
  :root { --wrap: 100%; }
  .wrap, .wrap-wide { width: min(100% - 2rem, var(--wrap)); }
  .hero { padding-top: 116px; text-align: left; }
  .hero h1 { max-width: 100%; }
  .hero__sub { margin-inline: 0; }
  .hero__cta { justify-content: stretch; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__proof { justify-content: flex-start; }
  .stage { margin-top: 46px; }
  .float { display: none; }
  .card, .problem__item { padding: 24px; }
  .priv__wrap { padding: 28px 22px; }
  .foot__grid { grid-template-columns: 1fr; }
  .foot__bot { flex-direction: column; align-items: flex-start; }
  .sec__head--center { text-align: left; }
  .sec__head--center .sec__title, .sec__head--center .sec__sub { margin-inline: 0; }
  .cmp__legend { justify-content: flex-start; }
}

/* ============================================================
   MOVIMIENTO REDUCIDO
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .rv, .rv-s, .bubble, .tour__step { opacity: 1 !important; transform: none !important; filter: none !important; }
  .tour__phone .device__screen img { opacity: 0; }
  .tour__phone .device__screen img.is-on { opacity: 1; }
}
