/* ===================== LiSync — Estilos ===================== */

/* Self-hosted variable fonts (latin subset: covers Spanish ñ, tildes, ¿ ¡) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/inter-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 Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('fonts/space-grotesk-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;
}

:root {
  --bg: #0b0714;
  --bg-alt: #120a22;
  /* The alternate section tint fades in and out over 180px instead of ending in a straight edge */
  --section-fade: linear-gradient(to bottom,
    rgba(18,10,34,0) 0,
    rgba(18,10,34,.10) 36px,
    rgba(18,10,34,.35) 72px,
    rgba(18,10,34,.65) 108px,
    rgba(18,10,34,.90) 144px,
    rgb(18,10,34) 180px,
    rgb(18,10,34) calc(100% - 180px),
    rgba(18,10,34,.90) calc(100% - 144px),
    rgba(18,10,34,.65) calc(100% - 108px),
    rgba(18,10,34,.35) calc(100% - 72px),
    rgba(18,10,34,.10) calc(100% - 36px),
    rgba(18,10,34,0) 100%);
  --surface: #17102b;
  --surface-2: #1d1435;
  --border: rgba(255,255,255,0.08);
  --text: #f4f2fb;
  --text-dim: #b8b0d1;
  --text-dimmer: #8a7fa8;

  --purple: #8b5cf6;
  --violet: #a855f7;
  --pink: #ec4899;
  --orange: #f97316;
  --amber: #fbbf24;
  --cyan: #22d3ee;
  --green: #22c55e;

  --gradient-1: linear-gradient(135deg, var(--purple), var(--pink) 55%, var(--orange));
  --gradient-2: linear-gradient(135deg, var(--cyan), var(--purple));
  --gradient-text: linear-gradient(90deg, #a855f7, #ec4899 45%, #f97316 90%);

  --radius: 20px;
  --radius-sm: 12px;
  --shadow-glow: 0 0 60px rgba(139, 92, 246, 0.25);
  --ease: cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Hide the scrollbar chrome while keeping scroll fully functional */
html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.02em;
}

p { margin: 0 0 1em; color: var(--text-dim); }
a { color: inherit; text-decoration: none; }
ul { padding: 0; margin: 0; list-style: none; }
img { max-width: 100%; display: block; }

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

/* ---------- video hero (looping background) ---------- */
.video-intro {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Bottom of the video melts into the page colour (eased stops avoid a visible band) */
.video-intro::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: clamp(180px, 38%, 380px);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(11,7,20,0) 0%,
    rgba(11,7,20,0.10) 20%,
    rgba(11,7,20,0.35) 40%,
    rgba(11,7,20,0.65) 60%,
    rgba(11,7,20,0.90) 80%,
    rgb(11,7,20) 100%);
}
.video-intro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
/* Never show the browser's native play button / controls over the background video */
.video-intro-video::-webkit-media-controls,
.video-intro-video::-webkit-media-controls-panel,
.video-intro-video::-webkit-media-controls-overlay-play-button,
.video-intro-video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0 !important;
}
.video-intro-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.2) 100%);
  z-index: 1;
}
.video-intro-overlay {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 2;
  width: max-content;
  max-width: calc(100% - 140px);
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  text-align: center;
  color: #fff;
}
.video-intro-sub {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
  animation: cueBlink 2s ease-in-out infinite;
}
@keyframes cueBlink {
  0%, 100% { opacity: .3; }
  50% { opacity: 1; }
}

/* ---------- cursor glow ---------- */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.08), transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  transition: opacity .3s;
  will-change: transform;
}
@media (max-width: 900px) { .cursor-glow { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-1);
  background-size: 200% 200%;
  color: #fff;
  box-shadow: 0 8px 30px rgba(236, 72, 153, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 40px rgba(236, 72, 153, 0.5);
  background-position: 100% 0;
}
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}
.btn-lg { padding: 17px 34px; font-size: 16px; }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .3s, padding .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  padding: 12px 0;
  background: rgba(11, 7, 20, 0.75);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--text);
  margin-right: auto;
}
.logo span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-desktop {
  display: flex;
  gap: 32px;
}
.nav-desktop a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dim);
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}
.nav-desktop a:hover { color: var(--text); }
.nav-desktop a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gradient-1);
  transition: width .25s var(--ease);
}
.nav-desktop a:hover::after { width: 100%; }

