/* ═══════════════════════════════════════════════════
   AUTOMIND AI - PRO STYLESHEET
   ═══════════════════════════════════════════════════ */

:root {
  /* Colors */
  --bg-primary: #07070C;
  --bg-secondary: #0C0C16;
  --bg-tertiary: #11111E;
  --bg-card: #14141C;
  --bg-card-hover: #1A1A28;
  --border-subtle: #1F1F2E;
  --border-strong: #2A2A3A;

  --brand-blue: #3B5BFF;
  --brand-blue-light: #5B7BFF;
  --brand-violet: #A855F7;
  --brand-violet-light: #C084FC;
  --grad-brand: linear-gradient(135deg, #3B5BFF 0%, #A855F7 100%);
  --grad-brand-h: linear-gradient(90deg, #3B5BFF 0%, #A855F7 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(59,91,255,0.18) 0%, rgba(168,85,247,0.18) 100%);
  --grad-radial: radial-gradient(circle at center, rgba(168,85,247,0.4) 0%, transparent 70%);

  --text-white: #FFFFFF;
  --text-soft: #D1D1DC;
  --text-muted: #A0A0B0;
  --text-dim: #6E6E80;

  --red-soft: #FF6B6B;
  --green-success: #25D366;

  /* Typography */
  --font-display: 'Satoshi', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Spacing */
  --container: 1240px;
  --container-narrow: 800px;
  --section-py: clamp(80px, 12vw, 160px);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-glow-blue: 0 0 60px rgba(59,91,255,0.4);
  --shadow-glow-violet: 0 0 60px rgba(168,85,247,0.4);

  /* Easing */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
}
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
::selection { background: var(--brand-violet); color: var(--text-white); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-card); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-blue); }

@media (max-width: 1024px) {
  body, button { cursor: auto; }
}

/* ─── Container ─── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}
.container--narrow { max-width: var(--container-narrow); }

/* ─── Typography ─── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(2.5rem, 6.5vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.8vw, 3.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; letter-spacing: -0.01em; }

.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  padding-bottom: 0.08em;
  line-height: 1.18;
}

/* ─── Logo mark (gradient cube with SVG inside) ─── */
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--grad-brand);
  box-shadow:
    0 4px 20px rgba(168,85,247,0.4),
    inset 0 1px 0 rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.logo-mark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.logo-mark svg {
  width: 22px;
  height: 22px;
  position: relative;
  z-index: 1;
}
.logo-mark--sm { width: 30px; height: 30px; border-radius: 8px; }
.logo-mark--sm svg { width: 18px; height: 18px; }

/* Logo - works with PNG (preferred) or inline SVG fallback */
.nav__logo-img {
  height: 52px;
  width: auto;
  max-width: 64px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 18px rgba(168,85,247,0.45));
  transition: transform 0.4s var(--ease-out), filter 0.4s var(--ease-out);
}
.nav__logo:hover .nav__logo-img {
  transform: rotate(-6deg) scale(1.06);
  filter: drop-shadow(0 6px 24px rgba(168,85,247,0.75));
}
.nav__logo-svg {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 16px rgba(168,85,247,0.45));
  transition: transform 0.4s var(--ease-out);
}
.nav__logo:hover .nav__logo-svg {
  transform: rotate(-8deg) scale(1.05);
  filter: drop-shadow(0 6px 22px rgba(168,85,247,0.7));
}
.chat__avatar-svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 8px rgba(168,85,247,0.4));
}
.chat__avatar-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(168,85,247,0.5));
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s var(--ease-out);
  position: relative;
  white-space: nowrap;
  cursor: pointer;
  text-align: center;
  justify-content: center;
}

.btn__arrow { transition: transform 0.3s var(--ease-out); display: inline-block; }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--grad-brand);
  color: var(--text-white);
  box-shadow: 0 4px 20px rgba(59,91,255,0.3), 0 0 0 1px rgba(255,255,255,0.05) inset;
  position: relative;
  overflow: hidden;
}
.btn--primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.6s var(--ease);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(168,85,247,0.5);
}
.btn--primary:hover::before { left: 100%; }

.btn--ghost {
  background: rgba(20,20,28,0.5);
  color: var(--text-white);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover {
  background: var(--bg-card);
  border-color: var(--brand-blue);
  transform: translateY(-2px);
}

.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--xl { padding: 22px 44px; font-size: 18px; border-radius: 14px; }
.btn--block { display: flex; justify-content: center; width: 100%; }

/* ─── Custom cursor (desktop only, optimized) ─── */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 32px; height: 32px;
  border: 1.5px solid rgba(168, 85, 247, 0.7);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-100px, -100px, 0);
  will-change: transform;
  mix-blend-mode: difference;
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.cursor.hover {
  width: 56px; height: 56px;
  border-color: rgba(91, 123, 255, 0.9);
}
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 6px; height: 6px;
  background: var(--brand-violet);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-100px, -100px, 0);
  will-change: transform;
  box-shadow: 0 0 12px var(--brand-violet);
}
@media (max-width: 1024px), (pointer: coarse) {
  .cursor, .cursor-dot { display: none; }
}
@media (min-width: 1025px) and (pointer: fine) {
  body { cursor: none; }
  a, button, .btn, .niche, details summary { cursor: none; }
}

