/* =============================================================================
 * SEOXtreme · Landing — Sistema de diseño (dark-first, cinematográfico)
 * Vanilla CSS. Sin frameworks. Mobile-first. Accesible.
 * =========================================================================== */

/* -----------------------------------------------------------------------------
 * 1) TOKENS
 * -------------------------------------------------------------------------- */
:root {
  --bg:        #0A0C12;
  --bg-2:      #080A0F;
  --surface:   #12151F;
  --surface-2: #1A1E2B;
  --border:        rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.16);
  --text:  #E8EAF0;
  --muted: #9AA3B6;
  --muted-2: #6C7488;

  --acc-1: #7C5CFF;   /* violeta */
  --acc-2: #22D3EE;   /* cian */
  --acc-pink: #FF5CA8;
  --success: #34D399;
  --gold: #FFC24B;

  --grad:      linear-gradient(120deg, #7C5CFF 0%, #22D3EE 100%);
  --grad-soft: linear-gradient(120deg, #7C5CFF 0%, #22D3EE 80%);
  --grad-warm: linear-gradient(120deg, #FF5CA8 0%, #7C5CFF 100%);
  --grad-text: linear-gradient(100deg, #C9BCFF 0%, #7C5CFF 34%, #22D3EE 78%, #7BF0FF 100%);

  --glow-violet: 0 0 60px -12px rgba(124,92,255,.55);
  --glow-cyan:   0 0 60px -12px rgba(34,211,238,.5);

  --shadow-sm: 0 2px 8px rgba(0,0,0,.25);
  --shadow:    0 18px 50px -20px rgba(0,0,0,.7);
  --shadow-lg: 0 40px 90px -32px rgba(0,0,0,.85);

  --radius:   18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --container: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  color-scheme: dark;
}

/* -----------------------------------------------------------------------------
 * 2) RESET / BASE
 * -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea { font-family: inherit; font-size: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--acc-2); outline-offset: 3px; border-radius: 6px; }

::selection { background: rgba(124,92,255,.35); color: #fff; }

/* Scrollbar refinada */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: #262b3a; border-radius: 10px; border: 3px solid var(--bg-2); }
::-webkit-scrollbar-thumb:hover { background: #333a4d; }

/* -----------------------------------------------------------------------------
 * 3) FONDO CINEMATOGRÁFICO (blobs animados + malla + grano)
 * -------------------------------------------------------------------------- */
.bg-fx { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.bg-fx__grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .5;
  will-change: transform;
}
.blob--1 { width: 620px; height: 620px; top: -220px; left: -140px;
  background: radial-gradient(circle at 30% 30%, #7C5CFF, transparent 62%);
  animation: drift1 26s var(--ease) infinite alternate; }
.blob--2 { width: 560px; height: 560px; top: 4%; right: -180px;
  background: radial-gradient(circle at 60% 40%, #22D3EE, transparent 62%);
  animation: drift2 30s var(--ease) infinite alternate; opacity:.42; }
.blob--3 { width: 520px; height: 520px; top: 46%; left: 40%;
  background: radial-gradient(circle at 50% 50%, #FF5CA8, transparent 64%);
  animation: drift3 34s var(--ease) infinite alternate; opacity:.28; }
.blob--4 { width: 480px; height: 480px; bottom: -160px; left: 8%;
  background: radial-gradient(circle at 50% 50%, #7C5CFF, transparent 64%);
  animation: drift1 38s var(--ease) infinite alternate-reverse; opacity:.3; }

@keyframes drift1 { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(90px,60px,0) scale(1.12); } }
@keyframes drift2 { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-80px,50px,0) scale(1.08); } }
@keyframes drift3 { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(60px,-70px,0) scale(1.15); } }

.bg-fx__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% -10%, transparent 40%, rgba(8,10,15,.55) 100%);
}

/* -----------------------------------------------------------------------------
 * 4) LAYOUT
 * -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.15rem, 4vw, 2rem); }
.section { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.section-head { max-width: 720px; margin-inline: auto; text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--left { margin-inline: 0; text-align: left; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--acc-2);
  padding: .38rem .8rem; border-radius: var(--radius-pill);
  background: rgba(34,211,238,.08); border: 1px solid rgba(34,211,238,.22);
  margin-bottom: 1.1rem;
}
.eyebrow--violet { color: #b9a8ff; background: rgba(124,92,255,.1); border-color: rgba(124,92,255,.28); }
.eyebrow--pink { color: #ff9ccb; background: rgba(255,92,168,.1); border-color: rgba(255,92,168,.28); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }

h1, h2, h3, h4 { line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
h2.title { font-size: clamp(1.95rem, 4.2vw, 3.05rem); }
.section-head p, .lead { color: var(--muted); font-size: clamp(1.02rem, 1.5vw, 1.22rem); line-height: 1.65; margin-top: 1rem; }

.grad-text {
  background: var(--grad-text);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: sheen 8s linear infinite;
}
@keyframes sheen { to { background-position: 200% center; } }

/* -----------------------------------------------------------------------------
 * 5) BOTONES
 * -------------------------------------------------------------------------- */
.btn {
  --pad-y: .92rem; --pad-x: 1.6rem;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: var(--pad-y) var(--pad-x);
  font-weight: 650; font-size: .98rem; letter-spacing: -.01em;
  border-radius: 13px; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  overflow: hidden; isolation: isolate;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  color: #0b0713; background: var(--grad); background-size: 160% 160%;
  box-shadow: 0 10px 30px -10px rgba(124,92,255,.65), inset 0 1px 0 rgba(255,255,255,.35);
  font-weight: 700;
}
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.55) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -12px rgba(124,92,255,.8), inset 0 1px 0 rgba(255,255,255,.4); background-position: 100% 0; }
.btn--primary:hover::before { transform: translateX(120%); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost { color: var(--text); background: rgba(255,255,255,.03); border: 1px solid var(--border-strong); backdrop-filter: blur(8px); }
.btn--ghost:hover { transform: translateY(-2px); background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.28); }

