/* ==========================================================================
   Narratix - Landing Page Stylesheet (Next-Gen Interactive Cinema)
   ========================================================================== */

/* Fondo Ambiental y Canvas de Partículas */
.landing-body {
  background-color: var(--color-bg-body);
  color: var(--color-text-primary);
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
  position: relative;
}

#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  transition: transform 0.5s ease-out;
  max-width: 100vw;
  overflow: hidden;
}

.ambient-glow-1 {
  top: -15%;
  left: 15%;
  width: min(50vw, 550px);
  height: min(50vw, 550px);
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, transparent 70%);
}

.ambient-glow-2 {
  top: 25%;
  right: 0%;
  width: min(45vw, 450px);
  height: min(45vw, 450px);
  background: radial-gradient(circle, rgba(236, 72, 153, 0.28) 0%, transparent 70%);
}

.ambient-glow-3 {
  bottom: 10%;
  left: 10%;
  width: min(40vw, 400px);
  height: min(40vw, 400px);
  background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, transparent 70%);
}

/* =========================================
   Sección Hero
========================================= */
.landing-hero {
  position: relative;
  z-index: 2;
  padding: 6rem 1.5rem 5rem;
  max-width: var(--container-max);
  margin: 0 auto;
  text-align: center;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
  margin-bottom: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #E2E8F0;
  backdrop-filter: blur(10px);
  animation: float 4s ease-in-out infinite;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent);
  animation: pulse 1.8s infinite;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  color: #FFFFFF;
}

.hero-headline .gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: var(--color-text-secondary);
  max-width: 720px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 4.5rem;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 2.2rem;
  border-radius: var(--radius-full);
  background: var(--gradient-brand);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 35px rgba(99, 102, 241, 0.45);
  transition: all var(--transition-base);
  border: none;
}

.hero-btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 50px rgba(236, 72, 153, 0.6);
  color: #fff;
}

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.85rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border-light);
  color: var(--color-text-primary);
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition: all var(--transition-base);
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  color: #fff;
}

/* =========================================
   Showcase Interactivo en Vivo (Simulator)
========================================= */
.hero-showcase-container {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  perspective: 1200px;
}

.showcase-glow-backdrop {
  position: absolute;
  inset: -15px;
  background: var(--gradient-glow);
  filter: blur(40px);
  border-radius: var(--radius-2xl);
  z-index: 0;
  opacity: 0.65;
  transition: opacity var(--transition-base);
}

.showcase-device {
  position: relative;
  z-index: 1;
  background: #0B0E18;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-2xl);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: rgba(18, 22, 38, 0.9);
  border-bottom: 1px solid var(--color-border);
}

.showcase-dots {
  display: flex;
  gap: 0.45rem;
}

.showcase-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.showcase-dot.red { background: #EF4444; }
.showcase-dot.yellow { background: #F59E0B; }
.showcase-dot.green { background: #10B981; }

.showcase-address-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.showcase-screen {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fondo simulado de video interactivo */
.sim-video-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.5s ease, transform 0.5s ease;
}

.sim-video-canvas.slow-motion {
  filter: saturate(0.8) brightness(0.65);
  transform: scale(1.03);
}

/* Capa de UI Superpuesta Estilo Stories / Reels */
.sim-overlay-stories {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  pointer-events: none;
}

/* Segmentos de progreso superior tipo Instagram Stories */
.sim-story-bars {
  display: flex;
  gap: 0.35rem;
  width: 100%;
  position: relative;
  z-index: 20;
}

.sim-story-bar-segment {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  overflow: hidden;
}

.sim-story-bar-fill {
  height: 100%;
  background: #FFFFFF;
  width: 0%;
  transition: width 0.1s linear;
}

/* Badge de cámara lenta en pantalla */
.sim-slowmo-pill {
  align-self: flex-end;
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(236, 72, 153, 0.9);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.6);
  animation: pulse 1.5s infinite;
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.3s ease;
}

.sim-slowmo-pill.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Temporizador circular de decisión superpuesto */
.sim-decision-timer {
  align-self: center;
  background: rgba(13, 16, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sim-decision-timer.visible {
  opacity: 1;
}

/* Botones de decisión interactivos SUPERPUESTOS al video */
.sim-decisions-layer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  width: 100%;
  margin-bottom: 1.5rem;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sim-decisions-layer.visible {
  opacity: 1;
  transform: translateY(0);
}

.sim-choice-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.6rem;
  background: rgba(18, 24, 38, 0.94);
  border: 2px solid rgba(99, 102, 241, 0.7);
  border-radius: var(--radius-full);
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.75), 0 0 20px rgba(99, 102, 241, 0.35);
  backdrop-filter: blur(16px);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sim-choice-btn:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: #FFFFFF;
  background: rgba(30, 42, 64, 0.98);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.9), 0 0 30px rgba(99, 102, 241, 0.7);
}

.sim-choice-btn.choice-pink {
  border-color: rgba(236, 72, 153, 0.7);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.75), 0 0 20px rgba(236, 72, 153, 0.35);
}

