/* ==========================================================================
   CELLCOM JEMT S.A. · AQUÍ PAGO
   Modelo 3: Video & Cinemática Scrollytelling
   Estilos Optimizados 60fps · Desktop (1440x900) & Mobile (390x844)
   ========================================================================== */

:root {
  --bg-deep: #050811;
  --bg-surface: #0a1122;
  --bg-card: rgba(14, 23, 44, 0.78);
  --bg-card-hover: rgba(20, 33, 63, 0.88);
  --border-subtle: rgba(0, 229, 255, 0.14);
  --border-glow: rgba(0, 229, 255, 0.45);
  --border-gold: rgba(255, 184, 0, 0.35);
  
  --primary-cyan: #00e5ff;
  --primary-cyan-rgb: 0, 229, 255;
  --accent-green: #00f29d;
  --accent-green-rgb: 0, 242, 157;
  --accent-gold: #ffb800;
  --accent-purple: #7928ca;
  --accent-blue: #0070f3;
  
  --text-main: #f0f4fc;
  --text-muted: #8fa0c0;
  --text-dim: #5a6b8a;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --shadow-glow: 0 0 30px rgba(0, 229, 255, 0.18);
  --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.45);
  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  background-color: var(--bg-deep);
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text-main);
}

/* ==========================================================================
   HEADER BANNER DE DEMOSTRACIÓN (REQUISITO OBLIGATORIO)
   ========================================================================== */
.demo-bar {
  position: sticky;
  top: 0;
  z-index: 99999;
  background: rgba(5, 8, 17, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 20px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.demo-bar-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.demo-bar-text {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 300px;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: var(--radius-full);
  color: var(--primary-cyan);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.demo-bar-link {
  color: var(--primary-cyan);
  text-decoration: none;
  font-weight: 600;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s;
}

.demo-bar-link:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.demo-models {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.demo-models-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-right: 4px;
}

.demo-model-btn {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.demo-model-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

.demo-model-btn.active {
  background: rgba(0, 229, 255, 0.18);
  border-color: var(--primary-cyan);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.25);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.site-nav {
  position: relative;
  z-index: 1000;
  padding: 16px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(5, 8, 17, 0.75);
  backdrop-filter: blur(16px);
}

.nav-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.brand-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.15);
}

.brand-sub {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.brand-tag {
  font-size: 0.72rem;
  color: var(--primary-cyan);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover {
  color: var(--primary-cyan);
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: linear-gradient(135deg, #00e5ff 0%, #0070f3 100%);
  color: #050811;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.55);
}

/* ==========================================================================
   CANVAS DE PULSOS Y FLUJO TRANSACCIONAL (60 FPS)
   ========================================================================== */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
}

/* Controles Cinemáticos Flotantes */
.cinematic-hud {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(10, 17, 34, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  box-shadow: var(--shadow-card);
}

.hud-btn {
  background: none;
  border: none;
  color: var(--primary-cyan);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}

.hud-btn:hover {
  background: rgba(0, 229, 255, 0.12);
}

.hud-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.hud-status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* ==========================================================================
   LATERAL STORYTELLING HUD TIMELINE (REQUISITO 4 CAPÍTULOS)
   ========================================================================== */
.story-timeline {
  position: fixed;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.timeline-track {
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 17px;
  width: 2px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 1;
}

.timeline-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--primary-cyan) 0%, var(--accent-green) 100%);
  box-shadow: 0 0 10px var(--primary-cyan);
  transition: height 0.25s ease-out;
}

.timeline-node {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  cursor: pointer;
}

.timeline-bubble {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0a1122;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-dim);
  transition: all 0.3s var(--transition-smooth);
}

.timeline-tooltip {
  background: rgba(10, 17, 34, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(12px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.timeline-node:hover .timeline-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.timeline-node.active .timeline-bubble {
  background: rgba(0, 229, 255, 0.2);
  border-color: var(--primary-cyan);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.6);
  transform: scale(1.15);
}

.timeline-node.active .timeline-tooltip {
  opacity: 1;
  transform: translateX(0);
  color: var(--primary-cyan);
  border-color: var(--primary-cyan);
}

/* ==========================================================================
   SECCIONES Y LAYOUT DE SCROLLYTELLING
   ========================================================================== */
.story-wrapper {
  position: relative;
  z-index: 10;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}

.story-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0;
  position: relative;
}

/* HERO SECTION */
.hero-section {
  min-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 60px 0 100px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: var(--primary-cyan);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-tag svg {
  width: 16px;
  height: 16px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 24px;
  color: #ffffff;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, var(--primary-cyan) 80%, #0070f3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary-cyan) 0%, #0070f3 100%);
  color: #050811;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.35);
  transition: all 0.25s var(--transition-smooth);
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 45px rgba(0, 229, 255, 0.6);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-cyan);
}

/* HERO STATS CARDS */
.hero-visual {
  position: relative;
}

.telemetry-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.telemetry-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-cyan), var(--accent-green), var(--accent-purple));
}

