/* =========================================================
   VOLKEIN · Sitio web
   Marca: Hielo #F2F4F7 · Tinta #0F1724 · Azul glaciar #2F5BEA
          Niebla #C7CFDA · Acero #5B6676
   Tipos: Space Grotesk (titulares) · DM Sans (texto) · IBM Plex Mono (etiquetas)
   Formas: botones y chips en píldora, tarjetas 20px, campos 12px.
   Capas (z-index): nav 50 · menú 45 · botón flotante 40 · secciones solapadas 2 · zona clara 1
   ========================================================= */

:root {
  --hielo: #F2F4F7;
  --tinta: #0F1724;
  --azul: #2F5BEA;
  --niebla: #C7CFDA;
  --acero: #5B6676;

  --tinta-2: #141E2E;
  --tinta-3: #1B2638;
  --azul-hover: #2550D6;
  --azul-claro: #6D8CF5;
  --texto-suave: #A9B3C2;
  --texto-tenue: #8E99AA;
  --linea-oscura: rgba(199, 207, 218, .12);
  --linea-clara: #D5DBE4;
  --blanco: #FBFCFD;
  --error: #FF9B9B;

  --f-display: "Space Grotesk", system-ui, sans-serif;
  --f-body: "DM Sans", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  --r-card: 20px;
  --r-field: 12px;
  --r-pill: 999px;

  --nav-h: 68px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 8px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--tinta);
  color: var(--hielo);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--azul); color: var(--blanco); }
:focus-visible { outline: 2px solid var(--azul-claro); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.dot { color: var(--azul); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 60; background: var(--azul); color: var(--blanco); padding: 10px 16px; border-radius: var(--r-pill); }
.skip:focus { top: 12px; }

.h2 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1.04;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--texto-suave); max-width: 52ch; margin-top: 20px; }
.mono-tag { font-family: var(--f-mono); font-size: 13px; letter-spacing: .28em; color: var(--azul-claro); }
.mono-tag span { opacity: .6; margin-inline: .2em; }
.mono-tag--blue { color: var(--azul); margin-bottom: 18px; }

/* ---------- Botones ---------- */
.btn {
  --h: 46px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  height: var(--h); padding: 0 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--f-body); font-weight: 600; font-size: 15.5px; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: background-color .3s var(--ease-out), border-color .3s, color .3s;
}
.btn i { font-size: 1.2em; }
.btn:active { scale: .97; }
.btn--sm { --h: 40px; padding: 0 18px; font-size: 14.5px; }
.btn--lg { --h: 56px; padding: 0 28px; font-size: 16.5px; }
.btn--primary { background: var(--azul); color: var(--blanco); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120px circle at var(--bx, 50%) var(--by, 50%), rgba(255,255,255,.28), transparent 70%);
  opacity: 0; transition: opacity .3s;
}
.btn--primary:hover { background: var(--azul-hover); }
.btn--primary:hover::after { opacity: 1; }
.btn--ghost { border-color: rgba(199,207,218,.28); color: var(--hielo); }
.btn--ghost:hover { background: rgba(242,244,247,.07); border-color: rgba(199,207,218,.5); }
.btn--ghost i { transition: transform .3s var(--ease-out); }
.btn--ghost:hover i { transform: translateX(4px); }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  color: var(--hielo);
  transition: transform .45s var(--ease-out), background-color .35s, color .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.nav--scrolled { background: rgba(15,23,36,.72); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); border-bottom-color: var(--linea-oscura); }
