/* ══════════════════════════════════════════════════════════════════════════
   Variavista · Landing de producto — Agente de WhatsApp con IA (wa.variavista.es)
   Canon WOW Variavista: fondo vivo (mesh + estrellas), glassmorphism, Kanit
   auto-hospedada (RGPD), paleta de marca, iconos estilo Nucleo (SVG inline),
   estados de éxito con física. Solo transform/opacity para la animación.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Kanit auto-hospedada (NUNCA Google Fonts CDN — RGPD) ─────────────────── */
@font-face {
  font-family: 'Kanit'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('./fonts/kanit-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Kanit'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('./fonts/kanit-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Kanit'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('./fonts/kanit-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Kanit'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('./fonts/kanit-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Kanit'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('./fonts/kanit-700.woff2') format('woff2');
}

/* ── Tokens de marca ──────────────────────────────────────────────────────── */
:root {
  --aubergine: #3C2E42;
  --aubergine-deep: #2a2030;
  --aubergine-darker: #1d1622;
  --azul: #38A1DB;
  --rosa: #EC74FC;
  --amarillo: #FFE100;   /* SOLO CTA primario */
  --wa-green: #25D366;

  --ink: #F4EFF6;
  --ink-soft: rgba(244, 239, 246, 0.72);
  --ink-faint: rgba(244, 239, 246, 0.5);

  --glass-bg: rgba(255, 255, 255, 0.055);
  --glass-brd: rgba(255, 255, 255, 0.12);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-pill: 999px;

  --sp-1: 6px;  --sp-2: 10px;  --sp-3: 16px;  --sp-4: 24px;
  --sp-5: 34px; --sp-6: 48px;  --sp-7: 68px;  --sp-8: 96px;

  --maxw: 1160px;
  --ease-wow: cubic-bezier(.16, 1, .3, 1);
}

/* ── Reset ligero ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Kanit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--aubergine-darker);
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--sp-4); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   FONDO VIVO — mesh de blobs + estrellas. Solo transform/opacity (compositor).
   ══════════════════════════════════════════════════════════════════════════ */
.bg {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, var(--aubergine) 0%, var(--aubergine-deep) 42%, var(--aubergine-darker) 100%);
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: 0.5; will-change: transform;
}
.blob--1 { width: 46vw; height: 46vw; left: -8vw;  top: -6vw;
  background: radial-gradient(circle, var(--azul), transparent 66%);
  animation: drift1 22s ease-in-out infinite; }
.blob--2 { width: 40vw; height: 40vw; right: -10vw; top: 12vh;
  background: radial-gradient(circle, var(--rosa), transparent 66%);
  animation: drift2 27s ease-in-out infinite; }
.blob--3 { width: 38vw; height: 38vw; left: 20vw;  bottom: -14vw;
  background: radial-gradient(circle, #6a4fd6, transparent 68%);
  animation: drift3 31s ease-in-out infinite; }

@keyframes drift1 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(6vw, 4vh, 0) scale(1.12); }
}
@keyframes drift2 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.05); }
  50%      { transform: translate3d(-5vw, 6vh, 0) scale(0.92); }
}
@keyframes drift3 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(4vw, -5vh, 0) scale(1.1); }
}

/* Estrellas: capa de puntos que titilan (opacity). */
.stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.star {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: #fff; opacity: 0.55;
  animation: twinkle 4s ease-in-out infinite;
  will-change: opacity, transform;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.7); }
  50%      { opacity: 0.85; transform: scale(1.15); }
}

/* Veladura sutil para legibilidad del contenido sobre el mesh. */
.bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(29, 22, 34, 0.35) 78%, rgba(29, 22, 34, 0.72) 100%);
}