.btn--lg { --pad-y: 1.1rem; --pad-x: 2rem; font-size: 1.05rem; border-radius: 15px; }
.btn--block { width: 100%; }
.btn--sm { --pad-y: .6rem; --pad-x: 1rem; font-size: .88rem; border-radius: 11px; }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; color: var(--acc-2); font-weight: 600; transition: gap .25s var(--ease); }
.link-arrow:hover { gap: .7rem; }

/* -----------------------------------------------------------------------------
 * 6) NAV STICKY
 * -------------------------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(10,12,18,.72); backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.14rem; letter-spacing: -.02em; }
.brand__mark { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--grad); box-shadow: var(--glow-violet); flex: none; }
.brand__mark svg { width: 19px; height: 19px; }
.brand b { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.nav__links { display: none; align-items: center; gap: 2rem; }
.nav__links a { color: var(--muted); font-size: .94rem; font-weight: 500; transition: color .2s; position: relative; }
.nav__links a:hover { color: var(--text); }
.nav__links a::after { content:""; position:absolute; left:0; right:100%; bottom:-6px; height:2px; background:var(--grad); border-radius:2px; transition:right .3s var(--ease); }
.nav__links a:hover::after { right: 0; }
.nav__cta { display: flex; align-items: center; gap: .8rem; }

.nav__burger { display: inline-grid; place-items:center; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--border); background: rgba(255,255,255,.03); }
.nav__burger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: .3s; }
.nav__burger span::before, .nav__burger span::after { content:""; position:absolute; left:0; width:18px; height:2px; background:var(--text); border-radius:2px; transition:.3s; }
.nav__burger span::before { top: -6px; } .nav__burger span::after { top: 6px; }
body.menu-open .nav__burger span { background: transparent; }
body.menu-open .nav__burger span::before { top:0; transform: rotate(45deg); }
body.menu-open .nav__burger span::after { top:0; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 68px 0 auto 0; z-index: 99;
  background: rgba(10,12,18,.96); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem clamp(1.15rem,4vw,2rem) 1.8rem;
  display: grid; gap: .3rem;
  transform: translateY(-12px); opacity: 0; visibility: hidden;
  transition: .3s var(--ease);
}
body.menu-open .mobile-menu { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-menu a { padding: .85rem .4rem; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--border); }
.mobile-menu a:last-of-type { border-bottom: 0; }
.mobile-menu .btn { margin-top: 1rem; }

@media (min-width: 940px) {
  .nav__links { display: flex; }
  .nav__burger { display: none; }
}

/* -----------------------------------------------------------------------------
 * 7) HERO
 * -------------------------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(7rem, 14vw, 10rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1.05fr .95fr; } }

.hero__badge {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.5rem;
  padding: .45rem .5rem .45rem .55rem; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.04); border: 1px solid var(--border); font-size: .82rem; color: var(--muted);
}
.hero__badge b { color: var(--text); font-weight: 700; }
.hero__badge .tag { background: var(--grad); color: #0b0713; font-weight: 800; padding: .2rem .55rem; border-radius: var(--radius-pill); font-size: .72rem; letter-spacing: .02em; }

.hero h1 { font-size: clamp(2.55rem, 6vw, 4.55rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 850; }
.hero h1 .em { position: relative; white-space: nowrap; }
.hero__sub { color: var(--muted); font-size: clamp(1.08rem, 1.8vw, 1.32rem); line-height: 1.6; margin-top: 1.5rem; max-width: 40ch; }
.hero__sub b { color: var(--text); font-weight: 650; }

.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 1.1rem 1.6rem; margin-top: 2.1rem; }
.hero__chip { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--muted); font-weight: 500; }
.hero__chip svg { width: 18px; height: 18px; color: var(--success); flex: none; }

/* --- Mockup cinematográfico --------------------------------------------- */
.hero__visual { position: relative; perspective: 1600px; }
.mock { position: relative; transform-style: preserve-3d; }