.sim-choice-btn.choice-pink:hover {
  border-color: #FFFFFF;
  background: rgba(50, 24, 42, 0.98);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.9), 0 0 30px rgba(236, 72, 153, 0.7);
}

/* Info del Creador y Reacciones Flotantes Estilo Reels/Stories */
.sim-bottom-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
}

.sim-creator-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.4rem 0.85rem 0.4rem 0.4rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: auto;
}

.sim-creator-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  padding: 1.5px;
  background: var(--gradient-brand);
}

.sim-creator-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.sim-creator-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
}

.sim-follow-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: var(--radius-full);
  padding: 0.25rem 0.65rem;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.sim-follow-btn:hover {
  background: var(--color-primary);
}

/* Botones de acción flotantes en el lateral */
.sim-actions-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  pointer-events: auto;
}

.sim-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s;
}

.sim-action-btn:hover {
  transform: scale(1.1);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.sim-action-btn.liked {
  color: var(--color-accent);
  background: rgba(236, 72, 153, 0.2);
  border-color: var(--color-accent);
}

/* =========================================
   Sección: Árbol de Decisiones SVG
========================================= */
/* =========================================
   Sección: Árbol de Decisiones SVG
========================================= */
.section-branching {
  padding: 7rem 1.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
}

.branching-card {
  background: rgba(18, 22, 36, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-2xl);
  padding: 4rem 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 75px rgba(0, 0, 0, 0.8), 0 0 35px rgba(99, 102, 241, 0.2);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.branching-card:hover {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 30px 85px rgba(0, 0, 0, 0.9), 0 0 50px rgba(99, 102, 241, 0.3);
}

.branching-svg-wrap {
  width: 100%;
  max-width: 920px;
  margin: 3rem auto 0;
}

.branching-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.svg-node-circle {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
  cursor: pointer;
}

.svg-node-circle:hover {
  transform: scale(1.18);
  filter: drop-shadow(0 0 16px var(--color-primary));
}

.svg-path-pulse {
  stroke-dasharray: 8 8;
  animation: dashAnimation 18s linear infinite;
}

@keyframes dashAnimation {
  from { stroke-dashoffset: 400; }
  to { stroke-dashoffset: 0; }
}

/* =========================================
   Sección: Comparativa Tradicional vs Narratix
========================================= */
.section-vs {
  padding: 6rem 1.5rem 8rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.vs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.vs-col {
  border-radius: var(--radius-2xl);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.vs-col.traditional {
  background: rgba(18, 22, 32, 0.55);
  border: 1px solid rgba(239, 68, 68, 0.22);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.vs-col.traditional:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 25px rgba(239, 68, 68, 0.15);
}

.vs-col.narratix {
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.25) 0%, rgba(18, 22, 36, 0.95) 75%);
  border: 1.5px solid rgba(99, 102, 241, 0.55);
  box-shadow: 0 25px 75px rgba(0, 0, 0, 0.85), 0 0 45px rgba(99, 102, 241, 0.3);
}

.vs-col.narratix:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(236, 72, 153, 0.6);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.9), 0 0 60px rgba(99, 102, 241, 0.45);
}

