/* ==========================================================================
   QuantiQ Deal — hoja de estilos única
   1. Tokens          6. Hero              11. Comparativa / método
   2. Reset y base    7. Demo animada      12. Preguntas / formulario
   3. Utilidades      8. Interfaces (UI)   13. Pie y flotantes
   4. Botones         9. Bento             14. Páginas internas
   5. Encabezado     10. Industrias        15. Responsive / motion
   ========================================================================== */

/* 1. Tokens ================================================================= */
:root {
  --bg: #07080C;
  /* Semitransparente: el canvas del fondo tiene que verse a través. */
  --bg-alt: rgba(10, 12, 18, 0.55);
  --surface: #0E1016;
  --surface-2: #151821;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #F2F4F8;
  --text-muted: #9AA3B2;
  /* Aclarado desde el #6B7280 de la paleta original: a los tamaños en que se usa
     (etiquetas mono de 10–12 px) ese tono queda en 4.1:1 y no alcanza AA.
     Este pasa AA sobre el fondo y sobre las dos superficies de tarjeta. */
  --text-subtle: #7C8491;
  --cyan: #2AB3F5;
  --cyan-soft: rgba(42, 179, 245, 0.12);
  --magenta: #D41AA8;
  --magenta-glow: #F04CD0;
  --magenta-soft: rgba(212, 26, 168, 0.12);
  /* Tercer acento, solo para luz: líneas finas, brillos, foco y destellos. */
  --orchid: #CC4DCA;
  --orchid-mid: #A23FA7;
  --orchid-deep: #712E7F;
  --orchid-glow: rgba(204, 77, 202, 0.45);
  --hairline-orchid: linear-gradient(90deg, transparent, rgba(204, 77, 202, 0.55) 50%, transparent);
  --gradient-brand: linear-gradient(90deg, #2AB3F5 0%, #D41AA8 100%);
  /* Variante aclarada: el degradado de marca sobre texto no alcanza contraste AA. */
  --gradient-brand-text: linear-gradient(90deg, #5BC6FB 0%, #F56FDC 100%);
  --success: #22C55E;
  --whatsapp: #25D366;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Michroma es muy ancha: solo H1, H2, el wordmark y las cifras grandes. */
  --font-display: "Michroma", "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 40px -24px rgba(0, 0, 0, 0.9);
  --shadow-lift: 0 32px 64px -32px rgba(0, 0, 0, 0.95);

  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: 140px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 2. Reset y base =========================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Grano muy leve sobre el fondo, para que el negro no se vea plano. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}
/* Michroma solo en los dos niveles mayores. */
h1, h2, .h1, .h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
}
h3, h4, .h3 { font-family: var(--font-sans); font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(204, 77, 202, 0.35); color: #fff; }

/* Barra de scroll fina y oscura, con el pulgar en orquídea. */
html { scrollbar-width: thin; scrollbar-color: var(--orchid-mid) rgba(255, 255, 255, 0.04); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.03); }
::-webkit-scrollbar-thumb {
  background: var(--orchid-mid);
  border-radius: 999px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--orchid); }

.skip-link {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translate(-50%, -200%);
  z-index: 200;
  padding: 10px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* 3. Utilidades ============================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; z-index: 1; padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
/* Ninguna excepción: todas las secciones llevan el mismo aire arriba y
   abajo, y el divisor va justo en el borde, nunca encima de la etiqueta. */
.section + .section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--hairline-orchid);
  pointer-events: none;
}
/* Punto de luz que recorre el divisor, solo mientras está en pantalla. */
.section + .section::after {
  content: "";
  position: absolute;
  top: -1.5px;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orchid);
  box-shadow: 0 0 10px 2px var(--orchid-glow);
  opacity: 0;
  pointer-events: none;
}
.js .section.is-onscreen + .section::after,
.js .section.is-onscreen::after { animation: divider-run 9s linear infinite; }
@keyframes divider-run {
  0%   { left: 6%; opacity: 0; }
  8%   { opacity: 1; }
  26%  { opacity: 1; }
  34%  { left: 94%; opacity: 0; }
  100% { left: 94%; opacity: 0; }
}
.section--divided { border-top: 1px solid var(--border); }

.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section__head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  background: var(--orchid);
  box-shadow: 0 0 8px var(--orchid-glow);
  transform: rotate(45deg);
}
.section__head--center .eyebrow { justify-content: center; }
.eyebrow--cyan { color: var(--cyan); }

h1, .h1 { font-size: clamp(30px, 4.2vw, 58px); line-height: 1.15; }
h2, .h2 { font-size: clamp(24px, 2.8vw, 40px); line-height: 1.2; }
h3, .h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); letter-spacing: -0.015em; }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.185rem);
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: 20px;
  text-wrap: pretty;
}

.grad-text {
  background: var(--gradient-brand-text);
  /* Apenas perceptible en los títulos de sección; el H1 lo refuerza aparte. */
  filter: drop-shadow(0 0 10px rgba(42, 179, 245, 0.10));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* El degradado necesita algo de aire para no cortar las letras. */
  padding-right: 0.06em;
}

.mono { font-family: var(--font-mono); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

/* Borde con degradado de marca, sin pintar todo el fondo. */
.card--brand { background: var(--surface); }
.card--brand::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(42, 179, 245, 0.7), rgba(212, 26, 168, 0.55) 60%, rgba(255, 255, 255, 0.06));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.glow {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.pending {
  display: inline-block;
  padding: 2px 8px;
  border: 1px dashed rgba(240, 76, 208, 0.45);
  border-radius: 6px;
  background: var(--magenta-soft);
  color: var(--magenta-glow);
  font-family: var(--font-mono);
  font-size: 0.74em;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}

/* Aparición al hacer scroll. Se oculta solo si hay JavaScript, para que sin
   él (o si el observador falla) el contenido nunca quede invisible. */
.reveal { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(10px); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.07s; }
.reveal[data-delay="2"] { transition-delay: 0.14s; }
.reveal[data-delay="3"] { transition-delay: 0.21s; }
.reveal[data-delay="4"] { transition-delay: 0.28s; }
.reveal[data-delay="5"] { transition-delay: 0.35s; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* 4. Botones ================================================================ */
.btn {
  position: relative;
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-size: 0.97rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
              border-color 0.18s var(--ease), box-shadow 0.25s var(--ease), color 0.18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--primary {
  background: linear-gradient(180deg, #3CC0FF, #1E9FE0);
  border-color: rgba(255, 255, 255, 0.14);
  color: #04121C;
  font-family: var(--font-sans);
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
/* Barrido diagonal de luz, cada 7 s. */
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.35) 50%, transparent 62%);
  background-size: 260% 100%;
  background-position: 160% 0;
  background-repeat: no-repeat;
  pointer-events: none;
}
.js .btn--primary::after { animation: btn-sweep 7s var(--ease) infinite; }
@keyframes btn-sweep {
  0%, 91%  { background-position: 160% 0; }
  100%     { background-position: -60% 0; }
}
.btn--primary > * { position: relative; z-index: 1; }
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35),
              0 10px 30px -12px rgba(42, 179, 245, 0.75),
              0 6px 28px -14px var(--orchid-glow);
  color: #fff;
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.22s var(--ease);
  pointer-events: none;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.07); }
.btn--ghost:hover::before { opacity: 1; }

.btn--quiet { color: var(--text-muted); padding-inline: 12px; }
.btn--quiet:hover { color: var(--text); }

.btn--lg { padding: 15px 26px; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* 5. Encabezado ============================================================= */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
              backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: rgba(7, 8, 12, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 84px;
  transition: height 0.25s var(--ease);
}
.header.is-stuck .header__inner { height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand__mark { width: 32px; height: 32px; flex: none; }
.brand__mark--glow { filter: drop-shadow(0 0 7px rgba(42, 179, 245, 0.45)); }
.brand__name { font-weight: 600; font-size: 1.04rem; letter-spacing: -0.02em; }

.nav { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav__link, .header__login {
  position: relative;
  padding: 8px 13px;
  font-size: 0.935rem;
  white-space: nowrap;
  color: var(--text-muted);
  transition: color 0.2s var(--ease), text-shadow 0.2s var(--ease);
}
/* Subrayado de degradado que crece desde el centro */
.nav__link::after, .header__login::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 2px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--gradient-brand);
  transition: left 0.2s var(--ease), right 0.2s var(--ease);
}
.nav__link:hover, .nav__link:focus-visible,
.header__login:hover, .header__login:focus-visible {
  color: var(--magenta-glow);
  text-shadow: 0 0 10px rgba(240, 76, 208, 0.65), 0 0 22px rgba(240, 76, 208, 0.35);
}
.nav__link:hover::after, .nav__link:focus-visible::after,
.header__login:hover::after, .header__login:focus-visible::after { left: 11px; right: 11px; }

/* Sección visible en pantalla: magenta suave, sin el brillo completo */
.nav__link.is-current { color: #E07CC8; }
.nav__link.is-current::after { left: 11px; right: 11px; opacity: 0.5; }

.header__actions { display: flex; align-items: center; gap: 10px; flex: none; }


.burger {
  display: none;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
}
.burger span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--text);
  position: relative;
  transition: transform 0.25s var(--ease), background-color 0.2s;
}
.burger span::before, .burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s var(--ease);
}
.burger span::before { top: -5.5px; }
.burger span::after { top: 5.5px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 96px var(--gutter) 40px;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu__link {
  display: block;
  padding: 18px 0;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--border);
}
.mobile-menu__foot { margin-top: auto; padding-top: 32px; display: grid; gap: 20px; }