/* ─── Scroll progress ─── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--grad-brand-h);
  width: 0%;
  z-index: 200;
  box-shadow: 0 0 10px rgba(168,85,247,0.5);
  transition: width 0.1s linear;
}

/* ─── Top info bar (glass, integrated with bg) ─── */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 101;
  height: 40px;
  background:
    linear-gradient(90deg, rgba(45,79,255,0.10) 0%, rgba(91,111,255,0.06) 50%, rgba(168,85,247,0.10) 100%),
    rgba(7,7,12,0.4);
  border-bottom: 1px solid rgba(168,85,247,0.12);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  display: flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-soft);
  letter-spacing: 0.005em;
  overflow: hidden;
}
.top-bar__inner {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.top-bar__item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.top-bar__left { justify-self: start; color: var(--text-muted); }
.top-bar__center {
  justify-self: center;
  font-weight: 600;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.top-bar__center svg { color: var(--brand-violet-light); flex-shrink: 0; -webkit-text-fill-color: initial; }
.top-bar__right { justify-self: end; color: var(--text-muted); gap: 10px; }
.top-bar__right a {
  color: var(--text-soft);
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.top-bar__right a:hover { color: var(--brand-violet-light); }
.top-bar__sep { color: var(--text-dim); }
.top-bar__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green-success);
  box-shadow: 0 0 8px var(--green-success);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

/* ─── NAVBAR (sin top-bar arriba — al tope) ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(7, 7, 12, 0.4);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: all 0.3s var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--border-subtle);
  background: rgba(7, 7, 12, 0.85);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 18px;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
.nav__logo-text { white-space: nowrap; }

.nav__links {
  display: flex;
  gap: 36px;
  margin-left: auto;
  margin-right: 32px;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
  padding: 6px 0;
}
.nav__links a:hover { color: var(--text-white); }
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--grad-brand-h);
  transition: width 0.3s var(--ease);
  border-radius: 2px;
}
.nav__links a:hover::after { width: 100%; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 12px; right: 12px;
  background:
    linear-gradient(180deg, rgba(28, 24, 50, 0.92), rgba(14, 12, 28, 0.96)),
    radial-gradient(ellipse at top, rgba(168, 85, 247, 0.18), transparent 60%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(168, 85, 247, 0.18);
  border-radius: 20px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(168, 85, 247, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  flex-direction: column;
  padding: 22px 18px;
  gap: 4px;
  margin-top: 8px;
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out);
  pointer-events: none;
}
.nav__mobile.active {
  display: flex;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.nav__mobile::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 28px;
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, rgba(28, 24, 50, 0.92), rgba(14, 12, 28, 0.96));
  border-left: 1px solid rgba(168, 85, 247, 0.18);
  border-top: 1px solid rgba(168, 85, 247, 0.18);
  transform: rotate(45deg);
  border-radius: 3px 0 0 0;
}
.nav__mobile-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.20em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin: 14px 8px 6px;
}
.nav__mobile-label:first-of-type { margin-top: 4px; }
.nav__mobile a {
  font-size: 16px;
  color: var(--text-soft);
  padding: 13px 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  position: relative;
}
.nav__mobile a:hover, .nav__mobile a:active {
  background: rgba(168, 85, 247, 0.10);
  color: var(--text-white);
  transform: translateX(2px);
}
.nav__mobile-link {
  font-size: 16px !important;
  font-weight: 600;
  color: var(--text-white) !important;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.nav__mobile-link:hover, .nav__mobile-link:active {
  background: rgba(168, 85, 247, 0.14) !important;
  border-color: rgba(168, 85, 247, 0.30) !important;
}
.nav__mobile-link--active {
  background: linear-gradient(135deg, rgba(59, 91, 255, 0.18), rgba(168, 85, 247, 0.22)) !important;
  border-color: rgba(168, 85, 247, 0.40) !important;
  color: var(--text-white) !important;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.20);
}
.nav__mobile-link--active::after {
  content: '●';
  margin-left: auto;
  color: var(--brand-violet-light);
  font-size: 8px;
  filter: drop-shadow(0 0 6px var(--brand-violet));
}
.nav__mobile .btn {
  margin-top: 14px;
  font-size: 15px;
  padding: 14px 20px;
  background: var(--grad-brand);
}

/* ═══════════════════════════════════════════════════ HERO ═══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 180px 0 100px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  will-change: transform;
}
.hero__glow--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(168,85,247,0.6), transparent 70%);
  top: -10%; left: -15%;
}
.hero__glow--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(59,91,255,0.5), transparent 70%);
  bottom: -10%; right: -10%;
}
.hero__glow--3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(168,85,247,0.3), transparent 70%);
  top: 40%; left: 50%;
  transform: translate(-50%, -50%);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,91,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,91,255,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero__content { max-width: 640px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: linear-gradient(135deg, rgba(20,20,28,0.8), rgba(20,20,28,0.5));
  border: 1px solid rgba(168,85,247,0.25);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}
.pill__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-violet);
  box-shadow: 0 0 14px var(--brand-violet);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

.hero__title {
  margin-bottom: 28px;
}
.hero__title .line {
  display: block;
  overflow: hidden;
}
.hero__subtitle {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 44px;
  line-height: 1.6;
}
.hero__subtitle strong { color: var(--text-white); font-weight: 600; }

.hero__buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero__metrics {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.metric { display: flex; flex-direction: column; gap: 4px; }
.metric__value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}
.metric__label {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.01em;
}
.metric__divider {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, transparent, var(--border-strong), transparent);
}

.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.scroll-hint__line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, rgba(168,85,247,0.5));
  position: relative;
  overflow: hidden;
}
.scroll-hint__line::after {
  content: '';
  position: absolute;
  top: -50px; left: 0;
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, transparent, var(--brand-violet));
  animation: scrollHint 2s ease-in-out infinite;
}
@keyframes scrollHint {
  0% { top: -50px; }
  100% { top: 50px; }
}

/* ─── PHONE MOCKUP ─── */
.hero__phone {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  perspective: 1500px;
}
.phone-glow {
  position: absolute;
  width: 400px; height: 600px;
  background: radial-gradient(ellipse, rgba(168,85,247,0.4), transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.phone {
  width: 320px;
  height: 640px;
  background: linear-gradient(145deg, #1a1a24, #0a0a14);
  border-radius: 44px;
  padding: 14px;
  box-shadow:
    0 0 0 2px #2a2a3a,
    0 30px 80px rgba(168, 85, 247, 0.3),
    0 0 100px rgba(59, 91, 255, 0.25),
    inset 0 0 40px rgba(168,85,247,0.05);
  position: relative;
  z-index: 1;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out);
}
.phone__notch {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 28px;
  background: #000;
  border-radius: 0 0 18px 18px;
  z-index: 2;
}
.phone__screen {
  background: #0e1a1d;
  border-radius: 32px;
  height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.chat__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 16px 14px;
  background: linear-gradient(135deg, #1c1c28, #14141c);
  border-bottom: 1px solid var(--border-subtle);
}
.chat__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat__info { display: flex; flex-direction: column; gap: 2px; }
.chat__name { font-size: 14px; font-weight: 600; color: var(--text-white); }
.chat__status {
  font-size: 11px;
  color: var(--green-success);
  display: flex;
  align-items: center;
  gap: 5px;
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-success);
  box-shadow: 0 0 8px var(--green-success);
  animation: pulse 2s infinite;
}

.chat__body {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  background: #0e1a1d;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(59,91,255,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(168,85,247,0.06) 0%, transparent 50%);
}
.chat__body::-webkit-scrollbar { display: none; }

.msg {
  max-width: 80%;
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.4;
  position: relative;
  opacity: 0;
  transform: translateY(15px) scale(0.95);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.msg.show { opacity: 1; transform: translateY(0) scale(1); }
.msg p { color: #fff; }
.msg__time {
  display: block;
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
  text-align: right;
}
.msg--in {
  align-self: flex-start;
  background: #1f2c34;
  border-bottom-left-radius: 4px;
}
.msg--out {
  align-self: flex-end;
  background: #005c4b;
  border-bottom-right-radius: 4px;
}
.msg--success {
  background: linear-gradient(135deg, #005c4b 0%, #057451 100%);
  border: 1px solid rgba(168,85,247,0.4);
  box-shadow: 0 0 20px rgba(168,85,247,0.2);
}

.chat__typing {
  display: none;
  align-self: flex-start;
  background: #1f2c34;
  padding: 12px 14px;
  border-radius: 12px;
  margin: 0 12px 8px;
  width: fit-content;
}
.chat__typing.show { display: flex; gap: 4px; }
.chat__typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typing 1.4s ease-in-out infinite;
}
.chat__typing span:nth-child(2) { animation-delay: 0.2s; }
.chat__typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

/* Floating badges around phone */
.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(20,20,28,0.9);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-white);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 2;
  animation: floatBadge 4s ease-in-out infinite;
}
.float-badge svg { width: 16px; height: 16px; color: var(--green-success); }
.float-badge--1 {
  top: 80px;
  left: -60px;
  animation-delay: 0.5s;
}
.float-badge--2 {
  bottom: 100px;
  right: -50px;
  animation-delay: 1.5s;
}
.float-badge__pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-violet);
  box-shadow: 0 0 10px var(--brand-violet);
  animation: pulse 1.5s infinite;
}
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ═══════════════════════════════════════════════════ MARQUEE ═══════════════════════════════════════════════════ */
.marquee-section {
  padding: 32px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}
.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee__track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: marquee 35s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.marquee__track span:nth-child(even) {
  color: var(--brand-violet-light);
  letter-spacing: 0;
  font-size: 22px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════ SECTIONS GENERAL ═══════════════════════════════════════════════════ */
.section {
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}
.section__head {
  text-align: center;
  margin-bottom: 80px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.section__tag {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 24px;
  border: 1px solid;
}
.tag--blue {
  color: var(--brand-blue-light);
  background: rgba(59,91,255,0.1);
  border-color: rgba(59,91,255,0.3);
}
.tag--violet {
  color: var(--brand-violet-light);
  background: rgba(168,85,247,0.1);
  border-color: rgba(168,85,247,0.3);
}
.section__title { margin-bottom: 20px; }
.section__subtitle {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
}
.section__glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  opacity: 0.4;
}
.section__glow--blue {
  background: radial-gradient(circle, var(--brand-blue), transparent 70%);
  top: 0; left: 50%;
  transform: translateX(-50%);
}
.section__glow--violet {
  background: radial-gradient(circle, var(--brand-violet), transparent 70%);
  bottom: -200px; right: -200px;
}

/* ─── Cards (Problema) ─── */
.section--problema { background: var(--bg-primary); }
.cards { display: grid; gap: 28px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-tertiary));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: all 0.5s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-brand-soft);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
}
.card__shine {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, rgba(168,85,247,0.6), transparent 60%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: 0 30px 60px rgba(168,85,247,0.18), 0 0 0 1px rgba(168,85,247,0.2);
}
.card:hover::before { opacity: 1; }
.card:hover .card__shine { opacity: 1; }