.vs-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  letter-spacing: 0.05em;
}

.vs-badge-top.bad {
  background: rgba(239, 68, 68, 0.18);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.vs-badge-top.good {
  background: rgba(99, 102, 241, 0.25);
  color: #A5B4FC;
  border: 1px solid rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.3);
}

.vs-list {
  list-style: none;
  padding: 0;
  margin: 2.2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.vs-list-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

.vs-icon-cross {
  color: #EF4444;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 1px;
}

.vs-icon-check {
  color: #10B981;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 1px;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

/* =========================================
   Grid de Características Premium
========================================= */
.section-features {
  padding: 6rem 1.5rem 8rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.features-grid-3x2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(1.2rem, 3vw, 2rem);
  margin-top: 4rem;
}

.feature-glass-box {
  background: rgba(18, 22, 36, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-2xl);
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.2rem, 3vw, 2.2rem);
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.feature-glass-box:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 40px rgba(99, 102, 241, 0.35);
}

.feature-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(236, 72, 153, 0.15) 100%);
  border: 1px solid rgba(99, 102, 241, 0.4);
  display: grid;
  place-items: center;
  color: var(--color-primary-light);
  margin-bottom: 1.6rem;
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.25);
  transition: all 0.3s ease;
}

.feature-glass-box:hover .feature-icon-wrapper {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
  transform: scale(1.1) rotate(3deg);
  box-shadow: 0 0 35px rgba(236, 72, 153, 0.65);
}

.feature-card-heading {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: #FFFFFF;
}

.feature-card-desc {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* =========================================
   CTA Final y Testimonios
========================================= */
.section-cta-wrap {
  padding: 5rem 1.5rem 9rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.cta-mega-banner {
  background: radial-gradient(circle at 50% 10%, rgba(99, 102, 241, 0.35) 0%, rgba(236, 72, 153, 0.22) 45%, rgba(13, 16, 28, 0.98) 85%);
  border: 1.5px solid rgba(99, 102, 241, 0.5);
  border-radius: var(--radius-2xl);
  padding: 6rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.9), 0 0 60px rgba(99, 102, 241, 0.35);
}

.cta-mega-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1.35rem;
  color: #FFFFFF;
  letter-spacing: -0.025em;
}

.cta-mega-subtitle {
  color: var(--color-text-secondary);
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  max-width: 660px;
  margin: 0 auto 2.8rem;
  line-height: 1.65;
}

/* Responsive */
@media (max-width: 768px) {
  .landing-hero {
    padding: 3.5rem 1rem 3.5rem;
  }
  .section-branching {
    padding: 4rem 1rem;
  }
  .branching-card {
    padding: 2.2rem 1.2rem;
  }
  .section-vs {
    padding: 4rem 1rem;
  }
  .vs-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .vs-col {
    padding: 2rem 1.25rem;
  }
  .section-features {
    padding: 4rem 1rem;
  }
  .section-cta-wrap {
    padding: 3.5rem 1rem 5rem;
  }
  .cta-mega-banner {
    padding: 3.5rem 1.25rem;
  }
  .explanation-glass-card {
    padding: 1.75rem 1.2rem;
  }
  .sim-decisions-layer {
    flex-direction: column;
    gap: 0.6rem;
  }
  .sim-choice-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.85rem;
    padding: 0.65rem 1rem;
  }
  .explanation-steps-grid {
    grid-template-columns: 1fr !important;
  }
  .community-showcase-box {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .landing-hero {
    padding: 2.5rem 0.75rem 3rem;
  }
  .hero-badge-pill {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    max-width: 100%;
  }
  .hero-headline {
    font-size: clamp(1.85rem, 8vw, 2.8rem);
  }
  .hero-cta-group {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 3rem;
  }
  .hero-btn-primary,
  .hero-btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    box-sizing: border-box;
  }
  .cta-mega-banner {
    padding: 2.5rem 1rem;
  }
  .cta-mega-title {
    font-size: 1.85rem;
  }
}

