/* =========================================================
   FLUUXY — Design System
   Paleta: bg #f7f3fa · primary #9b51e0 · secondary #c5a3d5
   ========================================================= */

:root {
  /* Marca */
  --primary: #9b51e0;
  --primary-600: #8a3dd4;
  --primary-700: #7430b8;
  --primary-300: #c5a3d5;
  --primary-100: #ede2f7;
  --primary-50: #f3ecfa;

  /* Fondos / superficies */
  --bg: #f7f3fa;
  --surface: #ffffff;
  --surface-2: #fbf9fd;
  --dark: #160f24;
  --dark-2: #1f1633;

  /* Texto */
  --ink: #1c1429;
  --text: #463c55;
  --muted: #786d89;
  --on-dark: #f4eefb;
  --on-dark-muted: #b9aecb;

  /* Líneas / sombras (sutiles: estilo plano y pulido) */
  --border: #e7dcef;
  --border-strong: #d8c9e6;
  --hairline: #efe8f5;
  --shadow-sm: 0 1px 2px rgba(28, 20, 41, .04);
  --shadow-md: 0 2px 8px rgba(28, 20, 41, .05);
  --shadow-lg: 0 6px 20px rgba(28, 20, 41, .06);
  --shadow-glow: 0 6px 18px rgba(116, 48, 184, .14);

  /* Gradientes */
  --grad-primary: linear-gradient(135deg, #b97bec 0%, #9b51e0 45%, #7430b8 100%);
  --grad-soft: linear-gradient(135deg, #f3ecfa 0%, #f7f3fa 100%);

  /* Tipografía */
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Radios (más nítidos) */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;

  /* Movimiento */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* Layout */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
}

/* Barra de progreso de scroll */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200;
  background: var(--grad-primary); transition: width .1s linear; will-change: width;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--primary); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Botones ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: 13px 22px; border-radius: 12px; border: 1.5px solid transparent;
  cursor: pointer; white-space: nowrap; line-height: 1;
  transition: color .3s var(--ease), border-color .3s var(--ease), transform .25s var(--ease), box-shadow .3s var(--ease);
}
/* Badge circular de flecha (estilo Tekmino): rota en hover */
.btn .arrow-badge {
  width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center;
  font-size: .82rem; line-height: 1; flex: 0 0 auto;
  transition: transform .42s var(--ease), background .3s var(--ease);
}
.btn-primary .arrow-badge { background: rgba(255,255,255,.18); }
.btn-outline .arrow-badge { background: var(--primary-100); color: var(--primary-700); }
.btn:hover .arrow-badge { transform: rotate(45deg); }
.btn-outline:hover .arrow-badge { background: rgba(255,255,255,.22); color: #fff; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: translateY(101%); transition: transform .42s var(--ease);
}
.btn:active { transform: scale(.975); }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

/* Flecha opcional dentro de botones (se desliza en hover) */
.btn svg.ico { transition: transform .35s var(--ease); }
.btn:hover svg.ico { transform: translateX(4px); }

.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary::before { background: var(--primary-700); }
.btn-primary:hover { box-shadow: var(--shadow-glow); }
.btn-primary:hover::before { transform: translateY(0); }

.btn-outline { background: transparent; color: var(--primary-700); border-color: var(--border-strong); }
.btn-outline::before { background: var(--primary); }
.btn-outline:hover { color: #fff; border-color: var(--primary); }
.btn-outline:hover::before { transform: translateY(0); }

.btn-ghost { position: relative; background: transparent; color: var(--ink); padding: 10px 4px; }
.btn-ghost::before { content: none; }
.btn-ghost::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: 4px; height: 1.5px;
  background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.btn-ghost:hover { color: var(--primary-700); }
.btn-ghost:hover::after { transform: scaleX(1); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  border-top-left-radius: 22px; border-top-right-radius: 22px;
  margin-top: -20px;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease, transform .4s var(--ease);
  will-change: transform;
}
.site-header.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.site-header.header-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { display: inline-flex; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--ink); letter-spacing: -.03em; }

.nav { display: flex; gap: 6px; }
.nav a {
  position: relative; font-size: .92rem; font-weight: 500; color: var(--text);
  padding: 8px 12px; transition: color .25s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--primary); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--primary-700); }
.nav a:hover::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px; border-radius: 8px;
}
.nav-toggle span { width: 24px; height: 2.4px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column; gap: 4px; padding: 12px var(--gutter) 24px;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 13px 8px; font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-nav a.btn { margin-top: 12px; border: none; justify-content: center; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(10px, 1.4vw, 16px); }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 50% at 78% 8%, rgba(155, 81, 224, .16), transparent 70%),
    radial-gradient(45% 40% at 10% 100%, rgba(197, 163, 213, .22), transparent 70%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 64px); align-items: center;
}

.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--primary-700);
  background: var(--primary-100); padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); font-weight: 800; margin-bottom: 20px; }
.grad { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Páginas de producto/servicio — hero */
.prod-hero { padding-top: clamp(28px, 4vw, 48px); }
.prod-hero .breadcrumb { display: none; }
.prod-hero h1 { font-family: var(--font-head); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -.02em; margin: 14px 0 14px; }
.prod-tagline { font-family: var(--font-head); font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 600; color: var(--primary-700); margin-bottom: 16px; }
.prod-desc { color: var(--text); font-size: 1.08rem; line-height: 1.7; max-width: 540px; margin-bottom: 28px; }
.prod-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.prod-chips span {
  font-size: .8rem; font-weight: 600; color: var(--primary-700);
  background: var(--primary-50); border: 1px solid var(--primary-100);
  padding: 7px 14px; border-radius: 999px;
}
.prod-hero-visual { display: flex; justify-content: center; }
.prod-hero-visual .mock-card { width: 100%; max-width: 460px; }
@media (max-width: 880px) { .prod-hero .split { grid-template-columns: 1fr; } .prod-desc { max-width: none; } }

/* SparklesText — estrellitas que titilan sobre el texto */
.sparkles-text { position: relative; display: inline-block; }
.sparkle { position: absolute; pointer-events: none; z-index: 2; width: 20px; height: 20px; opacity: 0; transform: translate(-50%, -50%); will-change: transform, opacity; }
.sparkle svg { display: block; width: 100%; height: 100%; }
.sparkle.anim { animation: sparkle-twinkle 1.9s ease-in-out infinite; }
@keyframes sparkle-twinkle {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0) rotate(75deg); }
  50%  { opacity: 1; transform: translate(-50%, -50%) scale(var(--s, 1)) rotate(120deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0) rotate(150deg); }
}
@media (prefers-reduced-motion: reduce) { .sparkle { display: none; } }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--muted); max-width: 540px; margin-bottom: 32px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.hero-ticker {
  position: relative; height: 30px; overflow: hidden;
  font-family: var(--font-head); font-weight: 600; color: var(--primary-700);
  display: flex; align-items: center; gap: 10px; font-size: 1rem;
}
.hero-ticker::before { content: "›"; color: var(--primary); font-size: 1.3rem; }
.hero-ticker li {
  position: absolute; left: 22px; opacity: 0; transform: translateY(12px);
  transition: opacity .5s ease, transform .5s ease; white-space: nowrap;
}
.hero-ticker li.active { opacity: 1; transform: translateY(0); }

/* Hero visual */
.hero-visual { position: relative; }
.panel-glow {
  position: absolute; inset: 8% 0; z-index: 0;
  background: var(--grad-primary); filter: blur(70px); opacity: .12; border-radius: 50%;
}
.app-card {
  position: relative; z-index: 1; background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); overflow: hidden; will-change: transform;
  transition: transform .2s var(--ease);
}
.app-card-top {
  display: flex; align-items: center; gap: 7px; padding: 14px 18px;
  background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.app-card-top .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.app-card-top .dot:first-child { background: #e98a8a; }
.app-card-top .dot:nth-child(2) { background: #ecc680; }
.app-card-top .dot:nth-child(3) { background: #9bd6a0; }
.app-title { font-size: .82rem; font-weight: 600; color: var(--muted); margin-left: 6px; }
.live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; color: var(--primary-700); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 0 rgba(52,199,89,.5); animation: pulse 2s infinite; }

.app-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.chat-row { display: flex; }
.chat-row.out { justify-content: flex-end; }
.bubble {
  max-width: 80%; padding: 11px 15px; font-size: .88rem; line-height: 1.5; border-radius: 16px;
}
.chat-row.in .bubble { background: var(--primary-50); color: var(--ink); border-bottom-left-radius: 5px; }
.chat-row.out .bubble { background: var(--grad-primary); color: #fff; border-bottom-right-radius: 5px; }
.chat-meta { display: flex; gap: 8px; }
.tag { font-size: .72rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; }
.tag-ai { background: var(--primary-100); color: var(--primary-700); }
.tag-ok { background: #e3f6e6; color: #2a8a3e; }

.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px; }
.kpi { text-align: center; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 6px; }
.kpi strong { display: block; font-family: var(--font-head); font-size: 1.2rem; color: var(--primary-700); }
.kpi span { font-size: .7rem; color: var(--muted); }

.flow { display: flex; align-items: center; justify-content: center; gap: 8px; padding-top: 4px; }
.node { font-size: .74rem; font-weight: 600; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px; }
.node-ai { background: var(--grad-primary); color: #fff; border: none; }
.flow .arrow { color: var(--primary-300); font-weight: 700; }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,199,89,.5); } 70% { box-shadow: 0 0 0 8px rgba(52,199,89,0); } 100% { box-shadow: 0 0 0 0 rgba(52,199,89,0); } }

/* ---------- Trust ---------- */
.trust { padding: 36px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.trust-label { text-align: center; font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); margin-bottom: 18px; }
.trust-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: clamp(32px, 4vw, 48px); }
.trust-logos li {
  font-family: var(--font-head); font-weight: 600; font-size: .96rem; color: var(--primary-700);
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 12px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.trust-logos li:hover { transform: translateY(-3px); border-color: var(--primary-300); box-shadow: 0 10px 24px rgba(116, 48, 184, .12); }

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); }
#func-title { max-width: 920px; margin-left: auto; margin-right: auto; }
.kicker { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .14em; color: var(--primary); text-transform: uppercase; margin-bottom: 14px; }
.kicker-light { color: var(--primary-300); }
.section h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 16px; }
.section-lead { font-size: 1.1rem; color: var(--muted); }
.inline-link { color: var(--primary-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Cards 3 */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 34px 30px; transition: border-color .4s var(--ease), background .4s var(--ease);
}
.card:hover { border-color: var(--primary); background: var(--surface-2); }
.card:hover .card-ic { background: var(--primary); color: #fff; transform: rotate(-6deg); }
.card-ic, .feature-ic {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px;
  background: var(--primary-100); color: var(--primary-700); margin-bottom: 20px;
  transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--muted); }

/* ====================================================================
   "Por qué Fluuxy" — tarjetas premium (scoped, no afecta a .card)
   ==================================================================== */
#por-que { position: relative; overflow: hidden; }
#por-que::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(58% 42% at 50% -4%, rgba(155, 81, 224, .10), transparent 70%),
    radial-gradient(40% 38% at 92% 8%, rgba(116, 48, 184, .06), transparent 72%);
}
#por-que .container { position: relative; z-index: 1; }

