/* =========================================================
   alvAItech AGENCY
   Dirección: "Inteligencia viva / plasma neural sobre vacío"
   Base negra absoluta, gradiente neural violeta -> cian,
   tipografía Space Grotesk + Sora + JetBrains Mono + Instrument Serif (acento)
   ========================================================= */

:root {
  --bg: #05060A;
  --bg-soft: #0A0C12;
  --panel: #0D0F16;
  --panel-2: #11131C;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  --ink: #F4F5FA;
  --ink-soft: #B6BAC8;
  --ink-dim: #7C8198;
  --ink-faint: #565B70;

  --violet: #8B5CF6;
  --violet-bright: #A78BFA;
  --cyan: #22D3EE;
  --cyan-bright: #5EEAD4;
  --grad: linear-gradient(110deg, #A78BFA 0%, #8B5CF6 35%, #22D3EE 100%);
  --grad-bright: linear-gradient(100deg, #B197FC 0%, #CABEFF 26%, #5EEAD4 52%, #CABEFF 78%, #B197FC 100%);
  --grad-soft: linear-gradient(120deg, rgba(139,92,246,0.18), rgba(34,211,238,0.14));
  --glow: 0 0 60px rgba(139, 92, 246, 0.28);

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Sora", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --font-serif: "Instrument Serif", Georgia, serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 64px);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  cursor: none;
}
@media (hover: none) { body { cursor: auto; } }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; }

::selection { background: rgba(139, 92, 246, 0.4); color: #fff; }

/* propiedad personalizada animable (CSS moderno) para el halo conico de la intro */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

/* bloqueo de scroll mientras se reproduce la intro (sin tocar la altura,
   para que Lenis mida bien el limite de scroll del documento) */
html.is-loading { overflow: hidden; }

/* foco accesible y nitido para navegacion por teclado */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
[data-magnetic]:focus-visible { outline: 2px solid var(--cyan-bright); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 200;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px;
  font-family: var(--font-mono); font-size: 12px;
}
.skip-link:focus { top: 16px; }

/* ---------- background layers ---------- */
#neural {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  opacity: 0.9;
}
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, transparent 55%, rgba(0,0,0,0.55) 100%);
}

/* ---------- cursor ---------- */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none; border-radius: 50%; mix-blend-mode: difference; }
.cursor { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.7); transform: translate(-50%, -50%); transition: width .25s var(--ease), height .25s var(--ease), background .25s; }
.cursor-dot { width: 5px; height: 5px; background: #fff; transform: translate(-50%, -50%); }
.cursor.is-active { width: 58px; height: 58px; background: rgba(255,255,255,0.12); border-color: transparent; }
@media (hover: none) { .cursor, .cursor-dot { display: none; } }

/* ---------- scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; background: transparent; }
.progress span { display: block; height: 100%; width: 0; background: var(--grad); box-shadow: 0 0 12px rgba(139,92,246,0.7); }

/* =========================================================
   PRELOADER / INTRO
   ========================================================= */
.preloader {
  position: fixed; inset: 0; z-index: 300; background: #05060A;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px;
  will-change: transform;
  animation: preFailsafe 0s linear 5s forwards; /* red de seguridad si el JS no cargara */
}
@keyframes preFailsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.preloader-stage { position: relative; display: flex; align-items: center; gap: 18px; }
.preloader-logo { position: relative; display: grid; place-items: center; }
.preloader-logo::before {
  content: ""; position: absolute; inset: -34px; border-radius: 50%;
  background: conic-gradient(from var(--angle), transparent 0deg, rgba(139,92,246,0) 30deg, #8B5CF6 130deg, #22D3EE 210deg, transparent 320deg);
  filter: blur(22px); opacity: 0.75; z-index: -1;
  animation: haloSpin 2.6s linear infinite;
}
@keyframes haloSpin { to { --angle: 360deg; } }
.preloader .brand-text.big { opacity: 0; font-size: clamp(24px, 4vw, 34px); }
.preloader-bar { position: relative; width: min(220px, 46vw); height: 2px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
.preloader-bar i { position: absolute; inset: 0; display: block; transform: scaleX(0); transform-origin: left; background: var(--grad); }

/* =========================================================
   LAYOUT PRIMITIVES
   ========================================================= */
.section { position: relative; z-index: 2; padding: clamp(80px, 13vh, 160px) var(--pad); max-width: var(--maxw); margin: 0 auto; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-dim); margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-bright); box-shadow: 0 0 10px var(--cyan); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.7); } }