.nav--light { color: var(--tinta); }
.nav--light.nav--scrolled { background: rgba(242,244,247,.8); border-bottom-color: rgba(15,23,36,.08); }
.nav--hidden { transform: translateY(-100%); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.nav__links { display: flex; gap: 6px; margin-left: auto; }
.nav__links a { padding: 8px 14px; border-radius: var(--r-pill); font-size: 15px; font-weight: 500; opacity: .82; transition: opacity .2s, background-color .2s; }
.nav__links a:hover { opacity: 1; background: rgba(127,140,160,.14); }
.nav__burger { display: none; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__fox { width: 28px; height: 33px; color: currentColor; }
.brand__word { font-family: var(--f-display); font-weight: 600; font-size: 23px; letter-spacing: -.03em; line-height: 1; }

/* Menú móvil */
.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--tinta);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 32px) 0 calc(32px + env(safe-area-inset-bottom));
}
.menu[hidden] { display: none; }
.menu__links { display: flex; flex-direction: column; gap: 4px; }
.menu__links a { font-family: var(--f-display); font-weight: 600; font-size: clamp(34px, 9vw, 48px); letter-spacing: -.03em; line-height: 1.25; }
.menu__foot { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.menu__mail { color: var(--texto-suave); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100dvh; display: grid; align-items: center; padding: calc(var(--nav-h) + 24px) 0 56px; overflow: hidden; }
.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px circle at 74% 46%, rgba(47,91,234,.30), transparent 62%),
    radial-gradient(420px circle at 8% 108%, rgba(47,91,234,.14), transparent 70%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.hero__tag { margin-bottom: 28px; }
.hero__title {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(44px, 5.5vw, 84px);
  line-height: 1.0; letter-spacing: -.045em;
  max-width: 13ch;
  text-wrap: balance;
}
.hero__sub { margin-top: 28px; font-size: clamp(17px, 1.4vw, 20px); color: var(--texto-suave); max-width: 44ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero__visual { position: relative; height: min(76vh, 640px); }
.hero__visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__fallback { position: absolute; inset: 12%; width: 76%; height: 76%; color: var(--niebla); opacity: .9; }
.has-canvas .hero__fallback { display: none; }

/* ---------- Herramientas ---------- */
.tools { padding: 24px 0 88px; }
.tools__title { text-align: center; color: var(--texto-tenue); font-size: 15px; margin-bottom: 30px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; }
.marquee__group li { padding: 0 34px; }
.marquee__group img { width: 32px; height: 32px; opacity: .72; transition: opacity .25s; }
.marquee__group li:hover img { opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Servicios (bento) ---------- */
.services { padding: 72px 0 140px; }
.services__title { max-width: 16ch; margin-bottom: 56px; }
.bento {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    "web web ai ai"
    "web web auto social"
    "voice voice crm crm";
}
.cell {
  --mx: 50%; --my: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 250px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: 30px;
  border-radius: var(--r-card);
  background: var(--tinta-2);
  border: 1px solid var(--linea-oscura);
  transition: border-color .3s;
}
.cell::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(109,140,245,.16), transparent 65%);
  opacity: 0; transition: opacity .35s;
}
.cell:hover { border-color: rgba(199,207,218,.24); }
.cell:hover::before { opacity: 1; }
.cell__icon { font-size: 30px; color: var(--azul-claro); margin-bottom: 20px; display: block; }
.cell h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(21px, 1.7vw, 26px); letter-spacing: -.02em; line-height: 1.15; }
.cell p { margin-top: 10px; color: var(--texto-suave); font-size: 16px; max-width: 42ch; }

.cell--web { grid-area: web; padding-bottom: 0; }
.cell__shot {
  position: relative; margin: 0 -2px; height: 330px;
  border-radius: 14px 14px 0 0; overflow: hidden;
  border: 1px solid rgba(199,207,218,.16); border-bottom: 0;
  box-shadow: 0 -20px 60px -20px rgba(47,91,234,.35);
}
.cell__shot img { width: 100%; height: auto; transition: transform 2.4s var(--ease-out); }
.cell--web:hover .cell__shot img { transform: translateY(-18%); }

.cell--ai { grid-area: ai; background: var(--azul); border-color: transparent; }
.cell--ai::before { background: radial-gradient(380px circle at var(--mx) var(--my), rgba(255,255,255,.18), transparent 65%); }
.cell--ai .cell__icon { color: var(--blanco); }
.cell--ai p { color: rgba(251,252,253,.86); }
.cell__pulse { position: absolute; right: 30px; top: 30px; width: 16px; height: 16px; }
.cell__pulse span { position: absolute; inset: 0; border-radius: 50%; background: var(--blanco); }
.cell__pulse span:nth-child(n+2) { background: transparent; border: 1.5px solid rgba(251,252,253,.7); animation: ping 2.4s var(--ease-out) infinite; }
.cell__pulse span:nth-child(3) { animation-delay: 1.2s; }
@keyframes ping { from { transform: scale(1); opacity: 1; } to { transform: scale(3.4); opacity: 0; } }

