/* ─────────────────────────────────────────────
   Kite Controller — Landing Page Styles v2
───────────────────────────────────────────── */

/* Tipografias servidas desde la propia web (licencia SIL OFL): cargarlas de
   Google le pasaba la IP de cada visitante. Solo latin y latin-ext. */
@font-face { font-family: 'Barlow'; font-weight: 300; font-display: swap; src: url('fonts/barlow-300-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-weight: 300; font-display: swap; src: url('fonts/barlow-300-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url('fonts/barlow-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url('fonts/barlow-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url('fonts/barlow-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url('fonts/barlow-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-weight: 700; font-display: swap; src: url('fonts/barlow-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-weight: 700; font-display: swap; src: url('fonts/barlow-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url('fonts/barlow-condensed-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url('fonts/barlow-condensed-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 900; font-display: swap; src: url('fonts/barlow-condensed-900-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 900; font-display: swap; src: url('fonts/barlow-condensed-900-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Mono'; font-weight: 400; font-display: swap; src: url('fonts/space-mono-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Mono'; font-weight: 400; font-display: swap; src: url('fonts/space-mono-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Mono'; font-weight: 700; font-display: swap; src: url('fonts/space-mono-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Mono'; font-weight: 700; font-display: swap; src: url('fonts/space-mono-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

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

:root {
  --cyan:   #00d4ff;
  --purple: #8b3cf7;
  --mid:    #5b6ef5;
  --bg:     #070810;
  --bg2:    #0a0c18;
  --text:   #ffffff;
  --muted:  rgba(255,255,255,.45);
  --border: rgba(255,255,255,.08);
  --grad:   linear-gradient(90deg, var(--cyan), var(--mid), var(--purple));
  
  --font-body: 'Barlow', sans-serif;
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --nav-h: 108px;   /* altura de la barra fija (logo 60 + padding 24+24) */
}

html { scroll-behavior: smooth; font-size: 16px; }

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: .02em;
}

/* ── UTILITIES ─────────────────────────────── */
.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;
}
.skip-nav {
  position: absolute; left: -9999px; top: 0; z-index: 10001;
  background: var(--cyan); color: #000; padding: .75rem 1.5rem;
  font-size: .9rem; font-weight: 600;
}
.skip-nav:focus { left: 50%; transform: translateX(-50%); }

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

.container { max-width: 1280px; margin: 0 auto; padding: 0 72px; }

/* ── NAV ───────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 72px;
  background: linear-gradient(to bottom, rgba(7,8,16,.95), transparent);
  transition: background .3s;
}
nav.scrolled {
  background: rgba(7,8,16,.97);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 14px;
  font-family: 'Space Mono', monospace; font-size: 20px;
  letter-spacing: .06em; text-decoration: none; color: #fff;
}
.nav-logo svg { flex-shrink: 0; }
.nav-logo img { vertical-align: middle; width: 60px; height: 60px; }
.nav-links {
  display: flex; align-items: center; gap: clamp(16px, 2.2vw, 38px);
  list-style: none;
}
.nav-links a {
  font-family: 'Space Mono', monospace; font-size: clamp(12px, 1.05vw, 15px);
  letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; color: var(--muted);
  transition: color .2s; white-space: nowrap;
}
.nav-links a:hover { color: var(--cyan); }
.nav-links a.nav-highlight { color: var(--cyan); }
.nav-badge {
  font-family: 'Space Mono', monospace; font-size: 12px;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--cyan); border: 1px solid rgba(0,212,255,.3);
  padding: 9px 18px;
  animation: border-pulse 3s ease-in-out infinite;
  white-space: nowrap;
}
@keyframes border-pulse {
  0%,100% { border-color: rgba(0,212,255,.3); }
  50%      { border-color: rgba(0,212,255,.7); }
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 36px;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: .1em;
}
.lang-link {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s, transform .2s;
  cursor: pointer;
}
.lang-link:hover { color: var(--cyan); }
.lang-link.active {
  color: #fff;
  border-bottom: 1px solid var(--cyan);
  pointer-events: none;
}
.lang-sep {
  color: rgba(255,255,255,.1);
}
.lang-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: .1em;
  text-decoration: none;
  cursor: pointer;
  padding: 4px 0;
  transition: color .2s;
}
.lang-btn:hover { color: var(--cyan); }
.lang-btn.lang-active {
  color: #fff;
  border-bottom: 1px solid var(--cyan);
  pointer-events: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  position: relative;
  width: 32px;
  height: 32px;
  z-index: 101;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  margin: 6px 0;
  transition: .3s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── HERO ──────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--nav-h) + 16px) 72px 72px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: -15%;
  background: url('img/product-hero3.webp') center 30% / cover no-repeat;
  opacity: .38;
  filter: grayscale(20%) contrast(1.1);
  transform: scale(0.85);
  animation: slow-zoom 20s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes slow-zoom {
  from { transform: scale(0.85); }
  to   { transform: scale(0.90); }
}
.hero-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 90% at 65% 50%, transparent 10%, rgba(7,8,16,.75) 75%),
    linear-gradient(to top, var(--bg) 0%, transparent 50%);
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 60% at 30% 70%, rgba(0,212,255,.06) 0%, transparent 70%);
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--grad); opacity: .7;
}
.hero-content { position: relative; z-index: 2; }
.hero-label {
  font-family: 'Space Mono', monospace; font-size: 11px;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 16px;
  display: flex; align-items: center; gap: 14px;
}
.hero-label::before {
  content: ''; display: block; width: 36px; height: 1px; background: var(--cyan);
}
.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(80px, 12vw, 180px);
  font-weight: 900; line-height: .86;
  text-transform: uppercase; letter-spacing: -.02em;
  margin-bottom: 48px;
}
.hero-title .ghost {
  display: block;
  -webkit-text-stroke: 1.5px rgba(255,255,255,.18);
  color: transparent;
}
.hero-title .solid { display: block; color: #fff; }
.hero-title .grad-line {
  display: block;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-bottom {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 48px;
}
.hero-desc {
  font-size: 17px; color: var(--muted);
  line-height: 1.75; max-width: 400px; font-weight: 300;
}
.hero-form-slot { flex: 0 1 640px; width: 100%; max-width: 640px; }
.hero-form {
  display: flex; flex-direction: column; gap: 16px;
  padding: 34px 36px;
  background: linear-gradient(135deg, rgba(0,212,255,.18), rgba(255,255,255,.06));
  border: 1px solid rgba(0,212,255,.5);
  box-shadow: 0 28px 80px rgba(0,0,0,.4), 0 0 60px rgba(0,212,255,.22);
  backdrop-filter: blur(18px);
  width: 100%;
  position: relative;
}
.hero-form::before {
  content: ''; position: absolute; top: -1px; left: -1px; right: -1px; height: 3px;
  background: var(--grad);
}
.hero-form-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(30px, 3.2vw, 44px); font-weight: 900; line-height: 1;
  letter-spacing: .01em; color: #fff;
  text-transform: uppercase;
}
.hero-form-sub {
  font-size: 16px; line-height: 1.55; color: rgba(255,255,255,.78);
  margin: -4px 0 4px;
}
.hero-form-row {
  display: flex;
  box-shadow: 0 12px 34px rgba(0,0,0,.22);
}
.hero-input {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.3); border-right: none;
  color: #fff; padding: 22px 26px;
  font-family: 'Barlow', sans-serif; font-size: 18px;
  outline: none; flex: 1; min-width: 0;
  transition: border-color .25s;
}
.hero-input::placeholder { color: rgba(255,255,255,.4); }
.hero-input:focus { border-color: rgba(0,212,255,.7); }
.hero-btn {
  background: var(--grad); color: #fff; border: none; padding: 22px 36px;
  font-family: 'Space Mono', monospace; font-size: 14px;
  letter-spacing: .15em; text-transform: uppercase; cursor: pointer; font-weight: 700;
  transition: opacity .2s, transform .2s; white-space: nowrap;
}
.hero-btn:hover { opacity: .9; transform: translateY(-1px); }
.hero-msg {
  font-family: 'Space Mono', monospace; font-size: 12px;
  letter-spacing: .1em; margin-top: 2px; min-height: 16px;
}
.hero-msg.success { color: var(--cyan); }
.hero-msg.error { color: #ef4444; }
.hero-nav-links {
  display: flex; gap: 16px; margin-top: 12px; flex-wrap: wrap;
}
.hero-nav-links a {
  font-family: 'Space Mono', monospace; font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; color: var(--muted);
  border: 1px solid var(--border); padding: 8px 16px;
  transition: color .2s, border-color .2s;
}
.hero-nav-links a:hover { color: var(--cyan); border-color: rgba(0,212,255,.4); }

/* Formulario flotante: al bajar se encoge y se queda abajo (main.js lo anima) */
.hero-form-close { display: none; }
.hero-form.is-floating {
  position: fixed; z-index: 90;
  left: 0; right: 0; bottom: 20px; margin: 0 auto;
  width: min(760px, calc(100vw - 32px));
  flex-direction: row; align-items: center; gap: 18px;
  padding: 10px 10px 10px 24px;
  background: linear-gradient(135deg, rgba(0,212,255,.16), rgba(14,16,30,.92));
  box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 0 40px rgba(0,212,255,.18);
  transition: opacity .35s ease, transform .35s ease;
}
.hero-form.is-floating .hero-form-sub,
.hero-form.is-floating .hero-nav-links { display: none; }
.hero-form.is-floating .hero-form-label { font-size: 22px; white-space: nowrap; }
.hero-form.is-floating .hero-form-row { flex: 1; min-width: 0; box-shadow: none; }
.hero-form.is-floating .hero-input { padding: 13px 18px; font-size: 16px; }
.hero-form.is-floating .hero-btn { padding: 13px 22px; font-size: 12px; }
.hero-form.is-floating .hero-form-close {
  order: 9; flex: none; display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.55); transition: color .2s;
}
.hero-form.is-floating .hero-form-close:hover { color: #fff; }
.hero-form.is-floating .hero-msg:empty { display: none; }
.hero-form.is-floating .hero-msg {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); margin: 0;
  padding: 10px 16px; background: rgba(7,8,16,.95); border: 1px solid rgba(0,212,255,.3);
}
.hero-form.is-floating.is-done .hero-form-label,
.hero-form.is-floating.is-done .hero-form-row { display: none; }
.hero-form.is-floating.is-done .hero-msg {
  position: static; flex: 1; padding: 4px 0 4px 0; background: none; border: none;
  display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap;
}
.hero-form.is-floating.is-oculto { opacity: 0; transform: translateY(24px); pointer-events: none; }

/* Redes que se ofrecen al apuntarse */
.follow-us {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px;
  font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: .08em;
  color: rgba(255,255,255,.75);
}
.follow-us a {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.18); color: #fff;
  transition: color .2s, border-color .2s, transform .2s;
}
.follow-us a:hover { color: var(--cyan); border-color: rgba(0,212,255,.5); transform: translateY(-2px); }
.follow-us svg { display: block; width: 16px; height: 16px; fill: currentColor; }
.cta-section .follow-us { justify-content: center; position: relative; z-index: 1; }
.hero-form.is-floating .follow-us { margin-top: 0; }

/* Portatiles: que el formulario se vea entero sin bajar */
@media (min-width: 901px) and (max-height: 1000px) {
  .hero { padding-bottom: 40px; }
  .hero-title { font-size: clamp(60px, min(12vw, 38vh - 206px), 180px); margin-bottom: 28px; }
  .hero-form { padding: 26px 30px; }
}

/* ── FEATURES STRIP ────────────────────────── */
.features-strip {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
}
.feat-item {
  flex: 1; padding: 40px 48px;
  display: flex; flex-direction: column; gap: 10px;
  border-right: 1px solid var(--border);
  position: relative; overflow: hidden;
  transition: background .3s;
}
.feat-item:last-child { border-right: none; }
.feat-item:hover { background: rgba(255,255,255,.03); }
.feat-item::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--grad); opacity: 0; transition: opacity .3s;
}
.feat-item:hover::before { opacity: 1; }
.feat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 52px; font-weight: 900; line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.feat-unit { font-size: 22px; font-weight: 400; }
.feat-label {
  font-family: 'Space Mono', monospace; font-size: 10px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}

/* ── SECTION GENERIC ───────────────────────── */
.section { padding: 120px 0; }
.section-dark { background: var(--bg2); }
#problem { border-bottom: 1px solid rgba(255,255,255,.08); }
#features { border-top: 1px solid rgba(255,255,255,.08); }

.section-kicker {
  font-family: 'Space Mono', monospace; font-size: 10px;
  letter-spacing: .3em; text-transform: uppercase; color: var(--cyan);
  margin-bottom: 20px; display: flex; align-items: center; gap: 12px;
}
.section-kicker::before {
  content: ''; width: 24px; height: 1px; background: var(--cyan);
}
.section-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(48px, 6vw, 90px); font-weight: 900; line-height: .9;
  text-transform: uppercase; margin-bottom: 24px;
}
.section-body {
  font-size: 16px; color: var(--muted);
  line-height: 1.8; font-weight: 300; margin-bottom: 48px;
}
.section-body.demo-desc {
  max-width: 560px;
}
.section-body.specs-desc {
  max-width: 440px;
}