.card__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}
.card__icon svg { width: 26px; height: 26px; }
.card__icon--red {
  background: rgba(255, 107, 107, 0.1);
  color: var(--red-soft);
  border: 1px solid rgba(255,107,107,0.2);
}
.card h3 { margin-bottom: 14px; position: relative; z-index: 1; }
.card p { color: var(--text-muted); position: relative; z-index: 1; }

/* ─── Features (Solución) ─── */
.section--solucion { background: var(--bg-secondary); }
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}
.feature {
  background: linear-gradient(180deg, rgba(20,20,28,0.6), rgba(17,17,30,0.4));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  text-align: center;
  padding: 48px 32px;
  position: relative;
  transition: all 0.5s var(--ease-out);
}
.feature:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: linear-gradient(180deg, rgba(20,20,28,0.8), rgba(17,17,30,0.6));
}
.feature--featured {
  border-color: rgba(168,85,247,0.3);
  background: linear-gradient(180deg, rgba(168,85,247,0.08), rgba(59,91,255,0.04));
}
.feature__icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 32px;
  border-radius: 20px;
  background: rgba(20,20,28,0.8);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--text-white);
}
.feature__icon svg { width: 34px; height: 34px; position: relative; z-index: 1; }
.feature__glow {
  position: absolute;
  inset: -12px;
  border-radius: 24px;
  filter: blur(24px);
  opacity: 0.6;
  z-index: 0;
}
.feature__glow--blue { background: var(--brand-blue); }
.feature__glow--violet { background: var(--brand-violet); }
.feature__glow--mix { background: var(--grad-brand); }
.feature h3 { margin-bottom: 14px; }
.feature p { color: var(--text-muted); }