.mock-browser {
  border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(180deg, #141824, #0e111b);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg), 0 0 80px -30px rgba(124,92,255,.5);
  transform: rotateY(-9deg) rotateX(4deg);
  transition: transform .5s var(--ease);
}
.mock:hover .mock-browser { transform: rotateY(-4deg) rotateX(2deg); }
.mock-browser__bar { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02); }
.mock-dots { display: flex; gap: .4rem; }
.mock-dots i { width: 11px; height: 11px; border-radius: 50%; background: #2b3040; }
.mock-dots i:nth-child(1){ background:#ff5f57; } .mock-dots i:nth-child(2){ background:#febc2e; } .mock-dots i:nth-child(3){ background:#28c840; }
.mock-url { flex: 1; display: flex; align-items: center; gap: .5rem; font-size: .78rem; color: var(--muted-2); background: rgba(0,0,0,.3); padding: .4rem .8rem; border-radius: 8px; border: 1px solid var(--border); }
.mock-url svg { width: 13px; height: 13px; color: var(--success); }
.mock-body { padding: 1.15rem; display: grid; gap: .9rem; }

/* SERP result con estrellas y FAQ */
.serp { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.1rem; }
.serp__url { font-size: .74rem; color: var(--muted); display:flex; align-items:center; gap:.4rem; }
.serp__url .fav { width: 16px; height:16px; border-radius:50%; background: var(--grad); flex:none; }
.serp__title { color: #8ab4f8; font-size: 1.02rem; font-weight: 600; margin-top: .35rem; letter-spacing: -.01em; }
.serp__stars { display: flex; align-items: center; gap: .45rem; margin-top: .45rem; font-size: .78rem; color: var(--muted); }
.stars { display: inline-flex; gap: 1px; color: var(--gold); }
.stars svg { width: 14px; height: 14px; }
.serp__faq { margin-top: .7rem; border-top: 1px solid var(--border); padding-top: .55rem; display: grid; gap: .1rem; }
.serp__faq .q { display:flex; align-items:center; justify-content:space-between; font-size:.82rem; color:var(--text); padding:.35rem 0; }
.serp__faq .q svg { width: 14px; height:14px; color: var(--muted); }
.serp__badge { position:absolute; top:-10px; right:12px; background: var(--gold); color:#3a2c00; font-weight:800; font-size:.66rem; padding:.28rem .55rem; border-radius:var(--radius-pill); box-shadow:0 6px 18px -6px rgba(255,194,75,.7); }

/* AI recommend card */
.ai-rec { position: relative; background: linear-gradient(135deg, rgba(124,92,255,.14), rgba(34,211,238,.08)); border: 1px solid rgba(124,92,255,.3); border-radius: 14px; padding: .95rem 1rem; }
.ai-rec__head { display:flex; align-items:center; gap:.5rem; font-size:.76rem; color:#c7bcff; font-weight:700; letter-spacing:.02em; }
.ai-rec__head .ico { width: 22px; height:22px; border-radius:7px; background: var(--grad); display:grid; place-items:center; }
.ai-rec__head .ico svg { width:13px; height:13px; color:#0b0713; }
.ai-rec__q { font-size:.82rem; color:var(--muted); margin-top:.55rem; }
.ai-rec__a { font-size:.86rem; color:var(--text); margin-top:.4rem; line-height:1.5; }
.ai-rec__a mark { background: rgba(52,211,153,.16); color: #7ff0c4; padding: 0 .25rem; border-radius: 5px; font-weight:600; }
.ai-rec__pill { display:inline-flex; align-items:center; gap:.35rem; margin-top:.6rem; font-size:.72rem; font-weight:700; color:var(--success); background:rgba(52,211,153,.1); border:1px solid rgba(52,211,153,.28); padding:.28rem .6rem; border-radius:var(--radius-pill); }
.ai-rec__pill svg { width: 13px; height:13px; }

/* Floating approval chip */
.mock-float {
  position: absolute; z-index: 3;
  background: rgba(18,21,31,.92); backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong); border-radius: 14px;
  padding: .7rem .85rem; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: .65rem;
  animation: floaty 5.5s ease-in-out infinite;
}
.mock-float--approve { right: -18px; top: 34%; }
.mock-float--rank { left: -26px; bottom: 12%; animation-delay: -2.5s; }
.mock-float .ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.mock-float .ic--green { background: rgba(52,211,153,.14); color: var(--success); }
.mock-float .ic--cyan { background: rgba(34,211,238,.14); color: var(--acc-2); }
.mock-float .ic svg { width: 17px; height: 17px; }
.mock-float .t { font-size: .72rem; color: var(--muted); line-height: 1.25; }
.mock-float .t b { display: block; color: var(--text); font-size: .84rem; font-weight: 700; }
.mock-float .t .up { color: var(--success); font-weight: 700; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* -----------------------------------------------------------------------------
 * 8) BARRA DE PLATAFORMAS
 * -------------------------------------------------------------------------- */
.platforms { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255,255,255,.012); }
.platforms__inner { display: grid; gap: 1.8rem; padding-block: 2.4rem; }
@media (min-width: 860px){ .platforms__inner { grid-template-columns: auto 1px 1fr; align-items: center; gap: 2.5rem; } }
.platforms__label { font-size: .8rem; color: var(--muted-2); font-weight: 600; letter-spacing: .02em; max-width: 220px; }
.platforms__label b { color: var(--text); }
.platforms__divider { display:none; height: 52px; width:1px; background: var(--border); }
@media (min-width:860px){ .platforms__divider { display:block; } }
.platforms__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem 2.4rem; }
.plogo { display: inline-flex; align-items: center; gap: .55rem; color: var(--muted); font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; opacity: .78; transition: opacity .25s, color .25s; }
.plogo:hover { opacity: 1; color: var(--text); }
.plogo svg { width: 26px; height: 26px; flex: none; }
.plogo .in { font-size: .66rem; font-weight: 700; color: var(--acc-2); letter-spacing: .1em; text-transform: uppercase; margin-right:.1rem; opacity:.9; }

/* -----------------------------------------------------------------------------
 * 9) STATS / CONTADORES
 * -------------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 780px){ .stats { grid-template-columns: repeat(4,1fr); } }
.stat { background: var(--surface); padding: 1.8rem 1.4rem; text-align: center; position: relative; }
.stat__num { font-size: clamp(2.1rem, 4vw, 2.9rem); font-weight: 850; letter-spacing: -.03em; background: var(--grad-text); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; line-height:1; }
.stat__num .suf { -webkit-text-fill-color: var(--acc-2); }
.stat__label { color: var(--muted); font-size: .9rem; margin-top: .6rem; font-weight: 500; }

/* -----------------------------------------------------------------------------
 * 10) CARD BASE / GLASS
 * -------------------------------------------------------------------------- */
.card {
  background: linear-gradient(180deg, rgba(26,30,43,.7), rgba(18,21,31,.7));
  border: 1px solid var(--border); border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease), background .4s;
}
.card--lift:hover { transform: translateY(-7px); border-color: var(--border-strong); box-shadow: var(--shadow), 0 0 50px -24px rgba(124,92,255,.5); }

/* -----------------------------------------------------------------------------
 * 11) PROBLEMA (PAS)
 * -------------------------------------------------------------------------- */
.problem__grid { display: grid; gap: 1.2rem; }
@media (min-width: 720px){ .problem__grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1000px){ .problem__grid { grid-template-columns: repeat(3,1fr); } }
.pain { padding: 1.7rem; }
.pain__ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,92,168,.1); border: 1px solid rgba(255,92,168,.24); color: var(--acc-pink); margin-bottom: 1.1rem; }
.pain__ic svg { width: 22px; height: 22px; }
.pain h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.pain p { color: var(--muted); font-size: .95rem; }
.problem__turn { margin-top: 2.6rem; text-align: center; font-size: clamp(1.15rem,2.2vw,1.6rem); font-weight: 700; letter-spacing: -.02em; }
.problem__turn b { background: var(--grad-text); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }

/* -----------------------------------------------------------------------------
 * 12) CÓMO FUNCIONA (3 PASOS)
 * -------------------------------------------------------------------------- */
.steps { display: grid; gap: 1.4rem; position: relative; }
@media (min-width: 900px){ .steps { grid-template-columns: repeat(3,1fr); gap: 1.6rem; } }
.step { padding: 2rem 1.7rem; position: relative; overflow: hidden; }
.step__n { font-size: 3.6rem; font-weight: 850; line-height: 1; letter-spacing: -.04em; -webkit-text-stroke: 1.4px rgba(124,92,255,.4); -webkit-text-fill-color: transparent; opacity: .55; position: absolute; top: 1rem; right: 1.2rem; }
.step__ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); box-shadow: var(--glow-violet); margin-bottom: 1.2rem; }
.step__ic svg { width: 26px; height: 26px; color: #0b0713; }
.step h3 { font-size: 1.22rem; margin-bottom: .55rem; }
.step p { color: var(--muted); font-size: .96rem; }
.step__tag { display:inline-block; margin-top: 1rem; font-size:.76rem; font-weight:700; color: var(--acc-2); background: rgba(34,211,238,.08); border:1px solid rgba(34,211,238,.22); padding:.25rem .6rem; border-radius: var(--radius-pill); }

/* -----------------------------------------------------------------------------
 * 13) FEATURES GRID
 * -------------------------------------------------------------------------- */
.features__grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px){ .features__grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1000px){ .features__grid { grid-template-columns: repeat(3,1fr); } }
.feature { padding: 1.7rem; }
.feature__ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 1.1rem; background: linear-gradient(135deg, rgba(124,92,255,.16), rgba(34,211,238,.1)); border: 1px solid rgba(124,92,255,.24); color: #c7bcff; transition: transform .35s var(--ease); }
.feature:hover .feature__ic { transform: scale(1.08) rotate(-4deg); }
.feature__ic svg { width: 23px; height: 23px; }
.feature h3 { font-size: 1.1rem; margin-bottom: .5rem; letter-spacing: -.01em; }
.feature p { color: var(--muted); font-size: .93rem; }
.feature .kbd { display:inline-block; margin-top:.9rem; font-size:.74rem; font-weight:600; color:var(--muted); background:rgba(255,255,255,.04); border:1px solid var(--border); border-radius:7px; padding:.2rem .5rem; }