/* ── PROBLEM / VS ──────────────────────────── */
.problem-grid {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 0; margin-top: 64px;
  border: 1px solid var(--border);
}
.problem-card {
  padding: 56px 48px;
  position: relative;
}
.problem-card.solution {
  background: rgba(0,212,255,.03);
  border-left: 1px solid var(--border);
}
.problem-card.solution::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad);
}
.vs-divider {
  display: flex; align-items: center; justify-content: center;
  padding: 0 24px;
  font-family: 'Barlow Condensed', sans-serif; font-size: 24px; font-weight: 900;
  letter-spacing: .1em; color: rgba(255,255,255,.15);
  border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  writing-mode: vertical-rl;
}
.problem-card h3 {
  font-family: 'Barlow Condensed', sans-serif; font-size: 28px; font-weight: 900;
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 24px;
}
.problem-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.problem-list li {
  font-size: 15px; color: var(--muted); font-weight: 300;
  display: flex; align-items: flex-start; gap: 10px;
}
.problem-list li::before {
  content: ''; flex-shrink: 0; width: 16px; height: 16px; margin-top: 3px;
  border: 1px solid; display: flex; align-items: center; justify-content: center;
}
.problem-list li.con { color: rgba(255,255,255,.35); }
.problem-list li.con::before { border-color: rgba(255,255,255,.2); content: '✕'; font-size: 10px; color: rgba(255,255,255,.3); }
.problem-list li.pro { color: var(--text); }
.problem-list li.pro::before { border-color: var(--cyan); content: '✓'; font-size: 10px; color: var(--cyan); }