.cell--auto {
  grid-area: auto;
  background-color: var(--tinta-2);
  background-image: radial-gradient(rgba(199,207,218,.16) 1px, transparent 1.6px);
  background-size: 18px 18px;
}
.cell--social { grid-area: social; background: linear-gradient(160deg, var(--tinta-3), var(--tinta-2) 60%); }
.cell--voice { grid-area: voice; flex-direction: row; align-items: flex-end; }
.cell--crm { grid-area: crm; flex-direction: row; align-items: flex-end; }

.wave { display: flex; align-items: center; gap: 5px; height: 72px; flex-shrink: 0; }
.wave i { display: block; width: 4px; height: 100%; border-radius: 4px; background: var(--azul-claro); transform-origin: center; animation: wave 1.3s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-duration: 1.05s; }
.wave i:nth-child(4n+1) { animation-duration: 1.6s; }
.wave i:nth-child(5n+2) { animation-duration: .9s; }
.wave i:nth-child(odd) { animation-delay: -.4s; }
.wave i:nth-child(3n+1) { animation-delay: -.8s; }
@keyframes wave { 0%, 100% { transform: scaleY(.18); } 50% { transform: scaleY(1); } }

.cell__logos { display: flex; gap: 14px; flex-shrink: 0; }
.cell__logos img { width: 56px; height: 56px; padding: 13px; border-radius: 16px; background: var(--tinta-3); border: 1px solid var(--linea-oscura); }

/* ---------- Demo del agente ---------- */
.demo {
  position: relative; z-index: 2;
  padding: 60px 0 150px;
  background: var(--tinta);
  border-radius: 0 0 48px 48px;
}
.demo__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.demo .h2 { max-width: 13ch; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: var(--r-pill);
  border: 1px solid rgba(199,207,218,.24); background: transparent;
  color: var(--niebla); font-weight: 500; font-size: 15px;
  transition: background-color .25s, color .25s, border-color .25s;
}
.tab i { font-size: 18px; }
.tab:hover { border-color: rgba(199,207,218,.5); color: var(--hielo); }
.tab.is-active { background: var(--hielo); color: var(--tinta); border-color: var(--hielo); }
.facts { margin-top: 40px; display: grid; gap: 14px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; color: var(--texto-suave); }
.facts i { font-size: 21px; color: var(--azul-claro); margin-top: 2px; }

