/* ==========================================================================
   PRODIGY — ENTERPRISE AI (APPLE-STYLE CANVAS SCROLLYTELLING)
   Hierarchical Visual Architecture: Canvas is the Unobstructed Protagonist
   ========================================================================== */

:root {
  --font-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Newsreader', Georgia, Cambria, 'Times New Roman', Times, serif;

  /* PALETA CORPORATIVA OFICIAL PRODIGY */
  --color-purple-primary: #551A8B;
  --color-purple-hover: #6a24aa;
  --color-purple-deep: #0c0517;
  --color-purple-dark: #190a2e;
  --color-purple-light: #7b2cbf;
  --color-purple-glow: rgba(85, 26, 139, 0.45);
  --color-purple-border: rgba(123, 44, 191, 0.28);
  --color-purple-glass: rgba(18, 9, 32, 0.72);

  --color-lime-accent: #C8FCA9;
  --color-lime-glow: rgba(200, 252, 169, 0.45);
  --color-lime-subtle: rgba(200, 252, 169, 0.12);
  --color-lime-border: rgba(200, 252, 169, 0.35);

  --color-orange-warm: #F4A734;
  --color-orange-glow: rgba(244, 167, 52, 0.45);

  --color-text-pure: #FFFFFF;
  --color-text-main: #E2E8F0;
  --color-text-muted: #94A3B8;
  --color-text-dim: #64748B;

  --color-ink: #111111;
  --color-dark: #181a20;
  --color-body: #343944;
  --color-muted: #646b7a;
  --color-line: rgba(17, 17, 17, 0.12);
  --color-line-subtle: rgba(17, 17, 17, 0.06);

  --glass-card-bg: rgba(255, 255, 255, 0.76);
  --glass-card-bg-hover: rgba(255, 255, 255, 0.92);
  --glass-card-border: rgba(255, 255, 255, 0.92);
  --glass-card-border-alt: rgba(216, 222, 234, 0.75);
  --glass-card-shadow: 0 16px 42px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.02);

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Reset & Foundation */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #08080c;
  color: var(--color-body);
}

body {
  font-family: var(--font-sans);
  letter-spacing: 0;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  background-color: #08080c;
}

/* Focus Management for AA Accessibility */
a,
button,
input,
select {
  color: inherit;
  font-family: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   1. CANVAS VIEWPORT (PROTAGONISTA VISUAL EN z-index: 1)
   Fijo/Sticky de pantalla completa, centrado y libre de obstrucciones
   ========================================================================== */
.canvas-viewport {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  /* Dark base so AI video frames (dark backgrounds) feel seamless */
  background-color: #05050a;
}

#scrolly-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

/* Fade sutil solo en el tercio izquierdo (0% → 44%) — centro y derecha libres */
.canvas-left-fade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  /* Más ajustado: opacidad máxima solo hasta ~18%, transparente a partir del 44% */
  background: linear-gradient(90deg,
      rgba(5, 5, 10, 0.92) 0%,
      rgba(5, 5, 10, 0.72) 18%,
      rgba(5, 5, 10, 0.18) 34%,
      transparent 44%);
}

/* Barra de carga discreta de fotogramas */
.canvas-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 10;
  background: transparent;
  transition: opacity 0.5s ease;
}

.canvas-loader.is-loaded {
  opacity: 0;
  pointer-events: none;
}

.loader-bar {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.04);
}

.loader-progress {
  width: 0%;
  height: 100%;
  background: var(--color-ink);
  transition: width 0.15s ease;
}

/* ==========================================================================
   HEADER DE NAVEGACIÓN FIJO
   ========================================================================== */
.hero-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 70;
  padding: 16px clamp(20px, 4.5vw, 70px);
  pointer-events: none;
  transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.hero-header.is-scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(10, 6, 20, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-purple-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(85, 26, 139, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  pointer-events: auto;
}

/* ===== BLOQUE 1 – LOGO REEMPLAZADO ===== */
/* ===== BLOQUE 1 – LOGO REEMPLAZADO ===== */
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 4px 8px;
  transition: all 0.25s var(--ease-editorial);
}

.brand:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 10px rgba(200, 252, 169, 0.4));
}

.brand-logo {
  height: 38px !important;
  width: auto !important;
  max-width: 175px !important;
  object-fit: contain !important;
  display: block !important;
}

/* ===== FIN BLOQUE 1 ===== */

/* ===== FIN BLOQUE 1 ===== */

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 28px);
  padding: 8px 22px;
  background: rgba(12, 10, 20, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(123, 44, 191, 0.32);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.25s var(--ease-editorial), box-shadow 0.25s var(--ease-editorial);
}

.nav-menu:hover {
  border-color: rgba(123, 44, 191, 0.45);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(85, 26, 139, 0.25);
}

.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-text-main);
  transition: all 0.25s var(--ease-editorial);
  position: relative;
  padding: 4px 2px;
  letter-spacing: -0.01em;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text-pure);
  font-weight: 600;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-lime-accent) 0%, var(--color-purple-light) 100%);
  border-radius: 2px;
  transition: width 0.25s var(--ease-editorial);
  box-shadow: 0 0 8px var(--color-lime-glow);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-pure);
  background: linear-gradient(135deg, var(--color-purple-primary) 0%, #6a24aa 100%);
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(200, 252, 169, 0.35);
  box-shadow: 0 4px 14px rgba(85, 26, 139, 0.35);
  transition: all 0.25s var(--ease-editorial);
}

.btn-header .btn-arrow {
  width: 14px;
  height: 14px;
  color: var(--color-lime-accent);
  transition: transform 0.25s var(--ease-editorial);
}

