/* =========================================================
   Holia · holia.es — DARK high-craft, ONE brand-blue accent
   Diseño calibrado con taste-skill (anti-slop):
   - Un único acento (sky de marca #69C5F5; estado hover más vivo).
   - Bases neutras frío-oscuras, sin glows neón ni gradientes random.
   - Sombras tintadas al tono del fondo (no negro puro).
   - Una sola escala de radios. Tipografía display Space Grotesk.
   Paleta de marca (oficial): navy #214468 (oscuro) · sky #69C5F5 (claro).
   ========================================================= */

/* ---------- Fuente display autoalojada (Space Grotesk, variable) ---------- */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-var.woff2") format("woff2");
}

:root {
  /* Marca — dos colores principales: navy (oscuro) + sky (claro/acento) */
  --brand: #214468;          /* navy de marca (oscuro): relleno de botones/superficies, texto blanco */
  --brand-hi: #69C5F5;       /* sky de marca (claro): acento, enlaces y detalles sobre fondo oscuro */
  --brand-hover: #2C5A86;    /* navy algo más claro: hover del botón primario (texto blanco legible) */
  --navy: #214468;           /* navy de marca (superficie/realce contenido) */

  /* Lienzo oscuro por capas (neutros frío-oscuros, sin azul saturado) */
  --bg: #0A0E18;             /* casi negro azulado (no #000) */
  --bg-2: #0D1320;           /* alterno, un punto más claro */
  --surface: #111827;        /* superficie elevada sólida */
  --surface-2: #161F33;      /* superficie elevada + */

  /* Texto */
  --text: #C3CCDD;           /* gris azulado, cuerpo */
  --text-strong: #F4F7FC;    /* casi blanco, titulares */
  --muted: #8A97AE;          /* gris medio, secundario */
  --muted-dim: #5B6880;      /* gris tenue */

  /* Bordes / líneas (neutros, no tintados de azul saturado) */
  --line: rgba(195, 204, 221, .12);
  --line-soft: rgba(195, 204, 221, .07);
  --hairline: rgba(255, 255, 255, .05);

  /* Sombras — tintadas al tono del fondo (azul-negro), NO negro puro, sin glow */
  --shadow-sm: 0 2px 8px rgba(6, 10, 20, .5);
  --shadow-md: 0 12px 30px rgba(6, 10, 20, .55);
  --shadow-lg: 0 28px 60px rgba(6, 10, 20, .6);

  /* Forma — UNA escala de radios */
  --radius: 14px;            /* tarjetas, inputs, contenedores */
  --radius-sm: 10px;         /* iconos, chips internos */
  --radius-pill: 999px;      /* solo elementos interactivos tipo botón/píldora */

  /* Layout */
  --maxw: 1180px;
  --measure: 65ch;
  --nav-h: 70px;

  --font-body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  color: var(--text-strong);
  font-family: var(--font-display);
  line-height: 1.05;
  margin: 0 0 .4em;
  letter-spacing: -.03em;
  font-weight: 700;
  text-wrap: balance;
}
p { margin: 0 0 1rem; }
a { color: var(--brand-hi); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--text-strong); }
img, svg { max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { color: var(--text-strong); font-weight: 600; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--brand-hi); outline-offset: 3px; border-radius: 6px; }

/* ---------- Fondo: aurora muy contenida (un único tono de marca) ---------- */
.aurora { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; background: var(--bg); }
.aurora__layer { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .30; will-change: transform; }
.aurora__layer--1 {
  width: 56vw; height: 56vw; max-width: 760px; max-height: 760px; top: -18vw; left: -12vw;
  background: radial-gradient(circle at 45% 45%, rgba(105, 197, 245, .55), transparent 64%);
  animation: drift1 28s ease-in-out infinite;
}
.aurora__layer--2 {
  width: 48vw; height: 48vw; max-width: 660px; max-height: 660px; top: -4vw; right: -14vw;
  background: radial-gradient(circle at 55% 45%, rgba(33, 68, 104, .6), transparent 66%);
  animation: drift2 34s ease-in-out infinite;
}
.aurora__layer--3 { display: none; } /* tercera capa eliminada: menos ruido de color */
@keyframes drift1 { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(5vw, 3vw, 0) scale(1.08); } }
@keyframes drift2 { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-4vw, 4vw, 0) scale(1.06); } }
/* Grano sutil (sin rejilla decorativa) — fijo, pointer-events none */
.grain {
  position: absolute; inset: 0; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 30%, transparent 80%);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: inherit; font-weight: 600; font-size: 1rem; line-height: 1;
  padding: .8em 1.5em; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap; position: relative;
  transition: transform .15s var(--ease), box-shadow .22s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn--sm { padding: .58em 1.15em; font-size: .92rem; }
.btn--lg { padding: .92em 1.7em; font-size: 1.04rem; }
.btn--block { width: 100%; }
.btn__arrow { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .22s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* Primario: relleno azul de marca sólido, texto blanco (contraste AA holgado) */
.btn--primary {
  color: #fff; background: var(--brand);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--brand-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--primary:active { transform: translateY(0) scale(.985); }

/* Fantasma: stroke nítido, sin glow */
.btn--ghost {
  color: var(--text-strong); background: transparent; border-color: var(--line);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--brand-hi); background: rgba(105, 197, 245, .1); }
.btn--ghost:active { transform: translateY(0) scale(.985); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(10, 14, 24, .6);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease), height .3s var(--ease);
}
.nav.is-scrolled { background: rgba(10, 14, 24, .9); border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

/* Cabecera más alta arriba y que se compacta (y queda fija) al hacer scroll.
   Solo en escritorio: en móvil (≤780px) la barra sigue compacta para no tapar el menú. */
@media (min-width: 781px) {
  .nav { height: 108px; }
  .nav.is-scrolled { height: var(--nav-h); }
  .nav .brand__logo { height: 48px; }
  .nav.is-scrolled .brand__logo { height: 36px; }
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 36px; width: auto; display: block; transition: transform .25s var(--ease), height .3s var(--ease); }
.brand:hover .brand__logo { transform: scale(1.03); }

.nav__links { display: flex; align-items: center; gap: 1.5rem; }
.nav__links > a:not(.btn) { color: var(--text); font-weight: 500; font-size: .96rem; position: relative; }
.nav__links > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--brand-hi); border-radius: 2px; transition: width .25s var(--ease);
}
.nav__links > a:not(.btn):hover { color: var(--text-strong); }
.nav__links > a:not(.btn):hover::after { width: 100%; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  align-items: center; justify-content: center; background: transparent; border: 0; cursor: pointer; border-radius: var(--radius-sm);
}
.nav__toggle span { display: block; width: 24px; height: 2.5px; background: var(--text-strong); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero (split en escritorio, fits viewport) ---------- */
.hero {
  position: relative; min-height: calc(100dvh - var(--nav-h));
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); overflow: hidden;
}
/* Halo ambiental MUY contenido detrás de la escena (un solo acento, sin neón) */
.hero::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  top: 10%; right: -4%; width: min(560px, 54vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(105, 197, 245, .16), transparent 68%);
}
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; gap: clamp(40px, 6vw, 64px); align-items: center; }