.section-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(30px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -0.025em;
  color: var(--ink);
}
.section-title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.04em; }

/* palabras destacadas: degradado mas brillante (no se pierde sobre el negro) + barrido de luz */
.hero-title em, .section-title em, .compare-verb, .brand-text em, .step-no, .stat-num {
  background-image: var(--grad-bright);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-title em, .compare-verb, .brand-text em { animation: shimmer 7s linear infinite; }
@keyframes shimmer { from { background-position: 0% center; } to { background-position: -220% center; } }
.section-lead { margin-top: 22px; color: var(--ink-soft); font-size: clamp(15px, 1.4vw, 19px); max-width: 56ch; }
.section-head--center .section-lead { margin-left: auto; margin-right: auto; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 500; font-size: 15px; letter-spacing: -0.01em;
  padding: 15px 26px; border-radius: 100px; border: 1px solid transparent;
  cursor: none; white-space: nowrap; transition: transform .4s var(--ease), background .3s, border-color .3s, color .3s;
  will-change: transform;
}
.btn svg { transition: transform .35s var(--ease); }
.btn-primary { background: var(--ink); color: #06070C; }
.btn-primary:hover { background: #fff; }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost { background: rgba(255,255,255,0.02); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--violet-bright); color: #fff; background: rgba(139,92,246,0.08); }
.btn-ghost:hover svg { transform: translateX(4px); }
.btn-pill { background: rgba(255,255,255,0.04); border: 1px solid var(--line-strong); color: var(--ink); padding: 11px 20px; font-size: 14px; }
.btn-pill:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 72px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  transition: background .4s var(--ease), border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(5,6,10,0.72); backdrop-filter: blur(18px) saturate(140%); border-bottom-color: var(--line); }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.brand { display: inline-flex; align-items: center; gap: 12px; cursor: none; }
.brand-mark { position: relative; display: grid; place-items: center; filter: drop-shadow(0 0 10px rgba(214,221,236,0.30)); transition: filter .4s var(--ease), transform .5s var(--ease); }
.brand-mark::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; z-index: -1; background: radial-gradient(circle, rgba(214,221,236,0.32), rgba(212,156,102,0.10) 55%, transparent 72%); opacity: .4; animation: markPulse 3.6s var(--ease) infinite; }
.brand-mark svg { display: block; }
.brand:hover .brand-mark { filter: drop-shadow(0 0 15px rgba(236,240,250,0.42)); transform: scale(1.05); }
.brand-mark--lg { filter: drop-shadow(0 0 16px rgba(214,221,236,0.32)); }
/* logo PNG del usuario en un chip claro (su logo viene sobre fondo blanco);
   la imagen se escala dentro del chip para recortar el margen y que la marca llene el espacio */
/* logo blanco transparente del usuario, flotando directamente sobre el fondo oscuro */
.brand-logo { display: block; height: 30px; width: auto; }
.brand-mark--lg .brand-logo { height: 44px; }
.preloader .brand-logo { height: 80px; }
@keyframes markPulse { 0%, 100% { opacity: .3; transform: scale(.88); } 50% { opacity: .68; transform: scale(1.14); } }
.footer-logo { display: inline-flex; align-items: center; gap: 14px; cursor: none; }
.footer-logo:hover .brand-mark--lg { filter: drop-shadow(0 0 22px rgba(236,240,250,0.4)); }
.brand-text { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; line-height: 1; display: inline-flex; align-items: baseline; gap: 0; }
.brand-text em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: normal; }
.brand-sub { font-family: var(--font-mono); font-weight: 400; font-size: 9px; letter-spacing: 0.3em; color: var(--ink-dim); align-self: center; margin-left: 0.62em; padding-top: 1px; }
.brand-text.big { font-size: clamp(26px, 4vw, 40px); }