.nav-cta { margin-left: 8px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 18px; height: 2px;
  margin-inline: auto;
  background: var(--text);
  transition: transform .3s var(--ease), opacity .3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 100px 28px calc(40px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 20% 15%, rgba(139,92,246,0.25), transparent 55%),
    radial-gradient(circle at 85% 85%, rgba(236,72,153,0.2), transparent 55%),
    rgba(11,7,20,0.97);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.nav-mobile.open { opacity: 1; visibility: visible; }
.nav-mobile a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 10px 0;
  color: var(--text);
  opacity: 0;
  transform: translateY(24px) rotateX(-30deg);
  transform-origin: 50% 100%;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.nav-mobile.open a { opacity: 1; transform: none; }
.nav-mobile.open a:nth-child(1) { transition-delay: .05s; }
.nav-mobile.open a:nth-child(2) { transition-delay: .1s; }
.nav-mobile.open a:nth-child(3) { transition-delay: .15s; }
.nav-mobile.open a:nth-child(4) { transition-delay: .2s; }
.nav-mobile.open a:nth-child(5) { transition-delay: .25s; }
.nav-mobile .btn {
  margin-top: 28px;
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  padding: 17px 28px;
}
body.menu-open { overflow: hidden; }
@media (min-width: 861px) { .nav-mobile { display: none; } }

@media (max-width: 860px) {
  .nav-desktop, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  overflow: hidden;
}
/* Top of the hero grows out of the page colour, so the video above blends in */
.hero::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: clamp(160px, 26vh, 300px);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgb(11,7,20) 0%,
    rgba(11,7,20,0.90) 20%,
    rgba(11,7,20,0.65) 40%,
    rgba(11,7,20,0.35) 60%,
    rgba(11,7,20,0.10) 80%,
    rgba(11,7,20,0) 100%);
}
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: clamp(140px, 22vh, 260px);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(11,7,20,0) 0%,
    rgba(11,7,20,0.10) 20%,
    rgba(11,7,20,0.35) 40%,
    rgba(11,7,20,0.65) 60%,
    rgba(11,7,20,0.90) 80%,
    rgb(11,7,20) 100%);
}
.hero-blobs {
  position: absolute;
  inset: 0;
  z-index: 0;
  filter: blur(10px);
}
.blob {
  position: absolute;
  border-radius: 50%;
  opacity: .55;
  filter: blur(60px);
  animation: float 16s ease-in-out infinite;
}
.blob-1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, var(--purple), transparent 70%);
  top: -120px; left: -100px;
}
.blob-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--pink), transparent 70%);
  top: 30%; right: -140px;
  animation-delay: -5s;
}
.blob-3 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--orange), transparent 70%);
  bottom: -160px; left: 30%;
  animation-delay: -10s;
}
@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.08); }
  66% { transform: translate(-25px, 25px) scale(0.95); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 40%, transparent 90%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

/* ---------- hero 3D visual ---------- */
.hero-3d-wrap {
  display: none;
  position: absolute;
  top: 50%;
  right: 5%;
  width: 340px;
  height: 340px;
  transform: translateY(-52%);
  perspective: 1400px;
  z-index: 2;
}
@media (min-width: 1180px) {
  .hero-3d-wrap { display: block; }
}
.hero-3d-parallax {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .2s ease-out;
}
.hero-3d-stage {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: heroSpin 16s ease-in-out infinite;
}
@keyframes heroSpin {
  0%, 100% { transform: rotateY(-14deg) rotateX(8deg); }
  50% { transform: rotateY(14deg) rotateX(-4deg); }
}
.hero-3d-card {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 210px;
  height: 130px;
  border-radius: 20px;
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
}
.hero-3d-card .emoji { font-size: 30px; }
.hero-3d-card--1 {
  transform: translateZ(70px) translateY(-78px) rotate(-6deg);
  background: linear-gradient(135deg, rgba(139,92,246,0.4), rgba(139,92,246,0.06));
}
.hero-3d-card--2 {
  transform: translateZ(15px) translateY(4px) rotate(3deg);
  background: linear-gradient(135deg, rgba(249,115,22,0.4), rgba(249,115,22,0.06));
}
.hero-3d-card--3 {
  transform: translateZ(-40px) translateY(84px) rotate(9deg);
  background: linear-gradient(135deg, rgba(236,72,153,0.4), rgba(236,72,153,0.06));
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gradient-1);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.4); }
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 700;
  color: var(--text);
}
.text-gradient {
  background: var(--gradient-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine {
  to { background-position: 200% center; }
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-dim);
  max-width: 640px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

/* Three equal "stat" tiles — always one row, never a 2+1 wrap */
.hero-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 600px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.badge-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.badge-item strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}
.badge-item span {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-dim);
}
@media (max-width: 640px) {
  .hero-badges { gap: 8px; }
  .badge-item { padding: 12px 10px; text-align: center; align-items: center; }
  .badge-item strong { font-size: 1.15rem; }
  .badge-item span { font-size: 11px; }
}