/* 6. Hero =================================================================== */
.hero { position: relative; padding-top: 148px; padding-bottom: clamp(60px, 7vw, 96px); overflow: hidden; }
.hero__inner { position: relative; z-index: 1; text-align: center; }
.hero__tag {
  display: inline-block;
  padding: 7px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--font-mono);
  font-size: 0.735rem;
  letter-spacing: 0.015em;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.hero h1 { max-width: 17ch; margin-inline: auto; }
.hero .lead { max-width: 64ch; margin-inline: auto; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}
.hero__trust {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-subtle);
  letter-spacing: 0.01em;
}
/* 7. Demo animada =========================================================== */
.demo { position: relative; }
.demo__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  margin: 0 auto 20px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
}
.demo__tab {
  padding: 8px 16px;
  border-radius: 9px;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.demo__tab:hover { color: var(--text); }
.demo__tab[aria-selected="true"] {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.window {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(22, 25, 34, 0.9), rgba(10, 12, 17, 0.92));
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.window::before {
  /* reflejo de vidrio en el borde superior */
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}
.window__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.018);
}
.window__dots { display: flex; gap: 6px; flex: none; }
.window__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.window__title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-subtle);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.window__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-subtle);
}
.window__live i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  70%  { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.window__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  margin-left: 6px;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.window__play:hover { color: var(--text); border-color: var(--border-strong); background: rgba(255, 255, 255, 0.05); }
.window__play svg { width: 13px; height: 13px; }

.demo__stage {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, auto) minmax(0, 1fr);
  gap: 1px;
  background: var(--border);
  min-height: 486px;
}
.demo__panel { background: var(--surface); padding: 16px; min-width: 0; display: flex; flex-direction: column; }
.demo__panel--chat { grid-row: 1 / span 2; }
.demo__panel-tabs { display: none; }

.panel__head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  flex: none;
}
.panel__label {
  font-family: var(--font-mono);
  font-size: 0.665rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.panel__badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--cyan);
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--cyan-soft);
  white-space: nowrap;
}

/* Pasos */
.demo__steps {
  display: grid;
  /* El número de pasos cambia según el guion (6 o 7). */
  grid-template-columns: repeat(var(--steps, 6), minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}
.demo__step {
  position: relative;
  text-align: left;
  padding-top: 11px;
  color: var(--text-subtle);
  font-size: 0.8rem;
  transition: color 0.25s var(--ease);
}
.demo__step::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.09);
}
.demo__step::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  height: 2px;
  width: 0;
  border-radius: 2px;
  background: var(--gradient-brand);
  transform-origin: left;
}
.demo__step.is-done::after { width: 100%; }
.demo__step.is-active { color: var(--text); }
.demo__step.is-active::after { width: var(--progress, 0%); }
.demo__step:hover { color: var(--text-muted); }
.demo__step.is-active:hover { color: var(--text); }
.demo__step-n { font-family: var(--font-mono); font-size: 0.7rem; opacity: 0.6; margin-right: 5px; }

.demo__caption {
  margin-top: 16px;
  min-height: 3em;
  font-size: 0.96rem;
  color: var(--text-muted);
  max-width: 72ch;
}
.demo__caption strong { color: var(--text); font-weight: 500; }

.demo__video-slot {
  margin-top: 18px;
  padding: 13px 16px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  color: var(--text-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* 8. Interfaces recreadas (UI) ============================================= */
/* Chat --------------------------------------------------------------------- */
.ui-chat { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.ui-chat__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--border);
  flex: none;
}
.ui-avatar {
  width: 34px; height: 34px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text);
  background: linear-gradient(140deg, rgba(42, 179, 245, 0.3), rgba(212, 26, 168, 0.28));
  border: 1px solid var(--border-strong);
}
.ui-chat__who { min-width: 0; }
.ui-chat__name { font-size: 0.92rem; font-weight: 500; }
.ui-chat__sub {
  font-family: var(--font-mono);
  font-size: 0.665rem;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: 5px;
}
.ui-chat__channel {
  margin-left: auto;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-subtle);
}
.ui-chat__channel svg { width: 13px; height: 13px; color: var(--whatsapp); }

.ui-chat__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 2px 6px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}
.ui-chat__body::-webkit-scrollbar { width: 5px; }
.ui-chat__body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.13); border-radius: 3px; }

.ui-msg {
  max-width: 85%;
  padding: 9px 13px 7px;
  border-radius: 13px;
  font-size: 0.88rem;
  line-height: 1.48;
  animation: msg-in 0.34s var(--ease) both;
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(7px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}
.ui-msg--in {
  align-self: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.ui-msg--out {
  align-self: flex-end;
  background: rgba(42, 179, 245, 0.11);
  border: 1px solid rgba(42, 179, 245, 0.26);
  border-bottom-right-radius: 4px;
}
.ui-msg__time {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  color: var(--text-subtle);
  text-align: right;
}
.ui-msg--in .ui-msg__time { text-align: left; }

.ui-typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 13px;
  border-bottom-left-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  animation: msg-in 0.26s var(--ease) both;
}
.ui-typing--out {
  align-self: flex-end;
  border-bottom-left-radius: 13px;
  border-bottom-right-radius: 4px;
  background: rgba(42, 179, 245, 0.08);
  border-color: rgba(42, 179, 245, 0.2);
}
.ui-typing i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--text-subtle);
  animation: typing 1.3s var(--ease) infinite;
}
.ui-typing i:nth-child(2) { animation-delay: 0.18s; }
.ui-typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30%           { opacity: 1; transform: translateY(-3px); }
}

.ui-chat__foot {
  flex: none;
  margin-top: 11px;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 0.79rem;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ui-dot-brand {
  width: 7px; height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--gradient-brand);
}

/* Ficha del CRM ------------------------------------------------------------ */
.ui-fields { display: grid; gap: 7px; }
.ui-field {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid transparent;
  font-size: 0.83rem;
  animation: field-in 0.42s var(--ease) both;
}
@keyframes field-in {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: none; }
}
/* El campo recién capturado se ilumina un momento y vuelve a su estado. */
.ui-field.is-new { animation: field-in 0.42s var(--ease) both, field-hot 2.2s var(--ease) 0.2s both; }
@keyframes field-hot {
  0%, 45%  { border-color: rgba(42, 179, 245, 0.4); background: var(--cyan-soft); }
  100%     { border-color: transparent; background: rgba(255, 255, 255, 0.022); }
}

/* Al saltar de paso el estado se reconstruye de golpe: nada debe animarse. */
.demo__stage.is-instant *, .demo__stage.is-instant *::before, .demo__stage.is-instant *::after {
  animation: none !important;
  transition: none !important;
}
.ui-field__k {
  font-family: var(--font-mono);
  font-size: 0.665rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.ui-field__v { color: var(--text); min-width: 0; overflow-wrap: anywhere; }

.ui-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  white-space: nowrap;
}
.ui-chip--cyan { color: var(--cyan); background: var(--cyan-soft); border-color: rgba(42, 179, 245, 0.3); }
.ui-chip--magenta { color: var(--magenta-glow); background: var(--magenta-soft); border-color: rgba(212, 26, 168, 0.3); }
.ui-chip--ok { color: var(--success); background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.28); }

.ui-slot { animation: msg-in 0.4s var(--ease) both; }
.ui-slot:empty { display: none; }
/* Reservado desde el inicio: la tarjeta de voz del paso 7 no mueve nada. */
.demo__panel [data-extra] { min-height: 58px; }
.demo__panel [data-extra]:empty { display: block; }

/* Mini calendario */
.ui-cal {
  margin-top: 11px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
}
.ui-cal__head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-subtle);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 9px;
}
.ui-cal__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ui-cal__day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-subtle);
  background: rgba(255, 255, 255, 0.025);
}
.ui-cal__day.is-on {
  color: #04121C;
  font-weight: 600;
  background: var(--cyan);
  box-shadow: 0 0 16px -4px rgba(42, 179, 245, 0.8);
}
.ui-cal__event {
  margin-top: 9px;
  padding: 8px 10px;
  border-left: 2px solid var(--cyan);
  border-radius: 0 7px 7px 0;
  background: var(--cyan-soft);
  font-size: 0.79rem;
}
.ui-cal__event b { font-weight: 500; }
.ui-cal__event span { display: block; font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-muted); }

/* Pipeline ----------------------------------------------------------------- */
.ui-pipe { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; flex: 1; min-height: 0; }
.ui-pipe__col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ui-pipe__title {
  font-family: var(--font-mono);
  font-size: 0.59rem;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-subtle);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  min-height: 3.1em;
  overflow-wrap: break-word;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.ui-pipe__col.is-current .ui-pipe__title { color: var(--cyan); border-bottom-color: rgba(42, 179, 245, 0.45); }
.ui-pipe__ghost {
  height: 30px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.035);
}
.ui-pipe__card {
  padding: 8px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid rgba(42, 179, 245, 0.4);
  box-shadow: 0 0 22px -8px rgba(42, 179, 245, 0.75);
}
.ui-pipe__card b { display: block; font-size: 0.73rem; font-weight: 500; }
.ui-pipe__card span {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-subtle);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ui-pipe__card i {
  display: block;
  width: 26px; height: 2px;
  margin-top: 6px;
  border-radius: 2px;
  background: var(--gradient-brand);
}

.ui-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  flex: none;
}
.ui-stat__v {
  font-family: var(--font-mono);
  font-size: 1.04rem;
  color: var(--text);
  letter-spacing: -0.01em;
  transition: color 0.3s var(--ease);
}
.ui-stat.is-up .ui-stat__v { color: var(--cyan); }
.ui-stat__k {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.03em;
  color: var(--text-subtle);
  line-height: 1.3;
}