/* ─── Stats Section ─── */
.stats-section {
  padding: 60px 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.stat__label {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ─── Timeline (Cómo funciona) ─── */
.section--how { background: var(--bg-primary); }
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-top: 40px;
  max-width: 1100px;
  margin: 0 auto;
}
.timeline__line {
  position: absolute;
  top: 70px;
  left: 16.67%;
  right: 16.67%;
  height: 2px;
  background: var(--grad-brand-h);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(168,85,247,0.4);
}
.timeline__progress {
  height: 100%;
  width: 100%;
  background: var(--grad-brand-h);
  box-shadow: 0 0 10px rgba(168,85,247,0.5);
}
.timeline__step {
  text-align: center;
  position: relative;
}
.timeline__dot {
  width: 64px;
  height: 64px;
  margin: 0 auto 32px;
  border-radius: 50%;
  background: var(--grad-brand);
  border: 2px solid transparent;
  box-shadow: 0 0 24px rgba(168,85,247,0.4), 0 0 0 6px rgba(168,85,247,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  transition: all 0.5s var(--ease-bounce);
}
.timeline__dot span {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: white;
  transition: transform 0.5s;
}
.timeline__step.active .timeline__dot {
  box-shadow: 0 0 36px rgba(168,85,247,0.7), 0 0 0 10px rgba(168,85,247,0.15);
  transform: scale(1.08);
}
.timeline__day {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--brand-violet);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.timeline__content h3 { margin-bottom: 14px; }
.timeline__content p { color: var(--text-muted); max-width: 280px; margin: 0 auto; }

/* ─── Niches (Para quién) ─── */
.section--for { background: var(--bg-secondary); }
.niches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.niche {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.niche:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--brand-violet);
  background: var(--bg-card-hover);
  box-shadow: 0 15px 40px rgba(168,85,247,0.15);
}
.niche__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 0 14px rgba(168,85,247,0.55);
  flex-shrink: 0;
  position: relative;
}
.niche__dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(168,85,247,0.25);
}
.niche:hover .niche__dot { box-shadow: 0 0 22px rgba(168,85,247,0.9); }
.niche span:last-child {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
}

/* ─── PRICING ─── */
.section--pricing { background: var(--bg-primary); }
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.price {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-tertiary));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 44px 32px;
  position: relative;
  transition: all 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
}
.price:hover {
  transform: translateY(-8px);
  border-color: var(--border-strong);
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}
.price--featured {
  background: linear-gradient(180deg, rgba(168,85,247,0.05), rgba(59,91,255,0.03));
  border: none;
  position: relative;
  transform: scale(1.05);
}
.price--featured::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: var(--grad-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.price--featured::after {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(168,85,247,0.2), transparent 70%);
  border-radius: var(--radius-lg);
  z-index: -1;
  filter: blur(20px);
}
.price--featured:hover { transform: scale(1.05) translateY(-8px); }