.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2vw, 28px); margin-top: clamp(40px, 5vw, 64px);
}

.why-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  padding: clamp(40px, 4vw, 54px) clamp(30px, 3vw, 40px) 36px;
  min-height: clamp(300px, 30vw, 360px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: 0 1px 2px rgba(28, 20, 41, .04), 0 10px 30px rgba(28, 20, 41, .05);
}
/* hairline gradient border (revelado en hover) */
.why-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, var(--primary-300), rgba(155, 81, 224, 0) 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .5s var(--ease); pointer-events: none;
}
/* barra de acento superior */
.why-card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-primary);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease); border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.why-grid .why-card.in:hover {
  transform: translateY(-8px); border-color: transparent;
  box-shadow: 0 1px 2px rgba(28, 20, 41, .04), 0 22px 48px rgba(116, 48, 184, .18);
}
.why-card:hover::before { opacity: 1; }
.why-card:hover::after { transform: scaleX(1); }

/* numeral fantasma (contorno) */
.why-card .why-num {
  position: absolute; top: 26px; right: 30px;
  font-family: var(--font-head); font-weight: 800; font-size: 3.7rem; line-height: 1;
  letter-spacing: -.04em; color: transparent;
  -webkit-text-stroke: 2px var(--primary-100);
  transition: -webkit-text-stroke-color .5s var(--ease), transform .6s var(--ease);
  pointer-events: none; z-index: 0;
}
.why-card:hover .why-num { -webkit-text-stroke-color: var(--primary-300); transform: translateY(-3px); }