.telemetry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.telemetry-title {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--primary-cyan);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.telemetry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.stat-item {
  background: rgba(5, 8, 17, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 16px;
}

.stat-num {
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
  display: block;
  margin-bottom: 4px;
  font-feature-settings: 'tnum';
}

.stat-num.cyan { color: var(--primary-cyan); }
.stat-num.green { color: var(--accent-green); }
.stat-num.gold { color: var(--accent-gold); }

.stat-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.live-feed-ticker {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.ticker-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

/* ==========================================================================
   ESTILOS DE CAPÍTULO DE STORYTELLING
   ========================================================================== */
.chapter-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.chapter-badge.c1 { background: rgba(0, 229, 255, 0.12); color: var(--primary-cyan); border: 1px solid rgba(0, 229, 255, 0.3); }
.chapter-badge.c2 { background: rgba(0, 242, 157, 0.12); color: var(--accent-green); border: 1px solid rgba(0, 242, 157, 0.3); }
.chapter-badge.c3 { background: rgba(255, 184, 0, 0.12); color: var(--accent-gold); border: 1px solid rgba(255, 184, 0, 0.3); }
.chapter-badge.c4 { background: rgba(121, 40, 202, 0.16); color: #c084fc; border: 1px solid rgba(121, 40, 202, 0.4); }

.chapter-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #ffffff;
}

.chapter-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

/* CAPÍTULO 1: LA TIENDA QUE CRECE */
.c1-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.c1-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.story-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  gap: 20px;
  transition: all 0.3s ease;
}

.story-card:hover {
  border-color: var(--primary-cyan);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 229, 255, 0.15);
}

.story-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(0, 229, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-cyan);
  flex-shrink: 0;
}

.story-card-icon svg {
  width: 24px;
  height: 24px;
}

.story-card-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}

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

.c1-visual-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a1122;
  box-shadow: var(--shadow-card);
}

.c1-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.c1-visual-wrapper:hover .c1-img {
  transform: scale(1.03);
}

.c1-floating-tag {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(5, 8, 17, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* CAPÍTULO 2: LA RED TRANSACCIONAL */
.c2-container {
  width: 100%;
}

.c2-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 50px;
}

.services-filter-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.tab-btn.active {
  background: rgba(0, 242, 157, 0.15);
  border-color: var(--accent-green);
  color: var(--accent-green);
  box-shadow: 0 0 16px rgba(0, 242, 157, 0.25);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: var(--accent-green);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 242, 157, 0.12);
}

.service-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-green);
  text-transform: uppercase;
  margin-bottom: 12px;
  font-family: var(--font-mono);
}

.service-card h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #ffffff;
}

.service-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ARQUITECTURA RESILIENTE TERMINAL */
.network-architecture-box {
  background: #080d1a;
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.arch-info h3 {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 12px;
}

.arch-specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.arch-specs li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.arch-specs svg {
  color: var(--primary-cyan);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.terminal-visual {
  background: #04060c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.term-dot.r { background: #ff5f56; }
.term-dot.y { background: #ffbd2e; }
.term-dot.g { background: #27c93f; }

.terminal-log {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.log-line {
  display: flex;
  justify-content: space-between;
}

.log-status.ok { color: var(--accent-green); }

/* ==========================================================================
   CAPÍTULO 3: MONETIZACIÓN Y SIMULADOR INTERACTIVO
   ========================================================================== */
.c3-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.simulator-box {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
}

.simulator-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), #ff8800);
}

.simulator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.simulator-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.simulator-title svg {
  color: var(--accent-gold);
  width: 22px;
  height: 22px;
}

.sim-controls {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.sim-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sim-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.sim-label-name {
  color: var(--text-muted);
  font-weight: 600;
}

.sim-label-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-gold);
  font-size: 1rem;
}

input[type="range"].sim-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  transition: background 0.2s;
}

input[type="range"].sim-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-gold);
  cursor: pointer;
  box-shadow: 0 0 12px var(--accent-gold);
  transition: transform 0.15s ease;
}