/* Notificación tipo push --------------------------------------------------- */
.ui-push {
  display: flex;
  gap: 11px;
  padding: 13px;
  border-radius: 14px;
  background: rgba(21, 24, 33, 0.96);
  border: 1px solid var(--border-strong);
  box-shadow: 0 22px 44px -20px rgba(0, 0, 0, 0.95);
  animation: push-in 0.5s var(--ease) both;
}
@keyframes push-in {
  from { opacity: 0; transform: translateY(-10px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.ui-push__icon {
  width: 32px; height: 32px;
  flex: none;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--cyan-soft);
  border: 1px solid rgba(42, 179, 245, 0.3);
  color: var(--cyan);
}
.ui-push__icon svg { width: 16px; height: 16px; }
.ui-push__body { min-width: 0; }
.ui-push__top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ui-push__top time { margin-left: auto; }
.ui-push__title { font-size: 0.87rem; font-weight: 500; margin-top: 3px; }
.ui-push__text { font-size: 0.81rem; color: var(--text-muted); margin-top: 2px; line-height: 1.45; }
.ui-push__cta { display: inline-block; margin-top: 6px; font-size: 0.79rem; color: var(--cyan); }

/* Tarjeta de llamada de voz ------------------------------------------------ */
.ui-call {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.ui-call__icon {
  width: 30px; height: 30px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--success);
}
.ui-call__icon svg { width: 14px; height: 14px; }
.ui-call__body { min-width: 0; flex: 1; }
.ui-call__title { font-size: 0.84rem; font-weight: 500; }
.ui-call__meta { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-subtle); margin-top: 2px; }
.ui-wave { display: flex; align-items: center; gap: 2px; height: 18px; flex: none; }
.ui-wave i {
  width: 2px;
  border-radius: 2px;
  background: rgba(34, 197, 94, 0.55);
  animation: wave 1.1s var(--ease) infinite;
}
@keyframes wave { 0%, 100% { height: 4px; } 50% { height: 15px; } }

/* 9. Secciones de contenido ================================================ */
.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.problem-card { padding: 26px; }
.problem-card__title { font-size: 1.07rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.4; }
.problem-card__title code {
  font-family: var(--font-mono);
  font-size: 0.95em;
  color: var(--magenta-glow);
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--magenta-soft);
}
.problem-card p { margin-top: 12px; color: var(--text-muted); font-size: 0.95rem; }

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.steps-row__item { background: var(--surface); padding: 22px; }
.steps-row__n {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  letter-spacing: 0.06em;
}
.steps-row__t { margin-top: 10px; font-size: 1rem; font-weight: 500; letter-spacing: -0.015em; }
.steps-row__d { margin-top: 7px; font-size: 0.91rem; color: var(--text-muted); }

/* Bloques con visual al lado */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.split--flip > :first-child { order: 2; }
.split__visual { position: relative; }

/* 9b. Bento ---------------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.bento__item { padding: 24px; display: flex; flex-direction: column; grid-column: span 2; }
.bento__item--wide { grid-column: span 3; }
.bento__icon {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--cyan);
  margin-bottom: 16px;
}
.bento__icon svg { width: 17px; height: 17px; }
.bento__t { font-size: 1.02rem; font-weight: 500; letter-spacing: -0.015em; }
.bento__d { margin-top: 8px; font-size: 0.92rem; color: var(--text-muted); }
.bento__visual {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Mini interfaces de las tarjetas */
.mini-rows { display: grid; gap: 6px; }
.mini-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.76rem;
  color: var(--text-muted);
}
.mini-row__bar { height: 4px; border-radius: 3px; background: var(--gradient-brand); flex: none; }
.mini-row__v { margin-left: auto; font-family: var(--font-mono); font-size: 0.7rem; color: var(--text); flex: none; }
.mini-bubble {
  padding: 8px 11px;
  border-radius: 11px;
  font-size: 0.78rem;
  line-height: 1.45;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  max-width: 88%;
}
.mini-bubble--out {
  margin-left: auto;
  background: rgba(42, 179, 245, 0.1);
  border-color: rgba(42, 179, 245, 0.25);
  border-bottom-left-radius: 11px;
  border-bottom-right-radius: 4px;
}
.mini-stack { display: grid; gap: 7px; }
.mini-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* 9c. Franja de clientes -------------------------------------------------- */
.clients {
  /* Franja propia: no sigue el ritmo de 140 px de las secciones. */
  padding-block: 56px;
  text-align: center;
  position: relative;
}
.clients::before, .clients::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--hairline-orchid);
  pointer-events: none;
}
.clients::before { top: 0; }
.clients::after { bottom: 0; animation: none; }
/* La sección siguiente no repite divisor: la franja ya trae el suyo. */
.clients + .section::before { display: none; }

.clients__label { justify-content: center; margin-bottom: 30px; }

.clients__viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.clients__track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 72px;
  width: max-content;
  margin-inline: auto;
}
.js .clients--marquee .clients__track {
  justify-content: flex-start;
  animation: clients-roll 50s linear infinite;
}
.clients--marquee:hover .clients__track { animation-play-state: paused; }
@keyframes clients-roll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 36px)); }
}

/* Sin carrusel: fila centrada que se acomoda en varias líneas. */
.clients:not(.clients--marquee) .clients__track {
  flex-wrap: wrap;
  width: auto;
  gap: 48px 64px;
}

.clients__logo {
  height: var(--h, 36px);
  width: auto;
  flex: none;
  opacity: 0.55;
  image-rendering: auto;
  transition: opacity 0.3s var(--ease), filter 0.3s var(--ease);
}
.clients__logo:hover { opacity: 1; filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.25)); }

/* Fila compacta junto al formulario */
.clients-mini { margin-top: 30px; }
.clients-mini__label { margin-bottom: 16px; }
.clients-mini .clients__track {
  justify-content: flex-start;
  flex-wrap: wrap;
  width: auto;
  gap: 28px 40px;
  margin-inline: 0;
}
.clients-mini .clients__logo { opacity: 0.45; }
.clients-mini .clients__logo:hover { opacity: 0.85; }

@media (max-width: 760px) {
  .clients { padding-block: 40px; }
  .clients__track { gap: 52px; }
  .clients:not(.clients--marquee) .clients__track { gap: 34px 44px; }
  .clients__logo { height: calc(var(--h, 36px) * 0.75); }
  @keyframes clients-roll {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-50% - 26px)); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .clients--marquee .clients__track { animation: none; }
}

/* 9d. Banda inmobiliaria --------------------------------------------------- */
.band {
  position: relative;
  padding: clamp(32px, 5vw, 52px);
  overflow: hidden;
}
.band__glow {
  width: 420px; height: 300px;
  top: -130px; right: -90px;
  background: rgba(212, 26, 168, 0.14);
}
.band__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.band__text { max-width: 62ch; }

/* 10. Industrias ============================================================ */
.industries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.industry { padding: 24px; transition: border-color 0.25s var(--ease), transform 0.25s var(--ease); }
.industry:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.industry__icon { color: var(--cyan); margin-bottom: 14px; }
.industry__icon svg { width: 20px; height: 20px; }
.industry__t { font-size: 1rem; font-weight: 500; }
.industry__d { margin-top: 7px; font-size: 0.91rem; color: var(--text-muted); }
.industry--own { border-style: dashed; border-color: rgba(42, 179, 245, 0.32); background: rgba(42, 179, 245, 0.035); }
.industry--own .industry__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--cyan);
}
.industry--own .industry__link svg { width: 14px; height: 14px; }

/* 11. Comparativa y método ================================================== */
.compare {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.compare__row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1fr);
  border-top: 1px solid var(--border);
}
.compare__row:first-child { border-top: 0; }
.compare__cell { padding: 17px 20px; font-size: 0.94rem; }
.compare__cell--k { color: var(--text-subtle); font-family: var(--font-mono); font-size: 0.73rem; letter-spacing: 0.04em; text-transform: uppercase; display: flex; align-items: center; }
.compare__cell--a { color: var(--text-muted); border-left: 1px solid var(--border); }
.compare__cell--b {
  color: var(--text);
  border-left: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(42, 179, 245, 0.05), rgba(212, 26, 168, 0.045));
}
.compare__head .compare__cell { padding-block: 15px; font-weight: 500; }
.compare__head .compare__cell--b { color: var(--text); }
.compare__head .compare__cell--a { color: var(--text-muted); }

.method { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: m; }
.method__item { position: relative; padding-top: 28px; }
.method__item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--border);
}
.method__item::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 34px;
  height: 1px;
  background: var(--gradient-brand);
}
.method__n { font-family: var(--font-mono); font-size: 0.72rem; color: var(--cyan); }
.method__t { margin-top: 9px; font-size: 1.02rem; font-weight: 500; letter-spacing: -0.015em; }
.method__d { margin-top: 8px; font-size: 0.92rem; color: var(--text-muted); }

/* Métricas */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.metric { padding: 26px; text-align: center; }
.metric__v {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.metric__k { margin-top: 10px; font-size: 0.88rem; color: var(--text-muted); }

/* 12. Preguntas y formulario ================================================ */
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
  text-align: left;
  padding: 22px 4px;
  font-size: 1.04rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
  transition: color 0.2s var(--ease);
}
.faq__q:hover { color: var(--cyan); }
.faq__q:hover .faq__icon { color: var(--orchid); }
/* Línea vertical orquídea en la pregunta abierta */
.faq__item { position: relative; }
.faq__item::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  border-radius: 2px;
  background: var(--orchid);
  box-shadow: 0 0 10px var(--orchid-glow);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.faq__item:has(.faq__q[aria-expanded="true"])::before { opacity: 1; }
