/* ==============================
   Design tokens / reset básico
============================== */
:root {
  color-scheme: light;
  scroll-behavior: smooth;

  /* Layout */
  --wrap: max(min(1200px, 92vw), 320px);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --easing: cubic-bezier(.22,.61,.36,1);

  /* Tipografía */
  --font-ui: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'Manrope', var(--font-ui);
  --size-0: clamp(.9rem, .86rem + .12vw, .96rem);
  --size-1: clamp(1rem, .96rem + .22vw, 1.08rem);
  --size-2: clamp(1.14rem, 1.02rem + .50vw, 1.32rem);
  --size-3: clamp(1.5rem, 1.2rem + 1.28vw, 2.08rem);
  --size-4: clamp(2.2rem, 1.7rem + 2.3vw, 3.2rem);

  /* Colores */
  --bg: #f5f7fd;
  --bg-2: #eef2f9;
  --panel: #ffffff;
  --card: #ffffff;
  --ink: #13233c;
  --ink-2: #566681;
  --ink-3: #8a96ad;
  --line: rgba(19,35,60,.12);
  --primary: #2656f0;
  --accent: #12b0b4;

  /* Gradientes */
  --grad-strong: linear-gradient(135deg,#2656f0 0%,#3e73ff 60%,#12b0b4 100%);
  --grad-soft: linear-gradient(135deg,rgba(38,86,240,.06) 0%,rgba(18,176,180,.06) 100%);

  /* Sombras */
  --shadow-xs: 0 1px 2px rgba(15,25,55,.06),0 1px 1px rgba(15,25,55,.04);
  --shadow-sm: 0 8px 22px rgba(15,25,55,.10);
  --shadow: 0 26px 80px rgba(15,25,55,.14);
}

/* Respeto a reduce 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;
  }
}

/* ===== Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html, body {
  height: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  font: var(--size-1)/1.65 var(--font-ui);
  letter-spacing: .1px;
  color: var(--ink);
  background:
    radial-gradient(880px 560px at -12% -14%, rgba(38,86,240,.04), transparent 60%),
    radial-gradient(780px 520px at 112% -10%, rgba(18,176,180,.04), transparent 60%),
    #f9fbff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv02","cv03","cv04","cv09","ss01","ss02","case","tnum","liga";
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(10px, 2vw, 16px);
}
.center { text-align: center; }

h1,h2,h3,h4 {
  margin: 0 0 .5rem;
  font-family: var(--font-head);
  letter-spacing: .2px;
  color: var(--ink);
}
h1 {
  font-weight: 800;
  font-size: var(--size-4);
  line-height: 1.12;
}
h2 {
  font-weight: 800;
  font-size: var(--size-3);
}
h3 {
  font-weight: 700;
  font-size: var(--size-2);
}
.lead {
  color: var(--ink-2);
  max-width: 880px;
  margin: 10px auto 28px;
  line-height: 1.85;
  font-size: var(--size-1);
}

/* ==============================
   Header + navegación
============================== */
.hd {
  position: fixed;
  inset: 0 0 auto 0;
  height: 76px;
  z-index: 1000;
  display: grid;
  align-items: center;
  background: color-mix(in oklab, var(--panel) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px) saturate(1.02);
  transition:
    background .25s var(--easing),
    box-shadow .25s var(--easing),
    border-color .25s var(--easing),
    transform .25s var(--easing);
}
@supports not (backdrop-filter: blur(10px)) {
  .hd { background: var(--panel); }
}
.hd .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  color: var(--ink);
}
.brand img,
.ft img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  -webkit-mask: radial-gradient(closest-side, #000 99%, transparent 100%);
          mask: radial-gradient(closest-side, #000 99%, transparent 100%);
  clip-path: circle(50% at 50% 50%);
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
}
.brand-name {
  font-weight: 800;
  letter-spacing: .2px;
  font-size: 1.02rem;
}
.brand-name .ai {
  display: inline-block;
  position: relative;
  background-image: linear-gradient(90deg,#0d47a1 0%,#1fa2ff 50%,#00d4ff 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.brand-name .ai::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -.12em;
  height: .18em;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(31,162,255,0) 0%,
    rgba(31,162,255,.55) 40%,
    rgba(0,212,255,.55) 100%
  );
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform .35s var(--easing);
}
.brand:hover .ai::after {
  transform: scaleX(1);
}

/* Nav principal */
.nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.nav-item {
  position: relative;
}
.nav-link {
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: color-mix(in oklab, var(--ink) 82%, var(--ink-3));
  padding: .54rem .76rem;
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  border-radius: 10px;
  transition:
    color .16s var(--easing),
    background .16s var(--easing),
    box-shadow .16s var(--easing),
    transform .16s var(--easing);
}
.nav-link .chev {
  font-size: .9em;
  transform: translateY(1px);
  opacity: .85;
}
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--primary);
  background: rgba(38,86,240,.10);
  outline: none;
  box-shadow: 0 0 0 3px rgba(38,86,240,.18);
  transform: translateY(-1px);
}