/* ── BENCHMARK CTA ─────────────────────────── */
.bench-inner {
  display: grid; grid-template-columns: 1fr auto; gap: 80px;
  align-items: center; margin-top: 64px;
}
.bench-text h2 {
  font-family: 'Barlow Condensed', sans-serif; font-size: clamp(48px, 5vw, 80px);
  font-weight: 900; text-transform: uppercase; line-height: .9; margin-bottom: 16px;
}
.bench-text p {
  font-size: 15px; color: var(--muted); font-weight: 300; max-width: 460px;
  line-height: 1.7; margin-bottom: 32px;
}
.bench-metrics {
  display: flex; gap: 0;
  border: 1px solid var(--border);
}
.benchmark-metric {
  padding: 32px 36px;
  border-right: 1px solid var(--border); text-align: center;
  display: flex; flex-direction: column; gap: 8px;
}
.benchmark-metric:last-child { border-right: none; }
.benchmark-metric-icon { font-size: 24px; display: block; }
.benchmark-metric-label {
  font-family: 'Barlow Condensed', sans-serif; font-size: 18px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
}
.benchmark-metric-detail { font-size: 12px; color: var(--muted); max-width: 120px; }
.btn-grad {
  display: inline-block;
  background: var(--grad); color: #fff; border: none; padding: 16px 40px;
  font-family: 'Space Mono', monospace; font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; font-weight: 700; transition: opacity .2s;
}
.btn-grad:hover { opacity: .85; }
.btn-outline {
  display: inline-block;
  background: transparent; color: var(--muted);
  border: 1px solid var(--border); padding: 16px 40px;
  font-family: 'Space Mono', monospace; font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; font-weight: 700;
  transition: color .2s, border-color .2s;
}
.btn-outline:hover { color: var(--cyan); border-color: rgba(0,212,255,.4); }
.bench-note {
  font-family: 'Space Mono', monospace; font-size: 10px;
  letter-spacing: .1em; color: rgba(255,255,255,.22); margin-top: 12px; display: block;
}

/* ── PHONE VIDEO ─────────────────────────────── */
.phone-video-section {
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.phone-video-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 6vw, 100px);
  padding: 140px 0;
}
.phone-video-copy {
  flex: 1;
  max-width: 540px;
}
.phone-video-copy h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(48px, 7vw, 110px);
  font-weight: 900;
  line-height: .88;
  text-transform: uppercase;
  letter-spacing: -.02em;
  margin-bottom: 28px;
}
.phone-video-copy p {
  max-width: 420px;
  color: rgba(255,255,255,.58);
  font-size: 18px;
  line-height: 1.7;
  font-weight: 300;
}