.hero__copy { text-align: center; max-width: 640px; margin: 0 auto; }
.hero__eyebrow {
  display: inline-flex; align-items: center; font-weight: 500; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-hi);
  margin-bottom: 1.3rem;
}
.hero__title { font-size: clamp(2.2rem, 6vw, 4rem); margin-bottom: .42em; font-weight: 700; letter-spacing: -.035em; line-height: 1.02; }
.hero__title em { font-style: italic; font-weight: 600; color: var(--brand-hi); }
/* Segunda línea en bloque. La palabra final ROTA (clientes, pacientes, vecinos…) */
.hero__title-l2 { display: block; }
/* Rotador: ancho animado que se ajusta a cada palabra; la palabra entra/sale
   con un pequeño desplazamiento + fundido. El caret parpadea al lado. */
.hero__rotator {
  display: inline-block; position: relative; vertical-align: top;
  transition: width .42s var(--ease); will-change: width;
}
.hero__word {
  display: inline-block; white-space: nowrap;
  font-weight: 600; color: var(--brand-hi);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.hero__word.is-out { opacity: 0; transform: translateY(-.34em); }
.hero__word.is-in  { opacity: 0; transform: translateY(.34em); }
.hero__caret {
  display: inline-block; width: .06em; min-width: 2px; height: .92em;
  margin-left: .1em; vertical-align: -.06em; border-radius: 2px;
  background: var(--brand-hi); animation: caretBlink 1.1s step-end infinite;
}
@keyframes caretBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero__word { transition: none; }
  .hero__caret { animation: none; }
}
.hero__lead { font-size: clamp(1.06rem, 2vw, 1.28rem); color: var(--muted); max-width: 52ch; margin: 0 auto 2rem; }
.hero__cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* Badges de canales bajo el título */
.hero__channels { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 1.5rem; }
.hero__channels-por { font-size: .95rem; color: var(--muted); font-style: italic; margin-right: .15em; }
.channel-badge {
  display: inline-flex; align-items: center; gap: .45em;
  padding: .5em .95em; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--line);
  font-size: .88rem; font-weight: 600; color: var(--text-strong);
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .15s var(--ease);
}
.channel-badge:hover { border-color: rgba(105, 197, 245, .45); background: var(--surface-2); transform: translateY(-2px); }
.channel-badge svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--brand-hi); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ----- Mini-demo guiado "Holia en acción" (3 actos en loop) ----- */
.hero__scene { position: relative; width: 100%; max-width: 480px; margin: 0 auto; }
/* Estructura visible: rejilla de puntos sutil ANCLA la escena (no flota en vacío) */
.scene__grid {
  position: absolute; inset: -7% -5%; border-radius: var(--radius);
  background-image: radial-gradient(rgba(195, 204, 221, .14) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 78% 78% at 50% 50%, #000 38%, transparent 80%);
  mask-image: radial-gradient(ellipse 78% 78% at 50% 50%, #000 38%, transparent 80%);
}
.scene__stage {
  position: relative; border-radius: var(--radius);
  background: linear-gradient(160deg, #18223A, #0D1320);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* Barra superior: dispositivo/canal del acto + indicador de fase */
.scene__bar {
  display: flex; align-items: center; gap: .7rem;
  padding: 12px 16px; border-bottom: 1px solid var(--line-soft);
}
.scene__device { display: inline-flex; align-items: center; gap: .5em; }
.scene__device-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border-radius: 8px; background: rgba(105, 197, 245, .14); border: 1px solid rgba(105, 197, 245, .3);
}
.scene__device-icon svg { width: 15px; height: 15px; fill: none; stroke: var(--brand-hi); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.scene__device-label { font-size: .82rem; font-weight: 600; color: var(--text-strong); }
.scene__phases { margin-left: auto; display: inline-flex; gap: 6px; }
.scene__phase { width: 18px; height: 4px; border-radius: 2px; background: var(--line); transition: background .3s var(--ease); }
.scene__phase.is-active { background: var(--brand-hi); }

/* Viewport. ESTADO POR DEFECTO (sin JS / reduced-motion): crece y muestra un
   COMPUESTO REPRESENTATIVO (Acto 1 WhatsApp + Acto 2 llamada ya contestada con
   su botón "Capturar llamada" y la transferencia), sin animación, nada oculto.
   CON JS (.is-js): altura FIJA y un único acto a la vez (sin saltos de layout,
   siempre legible, sin solapar); los hilos hacen scroll interno como un chat real. */
.scene__viewport { position: relative; padding: 16px; min-height: 420px; display: flex; flex-direction: column; gap: 16px; }
.act { display: flex; flex-direction: column; min-height: 0; }
.act--crm { display: none; } /* el cierre solo aparece con JS */
.act--web { display: none; } /* el chat web solo aparece con JS (el compuesto sin JS ya es representativo) */
.act--call { padding-top: 16px; border-top: 1px solid var(--line-soft); }

.hero__scene.is-js .scene__viewport { height: 420px; min-height: 0; display: block; }
.hero__scene.is-js .act { position: absolute; inset: 16px; display: none; padding-top: 0; border-top: 0; }
.hero__scene.is-js .act.is-current { display: flex; }

/* Hilo de mensajes */
.thread {
  display: flex; flex-direction: column; gap: .5rem; justify-content: flex-start;
  overflow-x: hidden;
}
/* Con JS el hilo hace scroll interno y se ancla abajo */
.hero__scene.is-js .thread {
  height: 100%; overflow-y: auto; scrollbar-width: none;
}
.hero__scene.is-js .thread > :first-child { margin-top: auto; }
.thread::-webkit-scrollbar { display: none; }
.bubble {
  margin: 0; padding: .56em .8em; font-size: .88rem; line-height: 1.4; max-width: 88%;
  border-radius: 14px; color: var(--text-strong);
}
.bubble--in { align-self: flex-start; background: var(--bg-2); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.bubble--out { align-self: flex-end; background: var(--brand); border-bottom-right-radius: 5px; }
.bubble__tag { display: block; font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; opacity: .7; margin-bottom: .15em; font-weight: 600; }

/* Indicador "escribiendo…" */
.typing {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 4px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; border-bottom-left-radius: 5px;
  padding: .7em .85em;
}
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typingDot 1.2s ease-in-out infinite; }
.typing span:nth-child(2) { animation-delay: .18s; }
.typing span:nth-child(3) { animation-delay: .36s; }
@keyframes typingDot { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* Chips dentro del hilo (integración / resultado) */
.thread__chip {
  align-self: flex-start; display: inline-flex; align-items: center; gap: .5em;
  padding: .5em .85em; border-radius: var(--radius-pill);
  background: var(--surface-2); border: 1px solid rgba(105, 197, 245, .4);
  font-size: .8rem; font-weight: 500; color: var(--text-strong);
}
.thread__chip em { font-style: normal; color: var(--brand-hi); font-weight: 600; }
.integ-chip__logo {
  display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex: none;
  border-radius: 5px; background: rgba(255,255,255,.08);
}
.integ-chip__logo svg { width: 15px; height: 15px; fill: var(--brand-hi); }
.result-chip__check {
  display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; flex: none;
  border-radius: 50%; background: var(--brand);
}
.result-chip__check svg { width: 11px; height: 11px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Acto 2: llamada (más rico: ring -> contesta -> conversación -> transferencia) */
.call { display: flex; flex-direction: column; gap: .7rem; height: 100%; min-height: 0; }
.call__top {
  display: flex; align-items: center; gap: .7rem; flex: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px;
}
.call__icon {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none;
  border-radius: var(--radius-sm); background: rgba(105, 197, 245, .14); border: 1px solid rgba(105, 197, 245, .32);
}
.call__icon svg { width: 18px; height: 18px; fill: none; stroke: var(--brand-hi); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Aros de "ring" que se expanden mientras suena; el icono vibra */
.call__ring { position: absolute; inset: 0; border-radius: var(--radius-sm); border: 1.5px solid var(--brand-hi); opacity: 0; }
.act--call.is-ringing .call__ring { animation: callRing 1.6s ease-out infinite; }
.act--call.is-ringing .call__ring--2 { animation-delay: .8s; }
.act--call.is-ringing .call__icon svg { animation: phoneShake .9s ease-in-out infinite; }
@keyframes callRing { 0% { opacity: .55; transform: scale(1); } 100% { opacity: 0; transform: scale(2.1); } }
@keyframes phoneShake { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-12deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(6deg); } }
.call__meta { display: flex; flex-direction: column; line-height: 1.2; flex: none; }
.call__label { font-size: .74rem; color: var(--muted); }
.call__timer { font-size: .92rem; font-weight: 600; color: var(--text-strong); font-variant-numeric: tabular-nums; }

/* Caller ID: Holia reconoce quién llama por su número. Visible al sonar y en curso;
   se oculta tras transferir (la llamada ya no está en Holia). */
.caller-id {
  flex: none; display: flex; align-items: center; gap: .6rem;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 12px;
}
.caller-id__badge {
  display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex: none;
  border-radius: 50%; background: var(--brand);
}
.caller-id__badge svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.caller-id__data { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.caller-id__num { font-size: .9rem; font-weight: 600; color: var(--text-strong); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.caller-id__name { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.caller-id__tag {
  margin-left: auto; flex: none; font-size: .68rem; font-weight: 600; letter-spacing: .04em;
  color: var(--brand-hi); background: rgba(105, 197, 245, .12); border: 1px solid rgba(105, 197, 245, .35);
  padding: .3em .7em; border-radius: var(--radius-pill);
}
.act--call.is-transferred .caller-id { display: none; }
.call__wave { display: flex; align-items: center; gap: 3px; height: 26px; margin-left: auto; }
.call__wave span {
  width: 3px; border-radius: 2px; background: var(--brand-hi); height: 30%;
  animation: callWave 1.1s ease-in-out infinite;
}
.call__wave span:nth-child(1) { animation-delay: 0s; }
.call__wave span:nth-child(2) { animation-delay: .12s; }
.call__wave span:nth-child(3) { animation-delay: .24s; }
.call__wave span:nth-child(4) { animation-delay: .36s; }
.call__wave span:nth-child(5) { animation-delay: .48s; }
.call__wave span:nth-child(6) { animation-delay: .36s; }
.call__wave span:nth-child(7) { animation-delay: .24s; }
.call__wave span:nth-child(8) { animation-delay: .12s; }
.call__wave span:nth-child(9) { animation-delay: 0s; }
@keyframes callWave { 0%,100% { height: 26%; opacity: .65; } 50% { height: 96%; opacity: 1; } }
/* Mientras suena, aún no hay voz: oculta la onda. Al transferir, la onda baja. */
.act--call.is-ringing .call__wave { display: none; }
.act--call.is-transferred .call__wave span { animation: none; height: 20%; opacity: .35; }

/* Botón secundario "Capturar llamada" (función real: un humano toma la llamada).
   Estilo ghost coherente con el sistema; no compite con el CTA del hero. */
.call__capture {
  flex: none; align-self: flex-start;
  display: inline-flex; align-items: center; gap: .45em;
  font-family: inherit; font-size: .78rem; font-weight: 500; line-height: 1;
  color: var(--text-strong); background: transparent;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: .5em .9em; cursor: pointer; white-space: nowrap;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .15s var(--ease);
}
.call__capture svg { width: 14px; height: 14px; fill: none; stroke: var(--brand-hi); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.call__capture:hover { border-color: var(--brand-hi); background: rgba(105, 197, 245, .1); }
.call__capture:active { transform: scale(.97); }
/* Durante el ring (sin contestar) y tras transferir, el botón no aplica */
.act--call.is-ringing .call__capture, .act--call.is-transferred .call__capture { display: none; }

/* Separador entre la parte fija (cabecera/caller-id/capturar) y la conversación */
.call__transcript {
  display: flex; flex-direction: column; gap: .5rem; overflow-x: hidden;
  border-top: 1px solid var(--line); padding-top: .75rem;
}
.hero__scene.is-js .call__transcript { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.hero__scene.is-js .call__transcript > :first-child { margin-top: auto; }
.call__transcript::-webkit-scrollbar { display: none; }
.call__transfer {
  flex: none;
  display: flex; align-items: center; gap: .6rem;
  background: var(--surface-2); border: 1px solid rgba(105, 197, 245, .4); border-radius: var(--radius-sm); padding: 10px 12px;
}
.transfer__avatar {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: none;
  border-radius: 50%; background: var(--navy); border: 1px solid rgba(105, 197, 245,.45);
  font-size: .72rem; font-weight: 700; color: var(--text-strong); letter-spacing: .02em;
}
.transfer__text { font-size: .84rem; font-weight: 500; color: var(--text-strong); }
.transfer__text em { font-style: normal; color: var(--brand-hi); font-weight: 600; }
.transfer__check {
  margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex: none;
  border-radius: 50%; background: var(--brand);
}
.transfer__check svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.call__transfer[hidden] { display: none; }

/* Acto 3: chat en la web (proactivo -> reunión agendada) */
.webchat { display: flex; flex-direction: column; gap: .7rem; height: 100%; min-height: 0; }
.webchat__top {
  flex: none; display: flex; align-items: center; gap: .7rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px;
}
.webchat__ico {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none;
  border-radius: var(--radius-sm); background: rgba(105, 197, 245, .14); border: 1px solid rgba(105, 197, 245, .32);
}
.webchat__ico svg { width: 18px; height: 18px; fill: none; stroke: var(--brand-hi); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.webchat__meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.webchat__label { font-size: .92rem; font-weight: 600; color: var(--text-strong); }
.webchat__page { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.webchat__live {
  margin-left: auto; flex: none; font-size: .68rem; font-weight: 600; letter-spacing: .04em;
  color: var(--brand-hi); background: rgba(105, 197, 245, .12); border: 1px solid rgba(105, 197, 245, .35);
  padding: .3em .7em; border-radius: var(--radius-pill);
}
/* Mismo separador que la llamada entre la parte fija y la conversación */
.webchat__thread { flex: 1; min-height: 0; border-top: 1px solid var(--line); padding-top: .75rem; }
.hero__scene.is-js .webchat__thread { overflow-y: auto; scrollbar-width: none; }
.hero__scene.is-js .webchat__thread > :first-child { margin-top: auto; }
.webchat__thread::-webkit-scrollbar { display: none; }

/* Acto 4: resumen CRM */
.crm { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .55rem; height: 100%; }
.crm__check {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: 50%; background: var(--brand); margin-bottom: .2rem;
}
.crm__check svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.crm__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--text-strong); letter-spacing: -.02em; }
.crm__sub { margin: 0; font-size: .84rem; color: var(--muted); max-width: 32ch; }
.crm__integrations { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-top: .35rem; }
.crm__integ {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .4em .8em; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--line);
  font-size: .78rem; font-weight: 500; color: var(--text-strong);
}
.crm__integ svg { width: 14px; height: 14px; fill: var(--brand-hi); }
.crm__integ svg[stroke] { fill: none; stroke: var(--brand-hi); }

/* Caption: deja claro que es una demostración en vivo */
.scene__caption {
  margin: 0; padding: 9px 16px; border-top: 1px solid var(--line-soft);
  font-size: .72rem; font-weight: 500; letter-spacing: .03em; color: var(--muted);
  display: flex; align-items: center; gap: .5em;
}
.scene__caption::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-hi);
  box-shadow: 0 0 0 3px rgba(105, 197, 245, .18); flex: none;
  animation: liveDot 2.4s ease-in-out infinite;
}
@keyframes liveDot { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* Animación de entrada por beat (JS añade .beat-in al insertar cada elemento) */
@media (prefers-reduced-motion: no-preference) {
  @keyframes beatIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes actIn {
    from { opacity: 0; transform: translateY(8px) scale(.99); }
    to   { opacity: 1; transform: none; }
  }
  .hero__scene.is-js .act.is-current { animation: actIn .45s var(--ease); }
  .beat-in { animation: beatIn .4s var(--ease); }
}

/* Reduced-motion: estado compuesto representativo (Acto 1 completo, sin animación).
   El markup por defecto YA es ese estado, así que no hace falta nada extra aquí. */

/* Escritorio: HERO PARTIDO — texto a la izquierda, escena a la derecha. */
@media (min-width: 981px) {
  .hero__grid { grid-template-columns: 1.12fr .88fr; gap: clamp(32px, 4vw, 56px); }
  .hero__copy { text-align: left; max-width: none; margin: 0; }
  .hero__title { font-size: clamp(2.2rem, 3.6vw, 3.1rem); max-width: 26ch; }
  .hero__lead { max-width: 46ch; margin-left: 0; margin-right: 0; }
  .hero__cta { justify-content: flex-start; }
  .hero__channels { justify-content: flex-start; }
  .hero__scene { margin: 0 0 0 auto; max-width: 480px; }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 9vw, 124px) 0; position: relative; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.section__head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 60px); text-align: center; }
.section__head--left { text-align: left; margin-left: 0; margin-right: 0; }
.kicker {
  display: inline-block; font-weight: 500; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-hi); margin-bottom: .85rem;
}
.section__title { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.section__sub { font-size: clamp(1.04rem, 1.8vw, 1.18rem); color: var(--muted); margin: 0 auto; max-width: var(--measure); }
.section__head--left .section__sub { margin-left: 0; }

/* Qué es — declaración a ancho completo, sin tarjeta, sin isotipo decorativo gigante */
.section--que-es .lead-statement {
  max-width: 22ch; margin: 0 auto; text-align: center;
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.03em;
  font-size: clamp(1.7rem, 4.4vw, 3rem); line-height: 1.12; color: var(--text-strong);
}
.section--que-es .lead-statement em { font-style: italic; color: var(--brand-hi); }
.section--que-es .lead-support {
  max-width: var(--measure); margin: 1.6rem auto 0; text-align: center; color: var(--muted);
  font-size: clamp(1.02rem, 1.7vw, 1.14rem);
}

/* ---------- Tarjeta base (sólida, sin glassmorphism neón) ---------- */
.step, .case {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), border-color .28s var(--ease), background .28s var(--ease);
}
.case:hover {
  transform: translateY(-4px);
  border-color: rgba(105, 197, 245, .45);
  background: var(--surface-2);
}

/* ========== QUÉ HACE — BENTO con ritmo ==========
   Rejilla de 6 columnas. Ritmo asimétrico: celda integraciones ancha (4),
   celda demo ancha (3+3), celdas medias (2), y cierre a ancho completo (6).
   Variación visual real: 3 celdas no son "texto sobre fondo" plano
   (constelación de conectores, mini-demo de reconocimiento, mini-tarjetas de casos). */
.bento { display: grid; gap: 16px; grid-template-columns: repeat(6, 1fr); grid-auto-rows: auto; }
.bento__cell {
  position: relative; padding: 26px 24px; min-width: 0; /* permite encoger en grid (evita desbordes por min-content) */
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), border-color .28s var(--ease), background .28s var(--ease);
  display: flex; flex-direction: column;
}
.bento__cell:hover { transform: translateY(-4px); border-color: rgba(105, 197, 245, .45); background: var(--surface-2); }
/* Reparto de columnas (escritorio): 6 celdas, sin huecos.
   fila1: integ(4) + persona(2)
   fila2: reconoce(3) + llama(3)
   fila3: info(2) + ancha(4) */
.bento__cell--integ { grid-column: span 4; }
.bento__cell:nth-child(2) { grid-column: span 2; }
.bento__cell--demo { grid-column: span 3; }
.bento__cell:nth-child(4) { grid-column: span 3; }
.bento__cell:nth-child(5) { grid-column: span 2; }
.bento__cell--wide { grid-column: span 4; }

.bento__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border-radius: var(--radius-sm); margin-bottom: 1rem;
  background: rgba(105, 197, 245, .12); border: 1px solid rgba(105, 197, 245, .28);
}
.bento__icon svg { width: 23px; height: 23px; fill: none; stroke: var(--brand-hi); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bento__title { font-size: 1.16rem; margin-bottom: .35em; }
.bento__text { color: var(--muted); margin: 0; font-size: .96rem; }
.bento__note { margin: .9rem 0 0; font-size: .82rem; color: var(--muted-dim); }
.bento__lead { margin-bottom: 1.2rem; }

/* Celda 1: constelación de conectores con logos inline */
.bento__cell--integ .bento__lead .bento__title { font-size: 1.3rem; }
.connectors { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.connector {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .5em .85em; border-radius: var(--radius-pill);
  background: var(--bg-2); border: 1px solid var(--line);
  font-size: .86rem; font-weight: 500; color: var(--text-strong);
}
.connector__logo {
  display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex: none;
  border-radius: 6px; background: rgba(105, 197, 245, .12);
}
.connector__logo svg { width: 14px; height: 14px; fill: var(--brand-hi); }
.connector__logo svg[stroke] { fill: none; stroke: var(--brand-hi); }
.connector--status { background: rgba(105, 197, 245, .12); border-color: rgba(105, 197, 245, .4); color: var(--brand-hi); font-weight: 600; }
.connector__check {
  display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex: none;
  border-radius: 50%; background: var(--brand);
}
.connector__check svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Celda 3: mini-demo de reconocimiento por número */
.recog {
  margin-top: 1rem; display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px;
}
.recog__num { font-size: .9rem; font-weight: 600; color: var(--text-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
.recog__arrow { display: inline-flex; flex: none; }
.recog__arrow svg { width: 18px; height: 18px; fill: none; stroke: var(--brand-hi); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.recog__reply { font-size: .86rem; color: var(--text-strong); background: var(--brand); border-radius: 12px; border-bottom-left-radius: 5px; padding: .5em .75em; flex: 1; min-width: 0; }

/* Celda 6 (ancha): mini-tarjetas de casos (label + descripción de 1 línea) */
.case-grid { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.case-mini {
  display: flex; flex-direction: column; gap: .15rem;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--line);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.case-mini:hover { border-color: rgba(105, 197, 245, .4); background: var(--surface-2); }
.case-mini__title { font-size: .92rem; font-weight: 600; color: var(--text-strong); }
.case-mini__desc { font-size: .82rem; color: var(--muted); line-height: 1.35; }

/* ---------- Pasos (carril horizontal con conector, no 3 tarjetas iguales) ---------- */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  counter-reset: step;
}
.step {
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
  padding: 0 28px; position: relative;
}
.step + .step { border-left: 1px solid var(--line); }
.step:hover { transform: none; background: transparent; }
.step__num {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: var(--radius-sm); background: rgba(105, 197, 245, .12); border: 1px solid rgba(105, 197, 245, .3);
  color: var(--brand-hi); font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin-bottom: 1rem;
}
.step__title { font-size: 1.22rem; margin-bottom: .35em; }
.step__text { color: var(--muted); margin: 0; }

/* ---------- Casos de uso (3 tarjetas) ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.case { padding: 30px 28px; }
.case__tag {
  display: inline-block; font-size: .74rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-hi); margin-bottom: .9rem;
}
.case__title { font-size: 1.28rem; margin-bottom: .35em; }
.case__text { color: var(--muted); margin: 0; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 64px); align-items: start; position: relative; z-index: 1; }
.contact__intro { max-width: var(--measure); }
.contact__intro .section__sub { margin: 0 0 1.7rem; text-align: left; }
.contact__direct { display: grid; gap: 1rem; }
.contact__direct li { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; font-weight: 500; }
.contact__direct a { font-size: 1.1rem; color: var(--text-strong); }
.contact__direct a:hover { color: var(--brand-hi); }
.contact__direct-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); flex: none;
}
.contact__direct-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--brand-hi); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact__placeholder { color: var(--muted-dim); font-weight: 400; font-size: .82rem; width: 100%; }

.contact__form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(26px, 4vw, 38px); box-shadow: var(--shadow-sm); position: relative;
}
.field { margin-bottom: 1.1rem; position: relative; }
.field label { display: block; font-weight: 500; font-size: .92rem; color: var(--text-strong); margin-bottom: .45rem; }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--text-strong);
  padding: .8em 1em; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-2);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field textarea { resize: vertical; min-height: 116px; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-hi); background: var(--bg);
  box-shadow: 0 0 0 3px rgba(105, 197, 245, .25);
}
.field input.is-invalid, .field textarea.is-invalid { border-color: #f4748d; box-shadow: 0 0 0 3px rgba(244, 116, 141, .22); }
.field__error { display: block; color: #ffabba; font-size: .84rem; margin-top: .35rem; min-height: 0; }
.field--check { display: grid; grid-template-columns: auto 1fr; gap: .6rem .7rem; align-items: start; position: relative; }
.field--check input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--brand-hi); }
.field--check label { font-weight: 400; font-size: .92rem; color: var(--text); margin: 0; line-height: 1.5; }
.field--check label a { color: var(--brand-hi); text-decoration: underline; }
.field--check .field__error { grid-column: 1 / -1; }

/* Honeypot oculto a humanos */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

.form__status {
  margin: 1rem 0 0; padding: .9em 1.1em; border-radius: var(--radius-sm); font-weight: 500; font-size: .96rem;
}
.form__status.is-success { background: rgba(105, 197, 245, .14); color: #bcdcff; border: 1px solid rgba(105, 197, 245, .4); }
.form__status.is-error { background: rgba(244, 116, 141, .12); color: #ffabba; border: 1px solid rgba(244, 116, 141, .3); }
.form__status a { color: inherit; text-decoration: underline; font-weight: 600; }

/* ============================================================
   Formulario "Pide tu demo" — animaciones (spec 0087)
   ============================================================ */
.contact__form { position: relative; }

/* ---- Campo inválido: shake del campo + glow pulsante del input + error deslizante ---- */
@keyframes fieldShake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-7px); }
  30% { transform: translateX(6px); }
  45% { transform: translateX(-5px); }
  60% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}
@keyframes fieldGlow {
  0% { box-shadow: 0 0 0 0 rgba(244, 116, 141, .5); }
  100% { box-shadow: 0 0 0 9px rgba(244, 116, 141, 0); }
}
.field.is-shaking { animation: fieldShake .5s cubic-bezier(.36, .07, .19, .97) both; }
.field.is-shaking input,
.field.is-shaking textarea { animation: fieldGlow .65s ease-out; }

@keyframes errIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.field__error.is-shown {
  display: flex; align-items: center; gap: .38rem;
  animation: errIn .34s var(--ease, ease) both;
}
.field__error.is-shown::before {
  content: ""; width: 15px; height: 15px; flex: none;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffabba' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z'/%3E%3C/svg%3E");
}

/* ---- Envío OK: overlay con "orbe de voz" (ondas concéntricas) + check dibujado ---- */
.form-success {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 1.4rem; overflow: hidden;
  background: radial-gradient(120% 120% at 50% 38%, rgba(17, 24, 39, .97), rgba(10, 14, 24, .99));
  border: 1px solid rgba(105, 197, 245, .2); border-radius: 18px;
  opacity: 0; animation: successFade .4s ease forwards;
}
@keyframes successFade { to { opacity: 1; } }

.form-success__orb { position: relative; width: 120px; height: 120px; display: grid; place-items: center; margin-bottom: 1.3rem; }
.form-success__core {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 34% 30%, #b7e6ff, var(--brand-hi) 46%, #2f7fb8 100%);
  box-shadow: 0 0 36px rgba(105, 197, 245, .6), inset 0 0 18px rgba(255, 255, 255, .4);
  animation: orbPulse 2.4s ease-in-out infinite;
}
@keyframes orbPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.form-success__ring {
  position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%;
  border: 2px solid rgba(105, 197, 245, .55); animation: ringWave 2.4s ease-out infinite;
}
.form-success__ring:nth-child(2) { animation-delay: .8s; }
.form-success__ring:nth-child(3) { animation-delay: 1.6s; }
@keyframes ringWave { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.5); opacity: 0; } }

.form-success__check { width: 40px; height: 40px; }
.form-success__check path {
  fill: none; stroke: #0e1830; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 52; stroke-dashoffset: 52; animation: checkDraw .5s .35s var(--ease, ease) forwards;
}
@keyframes checkDraw { to { stroke-dashoffset: 0; } }

.form-success__title { font-size: 1.5rem; font-weight: 700; color: var(--text-strong); margin: 0; opacity: 0; animation: riseIn .5s .5s ease forwards; outline: none; }
.form-success__text { color: var(--muted); margin: .45rem 0 0; max-width: 34ch; opacity: 0; animation: riseIn .5s .66s ease forwards; }
@keyframes riseIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.form-success__spark {
  position: absolute; bottom: 32%; width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-hi); opacity: 0; animation: sparkRise 1.5s ease-out forwards;
}
@keyframes sparkRise {
  0% { opacity: 0; transform: translateY(0) scale(.5); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-150px) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .field.is-shaking, .field.is-shaking input, .field.is-shaking textarea { animation: none; }
  .form-success, .form-success__title, .form-success__text { animation: none; opacity: 1; }
  .form-success__core, .form-success__ring, .form-success__spark { animation: none; }
  .form-success__ring { display: none; }
  .form-success__check path { animation: none; stroke-dashoffset: 0; }
}

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--bg-2); border-top: 1px solid var(--line); padding: clamp(52px, 7vw, 76px) 0 30px; color: var(--text); }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand .brand--footer { display: inline-block; }
.footer .brand__logo { height: 64px; }
.footer__tag { color: var(--muted); max-width: 42ch; margin: 1.1rem 0 0; font-size: .96rem; }
.footer__col h4 { color: var(--text-strong); font-size: 1rem; margin-bottom: 1.1rem; font-weight: 600; }
.footer__col a { display: block; color: var(--muted); font-weight: 400; margin-bottom: .65rem; font-size: .96rem; }
.footer__col a:hover { color: var(--brand-hi); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem;
  border-top: 1px solid var(--hairline); margin-top: 42px; padding-top: 26px;
  color: var(--muted-dim); font-size: .88rem;
}
.footer__bottom p { margin: 0; }
.footer__note { color: var(--muted-dim); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
.bento .reveal:nth-child(2), .cases .reveal:nth-child(2) { transition-delay: .08s; }
.bento .reveal:nth-child(3), .cases .reveal:nth-child(3) { transition-delay: .16s; }
.bento .reveal:nth-child(4) { transition-delay: .24s; }
.bento .reveal:nth-child(5) { transition-delay: .32s; }
.bento .reveal:nth-child(6) { transition-delay: .4s; }
.steps .step.reveal:nth-child(2) { transition-delay: .1s; }
.steps .step.reveal:nth-child(3) { transition-delay: .2s; }
.hero__title.reveal { transition-delay: .06s; }
.hero__lead.reveal { transition-delay: .14s; }
.hero__cta.reveal { transition-delay: .22s; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  /* Bento sobre 2 columnas: celdas destacada/ancha a ancho completo. */
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__cell,
  .bento__cell:nth-child(2), .bento__cell:nth-child(4), .bento__cell:nth-child(5) { grid-column: auto; }
  .bento__cell--integ, .bento__cell--demo, .bento__cell--wide { grid-column: 1 / -1; }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .cases { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { padding: 0 0 28px; }
  .step + .step { border-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  .nav__toggle { display: flex; }
  .br-d { display: none; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10, 14, 24, .97); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    padding: 14px 24px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none; visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav__links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; visibility: visible; }
  .nav__links > a:not(.btn) { padding: .95rem 0; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; }
  .nav__links > a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 1rem; }
  .hero { min-height: auto; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  /* Bento a 1 columna limpia */
  .bento { grid-template-columns: 1fr; }
  .bento__cell,
  .bento__cell:nth-child(2), .bento__cell:nth-child(4), .bento__cell:nth-child(5),
  .bento__cell--integ, .bento__cell--demo, .bento__cell--wide { grid-column: auto; }
  .case-grid { grid-template-columns: 1fr; }
  .cases { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
}

/* prefers-reduced-motion: detener animaciones decorativas */
@media (prefers-reduced-motion: reduce) {
  .aurora__layer,
  .call__wave span, .call__ring, .call__icon svg, .scene__caption::before { animation: none !important; }
}

/* ---------- Marquesina de capacidades (…y mucho más) ---------- */
.capabilities-more__lead {
  text-align: center; color: var(--muted); font-size: 1.06rem;
  margin: 4px 0 22px; letter-spacing: .01em;
}
.marquee {
  position: relative; width: 100%; overflow: hidden; padding: 2px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee-scroll 46s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; gap: 12px; padding-right: 12px; flex-shrink: 0; }
.marquee__chip {
  white-space: nowrap; padding: .68em 1.15em; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--surface); color: var(--text-strong);
  font-weight: 500; font-size: .95rem;
}
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; }
  .marquee__group[aria-hidden="true"] { display: none; }
}
@media (max-width: 560px) {
  .marquee__chip { font-size: .9rem; padding: .6em 1em; }
}

/* Logo en línea dentro de texto (p. ej. "Pide tu demo de <logo>") */
.inline-logo { height: .82em; width: auto; display: inline-block; vertical-align: -.06em; margin-left: .22em; }

/* ============================================================
   Secciones de producto: chat en tu web, proactividad (avisos +
   recados), base de conocimiento y panel + copiloto.
   Reutilizan .thread/.bubble/.thread__chip del hero y los tokens
   de tarjeta del bento.
   ============================================================ */

/* ---------- Layout a dos columnas (copy + visual) ---------- */
.duo { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 5vw, 60px); align-items: start; }
.duo--center { align-items: center; }
.duo__title { font-size: 1.45rem; margin-bottom: .45em; }
.duo__text { color: var(--muted); }
.duo__visual { min-width: 0; }

/* Lista con checks */
.ticklist { display: grid; gap: .75rem; margin-top: 1.4rem; }
/* OJO: el li NO puede ser flex (partiría los <strong> en columnas); check absoluto + padding. */
.ticklist li { position: relative; padding-left: 34px; color: var(--text); font-size: .98rem; line-height: 1.5; }
.ticklist li::before {
  content: ""; position: absolute; left: 0; top: .12em; width: 21px; height: 21px;
  border-radius: 50%; background: rgba(105, 197, 245, .14); border: 1px solid rgba(105, 197, 245, .35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2369C5F5' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 12px 12px;
}

/* ---------- Mockup del chat web ---------- */
.chatw {
  max-width: 400px; margin: 0 auto; overflow: hidden; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg);
}
.chatw__head { display: flex; align-items: center; gap: .7rem; padding: 13px 16px; background: var(--brand); }
.chatw__avatar {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25);
  color: #fff; font-weight: 600; font-size: 1rem;
}
.chatw__id { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.chatw__name { color: #fff; font-weight: 600; font-size: .93rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chatw__status { display: inline-flex; align-items: center; gap: .38em; font-size: .76rem; color: rgba(255, 255, 255, .85); }
.chatw__dot { width: 8px; height: 8px; border-radius: 50%; background: #7ef0b2; box-shadow: 0 0 6px rgba(126, 240, 178, .8); }
.chatw__body { padding: 16px 16px 14px; background: var(--bg-2); }
.chatw__foot {
  display: flex; align-items: center; gap: .55rem; padding: 11px 13px;
  border-top: 1px solid var(--line); background: var(--surface);
}
.chatw__input {
  flex: 1; min-width: 0; padding: .58em 1em; border-radius: var(--radius-pill);
  background: var(--bg-2); border: 1px solid var(--line);
  color: var(--muted); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chatw__mic {
  display: inline-flex; align-items: center; gap: .42em; flex: none;
  padding: .58em .95em; border-radius: var(--radius-pill);
  background: rgba(105, 197, 245, .14); border: 1px solid rgba(105, 197, 245, .4);
  color: var(--brand-hi); font-weight: 600; font-size: .84rem;
}
.chatw__mic svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Chip de traspaso IA -> humano */
.handoff-chip { align-self: center; }
.handoff-chip__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex: none;
  border-radius: 50%; background: rgba(105, 197, 245, .14);
}
.handoff-chip__icon svg { width: 13px; height: 13px; fill: none; stroke: var(--brand-hi); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Chip "código: 1 línea" bajo el mockup */
.code-chip {
  display: flex; align-items: center; justify-content: center; gap: .7em; flex-wrap: wrap;
  margin: 1.1rem auto 0; max-width: 400px; text-align: center;
}
.code-chip code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem;
  color: var(--brand-hi); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: .5em .8em; white-space: nowrap;
}
.code-chip span { font-size: .84rem; color: var(--muted); font-weight: 500; }

/* ---------- Rejilla de tarjetas de funcionalidad ---------- */
.fgrid { display: grid; gap: 16px; margin-top: clamp(36px, 5vw, 52px); }
.fgrid--3 { grid-template-columns: repeat(3, 1fr); }
.fgrid--4 { grid-template-columns: repeat(4, 1fr); margin-top: 0; }
.fcard {
  position: relative; padding: 24px 22px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), border-color .28s var(--ease), background .28s var(--ease);
  display: flex; flex-direction: column;
}
.fcard:hover { transform: translateY(-4px); border-color: rgba(105, 197, 245, .45); background: var(--surface-2); }
.fcard__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border-radius: var(--radius-sm); margin-bottom: .9rem;
  background: rgba(105, 197, 245, .12); border: 1px solid rgba(105, 197, 245, .28);
}
.fcard__icon svg { width: 21px; height: 21px; fill: none; stroke: var(--brand-hi); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fcard__title { font-size: 1.08rem; margin-bottom: .35em; }
.fcard__text { color: var(--muted); margin: 0; font-size: .92rem; }

/* ---------- Proactividad: dos tarjetas con mini-conversación ---------- */
.proact { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.proact__card {
  position: relative; padding: 28px 26px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), border-color .28s var(--ease), background .28s var(--ease);
  display: flex; flex-direction: column;
}
.proact__card:hover { transform: translateY(-4px); border-color: rgba(105, 197, 245, .45); background: var(--surface-2); }
.mini-thread {
  margin-top: auto; padding: 14px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.proact__card .bento__text { margin-bottom: 1.1rem; }
.mini-thread .thread__chip { font-size: .76rem; }
.note-chip { align-self: stretch; border-style: dashed; background: var(--surface); }
.note-chip__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex: none;
  border-radius: 5px; background: rgba(105, 197, 245, .14);
}
.note-chip__icon svg { width: 13px; height: 13px; fill: none; stroke: var(--brand-hi); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Base de conocimiento: fuente -> pregunta -> respuesta con cita ---------- */
#conocimiento .section__head { margin-bottom: 0; }
.kb {
  max-width: 440px; margin: 0 auto; padding: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: .9rem;
}
.kb__source {
  display: flex; align-items: center; gap: .55rem;
  padding: .6em .85em; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--line);
  font-size: .85rem; font-weight: 500; color: var(--text-strong); min-width: 0;
}
.kb__source > span:not(.kb__source-icon) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb__source em { margin-left: auto; flex: none; font-style: normal; font-size: .76rem; font-weight: 600; color: var(--brand-hi); }
.kb__source-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: none;
  border-radius: 6px; background: rgba(105, 197, 245, .12);
}
.kb__source-icon svg { width: 15px; height: 15px; fill: none; stroke: var(--brand-hi); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.kb__cite {
  display: flex; align-items: center; gap: .5rem;
  font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line-soft); padding-top: .8rem;
}
.kb__cite svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--brand-hi); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Copiloto: tarjeta ancha copy + demo ---------- */
.copilot {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 44px); align-items: center;
  margin-top: 16px; padding: clamp(26px, 4vw, 38px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.copilot__copy .bento__text { margin: 0; font-size: 1rem; }
.copilot__demo {
  padding: 16px; min-width: 0;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
}

/* ---------- Responsive de las secciones nuevas ---------- */
@media (max-width: 940px) {
  .duo { grid-template-columns: 1fr; }
  .duo--center .section__head--left { text-align: center; margin-inline: auto; }
  .duo--center .section__head--left .section__sub { margin-inline: auto; }
  .fgrid--3 { grid-template-columns: 1fr; }
  .fgrid--4 { grid-template-columns: repeat(2, 1fr); }
  .proact { grid-template-columns: 1fr; }
  .copilot { grid-template-columns: 1fr; }
  #conocimiento .section__head { margin-bottom: clamp(28px, 5vw, 40px); }
}
@media (max-width: 560px) {
  .fgrid--4 { grid-template-columns: 1fr; }
  .chatw { max-width: 100%; }
}

/* ============================================================
   Páginas legales (aviso legal, privacidad, cookies)
   Prosa larga y legible sobre el mismo lienzo oscuro de marca.
   ============================================================ */
.legal-main { padding-top: calc(var(--nav-h) + clamp(28px, 5vw, 56px)); padding-bottom: clamp(56px, 8vw, 96px); }
.legal { max-width: 820px; margin: 0 auto; }
.legal__eyebrow { display: inline-block; font-weight: 500; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-hi); margin-bottom: .8rem; }
.legal__title { font-size: clamp(1.9rem, 4.4vw, 2.9rem); margin-bottom: .5rem; }
.legal__updated { color: var(--muted-dim); font-size: .9rem; margin: 0 0 2rem; }

/* Aviso de borrador (documento base pendiente de revisión legal) */
.legal__draft {
  display: flex; gap: .8rem; align-items: flex-start;
  background: rgba(105, 197, 245, .08); border: 1px solid rgba(105, 197, 245, .3);
  border-radius: var(--radius); padding: 16px 18px; margin: 0 0 2.4rem; color: var(--text);
  font-size: .92rem; line-height: 1.5;
}
.legal__draft svg { width: 20px; height: 20px; flex: none; margin-top: .1em; fill: none; stroke: var(--brand-hi); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.legal h2 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); margin: 2.4rem 0 .7rem; scroll-margin-top: calc(var(--nav-h) + 16px); }
.legal h3 { font-size: 1.08rem; margin: 1.5rem 0 .5rem; color: var(--text-strong); }
.legal p, .legal li { color: var(--text); font-size: 1rem; line-height: 1.7; }
.legal p { margin: 0 0 1rem; }
.legal ul { list-style: disc; padding-left: 1.3rem; margin: 0 0 1.2rem; display: grid; gap: .45rem; }
.legal ul li { padding-left: .2rem; }
.legal a { color: var(--brand-hi); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--text-strong); }
.legal strong { color: var(--text-strong); }
.legal address { font-style: normal; color: var(--text); line-height: 1.7; }

