/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #050508;
  --bg-2:      #0a0a12;
  --surface:   #0e0e18;
  --surface-2: #14141f;
  --ink:       #fafafa;
  --ink-soft:  #c9c9d8;
  --mute:      #8a8aa0;
  --line:      rgba(250,250,250,0.10);

  --violet:    #7c6af7;
  --violet-2:  #a78bfa;
  --cyan:      #06b6d4;
  --green:     #22c55e;
  --green-2:   #16a34a;

  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --display: "Space Grotesk", var(--sans);

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink-soft);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.02em; font-family: var(--display); color: var(--ink); font-weight: 600; }
ul { list-style: none; }
::selection { background: var(--violet); color: var(--ink); }

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

/* =============================================================
   3. Utilities
   ============================================================= */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 720px) { .container { padding-inline: 2rem; } }

.eyebrow {
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet-2);
  margin-bottom: 0.9rem;
}
.section-title {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  max-width: 18ch;
  margin-bottom: 1.2rem;
}

[data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   4. Typography components
   ============================================================= */
.split-word { display: inline-block; }

/* =============================================================
   5. Components
   ============================================================= */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 100px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background .3s var(--ease-out), border-color .3s var(--ease-out);
}
.btn-primary {
  background: linear-gradient(135deg, var(--violet), var(--violet-2));
  color: #fff;
  box-shadow: 0 8px 30px -8px rgba(124,106,247,0.55);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -8px rgba(124,106,247,0.7); }
.btn-primary:active { transform: translateY(-1px); transition-duration: .12s; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--violet-2); color: var(--violet-2); transform: translateY(-2px); }

.btn-wa {
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.35);
  color: #86efac;
}
.btn-wa:hover { background: rgba(34,197,94,0.2); transform: translateY(-2px); }

.btn-lg { padding: 1.1rem 2.1rem; font-size: 1.05rem; }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

.has-magnetic { display: inline-flex; position: relative; isolation: isolate; }
.magnetic-inner {
  display: inline-flex; align-items: center; justify-content: center; gap: inherit;
  will-change: transform;
  transition: transform .8s var(--ease-soft);
}

/* Cursor */
.cursor {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  display: none;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity .25s var(--ease-out);
}
.cursor.is-ready { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; will-change: transform;
}
.cursor-dot { width: 5px; height: 5px; margin: -2.5px; background: var(--ink); border-radius: 50%; }
.cursor-ring {
  width: 30px; height: 30px; margin: -15px; border: 1px solid var(--ink); border-radius: 50%;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out);
}
.cursor.is-interactive .cursor-ring { width: 46px; height: 46px; margin: -23px; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }

/* Glow halo following cursor */
.has-halo { position: relative; isolation: isolate; }
.has-halo::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%),
                              rgba(124,106,247,.28), transparent 60%);
  opacity: 0; transition: opacity .35s;
}
.has-halo:hover::before { opacity: 1; }

/* Tilt */
.has-tilt {
  --rx: 0deg; --ry: 0deg;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .55s var(--ease-soft);
}
.has-tilt:hover { transition-duration: .15s; }