.phone { width: min(370px, 100%); margin-left: auto; margin-right: 6%; }
.phone__screen {
  border-radius: 40px; overflow: hidden;
  border: 10px solid #0A101A;
  outline: 1px solid rgba(199,207,218,.16);
  background: #E7EBF1;
  box-shadow: 0 50px 100px -30px rgba(47,91,234,.45), 0 30px 60px -30px rgba(0,0,0,.6);
}
.chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--tinta-3); color: var(--hielo); }
.chat__avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--azul); color: var(--blanco); font-size: 20px; }
.chat__head strong { display: block; font-size: 15.5px; line-height: 1.2; }
.chat__head small { color: var(--texto-suave); font-size: 13px; }
.chat__body {
  height: 440px; padding: 18px 14px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  background-color: #E7EBF1;
  background-image: radial-gradient(rgba(15,23,36,.05) 1px, transparent 1.4px);
  background-size: 14px 14px;
}
.msg {
  max-width: 82%; padding: 9px 12px 6px; border-radius: 14px;
  font-size: 14.5px; line-height: 1.42; color: var(--tinta);
  box-shadow: 0 1px 1px rgba(15,23,36,.08);
  animation: msgIn .45s var(--ease-out) both;
}
.msg small { display: flex; justify-content: flex-end; align-items: center; gap: 4px; font-size: 11px; color: var(--acero); margin-top: 2px; }
.msg--in { align-self: flex-start; background: var(--blanco); border-top-left-radius: 4px; }
.msg--out { align-self: flex-end; background: #D9E3FF; border-top-right-radius: 4px; }
.msg--out small i { color: var(--azul); font-size: 13px; }
.msg--typing { display: flex; gap: 4px; padding: 13px 14px; }
.msg--typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--acero); animation: typing 1.1s infinite; }
.msg--typing span:nth-child(2) { animation-delay: .15s; }
.msg--typing span:nth-child(3) { animation-delay: .3s; }
.sys {
  align-self: center; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--r-pill);
  background: rgba(251,252,253,.85); color: var(--tinta);
  font-family: var(--f-mono); font-size: 11.5px;
  animation: msgIn .45s var(--ease-out) both;
}
.sys i { color: var(--azul); font-size: 14px; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat__input { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 12px 16px; background: #F7F9FB; color: var(--acero); font-size: 14px; border-top: 1px solid #DCE1E8; }
.chat__input i { color: var(--azul); font-size: 20px; }
.phone__note { text-align: center; margin-top: 16px; font-size: 13.5px; color: var(--texto-tenue); }

/* ---------- Zona clara ---------- */
.light-zone { position: relative; z-index: 1; background: var(--hielo); color: var(--tinta); margin-top: -48px; padding-top: 48px; }
.light-zone .lead { color: var(--acero); }

/* Proyectos */
.work { padding: 120px 0 60px; }
.work__track { display: flex; flex-direction: column; gap: 96px; }
.work__intro, .project { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.work__intro .h2 { max-width: 10ch; }
.project { display: grid; grid-template-columns: 1.45fr 1fr; gap: 48px; align-items: center; }
.project__shot {
  border-radius: var(--r-card); overflow: hidden;
  background: var(--blanco);
  border: 1px solid var(--linea-clara);
  box-shadow: 0 40px 80px -40px rgba(15,23,36,.35), 0 12px 24px -12px rgba(15,23,36,.12);
  aspect-ratio: 1200 / 717;
}
.project__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transform-origin: center top; }
.project__kind { color: var(--acero); font-size: 15px; }
.project h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(28px, 2.8vw, 42px); letter-spacing: -.03em; line-height: 1.08; margin-top: 8px; }
.project__info > p:not(.project__kind) { margin-top: 16px; color: var(--acero); max-width: 44ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips li { padding: 6px 14px; border-radius: var(--r-pill); border: 1px solid var(--linea-clara); background: var(--blanco); font-size: 13.5px; font-weight: 500; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; margin-top: 26px; color: var(--azul); font-weight: 600; }
.link-arrow i { transition: transform .3s var(--ease-out); }
.link-arrow:hover i { transform: translate(3px, -3px); }

/* Paneo horizontal (solo escritorio con JS) */
.work--pan { padding: 0; }
.work--pan .work__pin { height: 100vh; display: flex; align-items: center; overflow: hidden; }
.work--pan .work__track { flex-direction: row; align-items: center; gap: 72px; padding-left: max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter))); padding-right: 12vw; will-change: transform; }
.work--pan .work__intro { flex: 0 0 auto; width: 380px; margin: 0; padding: 0; }
.work--pan .project { flex: 0 0 auto; width: min(80vw, 1120px); margin: 0; padding: 0; }

/* Proceso */
.process { padding: 120px 0; }
.process__inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 80px; align-items: start; }
.process__head { position: sticky; top: calc(var(--nav-h) + 56px); }
.process__head .h2 { max-width: 13ch; }
.steps-wrap { position: relative; }
.steps__rail { position: absolute; left: 27px; top: 40px; bottom: 40px; width: 2px; background: var(--linea-clara); border-radius: 2px; overflow: hidden; }
.steps__rail span { position: absolute; inset: 0; background: var(--azul); transform: scaleY(0); transform-origin: top; }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 28px; padding: 26px 0; transition: opacity .5s var(--ease-out); }
.js .step { opacity: .4; }
.js .step.is-active { opacity: 1; }
.step__icon {
  position: relative; z-index: 1;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blanco); border: 1px solid var(--linea-clara);
  color: var(--azul); font-size: 24px;
  transition: background-color .4s, color .4s, border-color .4s;
}
.step.is-active .step__icon { background: var(--azul); color: var(--blanco); border-color: var(--azul); }
.step h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(22px, 2vw, 28px); letter-spacing: -.02em; line-height: 1.2; padding-top: 12px; }
.step p { margin-top: 10px; color: var(--acero); max-width: 46ch; }

