/* =========================================================================
   ChatWith · Landing
   Tokens → base → componentes → secciones → responsive → motion
   ========================================================================= */

:root {
  --bg: #06070a;
  --bg-2: #0b0d12;
  --surface: #10131a;
  --surface-2: #161a23;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f2f4f7;
  --muted: #9aa3b2;
  --dim: #5d6573;
  --accent: #3cf29b;
  --accent-ink: #04140c;
  --accent-soft: rgba(60, 242, 155, 0.14);
  --violet: #7c5cff;
  --coral: #ff7a59;

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  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;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; margin: 0; letter-spacing: -0.03em; }
p { margin: 0; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.h2 { font-size: clamp(2.1rem, 5.2vw, 4rem); font-weight: 700; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(60,242,155,.6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(60,242,155,.55); } 70% { box-shadow: 0 0 0 10px rgba(60,242,155,0); } 100% { box-shadow: 0 0 0 0 rgba(60,242,155,0); } }

/* ---------- Botones ---------- */
.btn {
  --pad: 12px 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad); border-radius: 999px; border: 1px solid transparent;
  font: 600 0.95rem/1 var(--font-body); cursor: pointer; white-space: nowrap;
  transition: transform .4s var(--ease), background .3s, border-color .3s, color .3s, box-shadow .3s;
}
.btn--sm { --pad: 10px 16px; font-size: 0.88rem; }
.btn--lg { --pad: 17px 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 40px -10px rgba(60,242,155,.55); }
.btn--primary:hover { box-shadow: 0 14px 50px -8px rgba(60,242,155,.75); }
.btn--ghost { background: rgba(255,255,255,.03); border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.06); }
.btn--dark { background: var(--bg); color: var(--text); }
.btn--dark:hover { background: #000; }
.btn__arrow { transition: transform .4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Marca ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.03em; }
.brand__mark { width: 30px; height: 30px; fill: var(--accent); }
.brand__mark circle { fill: var(--accent-ink); }
.brand__name span { color: var(--accent); }
.brand--sm { font-size: 1.05rem; }
.brand--sm .brand__mark { width: 26px; height: 26px; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .4s, border-color .4s, transform .5s var(--ease); border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(6,7,10,.72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { max-width: var(--max); margin: 0 auto; padding: 16px var(--gutter); display: flex; align-items: center; gap: 24px; }
.nav__links { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: 0.92rem; color: var(--muted); }
.nav__links a { transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__login { color: var(--text); }
.nav__toggle { display: none; margin-left: 4px; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav__toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100vh; padding: 140px var(--gutter) 80px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.hero__bg { position: absolute; inset: 0 calc(50% - 50vw); overflow: hidden; z-index: -1; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.orb--a { width: 620px; height: 620px; background: radial-gradient(circle, rgba(60,242,155,.55), transparent 65%); top: -160px; right: 4%; }
.orb--b { width: 520px; height: 520px; background: radial-gradient(circle, rgba(124,92,255,.5), transparent 65%); bottom: -180px; left: -120px; opacity: .45; }
.grid-floor { position: absolute; inset: auto 0 0 0; height: 55%; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; transform: perspective(600px) rotateX(62deg); transform-origin: bottom; mask-image: linear-gradient(to top, #000 10%, transparent 85%); -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%); }

.hero__copy { display: flex; flex-direction: column; gap: 26px; }
.hero__title { font-size: clamp(3rem, 8.4vw, 6.6rem); font-weight: 800; letter-spacing: -0.05em; line-height: 0.95; }
.hero__title em { font-size: 1.08em; }
.hero__lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--muted); max-width: 33em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* split text */
.split-line { display: inline-block; vertical-align: top; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.split-word { display: inline-block; will-change: transform; }

/* device */
.hero__stage { position: relative; perspective: 1400px; }
.device { position: relative; border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid var(--line-2); box-shadow: 0 50px 120px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.03) inset, 0 30px 120px -40px rgba(60,242,155,.35); overflow: hidden; transform-style: preserve-3d; }
.device__bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.14); }
.device__url { flex: 1; text-align: center; background: rgba(255,255,255,.04); border-radius: 8px; padding: 4px 10px; }
.device__status { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.device__body { display: grid; grid-template-columns: 0.75fr 1.25fr; min-height: 420px; }
.device__side { padding: 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.sk { height: 10px; border-radius: 6px; background: rgba(255,255,255,.07); }
.sk--logo { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--accent), var(--violet)); margin-bottom: 10px; }
.sk--short { width: 60%; }
.sk--img { height: 120px; margin-top: auto; border-radius: 12px; background: linear-gradient(135deg, rgba(124,92,255,.25), rgba(60,242,155,.15)); }

.chat { display: flex; flex-direction: column; min-width: 0; }
.chat__head { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.chat__head strong { display: block; font-size: .9rem; }
.chat__head small { color: var(--muted); font-size: .75rem; }
.avatar { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; font-family: var(--font-display); }
.chat__messages { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 10px; justify-content: flex-end; min-height: 300px; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: .88rem; line-height: 1.45; animation: msgIn .5s var(--ease) both; }
.msg--user { align-self: flex-end; background: var(--surface-2); border-bottom-right-radius: 6px; }
.msg--ai { align-self: flex-start; background: var(--accent-soft); border: 1px solid rgba(60,242,155,.25); border-bottom-left-radius: 6px; }
.msg--ai b { color: var(--accent); font-weight: 600; }
.msg__chip { display: inline-flex; margin-top: 8px; padding: 6px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: .78rem; }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.chat__input { margin: 0 14px 14px; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--dim); font-size: .85rem; }
.send { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); }

.float-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: rgba(16,19,26,.86); border: 1px solid var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); font-size: .82rem; }
.float-card strong { display: block; font-size: .86rem; }
.float-card small { color: var(--muted); }
.float-card--a { left: -36px; bottom: 70px; }
.float-card--b { right: -24px; top: 90px; }
.ico { width: 34px; height: 34px; border-radius: 10px; flex: none; }
.ico--cal { background: linear-gradient(135deg, #4c8bf5, #7c5cff); }
.ico--sheet { background: linear-gradient(135deg, #22a565, var(--accent)); }

.scroll-hint { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; border: 1.5px solid var(--line-2); border-radius: 20px; transform: translateX(-50%); }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--accent); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- MARQUEE ---------- */
.marquee { border-block: 1px solid var(--line); padding: 26px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 2rem); font-weight: 600; color: var(--dim); letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 56px; }
.marquee__track span::after { content: "✦"; color: var(--accent); font-size: .7em; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- MANIFIESTO ---------- */
.manifesto { max-width: var(--max); margin: 0 auto; padding: clamp(120px, 18vw, 220px) var(--gutter); }
.manifesto__text { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 4.6vw, 3.7rem); line-height: 1.15; letter-spacing: -0.035em; }
.manifesto__text .w { color: var(--text); transition: color .2s; }
.manifesto__text.is-armed .w { color: rgba(242,244,247,.14); }
.manifesto__text.is-armed .w.on { color: var(--text); }
.manifesto__text .w.hl.on { color: var(--accent); }

/* ---------- STEPS (pinned) ---------- */
.steps { position: relative; }
.steps__pin { max-width: var(--max); margin: 0 auto; padding: 100px var(--gutter); min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.steps__copy { display: flex; flex-direction: column; gap: 24px; }
.steps__list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.step { display: flex; gap: 18px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid transparent; opacity: .38; transition: opacity .5s var(--ease), background .5s, border-color .5s; }
.step.is-active { opacity: 1; background: rgba(255,255,255,.03); border-color: var(--line); }
.step__num { font-family: var(--font-display); font-weight: 700; color: var(--accent); font-size: .9rem; padding-top: 3px; }
.step h3 { font-size: 1.18rem; margin-bottom: 4px; letter-spacing: -0.02em; }
.step p { color: var(--muted); font-size: .95rem; }
.steps__progress { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.steps__progress span { display: block; height: 100%; width: 25%; background: var(--accent); transition: width .2s linear; }

.steps__visual { position: relative; aspect-ratio: 1 / 1; border-radius: 32px; background: radial-gradient(120% 90% at 70% 10%, rgba(60,242,155,.12), transparent 60%), radial-gradient(100% 80% at 10% 100%, rgba(124,92,255,.16), transparent 60%), var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.panel { position: absolute; inset: 0; display: grid; place-items: center; padding: 10%; opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .6s var(--ease), transform .8s var(--ease); pointer-events: none; }
.panel.is-active { opacity: 1; transform: none; }

.mini-plans { display: grid; gap: 14px; width: 100%; }
.mini-plan { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.mini-plan small { color: var(--dim); font-weight: 700; }
.mini-plan b { font-family: var(--font-display); font-size: 1.15rem; }
.mini-plan i { font-style: normal; color: var(--muted); font-size: .85rem; }
.mini-plan--hot { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); transform: scale(1.04); }

.builder { width: 100%; display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.builder__preview { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); padding: 18px; display: flex; flex-direction: column; gap: 12px; min-height: 240px; }
.bp-logo { width: 40px; height: 40px; border-radius: 12px; background: var(--accent); animation: hue 6s linear infinite; }
.bp-title { height: 14px; width: 70%; border-radius: 6px; background: rgba(255,255,255,.12); }
.bp-chat { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.bp-chat i { height: 22px; border-radius: 10px; background: rgba(255,255,255,.07); }
.bp-chat i:nth-child(2) { width: 70%; align-self: flex-end; background: var(--accent-soft); }
@keyframes hue { 0%,100% { background: var(--accent); } 33% { background: var(--violet); } 66% { background: var(--coral); } }
.builder__controls { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); padding: 18px; display: flex; flex-direction: column; gap: 18px; }
.swatches { display: flex; gap: 8px; }
.swatches i { width: 26px; height: 26px; border-radius: 8px; background: var(--c); border: 2px solid transparent; }
.swatches i:first-child { border-color: #fff; }
.slider { height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); position: relative; }
.slider span { position: absolute; inset: 0 40% 0 0; border-radius: 6px; background: var(--accent); animation: slide 3s var(--ease) infinite alternate; }
.slider--b span { animation-delay: .8s; background: var(--violet); }
@keyframes slide { to { inset: 0 12% 0 0; } }
.toggle-row { display: flex; gap: 10px; }
.toggle-row i { width: 38px; height: 22px; border-radius: 22px; background: rgba(255,255,255,.1); position: relative; }
.toggle-row i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.toggle-row i.on { background: var(--accent); }
.toggle-row i.on::after { left: 19px; }

.prompt-card { width: 100%; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.prompt-card__head { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.prompt-card p { padding: 20px 18px; font-size: 1rem; line-height: 1.7; }
.tok { background: rgba(60,242,155,.08); border-radius: 6px; padding: 2px 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.tok:nth-child(2) { background: rgba(124,92,255,.14); }
.tok:nth-child(3) { background: rgba(255,122,89,.12); }
.prompt-card__meter { margin: 0 18px 18px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.06); }
.prompt-card__meter span { display: block; height: 100%; width: 38%; border-radius: 4px; background: var(--accent); }

.connect { position: relative; width: 100%; height: 100%; }
.connect::before, .connect::after { content: ""; position: absolute; inset: 18%; border: 1px dashed var(--line-2); border-radius: 50%; animation: spin 40s linear infinite; }
.connect::after { inset: 32%; animation-direction: reverse; animation-duration: 28s; }
@keyframes spin { to { transform: rotate(360deg); } }
.connect__hub { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 26px; background: var(--accent); display: grid; place-items: center; box-shadow: 0 0 80px rgba(60,242,155,.5); z-index: 2; }
.connect__hub svg { width: 44px; height: 44px; fill: var(--accent-ink); }
.connect__node { position: absolute; padding: 9px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: .85rem; font-weight: 600; z-index: 2; }
.n1 { top: 12%; left: 14%; } .n2 { top: 16%; right: 10%; } .n3 { bottom: 20%; left: 8%; } .n4 { bottom: 14%; right: 16%; }
.connect__live { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(60,242,155,.1); color: var(--accent); font-size: .8rem; font-weight: 600; white-space: nowrap; z-index: 2; }

/* ---------- CAPACIDADES (horizontal) ---------- */
.caps { padding: clamp(80px, 12vw, 140px) 0 60px; overflow: hidden; }
.caps__head { max-width: var(--max); margin: 0 auto 48px; padding: 0 var(--gutter); display: flex; flex-direction: column; gap: 18px; }
.caps__head .h2 { max-width: 16em; }
.caps__viewport { overflow: hidden; }
.caps__track { display: flex; gap: 20px; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.cap { position: relative; width: clamp(280px, 30vw, 380px); min-height: 440px; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.cap__tag { align-self: flex-start; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 5px 10px; border-radius: 999px; }
.cap h3 { font-size: 1.45rem; margin-top: 6px; }
.cap p { color: var(--muted); font-size: .95rem; }
.cap__art { margin-top: auto; height: 150px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); position: relative; overflow: hidden; padding: 16px; }

/* glow que sigue al cursor */
.glow-card { --mx: 50%; --my: 50%; }
.glow-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(60,242,155,.12), transparent 45%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.glow-card:hover::before { opacity: 1; }

.art-bubbles { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.art-bubbles i { height: 22px; border-radius: 10px; background: rgba(255,255,255,.08); width: 60%; }
.art-bubbles i:nth-child(2) { align-self: flex-end; background: var(--accent-soft); width: 72%; }
.art-bubbles i:nth-child(3) { width: 45%; }
.art-sheet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; align-content: center; }
.art-sheet i { height: 26px; border-radius: 6px; background: rgba(255,255,255,.06); }
.art-sheet i:nth-child(n+4) { background: rgba(34,165,101,.25); animation: rowIn 2.4s var(--ease) infinite; }
@keyframes rowIn { 0%, 30% { opacity: 0; transform: translateY(6px); } 50%, 100% { opacity: 1; transform: none; } }
.art-files { display: flex; gap: 12px; align-items: flex-end; justify-content: center; }
.art-files i { width: 64px; height: 84px; border-radius: 10px; background: linear-gradient(160deg, rgba(76,139,245,.4), rgba(76,139,245,.1)); border: 1px solid rgba(76,139,245,.3); }
.art-files i:nth-child(2) { height: 104px; background: linear-gradient(160deg, rgba(60,242,155,.4), rgba(60,242,155,.08)); border-color: rgba(60,242,155,.4); }
.art-rich { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.art-rich i { height: 12px; border-radius: 6px; background: rgba(255,255,255,.1); }
.art-rich i:nth-child(2) { width: 70%; }
.art-rich b { align-self: flex-start; margin-top: 6px; padding: 8px 14px; border-radius: 999px; background: #25d366; color: #052e16; font-size: .8rem; }
.art-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-content: center; }
.art-cal i { aspect-ratio: 1; border-radius: 8px; background: rgba(255,255,255,.06); }
.art-cal i.on { background: var(--accent); box-shadow: 0 0 24px rgba(60,242,155,.6); }
.art-chart { display: flex; gap: 10px; align-items: flex-end; }
.art-chart i { flex: 1; height: var(--h); border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--accent), rgba(60,242,155,.15)); }
.art-mail { display: grid; place-items: center; }
.art-mail i { width: 110px; height: 76px; border-radius: 10px; background: rgba(255,122,89,.18); border: 1px solid rgba(255,122,89,.4); position: relative; }
.art-mail i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom right, transparent 49%, rgba(255,122,89,.5) 50%, transparent 51%), linear-gradient(to bottom left, transparent 49%, rgba(255,122,89,.5) 50%, transparent 51%); background-size: 100% 60%; background-repeat: no-repeat; }

/* ---------- STATS ---------- */
.stats { max-width: var(--max); margin: 0 auto; padding: 60px var(--gutter) clamp(90px, 12vw, 150px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 10px 24px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1; background: linear-gradient(180deg, #fff, #8e97a6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: .92rem; max-width: 16em; }

/* ---------- PRICING ---------- */
.pricing { max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) clamp(90px, 12vw, 150px); }
.pricing__head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; margin-bottom: 52px; }
.billing { position: relative; display: inline-flex; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-top: 8px; }
.billing__opt { position: relative; z-index: 1; border: 0; background: transparent; color: var(--muted); font: 600 .9rem var(--font-body); padding: 10px 18px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: color .3s; }
.billing__opt.is-active { color: var(--accent-ink); }
.billing__opt.is-active .badge { background: rgba(4,20,12,.15); color: var(--accent-ink); }
.billing__pill { position: absolute; top: 5px; bottom: 5px; left: 5px; border-radius: 999px; background: var(--accent); transition: transform .5s var(--ease), width .5s var(--ease); }
.badge { font-size: .7rem; padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; padding: 28px 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; overflow: hidden; }
.plan header { display: flex; flex-direction: column; gap: 6px; }
.plan__num { font-family: var(--font-display); font-weight: 700; color: var(--dim); font-size: .85rem; }
.plan h3 { font-size: 1.5rem; }
.plan header p { color: var(--muted); font-size: .9rem; }
.plan__price { display: flex; align-items: baseline; gap: 4px; }
.plan__price .cur { font-size: 1.2rem; color: var(--muted); font-weight: 600; }
.plan__price b { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.plan__price .per { color: var(--muted); font-size: .82rem; margin-left: 4px; }
.plan__price--custom b { font-size: 2.1rem; }
.plan__note { font-size: .8rem; color: var(--accent); min-height: 1.2em; margin-top: -10px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: .92rem; color: #c9cfd8; flex: 1; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='%233cf29b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.plan li strong { color: var(--text); }
.plan--featured { background: linear-gradient(180deg, rgba(60,242,155,.09), rgba(60,242,155,.02) 40%), var(--surface); border-color: rgba(60,242,155,.45); box-shadow: 0 30px 80px -30px rgba(60,242,155,.35); }
.plan--featured::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--angle, 0deg), transparent 0 70%, var(--accent) 85%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: rotate 5s linear infinite; pointer-events: none; }
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes rotate { to { --angle: 360deg; } }
.plan__ribbon { position: absolute; top: 18px; right: 18px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.pricing__foot { text-align: center; color: var(--dim); font-size: .85rem; margin-top: 26px; }

/* ---------- FAQ ---------- */
.faq { max-width: 900px; margin: 0 auto; padding: 20px var(--gutter) clamp(90px, 12vw, 150px); }
.faq__head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 40px; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.05rem, 1.8vw, 1.25rem); letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--accent); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 40px 24px 0; max-width: 46em; }

/* ---------- CTA FINAL ---------- */
.final { padding: 0 var(--gutter) 120px; }
.final__reveal { max-width: var(--max); margin: 0 auto; border-radius: 40px; background: radial-gradient(80% 120% at 50% 0%, #6dffbb, var(--accent) 45%, #18c97a); color: var(--accent-ink); text-align: center; padding: clamp(80px, 13vw, 170px) var(--gutter); display: flex; flex-direction: column; align-items: center; gap: 22px; overflow: hidden; }
.final__title { font-size: clamp(3rem, 10vw, 8.4rem); font-weight: 800; letter-spacing: -0.06em; line-height: .92; }
.final__title em { color: var(--accent-ink); }
.final__reveal p { font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 30em; opacity: .8; }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px var(--gutter) 32px; }
.footer__inner { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer__by { color: var(--dim); font-size: .88rem; margin-top: 10px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 28px; color: var(--muted); font-size: .9rem; }
.footer__links a:hover { color: var(--text); }
.footer__copy { max-width: var(--max); margin: 36px auto 0; color: var(--dim); font-size: .8rem; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1080px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .float-card--a { left: -10px; }
  .float-card--b { right: -6px; }
}

@media (max-width: 900px) {
  .nav__links { position: fixed; inset: 70px 12px auto 12px; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px; border-radius: 18px; background: rgba(16,19,26,.97); border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0,0,0,.6); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .3s, transform .4s var(--ease); }
  .nav__links a { padding: 12px 14px; border-radius: 10px; font-size: 1rem; }
  .nav__links a:hover { background: rgba(255,255,255,.05); }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__cta { margin-left: auto; }
  .nav__toggle { display: flex; }

  .hero { grid-template-columns: 1fr; padding-top: 120px; text-align: left; min-height: auto; }
  .hero__stage { margin-top: 16px; }
  .scroll-hint { display: none; }

  .steps__pin { grid-template-columns: 1fr; min-height: auto; padding-block: 80px; }
  .steps__visual { max-width: 520px; width: 100%; margin: 0 auto; }

  .caps__viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .caps__viewport::-webkit-scrollbar { display: none; }
  .cap { scroll-snap-align: start; min-height: 400px; }

  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
}

@media (max-width: 640px) {
  .device__body { grid-template-columns: 1fr; min-height: 0; }
  .device__side { display: none; }
  .device__url { display: none; }
  .chat__messages { min-height: 280px; }
  .float-card { display: none; }
  .plans { grid-template-columns: 1fr; }
  .builder { grid-template-columns: 1fr; }
  .builder__controls { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .final__reveal { border-radius: 28px; }
}

/* =========================================================================
   Movimiento reducido: sin animaciones decorativas
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee__track { animation: none; }
  .manifesto__text.is-armed .w { color: var(--text); }
}

/* Precio por mensaje y empujón hacia Intelligence */
.plan__unit { font-size: .8rem; color: var(--dim); margin-top: -12px; font-variant-numeric: tabular-nums; }
.plan__unit--best { color: var(--accent); font-weight: 600; }
.plan__nudge { margin-top: auto; padding: 10px 12px; border: 1px dashed rgba(60,242,155,.4); border-radius: 12px; font-size: .8rem; line-height: 1.45; color: var(--muted, #a3a9b5); }
.plan__nudge strong { color: var(--accent); }
.pricing__foot a { color: var(--accent); }
.footer__strong { color: var(--accent) !important; font-weight: 600; }
.footer__copy a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