/* Índice de contenidos */
.legal__toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 2.4rem; }
.legal__toc h2 { margin: 0 0 .6rem; font-size: 1rem; color: var(--text-strong); }
.legal__toc ol { list-style: decimal; padding-left: 1.3rem; display: grid; gap: .35rem; color: var(--muted); }
.legal__toc a { color: var(--muted); text-decoration: none; }
.legal__toc a:hover { color: var(--brand-hi); }

/* Placeholder para que legal complete ([RAZÓN SOCIAL], [NIF]…) */
.ph {
  color: #ffd27a; background: rgba(255, 210, 122, .1);
  border: 1px dashed rgba(255, 210, 122, .5); border-radius: 6px;
  padding: 0 .35em; font-weight: 600; font-style: normal; white-space: nowrap;
}

/* Tabla de cookies */
.legal__table-wrap { overflow-x: auto; margin: 0 0 1.4rem; }
.legal table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: .92rem; }
.legal th, .legal td { text-align: left; padding: .7em .8em; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--text-strong); font-weight: 600; background: var(--surface); }
.legal td { color: var(--text); }

.legal__back { display: inline-flex; align-items: center; gap: .4em; margin-top: 2.6rem; font-weight: 500; }
.legal__back svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================
   Banner de consentimiento de cookies (aparece al entrar).
   z-index máximo: SIEMPRE por encima del chatbox. El chatbox no
   se carga hasta que se acepta; si se rechaza, no se guarda nada.
   ============================================================ */