/* iPhone-style frame (portrait) */
.phone-mockup {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  /* El suavizado lo gestiona el lerp en JS (initAutoplayVideo); una transición
     CSS aquí provocaría doble amortiguación y el efecto "goma" poco fluido. */
}
.phone-frame {
  position: relative;
  width: clamp(220px, 22vw, 320px);
  aspect-ratio: 9 / 19.5;
  border-radius: clamp(28px, 3.2vw, 48px);
  border: clamp(4px, .45vw, 7px) solid #2a2a3e;
  background: #0a0a12;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06),
    0 20px 60px rgba(0,0,0,.6),
    inset 0 0 30px rgba(0,0,0,.4);
  overflow: hidden;
}
.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: clamp(18px, 2vw, 28px);
  background: #111;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-notch::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1a1a2e;
  box-shadow: inset 0 0 2px rgba(100,100,200,.3);
}
.phone-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* ── DEMO ──────────────────────────────────── */
.demo-container {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; margin-top: 56px; border: 1px solid var(--border);
}
.demo-panel {
  padding: 32px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 16px;
}
.demo-panel:last-child { border-right: none; }
.demo-panel-title {
  font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
}
.demo-panel-sub {
  font-family: 'Space Mono', monospace; font-size: 10px; font-weight: 400;
  letter-spacing: .1em; color: var(--muted); text-transform: none;
}
#demo-canvas-kb, #demo-canvas-oh {
  width: 100%; height: auto; display: block; border: 1px solid var(--border);
}
.demo-status {
  font-family: 'Space Mono', monospace; font-size: 11px;
  letter-spacing: .08em; color: var(--muted); min-height: 20px;
}
.demo-hint {
  font-size: 12px; color: rgba(255,255,255,.25); font-weight: 300;
}
.demo-controls {
  display: flex; align-items: center; gap: 24px;
  margin-top: 24px; padding-top: 24px;
  border-top: 1px solid var(--border);
}
.demo-timer {
  font-family: 'Space Mono', monospace; font-size: 13px;
  letter-spacing: .1em; color: var(--muted);
}

/* ── FEATURES GRID ─────────────────────────── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; border: 1px solid var(--border); margin-top: 64px;
}
.feature-card {
  padding: 48px 40px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
  transition: background .3s;
}
.feature-card:nth-child(3n) { border-right: none; }
.feature-card:nth-last-child(-n+3) { border-bottom: none; }
.feature-card:hover { background: rgba(255,255,255,.02); }
.feature-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad); opacity: 0; transition: opacity .3s;
}
.feature-card:hover::after { opacity: 1; }
.feature-number {
  font-family: 'Barlow Condensed', sans-serif; font-size: 72px; font-weight: 900;
  line-height: 1; margin-bottom: 20px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: .9;
}
.feature-card h3 {
  font-family: 'Barlow Condensed', sans-serif; font-size: 24px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px;
}
.feature-card p { font-size: 15px; color: var(--muted); font-weight: 300; line-height: 1.7; }
.feature-icon { width: 32px; height: 32px; margin-bottom: 8px; display: block; }

/* ── HOW IT WORKS ──────────────────────────── */
.how-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: start; margin-top: 64px;
}
.how-steps { display: flex; flex-direction: column; gap: 0; }
.how-step {
  display: flex; align-items: flex-start; gap: 24px;
  padding: 28px 0; border-bottom: 1px solid var(--border);
}
.how-step:first-child { padding-top: 0; }
.how-step:last-child { border-bottom: none; }
.step-num {
  font-family: 'Barlow Condensed', sans-serif; font-size: 48px; font-weight: 900;
  line-height: 1; background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  flex-shrink: 0; width: 52px; text-align: right;
}
.step-content h3 {
  font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px;
}
.step-content p { font-size: 14px; color: var(--muted); font-weight: 300; line-height: 1.7; }
.how-image-col img {
  width: 100%; height: auto; display: block;
  filter: brightness(.7) contrast(1.1);
  border: 1px solid var(--border);
}