.scroll-cue {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 28px;
  z-index: 2;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}
.scroll-cue svg {
  width: 100%; height: 100%;
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue {
  0%, 100% { opacity: .35; filter: drop-shadow(0 0 0 rgba(168,85,247,0)); transform: translateY(0); }
  50% { opacity: 1; filter: drop-shadow(0 0 8px rgba(168,85,247,0.8)); transform: translateY(4px); }
}

/* ---------- sections ---------- */
.section { padding: 120px 0; position: relative; }
.section-head {
  max-width: 640px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--text);
}
.section-head p { font-size: 1.05rem; }

/* ---------- services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service-card {
  position: relative;
  padding: 36px 30px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .35s var(--ease), border-color .35s;
}
.service-card:hover {
  border-color: rgba(255,255,255,0.18);
}
.service-card .card-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255,255,255,0.14), transparent 60%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
  z-index: 2;
}
.service-card:hover .card-glare { opacity: 1; }
.service-card-glow {
  position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: .35;
  transition: opacity .35s;
}
.service-card:hover .service-card-glow { opacity: .6; }
.glow-purple { background: var(--purple); }
.glow-orange { background: var(--orange); }
.glow-pink { background: var(--pink); }

.service-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  border-radius: 16px;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}
.icon-purple { background: rgba(139,92,246,0.18); }
.icon-orange { background: rgba(249,115,22,0.18); }
.icon-pink { background: rgba(236,72,153,0.18); }
.icon-green { background: rgba(34,197,94,0.18); }

.service-card h3 { font-size: 1.35rem; color: var(--text); position: relative; z-index: 1; }
.service-card p { position: relative; z-index: 1; }
.service-list { position: relative; z-index: 1; }
.service-list li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-dim);
}
.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 0;
  color: var(--cyan);
  font-weight: 700;
}

/* ---------- AI integration section ---------- */
.ai-section { background: var(--section-fade); overflow: hidden; }
.ai-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .ai-inner { grid-template-columns: 1fr; gap: 40px; }
  .ai-visual { order: -1; }
}

.ai-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  perspective: 1200px;
}

/* Soft glowing orb behind the device */
.ai-orb {
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(168,85,247,0.55), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(236,72,153,0.45), transparent 55%);
  filter: blur(50px);
  opacity: .55;
  animation: orbPulse 7s ease-in-out infinite;
}
@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: .5; }
  50% { transform: scale(1.12); opacity: .7; }
}

.ai-pulse-ring {
  position: absolute;
  width: 260px; height: 260px;
  border: 1px solid rgba(168,85,247,0.35);
  border-radius: 50%;
  animation: ring 3.2s ease-out infinite;
}
@keyframes ring {
  0% { transform: scale(0.6); opacity: .8; }
  100% { transform: scale(1.7); opacity: 0; }
}

.ai-stand {
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .3s var(--ease);
}

/* The chat "device", resting at a 3D angle and gently floating */
.ai-card-mock {
  position: relative;
  width: 290px;
  padding: 16px;
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(160deg, #221842 0%, #140d27 60%, #120b22 100%);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 40px 80px rgba(0,0,0,0.55),
    0 0 60px rgba(139,92,246,0.25),
    inset 0 1px 0 rgba(255,255,255,0.12);
  transform-style: preserve-3d;
  animation: aiDevice 7s ease-in-out infinite;
}
@keyframes aiDevice {
  0%, 100% { transform: rotateY(-14deg) rotateX(6deg) translateY(0); }
  50% { transform: rotateY(-8deg) rotateX(3deg) translateY(-10px); }
}

.ai-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ai-avatar {
  width: 36px; height: 36px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-1);
  color: #fff;
  box-shadow: 0 6px 18px rgba(236,72,153,0.4);
}
.ai-avatar svg { width: 20px; height: 20px; }
.ai-card-title {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.ai-card-title small {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
}
.ai-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.2);
  animation: pulse 2s ease-in-out infinite;
}