/* Capa bloqueante: cubre TODA la página (negro a 0.4) y captura los clics;
   solo la tarjeta del banner queda operativa (aceptar / rechazar). */
.cc {
  position: fixed; inset: 0; z-index: 2147483000;
  display: flex; align-items: flex-end; justify-content: center;
  padding: clamp(16px, 4vw, 40px) clamp(14px, 3vw, 28px);
  background: rgba(0, 0, 0, .4);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  animation: ccOverlayIn .3s ease both;
}
.cc.is-closing { animation: ccOverlayOut .3s ease both; }
@keyframes ccOverlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ccOverlayOut { from { opacity: 1; } to { opacity: 0; } }
.cc__inner {
  pointer-events: auto;
  width: 100%; max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; gap: clamp(14px, 3vw, 28px);
  background: rgba(13, 19, 32, .98); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 18px 20px;
  animation: ccIn .45s var(--ease) both;
}
@keyframes ccIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.cc__text { flex: 1; min-width: 0; }
.cc__text strong { display: block; color: var(--text-strong); font-family: var(--font-display); font-size: 1.02rem; margin-bottom: .25rem; }
.cc__text p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.cc__text a { color: var(--brand-hi); text-decoration: underline; text-underline-offset: 2px; }
.cc__actions { display: flex; gap: .6rem; flex: none; }

@media (max-width: 640px) {
  .cc__inner { flex-direction: column; align-items: stretch; }
  .cc__actions { justify-content: stretch; }
  .cc__actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .cc, .cc.is-closing, .cc__inner { animation: none; } }