.btn-header:hover {
  background: linear-gradient(135deg, #6420a3 0%, #7b2cbf 100%);
  border-color: var(--color-lime-accent);
  box-shadow: 0 4px 20px var(--color-lime-glow), 0 0 15px rgba(85, 26, 139, 0.5);
  color: var(--color-lime-accent);
  transform: translateY(-1px);
}

.btn-header:hover .btn-arrow {
  transform: translateX(3px);
}

/* Elementos móviles ocultos por defecto en escritorio (> 768px) */
.mobile-menu-btn,
.nav-mobile-cta {
  display: none;
}

/* ==========================================================================
   2. CONTENEDOR SCROLLYTELLING (CAPAS EN EL TERCIO IZQUIERDO)
   z-index: 5, pointer-events: none general para libertad de interacción
   ========================================================================== */
.scrolly-story {
  position: relative;
  z-index: 5;
  width: 100%;
  pointer-events: none;
}

.story-chapter {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(85px, 11vh, 120px) clamp(20px, 4.5vw, 70px);
  pointer-events: none;
  /* Inicia invisible — JS controla opacity vía inline styles en tiempo real */
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  will-change: opacity, transform;
}

/* Clase de respaldo para capítulos sin JS o con reduced-motion */
.story-chapter.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
}

.chapter-content {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  pointer-events: none;
}

/* ==========================================================================
   PORTADA / HERO CHAPTER
   ========================================================================== */
.hero-chapter {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.editorial-panel {
  width: 100%;
  max-width: 520px;
  text-align: left;
  pointer-events: auto;
  /* Glassmorphism oscuro y profundo: base casi negra con gradiente sutil al morado #551A8B */
  background: linear-gradient(140deg, rgba(8, 6, 16, 0.92) 0%, rgba(26, 10, 48, 0.88) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(123, 44, 191, 0.35);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(85, 26, 139, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.editorial-panel:hover {
  border-color: rgba(123, 44, 191, 0.5);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.8), 0 0 45px rgba(85, 26, 139, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.hero-kicker {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 6px 12px 7px;
  background: rgba(200, 252, 169, 0.07);
  border: 1px solid rgba(200, 252, 169, 0.25);
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.kicker-row-top {
  display: flex;
  align-items: center;
  gap: 7px;
}

.kicker-label-top {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-lime-accent);
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px var(--color-lime-glow);
}

.kicker-divider {
  width: 100%;
  border-top: 1px solid rgba(200, 252, 169, 0.2);
  margin: 3px 0;
}

.kicker-row-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.kicker-label-bottom {
  font-size: 9.5px;
  font-weight: 500;
  color: rgba(220, 228, 240, 0.72);
  letter-spacing: 0.12em;
}

.kicker-pulse-dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  background-color: var(--color-lime-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-lime-accent);
  animation: kickerPulse 1.8s infinite ease-in-out;
}

@keyframes kickerPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }

  50% {
    transform: scale(1.35);
    opacity: 1;
    box-shadow: 0 0 14px var(--color-lime-accent);
  }
}

/* Legacy: mantener compatibilidad si existe .kicker-label */
.kicker-label {
  color: var(--color-lime-accent);
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(34px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--color-text-pure);
  margin-bottom: 10px;
}

.title-primary {
  display: block;
  color: var(--color-text-pure);
}

.title-highlight {
  display: block;
  color: var(--color-lime-accent);
  text-shadow: 0 0 24px rgba(200, 252, 169, 0.4);
  margin-top: 3px;
}

.hero-description {
  max-width: 480px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--color-text-main);
  margin-bottom: 10px;
  font-weight: 400;
}

/* ===== BLOQUE 2 – AXIOMA REEMPLAZADO ===== */
.hero-axiom {
  max-width: 480px;
  margin: 16px 0 18px 0;
  /* Más aire arriba y abajo para que respire */
  padding: 10px 16px;
  background: rgba(85, 26, 139, 0.18);
  /* Tinte morado sutil */
  border-left: 3px solid var(--color-lime-accent);
  /* Línea verde lima corporativa */
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.axiom-text {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--color-text-main);
}

.axiom-text strong {
  color: var(--color-lime-accent);
  font-weight: 700;
}

/* ===== FIN BLOQUE 2 ===== */

.hero-cta-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  margin-bottom: 14px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-purple-primary);
  color: var(--color-text-pure);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(200, 252, 169, 0.3);
  box-shadow: 0 4px 16px rgba(85, 26, 139, 0.45);
  transition: all 0.28s var(--ease-editorial);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-primary .btn-arrow {
  width: 14px;
  height: 14px;
  color: var(--color-lime-accent);
  transition: transform 0.25s var(--ease-editorial);
}

.btn-primary:hover {
  background-color: var(--color-purple-hover);
  border-color: var(--color-lime-accent);
  box-shadow: 0 0 25px var(--color-lime-glow), 0 4px 20px rgba(85, 26, 139, 0.6);
  color: var(--color-lime-accent);
  transform: translateY(-2px);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-video {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px 6px;
  text-align: left;
  white-space: nowrap;
  flex-shrink: 0;
}

.play-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(200, 252, 169, 0.4);
  background: rgba(85, 26, 139, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-lime-accent);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.25s var(--ease-editorial);
  flex-shrink: 0;
}

.play-circle svg {
  width: 11px;
  height: 11px;
  margin-left: 2px;
}

.btn-video:hover .play-circle {
  background: var(--color-lime-accent);
  color: var(--color-purple-deep);
  border-color: var(--color-lime-accent);
  box-shadow: 0 0 16px var(--color-lime-glow);
  transform: scale(1.08);
}

