@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400&display=swap');

:root {
  --bg-deep: #050506;
  --bg-primary: #0A0A0C;
  --bg-elevated: #111114;
  --bg-card: rgba(255, 255, 255, 0.02);
  --bg-card-hover: rgba(255, 255, 255, 0.05);
  --border-color: rgba(244, 243, 240, 0.06);
  --border-color-hover: rgba(244, 243, 240, 0.15);
  --violet: #8D84FF;
  --violet-glow: rgba(141, 132, 255, 0.12);
  --cyan: #4CE2F4;
  --cyan-glow: rgba(76, 226, 244, 0.1);
  --emerald: #00F5A0;
  --text-primary: #F4F3F0;
  --text-secondary: #A6A59E;
  --text-muted: #555550;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --container-max: 1240px;
  --container-padding: 0 clamp(24px, 5vw, 56px);
  --section-padding: clamp(100px, 14vh, 160px) 0;
  --radius-sm: 3px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ═══════════════════════════════════════════
   1. RESET & BASE
   ═══════════════════════════════════════════ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  font-size: 16px;
}

a { text-decoration: none; color: inherit; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
}

.section {
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
}

/* ═══════════════════════════════════════════
   2. PRELOADER
   ═══════════════════════════════════════════ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: #050506;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transition: clip-path 1.2s cubic-bezier(0.76, 0, 0.24, 1);
  clip-path: inset(0 0 0 0);
}

#preloader.done {
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}

.preloader-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  animation: preloader-logo-in 0.8s var(--ease-out) 0.2s forwards;
}

.preloader-logo svg {
  filter: drop-shadow(0 0 18px rgba(200, 199, 192, 0.15));
}

@keyframes preloader-logo-in {
  to { opacity: 1; transform: scale(1); }
}

.preloader-counter {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.preloader-bar {
  width: 120px;
  height: 1px;
  background: var(--border-color);
  overflow: hidden;
}

.preloader-bar-inner {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  transition: width 0.3s linear;
}

/* ═══════════════════════════════════════════
   3. NOISE OVERLAY
   ═══════════════════════════════════════════ */
#noise-overlay {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 99990;
  pointer-events: none;
  opacity: 0.018;
  animation: noise-shift 0.3s steps(4) infinite;
}

@keyframes noise-shift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-5%, -5%); }
  50%  { transform: translate(5%, -10%); }
  75%  { transform: translate(-10%, 5%); }
  100% { transform: translate(0, 0); }
}



/* ═══════════════════════════════════════════
   5. SCROLL PROGRESS BAR
   ═══════════════════════════════════════════ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--violet), var(--cyan), var(--emerald));
  z-index: 10001;
  box-shadow: 0 0 20px rgba(141, 132, 255, 0.4);
}

/* ═══════════════════════════════════════════
   6. NAV DOTS
   ═══════════════════════════════════════════ */
#nav-dots {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.nav-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border-color-hover);
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  position: relative;
}

.nav-dot::after {
  content: attr(data-label);
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s, color 0.3s;
  pointer-events: none;
}

.nav-dot:hover::after,
.nav-dot.active::after {
  opacity: 1;
}

.nav-dot.active {
  width: 6px;
  height: 6px;
  background: var(--violet);
  box-shadow: 0 0 10px rgba(141, 132, 255, 0.5);
}

.nav-dot.active::after {
  color: var(--violet);
}

.nav-dot:hover {
  background: var(--text-secondary);
}

@media (max-width: 1024px) {
  #nav-dots { display: none; }
}