.price__badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-brand);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 7px 18px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(168,85,247,0.4);
}
.price__name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--brand-blue-light);
  margin-bottom: 8px;
}
.price--featured .price__name { color: var(--brand-violet-light); }
.price__desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.price__amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}
.price__currency {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}
.price__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}
.price__value-sm {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}
.price__setup {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.price__plus {
  font-size: 18px;
  color: var(--text-dim);
  margin-bottom: 12px;
  font-weight: 300;
}
.price__monthly {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 32px;
}
.price__per {
  font-size: 14px;
  color: var(--text-muted);
}
.price__features {
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  flex: 1;
}
.price__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.4;
}
.price__features li::before {
  content: '';
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233B5BFF' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}
.price--featured .price__features li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A855F7' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* ─── Nav Tabs (para páginas secundarias: catálogo, quiz, etc.) ─── */
.nav__tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(7,7,12,0.55);
  border: 1px solid rgba(168,85,247,0.18);
  border-radius: 999px;
  padding: 5px;
  margin: 0 auto;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav__tab {
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav__tab svg { width: 14px; height: 14px; opacity: 0.7; }
.nav__tab:hover {
  color: var(--text-white);
  background: rgba(168,85,247,0.10);
}
.nav__tab--active {
  background: var(--grad-brand);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(168,85,247,0.4);
}
.nav__tab--active svg { opacity: 1; }
.nav__tab--active:hover {
  background: var(--grad-brand);
  color: white;
}

/* Action buttons del nav secundario */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

@media (max-width: 1024px) {
  .nav__tab { padding: 8px 14px; font-size: 12px; }
  .nav__tab svg { display: none; }
}
@media (max-width: 768px) {
  .nav__tabs { gap: 2px; padding: 3px; }
  .nav__tab { padding: 7px 10px; font-size: 11px; }
  .nav__actions .btn:not(.btn--primary) { display: none; }
}

/* ─── Pricing extras (links a catálogo + quiz) ─── */
.pricing-extras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 880px;
  margin: 48px auto 0;
}
.pricing-extras__link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(20,20,28,0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: all 0.3s var(--ease-out);
  color: var(--text-soft);
}
.pricing-extras__link:hover {
  border-color: var(--brand-violet);
  background: rgba(168,85,247,0.06);
  transform: translateY(-2px);
}
.pricing-extras__link svg {
  color: var(--brand-violet-light);
  flex-shrink: 0;
}
.pricing-extras__link strong {
  font-weight: 600;
  color: var(--text-white);
  font-size: 15px;
}
.pricing-extras__link small {
  color: var(--text-muted);
  font-size: 12.5px;
}
@media (max-width: 768px) {
  .pricing-extras { grid-template-columns: 1fr; }
}

/* ─── Custom tier (4to plan, estilo bento bicolor) ─── */
.custom-tier {
  margin-top: 64px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(45,79,255,0.10) 0%, rgba(168,85,247,0.14) 100%), rgba(20,20,28,0.6);
  border: 1px solid rgba(168,85,247,0.25);
}
.custom-tier::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(45,79,255,0.18), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(168,85,247,0.18), transparent 50%);
  pointer-events: none;
}
.custom-tier__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  padding: 56px 48px;
  align-items: center;
}
.custom-tier__tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--brand-violet-light);
  background: rgba(168,85,247,0.12);
  border: 1px solid rgba(168,85,247,0.3);
  margin-bottom: 22px;
}
.custom-tier h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 16px;
  line-height: 1.15;
}
.custom-tier > .custom-tier__inner > .custom-tier__left > p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 24px;
  line-height: 1.65;
}
.custom-tier__features-header {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 16px;
  margin-top: 4px;
}
.custom-tier__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}
.custom-tier__features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.4;
}
.custom-tier__features li::before {
  content: '';
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A855F7' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}
.custom-tier__right {
  background: rgba(7,7,12,0.55);
  border: 1px solid rgba(168,85,247,0.2);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  position: relative;
}
.custom-tier__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 14px;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 10px 30px rgba(168,85,247,0.4);
}
.custom-tier__icon svg {
  width: 26px;
  height: 26px;
}
.custom-tier__heading {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 14px;
}
.custom-tier__copy {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 26px;
}
.custom-tier__copy strong {
  color: var(--text-white);
  font-weight: 600;
}

@media (max-width: 1024px) {
  .custom-tier__inner { grid-template-columns: 1fr; gap: 32px; padding: 40px 28px; }
  .custom-tier__features { grid-template-columns: 1fr; }
}

/* ─── GUARANTEE ─── */
.section--guarantee { padding: 80px 0; background: var(--bg-primary); }
.guarantee {
  background: linear-gradient(135deg, rgba(59,91,255,0.05) 0%, rgba(168,85,247,0.1) 100%);
  border: 1px solid rgba(168,85,247,0.2);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.guarantee::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(59,91,255,0.18), transparent 60%),
    radial-gradient(circle at 70% 50%, rgba(168,85,247,0.18), transparent 60%);
  pointer-events: none;
}
.guarantee > * { position: relative; z-index: 1; }
.guarantee__icon {
  width: 88px; height: 88px;
  margin: 0 auto 36px;
  background: var(--grad-brand);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 20px 50px rgba(168,85,247,0.4);
}
.guarantee__icon svg { width: 40px; height: 40px; }
.guarantee h2 {
  max-width: 760px;
  margin: 0 auto 20px;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
}
.guarantee p {
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 32px;
}