/* =========================================
   Explicación Interactiva de Cómo Funciona (Hero)
========================================= */
.hero-explanation-container {
  max-width: 1040px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.explanation-glass-card {
  position: relative;
  background: rgba(18, 22, 36, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-2xl);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7), 0 0 35px rgba(99, 102, 241, 0.18);
  overflow: hidden;
}

.explanation-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--color-primary-light);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.2rem;
}

.explanation-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.8rem;
  line-height: 1.2;
}

.explanation-subtitle {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.explanation-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  text-align: left;
}

.explanation-step-card {
  background: rgba(13, 16, 28, 0.6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.6rem;
  transition: all var(--transition-base);
  position: relative;
  display: flex;
  flex-direction: column;
}

.explanation-step-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.15);
}

.step-number-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.step-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.6rem;
}

.step-card-desc {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.step-card-highlight {
  margin-top: 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--color-primary-light);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Escaparate de Historia Real de la Comunidad */
.community-story-showcase {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
}

.community-showcase-box {
  background: rgba(18, 22, 36, 0.85);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(99, 102, 241, 0.25);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  text-align: left;
}

.community-showcase-thumb-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #090A10;
}

.community-showcase-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-showcase-content {
  padding: clamp(1.5rem, 3vw, 2.2rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.empty-featured-card {
  background: rgba(18, 22, 36, 0.6);
  border: 1px dashed var(--color-border-light);
  border-radius: var(--radius-2xl);
  padding: 3.5rem 1.5rem;
  text-align: center;
}

/* ==========================================================================
   SECCIÓN: CÓMO FUNCIONA NARRATIX (INTERACTIVE SCROLL & SVG CINEMA)
   ========================================================================== */
.narratix-how-it-works {
  position: relative;
  padding: 8rem 1.5rem 6rem;
  max-width: var(--container-max);
  margin: 0 auto;
  z-index: 2;
  overflow: hidden;
}

.hiw-grid-backdrop {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.hiw-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.hiw-glow-1 {
  top: 15%;
  left: -8%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.5) 0%, transparent 70%);
}

.hiw-glow-2 {
  bottom: 20%;
  right: -8%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.45) 0%, transparent 70%);
}

.hiw-container {
  position: relative;
  z-index: 1;
}

/* Encabezado Principal */
.hiw-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 5.5rem;
  position: relative;
}

.hiw-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: var(--color-primary-light);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.25);
  backdrop-filter: blur(10px);
}

.hiw-badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6366F1;
  box-shadow: 0 0 12px #6366F1;
  animation: hiwPulse 1.8s infinite;
}

.hiw-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.hiw-headline .gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hiw-subheadline {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin: 0 auto;
  max-width: 720px;
}

/* Timeline y Riel Láser Conductor */
.hiw-timeline-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7.5rem;
  padding: 2rem 0 4rem;
}

.hiw-laser-track {
  position: absolute;
  top: 3.5rem;
  bottom: 3.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  z-index: 0;
}

.hiw-laser-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, #6366F1 0%, #06B6D4 40%, #EC4899 80%, #F59E0B 100%);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.9), 0 0 32px rgba(6, 182, 212, 0.6);
  border-radius: var(--radius-full);
  transition: height 0.1s linear;
}

/* Estructura de cada Paso */
.hiw-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.hiw-step.hiw-step-visible {
  opacity: 1;
  transform: translateY(0);
}

.hiw-step-marker {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.hiw-marker-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #090A10;
  border: 2px solid rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--color-text-muted);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.9);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hiw-step.hiw-step-visible .hiw-marker-circle {
  border-color: #6366F1;
  color: #FFFFFF;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.5), rgba(236, 72, 153, 0.5));
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.85), 0 0 10px rgba(255, 255, 255, 0.4);
  transform: scale(1.18);
}

