/* ═══ 1. RESET & VARIABLES (SISTEMA DE TOKENS ANALÍTICOS) ════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: #f8fafc;
  color-scheme: light;
}

:root {
  /* Paleta "Clean SaaS Analítico" — Tema Claro */
  --bg-deep: #f8fafc;        /* Blanco frío base */
  --bg-dark: #eef2f7;        /* Azul-gris suave para secciones alternas */
  --bg-card: rgba(255, 255, 255, 0.82); /* Glassmorphism blanco */

  /* Acentos Técnicos — Más saturados para legibilidad en fondo claro */
  --cyan: #0ea5e9;           /* Sky-500 vibrante */
  --cyan-rgb: 14, 165, 233;
  --violet: #7c3aed;         /* Violet-600 profundo */
  --violet-rgb: 124, 58, 237;
  --gold: #d97706;           /* Amber-600 */
  --gold-rgb: 217, 119, 6;

  /* Bordes y Líneas */
  --border-glass: rgba(0, 0, 0, 0.08);
  --border-glass-hover: rgba(14, 165, 233, 0.3);
  --line-technical: rgba(0, 0, 0, 0.08);

  /* Texto */
  --text-light: #0f172a;     /* Slate-900 — texto principal sobre fondo claro */
  --text-muted: #64748b;     /* Slate-500 */
  --text-dark: #0f172a;

  /* Tipografías */
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Z-Index */
  --z-back: -10;
  --z-video: 1;
  --z-canvas: 2;
  --z-overlay: 3;
  --z-content: 10;
  --z-navbar: 100;

  /* Espaciado amplio */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;
}

/* ═══ 2. ESTILOS GLOBALES Y ACCESIBILIDAD ═════════════════════════ */
body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-light);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

section {
  position: relative;
  padding: var(--sp-24) 0;
  z-index: var(--z-content);
  border-bottom: 1px solid var(--line-technical);
}

@media (min-width: 1024px) {
  section { padding: var(--sp-32) 0; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--sp-8);
  background: var(--text-light);
  color: var(--bg-deep);
  padding: var(--sp-3) var(--sp-6);
  border-radius: 0 0 0.5rem 0.5rem;
  font-weight: 600;
  z-index: 99999;
  text-decoration: none;
  transition: top 200ms ease;
  font-family: var(--font-display);
  border: 1px solid var(--cyan);
}

.skip-link:focus {
  top: 0;
}

/* ═══ 3. EFECTO LIQUID GLASS (GLASSMORPHISM BLANCO) ════════════════ */
.liquid-glass {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
  transition: border-color 400ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 400ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06),
              0 1px 4px rgba(0, 0, 0, 0.04),
              inset 0 1px 1px rgba(255, 255, 255, 1);
}

.liquid-glass:hover {
  border-color: var(--border-glass-hover);
  box-shadow: 0 20px 50px rgba(var(--cyan-rgb), 0.08),
              0 8px 24px rgba(0, 0, 0, 0.08),
              inset 0 1px 2px rgba(255, 255, 255, 1);
  transform: translateY(-2px);
}

.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.75) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ═══ 4. BOTONES Y COMPONENTES REUTILIZABLES ══════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-8);
  border-radius: 0.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: all 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: var(--text-light);
  color: #f8fafc;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #1e293b;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.3);
}

.btn-ghost {
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--text-muted);
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-light);
  border-color: rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

/* Encabezados analíticos */
.section-header {
  margin-bottom: var(--sp-16);
  max-width: 800px;
}

.section-header.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Pill eyebrow */
.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: var(--sp-4);
  display: inline-block;
  background: rgba(var(--cyan-rgb), 0.08);
  border: 1px solid rgba(var(--cyan-rgb), 0.2);
  border-radius: 100px;
  padding: 4px 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: var(--sp-4);
  color: var(--text-light);
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 650px;
  font-weight: 400;
}

.section-header.centered .section-subtitle {
  margin: 0 auto;
}

/* ═══ 5. NAVBAR ═══════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-navbar);
  padding: var(--sp-6) 0;
  transition: all 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
}

.navbar-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  border-radius: 0.75rem;
  padding: var(--sp-3) var(--sp-6);
  border: 1px solid transparent;
  transition: all 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 80px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: none;
  gap: var(--sp-8);
  list-style: none;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 250ms ease;
}

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

#navbar.scrolled {
  padding: var(--sp-4) 0;
}

#navbar.scrolled .navbar-inner {
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* ═══ 6. VIDEO HERO — FULLSCREEN SCROLL SCRUB ══════════════════════ */
#video-hero {
  position: relative;
  height: 400vh;
  background: #000;
  padding: 0;
  border-bottom: none;
}