/* ── SPECS / PRODUCT SECTION ───────────────── */
.product-section {
  display: flex; align-items: stretch; min-height: 80vh;
}
.product-photo-col {
  flex: 0 0 50%; position: relative; overflow: hidden;
}
.product-photo-col img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 15%;
  filter: brightness(.8) contrast(1.05); display: block;
}
.product-photo-col::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 60%, var(--bg2) 100%);
}
.product-text-col {
  flex: 1; background: var(--bg2);
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 72px;
}
.spec-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--border); max-width: 480px;
}
.spec-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.spec-label {
  font-family: 'Space Mono', monospace; font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.spec-value {
  font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 700;
  text-align: right;
}

/* ── GALLERY ───────────────────────────────── */
.media-carousel-section { padding-top: 20px; overflow: hidden; }
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  /* Ancho de la diapositiva: lo usan el propio slide, el padding del track y las flechas */
  --slide-w: min(85vw, 1000px);
}
@media (min-width: 768px) {
  .carousel-container { --slide-w: min(70vw, 1000px); }
}
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 20px;
  /* Medio hueco sobrante a cada lado, para que la primera y la ultima tambien puedan centrarse */
  padding: 20px calc((100% - var(--slide-w)) / 2);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  flex: 0 0 var(--slide-w);
  height: 60vh;
  min-height: 400px;
  max-height: 700px;
  scroll-snap-align: center;
  border-radius: 32px;
  position: relative;
  overflow: hidden;
  background: #0f0f15;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  /* Slides inactivas: reducidas y atenuadas; la activa crece a tamaño completo */
  transform: scale(0.9);
  opacity: 0.4;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.6s ease;
}
.carousel-slide.is-active {
  transform: scale(1);
  opacity: 1;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 212, 255, 0.15);
}
@media (prefers-reduced-motion: reduce) {
  .carousel-slide { transition: opacity 0.3s ease; transform: none; }
}
.carousel-slide img, .carousel-slide picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Degradado superior para legibilidad del caption sobre cualquier imagen */
.carousel-slide::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(7, 8, 16, 0.65), transparent);
  z-index: 1;
  pointer-events: none;
}
.slide-caption {
  position: absolute;
  top: 20px;
  left: 40px;
  z-index: 2;
  max-width: 80%;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease 0.15s, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
.carousel-slide.is-active .slide-caption {
  opacity: 1;
  transform: translateY(0);
}
.slide-caption-eyebrow {
  display: none;
}
.slide-caption-title {
  font-family: var(--font-heading);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.02em;
  font-size: clamp(20px, 2.8vw, 36px);
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.85);
}
@media (min-width: 768px) {
  .slide-caption { top: 24px; left: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .slide-caption { transition: opacity 0.3s ease; transform: none; }
}
.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  padding-bottom: 20px;
}
.carousel-dots {
  display: flex;
  background: rgba(40, 40, 45, 0.7);
  padding: 4px 12px;
  border-radius: 40px;
  gap: 2px;
  align-items: center;
  backdrop-filter: blur(10px);
}
/* El botón mide 24px (area de click minima accesible); el punto visible se pinta en ::before */
.carousel-dot {
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: width 0.3s ease;
}
.carousel-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: width 0.3s ease, background 0.3s ease, border-radius 0.3s ease;
}
.carousel-dot:hover::before { background: rgba(255, 255, 255, 0.7); }
.carousel-dot.active { width: 32px; }
.carousel-dot.active::before {
  width: 24px;
  background: #fff;
  border-radius: 6px;
}
.carousel-play-btn {
  background: rgba(40, 40, 45, 0.7);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 0.3s ease;
}
.carousel-play-btn:hover { background: rgba(80, 80, 90, 0.9); }