/* Alineación alternada para crear ritmo editorial */
.hiw-step-odd .hiw-step-text-col {
  order: 1;
  padding-right: 2rem;
}
.hiw-step-odd .hiw-step-visual-col {
  order: 2;
  padding-left: 2rem;
}
.hiw-step-even .hiw-step-text-col {
  order: 2;
  padding-left: 2rem;
}
.hiw-step-even .hiw-step-visual-col {
  order: 1;
  padding-right: 2rem;
}

/* Columna de Texto */
.hiw-step-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-accent-light);
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.hiw-step-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.7vw, 2.35rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 1.1rem;
}

.hiw-highlight {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hiw-step-desc {
  color: var(--color-text-secondary);
  font-size: 1.02rem;
  line-height: 1.68;
  margin-bottom: 2rem;
}

.hiw-feature-chips {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hiw-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: #E2E8F0;
  font-weight: 500;
}

.hiw-chip svg {
  color: var(--color-success);
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.4));
}

/* Columna Visual / Tarjeta de Vidrio */
.hiw-visual-card {
  background: rgba(18, 22, 36, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-2xl);
  box-shadow: 0 25px 75px rgba(0, 0, 0, 0.8), 0 0 35px rgba(99, 102, 241, 0.18);
  overflow: hidden;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.hiw-visual-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.9), 0 0 50px rgba(99, 102, 241, 0.35);
}

.hiw-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.35rem;
  background: rgba(10, 13, 24, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hiw-dots {
  display: flex;
  gap: 0.45rem;
}

.hiw-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.d-red { background: #EF4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.4); }
.d-yellow { background: #F59E0B; box-shadow: 0 0 8px rgba(245, 158, 11, 0.4); }
.d-green { background: #10B981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.4); }

.hiw-card-header-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  font-family: var(--font-display);
}

.hiw-status-live {
  font-size: 0.72rem;
  font-weight: 700;
  color: #10B981;
  letter-spacing: 0.05em;
  animation: hiwPulse 1.6s infinite;
}

.hiw-svg-canvas {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================
   ANIMACIONES SVG Y KEYFRAMES DINÁMICOS
   ========================================= */
@keyframes hiwPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.92); }
}

@keyframes hiwLaserDash {
  from { stroke-dashoffset: 300; }
  to { stroke-dashoffset: 0; }
}

@keyframes hiwWaveMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-40px); }
}

@keyframes hiwRadarExpand {
  0% { r: 6px; opacity: 1; stroke-width: 2px; }
  100% { r: 30px; opacity: 0; stroke-width: 0.5px; }
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes floatParticleVertical {
  0% { transform: translateY(0) scale(0.8); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 0.85; }
  100% { transform: translateY(-110px) scale(1.15); opacity: 0; }
}

@keyframes countdownSpin {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 151; }
}

.hiw-blinking-cursor {
  animation: blinkCursor 1s infinite;
}

.hiw-path-pulse {
  stroke-dasharray: 6 6;
  animation: hiwLaserDash 15s linear infinite;
}

.hiw-laser-path {
  stroke-dasharray: 8 6;
  animation: hiwLaserDash 22s linear infinite;
}

.hiw-laser-path-fast {
  stroke-dasharray: 6 5;
  animation: hiwLaserDash 12s linear infinite;
}

.hiw-wave-animated {
  animation: hiwWaveMove 3s linear infinite alternate;
}

.hiw-radar-ring {
  animation: hiwRadarExpand 2.2s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
  transform-origin: center;
}

.hiw-node-group {
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.hiw-node-group:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 0 14px rgba(99, 102, 241, 0.8));
}

/* =========================================
   SIMULADOR INTERACTIVO (PASO 3)
   ========================================= */
.hiw-simulator-box {
  position: relative;
  padding: 1.6rem;
  background: #080A14;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hiw-sim-video-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(99, 102, 241, 0.28) 0%, rgba(236, 72, 153, 0.12) 50%, #080A14 85%);
  z-index: 0;
}