/* ═══════════════════════════════════════════
   7. NAVBAR
   ═══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 32px 0;
  background: transparent;
  transition: all 0.6s var(--ease-out);
}

.navbar.scrolled {
  background: rgba(5, 5, 6, 0.85);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  border-bottom: 1px solid var(--border-color);
  padding: 18px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  cursor: pointer;
}

.nav-logo .logo-icon {
  width: 48px;
  height: auto;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 48px;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.25s var(--ease-out);
  cursor: pointer;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta a {
  padding: 10px 22px !important;
  font-size: 0.78rem !important;
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 24px;
  cursor: pointer;
  z-index: 1001;
}

.nav-mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.25s var(--ease-out);
}

.nav-mobile-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-mobile-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ═══════════════════════════════════════════
   8. BUTTONS
   ═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.6s var(--ease-out);
  border: 1.5px solid var(--text-primary);
  cursor: pointer;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  z-index: -1;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-deep);
  box-shadow: 0 10px 30px rgba(244, 243, 240, 0.05);
}

.btn-primary:hover {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--violet);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(141, 132, 255, 0.2);
}

.btn-primary:hover::before {
  opacity: 0.15;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border-color-hover);
  transform: translateY(-3px);
}

.btn-large {
  padding: 18px 44px;
}

.btn svg {
  width: 12px;
  height: 12px;
  transition: transform 0.25s var(--ease-out);
}

.btn:hover svg {
  transform: translateX(6px);
}

/* ═══════════════════════════════════════════
   9. LANGUAGE SWITCHER
   ═══════════════════════════════════════════ */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 4px 6px;
  border-radius: 20px;
  margin-left: 24px;
}

.lang-switcher a {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 16px;
  color: var(--text-secondary);
  transition: all 0.25s var(--ease-out);
  letter-spacing: 0.1em;
  cursor: pointer;
}

.lang-switcher a.active {
  background: var(--text-primary);
  color: var(--bg-deep);
}

.lang-switcher a:hover:not(.active) {
  color: var(--text-primary);
}

/* ── Hero Background Video ── */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.28;
  transform: scale(1.04);
  transition: opacity 1.2s ease;
  filter: saturate(0.6) brightness(0.7);
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  /* Multi-layer overlay: strong vignette at edges + solid dark base */
  background:
    radial-gradient(ellipse at center, transparent 0%, rgba(5,5,6,0.55) 75%, rgba(5,5,6,0.9) 100%),
    linear-gradient(
      to bottom,
      rgba(5,5,6,0.6) 0%,
      rgba(5,5,6,0.2) 35%,
      rgba(5,5,6,0.2) 65%,
      rgba(5,5,6,0.85) 100%
    );
}

/* ═══════════════════════════════════════════
   10. HERO SECTION
   ═══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 120px;
  background: var(--bg-deep);
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.55;
  mix-blend-mode: screen;
}

.hero-layer {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.hero-layer-0 { z-index: 0; }
.hero-layer-1 { z-index: 1; }
.hero-layer-2 { z-index: 2; }

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.12;
  animation: orb-gentle 28s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}

.hero-orb-1 {
  width: 700px;
  height: 700px;
  background: var(--violet);
  top: -250px;
  left: -200px;
}

.hero-orb-2 {
  width: 600px;
  height: 600px;
  background: var(--cyan);
  bottom: -200px;
  right: -150px;
  animation-delay: -12s;
}

.hero-orb-3 {
  width: 400px;
  height: 400px;
  background: var(--emerald);
  top: 40%;
  left: 40%;
  opacity: 0.06;
  animation-delay: -6s;
}

@keyframes orb-gentle {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, -30px) scale(1.05); }
  100% { transform: translate(-20px, 40px) scale(0.95); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 243, 240, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 243, 240, 0.012) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 50%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 50%, transparent 85%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--violet);
  border-radius: 50%;
  opacity: 0;
  animation: particle-rise linear infinite;
}

@keyframes particle-rise {
  0%   { opacity: 0; transform: translateY(0) scale(0); }
  10%  { opacity: 0.6; transform: translateY(-20px) scale(1); }
  90%  { opacity: 0.2; }
  100% { opacity: 0; transform: translateY(-120px) scale(0.5); }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 48px;
}

.hero-badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hero-badge::before,
.hero-badge::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 1px;
  background: var(--violet);
}

/* ── Text Mask Reveal System ── */
.line-mask {
  overflow: hidden;
  display: block;
  padding-bottom: 0.1em;
}