/* Flechas de navegacion: solo en punteros con hover real, el movil usa swipe */
.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(20, 20, 26, 0.65);
  backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.3s ease, background 0.3s ease;
}
/* Ancladas al borde de la diapositiva activa, no al del contenedor */
.carousel-arrow-prev { left: max(16px, calc(50% - var(--slide-w) / 2 - 64px)); }
.carousel-arrow-next { right: max(16px, calc(50% - var(--slide-w) / 2 - 64px)); }
.carousel-arrow:hover { background: rgba(60, 60, 70, 0.9); }
@media (hover: hover) and (min-width: 768px) {
  .carousel-arrow { display: grid; }
  .media-carousel-section:hover .carousel-arrow { opacity: 1; }
  .carousel-arrow:focus-visible { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .carousel-arrow { transition: opacity 0.2s ease; }
}
.carousel-slide:not(.is-active) { cursor: pointer; }
.carousel-track:focus { outline: none; }
.carousel-track:focus-visible {
  outline: 2px solid var(--brand, #7c3aed);
  outline-offset: -4px;
  border-radius: 32px;
}

/* ── USE CASES ─────────────────────────────── */
.usecases-grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 0; border: 1px solid var(--border); margin-top: 64px;
}
.usecase-card {
  padding: 30px 36px;
  border-bottom: 1px solid var(--border);
  position: relative; transition: background .3s;
}
.usecase-card:not(.usecase-blueprint) { border-left: 1px solid var(--border); }
.usecase-card:last-child { border-bottom: none; }
.usecase-card:hover { background: rgba(255,255,255,.02); }
.usecase-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad); opacity: 0; transition: opacity .3s;
}
.usecase-card:hover::before { opacity: 1; }
.usecase-game {
  font-family: 'Barlow Condensed', sans-serif; font-size: 26px; font-weight: 900;
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.usecase-card p { font-size: 15px; color: var(--muted); font-weight: 300; line-height: 1.7; }
.usecase-blueprint {
  grid-row: span 4;
  padding: 0;
  min-height: 640px;
  overflow: hidden;
}
.game-usecase {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 18px;
  align-items: start;
}
.game-usecase .usecase-game,
.game-usecase p {
  grid-column: 2;
}
.game-usecase:not(:has(.game-pill)) .usecase-game,
.game-usecase:not(:has(.game-pill)) p {
  grid-column: 1 / -1;
}

/* ── DÓNDE ESTAMOS ─────────────────────────── */
#roadmap { border-top: 1px solid var(--border); }
.roadmap-intro { max-width: 640px; margin-bottom: 28px; }
.roadmap-progreso {
  display: flex; align-items: center; gap: 18px; max-width: 520px; margin-bottom: 56px;
  font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--cyan); white-space: nowrap;
}
.roadmap-barra { flex: 1; height: 4px; background: rgba(255,255,255,.08); position: relative; overflow: hidden; }
/* 3 pasos hechos y el 4.o a medias */
.roadmap-barra span { position: absolute; top: 0; bottom: 0; left: 0; width: 44%; background: var(--grad); }
.roadmap {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border); border-left: 1px solid var(--border);
}
.hito {
  position: relative; padding: 34px 28px 30px;
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.hito::after {
  content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: transparent;
}
.hito.hecho::after { background: var(--cyan); }
.hito.ahora::after { background: linear-gradient(90deg, var(--cyan), var(--purple)); }
.hito::before {
  content: ''; position: absolute; top: -6px; left: 28px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg2); border: 2px solid rgba(255,255,255,.22); z-index: 1;
}
.hito.hecho::before { background: var(--cyan); border-color: var(--cyan); }
.hito.ahora::before { background: var(--purple); border-color: var(--purple); animation: hito-pulso 2.2s ease-in-out infinite; }
.hito.ahora { background: linear-gradient(180deg, rgba(139,60,247,.14), transparent 75%); }
@keyframes hito-pulso {
  0%, 100% { box-shadow: 0 0 0 3px rgba(139,60,247,.35); }
  50%      { box-shadow: 0 0 0 10px rgba(139,60,247,0); }
}
.hito-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hito-num { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: .2em; color: var(--muted); }
.hito-estado {
  font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 9px; border: 1px solid var(--border); color: var(--muted);
}
.hito.hecho .hito-estado { color: var(--cyan); border-color: rgba(0,212,255,.35); }
.hito.ahora .hito-estado { color: #fff; background: var(--purple); border-color: var(--purple); }
.hito h3 {
  font-family: 'Barlow Condensed', sans-serif; font-size: 24px; font-weight: 900;
  text-transform: uppercase; letter-spacing: .03em; line-height: 1.05; margin: 16px 0 10px;
}
.hito:not(.hecho):not(.ahora) h3 { color: rgba(255,255,255,.72); }
.hito p { font-size: 14.5px; color: var(--muted); font-weight: 300; line-height: 1.65; }
@media (prefers-reduced-motion: reduce) {
  .hito.ahora::before { animation: none; box-shadow: 0 0 0 4px rgba(139,60,247,.3); }
}
@media (max-width: 1100px) { .roadmap { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .roadmap { grid-template-columns: 1fr; }
  .hito { padding: 28px 22px 24px; }
  .roadmap-progreso { margin-bottom: 40px; }
}
.usecase-blueprint picture,
.usecase-blueprint img {
  display: block;
  width: 100%;
  height: 100%;
}
.usecase-blueprint img {
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
}
.game-examples {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.game-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 10px 16px;
  border: 1px solid rgba(0,212,255,.25);
  background: rgba(0,212,255,.06);
  box-shadow: 0 0 26px rgba(0,212,255,.08);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  animation: game-pill-float 3s ease-in-out infinite;
}
.game-pill:nth-child(2) { animation-delay: .25s; }
.game-pill:nth-child(3) { animation-delay: .5s; }
@keyframes game-pill-float {
  0%, 100% { transform: translateY(0); border-color: rgba(0,212,255,.25); }
  50% { transform: translateY(-6px); border-color: rgba(139,60,247,.55); }
}
.usecases-cta {
  margin-top: 48px; display: flex; align-items: center; gap: 24px;
}
.usecases-cta p { font-size: 15px; color: var(--muted); }

/* ── CTA / NEWSLETTER ──────────────────────── */
.cta-section {
  position: relative; overflow: hidden; padding: 120px 72px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--bg);
}
.cta-glow {
  position: absolute; width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(91,110,245,.15) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none;
}
.cta-label {
  font-family: 'Space Mono', monospace; font-size: 11px;
  letter-spacing: .3em; text-transform: uppercase; color: var(--cyan);
  margin-bottom: 24px; display: flex; align-items: center; gap: 12px;
  position: relative; z-index: 1;
}
.cta-label::before, .cta-label::after {
  content: ''; flex: 0 0 40px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}
.cta-label::after { background: linear-gradient(270deg, transparent, var(--cyan)); }
.cta-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(60px, 8vw, 120px); font-weight: 900; line-height: .9;
  text-transform: uppercase; letter-spacing: -.01em;
  margin-bottom: 24px; position: relative; z-index: 1;
}
.cta-sub {
  font-size: 17px; color: var(--muted); font-weight: 300;
  line-height: 1.7; max-width: 480px; margin-bottom: 56px;
  position: relative; z-index: 1;
}
.cta-form {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  position: relative; z-index: 1;
}
.cta-form-row { display: flex; }
.cta-input {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.15); border-right: none;
  color: #fff; padding: 16px 28px;
  font-family: 'Barlow', sans-serif; font-size: 15px;
  outline: none; width: 320px; transition: border-color .25s;
}
.cta-input::placeholder { color: rgba(255,255,255,.28); }
.cta-input:focus { border-color: rgba(0,212,255,.5); }
.cta-btn {
  background: var(--grad); color: #fff; border: none; padding: 16px 40px;
  font-family: 'Space Mono', monospace; font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase; cursor: pointer;
  font-weight: 700; transition: opacity .2s;
}
.cta-btn:hover { opacity: .85; }
.cta-note {
  font-family: 'Space Mono', monospace; font-size: 10px;
  letter-spacing: .12em; color: rgba(255,255,255,.2);
}
.newsletter-msg {
  font-family: 'Space Mono', monospace; font-size: 11px;
  letter-spacing: .08em; position: relative; z-index: 1;
}
.newsletter-msg.success { color: var(--cyan); }
.newsletter-msg.error { color: #ef4444; }

/* ── FOOTER ────────────────────────────────── */
footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 40px 72px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px;
}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Space Mono', monospace; font-size: 14px;
  text-decoration: none; color: #fff;
}
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a {
  font-family: 'Space Mono', monospace; font-size: 10px;
  letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; color: var(--muted); transition: color .2s;
}
.footer-links a:hover { color: var(--cyan); }
.footer-social { display: flex; align-items: center; gap: 12px; }
.footer-social a {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--border); border-radius: 9px;
  color: var(--muted);
  transition: color .2s, border-color .2s, background .2s;
}
.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--cyan); border-color: var(--cyan); background: rgba(0,212,255,.08);
}
.footer-social svg { display: block; width: 16px; height: 16px; fill: currentColor; }
.footer-copy {
  font-family: 'Space Mono', monospace; font-size: 10px;
  letter-spacing: .15em; color: rgba(255,255,255,.22);
}