/* =============================================================
   6. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 200;
  transition: background-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out), border-color .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(5,5,8,0.75);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--line);
}
.nav-inner {
  max-width: 1180px; margin-inline: auto; padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 1.5rem;
}
@media (min-width: 720px) { .nav-inner { padding: 1.1rem 2rem; } }
.nav-logo {
  font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--ink);
  letter-spacing: -0.01em;
}
.nav-logo span { color: var(--violet-2); }
.nav-links { display: none; gap: 1.8rem; margin-inline: auto; }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-link { position: relative; font-size: 0.92rem; color: var(--ink-soft); padding: .25rem 0; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1px; background: var(--violet-2);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav .btn-sm { display: none; }
@media (min-width: 720px) { .nav .btn-sm { display: inline-flex; margin-left: auto; } }
@media (min-width: 960px) { .nav .btn-sm { margin-left: 0; } }

.nav-burger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; margin-left: auto;
}
@media (min-width: 720px) { .nav-burger { margin-left: 0.5rem; } }
@media (min-width: 960px) { .nav-burger { display: none; } }
.nav-burger span { display: block; width: 20px; height: 2px; background: var(--ink); margin-inline: auto; transition: transform .3s var(--ease-out), opacity .3s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 190;
  background: var(--bg); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-soft);
}
.nav-mobile[data-open="true"] { clip-path: inset(0); }
.nav-mobile a { font-family: var(--display); font-size: 1.4rem; font-weight: 600; }

/* =============================================================
   7. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: clip;
  padding-top: 5rem;
}
.hero-gradient {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(circle 620px at var(--mx, 30%) var(--my, 30%), rgba(124,106,247,.55) 0%, transparent 55%),
    radial-gradient(circle 700px at calc(var(--mx, 30%) + 25%) calc(var(--my, 30%) + 30%), rgba(6,182,212,.4) 0%, transparent 55%),
    radial-gradient(circle 640px at calc(var(--mx, 30%) - 15%) calc(var(--my, 30%) + 45%), rgba(34,197,94,.28) 0%, transparent 55%),
    var(--bg);
  filter: blur(60px) saturate(150%);
  animation: heroDrift 26s ease-in-out infinite;
}
@keyframes heroDrift {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.12); }
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(250,250,250,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250,250,250,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 90%);
}
.hero-inner {
  max-width: 900px; margin-inline: auto; padding: 2rem 1.25rem 4rem;
  text-align: center;
}
@media (min-width: 720px) { .hero-inner { padding: 2rem 2rem 5rem; } }
.hero-kicker {
  font-family: var(--display); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan);
  margin-bottom: 1.4rem;
}
.hero-title {
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 1.03;
  max-width: 16ch;
  margin-inline: auto;
  margin-bottom: 1.4rem;
}
.hero-title em,
.hero-title em .split-word {
  font-style: normal;
  background: linear-gradient(120deg, var(--violet-2), var(--cyan));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-slogan {
  font-family: var(--display); font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 600;
  color: var(--ink); margin-bottom: 1.3rem;
}
.hero-slogan span { color: var(--green); }
.hero-sub {
  font-size: 1.08rem; max-width: 46ch; margin-inline: auto; margin-bottom: 2.4rem; color: var(--mute);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

.hero-price-pill {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.65rem 1.3rem; margin-bottom: 2rem;
  border-radius: 100px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.35);
  font-size: 0.92rem; color: #d7ffe5;
  transition: transform .45s var(--ease-soft), background .3s var(--ease-out);
}
.hero-price-pill strong { color: var(--green); font-family: var(--display); }
.hero-price-pill:hover { transform: translateY(-2px); background: rgba(34,197,94,0.16); }
.hero-price-pill-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pillPulse 1.8s ease-in-out infinite;
}
@keyframes pillPulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* =============================================================
   8. Deep-dive panels (Páginas Web / Automatización / Consultoría)
   ============================================================= */
.deep-panel { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; overflow: clip; }
.deep-panel--web { background: var(--bg); }
.deep-panel--auto { background: var(--bg-2); }
.deep-panel--consulting { background: var(--bg); }

.deep-grid {
  display: grid; gap: 3rem; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) { .deep-grid { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; } }
.deep-grid--reverse { direction: rtl; }
.deep-grid--reverse > * { direction: ltr; }

.deep-desc { font-size: 1.02rem; margin-bottom: 1.4rem; max-width: 48ch; }
.deep-list { margin-bottom: 1.6rem; display: flex; flex-direction: column; gap: 0.6rem; }
.deep-list li { font-size: 0.94rem; color: var(--ink-soft); padding-left: 1.4rem; position: relative; }
.deep-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

.deep-price {
  display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap;
  margin-bottom: 1.8rem;
}
.deep-price-tag { font-size: 0.85rem; color: var(--mute); }
.deep-price-value { font-family: var(--display); font-size: 2.4rem; font-weight: 700; color: var(--ink); }
.deep-price-value small { font-size: 1.1rem; font-weight: 500; color: var(--mute); }
.deep-price-period { font-size: 0.85rem; color: var(--mute); }