.line-mask .line-inner {
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-expo);
}

.line-mask.revealed .line-inner {
  transform: translateY(0);
}

.delay-1 .line-inner { transition-delay: 0.06s; }
.delay-2 .line-inner { transition-delay: 0.12s; }
.delay-3 .line-inner { transition-delay: 0.18s; }
.delay-4 .line-inner { transition-delay: 0.24s; }
.delay-5 .line-inner { transition-delay: 0.30s; }
.delay-6 .line-inner { transition-delay: 0.36s; }
.delay-7 .line-inner { transition-delay: 0.42s; }
.delay-8 .line-inner { transition-delay: 0.48s; }

/* ── Hero Title ── */
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 8vw, 5.8rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 36px;
}

.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px) rotateX(-20deg);
  animation: word-rise 0.8s var(--ease-out) forwards;
}

@keyframes word-rise {
  to { opacity: 1; transform: translateY(0) rotateX(0deg); }
}

.hero-title .highlight-text {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--violet) 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Hero Subtitle ── */
.hero-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  color: var(--text-secondary);
  max-width: 740px;
  margin: 0 auto 56px;
  line-height: 1.7;
  font-weight: 300;
}

/* ── Hero Actions ── */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 96px;
}

/* ── Hero Stats ── */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 100px;
  padding-top: 56px;
  border-top: 1px solid var(--border-color);
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 700;
  color: var(--text-primary);
}

.hero-stat-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-top: 12px;
  font-weight: 600;
}

/* ── Scroll Cue ── */
.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.scroll-cue span {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-cue-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg, var(--border-color-hover), transparent);
  animation: line-pulse 2s ease-in-out infinite;
}

@keyframes line-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%      { opacity: 1; transform: scaleY(1.2); transform-origin: top; }
}

/* ── Core Animations ── */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in-down {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════
   11. MARQUEE STRIP
   ═══════════════════════════════════════════ */
.marquee-section {
  padding: 32px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-primary);
  overflow: hidden;
  position: relative;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 40px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.marquee-item span {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--violet);
  opacity: 0.5;
}

/* ═══════════════════════════════════════════
   12. SECTION DIVIDER & HELPERS
   ═══════════════════════════════════════════ */
.section-divider {
  height: 1px;
  background: var(--border-color);
  max-width: var(--container-max);
  margin: 0 auto;
}

.asymmetric-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.asymmetric-title {
  position: sticky;
  top: 140px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.section-title span.italic {
  font-style: italic;
  font-weight: 400;
  color: var(--violet);
}

.section-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
}

.editorial-num {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.editorial-num::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--border-color);
}