/* Fixed-height chat area: messages animate in without shifting the layout */
.ai-chat {
  height: 176px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 30%);
}
.chat-bubble { flex-shrink: 0; }
.chat-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(10px) scale(.96);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.chat-bubble.is-shown { opacity: 1; transform: none; }
.chat-user {
  align-self: flex-end;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  border-bottom-right-radius: 5px;
  transform-origin: bottom right;
}
.chat-ai {
  align-self: flex-start;
  background: var(--gradient-1);
  color: #fff;
  font-weight: 500;
  border-bottom-left-radius: 5px;
  box-shadow: 0 8px 20px rgba(236,72,153,0.3);
  transform-origin: bottom left;
}
.chat-typing-bubble {
  display: flex;
  gap: 4px;
  padding: 13px 16px;
}
.chat-typing-bubble span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  animation: typingDot 1.1s ease-in-out infinite;
}
.chat-typing-bubble span:nth-child(2) { animation-delay: .15s; }
.chat-typing-bubble span:nth-child(3) { animation-delay: .3s; }
@keyframes typingDot {
  0%, 60%, 100% { opacity: .35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.ai-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: var(--text-dimmer);
}
.ai-send {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-1);
  color: #fff;
}
.ai-send svg { width: 14px; height: 14px; }

/* Capability chips floating in front of the device at different depths */
.ai-float {
  position: absolute;
  z-index: 3;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text);
  background: rgba(23,16,43,0.75);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.4);
  animation: aiChip 6s ease-in-out infinite;
}
.ai-float::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--gradient-1);
  vertical-align: 1px;
}
/* Chips sit completely outside the device so they never cover the chat:
   beside it on wide screens, above/below it where there's no side room */
.ai-float--1 { right: calc(100% + 18px); top: 10%;  --z: 70px;  animation-delay: 0s; }
.ai-float--3 { right: calc(100% + 18px); top: 64%;  --z: 50px;  animation-delay: -3s; }
.ai-float--2 { left: calc(100% + 18px);  top: 26%;  --z: 90px;  animation-delay: -1.5s; }
.ai-float--4 { left: calc(100% + 18px);  top: 80%;  --z: 60px;  animation-delay: -4.5s; }

@media (max-width: 1179px) {
  .ai-visual { min-height: 0; padding: 72px 0; }
  .ai-float--1, .ai-float--2 { top: -58px; }
  .ai-float--3, .ai-float--4 { top: auto; bottom: -58px; }
  .ai-float--1, .ai-float--3 { right: auto; left: 0; }
  .ai-float--2, .ai-float--4 { left: auto; right: 0; }
  .ai-float { --z: 40px; }
}
@keyframes aiChip {
  0%, 100% { transform: translateZ(var(--z)) translateY(0); }
  50% { transform: translateZ(var(--z)) translateY(-10px); }
}

/* Feature list: glass rows with gradient checks instead of emoji bullets */
.check-list { margin: 24px 0 32px; display: flex; flex-direction: column; gap: 10px; }
.check-list li {
  position: relative;
  padding: 12px 16px 12px 50px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 15px;
  transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.check-list li:hover {
  border-color: rgba(168,85,247,0.35);
  background: rgba(139,92,246,0.06);
  transform: translateX(4px);
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 14px; top: 50%;
  width: 22px; height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background: var(--gradient-1);
  box-shadow: 0 4px 12px rgba(236,72,153,0.35);
}
.check-list li::after {
  content: '';
  position: absolute;
  left: 22px; top: 50%;
  width: 6px; height: 10px;
  margin-top: -7px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

@media (max-width: 640px) {
  .ai-visual { min-height: 420px; }
  .ai-orb { width: 280px; height: 280px; }
  .ai-card-mock { width: 250px; padding: 14px; border-radius: 22px; }
  .ai-chat { height: 164px; }
  .chat-bubble { font-size: 12.5px; padding: 9px 12px; }
  .ai-float { font-size: 11px; padding: 7px 11px; }
  .check-list li { font-size: 14px; }
}

/* ---------- proceso ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  padding: 30px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
  transition: transform .3s var(--ease), background .3s;
}
.step:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.05);
}
.step-num {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.1rem; color: var(--text); }
.step p { font-size: 14px; margin-bottom: 0; }

/* ---------- contacto ---------- */
.contact-section { background: var(--section-fade); overflow: hidden; }
.contact-blob { top: 10%; left: 50%; transform: translateX(-50%); opacity: .35; }

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform .25s var(--ease), border-color .25s;
}
.contact-card:hover {
  transform: translateX(4px);
  border-color: rgba(255,255,255,0.2);
}
.contact-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-card h3 { margin: 0 0 2px; font-size: 15px; color: var(--text); letter-spacing: 0; }
.contact-card p { margin: 0; font-size: 14px; color: var(--text-dim); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 26px; }
}
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--text-dim); }
.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  transition: border-color .2s, background .2s;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-dimmer); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--purple);
  background: rgba(139,92,246,0.08);
}
.form-field select option { background: var(--surface); color: var(--text); }