/* Páginas Web — browser build animation */
.deep-visual { display: flex; justify-content: center; }
.browser-frame {
  width: 100%; max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(124,106,247,0.35);
}
.browser-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 1rem; border-bottom: 1px solid var(--line);
}
.browser-dot { width: 9px; height: 9px; border-radius: 50%; }
.browser-dot--r { background: #ef4444; }
.browser-dot--y { background: #f59e0b; }
.browser-dot--g { background: #22c55e; }
.browser-url {
  margin-left: 0.6rem; font-size: 0.75rem; color: var(--mute);
  background: var(--surface-2); padding: 0.25rem 0.7rem; border-radius: 100px;
}
.browser-body { padding: 1.4rem; min-height: 300px; }
.bb-nav { display: flex; gap: 0.5rem; margin-bottom: 1.6rem; }
.bb-nav span { width: 34px; height: 8px; border-radius: 4px; background: var(--surface-2); }
.bb-hero { margin-bottom: 1.6rem; }
.bb-line {
  height: 12px; border-radius: 4px; margin-bottom: 0.6rem;
  background: linear-gradient(90deg, var(--violet-2), var(--cyan));
  background-size: 200% 100%;
  opacity: 0; transform: scaleX(0); transform-origin: left;
  animation: bbGrow 6s ease-in-out infinite;
}
.bb-line--title { width: 78%; height: 18px; animation-delay: 0s; }
.bb-line--sub { width: 92%; animation-delay: .3s; }
.bb-btn {
  width: 120px; height: 32px; border-radius: 100px; margin-top: 0.8rem;
  background: linear-gradient(135deg, var(--violet), var(--violet-2));
  opacity: 0; transform: scale(0.6); animation: bbPop 6s ease-in-out infinite; animation-delay: .6s;
}
.bb-cards { display: flex; gap: 0.7rem; }
.bb-card {
  flex: 1; height: 70px; border-radius: 10px; background: var(--surface-2);
  border: 1px solid var(--line);
  opacity: 0; transform: translateY(14px); animation: bbCard 6s ease-in-out infinite;
}
.bb-cards .bb-card:nth-child(1) { animation-delay: .9s; }
.bb-cards .bb-card:nth-child(2) { animation-delay: 1.05s; }
.bb-cards .bb-card:nth-child(3) { animation-delay: 1.2s; }
@keyframes bbGrow {
  0% { opacity: 0; transform: scaleX(0); }
  10%, 75% { opacity: 1; transform: scaleX(1); }
  90%, 100% { opacity: 0; transform: scaleX(0); }
}
@keyframes bbPop {
  0% { opacity: 0; transform: scale(0.6); }
  15%, 75% { opacity: 1; transform: scale(1); }
  90%, 100% { opacity: 0; transform: scale(0.6); }
}
@keyframes bbCard {
  0% { opacity: 0; transform: translateY(14px); }
  20%, 75% { opacity: 1; transform: translateY(0); }
  90%, 100% { opacity: 0; transform: translateY(14px); }
}

/* Automatización — flow strip */
.flow-strip { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 1.8rem; }
.flow-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft);
  font-family: var(--display); font-weight: 700;
}
.flow-icon svg { width: 20px; height: 20px; }
.flow-icon--accent {
  background: linear-gradient(135deg, var(--violet), var(--cyan)); color: #fff; border: none;
}
.flow-line { position: relative; flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.flow-dot {
  position: absolute; top: 50%; left: 0; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
  animation: flowMove 2s linear infinite;
}
@keyframes flowMove { from { left: -8px; } to { left: 100%; } }

.demo-casos { margin-bottom: 2rem; display: flex; flex-direction: column; gap: 0.6rem; }
.demo-casos li {
  font-size: 0.94rem; color: var(--ink-soft); padding-left: 1.4rem; position: relative;
}
.demo-casos li::before { content: "✦"; position: absolute; left: 0; color: var(--cyan); }

.demo-phone { display: flex; justify-content: center; }
.phone-frame {
  width: 100%; max-width: 340px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 1.4rem 1.1rem 1.6rem;
  box-shadow: 0 40px 90px -30px rgba(124,106,247,0.35);
}
.phone-notch { width: 60px; height: 5px; border-radius: 100px; background: var(--line); margin: 0 auto 1rem; }
.phone-header {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--display); font-size: 0.82rem; font-weight: 600; color: var(--ink);
  padding-bottom: 0.9rem; margin-bottom: 0.9rem; border-bottom: 1px solid var(--line);
}
.phone-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.phone-chat { display: flex; flex-direction: column; gap: 0.6rem; min-height: 280px; }
.chat-bubble {
  max-width: 82%; padding: 0.65rem 0.95rem; border-radius: 16px; font-size: 0.85rem; line-height: 1.5;
  opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.chat-bubble.is-in { opacity: 1; transform: none; }
.chat-bubble.user { align-self: flex-end; background: linear-gradient(135deg, var(--violet), var(--violet-2)); color: #fff; border-bottom-right-radius: 4px; }
.chat-bubble.ai { align-self: flex-start; background: var(--surface-2); color: var(--ink-soft); border-bottom-left-radius: 4px; }
.chat-typing { align-self: flex-start; display: flex; gap: 4px; padding: 0.7rem 0.95rem; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--mute); animation: typingBounce 1.2s infinite; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typingBounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* =============================================================
   10. Consultoría — dashboard demo
   ============================================================= */
.dash-card {
  width: 100%; max-width: 420px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 1.8rem;
  box-shadow: 0 40px 90px -30px rgba(6,182,212,0.3);
}
.dash-card-header {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--display); font-weight: 600; font-size: 0.9rem; color: var(--ink);
  padding-bottom: 1rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--line);
}
.dash-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.dash-stats { display: flex; flex-direction: column; gap: 1.4rem; }
.dash-stat-value { font-family: var(--display); font-size: 1.8rem; font-weight: 700; color: var(--ink); }
.dash-stat-label { font-size: 0.82rem; color: var(--mute); margin: 0.2rem 0 0.6rem; }
.dash-bar { height: 6px; border-radius: 100px; background: var(--surface-2); overflow: hidden; }
.dash-bar span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  border-radius: 100px;
  transition: width 1.4s var(--ease-soft);
}
.dash-stats.is-in .dash-bar span { width: var(--w); }