.video-hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  width: 100%;
  overflow: hidden;
}

/* ── Hero: video desktop / imagen mobile ── */
.hero-img-mobile {
  display: none;
}

.hero-mobile-card {
  display: none;
}

@media (max-width: 767px) {
  #video-hero {
    height: 100svh;
  }
  .video-hero-sticky {
    position: relative;
    height: 100svh;
  }
  .hero-video-desktop {
    display: none;
  }
  .hero-img-mobile {
    display: block;
    position: absolute;
    inset: 0;
    background: url('Imagenes palier/Snapshot.PNG') center center / cover no-repeat;
  }

  /* Card glassmorphism mobile */
  .hero-mobile-card {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    position: absolute;
    bottom: var(--sp-10);
    left: var(--sp-4);
    right: var(--sp-4);
    z-index: 10;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 1.25rem;
    padding: var(--sp-6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18),
                inset 0 1px 1px rgba(255, 255, 255, 0.6);
  }

  .hero-mobile-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
  }

  .hero-mobile-title {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin: 0;
    text-shadow: 0 1px 8px rgba(0,0,0,0.25);
  }

  .hero-mobile-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
  }

  .hero-mobile-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .hero-mobile-chip svg {
    width: 0.85rem;
    height: 0.85rem;
    flex-shrink: 0;
  }
}

#scrub-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  pointer-events: none;
}

@media (max-width: 767px) {
  #scrub-video {
    object-position: 60% center;
  }
}

/* Gradient superior — navbar legible */
.video-hero-gradient-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 180px;
  background: linear-gradient(
    to bottom,
    rgba(248, 250, 252, 0.55) 0%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 5;
}

.video-hero-gradient-bottom { display: none; }

/* ═══ 7. SECCIÓN EL PROBLEMA ══════════════════════════════════════ */
#problema {
  min-height: 75vh;
  display: flex;
  align-items: center;
  position: relative;
  background-color: var(--bg-deep);
}

.problema-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.problema-text {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  font-weight: 300;
  line-height: 1.7;
  text-align: center;
  color: var(--text-light);
  letter-spacing: -0.01em;
}

.problema-text span {
  opacity: 0.15;
  transition: opacity 300ms ease, color 300ms ease;
  margin-right: 0.18em;
  display: inline-block;
}

/* ═══ 8. CONTENEDOR INTERACTIVO Y SECCIONES DE CONTENIDO ═══════════ */
#interactive-body {
  position: relative;
  width: 100%;
}

#descripcion {
  padding-bottom: var(--sp-24);
  background-color: var(--bg-deep);
}

/* Distribución en dos columnas (Split) */
.descripcion-split {
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
}

@media (min-width: 992px) {
  .descripcion-split {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--sp-16);
  }
}

/* Columna Izquierda: Visor 3D Sticky */
.descripcion-visual-side {
  width: 100%;
  position: relative;
  height: 450px;
}

@media (min-width: 992px) {
  .descripcion-visual-side {
    width: 48%;
    position: sticky;
    top: 130px;
    height: 480px;
  }
}

.descripcion-sticky-visual {
  width: 100%;
  height: 450px;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  overflow: visible;
}

@media (min-width: 992px) {
  .descripcion-sticky-visual {
    height: 480px;
  }
}

#benefits-3d-canvas {
  width: 100%;
  flex: 1;
  display: block;
}

/* Silueta de Edificio Fallback CSS 3D */
.benefits-3d-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 4;
}

.fallback-building {
  position: relative;
  width: 200px;
  height: 300px;
  transform-style: preserve-3d;
  transform: rotateX(-20deg) rotateY(-35deg);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  animation: floatBuilding 4s ease-in-out infinite alternate;
}

@keyframes floatBuilding {
  0% { transform: translateY(0px) rotateX(-20deg) rotateY(-35deg); }
  100% { transform: translateY(-12px) rotateX(-20deg) rotateY(-35deg); }
}