/* -----------------------------------------------------------------------------
 * 14) SECCIÓN GEO/AEO (OCÉANO AZUL)
 * -------------------------------------------------------------------------- */
.geo { position: relative; }
.geo__card {
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  border: 1px solid rgba(124,92,255,.3);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(34,211,238,.14), transparent 55%),
    radial-gradient(120% 120% at 0% 100%, rgba(124,92,255,.18), transparent 55%),
    linear-gradient(180deg, rgba(20,24,36,.86), rgba(12,15,24,.9));
  box-shadow: var(--shadow-lg);
}
.geo__grid { display: grid; gap: clamp(2rem,4vw,3.5rem); padding: clamp(2rem,4vw,3.6rem); align-items: center; }
@media (min-width: 940px){ .geo__grid { grid-template-columns: 1.05fr 1fr; } }
.geo h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.geo p.lead { margin-top: 1.1rem; }
.geo__points { display: grid; gap: .9rem; margin-top: 1.8rem; }
.geo__point { display: flex; gap: .85rem; align-items: flex-start; }
.geo__point .ck { width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center; background: rgba(52,211,153,.14); color: var(--success); border: 1px solid rgba(52,211,153,.3); }
.geo__point .ck svg { width: 15px; height: 15px; }
.geo__point b { color: var(--text); font-weight: 650; }
.geo__point span { color: var(--muted); }