.btn-submit { width: 100%; }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.form-status {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  min-height: 20px;
  margin: 0;
}
.form-status.success { color: var(--green); }
.form-status.error { color: var(--pink); }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: 90px 0 0;
  background: linear-gradient(180deg, var(--bg) 0%, #0d0819 100%);
}
.footer-glow {
  position: absolute;
  top: -120px; left: 50%;
  width: 700px; height: 300px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(139,92,246,0.18), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 120px, #000 220px);
  mask-image: linear-gradient(to bottom, transparent 120px, #000 220px);
  pointer-events: none;
}
.site-footer .container { position: relative; z-index: 1; }


.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .logo { display: inline-block; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; max-width: 300px; margin: 0; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text);
  margin: 0 0 6px;
}
.footer-col a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color .2s, transform .2s var(--ease);
  width: fit-content;
}
.footer-col a:hover { color: var(--text); transform: translateX(3px); }
.footer-contact { display: inline-flex; align-items: center; gap: 10px; }
.footer-contact svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--violet); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}
.footer-bottom p { margin: 0; font-size: 13px; color: var(--text-dimmer); }
.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: color .2s, border-color .2s, background .2s;
}
.footer-top svg { width: 16px; height: 16px; }
.footer-top:hover { color: var(--text); border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.05); }