.fallback-building.spin-active {
  transform: translateY(-6px) rotateX(-20deg) rotateY(325deg);
  animation: none;
}

.building-block {
  position: absolute;
  transform-style: preserve-3d;
  bottom: 20px;
}

/* Bordes del edificio 3D adaptados a tema claro */
.building-block .face {
  position: absolute;
  border: 1.2px solid rgba(14, 165, 233, 0.5);
  background: rgba(14, 165, 233, 0.03);
  box-shadow: inset 0 0 10px rgba(14, 165, 233, 0.04);
}

.building-block .face.front {
  width: var(--width);
  height: 100%;
  transform: rotateY(0deg) translateZ(calc(var(--depth) / 2));
}

.building-block .face.back {
  width: var(--width);
  height: 100%;
  transform: rotateY(180deg) translateZ(calc(var(--depth) / 2));
}

.building-block .face.left {
  width: var(--depth);
  height: 100%;
  left: 50%;
  margin-left: calc(var(--depth) / -2);
  transform: rotateY(-90deg) translateZ(calc(var(--width) / 2));
}

.building-block .face.right {
  width: var(--depth);
  height: 100%;
  left: 50%;
  margin-left: calc(var(--depth) / -2);
  transform: rotateY(90deg) translateZ(calc(var(--width) / 2));
}

.building-block .face.top {
  width: var(--width);
  height: var(--depth);
  top: 50%;
  margin-top: calc(var(--depth) / -2);
  transform: rotateX(90deg) translateZ(calc(var(--height) / 2));
}

.main-tower {
  --width: 70px;
  --height: 260px;
  --depth: 70px;
  left: 65px;
  transform: translateZ(0);
}

.wing-left {
  --width: 45px;
  --height: 170px;
  --depth: 45px;
  left: 20px;
  transform: translateZ(20px);
}

.wing-right {
  --width: 45px;
  --height: 200px;
  --depth: 45px;
  left: 135px;
  transform: translateZ(-20px);
}

/* ═══ App Preview + Stats Strip (reemplaza el 3D) ════════════════ */
.app-preview-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  width: 100%;
  height: 100%;
}

.app-preview-frame {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 0.875rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12),
              0 8px 24px rgba(0, 0, 0, 0.08);
  min-height: 0;
}

.app-preview-bar {
  background: #f1f5f9;
  padding: var(--sp-2) var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.app-preview-url-bar {
  flex: 1;
  text-align: center;
  font-size: 0.625rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  background: rgba(0, 0, 0, 0.04);
  padding: 2px 8px;
  border-radius: 3px;
  max-width: 210px;
  margin: 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.07);
}

.app-preview-screenshot {
  width: 100%;
  flex: 1;
  object-fit: cover;
  object-position: top left;
  display: block;
}

.platform-stats {
  display: flex;
  gap: var(--sp-3);
  flex-shrink: 0;
}

.platform-stat {
  flex: 1;
  padding: var(--sp-4) var(--sp-3);
  text-align: center;
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.platform-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: -0.02em;
  line-height: 1;
}

.platform-stat-label {
  font-size: 0.625rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Columna Derecha: Tarjetas de Beneficios */
.descripcion-cards-side {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

@media (min-width: 992px) {
  .descripcion-cards-side {
    width: 52%;
    padding-bottom: var(--sp-12);
  }
}

/* Tarjetas de Beneficios */
.benefit-scroll-card {
  padding: var(--sp-8) var(--sp-10);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06),
              0 1px 4px rgba(0, 0, 0, 0.04),
              inset 0 1px 1px rgba(255, 255, 255, 1);
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: border-color 450ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 450ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 450ms cubic-bezier(0.16, 1, 0.3, 1);
}

.benefit-scroll-card:hover {
  border-color: var(--border-glass-hover);
  box-shadow: 0 24px 56px rgba(var(--cyan-rgb), 0.1),
              0 12px 28px rgba(0, 0, 0, 0.08),
              inset 0 1px 2px rgba(255, 255, 255, 1);
  transform: translateY(-4px) rotateX(2.5deg) rotateY(-2.5deg);
}

.benefit-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--cyan);
  opacity: 0.9;
  transform: translateZ(20px);
}

.benefit-scroll-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-light);
  transform: translateZ(15px);
}

.benefit-scroll-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  transform: translateZ(10px);
}