/* Mega menú */
.has-mega::after {
  content: "";
  position: absolute;
  left: -12px;
  right: -12px;
  top: 100%;
  height: 16px;
}
.mega {
  position: fixed;
  left: 0;
  right: 0;
  top: 76px;
  display: none;
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  transition: opacity .18s var(--easing);
}
.mega-inner {
  background:
    linear-gradient(180deg, rgba(255,255,255,.97), rgba(255,255,255,.98)),
    var(--grad-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.mega-wrap {
  width: var(--wrap);
  margin-inline: auto;
  padding: 22px 0;
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}
.mega h4 {
  margin: .2rem 0 .6rem;
  font-weight: 800;
  color: var(--ink);
}
.mega-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.mega-list a {
  color: var(--ink-2);
  padding: .52rem .66rem;
  border-radius: 10px;
  display: inline-block;
  transition:
    background .14s var(--easing),
    transform .14s var(--easing),
    color .14s var(--easing),
    box-shadow .14s var(--easing);
}
.mega-list a:hover,
.mega-list a:focus-visible {
  color: var(--ink);
  transform: translateX(2px);
  background: linear-gradient(90deg, rgba(38,86,240,.12), rgba(18,176,180,.1));
  box-shadow: inset 0 0 0 1px rgba(38,86,240,.18);
  outline: none;
}
.mega-callout {
  border-left: 1px dashed rgba(38,86,240,.28);
  padding-left: 18px;
  color: var(--ink-2);
}

/* Hover en desktop */
@media (hover: hover) {
  .has-mega:hover > .mega,
  .has-mega:focus-within > .mega,
  .has-mega:has(.mega:hover) > .mega {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }
}

/* Burger móvil */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ink);
}
.burger-icon g line {
  transition: transform .22s var(--easing), opacity .16s;
}

/* Drawer móvil */
@media (max-width: 900px) {
  .burger { display: block; }

  .nav {
    position: fixed;
    top: 76px;
    right: -100%;
    width: min(86vw, 420px);
    height: calc(100vh - 76px);
    background: var(--panel);
    border-left: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
    gap: 10px;
    transition: right .3s var(--easing);
    box-shadow: -18px 0 44px rgba(12,28,70,.10);
  }
  html.menu-open .nav {
    right: 0;
  }
}

/* Mega dentro del menú móvil (como bloque) */
@media (max-width: 900px) {
  .mega {
    position: static;
    top: auto;
    display: block;
    opacity: 1;
    pointer-events: auto;
  }
  .mega-inner {
    border-radius: 14px;
    margin-top: 4px;
    box-shadow: var(--shadow-sm);
  }
  .mega-wrap {
    grid-template-columns: 1fr;
    padding-block: 10px 16px;
    gap: 18px;
  }
}

/* ==============================
   Botones + ripple
============================== */
.btn,
.btn-primary {
  position: relative;
  overflow: hidden;
  background: var(--grad-strong);
  color: #fff;
  font-weight: 800;
  border: 0;
  padding: .84rem 1.2rem;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(38,86,240,.22);
  transition:
    transform .16s var(--easing),
    box-shadow .16s var(--easing),
    filter .16s var(--easing);
  font-family: var(--font-head);
  letter-spacing: .2px;
  white-space: nowrap;
  font-size: .98rem;
}
.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 22px 52px rgba(38,86,240,.28);
}
.btn:active {
  transform: translateY(0) scale(.99);
  box-shadow: 0 10px 24px rgba(38,86,240,.2);
}
.btn-secondary {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid rgba(148,163,184,.6);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
  box-shadow: 0 14px 32px rgba(15,23,42,.16);
}

/* Ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.6);
  transform: scale(0);
  animation: ripple .6s ease-out forwards;
  pointer-events: none;
}
@keyframes ripple {
  to {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* ==============================
   Barra de progreso scroll
============================== */
.scrollbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 1200;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform-origin: 0 50%;
  transform: scaleX(0);
  box-shadow: 0 2px 6px rgba(38,86,240,.35);
}

/* ==============================
   Secciones generales
============================== */
.section {
  padding: clamp(60px, 7vw, 100px) 0;
  background: var(--bg);
}
.section:nth-of-type(even) {
  background: var(--bg-2);
}

/* ==============================
   HERO Demo
============================== */
.demo-hero {
  text-align: center;
  padding-top: calc(76px + 30px);
  padding-bottom: 32px;
  background: var(--bg);
}
.demo-hero h1 {
  margin-bottom: 12px;
}
.demo-hero p {
  margin: 0 auto 26px;
  max-width: 44rem;
  color: var(--ink-2);
}

/* Chips */
.demo-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.demo-tags li { position: relative; }
.demo-tags button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .7rem 1.7rem;
  border-radius: 999px;
  border: 1px solid rgba(59,130,246,.35);
  font-weight: 700;
  font-size: .96rem;
  cursor: default;
  background:
    radial-gradient(140% 140% at 0% 0%, #e0f2ff 0%, transparent 40%),
    radial-gradient(120% 120% at 100% 0%, #e0fff9 0%, transparent 45%),
    #f9fbff;
  color: #0b1d33;
  box-shadow: 0 10px 26px rgba(15,25,55,.16);
}
.demo-tags .is-active button {
  background: linear-gradient(135deg,#2563eb 0%,#1d4ed8 45%,#06b6d4 100%);
  color: #f9fafb;
  border-color: transparent;
  box-shadow: 0 16px 36px rgba(37,99,235,.40);
}

/* ==============================
   Sección DEMO (texto + video)
============================== */
.demo-section {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(1300px 900px at -10% -20%, rgba(38,86,240,.10), transparent 60%),
    radial-gradient(1200px 860px at 110% -10%, rgba(18,176,180,.12), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.demo-section::before {
  content: "";
  position: absolute;
  inset: auto -25% -42%;
  height: 420px;
  background:
    radial-gradient(80% 60% at 30% 0%, rgba(38,86,240,.18), transparent 60%),
    radial-gradient(70% 50% at 80% 10%, rgba(18,176,180,.20), transparent 65%);
  opacity: .2;
  filter: blur(14px);
  pointer-events: none;
  z-index: 0;
}

.demo-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 5vh, 44px);
}

/* Texto / flujo */
.demo-text {
  order: 1;
}
.demo-text > h2 {
  margin-bottom: .4rem;
}
.demo-text > p {
  margin: 0 0 1.4rem;
  max-width: 32rem;
  color: var(--ink-2);
}

/* Timeline */
.demo-flow {
  position: relative;
  display: grid;
  gap: .9rem;
  width: 100%;
  margin-top: 1.5rem;
  padding-left: 42px;
}
.flow-line {
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(to bottom,
    rgba(148,163,184,.35),
    rgba(37,99,235,.9),
    rgba(45,212,191,.9),
    rgba(148,163,184,.25)
  );
}
.flow-dot {
  position: absolute;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 999px;
  background: linear-gradient(135deg,#2563eb,#22c55e);
  box-shadow:
    0 0 0 8px rgba(37,99,235,.18),
    0 0 18px rgba(56,189,248,.95);
}

/* Cards de pasos */
.demo-step {
  position: relative;
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff, #f5f7ff);
  border: 1px solid rgba(148,163,184,.40);
  box-shadow: 0 4px 10px rgba(15,23,42,.06), 0 14px 32px rgba(15,23,42,.12);
  transform-origin: left center;
  transition:
    transform .22s var(--easing),
    box-shadow .22s var(--easing),
    border-color .22s var(--easing),
    background .22s var(--easing);
}
.demo-step .icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(129,140,248,.60);
  box-shadow: 0 4px 10px rgba(37,99,235,.25), 0 0 0 1px rgba(255,255,255,.9);
  background: radial-gradient(circle at 30% 20%, #fff 0%, #e5edff 60%, #dbeafe 100%);
}
.demo-step-content h3 {
  margin: 0 0 .18rem;
  font-size: .98rem;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.demo-step-content p {
  margin: 0;
  font-size: .87rem;
  color: var(--ink-2);
  line-height: 1.75;
}
.demo-step:hover {
  transform: scale(1.01) translateX(2px);
  border-color: rgba(37,99,235,.78);
  background: linear-gradient(135deg,#ffffff,#e2efff);
  box-shadow: 0 18px 40px rgba(15,23,42,.20), 0 0 0 1px rgba(59,130,246,.18);
}

/* Vídeo / highlights / CTA */
.demo-video-box {
  order: 2;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
}
.video-frame {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(148,163,184,.45);
  box-shadow: 0 26px 70px rgba(15,23,42,.32), 0 0 0 1px rgba(255,255,255,.9);
  margin-bottom: 12px;
}
.video-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(37,99,235,.7), rgba(45,212,191,.9));
  opacity: .28;
  mix-blend-mode: screen;
  pointer-events: none;
}
.video-frame::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: calc(26px - 2px);
  background: #fff;
  z-index: 0;
}
.video-frame > video,
.video-frame > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Overlay sobre el video */
.video-overlay {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.video-overlay .badge,
.video-overlay .tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .32rem .7rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 8px 18px rgba(15,23,42,.35);
}
.video-overlay .badge {
  background: linear-gradient(135deg, rgba(15,23,42,.9), rgba(15,23,42,.95));
  color: #e5edff;
}
.video-overlay .tag {
  background: linear-gradient(135deg, rgba(37,99,235,.98), rgba(45,212,191,.98));
  color: #f9fafb;
}

/* Highlights y CTA */
.demo-highlights {
  list-style: none;
  margin: 10px 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  font-size: .9rem;
  color: var(--ink-2);
}
.demo-highlights li {
  position: relative;
  padding-left: 1.4rem;
}
.demo-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #60a5fa 30%, #22c55e 100%);
  box-shadow: 0 0 0 4px rgba(59,130,246,.25);
}

.demo-cta-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==============================
   CTA final + footer
============================== */
.ft {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 18px 0 26px;
  font-size: .9rem;
  color: var(--ink-2);
}
.ft-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ft p {
  margin: 8px 0 0;
}
.ft nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.ft nav a {
  opacity: .85;
}
.ft nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ==============================
   Responsive tweaks
============================== */
@media (max-width: 768px) {
  .demo-hero {
    padding-top: calc(64px + 24px);
    padding-bottom: 24px;
  }
  .hd {
    height: 64px;
  }
  .demo-hero h1 {
    font-size: clamp(1.9rem, 5vw, 2.4rem);
  }
  .demo-hero p {
    font-size: var(--size-0);
  }
  .demo-flow {
    padding-left: 34px;
  }
  .flow-line {
    left: 12px;
  }
}

@media (max-width: 520px) {
  .demo-flow {
    padding-left: 28px;
    gap: .8rem;
  }
  .flow-line {
    left: 10px;
  }
  .demo-step {
    padding: .85rem .95rem;
  }
  .demo-step-content p {
    font-size: .84rem;
  }
  .video-frame {
    border-radius: 20px;
  }
  .ft-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Layout 2 columnas en escritorio para DEMO */
@media (min-width: 960px) {
  .demo-container {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
  .demo-text {
    width: 50%;
    max-width: 540px;
  }
  .demo-video-box {
    width: 50%;
    max-width: 520px;
  }
}

/* =========================================================
   OVERRIDES PARA QUE EL MENÚ HAMBURGUESA SEA IGUAL AL FRONT
   (no se borra nada, solo se sobreescribe comportamiento)
========================================================= */
@media (max-width: 900px) {
  /* Header compacto en móvil, igual que el resto del sitio */
  .hd {
    height: 64px;
  }

  /* Nav a pantalla completa desde la derecha */
  .nav {
    top: 64px;
    width: 100vw;
    right: -100%;
    height: calc(100dvh - 64px);
    padding: 14px;
    gap: 8px;
    position: fixed;
    background: var(--panel);
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transition: right .32s var(--easing);
    box-shadow: -18px 0 44px rgba(12,28,70,.10);
  }

  html.menu-open .nav {
    right: 0;
  }

  /* Mega se controla con data-open como en el front general */
  .has-mega::after {
    display: none;
  }

  .mega {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    display: none;
    opacity: 1;
    pointer-events: auto;
  }

  .has-mega[data-open="true"] > .mega {
    display: block;
  }

  .mega-inner {
    border: 1px solid var(--line);
    border-radius: 12px;
    margin: 6px 0;
    box-shadow: var(--shadow-xs);
    background: var(--panel);
  }

  .mega-wrap {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 18px;
  }

  /* Burger centrado como en el resto del front */
  .burger {
    display: grid;
    place-items: center;
  }

  /* Ajustar hero para la altura 64px del header en todo <=900px */
  .demo-hero {
    padding-top: calc(64px + 24px);
  }
}

/* Animación del icono hamburguesa → X (igual que front principal) */
html.menu-open .burger-icon g line:nth-child(1){
  transform-origin:16px 12px;
  transform:rotate(45deg) translateY(10px);
}
html.menu-open .burger-icon g line:nth-child(2){
  opacity:0;
}
html.menu-open .burger-icon g line:nth-child(3){
  transform-origin:16px 12px;
  transform:rotate(-45deg) translateY(-10px);
}
/* ===== Form demo WhatsApp ===== */
.wa-demo-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: min(100%, 420px);
}

.wa-label {
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.wa-input-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.wa-prefix {
  flex: 0 0 auto;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(148,163,184,.8);
  font-weight: 700;
  color: var(--ink-2);
  box-shadow: var(--shadow-xs);
}

.wa-input-row input[type="tel"] {
  flex: 1 1 auto;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.8);
  padding: .8rem 1rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition:
    border-color .16s var(--easing),
    box-shadow .16s var(--easing),
    background .16s var(--easing);
}

.wa-input-row input[type="tel"]:focus-visible {
  border-color: color-mix(in oklab, var(--primary) 60%, var(--line));
  box-shadow: 0 0 0 3px rgba(38,86,240,.18);
}

.wa-input-row .btn-secondary {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Texto bajo el formulario */
.wa-helper {
  margin: 4px 0 0;
  font-size: .82rem;
  color: var(--ink-2);
}

.wa-status {
  margin: 2px 0 0;
  font-size: .82rem;
  font-weight: 700;
}
.wa-status.ok {
  color: #15803d;
}
.wa-status.err {
  color: #b91c1c;
}

/* Stack vertical en móvil */
@media (max-width: 640px) {
  .wa-input-row {
    flex-direction: column;
    align-items: stretch;
  }

  .wa-prefix {
    width: 70px;
    align-self: flex-start;
  }

  .wa-input-row .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* Iconos internos de los pasos */
.demo-step .icon {
  display: grid;
  place-items: center;
}

.demo-step .icon i {
  font-size: 1.4rem;
  background-image: linear-gradient(135deg,#2563eb,#4f46e5,#06b6d4);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

/* Variaciones de color por tipo de paso */
.icon--cam i {
  background-image: linear-gradient(135deg,#0ea5e9,#2563eb);
}

.icon--server i {
  background-image: linear-gradient(135deg,#22c55e,#4ade80);
}

.icon--ai i {
  background-image: linear-gradient(135deg,#a855f7,#6366f1);
}

.icon--dashboard i {
  background-image: linear-gradient(135deg,#f97316,#ec4899);
}

.icon--wa i {
  background-image: linear-gradient(135deg,#22c55e,#16a34a);
}

/* ===== Form demo WhatsApp – versión corregida ===== */
.wa-demo-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: min(100%, 460px);
}

.wa-label {
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* Fila input + botón */
.wa-input-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

/* Cápsula completa para prefijo + número */
.wa-input-shell {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(148,163,184,.8);
  box-shadow: var(--shadow-xs);
  padding-inline: 4px 14px;
  overflow: hidden; /* evita montajes raros */
}

/* Prefijo + RESETEADO (sin su propio borde redondo) */
.wa-prefix {
  flex: 0 0 46px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--ink-2);

  /* anulamos estilos viejos */
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  background: #f9fbff;
  border: 0;
  border-right: 1px solid rgba(148,163,184,.45);
}

/* Input sin borde propio, usa el de la cápsula */
.wa-input-shell input[type="tel"] {
  flex: 1 1 auto;
  border: none;
  outline: none;
  padding: .7rem 0 .7rem 10px;
  font: inherit;
  color: var(--ink);
  background: transparent;
}

/* Foco en la cápsula completa */
.wa-input-shell:focus-within {
  border-color: color-mix(in oklab, var(--primary) 60%, var(--line));
  box-shadow: 0 0 0 3px rgba(38,86,240,.18);
}

/* Botón con misma altura visual */
.wa-input-row .btn-secondary {
  flex: 0 0 auto;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 18px;
  border-radius: 999px;
}

/* Textos de ayuda/estado */
.wa-helper {
  margin: 4px 0 0;
  font-size: .82rem;
  color: var(--ink-2);
}
.wa-status {
  margin: 2px 0 0;
  font-size: .82rem;
  font-weight: 700;
}
.wa-status.ok { color: #15803d; }
.wa-status.err { color: #b91c1c; }

/* Móvil: todo en columna */
@media (max-width: 640px) {
  .wa-input-row {
    flex-direction: column;
    align-items: stretch;
  }
  .wa-input-row .btn-secondary {
    width: 100%;
  }
}

/* ========== TUNE EXTRA DEL INPUT WHATSAPP ========== */

/* Un poco más de aire bajo el título */
.wa-test-label{
  margin: 0 0 10px !important;
}

/* El bloque general no tan ancho */
.wa-test-form{
  max-width: 460px !important;
}

/* Fila: deja espacio y permite que el botón baje si falta ancho */
.wa-test-row{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px; /* más separación entre input y botón */
}

/* Cápsula más corta y color algo más claro */
.wa-test-field{
  flex: 0 0 auto;
  width: 280px;              /* NO ocupa todo el ancho en desktop */
  max-width: 100%;
  border-radius: 999px;
  padding: 0 18px;
  background: #0f172a;       /* más claro que el casi negro anterior */
  border: 1px solid rgba(148,163,184,.45);
  box-shadow: 0 0 0 1px rgba(15,23,42,.25);
}

/* Input dentro de la cápsula */
.wa-test-field input[type="tel"]{
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  color: #e5e7eb;
  padding: .55rem 0;
}
.wa-test-field input::placeholder{
  color: #9ca3af;
}

/* Botón a la derecha en desktop */
.wa-test-btn{
  height: 44px;
  padding-inline: 20px;
  border-radius: 999px;
}

/* Un poco más de espacio con la leyenda */
.wa-test-helper{
  margin-top: 8px;
}

/* En móvil: que el input vuelva a ser fluido y el botón debajo */
@media (max-width: 640px){
  .wa-test-field{
    width: 100%;
  }
  .wa-test-row{
    flex-direction: column;
    align-items: stretch;
  }
  .wa-test-btn{
    width: 100%;
  }
}
/* ===== CTA final con imagen de fondo ===== */
.section-cta-bg{
  position: relative;
  isolation: isolate;
  padding-block: clamp(80px, 12vh, 140px);
  background-image:
    linear-gradient(135deg, rgba(9,11,26,.78), rgba(9,11,26,.85)),
    url("../images/pitch.jpg"); /* <-- ruta de tu imagen */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* que el contenido quede por encima del fondo */
.section-cta-bg .wrap{
  position: relative;
  z-index: 1;
}

/* texto más legible sobre la imagen */
.section-cta-bg h2{
  color: #f9fafb;
}
.section-cta-bg .lead{
  color: rgba(226,232,240,.95);
}

/* opcional: un poquito más de sombra al botón */
.section-cta-bg .btn-primary{
  box-shadow: 0 22px 55px rgba(37,99,235,.55);
}