.faq__icon { margin-left: auto; flex: none; width: 15px; height: 15px; color: var(--text-subtle); transition: transform 0.3s var(--ease), color 0.2s; }
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(45deg); color: var(--orchid); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}
.faq__q[aria-expanded="true"] + .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 60px 24px 4px; color: var(--text-muted); font-size: 0.97rem; }

/* Formulario */
.cta-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: start;
}
.cta-points { display: grid; gap: 14px; margin-top: 30px; }
.cta-point { display: flex; gap: 11px; align-items: flex-start; font-size: 0.95rem; color: var(--text-muted); }
.cta-point svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--cyan); }

.form-card { padding: clamp(22px, 3vw, 32px); }
.form { display: grid; gap: 15px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.field { display: grid; gap: 7px; min-width: 0; align-content: start; }
.field__label { font-size: 0.86rem; color: var(--text-muted); }
.field__label .req { color: var(--cyan); }

.input, .select, .textarea {
  width: 100%;
  padding: 11px 13px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s;
}
.input::placeholder, .textarea::placeholder { color: var(--text-subtle); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--border-strong); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--orchid-mid);
  box-shadow: 0 0 0 3px rgba(204, 77, 202, 0.25);
}
.textarea { resize: vertical; min-height: 92px; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239AA3B2' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 15px;
  padding-right: 34px;
}
.select option { background: #151821; color: var(--text); }

.phone-row { display: grid; grid-template-columns: 134px minmax(0, 1fr); gap: 8px; }

.field__error {
  font-size: 0.8rem;
  color: var(--magenta-glow);
  min-height: 1.2em;
}
.field.has-error .input, .field.has-error .select, .field.has-error .textarea {
  border-color: rgba(240, 76, 208, 0.6);
}

.check { display: flex; gap: 11px; align-items: flex-start; font-size: 0.88rem; color: var(--text-muted); cursor: pointer; }
.check input {
  appearance: none;
  width: 18px; height: 18px;
  flex: none;
  margin-top: 1px;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  transition: background-color 0.18s, border-color 0.18s;
}
.check input::after {
  content: "";
  width: 9px; height: 5px;
  border: 2px solid #04121C;
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) scale(0);
  transition: transform 0.18s var(--ease);
}
.check input:checked { background: var(--cyan); border-color: var(--cyan); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.check a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }

.honey { position: absolute !important; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form__note { font-size: 0.8rem; color: var(--text-subtle); text-align: center; }
.form__status { font-size: 0.9rem; border-radius: 10px; padding: 12px 14px; display: none; }
.form__status.is-error {
  display: block;
  background: var(--magenta-soft);
  border: 1px solid rgba(212, 26, 168, 0.34);
  color: #FBCDEE;
}
.form__status a { color: var(--magenta-glow); text-decoration: underline; }

.btn[disabled] { opacity: 0.6; pointer-events: none; }

/* 13. Pie y flotantes ======================================================= */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding-block: clamp(48px, 6vw, 72px) 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.footer__slogan {
  margin-top: 18px;
  font-size: 1.04rem;
  letter-spacing: -0.015em;
}
.footer__one { margin-top: 14px; color: var(--text-muted); font-size: 0.94rem; max-width: 42ch; }
.footer__h {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 16px;
}
.footer__list { display: grid; gap: 11px; }
.footer__list a, .footer__list span { font-size: 0.92rem; color: var(--text-muted); transition: color 0.18s; }
.footer__list a:hover { color: var(--text); }
.footer__social { display: flex; gap: 9px; margin-top: 22px; }
.footer__social a {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.footer__social a:hover { color: var(--text); border-color: var(--border-strong); background: rgba(255, 255, 255, 0.05); }
.footer__social svg { width: 16px; height: 16px; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 26px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-subtle);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
.footer__legal a:hover { color: var(--text-muted); }

/* WhatsApp flotante */
.wa-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0;
}
.wa-fab__btn {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.9);
  color: var(--whatsapp);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.wa-fab__btn svg { width: 27px; height: 27px; }
.wa-fab:hover .wa-fab__btn { transform: scale(1.05); box-shadow: 0 16px 34px -12px rgba(37, 211, 102, 0.45); }
.wa-fab__label {
  position: absolute;
  right: 66px;
  white-space: nowrap;
  padding: 8px 13px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
.wa-fab:hover .wa-fab__label, .wa-fab__btn:focus-visible + .wa-fab__label { opacity: 1; transform: none; }

/* Se aparta mientras el botón de envío del formulario está a la vista, para no
   taparlo en móvil. El formulario ya es la forma de contacto en ese momento. */
.wa-fab.is-tucked {
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.9);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.wa-fab { transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); }

/* Aviso de cookies */
.cookies {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 95;
  max-width: 420px;
  padding: 18px 20px;
  background: rgba(14, 16, 22, 0.97);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  transform: translateY(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.cookies.is-open { opacity: 1; transform: none; visibility: visible; }
.cookies p { font-size: 0.88rem; color: var(--text-muted); }
.cookies p a { color: var(--cyan); text-decoration: underline; }
.cookies__actions { display: flex; gap: 9px; margin-top: 15px; }
.cookies__actions .btn { padding: 9px 16px; font-size: 0.88rem; }

/* 14. Páginas internas ====================================================== */
.page-hero { padding-top: 132px; padding-bottom: 0; position: relative; }
.page-hero h1 { max-width: 21ch; }

.thanks {
  min-height: 78vh;
  display: grid;
  place-items: center;
  padding: 132px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden; /* contiene el brillo, que es más ancho que la pantalla */
}
.thanks__glow { width: 700px; height: 480px; top: -80px; left: 50%; transform: translateX(-50%); background: rgba(42, 179, 245, 0.14); }
.thanks__inner { position: relative; z-index: 1; max-width: 680px; margin-inline: auto; }
.thanks__badge {
  width: 62px; height: 62px;
  margin: 0 auto 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--success);
}
.thanks__badge svg { width: 27px; height: 27px; }
.thanks__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.thanks__next {
  margin-top: 44px;
  padding: 22px 24px;
  text-align: left;
}
.thanks__next h2 { font-size: 1.02rem; font-weight: 500; }
.thanks__list { display: grid; gap: 11px; margin-top: 16px; }
.thanks__list li { display: flex; gap: 11px; font-size: 0.93rem; color: var(--text-muted); }
.thanks__list i {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.74rem;
  color: var(--cyan);
  padding-top: 2px;
  flex: none;
}

.legal { max-width: 760px; padding-top: 128px; }
.legal h2 { font-size: 1.3rem; margin-top: 44px; }
.legal h3 { font-size: 1.02rem; margin-top: 28px; }
.legal p, .legal li { color: var(--text-muted); font-size: 0.98rem; margin-top: 14px; }
.legal ul { list-style: disc; padding-left: 22px; margin-top: 8px; }
.legal li { margin-top: 8px; }
.legal__meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-subtle); margin-top: 18px; }
.legal__box {
  margin-top: 26px;
  padding: 20px 22px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

/* 15. Responsive ============================================================ */
/* Entre el escritorio y la tableta el encabezado se queda sin aire: primero se
   aprieta la navegación y luego se retira el enlace de inicio de sesión, para
   conservar el botón de demostración el mayor tiempo posible. */
@media (max-width: 1120px) {
  .nav__link { padding-inline: 10px; }
  .header__inner { gap: 16px; }
}
@media (max-width: 1040px) {
  /* Solo en las páginas con navegación. En gracias y en las legales el enlace
     de la derecha es «Volver al inicio» y debe seguir a la vista. */
  .nav ~ .header__actions .header__login { display: none; }
}

@media (max-width: 1080px) {
  .bento__item, .bento__item--wide { grid-column: span 3; }
  .method { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 920px) {
  .nav { display: none; }
  .burger { display: flex; }
  .header__actions .btn--primary { display: none; }
  .header__inner { gap: 12px; }

  .split, .cta-wrap { grid-template-columns: minmax(0, 1fr); }
  .split--flip > :first-child { order: 0; }
  .grid--3, .industries, .steps-row { grid-template-columns: minmax(0, 1fr); }
  .band__inner { grid-template-columns: minmax(0, 1fr); }

  /* Demo: un panel visible a la vez */
  .demo__stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; min-height: 0; gap: 0; }
  .demo__panel { display: none; min-height: 430px; }
  .demo__panel.is-shown { display: flex; }
  .demo__panel--chat { grid-row: auto; }
  .demo__panel-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--border);
    border-bottom: 1px solid var(--border);
  }
  .demo__panel-tab {
    padding: 11px 6px;
    background: var(--surface);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-subtle);
    transition: color 0.2s, background-color 0.2s;
  }
  .demo__panel-tab[aria-selected="true"] { color: var(--cyan); background: var(--surface-2); }

  .demo__steps { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .ui-pipe {
    grid-template-columns: repeat(5, 116px);
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
  }
  .ui-pipe::-webkit-scrollbar { height: 5px; }
  .ui-pipe::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.13); border-radius: 3px; }

  .compare__row { grid-template-columns: minmax(0, 1fr); }
  .compare__cell--a, .compare__cell--b { border-left: 0; border-top: 1px solid var(--border); }
  .compare__cell--k { padding-bottom: 4px; }
  .compare__head { display: none; }
  .compare__cell--a::before, .compare__cell--b::before {
    content: attr(data-col);
    display: block;
    font-family: var(--font-mono);
    font-size: 0.63rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-subtle);
    margin-bottom: 5px;
  }

  .cookies { left: 16px; right: 16px; max-width: none; bottom: 88px; }
}