/* Panel de citas IA simulado */
.aipanel { background: rgba(8,10,15,.6); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; display: grid; gap: .8rem; }
.aipanel__head { display: flex; align-items: center; justify-content: space-between; font-size: .8rem; color: var(--muted); }
.aipanel__head b { color: var(--text); }
.aichip { display: flex; align-items: center; gap: .7rem; padding: .8rem .9rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); transition: border-color .3s, transform .3s; }
.aichip:hover { transform: translateX(4px); border-color: var(--border-strong); }
.aichip .logo { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; background: rgba(255,255,255,.04); border: 1px solid var(--border); }
.aichip .logo svg { width: 18px; height: 18px; }
.aichip .meta { flex: 1; min-width: 0; }
.aichip .meta b { font-size: .88rem; display: block; }
.aichip .meta span { font-size: .76rem; color: var(--muted-2); }
.aichip .status { font-size: .72rem; font-weight: 700; color: var(--success); display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.aichip .status svg { width: 13px; height: 13px; }

/* -----------------------------------------------------------------------------
 * 15) COMPARATIVA
 * -------------------------------------------------------------------------- */
.vs { display: grid; gap: 1.2rem; }
@media (min-width: 860px){ .vs { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.vs__col { padding: 2rem 1.8rem; border-radius: var(--radius-lg); }
.vs__col--bad { background: rgba(255,92,168,.04); border: 1px solid rgba(255,92,168,.18); }
.vs__col--good { background: linear-gradient(180deg, rgba(124,92,255,.1), rgba(34,211,238,.05)); border: 1px solid rgba(124,92,255,.35); box-shadow: 0 0 60px -30px rgba(124,92,255,.7); }
.vs__tag { display: inline-flex; align-items:center; gap:.5rem; font-size: .8rem; font-weight: 700; letter-spacing:.02em; padding: .35rem .8rem; border-radius: var(--radius-pill); margin-bottom: 1.3rem; }
.vs__tag--bad { color: #ff9ccb; background: rgba(255,92,168,.1); border: 1px solid rgba(255,92,168,.28); }
.vs__tag--good { color: #0b0713; background: var(--grad); }
.vs h3 { font-size: 1.3rem; margin-bottom: 1.3rem; }
.vs ul { display: grid; gap: .85rem; }
.vs li { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; color: var(--muted); }
.vs li b { color: var(--text); font-weight: 600; }
.vs li .m { width: 21px; height: 21px; border-radius: 6px; flex: none; display: grid; place-items: center; margin-top: 1px; }
.vs--bad .m { background: rgba(255,92,168,.12); color: var(--acc-pink); }
.vs--good .m { background: rgba(52,211,153,.14); color: var(--success); }
.vs li svg { width: 13px; height: 13px; }

/* -----------------------------------------------------------------------------
 * 16) OFERTA / VALUE STACK
 * -------------------------------------------------------------------------- */
.offer__card { border-radius: var(--radius-lg); border: 1px solid var(--border-strong); background: linear-gradient(180deg, rgba(26,30,43,.7), rgba(14,17,26,.8)); overflow: hidden; box-shadow: var(--shadow-lg); }
.offer__grid { display: grid; }
@media (min-width: 900px){ .offer__grid { grid-template-columns: 1.15fr .85fr; } }
.offer__stack { padding: clamp(2rem,4vw,3rem); }
.offer__stack h3 { font-size: clamp(1.4rem,2.6vw,1.9rem); margin-bottom: 1.5rem; }
.offer__stack ul { display: grid; gap: .8rem; }
.offer__stack li { display: flex; gap: .8rem; align-items: flex-start; font-size: .98rem; }
.offer__stack li .ck { width: 24px; height: 24px; border-radius: 7px; flex: none; display: grid; place-items: center; background: rgba(52,211,153,.14); color: var(--success); border:1px solid rgba(52,211,153,.28); }
.offer__stack li .ck svg { width: 14px; height: 14px; }
.offer__stack li b { color: var(--text); } .offer__stack li span { color: var(--muted); }
.offer__side { padding: clamp(2rem,4vw,3rem); background: linear-gradient(180deg, rgba(124,92,255,.14), rgba(34,211,238,.06)); border-left: 1px solid var(--border); display: flex; flex-direction: column; justify-content: center; text-align: center; }
.offer__side .kicker { font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--acc-2); }
.offer__side .big { font-size: clamp(2.4rem,5vw,3.4rem); font-weight: 850; letter-spacing: -.03em; margin: .6rem 0 .2rem; line-height: 1.05; }
.offer__side .big span { background: var(--grad-text); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.offer__side .note { color: var(--muted); font-size: .92rem; margin-bottom: 1.6rem; }
.offer__side .btn { width: 100%; }
.offer__guarantee { display:inline-flex; align-items:center; gap:.5rem; margin-top:1.2rem; font-size:.84rem; color: var(--success); font-weight:600; justify-content:center; }
.offer__guarantee svg { width: 17px; height: 17px; }

/* -----------------------------------------------------------------------------
 * 17) PRICING
 * -------------------------------------------------------------------------- */
.pricing__toggle { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); margin: 1.6rem auto 0; }
.pricing__toggle button { padding: .55rem 1.2rem; border-radius: var(--radius-pill); font-size: .9rem; font-weight: 650; color: var(--muted); transition: color .25s; position: relative; z-index: 1; }
.pricing__toggle button.is-active { color: #0b0713; }
.pricing__toggle { position: relative; }
.pricing__pill { position: absolute; top: .35rem; bottom: .35rem; border-radius: var(--radius-pill); background: var(--grad); transition: transform .35s var(--ease), width .35s var(--ease); z-index: 0; box-shadow: 0 6px 18px -6px rgba(124,92,255,.7); }
.pricing__save { display: inline-block; margin-left: .4rem; font-size: .68rem; font-weight: 800; color: var(--success); background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.3); padding: .15rem .45rem; border-radius: var(--radius-pill); vertical-align: middle; }

.plans { display: grid; gap: 1.2rem; margin-top: 3rem; align-items: stretch; }
@media (min-width: 700px){ .plans { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1080px){ .plans { grid-template-columns: repeat(4,1fr); gap: 1rem; } }

.plan { padding: 1.8rem 1.5rem; display: flex; flex-direction: column; position: relative; }
.plan--popular { border-color: rgba(124,92,255,.55); background: linear-gradient(180deg, rgba(124,92,255,.12), rgba(18,21,31,.75)); box-shadow: 0 0 70px -28px rgba(124,92,255,.75); }
@media (min-width: 1080px){ .plan--popular { transform: scale(1.035); z-index: 2; } .plan--popular.card--lift:hover { transform: scale(1.035) translateY(-7px); } }
.plan__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #0b0713; font-weight: 800; font-size: .74rem; letter-spacing: .02em; padding: .35rem .9rem; border-radius: var(--radius-pill); box-shadow: 0 8px 22px -8px rgba(124,92,255,.8); white-space: nowrap; }
.plan__name { font-size: 1.18rem; font-weight: 750; }
.plan__desc { color: var(--muted); font-size: .84rem; margin-top: .3rem; min-height: 2.4em; }
.plan__price { margin-top: 1.2rem; display: flex; align-items: baseline; gap: .3rem; }
.plan__price .cur { font-size: 1.2rem; font-weight: 700; color: var(--muted); align-self: flex-start; margin-top: .35rem; }
.plan__price .amt { font-size: 2.9rem; font-weight: 850; letter-spacing: -.03em; line-height: 1; }
.plan__price .per { color: var(--muted); font-size: .9rem; font-weight: 500; }
.plan__annual { font-size: .8rem; color: var(--muted-2); margin-top: .5rem; min-height: 1.2em; }
.plan__annual b { color: var(--acc-2); }
.plan .btn { margin-top: 1.4rem; }
.plan__feats { display: grid; gap: .65rem; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--border); }
.plan__feats li { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.plan__feats li b { color: var(--text); font-weight: 650; }
.plan__feats li .ck { width: 18px; height: 18px; flex: none; color: var(--success); margin-top: 1px; }
.plan__feats li.off { opacity: .42; }
.plan__feats li.off .ck { color: var(--muted-2); }
.plan__feats li svg { width: 16px; height: 16px; }
.plan__loading { text-align: center; color: var(--muted); padding: 2rem; grid-column: 1/-1; }
.pricing__foot { text-align:center; color: var(--muted); font-size: .88rem; margin-top: 1.8rem; }
.pricing__foot b { color: var(--text); }

/* -----------------------------------------------------------------------------
 * 18) TESTIMONIOS (PLACEHOLDER, ETIQUETADOS)
 * -------------------------------------------------------------------------- */
.voices__note { text-align:center; color: var(--muted-2); font-size:.85rem; margin-bottom: 2rem; display:flex; align-items:center; justify-content:center; gap:.5rem; }
.voices__note svg { width: 15px; height:15px; }
.voices__grid { display: grid; gap: 1.1rem; }
@media (min-width: 780px){ .voices__grid { grid-template-columns: repeat(3,1fr); } }
.voice { padding: 1.7rem; position: relative; }
.voice__ph { position:absolute; top: 1rem; right: 1rem; font-size:.66rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color: var(--gold); background: rgba(255,194,75,.1); border:1px solid rgba(255,194,75,.3); padding:.22rem .55rem; border-radius: var(--radius-pill); }
.voice__stars { color: var(--gold); display:flex; gap:2px; margin-bottom: .9rem; }
.voice__stars svg { width: 16px; height:16px; }
.voice p { color: var(--muted); font-size: .95rem; font-style: italic; }
.voice__by { display:flex; align-items:center; gap:.7rem; margin-top: 1.2rem; }
.voice__av { width: 40px; height:40px; border-radius: 50%; background: linear-gradient(135deg,#2a2f40,#1a1e2b); border:1px solid var(--border); flex:none; }
.voice__by b { font-size: .9rem; display:block; } .voice__by span { font-size:.8rem; color: var(--muted-2); }

/* -----------------------------------------------------------------------------
 * 19) FAQ ACCORDION
 * -------------------------------------------------------------------------- */
.faq { max-width: 800px; margin-inline: auto; display: grid; gap: .8rem; }
.faq__item { border: 1px solid var(--border); border-radius: 15px; background: rgba(18,21,31,.55); overflow: hidden; transition: border-color .3s, background .3s; }
.faq__item.is-open { border-color: var(--border-strong); background: rgba(26,30,43,.6); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: left; padding: 1.25rem 1.4rem; font-weight: 650; font-size: 1.02rem; }
.faq__q .ico { width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center; background: rgba(255,255,255,.04); border: 1px solid var(--border); transition: transform .35s var(--ease), background .3s; }
.faq__q .ico svg { width: 15px; height: 15px; color: var(--acc-2); transition: transform .35s var(--ease); }
.faq__item.is-open .faq__q .ico { background: var(--grad); }
.faq__item.is-open .faq__q .ico svg { transform: rotate(45deg); color: #0b0713; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq__a p { padding: 0 1.4rem 1.35rem; color: var(--muted); font-size: .96rem; }

/* -----------------------------------------------------------------------------
 * 20) CTA FINAL + FORM
 * -------------------------------------------------------------------------- */
.cta { position: relative; }
.cta__card {
  border-radius: var(--radius-lg); padding: clamp(2.5rem,5vw,4.5rem) clamp(1.5rem,4vw,3.5rem);
  text-align: center; position: relative; overflow: hidden;
  border: 1px solid rgba(124,92,255,.35);
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(124,92,255,.22), transparent 60%),
    linear-gradient(180deg, rgba(20,24,36,.9), rgba(12,15,24,.94));
  box-shadow: var(--shadow-lg);
}
.cta__card h2 { font-size: clamp(2rem,4.5vw,3.3rem); letter-spacing: -.03em; }
.cta__card h2 span { background: var(--grad-text); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.cta__card > p { color: var(--muted); font-size: clamp(1.02rem,1.6vw,1.2rem); margin: 1.1rem auto 0; max-width: 560px; }

.lead-form { max-width: 540px; margin: 2.4rem auto 0; display: grid; gap: .8rem; text-align: left; }
.lead-form__row { display: grid; gap: .8rem; }
@media (min-width: 560px){ .lead-form__row { grid-template-columns: 1fr 1fr; } }
.field { position: relative; }
.field label { position: absolute; left: 1rem; top: 1rem; font-size: .95rem; color: var(--muted-2); pointer-events: none; transition: .2s var(--ease); background: transparent; padding: 0 .3rem; }
.field input, .field textarea {
  width: 100%; padding: 1rem; border-radius: 12px;
  background: rgba(8,10,15,.6); border: 1px solid var(--border); color: var(--text);
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--acc-1); background: rgba(8,10,15,.85); box-shadow: 0 0 0 4px rgba(124,92,255,.14); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: -.55rem; left: .8rem; font-size: .74rem; color: var(--acc-2); background: var(--surface);
}
.field input::placeholder, .field textarea::placeholder { color: transparent; }
.lead-form .btn { margin-top: .4rem; }
.lead-form__legal { font-size: .78rem; color: var(--muted-2); text-align: center; margin-top: .3rem; }
.lead-form__legal a { color: var(--muted); text-decoration: underline; }
.form-msg { font-size: .88rem; padding: .7rem 1rem; border-radius: 10px; display: none; }
.form-msg.err { display: block; color: #ffb4d3; background: rgba(255,92,168,.1); border: 1px solid rgba(255,92,168,.3); }

/* Estado éxito */
.form-success { display: none; text-align: center; padding: 2rem 1rem; }
.form-success.show { display: block; animation: pop .5s var(--ease-out); }
.form-success__ic { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1.2rem; background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.35); color: var(--success); }
.form-success__ic svg { width: 36px; height: 36px; }
.form-success h3 { font-size: 1.5rem; margin-bottom: .6rem; }
.form-success p { color: var(--muted); max-width: 400px; margin-inline: auto; }
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* -----------------------------------------------------------------------------
 * 21) FOOTER
 * -------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--border); background: rgba(8,10,15,.5); padding-block: clamp(3rem,5vw,4.5rem) 2rem; }
.footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 780px){ .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; } }
.footer__brand p { color: var(--muted); font-size: .92rem; margin-top: 1rem; max-width: 34ch; }
.footer__col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin-bottom: 1.1rem; font-weight: 700; }
.footer__col a { display: block; color: var(--muted); font-size: .92rem; padding: .35rem 0; transition: color .2s; }
.footer__col a:hover { color: var(--text); }
.footer__bottom { border-top: 1px solid var(--border); margin-top: 3rem; padding-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; color: var(--muted-2); font-size: .85rem; }
.footer__social { display: flex; gap: .6rem; }
.footer__social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--border); background: rgba(255,255,255,.02); color: var(--muted); transition: .25s; }
.footer__social a:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-2px); }
.footer__social svg { width: 18px; height: 18px; }