/* icono con gradiente y glow */
.why-ic {
  position: relative; z-index: 1;
  width: 66px; height: 66px; display: grid; place-items: center;
  border-radius: 18px; margin-bottom: 30px;
  background: var(--grad-primary); color: #fff;
  box-shadow: 0 8px 22px rgba(116, 48, 184, .30);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.why-ic svg { width: 28px; height: 28px; }
.why-card:hover .why-ic {
  transform: translateY(-2px) scale(1.05) rotate(-4deg);
  box-shadow: 0 14px 30px rgba(116, 48, 184, .40);
}

.why-card h3 {
  position: relative; z-index: 1;
  font-family: var(--font-head); font-size: clamp(1.35rem, 1.5vw, 1.6rem); line-height: 1.22;
  letter-spacing: -.014em; color: var(--ink); margin-bottom: 14px;
}
.why-card p {
  position: relative; z-index: 1;
  color: #574d66; font-size: 1.06rem; line-height: 1.7; margin-bottom: 28px;
}

/* tag-pill al pie */
.why-tag {
  position: relative; z-index: 1; margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 17px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: .84rem;
  letter-spacing: .01em; color: var(--primary-700);
  background: var(--primary-50); border: 1px solid var(--primary-100);
  transition: background .5s var(--ease), border-color .5s var(--ease), color .5s var(--ease);
}
.why-tag::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 0 3px rgba(155, 81, 224, .18);
}
.why-card:hover .why-tag { background: #fff; border-color: var(--primary-300); }

/* ---- Entrada AUTO-FAN: arrancan apiladas/inclinadas en grises y se
        separan solas (al entrar en viewport, vía .reveal.in) ---- */
.why-grid .why-card {
  transition: transform 1.4s var(--ease), filter 1.15s var(--ease),
              opacity .6s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.why-grid .why-card:not(.in) { filter: grayscale(1); opacity: 1; }
.why-grid .why-card:nth-child(1):not(.in) {
  transform: translateX(106%) translateY(-6px) skewY(-7deg) rotate(-5deg); z-index: 1;
}
.why-grid .why-card:nth-child(2):not(.in) {
  transform: translateY(22px) skewY(-7deg); z-index: 2;
}
.why-grid .why-card:nth-child(3):not(.in) {
  transform: translateX(-106%) translateY(50px) skewY(-7deg) rotate(5deg); z-index: 3;
}
/* estado final legible: transform:none lo aporta .reveal.in; aquí solo color */
.why-grid .why-card.in { filter: grayscale(0); opacity: 1; }
/* hover nítido (cancela el delay de stagger inline que pone el JS) */
.why-grid .why-card.in:hover { transition-duration: .45s; transition-delay: 0s !important; }

/* móvil (1 columna): entrada solo vertical, sin disparo lateral ni inclinación */
@media (max-width: 980px) {
  .why-grid .why-card:nth-child(1):not(.in),
  .why-grid .why-card:nth-child(2):not(.in),
  .why-grid .why-card:nth-child(3):not(.in) {
    transform: translateY(30px); z-index: auto;
  }
}
/* sin animación: nunca dejar el estado apilado */
@media (prefers-reduced-motion: reduce) {
  .why-grid .why-card:nth-child(1):not(.in),
  .why-grid .why-card:nth-child(2):not(.in),
  .why-grid .why-card:nth-child(3):not(.in) {
    transform: none; filter: none;
  }
}

/* ---------- "Por qué" — lista editorial (sin cards) ---------- */
.why2 { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.why2-intro { position: sticky; top: 110px; }
.why2-intro .kicker { margin-bottom: 14px; }
.why2-intro h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 16px; }
.why2-intro .section-lead { margin-bottom: 24px; }

.why2-list { border-top: 1px solid var(--border); }
.why2-item {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 3vw, 38px); align-items: start;
  padding: clamp(26px, 3.4vw, 40px) 0; border-bottom: 1px solid var(--border);
  transition: padding-left .4s var(--ease);
}
.why2-no { font-family: var(--font-head); font-weight: 800; font-size: 1rem; color: var(--primary-300); padding-top: 9px; letter-spacing: .04em; transition: color .4s var(--ease); }
.why2-body h3 { font-size: clamp(1.3rem, 2.4vw, 1.85rem); margin-bottom: 12px; transition: color .4s var(--ease); }
.why2-body p { color: var(--muted); max-width: 540px; font-size: 1.02rem; }
.why2-item:hover { padding-left: 10px; }
.why2-item:hover .why2-no { color: var(--primary); }
.why2-item:hover .why2-body h3 { color: var(--primary-700); }

@media (max-width: 900px) {
  .why2 { grid-template-columns: 1fr; gap: 26px; }
  .why2-intro { position: static; }
}

/* ---------- Sobre (dark) ---------- */
.section-dark { background: var(--dark); color: var(--on-dark); position: relative; overflow: hidden; }
.section-dark::before {
  content: ""; position: absolute; top: -30%; right: -10%; width: 50%; height: 80%;
  background: radial-gradient(circle, rgba(155,81,224,.35), transparent 70%); filter: blur(40px);
}
.about-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(36px, 6vw, 70px); align-items: center; }
.section-dark h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 20px; }
.about-text { color: var(--on-dark-muted); font-size: 1.1rem; max-width: 560px; margin-bottom: 28px; }
.badge-live { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #fff; padding: 11px 18px; border-radius: 999px; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #34c759; animation: pulse 2s infinite; }

/* palabra clave con gradiente (sobre fondo oscuro) */
.grad-text {
  background: linear-gradient(100deg, #cba6f2, var(--primary-300) 48%, #b97bec);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.about-channels { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.about-channels span {
  font-size: .8rem; font-weight: 600; color: var(--on-dark);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  padding: 6px 13px; border-radius: 999px;
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.about-channels span:hover {
  background: rgba(155,81,224,.2); border-color: rgba(155,81,224,.5);
  color: #fff; transform: translateY(-2px);
}

/* ---- Panel operativo (marco tipo ventana de app) ---- */
.about-stats-wrap {
  position: relative; z-index: 1; overflow: hidden;
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 30px 70px -34px rgba(0,0,0,.7);
}
.aw-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px; border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.aw-dots { display: inline-flex; gap: 6px; flex: none; }
.aw-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.2); }
.aw-dots i:nth-child(1) { background: #e98a8a; }
.aw-dots i:nth-child(2) { background: #ecc680; }
.aw-dots i:nth-child(3) { background: #9bd6a0; }
.aw-title { font-family: var(--font-head); font-weight: 600; font-size: .84rem; color: var(--on-dark-muted); letter-spacing: .01em; }
.aw-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: .76rem; font-weight: 600; color: var(--on-dark); }

.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; }
.stat-card {
  position: relative; isolation: isolate; overflow: hidden;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.09); border-radius: var(--r-lg);
  padding: 24px 22px;
  transition: border-color .4s var(--ease), background .4s var(--ease),
              transform .4s var(--ease), box-shadow .4s var(--ease);
}
.stat-card > * { position: relative; z-index: 2; }
/* borde-gradiente revelado en hover */
.stat-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: 1;
  background: linear-gradient(140deg, rgba(155,81,224,.75), rgba(155,81,224,0) 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s var(--ease); pointer-events: none;
}
/* spotlight que sigue al cursor */
.stat-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0; pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(155,81,224,.25), transparent 62%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.stat-card:hover {
  border-color: rgba(155,81,224,.4); background: rgba(255,255,255,.055); transform: translateY(-4px);
  box-shadow: 0 18px 38px -18px rgba(116,48,184,.6);
}
.stat-card:hover::before, .stat-card:hover::after { opacity: 1; }
.stat-ic {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: rgba(155,81,224,.2); color: var(--primary-300); margin-bottom: 18px;
  transition: transform .4s var(--ease), background .4s var(--ease), color .4s var(--ease);
}
.stat-card:hover .stat-ic { transform: translateY(-2px) scale(1.06); background: rgba(155,81,224,.32); color: #fff; }
.stat-card strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; color: #fff; line-height: 1; margin-bottom: 8px; }
.stat-card span { color: var(--on-dark-muted); font-size: .92rem; }
.stat-feature { background: linear-gradient(160deg, rgba(155,81,224,.3), rgba(155,81,224,.05)); border-color: rgba(155,81,224,.4); }
.stat-feature .stat-ic { background: rgba(255,255,255,.16); color: #fff; }

/* =========================================================
   EXPLORADOR DE FUNCIONALIDADES (premium)
   ========================================================= */
/* ====================================================================
   Funcionalidades — Bento grid (celdas de distinto tamaño + previews)
   ==================================================================== */
.bento {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 1.6vw, 22px); margin-top: clamp(36px, 5vw, 56px);
}
.bento-cell {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 16px;
  padding: clamp(24px, 2.4vw, 34px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  box-shadow: 0 1px 2px rgba(28,20,41,.04), 0 10px 30px rgba(28,20,41,.05);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.bento-chat  { grid-column: 1; grid-row: 1; }
.bento-sales { grid-column: 2; grid-row: 1; }
.bento-agents { grid-column: 1 / span 2; grid-row: 2; flex-direction: row; align-items: center; gap: clamp(24px, 3vw, 48px);
  background: linear-gradient(165deg, var(--primary-50), var(--surface) 62%); border-color: var(--primary-100); }
.bento-voice { grid-column: 1 / span 2; grid-row: 3; flex-direction: row; align-items: center; gap: clamp(24px, 3vw, 48px); }
.bento-agents-text { flex: 1; display:flex; flex-direction:column; gap:14px; }
/* borde-gradiente + spotlight en hover */
.bento-cell::before {
  content:""; position:absolute; inset:0; border-radius:inherit; padding:1px; z-index:1;
  background: linear-gradient(140deg, var(--primary-300), rgba(155,81,224,0) 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity:0; transition: opacity .4s var(--ease); pointer-events:none;
}
.bento-cell::after {
  content:""; position:absolute; inset:0; border-radius:inherit; z-index:0; pointer-events:none;
  background: radial-gradient(280px circle at var(--mx,50%) var(--my,50%), rgba(155,81,224,.12), transparent 60%);
  opacity:0; transition: opacity .4s var(--ease);
}
.bento-cell:hover { transform: translateY(-5px); border-color: transparent;
  box-shadow: 0 1px 2px rgba(28,20,41,.04), 0 22px 46px rgba(116,48,184,.15); }
.bento-cell:hover::before, .bento-cell:hover::after { opacity: 1; }
.bento-cell > * { position: relative; z-index: 2; }
.bento-top { display:flex; align-items:center; gap:14px; }
.bento-ic { flex:none; width:52px; height:52px; border-radius:14px; display:grid; place-items:center;
  background: var(--grad-primary); color:#fff; box-shadow: 0 8px 20px rgba(116,48,184,.28);
  transition: transform .4s var(--ease); }
.bento-cell:hover .bento-ic { transform: translateY(-2px) scale(1.05) rotate(-4deg); }
.bento-top h3 { font-family: var(--font-head); font-size: 1.2rem; letter-spacing:-.012em; color: var(--ink); }
.bento-tag { font-size: .86rem; color: var(--muted); }
.bento-desc { color:#574d66; font-size: .98rem; line-height: 1.6; }
.bento-preview { margin-top: auto; }
.bento-preview .mock-card { max-width: 100%; box-shadow: var(--shadow-md); }
.bento-cell .tj-link { margin-top: 4px; }
.bento-voice-text { flex: 1; display:flex; flex-direction:column; gap:14px; }
.bento-voice-preview { flex: 1; margin: 0; max-width: 420px; }
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr; }
  .bento-chat, .bento-sales, .bento-agents, .bento-voice { grid-column: 1; grid-row: auto; }
  .bento-agents, .bento-voice { flex-direction: column; align-items: stretch; }
  .bento-voice-preview, .bento-preview { max-width: 100%; }
}

.explorer { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(22px, 3vw, 44px); align-items: stretch; }
.explorer-tabs { display: flex; flex-direction: column; gap: 12px; }
.exp-item { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; transition: border-color .35s var(--ease), box-shadow .35s var(--ease); }
.exp-item.is-active { border-color: var(--primary); box-shadow: var(--shadow-md); }
.exp-head { width: 100%; display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: none; border: 0; cursor: pointer; text-align: left; font-family: var(--font-body); }
.exp-ic { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 13px; background: var(--primary-100); color: var(--primary-700); display: grid; place-items: center; transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease); }
.exp-item.is-active .exp-ic { background: var(--primary); color: #fff; transform: rotate(-6deg); }
.exp-head-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.exp-name { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; color: var(--ink); }
.exp-tag { font-size: .85rem; color: var(--muted); }
.exp-chevron { margin-left: auto; flex: 0 0 auto; color: var(--muted); transition: transform .35s var(--ease), color .35s var(--ease); }
.exp-item.is-active .exp-chevron { transform: rotate(90deg); color: var(--primary); }

.exp-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .42s var(--ease); }
.exp-item.is-active .exp-detail { grid-template-rows: 1fr; }
.exp-detail-inner { overflow: hidden; }
.exp-detail-pad { padding: 0 22px 22px 82px; }
.exp-detail p { color: var(--muted); margin-bottom: 14px; }

/* Stage / paneles */
.explorer-stage { position: relative; border: 1px solid var(--border); border-radius: var(--r-xl); background: radial-gradient(120% 100% at 100% 0%, var(--primary-50), var(--surface) 55%); overflow: hidden; min-height: 440px; box-shadow: var(--shadow-md); }
.exp-panel { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: clamp(22px, 3vw, 40px); opacity: 0; transform: translateY(16px) scale(.985); pointer-events: none; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.exp-panel.is-active { opacity: 1; transform: none; pointer-events: auto; }

/* Mockups */
.mock-card { width: 100%; max-width: 440px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.mock-head { display: flex; align-items: center; gap: 12px; }
.mock-ava { width: 42px; height: 42px; border-radius: 12px; background: var(--grad-primary); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; flex: 0 0 auto; }
.mock-ava.lg { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto; font-size: 1.1rem; }
.mock-head strong { display: block; font-size: .95rem; color: var(--ink); }
.mock-head > div span { font-size: .8rem; color: var(--muted); }
.mock-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; color: #2a8a3e; }
.mock-live i { width: 7px; height: 7px; border-radius: 50%; background: #34c759; animation: pulse 2s infinite; }
.mock-row { display: flex; flex-wrap: wrap; gap: 8px; }
.mock-chip { font-size: .78rem; font-weight: 600; color: var(--primary-700); background: var(--primary-50); border: 1px solid var(--primary-100); padding: 6px 12px; border-radius: 999px; }
.mock-flow { display: flex; align-items: center; justify-content: center; gap: 9px; padding-top: 4px; }
.mf-node { font-size: .78rem; font-weight: 600; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); padding: 8px 13px; border-radius: 999px; }
.mf-ai { background: var(--grad-primary); color: #fff; border: 0; }
.mf-arrow { color: var(--primary-300); font-weight: 700; }
.mock-score { margin-left: auto; font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--primary-700); }
.mock-bar { height: 8px; border-radius: 999px; background: var(--primary-100); overflow: hidden; }
.mock-bar i { display: block; height: 100%; background: var(--grad-primary); border-radius: 999px; }
.mock-meta { display: flex; align-items: center; justify-content: space-between; font-size: .86rem; color: var(--muted); }
.mock-meta strong { color: var(--primary-700); font-family: var(--font-head); }
.mock-call { text-align: center; align-items: center; }
.mock-call-title { font-family: var(--font-head); color: var(--ink); }
.mock-wave { display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 40px; }
.mock-wave span { width: 4px; height: 10px; border-radius: 2px; background: var(--primary); animation: wave 1s ease-in-out infinite; }
.mock-wave span:nth-child(2n) { animation-delay: .15s; }
.mock-wave span:nth-child(3n) { animation-delay: .3s; }
.mock-wave span:nth-child(4n) { animation-delay: .45s; }
.mock-wave span:nth-child(5n) { animation-delay: .2s; }
@keyframes wave { 0%, 100% { height: 9px; } 50% { height: 34px; } }
@media (prefers-reduced-motion: reduce) { .mock-wave span { animation: none; height: 20px; } }

@media (max-width: 900px) {
  .explorer { grid-template-columns: 1fr; }
  .explorer-stage { order: 2; min-height: 360px; }
  .exp-detail-pad { padding: 0 20px 22px 20px; }
}

/* ---------- Funcionalidades ---------- */
.feature-list { display: flex; flex-direction: column; gap: 18px; max-width: 920px; margin: 0 auto; }
.feature {
  display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 30px 32px; transition: border-color .4s var(--ease), background .4s var(--ease);
}
.feature:hover { border-color: var(--primary); background: var(--surface-2); }
.feature:hover .feature-ic { background: var(--primary); color: #fff; transform: rotate(-6deg); }
.feature-ic { width: 58px; height: 58px; margin: 0; }
.feature-body h3 { font-size: 1.4rem; margin-bottom: 8px; }
.feature-body p { color: var(--muted); margin-bottom: 16px; max-width: 620px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chips a {
  font-size: .82rem; font-weight: 600; color: var(--primary-700); background: var(--primary-50);
  border: 1px solid var(--primary-100); padding: 7px 14px; border-radius: 999px; transition: background .2s, color .2s;
}
.chips a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Demo ---------- */
.section-demo { background: var(--surface-2); }
.demo-frame {
  position: relative; max-width: 920px; margin: 0 auto; aspect-ratio: 16 / 9;
  border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border);
  background: linear-gradient(135deg, #2a1d44, #160f24); box-shadow: var(--shadow-lg);
  display: grid; place-items: center;
}
.demo-frame::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, rgba(155,81,224,.4), transparent 60%); }
.demo-play {
  position: relative; z-index: 2; width: 84px; height: 84px; border-radius: 50%; border: none; cursor: pointer;
  background: #fff; color: var(--primary-700); display: grid; place-items: center;
  box-shadow: var(--shadow-glow); transition: transform .2s ease;
}
.demo-play:hover { transform: scale(1.08); }
.demo-overlay { position: absolute; bottom: 22px; left: 0; right: 0; z-index: 2; text-align: center; color: rgba(255,255,255,.85); font-size: .92rem; font-weight: 500; }

/* ---------- Planes ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 36px 32px; display: flex; flex-direction: column;
  transition: border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}
.plan:hover { transform: translateY(-5px); border-color: var(--primary-300); box-shadow: var(--shadow-lg); }
.plan-ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-100); color: var(--primary-700); margin-bottom: 22px; }
.plan h3 { font-size: 1.4rem; margin-bottom: 6px; }
.plan-for { color: var(--muted); font-size: .92rem; min-height: 42px; margin-bottom: 22px; }
.plan-price { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.plan-price .soon { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: var(--primary-700); }
.plan-price small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .82rem; color: var(--muted); margin-top: 6px; }
.plan-feats { display: flex; flex-direction: column; gap: 13px; margin-bottom: 30px; flex: 1; }
.plan-feat-header { font-weight: 600; padding-left: 0 !important; }
.plan-feat-header::before { display: none !important; }
.plan-feats li { position: relative; padding-left: 30px; font-size: .94rem; color: var(--text); }
.plan-feats li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--primary-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237430b8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* ---- Plan destacado (oscuro premium) ---- */
.plan-featured {
  background: linear-gradient(165deg, #2a1d44 0%, var(--dark) 60%);
  border: 1px solid rgba(155, 81, 224, .5);
  box-shadow: 0 30px 70px -34px rgba(116, 48, 184, .65);
}
.plan-featured::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0; pointer-events: none;
  background: radial-gradient(75% 45% at 50% 0%, rgba(155, 81, 224, .35), transparent 70%);
}
.plan-featured > * { position: relative; z-index: 1; }
.plan-featured:hover { transform: translateY(-5px); border-color: rgba(155, 81, 224, .85); }
.plan-featured h3 { color: #fff; }
.plan-featured .plan-for { color: var(--on-dark-muted); }
.plan-featured .plan-ic { background: rgba(255, 255, 255, .12); color: #fff; }
.plan-featured .plan-price { border-color: rgba(255, 255, 255, .14); }
.plan-featured .plan-price .soon { color: #fff; }
.plan-featured .plan-price .soon small { color: var(--on-dark-muted); }
.plan-featured .plan-feats li { color: var(--on-dark); }
.plan-featured .plan-feats li::before {
  background: rgba(255, 255, 255, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.plan-featured .btn-primary { background: #fff; color: var(--primary-700); box-shadow: none; }
.plan-featured .btn-primary::before { background: var(--primary-100); }
.plan-featured .btn-primary:hover { color: var(--primary-700); }

.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%); z-index: 2;
  background: var(--grad-primary); color: #fff; font-family: var(--font-head); font-size: .74rem; font-weight: 700;
  letter-spacing: .04em; padding: 7px 18px; border-radius: 999px; box-shadow: 0 8px 22px rgba(155, 81, 224, .5);
}
.pricing-note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 28px; max-width: 680px; margin-inline: auto; }

/* ---------- FAQ ---------- */
.section-faq { background: var(--surface-2); }
.faq-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 70px); align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; transition: border-color .2s; }
.faq-item[open] { border-color: var(--primary-300); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 24px; font-family: var(--font-head); font-weight: 600;
  font-size: 1.04rem; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--primary); font-weight: 400; transition: transform .25s; line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 24px 22px; color: var(--muted); }

/* ---------- CTA final ---------- */
.cta-final { padding: clamp(60px, 8vw, 100px) 0; background: var(--dark); position: relative; overflow: hidden; }
.cta-final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 70% at 50% 0%, rgba(155,81,224,.35), transparent 70%); }
.cta-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; text-align: center; }
.cta-final h2 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 14px; }
.cta-final p { color: var(--on-dark-muted); font-size: 1.1rem; margin-bottom: 34px; }
.cta-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: left; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field:nth-child(3) { grid-column: 1 / -1; }
.cta-form .btn { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 600; color: var(--on-dark-muted); }
.field input {
  font-family: var(--font-body); font-size: 1rem; padding: 13px 16px; border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #fff; transition: border-color .2s, background .2s;
}
.field input::placeholder { color: rgba(255,255,255,.4); }
.field input:focus { outline: none; border-color: var(--primary-300); background: rgba(255,255,255,.1); }
.form-msg { grid-column: 1 / -1; text-align: center; font-size: .9rem; color: #7ee59a; min-height: 20px; margin: 0; }
.form-msg.error { color: #ff9b9b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-2); color: var(--on-dark-muted); padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin: 16px 0 20px; max-width: 320px; font-size: .92rem; }
.social { display: flex; gap: 12px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.06); color: var(--on-dark-muted); transition: background .2s, color .2s, transform .2s; }
.social a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col a { display: block; padding: 6px 0; font-size: .92rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 24px; font-size: .86rem; }
.footer-legal { display: flex; gap: 22px; }
.footer-legal a:hover { color: #fff; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid, .about-grid, .faq-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin-inline: auto; }
  .about-stats-wrap { max-width: 460px; margin-inline: auto; }
  .cards-3, .pricing { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .why-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .plan-featured { transform: none; }
  .plan-featured:hover { transform: translateY(-5px); }
  .feature { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 620px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .cta-form { grid-template-columns: 1fr; }
  .field:nth-child(3) { grid-column: auto; }
  .hero-actions .btn { flex: 1; }
}

/* ---------- Accesibilidad: reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   COMPONENTES DE PÁGINAS INTERNAS
   ========================================================= */

/* Estado activo de navegación */
.nav a[aria-current="page"] { color: var(--primary-700); font-weight: 600; }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- Page hero (subpáginas) ---------- */
.page-hero { position: relative; padding: clamp(48px, 7vw, 88px) 0 clamp(36px, 5vw, 56px); overflow: hidden; text-align: center; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(55% 60% at 50% 0%, rgba(155, 81, 224, .14), transparent 70%);
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); max-width: 900px; margin: 14px auto 16px; }
.page-hero .lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); max-width: 880px; margin: 0 auto 26px; }
.page-hero .hero-actions { justify-content: center; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; font-size: .84rem; color: var(--muted); }
.breadcrumb a { color: var(--primary-700); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--border-strong); }