/* ══════════════════════════════════════════════════════════════════════════
   HEADER full-width integrado (transparente sobre el hero; .scrolled con blur).
   ══════════════════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(29, 22, 34, 0.72);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--glass-brd);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; height: 68px;
}
.brand { display: flex; align-items: center; gap: var(--sp-2); font-weight: 600; }
.brand img { width: 30px; height: 30px; }
.brand span { font-size: 1.05rem; letter-spacing: 0.2px; }
.brand small { color: var(--ink-faint); font-weight: 400; font-size: 0.78rem; margin-left: 2px; }

.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-brd);
  color: var(--ink); font-weight: 500; font-size: 0.9rem;
  transition: transform 0.2s var(--ease-wow), background 0.2s ease, border-color 0.2s ease;
}
.header-cta:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.14); border-color: rgba(255,255,255,0.28); }
.header-cta svg { width: 17px; height: 17px; }

/* ══════════════════════════════════════════════════════════════════════════
   Tipografía / helpers
   ══════════════════════════════════════════════════════════════════════════ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: var(--r-pill);
  background: rgba(56, 161, 219, 0.12);
  border: 1px solid rgba(56, 161, 219, 0.3);
  color: #a9dbf3; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.3px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wa-green); box-shadow: 0 0 0 0 rgba(37,211,102,.6); animation: pulseDot 2.2s infinite; }
@keyframes pulseDot { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); } 70% { box-shadow: 0 0 0 9px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

h1, h2, h3 { line-height: 1.12; font-weight: 700; margin: 0; letter-spacing: -0.5px; }

.h-hero {
  font-size: clamp(2.35rem, 6vw, 4.15rem);
  font-weight: 700; line-height: 1.08;
  padding-bottom: 0.12em; /* holgura: no recortar rabos de j/g/p con clip:text */
}
/* Degradado con fallback de color visible (navegadores in-app sin soporte). */
.grad {
  color: #d9c7ff; /* fallback visible */
  background: linear-gradient(100deg, var(--azul) 0%, var(--rosa) 62%, #d9c7ff 100%);
  -webkit-background-clip: text; background-clip: text;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad { -webkit-text-fill-color: transparent; }
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad { color: var(--rosa); }
}

.lead { font-size: clamp(1.05rem, 2.2vw, 1.32rem); color: var(--ink-soft); font-weight: 300; max-width: 40ch; }

.section { position: relative; padding: var(--sp-8) 0; }
.section-head { max-width: 46ch; margin: 0 auto var(--sp-6); text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.section-head p { color: var(--ink-soft); font-weight: 300; margin-top: var(--sp-3); }

/* Glass card genérica */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ── Botones ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 1.02rem; border: 1px solid transparent;
  transition: transform 0.22s var(--ease-wow), box-shadow 0.25s ease, filter 0.2s ease;
  will-change: transform;
}
.btn svg { width: 20px; height: 20px; }
.btn:active { transform: translateY(1px) scale(0.99); }

/* CTA PRIMARIO = amarillo (único uso del amarillo). Glow que sigue al cursor. */
.btn-cta {
  position: relative; overflow: hidden; --mx: 50%;
  background: var(--amarillo); color: #2a2030;
  box-shadow: 0 10px 34px -10px rgba(255, 225, 0, 0.55);
}
.btn-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120px circle at var(--mx) 50%, rgba(255,255,255,0.6), transparent 60%);
  opacity: 0; transition: opacity 0.25s ease;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -10px rgba(255, 225, 0, 0.7); }
.btn-cta:hover::before { opacity: 1; }

/* CTA secundario = WhatsApp verde (demo en vivo). */
.btn-wa {
  background: var(--wa-green); color: #0a2e17;
  box-shadow: 0 10px 30px -12px rgba(37, 211, 102, 0.6);
}
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(37, 211, 102, 0.75); }

.btn-ghost {
  background: rgba(255,255,255,0.06); color: var(--ink);
  border-color: var(--glass-brd);
}
.btn-ghost:hover { transform: translateY(-2px); background: rgba(255,255,255,0.12); }