/* ═══ 8.5. TARJETAS DE MÉTRICAS FINANCIERAS ═══════════════════════ */
#metricas-financieras {
  background-color: var(--bg-dark);
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  margin-top: var(--sp-10);
}

@media (min-width: 768px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.metric-card {
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  min-height: 250px;
}

.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-3);
}

.metric-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-trend {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.metric-trend.positive {
  background: rgba(var(--cyan-rgb), 0.10);
  color: var(--cyan);
  border: 1px solid rgba(var(--cyan-rgb), 0.25);
}

.metric-trend.neutral {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-muted);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.metric-badge {
  font-size: 0.6875rem;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.metric-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: -0.02em;
  margin-top: auto;
}

.metric-visual {
  width: 100%;
  height: 40px;
  margin: var(--sp-2) 0;
  display: flex;
  align-items: flex-end;
}

.metric-chart-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.metric-footer {
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--line-technical);
  padding-top: var(--sp-3);
  margin-top: auto;
}

.metric-footer strong {
  color: var(--text-light);
}

/* ═══ 9. MÓDULOS DE FUNCIONALIDADES ═══════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  margin-top: var(--sp-12);
}

@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  padding: var(--sp-8);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
  transition: all 300ms ease;
}

.feature-card:hover .feature-icon-wrapper {
  color: var(--cyan);
  border-color: rgba(var(--cyan-rgb), 0.3);
  background: rgba(var(--cyan-rgb), 0.08);
}

.feature-icon-wrapper svg {
  width: 20px;
  height: 20px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--sp-2);
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ═══ 10. BANNER: PLATAFORMA A MEDIDA ═════════════════════════════ */
#custom-banner {
  background: linear-gradient(
    135deg,
    rgba(var(--cyan-rgb), 0.05) 0%,
    rgba(var(--violet-rgb), 0.05) 100%
  );
  border-top: 1px solid rgba(var(--cyan-rgb), 0.12);
  border-bottom: 1px solid rgba(var(--violet-rgb), 0.12);
  padding: var(--sp-10) 0;
}

.custom-banner-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  flex-wrap: wrap;
}

.custom-banner-text {
  flex-shrink: 0;
}

.custom-banner-headline {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-top: var(--sp-2);
  max-width: 28ch;
  line-height: 1.3;
}

.custom-banner-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.custom-chip {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: border-color 300ms ease, box-shadow 300ms ease, transform 300ms ease;
}

.custom-chip:hover {
  border-color: rgba(var(--cyan-rgb), 0.3);
  box-shadow: 0 4px 16px rgba(var(--cyan-rgb), 0.1);
  transform: translateY(-1px);
}

.custom-chip svg {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--cyan);
  flex-shrink: 0;
}

.custom-chip--cta {
  text-decoration: none;
  background: rgba(var(--cyan-rgb), 0.08);
  border-color: rgba(var(--cyan-rgb), 0.25);
  color: var(--cyan);
  font-weight: 700;
}

.custom-chip--cta:hover {
  background: rgba(var(--cyan-rgb), 0.15);
  border-color: rgba(var(--cyan-rgb), 0.45);
  color: var(--cyan);
}

.custom-chip--cta svg {
  color: var(--cyan);
}

@media (max-width: 640px) {
  .custom-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-6);
  }
  .custom-banner-headline {
    max-width: none;
  }
}

/* ═══ 11. SIMULADOR DE WHATSAPP ═══════════════════════════════════ */
#whatsapp-simulador {
  background-color: var(--bg-dark);
}

.whatsapp-layout {
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
  align-items: center;
}

@media (min-width: 1024px) {
  .whatsapp-layout {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.whatsapp-text-side {
  flex: 1.1;
  max-width: 600px;
}

.whatsapp-options-menu {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}

.whatsapp-option-btn {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.10);
  padding: var(--sp-4) var(--sp-6);
  border-radius: 0.5rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  transition: all 300ms ease;
}

.whatsapp-option-btn span {
  font-size: 1.15rem;
}

.whatsapp-option-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.16);
  color: var(--text-light);
}

.whatsapp-option-btn.active {
  background: rgba(var(--cyan-rgb), 0.07);
  border-color: var(--cyan);
  color: var(--text-light);
}