/* ---------- Grid de cards genérico ---------- */
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

/* ---------- Suite de producto — bento grid (servicios, namespace sbento) ---------- */
.sbento {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(178px, 1fr); gap: 16px;
  margin-top: clamp(40px, 5vw, 60px);
  grid-template-areas:
    "agents agents chat   sales"
    "agents agents voice  mails"
    "flows  flows  crm    insights";
}
.sbento > :nth-child(1) { grid-area: agents; }
.sbento > :nth-child(2) { grid-area: chat; }
.sbento > :nth-child(3) { grid-area: sales; }
.sbento > :nth-child(4) { grid-area: voice; }
.sbento > :nth-child(5) { grid-area: flows; }
.sbento > :nth-child(6) { grid-area: crm; }
.sbento > :nth-child(7) { grid-area: insights; }
.sbento > :nth-child(8) { grid-area: mails; }

.sbento-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 26px 24px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-xl);
  box-shadow: 0 1px 2px rgba(28, 20, 41, .04), 0 8px 24px rgba(28, 20, 41, .05);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.sbento-card > * { position: relative; z-index: 1; }
.sbento-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, var(--primary-300), rgba(155, 81, 224, 0) 52%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0;
  transition: opacity .45s var(--ease); pointer-events: none;
}
.sbento-card:hover {
  transform: translateY(-5px); border-color: transparent;
  box-shadow: 0 1px 2px rgba(28, 20, 41, .04), 0 20px 44px rgba(116, 48, 184, .15);
}
.sbento-card:hover::before { opacity: 1; }
.sbento-ic {
  width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px;
  background: var(--primary-100); color: var(--primary-700); margin-bottom: 16px;
  transition: transform .45s var(--ease), background .45s var(--ease), color .45s var(--ease);
}
.sbento-card:hover .sbento-ic { background: var(--grad-primary); color: #fff; transform: translateY(-2px) rotate(-4deg); }
.sbento-card .tagline { font-family: var(--font-head); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.sbento-card h3 { font-size: 1.22rem; margin: 7px 0 9px; color: var(--ink); }
.sbento-card p { color: #574d66; font-size: .95rem; line-height: 1.6; }
.agents-thinking { font-size: .9rem !important; color: var(--primary) !important; font-style: italic; margin-bottom: 14px !important; }
.agents-brain { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.brain-item { display: flex; align-items: flex-start; gap: 12px; }
.brain-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); margin-top: 5px; box-shadow: 0 0 0 3px var(--primary-100); }
.brain-item div { display: flex; flex-direction: column; gap: 2px; }
.brain-item strong { font-size: .95rem; font-weight: 700; color: var(--ink); }
.brain-item span { font-size: .85rem; color: #574d66; line-height: 1.5; }
/* Agents hero — red animada + pills */
.agents-sub { font-size: .9rem; color: var(--muted); margin-bottom: 18px; line-height: 1.65; }
.agents-checks { display: flex; flex-direction: column; gap: 10px; }
.agents-check-pill { background: var(--primary-50); border-radius: var(--r-md); padding: 11px 14px; font-size: .86rem; color: var(--text); line-height: 1.55; }
.agents-check-pill b { color: var(--primary-700); font-weight: 700; }
.agents-network { margin: 8px 0 14px; }
.brain-svg { width: 100%; height: auto; display: block; }
.agents-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.agents-pill { background: var(--primary-50); border-radius: var(--r-md); padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.agents-pill b { font-size: .83rem; font-weight: 700; color: var(--primary-700); }
.agents-pill span { font-size: .78rem; color: var(--muted); line-height: 1.4; }
@media (prefers-reduced-motion: reduce) { .brain-svg * { animation-duration: 0s !important; } }

/* celda destacada: Fluuxy Agents (el cerebro) */
.sbento > :nth-child(1) {
  background: linear-gradient(165deg, var(--primary-50), var(--surface) 72%);
  border-color: var(--primary-100);
}
.sbento > :nth-child(1) .sbento-ic {
  background: var(--grad-primary); color: #fff; width: 60px; height: 60px;
  box-shadow: 0 8px 20px rgba(116, 48, 184, .28); margin-bottom: 22px;
}
.sbento > :nth-child(1) h3 { font-size: 1.85rem; margin-top: auto; }
.sbento > :nth-child(1) p { font-size: 1.04rem; }

@media (max-width: 900px) {
  .sbento { grid-template-columns: 1fr 1fr; grid-template-areas: none; grid-auto-rows: auto; }
  .sbento > * { grid-area: auto; }
  .sbento > :nth-child(1) { grid-column: 1 / -1; }
  .sbento > :nth-child(1) h3 { margin-top: 0; }
}
@media (max-width: 560px) {
  .sbento { grid-template-columns: 1fr; }
  .sbento > :nth-child(1) { grid-column: auto; }
  .sbento > :nth-child(1) h3 { font-size: 1.5rem; }
}

/* ---------- Servicios profesionales — timeline / proceso ---------- */
.svc-timeline { position: relative; max-width: 720px; margin: clamp(40px, 5vw, 60px) auto 0; }
.svc-timeline::before {
  content: ""; position: absolute; left: 27px; top: 12px; bottom: 12px; width: 2px;
  background: linear-gradient(var(--primary), var(--primary-100));
}
.svc-step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 22px; padding-bottom: 34px; }
.svc-step:last-child { padding-bottom: 0; }
.svc-node {
  position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center; background: var(--grad-primary); color: #fff;
  box-shadow: 0 8px 20px rgba(116, 48, 184, .28);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.svc-step:hover .svc-node { transform: scale(1.06) rotate(-4deg); box-shadow: 0 12px 26px rgba(116, 48, 184, .36); }
.svc-body { padding-top: 3px; }
.svc-num { font-family: var(--font-head); font-weight: 800; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.svc-step h4 { font-size: 1.12rem; margin: 5px 0 6px; color: var(--ink); }
.svc-step p { color: var(--muted); font-size: .95rem; line-height: 1.6; max-width: 54ch; }
@media (max-width: 560px) {
  .svc-timeline::before { left: 23px; }
  .svc-step { grid-template-columns: 48px 1fr; gap: 16px; }
  .svc-node { width: 48px; height: 48px; }
}

/* ---------- Casos de éxito ---------- */
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.case-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 32px 30px; transition: border-color .4s var(--ease), background .4s var(--ease); display: flex; flex-direction: column; }
.case-card:hover { border-color: var(--primary); background: var(--surface-2); }
.case-sector { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-700); background: var(--primary-50); padding: 5px 12px; border-radius: 999px; align-self: flex-start; margin-bottom: 16px; }
.case-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.case-card .case-quote { color: var(--text); font-style: italic; margin-bottom: 20px; }
.case-metrics { display: flex; gap: 22px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border); }
.case-metric strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--primary-700); line-height: 1; }
.case-metric span { font-size: .76rem; color: var(--muted); }