/* Precios */
.pricing { padding: 100px 0 120px; }
.pricing .h2 { max-width: 15ch; }
.prices { margin-top: 56px; }
.price {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 1.05fr 1.4fr minmax(220px, auto); gap: 32px; align-items: center;
  padding: 30px 28px;
  border-radius: var(--r-card);
  box-shadow: inset 0 1px 0 var(--linea-clara);
}
.price::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--blanco); box-shadow: 0 20px 40px -24px rgba(15,23,36,.25);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out);
}
.price:hover::before { transform: scaleX(1); }
.price__name { display: flex; align-items: center; gap: 14px; }
.price__name i { font-size: 26px; color: var(--azul); }
.price__name h3 { font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; line-height: 1.2; }
.price__desc { color: var(--acero); font-size: 16px; }
.price__amount { text-align: right; font-family: var(--f-display); font-weight: 600; font-size: 34px; letter-spacing: -.03em; line-height: 1.1; }
.price__amount small, .price__amount span { display: block; font-family: var(--f-body); font-weight: 400; letter-spacing: 0; font-size: 14px; color: var(--acero); }
.price__amount span { margin-top: 4px; }
.price--featured { background: var(--tinta); color: var(--hielo); box-shadow: none; margin: 6px 0; }
.price--featured::before { display: none; }
.price--featured .price__name i { color: var(--azul-claro); }
.price--featured .price__desc, .price--featured .price__amount small, .price--featured .price__amount span { color: var(--texto-suave); }
.price--featured + .price { box-shadow: none; }
.pricing__note { display: flex; gap: 10px; align-items: flex-start; margin-top: 28px; color: var(--acero); font-size: 15px; max-width: 70ch; box-shadow: none; }
.pricing__note i { font-size: 20px; color: var(--azul); margin-top: 1px; }
.prices .price:last-child { box-shadow: inset 0 1px 0 var(--linea-clara), inset 0 -1px 0 var(--linea-clara); }

/* Rubros */
.niches { padding: 60px 0 120px; }
.niches .h2 { max-width: 14ch; }
.niche-cloud { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
.niche-cloud li {
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 22px 0 18px;
  border-radius: var(--r-pill);
  background: var(--blanco); border: 1px solid var(--linea-clara);
  font-weight: 500; font-size: 16.5px;
  transition: background-color .3s, color .3s, transform .3s var(--ease-out), border-color .3s;
}
.niche-cloud i { font-size: 21px; color: var(--azul); transition: color .3s; }
.niche-cloud li:hover { background: var(--tinta); color: var(--hielo); border-color: var(--tinta); transform: translateY(-3px); }
.niche-cloud li:hover i { color: var(--azul-claro); }

/* Preguntas */
.faq { padding: 40px 0 190px; }
.faq__inner { max-width: 900px; }
.accordion { margin-top: 44px; }
.qa { box-shadow: inset 0 1px 0 var(--linea-clara); }
.qa:last-child { box-shadow: inset 0 1px 0 var(--linea-clara), inset 0 -1px 0 var(--linea-clara); }
.qa button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; background: none; border: 0; text-align: left;
  font-family: var(--f-display); font-weight: 500; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -.01em; line-height: 1.3;
}
.qa button i {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-size: 18px;
  border: 1px solid var(--linea-clara);
  transition: transform .45s var(--ease-out), background-color .3s, color .3s, border-color .3s;
}
.qa button:hover i { border-color: var(--tinta); }
.qa button[aria-expanded="true"] i { transform: rotate(45deg); background: var(--tinta); color: var(--hielo); border-color: var(--tinta); }
.qa__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.qa__panel > div { overflow: hidden; }
.qa__panel p { color: var(--acero); max-width: 66ch; padding: 0 56px 28px 0; }
.qa.is-open .qa__panel { grid-template-rows: 1fr; }