.editorial-p {
  max-width: 680px;
  margin-bottom: 24px;
  line-height: 1.8;
  font-weight: 300;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ═══════════════════════════════════════════
   13. GENERIC SCROLL REVEAL
   ═══════════════════════════════════════════ */
.reveal-up {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s var(--ease-expo), transform 1s var(--ease-expo);
}

.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  filter: blur(8px);
  transition: opacity 1.2s var(--ease-expo), transform 1.2s var(--ease-expo), filter 1.2s var(--ease-expo);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

.reveal-clip {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.2s var(--ease-expo);
}

.reveal-clip.revealed {
  clip-path: inset(0 0 0 0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-80px);
  transition: opacity 1s var(--ease-expo), transform 1s var(--ease-expo);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 1s var(--ease-expo), transform 1s var(--ease-expo);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Legacy reveal class support */
.fade-up-blur {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(40px);
  transition: opacity 1.2s var(--ease-out), filter 1.2s var(--ease-out), transform 1.2s var(--ease-out);
}

.fade-up-blur.revealed {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Char reveal */
.char-reveal .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%) rotate(5deg);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.char-reveal.revealed .char {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
.stagger-5 { transition-delay: 0.40s; }
.stagger-6 { transition-delay: 0.48s; }

/* ═══════════════════════════════════════════
   14. ENFOQUE / PROBLEM SECTION
   ═══════════════════════════════════════════ */
.problem {
  background: var(--bg-deep);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 64px 56px;
  border-radius: var(--radius-md);
  transition: all 0.6s var(--ease-out);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
}

.problem-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.problem-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.problem-card.card-after {
  background: rgba(141, 132, 255, 0.015);
  border-color: rgba(141, 132, 255, 0.18);
}

.problem-card.card-after::before {
  background: linear-gradient(135deg, rgba(141, 132, 255, 0.2), transparent 50%);
}

.problem-card.card-after:hover {
  border-color: rgba(141, 132, 255, 0.4);
  box-shadow: 0 30px 60px rgba(141, 132, 255, 0.05);
}

.problem-icon {
  width: 56px;
  height: 56px;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  margin-bottom: 36px;
}

.problem-card.card-after .problem-icon {
  background: var(--violet-glow);
  border-color: rgba(141, 132, 255, 0.3);
  color: var(--violet);
}

.problem-card h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 28px;
}

/* ═══════════════════════════════════════════
   15. PROCESS SECTION (TIMELINE)
   ═══════════════════════════════════════════ */
.process-section {
  background: var(--bg-primary);
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
}

.process-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--violet) 20%, var(--cyan) 80%, transparent);
  opacity: 0.15;
}

.process-header {
  text-align: center;
  margin-bottom: 100px;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}

.process-step {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 0;
  align-items: center;
  opacity: 0;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.process-step:nth-child(odd) {
  transform: translateX(-40px);
}

.process-step:nth-child(even) {
  transform: translateX(40px);
}

.process-step.revealed {
  opacity: 1;
  transform: translateX(0);
}

.process-step-content {
  padding: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all 0.6s var(--ease-out);
}

.process-step-content:hover {
  border-color: rgba(141, 132, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.process-step:nth-child(odd) .process-step-content  { grid-column: 1; }
.process-step:nth-child(odd) .process-step-num-wrap { grid-column: 3; grid-row: 1; }

.process-step:nth-child(even) .process-step-content  { grid-column: 3; }
.process-step:nth-child(even) .process-step-spacer   { grid-column: 2; grid-row: 1; }
.process-step:nth-child(even) .process-step-num-wrap { grid-column: 1; grid-row: 1; text-align: right; }

.process-step-num-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid var(--violet);
  background: var(--violet-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--violet);
  box-shadow: 0 0 24px rgba(141, 132, 255, 0.2);
  flex-shrink: 0;
}

.process-step-spacer {
  width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-step-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.process-step-content h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.process-step-content p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════
   16. DEMO / INTERACTIVE SECTION
   ═══════════════════════════════════════════ */
.soluciones-interactivas {
  background: var(--bg-primary);
}

.interactive-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 80px;
  align-items: center;
}

/* ═══════════════════════════════════════════
   17. WHATSAPP WIDGET
   ═══════════════════════════════════════════ */
.whatsapp-widget {
  background: #0B0B0E;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
  position: relative;
  transform: perspective(1200px) rotateY(0) rotateX(0);
  transition: transform 0.6s var(--ease-out);
}

.wa-header {
  background: #111117;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border-color);
}

.wa-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet) 0%, var(--cyan) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
}

.wa-status-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.wa-status-text p {
  font-size: 0.72rem;
  color: var(--emerald);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.wa-status-text p::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

.wa-chat-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 380px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.012) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
}

.chat-bubble {
  max-width: 82%;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s var(--ease-out);
}

.chat-bubble.bubble-patient {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 2px;
}