.nav-links { display: flex; gap: clamp(18px, 2.4vw, 38px); }
.nav-links a { font-size: 14px; color: var(--ink-soft); position: relative; padding: 4px 0; transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0; background: var(--grad); transition: width .35s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; z-index: 2; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 110px var(--pad) 90px; max-width: var(--maxw); margin: 0 auto; }
.hero-inner { position: relative; z-index: 2; max-width: 1000px; }
/* aura de profundidad detras del titular (suma sutil de luz sobre la red neuronal) */
.hero-aura {
  position: absolute; z-index: 1; top: 6%; left: 50%; width: min(880px, 92vw); height: 560px;
  transform: translateX(-50%); pointer-events: none;
  background:
    radial-gradient(46% 48% at 42% 38%, rgba(139,92,246,0.20), transparent 70%),
    radial-gradient(42% 44% at 64% 56%, rgba(34,211,238,0.14), transparent 70%);
  filter: blur(28px); opacity: 0.9;
  animation: auraDrift 16s ease-in-out infinite alternate;
}
@keyframes auraDrift {
  0% { transform: translateX(-53%) translateY(-6px) scale(1); }
  100% { transform: translateX(-47%) translateY(18px) scale(1.09); }
}

.hero .eyebrow { margin-bottom: 30px; }
.hero-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(40px, 8.2vw, 104px); line-height: 0.98; letter-spacing: -0.035em;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.05em; }

.hero-sub { margin-top: 30px; max-width: 50ch; color: var(--ink-soft); font-size: clamp(16px, 1.7vw, 21px); line-height: 1.55; }

.hero-cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: 48px; padding-top: 30px; border-top: 1px solid var(--line); }
.hero-meta li { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em; color: var(--ink-dim); }
.hero-meta strong { color: var(--ink); font-weight: 500; }

.hero-scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-scroll span { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-faint); }
.hero-scroll i { width: 1px; height: 46px; background: linear-gradient(var(--violet-bright), transparent); position: relative; overflow: hidden; }
.hero-scroll i::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--cyan-bright); animation: scrollLine 2s var(--ease) infinite; }
@keyframes scrollLine { 0% { top: -50%; } 100% { top: 100%; } }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee { position: relative; z-index: 2; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; overflow: hidden; background: rgba(8,9,14,0.5); }
.marquee-track { display: inline-flex; align-items: center; gap: 34px; white-space: nowrap; animation: marquee 38s linear infinite; will-change: transform; }
.marquee-track span { font-family: var(--font-display); font-weight: 500; font-size: clamp(18px, 2.4vw, 30px); letter-spacing: -0.02em; color: var(--ink); }
.marquee-track b { color: var(--violet-bright); font-size: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* =========================================================
   SERVICES (bento)
   ========================================================= */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative; z-index: 2; padding: clamp(24px, 2.6vw, 36px); border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.008));
  border: 1px solid var(--line); overflow: hidden;
  transition: border-color .45s var(--ease), transform .5s var(--ease), background .45s;
  will-change: transform;
}
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .45s; pointer-events: none; }
.card::after { content: ""; position: absolute; width: 320px; height: 320px; top: var(--my, 50%); left: var(--mx, 50%); transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(139,92,246,0.16), transparent 65%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.card:hover { border-color: transparent; }
.card:hover::before { opacity: 0.7; }
.card:hover::after { opacity: 1; }

.card-feature { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: auto; }
.card-idx { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--ink-faint); }
.card-glyph { color: var(--violet-bright); opacity: 0.85; }
.card-feature .card-glyph svg { width: 56px; height: 56px; }
.card h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 2vw, 27px); letter-spacing: -0.02em; margin-top: 60px; margin-bottom: 12px; }
.card-feature h3 { font-size: clamp(26px, 3vw, 40px); margin-top: 40px; }
.card p { color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.card-feature p { font-size: clamp(15px, 1.4vw, 18px); max-width: 46ch; }

.card-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.card-tags li { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; color: var(--ink-soft); padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 100px; }

.card-cta { display: flex; flex-direction: column; justify-content: center; gap: 14px; align-items: flex-start; background: var(--grad-soft); border-color: rgba(139,92,246,0.25); }
.card-cta h3 { margin: 0; }
.card-cta .btn { margin-top: 6px; }

/* =========================================================
   COMPARE (agentes vs asistentes)
   ========================================================= */
.compare-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 0; }
.compare-card {
  position: relative; z-index: 2; padding: clamp(28px, 3vw, 46px); border-radius: 22px;
  background: var(--panel); border: 1px solid var(--line);
  transition: transform .5s var(--ease), border-color .4s;
  will-change: transform;
}
.compare-card--accent { background: linear-gradient(165deg, rgba(34,211,238,0.06), rgba(139,92,246,0.08)); border-color: rgba(139,92,246,0.3); }
.compare-head { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.compare-kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan-bright); }
.compare-card--accent .compare-kicker { color: var(--violet-bright); }
.compare-head h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.02em; margin: 12px 0 4px; }
.compare-verb { font-family: var(--font-serif); font-style: italic; font-size: clamp(30px, 4vw, 50px); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.compare-desc { color: var(--ink-soft); margin-bottom: 22px; }
.compare-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.compare-list li { position: relative; padding-left: 26px; color: var(--ink); font-size: 15px; }
.compare-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--cyan-bright); }
.compare-card--accent .compare-list li::before { background: var(--violet); border-color: var(--violet-bright); box-shadow: 0 0 8px rgba(139,92,246,0.6); }