.hiw-sim-hud-top {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hiw-sim-progress-bars {
  display: flex;
  gap: 0.4rem;
  width: 100%;
}

.hiw-sim-bar {
  flex: 1;
  height: 3.5px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.hiw-sim-bar.active {
  background: rgba(255, 255, 255, 0.22);
}

.hiw-sim-bar-fill {
  height: 100%;
  background: #FFFFFF;
  width: 100%;
}

.hiw-sim-bar.active .hiw-sim-bar-fill {
  width: 0%;
  animation: simBarFill 5s infinite linear;
}

@keyframes simBarFill {
  0% { width: 0%; }
  100% { width: 100%; }
}

.hiw-sim-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hiw-sim-creator-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.25rem 0.75rem 0.25rem 0.35rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.76rem;
  color: #fff;
}

.hiw-sim-creator-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 700;
}

.hiw-sim-slowmo-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(236, 72, 153, 0.95);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 0 18px rgba(236, 72, 153, 0.7);
  animation: hiwPulse 1.6s infinite;
}

.hiw-sim-center-content {
  position: relative;
  z-index: 2;
  text-align: center;
  margin: 1.2rem 0;
}

.hiw-sim-countdown-svg {
  width: 58px;
  height: 58px;
  margin: 0 auto 0.6rem;
  display: block;
}

.hiw-countdown-ring {
  stroke-dasharray: 151;
  stroke-dashoffset: 0;
  transform: rotate(-90deg);
  transform-origin: 30px 30px;
  animation: countdownSpin 5s linear infinite;
}

.hiw-sim-prompt {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.02em;
}

/* Botones de decisión interactivos */
.hiw-sim-buttons-layer {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0.95rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hiw-sim-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 650;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
  border: none;
}

.hiw-sim-btn-cyan {
  background: rgba(6, 182, 212, 0.22);
  border: 2px solid #06B6D4;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.35);
}

.hiw-sim-btn-cyan:hover, .hiw-sim-btn-cyan:focus {
  background: #06B6D4;
  color: #090A10;
  transform: scale(1.06) translateY(-3px);
  box-shadow: 0 0 35px rgba(6, 182, 212, 0.8);
}

.hiw-sim-btn-pink {
  background: rgba(236, 72, 153, 0.22);
  border: 2px solid #EC4899;
  box-shadow: 0 0 25px rgba(236, 72, 153, 0.35);
}

.hiw-sim-btn-pink:hover, .hiw-sim-btn-pink:focus {
  background: #EC4899;
  color: #FFFFFF;
  transform: scale(1.06) translateY(-3px);
  box-shadow: 0 0 35px rgba(236, 72, 153, 0.8);
}

/* Toast de reacción al hacer clic en el simulador */
.hiw-sim-feedback-toast {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(9, 11, 20, 0.95);
  border: 1.5px solid var(--color-primary-light);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9), 0 0 30px rgba(99, 102, 241, 0.6);
  color: #FFFFFF;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-xl);
  font-size: 0.88rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
  text-align: center;
  white-space: nowrap;
}

.hiw-sim-feedback-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* =========================================
   MÉTRICAS Y VIRALIDAD (PASO 4)
   ========================================= */
.hiw-metrics-container {
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
}

.hiw-metrics-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hiw-metric-card-gauge {
  background: rgba(13, 17, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.hiw-gauge-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 1.2rem;
}

.hiw-gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.hiw-retention-circle {
  stroke-dasharray: 301.6;
  stroke-dashoffset: 24; /* ~92% fill */
  transition: stroke-dashoffset 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hiw-gauge-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hiw-gauge-number {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
}

.hiw-gauge-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
}

.hiw-retention-compare {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: left;
}

.hiw-compare-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
}

.hiw-compare-name {
  width: 90px;
  color: var(--color-text-muted);
  font-weight: 600;
}