@media (max-width: 620px) {
  :root { --section-y: 72px; }
  .hero { padding-top: 116px; }
  /* El titular baja de tamaño para conservar los cortes de línea previstos
     y no dejar nunca una palabra sola en un renglón. */
  h1, .h1 { font-size: clamp(1.9rem, 8.6vw, 2.5rem); }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .grid--2, .method, .metrics, .footer__top { grid-template-columns: minmax(0, 1fr); }
  .demo__steps { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .bento__item, .bento__item--wide { grid-column: span 6; }
  .demo__tabs { width: 100%; justify-content: center; }
  .demo__tab { flex: 1; text-align: center; padding-inline: 8px; font-size: 0.82rem; }
  .ui-field { grid-template-columns: 84px minmax(0, 1fr); }
  .footer__legal { margin-left: 0; }
  .wa-fab { right: 14px; bottom: 14px; }
  .wa-fab__btn { width: 50px; height: 50px; }
  .wa-fab__btn svg { width: 24px; height: 24px; }

}

@media (max-width: 380px) {
  .ui-pipe { grid-template-columns: repeat(5, 108px); }
}

/* Movimiento reducido: la demo muestra su estado final, completo y estático. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   16. Ronda 2 — marca, fondo cuántico, demo con teléfono y bloques nuevos
   ========================================================================== */

/* 16.1 Logo y wordmark ----------------------------------------------------- */
.brand { gap: 12px; }
.brand__mark {
  width: 38px;
  height: 38px;
  object-fit: contain;
  transition: filter 0.25s var(--ease);
  filter: drop-shadow(0 0 10px rgba(42, 179, 245, 0.28));
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  transition: filter 0.25s var(--ease);
  filter: drop-shadow(0 0 14px rgba(42, 179, 245, 0.30));
}
.brand__name i { font-style: normal; -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand__name .q { background-image: linear-gradient(135deg, #EAF7FF 0%, #2AB3F5 100%); }
.brand__name .d { background-image: linear-gradient(135deg, #D41AA8 0%, #F04CD0 100%); }
.brand:hover .brand__mark { filter: drop-shadow(0 0 16px rgba(42, 179, 245, 0.55)); }
.brand:hover .brand__name { filter: drop-shadow(0 0 20px rgba(42, 179, 245, 0.5)) drop-shadow(0 0 26px rgba(240, 76, 208, 0.3)); }

.footer .brand__mark { width: 48px; height: 48px; }
.footer .brand__name { font-size: 1.3rem; }

/* 16.2 Fondo cuántico ------------------------------------------------------ */
.qbg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}
/* El grano queda por encima del canvas pero por debajo del contenido. */
body::before { z-index: 1; }
.header, .mobile-menu, .wa-fab, .cookies { z-index: 100; }
.header { z-index: 100; }
main, .footer { position: relative; z-index: 2; }

/* 16.3 Ritmo: secciones con fondo alterno --------------------------------- */
.section--alt { background: var(--bg-alt); }

/* 16.4 Botón flotante de WhatsApp ----------------------------------------- */
.wa-fab__btn {
  width: 60px;
  height: 60px;
  background: var(--whatsapp);
  border: 0;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}
.wa-fab__btn svg { width: 30px; height: 30px; }
.wa-fab:hover .wa-fab__btn { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5); }
/* Anillo de pulso, limitado a tres repeticiones por visita */
.wa-fab__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--whatsapp);
  opacity: 0;
}
.wa-fab.is-pulsing .wa-fab__btn::after { animation: wa-pulse 6s var(--ease) 3; }
@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: 0.55; }
  22%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
.wa-fab__label { right: 72px; }
/* Aparición automática breve al cargar */
.wa-fab.is-greeting .wa-fab__label { opacity: 1; transform: none; }

/* 16.5 Barra de aplicación de la ventana ---------------------------------- */
.window__bar {
  height: 44px;
  padding: 0 14px;
  gap: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  border-bottom: 1px solid var(--border-strong);
}
.window__app { display: flex; align-items: center; gap: 8px; flex: none; }
.window__app img { width: 18px; height: 18px; object-fit: contain; }
.window__app b { font-size: 13px; font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.window__sep { width: 1px; height: 14px; background: var(--border-strong); flex: none; }
.window__title { font-family: var(--font-sans); font-size: 12.5px; color: var(--text-muted); }
.window__live {
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.1);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: #6EE7A0;
}
.window__play { width: 32px; height: 32px; }

/* 16.6 Teléfono ------------------------------------------------------------ */
.phone {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  border-radius: 34px;
  padding: 9px;
  background: linear-gradient(160deg, #23262F, #0C0E14 60%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09), 0 28px 60px -26px rgba(0, 0, 0, 0.95);
  flex: none;
}
.phone__screen {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 300 / 620;
  display: flex;
  flex-direction: column;
}
.phone__notch {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 20px;
  border-radius: 999px;
  background: #05060A;
  z-index: 6;
}
/* Barra de estado del sistema */
.phone__status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  flex: none;
  position: relative;
  z-index: 5;
}
.phone__status b { font-weight: 600; letter-spacing: 0.01em; }
.phone__status .sp { margin-left: auto; display: flex; align-items: center; gap: 5px; }
.phone__status svg { width: 14px; height: 11px; }
.phone__app { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }

/* Transición deslizante entre Instagram y WhatsApp */
.phone__view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.55s var(--ease), opacity 0.4s var(--ease);
}
.phone__view[hidden] { display: none; }
.phone__view--out { transform: translateX(-22%); opacity: 0; }
.phone__view--in { transform: translateX(100%); opacity: 0; }