.video-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-text-pure);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(200, 252, 169, 0.4);
  white-space: nowrap;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.btn-video:hover .video-title {
  color: var(--color-lime-accent);
  text-decoration-color: var(--color-lime-accent);
}

.video-sub {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* Métricas con vida continua y radar pulse */
.hero-metrics-container {
  padding-top: clamp(14px, 2vh, 18px);
  border-top: 1px solid rgba(123, 44, 191, 0.28);
  margin-bottom: 20px;
}

.metrics-live-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.live-radar-dot {
  position: relative;
  width: 10px;
  height: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.radar-ping {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--color-lime-accent);
  animation: radarPing 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.radar-core {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-lime-accent);
  box-shadow: 0 0 8px var(--color-lime-accent);
}

@keyframes radarPing {
  0% {
    transform: scale(0.9);
    opacity: 0.9;
  }

  75%,
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

.metrics-live-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-lime-accent);
  text-transform: uppercase;
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 16px);
}

.metric-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.28s var(--ease-editorial);
}

.metric-item:hover,
.metric-item:focus-visible {
  background: rgba(85, 26, 139, 0.16);
  border-color: rgba(200, 252, 169, 0.28);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 16px rgba(85, 26, 139, 0.3);
  transform: translateY(-3px);
  outline: none;
}

/* Micro-icono corporativo SVG sobre cada número */
.metric-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(200, 252, 169, 0.08);
  border: 1px solid rgba(200, 252, 169, 0.22);
  color: var(--color-lime-accent);
  margin-bottom: 6px;
  transition: all 0.25s var(--ease-editorial);
}

.metric-icon {
  width: 15px;
  height: 15px;
  color: var(--color-lime-accent);
  transition: transform 0.25s var(--ease-editorial);
}

.metric-item:hover .metric-icon-wrap,
.metric-item:focus-visible .metric-icon-wrap {
  background: rgba(200, 252, 169, 0.22);
  border-color: var(--color-lime-accent);
  box-shadow: 0 0 12px var(--color-lime-glow);
  transform: translateY(-2px) scale(1.06);
}

.metric-value {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text-pure);
  line-height: 1;
  display: inline-block;
  /* Respiración continua sutil */
  animation: metricBreathe 3.5s infinite ease-in-out;
  transition: color 0.25s ease, text-shadow 0.25s ease, transform 0.2s ease;
}

@keyframes metricBreathe {

  0%,
  100% {
    text-shadow: 0 0 0 rgba(200, 252, 169, 0);
    transform: scale(1);
  }

  50% {
    text-shadow: 0 0 14px rgba(200, 252, 169, 0.45);
    transform: scale(1.02);
  }
}

/* Micro-elevación luminosa (glow morado/menta) en hover */
.metric-item:hover .metric-value,
.metric-item:focus-visible .metric-value {
  color: var(--color-lime-accent);
  text-shadow: 0 0 16px var(--color-lime-glow), 0 0 28px rgba(85, 26, 139, 0.6);
  transform: translateY(-1px) scale(1.04);
}

.metric-label {
  font-size: 11.5px;
  color: var(--color-text-muted);
  margin-top: 5px;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.metric-item:hover .metric-label,
.metric-item:focus-visible .metric-label {
  color: var(--color-text-main);
}

/* Tooltip o micro-texto flotante interactivo */
.metric-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: rgba(14, 8, 28, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(200, 252, 169, 0.35);
  border-radius: var(--radius-sm);
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.015em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 14px rgba(85, 26, 139, 0.35);
  transition: opacity 0.22s var(--ease-editorial), transform 0.22s var(--ease-editorial);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.metric-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px;
  border-style: solid;
  border-color: rgba(14, 8, 28, 0.95) transparent transparent transparent;
}

.tooltip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-lime-accent);
  box-shadow: 0 0 6px var(--color-lime-accent);
  flex-shrink: 0;
}

.metric-item:hover .metric-tooltip,
.metric-item:focus-visible .metric-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Ajuste de posición para el último elemento y evitar desborde a la derecha */
.metric-item:last-child .metric-tooltip {
  left: auto;
  right: -4px;
  transform: translateY(5px);
}

.metric-item:last-child .metric-tooltip::after {
  left: auto;
  right: 28px;
  transform: none;
}

.metric-item:last-child:hover .metric-tooltip,
.metric-item:last-child:focus-visible .metric-tooltip {
  transform: translateY(0);
}

.metric-divider {
  width: 1px;
  height: 48px;
  background-color: rgba(123, 44, 191, 0.3);
  flex-shrink: 0;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(180, 180, 200, 0.7);
  animation: pulseCue 2.2s infinite ease-in-out;
}

.cue-arrow {
  width: 14px;
  height: 14px;
}

@keyframes pulseCue {

  0%,
  100% {
    opacity: 0.5;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(5px);
  }
}

/* ==========================================================================
   3. TARJETAS DOSSIER GLASSMORPHISM EN EL TERCIO IZQUIERDO
   (Estrategia, Agentes, Analítica, Capacitación, Soluciones)
   ========================================================================== */
.glass-dossier-card {
  width: 100%;
  max-width: 520px;
  /* Glassmorphism oscuro y profundo: idéntico al Hero Chapter */
  background: linear-gradient(140deg, rgba(8, 6, 16, 0.92) 0%, rgba(26, 10, 48, 0.88) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(123, 44, 191, 0.35);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(85, 26, 139, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  pointer-events: auto;
  transition: all 0.3s var(--ease-editorial);
}

.glass-dossier-card:hover {
  border-color: rgba(123, 44, 191, 0.5);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.8), 0 0 45px rgba(85, 26, 139, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.dossier-header {
  margin-bottom: 16px;
}

.dossier-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: rgba(200, 252, 169, 0.08);
  border: 1px solid rgba(200, 252, 169, 0.25);
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-lime-accent);
  margin-bottom: 12px;
}

.kicker-num {
  color: var(--color-lime-accent);
  font-weight: 800;
}

.kicker-dot,
.kicker-sep {
  color: rgba(200, 252, 169, 0.5);
}

.kicker-name {
  color: var(--color-lime-accent);
}

.dossier-title {
  font-family: var(--font-sans);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--color-text-pure);
  margin-bottom: 10px;
}