.chat-bubble.bubble-bot {
  align-self: flex-end;
  background: var(--violet);
  color: #fff;
  border-bottom-right-radius: 2px;
  box-shadow: 0 12px 24px rgba(141, 132, 255, 0.25);
}

.chat-bubble.animated-in {
  opacity: 1;
  transform: translateY(0);
}

.typing-indicator {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.02);
  padding: 14px 24px;
  border-radius: var(--radius-md);
  display: none;
  gap: 6px;
  border: 1px solid var(--border-color);
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background: var(--text-secondary);
  border-radius: 50%;
  animation: typing-bounce 1.4s infinite both;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; }
  40%           { transform: scale(1) translateY(-5px); opacity: 1; }
}

/* ═══════════════════════════════════════════
   18. DASHBOARD WIDGET
   ═══════════════════════════════════════════ */
.dashboard-widget {
  background: #0B0B0E;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 24px;
  transform: perspective(1200px) rotateY(0) rotateX(0);
  transition: transform 0.6s var(--ease-out);
}

.dash-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dash-header h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.dash-metric {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-metric-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--violet);
}

.dash-chart-container {
  height: 160px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 20px;
}

.dash-bar {
  flex: 1;
  background: var(--violet-glow);
  border: 1.5px solid var(--violet);
  height: 0px;
  border-radius: 2px 2px 0 0;
  transition: height 1.8s var(--ease-out);
}

.dash-bar.animated {
  height: var(--target-height);
}

/* ═══════════════════════════════════════════
   19. HORIZONTAL SCROLL SECTION
   ═══════════════════════════════════════════ */
.h-scroll-wrapper {
  position: relative;
  height: 300vh;
}

.h-scroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.h-scroll-header {
  position: absolute;
  top: clamp(32px, 5vh, 56px);
  left: 0;
  right: 0;
  z-index: 5;
  padding: var(--container-padding);
  max-width: var(--container-max);
  margin: 0 auto;
}

.h-scroll-counter {
  position: absolute;
  bottom: clamp(32px, 5vh, 56px);
  right: clamp(32px, 5vw, 80px);
  z-index: 5;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.h-scroll-track {
  display: flex;
  gap: 40px;
  padding: 0 clamp(24px, 5vw, 80px);
  will-change: transform;
}

.h-card {
  flex: 0 0 clamp(320px, 42vw, 560px);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: clamp(40px, 5vw, 64px);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s;
}

.h-card:hover {
  border-color: rgba(141, 132, 255, 0.3);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.h-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}

.h-card:hover::after {
  transform: scaleX(1);
}

.h-card-icon {
  font-size: 2.8rem;
  margin-bottom: 32px;
}

.h-card h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.h-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.h-card-result {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  border-bottom: 1.5px dashed rgba(76, 226, 244, 0.4);
  padding-bottom: 4px;
}

/* Legacy services grid (fallback) */
.services { background: var(--bg-deep); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 56px 44px;
  border-radius: var(--radius-md);
  transition: all 0.6s var(--ease-out);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.service-card:hover::after { transform: scaleX(1); }

.service-card:hover {
  border-color: rgba(141, 132, 255, 0.4);
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  box-shadow: 0 30px 60px rgba(141, 132, 255, 0.05);
}

.service-icon { font-size: 2.4rem; margin-bottom: 32px; }

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.service-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.65;
}

.use-case-result {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  border-bottom: 1.5px dashed rgba(76, 226, 244, 0.4);
  padding-bottom: 4px;
  transition: border-color 0.25s var(--ease-out);
}

.service-card:hover .use-case-result { border-color: var(--cyan); }

/* ═══════════════════════════════════════════
   20. DASHBOARD PREVIEW / SHOWCASE IMAGE
   ═══════════════════════════════════════════ */
.showcase-image {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--border-color);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.showcase-image img,
.showcase-image video {
  width: 100%;
  display: block;
  border-radius: var(--radius-md);
  transform: scale(1.05);
  transition: transform 1.5s var(--ease-expo);
}

.showcase-image.revealed img,
.showcase-image.revealed video {
  transform: scale(1);
}

.showcase-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent, rgba(5, 5, 6, 0.92) 75%);
  padding: 48px;
  text-align: left;
}