/* ── CHATBOT ───────────────────────────────── */
#chatbot-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 1001;
  width: 52px; height: 52px;
  background: var(--grad);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 20px rgba(0,212,255,.3);
  transition: opacity .2s, transform .2s;
}
#chatbot-fab:hover { opacity: .85; transform: translateY(-2px); }
#chatbot {
  position: fixed; bottom: 90px; right: 24px; z-index: 1001;
  width: 360px; background: var(--bg2);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  transition: opacity .3s, transform .3s;
}
#chatbot.chatbot-closed { opacity: 0; pointer-events: none; transform: translateY(10px); }
.chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.chat-header-info { display: flex; align-items: center; gap: 12px; }
.chat-avatar { font-size: 22px; }
.chat-header-name {
  font-family: 'Barlow Condensed', sans-serif; font-size: 16px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.chat-header-status {
  font-family: 'Space Mono', monospace; font-size: 10px; color: var(--cyan);
  letter-spacing: .08em;
}
.chat-close {
  background: none; border: none; color: var(--muted); cursor: pointer; font-size: 14px;
  transition: color .2s;
}
.chat-close:hover { color: #fff; }
.chat-messages {
  height: 280px; overflow-y: auto; padding: 16px 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.chat-message {
  max-width: 82%; padding: 10px 14px; font-size: 13px; line-height: 1.5;
}
.chat-message.bot {
  background: rgba(255,255,255,.06); align-self: flex-start;
  border-left: 2px solid var(--cyan);
}
.chat-message.user {
  background: rgba(0,212,255,.1); align-self: flex-end;
}
.chat-suggestions { padding: 8px 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.chat-suggestion {
  font-size: 11px; font-family: 'Space Mono', monospace; letter-spacing: .05em;
  padding: 6px 12px; background: rgba(255,255,255,.05); border: 1px solid var(--border);
  cursor: pointer; color: var(--muted); transition: color .2s, border-color .2s;
}
.chat-suggestion:hover { color: var(--cyan); border-color: rgba(0,212,255,.4); }
.chat-input-area {
  display: flex; border-top: 1px solid var(--border); padding: 12px 20px; gap: 10px;
}
#chat-input {
  flex: 1; background: rgba(255,255,255,.05); border: 1px solid var(--border);
  color: #fff; padding: 10px 14px; font-family: 'Barlow', sans-serif; font-size: 13px;
  outline: none;
}
#chat-input:focus { border-color: rgba(0,212,255,.4); }
.chat-send {
  background: var(--grad); border: none; color: #fff; padding: 10px 16px;
  cursor: pointer; font-size: 14px; transition: opacity .2s;
}
.chat-send:hover { opacity: .85; }

/* ── SCROLL REVEAL ─────────────────────────── */
[data-aos] {
  opacity: 0; transform: translateY(20px);
  transition: opacity .5s, transform .5s;
}
[data-aos].visible {
  opacity: 1; transform: translateY(0);
}

/* ── PHRASES WALL ──────────────────────────── */
.phrases-wall {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 72vh;
  overflow: hidden;
  background: var(--bg);
}
.phrases-wall-separator {
  height: 10vh;
  min-height: 80px;
  max-height: 120px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.phrases-wall-separator .pw-row {
  font-size: clamp(18px, 1.8vw, 30px);
}
/* Vignette — funde los cuatro bordes con el fondo */
.pw-vignette {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(to right,  var(--bg) 0%, transparent 14%, transparent 86%, var(--bg) 100%),
    linear-gradient(to bottom, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%);
}
/* Contenedor rotado al centro de la sección */
.pw-track {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  width: 340%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  user-select: none;
}
/* Fila base */
.pw-row {
  display: flex;
  align-items: baseline;
  gap: 32px;
  white-space: nowrap;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(18px, 2vw, 34px);
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: 1;
}
/* Offsets para escalonar las filas como papel de pared */
.pw-r1 { transform: translateX(-8rem); }
.pw-r2 { transform: translateX(-16rem); }

/* Tratamientos de color */
.pw-ghost {
  -webkit-text-stroke: 1.5px rgba(255,255,255,.55);
  color: transparent;
}
.pw-white {
  color: rgba(255,255,255,.82);
}
.pw-cyan {
  color: var(--cyan);
}
.pw-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pw-sep {
  font-family: 'Space Mono', monospace;
  font-size: .55em;
  color: rgba(255,255,255,.25);
  flex-shrink: 0;
}

/* ── MANIFESTO ─────────────────────────────── */
.manifesto-section {
  background: var(--bg);
  padding: 140px 72px;
  overflow: hidden;
  position: relative;
}
.manifesto-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 10% 30%, rgba(0,212,255,.04) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 90% 70%, rgba(139,60,247,.05) 0%, transparent 70%);
  pointer-events: none;
}
.manifesto-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.manifesto-kicker {
  margin-bottom: 56px;
}

/* ── Carousel ── */
.manifesto-carousel {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
}
.mc-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
}
.mc-slide.mc-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mc-slide.mc-exit {
  opacity: 0;
  transform: translateY(-24px);
  transition: opacity .35s ease, transform .35s ease;
}
.mc-slide-quote {
  gap: 20px;
}
.mc-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 56px;
}
.mc-arrow {
  background: none;
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.mc-arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.mc-dots {
  display: flex;
  gap: 8px;
}
.mc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .25s, transform .25s;
}
.mc-dot.mc-dot-active {
  background: var(--accent);
  transform: scale(1.4);
}
/* Base phrase */
.mp {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  line-height: .88;
  text-transform: uppercase;
  letter-spacing: -.02em;
  font-size: clamp(52px, 9vw, 140px);
  margin: 0;
}
.mp-sm { font-size: clamp(40px, 6vw, 100px); }
/* Treatments — mirrors hero */
.mp-ghost {
  -webkit-text-stroke: 1.5px rgba(255,255,255,.2);
  color: transparent;
}
.mp-solid {
  color: #fff;
}
.mp-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Space Mono inline accent for short punchy lines */
.mp-mono {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 64px);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
  line-height: 1;
}
/* Climax quote */
.manifesto-quote {
  padding: 64px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mq-prefix {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 14px;
}
.mq-prefix::before {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: var(--cyan);
}
.mq-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(44px, 7.5vw, 118px);
  line-height: .88;
  text-transform: uppercase;
  letter-spacing: -.02em;
  color: #fff;
  quotes: none;
  margin: 0;
}
.mq-strike {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  white-space: nowrap;
}
.mq-strike::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 4px;
  background: var(--grad);
  transform: translateY(-50%) scaleX(0);
  transform-origin: left;
  transition: transform .6s ease .1s;
  border-radius: 2px;
}
.mq-strike.visible::after,
.manifesto-quote.visible .mq-strike::after {
  transform: translateY(-50%) scaleX(1);
}