.text-lime-accent {
  color: var(--color-lime-accent);
  text-shadow: 0 0 16px var(--color-lime-glow);
}

.dossier-lead {
  font-size: 13.5px;
  line-height: 1.55;
  color: #CBD5E1;
  margin-bottom: 14px;
}

/* Sección estrella y kicker destacado (Gemelos Digitales) */
.star-chapter-card {
  border-color: rgba(200, 252, 169, 0.38);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 40px rgba(85, 26, 139, 0.35), 0 0 20px rgba(200, 252, 169, 0.12), inset 0 1px 0 rgba(200, 252, 169, 0.2);
}

.star-chapter-card:hover {
  border-color: rgba(200, 252, 169, 0.55);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.8), 0 0 50px rgba(85, 26, 139, 0.45), 0 0 25px rgba(200, 252, 169, 0.22), inset 0 1px 0 rgba(200, 252, 169, 0.3);
}

.kicker-highlight {
  background: rgba(200, 252, 169, 0.14);
  border-color: var(--color-lime-accent);
  box-shadow: 0 0 14px var(--color-lime-glow);
}

.btn-star-action {
  border-color: var(--color-lime-accent);
  box-shadow: 0 4px 16px rgba(85, 26, 139, 0.45), 0 0 14px var(--color-lime-glow);
}

/* Filas de capacidades / pilares */
.dossier-pillars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(123, 44, 191, 0.28);
}

.pillar-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.22s var(--ease-editorial);
}

.pillar-row:hover {
  background: rgba(85, 26, 139, 0.18);
  border-color: rgba(200, 252, 169, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), 0 0 12px rgba(85, 26, 139, 0.25);
  transform: translateX(3px);
}

.pillar-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(85, 26, 139, 0.25);
  border: 1px solid rgba(200, 252, 169, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-lime-accent);
  flex-shrink: 0;
  margin-top: 1px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.22s var(--ease-editorial);
}

.pillar-row:hover .pillar-icon {
  background: rgba(85, 26, 139, 0.45);
  border-color: var(--color-lime-accent);
  color: var(--color-lime-accent);
  box-shadow: 0 0 12px var(--color-lime-glow);
}

.pillar-icon svg {
  width: 16px;
  height: 16px;
}

.pillar-text h4 {
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 3px;
  line-height: 1.3;
}

.pillar-text p {
  font-size: 11.5px;
  color: #CBD5E1;
  line-height: 1.45;
}

/* Footer de la tarjeta con KPI y acción */
.dossier-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(123, 44, 191, 0.28);
}

.dossier-kpi {
  display: flex;
  flex-direction: column;
}

.kpi-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-lime-accent);
  letter-spacing: -0.02em;
  line-height: 1;
  text-shadow: 0 0 16px var(--color-lime-glow);
  animation: metricBreathe 3.5s infinite ease-in-out;
  display: inline-block;
}

.kpi-desc {
  font-size: 10.5px;
  color: var(--color-text-muted);
  margin-top: 4px;
  max-width: 180px;
  line-height: 1.3;
}

.btn-dossier-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-text-pure);
  padding: 9px 18px;
  background: var(--color-purple-primary);
  border: 1px solid rgba(200, 252, 169, 0.3);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(85, 26, 139, 0.35);
  transition: all 0.25s var(--ease-editorial);
  white-space: nowrap;
  cursor: pointer;
}

.btn-dossier-action .btn-arrow {
  width: 14px;
  height: 14px;
  color: var(--color-lime-accent);
  transition: transform 0.25s var(--ease-editorial);
}

.btn-dossier-action:hover {
  background: var(--color-purple-hover);
  border-color: var(--color-lime-accent);
  color: var(--color-lime-accent);
  box-shadow: 0 0 20px var(--color-lime-glow), 0 4px 16px rgba(85, 26, 139, 0.5);
  transform: translateY(-1px);
}

.btn-dossier-action:hover .btn-arrow {
  transform: translateX(3px);
}

/* ==========================================================================
   INDICADOR DE PROGRESO (PUNTOS EN EL MARGEN DERECHO)
   ========================================================================== */
.scroll-progress-nav {
  position: fixed;
  right: clamp(16px, 2.2vw, 32px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.progress-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: all 0.35s var(--ease-editorial);
  pointer-events: auto;
  cursor: pointer;
}

.progress-dot.is-active {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.5);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
  .scroll-progress-nav {
    display: none;
  }
}

/* ==========================================================================
   CONTACTO / CIERRE
   ========================================================================== */
.contact-glass-card {
  width: 100%;
  max-width: 520px;
  padding: 24px 28px;
}

.contact-card-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Bloque de Credenciales Oficiales */
.credentials-badge-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(85, 26, 139, 0.16);
  border: 1px solid rgba(200, 252, 169, 0.25);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.credential-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #F1F5F9;
}

.credential-pill .cred-icon {
  width: 15px;
  height: 15px;
  color: var(--color-lime-accent);
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px var(--color-lime-glow));
}

.contact-channels-box {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.channels-phones-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: all 0.22s var(--ease-editorial);
}

.channel-row:hover {
  background: rgba(85, 26, 139, 0.28);
  border-color: rgba(200, 252, 169, 0.4);
  transform: translateX(3px);
  box-shadow: 0 0 14px rgba(85, 26, 139, 0.3);
}