.whatsapp-phone-side {
  flex: 0.9;
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Smartphone Mockup — conserva apariencia real de dispositivo oscuro */
.smartphone-mockup {
  width: 310px;
  height: 560px;
  background: #000;
  border: 8px solid #1e293b;
  border-radius: 2.5rem;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25),
              0 16px 32px rgba(0, 0, 0, 0.15),
              inset 0 0 8px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
}

.smartphone-mockup::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 18px;
  background: #000;
  border-radius: 9px;
  z-index: 100;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #0b141a;
  display: flex;
  flex-direction: column;
  padding-top: 10px;
}

/* Header del Chat */
.chat-header {
  background: #1f2c34;
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--cyan);
  font-size: 1rem;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #e9edef;
}

.user-status {
  font-size: 0.625rem;
  color: var(--cyan);
}

/* Mensajes del Chat */
.chat-body {
  flex: 1;
  padding: var(--sp-3);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.message {
  max-width: 85%;
  padding: var(--sp-3) var(--sp-3) var(--sp-2);
  border-radius: 0.625rem;
  font-size: 0.75rem;
  line-height: 1.45;
  position: relative;
  animation: messageFadeIn 300ms ease forwards;
}

@keyframes messageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.message.outgoing {
  background: #005c4b;
  color: #e9edef;
  align-self: flex-end;
  border-top-right-radius: 0;
}

.message.incoming {
  background: #202c33;
  color: #e9edef;
  align-self: flex-start;
  border-top-left-radius: 0;
}

.message-time {
  display: block;
  font-size: 0.5625rem;
  color: rgba(255, 255, 255, 0.35);
  text-align: right;
  margin-top: 4px;
}

.message-image {
  width: 100%;
  border-radius: 0.375rem;
  margin-bottom: var(--sp-2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: block;
}

.message-actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  margin-top: var(--sp-2);
}

.chat-action-btn {
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.25);
  color: var(--cyan);
  padding: 4px 10px;
  border-radius: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: all 200ms ease;
}

.chat-action-btn:hover {
  background: var(--cyan);
  color: #fff;
}

.typing-indicator {
  display: flex;
  gap: 3px;
  padding: 6px 10px;
  background: #202c33;
  border-radius: 0.625rem;
  align-self: flex-start;
  margin-bottom: var(--sp-1);
  border-top-left-radius: 0;
}

.typing-indicator span {
  width: 5px;
  height: 5px;
  background-color: #94a3b8;
  border-radius: 50%;
  display: inline-block;
  animation: typing 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

.chat-footer {
  background: #1f2c34;
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.chat-input-placeholder {
  flex: 1;
  background: #2a3942;
  border-radius: 15px;
  padding: 6px 12px;
  font-size: 0.75rem;
  color: #94a3b8;
}

.chat-send-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--cyan);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-send-btn svg {
  width: 14px;
  height: 14px;
  margin-left: 2px;
}

/* ═══ 11. DASHBOARD VISUALIZER CON HOTSPOTS ════════════════════════ */
.role-tab-selector {
  display: flex;
  justify-content: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-12);
}

.role-tab-btn {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.10);
  padding: var(--sp-2) var(--sp-6);
  border-radius: 0.375rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 300ms ease;
}

.role-tab-btn:hover {
  color: var(--text-light);
  border-color: rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.95);
}

.role-tab-btn.active {
  background: var(--text-light);
  border-color: transparent;
  color: #f8fafc;
}

/* Dashboard Mockup */
.dashboard-window {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.window-bar {
  background: #f1f5f9;
  padding: var(--sp-3) var(--sp-6);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.window-dots span:nth-child(1) { background-color: #ef4444; }
.window-dots span:nth-child(2) { background-color: #f59e0b; }
.window-dots span:nth-child(3) { background-color: #10b981; }

.window-address {
  flex: 1;
  text-align: center;
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  background: rgba(0, 0, 0, 0.04);
  padding: 3px 0;
  border-radius: 4px;
  max-width: 280px;
  margin: 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.07);
}

.window-content {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: visible;
  background-color: #e2e8f0;
}

.dashboard-view {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 400ms ease, visibility 400ms ease;
  z-index: 1;
}

.dashboard-view.active {
  opacity: 1;
  visibility: visible;
  z-index: 5;
}

.dashboard-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hotspots */
.hotspot {
  position: absolute;
  width: 24px;
  height: 24px;
  cursor: pointer;
  z-index: 20;
}

.hotspot-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid var(--cyan);
  box-shadow: 0 0 12px rgba(var(--cyan-rgb), 0.6);
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1), background-color 250ms ease;
}

.hotspot:hover .hotspot-pulse {
  transform: scale(1.3);
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(var(--cyan-rgb), 0.9);
}

.hotspot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(var(--cyan-rgb), 0.5);
  animation: hotspotPulse 2.2s infinite ease-out;
}

@keyframes hotspotPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Globos glassmorphing de hotspot — ahora en blanco */
.hotspot-tooltip {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 260px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(var(--cyan-rgb), 0.2);
  border-radius: 0.75rem;
  padding: var(--sp-4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14),
              0 4px 12px rgba(0, 0, 0, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 1);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-light);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1000;
  transition: opacity 300ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 300ms cubic-bezier(0.16, 1, 0.3, 1),
              visibility 300ms ease;
}