/* Indicador de toque */
.tap-dot {
  position: absolute;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.25);
  z-index: 8;
  pointer-events: none;
  animation: tap 1.1s var(--ease) both;
}
@keyframes tap {
  0%   { transform: scale(0.3); opacity: 0; }
  35%  { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* 16.7 Instagram ----------------------------------------------------------- */
.ig { background: #000; color: #fff; height: 100%; display: flex; flex-direction: column; }
.ig__top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid #1C1C1E;
  flex: none;
}
.ig__logo { font-family: var(--font-sans); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.ig__top .sp { margin-left: auto; display: flex; gap: 12px; opacity: 0.85; }
.ig__top svg { width: 15px; height: 15px; }
.ig__feed { flex: 1; min-height: 0; overflow: hidden; }
.ig__post { transition: transform 0.9s var(--ease); }
.ig__head { display: flex; align-items: center; gap: 8px; padding: 8px 11px; }
.ig__ava {
  width: 26px; height: 26px;
  border-radius: 50%;
  object-fit: contain;
  background: #0B0D13;
  padding: 2px;
  box-shadow: 0 0 0 1.5px #E1306C;
  flex: none;
}
.ig__who { min-width: 0; line-height: 1.2; }
.ig__who b { display: block; font-size: 12px; font-weight: 600; }
.ig__who span { font-size: 10px; color: #A8A8A8; }
.ig__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: #111; }
.ig__cta {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 12px;
  background: #0095F6;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  position: relative;
}
.ig__cta svg { width: 16px; height: 16px; margin-left: auto; flex: none; }
.ig__actions { display: flex; gap: 14px; padding: 10px 11px 4px; opacity: 0.9; }
.ig__actions svg { width: 22px; height: 22px; flex: none; }
.ig__actions .sp { margin-left: auto; }
.ig__caption { padding: 0 11px 12px; font-size: 12px; line-height: 1.4; color: #DDD; }
.ig__caption b { color: #fff; }

/* 16.8 WhatsApp ------------------------------------------------------------ */
.wa { height: 100%; display: flex; flex-direction: column; background: #EFE7DD; }
.wa__bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  background: #075E54;
  color: #fff;
  flex: none;
}
.wa__bar > svg { width: 17px; height: 17px; flex: none; }
.wa__ava {
  width: 30px; height: 30px;
  border-radius: 50%;
  object-fit: contain;
  background: #0B0D13;
  padding: 2px;
  flex: none;
}
.wa__who { min-width: 0; line-height: 1.25; }
.wa__who b { display: block; font-size: 13.5px; font-weight: 600; }
.wa__who span { font-size: 10.5px; color: rgba(255, 255, 255, 0.75); }
.wa__icons { margin-left: auto; display: flex; gap: 14px; flex: none; }
.wa__icons svg { width: 16px; height: 16px; }

.wa__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scrollbar-width: none;
  /* Patrón de fondo muy tenue, hecho con degradados */
  background-color: #EFE7DD;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.022) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, rgba(0, 0, 0, 0.022) 0 2px, transparent 3px),
    radial-gradient(circle at 45% 85%, rgba(0, 0, 0, 0.018) 0 3px, transparent 4px);
  background-size: 64px 64px, 92px 92px, 76px 76px;
}
.wa__body::-webkit-scrollbar { width: 0; }

.wa-msg {
  position: relative;
  max-width: 82%;
  padding: 6px 9px 4px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: #111B21;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
  animation: msg-in 0.32s var(--ease) both;
}
.wa-msg--ia { align-self: flex-start; background: #FFF; border-top-left-radius: 2px; }
.wa-msg--lead { align-self: flex-end; background: #D9FDD3; border-top-right-radius: 2px; }
.wa-msg b { font-weight: 600; }
.wa-msg__img {
  width: calc(100% + 6px);
  margin: -3px -3px 5px;
  border-radius: 6px;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
}
.wa-msg__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  margin-top: 2px;
  font-size: 10.5px;
  color: #667781;
}
.wa-msg__meta svg { width: 13px; height: 13px; color: #53BDEB; }

/* Tarjeta de ubicación */
.wa-loc { padding: 3px 3px 4px; }
.wa-loc__map {
  height: 76px;
  border-radius: 6px;
  background:
    linear-gradient(115deg, #D8E6D4 0%, #CFE0CC 40%, #E4E9DF 100%),
    #DCE6D6;
  position: relative;
  overflow: hidden;
}
.wa-loc__map::before, .wa-loc__map::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.75);
}
.wa-loc__map::before { inset: 38% 0 auto; height: 7px; }
.wa-loc__map::after { inset: 0 auto 0 58%; width: 6px; }
.wa-loc__pin {
  position: absolute;
  left: 46%;
  top: 30%;
  width: 16px; height: 16px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: #E8453C;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 1;
}
.wa-loc__txt { padding: 6px 6px 0; font-size: 11.6px; }
.wa-loc__txt b { display: block; }
.wa-loc__txt span { color: #667781; font-size: 10.8px; }

/* Botones de respuesta rápida */
.wa-quick { margin-top: 1px; }
.wa-quick button, .wa-quick span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 9px 8px;
  background: #FFF;
  border-top: 1px solid #E9EDEF;
  color: #027EB5;
  font-size: 12.2px;
  font-weight: 500;
  transition: background-color 0.18s var(--ease);
}
.wa-quick button:first-child, .wa-quick span:first-child { border-radius: 0; }
.wa-quick button:hover, .wa-quick button.is-on { background: #F0F7FB; }
.wa-quick svg { width: 12px; height: 12px; opacity: 0.85; }

.wa__typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 10px 11px;
  border-radius: 8px;
  border-top-left-radius: 2px;
  background: #FFF;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
  animation: msg-in 0.26s var(--ease) both;
}
.wa__typing i { width: 5px; height: 5px; border-radius: 50%; background: #8696A0; animation: typing 1.3s var(--ease) infinite; }
.wa__typing i:nth-child(2) { animation-delay: 0.18s; }
.wa__typing i:nth-child(3) { animation-delay: 0.36s; }

.wa__compose {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  background: #EFE7DD;
  flex: none;
}
.wa__field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #FFF;
  color: #8696A0;
  font-size: 12px;
}
.wa__field svg { width: 15px; height: 15px; flex: none; }
.wa__field .sp { margin-left: auto; display: flex; gap: 9px; }
.wa__mic {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #00A884;
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
.wa__mic svg { width: 15px; height: 15px; }

/* 16.9 Notas explicativas de la demo -------------------------------------- */
.note {
  position: absolute;
  z-index: 14;
  max-width: 280px;
  padding: 13px 15px;
  border-radius: 14px;
  background: rgba(10, 12, 18, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 20px 44px -22px rgba(0, 0, 0, 0.95);
  animation: note-in 0.42s var(--ease) both;
}
.note::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(42, 179, 245, 0.85), rgba(212, 26, 168, 0.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
@keyframes note-in {
  from { opacity: 0; transform: scale(0.96) translateY(4px); }
  to   { opacity: 1; transform: none; }
}
.note__tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  display: block;
  margin-bottom: 6px;
}
.note__t { font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600; letter-spacing: -0.015em; }
.note__d { margin-top: 5px; font-size: 0.83rem; line-height: 1.45; color: var(--text-muted); }

/* Línea punteada que une la nota con lo que explica */
.note__link { position: absolute; z-index: 13; pointer-events: none; overflow: visible; }
.note__link line {
  stroke: rgba(42, 179, 245, 0.5);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  animation: dash 14s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: -140; } }
.note__link circle { fill: var(--cyan); filter: drop-shadow(0 0 6px rgba(42, 179, 245, 0.9)); }

/* En móvil la nota va como leyenda debajo del teléfono */
.note--legend {
  position: static;
  max-width: none;
  margin-top: 14px;
  animation: none;
}

/* 16.10 Chip de quién atiende --------------------------------------------- */
.ia-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border: 1px solid rgba(42, 179, 245, 0.35);
  background: var(--cyan-soft);
  color: var(--cyan);
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.ia-chip i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 2s var(--ease) infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.ia-chip--asesor {
  border-color: rgba(212, 26, 168, 0.4);
  background: var(--magenta-soft);
  color: var(--magenta-glow);
}

/* 16.11 Notificación al asesor -------------------------------------------- */
.notif {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 14px;
  z-index: 15;
  animation: notif-in 0.55s var(--ease) both;
}
@keyframes notif-in {
  from { opacity: 0; transform: translateY(-120%); }
  to   { opacity: 1; transform: none; }
}

/* 16.12 El punto de fuga --------------------------------------------------- */
.leak { display: grid; grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr); align-items: stretch; }
.leak__flow { align-self: center; }
.leak__card { padding: 22px; }
.leak__h {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 14px;
}
.leak__bubble {
  padding: 11px 13px 8px;
  border-radius: 10px;
  border-top-left-radius: 3px;
  background: #D9FDD3;
  color: #111B21;
  font-size: 0.92rem;
  line-height: 1.5;
}
.leak__bubble .ui-msg__time { color: #667781; }
.leak__flow { position: relative; height: 90px; width: 100%; }
.leak__flow svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.leak__flow path { stroke: url(#leakGrad); stroke-width: 1.4; fill: none; stroke-dasharray: 4 5; animation: dash 10s linear infinite; }
.leak__empty { color: var(--text-subtle); }
.leak__miss {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  color: #E0A33B;
  white-space: nowrap;
}
.leak__miss i { width: 6px; height: 6px; border-radius: 50%; background: #E0A33B; box-shadow: 0 0 8px rgba(224, 163, 59, 0.7); }
.leak__note { margin: 26px auto 0; max-width: 72ch; text-align: center; color: var(--text-muted); font-size: 0.98rem; }

.closer {
  position: relative;
  margin-top: clamp(32px, 4vw, 48px);
  padding: 24px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.closer p { font-size: 1.02rem; max-width: 70ch; }
.closer a {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--cyan);
  font-size: 0.95rem;
  white-space: nowrap;
}

/* 16.13 Franja de impacto -------------------------------------------------- */
.impact { position: relative; text-align: center; overflow: hidden; }
.impact h2 { font-size: clamp(2.2rem, 5.4vw, 4rem); max-width: 16ch; margin-inline: auto; }
.impact .lead { max-width: 68ch; margin-inline: auto; }
.impact__visual { max-width: 520px; margin: clamp(32px, 4vw, 48px) auto 0; }

/* 16.14 Seguimiento automático -------------------------------------------- */
.nurt { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 52px); align-items: center; }
/* El ancho explícito es necesario: en una rejilla, `margin-inline: auto`
   cancela el estirado y la caja se encogería al ancho de su contenido. */
.nurt__phone { width: 100%; max-width: 330px; margin-inline: auto; }
.nurt__flow { display: grid; gap: 14px; }
.nurt__node {
  position: relative;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.nurt__node.is-on { border-color: rgba(42, 179, 245, 0.5); background: rgba(42, 179, 245, 0.05); transform: translateX(4px); }
.nurt__from {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nurt__from svg { width: 13px; height: 13px; color: var(--cyan); flex: none; }
.nurt__t { margin-top: 8px; font-family: var(--font-sans); font-size: 1.02rem; font-weight: 600; letter-spacing: -0.015em; }
.nurt__d { margin-top: 6px; font-size: 0.92rem; color: var(--text-muted); }
.nurt__close { margin-top: 28px; text-align: center; font-size: 1.04rem; color: var(--text); max-width: 64ch; margin-inline: auto; }

/* Versión compacta dentro de la tarjeta de capacidades */
.nurt-mini { display: grid; gap: 7px; }
.nurt-mini__row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.nurt-mini__row b { color: var(--text); font-weight: 500; }
.nurt-mini__row svg { width: 13px; height: 13px; color: var(--cyan); flex: none; }
.nurt-mini__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 11px; font-size: 0.86rem; color: var(--cyan); }
.nurt-mini__link svg { width: 13px; height: 13px; }

/* 16.15 Capacidades sin huecos --------------------------------------------- */
.bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bento__item { grid-column: span 1; }
.bento__item--2 { grid-column: span 2; }
.bento__item--full { grid-column: 1 / -1; }
.bento__channels { display: flex; flex-wrap: wrap; gap: 10px; }
.bento__channel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.86rem;
  color: var(--text-muted);
}
.bento__channel svg { width: 15px; height: 15px; flex: none; }

/* 16.16 Industrias --------------------------------------------------------- */
/* Seis industrias en 3 × 2; "Tu industria" es la sexta tarjeta. */
.industries { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.industry__icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  position: relative;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.03);
}
.industry__icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(42, 179, 245, 0.6), rgba(212, 26, 168, 0.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.industry__icon svg { width: 24px; height: 24px; }
.industry__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding: 7px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  color: var(--text-muted);
}
.industry__chip i { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); flex: none; }
.industry:hover { box-shadow: 0 0 34px -16px rgba(42, 179, 245, 0.55); }
.industry--own { display: flex; flex-direction: column; align-items: flex-start; }
.industry--own .industry__body { flex: 1; }
.industry--own .industry__link { margin-top: 14px; white-space: nowrap; }

/* 16.17 Método como línea de tiempo --------------------------------------- */
.method { position: relative; gap: 0; }
.method::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(90deg, rgba(42, 179, 245, 0.12), rgba(42, 179, 245, 0.5), rgba(204, 77, 202, 0.55), rgba(204, 77, 202, 0.12));
}
.method__item { padding: 0 18px; text-align: center; }
.method__item::before, .method__item::after { content: none; }
.method__dot {
  width: 27px; height: 27px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  position: relative;
  z-index: 1;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.method__dot i { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); transition: background 0.4s var(--ease); }
.js .reveal.is-visible .method__dot, .method__item.is-visible .method__dot {
  border-color: rgba(42, 179, 245, 0.6);
  box-shadow: 0 0 18px -4px rgba(42, 179, 245, 0.8);
}
.js .reveal.is-visible .method__dot i, .method__item.is-visible .method__dot i { background: var(--gradient-brand); }
.method__n { font-family: var(--font-display); font-size: 0.8rem; }
.method__t { font-size: 1.25rem; margin-top: 8px; }

/* 16.18 Formulario en dos pasos ------------------------------------------- */
.form__progress { margin-bottom: 4px; }
.form__progress-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 9px;
}
.form__progress-bar { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.form__progress-bar i {
  display: block;
  height: 100%;
  width: 50%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--orchid));
  transition: width 0.4s var(--ease);
}
.form__step { display: grid; gap: 15px; }
.form__step[hidden] { display: none; }
.form__back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 6px 0;
  transition: color 0.18s var(--ease);
}
.form__back:hover { color: var(--text); }
.form__back svg { width: 14px; height: 14px; }
.form__nav { display: flex; align-items: center; gap: 14px; }
.form__nav .btn { flex: 1; }

/* 16.19 Composición del hero ---------------------------------------------- */
/* 16.20 Demo: distribución con teléfono ----------------------------------- */
/* 40/60 entre el teléfono y el CRM, con altura fija para que ningún paso
   mueva el diseño cuando aparece una tarjeta nueva. */
.demo__stage {
  grid-template-columns: minmax(0, 40%) minmax(0, 60%);
  /* Alto fijo, con espacio suficiente para que el teléfono entre completo. */
  height: 660px;
  /* Las notas se colocan con coordenadas del escenario: tiene que ser el
     ancestro posicionado, o quedarían desfasadas la altura de la barra. */
  position: relative;
}
.demo__panel--phone {
  grid-row: 1 / span 2;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0));
}
.demo__crm { position: relative; }
.demo__crm-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.demo__crm-bar .panel__label { margin-right: auto; }

/* 16.21 Responsive de la ronda 2 ------------------------------------------ */
@media (max-width: 1080px) {
  :root { --section-y: 96px; }
  .bento__item--2 { grid-column: span 3; }
  .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leak { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .leak__flow { height: 56px; }
}

@media (max-width: 920px) {
  .demo__stage { grid-template-columns: minmax(0, 1fr); height: auto; }
  .demo__panel--phone { grid-row: auto; }
  .nurt { grid-template-columns: minmax(0, 1fr); }
  .method { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .method::before { content: none; }
  .method__item { text-align: left; padding: 0; }
  .method__dot { margin: 0 0 14px; }

  /* Hero compacto: la ficha se encima a la parte baja del teléfono y la
     notificación no se muestra, para que no ocupe casi dos pantallas. */
}

@media (max-width: 620px) {
  .bento__item, .bento__item--2, .bento__item--full { grid-column: 1 / -1; }
  .industries { grid-template-columns: minmax(0, 1fr); }
  .method { grid-template-columns: minmax(0, 1fr); }
  .impact h2 { max-width: none; }
  .closer a { margin-left: 0; }
  .wa-fab__btn { width: 56px; height: 56px; }
  .wa-fab__btn svg { width: 28px; height: 28px; }
  .footer .brand__mark { width: 40px; height: 40px; }
}

/* Con movimiento reducido el fondo se queda en un solo cuadro y nada flota. */
@media (prefers-reduced-motion: reduce) {
  .wa-fab.is-pulsing .wa-fab__btn::after { animation: none !important; }
}

/* Miniatura del anuncio, en la composición del hero inmobiliario */
@media (max-width: 920px) {
}


/* ==========================================================================
   17. Ronda 3
   ========================================================================== */

/* Una sección oculta por bandera no deja relleno, borde ni espacio. */
[hidden] { display: none !important; }

/* El brillo completo del degradado se conserva solo en el titular principal. */
h1 .grad-text, .h1 .grad-text { filter: drop-shadow(0 0 18px rgba(42, 179, 245, 0.24)); }

/* 17.1 Hero: el chip va pegado al teléfono, no suelto -------------------- */
/* 17.2 En móvil el flotante no muestra la etiqueta automática ------------ */
@media (max-width: 620px) {
  .wa-fab__label { display: none; }
}

/* 17.3 El punto de fuga: conversación con los datos que se pierden ------- */
.leak__chat {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 12px;
  border-radius: 12px;
  background: #EFE7DD;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.022) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, rgba(0, 0, 0, 0.022) 0 2px, transparent 3px);
  background-size: 64px 64px, 92px 92px;
}
.leak__chat .wa-msg { max-width: 88%; font-size: 12.6px; }
/* Resaltado ámbar de lo que el prospecto dijo y nadie registró */
.leak__hl {
  background: linear-gradient(transparent 58%, rgba(224, 163, 59, 0.3) 58%);
  box-shadow: 0 1px 0 rgba(224, 163, 59, 0.55);
  border-radius: 2px;
  padding: 0 1px;
}
.leak__card { display: flex; flex-direction: column; }
.leak__card .ui-fields { margin-top: auto; }
/* El chat llena la tarjeta: las dos columnas quedan a la misma altura. */
.leak__card .leak__chat { flex: 1; }

/* Partículas ámbar que se desvanecen antes de llegar al CRM */
.leak__flow .spark {
  position: absolute;
  left: 4px;
  top: calc(50% - 2px);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #E0A33B;
  opacity: 0;
  box-shadow: 0 0 6px rgba(224, 163, 59, 0.9);
}
.js .reveal.is-visible .leak__flow .spark { animation: spark 3.4s linear infinite; }
.leak__flow .spark:nth-of-type(2) { animation-delay: 1.1s; }
.leak__flow .spark:nth-of-type(3) { animation-delay: 2.2s; }
@keyframes spark {
  0%   { opacity: 0; transform: translateX(0); }
  12%  { opacity: 0.95; }
  55%  { opacity: 0.35; }
  72%  { opacity: 0; transform: translateX(52px); }
  100% { opacity: 0; transform: translateX(52px); }
}

/* 17.4 Seguimiento automático: chat lleno y diagrama conectado ---------- */
.wa__day {
  align-self: center;
  margin: 5px 0 2px;
  padding: 3px 11px;
  border-radius: 7px;
  background: #E1F2FB;
  color: #54656F;
  font-size: 10.5px;
  font-weight: 500;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.1);
}

.nurt { position: relative; }
.nurt__wires {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}
.nurt__wires path {
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: var(--len, 400);
  /* En reposo la línea está completa: si la animación no llega a correr,
     el diagrama se ve igual. El trazo progresivo lo pone `backwards`. */
  stroke-dashoffset: 0;
  opacity: 0.85;
  transition: opacity 0.25s var(--ease);
}
.js .reveal.is-visible .nurt__wires path { animation: wire 1.1s var(--ease) backwards; }
.nurt__wires path:nth-child(2) { animation-delay: 0.15s; }
.nurt__wires path:nth-child(3) { animation-delay: 0.3s; }
@keyframes wire {
  from { stroke-dashoffset: var(--len, 400); }
  to   { stroke-dashoffset: 0; }
}
.nurt.is-focusing .nurt__wires path { opacity: 0.18; }
.nurt.is-focusing .nurt__wires path.is-on { opacity: 1; }
.nurt.is-focusing .nurt__node:not(.is-on) { opacity: 0.45; }

.nurt__phone, .nurt__flow { position: relative; z-index: 2; }
.nurt__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.nurt__pill--cautiva { background: rgba(138, 158, 184, 0.14); color: #A7B6C9; border: 1px solid rgba(138, 158, 184, 0.3); }
.nurt__pill--nurturing { background: var(--cyan-soft); color: var(--cyan); border: 1px solid rgba(42, 179, 245, 0.3); }
.nurt__pill--asesor { background: var(--magenta-soft); color: var(--magenta-glow); border: 1px solid rgba(212, 26, 168, 0.32); }

/* Ejemplo de envío masivo, debajo de la tarjeta de nurturing */
.nurt__blast { margin-top: 12px; padding-left: 20px; }
.nurt__blast-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  display: block;
  margin-bottom: 7px;
}
.nurt__blast .wa-msg {
  max-width: 330px;
  font-size: 12px;
  display: block;
}
.nurt__blast .wa-msg__img { aspect-ratio: 16 / 9; }

/* 17.5 Tarjeta de reportes: conversión por etapa ------------------------ */
.mini-chart { display: flex; align-items: flex-end; gap: 7px; height: 56px; margin-bottom: 12px; }
.mini-chart i {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: var(--gradient-brand);
  opacity: 0.85;
}
.mini-chart__k {
  display: flex;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  color: var(--text-subtle);
  margin-bottom: 14px;
}
.mini-chart__k span { flex: 1; text-align: center; }

@media (max-width: 920px) {
  .nurt__wires { display: none; }
  .nurt__blast { padding-left: 0; }
}

/* ==========================================================================
   18. Ronda 4 — hero con la demo, wordmark Michroma y acabado premium
   ========================================================================== */

/* 18.1 Logo y wordmark ---------------------------------------------------- */
.brand__mark { width: 52px; height: 52px; transition: width 0.25s var(--ease), height 0.25s var(--ease), filter 0.25s var(--ease); }
.header.is-stuck .brand__mark { width: 40px; height: 40px; }

.brand__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer .brand__mark { width: 52px; height: 52px; }
.footer .brand__name { font-size: 20px; }

/* 18.2 Hero: la demo es el visual ---------------------------------------- */
.hero {
  padding-top: calc(84px + clamp(26px, 3.4vw, 50px));
  padding-bottom: 0;
}
.hero .lead { max-width: 58ch; }
.hero__demo { margin-top: clamp(34px, 4vw, 52px); }
/* El borde inferior de la ventana se desvanece para invitar a bajar. */
.hero__demo .demo__caption { max-width: 78ch; margin-inline: auto; text-align: center; }

/* 18.3 Comparativa: la columna de QuantiQ Deal destaca ------------------- */
.compare__cell--a, .compare__cell--b { position: relative; }
.compare__row:not(.compare__head) .compare__cell--b::after,
.compare__row:not(.compare__head) .compare__cell--a::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  width: 15px;
  height: 15px;
  margin-top: -7.5px;
  background-repeat: no-repeat;
  background-size: contain;
}
.compare__row:not(.compare__head) .compare__cell--b::after {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232AB3F5' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E");
}
.compare__row:not(.compare__head) .compare__cell--a::after {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
  opacity: 0.55;
}
.compare__row:not(.compare__head) .compare__cell--a,
.compare__row:not(.compare__head) .compare__cell--b { padding-left: 46px; }
/* Borde degradado en la columna destacada */
.compare { position: relative; }
.compare::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 33.33%;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1px;
  background: linear-gradient(180deg, rgba(42, 179, 245, 0.55), rgba(212, 26, 168, 0.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* 18.4 Relevo: la IA entrega al asesor ----------------------------------- */
.relay {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.62fr) minmax(0, 1fr);
  gap: 0;
  align-items: center;
  text-align: left;
}
.relay__col { padding: 26px 28px; }
.relay__h {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 16px;
}
.relay__col--ia .relay__h { color: var(--cyan); }
.relay__col--asesor .relay__h { color: var(--magenta-glow); }
.relay__list { display: grid; gap: 11px; }
.relay__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.relay__list svg { width: 16px; height: 16px; flex: none; margin-top: 3px; }
.relay__col--ia .relay__list svg { color: var(--cyan); }
.relay__col--asesor .relay__list svg { color: var(--magenta-glow); }

.relay__link { position: relative; display: grid; justify-items: center; gap: 12px; }
.relay__tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  white-space: nowrap;
}
.relay__line {
  position: relative;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(42, 179, 245, 0.55), var(--orchid));
  overflow: visible;
}
.relay__line i {
  position: absolute;
  top: -2.5px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px 3px var(--orchid-glow), 0 0 4px 1px var(--orchid);
}
.js .reveal.is-visible .relay__line i { animation: relay 3.2s var(--ease) infinite; }
@keyframes relay {
  0%   { left: 0; opacity: 0; }
  12%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { left: calc(100% - 6px); opacity: 0; }
}