.footer-wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(3.5rem, 14vw, 10rem);
  /* Tall enough box for the whole glyphs (incl. the descender of "y"): background-clip:text only paints inside it */
  line-height: 1.25;
  padding-bottom: .05em;
  letter-spacing: -0.04em;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  pointer-events: none;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- whatsapp float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  z-index: 90;
  animation: floatbtn 3s ease-in-out infinite;
}
@keyframes floatbtn {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.delay-1.in-view { transition-delay: .08s; }
.delay-2.in-view { transition-delay: .16s; }
.delay-3.in-view { transition-delay: .24s; }
.delay-4.in-view { transition-delay: .32s; }

/* ---------- accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn:focus-visible { outline-offset: 4px; border-radius: 999px; }
.hero:focus { outline: none; }

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--gradient-1);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  transform: translateY(-150%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.honeypot {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}

/* Discreet pause/play control for the looping background video (WCAG 2.2.2) */
.video-toggle {
  position: absolute;
  left: 24px;
  bottom: 28px;
  z-index: 3;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(11,7,20,0.35);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  opacity: .6;
  transition: opacity .2s, color .2s, background .2s;
}
.video-toggle:hover, .video-toggle:focus-visible { opacity: 1; color: #fff; background: rgba(11,7,20,0.6); }
.video-toggle svg { width: 14px; height: 14px; }
.video-toggle .icon-play { display: none; }
.video-toggle[aria-pressed="true"] .icon-play { display: block; }
.video-toggle[aria-pressed="true"] .icon-pause { display: none; }

/* ================= MOBILE & TABLET ================= */

body { -webkit-tap-highlight-color: transparent; }

.video-intro { height: 100vh; height: 100svh; }
.carousel-dots { display: none; }

.hero-actions--stacked { display: none; }

/* Hero 3D card stack: stacked under the copy instead of hidden */
@media (max-width: 1179px) {
  .hero-actions--desktop { display: none; }
  .hero-actions--stacked {
    display: flex;
    order: 3;
    position: relative;
    z-index: 2;
    margin-top: 12px;
    margin-bottom: 0;
  }
  .hero { flex-direction: column; justify-content: center; }
  .hero-3d-wrap {
    display: block;
    position: relative;
    top: auto; right: auto;
    transform: none;
    order: 2;
    width: 300px;
    height: 270px;
    margin: 36px auto 40px;
    perspective: 1000px;
  }
}

@media (max-width: 900px) {
  /* Lighter blur = smoother scrolling on phones */
  .hero-blobs { filter: none; }
  .blob { filter: blur(45px); opacity: .45; }
  .blob-1 { width: 320px; height: 320px; }
  .blob-2 { width: 280px; height: 280px; }
  .blob-3 { width: 260px; height: 260px; }

  /* 3D entrance: elements flip up into place as they scroll in */
  .reveal {
    transform: perspective(900px) translateY(36px) rotateX(18deg);
    transform-origin: 50% 0;
  }
  .reveal.in-view { transform: perspective(900px) translateY(0) rotateX(0); }

  /* Services become a swipeable 3D carousel */
  .services-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    margin: 0 -20px;
    padding: 20px 14vw 28px;
    perspective: 1100px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .services-grid::-webkit-scrollbar { display: none; }
  .services-grid .service-card {
    flex: 0 0 72vw;
    scroll-snap-align: center;
    padding: 30px 24px;
  }
  .services-grid .service-card.reveal {
    opacity: 1;
    transform: rotateY(var(--cf-ry, 0deg)) scale(var(--cf-s, 1));
    transition: transform .12s linear, border-color .35s;
    transition-delay: 0s;
  }
  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
  }
  .carousel-dots span {
    width: 8px; height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
    transition: width .3s var(--ease), background .3s;
  }
  .carousel-dots span.active {
    width: 24px;
    background: var(--gradient-1);
  }

  .ai-pulse-ring { width: 180px; height: 180px; }
}

@media (max-width: 640px) {
  .container { width: min(1180px, 100% - 40px); }
  .section { padding: 84px 0; }
  .section-head { margin-bottom: 40px; }
  .section-head p { font-size: 1rem; }

  .hero { min-height: auto; padding: 112px 0 90px; }
  .hero-sub { margin-bottom: 28px; }
  .hero-actions { flex-direction: column; gap: 12px; margin-bottom: 32px; }
  .hero-actions .btn { width: 100%; }

  .hero-3d-wrap { width: 260px; height: 240px; margin: 52px auto 28px; }
  .hero-3d-card { width: 176px; height: 108px; font-size: 13px; border-radius: 16px; }
  .hero-3d-card .emoji { font-size: 24px; }
  .hero-3d-card--1 { transform: translateZ(60px) translateY(-66px) rotate(-6deg); }
  .hero-3d-card--2 { transform: translateZ(15px) translateY(2px) rotate(3deg); }
  .hero-3d-card--3 { transform: translateZ(-35px) translateY(70px) rotate(9deg); }

  /* Process as a vertical glowing timeline */
  .steps { gap: 14px; position: relative; padding-left: 30px; }
  .steps::before {
    content: '';
    position: absolute;
    left: 8px; top: 20px; bottom: 20px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--purple), var(--pink), var(--orange));
    opacity: .7;
  }
  .step { position: relative; padding: 22px 20px; }
  .step::before {
    content: '';
    position: absolute;
    left: -28px; top: 28px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--pink);
    box-shadow: 0 0 12px rgba(236,72,153,0.7);
  }
  .step-num { font-size: 1.5rem; margin-bottom: 8px; }

  /* 16px inputs stop iOS Safari from zooming in on focus */
  .form-field input,
  .form-field select,
  .form-field textarea { font-size: 16px; }
  .contact-form { padding: 24px 20px; gap: 16px; }
  .contact-card { padding: 16px 18px; }

  .site-footer { padding-top: 64px; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column-reverse; gap: 14px; text-align: center; }

  .whatsapp-float {
    width: 54px; height: 54px;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom));
  }
}

/* Touch devices: tactile press feedback instead of hover */
@media (hover: none) {
  .video-toggle { width: 44px; height: 44px; left: 18px; bottom: 22px; }
  .step:hover, .contact-card:hover { transform: none; }
  .btn:active { transform: scale(.97); }
  .contact-card:active { transform: scale(.98); border-color: rgba(255,255,255,0.2); }
  .step:active { transform: scale(.98); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