/* -----------------------------------------------------------------------------
 * 22) CHAT WIDGET
 * -------------------------------------------------------------------------- */
.sx-chat { position: fixed; right: clamp(1rem,3vw,1.6rem); bottom: clamp(1rem,3vw,1.6rem); z-index: 200; }

.sx-chat__bubble {
  position: relative; width: 62px; height: 62px; border-radius: 50%;
  background: var(--grad); display: grid; place-items: center;
  box-shadow: 0 14px 40px -10px rgba(124,92,255,.75); margin-left: auto;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.sx-chat__bubble:hover { transform: scale(1.07); box-shadow: 0 18px 50px -10px rgba(124,92,255,.9); }
.sx-chat__bubble svg { width: 27px; height: 27px; color: #0b0713; transition: transform .3s; }
.sx-chat__bubble .close-ic { display: none; }
.sx-chat.is-open .sx-chat__bubble .open-ic { display: none; }
.sx-chat.is-open .sx-chat__bubble .close-ic { display: block; }
.sx-chat__bubble::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(124,92,255,.55); animation: ring 2.4s var(--ease) infinite;
}
.sx-chat.is-open .sx-chat__bubble::after { display: none; }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.55); opacity: 0; } }
.sx-chat__nudge {
  position: absolute; right: 74px; bottom: 12px; white-space: nowrap;
  background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text);
  font-size: .84rem; font-weight: 600; padding: .6rem .9rem; border-radius: 12px 12px 2px 12px;
  box-shadow: var(--shadow); opacity: 0; transform: translateX(10px); transition: .35s var(--ease); pointer-events: none;
}
.sx-chat__nudge.show { opacity: 1; transform: translateX(0); }
.sx-chat.is-open .sx-chat__nudge { display: none; }