/* =============================================================
   11. Testimonios — rueda
   ============================================================= */
.testimonios { padding: clamp(4rem, 9vw, 6rem) 0 0; }

/* Default (no-JS / mobile safe) layout: simple stacked cards, fully readable */
.wheel { position: relative; }
.wheel-stage {
  display: flex; flex-direction: column; align-items: center;
  gap: 1.25rem; padding: 2rem 1.25rem;
}
.wheel-card {
  width: min(620px, 100%);
  background-color: rgba(8,8,14,0.92);
  background-image: linear-gradient(160deg, rgba(124,106,247,0.16), rgba(6,182,212,0.08));
  border: 1px solid rgba(124,106,247,0.25);
  border-radius: 28px; padding: 2.6rem 2.2rem;
  text-align: center;
}
.wheel-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%; margin-bottom: 1.2rem;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  font-family: var(--display); font-weight: 700; color: #fff; font-size: 1.1rem;
}
.wheel-quote { width: 30px; height: 22px; color: var(--violet-2); margin: 0 auto 0.8rem; }
.wheel-text { font-size: 1.1rem; color: var(--ink); font-family: var(--display); font-weight: 500; line-height: 1.5; margin-bottom: 1rem; }
.wheel-author { font-size: 0.88rem; color: var(--mute); }

/* Enhanced (JS + desktop): pinned ferris-wheel effect — class added by main.js */
@media (min-width: 960px) and (hover: hover) {
  .wheel.is-wheel-active { height: 300vh; }
  .wheel.is-wheel-active .wheel-stage {
    position: sticky; top: 0; height: 100svh; flex-direction: row;
    justify-content: center; padding: 0;
    perspective: 1600px; overflow: hidden;
  }
  .wheel.is-wheel-active .wheel-card {
    position: absolute; width: min(620px, 88vw);
    transform-style: preserve-3d; backface-visibility: hidden;
    will-change: transform, opacity;
  }
}

/* =============================================================
   12. Academia — blog + newsletter
   ============================================================= */
.academia { padding: clamp(4rem, 9vw, 8rem) 0; background: var(--bg-2); }
.academia-sub { font-size: 1.02rem; max-width: 48ch; margin-bottom: 2.5rem; }

.blog-grid {
  display: grid; gap: 1.25rem; margin-bottom: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.8rem;
}
.blog-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cyan); background: rgba(6,182,212,0.12); border: 1px solid rgba(6,182,212,0.3);
  padding: 0.3rem 0.65rem; border-radius: 100px; margin-bottom: 1rem;
}
.blog-card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.blog-card p { font-size: 0.88rem; color: var(--mute); }

