/* fuentes servidas desde el propio dominio (sin ir a Google Fonts) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/sora-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* =========================================================
   Stella — sitio de presentación
   Paleta extraída del gradiente del logo
   ========================================================= */
:root {
  --blue: #1E5FE8;
  --blue-600: #1650cc;
  --sky: #4FA8F5;
  --mint: #6DD9A8;
  --navy: #0B1220;
  --navy-2: #111a2e;
  --navy-3: #18233b;
  --ink: #0B1220;
  --ink-2: #3b475e;
  --ink-3: #6b7890;
  --line: #e4e9f2;
  --line-2: #eef2f8;
  --paper: #ffffff;
  --paper-2: #f6f8fc;
  --grad: linear-gradient(120deg, #1E5FE8 0%, #4FA8F5 55%, #6DD9A8 100%);
  --grad-soft: linear-gradient(120deg, rgba(30,95,232,.12), rgba(79,168,245,.1) 55%, rgba(109,217,168,.14));

  /* etapas */
  --st-preguntando: #4FA8F5;
  --st-interesado: #1E5FE8;
  --st-decidiendo: #7C6CF2;
  --st-listo: #18B7A0;
  --st-sin: #F2A93B;
  --st-venta: #3FC98E;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(11,18,32,.06), 0 2px 6px rgba(11,18,32,.04);
  --shadow: 0 1px 2px rgba(11,18,32,.05), 0 8px 24px -6px rgba(11,18,32,.10), 0 24px 48px -16px rgba(30,95,232,.12);
  --shadow-lg: 0 2px 4px rgba(11,18,32,.04), 0 24px 64px -12px rgba(11,18,32,.22), 0 48px 96px -24px rgba(30,95,232,.25);
  --ease: cubic-bezier(.22,.8,.26,1);
  --font-d: "Sora", system-ui, sans-serif;
  --font-b: "Inter", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 32px);
  --sec: clamp(88px, 11vw, 144px);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-b); font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
svg { display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-d); margin: 0; letter-spacing: -.025em; line-height: 1.12; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--sec) 0; position: relative; }

.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 13px/1 var(--font-b); letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue); padding: 8px 14px 8px 12px; border-radius: 999px;
  background: var(--grad-soft); border: 1px solid rgba(30,95,232,.14);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 3px rgba(79,168,245,.18); }
.eyebrow--dark { color: #bfe0ff; background: rgba(79,168,245,.08); border-color: rgba(79,168,245,.22); }

.h2 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 600; margin-top: 20px; }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); margin-top: 20px; max-width: 620px; }
.section-head { text-align: center; display: flex; flex-direction: column; align-items: center; margin-bottom: clamp(48px, 6vw, 72px); }
.section-head .lead { margin-left: auto; margin-right: auto; }