/* ---------- Caso destacado (Pleyx) ---------- */
.case-feature {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 4vw, 56px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: clamp(30px, 4vw, 56px);
  box-shadow: 0 1px 2px rgba(28, 20, 41, .04), 0 16px 44px rgba(28, 20, 41, .06);
}
.case-feature::before {
  content: ""; position: absolute; top: -30%; right: -8%; width: 48%; height: 80%;
  background: radial-gradient(circle, rgba(155, 81, 224, .10), transparent 70%); pointer-events: none;
}
.case-feature > * { position: relative; z-index: 1; }
.case-brand { display: flex; align-items: center; gap: 16px; margin: 8px 0 6px; }
.case-logo { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; flex: none; box-shadow: 0 6px 18px rgba(28, 20, 41, .14); }
.case-feature-title { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.02em; color: var(--ink); margin: 0; }
.case-feature-tagline { font-size: 1.1rem; color: var(--primary-700); font-weight: 600; margin-bottom: 18px; }
.case-feature-desc { color: var(--text); line-height: 1.7; margin-bottom: 22px; }
.case-points { list-style: none; display: flex; flex-direction: column; gap: 11px; margin: 0 0 26px; }
.case-points li { position: relative; padding-left: 30px; color: var(--text); line-height: 1.5; }
.case-points li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 19px; height: 19px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--primary-100); color: var(--primary-700); font-size: .66rem; font-weight: 800;
}
.case-feature-side { display: flex; flex-direction: column; gap: 18px; }
.case-metrics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.case-metrics-grid .case-metric {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px 18px;
}
.case-testi {
  background: linear-gradient(160deg, var(--primary-50), var(--surface) 82%);
  border: 1px solid var(--primary-100); border-radius: var(--r-lg); padding: 20px 22px;
}
.case-testi p { font-style: italic; color: var(--text); line-height: 1.5; margin-bottom: 10px; }
.case-testi cite { font-style: normal; font-size: .82rem; color: var(--muted); font-weight: 600; }

@media (max-width: 820px) {
  .case-feature { grid-template-columns: 1fr; }
}

/* ---------- Quiénes somos / valores ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split .reveal img, .split-visual { border-radius: var(--r-lg); }
/* texto con gradiente sobre fondo claro */
.grad-ink { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Historia — hero full-bleed con imagen/video de fondo y texto encima */
.hist-hero {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  padding: clamp(96px, 15vw, 200px) 0;
  margin: clamp(10px, 1.4vw, 16px) clamp(10px, 1.4vw, 16px) 0;
  border-radius: clamp(20px, 3vw, 38px);
}
.hist-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hist-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 44% at 50% 0%, rgba(155, 81, 224, .16), transparent 64%),
    linear-gradient(180deg, rgba(247, 243, 250, .88) 0%, rgba(247, 243, 250, .8) 55%, rgba(247, 243, 250, .85) 100%);
  transition: opacity .8s var(--ease);
}
.hist-hero > .container { position: relative; z-index: 1; }
.hist-hero-inner { max-width: 920px; margin: 0 auto; transition: opacity .6s var(--ease); }
/* modo inmersivo: tras 6s de inactividad se oculta el texto y el scrim → solo el video */
.hist-hero.is-immersive .hist-hero-inner { opacity: 0; pointer-events: none; }
.hist-hero.is-immersive .hist-scrim { opacity: 0; }
.hist-hero .kicker { margin-bottom: 14px; }
.hist-hero h1, .hist-hero h2 { font-family: var(--font-head); font-size: clamp(2.2rem, 5.2vw, 3.75rem); line-height: 1.12; letter-spacing: -.02em; color: var(--ink); margin-bottom: 18px; }
.hist-hero .breadcrumb { justify-content: center; margin-bottom: 16px; }
.hist-lead { max-width: 700px; margin: 0 auto; color: var(--text); font-size: clamp(1.05rem, 2vw, 1.2rem); line-height: 1.7; }
.hist-note {
  max-width: 760px; margin: clamp(26px, 3vw, 38px) auto 0; text-align: center;
  font-size: 1.08rem; line-height: 1.7; color: var(--text);
}

/* Nuestra razón de ser — editorial 2-col + cita destacada */
.razon-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.razon-head h2 { font-family: var(--font-head); font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.15; letter-spacing: -.02em; color: var(--ink); margin: 14px 0 18px; }
.razon-lead { color: var(--text); font-size: 1.06rem; line-height: 1.8; }
.razon-callout {
  position: relative; overflow: hidden; padding: clamp(28px, 3vw, 42px);
  border-radius: var(--r-xl); border: 1px solid var(--primary-100);
  background: linear-gradient(160deg, var(--primary-50), var(--surface) 88%);
  box-shadow: 0 18px 44px -22px rgba(116, 48, 184, .35);
}
.razon-quote { position: absolute; top: 2px; left: 20px; font-family: var(--font-head); font-weight: 800; font-size: 5rem; line-height: 1; color: var(--primary-300); }
.razon-callout p { position: relative; z-index: 1; color: var(--ink); font-size: 1.14rem; line-height: 1.6; font-weight: 500; margin-top: 14px; }
.razon-stats { margin-top: clamp(40px, 5vw, 60px); }
@media (max-width: 860px) { .razon-grid { grid-template-columns: 1fr; gap: 28px; } }
.hist-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: clamp(28px, 4vw, 44px);
}
.hist-stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 24px 22px; text-align: center;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.hist-stat:hover { transform: translateY(-4px); border-color: var(--primary-300); box-shadow: 0 14px 30px -14px rgba(116, 48, 184, .4); }
.hist-stat strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.8rem; color: var(--primary-700); line-height: 1; margin-bottom: 6px; }
.hist-stat span { font-size: .84rem; color: var(--muted); }
@media (max-width: 720px) { .hist-stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .hist-stats { grid-template-columns: 1fr; } }

/* Misión / Visión — display-cards apiladas que se separan al hover */
.mv-hint { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 18px; font-style: italic; }
.mv-stack { position: relative; height: 360px; max-width: 940px; margin: 14px auto 0; }
.mv-card {
  position: absolute; top: 10px; left: 50%; width: 440px; min-height: 300px;
  padding: 32px 30px; background: var(--surface);
  border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: var(--r-xl);
  box-shadow: 0 16px 44px rgba(28, 20, 41, .10);
  transition: transform .6s var(--ease), filter .6s var(--ease), box-shadow .6s var(--ease);
  will-change: transform;
}
.mv-mision { transform: translateX(-50%) translate(-26px, -8px) skewY(-5deg) rotate(-3deg); z-index: 1; filter: grayscale(1); }
.mv-vision { transform: translateX(-50%) translate(26px, 10px) skewY(-5deg) rotate(3deg); z-index: 2; }
.mv-stack:hover .mv-mision { transform: translateX(-50%) translate(-242px, 0) skewY(0) rotate(0); filter: grayscale(0); box-shadow: 0 24px 50px rgba(116,48,184,.18); }
.mv-stack:hover .mv-vision { transform: translateX(-50%) translate(242px, 0) skewY(0) rotate(0); box-shadow: 0 24px 50px rgba(116,48,184,.18); }
.mv-ic {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px;
  background: var(--grad-primary); color: #fff; margin-bottom: 16px; box-shadow: 0 8px 18px rgba(116,48,184,.26);
}
.mv-card h3 { font-family: var(--font-head); font-size: 1.32rem; color: var(--ink); margin-bottom: 10px; }
.mv-card p { color: var(--text); line-height: 1.6; }
@media (max-width: 860px), (hover: none) {
  .mv-hint { display: none; }
  .mv-stack { height: auto; max-width: 480px; }
  .mv-card { position: static; width: auto; transform: none !important; filter: none !important; margin-bottom: 18px; min-height: 0; }
}