.chan-tag {
  font-weight: 600;
  color: var(--color-lime-accent);
  font-size: 12px;
}

.chan-val {
  color: #F8FAFC;
  font-weight: 500;
  transition: color 0.2s ease;
}

.channel-row:hover .chan-val {
  color: #FFFFFF;
}

.contact-quick-form {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-input {
  width: 100%;
  padding: 8px 12px;
  font-size: 12.5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.07);
  color: #e0e2ee;
  transition: all 0.2s ease;
  outline: none;
  font-family: var(--font-sans);
}

.form-input::placeholder {
  color: rgba(140, 144, 162, 0.65);
}

.form-input option {
  background: #18181e;
  color: #e0e2ee;
}

.form-input:focus {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(200, 252, 169, 0.35);
  box-shadow: 0 0 0 2px rgba(200, 252, 169, 0.08);
}

.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 10px 18px;
  font-size: 13px;
  margin-top: 2px;
}

/* ==========================================================================
   MODAL DE VIDEO INTERACTIVO
   ========================================================================== */
.video-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 12, 16, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.video-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-window {
  background: #ffffff;
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 680px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  transform: scale(0.95);
  transition: transform 0.3s var(--ease-editorial);
}

.video-modal-backdrop.is-open .video-modal-window {
  transform: scale(1);
}

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

.modal-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.modal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-ink);
  margin-top: 2px;
}

.modal-close {
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-muted);
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--color-ink);
}

.modal-video-container {
  padding: 28px 24px;
  background: #fafafc;
}

.modal-showcase {
  background: #ffffff;
  border: 1px solid rgba(220, 226, 236, 0.8);
  border-radius: var(--radius-sm);
  padding: 24px;
}

.showcase-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  background: #f0f2f6;
  border-radius: var(--radius-pill);
  color: var(--color-ink);
  margin-bottom: 14px;
}

.modal-showcase h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-ink);
  margin-bottom: 8px;
}

.modal-showcase p {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.showcase-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.pillar-pill {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--color-ink);
  padding: 8px 12px;
  background: #f6f7fa;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pillar-pill span {
  font-weight: 700;
  font-size: 11px;
  color: var(--color-muted);
}

.btn-modal-cta {
  display: block;
  text-align: center;
  background: var(--color-ink);
  color: #ffffff;
  font-size: 14px;
  font-weight: 520;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  transition: background 0.2s ease;
}

