/* =========================================================
   VeuNova · Recepcionista AI
   Réplica del diseño original · Vanilla CSS · Sin dependencias
   ========================================================= */

:root {
  --brand: #1e2a78;         /* navy-indigo principal (botones, logo, iconos) */
  --brand-ink: #14205e;     /* navy más oscuro (gradientes) */
  --brand-label: #2c3ba6;   /* etiquetas/eyebrows/links */
  --dark: #0e1322;          /* secciones y tarjetas oscuras */
  --dark-2: #080c17;
  --dark-card: #12141d;     /* tarjeta plan pro / reproductor */

  --bg: #f4f4f3;            /* fondo general (gris cálido claro) */
  --card: #ffffff;
  --text: #12141a;
  --muted: #5f6672;
  --muted-2: #676d7c;       /* gris secundario (contraste AA sobre fondo claro) */
  --border: #e7e8ec;
  --border-dark: rgba(255, 255, 255, 0.1);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji", sans-serif;

  --container: 1140px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 60, 0.04), 0 6px 20px rgba(16, 24, 60, 0.05);
  --shadow-md: 0 12px 34px rgba(16, 24, 60, 0.09);
  --shadow-lg: 0 26px 60px rgba(16, 24, 60, 0.14);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 66px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

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

/* Enlace "saltar al contenido": oculto hasta recibir foco con teclado */
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  background: var(--brand); color: #fff;
  font-weight: 700; font-size: 0.95rem;
  padding: 12px 20px; border-radius: 999px;
  box-shadow: var(--shadow-md);
  transform: translateY(-250%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}
.container--narrow { max-width: 820px; }

.section {
  position: relative;
  padding-block: clamp(64px, 9vw, 120px);
  scroll-margin-top: var(--nav-h);
}

/* ---------- Marca ---------- */
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark {
  position: relative;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 7px rgba(30, 42, 120, 0.12);
}
.brand__mark::after {
  content: "";
  position: absolute; inset: 0; margin: auto;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #fff;
}
.brand__name { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--text); }