/* ═══════════════════════════════════════════
   21. FAQ & TESTIMONIALS
   ═══════════════════════════════════════════ */
.faq {
  background: var(--bg-primary);
}

.faq-grid-custom {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 100px;
  align-items: start;
}

.testimonial-card {
  background: transparent;
  border: none;
  padding: 0;
}

.testimonial-stars {
  font-size: 0.95rem;
  color: var(--violet);
  letter-spacing: 3px;
}

.testimonial-text {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-primary);
  margin: 32px 0;
  position: relative;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 20px;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--violet);
  box-shadow: 0 0 20px var(--violet-glow);
}

.testimonial-author-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
}

.testimonial-author-role {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-top: 1px solid var(--border-color);
  background: transparent;
  transition: all 0.6s var(--ease-out);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--border-color);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 32px 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.25s var(--ease-out);
}

.faq-question:hover {
  color: var(--violet);
}

.faq-chevron {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
  transition: transform 0.6s var(--ease-out), color 0.25s var(--ease-out);
}

.faq-item.active .faq-chevron {
  transform: rotate(45deg);
  color: var(--violet);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease-expo);
}

.faq-item.active .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer-content {
  padding: 0 0 32px 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 300;
}

/* ═══════════════════════════════════════════
   22. FINAL CTA
   ═══════════════════════════════════════════ */
.cta-final {
  background: var(--bg-deep);
  padding: 160px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final-orb {
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(141, 132, 255, 0.08) 0%, transparent 65%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: cta-orb-pulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes cta-orb-pulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.cta-content {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-content .section-title {
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  margin-bottom: 24px;
}

.cta-content .section-subtitle {
  margin: 0 auto 56px;
  text-align: center;
  max-width: 640px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.btn-magnetic {
  will-change: transform;
}

/* ═══════════════════════════════════════════
   23. FOOTER
   ═══════════════════════════════════════════ */
.footer {
  background: var(--bg-deep);
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 40px;
  position: relative;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  color: var(--text-primary);
  font-size: 1.25rem;
}

.footer-brand .logo-icon {
  width: 44px;
  height: auto;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   24. WHATSAPP FLOATING BUTTON
   ═══════════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 14px 22px 14px 18px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.35), 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out), padding 0.35s var(--ease-out);
  overflow: hidden;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 16px 40px rgba(37, 211, 102, 0.45), 0 4px 16px rgba(0,0,0,0.3);
}

.whatsapp-float svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.whatsapp-float-label {
  white-space: nowrap;
}

/* Pulse ring */
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid rgba(37, 211, 102, 0.55);
  animation: wa-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: 0.7; }
  70%  { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}

@media (max-width: 600px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    padding: 14px;
    border-radius: 50%;
  }
  .whatsapp-float-label {
    display: none;
  }
}

/* ═══════════════════════════════════════════
   25. VIDEO SHOWCASE
   ═══════════════════════════════════════════ */
.showcase-image video {
  object-fit: cover;
  max-height: 560px;
}

/* ═══════════════════════════════════════════
   26. PARALLAX ELEMENTS
   ═══════════════════════════════════════════ */
[data-parallax] {
  will-change: transform;
}

/* ═══════════════════════════════════════════
   SECTION TRANSITION FADE OVERLAY
   ═══════════════════════════════════════════ */
.section-transition {
  position: relative;
}

.section-transition::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg-deep));
  pointer-events: none;
  z-index: 5;
}

/* Sticky scene (enfoque) */
.sticky-scene-wrapper {
  position: relative;
}

.sticky-scene {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  transition: background 0.8s var(--ease-out);
}

.sticky-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: opacity 0.8s var(--ease-out);
}