/* Valores — tarjetas premium con numeral fantasma */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
/* banner que ocupa el espacio libre junto a la 5ª tarjeta (3 columnas) */
.value-media {
  grid-column: span 3; align-self: stretch;
  position: relative; overflow: hidden; min-height: 0;
  border-radius: var(--r-xl); border: 1px solid var(--border); background: var(--surface-2);
  box-shadow: 0 18px 48px -24px rgba(28, 20, 41, .4);
}
/* imagen en absoluto: no aporta altura → la fila la define la tarjeta, el banner se adapta */
.value-media img, .value-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 980px) { .values-grid { grid-template-columns: repeat(2, 1fr); } .value-media { grid-column: 1 / -1; min-height: 220px; } }
@media (max-width: 560px) { .values-grid { grid-template-columns: 1fr; } .value-media { grid-column: auto; min-height: 200px; } }
.value-card {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 30px 28px;
  box-shadow: 0 1px 2px rgba(28,20,41,.04), 0 8px 24px rgba(28,20,41,.05);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.value-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, var(--primary-300), rgba(155,81,224,0) 52%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .45s var(--ease); pointer-events: none;
}
.value-card:hover { transform: translateY(-5px); border-color: transparent; box-shadow: 0 1px 2px rgba(28,20,41,.04), 0 20px 44px rgba(116,48,184,.15); }
.value-card:hover::before { opacity: 1; }
.value-num {
  font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; line-height: 1; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.5px var(--primary-100);
  transition: -webkit-text-stroke-color .45s var(--ease);
}
.value-card:hover .value-num { -webkit-text-stroke-color: var(--primary-300); }
.value-card h4 { font-family: var(--font-head); font-size: 1.14rem; margin: 14px 0 8px; color: var(--ink); }
.value-card p { color: #574d66; font-size: .94rem; line-height: 1.6; }

/* Timeline / hitos */
.timeline { position: relative; max-width: 720px; margin: 0 auto; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--border-strong); }
.tl-item { position: relative; padding: 0 0 30px 26px; }
.tl-item::before { content: ""; position: absolute; left: -28px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--grad-primary); box-shadow: 0 0 0 4px var(--primary-50); }
.tl-item h4 { font-size: 1.08rem; }
.tl-item p { color: var(--muted); font-size: .92rem; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 26px; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: border-color .4s var(--ease); }
.post-card:hover { border-color: var(--primary); }
.post-thumb { aspect-ratio: 16 / 9; background: var(--grad-primary); position: relative; display: grid; place-items: center; overflow: hidden; }
.post-thumb > span { transition: transform .5s var(--ease); }
.post-card:hover .post-thumb > span { transform: scale(1.04); }
.post-card:hover .read-more { color: var(--primary); }
.read-more { transition: color .3s var(--ease); }
.post-thumb span { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 1.05rem; padding: 0 24px; text-align: center; opacity: .95; }
.post-thumb::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.18), transparent 60%); }
.post-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-cat { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }
.post-body h3 { font-size: 1.16rem; margin-bottom: 8px; }
.post-body p { color: var(--muted); font-size: .92rem; flex: 1; }
.post-meta { display: flex; gap: 12px; align-items: center; margin-top: 18px; font-size: .82rem; color: var(--muted); }
.post-meta .read-more { color: var(--primary-700); font-weight: 600; margin-left: auto; }

.blog-feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-md); margin-bottom: 44px; }
.blog-feature .post-thumb { aspect-ratio: auto; min-height: 280px; }
.blog-feature .post-body { justify-content: center; padding: clamp(28px, 4vw, 48px); }
.blog-feature h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 12px; }

/* ---------- Prosa (artículos y legal) ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose p, .prose li { color: var(--text); line-height: 1.8; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-top: .5em; }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose a { color: var(--primary-700); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { border-left: 4px solid var(--primary); background: var(--primary-50); padding: 18px 22px; border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--ink); font-style: italic; }
.prose strong { color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--border); }
.prose .lead { font-size: 1.18rem; color: var(--muted); }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; font-size: .88rem; color: var(--muted); margin-top: 16px; }
.article-meta .dot-sep { color: var(--border-strong); }

/* ---------- Tabla comparativa de precios ---------- */
.compare-wrap { overflow-x: auto; margin-top: 16px; }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); font-size: .94rem; }
.compare thead th { font-family: var(--font-head); color: var(--ink); background: var(--surface-2); }
.compare tbody th { font-weight: 500; color: var(--text); }
.compare td { text-align: center; color: var(--text); }
.compare .yes { color: var(--primary-700); font-weight: 700; }
.compare .no { color: var(--border-strong); }
.compare tbody tr:hover { background: var(--primary-50); }

/* ---------- Banda CTA clara reutilizable ---------- */
.band { background: var(--surface-2); border-top: 1px solid var(--border); }

/* ---------- Página de contacto ---------- */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 4vw, 48px); align-items: start; }
.contact-form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow-md); }
.contact-form-card h2 { font-size: 1.5rem; margin-bottom: 6px; }
.contact-sub { color: var(--muted); margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form-card form { display: grid; gap: 16px; }
.contact-form-card .field { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.contact-form-card label { font-size: .82rem; font-weight: 600; color: var(--text); }
.contact-form-card .req { color: var(--primary); }
.input-wrap { position: relative; }
.input-wrap .input-ic { position: absolute; left: 14px; top: 14px; color: var(--muted); pointer-events: none; transition: color .25s var(--ease); }
.contact-form-card input, .contact-form-card select, .contact-form-card textarea {
  width: 100%; font-family: var(--font-body); font-size: .98rem; color: var(--ink);
  background: var(--surface-2); border: 1.5px solid var(--border); border-radius: var(--r-md);
  padding: 13px 14px 13px 42px; appearance: none; -webkit-appearance: none;
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.contact-form-card textarea { min-height: 118px; resize: vertical; }
.input-wrap.select select { padding-right: 38px; }
.input-wrap.select::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.contact-form-card input::placeholder, .contact-form-card textarea::placeholder { color: var(--muted); opacity: .65; }
.contact-form-card input:focus, .contact-form-card select:focus, .contact-form-card textarea:focus {
  outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px var(--primary-50);
}
.contact-form-card .field:focus-within label { color: var(--primary-700); }
.contact-form-card .field:focus-within .input-ic { color: var(--primary); }
.contact-form-card .btn { width: 100%; margin-top: 4px; }
.contact-form-card .btn .arrow-badge { background: rgba(255,255,255,.2); }

/* CTA del home en dos columnas (texto + formulario) */
.cta-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 5vw, 64px); align-items: center; }
.cta-copy { text-align: left; }
.cta-copy .kicker { color: var(--primary-300); }
.cta-copy h2 { color: #fff; margin-bottom: 14px; }
.cta-copy p { color: var(--on-dark-muted); margin-bottom: 24px; }
.cta-perks { display: grid; gap: 12px; }
.cta-perks li { position: relative; padding-left: 32px; color: var(--on-dark); font-size: .96rem; }
.cta-perks li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255,255,255,.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.cta-final { padding-top: clamp(44px, 6vw, 78px); padding-bottom: clamp(44px, 6vw, 78px); }
.cta-grid { grid-template-columns: 1.1fr .9fr; }
.cta-grid .contact-form-card { padding: clamp(22px, 3vw, 30px); max-width: 520px; justify-self: end; width: 100%; }
.cta-grid .contact-form-card form { gap: 13px; }

@media (max-width: 900px) {
  .cta-grid { grid-template-columns: 1fr; gap: 30px; }
  .cta-copy { text-align: center; }
  .cta-perks { max-width: 340px; margin: 0 auto; text-align: left; }
  .cta-grid .contact-form-card { justify-self: center; margin: 0 auto; }
}
.form-msg-dark { color: #2a8a3e; }
.form-msg-dark.error { color: #c0392b; }
.form-legal { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 14px; }
.form-legal a { color: var(--primary-700); text-decoration: underline; }

.contact-info { display: flex; flex-direction: column; gap: 20px; padding-top: 6px; }
.info-block { display: flex; gap: 16px; align-items: flex-start; }
.info-ic { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; background: var(--primary-100); color: var(--primary-700); display: grid; place-items: center; }
.info-block h3 { font-size: 1rem; margin-bottom: 2px; }
.info-block a, .info-block span { color: var(--muted); font-size: .94rem; }
.info-block a:hover { color: var(--primary-700); }
.info-social { margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--border); }
.info-social > span { display: block; font-size: .82rem; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.info-social .social a { background: var(--primary-50); color: var(--primary-700); border: 1px solid var(--primary-100); }
.info-social .social a:hover { background: var(--primary); color: #fff; }

@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* =========================================================
   CAMPOS DE IMAGEN (placeholders reemplazables)
   ========================================================= */
.media { position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface-2); }
.media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media-16x9 { aspect-ratio: 16 / 9; }
.media-1x1 { aspect-ratio: 1 / 1; }
.media-4x5 { aspect-ratio: 4 / 5; }

/* ---------- Hero con imagen + UI flotante ---------- */
.hero-media {
  position: relative; z-index: 1; margin: 0; aspect-ratio: 4 / 5;
  border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg); background: var(--surface-2);
  will-change: transform; transition: transform .25s var(--ease);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-chip, .hero-stat, .hero-card-mini {
  position: absolute; z-index: 3; background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.hero-chip {
  top: 22px; left: -14px; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: .8rem; color: var(--ink);
  animation: floatY 5s ease-in-out infinite;
}
.hero-chip .live-dot { width: 8px; height: 8px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 0 rgba(52,199,89,.5); animation: pulse 2s infinite; }

.hero-stat {
  top: 16px; right: -16px; padding: 14px 18px; border-radius: var(--r-md); text-align: center;
  animation: floatY 6s ease-in-out infinite .4s;
}
.hero-stat strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--primary-700); line-height: 1; }
.hero-stat span { font-size: .72rem; color: var(--muted); }

.hero-card-mini {
  bottom: -18px; left: -20px; width: min(270px, 78%); padding: 16px 18px; border-radius: var(--r-lg);
  display: flex; flex-direction: column; gap: 9px; animation: floatY 5.5s ease-in-out infinite .2s;
}
.hero-card-mini .mini-head { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: .82rem; color: var(--ink); }
.hero-card-mini .ai-ava { width: 26px; height: 26px; border-radius: 7px; background: var(--grad-primary); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; }
.hero-card-mini .mini-msg { font-size: .82rem; line-height: 1.5; color: var(--text); }
.hero-card-mini .mini-tags { display: flex; gap: 6px; }

@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

@media (max-width: 980px) {
  .hero-chip { left: 8px; }
  .hero-stat { right: 8px; }
  .hero-card-mini { left: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-chip, .hero-stat, .hero-card-mini { animation: none; }
}

/* ---------- Imagen en demo, casos y blog ---------- */
.demo-frame img.demo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.demo-frame .demo-play, .demo-frame .demo-overlay { z-index: 3; }
.demo-frame::after { z-index: 1; }

.case-media { aspect-ratio: 16 / 9; margin: -32px -30px 22px; border-bottom: 1px solid var(--border); background: var(--surface-2); overflow: hidden; }
.case-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.post-thumb img.thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.post-thumb > span { position: relative; z-index: 2; }
.post-thumb::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(22,15,36,.05), rgba(22,15,36,.55)); }

/* ---------- Imagen en sección (quiénes somos / split) ---------- */
.about-media { aspect-ratio: 4 / 5; }
@media (max-width: 980px) { .split .about-media { max-width: 460px; } }

/* =========================================================
   ESTILO TEKMINO — lenguaje de diseño e interactividad
   ========================================================= */

/* Tarjetas numeradas (001 / 002 / 003) */
.card { position: relative; }
.card .num {
  position: absolute; top: 26px; right: 28px;
  font-family: var(--font-head); font-weight: 800; font-size: 2.3rem; line-height: 1;
  color: var(--primary-100); letter-spacing: -.02em; transition: color .4s var(--ease);
}
.card:hover .num { color: var(--primary-300); }

/* Enlace "ver más" con flecha que se desliza */
.tj-link {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 18px;
  font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--primary-700);
}
.tj-link .ar {
  width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--primary-100); font-size: .78rem; transition: transform .35s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.tj-link:hover { color: var(--primary); }
.tj-link:hover .ar { transform: rotate(45deg); background: var(--primary); color: #fff; }

/* Estrellas de valoración */
.stars { display: inline-flex; gap: 2px; color: #f5a623; font-size: .95rem; letter-spacing: 1px; }
.rating-row { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); }
.rating-row strong { color: var(--ink); font-family: var(--font-head); }

/* Confianza en hero */
.hero-trust { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.hero-trust .avatars { display: flex; }
.hero-trust .avatars span {
  width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--bg); margin-left: -10px;
  background: var(--grad-primary); display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .82rem;
}
.hero-trust .avatars span:first-child { margin-left: 0; }
.hero-trust .ht-text { font-size: .88rem; color: var(--muted); line-height: 1.4; }
.hero-trust .ht-text strong { color: var(--ink); }

/* Marquee de logos (scroll infinito) */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 56px; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--primary-700); opacity: .65; white-space: nowrap; transition: opacity .3s; }
.marquee-track li:hover { opacity: 1; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; } }