/* Tiers de garantía (mini-grid debajo del párrafo) */
.guarantee__tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 920px;
  margin: 0 auto 40px;
}
.guarantee__tier--custom .guarantee__tier-value {
  -webkit-text-fill-color: var(--brand-violet-light);
  background: none;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}
.guarantee__tier--custom {
  border-style: dashed;
  border-color: rgba(168,85,247,0.35);
}
@media (max-width: 1024px) {
  .guarantee__tiers { grid-template-columns: repeat(2, 1fr); }
}
.guarantee__tier {
  background: rgba(20,20,28,0.65);
  border: 1px solid rgba(168,85,247,0.18);
  border-radius: var(--radius-sm);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.guarantee__tier:hover {
  transform: translateY(-3px);
  border-color: rgba(168,85,247,0.45);
}
.guarantee__tier--featured {
  background: linear-gradient(180deg, rgba(168,85,247,0.12), rgba(59,91,255,0.06));
  border-color: rgba(168,85,247,0.4);
  box-shadow: 0 8px 30px rgba(168,85,247,0.15);
}
.guarantee__tier-name {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--brand-violet-light);
}
.guarantee__tier-value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 4px 0 2px;
  line-height: 1;
}
.guarantee__tier-label {
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .guarantee__tiers { grid-template-columns: 1fr; gap: 10px; }
}

/* ─── FAQ ─── */
.section--faq { background: var(--bg-secondary); }
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq__item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}
.faq__item[open] {
  border-color: rgba(168,85,247,0.4);
  background: linear-gradient(180deg, rgba(168,85,247,0.03), var(--bg-card));
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-white);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--bg-card-hover);
  position: relative;
  flex-shrink: 0;
  transition: all 0.3s;
}
.faq__icon::before, .faq__icon::after {
  content: '';
  position: absolute;
  background: var(--text-soft);
  transition: all 0.3s var(--ease);
  top: 50%; left: 50%;
}
.faq__icon::before { width: 12px; height: 2px; transform: translate(-50%, -50%); }
.faq__icon::after { width: 2px; height: 12px; transform: translate(-50%, -50%); }
.faq__item[open] .faq__icon { background: var(--grad-brand); }
.faq__item[open] .faq__icon::before { background: white; }
.faq__item[open] .faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}
.faq__answer { padding: 0 28px 26px; color: var(--text-muted); line-height: 1.7; }

/* ─── CTA FINAL ─── */
.section--cta {
  text-align: center;
  position: relative;
  padding: 160px 0;
  background: var(--bg-primary);
}
.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(168,85,247,0.25) 0%, transparent 60%);
  filter: blur(80px);
  pointer-events: none;
}
.cta { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.cta h2 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 28px; }
.cta p { font-size: 19px; color: var(--text-muted); margin-bottom: 44px; line-height: 1.6; }
.cta__note {
  display: block;
  margin-top: 28px;
  font-size: 14px;
  color: var(--text-dim);
}
.cta__note a { color: var(--brand-violet-light); transition: color 0.2s; }
.cta__note a:hover { color: var(--brand-violet); }

/* ─── FOOTER ─── */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 40px;
  background: var(--bg-secondary);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer__brand p {
  margin-top: 22px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__col h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.footer__col a, .footer__col span {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--text-white); }
.footer__bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
}

/* ═══════════════════════════════════════════════════
   ANIMATIONS - bulletproof: visible by default, JS adds animation classes
   ═══════════════════════════════════════════════════ */

/* Failsafe: if JS runs, it adds .js to <html> and these get hidden until reveal */
html.js .animate {
  opacity: 0;
  will-change: opacity, transform;
}
html.js .animate--fade-up { transform: translateY(40px); }
html.js .animate--fade-left { transform: translateX(60px); }
html.js .animate--fade { /* opacity only */ }
html.js .animate.in {
  opacity: 1;
  transform: translate(0, 0);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
html.js .animate--delay-1.in { transition-delay: 0.1s; }
html.js .animate--delay-2.in { transition-delay: 0.2s; }
html.js .animate--delay-3.in { transition-delay: 0.3s; }
html.js .animate--delay-4.in { transition-delay: 0.5s; }
html.js .animate--delay-5.in { transition-delay: 0.7s; }
html.js .animate--delay-6.in { transition-delay: 0.9s; }

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  will-change: opacity, transform;
}
html.js [data-reveal].in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