input[type="range"].sim-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.sim-results {
  background: rgba(5, 8, 17, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.result-block {
  display: flex;
  flex-direction: column;
}

.result-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.result-amount {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--accent-gold);
  font-family: var(--font-mono);
}

.result-amount.primary {
  color: var(--accent-green);
}

.sim-total-banner {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.15), rgba(0, 242, 157, 0.12));
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sim-total-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.sim-total-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

/* ==========================================================================
   CAPÍTULO 4: AFILIACIÓN INMEDIATA & GUÍA PASO A PASO
   ========================================================================== */
.c4-container {
  width: 100%;
}

.c4-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  position: relative;
  transition: all 0.3s ease;
}

.step-card:hover {
  border-color: #c084fc;
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(121, 40, 202, 0.2);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(121, 40, 202, 0.2);
  border: 1px solid rgba(121, 40, 202, 0.5);
  color: #c084fc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  font-family: var(--font-mono);
  margin-bottom: 18px;
}

.step-card h4 {
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.step-code-highlight {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary-cyan);
}

/* FORMULARIO DE AFILIACIÓN INSTANTÁNEA */
.afiliacion-box {
  background: #090e1f;
  border: 1px solid rgba(121, 40, 202, 0.35);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.form-column h3 {
  font-size: 1.85rem;
  color: #ffffff;
  margin-bottom: 12px;
}

.form-column p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.registration-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.input-field {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 0.875rem;
  outline: none;
  transition: all 0.2s ease;
}

.input-field:focus {
  border-color: var(--primary-cyan);
  background: rgba(0, 229, 255, 0.04);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.2);
}

.form-submit-btn {
  padding: 16px 28px;
  background: linear-gradient(135deg, #7928ca 0%, #00e5ff 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 0 25px rgba(121, 40, 202, 0.4);
  transition: all 0.25s ease;
}

.form-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(121, 40, 202, 0.6);
}

.form-guarantee {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 10px;
}

.form-guarantee svg {
  color: var(--accent-green);
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   SEDES Y CONTACTO REAL
   ========================================================================== */
.contact-section {
  padding: 80px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.offices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.office-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 30px;
}

.office-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-cyan);
  text-transform: uppercase;
  margin-bottom: 12px;
  font-family: var(--font-mono);
}

.office-card h4 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 14px;
}

.office-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.office-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.office-info-list svg {
  color: var(--primary-cyan);
  flex-shrink: 0;
  margin-top: 3px;
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   FOOTER OBLIGATORIO CON AUTORÍA SIMCODEC
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 10;
  background: #03050a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 60px 32px 36px;
  color: var(--text-dim);
  font-size: 0.8125rem;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 14px;
  max-width: 380px;
  line-height: 1.6;
}

.footer-col h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary-cyan);
}

.footer-legal-bar {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-demo-notice {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.footer-demo-notice a {
  color: var(--primary-cyan);
  text-decoration: none;
  font-weight: 600;
}

.footer-demo-notice a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   MODAL DE CONFIRMACIÓN DE AFILIACIÓN
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 5, 10, 0.85);
  backdrop-filter: blur(16px);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #0a1122;
  border: 1px solid var(--primary-cyan);
  box-shadow: 0 0 50px rgba(0, 229, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 500px;
  width: 100%;
  position: relative;
  text-align: center;
}

.modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 242, 157, 0.15);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.modal-icon svg {
  width: 32px;
  height: 32px;
}

.modal-title {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 12px;
}

.modal-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.modal-credentials-box {
  background: #04060c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-bottom: 24px;
  text-align: left;
}

.modal-close-btn {
  padding: 12px 28px;
  background: var(--primary-cyan);
  color: #050811;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: opacity 0.2s;
}

.modal-close-btn:hover {
  opacity: 0.9;
}

/* ==========================================================================
   RESPONSIVIDAD (MOBILE 390x844 & TABLETS)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid,
  .c1-grid,
  .c3-grid,
  .network-architecture-box,
  .afiliacion-box,
  .offices-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .c4-steps-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .story-timeline {
    display: none;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .story-wrapper {
    padding: 0 20px;
  }
  
  .demo-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .nav-links {
    display: none;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-desc {
    font-size: 1rem;
  }
  
  .c4-steps-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .telemetry-grid {
    grid-template-columns: 1fr;
  }
  
  .sim-results {
    grid-template-columns: 1fr;
  }
  
  .afiliacion-box {
    padding: 24px;
  }
  
  .cinematic-hud {
    bottom: 16px;
    left: 16px;
    right: 16px;
    justify-content: space-between;
  }
}