/* Testimonios */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 24px; }
.testi-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 32px 30px; transition: border-color .4s var(--ease), background .4s var(--ease); }
.testi-card:hover { border-color: var(--primary); }
.testi-quote { color: var(--text); margin: 16px 0 24px; font-size: 1.02rem; line-height: 1.7; }
.testi-person { display: flex; align-items: center; gap: 13px; }
.testi-ava { width: 48px; height: 48px; border-radius: 50%; background: var(--grad-primary); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; flex: 0 0 auto; }
.testi-person strong { display: block; font-size: .95rem; color: var(--ink); }
.testi-person span { font-size: .82rem; color: var(--muted); }

/* ====================================================================
   Carrusel "stagger" de testimonios (tarjetas escalonadas, esquinas
   recortadas, la central destacada). Posiciones calculadas por JS.
   ==================================================================== */
#testimonios { overflow: hidden; }
.stagger {
  position: relative; height: 600px; overflow: hidden;
  margin-top: clamp(32px, 5vw, 56px);
  /* full-bleed: rompe el contenedor y ocupa todo el ancho del viewport */
  width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
}
.st-card {
  position: absolute; left: 50%; top: 50%;
  width: 360px; height: 360px; padding: 34px;
  cursor: pointer; user-select: none;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: 0 10px 30px rgba(28, 20, 41, .06);
  transform: translate(-50%, -50%);
  transition: transform .5s var(--ease), background .5s var(--ease),
              border-color .5s var(--ease), box-shadow .5s var(--ease), color .5s var(--ease);
}
.st-card:not(.is-center):hover { border-color: var(--primary-300); }
.st-card.is-center {
  background: var(--primary); border-color: var(--primary); color: #fff;
  box-shadow: 0 26px 55px -16px rgba(116, 48, 184, .55);
}
.st-line { display: none; }
/* avatar (iniciales) */
.st-ava {
  display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 20px;
  border-radius: 15px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: #fff;
  background: var(--grad-primary); box-shadow: 0 8px 20px rgba(116, 48, 184, .28);
}
.st-card.is-center .st-ava { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: none; }
.st-quote { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; line-height: 1.38; letter-spacing: -.01em; }
.st-by { position: absolute; left: 34px; right: 34px; bottom: 30px; font-size: .85rem; font-style: italic; color: var(--muted); }
.st-card.is-center .st-by { color: rgba(255, 255, 255, .82); }
/* navegación */
.st-nav { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; z-index: 20; }
.st-btn {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border); color: var(--ink); cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.st-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-2px); }
.st-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

@media (max-width: 640px) {
  .stagger { height: 520px; }
  .st-quote { font-size: 1rem; }
}

/* Banda de estadística destacada */
.stat-band { background: var(--dark); color: #fff; position: relative; overflow: hidden; }
.stat-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 50% 0%, rgba(155,81,224,.30), transparent 70%); }
.stat-band-inner { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.stat-band .sb { padding: 8px 0; }
.stat-band .sb strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.2rem); color: #fff; line-height: 1; }
.stat-band .sb span { display: block; margin-top: 8px; color: var(--on-dark-muted); font-size: .92rem; }
@media (max-width: 720px) { .stat-band-inner { grid-template-columns: 1fr 1fr; gap: 32px 16px; } }

/* Divisor de sección (forma sutil) */
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border-strong), transparent); border: 0; max-width: var(--maxw); margin-inline: auto; }

/* Servicios/suite: enlace inferior */
.suite-card .tj-link, .feature-body .tj-link { margin-top: 16px; }