/* Hero title line reveal */
.hero__title .line {
  display: block;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════ RESPONSIVE ═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 60px; }
  .hero__phone { transform: scale(0.92); }
  .float-badge--1 { top: 50px; left: -20px; }
  .float-badge--2 { bottom: 60px; right: -20px; }
  .cards--3, .features, .pricing { grid-template-columns: 1fr; gap: 24px; }
  .timeline { grid-template-columns: 1fr; gap: 32px; }
  .timeline__line { display: none; }
  .timeline__dot { margin-bottom: 20px; width: 56px; height: 56px; }
  .timeline__dot span { font-size: 22px; }
  .timeline__step { padding-bottom: 16px; border-bottom: 1px solid var(--border-subtle); }
  .timeline__step:last-child { border-bottom: none; }
  .niches { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .price--featured { transform: scale(1); }
  .price--featured:hover { transform: translateY(-8px); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  /* Welcome timeline (bienvenida.html) en mobile */
  .welcome-grid { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 1024px) {
  .top-bar__inner { grid-template-columns: 1fr auto; gap: 16px; }
  .top-bar__right { display: none; }
}
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__tabs { display: none; }
  .nav__actions { display: none; }
  .nav__toggle { display: flex; }
  .nav__inner > .btn { display: none; }
  .nav__inner { padding: 12px 16px; gap: 16px; }
  .top-bar { font-size: 11.5px; height: 36px; }
  .top-bar__inner { grid-template-columns: 1fr; gap: 0; }
  .top-bar__left, .top-bar__right { display: none; }
  .top-bar__center { justify-self: center; }
  .nav { top: 36px; }
  .hero { padding: 140px 0 60px; min-height: auto; }
  .hero__title { font-size: clamp(2rem, 8.5vw, 3.2rem); }
  .hero__buttons .btn { width: 100%; }
  .hero__metrics { justify-content: center; gap: 16px; }
  .hero__phone { transform: scale(0.85); margin: 0 auto; }
  .float-badge { font-size: 11px; padding: 8px 12px; }
  .niches { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 70px 0; }
  .section__head { margin-bottom: 40px; }
  .guarantee { padding: 50px 24px; }
  .marquee__track span { font-size: 16px; }
  /* Cards más compactas en tablet */
  .card, .feature { padding: 28px 22px; }
  .price { padding: 32px 24px; }
  /* Logo nav un poco más chico en tablet */
  .nav__logo-img { height: 44px; max-width: 56px; }
  .nav__logo-text { font-size: 15px; }
  /* Phone mockup más chico para que entre */
  .phone { width: 280px; height: 560px; }
  /* Welcome steps responsive */
  .welcome-step { padding: 24px 20px; }
  .welcome-step__num { font-size: 28px; }
  /* Document container más compacto */
  .doc-card { padding: 24px 20px; }
}

@media (max-width: 480px) {
  /* Container más apretado en mobile chico */
  .container { padding: 0 14px; }
  /* Nav logo más compacto */
  .nav__logo-img { height: 40px; max-width: 50px; }
  .nav__logo-text { font-size: 14px; }
  /* Timeline dots más chicos en mobile chico */
  .timeline__dot { width: 50px; height: 50px; margin-bottom: 14px; }
  .timeline__dot span { font-size: 20px; }
  .timeline__day { font-size: 11px; margin-bottom: 6px; }
  /* Welcome steps super compactos */
  .welcome-step { padding: 20px 16px; }
  .welcome-step__num { font-size: 24px; margin-bottom: 8px; }
  .welcome-step h3 { font-size: 16px; }
  .welcome-step p { font-size: 13.5px; }
  /* Doc cards compactas */
  .doc-card { padding: 20px 16px; }
  .doc-card h2 { font-size: 1.3rem; }
  .doc-card h3 { font-size: 1rem; }
  /* Contract tabla de plazos compacta */
  .contract table td { padding: 6px 0 !important; font-size: 13px; }
  .contract h1 { font-size: clamp(1.6rem, 7vw, 2rem); }
  .contract h2 { font-size: 1.1rem; }
  .contract p, .contract li { font-size: 13.5px; line-height: 1.55; }
  /* Form fields */
  .form-section { padding: 22px 16px; }
  .form-section__title { font-size: 16px; }
  .form-field input, .form-field select, .form-field textarea { font-size: 15px; padding: 10px 12px; }
  .form-field label { font-size: 13px; }
  /* Welcome hero */
  .welcome-hero h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .welcome-icon { width: 60px; height: 60px; }
  /* Hero compacto */
  .hero { padding: 130px 0 60px; }
  .hero__grid { gap: 50px; }
  .hero__title { font-size: clamp(1.85rem, 9vw, 2.6rem); }
  .hero__subtitle { font-size: 1rem; margin-bottom: 32px; }
  .hero__buttons { gap: 10px; margin-bottom: 40px; }
  .hero__buttons .btn { padding: 14px 20px; font-size: 14px; }
  .hero__metrics { gap: 18px; justify-content: flex-start; }
  .metric__value { font-size: 22px; }
  .metric__divider { display: none; }
  .hero__scroll-hint { display: none; }
  /* Phone mockup no se desborda */
  .hero__phone { transform: scale(0.78); margin: 0 auto; max-width: 100%; }
  .float-badge { font-size: 10px; padding: 6px 10px; }
  .float-badge--1 { top: 30px; left: -6px; }
  .float-badge--2 { bottom: 40px; right: -6px; }
  /* Pill arriba del hero */
  .pill { font-size: 11.5px; padding: 6px 14px; margin-bottom: 22px; }
  /* Botones grandes ya están bien con block en mobile */
  .btn--xl { padding: 16px 24px; font-size: 15px; }
  .btn--lg { padding: 14px 20px; font-size: 14px; }
  /* Stats */
  .stats { grid-template-columns: 1fr 1fr !important; gap: 20px !important; }
  .stat__value { font-size: clamp(1.6rem, 8vw, 2.2rem); }
  /* Secciones más compactas */
  .section { padding: 60px 0 !important; }
  .section__head { margin-bottom: 36px !important; }
  .section__title { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .section__subtitle { font-size: 14px; }
  /* Cards más respirables */
  .cards--3, .features, .pricing, .timeline { gap: 18px !important; }
  .card, .feature { padding: 24px 20px !important; }
  /* Niches en grid 2 columnas para no saturar */
  .niches { grid-template-columns: 1fr !important; gap: 10px; }
  .niche { padding: 16px 18px; font-size: 14px; }
  /* Precios */
  .price { padding: 28px 22px; }
  .price__value { font-size: 2.4rem; }
  .price__value-sm { font-size: 1.6rem; }
  /* Marquee texto más chico */
  .marquee__track span { font-size: 15px !important; }
  /* Garantía compacta */
  .guarantee { padding: 36px 20px !important; }
  .guarantee__icon { width: 60px; height: 60px; }
  .guarantee__tier-value { font-size: 1.5rem; }
  /* FAQ */
  .faq__item summary { padding: 18px 18px !important; font-size: 15px !important; }
  /* Footer */
  .footer__grid { gap: 24px !important; }
  .footer__col h4 { font-size: 13px; }
  /* CTA Final */
  .cta { padding: 50px 20px !important; }
  .cta h2 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  /* Custom tier */
  .custom-tier__inner { padding: 28px 20px !important; }
}

/* Anti-overflow defensivo — nada debe romper el viewport */
img, video, canvas, svg { max-width: 100%; height: auto; }
.hero__phone, .phone { max-width: 100%; }
* { min-width: 0; }
.container, .container--narrow { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee__track { animation: none; }
  .bg-orb { animation: none !important; }
}

/* ═══════════════════════════════════════════════════
   ANIMATED BACKGROUND - Aurora effect
   ═══════════════════════════════════════════════════ */
body {
  background: var(--bg-primary);
  position: relative;
}

.bg-animated {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(45,79,255,0.20), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(168,85,247,0.20), transparent 55%),
    var(--bg-primary);
}

/* Twinkling stars desactivado (performance — eran 12 radial-gradients animados) */

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  will-change: transform;
  opacity: 0.50;
}
.bg-orb--1 {
  width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(45,79,255,0.7), transparent 60%);
  top: -8%; left: -8%;
  animation: orbDrift1 45s ease-in-out infinite;
}
.bg-orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(168,85,247,0.7), transparent 60%);
  top: 30%; right: -8%;
  animation: orbDrift2 50s ease-in-out infinite;
}
/* Orbs 3 y 4 desactivados (performance) */
.bg-orb--3 { display: none; }
.bg-orb--4 { display: none; }
/* En mobile sacamos los orbs animados — solo el bg fijo */
@media (max-width: 768px) {
  .bg-orb { display: none; }
}