/* 18.5 Mini tablero ------------------------------------------------------ */
.dash { padding: 24px; text-align: left; }
.dash__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.dash__tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  padding: 3px 9px;
  border: 1px dashed var(--border-strong);
  border-radius: 6px;
  white-space: nowrap;
}
.dash__kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.dash__v {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  color: var(--text);
  line-height: 1.2;
}
.dash__k { display: block; margin-top: 7px; font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-subtle); line-height: 1.35; }

.dash__sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin: 18px 0 11px;
}
.dash__row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  margin-bottom: 7px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.dash__bar { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.dash__bar i { display: block; height: 100%; border-radius: 4px; background: var(--gradient-brand); }
.dash__n { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text); text-align: right; }

/* 18.6 Responsive de la ronda 4 ------------------------------------------ */
@media (max-width: 920px) {
  .relay { grid-template-columns: minmax(0, 1fr); }
  .relay__link { padding: 18px 0; }
  .relay__line { width: 1px; height: 64px; background: linear-gradient(180deg, rgba(42, 179, 245, 0.55), rgba(212, 26, 168, 0.55)); }
  .relay__line i { left: -2.5px; top: 0; }
  .js .reveal.is-visible .relay__line i { animation: relay-v 3.2s var(--ease) infinite; }
  @keyframes relay-v {
    0%   { top: 0; opacity: 0; }
    12%  { opacity: 1; }
    82%  { opacity: 1; }
    100% { top: calc(100% - 6px); opacity: 0; }
  }
  .compare::after { content: none; }
}