.btn-modal-cta:hover {
  background: #2a2a2a;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MÓVIL & TABLET)
   ========================================================================== */
@media (max-width: 768px) {

  /* --------------------------------------------------------------------------
     1. FONDO GENERAL MÓVIL Y CANVAS ESTÁTICO DE ALTO RENDIMIENTO
     -------------------------------------------------------------------------- */
  body {
    background-color: #08080c !important;
  }

  .canvas-viewport {
    opacity: 0.4 !important;
    pointer-events: none !important;
  }

  .canvas-left-fade {
    background: radial-gradient(circle at 50% 25%, rgba(85, 26, 139, 0.18) 0%, rgba(8, 8, 12, 0.94) 65%, #08080c 100%) !important;
  }

  /* --------------------------------------------------------------------------
     2. MENÚ HAMBURGUESA Y NAVEGACIÓN MÓVIL (PANTALLA COMPLETA #090514)
     -------------------------------------------------------------------------- */
  .header-cta-group,
  .brand-tag,
  .scroll-progress-nav {
    display: none !important;
  }

  .hero-header {
    padding: 14px 18px;
    z-index: 90;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  /* Botón Hamburguesa Minimalista */
  .mobile-menu-btn {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 8px;
    background: rgba(85, 26, 139, 0.45);
    border: 1.5px solid #C8FCA9;
    border-radius: 50%;
    cursor: pointer;
    z-index: 120;
    transition: all 0.28s var(--ease-editorial);
    box-shadow: 0 0 14px rgba(200, 252, 169, 0.25);
    margin-left: auto;
  }

  .mobile-menu-btn:hover {
    background: rgba(85, 26, 139, 0.85);
    box-shadow: 0 0 20px rgba(200, 252, 169, 0.5);
    transform: scale(1.05);
  }

  .hamburger-bar {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #C8FCA9;
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
  }

  /* Transformación en 'X' al activarse .is-open */
  .mobile-menu-btn.is-open {
    border-color: #C8FCA9;
    background: #551A8B;
    box-shadow: 0 0 22px rgba(200, 252, 169, 0.5);
  }

  .mobile-menu-btn.is-open .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-menu-btn.is-open .hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .mobile-menu-btn.is-open .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Cortina vertical limpia a pantalla completa */
  .nav-menu {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: #090514 !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px !important;
    padding: 80px 24px 32px !important;
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 2px solid rgba(200, 252, 169, 0.3) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(85, 26, 139, 0.2) !important;
    z-index: 110;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-24px);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
    counter-reset: menu-item;
    overflow-y: auto;
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* Tarjetas interactivas de enlace estilo modal */
  .nav-menu .nav-link {
    width: 100% !important;
    max-width: 360px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 13px 18px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(123, 44, 191, 0.28) !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #FFFFFF !important;
    letter-spacing: -0.01em !important;
    box-sizing: border-box !important;
  }

  /* Número de capítulo automático (a la izquierda) */
  .nav-menu .nav-link::before {
    counter-increment: menu-item;
    content: counter(menu-item, decimal-leading-zero);
    font-size: 11px;
    font-weight: 700;
    color: #C8FCA9;
    background: rgba(85, 26, 139, 0.35);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(200, 252, 169, 0.25);
    margin-right: 12px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Flecha indicadora (a la derecha) */
  .nav-menu .nav-link::after {
    display: inline-block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    box-shadow: none !important;
    content: '→' !important;
    font-size: 14px !important;
    color: #C8FCA9 !important;
    opacity: 0.7 !important;
    transition: transform 0.2s ease, opacity 0.2s ease !important;
    margin-left: auto !important;
    flex-shrink: 0;
  }

  /* Efecto hover / active (al tocar) */
  .nav-menu .nav-link:hover,
  .nav-menu .nav-link:active,
  .nav-menu .nav-link.active {
    background: rgba(85, 26, 139, 0.35) !important;
    border-color: rgba(200, 252, 169, 0.5) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), 0 0 14px rgba(85, 26, 139, 0.25) !important;
    transform: scale(1.02) !important;
    color: #FFFFFF !important;
    text-shadow: none !important;
  }

  .nav-menu .nav-link:hover::after,
  .nav-menu .nav-link:active::after,
  .nav-menu .nav-link.active::after {
    transform: translateX(4px) !important;
    opacity: 1 !important;
  }

  /* Botón Conversemos al final del menú móvil */
  .nav-mobile-cta {
    width: 100% !important;
    max-width: 360px !important;
    justify-content: center !important;
    display: inline-flex !important;
    margin-top: 6px !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    padding: 13px 24px !important;
    background: #551A8B !important;
    border: 1.5px solid #C8FCA9 !important;
    color: #FFFFFF !important;
    border-radius: var(--radius-pill) !important;
    box-shadow: 0 4px 20px rgba(85, 26, 139, 0.6), 0 0 16px rgba(200, 252, 169, 0.35) !important;
    transition: all 0.22s ease !important;
    box-sizing: border-box !important;
  }

  .nav-mobile-cta:hover,
  .nav-mobile-cta:active {
    background: #6a24aa !important;
    box-shadow: 0 6px 26px rgba(85, 26, 139, 0.75), 0 0 22px rgba(200, 252, 169, 0.5) !important;
    transform: scale(1.02) !important;
  }

  /* --------------------------------------------------------------------------
     3. ESTRUCTURA Y APILAMIENTO VERTICAL NATURAL EN MÓVIL
     -------------------------------------------------------------------------- */
  .scrolly-story {
    pointer-events: auto !important;
  }

  .story-chapter {
    min-height: auto !important;
    padding: 48px 16px !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  .chapter-content {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    pointer-events: auto !important;
  }

  /* --------------------------------------------------------------------------
     4. TARJETAS ULTRA-DARK GLASSMORPHISM DE ALTA GAMA
     -------------------------------------------------------------------------- */
  .editorial-panel,
  .glass-dossier-card {
    max-width: 100% !important;
    width: 100% !important;
    background: rgba(16, 10, 26, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(123, 44, 191, 0.35) !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(85, 26, 139, 0.15) !important;
    padding: 28px 20px !important;
    pointer-events: auto !important;
  }

  /* --------------------------------------------------------------------------
     5. JERARQUÍA TIPOGRÁFICA Y CONTRASTE EN MÓVIL
     -------------------------------------------------------------------------- */
  /* Títulos: Blanco puro #FFFFFF, nítido y equilibrado */
  .editorial-panel .hero-title,
  .glass-dossier-card .dossier-title,
  .editorial-panel h1,
  .glass-dossier-card h2,
  .glass-dossier-card h4 {
    color: #FFFFFF !important;
    font-size: clamp(26px, 7vw, 32px) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em !important;
    font-weight: 700 !important;
  }

  .title-primary {
    color: #FFFFFF !important;
  }

  /* Resaltados clave: Verde Lima Neón #C8FCA9 con resplandor sutil */
  .title-highlight,
  .text-lime-accent {
    color: #C8FCA9 !important;
    font-weight: 700 !important;
    text-shadow: 0 0 14px rgba(200, 252, 169, 0.35) !important;
  }

  /* Textos y párrafos: Gris lavanda claro #CBD5E1, interlineado 1.55 */
  .editorial-panel .hero-description,
  .glass-dossier-card .dossier-lead,
  .editorial-panel .axiom-text,
  .glass-dossier-card p,
  .pillar-text p {
    color: #CBD5E1 !important;
    font-size: 14.5px !important;
    line-height: 1.55 !important;
  }

  /* Kickers */
  .hero-kicker {
    background: rgba(85, 26, 139, 0.25) !important;
    border: 1px solid rgba(200, 252, 169, 0.3) !important;
  }

  .kicker-label-top,
  .kicker-label-bottom {
    color: #C8FCA9 !important;
  }

  .kicker-pulse-dot {
    background: #C8FCA9 !important;
    box-shadow: 0 0 8px #C8FCA9 !important;
  }

  .kicker-divider {
    background: rgba(200, 252, 169, 0.3) !important;
  }

  .dossier-kicker {
    color: rgba(203, 213, 225, 0.7) !important;
  }

  .dossier-kicker .kicker-num {
    color: #C8FCA9 !important;
  }

  .dossier-kicker .kicker-dot {
    color: rgba(203, 213, 225, 0.5) !important;
  }

  .dossier-kicker .kicker-name {
    color: #E2E8F0 !important;
    font-weight: 600 !important;
  }

  /* Cajas de axioma / citas */
  .hero-axiom {
    border-left: 3px solid #C8FCA9 !important;
    background: rgba(255, 255, 255, 0.04) !important;
    padding: 12px 16px !important;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
    margin: 16px 0 !important;
  }

  .hero-axiom .axiom-text {
    color: #CBD5E1 !important;
  }

  .hero-axiom .axiom-text strong {
    color: #FFFFFF !important;
  }

  /* Pilares de contenido (.pillar-row): Fondo translúcido sutil rgba(255, 255, 255, 0.04) */
  .dossier-pillars {
    gap: 12px !important;
    margin: 18px 0 !important;
  }

  .pillar-row {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(123, 44, 191, 0.3) !important;
    border-radius: var(--radius-sm) !important;
    padding: 12px 14px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.25s ease !important;
  }

  .pillar-row:hover,
  .pillar-row:active {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(200, 252, 169, 0.4) !important;
  }

  .pillar-text h4 {
    color: #FFFFFF !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    margin-bottom: 3px !important;
  }

  .pillar-text p {
    color: #CBD5E1 !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  /* Iconos */
  .pillar-icon,
  .metric-icon-wrap {
    background: rgba(85, 26, 139, 0.4) !important;
    border: 1px solid rgba(200, 252, 169, 0.35) !important;
    box-shadow: 0 0 10px rgba(85, 26, 139, 0.4) !important;
  }

  .pillar-icon svg,
  .metric-icon-wrap svg {
    color: #C8FCA9 !important;
    stroke: #C8FCA9 !important;
  }

  /* Botones primarios: Gradiente morado #551A8B con borde y texto de acento en Verde Lima #C8FCA9 */
  .editorial-panel .btn-primary,
  .glass-dossier-card .btn-dossier-action,
  .btn-submit {
    width: 100% !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #551A8B 0%, #6e24aa 100%) !important;
    color: #FFFFFF !important;
    border: 1.5px solid #C8FCA9 !important;
    border-radius: var(--radius-pill) !important;
    box-shadow: 0 4px 20px rgba(85, 26, 139, 0.55), 0 0 14px rgba(200, 252, 169, 0.25) !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.25s ease !important;
  }

  .editorial-panel .btn-primary:hover,
  .glass-dossier-card .btn-dossier-action:hover,
  .btn-submit:hover,
  .editorial-panel .btn-primary:active,
  .glass-dossier-card .btn-dossier-action:active,
  .btn-submit:active {
    background: linear-gradient(135deg, #6420a3 0%, #7b2cbf 100%) !important;
    border-color: #C8FCA9 !important;
    box-shadow: 0 6px 26px rgba(85, 26, 139, 0.7), 0 0 20px rgba(200, 252, 169, 0.45) !important;
    transform: translateY(-1px) !important;
  }

  .editorial-panel .btn-primary .btn-arrow,
  .glass-dossier-card .btn-dossier-action .btn-arrow,
  .btn-submit .btn-arrow {
    color: #C8FCA9 !important;
  }

  .hero-cta-group {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    margin-top: 18px !important;
  }

  .btn-video {
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #FFFFFF !important;
    border-radius: var(--radius-pill) !important;
    padding: 10px 18px !important;
  }

  .btn-video .play-circle {
    background: rgba(85, 26, 139, 0.5) !important;
    color: #C8FCA9 !important;
    border: 1px solid rgba(200, 252, 169, 0.4) !important;
  }

  /* Métricas */
  .hero-metrics-container {
    margin-top: 18px !important;
  }

  .metrics-live-header {
    border-color: rgba(255, 255, 255, 0.1) !important;
  }

  .metrics-live-label {
    color: #C8FCA9 !important;
  }

  .radar-core,
  .radar-ping {
    background: #C8FCA9 !important;
  }

  .hero-metrics {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }

  .metric-item {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--radius-sm) !important;
    padding: 12px 10px !important;
  }

  .metric-item:last-child {
    grid-column: span 2 !important;
  }

  .metric-divider {
    display: none !important;
  }

  .metric-value {
    color: #FFFFFF !important;
    font-size: 26px !important;
    text-shadow: none !important;
    animation: none !important;
  }

  .metric-label {
    color: #94A3B8 !important;
    font-size: 11.5px !important;
  }

  .scroll-cue {
    display: none !important;
  }

  /* Dossier Footer / KPI */
  .dossier-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-top: 16px !important;
    margin-top: 16px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
  }

  .kpi-num {
    color: #C8FCA9 !important;
    text-shadow: 0 0 12px rgba(200, 252, 169, 0.3) !important;
  }

  .kpi-desc {
    color: #94A3B8 !important;
  }

  /* Formulario de Contacto y Credenciales en Móvil */
  .credentials-badge-group {
    background: rgba(85, 26, 139, 0.2) !important;
    border: 1px solid rgba(200, 252, 169, 0.25) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
  }

  .credential-pill {
    color: #F1F5F9 !important;
  }

  .credential-pill .cred-icon {
    color: #C8FCA9 !important;
    filter: drop-shadow(0 0 6px rgba(200, 252, 169, 0.5)) !important;
  }

  .channels-phones-grid {
    grid-template-columns: 1fr !important;
  }

  .channel-row {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .channel-row:hover,
  .channel-row:active {
    background: rgba(85, 26, 139, 0.28) !important;
    border-color: rgba(200, 252, 169, 0.4) !important;
  }

  .chan-tag {
    color: #C8FCA9 !important;
  }

  .chan-val {
    color: #F8FAFC !important;
  }

  .contact-quick-form .form-input {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #F8FAFC !important;
    border: 1px solid rgba(123, 44, 191, 0.4) !important;
    box-shadow: none !important;
    font-size: 13.5px !important;
    padding: 10px 14px !important;
  }

  .contact-quick-form .form-input::placeholder {
    color: rgba(203, 213, 225, 0.45) !important;
  }

  .contact-quick-form .form-input:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #C8FCA9 !important;
    box-shadow: 0 0 0 2px rgba(200, 252, 169, 0.2) !important;
  }

  .contact-quick-form .form-input option {
    background: #0f081c !important;
    color: #F8FAFC !important;
  }
}

/* Reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
  .story-chapter {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .pillar-row,
  .btn-primary,
  .btn-dossier-action {
    transition: none !important;
    transform: none !important;
  }
}

/* ==========================================================================
   PRODIGY NATIVE AI CHAT WIDGET (GLASSMORPHISM CORPORATIVO)
   ========================================================================== */

/* Botón flotante lanzador */
.chat-trigger-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #551A8B 0%, #7b2cbf 100%);
  border: 1.5px solid #C8FCA9;
  box-shadow: 0 8px 30px rgba(85, 26, 139, 0.5), 0 0 15px rgba(200, 252, 169, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  overflow: visible;
}

.chat-trigger-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 10px 35px rgba(85, 26, 139, 0.7), 0 0 25px rgba(200, 252, 169, 0.55);
}

.chat-trigger-btn:active {
  transform: scale(0.96);
}

.chat-btn-glow {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 252, 169, 0.35) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.6;
  animation: pulseGlow 3s infinite ease-in-out;
}

.chat-btn-icon {
  position: relative;
  z-index: 2;
  width: 26px;
  height: 26px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.chat-trigger-btn:hover .chat-btn-icon {
  transform: rotate(6deg) scale(1.05);
}

.chat-btn-icon svg {
  width: 100%;
  height: 100%;
  stroke: #FFFFFF;
}

/* Indicador de pulso online en botón */
.chat-online-pulse {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: #C8FCA9;
  border: 2px solid #0e0a1a;
  border-radius: 50%;
  box-shadow: 0 0 10px #C8FCA9;
  z-index: 3;
}

.chat-online-pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid #C8FCA9;
  opacity: 0.7;
  animation: ripple 2s infinite cubic-bezier(0.2, 0.8, 0.4, 1);
}

@keyframes ripple {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.15); opacity: 0.8; }
}

/* Ventana emergente del chat */
.chat-window-panel {
  position: fixed;
  bottom: 95px;
  right: 28px;
  z-index: 100;
  width: 360px;
  height: 490px;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(14, 10, 26, 0.96) 0%, rgba(8, 6, 16, 0.98) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(200, 252, 169, 0.25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(85, 26, 139, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-window-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Header compacto */
.chat-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(85, 26, 139, 0.25);
  border-bottom: 1px solid rgba(200, 252, 169, 0.15);
  flex-shrink: 0;
}

.header-brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.copilot-avatar {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(200, 252, 169, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  flex-shrink: 0;
}

.avatar-cube {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.avatar-status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: #C8FCA9;
  border: 1.5px solid #0e0a1a;
  border-radius: 50%;
  box-shadow: 0 0 6px #C8FCA9;
}

.header-titles {
  display: flex;
  flex-direction: column;
}

.copilot-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  font-family: inherit;
}

.copilot-status {
  font-size: 11px;
  color: #C8FCA9;
  opacity: 0.9;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.chat-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.chat-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border-color: rgba(200, 252, 169, 0.4);
}

.chat-close-btn svg {
  width: 16px;
  height: 16px;
}

/* Área de Conversación */
.chat-messages-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.chat-messages-body::-webkit-scrollbar {
  width: 5px;
}

.chat-messages-body::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages-body::-webkit-scrollbar-thumb {
  background: rgba(200, 252, 169, 0.2);
  border-radius: 4px;
}

.chat-messages-body::-webkit-scrollbar-thumb:hover {
  background: rgba(200, 252, 169, 0.4);
}

/* Burbujas de chat */
.msg-bubble {
  max-width: 85%;
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
  word-wrap: break-word;
  animation: fadeInMsg 0.25s ease forwards;
}

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

.msg-bubble p {
  margin: 0;
}

.msg-bubble p + p {
  margin-top: 8px;
}

.msg-bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #F1F5F9;
  border-bottom-left-radius: 4px;
}

.msg-user {
  align-self: flex-end;
  background: #551A8B;
  border: 1px solid rgba(200, 252, 169, 0.4);
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 14px rgba(85, 26, 139, 0.35);
}

/* Indicador de escritura (typing) */
.msg-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
  min-width: 58px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: #C8FCA9;
  border-radius: 50%;
  opacity: 0.4;
  animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
  animation-delay: 0s;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

/* Formulario e Input */
.chat-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(14, 10, 26, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.chat-text-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(200, 252, 169, 0.2);
  border-radius: 10px;
  padding: 10px 14px;
  color: #FFFFFF;
  font-size: 13px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.chat-text-input:focus {
  border-color: #C8FCA9;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 10px rgba(200, 252, 169, 0.15);
}

.chat-text-input::placeholder {
  color: #94A3B8;
  font-size: 12.5px;
}

.chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #551A8B;
  border: 1px solid rgba(200, 252, 169, 0.4);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: all 0.22s ease;
}

.chat-send-btn svg {
  width: 17px;
  height: 17px;
  transition: transform 0.2s ease;
}

.chat-send-btn:hover {
  background: #C8FCA9;
  color: #20063B;
  border-color: #C8FCA9;
  box-shadow: 0 0 14px rgba(200, 252, 169, 0.5);
}

.chat-send-btn:hover svg {
  transform: translateX(1px) translateY(-1px);
}

.chat-send-btn:active {
  transform: scale(0.95);
}

/* Responsive Móvil */
@media (max-width: 480px) {
  .chat-trigger-btn {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .chat-window-panel {
    bottom: 82px;
    right: 14px;
    left: 14px;
    width: auto;
    max-width: none;
    height: calc(100vh - 120px);
    max-height: 520px;
    border-radius: 16px;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}