/* ---------- Encabezados de sección ---------- */
.head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.head--left { margin-inline: 0; text-align: left; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brand-label);
  margin-bottom: 18px;
}
.eyebrow--ondark { color: #8b93b8; }

.h2 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.08; letter-spacing: -0.03em; font-weight: 800;
  color: var(--text);
}
.h2--ondark { color: #fff; }

.lead {
  margin-top: 18px;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 60ch;
}
.head:not(.head--left) .lead { margin-inline: auto; }
.lead--ondark { color: #9aa1b5; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 1rem; font-weight: 700;
  padding: 15px 26px;
  border-radius: 999px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
}
.btn--block { width: 100%; }
.btn--primary { color: #fff; background: var(--brand); box-shadow: 0 10px 26px rgba(30, 42, 120, 0.28); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(30, 42, 120, 0.36); }
.btn--ghost { color: var(--text); background: var(--card); border: 1px solid var(--border); }
.btn--ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--dark { color: #fff; background: #14161d; }
.btn--dark:hover { transform: translateY(-2px); background: #05060a; }
.btn--white { color: var(--text); background: #fff; }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25); }
.btn--outline-light { color: #fff; border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.02); }
.btn--outline-light:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.08); }

/* ---------- Iconos en caja ---------- */
.ibox {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  color: var(--brand);
  background: #fff;
  border: 1px solid var(--border);
}
.ibox--brand { background: var(--brand); color: #fff; border-color: transparent; }
.ibox--dark { background: #14161d; color: #fff; border-color: transparent; }
.ibox--soft { background: #eaecf6; color: var(--brand); border-color: transparent; }

/* Puntos de estado */
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.dot--live { position: relative; background: #24c07a; box-shadow: 0 0 0 3px rgba(36, 192, 122, 0.18); }
.dot--live::after {
  content: "";
  position: absolute; inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(36, 192, 122, 0.45);
  animation: livepulse 2s ease-in-out infinite;
}
@keyframes livepulse {
  0% { transform: scale(1); opacity: 0.9; }
  70%, 100% { transform: scale(1.9); opacity: 0; }
}

/* =========================================================
   NAVBAR
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0;
  height: var(--nav-h); z-index: 100;
  display: flex; align-items: center;
  background: rgba(244, 244, 243, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.is-scrolled { background: rgba(244, 244, 243, 0.9); border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.nav__links { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); }
.nav__link { font-size: 0.95rem; font-weight: 500; color: var(--muted); transition: color 0.25s var(--ease); }
.nav__link:hover { color: var(--text); }
.nav__cta {
  font-size: 0.92rem; font-weight: 700; color: #fff; background: var(--brand);
  padding: 10px 20px; border-radius: 999px;
  box-shadow: 0 8px 20px rgba(30, 42, 120, 0.26);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav__cta:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(30, 42, 120, 0.36); }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding-top: calc(var(--nav-h) + clamp(28px, 6vw, 70px));
  padding-bottom: clamp(50px, 8vw, 90px);
  scroll-margin-top: var(--nav-h);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 6vw, 64px);
  align-items: center;
}
.hero__copy { max-width: 640px; }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.9rem; font-weight: 600;
  color: var(--brand-label);
  background: #fff;
  border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }

.hero__title {
  margin-top: 24px;
  font-size: clamp(2.4rem, 7vw, 4.1rem);
  line-height: 1.05; letter-spacing: -0.035em; font-weight: 800;
  color: var(--text);
}
.hero__sub {
  margin-top: 22px;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--muted);
  max-width: 52ch;
}
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__actions .btn { flex: 1 1 auto; }
.hero__badges {
  margin-top: 30px;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted-2);
  line-height: 1.9;
}

/* Tarjeta demo */
.hero__demo { width: 100%; }
.callcard {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(20px, 4vw, 28px);
  box-shadow: var(--shadow-md);
  max-width: 520px;
}
.callcard__head { display: flex; align-items: center; justify-content: space-between; }
.callcard__status {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.callcard__time { font-size: 0.9rem; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.callcard__caller { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.callcard__avatar {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: #eaecf6; color: var(--brand);
  flex: none;
}
.callcard__name { display: block; font-size: 1.05rem; font-weight: 700; color: var(--text); }
.callcard__meta { display: block; font-size: 0.9rem; color: var(--muted); }

/* Onda de audio (equalizer) */
.wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 64px; margin: 24px 0; }
.wave span {
  width: 3px; height: 44%;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--brand), #4d5fd0);
  transform-origin: center;
  animation: eq 1.1s var(--ease) infinite;
}
@keyframes eq { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
.wave span:nth-child(8n+1) { animation-delay: 0s; }
.wave span:nth-child(8n+2) { animation-delay: 0.11s; }
.wave span:nth-child(8n+3) { animation-delay: 0.22s; }
.wave span:nth-child(8n+4) { animation-delay: 0.33s; }
.wave span:nth-child(8n+5) { animation-delay: 0.24s; }
.wave span:nth-child(8n+6) { animation-delay: 0.15s; }
.wave span:nth-child(8n+7) { animation-delay: 0.30s; }
.wave span:nth-child(8n+8) { animation-delay: 0.06s; }

.callcard__bubble {
  background: #f5f6f9;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 0.98rem; color: var(--text);
}
.callcard__bubble strong { color: var(--brand-label); }

/* =========================================================
   GRIDS
   ========================================================= */
.grid { display: grid; gap: clamp(16px, 2.4vw, 26px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- EL PROBLEMA (pcard) ---------- */
.pcard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(26px, 3.4vw, 36px);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.pcard .ibox { transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease); }
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #dfe1ea; }
.pcard:hover .ibox { background: var(--brand); color: #fff; border-color: transparent; }
.pcard__title { margin-top: 26px; font-size: 1.22rem; font-weight: 700; letter-spacing: -0.01em; }
.pcard__desc { margin-top: 12px; color: var(--muted); font-size: 1rem; }

/* ---------- CÓMO FUNCIONA (steps) ---------- */
.steps { text-align: center; }
.step { display: flex; flex-direction: column; align-items: center; }
.step__ico {
  position: relative;
  display: grid; place-items: center;
  width: 108px; height: 108px; border-radius: 50%;
  background: #fff; color: var(--brand);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.step__num {
  position: absolute; top: -4px; right: -4px;
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-size: 0.85rem; font-weight: 700;
  border: 3px solid var(--bg);
}
.step__title { margin-top: 22px; font-size: 1.12rem; font-weight: 700; }
.step__desc { margin-top: 8px; color: var(--muted); font-size: 0.98rem; max-width: 26ch; }

/* =========================================================
   DEMO REAL (sección oscura)
   ========================================================= */
.section--dark {
  background: radial-gradient(120% 100% at 50% 0%, #131a30 0%, var(--dark) 45%, var(--dark-2) 100%);
}
.player {
  max-width: 760px; margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-xl);
  padding: clamp(22px, 4vw, 34px);
}
.player__badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #cfd4e6;
  border: 1px solid var(--border-dark);
  padding: 7px 14px; border-radius: 999px;
}
.player__meta { margin-top: 18px; color: #9aa1b5; font-size: 0.98rem; }
.player__row { display: flex; align-items: center; gap: 18px; margin-top: 20px; }
.player__play {
  flex: none;
  display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: #fff; color: var(--dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s var(--ease);
}
.player__play svg { margin-left: 3px; }
.player__play:hover { transform: scale(1.06); }
.player__play:disabled { cursor: default; opacity: 0.85; }
.player__play:disabled:hover { transform: none; }
.player__wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 48px; overflow: hidden; }
.player__wave span {
  flex: 1; min-width: 2px; height: 30%;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.22);
}
.player__wave span:nth-child(3n+1) { height: 60%; }
.player__wave span:nth-child(4n+2) { height: 85%; }
.player__wave span:nth-child(5n)   { height: 45%; }
.player__wave span:nth-child(-n+11) { background: rgba(255, 255, 255, 0.85); }
.player__times { display: flex; justify-content: space-between; margin-top: 8px; color: #8189a0; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.player__note { margin-top: 16px; color: #9aa1b5; font-size: 0.85rem; font-style: italic; }

/* Contenedor del widget de voz (ElevenLabs) */

.quote { max-width: 760px; margin: clamp(40px, 6vw, 60px) auto 0; text-align: center; }
.quote p { font-size: clamp(1.2rem, 2.6vw, 1.7rem); line-height: 1.4; font-weight: 600; color: #eef0f6; letter-spacing: -0.01em; }
.quote footer { margin-top: 18px; color: #9aa1b5; font-size: 0.98rem; }
.quote footer strong { color: #fff; }

/* =========================================================
   CASOS DE USO (ucard)
   ========================================================= */
.ucard {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(26px, 3.4vw, 38px);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.ucard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #dfe1ea; }
.ucard .ibox { transition: background 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.ucard:hover .ibox--dark,
.ucard:hover .ibox--brand {
  background: var(--brand-label);
  color: #fff;
  box-shadow: 0 10px 24px rgba(44, 59, 166, 0.35);
}
.ucard__blob {
  position: absolute; top: -40px; right: -40px;
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #eef1fb, #f4f5f8);
  pointer-events: none;
}
.ucard > * { position: relative; }
.ucard__cat {
  margin-top: 24px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand-label);
}
.ucard__desc { margin-top: 12px; color: var(--muted); font-size: 1.02rem; max-width: 42ch; }

/* =========================================================
   POR QUÉ VEUNOVA
   ========================================================= */
.por { display: grid; grid-template-columns: 1fr; gap: clamp(36px, 5vw, 56px); align-items: start; }
.whylist { display: grid; gap: 0; }
.whyitem { display: flex; gap: 18px; align-items: flex-start; padding: clamp(20px, 3vw, 26px) 0; border-bottom: 1px solid var(--border); }
.whyitem:first-child { padding-top: 0; }
.whyitem:last-child { border-bottom: none; }
.whyitem .ibox { flex: none; width: 46px; height: 46px; border-radius: 50%; }
.whyitem__title { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.01em; }
.whyitem__desc { margin-top: 6px; color: var(--muted); font-size: 1rem; }

/* =========================================================
   PRECIOS
   ========================================================= */
.plans { align-items: stretch; }
.plan {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
}
.plan--pro { background: var(--dark-card); border-color: transparent; box-shadow: var(--shadow-lg); }
.plan__popular {
  position: absolute; top: -15px; right: 26px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; background: var(--brand);
  padding: 8px 16px; border-radius: 999px;
  box-shadow: 0 8px 20px rgba(30, 42, 120, 0.4);
}
.plan__popular .dot { background: #fff; }
.plan__tag { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-label); }
.plan__tag--ondark { color: #8b93b8; }
.plan__price { margin-top: 20px; font-size: 1.3rem; color: var(--text); font-weight: 500; }
.plan__price strong { font-size: clamp(2.4rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.03em; }
.plan__price span { color: var(--muted-2); font-size: 1rem; }
.plan__price--ondark { color: #fff; }
.plan__price--ondark span { color: #8b93b8; }
.plan__for { margin-top: 8px; color: var(--muted); }
.plan__for--ondark { color: #9aa1b5; }
.plan__list { margin: 26px 0; display: grid; gap: 15px; padding-top: 24px; border-top: 1px solid var(--border); }
.plan__list--ondark { border-top-color: var(--border-dark); }
.plan__list li { display: flex; align-items: center; gap: 12px; font-size: 1rem; color: var(--text); }
.plan__list--ondark li { color: #dfe3ee; }
.tick { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #eaecf6; }
.tick::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg) translate(0, -1px); }
.tick--light { background: transparent; }
.tick--light::after { border-color: #fff; }
.plan .btn { margin-top: auto; }
.plans--single { display: grid; grid-template-columns: min(520px, 100%); justify-content: center; }
.plan__setup { margin-top: 4px; font-size: 1.02rem; font-weight: 600; color: #dfe3ee; }
.plan__setup span { color: #8b93b8; font-weight: 500; }
.plans__note { margin: 26px auto 0; max-width: 600px; text-align: center; color: var(--muted); }
.plans__note a { color: var(--brand-label); font-weight: 600; }

/* =========================================================
   FAQ (details/summary nativo)
   ========================================================= */
.faq { display: grid; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: clamp(18px, 3vw, 24px) 0;
  font-size: clamp(1.05rem, 2vw, 1.22rem); font-weight: 700; letter-spacing: -0.01em;
  color: var(--text); cursor: pointer; list-style: none;
  transition: color 0.25s var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__item[open] .faq__q { color: var(--brand-label); }
.faq__chev {
  flex: none; width: 12px; height: 12px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); margin-bottom: 4px;
  transition: transform 0.3s var(--ease);
}
.faq__item[open] .faq__chev { transform: rotate(-135deg); margin-bottom: -4px; }
.faq__a { padding: 0 0 clamp(20px, 3vw, 26px); color: var(--muted); font-size: 1.02rem; max-width: 64ch; }

/* =========================================================
   CTA FINAL
   ========================================================= */
.cta-wrap { padding-block: clamp(48px, 7vw, 90px); }
.cta {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  background: radial-gradient(130% 120% at 50% 0%, #1a2547 0%, var(--dark) 55%, var(--dark-2) 100%);
  padding: clamp(44px, 8vw, 90px) clamp(24px, 5vw, 60px);
  text-align: center;
}
.cta__dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(100% 80% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(100% 80% at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}
.cta__inner { position: relative; max-width: 640px; margin-inline: auto; }
.cta__title { margin-top: 14px; font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; color: #fff; }
.cta__sub { margin-top: 18px; color: #9aa1b5; font-size: clamp(1.02rem, 1.8vw, 1.18rem); }
.cta__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta__note { margin-top: 18px; color: #7d84a0; font-size: 0.88rem; }

/* ---------- Demo en vivo (paneles dentro del CTA) ---------- */
.btn:disabled { opacity: 0.55; cursor: default; transform: none !important; box-shadow: none; }

.demo-box {
  max-width: 560px;
  margin: 28px auto 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-lg);
  padding: 20px clamp(16px, 3vw, 26px) 24px;
  text-align: left;
}
.demo-box__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.demo-box__timer { color: #9aa1b5; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.demo-box__status { margin-top: 2px; color: #c9cede; text-align: center; font-size: 0.98rem; min-height: 1.5em; }
.demo-box .wave { height: 54px; margin: 18px 0 12px; }
.wave--light span { background: linear-gradient(180deg, #ffffff, #7f95ff); }

.btn--hang { background: #e5484d; color: #fff; padding: 12px 26px; margin: 16px auto 0; display: flex; }
.btn--hang:hover { transform: translateY(-2px); background: #d63c41; }

.demo-box__close {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  color: #9aa1b5; font-size: 1.5rem; line-height: 1;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.demo-box__close:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

.chat__msgs { margin-top: 16px; max-height: 300px; overflow-y: auto; display: grid; gap: 10px; padding-right: 4px; }
.chat__msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 0.96rem; line-height: 1.45; overflow-wrap: break-word; }
.chat__msg--ai { background: rgba(255, 255, 255, 0.08); color: #e8eaf2; justify-self: start; border-bottom-left-radius: 4px; }
.chat__msg--user { background: #fff; color: var(--text); justify-self: end; border-bottom-right-radius: 4px; }
.chat__form { display: flex; gap: 10px; margin-top: 14px; }
.chat__input {
  flex: 1; min-width: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  padding: 12px 18px;
  color: #fff; font-family: inherit; font-size: 0.98rem;
}
.chat__input::placeholder { color: #7d84a0; }
.chat__input:focus { outline: none; border-color: rgba(255, 255, 255, 0.35); }
.chat__input:disabled { opacity: 0.5; }
.chat__send {
  flex: none; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; color: var(--dark);
  transition: transform 0.3s var(--ease);
}
.chat__send:hover { transform: scale(1.06); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding-top: clamp(50px, 7vw, 80px); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(32px, 5vw, 60px);
  padding-bottom: 48px;
}
.footer__desc { margin-top: 16px; color: var(--muted); max-width: 34ch; }
.footer__title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.footer__item { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.98rem; margin-bottom: 12px; transition: color 0.25s var(--ease); }
.footer__item:hover { color: var(--brand-label); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  padding-block: 24px; border-top: 1px solid var(--border);
  color: var(--muted-2); font-size: 0.9rem;
}

/* =========================================================
   PÁGINAS LEGALES (privacidad / términos)
   ========================================================= */
.legal {
  padding-top: calc(var(--nav-h) + clamp(36px, 6vw, 64px));
  padding-bottom: clamp(56px, 8vw, 96px);
}
.legal h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  line-height: 1.1; letter-spacing: -0.03em; font-weight: 800;
}
.legal__updated { margin-top: 10px; color: var(--muted-2); font-size: 0.9rem; }
.legal h2 {
  margin-top: clamp(30px, 5vw, 44px);
  font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em;
}
.legal p { margin-top: 12px; color: var(--muted); }
.legal ul { margin-top: 12px; padding-left: 22px; list-style: disc; color: var(--muted); }
.legal li { margin-top: 8px; }
.legal strong { color: var(--text); }
.legal a { color: var(--brand-label); text-decoration: underline; text-underline-offset: 3px; }
.footer--slim { padding-top: 0; margin-top: 24px; }
.footer--slim .footer__bottom a { color: var(--muted); }
.footer--slim .footer__bottom a:hover { color: var(--brand-label); }

/* =========================================================
   REVEAL (progressive enhancement)
   ========================================================= */
html.io .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.io .reveal.is-visible { opacity: 1; transform: none; }
html.io .reveal:nth-child(2) { transition-delay: 0.06s; }
html.io .reveal:nth-child(3) { transition-delay: 0.12s; }
html.io .reveal:nth-child(4) { transition-delay: 0.18s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (min-width: 861px) {
  /* Hero a dos columnas en pantallas grandes */
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
  /* La tarjeta arranca a la altura del titular (debajo de la píldora) */
  .hero__demo { justify-self: end; align-self: start; margin-top: 66px; }
  .callcard { margin-left: auto; }
  .por { grid-template-columns: 0.9fr 1.1fr; }
  .por .head--left { position: sticky; top: calc(var(--nav-h) + 24px); }
  .hero__actions .btn { flex: 0 1 auto; }
}

@media (max-width: 1040px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .grid--3 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  /* Menú móvil */
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 16px clamp(20px, 5vw, 40px) 24px;
    background: rgba(244, 244, 243, 0.98);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-10px); opacity: 0; visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s var(--ease);
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__link { padding: 13px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
  .nav__cta { margin-top: 12px; text-align: center; padding: 14px; font-size: 1rem; }
}

@media (max-width: 620px) {
  .grid--4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .cta__actions { flex-direction: column; }
  .cta__actions .btn { width: 100%; }
}

@media (min-width: 1500px) { :root { --container: 1240px; } }

/* =========================================================
   ACCESIBILIDAD · Reducir movimiento
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