/* ---------- Contacto ---------- */
.contact {
  position: relative; z-index: 2; overflow: hidden;
  margin-top: -48px; padding: 140px 0 120px;
  background: var(--tinta);
  border-radius: 48px 48px 0 0;
}
.contact__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(640px circle at 20% 30%, rgba(47,91,234,.22), transparent 65%); }
.contact__inner { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px 72px; align-items: start; }
.contact__copy .lead { margin-top: 8px; }
.contact__title {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(56px, 10.5vw, 168px); line-height: .95; letter-spacing: -.055em;
  padding-bottom: .06em; grid-column: 1 / -1; margin-bottom: 8px;
}
.founders { display: flex; flex-wrap: wrap; gap: 16px 40px; margin-top: 44px; }
.founders div { display: flex; flex-direction: column; padding-left: 16px; border-left: 2px solid var(--azul); }
.founders strong { font-family: var(--f-display); font-weight: 600; font-size: 19px; }
.founders span { color: var(--texto-tenue); font-size: 15px; }
.contact__mail { display: inline-flex; align-items: center; gap: 10px; margin-top: 36px; font-size: 18px; color: var(--hielo); border-bottom: 1px solid rgba(199,207,218,.3); padding-bottom: 4px; transition: border-color .3s; }
.contact__mail:hover { border-color: var(--azul-claro); }
.contact__mail i { color: var(--azul-claro); }

.form { display: grid; gap: 22px; padding: 34px; border-radius: 24px; background: var(--tinta-2); border: 1px solid var(--linea-oscura); }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-size: 15px; font-weight: 600; color: var(--niebla); padding: 0; }
.field legend { margin-bottom: 10px; }
.field label small { font-weight: 400; color: var(--texto-tenue); }
.field input[type="text"], .field textarea {
  width: 100%; padding: 13px 16px;
  border-radius: var(--r-field);
  border: 1px solid rgba(199,207,218,.24);
  background: var(--tinta); color: var(--hielo);
  font: inherit; font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--azul-claro); box-shadow: 0 0 0 3px rgba(109,140,245,.3); }
.field.has-error input { border-color: var(--error); }
.field__help { font-size: 13.5px; color: var(--texto-tenue); }
.field__error { font-size: 13.5px; color: var(--error); min-height: 0; }
.field__error:empty { display: none; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick label { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pick span {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px;
  border-radius: var(--r-pill); border: 1px solid rgba(199,207,218,.26);
  font-size: 14.5px; font-weight: 500; color: var(--niebla);
  transition: background-color .2s, border-color .2s, color .2s;
}
.pick label:hover span { border-color: rgba(199,207,218,.55); }
.pick input:checked + span { background: var(--azul); border-color: var(--azul); color: var(--blanco); }
.pick input:focus-visible + span { outline: 2px solid var(--azul-claro); outline-offset: 2px; }
.form__submit { width: 100%; margin-top: 4px; }
.form__status { font-size: 14.5px; color: var(--texto-suave); }
.form__status:empty { display: none; }
.form__status a { color: var(--azul-claro); text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { background: var(--tinta); padding: 40px 0 32px; color: var(--hielo); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 48px; border-top: 1px solid var(--linea-oscura); }
.footer__brand p { margin-top: 16px; color: var(--texto-tenue); max-width: 34ch; font-size: 15.5px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 15.5px; }
.footer__col h4 { font-family: var(--f-mono); font-weight: 400; font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--texto-tenue); margin-bottom: 6px; }
.footer__col a, .footer__col span { color: var(--texto-suave); transition: color .2s; width: fit-content; }
.footer__col a:hover { color: var(--hielo); }
.footer__word {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(88px, 21vw, 330px); line-height: .78; letter-spacing: -.065em;
  color: var(--tinta-3); margin: 64px 0 28px; white-space: nowrap; user-select: none;
}
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--texto-tenue); font-size: 14px; }