.hotspot-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.97);
}

.hotspot-tooltip.tooltip-left {
  left: 0;
  transform: translateY(10px);
}

.hotspot-tooltip.tooltip-left::after {
  left: 12px;
  transform: none;
}

.hotspot-tooltip.tooltip-right {
  left: auto;
  right: 0;
  transform: translateY(10px);
}

.hotspot-tooltip.tooltip-right::after {
  left: auto;
  right: 12px;
  transform: none;
}

.hotspot:hover .hotspot-tooltip {
  opacity: 1;
  visibility: visible;
}

.hotspot:hover .hotspot-tooltip:not(.tooltip-left):not(.tooltip-right) {
  transform: translateX(-50%) translateY(0);
}

.hotspot:hover .hotspot-tooltip.tooltip-left,
.hotspot:hover .hotspot-tooltip.tooltip-right {
  transform: translateY(0);
}

/* ═══ 12. SECCIÓN CTA FINAL CON PARTÍCULAS ════════════════════════ */
#cta-seccion {
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
  padding: var(--sp-24) 0;
  border-bottom: none;
}

#cta-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: var(--z-canvas);
}

.cta-overlay {
  position: absolute;
  inset: 0;
  z-index: var(--z-overlay);
  background: linear-gradient(
    to bottom,
    var(--bg-deep) 0%,
    rgba(248, 250, 252, 0.15) 50%,
    var(--bg-deep) 100%
  );
}

.cta-container {
  position: relative;
  z-index: var(--z-content);
  display: flex;
  justify-content: center;
}

.cta-content {
  max-width: 750px;
  padding: var(--sp-12) var(--sp-10);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-6);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.10),
              0 8px 24px rgba(0, 0, 0, 0.06);
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-light);
}

.cta-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 550px;
}

.cta-buttons {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  justify-content: center;
}

/* ═══ 13. PIE DE PÁGINA (FOOTER) ══════════════════════════════════ */
#footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: var(--sp-16) 0 var(--sp-10);
  color: var(--text-muted);
  font-size: 0.875rem;
  position: relative;
  z-index: var(--z-content);
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-10);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-brand-side {
  max-width: 350px;
}

.footer-logo {
  text-decoration: none;
  display: inline-block;
  margin-bottom: var(--sp-3);
}

.footer-logo-img {
  height: 56px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 200ms ease;
}

.footer-nav a:hover {
  color: var(--text-light);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding-top: var(--sp-8);
  font-size: 0.75rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ═══ 13.5. SCROLL HINT INDICATOR ════════════════════════════════ */
.scroll-hint {
  position: absolute;
  bottom: 3.5rem;
  right: 2.25rem;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2rem;
  padding: 0.6rem 0.85rem 0.75rem;
}

.scroll-hint-label {
  font-family: var(--font-display);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-right: -0.25em; /* compensa trailing space del letter-spacing */
}

.scroll-hint-arrow {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.8);
  animation: scrollArrowBounce 1.8s ease-in-out infinite;
}

@keyframes scrollArrowBounce {
  0%, 100% { transform: translateY(0);   opacity: 0.8; }
  50%       { transform: translateY(5px); opacity: 1;   }
}

/* ═══ 14. KEYFRAMES GLOBALES ══════════════════════════════════════ */
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

@keyframes typing {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ═══ 15. PREFERS REDUCED MOTION ══════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }

  .scroll-indicator {
    animation: none !important;
  }

  .hotspot-pulse::after {
    animation: none !important;
  }
}