.hiw-bar-bg {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.hiw-bar-fill.bad {
  height: 100%;
  background: #EF4444;
}

.hiw-bar-fill.good {
  height: 100%;
  background: var(--gradient-brand);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
}

.hiw-compare-pct {
  font-weight: 700;
  color: #FFFFFF;
  width: 32px;
  text-align: right;
}

.hiw-metrics-subcards {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hiw-subcard {
  background: rgba(13, 17, 28, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.1rem;
  transition: all 0.25s ease;
}

.hiw-subcard:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateX(4px);
}

.hiw-subcard-icon {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.hiw-subcard-val {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
}

.hiw-subcard-desc {
  font-size: 0.76rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-top: 0.2rem;
}

/* Reacciones flotantes ambientales */
.hiw-floating-reactions {
  position: absolute;
  right: 1.5rem;
  bottom: 0;
  width: 140px;
  height: 220px;
  pointer-events: none;
  z-index: 1;
}

.hiw-reaction-bubble {
  position: absolute;
  bottom: 0;
  font-size: 1.35rem;
  filter: drop-shadow(0 0 10px rgba(236, 72, 153, 0.5));
  animation: floatParticleVertical 4s cubic-bezier(0.2, 0.7, 0.4, 1) infinite;
}

.hiw-reaction-bubble.b1 { left: 10%; animation-delay: 0s; }
.hiw-reaction-bubble.b2 { left: 35%; animation-delay: 1.1s; }
.hiw-reaction-bubble.b3 { left: 60%; animation-delay: 2.2s; }
.hiw-reaction-bubble.b4 { left: 80%; animation-delay: 0.6s; }
.hiw-reaction-bubble.b5 { left: 25%; animation-delay: 1.8s; }
.hiw-reaction-bubble.b6 { left: 50%; animation-delay: 2.9s; }

/* =========================================
   CREATOR CALLOUT BANNER
   ========================================= */
.hiw-creator-callout {
  margin-top: 6rem;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.28) 0%, rgba(18, 22, 38, 0.9) 80%);
  border: 1px solid rgba(99, 102, 241, 0.45);
  border-radius: var(--radius-2xl);
  padding: 3.5rem 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(99, 102, 241, 0.2);
}

.hiw-callout-glow {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 150px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.4) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.hiw-callout-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hiw-callout-left {
  max-width: 620px;
}

.hiw-callout-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-accent-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.hiw-callout-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 0.8rem;
  line-height: 1.18;
}

.hiw-callout-desc {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.6;
}

/* =========================================
   RESPONSIVE DESIGN (TABLETS Y MÓVILES)
   ========================================= */
@media (max-width: 992px) {
  .narratix-how-it-works {
    padding: 5rem 1.25rem 4rem;
  }
  .hiw-header {
    margin-bottom: 3.5rem;
  }
  .hiw-laser-track {
    left: 22px;
    transform: none;
  }
  .hiw-step {
    grid-template-columns: 1fr;
    gap: 2.2rem;
    padding-left: 55px;
  }
  .hiw-step-marker {
    left: 22px;
    top: 1.8rem;
    transform: translate(-50%, 0);
  }
  .hiw-step-odd .hiw-step-text-col,
  .hiw-step-even .hiw-step-text-col {
    order: 1;
    padding: 0;
  }
  .hiw-step-odd .hiw-step-visual-col,
  .hiw-step-even .hiw-step-visual-col {
    order: 2;
    padding: 0;
  }
  .hiw-metrics-grid {
    grid-template-columns: 1fr;
  }
  .hiw-callout-content {
    flex-direction: column;
    text-align: center;
  }
  .hiw-callout-left {
    max-width: 100%;
  }
  .hiw-timeline-wrapper {
    gap: 5.5rem;
  }
}

@media (max-width: 600px) {
  .hiw-step {
    padding-left: 42px;
  }
  .hiw-laser-track {
    left: 16px;
  }
  .hiw-step-marker {
    left: 16px;
  }
  .hiw-marker-circle {
    width: 38px;
    height: 38px;
    font-size: 0.82rem;
  }
  .hiw-sim-buttons-layer {
    flex-direction: column;
    width: 100%;
  }
  .hiw-sim-btn {
    width: 100%;
    justify-content: center;
  }
}