/* ---------- Botón flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--azul); color: var(--blanco); font-size: 28px;
  box-shadow: 0 14px 30px -10px rgba(47,91,234,.6);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .35s, transform .45s var(--ease-out), background-color .25s;
}
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { background: var(--azul-hover); }

/* ---------- Estados de animación (solo con JS) ---------- */
.anim [data-reveal] { opacity: 0; transform: translateY(28px); }
.anim .hero__title { visibility: hidden; }
.anim [data-hero-item] { opacity: 0; transform: translateY(18px); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__links a { padding: 8px 10px; }
  .nav__inner { gap: 18px; }
}
@media (max-width: 1023px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger {
    display: grid; place-items: center; gap: 6px; margin-left: auto;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(127,140,160,.14); border: 0; padding: 0;
    align-content: center;
  }
  .nav__burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease-out); }
  .nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .hero__inner { grid-template-columns: 1fr; gap: 8px; }
  .hero__visual { order: -1; height: min(36vh, 340px); margin-inline: auto; width: 100%; }
  .hero__title { max-width: 14ch; }

  .bento { grid-template-columns: 1fr 1fr; grid-template-areas: "web web" "ai ai" "auto social" "voice voice" "crm crm"; }
  .demo__inner { grid-template-columns: 1fr; gap: 56px; }
  .phone { margin: 0 auto; }
  .project { grid-template-columns: 1fr; gap: 28px; }
  .process__inner { grid-template-columns: 1fr; gap: 40px; }
  .process__head { position: static; }
  .price { grid-template-columns: 1fr 1fr; }
  .price__desc { grid-column: 1 / -1; grid-row: 2; }
  .contact__inner { grid-template-columns: 1fr; gap: 56px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: calc(var(--nav-h) + 4px); padding-bottom: 40px; align-items: start; }
  .hero__visual { height: 30vh; max-height: 260px; }
  .hero__tag { margin-bottom: 18px; font-size: 11.5px; letter-spacing: .22em; }
  .hero__title { font-size: clamp(38px, 11vw, 48px); letter-spacing: -.04em; }
  .hero__sub { margin-top: 18px; }
  .hero__ctas { margin-top: 28px; flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; }
  .tools { padding-bottom: 64px; }
  .marquee__group li { padding: 0 22px; }
  .services { padding: 56px 0 100px; }
  .services__title { margin-bottom: 36px; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "web" "ai" "auto" "social" "voice" "crm"; gap: 12px; }
  .cell { padding: 24px; min-height: 0; }
  .cell--web { padding-bottom: 0; }
  .cell__shot { height: 200px; }
  .cell--voice, .cell--crm { flex-direction: column; align-items: flex-start; }
  .wave { height: 48px; }
  .demo { padding: 40px 0 110px; border-radius: 0 0 32px 32px; }
  .chat__body { height: 400px; }
  .tab { height: 40px; padding: 0 14px; font-size: 14px; }
  .light-zone { margin-top: -32px; padding-top: 32px; }
  .work { padding: 90px 0 40px; }
  .work__track { gap: 72px; }
  .process { padding: 80px 0; }
  .steps__rail { left: 23px; }
  .step { grid-template-columns: 48px 1fr; gap: 18px; padding: 20px 0; }
  .step__icon { width: 48px; height: 48px; font-size: 21px; }
  .step h3 { padding-top: 8px; }
  .pricing { padding: 72px 0 90px; }
  .prices { margin-top: 36px; }
  .price { grid-template-columns: 1fr; gap: 12px; padding: 24px 20px; }
  .price__desc { grid-row: auto; }
  .price__amount { text-align: left; font-size: 30px; }
  .price__amount small { display: inline; margin-right: 6px; }
  .niches { padding: 40px 0 90px; }
  .niche-cloud { gap: 8px; }
  .niche-cloud li { height: 46px; padding: 0 16px 0 14px; font-size: 15px; }
  .faq { padding: 20px 0 150px; }
  .qa__panel p { padding-right: 0; }
  .contact { margin-top: -32px; padding: 100px 0 90px; border-radius: 32px 32px 0 0; }
  .form { padding: 22px; }
  .footer__top { grid-template-columns: 1fr; }
  .wa-float { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); width: 48px; height: 48px; font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee__track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
  .marquee__group[aria-hidden="true"] { display: none; }
  .wave i { transform: scaleY(.5); }
}