/* ══════════════════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════════════════ */
.hero { position: relative; padding: calc(68px + var(--sp-8)) 0 var(--sp-7); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-6); align-items: center;
}
.hero-copy .eyebrow { margin-bottom: var(--sp-4); }
.hero-copy .lead { margin: var(--sp-4) 0 var(--sp-5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.hero-note { margin-top: var(--sp-4); font-size: 0.86rem; color: var(--ink-faint); display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 16px; height: 16px; flex: none; stroke: var(--azul); }

/* ── Mockup del chat de WhatsApp (MUESTRA el producto) ────────────────────── */
.phone {
  position: relative; width: 100%; max-width: 360px; margin-left: auto;
  border-radius: 34px; padding: 12px;
  background: linear-gradient(160deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
  border: 1px solid var(--glass-brd);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.03) inset;
}
.phone-screen { border-radius: 24px; overflow: hidden; background: #0b141a; }
.wa-topbar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #1f2c33; }
.wa-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--azul), var(--aubergine));
  display: grid; place-items: center; flex: none;
}
.wa-avatar img { width: 22px; height: 22px; }
.wa-peer { display: flex; flex-direction: column; line-height: 1.2; }
.wa-peer b { font-size: 0.92rem; font-weight: 600; }
.wa-peer span { font-size: 0.72rem; color: #8fa3ad; display: flex; align-items: center; gap: 5px; }
.wa-peer .online { width: 6px; height: 6px; border-radius: 50%; background: var(--wa-green); }
.wa-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; color: #8fa3ad; }
.wa-actions svg { width: 18px; height: 18px; }

/* Botón de altavoz (discreto, en la barra del chat). Muteado por defecto. */
.wa-sound {
  display: grid; place-items: center; width: 30px; height: 30px; padding: 0;
  border: 1px solid rgba(255,255,255,0.14); border-radius: 50%;
  background: rgba(255,255,255,0.06); color: #cdd8de; line-height: 0;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.18s var(--ease-wow), color 0.2s ease;
}
.wa-sound svg { width: 16px; height: 16px; }
.wa-sound .ic-on { display: none; }        /* muteado por defecto → se ve el "off" */
.wa-sound .ic-off { display: block; }
.wa-sound[aria-pressed="true"] { color: var(--wa-green); border-color: rgba(37,211,102,0.45); background: rgba(37,211,102,0.12); }
.wa-sound[aria-pressed="true"] .ic-on { display: block; }
.wa-sound[aria-pressed="true"] .ic-off { display: none; }
.wa-sound:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.12); }
.wa-sound:active { transform: translateY(0) scale(0.94); }
.wa-sound:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; }