.newsletter-card {
  display: flex; flex-direction: column; gap: 1.4rem;
  background: linear-gradient(135deg, rgba(124,106,247,0.14), rgba(6,182,212,0.06));
  border: 1px solid rgba(124,106,247,0.28);
  border-radius: 20px; padding: 2rem;
  margin-bottom: 1.6rem;
}
@media (min-width: 720px) { .newsletter-card { flex-direction: row; align-items: center; justify-content: space-between; } }
.newsletter-copy h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.newsletter-copy p { font-size: 0.9rem; color: var(--mute); }
.newsletter-form { width: 100%; }
@media (min-width: 720px) { .newsletter-form { max-width: 380px; } }
.newsletter-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.newsletter-row input {
  flex: 1; min-width: 180px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 100px;
  padding: 0.8rem 1.2rem; color: var(--ink); font-family: var(--sans); font-size: 0.92rem;
}
.newsletter-row input:focus { outline: none; border-color: var(--violet-2); }
.hp { position: absolute !important; left: -9999px !important; opacity: 0 !important; }
.form-status { min-height: 1.3em; font-size: 0.82rem; margin-top: 0.6rem; }
.form-status.is-ok { color: var(--green); }
.form-status.is-err { color: #f87171; }
.newsletter-form.is-sending button[type="submit"] { opacity: .6; pointer-events: none; }

.enterprise-banner {
  display: flex; flex-direction: column; gap: 1.4rem;
  background: linear-gradient(135deg, rgba(124,106,247,0.16), rgba(34,197,94,0.08));
  border: 1px solid rgba(124,106,247,0.3);
  border-radius: 20px; padding: 2rem;
  align-items: flex-start;
}
@media (min-width: 720px) { .enterprise-banner { flex-direction: row; align-items: center; justify-content: space-between; } }
.enterprise-banner h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.enterprise-banner p { font-size: 0.92rem; color: var(--mute); max-width: 42ch; }

/* =============================================================
   13. CTA final
   ============================================================= */
.cta-final { position: relative; padding: clamp(5rem, 12vw, 9rem) 0; text-align: center; overflow: clip; }
.cta-final-gradient {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(124,106,247,0.28), transparent 70%),
              var(--bg);
}
.cta-final-title { font-size: clamp(2rem, 5.5vw, 3.6rem); max-width: 16ch; margin-inline: auto; margin-bottom: 2.2rem; }
.cta-final-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* =============================================================
   14. Juan — n8n embedded chat
   ============================================================= */
.juan { padding: clamp(4rem, 9vw, 8rem) 0; background: var(--bg-2); }
.juan-grid {
  display: grid; gap: 2.4rem; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) { .juan-grid { grid-template-columns: 0.9fr 1.1fr; } }
.juan-sub { font-size: 0.98rem; max-width: 44ch; }

.juan-chat-wrap { display: flex; justify-content: center; }
#n8n-chat {
  width: 100%; max-width: 440px; height: 560px;
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -30px rgba(124,106,247,0.35);

  --chat--color-primary: #7c6af7;
  --chat--color-primary-shade-50: #6d5cf0;
  --chat--color-secondary: #06b6d4;
  --chat--color-white: #ffffff;
  --chat--color-light: #14141f;
  --chat--color-light-shade-50: #1c1c2a;
  --chat--color-light-shade-100: #24243a;
  --chat--color-medium: #24243a;
  --chat--color-dark: #fafafa;
  --chat--color-disabled: #4a4a5a;
  --chat--color-typing: #a78bfa;
  --chat--spacing: 1rem;
  --chat--border-radius: 14px;
  --chat--window--width: 100%;
  --chat--window--height: 100%;
  --chat--header-height: auto;
  --chat--header--background: #0e0e18;
  --chat--header--color: #fafafa;
  --chat--header--padding: 1.2rem;
  --chat--body--background: #0a0a12;
  --chat--message--font-size: 0.92rem;
  --chat--message--bot--background: #14141f;
  --chat--message--bot--color: #fafafa;
  --chat--message--bot--border: none;
  --chat--message--user--background: linear-gradient(135deg,#7c6af7,#a78bfa);
  --chat--message--user--color: #fff;
  --chat--message--user--border: none;
  --chat--textarea--height: 50px;
  --chat--input--border: 1px solid rgba(250,250,250,0.1);
  --chat--input--background: #14141f;
  --chat--input--text-color: #fafafa;
  --chat--input--send--button--background: #7c6af7;
}

/* =============================================================
   15. Footer
   ============================================================= */
.footer { padding: clamp(3.5rem, 7vw, 6rem) 0 2rem; border-top: 1px solid var(--line); }
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand p { font-size: 0.92rem; color: var(--mute); margin: 1rem 0 1.4rem; max-width: 34ch; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mute); margin-bottom: 1rem; }
.footer-col a { display: block; font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 0.7rem; }
.footer-col a:hover { color: var(--violet-2); }
.footer-bottom {
  max-width: 1180px; margin: 3rem auto 0; padding: 1.6rem 1.25rem 0; border-top: 1px solid var(--line);
  font-size: 0.82rem; color: var(--mute);
}
@media (min-width: 720px) { .footer-bottom { padding: 1.6rem 2rem 0; } }

/* =============================================================
   16. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-gradient { animation: none; }
  .flow-dot { animation: none; opacity: 0; }
  html { scroll-behavior: auto; }
}