.compare-vs { display: grid; place-items: center; padding: 0 22px; }
.compare-vs span { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; color: var(--ink-faint); width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--bg); }

.compare-foot { text-align: center; max-width: 60ch; margin: clamp(36px, 5vw, 56px) auto 0; font-size: clamp(17px, 1.8vw, 22px); color: var(--ink-soft); font-family: var(--font-display); font-weight: 400; line-height: 1.5; }
.compare-foot em { font-family: var(--font-serif); font-style: italic; color: var(--ink); }

/* =========================================================
   METHOD (pinned horizontal scroll)
   ========================================================= */
.method { position: relative; z-index: 2; }
.method-pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: clamp(30px, 5vw, 56px); padding: 80px 0; overflow: hidden; }
.method-head { padding: 0 var(--pad); max-width: var(--maxw); margin: 0 auto; width: 100%; }
.method-head .eyebrow { margin-bottom: 18px; }
.method-track { display: flex; gap: 22px; padding: 0 var(--pad); will-change: transform; }
.step {
  flex: 0 0 min(80vw, 420px); padding: clamp(30px, 3vw, 46px); border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.006));
  border: 1px solid var(--line); display: flex; flex-direction: column;
  min-height: 360px;
}
.step-no { font-family: var(--font-display); font-weight: 600; font-size: clamp(46px, 6vw, 76px); line-height: 1; letter-spacing: -0.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: auto; }
.step h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.02em; margin: 40px 0 12px; }
.step p { color: var(--ink-soft); font-size: 15.5px; }

/* =========================================================
   WHY / stats
   ========================================================= */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.why-item { background: var(--bg); padding: clamp(26px, 2.6vw, 40px); transition: background .4s; }
.why-item:hover { background: var(--bg-soft); }
.why-no { font-family: var(--font-mono); font-size: 12px; color: var(--violet-bright); letter-spacing: 0.1em; }
.why-item h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(19px, 1.8vw, 24px); letter-spacing: -0.02em; margin: 24px 0 12px; }
.why-item p { color: var(--ink-soft); font-size: 14.5px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.stat { padding: clamp(24px, 2.4vw, 36px) clamp(20px, 2vw, 30px); border: 1px solid var(--line); border-radius: 18px; text-align: left; background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent); }
.stat-num { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(38px, 5vw, 60px); letter-spacing: -0.04em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-inf { font-size: clamp(44px, 5.5vw, 66px); }
.stat-label { display: block; margin-top: 12px; color: var(--ink-dim); font-size: 13px; font-family: var(--font-mono); letter-spacing: 0.02em; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { scroll-margin-top: 80px; }
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact-aside .section-title { margin-top: 4px; }
.contact-lead { color: var(--ink-soft); margin-top: 22px; max-width: 44ch; }

.contact-direct { margin-top: 40px; display: flex; flex-direction: column; gap: 22px; }
.contact-mail { display: flex; flex-direction: column; gap: 4px; padding: 22px 26px; border: 1px solid var(--line-strong); border-radius: 16px; background: rgba(255,255,255,0.015); transition: border-color .35s, background .35s; cursor: none; }
.contact-mail:hover { border-color: var(--violet-bright); background: rgba(139,92,246,0.06); }
.contact-mail-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-dim); }
.contact-mail-addr { font-family: var(--font-display); font-size: clamp(18px, 2vw, 24px); font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }

.contact-social { list-style: none; display: flex; gap: 12px; }
.contact-social a { display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 100px; font-size: 14px; color: var(--ink-soft); transition: border-color .35s, color .35s, background .35s; cursor: none; }
.contact-social a:hover { border-color: var(--cyan-bright); color: #fff; background: rgba(34,211,238,0.06); }

/* form */
.form { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: clamp(26px, 3vw, 44px); display: flex; flex-direction: column; gap: 20px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-soft); text-transform: uppercase; }
.field label span { color: var(--violet-bright); }
.field label em { color: var(--ink-faint); text-transform: none; font-size: 11px; letter-spacing: 0; }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 15px; color: var(--ink); font-weight: 300;
  background: rgba(255,255,255,0.02); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 14px 16px; transition: border-color .3s, background .3s, box-shadow .3s; cursor: none; resize: vertical;
}
.field textarea { min-height: 120px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--violet-bright); background: rgba(139,92,246,0.04); box-shadow: 0 0 0 3px rgba(139,92,246,0.12); }
.field input:user-invalid, .field textarea:user-invalid { border-color: rgba(255,90,120,0.6); }

.btn-submit { justify-content: center; width: 100%; margin-top: 6px; padding: 17px; font-size: 16px; }
.btn-submit.is-loading { opacity: 0.8; cursor: progress; }
.btn-submit.is-loading svg { display: none; }
.btn-submit.is-loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(6,7,12,0.25); border-top-color: #06070C; animation: btnSpin 0.7s linear infinite; }
@keyframes btnSpin { to { transform: rotate(360deg); } }
.form-note { font-family: var(--font-mono); font-size: 13px; min-height: 18px; color: var(--cyan-bright); }
.form-note.error { color: #ff7a8f; }
.form-fine { font-size: 12px; color: var(--ink-faint); line-height: 1.5; }
.form-fine strong { color: var(--ink-dim); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { position: relative; z-index: 2; border-top: 1px solid var(--line); padding: clamp(56px, 8vw, 96px) var(--pad) 36px; max-width: var(--maxw); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.footer-brand p { color: var(--ink-dim); max-width: 40ch; margin-top: 20px; font-size: 15px; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.footer-nav h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px; font-weight: 400; }
.footer-nav a { display: block; color: var(--ink-soft); font-size: 14.5px; padding: 6px 0; transition: color .3s; cursor: none; }
.footer-nav a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 28px; }
.footer-bottom span { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
.footer-up { font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim); cursor: none; transition: color .3s; }
.footer-up:hover { color: var(--ink); }

/* =========================================================
   REVEAL animation defaults (JS-driven, fallback safe)
   ========================================================= */
[data-reveal], [data-reveal-line] > * , .hero-title .line em, .hero-title .line { }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card-feature { grid-column: span 2; grid-row: span 1; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  /* hero: anclar arriba para que el contenido alto no quede bajo el nav */
  .hero { justify-content: flex-start; padding-top: 118px; padding-bottom: 64px; min-height: 100svh; }
  .hero-meta { margin-top: 36px; }
  .hero-scroll { display: none; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .bento { grid-template-columns: 1fr; }
  .card-feature { grid-column: span 1; }
  .compare-grid { grid-template-columns: 1fr; gap: 16px; }
  .compare-vs { padding: 4px 0; }
  .compare-vs span { width: 44px; height: 44px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: flex-start; }
  .hero-meta { gap: 12px 20px; }

  /* intro: apilar logo y nombre para que no desborde en pantallas estrechas */
  .preloader-stage { flex-direction: column; gap: 16px; text-align: center; }
  .preloader-logo svg { width: 72px; height: 72px; }

  /* metodo: sin pin en movil -> carrusel deslizable con snap */
  .method-pin { min-height: auto; justify-content: flex-start; padding: 56px 0; }
  .method-track { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 14px; scrollbar-width: none; }
  .method-track::-webkit-scrollbar { display: none; }
  .step { flex: 0 0 80%; min-height: 300px; scroll-snap-align: center; }
}
@media (max-width: 460px) {
  .why-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .contact-social { flex-direction: column; }
  /* en moviles estrechos el logo + "alvAItech" ya bastan; quitamos "AGENCY" del nav */
  .nav .brand-sub { display: none; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
  #neural { opacity: 0.5; }
  .cursor, .cursor-dot { display: none; }
  body { cursor: auto; }
}