.sticky-bg-before {
  background: radial-gradient(ellipse at 20% 50%, rgba(255, 80, 80, 0.06) 0%, transparent 60%);
}

.sticky-bg-after {
  background: radial-gradient(ellipse at 80% 50%, rgba(141, 132, 255, 0.08) 0%, transparent 60%);
  opacity: 0;
}

.sticky-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.sticky-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.sticky-step {
  opacity: 0.25;
  transform: translateX(-20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.sticky-step.active {
  opacity: 1;
  transform: translateX(0);
}

/* ═══════════════════════════════════════════
   25. RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .interactive-grid { gap: 40px; }
  .faq-grid-custom { gap: 64px; }
  .h-card { flex: 0 0 clamp(300px, 70vw, 500px); }
}

@media (max-width: 900px) {
  :root { --section-padding: 90px 0; }

  .asymmetric-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .asymmetric-title {
    position: static;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .nav-mobile-toggle {
    display: flex;
  }

  .hero-stats {
    flex-direction: column;
    gap: 40px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 16px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .problem-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .interactive-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .faq-grid-custom {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .cta-actions {
    flex-direction: column;
    gap: 16px;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .footer-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .process-steps {
    padding: 0 24px;
  }

  .process-step {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 48px;
  }

  .process-step-num-wrap {
    display: block;
    grid-column: 1 !important;
    grid-row: 1 !important;
    text-align: left !important;
  }

  .process-step-num {
    margin: 0 !important;
  }

  .process-step-spacer {
    display: none;
  }

  .process-step-content {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }

  .process-step:nth-child(even) .process-step-content {
    grid-column: 1 !important;
  }

  .process-step:nth-child(even) .process-step-num-wrap {
    display: block;
    text-align: left !important;
  }

  .process-step:nth-child(odd) {
    transform: translateX(0);
  }

  .process-step:nth-child(even) {
    transform: translateX(0);
  }



  .whatsapp-widget,
  .dashboard-widget {
    transform: none !important;
  }

  /* Horizontal scroll → vertical stack with container padding and spacing */
  .h-scroll-wrapper {
    height: auto;
  }

  .h-scroll-sticky {
    position: relative;
    height: auto;
    flex-direction: column;
    gap: 24px;
    overflow: visible;
  }

  .h-scroll-track {
    flex-direction: column;
    padding: 0 var(--container-padding);
    gap: 32px;
    width: 100%;
  }

  .h-card {
    flex: 0 0 auto;
    width: 100%;
  }

  .h-scroll-header {
    position: relative;
    top: auto;
    margin-bottom: 48px;
  }

  .h-scroll-counter {
    display: none;
  }
}

@media (max-width: 600px) {
  :root { --container-padding: 0 20px; }

  .hero-content {
    padding: 0 20px;
  }

  .nav-cta {
    display: none;
  }
}

@media (max-width: 480px) {
  .dashboard-widget {
    padding: 20px;
  }

  .dash-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dash-metric {
    padding: 16px;
  }

  .hero-stats {
    gap: 24px;
  }

  .hero-title {
    font-size: clamp(2.0rem, 8vw, 3.2rem);
  }

  .section-title {
    font-size: clamp(1.6rem, 7vw, 2.6rem);
  }

  .whatsapp-widget {
    border-radius: var(--radius-sm);
  }

  .wa-chat-body {
    padding: 16px;
  }

  /* On mobile, hide video to save bandwidth — background stays dark */
  .hero-video-wrap {
    display: none;
  }
}

/* ── Video: fade in smoothly when ready ── */
@keyframes hero-video-fade {
  from { opacity: 0; }
  to   { opacity: 0.28; }
}

.hero-video {
  animation: hero-video-fade 2s var(--ease-out) forwards;
}

/* ── Reduce motion: pause & hide video ── */
@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }
  .hero-video-overlay {
    background: rgba(5,5,6,0.7);
  }
}