.sx-chat__panel {
  position: absolute; right: 0; bottom: 78px;
  width: min(390px, calc(100vw - 2rem)); height: min(600px, calc(100vh - 120px));
  background: linear-gradient(180deg, rgba(20,24,36,.98), rgba(12,15,24,.99));
  border: 1px solid var(--border-strong); border-radius: 22px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg), 0 0 90px -30px rgba(124,92,255,.5);
  transform-origin: bottom right; transform: scale(.85) translateY(14px); opacity: 0; visibility: hidden;
  transition: transform .34s var(--ease-out), opacity .3s, visibility .3s;
}
.sx-chat.is-open .sx-chat__panel { transform: scale(1) translateY(0); opacity: 1; visibility: visible; }

.sx-chat__head { padding: 1rem 1.1rem; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02); display: flex; align-items: center; gap: .75rem; }
.sx-chat__avatar { width: 42px; height: 42px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; flex: none; position: relative; box-shadow: var(--glow-violet); }
.sx-chat__avatar svg { width: 22px; height: 22px; color: #0b0713; }
.sx-chat__avatar .on { position: absolute; right: -2px; bottom: -2px; width: 13px; height: 13px; border-radius: 50%; background: var(--success); border: 2.5px solid #12151f; }
.sx-chat__who { flex: 1; min-width: 0; }
.sx-chat__who b { font-size: .96rem; display: block; letter-spacing: -.01em; }
.sx-chat__who span { font-size: .76rem; color: var(--success); display: inline-flex; align-items: center; gap: .35rem; }
.sx-chat__x { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); transition: .2s; flex: none; }
.sx-chat__x:hover { background: rgba(255,255,255,.06); color: var(--text); }
.sx-chat__x svg { width: 18px; height: 18px; }

.sx-chat__tabs { display: flex; gap: .3rem; padding: .6rem .8rem 0; }
.sx-chat__tab { flex: 1; padding: .5rem; border-radius: 10px 10px 0 0; font-size: .82rem; font-weight: 650; color: var(--muted); transition: .2s; border-bottom: 2px solid transparent; }
.sx-chat__tab.is-active { color: var(--text); border-bottom-color: var(--acc-1); background: rgba(255,255,255,.03); }

.sx-chat__log { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: .8rem; }
.sx-chat__log::-webkit-scrollbar { width: 7px; }
.msg { max-width: 84%; padding: .7rem .9rem; border-radius: 15px; font-size: .9rem; line-height: 1.5; animation: msgIn .35s var(--ease-out); word-wrap: break-word; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.msg--bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 5px; }
.msg--user { align-self: flex-end; background: var(--grad); color: #0b0713; font-weight: 500; border-bottom-right-radius: 5px; }
.msg--bot a { color: var(--acc-2); text-decoration: underline; }
.msg p { margin: 0; } .msg p + p { margin-top: .5rem; }

.msg--typing { display: inline-flex; gap: 4px; align-items: center; padding: .85rem 1rem; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.4s infinite both; }
.msg--typing i:nth-child(2) { animation-delay: .2s; } .msg--typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,60%,100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.sx-chat__quick { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0 1.1rem .3rem; }
.sx-chat__quick button { font-size: .8rem; color: var(--acc-2); background: rgba(34,211,238,.07); border: 1px solid rgba(34,211,238,.22); padding: .4rem .7rem; border-radius: var(--radius-pill); transition: .2s; }
.sx-chat__quick button:hover { background: rgba(34,211,238,.14); }

.sx-chat__input { padding: .8rem; border-top: 1px solid var(--border); display: flex; gap: .5rem; align-items: flex-end; background: rgba(255,255,255,.015); }
.sx-chat__input textarea {
  flex: 1; resize: none; max-height: 110px; min-height: 44px; padding: .7rem .9rem;
  background: rgba(8,10,15,.6); border: 1px solid var(--border); border-radius: 12px; color: var(--text);
  line-height: 1.4; transition: border-color .2s;
}
.sx-chat__input textarea:focus { outline: none; border-color: var(--acc-1); }
.sx-chat__send { width: 44px; height: 44px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; flex: none; transition: transform .2s, opacity .2s; box-shadow: 0 8px 20px -8px rgba(124,92,255,.7); }
.sx-chat__send:hover { transform: translateY(-2px); }
.sx-chat__send:disabled { opacity: .45; transform: none; cursor: not-allowed; }
.sx-chat__send svg { width: 20px; height: 20px; color: #0b0713; }
.sx-chat__foot { text-align: center; font-size: .68rem; color: var(--muted-2); padding: 0 0 .6rem; }

/* -----------------------------------------------------------------------------
 * 23) TOAST
 * -------------------------------------------------------------------------- */
.sx-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 120%);
  z-index: 300; background: var(--surface-2); border: 1px solid var(--border-strong);
  border-radius: 13px; padding: .85rem 1.2rem; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: .7rem; font-size: .9rem; font-weight: 550;
  transition: transform .45s var(--ease-out); max-width: calc(100vw - 2rem);
}
.sx-toast.show { transform: translate(-50%, 0); }
.sx-toast .ic { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; flex: none; }
.sx-toast .ic--ok { background: rgba(52,211,153,.14); color: var(--success); }
.sx-toast .ic--err { background: rgba(255,92,168,.14); color: var(--acc-pink); }
.sx-toast svg { width: 15px; height: 15px; }

/* -----------------------------------------------------------------------------
 * 24) REVEAL ON SCROLL
 * -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

/* -----------------------------------------------------------------------------
 * 25) REDUCED MOTION
 * -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .blob { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .grad-text, .stat__num { animation: none !important; }
  .mock-browser { transform: none !important; }
  .mock-float { animation: none !important; }
}

/* -----------------------------------------------------------------------------
 * 26) UTILIDADES
 * -------------------------------------------------------------------------- */
.center { text-align: center; }
.mt-lg { margin-top: 2.5rem; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