/* ---------- Integraciones (sección oscura) ---------- */
.integrations { background: var(--dark); color: #fff; position: relative; overflow: hidden; }
.integrations::before { content: ""; position: absolute; top: -20%; left: 50%; transform: translateX(-50%); width: 80%; height: 70%; background: radial-gradient(closest-side, rgba(155,81,224,.22), transparent 70%); }
.integrations .container { position: relative; z-index: 1; }
.integrations .kicker { color: var(--primary-300); }
.integrations h2 { color: #fff; }
.integrations .section-lead { color: var(--on-dark-muted); }

/* ---- Muro de integraciones: columnas auto-desplazables ---- */
.integ-marquee {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; height: 500px; overflow: hidden; margin-top: clamp(36px, 5vw, 56px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 13%, #000 87%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 13%, #000 87%, transparent);
}
.integ-col { overflow: hidden; }
.integ-track {
  display: flex; flex-direction: column; will-change: transform;
  animation: integ-scroll var(--dur, 34s) linear infinite;
}
.integ-col:nth-child(1) .integ-track { --dur: 36s; }
.integ-col:nth-child(2) .integ-track { --dur: 27s; }
.integ-col:nth-child(3) .integ-track { --dur: 44s; }
@keyframes integ-scroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
/* pausa al pasar el cursor para poder leer/clicar */
.integ-marquee:hover .integ-track { animation-play-state: paused; }

.integ-card {
  display: flex; gap: 15px; align-items: flex-start; margin-bottom: 18px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-radius: var(--r-lg);
  padding: 22px 20px;
  transition: border-color .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.integ-card:hover { border-color: rgba(155,81,224,.45); background: rgba(255,255,255,.07); box-shadow: 0 14px 30px -16px rgba(116,48,184,.6); }
.integ-logo { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 13px; background: #fff; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.integ-logo img { width: 30px; height: 30px; }
.integ-logo-ic { color: var(--primary); }
.integ-card h3 { font-size: 1.04rem; color: #fff; margin-bottom: 5px; }
.integ-card p { font-size: .84rem; color: var(--on-dark-muted); line-height: 1.5; }
.integ-note { text-align: center; margin-top: 30px; color: var(--on-dark-muted); font-size: .94rem; }
.integ-note strong { color: #fff; }

/* móvil: lista estática legible (sin animación ni duplicados) */
@media (max-width: 860px) {
  .integ-marquee {
    display: block; height: auto; overflow: visible; margin-inline: auto; max-width: 460px;
    -webkit-mask-image: none; mask-image: none;
  }
  .integ-col { overflow: visible; }
  .integ-track { animation: none; }
  .integ-card[aria-hidden="true"] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .integ-marquee { height: auto; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .integ-track { animation: none; }
  .integ-card[aria-hidden="true"] { display: none; }
}

/* ---------- Barra superior (top bar) ---------- */
.topbar { background: var(--dark); color: var(--on-dark-muted); font-size: .82rem; position: relative; z-index: 99; padding-bottom: 20px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 42px; gap: 16px; }
.tb-left, .tb-right { display: inline-flex; align-items: center; gap: 9px; margin: 0; }
.tb-ic { color: var(--primary-300); flex: 0 0 auto; }
.tb-left > a { color: var(--primary-300); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; margin-left: 3px; transition: color .2s, gap .25s var(--ease); }
.tb-left > a:hover { color: #fff; gap: 8px; }
.tb-right span { display: inline-flex; align-items: center; gap: 7px; }
.tb-right a { color: var(--on-dark-muted); display: inline-flex; align-items: center; gap: 7px; transition: color .2s; }
.tb-right a:hover { color: #fff; }
.tb-sep { width: 1px; height: 14px; background: rgba(255,255,255,.2); }
@media (max-width: 760px) { .tb-right { display: none; } .tb-left { font-size: .78rem; } }
@media (max-width: 420px) { .tb-left .tb-msg { display: none; } }

/* ---------- Marca gigante recortada en el footer ---------- */
.footer-word-wrap {
  position: relative; overflow: hidden; margin-top: 34px;
  border-top: 1px solid rgba(255,255,255,.1);
  height: clamp(64px, 11vw, 140px);
  display: flex; justify-content: center; align-items: flex-start;
}
.footer-word {
  font-family: var(--font-head); font-weight: 800; letter-spacing: -.04em; white-space: nowrap;
  font-size: clamp(6rem, 27vw, 26rem); line-height: 1; color: rgba(255,255,255,.05);
  transform: translateY(-6%); user-select: none; pointer-events: none;
}

/* =========================================================
   FAQ — rediseño (acordeón numerado + tarjeta de soporte)
   ========================================================= */
.faq2-wrap { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(28px, 4vw, 48px); align-items: start; }
.faq2-list { display: flex; flex-direction: column; gap: 14px; }
.faq2-media {
  position: sticky; top: 90px; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface-2);
  box-shadow: var(--shadow-md); aspect-ratio: 4 / 5;
}
.faq2-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 920px) { .faq2-media { position: static; aspect-ratio: 16 / 9; max-width: 480px; margin-inline: auto; } }
.faq2-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; transition: border-color .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
.faq2-item.is-open { border-color: var(--primary); background: linear-gradient(180deg, var(--primary-50), var(--surface) 62%); box-shadow: var(--shadow-md); }
.faq2-q {
  width: 100%; display: flex; align-items: center; gap: 16px; padding: 22px 24px;
  background: none; border: 0; cursor: pointer; text-align: left; font-family: var(--font-head);
}
.faq2-num { font-weight: 800; font-size: .95rem; color: var(--primary-300); flex: 0 0 auto; min-width: 22px; transition: color .35s var(--ease); }
.faq2-item.is-open .faq2-num { color: var(--primary); }
.faq2-text { flex: 1; font-weight: 600; font-size: 1.06rem; color: var(--ink); transition: color .25s var(--ease); }
.faq2-q:hover .faq2-text { color: var(--primary-700); }

.faq2-ic { position: relative; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--border-strong); transition: background .35s var(--ease), border-color .35s var(--ease); }
.faq2-ic::before, .faq2-ic::after { content: ""; position: absolute; top: 50%; left: 50%; background: var(--primary-700); border-radius: 2px; transition: transform .38s var(--ease), background .35s var(--ease); }
.faq2-ic::before { width: 12px; height: 2px; transform: translate(-50%, -50%); }
.faq2-ic::after { width: 2px; height: 12px; transform: translate(-50%, -50%); }
.faq2-item.is-open .faq2-ic { background: var(--primary); border-color: var(--primary); }
.faq2-item.is-open .faq2-ic::before, .faq2-item.is-open .faq2-ic::after { background: #fff; }
.faq2-item.is-open .faq2-ic::after { transform: translate(-50%, -50%) scaleY(0); }

.faq2-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .42s var(--ease); }
.faq2-item.is-open .faq2-a { grid-template-rows: 1fr; }
.faq2-a-inner { overflow: hidden; }
.faq2-a-inner p { margin: 0; padding: 0 24px 24px 62px; color: var(--muted); line-height: 1.75; }

/* Tarjeta de soporte */
.faq2-cta { position: sticky; top: 96px; background: var(--dark); color: #fff; border-radius: var(--r-xl); padding: 36px 32px; overflow: hidden; }
.faq2-cta::before { content: ""; position: absolute; top: -30%; right: -20%; width: 70%; height: 80%; background: radial-gradient(closest-side, rgba(155,81,224,.4), transparent 70%); }
.faq2-cta > * { position: relative; z-index: 1; }
.faq2-cta-ic { width: 54px; height: 54px; border-radius: 14px; background: rgba(255,255,255,.1); display: grid; place-items: center; color: #fff; margin-bottom: 20px; }
.faq2-cta h3 { color: #fff; font-size: 1.35rem; margin-bottom: 10px; }
.faq2-cta p { color: var(--on-dark-muted); margin-bottom: 24px; }
.faq2-cta .btn { width: 100%; }

@media (max-width: 900px) {
  .faq2-wrap { grid-template-columns: 1fr; }
  .faq2-cta { position: static; }
  .faq2-a-inner p { padding-left: 24px; }
}

/* =========================================================
   LOADER (pantalla de carga)
   ========================================================= */
.loader {
  position: fixed; inset: 14px; z-index: 9999; display: grid; place-items: center;
  background: linear-gradient(160deg, #8a3dd4 0%, #7430b8 55%, #5e2599 100%);
  border-radius: clamp(18px, 2.2vw, 30px); overflow: hidden;
  box-shadow: 0 0 0 100vmax var(--bg); /* rellena el resto de la pantalla alrededor del panel redondeado */
  transition: opacity .55s var(--ease), visibility .55s var(--ease);
  animation: loaderFallback 0s linear 6s forwards; /* respaldo si el JS falla */
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.loader-mark svg { display: block; border-radius: 18px; filter: drop-shadow(0 10px 28px rgba(0,0,0,.22)); }
.loader-word { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em; color: #fff; }
.loader-worm { display: block; width: 180px; height: 8px; margin-top: 2px; overflow: visible; }
.loader-worm .worm-track { stroke: rgba(255,255,255,.28); stroke-width: 5; stroke-linecap: round; }
.loader-worm .worm { stroke: #fff; stroke-width: 5; stroke-linecap: round; animation: worm 1.5s ease-in-out infinite; }

@keyframes worm {
  0%   { stroke-dasharray: 6 172;  stroke-dashoffset: 0; }
  50%  { stroke-dasharray: 72 172; stroke-dashoffset: -86; }
  100% { stroke-dasharray: 6 172;  stroke-dashoffset: -172; }
}
@keyframes loaderFallback { to { opacity: 0; visibility: hidden; } }

/* =========================================================
   HERO REDISEÑADO — centrado + showcase de producto
   ========================================================= */
.hero-stage {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  border-radius: clamp(20px, 3vw, 38px);
  padding: clamp(64px, 11vw, 130px) 0;
}
.hero-stage { background: #fff; }
.hero-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; background: #fff; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(48% 42% at 50% 0%, rgba(155, 81, 224, .16), transparent 64%),
    linear-gradient(180deg, rgba(247, 243, 250, .9) 0%, rgba(247, 243, 250, .82) 55%, rgba(247, 243, 250, .82) 100%);
}
.hero-stage > .container { position: relative; z-index: 1; }

.hero-top { max-width: 1100px; margin: 0 auto; }
.hero-top .eyebrow {
  background: transparent; padding: 0; color: var(--primary-700);
  display: inline-flex; align-items: center; gap: 9px; letter-spacing: .16em; margin-bottom: 20px;
}
.hero-top .eyebrow-ic { color: var(--primary); }
.hero-top h1 { font-size: clamp(2.2rem, 5.2vw, 3.75rem); line-height: 1.12; margin-bottom: 20px; }
.hero-top .hero-sub { margin: 0 auto 32px; max-width: 660px; }
.hero-top .hero-actions { justify-content: center; }
.hero .btn-primary .arrow-badge { background: var(--ink); color: #fff; }
.app-frame {
  position: relative; z-index: 1; text-align: left; background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: clamp(16px, 2vw, 22px); overflow: hidden;
  box-shadow: 0 40px 70px -42px rgba(28,20,41,.4); will-change: transform; transition: transform .2s var(--ease);
}
.app-bar { display: flex; align-items: center; gap: 8px; padding: 13px 18px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.app-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.app-bar .dot.r { background: #e98a8a; } .app-bar .dot.y { background: #ecc680; } .app-bar .dot.g { background: #9bd6a0; }
.app-url { margin: 0 auto; font-size: .78rem; font-weight: 500; color: var(--muted); background: var(--surface); border: 1px solid var(--border); padding: 5px 18px; border-radius: 999px; }
.app-body { padding: clamp(22px, 3vw, 36px); display: grid; gap: 15px; }

.chan-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; }
.chan-chip { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 600; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px; }
.chan-chip i { width: 8px; height: 8px; border-radius: 50%; }

.action-card { display: flex; align-items: center; gap: 13px; background: var(--primary-50); border: 1px solid var(--primary-100); border-radius: var(--r-md); padding: 14px 16px; }
.action-card .ac-ic { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--grad-primary); color: #fff; display: grid; place-items: center; }
.action-card strong { display: block; font-size: .9rem; color: var(--ink); }
.action-card small { font-size: .82rem; color: var(--muted); }

.hero-showcase .hero-chip { top: -16px; left: 20px; }
.hero-showcase .hero-stat { top: -20px; right: 20px; }
@media (max-width: 560px) {
  .hero-showcase .hero-chip { left: 10px; top: -14px; font-size: .74rem; }
  .hero-showcase .hero-stat { right: 10px; top: -16px; }
}


/* Enlace alternativo de WhatsApp junto a formularios */
.wa-alt { margin: 12px 0 0; text-align: center; font-size: .95rem; }
.wa-alt a { color: #25D366; font-weight: 700; text-decoration: none; }
.wa-alt a:hover { text-decoration: underline; }


/* Banner de consentimiento de cookies */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; background: #160f24; color: #fff; box-shadow: 0 -8px 30px rgba(0,0,0,.28); transition: transform .3s ease, opacity .3s ease; }
.cookie-bar.is-hidden { transform: translateY(110%); opacity: 0; }
.cookie-bar-inner { max-width: 1100px; margin: 0 auto; padding: 16px 20px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
.cookie-bar-text { margin: 0; font-size: .9rem; line-height: 1.55; color: #e7e2f0; flex: 1 1 360px; }
.cookie-bar-text a { color: #b892ff; text-decoration: underline; }
.cookie-bar-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie-btn { cursor: pointer; border-radius: 999px; padding: 10px 22px; font-weight: 700; font-size: .9rem; border: 1px solid transparent; transition: filter .2s ease, background .2s ease; }
.cookie-reject { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.cookie-reject:hover { background: rgba(255,255,255,.1); }
.cookie-accept { background: #9b51e0; color: #fff; }
.cookie-accept:hover { filter: brightness(1.08); }
@media (max-width: 560px) { .cookie-bar-actions { width: 100%; } .cookie-btn { flex: 1; } }

/* Fix responsive: los párrafos de intro deben envolver — evita overflow horizontal en móvil (pinch) */
.section-lead { white-space: normal !important; }

/* Titulo del hero mas pequeno en movil (menos saltos de linea) */
@media (max-width: 560px) {
  .hero h1 { font-size: 1.85rem; }
}