@keyframes orbDrift1 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(40vw, 35vh, 0); }
}
@keyframes orbDrift2 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-35vw, 30vh, 0); }
}
@keyframes orbDrift3 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-25vw, -35vh, 0); }
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── Make all sections transparent so the animated bg shows through ─── */
.hero,
.section--problema,
.section--solucion,
.section--how,
.section--for,
.section--pricing,
.section--guarantee,
.section--faq,
.section--cta,
.stats-section {
  background: transparent;
}

/* Hero glows are now redundant with the bg-animated, soften them */
.hero__glow--1, .hero__glow--2, .hero__glow--3 { opacity: 0.6; }

/* Keep grid overlays for texture */
.bg-grid--solucion { opacity: 0.6; }

/* Section internal glows now subtle so bg-animated dominates */
.section__glow--blue, .section__glow--violet { opacity: 0.25; }
.cta-glow { opacity: 0.5; }

/* ─── Solid backgrounds (NO backdrop-filter — performance) ─── */
.card { background: linear-gradient(180deg, rgba(20,20,28,0.95), rgba(17,17,30,0.95)); }
.feature { background: linear-gradient(180deg, rgba(20,20,28,0.85), rgba(17,17,30,0.85)); }
.feature--featured { background: linear-gradient(180deg, rgba(168,85,247,0.12), rgba(59,91,255,0.08)); }
.price { background: linear-gradient(180deg, rgba(20,20,28,0.95), rgba(17,17,30,0.95)); }
.price--featured { background: linear-gradient(180deg, rgba(28,20,40,0.95), rgba(20,20,40,0.95)); }
.niche { background: rgba(20,20,28,0.92); }
.niche:hover { background: rgba(26,26,40,0.98); }
.faq__item { background: rgba(20,20,28,0.92); }
.faq__item[open] { background: linear-gradient(180deg, rgba(168,85,247,0.10), rgba(20,20,28,0.95)); }

.marquee-section { background: rgba(12,12,22,0.85); }
.guarantee { background: linear-gradient(135deg, rgba(59,91,255,0.12) 0%, rgba(168,85,247,0.18) 100%), rgba(20,20,28,0.6); }
.footer { background: rgba(7,7,12,0.92); }

/* Nav keeps backdrop-filter — only one element, only when scrolling */
.nav { background: rgba(7,7,12,0.4); }
.nav.scrolled { background: rgba(7,7,12,0.65); border-bottom: 1px solid rgba(168,85,247,0.10); }

/* ─── Guarantee note ─── */
.guarantee__note {
  display: block;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-dim);
  font-style: italic;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}