.wa-body {
  padding: 16px 12px 14px;
  /* Alto FIJO del móvil: la conversación hace auto-scroll DENTRO del marco,
     sin desbordarlo. En reduce-motion se muestra entera (fallback estático). */
  height: 344px; overflow: hidden;
  display: flex; flex-direction: column; gap: 9px;
  background:
    linear-gradient(180deg, rgba(11,20,26,0.92), rgba(11,20,26,0.92)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='4' cy='4' r='1' fill='%23ffffff08'/%3E%3C/svg%3E");
  scroll-behavior: smooth;
}
/* Con JS + movimiento permitido, el cuerpo hace scroll suave para seguir la última
   burbuja. Sin JS o con reduce-motion se comporta como lista estática con scroll
   nativo por si el contenido no cabe (no rompe el fallback). */
.js-on .wa-body { overflow-y: auto; scrollbar-width: none; }
.js-on .wa-body::-webkit-scrollbar { width: 0; height: 0; }
.bubble {
  max-width: 84%; padding: 8px 11px; border-radius: 12px;
  font-size: 0.86rem; line-height: 1.4; position: relative;
  opacity: 0; transform: translateY(10px);
}
.bubble.show { animation: bubbleIn 0.5s var(--ease-wow) forwards; }
@keyframes bubbleIn { to { opacity: 1; transform: translateY(0); } }
.bubble .t { display: block; font-size: 0.62rem; color: rgba(255,255,255,0.45); text-align: right; margin-top: 3px; }
.bubble.in  { align-self: flex-start; background: #202c33; border-top-left-radius: 3px; color: #e9edef; }
.bubble.out { align-self: flex-end; background: #005c4b; border-top-right-radius: 3px; color: #e9edef; }
.bubble.out .t .tick { color: #53bdeb; }
.bubble .who { font-size: 0.64rem; font-weight: 600; color: #7ee6a6; display: block; margin-bottom: 2px; }

.typing { align-self: flex-start; background: #202c33; padding: 11px 14px; border-radius: 12px; border-top-left-radius: 3px; display: inline-flex; gap: 4px; opacity: 0; width: fit-content; }
.typing.show { animation: bubbleIn 0.4s var(--ease-wow) forwards; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8fa3ad; animation: blink 1.2s infinite; }
.typing i:nth-child(2){ animation-delay: .2s; } .typing i:nth-child(3){ animation-delay: .4s; }
@keyframes blink { 0%,60%,100% { opacity: .3; transform: translateY(0);} 30% { opacity: 1; transform: translateY(-3px);} }

.phone-glow { position: absolute; inset: -20% -10% -10%; z-index: -1; filter: blur(60px); opacity: .5;
  background: radial-gradient(circle, var(--azul), transparent 60%); }

/* ══════════════════════════════════════════════════════════════════════════
   BULLETS de valor (iconos estilo Nucleo en tiles con degradado)
   ══════════════════════════════════════════════════════════════════════════ */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.value {
  padding: var(--sp-4); border-radius: var(--r-md);
  background: var(--glass-bg); border: 1px solid var(--glass-brd);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease-wow), border-color 0.3s ease;
}
.value:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.24); }
.value .tile {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  margin-bottom: var(--sp-3);
  background: linear-gradient(140deg, var(--azul), var(--rosa));
  box-shadow: 0 10px 26px -12px rgba(236, 116, 252, 0.6);
}
.value .tile svg { width: 26px; height: 26px; stroke: #fff; }
.value h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.value p { font-size: 0.92rem; color: var(--ink-soft); font-weight: 300; margin: 0; }

/* ══════════════════════════════════════════════════════════════════════════
   CÓMO FUNCIONA (3 pasos)
   ══════════════════════════════════════════════════════════════════════════ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); counter-reset: step; }
.step { position: relative; padding: var(--sp-5) var(--sp-4) var(--sp-4); border-radius: var(--r-md); background: var(--glass-bg); border: 1px solid var(--glass-brd); }
.step .num {
  counter-increment: step;
  position: absolute; top: -18px; left: var(--sp-4);
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; color: #2a2030; background: var(--amarillo);
  box-shadow: 0 8px 20px -8px rgba(255,225,0,.6);
}
.step .num::before { content: counter(step); }
.step h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 0.9rem; color: var(--ink-soft); font-weight: 300; margin: 0; }

/* ══════════════════════════════════════════════════════════════════════════
   LISTA DE ESPERA (CTA primario) + DEMO (CTA secundario)
   ══════════════════════════════════════════════════════════════════════════ */
.cta-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--sp-4); align-items: stretch; }

.waitlist-card { padding: var(--sp-6); border-radius: var(--r-lg); position: relative; overflow: hidden; }
.waitlist-card::before { content:''; position:absolute; inset:0; z-index:-1; opacity:.5;
  background: radial-gradient(90% 70% at 15% 0%, rgba(56,161,219,.18), transparent 60%); }
.waitlist-card h2 { font-size: clamp(1.5rem, 3.4vw, 2.15rem); margin-bottom: var(--sp-2); }
.waitlist-card .sub { color: var(--ink-soft); font-weight: 300; margin-bottom: var(--sp-4); }

.wl-form { display: flex; flex-direction: column; gap: var(--sp-3); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.82rem; color: var(--ink-soft); font-weight: 500; }
.field label .opt { color: var(--ink-faint); font-weight: 300; }
.field input {
  width: 100%; padding: 13px 15px; border-radius: var(--r-sm);
  background: rgba(0,0,0,0.25); border: 1px solid var(--glass-brd);
  color: var(--ink); font-size: 0.98rem; font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field input::placeholder { color: rgba(244,239,246,0.34); }
.field input:focus {
  outline: none; border-color: var(--azul); background: rgba(0,0,0,0.32);
  box-shadow: 0 0 0 3px rgba(56, 161, 219, 0.22);
}
.wl-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.wl-submit { margin-top: 4px; width: 100%; }
.wl-legal { font-size: 0.74rem; color: var(--ink-faint); margin-top: 4px; line-height: 1.5; }
.wl-legal a { color: #a9dbf3; text-decoration: underline; text-underline-offset: 2px; }
.wl-error { font-size: 0.84rem; color: #ff9db5; margin-top: 2px; min-height: 0; }

/* Estado de ÉXITO WOW: check que se dibuja + glow + entrada con física. */
.wl-success {
  display: none; flex-direction: column; align-items: center; text-align: center;
  padding: var(--sp-4) 0 var(--sp-2);
}
.wl-success.show { display: flex; animation: wowIn 0.6s var(--ease-wow) both; }
@keyframes wowIn { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.check-wrap { position: relative; width: 96px; height: 96px; margin-bottom: var(--sp-3); }
.check-ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--azul), var(--rosa), var(--amarillo), var(--azul));
  animation: spin 3.2s linear infinite; filter: blur(2px); opacity: .85;
}
.check-ring::after { content:''; position:absolute; inset:5px; border-radius:50%; background:#221a29; }
@keyframes spin { to { transform: rotate(360deg); } }
.check-glow { position: absolute; inset: -40%; z-index:-1; border-radius:50%; filter: blur(30px); opacity:.6;
  background: radial-gradient(circle, var(--wa-green), transparent 60%); }
.check-svg { position: absolute; inset: 0; width: 96px; height: 96px; }
.check-svg .circle { stroke: var(--wa-green); stroke-width: 4; fill: none; stroke-dasharray: 276; stroke-dashoffset: 276; }
.check-svg .tick   { stroke: #fff; stroke-width: 5; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; }
.wl-success.show .check-svg .circle { animation: draw 0.55s var(--ease-wow) 0.1s forwards; }
.wl-success.show .check-svg .tick   { animation: draw 0.4s var(--ease-wow) 0.55s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.wl-success h3 { font-size: 1.4rem; margin-bottom: 6px; }
.wl-success p { color: var(--ink-soft); font-weight: 300; max-width: 32ch; margin: 0 auto; }

/* Demo en vivo (secundario) */
.demo-card { padding: var(--sp-5); border-radius: var(--r-lg); display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center; }
.demo-card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 6px; }
.demo-card p { color: var(--ink-soft); font-weight: 300; font-size: 0.92rem; margin: 0 0 var(--sp-4); max-width: 26ch; }
.qr-frame { padding: 10px; border-radius: 16px; background: #fff; margin-bottom: var(--sp-4); box-shadow: 0 16px 40px -16px rgba(0,0,0,.6); }
.qr-frame img { width: 148px; height: 148px; }
.demo-card .btn-wa { width: 100%; }
.demo-card .scan-hint { font-size: 0.76rem; color: var(--ink-faint); margin-top: var(--sp-3); }

/* ══════════════════════════════════════════════════════════════════════════
   Franja de confianza
   ══════════════════════════════════════════════════════════════════════════ */
.trust { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: var(--r-pill);
  background: var(--glass-bg); border: 1px solid var(--glass-brd);
  font-size: 0.86rem; color: var(--ink-soft);
}
.chip svg { width: 17px; height: 17px; stroke: var(--azul); flex: none; }

/* ══════════════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--glass-brd);
  padding: var(--sp-6) 0 var(--sp-5); margin-top: var(--sp-6);
  background: rgba(29,22,34,0.5);
}
.footer-inner { display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.footer-brand img { width: 28px; height: 28px; }
.footer-col p { color: var(--ink-faint); font-size: 0.84rem; font-weight: 300; margin: var(--sp-2) 0 0; max-width: 34ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-4); font-size: 0.86rem; }
.footer-links a { color: var(--ink-soft); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--ink); }
.ai-note {
  margin-top: var(--sp-4); font-size: 0.78rem; color: var(--ink-faint);
  display: flex; align-items: flex-start; gap: 8px; max-width: 62ch;
}
.ai-note svg { width: 16px; height: 16px; stroke: var(--rosa); flex: none; margin-top: 2px; }
.copyright { margin-top: var(--sp-4); font-size: 0.78rem; color: var(--ink-faint); }

/* ── Reveal on scroll (visible sin JS; solo se oculta con .js-on) ─────────── */
.js-on .reveal { opacity: 0; transform: translateY(22px); }
.js-on .reveal.is-in { opacity: 1; transform: translateY(0); transition: opacity 0.6s var(--ease-wow), transform 0.6s var(--ease-wow); }

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-note { justify-content: center; }
  .phone { margin: 0 auto; }
  .values { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: var(--sp-5); }
  .cta-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  :root { --sp-8: 64px; --sp-7: 48px; }
  .header-cta span { display: none; }
  .header-cta { padding: 9px 12px; }
  .values { grid-template-columns: 1fr; }
  .wl-form .row2 { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .footer-inner { flex-direction: column; }
  .phone { max-width: 320px; }
  .waitlist-card, .demo-card { padding: var(--sp-4); }
}

/* ── Respeto de prefers-reduced-motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .blob, .star, .check-ring { animation: none !important; }
  .bubble, .typing { opacity: 1 !important; transform: none !important; }
  .js-on .reveal { opacity: 1 !important; transform: none !important; }
  .check-svg .circle, .check-svg .tick { stroke-dashoffset: 0 !important; }
  /* Con reduce-motion mostramos la conversación COMPLETA y estática: el cuerpo
     crece para no recortar ninguna burbuja (sin auto-scroll ni bucle). */
  .wa-body { height: auto !important; overflow: visible !important; }
  .typing[data-typing] { display: none !important; }
}