/* ---------- botones ---------- */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 999px; border: 0;
  font: 600 15px/1 var(--font-b); letter-spacing: -.005em; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn--sm { --h: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { --h: 54px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn__ic { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .btn__ic { transform: translateX(3px); }
.btn--primary {
  color: #fff; background: linear-gradient(135deg, #2a6cf0, #1E5FE8 45%, #1a55d6);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 20px -6px rgba(30,95,232,.55), 0 0 0 1px rgba(30,95,232,.6);
  position: relative; overflow: hidden;
}
.btn--primary::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 14px 30px -8px rgba(30,95,232,.7), 0 0 0 1px rgba(30,95,232,.6), 0 0 0 5px rgba(79,168,245,.18); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost { color: #fff; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn--outline { color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); }
.btn--outline:hover { box-shadow: inset 0 0 0 1px var(--blue), 0 8px 20px -8px rgba(30,95,232,.35); color: var(--blue); transform: translateY(-2px); }

/* ---------- etapas (badges) ---------- */
.stage {
  --c: var(--st-preguntando);
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font: 600 12.5px/1 var(--font-b); padding: 7px 11px 7px 9px; border-radius: 999px;
  color: color-mix(in srgb, var(--c) 78%, #0B1220);
  background: color-mix(in srgb, var(--c) 13%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 28%, transparent);
  transition: color .4s, background .4s, box-shadow .4s;
}
.stage::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); transition: background .4s; }
.stage--xs { font-size: 11px; padding: 5px 8px 5px 7px; }
.stage--xs::before { width: 6px; height: 6px; }
[data-stage="preguntando"] { --c: var(--st-preguntando); }
[data-stage="interesado"] { --c: var(--st-interesado); }
[data-stage="decidiendo"] { --c: var(--st-decidiendo); }
[data-stage="listo"] { --c: var(--st-listo); }
[data-stage="sin"] { --c: var(--st-sin); }
[data-stage="venta"] { --c: var(--st-venta); }
.stage.is-pop { animation: pop .5s var(--ease); }
@keyframes pop { 0% { transform: scale(.85); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }

/* ---------- avatares ---------- */
.avatar {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font: 600 12px/1 var(--font-d); color: #fff; letter-spacing: 0;
  background: linear-gradient(135deg, #4FA8F5, #1E5FE8);
}
.avatar--lg { width: 44px; height: 44px; font-size: 14px; }
.avatar--c1 { background: linear-gradient(135deg, #7aa7ff, #3563e9); }
.avatar--c2 { background: linear-gradient(135deg, #9d8cff, #6a55e8); }
.avatar--c3 { background: linear-gradient(135deg, #ff9fb8, #e0527d); }
.avatar--c4 { background: linear-gradient(135deg, #7ee3b8, #1fae83); }
.avatar--star { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.avatar--star img { width: 70%; height: 70%; object-fit: contain; animation: spin 14s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
.spin-slow { animation: spin 10s linear infinite; }

/* =========================================================
   NAVBAR
   ========================================================= */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding: 0 var(--gutter); pointer-events: none; }
.nav__inner {
  pointer-events: auto; max-width: 1200px; margin: 0 auto; height: 64px;
  display: flex; align-items: center; gap: 24px; padding: 0 10px 0 22px;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border: 1px solid rgba(255,255,255,.7); border-radius: 20px;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 10px 30px -10px rgba(11,18,32,.35);
  transition: box-shadow .3s, background .3s;
}
.nav.is-scrolled .nav__inner { background: rgba(255,255,255,.96); box-shadow: 0 1px 2px rgba(11,18,32,.06), 0 12px 32px -12px rgba(11,18,32,.22); border-color: var(--line); }
.nav__logo { flex: none; display: flex; align-items: center; }
.nav__logo img { height: 34px; width: auto; object-fit: contain; }
.nav__links { display: flex; gap: 4px; margin: 0 auto; }
.nav__links a { font: 500 14.5px/1 var(--font-b); color: var(--ink-2); padding: 10px 14px; border-radius: 10px; transition: color .2s, background .2s; }
.nav__links a:hover { color: var(--ink); background: var(--paper-2); }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__mail { font: 500 14.5px/1 var(--font-b); color: var(--ink-2); padding: 10px 12px; }
.nav__mail:hover { color: var(--blue); }
.nav__burger { display: none; width: 42px; height: 42px; border: 0; border-radius: 12px; background: var(--paper-2); position: relative; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav__burger span:first-child { top: 16px; }
.nav__burger span:last-child { top: 24px; }
.nav.is-open .nav__burger span:first-child { top: 20px; transform: rotate(45deg); }
.nav.is-open .nav__burger span:last-child { top: 20px; transform: rotate(-45deg); }
.nav__mobile {
  pointer-events: auto; display: none; max-width: 1200px; margin: 8px auto 0; padding: 12px;
  background: #fff; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  flex-direction: column; gap: 2px;
}
.nav__mobile a { padding: 14px 12px; border-radius: 12px; font-weight: 500; }
.nav__mobile a:hover { background: var(--paper-2); }
.nav__mobile .btn { margin-top: 8px; }
.nav.is-open .nav__mobile { display: flex; animation: drop .3s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; background: var(--navy); color: #fff; overflow: hidden;
  padding: 150px 0 0; isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.hero__glow--a { width: 720px; height: 520px; left: 50%; top: -120px; transform: translateX(-70%); background: radial-gradient(circle, rgba(30,95,232,.38), transparent 65%); }
.hero__glow--b { width: 560px; height: 420px; left: 55%; top: 60px; background: radial-gradient(circle, rgba(109,217,168,.16), transparent 65%); }
.hero__content { text-align: center; display: flex; flex-direction: column; align-items: center; }

.pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; font: 500 14px/1.2 var(--font-b); transition: background .25s, box-shadow .25s; }
.pill--dark { color: #d6e6ff; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.pill--dark:hover { background: rgba(255,255,255,.09); box-shadow: inset 0 0 0 1px rgba(109,217,168,.4); }
.pill__tag { padding: 5px 10px; border-radius: 999px; background: var(--grad); color: #062016; font-weight: 700; font-size: 12px; }
.pill__arrow { width: 16px; height: 16px; opacity: .7; transition: transform .25s var(--ease); }
.pill:hover .pill__arrow { transform: translateX(3px); }

.hero__title { font-size: clamp(32px, 4.4vw, 58px); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; margin-top: 26px; max-width: 1100px; }
.hero__title .grad-text { display: block; padding-bottom: .08em; }
.hero__sub { font-size: clamp(16px, 1.4vw, 18px); color: #a9b7cf; max-width: 520px; margin-top: 22px; line-height: 1.6; }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }

.channels { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; margin-top: 36px; }
.channels li {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 0;
  font: 500 13.5px/1 var(--font-b); color: #7f90ad;
  transition: color .25s;
}
.channels li:hover { color: #cfdaeb; }
.channels__ic { width: 16px; height: 16px; display: grid; place-items: center; color: currentColor; }
.channels__ic svg { width: 16px; height: 16px; }

.hero__stage { margin-top: 72px; perspective: 1800px; position: relative; }
.hero__stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(transparent, var(--navy)); pointer-events: none; z-index: 2; }
.hero__hint { position: relative; z-index: 3; text-align: center; font-size: 13px; color: #6f7f9b; padding: 22px 0 44px; margin-top: -30px; }

/* ---------- app mockup ---------- */
.app {
  --tilt: 14deg;
  position: relative; border-radius: 22px; overflow: hidden; color: var(--ink);
  background: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 40px 120px -20px rgba(0,0,0,.7), 0 0 120px -20px rgba(30,95,232,.45);
  transform: rotateX(14deg) scale(.98); transform-origin: 50% 0;
  will-change: transform;
}
.app::before { content: ""; position: absolute; inset: -1px; border-radius: 23px; padding: 1px; background: linear-gradient(180deg, rgba(79,168,245,.7), rgba(109,217,168,.2) 40%, transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; z-index: 3; }
.app__chrome { height: 44px; display: flex; align-items: center; gap: 16px; padding: 0 16px; background: #f4f6fa; border-bottom: 1px solid var(--line); }
.app__dots { display: flex; gap: 7px; }
.app__dots i { width: 11px; height: 11px; border-radius: 50%; background: #dfe4ec; }
.app__dots i:nth-child(1) { background: #ff6b6b; } .app__dots i:nth-child(2) { background: #ffc24b; } .app__dots i:nth-child(3) { background: #3fcf8e; }
.app__title { display: flex; align-items: center; gap: 8px; margin: 0 auto; font: 500 13px/1 var(--font-b); color: var(--ink-3); }
.app__title-ic { width: 16px; height: 16px; object-fit: contain; }
.app__live { display: inline-flex; align-items: center; gap: 7px; font: 600 12px/1 var(--font-b); color: #169a69; background: #e7f8ef; padding: 6px 10px; border-radius: 999px; }
.app__live i { width: 7px; height: 7px; border-radius: 50%; background: #25c17e; animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,193,126,.55); } 100% { box-shadow: 0 0 0 8px rgba(37,193,126,0); } }

.app__body { display: grid; grid-template-columns: 64px 320px 1fr 272px; height: 600px; }
.app__rail { background: var(--navy); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 0; }
.app__rail-logo { width: 30px; height: 30px; object-fit: contain; margin-bottom: 14px; animation: spin 30s linear infinite; }
.rail-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #7384a3; }
.rail-btn svg { width: 20px; height: 20px; }
.rail-btn.is-active { background: rgba(79,168,245,.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(79,168,245,.3); }
.rail-btn--avatar { margin-top: auto; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #7aa7ff, #3563e9); color: #fff; font: 600 11px/1 var(--font-d); }

.app__list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; background: #fbfcfe; }
.app__list-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 10px; font-family: var(--font-d); font-size: 16px; }
.count-chip { font: 700 12px/1 var(--font-b); color: #fff; background: var(--blue); padding: 5px 8px; border-radius: 999px; transition: transform .3s var(--ease); }
.count-chip.is-bump { animation: pop .5s var(--ease); }
.app__filters { display: flex; gap: 6px; padding: 0 18px 12px; border-bottom: 1px solid var(--line); }
.app__filters button { flex: none; border: 0; background: none; font: 500 12.5px/1 var(--font-b); color: var(--ink-3); padding: 7px 9px; border-radius: 8px; transition: background .2s, color .2s, box-shadow .2s; }
.app__filters button:hover { color: var(--ink); background: #eef3fb; }
.app__filters button.is-active { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); }
.convs { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; flex: 1; padding: 6px; }
.conv {
  display: grid; grid-template-columns: 38px 1fr auto; gap: 4px 11px; align-items: center;
  padding: 11px 12px; border-radius: 14px; cursor: pointer; position: relative;
  transition: background .25s, box-shadow .25s, transform .4s var(--ease), opacity .4s;
}
.conv:hover { background: #f1f5fc; }
.conv.is-active { background: #fff; box-shadow: inset 0 0 0 1px #d8e4fb, 0 6px 16px -8px rgba(30,95,232,.35); }
.conv.is-active::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--grad); }
.conv .avatar { grid-row: span 2; width: 38px; height: 38px; position: relative; }
.conv__ch { position: absolute; right: -3px; bottom: -3px; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #fbfcfe; color: #fff; }
.conv__ch svg { width: 9px; height: 9px; }
.conv__name { font: 600 14px/1.2 var(--font-b); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv__time { font-size: 11.5px; color: var(--ink-3); justify-self: end; }
.conv__last { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.conv__row2 { grid-column: 2 / 4; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.conv.is-unread .conv__name::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); margin-left: 7px; vertical-align: middle; }
.conv.is-new { animation: slideIn .6s var(--ease); }
@keyframes slideIn { from { opacity: 0; transform: translateY(-14px); } }

.bg-wa { background: #22b760; } .bg-ig { background: #d6317c; } .bg-web { background: var(--blue); } .bg-crm { background: #2ba579; }

.app__chat { display: flex; flex-direction: column; min-width: 0; background: linear-gradient(180deg, #fff, #f8fafd); }
.chat__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.chat__who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.chat__who strong { display: block; font-size: 15px; }
.chat__who small { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-3); }
.chat__who small svg { width: 13px; height: 13px; }
.chat__msgs { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 48px); mask-image: linear-gradient(transparent, #000 48px); padding: 22px 22px 8px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.msg { max-width: 74%; padding: 11px 14px; border-radius: 18px; font-size: 14px; line-height: 1.45; animation: msgIn .7s cubic-bezier(.2,.9,.3,1.15) both; }
.msg--in { transform-origin: 0 100%; } .msg--out { transform-origin: 100% 100%; }
@keyframes msgIn { 0% { opacity: 0; transform: translateY(18px) scale(.8); } 55% { opacity: 1; transform: translateY(-5px) scale(1.04); } 78% { transform: translateY(1px) scale(.99); } 100% { opacity: 1; transform: none; } }
.msg--in { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; box-shadow: var(--shadow-sm); }
.msg--out { align-self: flex-end; color: #fff; background: linear-gradient(135deg, #2a6cf0, #1E5FE8); border-bottom-right-radius: 6px; box-shadow: 0 6px 16px -8px rgba(30,95,232,.6); }
.msg__by { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; opacity: .8; margin-bottom: 4px; }
.msg__by img { width: 13px; height: 13px; object-fit: contain; filter: brightness(0) invert(1); }
.msg__file { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 9px 10px; border-radius: 12px; background: rgba(255,255,255,.16); font-size: 13px; }
.msg__file svg { width: 20px; height: 20px; }
.msg__file small { display: block; opacity: .75; font-size: 11px; }
.msg-sys { align-self: center; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); padding: 6px 12px; border-radius: 999px; background: #f0f4fa; animation: msgIn .45s var(--ease) both; }
.msg-sys .stage { font-size: 11px; padding: 4px 8px 4px 7px; }
.typing { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 18px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); animation: msgIn .3s var(--ease) both; }
.typing--out { align-self: flex-end; background: #eef4ff; border-color: #d8e4fb; color: var(--blue); }
.typing img { width: 18px; height: 18px; object-fit: contain; animation: spin 1.4s linear infinite; }
.typing__dots { display: inline-flex; gap: 4px; }
.typing__dots i { width: 6px; height: 6px; border-radius: 50%; background: #9aa7bd; animation: blink 1.2s infinite; }
.typing__dots i:nth-child(2) { animation-delay: .15s; } .typing__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat__compose { display: flex; align-items: center; gap: 12px; margin: 10px 18px 18px; padding: 8px 8px 8px 16px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); }
.chat__clip { width: 18px; height: 18px; color: var(--ink-3); }
.chat__input { flex: 1; font-size: 13.5px; color: #9aa6ba; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat__send { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: var(--grad); }
.chat__send svg { width: 16px; height: 16px; }

.app__side { border-left: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 14px; background: #fbfcfe; }
.side__card { background: #fff; border-radius: 16px; padding: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.side__label { font: 600 11px/1 var(--font-b); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.side__who { display: flex; align-items: center; gap: 12px; margin: 14px 0; }
.side__who strong { display: block; font-size: 15px; }
.side__who small { color: var(--ink-3); font-size: 12.5px; }
.side__meta { margin: 0; display: grid; gap: 10px; }
.side__meta div { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.side__meta dt { color: var(--ink-3); }
.side__meta dd { margin: 0; font-weight: 600; text-align: right; }
.journey { margin-top: 14px; display: grid; gap: 0; position: relative; }
.journey li { position: relative; padding: 7px 0 7px 26px; font-size: 13px; color: #a3aec1; transition: color .4s; }
.journey li::before { content: ""; position: absolute; left: 5px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #d5dce8; transition: background .4s, box-shadow .4s; z-index: 1; }
.journey li:not(:last-child)::after { content: ""; position: absolute; left: 9.5px; top: calc(50% + 5px); height: 100%; width: 1px; background: #e1e7f0; }
.journey li.is-done { color: var(--ink-2); }
.journey li.is-done::before { background: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.journey li.is-current { color: var(--ink); font-weight: 600; }
.journey li.is-current::before { background: #fff; box-shadow: inset 0 0 0 3px var(--blue), 0 0 0 4px rgba(30,95,232,.15); }

.promise .h2, .follow .h2, .security .h2 { font-size: clamp(32px, 3.9vw, 46px); }

/* =========================================================
   PROMESA
   ========================================================= */
.promise { background: var(--paper-2); }
.promise__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.pains { margin-top: 36px; display: grid; gap: 14px; }
.pains li { display: flex; gap: 16px; padding: 18px 20px; border-radius: var(--r); background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.pains li:hover { transform: translateX(4px); box-shadow: inset 0 0 0 1px #d3ddee, var(--shadow); }
.pains strong { font-family: var(--font-d); font-size: 16px; font-weight: 600; }
.pains p { font-size: 14.5px; color: var(--ink-3); margin-top: 3px; }
.pains__x, .pains__ok { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; line-height: 1; }
.pains__x { color: #d9534f; background: #fdeeee; }
.pains__ok { color: #fff; background: var(--grad); }
.pains__ok svg { width: 16px; height: 16px; }
.pains li:last-child { box-shadow: inset 0 0 0 1px rgba(109,217,168,.6), 0 12px 30px -14px rgba(63,201,142,.45); }

.funnel-art { position: relative; display: grid; grid-template-columns: 1.15fr .55fr 1fr; align-items: center; min-height: 420px; }
.funnel-art__sources { display: grid; gap: 22px; position: relative; z-index: 1; }
.src { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); font-size: 13px; color: var(--ink-2); animation: float 6s ease-in-out infinite; }
.src:nth-child(2) { animation-delay: -1.5s; margin-left: 18px; } .src:nth-child(3) { animation-delay: -3s; } .src:nth-child(4) { animation-delay: -4.5s; margin-left: 12px; }
.src svg { flex: none; width: 30px; height: 30px; padding: 7px; border-radius: 9px; color: #fff; }
.src span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.src--wa svg { background: #22b760; } .src--ig svg { background: radial-gradient(circle at 30% 110%, #ffd776, #f56040 35%, #c13584 65%, #6c3bd1); } .src--web svg { background: var(--blue); } .src--crm svg { background: #2ba579; }
@keyframes float { 50% { transform: translateY(-6px); } }
.funnel-art__lines { width: 100%; height: 320px; overflow: visible; }
.funnel-art__lines path { fill: none; stroke: #d3ddee; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.funnel-art__lines path.flow { stroke: url(#g-brand); stroke: var(--sky); stroke-width: 2.5; stroke-dasharray: 14 240; stroke-linecap: round; animation: flow 2.6s linear infinite; }
.funnel-art__lines path.flow:nth-of-type(6) { animation-delay: -.65s; } .funnel-art__lines path.flow:nth-of-type(7) { animation-delay: -1.3s; } .funnel-art__lines path.flow:nth-of-type(8) { animation-delay: -1.95s; }
@keyframes flow { from { stroke-dashoffset: 254; } to { stroke-dashoffset: 0; } }
.hub { position: relative; background: var(--navy); color: #fff; padding: 28px 22px; border-radius: 24px; text-align: center; box-shadow: 0 30px 60px -20px rgba(11,18,32,.55), 0 0 0 1px rgba(255,255,255,.06) inset; overflow: hidden; }
.hub::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(79,168,245,.35), transparent 60%); }
.hub > * { position: relative; }
.hub__star { width: 64px; height: 64px; object-fit: contain; margin: 0 auto 14px; animation: spin 18s linear infinite; filter: drop-shadow(0 6px 18px rgba(79,168,245,.5)); }
.hub strong { display: block; font-family: var(--font-d); font-size: 17px; }
.hub span { display: block; font-size: 12.5px; color: #9fb0cc; margin-top: 6px; }

/* =========================================================
   BENTO — todo en un lugar
   ========================================================= */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bento__card { position: relative; border-radius: var(--r-lg); padding: 28px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); display: flex; flex-direction: column; gap: 24px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.bento__card:hover { --lift: -4px; box-shadow: inset 0 0 0 1px #d3ddee, var(--shadow); }
.bento__card--wide { grid-column: span 2; flex-direction: row; align-items: center; }
.bento__card--wide .bento__txt { flex: 0 0 30%; }
.bento__card--wide > :last-child { flex: 1; min-width: 0; }
.bento__txt h3 { font-size: 21px; font-weight: 600; }
.bento__txt p { font-size: 15px; color: var(--ink-3); margin-top: 8px; }
.bento__card--dark { background: var(--navy); color: #fff; box-shadow: 0 20px 50px -24px rgba(11,18,32,.6); }
.bento__card--dark .bento__txt p { color: #9fb0cc; }
.bento__card--dark::before { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(79,168,245,.25), transparent 65%); }

.inbox-mini { border-radius: 16px; background: var(--paper-2); padding: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.inbox-mini__tabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.inbox-mini__tabs button { border: 0; background: none; transition: background .2s, color .2s, box-shadow .2s; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--ink-3); padding: 7px 10px; border-radius: 9px; }
.inbox-mini__tabs button:hover { color: var(--ink); background: rgba(255,255,255,.6); }
.inbox-mini__tabs button.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.inbox-mini__tabs b { color: var(--blue); }
.inbox-mini__tabs svg { width: 14px; height: 14px; }
.inbox-mini__rows { display: grid; gap: 6px; }
.inbox-mini__rows li { display: grid; grid-template-columns: 8px 96px 1fr auto 40px; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; background: #fff; font-size: 13px; box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), opacity .5s; }
.inbox-mini__rows em { font-style: normal; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-mini__rows time { font-size: 11.5px; color: var(--ink-3); text-align: right; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot--wa { background: #22b760; } .dot--ig { background: #d6317c; } .dot--web { background: var(--blue); } .dot--mint { background: var(--st-venta); }

.team-mini { display: grid; gap: 12px; margin-top: auto; }
.team-mini__row { display: grid; grid-template-columns: 34px 1fr 70px; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--paper-2); }
.team-mini__row b { font-size: 14px; display: block; }
.team-mini__row small { font-size: 12px; color: var(--ink-3); }
.team-mini__bar { height: 6px; border-radius: 6px; background: #e2e8f2; overflow: hidden; }
.team-mini__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width 1.4s var(--ease) .3s; }
.is-in .team-mini__bar i { width: var(--w); }

.timeline-mini { display: grid; gap: 0; margin-top: auto; position: relative; }
.timeline-mini::before { content: ""; position: absolute; left: 3.5px; top: 14px; bottom: 14px; width: 1px; background: var(--line); }
.timeline-mini div { display: flex; gap: 16px; align-items: flex-start; padding: 8px 0; position: relative; }
.timeline-mini .dot { margin-top: 6px; box-shadow: 0 0 0 4px #fff; }
.timeline-mini p { font-size: 13.5px; color: var(--ink-2); flex: 1; display: flex; flex-wrap: wrap; gap: 0 6px; }
.timeline-mini b { font-weight: 600; color: var(--ink); }
.timeline-mini small { margin-left: auto; color: var(--ink-3); font-size: 12px; }

.sync-mini { position: relative; display: flex; align-items: center; justify-content: center; gap: 0; }
.sync-mini__node { flex: none; width: 104px; height: 104px; border-radius: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); font-size: 13px; color: #cfdaeb; }
.sync-mini__node img { width: 40px; height: 40px; object-fit: contain; animation: spin 20s linear infinite; }
.sync-mini__node svg { width: 38px; height: 38px; color: var(--mint); }
.sync-mini__wire { position: relative; flex: 1; max-width: 220px; height: 2px; background: rgba(255,255,255,.12); }
.sync-mini__wire i { position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); animation: wire 2.4s linear infinite; }
.sync-mini__wire i:nth-child(2) { animation-delay: -.8s; background: var(--sky); box-shadow: 0 0 12px var(--sky); animation-direction: reverse; }
.sync-mini__wire i:nth-child(3) { animation-delay: -1.6s; }
@keyframes wire { from { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 8px); opacity: 0; } }

/* =========================================================
   SEGUIMIENTO
   ========================================================= */
.follow__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.checks { display: grid; gap: 14px; margin-top: 32px; }
.checks li { display: flex; align-items: center; gap: 14px; font-size: 16px; color: var(--ink-2); }
.checks svg { flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 8px; color: #fff; background: var(--grad); }

.queue { position: relative; border-radius: var(--r-xl); padding: 22px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg); }
.queue::before { content: ""; position: absolute; inset: 40px -30px -30px 40px; z-index: -1; border-radius: var(--r-xl); background: var(--grad); opacity: .16; filter: blur(40px); }
.queue__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 4px 4px 16px; }
.queue__head strong { display: block; font-family: var(--font-d); font-size: 18px; }
.queue__head small { color: var(--ink-3); font-size: 13px; }
.queue__count { font-size: 13px; color: var(--ink-3); background: var(--paper-2); padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.queue__count b { color: var(--blue); }
.queue__list { display: grid; gap: 8px; }
.qi { display: grid; grid-template-columns: 38px 1fr auto auto; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: var(--paper-2); transition: transform .5s var(--ease), opacity .5s, background .3s, max-height .5s var(--ease), padding .5s, margin .5s; max-height: 90px; }
.qi:hover { background: #eef3fb; }
.qi .avatar { width: 38px; height: 38px; }
.qi__body { min-width: 0; }
.qi__body b { display: block; font-size: 14.5px; }
.qi__body small { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qi__body small svg { flex: none; width: 13px; height: 13px; }
.qi__tag { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--font-b); padding: 7px 10px; border-radius: 999px; white-space: nowrap; }
.qi__tag svg { width: 13px; height: 13px; }
.qi__tag--urgent { color: #b4541a; background: #fff1e4; }
.qi__tag--urgent svg { animation: tick 2s steps(8) infinite; }
@keyframes tick { to { transform: rotate(360deg); } }
.qi__tag--revive { color: #8a6412; background: #fdf3dc; }
.qi__tag--close { color: #0e7f6f; background: #dcf6f0; }
.qi__btn { border: 0; height: 34px; padding: 0 14px; border-radius: 10px; font-size: 13px; font-weight: 600; color: #fff; background: var(--blue); transition: transform .2s, box-shadow .2s; }
.qi__btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -6px rgba(30,95,232,.7); }
.qi__btn--ghost { color: var(--blue); background: #fff; box-shadow: inset 0 0 0 1px #cfdcf5; }
.qi.is-done { opacity: 0; transform: translateX(40px); max-height: 0; padding-top: 0; padding-bottom: 0; margin-top: -8px; }
.queue__suggest { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(30,95,232,.06), rgba(109,217,168,.1)); box-shadow: inset 0 0 0 1px rgba(79,168,245,.25); }
.queue__suggest img { flex: none; width: 22px; height: 22px; object-fit: contain; margin-top: 2px; }
.queue__suggest small { font-size: 12px; font-weight: 600; color: var(--blue); }
.queue__suggest p { font-size: 14px; color: var(--ink-2); margin-top: 3px; min-height: 42px; }
.queue__suggest p::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--blue); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.toast { position: absolute; left: 50%; bottom: -18px; transform: translate(-50%, 10px); display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: #fff; background: var(--navy); box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease); white-space: nowrap; }
.toast svg { width: 16px; height: 16px; color: var(--mint); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   ASISTENTE (oscuro)
   ========================================================= */
.assistant { background: var(--navy); color: #fff; overflow: hidden; isolation: isolate; }
.assistant__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 60% 50% at 20% 10%, rgba(30,95,232,.28), transparent 60%), radial-gradient(ellipse 50% 40% at 90% 90%, rgba(109,217,168,.16), transparent 60%); }
.assistant__star { position: absolute; width: 760px; aspect-ratio: 1; right: -260px; top: 50%; margin-top: -380px; opacity: .06; object-fit: contain; animation: spin 160s linear infinite reverse; }
.assistant__logo { height: 44px; width: auto; object-fit: contain; margin-bottom: 26px; }
.section-head--dark .lead { color: #a9b7cf; }
.assistant__grid { display: grid; grid-template-columns: 1fr 380px; gap: clamp(32px, 5vw, 72px); align-items: center; }
.caps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cap { display: flex; flex-direction: column; gap: 18px; padding: 26px; border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); backdrop-filter: blur(6px); transition: transform .35s var(--ease), box-shadow .35s, background .35s; }
.cap:hover { --lift: -4px; background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)); box-shadow: inset 0 0 0 1px rgba(109,217,168,.35), 0 20px 40px -20px rgba(109,217,168,.35); }
.cap__ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(30,95,232,.35), rgba(109,217,168,.25)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); color: #fff; }
.cap__ic svg { width: 22px; height: 22px; }
.cap h3 { font-size: 19px; font-weight: 600; }
.cap p { font-size: 14.5px; color: #9fb0cc; margin-top: 8px; line-height: 1.55; }

.phone { position: relative; border-radius: 40px; padding: 12px; background: linear-gradient(160deg, #26324b, #0f1729); box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 40px 90px -30px rgba(0,0,0,.8), 0 0 90px -30px rgba(79,168,245,.5); }
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; width: 88px; height: 22px; margin-left: -44px; border-radius: 12px; background: #0b1220; z-index: 2; }
.phone__head { display: flex; align-items: center; gap: 10px; padding: 48px 16px 14px; background: #f4f6fa; border-radius: 30px 30px 0 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.phone__head strong { display: block; font-size: 14.5px; }
.phone__head small { font-size: 12px; color: #169a69; }
.phone__msgs { -webkit-mask-image: linear-gradient(transparent, #000 56px); mask-image: linear-gradient(transparent, #000 56px); height: 440px; padding: 16px 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 9px; overflow: hidden; background: #eef2f7; border-radius: 0 0 30px 30px; color: var(--ink); }
.phone .msg { max-width: 84%; font-size: 13.5px; }
.phone .msg--out { background: linear-gradient(135deg, #2a6cf0, #1E5FE8); }
.handoff-note { align-self: center; display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; color: #0e7f6f; background: #dcf6f0; padding: 6px 11px; border-radius: 999px; animation: msgIn .45s var(--ease) both; }
.handoff-note svg { width: 13px; height: 13px; }

.handoff { margin-top: clamp(48px, 6vw, 72px); display: flex; align-items: center; gap: 32px; padding: 28px 32px; border-radius: var(--r-lg); background: linear-gradient(120deg, rgba(109,217,168,.1), rgba(79,168,245,.06)); box-shadow: inset 0 0 0 1px rgba(109,217,168,.28); }
.handoff h3 { font-size: 20px; font-weight: 600; }
.handoff p { color: #a9b7cf; margin-top: 6px; max-width: 720px; }
.handoff__flow { flex: none; display: flex; align-items: center; }
.handoff__node { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #fff; }
.handoff__node img { width: 32px; height: 32px; object-fit: contain; animation: spin 16s linear infinite; }
.handoff__node--human { background: var(--grad); color: #fff; }
.handoff__node--human svg { width: 24px; height: 24px; }
.handoff__line { position: relative; width: 70px; height: 2px; background: rgba(255,255,255,.15); overflow: hidden; }
.handoff__line i { position: absolute; top: 0; left: -30px; width: 30px; height: 2px; background: linear-gradient(90deg, transparent, var(--mint)); animation: hand 1.8s linear infinite; }
@keyframes hand { to { left: 100%; } }

/* =========================================================
   PLANES
   ========================================================= */
.plans { background: var(--paper-2); }
.plans__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 460px)); justify-content: center; gap: 24px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 26px; padding: 36px; border-radius: var(--r-xl); background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.plan:hover { --lift: -8px; box-shadow: inset 0 0 0 1px #cfdcf0, var(--shadow-lg); }
.plan__top h3 { font-size: 26px; font-weight: 600; }
.plan__top p { color: var(--ink-3); margin-top: 8px; }
.plan__price { padding: 20px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.plan__price span { display: block; font: 600 30px/1.1 var(--font-d); letter-spacing: -.03em; }
.plan__price small { display: block; margin-top: 6px; color: var(--ink-3); font-size: 13.5px; }
.plan__price em { font: 500 16px var(--font-b); font-style: normal; letter-spacing: 0; color: var(--ink-3); margin-left: 4px; }
.plan__price small b { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.plan--featured .plan__price em { color: #9fb0cc; }
.plan--featured .plan__price small b { color: #fff; }
.plan__list { display: grid; gap: 13px; }
.plan__list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--ink-2); }
.plan__list svg { flex: none; width: 20px; height: 20px; padding: 3px; margin-top: 2px; border-radius: 6px; color: var(--blue); background: rgba(30,95,232,.1); }
.plan--featured { background: var(--navy); color: #fff; box-shadow: 0 0 0 1px rgba(109,217,168,.45), 0 30px 70px -30px rgba(11,18,32,.7), 0 0 60px -18px rgba(109,217,168,.45); }
.plan--featured::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 100% 0%, rgba(79,168,245,.28), transparent 50%), radial-gradient(circle at 0% 100%, rgba(109,217,168,.16), transparent 50%); pointer-events: none; }
.plan--featured > * { position: relative; }
.plan--featured:hover { box-shadow: 0 0 0 1.5px var(--mint), 0 40px 80px -30px rgba(11,18,32,.8), 0 0 80px -10px rgba(109,217,168,.6); }
.plan--featured .plan__top p, .plan--featured .plan__price small { color: #9fb0cc; }
.plan--featured .plan__price { border-color: rgba(255,255,255,.1); }
.plan--featured .plan__list li { color: #d3dded; }
.plan--featured .plan__list svg { color: #062016; background: var(--mint); }
.plan__badge { position: absolute !important; top: -13px; right: 28px; box-shadow: 0 6px 18px -6px rgba(109,217,168,.7); font: 700 12px/1 var(--font-b); letter-spacing: .02em; color: #062016; background: var(--grad); padding: 8px 12px; border-radius: 999px; }

/* =========================================================
   DASHBOARD DE VENTAS
   ========================================================= */
.dash { border-radius: var(--r-xl); padding: clamp(18px, 2.4vw, 28px); background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg); position: relative; }
.dash::before { content: ""; position: absolute; inset: 10% 5% -40px; z-index: -1; background: var(--grad); filter: blur(80px); opacity: .18; border-radius: 50%; }
.dash__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.dash__top strong { display: block; font-family: var(--font-d); font-size: 19px; }
.dash__top small { color: var(--ink-3); font-size: 13px; }
.dash__range { display: flex; padding: 4px; border-radius: 12px; background: var(--paper-2); }
.dash__range span { font-size: 13px; font-weight: 500; color: var(--ink-3); padding: 7px 12px; border-radius: 9px; }
.dash__range span.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { padding: 18px 20px; border-radius: 18px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.kpi small { display: block; font-size: 13px; color: var(--ink-3); }
.kpi b { display: block; font: 600 clamp(26px, 2.6vw, 34px)/1.2 var(--font-d); letter-spacing: -.03em; margin-top: 8px; }
.kpi em { display: inline-block; font-style: normal; font-size: 12px; font-weight: 600; margin-top: 8px; padding: 4px 8px; border-radius: 999px; }
.kpi em.up { color: #0f8a5f; background: #ddf6ea; }
.dash__row { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 14px; margin-top: 14px; }
.panel { padding: 20px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.panel__head strong { font-size: 14.5px; }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.lg { width: 10px; height: 3px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.lg--a { background: var(--blue); } .lg--b { background: var(--mint); }
.chart { width: 100%; height: 200px; overflow: visible; }
.chart__grid line { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart__line { fill: none; stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 2s var(--ease); }
.chart__line--a { stroke: var(--blue); }
.chart__line--b { stroke: var(--mint); stroke-width: 2.5; transition-delay: .3s; }
.chart__area { opacity: 0; transition: opacity 1.2s ease .9s; }
.chart__dot { fill: #fff; stroke: var(--blue); stroke-width: 3; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .4s 1.9s; }
.is-in .chart__line { stroke-dashoffset: 0; }
.is-in .chart__area, .is-in .chart__dot { opacity: 1; }
.chart__x { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: 8px; }
.bars { display: grid; gap: 11px; }
.bars li { display: grid; grid-template-columns: 1fr 36px; grid-template-rows: auto 6px; gap: 5px 10px; align-items: center; font-size: 12.5px; color: var(--ink-2); }
.bars li span { grid-column: 1; }
.bars li b { grid-column: 2; grid-row: 1 / 3; text-align: right; font-size: 13px; }
.bars li i { grid-column: 1; grid-row: 2; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--c) var(--w), #edf1f7 var(--w)); background-size: 0% 100%; background-repeat: no-repeat; background-color: #edf1f7; transition: background-size 1.4s var(--ease); }
.bars li i { background: #edf1f7; position: relative; overflow: hidden; }
.bars li i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; background: var(--c); transition: width 1.4s var(--ease); }
.is-in .bars li i::after { width: var(--w); }
.bars li:nth-child(2) i::after { transition-delay: .1s; } .bars li:nth-child(3) i::after { transition-delay: .2s; } .bars li:nth-child(4) i::after { transition-delay: .3s; } .bars li:nth-child(5) i::after { transition-delay: .4s; } .bars li:nth-child(6) i::after { transition-delay: .5s; }
.donut { position: relative; width: 150px; height: 150px; margin: 4px auto 18px; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 5.2; }
.donut__track { stroke: #edf1f7; }
.donut__seg { stroke: var(--c); stroke-dasharray: 0 100; stroke-dashoffset: calc(var(--o) * -1); transition: stroke-dasharray 1.4s var(--ease); }
.is-in .donut__seg { stroke-dasharray: calc(var(--p) - .8) calc(100.8 - var(--p)); }
.donut__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut__center b { font: 600 26px/1 var(--font-d); }
.donut__center small { font-size: 12px; color: var(--ink-3); }
.donut__legend { display: grid; gap: 8px; }
.donut__legend li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.donut__legend i { width: 9px; height: 9px; border-radius: 3px; }
.donut__legend b { margin-left: auto; }

/* =========================================================
   CONFIANZA (oscuro)
   ========================================================= */
.trust { background: radial-gradient(ellipse 60% 80% at 0% 50%, rgba(30,95,232,.3), transparent 60%), var(--navy); color: #fff; overflow: hidden; }
.trust__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 5vw, 80px); align-items: center; }
.trust__grid--solo { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.trust__num { font: 600 clamp(64px, 9vw, 120px)/1 var(--font-d); letter-spacing: -.05em; margin-top: 28px; background: linear-gradient(180deg, #fff 30%, #9fc6ff); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.trust__label { font-size: 20px; color: #cfdaeb; margin-top: 10px; }
.trust__note { font-size: 12px; color: #6f7f9b; margin-top: 14px; font-style: italic; }
.trust__cards { display: grid; gap: 14px; }
.tcard { display: grid; grid-template-columns: 48px 1fr; gap: 4px 18px; padding: 22px 24px; border-radius: var(--r-lg); background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); transition: background .3s, box-shadow .3s, transform .35s var(--ease); }
.tcard:hover { background: rgba(255,255,255,.07); --lift: -3px; box-shadow: inset 0 0 0 1px rgba(79,168,245,.35); }
.tcard__ic { grid-row: span 2; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(79,168,245,.12); color: var(--sky); box-shadow: inset 0 0 0 1px rgba(79,168,245,.25); }
.tcard__ic svg { width: 22px; height: 22px; }
.tcard__ic--flag { display: flex; flex-direction: column; padding: 13px 11px; gap: 0; }
.tcard__ic--flag i, .mini-flag i { display: block; flex: 1; width: 100%; }
.tcard__ic--flag i:nth-child(1), .mini-flag i:nth-child(1) { background: #1a1a1a; border-radius: 3px 3px 0 0; }
.tcard__ic--flag i:nth-child(2), .mini-flag i:nth-child(2) { background: #dd0000; }
.tcard__ic--flag i:nth-child(3), .mini-flag i:nth-child(3) { background: #ffce00; border-radius: 0 0 3px 3px; }
.tcard h3 { font-size: 17px; font-weight: 600; align-self: end; }
.tcard p { font-size: 14.5px; color: #9fb0cc; }
.seals { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 12px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.08); }
.seals li { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; color: #cfdaeb; }
.seals svg { flex: none; width: 34px; height: 34px; padding: 6px; border-radius: 50%; color: var(--mint); box-shadow: inset 0 0 0 1px rgba(109,217,168,.35); background: rgba(109,217,168,.06); }
.seals li:first-child svg { padding: 0; box-shadow: none; background: none; color: #ffd24a; }

/* =========================================================
   SEGURIDAD
   ========================================================= */
.security { overflow: hidden; }
.security__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.security__art { position: relative; aspect-ratio: 1; max-width: 500px; width: 100%; margin: 0 auto; display: grid; place-items: center; }
.orbit { position: absolute; border-radius: 50%; border: 1px dashed #cfdaeb; }
.orbit--1 { inset: 4%; animation: spin 80s linear infinite; }
.orbit--2 { inset: 18%; border-style: solid; border-color: #e3e9f3; }
.orbit--3 { inset: 32%; background: radial-gradient(circle, rgba(79,168,245,.18), transparent 70%); border: 0; }
.orbit--1::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 16px var(--mint); }
.eu-ring { position: absolute; inset: 10%; width: 80%; height: 80%; animation: spin 120s linear infinite; opacity: .9; }
.shield { position: relative; width: 36%; aspect-ratio: 1; border-radius: 30%; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line); }
.shield svg { width: 58%; height: 58%; filter: drop-shadow(0 8px 16px rgba(30,95,232,.35)); }
.sec-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; }
.sec-chip svg { width: 15px; height: 15px; color: var(--blue); }
.sec-chip--a { top: 12%; left: 0; } .sec-chip--b { top: 22%; right: 0; animation-delay: -2s; } .sec-chip--c { bottom: 12%; left: 12%; animation-delay: -4s; }
.mini-flag { display: inline-flex; flex-direction: column; width: 18px; height: 13px; border-radius: 3px; overflow: hidden; }
.sec-list { display: grid; gap: 8px; margin-top: 36px; }
.sec-list li { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.sec-list li:last-child { border-bottom: 0; }
.sec-list span { font: 600 14px/1.6 var(--font-d); color: var(--blue); }
.sec-list h3 { font-size: 18px; font-weight: 600; }
.sec-list p { color: var(--ink-3); margin-top: 6px; }
.sec-stat { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 15px; }
.sec-stat b { font: 600 clamp(34px, 3.4vw, 44px)/1 var(--font-d); letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }

/* =========================================================
   CÓMO FUNCIONA
   ========================================================= */
.how { background: var(--paper-2); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps::before { content: ""; position: absolute; top: 36px; left: 12.5%; right: 12.5%; height: 2px; background: var(--line); }
.steps::after { content: ""; position: absolute; top: 36px; left: 12.5%; height: 2px; width: calc(75% * var(--p, 0)); background: var(--grad); transition: width .2s linear; }
.hstep { position: relative; text-align: center; padding: 0 8px; }
.hstep__n { position: relative; z-index: 1; width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 22px; display: grid; place-items: center; font: 600 26px/1 var(--font-d); color: var(--ink-3); background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); transition: color .4s, background .4s, box-shadow .4s, transform .4s var(--ease); }
.hstep.is-lit .hstep__n { color: #fff; background: var(--grad); box-shadow: 0 12px 28px -10px rgba(30,95,232,.6); transform: translateY(-4px); }
.hstep h3 { font-size: 19px; font-weight: 600; }
.hstep p { color: var(--ink-3); font-size: 15px; margin-top: 8px; }

/* =========================================================
   EQUIPO
   ========================================================= */
.team__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 24px; }
.member { text-align: center; padding: 40px 32px 36px; border-radius: var(--r-xl); background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s; }
.member:hover { --lift: -6px; box-shadow: inset 0 0 0 1px #d3ddee, var(--shadow-lg); }
.member__avatar { position: relative; width: 112px; height: 112px; margin: 0 auto 22px; border-radius: 50%; padding: 4px; background: conic-gradient(from 0deg, #1E5FE8, #4FA8F5, #6DD9A8, #1E5FE8); }
.member__avatar::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; background: conic-gradient(from 0deg, #1E5FE8, #4FA8F5, #6DD9A8, #1E5FE8); filter: blur(18px); opacity: 0; transition: opacity .4s; z-index: -1; }
.member:hover .member__avatar::before { opacity: .45; }
.member__avatar span { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; font: 600 34px/1 var(--font-d); color: var(--navy); background: #fff; }
.member__avatar--b { background: conic-gradient(from 180deg, #1E5FE8, #4FA8F5, #6DD9A8, #1E5FE8); }
.member h3 { font-size: 22px; font-weight: 600; }
.member__role { display: inline-block; margin-top: 10px; font: 700 12px/1 var(--font-b); letter-spacing: .1em; color: var(--blue); padding: 7px 12px; border-radius: 999px; background: rgba(30,95,232,.08); }
.member p { color: var(--ink-3); font-size: 15px; margin-top: 16px; }

/* =========================================================
   CTA FINAL
   ========================================================= */
.cta { padding: 0 0 var(--sec); }
.cta__box { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: clamp(56px, 8vw, 104px) clamp(24px, 6vw, 80px); border-radius: 36px; background: var(--navy); color: #fff; box-shadow: var(--shadow-lg); }
.cta__box::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(30,95,232,.5), transparent 70%), radial-gradient(ellipse 40% 50% at 100% 100%, rgba(109,217,168,.25), transparent 70%); }
.cta__star { position: absolute; z-index: -1; width: 520px; aspect-ratio: 1; left: 50%; top: 50%; margin: -260px 0 0 -260px; opacity: .08; object-fit: contain; animation: spin 90s linear infinite; }
.cta__box h2 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 600; max-width: 860px; margin: 0 auto; }
.cta__box h2 .grad-text { display: inline; }
.cta__box p { color: #a9b7cf; font-size: 18px; max-width: 560px; margin: 22px auto 0; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--navy); color: #a9b7cf; padding: 72px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__brand img { height: 40px; width: auto; object-fit: contain; }
.footer__brand p { margin-top: 18px; max-width: 320px; font-size: 15px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer__col h4 { font: 600 13px/1 var(--font-b); letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 6px; }
.footer__col a, .footer__link { font-size: 15px; color: #a9b7cf; transition: color .2s; background: none; border: 0; padding: 0; }
.footer__col a:hover, .footer__link:hover { color: #fff; }
.footer__mail { display: inline-flex; align-items: center; gap: 8px; word-break: break-all; }
.footer__mail svg { flex: none; width: 18px; height: 18px; color: var(--mint); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; font-size: 13.5px; color: #6f7f9b; }
.footer__eu { display: inline-flex; align-items: center; gap: 8px; }
.footer__eu i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(109,217,168,.18); }

/* =========================================================
   MODAL
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(6,10,20,.66); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; } }
.modal__card { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; padding: 36px; border-radius: 28px; background: #fff; box-shadow: 0 40px 100px -20px rgba(0,0,0,.6); animation: modalIn .45s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.modal__close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--paper-2); display: grid; place-items: center; color: var(--ink-2); transition: background .2s; }
.modal__close:hover { background: #e9eef7; }
.modal__close svg { width: 18px; height: 18px; }
.modal__star { width: 44px; height: 44px; object-fit: contain; animation: spin 14s linear infinite; }
.modal__card h2 { font-size: 28px; font-weight: 600; margin-top: 16px; }
.modal__card > div > p { color: var(--ink-3); margin-top: 8px; }
#demoForm { display: grid; gap: 14px; margin-top: 24px; }
.field { display: grid; gap: 7px; }
.field span { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea { width: 100%; font: 15px/1.4 var(--font-b); color: var(--ink); padding: 13px 14px; border-radius: 12px; border: 0; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, background .2s; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9aa6ba; }
.field input:focus, .field textarea:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--blue), 0 0 0 4px rgba(30,95,232,.12); }
.field.is-invalid input { box-shadow: inset 0 0 0 1.5px #e0564f, 0 0 0 4px rgba(224,86,79,.1); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-error { color: #c8423b; font-size: 13.5px; min-height: 0; }
.form-error:empty { display: none; }
.form-foot { text-align: center; color: var(--ink-3); font-size: 13px; }
.form-foot a { color: var(--blue); font-weight: 500; }
.modal__done { text-align: center; padding: 16px 0 4px; }
.modal__done p { color: var(--ink-3); margin: 10px auto 24px; max-width: 380px; }
.done-ic { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 14px 30px -10px rgba(63,201,142,.6); animation: pop .6s var(--ease); }
.done-ic svg { width: 30px; height: 30px; }

/* =========================================================
   REVEAL
   ========================================================= */
.reveal { visibility: hidden; }
.no-anim .reveal, .no-anim [data-intro] { visibility: visible !important; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .app__body { grid-template-columns: 64px 300px 1fr; }
  .app__side { display: none; }
}
@media (max-width: 1024px) {
  .nav__links, .nav__mail { display: none; }
  .nav__burger { display: block; }
  .nav__actions { margin-left: auto; }
  .promise__grid, .follow__grid, .security__grid, .trust__grid { grid-template-columns: 1fr; }
  .assistant__grid { grid-template-columns: 1fr; }
  .phone { max-width: 380px; margin: 0 auto; width: 100%; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento__card--wide { flex-direction: column; align-items: stretch; }
  .bento__card--wide .bento__txt { flex: none; }
  .dash__row { grid-template-columns: 1fr 1fr; }
  .panel--chart { grid-column: 1 / -1; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .seals { grid-template-columns: repeat(2, 1fr); }
  .security__art { max-width: 420px; }
}
@media (max-width: 860px) {
  .app__body { grid-template-columns: 1fr; height: auto; }
  .app__list { border-right: 0; border-bottom: 1px solid var(--line); }
  .convs { max-height: 216px; }
  .app__chat { height: 440px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before, .steps::after { display: none; }
  .funnel-art { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .funnel-art__lines { display: none; }
  .funnel-art__sources { grid-template-columns: 1fr 1fr; gap: 12px; }
  .src, .src:nth-child(n) { margin-left: 0; animation: none; }
  .funnel-art__hub { margin-top: 20px; }
  .funnel-art__hub::before { content: ""; display: block; width: 2px; height: 28px; margin: -8px auto 12px; background: linear-gradient(var(--line), var(--sky)); }
}
@media (max-width: 640px) {
  .hero { padding-top: 132px; }
  .hero__stage { margin-top: 52px; }
  .hero__ctas { margin-top: 28px; }
  .hero__ctas .btn { width: 100%; }
  .channels { gap: 6px 18px; margin-top: 28px; }
  .bento { grid-template-columns: 1fr; }
  .bento__card--wide { grid-column: auto; }
  .bento__card { padding: 22px; }
  .inbox-mini__rows li { grid-template-columns: 8px 1fr auto; }
  .inbox-mini__rows em, .inbox-mini__rows time { display: none; }
  .caps { grid-template-columns: 1fr; }
  .handoff { flex-direction: column; align-items: flex-start; padding: 24px; gap: 20px; }
  .plans__grid, .team__grid { grid-template-columns: 1fr; }
  .plan { padding: 28px 24px; }
  .dash__row, .kpis { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 14px; }
  .kpi small { font-size: 12px; }
  .dash__range { display: none; }
  .qi { grid-template-columns: 38px 1fr auto; }
  .qi__btn { grid-column: 2 / 4; justify-self: start; }
  .qi__tag { justify-self: end; }
  .qi { max-height: 140px; }
  .seals { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hstep { display: grid; grid-template-columns: 56px 1fr; gap: 0 18px; text-align: left; }
  .hstep__n { grid-row: span 2; width: 56px; height: 56px; margin: 0; font-size: 22px; border-radius: 18px; }
  .field-row { grid-template-columns: 1fr; }
  .modal__card { padding: 28px 22px; }
  .footer__grid { grid-template-columns: 1fr; }
  .funnel-art__sources { grid-template-columns: 1fr; }
  .sec-chip { font-size: 12px; padding: 7px 11px; }
  .msg { max-width: 86%; }
  .chat__head { padding: 12px 14px; }
  .chat__msgs { padding: 16px 14px 6px; }
  .nav__inner { padding-left: 16px; }
  .nav__logo img { height: 30px; }
  .nav__actions .btn--sm { display: none; }
  .app__live { display: none; }
  .app__title { white-space: nowrap; font-size: 12px; }
  .chat__who small { white-space: nowrap; }
  .chat__head .stage { font-size: 11px; padding: 6px 9px 6px 8px; }
  .pill { font-size: 13px; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, [data-intro] { visibility: visible !important; }
}

/* =========================================================
   V2 — CAPA DE ANIMACIÓN "WOW"
   ========================================================= */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

html.is-loading body { overflow: hidden; }
html.is-loading [data-intro] { visibility: hidden; }

/* gradiente de texto en movimiento */
.grad-text {
  background-image: linear-gradient(90deg, #1E5FE8, #4FA8F5 25%, #6DD9A8 50%, #4FA8F5 75%, #1E5FE8);
  background-size: 200% auto;
  animation: gradflow 7s linear infinite;
}
@keyframes gradflow { to { background-position: -200% center; } }
.hero__grad { color: #8fa8cc; padding-bottom: .08em; }

/* ---------- pantalla de carga ---------- */
.loader { position: fixed; inset: 0; z-index: 400; background: var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; overflow: hidden; }
.loader__glow { position: absolute; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle, rgba(30,95,232,.5), rgba(109,217,168,.14) 45%, transparent 70%); filter: blur(30px); animation: breathe 3s ease-in-out infinite; }
.loader__star { width: 150px; height: 150px; }
.loader__star .star3d__spin { animation-duration: 3.4s; }
.loader__word { position: relative; height: 46px; width: auto; object-fit: contain; }
.loader__bar { position: relative; width: 180px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.loader__bar i { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); }

/* ---------- estrella 3D ---------- */
.star3d { position: relative; perspective: 1200px; }
.star3d__tilt, .star3d__breath, .star3d__spin { position: absolute; inset: 0; transform-style: preserve-3d; }
.star3d__breath { animation: breathe3d 6s ease-in-out infinite; }
.star3d__spin { animation: spin3d 38s linear infinite; }
.star3d__layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
@keyframes spin3d { from { transform: rotateX(26deg) rotateY(-14deg) rotateZ(0deg); } to { transform: rotateX(26deg) rotateY(-14deg) rotateZ(360deg); } }
@keyframes breathe3d { 0%, 100% { transform: scale(1) rotateY(-6deg); } 50% { transform: scale(1.08) rotateY(8deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }

/* ---------- hero ---------- */
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__star-wrap { position: absolute; left: 50%; top: 10px; width: min(980px, 150vw); aspect-ratio: 1; margin-left: calc(min(980px, 150vw) / -2); opacity: .08; }
.hero__star3d { width: 100%; height: 100%; }
.hero__title { perspective: 900px; }
.hero__line1 { display: block; }
.hero__line1 .word { display: inline-block; white-space: nowrap; }
.hero__line1 .char { display: inline-block; transform-origin: 50% 100%; will-change: transform; }
.hero__grad { display: block; }

.scroll-ind { position: absolute; z-index: 4; left: var(--gutter); top: calc(100svh - 150px); display: flex; flex-direction: column; align-items: center; gap: 10px; color: #8fa3c4; }
.scroll-ind__mouse { width: 24px; height: 38px; border-radius: 13px; box-shadow: inset 0 0 0 2px rgba(191,224,255,.55); position: relative; }
.scroll-ind__mouse i { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--mint); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
.scroll-ind__txt { font: 600 10.5px/1 var(--font-b); letter-spacing: .24em; text-transform: uppercase; writing-mode: vertical-rl; }
.scroll-ind__line { width: 2px; height: 56px; border-radius: 2px; background: linear-gradient(var(--sky), transparent); transform-origin: 50% 0; animation: linePulse 1.8s ease-in-out infinite; }
@keyframes linePulse { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- cursor personalizado ---------- */
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; z-index: 500; pointer-events: none; border-radius: 50%; opacity: 0; mix-blend-mode: difference; will-change: transform; }
.cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: #fff; }
.cursor-ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1.5px solid #fff; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .35s, opacity .3s; }
.cursor-ring.is-hover { width: 74px; height: 74px; margin: -37px 0 0 -37px; background-color: #fff; }
html.cursor-on .cursor-dot, html.cursor-on .cursor-ring { opacity: 1; }
html.cursor-on .cursor-ring.is-hover + .cursor-dot { opacity: 0; }
@media (pointer: fine) {
  html.has-cursor, html.has-cursor * { cursor: none !important; }
  html.has-cursor input, html.has-cursor textarea { cursor: text !important; }
}

/* ---------- mockup: cursor fantasma, respuestas rápidas, asignar ---------- */
.fcursor { position: absolute; left: 0; top: 0; z-index: 20; width: 32px; height: 32px; pointer-events: none; opacity: 0; filter: drop-shadow(0 6px 10px rgba(11,18,32,.4)) drop-shadow(0 0 10px rgba(79,168,245,.55)); will-change: transform; }
.fcursor svg { position: relative; z-index: 1; width: 32px; height: 32px; }
.fcursor__ring { position: absolute; left: -11px; top: -13px; width: 40px; height: 40px; border-radius: 50%; background: rgba(30,95,232,.4); transform: scale(0); opacity: 0; }
.fcursor.is-click .fcursor__ring { animation: fclick .6s ease-out; }
@keyframes fclick { 0% { transform: scale(.2); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
.is-pressed { transform: scale(.94) !important; box-shadow: 0 0 0 4px rgba(30,95,232,.22) !important; }

.chat__quick { display: flex; gap: 8px; padding: 2px 18px 0; overflow: hidden; }
.chat__quick > * { flex: none; border: 0; font-family: var(--font-b); display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--blue); background: #fff; box-shadow: inset 0 0 0 1px #d4e1f8; padding: 7px 11px; border-radius: 999px; white-space: nowrap; transition: transform .2s, box-shadow .2s, background .2s; }
.chat__quick svg { width: 13px; height: 13px; }
.side__assign { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; height: 36px; border-radius: 10px; font-size: 13px; font-weight: 600; color: #fff; background: var(--navy); transition: transform .2s, box-shadow .2s, background .4s; }
.side__assign svg { width: 15px; height: 15px; }
.side__assign.is-done { background: var(--st-listo); }
.msg__pay { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.16); font-size: 13px; }
.msg__pay b { font-family: var(--font-d); }
.msg__pay span { display: inline-flex; align-items: center; gap: 6px; }
.msg__pay svg { width: 15px; height: 15px; }

.typing--out .typing__dots i { background: var(--blue); }

/* estado "Listo para comprar": pulso de brillo */
.stage.is-hot { animation: hot 1.5s ease-out infinite; }
@keyframes hot {
  0% { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent), 0 0 0 0 color-mix(in srgb, var(--c) 60%, transparent), 0 0 16px color-mix(in srgb, var(--c) 50%, transparent); }
  100% { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent), 0 0 0 10px transparent, 0 0 16px color-mix(in srgb, var(--c) 50%, transparent); }
}
.chat__head.is-flash { animation: headFlash 1.4s ease-out; }
@keyframes headFlash { 0% { background: #d9f7ef; } 100% { background: #fff; } }

/* ---------- tilt 3D + brillo ---------- */
.tilt { --rx: 0deg; --ry: 0deg; --lift: 0px; transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift)); will-change: transform; }
.tilt.is-tilting { transition: transform .12s linear, box-shadow .35s, background .35s !important; }
.tilt__glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 4; opacity: 0; transition: opacity .4s; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(120,180,255,.22), transparent 55%); }
.tilt:hover .tilt__glare { opacity: 1; }

/* ---------- aura: borde de gradiente girando ---------- */
.aura { position: absolute; inset: -1.5px; border-radius: inherit; padding: 2px; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--ang), transparent 0deg 140deg, rgba(30,95,232,.95) 200deg, #4FA8F5 250deg, #6DD9A8 305deg, transparent 355deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: ang 3.6s linear infinite; }
.aura-glow { position: absolute; inset: -8px; border-radius: 40px; filter: blur(16px); opacity: .95; pointer-events: none; z-index: 0; }
.aura-glow .aura { inset: 4px; padding: 7px; }
.plan--featured > .aura, .plan--featured > .aura-glow { position: absolute; }
.aura--inset { inset: 0; padding: 1.5px; z-index: 1; }
@keyframes ang { to { --ang: 360deg; } }

/* ---------- ripple ---------- */
.btn, .qi__btn { position: relative; overflow: hidden; isolation: isolate; }
.ripple { position: absolute; border-radius: 50%; pointer-events: none; z-index: -1; background: rgba(255,255,255,.5); transform: scale(0); animation: ripple .75s ease-out forwards; }
.btn--outline .ripple, .qi__btn--ghost .ripple { background: rgba(30,95,232,.22); }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* ---------- divisores de sección ---------- */
.divider { position: relative; z-index: 1; height: clamp(56px, 7vw, 110px); margin: -1px 0; background: var(--from); overflow: hidden; }
.divider__layer { position: absolute; left: 0; bottom: -1px; width: 200%; height: 100%; fill: var(--to); animation: waveMove 16s linear infinite; }
.divider__layer--back { height: 88%; opacity: .5; fill: color-mix(in srgb, var(--to) 45%, #4FA8F5); animation-duration: 26s; animation-direction: reverse; }
@keyframes waveMove { to { transform: translateX(-50%); } }
.divider--diag svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.diag-front { fill: var(--to); }
.diag-back { fill: var(--to); opacity: .35; }

/* ---------- etapas: pipeline anclado ---------- */
.stages { background: linear-gradient(180deg, var(--paper-2), #fff); min-height: 100vh; display: flex; align-items: center; padding: 110px 0 56px; }
.stages__inner { width: 100%; }
.section-head--tight { margin-bottom: clamp(20px, 3vw, 40px); }
.stages .h2 { font-size: clamp(30px, 3.8vw, 46px); margin-top: 16px; }
.stages .lead { margin-top: 14px; font-size: 17px; }
@media (max-height: 820px) { .stages .lead { display: none; } }

.pipeline { --ph: 150px; position: relative; max-width: 1100px; height: calc(var(--ph) + 44px); margin: 0 auto; }
.pipeline__svg { position: absolute; left: 0; top: 0; width: 100%; height: var(--ph); overflow: visible; }
.pipeline__base { fill: none; stroke: #d9e1ee; stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; }
.pipeline__draw { fill: none; stroke: url(#pipeGrad); stroke-width: 5; stroke-linecap: round; filter: drop-shadow(0 4px 10px rgba(30,95,232,.35)); }
.pipeline__comet { position: absolute; left: 0; top: 0; z-index: 2; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(79,168,245,.35), 0 0 26px 8px rgba(79,168,245,.7); will-change: transform; }
.pipeline__nodes { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); }
.pnode { display: flex; flex-direction: column; align-items: center; padding-top: calc(var(--ph) / 2 - 24px); }
.pnode__dot { position: relative; z-index: 3; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink-3); font: 600 16px/1 var(--font-d); box-shadow: inset 0 0 0 2px #dfe6f1, var(--shadow-sm); transition: background .5s, color .5s, box-shadow .5s, transform .5s var(--ease); }
.pnode__dot svg { width: 20px; height: 20px; }
.pnode__label { position: relative; z-index: 3; margin-top: 12px; padding: 3px 8px; border-radius: 8px; background: rgba(255,255,255,.92); font: 600 13.5px/1.25 var(--font-b); color: #a3aec1; text-align: center; transition: color .4s; }
.pnode.is-lit .pnode__dot { background: var(--c); color: #fff; box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 18%, transparent), 0 10px 24px -6px var(--c); transform: scale(1.06); }
.pnode.is-lit .pnode__label { color: var(--ink); }
.pnode.is-current .pnode__dot { transform: scale(1.2); animation: nodePulse 1.6s ease-out infinite; }
@keyframes nodePulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 55%, transparent), 0 10px 24px -6px var(--c); } 100% { box-shadow: 0 0 0 18px transparent, 0 10px 24px -6px var(--c); } }

.stages__detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; max-width: 1000px; margin: clamp(16px, 3vw, 34px) auto 0; }
.stage-card { position: relative; padding: 24px; border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg); transition: box-shadow .5s; }
.stage-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; background: linear-gradient(135deg, var(--c, #4FA8F5), transparent 60%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.stage-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 90% 0%, color-mix(in srgb, var(--c, #4FA8F5) 16%, transparent), transparent 55%); pointer-events: none; }
.stage-card__head { display: flex; align-items: center; gap: 12px; }
.stage-card__head > div { flex: 1; min-width: 0; }
.stage-card__head strong { display: block; font-size: 16px; }
.stage-card__head small { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ink-3); }
.stage-card__head small svg { width: 13px; height: 13px; }
.stage-card__msg { margin-top: 18px; padding: 16px 18px; border-radius: 16px; border-bottom-left-radius: 6px; background: var(--paper-2); font-size: 16px; line-height: 1.5; min-height: 78px; transition: opacity .25s, transform .25s; }
.stage-card__msg.is-swap, .stages__text.is-swap h3, .stages__text.is-swap p { opacity: 0; transform: translateY(8px); }
.stage-card__ai { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13.5px; color: var(--ink-2); }
.stage-card__ai img { flex: none; width: 20px; height: 20px; object-fit: contain; }
.stages__num { font: 600 13px/1 var(--font-d); letter-spacing: .14em; color: var(--blue); }
.stages__text h3 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; margin-top: 12px; transition: opacity .25s, transform .25s; }
.stages__text p { color: var(--ink-3); font-size: 17px; margin-top: 10px; min-height: 3.2em; transition: opacity .25s, transform .25s; }
.stages__hint { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 12.5px; color: var(--ink-3); }
.stages__hint::after { content: "↓"; color: var(--blue); animation: hintBounce 1.4s ease-in-out infinite; }
@keyframes hintBounce { 50% { transform: translateY(4px); } }

.sales .container { perspective: 1600px; }

@media (max-width: 860px) {
  .stages { padding: 88px 0 20px; }
  .stages .h2 { font-size: 27px; }
  .stages .lead, .stages__text p, .stages__hint { display: none; }
  .stages .eyebrow { font-size: 11px; }
  .pipeline { --ph: 96px; height: calc(var(--ph) + 40px); }
  .pnode { padding-top: calc(var(--ph) / 2 - 17px); }
  .pnode__dot { width: 34px; height: 34px; font-size: 13px; }
  .pnode__dot svg { width: 15px; height: 15px; }
  .pnode__label { margin-top: 8px; padding: 2px 3px; font-size: 10.5px; }
  .stages__detail { grid-template-columns: 1fr; gap: 14px; }
  .stages__text { order: -1; text-align: center; }
  .stages__text h3 { font-size: 20px; margin-top: 6px; }
  .stage-card { padding: 18px; }
  .stage-card__msg { font-size: 15px; min-height: 0; margin-top: 14px; }
  .hero__star-wrap { top: 60px; }
  .scroll-ind { left: auto; right: 6px; top: calc(100svh - 96px); gap: 6px; }
  .scroll-ind__mouse { width: 18px; height: 28px; }
  .scroll-ind__mouse i { top: 6px; height: 6px; }
  .scroll-ind__line { height: 30px; }
  .scroll-ind__txt { display: none; }
  .chat__quick { padding: 2px 14px 0; }
  .divider { height: 56px; }
}

.cta__star-wrap { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
@media (min-width: 861px) {
  .how { min-height: 100vh; display: flex; align-items: center; padding: 100px 0 80px; }
  .how > .container { width: 100%; }
}

/* =========================================================
   V3 — scroll suave, escritura real, transición de color
   ========================================================= */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* el fondo lo pinta <body> y GSAP lo interpola entre secciones */
html.bg-shift-on .follow, html.bg-shift-on .assistant, html.bg-shift-on .plans,
html.bg-shift-on .sales, html.bg-shift-on .security { background: transparent; }
/* etapas: el fondo se desvanece al final para que se vea el cambio de color hacia el Asistente */
html.bg-shift-on .stages { background: linear-gradient(180deg, var(--paper-2), rgba(255,255,255,0) 55%); }
html.bg-shift-on .trust { background: radial-gradient(ellipse 60% 80% at 0% 50%, rgba(30,95,232,.3), transparent 60%); }

/* texto que se escribe en tiempo real */
.msg__caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -2px; border-radius: 1px; background: currentColor; animation: caret .9s steps(1) infinite; }
.msg__file, .msg__pay { animation: fadeUp .45s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }

/* móvil: el desenfoque bajo fondos casi opacos no se ve, pero cuesta en cada frame de scroll */
@media (max-width: 860px) {
  .nav__inner { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255,255,255,.97); }
  .cap { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* =========================================================
   CHAT WHATSAPP — agente comercial (js/chat.js + api/chat.js)
   ========================================================= */
.wchat { --wa: #25D366; --wa-dark: #008069; --wa-out: #d9fdd3; --wa-bg: #efeae2; --wa-ink: #111b21; --wa-ink-2: #667781; position: fixed; right: 22px; bottom: 22px; z-index: 90; font-family: var(--font-b); }
.wchat .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.is-loading .wchat { display: none; }

.wchat__fab { position: relative; width: 62px; height: 62px; border: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--wa); box-shadow: 0 10px 28px rgba(37,211,102,.45), 0 2px 6px rgba(11,18,32,.25); transform: scale(0); transition: transform .5s var(--ease), box-shadow .3s; }
.wchat.is-ready .wchat__fab { transform: scale(1); }
@media (hover: hover) { .wchat.is-ready .wchat__fab:hover { transform: scale(1.07); box-shadow: 0 14px 34px rgba(37,211,102,.55), 0 2px 6px rgba(11,18,32,.25); } }
.wchat__fab svg { width: 32px; height: 32px; }
.wchat__fab::after { content: ""; position: absolute; inset: 0; border-radius: 50%; animation: wpulse 2.6s ease-out 1.5s infinite; }
.wchat.is-open .wchat__fab::after { animation: none; }
@keyframes wpulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70%, 100% { box-shadow: 0 0 0 18px rgba(37,211,102,0); } }
.wchat__badge { position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #ff3b30; color: #fff; font: 700 12px/22px var(--font-b); box-shadow: 0 0 0 2px #fff; animation: pop .4s var(--ease); }

.wchat__teaser { position: absolute; right: 0; bottom: 78px; width: 250px; padding: 12px 34px 12px 14px; border-radius: 16px 16px 4px 16px; background: #fff; color: var(--wa-ink); box-shadow: 0 12px 34px rgba(11,18,32,.22); cursor: pointer; font-size: 14px; line-height: 1.4; animation: wteaser .5s var(--ease); }
.wchat__teaser b { display: block; font-size: 13px; color: var(--wa-dark); margin-bottom: 2px; }
.wchat__teaser-x { position: absolute; top: 6px; right: 8px; width: 24px; height: 24px; border: 0; background: none; color: var(--wa-ink-2); font-size: 20px; line-height: 1; }
@keyframes wteaser { from { opacity: 0; transform: translateY(12px) scale(.95); } }

.wchat__panel { position: absolute; right: 0; bottom: 78px; width: 380px; height: min(620px, calc(100vh - 130px)); display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--wa-bg); box-shadow: 0 24px 70px rgba(11,18,32,.35), 0 0 0 1px rgba(11,18,32,.06); transform-origin: 100% 100%; opacity: 0; transform: translateY(16px) scale(.94); transition: opacity .25s, transform .3s var(--ease); }
.wchat.is-open .wchat__panel { opacity: 1; transform: none; }

.wchat__head { display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 10px; background: var(--wa-dark); color: #fff; flex: none; }
.wchat__icbtn { width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; background: none; color: #fff; display: grid; place-items: center; transition: background .2s; }
.wchat__icbtn:hover { background: rgba(255,255,255,.14); }
.wchat__icbtn svg { width: 20px; height: 20px; }
.wchat__back { display: none; }
.wchat__avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--navy); display: grid; place-items: center; }
.wchat__avatar img { width: 26px; height: 26px; object-fit: contain; }
.wchat__who { flex: 1; min-width: 0; line-height: 1.2; }
.wchat__who strong { display: flex; align-items: center; gap: 4px; font-size: 16px; font-weight: 600; }
.wchat__verified { width: 16px; height: 16px; }
.wchat__who small { font-size: 12.5px; opacity: .85; }

.wchat__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 12px 14px 6px; display: flex; flex-direction: column;
  background-color: var(--wa-bg);
  background-image: radial-gradient(rgba(11,18,32,.045) 1.2px, transparent 1.3px), radial-gradient(rgba(11,18,32,.03) 1.2px, transparent 1.3px);
  background-size: 22px 22px, 22px 22px; background-position: 0 0, 11px 11px; }
.wchat__day { align-self: center; margin: 2px 0 8px; padding: 5px 12px; border-radius: 8px; background: #fff; color: var(--wa-ink-2); font-size: 12px; font-weight: 500; box-shadow: 0 1px .5px rgba(11,27,33,.13); }
.wchat__notice { align-self: center; max-width: 92%; margin-bottom: 6px; padding: 7px 12px; border-radius: 8px; background: #ffeecd; color: #54656f; font-size: 12.5px; line-height: 1.4; text-align: center; box-shadow: 0 1px .5px rgba(11,27,33,.13); }
.wchat__sys { align-self: center; margin: 10px 0 4px; padding: 5px 12px; border-radius: 8px; background: #d1f4e0; color: #1a6b43; font-size: 12.5px; font-weight: 500; text-align: center; box-shadow: 0 1px .5px rgba(11,27,33,.13); }

.wmsg { display: flex; margin-top: 8px; }
.wmsg.is-cont { margin-top: 2px; }
.wmsg--out { justify-content: flex-end; }
.wmsg__b { position: relative; max-width: 82%; padding: 6px 9px 8px; border-radius: 8px; background: #fff; color: var(--wa-ink); font-size: 14.2px; line-height: 1.42; overflow-wrap: anywhere; box-shadow: 0 1px .5px rgba(11,27,33,.13); }
.wmsg--out .wmsg__b { background: var(--wa-out); }
.wmsg--in:not(.is-cont) .wmsg__b { border-top-left-radius: 0; }
.wmsg--out:not(.is-cont) .wmsg__b { border-top-right-radius: 0; }
.wmsg:not(.is-cont) .wmsg__b::before { content: ""; position: absolute; top: 0; width: 8px; height: 13px; }
.wmsg--in:not(.is-cont) .wmsg__b::before { left: -8px; background: #fff; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.wmsg--out:not(.is-cont) .wmsg__b::before { right: -8px; background: var(--wa-out); clip-path: polygon(0 0, 100% 0, 0 100%); }
.wmsg__b a { color: #027eb5; text-decoration: underline; }
.wmsg__b strong { font-weight: 600; }
.wmsg__meta { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 8px 0 -5px 10px; font-size: 11px; color: var(--wa-ink-2); line-height: 1; white-space: nowrap; }
.wchat__ticks { width: 16px; height: 11px; color: #53bdeb; }
.wmsg.is-new .wmsg__b { animation: wmsg .28s var(--ease); }
.wmsg--in.is-new .wmsg__b { transform-origin: 0 0; }
.wmsg--out.is-new .wmsg__b { transform-origin: 100% 0; }
@keyframes wmsg { from { opacity: 0; transform: scale(.85) translateY(6px); } }
.wmsg--typing .wmsg__b { display: flex; gap: 4px; padding: 12px 14px; }
.wmsg--typing i { width: 7px; height: 7px; border-radius: 50%; background: #9aa6ad; animation: wdot 1.2s infinite ease-in-out; }
.wmsg--typing i:nth-child(2) { animation-delay: .15s; }
.wmsg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes wdot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.wchat__chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; padding: 0 12px; }
.wchat__chips:not(:empty) { padding: 4px 12px 8px; }
.wchat__chip { border: 1px solid rgba(0,128,105,.35); background: #fff; color: var(--wa-dark); border-radius: 18px; padding: 7px 13px; font-size: 13.5px; font-weight: 500; box-shadow: 0 1px .5px rgba(11,27,33,.1); transition: background .2s, transform .2s var(--ease); }
.wchat__chip:hover { background: #e7f6ef; transform: translateY(-1px); }

.wchat__bar { flex: none; display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px 10px; background: var(--wa-bg); }
.wchat__input { flex: 1; display: flex; min-height: 44px; padding: 0 16px; border-radius: 22px; background: #fff; box-shadow: 0 1px .5px rgba(11,27,33,.13); }
.wchat__input textarea { flex: 1; width: 100%; resize: none; border: 0; outline: 0; background: none; padding: 12px 0; font: 15px/20px var(--font-b); color: var(--wa-ink); max-height: 120px; }
.wchat__input textarea::placeholder { color: #8696a0; }
.wchat__send { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--wa-dark); color: #fff; display: grid; place-items: center; transition: transform .2s var(--ease), background .2s; }
.wchat__send:hover { background: #017561; transform: scale(1.06); }
.wchat__send svg { width: 20px; height: 20px; }

/* movil: el chat ocupa toda la pantalla, como abrir WhatsApp */
@media (max-width: 560px) {
  .wchat { right: 16px; bottom: 16px; }
  .wchat__fab { width: 56px; height: 56px; }
  .wchat__teaser { bottom: 70px; width: min(250px, calc(100vw - 32px)); }
  .wchat__panel { position: fixed; inset: 0; width: auto; height: 100%; height: 100dvh; border-radius: 0; }
  .wchat__back { display: grid; }
  .wchat__x { display: none; }
  .wchat.is-ready.is-open .wchat__fab { transform: scale(0); pointer-events: none; }
  html.wchat-open, html.wchat-open body { overflow: hidden; }
  .wchat__input textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .wchat__fab::after { animation: none; }
  .wchat__panel { transition: none; }
}
.wmsg--cta { margin-top: 4px; flex-wrap: wrap; gap: 6px; }
.wchat__demo { display: inline-flex; align-items: center; gap: 8px; border: 0; padding: 10px 16px; border-radius: 8px !important; background: var(--wa-dark); color: #fff; font: 600 14.5px/1 var(--font-b); box-shadow: 0 2px 8px rgba(0,128,105,.3); transition: background .2s, transform .2s var(--ease); }
.wchat__demo::before { display: none; }
.wchat__demo:hover { background: #017561; transform: translateY(-1px); }
.wchat__demo svg { width: 16px; height: 16px; }
.wchat__demo--form { background: #fff; color: var(--wa-dark); box-shadow: inset 0 0 0 1.5px var(--wa-dark); }
.wchat__demo--form:hover { background: #f0faf7; }
/* el display:flex del panel anulaba [hidden]: cerrado, el panel invisible tapaba la página y bloqueaba el scroll en móvil */
.wchat__panel[hidden], .wchat__teaser[hidden], .wchat__badge[hidden] { display: none; }
.wchat:not(.is-open) .wchat__panel { pointer-events: none; }

/* =========================================================
   V4 — demo navegable, bloque "A medida", formulario
   ========================================================= */
/* menú lateral de la demo */
.rail-btn { position: relative; border: 0; background: none; padding: 0; transition: background .2s, color .2s, box-shadow .2s; }
button.rail-btn:hover { color: #fff; background: rgba(255,255,255,.07); }
.rail-btn.is-active { background: rgba(79,168,245,.16); }
.rail-btn__lbl { display: none; }
.rail-btn__tip { position: absolute; left: calc(100% + 10px); top: 50%; z-index: 30; transform: translate(-4px, -50%); white-space: nowrap; pointer-events: none; opacity: 0; font: 600 12px/1 var(--font-b); color: #fff; background: var(--navy); padding: 7px 10px; border-radius: 8px; box-shadow: var(--shadow); transition: opacity .2s, transform .2s var(--ease); }
button.rail-btn:hover .rail-btn__tip, button.rail-btn:focus-visible .rail-btn__tip { opacity: 1; transform: translate(0, -50%); }

.app__filters { overflow-x: auto; scrollbar-width: none; }
.app__filters::-webkit-scrollbar { display: none; }
.conv.is-new { animation-fill-mode: both; }

/* cabecera del chat y ficha lateral: clicables (abren el perfil) */
.chat__who { border: 0; background: none; padding: 4px 8px 4px 4px; margin: -4px; border-radius: 12px; text-align: left; color: inherit; transition: background .2s; }
.chat__who:hover { background: #f1f5fc; }
.chat__who-txt { min-width: 0; }
.side__who { width: calc(100% + 12px); border: 0; background: none; padding: 6px; margin: 8px -6px; border-radius: 12px; text-align: left; color: inherit; transition: background .2s; }
.side__who:hover { background: #f1f5fc; }
.side__who small { display: block; }
.side__assign { width: 100%; border: 0; }
.side__assign:hover { box-shadow: 0 6px 14px -6px rgba(11,18,32,.5); }
.side__more { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 8px; height: 32px; border: 0; border-radius: 10px; background: none; color: var(--blue); font: 600 12.5px/1 var(--font-b); transition: background .2s; }
.side__more:hover { background: #eef4ff; }
.side__more svg { width: 14px; height: 14px; }
.chat__quick > *:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--blue), 0 6px 14px -8px rgba(30,95,232,.6); }
input.chat__input { min-width: 0; border: 0; outline: 0; background: none; padding: 0; font: 13.5px/1.4 var(--font-b); color: var(--ink); }
input.chat__input::placeholder { color: #9aa6ba; }
.chat__send { border: 0; transition: transform .2s var(--ease); }
.chat__send:hover { transform: scale(1.06); }

/* pantallas de la demo (perfil, respuestas, tiempos, ventas) */
.app__pane { grid-column: 2 / -1; grid-row: 1; min-width: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 22px 24px; background: #fbfcfe; }
.app__pane[hidden] { display: none; }
.app:not([data-view="convs"]) .app__list, .app:not([data-view="convs"]) .app__chat, .app:not([data-view="convs"]) .app__side { display: none; }
.app__pane.is-in > * { animation: fadeUp .45s var(--ease) both; }
.app__pane.is-in > :nth-child(2) { animation-delay: .06s; } .app__pane.is-in > :nth-child(3) { animation-delay: .12s; }
.pane-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.pane-head strong { display: block; font: 600 19px/1.2 var(--font-d); }
.pane-head small { display: block; color: var(--ink-3); font-size: 13px; margin-top: 4px; max-width: 520px; }
.pane-chip { display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px/1 var(--font-b); color: var(--blue); background: #eef4ff; padding: 7px 11px; border-radius: 999px; white-space: nowrap; }
.pane-chip svg { width: 14px; height: 14px; }
.pane-chip--warn { color: #b4541a; background: #fff1e4; }
.app__pane .kpis { gap: 12px; }
.app__pane .kpi { background: #fff; padding: 16px 18px; }
.app__pane .kpi b { font-size: clamp(22px, 2.2vw, 28px); }
.app__pane .panel { background: #fff; }
.app__pane .dash__row { margin-top: 12px; gap: 12px; }
.dash__range button { border: 0; background: none; font: 500 13px/1 var(--font-b); color: var(--ink-3); padding: 7px 12px; border-radius: 9px; transition: background .2s, color .2s; }
.dash__range button:hover { color: var(--ink); }
.dash__range button.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

/* perfil */
.pf { display: grid; grid-template-columns: 230px 1fr; gap: 18px; align-items: start; }
.pf__list { display: grid; gap: 4px; padding: 14px 8px 8px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.pf__list > .side__label { padding: 0 8px 8px; }
.pf__item { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 8px; border-radius: 12px; text-align: left; color: inherit; transition: background .2s, box-shadow .2s; }
.pf__item:hover { background: #f1f5fc; }
.pf__item.is-active { background: #eef4ff; box-shadow: inset 0 0 0 1px #d8e4fb; }
.pf__item .avatar { position: relative; width: 32px; height: 32px; font-size: 11px; }
.pf__item-txt { min-width: 0; }
.pf__item b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf__item small { display: block; font-size: 12px; color: var(--ink-3); }
.pf__head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.pf__avatar { width: 56px; height: 56px; font-size: 18px; }
.pf__id { flex: 1; min-width: 180px; }
.pf__id strong { display: block; font: 600 20px/1.2 var(--font-d); }
.pf__id small { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.pf__id small svg { width: 14px; height: 14px; }
.pf__open { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 0; border-radius: 10px; font: 600 13px/1 var(--font-b); color: #fff; background: var(--blue); transition: transform .2s, box-shadow .2s; }
.pf__open:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(30,95,232,.8); }
.pf__open svg { width: 15px; height: 15px; }
.pf__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.pf__meta { margin-top: 14px; }
.pf__meta dd { overflow-wrap: anywhere; }
.pf__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pf__tags span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); padding: 6px 10px; border-radius: 999px; }
.pf__sub { display: block; margin-top: 18px; }
.pf__last { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); }

/* respuestas rápidas */
.qr { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; align-items: start; }
.qr__list { display: grid; gap: 8px; }
.qr__row { display: flex; align-items: center; gap: 12px; padding: 4px 14px 4px 4px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, opacity .2s; }
.qr__row.is-active { box-shadow: inset 0 0 0 1.5px var(--blue), 0 8px 18px -12px rgba(30,95,232,.6); }
.qr__item { flex: 1; min-width: 0; border: 0; background: none; text-align: left; padding: 10px 12px; border-radius: 10px; color: inherit; }
.qr__item b { display: block; font-size: 14px; }
.qr__item small { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qr__item em { display: block; font-style: normal; font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.qr__row.is-off .qr__item { opacity: .55; }
.switch { flex: none; position: relative; width: 40px; height: 24px; border: 0; padding: 0; border-radius: 999px; background: #d5dce8; transition: background .25s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(11,18,32,.3); transition: transform .25s var(--ease); }
.switch.is-on { background: var(--st-listo); }
.switch.is-on i { transform: translateX(16px); }
.qr__preview { position: sticky; top: 0; padding: 14px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.qr__chat { display: flex; flex-direction: column; gap: 9px; min-height: 250px; margin-top: 12px; padding: 14px; border-radius: 12px; background: #eef2f7; }
.qr__chat .msg { max-width: 88%; font-size: 13.5px; }

/* tiempos */
.tm__row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; margin-top: 12px; }
.bars--time li { grid-template-columns: 1fr 78px; }
.bars--time b { white-space: nowrap; }
.tm__sub { margin-top: 20px; }
.tm__list { display: grid; gap: 8px; }
.tm__list li { display: grid; grid-template-columns: 36px 1fr auto auto; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: var(--paper-2); }
.tm__list .avatar { position: relative; width: 36px; height: 36px; }
.tm__who { min-width: 0; }
.tm__who b { display: block; font-size: 13.5px; }
.tm__who small { display: block; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm__timer { display: inline-flex; align-items: center; gap: 5px; font: 600 12px/1 var(--font-b); color: #0e7f6f; background: #dcf6f0; padding: 6px 9px; border-radius: 999px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tm__timer svg { width: 13px; height: 13px; animation: tick 2s steps(8) infinite; }
.tm__timer.is-late { color: #b4541a; background: #fff1e4; }
.tm__btn { border: 0; height: 32px; padding: 0 12px; border-radius: 9px; font: 600 12.5px/1 var(--font-b); color: #fff; background: var(--blue); transition: transform .2s, box-shadow .2s; }
.tm__btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -6px rgba(30,95,232,.7); }
.tm__empty { display: block !important; text-align: center; color: var(--ink-3); font-size: 13.5px; }

/* "Bandeja unificada": filas filtrables */
.inbox-mini__rows { max-height: 262px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 2px; margin: -2px; }
.inbox-mini__rows li[hidden] { display: none; }
.inbox-mini__rows li.is-new { animation: slideIn .5s var(--ease) both; }

/* hero: mención del diferencial */
.hero__custom { display: inline-flex; align-items: center; gap: 9px; margin-top: 22px; padding: 9px 16px 9px 12px; border-radius: 999px; font: 500 14.5px/1.35 var(--font-b); color: #d6e6ff; background: rgba(109,217,168,.08); box-shadow: inset 0 0 0 1px rgba(109,217,168,.28); transition: background .25s, box-shadow .25s; text-align: left; }
.hero__custom:hover { background: rgba(109,217,168,.14); box-shadow: inset 0 0 0 1px rgba(109,217,168,.5); }
.hero__custom svg { flex: none; width: 18px; height: 18px; padding: 3px; border-radius: 50%; color: #062016; background: var(--mint); }


/* formulario: tipo de negocio + privacidad */
.field select { width: 100%; font: 15px/1.4 var(--font-b); color: var(--ink); padding: 13px 40px 13px 14px; border-radius: 12px; border: 0; background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%236b7890' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; box-shadow: inset 0 0 0 1px var(--line); -webkit-appearance: none; appearance: none; transition: box-shadow .2s, background-color .2s; }
.field select:invalid { color: #9aa6ba; }
.field select option { color: var(--ink); }
.field select:focus { outline: none; background-color: #fff; box-shadow: inset 0 0 0 1.5px var(--blue), 0 0 0 4px rgba(30,95,232,.12); }
.field.is-invalid select { box-shadow: inset 0 0 0 1.5px #e0564f, 0 0 0 4px rgba(224,86,79,.1); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--blue); cursor: pointer; }
.check a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.check.is-invalid { color: #c8423b; }
.check.is-invalid input { outline: 2px solid #e0564f; outline-offset: 1px; }
.form-legal { font-size: 11.5px; line-height: 1.5; color: var(--ink-3); }
.form-legal a { color: var(--blue); }

/* rodapé: 4 columnas */
.footer__grid { grid-template-columns: 1.3fr .8fr 1.3fr .9fr; }

@media (max-width: 1180px) {
  .pf { grid-template-columns: 200px 1fr; }
}
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .pf__grid, .qr, .tm__row { grid-template-columns: 1fr; }
  .qr__preview { position: static; }
}
@media (max-width: 860px) {
  /* móvil: el menú de la demo pasa a ser una barra arriba */
  .app__rail { flex-direction: row; justify-content: space-around; gap: 2px; padding: 6px; overflow-x: auto; scrollbar-width: none; }
  .app__rail::-webkit-scrollbar { display: none; }
  .app__rail-logo, .rail-btn.rail-btn--avatar, .rail-btn__tip { display: none; }
  .rail-btn { flex: 1 1 0; min-width: 58px; width: auto; height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 10px; }
  .rail-btn svg { width: 18px; height: 18px; }
  .rail-btn__lbl { display: block; font: 600 10.5px/1 var(--font-b); }
  .app__pane { grid-column: 1 / -1; grid-row: auto; overflow: visible; padding: 16px 14px 20px; }
  .app__filters { padding: 0 14px 10px; }
  .convs { max-height: 236px; }
  input.chat__input { font-size: 16px; }
  .pf { grid-template-columns: 1fr; gap: 12px; }
  .pf__list { display: flex; gap: 6px; overflow-x: auto; padding: 8px; scrollbar-width: none; }
  .pf__list::-webkit-scrollbar { display: none; }
  .pf__list > .side__label { display: none; }
  .pf__item { flex: none; width: auto; padding: 6px 12px 6px 6px; }
  .pf__item small { display: none; }
  .pf__head { padding: 14px; }
  .pf__open { width: 100%; justify-content: center; }
}
@media (max-width: 640px) {
  .footer__grid { grid-template-columns: 1fr; }
  .app__pane .kpis { grid-template-columns: 1fr 1fr; }
  .app__pane .dash__range { display: flex; }
  .tm__list li { grid-template-columns: 36px 1fr auto; }
  .tm__btn { grid-column: 2 / -1; justify-self: start; }
  .hero__custom { font-size: 13.5px; }
  .qr__chat { min-height: 0; }
}

/* =========================================================
   "A MEDIDA" v2 — comparación sin gradientes: estándar (gris) vs Stella (navy sólido).
   Animación solo con transform/opacity: la línea baja con el scroll y enciende cada paso.
   ========================================================= */
.eyebrow--flat { background: #eef4ff; border-color: #d8e4fb; }
.eyebrow--flat::before { background: var(--blue); box-shadow: 0 0 0 3px rgba(30,95,232,.14); }
.custom__head .h2 { font-size: clamp(32px, 4.4vw, 52px); }
.custom__accent { color: var(--blue); }
.custom-anim .custom .h2 .custom__accent { color: var(--ink-3); transition: color 1s ease .45s; }
.custom-anim .custom .h2.is-in .custom__accent { color: var(--blue); }

.custom__cmp { display: grid; grid-template-columns: .85fr auto 1.15fr; align-items: center; max-width: 1080px; margin: 0 auto; }
.custom__tag { display: inline-block; font: 600 12px/1 var(--font-b); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.custom__tag--on { color: var(--sky); }

.custom__std { margin-right: -16px; padding: 34px 44px 34px 34px; border-radius: var(--r-xl); background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); }
.custom__std > * { transition: opacity .7s var(--ease); }
.custom__std h3 { font-size: 22px; font-weight: 600; color: var(--ink-2); margin-top: 12px; }
.custom__std ul { display: grid; gap: 16px; margin-top: 24px; }
.custom__std li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-3); }
.custom__x { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; line-height: 1; color: #9aa6ba; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.custom__cmp.is-lit .custom__std > * { opacity: .5; }

.custom__vs { position: relative; z-index: 2; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font: 600 13px/1 var(--font-d); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }

.custom__ours { position: relative; margin-left: -16px; padding: 38px 38px 26px 50px; border-radius: var(--r-xl); background: var(--navy); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.04) inset, 0 40px 80px -36px rgba(11,18,32,.75); }
.custom__ours-head { display: flex; align-items: center; gap: 14px; }
.custom__ours-head img { flex: none; width: 40px; height: 40px; object-fit: contain; }
.custom__ours-head h3 { font-size: 22px; font-weight: 600; margin-top: 8px; }
.custom__track { --lx: 20px; position: relative; margin-top: 22px; }
.custom__rail { position: absolute; left: var(--lx); top: 20px; bottom: 20px; width: 2px; margin-left: -1px; border-radius: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
.custom__rail i { position: absolute; inset: 0; background: var(--sky); transform-origin: 50% 0; will-change: transform; }
.custom__steps { position: relative; display: grid; }
.custom__steps li { display: flex; gap: 18px; align-items: flex-start; padding: 14px 0; transition: opacity .6s var(--ease); }
.custom__n { position: relative; z-index: 1; flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 600 13px/1 var(--font-d); color: #fff; background: var(--blue); box-shadow: 0 0 0 6px var(--navy); transition: background .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease); }
.custom__steps h4 { font: 600 17px/1.3 var(--font-d); letter-spacing: -.015em; margin-top: 9px; }
.custom__steps p { font-size: 14.5px; color: #9fb0cc; margin-top: 5px; }
.custom-anim .custom__steps li { opacity: .35; }
.custom-anim .custom__n { color: #7f90ad; background: var(--navy); box-shadow: 0 0 0 6px var(--navy), inset 0 0 0 1.5px rgba(255,255,255,.22); }
.custom-anim .custom__steps li.is-on { opacity: 1; }
.custom-anim .custom__steps li.is-on .custom__n { color: #fff; background: var(--blue); box-shadow: 0 0 0 6px var(--navy), 0 0 0 10px rgba(79,168,245,.2); }

@media (max-width: 860px) {
  .custom__cmp { grid-template-columns: 1fr; justify-items: stretch; }
  .custom__std { margin: 0 0 -27px; padding: 26px 24px 44px; }
  .custom__vs { justify-self: center; }
  .custom__ours { margin: -27px 0 0; padding: 44px 22px 18px; }
}

/* demo del hero: el degradado de abajo tapaba la caja de texto y las respuestas rápidas */
.hero__stage::after { display: none; }
.hero__hint { margin-top: 0; }
.chat__quick { padding: 4px 18px 4px; overflow-x: auto; scrollbar-width: none; }
.chat__quick::-webkit-scrollbar { display: none; }
@media (max-width: 640px) {
  .chat__quick { flex-wrap: wrap; padding: 4px 14px 2px; gap: 6px; }
}

/* móvil: la demo sin inclinación 3D (Safari de iPhone falla al tocar elementos inclinados) y filtros más fáciles de tocar */
@media (max-width: 860px) {
  .app { transform: none !important; will-change: auto; }
  .app__filters button { min-height: 38px; padding: 8px 12px; touch-action: manipulation; }
  .inbox-mini__tabs button { min-height: 38px; touch-action: manipulation; }
}

/* móvil: la sección de etapas se queda fija con position: sticky (lo hace el navegador, sin JS)
   mientras se recorren las 6 etapas; la sección mide 1 pantalla + 2,6 pantallas de recorrido */
@media (max-width: 860px) {
  .stages { display: block; min-height: 0; height: calc(100vh + 260vh); height: calc(100svh + 260svh); padding: 0; }
  .stages__inner { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 84px; padding-bottom: 16px; }
  .stages__inner > * { width: 100%; }
}
@media (max-width: 860px) and (max-height: 700px) {
  .stages .eyebrow { display: none; }
  .stages .h2 { margin-top: 0; font-size: 24px; }
  .stage-card { padding: 14px; }
  .stage-card__msg { margin-top: 10px; padding: 12px 14px; }
}