/* ── RESPONSIVE ────────────────────────────── */
/* Por debajo de 1440 px la etiqueta no cabe junto a los 5 enlaces del menu */
@media (max-width: 1439px) { .nav-badge { display: none; } }
@media (max-width: 1100px) {
  .container, nav, footer { padding-left: 40px; padding-right: 40px; }
  .hero, .cta-section { padding-left: 40px; padding-right: 40px; }
  .product-text-col { padding: 60px 48px; }
  .bench-inner { grid-template-columns: 1fr; gap: 48px; }
  .how-grid { grid-template-columns: 1fr; }
  .how-image-col { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card:nth-child(3n) { border-right: 1px solid var(--border); }
  .feature-card:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .feature-card:nth-child(2n) { border-right: none; }
  .feature-card:nth-last-child(-n+2) { border-bottom: none; }
  .problem-grid { grid-template-columns: 1fr; }
  .vs-divider { writing-mode: horizontal-tb; padding: 16px; border: none; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .problem-card.solution { border-left: none; border-top: 1px solid var(--border); }
  .hero { min-height: 600px; }
  .product-section { flex-direction: column; }
  .product-photo-col { flex: none; height: auto; aspect-ratio: 3 / 2; }
  .product-photo-col::after { background: linear-gradient(to bottom, transparent 60%, var(--bg2) 100%); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .container, nav, footer { padding-left: 24px; padding-right: 24px; }
  .hero, .cta-section { padding-left: 24px; padding-right: 24px; padding-bottom: 48px; min-height: auto; height: auto; }
  .hero-bg { background-position: 65% center; }
  
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(7, 8, 16, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 60px 24px;
    gap: 32px;
    border-bottom: 1px solid var(--border);
    animation: navFadeIn .3s ease forwards;
  }
  .nav-open .nav-links { display: flex; }
  .nav-links a { font-size: 14px; letter-spacing: .2em; width: 100%; text-align: center; }
  
  .lang-switcher { margin: 0; position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); }
  .nav-badge { display: none; }
  
  @keyframes navFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .features-strip { flex-direction: column; }
  .feat-item { border-right: none; border-bottom: 1px solid var(--border); padding: 28px 24px; }
  .feat-item:last-child { border-bottom: none; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 32px; }
  .hero-form { width: 100%; padding: 26px 22px; }
  .hero-form-slot { flex-basis: auto; }
  .hero-form-row { flex-direction: column; }
  .hero-input { width: 100%; border-right: 1px solid rgba(255,255,255,.15); border-bottom: none; }
  .hero-btn { width: 100%; }
  .hero-form.is-floating { bottom: 10px; width: calc(100vw - 20px); padding: 8px; gap: 8px; }
  .hero-form.is-floating .hero-form-label { display: none; }
  .hero-form.is-floating .hero-form-row { flex-direction: row; }
  .hero-form.is-floating .hero-input { width: auto; padding: 12px 14px; border-right: none; border-bottom: 1px solid rgba(255,255,255,.3); }
  .hero-form.is-floating .hero-btn { width: auto; padding: 12px 14px; font-size: 11px; letter-spacing: .08em; }
  .hero-form.is-floating .hero-form-close { width: 30px; }
  .hero-form.is-floating.is-done .hero-msg { padding-left: 8px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card { border-right: none; border-bottom: 1px solid var(--border); }
  .feature-card:last-child { border-bottom: none; }
  .phone-video-layout { flex-direction: column; text-align: center; gap: 40px; padding: 60px 0; }
  .phone-video-copy { max-width: 100%; }
  .phone-video-copy h2 { font-size: clamp(36px, 10vw, 58px); }
  .phone-frame { width: min(260px, 65vw); }
  .demo-container { grid-template-columns: 1fr; }
  .demo-panel { border-right: none; border-bottom: 1px solid var(--border); }
  .demo-panel:last-child { border-bottom: none; }
  .usecases-grid { grid-template-columns: 1fr; }
  .usecase-blueprint { grid-row: auto; min-height: 360px; }
  .usecase-card { border-left: none; border-right: none; border-bottom: 1px solid var(--border); }
  .usecase-card:last-child { border-bottom: none; }
  .cta-input { width: 200px; }
  .cta-form-row { flex-direction: column; }
  .cta-input { border-right: 1px solid rgba(255,255,255,.15); border-bottom: none; width: 100%; }
  .cta-btn { width: 100%; }

  .bench-metrics { flex-direction: column; }
  .benchmark-metric { border-right: none; border-bottom: 1px solid var(--border); }
  .benchmark-metric:last-child { border-bottom: none; }
  .product-text-col { padding: 48px 24px; }
  footer { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
  .footer-social { gap: 10px; }
  .usecases-cta { flex-direction: column; align-items: flex-start; }
  #chatbot { width: calc(100vw - 48px); }
  .manifesto-section { padding: 80px 24px; }
  .manifesto-kicker { margin-bottom: 40px; }
  .manifesto-carousel { min-height: 260px; }
  .mc-controls { margin-top: 40px; }
}