@media (max-width: 620px) {
  .brand__mark, .header.is-stuck .brand__mark { width: 40px; height: 40px; }
  .brand__name, .footer .brand__name { font-size: 16px; }
  .footer .brand__mark { width: 44px; height: 44px; }
  .header__inner, .header.is-stuck .header__inner { height: 72px; }
  .dash__kpis { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .dash__row { grid-template-columns: 78px minmax(0, 1fr) 38px; }
}

/* ==========================================================================
   19. Ronda 5 — acento orquídea en los detalles de luz
   ========================================================================== */

/* 19.1 Hover de tarjetas: filo de luz y resplandor en la esquina --------- */
.bento__item, .industry, .problem-card, .leak__card { position: relative; overflow: hidden; }
.bento__item::before, .industry::before, .problem-card::before, .leak__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--hairline-orchid);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  pointer-events: none;
}
.bento__item::after, .industry::after, .problem-card::after, .leak__card::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(204, 77, 202, 0.16), rgba(204, 77, 202, 0) 70%);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  pointer-events: none;
}
.bento__item:hover::before, .industry:hover::before, .problem-card:hover::before, .leak__card:hover::before,
.bento__item:hover::after, .industry:hover::after, .problem-card:hover::after, .leak__card:hover::after {
  opacity: 1;
}

/* 19.2 Ventana de la demo ------------------------------------------------ */
.window::before { background: var(--hairline-orchid); }
.window::after {
  content: "";
  position: absolute;
  top: -90px;
  right: -90px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(204, 77, 202, 0.14), rgba(204, 77, 202, 0) 68%);
  pointer-events: none;
  z-index: 0;
}

/* 19.3 Destellos ---------------------------------------------------------- */
.glint {
  position: absolute;
  z-index: 6;
  width: 13px;
  height: 13px;
  pointer-events: none;
  background: radial-gradient(circle, #fff 0 14%, var(--orchid) 42%, var(--orchid-deep) 100%);
  clip-path: polygon(50% 0%, 59% 41%, 100% 50%, 59% 59%, 50% 100%, 41% 59%, 0% 50%, 41% 41%);
  opacity: 0;
  transform: scale(0.6);
  filter: drop-shadow(0 0 5px var(--orchid-glow));
}
.js .glint { animation: glint 6.5s var(--ease) infinite; }
.glint--b { animation-delay: 1.7s; }
.glint--c { animation-delay: 3.4s; }
.glint--d { animation-delay: 5.1s; }
@keyframes glint {
  0%, 79%   { opacity: 0; transform: scale(0.6) rotate(0deg); }
  86%       { opacity: 1; transform: scale(1) rotate(18deg); }
  93%, 100% { opacity: 0; transform: scale(0.6) rotate(36deg); }
}
/* Anclajes de cada destello. El del H1 cuelga de un envoltorio: dentro del
   texto con `background-clip: text` el navegador lo recortaría. */
.grad-wrap { position: relative; display: inline-block; }
.glint--h1 { top: -0.05em; right: -0.5em; }
.hero__demo { position: relative; }
.glint--demo { top: -7px; right: -7px; }
.band .glint--band { top: 14px; right: 18px; }
.form-card { position: relative; }
.form-card .glint--form { top: -6px; right: -6px; }

/* 19.4 Método: cada nodo pulsa una vez al encenderse --------------------- */
.method__dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--orchid);
  opacity: 0;
}
.js .reveal.is-visible .method__dot::after { animation: node-pulse 1.5s var(--ease) 1 both; }
@keyframes node-pulse {
  0%   { transform: scale(0.6); opacity: 0; }
  35%  { opacity: 0.85; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* 19.5 Tarjeta CRM del bento: columnas con leads de ejemplo -------------- */
/* Las columnas son muy angostas: el avatar y la barra de etapa van en la
   primera línea y el nombre debajo, a todo lo ancho. */
.pipe-lead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 7px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.pipe-lead i {
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.48rem;
  color: var(--text);
  background: linear-gradient(140deg, rgba(42, 179, 245, 0.35), rgba(212, 26, 168, 0.3));
}
.pipe-lead b {
  width: 100%;
  font-size: 0.53rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pipe-lead s { flex: 1; min-width: 12px; height: 2px; border-radius: 2px; text-decoration: none; }
.pipe-lead--end { border-color: rgba(204, 77, 202, 0.45); box-shadow: 0 0 12px -4px var(--orchid-glow); }

/* 19.6 Flotante de WhatsApp sobre la demo en móvil ----------------------- */
@media (max-width: 920px) {
  .wa-fab.is-compact .wa-fab__btn { width: 48px; height: 48px; }
  .wa-fab.is-compact .wa-fab__btn svg { width: 24px; height: 24px; }
  /* Pegado al borde y a media altura: libre de las pestañas y del control
     de pausa, que son lo que antes tapaba. */
  .wa-fab.is-compact { right: 6px; bottom: auto; top: 50%; transform: translateY(-50%); }
}

/* 19.7 Movimiento reducido: nada titila ni barre ------------------------- */
@media (prefers-reduced-motion: reduce) {
  .glint { display: none; }
  .js .btn--primary::after,
  .js .section.is-onscreen + .section::after,
  .js .section.is-onscreen::after,
  .js .reveal.is-visible .method__dot::after { animation: none !important; }
  .section + .section::after { display: none; }
}


/* El tamaño vertical por anchura, al final para que no lo pise ningún
   bloque anterior: 140 px en escritorio, 96 en tableta y 72 en móvil. */
@media (max-width: 1080px) { :root { --section-y: 96px; } }
@media (max-width: 620px)  { :root { --section-y: 72px; } }
