/* ==========================================================================
   1. VARIABLES Y SISTEMA BASE (RA9 DEEP PURPLE PALETTE)
   ========================================================================== */
:root {
  --ra9-pink: #ff40a0;
  --ra9-orange: #ff8c60;
  --ra9-purple: #a055f5; 
  --ra9-black: #050505;
  --bg-dark: var(--ra9-black);
  --text-white: #ffffff;

  --font-hero: "Bebas Neue", sans-serif;
  --font-display: "Anton", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  --transition: cubic-bezier(0.19, 1, 0.22, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { 
  scroll-behavior: smooth; 
  overflow-x: hidden; 
  width: 100%;
}
body {
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: var(--font-body);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw; 
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#data-analysis, #diagnostico, #agente-ia, #mantenimiento, #iniciar-diagnostico { scroll-margin-top: 110px; }

/* ==========================================================================
   2. FONDOS AMBIENTALES Y PARTÍCULAS DEL HERO
   ========================================================================== */
body::before {
  content: ""; position: fixed; inset: 0;
  background-image: linear-gradient(#333 1px, transparent 1px), linear-gradient(90deg, #333 1px, transparent 1px);
  background-size: 50px 50px; opacity: 0.03; z-index: -3; pointer-events: none;
}
#synapse-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; mix-blend-mode: screen; pointer-events: none; }
.bg-overlay { position: fixed; inset: 0; background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 90%); z-index: -1; pointer-events: none; }

/* ==========================================================================
   3. HEADER & NAVEGACIÓN (CON EFECTO REACTOR EN LOGO)
   ========================================================================== */
.top-nav {
  position: fixed; top: 0; left: 0; width: 100%; padding: 1.5rem 3rem; display: flex; justify-content: space-between; align-items: center; z-index: 100;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); 
  border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.logo-container {
  display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; 
  border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.1); background: var(--bg-dark); 
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); position: relative; z-index: 101; 
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.logo-container::before {
  content: ""; position: absolute; top: -3px; left: -3px; right: -3px; bottom: -3px; 
  border-radius: 50%; 
  background: conic-gradient(from 0deg, transparent 30%, var(--ra9-purple) 70%, var(--ra9-pink) 100%); 
  z-index: -1; opacity: 0; transition: opacity 0.4s ease;
}
.logo-container::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%; 
  border: 2px solid var(--ra9-pink); opacity: 0; transform: scale(1); 
  z-index: -2; pointer-events: none;
}
.nav-logo-img { 
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%; 
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1); 
  filter: brightness(0.85) contrast(1.1) grayscale(20%); 
}

/* Efecto Reactor Hover */
.logo-container:hover { 
  border-color: transparent; 
  transform: scale(1.05); 
  box-shadow: 0 0 20px var(--ra9-purple), 0 0 40px rgba(255, 64, 160, 0.5), inset 0 0 15px rgba(160, 85, 245, 0.4); 
}
.logo-container:hover::before { opacity: 1; animation: turbine-spin 1.5s linear infinite; }
.logo-container:hover::after { animation: logoPulseRing 1.5s cubic-bezier(0.21, 0.53, 0.3, 1) infinite; }
.logo-container:hover .nav-logo-img { transform: scale(0.92); filter: brightness(1.15) contrast(1.2) grayscale(0%); }

.nav-controls { display: flex; align-items: center; gap: 2rem; }
.lang-switch { font-family: var(--font-hero); font-size: 2.2rem; letter-spacing: 2px; color: rgba(255, 255, 255, 0.4); display: flex; align-items: center; gap: 0.8rem; }
.lang-option { cursor: pointer; background: none; border: none; font-family: inherit; font-size: inherit; color: inherit; padding: 0; outline: none; transition: color 0.3s ease; }
.lang-option:hover { color: var(--text-white); }
.lang-option.active { color: var(--ra9-pink); text-shadow: 0 0 15px var(--ra9-pink); }
.lang-divider { opacity: 0.3; }

.menu-toggle { background: none; border: none; cursor: pointer; display: flex; flex-direction: column; gap: 8px; padding: 10px; transition: transform 0.4s; }
.menu-toggle:hover { transform: scale(1.05); }
.bar { display: block; width: 40px; height: 4px; background: white; border-radius: 4px; transition: all 0.3s ease; }
.menu-toggle:hover .bar { background-color: var(--ra9-pink); box-shadow: 0 0 15px rgba(255, 64, 160, 0.6); }

/* ==========================================================================
   4. HERO SECTION & CALL TO ACTION
   ========================================================================== */
.hero-section { 
  min-height: 100vh; 
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  align-items: center; 
  text-align: center; 
  position: relative; 
  width: 100%; 
  /* FIX MAGISTRAL: 150px arriba para que el título no se estrelle con la barra de cristal */
  padding: 150px 20px 60px; 
}
.hero-content-wrapper { width: 100%; max-width: 1300px; z-index: 2; display: flex; flex-direction: column; align-items: center; }

/* FIX: Título Hero respirando para evitar cortes y solapamientos */
.hero-title-ia {
  font-family: var(--font-hero);
  font-size: clamp(3.5rem, 10vw, 9.5rem);
  line-height: 1.1; 
  padding-top: 0.1em;
  padding-bottom: 0.2em;
  text-transform: uppercase;
  letter-spacing: -1px;
  margin: 0 auto;
  /* Nota: Este gradiente se usa como base, pero puede ser sobreescrito en el HTML (ej. Landing de Datos) */
  background: linear-gradient(90deg, var(--ra9-pink) 0%, var(--ra9-orange) 50%, var(--ra9-pink) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(255, 64, 160, 0.3));
  animation: shineText 5s linear infinite;
}

.hero-subtitle-om {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.2rem, 3vw, 2.2rem);
  color: #fff;
  margin: 1.5rem 0 0 0;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5); 
}

.auto-text-span {
  position: relative; 
  display: inline-block; 
  color: var(--ra9-orange);
  font-weight: 700;
  transition: color 0.1s ease;
  text-rendering: optimizeLegibility;
  cursor: default;
}
.auto-text-span::after {
  content: "Automatiza con IA."; /* Nota: En las otras páginas se reemplaza el texto desde HTML o JS */
  position: absolute;
  top: 0; left: 0; width: 100%;
  color: var(--ra9-pink);
  opacity: 0; visibility: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, transparent 50%, black 50.1%, black 100%);
  transition: opacity 0s, visibility 0s, mask-position 0s;
  mask-position: -100% 0; 
  text-shadow: 0 0 15px rgba(255, 64, 160, 0.6);
}
.auto-text-span:hover, .auto-text-span:active { color: var(--ra9-pink); }
.auto-text-span:hover::after, .auto-text-span:active::after {
  opacity: 1; visibility: visible;
  transition: opacity 0s, visibility 0s, mask-position 0.3s linear;
  mask-position: 100% 0;
}

/* ESTILO CRISTAL + RAYO DE LUZ PARA LOS CTAs */
.cta-primary-btn {
  padding: 18px 40px;
  font-family: var(--font-hero);
  font-size: 1.5rem;
  letter-spacing: 1.5px;
  color: #fff;
  background: rgba(255, 64, 160, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 64, 160, 0.3);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(255, 64, 160, 0.1);
}

.cta-primary-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 64, 160, 0.5), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.cta-primary-btn:hover {
  transform: translateY(-3px) scale(1.02);
  background: rgba(255, 64, 160, 0.15);
  border-color: var(--ra9-pink);
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px rgba(255, 64, 160, 0.4), inset 0 0 20px rgba(255, 64, 160, 0.3);
}

.cta-primary-btn:hover::before {
  left: 200%;
}

/* ==========================================================================
   4.5 NAVEGACIÓN RÁPIDA HERO (PÍLDORAS ANCLA)
   ========================================================================== */
.hero-quick-nav {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.quick-nav-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #6e7681;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-pills .int-pill {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.anchor-pill {
  text-decoration: none;
  cursor: pointer;
}

/* ==========================================================================
   5. EL ARSENAL TÉCNICO (PILLS GRID)
   ========================================================================== */
.integrations-clone-section {
  padding: 150px 20px 120px; 
  position: relative; 
  background-color: transparent; 
  display: flex; 
  justify-content: center; 
  z-index: 10;
  mask-image: linear-gradient(to bottom, transparent, black 150px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 150px);
}
.integrations-clone-section::before {
  content: ""; position: absolute; inset: 0;
  background-image: 
    radial-gradient(1px 1px at 10% 10%, #fff, transparent),
    radial-gradient(1px 1px at 90% 20%, var(--ra9-purple), transparent),
    radial-gradient(1.5px 1.5px at 50% 50%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 30% 80%, var(--ra9-pink), transparent);
  background-size: 300px 300px;
  opacity: 0.3; z-index: 1; pointer-events: none;
  animation: driftStardust 80s linear infinite;
}

.int-container { max-width: 1000px; width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; z-index: 2; }
.int-header { width: 100%; text-align: center; margin-bottom: 40px; display: flex; flex-direction: column; align-items: center; }
.arrow-icon { font-size: 3rem; font-weight: bold; font-family: var(--font-mono); color: var(--ra9-pink); }

.clone-title { 
  font-family: var(--font-hero); 
  font-size: clamp(3rem, 5vw, 6rem); 
  background: linear-gradient(180deg, #ffffff 0%, #ffb6c1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase; 
  line-height: 1.1; 
  letter-spacing: 1px; 
  cursor: default; 
  transition: all 0.4s var(--transition); 
  filter: drop-shadow(0 4px 15px rgba(255, 64, 160, 0.15));
}
.clone-title:hover {
  background: linear-gradient(180deg, #ffffff 0%, var(--ra9-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 25px rgba(255, 64, 160, 0.4));
  transform: scale(1.02); 
}

.section-title-row { display: flex; align-items: center; justify-content: center; gap: 15px; margin-bottom: 16px; text-align: center; }
.stack-copy-block { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.stack-main-copy { 
  font-family: var(--font-body); 
  font-weight: 300 !important; 
  font-size: clamp(1.1rem, 2.5vw, 1.35rem); 
  color: #FFE4E1; 
  line-height: 1.6; 
  max-width: 850px; 
  text-align: center; 
  margin: 0 auto; 
  letter-spacing: 0.02em; 
}

.int-pills-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; max-width: 850px; }
.int-pill {
  background: rgba(20, 22, 30, 0.8); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 50px; padding: 12px 24px; font-size: 0.95rem; font-weight: 600; color: rgba(255, 255, 255, 0.85);
  display: flex; align-items: center; gap: 12px; cursor: default; backdrop-filter: blur(4px); position: relative; overflow: hidden; transition: 0.3s;
}
.int-pill::before { content: ""; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent); transform: skewX(-20deg); transition: left 0.5s ease; }
.int-pill i { font-size: 1.3rem; transition: transform 0.3s; }
.int-pill:hover { background: rgba(255, 255, 255, 0.1); color: white; transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.3); box-shadow: 0 5px 15px rgba(160, 85, 245, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.05); }
.int-pill:hover::before { left: 200%; }
.int-pill:hover i { transform: scale(1.2) rotate(8deg); filter: brightness(1.3); }

/* ==========================================================================
   6. SECCIONES NEURAL FLOW (LÍNEA DE TIEMPO)
   ========================================================================== */
.neural-section-flow {
  padding: 120px 20px;
  position: relative;
  display: flex;
  justify-content: center;
  z-index: 10;
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

.neural-container { max-width: 1100px; width: 100%; display: flex; flex-direction: column; align-items: center; }
.neural-header { text-align: center; margin-bottom: 100px; display: flex; flex-direction: column; align-items: center; }
.neural-flow-wrapper { position: relative; width: 100%; display: flex; flex-direction: column; gap: 80px; }

.neural-axis-line {
  position: absolute; left: 50%; top: -20px; bottom: -50px;
  width: 2px; background: rgba(255, 255, 255, 0.05);
  transform: translateX(-50%); z-index: 1; overflow: hidden;
}

.axis-energy {
  position: absolute; top: 0; left: 0; width: 100%; height: 250px;
  background: linear-gradient(to bottom, transparent, var(--ra9-purple), var(--ra9-pink), transparent);
  box-shadow: 0 0 20px var(--ra9-pink);
  animation: flowEnergy 3.5s infinite linear;
}

.neural-node { display: flex; align-items: center; width: 100%; position: relative; z-index: 2; }
.node-content { flex: 1; display: flex; align-items: center; gap: 30px; }
.left-node .node-content { justify-content: flex-end; text-align: right; flex-direction: row-reverse; padding: 0 100px 0 20px; }
.right-node .node-content { justify-content: flex-start; text-align: left; padding: 0 20px 0 100px; }
.node-spacer { flex: 1; }

.node-point {
  width: 20px; height: 20px; position: absolute; left: 50%;
  transform: translateX(-50%); display: flex; align-items: center; justify-content: center;
}
.point-core { width: 12px; height: 12px; background: #fff; border-radius: 50%; box-shadow: 0 0 15px var(--ra9-purple), 0 0 30px var(--ra9-pink); z-index: 2; }
.point-pulse { position: absolute; width: 45px; height: 45px; border-radius: 50%; border: 2px solid var(--ra9-purple); animation: pulseNode 2s infinite cubic-bezier(0.25, 1, 0.5, 1); }

.node-icon { font-size: 3rem; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3); transition: 0.4s var(--transition); display: flex; align-items: center; justify-content: center; }
.neural-node:hover .node-icon { color: var(--ra9-pink); -webkit-text-stroke: 0; transform: scale(1.15) rotate(-5deg); filter: drop-shadow(0 0 25px rgba(255, 64, 160, 0.6)); }

.node-title { font-family: var(--font-hero); font-size: 2.8rem; color: #fff; letter-spacing: 1px; margin-bottom: 10px; line-height: 1; transition: color 0.3s; }
.neural-node:hover .node-title { color: var(--ra9-purple); text-shadow: 0 0 10px rgba(160, 85, 245, 0.8), 0 0 20px rgba(160, 85, 245, 0.4); }

.node-text p { font-size: 1.1rem; color: #a0aab5; line-height: 1.6; max-width: 400px; transition: color 0.3s; }
.neural-node:hover .node-text p { color: rgba(255, 255, 255, 0.9); }
.right-node .node-text p { margin: 0 auto 0 0; }
.left-node .node-text p { margin: 0 0 0 auto; }

.custom-agent-flow .neural-axis-line { top: -20px; }
.custom-agent-flow .axis-energy { background: linear-gradient(to bottom, transparent, var(--ra9-pink), var(--ra9-purple), transparent); box-shadow: 0 0 20px rgba(160, 85, 245, 0.5); }

.maintenance-flow .neural-axis-line { top: -20px; }
.maintenance-flow .axis-energy { background: linear-gradient(to bottom, transparent, var(--ra9-purple), var(--ra9-orange), transparent); box-shadow: 0 0 20px rgba(255, 140, 96, 0.5); }

.text-cyan { color: var(--ra9-purple) !important; }
.text-pink { color: var(--ra9-pink) !important; }

.node-point.point-activated .point-core { background: #fff; box-shadow: 0 0 15px var(--ra9-purple), 0 0 30px rgba(160, 85, 245, 0.6); }
.point-pulse.pulse-cyan { border-color: var(--ra9-purple); }
.point-pulse.pulse-pink { border-color: var(--ra9-pink); }

/* ==========================================================================
   7. INYECCIÓN TÁCTICA (MIDDLE OF FUNNEL CTA)
   ========================================================================== */
.mof-cta-section {
  padding: 40px 20px 80px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 15;
}

.mof-container {
  background: linear-gradient(145deg, rgba(20, 22, 30, 0.8), rgba(10, 12, 16, 0.95));
  border: 1px solid rgba(160, 85, 245, 0.3);
  border-radius: 24px;
  padding: 60px 40px;
  max-width: 900px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), inset 0 0 20px rgba(255, 64, 160, 0.08);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
}

.mof-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 100%;
  background: radial-gradient(ellipse at bottom, rgba(255, 64, 160, 0.15), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.mof-title {
  font-family: var(--font-hero);
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: #fff;
  margin-bottom: 15px;
  letter-spacing: 1px;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.mof-subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: #a0aab5;
  margin: 0 auto 35px auto;
  max-width: 650px;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   8. EL ORÁCULO (FORMULARIO INTERACTIVO UX PREMIUM)
   ========================================================================== */
.oraculo-section { padding: 100px 20px 150px; display: flex; justify-content: center; position: relative; z-index: 10; }
.oraculo-container { max-width: 800px; width: 100%; }
.oraculo-header { text-align: center; margin-bottom: 50px; }

.oraculo-box {
  background: rgba(10, 12, 16, 0.85); border: 1px solid rgba(160, 85, 245, 0.2); border-radius: 20px;
  padding: 50px 40px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), inset 0 0 30px rgba(160, 85, 245, 0.05);
  backdrop-filter: blur(20px); position: relative; overflow: hidden; min-height: 400px;
}
.box-glow-top {
  position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--ra9-purple), var(--ra9-pink), transparent);
  box-shadow: 0 0 20px var(--ra9-pink);
}

.progress-tracker { position: relative; margin-bottom: 40px; padding: 0 20px; }
.progress-line {
  position: absolute; top: 50%; left: 0; transform: translateY(-50%);
  height: 2px; background: var(--ra9-purple); width: 0%;
  box-shadow: 0 0 15px var(--ra9-purple); transition: width 0.5s ease-in-out; z-index: 1;
}
.progress-tracker::before {
  content: ""; position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%);
  height: 2px; background: rgba(255, 255, 255, 0.05); z-index: 0;
}
.step-indicator { display: flex; justify-content: space-between; position: relative; z-index: 2; }
.step-dot { 
  width: 35px; height: 35px; background: #1a1d24; border: 2px solid rgba(255, 255, 255, 0.1); 
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.9rem; color: #6e7681; font-weight: bold; transition: all 0.4s ease;
}
.step-dot.active { 
  background: var(--bg-dark); border-color: var(--ra9-pink); color: var(--ra9-pink);
  box-shadow: 0 0 15px rgba(255, 64, 160, 0.4), inset 0 0 10px rgba(255, 64, 160, 0.2);
}

.form-step { display: none; animation: fadeSlideUp 0.5s var(--transition) forwards; }
.form-step.active { display: block; }

.step-question { font-family: var(--font-hero); font-size: 2.2rem; color: #fff; text-align: center; margin-bottom: 35px; letter-spacing: 0.5px; }

.options-grid { display: flex; flex-direction: column; gap: 15px; margin-bottom: 35px; }
.horizontal-grid { flex-direction: row; flex-wrap: wrap; }
.horizontal-grid .custom-radio { flex: 1; min-width: 150px; }

.custom-radio { cursor: pointer; }
.custom-radio input { display: none; }
.panel-style { 
  display: flex; align-items: center; gap: 15px; padding: 20px 25px; 
  background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.08); 
  border-radius: 12px; color: #a0aab5; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); position: relative; overflow: hidden;
}
.compact-panel { padding: 15px; justify-content: center; text-align: center; }

.panel-style i { font-size: 1.5rem; color: #6e7681; transition: 0.3s; }
.opt-text { font-family: var(--font-body); font-weight: 600; font-size: 1rem; position: relative; z-index: 2; }

.panel-style:hover { background: rgba(255, 255, 255, 0.05); transform: translateY(-2px); border-color: rgba(160, 85, 245, 0.3); }
.custom-radio input:checked + .panel-style { 
  background: rgba(160, 85, 245, 0.08); border-color: transparent; color: #fff; 
  box-shadow: 0 10px 20px rgba(0,0,0,0.3); transform: translateY(-3px) scale(1.02); 
}
.custom-radio input:checked + .panel-style::before {
  content: ""; position: absolute; inset: 0; border-radius: 12px; padding: 2px;
  background: linear-gradient(135deg, var(--ra9-purple), var(--ra9-pink));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.custom-radio input:checked + .panel-style i { color: var(--ra9-pink); filter: drop-shadow(0 0 8px rgba(255, 64, 160, 0.6)); }

.alert-panel:hover { border-color: var(--ra9-orange); }
.custom-radio input:checked + .alert-panel::before { background: linear-gradient(135deg, var(--ra9-orange), #ff4040); }
.custom-radio input:checked + .alert-panel i { color: var(--ra9-orange); }

.input-group { display: flex; flex-direction: column; gap: 20px; margin-bottom: 25px; }
.modern-input { position: relative; display: flex; align-items: center; }
.modern-input i { position: absolute; left: 20px; color: #6e7681; font-size: 1.2rem; transition: 0.3s; }
.modern-input input { 
  width: 100%; padding: 20px 20px 20px 55px; background: rgba(0, 0, 0, 0.5); 
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; color: #fff; 
  font-family: var(--font-body); font-size: 1rem; outline: none; transition: all 0.3s; 
}
.modern-input input:focus { border-color: var(--ra9-purple); box-shadow: 0 0 20px rgba(160, 85, 245, 0.2); background: rgba(0,0,0,0.8); }
.modern-input input:focus ~ i, .modern-input input:valid ~ i { color: var(--ra9-purple); }

.trust-anchor { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 30px; font-size: 0.85rem; color: #8b949e; font-family: var(--font-mono); }
.trust-anchor i { font-size: 1rem; }

.form-actions { display: flex; justify-content: space-between; align-items: center; }
.final-action { margin-top: 10px; }
.next-btn, .submit-btn { 
  background: linear-gradient(135deg, var(--ra9-pink), #d62d7e); color: #fff; border: none; 
  padding: 16px 32px; border-radius: 8px; font-family: var(--font-hero); font-size: 1.3rem; 
  cursor: pointer; transition: 0.3s; display: flex; align-items: center; gap: 12px; margin-left: auto; letter-spacing: 1px;
}
.next-btn:hover, .submit-btn:hover { background: #fff; color: var(--ra9-black); box-shadow: 0 0 25px rgba(255, 64, 160, 0.6); transform: translateY(-3px); }
.prev-btn { background: transparent; color: #a0aab5; border: none; font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: 0.3s; display: flex; align-items: center; gap: 8px; }
.prev-btn:hover { color: #fff; transform: translateX(-5px); }

.form-success { text-align: center; padding: 40px 0; }
.success-icon { font-size: 6rem; color: var(--ra9-purple); margin-bottom: 20px; animation: pulseBeat 2s infinite; filter: drop-shadow(0 0 20px rgba(160, 85, 245, 0.5)); }

/* ==========================================================================
   9. MENÚ OVERLAY (Cristal Premium Rápido)
   ========================================================================== */
.overlay-menu {
  position: fixed; top: 0; right: 0; width: 50%; height: 100%; z-index: 99999; 
  background: rgba(5, 5, 5, 0.98); backdrop-filter: blur(15px); 
  opacity: 0; visibility: hidden; transform: translateX(100%); 
  transition: all 0.6s var(--transition); display: flex; flex-direction: column; justify-content: center;
  will-change: transform, opacity;
}
.overlay-menu.active { opacity: 1; visibility: visible; transform: translateX(0); }

.close-btn { 
  position: absolute; top: 30px; right: 40px; background: none; border: none; color: white; 
  font-family: var(--font-hero); font-size: 6.5rem; line-height: 0.5; cursor: pointer; 
  transition: transform 0.3s, color 0.3s, text-shadow 0.3s; z-index: 100000;
}
.close-btn:hover { color: var(--ra9-pink); transform: rotate(90deg) scale(1.25); text-shadow: 0 0 35px rgba(255, 64, 160, 0.9); }

.menu-container { padding: 0 40px; }
.menu-tabs { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 3rem; justify-content: flex-start; }

.tab { 
  background: rgba(20, 22, 30, 0.8); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 50px; 
  padding: 12px 24px; font-size: 0.95rem; font-weight: 600; color: rgba(255, 255, 255, 0.85);
  display: inline-flex; align-items: center; gap: 12px; cursor: pointer; backdrop-filter: blur(8px); 
  position: relative; overflow: hidden; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
}
.tab::before { 
  content: ""; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; 
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent); 
  transform: skewX(-20deg); transition: left 0.4s ease; 
}
.tab i { font-size: 1.3rem; color: var(--glow, var(--ra9-purple)); transition: 0.3s; }
.tab-text { pointer-events: none; transition: color 0.3s; }

.tab:hover, .tab.active { background: rgba(255, 255, 255, 0.1); transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.3); box-shadow: 0 5px 15px rgba(160, 85, 245, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.05); }
.tab:hover::before, .tab.active::before { left: 200%; } 
.tab:hover .tab-text, .tab.active .tab-text { color: #ffffff; }
.tab:hover i, .tab.active i { transform: scale(1.25) rotate(8deg); filter: drop-shadow(0 0 8px rgba(255,255,255,0.6)); }

.menu-list { display: none; flex-direction: column; gap: 1.5rem; list-style: none; }
.menu-list.active { display: flex; }
.menu-item a { font-family: var(--font-hero); font-size: clamp(2.5rem, 4vw, 4rem); color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3); text-decoration: none; display: inline-block; transition: 0.4s; }
.menu-item:hover a { background: linear-gradient(90deg, var(--ra9-pink) 0%, var(--ra9-orange) 50%, var(--ra9-pink) 100%); background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: shineText 4s linear infinite; -webkit-text-stroke: 0; transform: translateX(15px); filter: drop-shadow(0 0 15px rgba(255, 64, 160, 0.4)); }

/* ==========================================================================
   10. HUB ORBITAL ESPACIAL (Smart Contact Hub)
   ========================================================================== */
.digital-orbit-hub { position: fixed; bottom: 30px; right: 30px; z-index: 9999; }
.orbit-forcefield { position: absolute; bottom: -40px; right: -40px; width: 60px; height: 60px; border-radius: 50%; background: transparent; transition: 0.4s; z-index: 0; }
.digital-orbit-hub:hover .orbit-forcefield { width: 250px; height: 250px; }

.orbit-trigger.smart-hub-trigger {
  position: relative; width: 65px; height: 65px; border-radius: 50%; background: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.1); cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center; transition: all 0.5s var(--transition);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}
.orbit-trigger.smart-hub-trigger:focus-visible { outline: 2px solid var(--ra9-pink); outline-offset: 5px; }

.hub-nucleus { width: 12px; height: 12px; background: #fff; border-radius: 50%; box-shadow: 0 0 15px var(--ra9-pink), 0 0 30px var(--ra9-purple); transition: all 0.4s ease; }
.hub-atoms { position: absolute; inset: 0; animation: hubRotate 6s linear infinite; }
.atom { position: absolute; width: 4px; height: 4px; background: var(--ra9-purple); border-radius: 50%; box-shadow: 0 0 8px var(--ra9-purple); animation: atomPulse 2s infinite ease-in-out; }
.atom:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s;}
.atom:nth-child(2) { top: 20%; right: 20%; animation-delay: 0.5s;}
.atom:nth-child(3) { bottom: 20%; left: 20%; animation-delay: 1s;}
.atom:nth-child(4) { bottom: 20%; right: 20%; animation-delay: 1.5s;}

@keyframes hubRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.digital-orbit-hub:hover .orbit-trigger.smart-hub-trigger { border-color: var(--ra9-pink); transform: scale(1.1); box-shadow: 0 0 40px rgba(255, 64, 160, 0.4); }
.digital-orbit-hub:hover .hub-nucleus { transform: scale(1.5); background: var(--ra9-pink); box-shadow: 0 0 25px var(--ra9-pink); }
.digital-orbit-hub:hover .hub-atoms { opacity: 0; transform: scale(0.5); transition: all 0.4s ease; }

.orbit-items { position: absolute; top: 0; right: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.orb-item {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px;
  background: rgba(15, 15, 20, 0.9); backdrop-filter: blur(5px); border: 1px solid rgba(160, 85, 245, 0.4);
  border-radius: 50%; color: white; display: flex; justify-content: center; align-items: center; font-size: 1.2rem;
  opacity: 0; transform: translate(0, 0) scale(0.3) rotate(-180deg); transition: all 0.5s var(--transition);
  pointer-events: none; text-decoration: none; box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.digital-orbit-hub:hover .orbit-items { pointer-events: auto; }
.digital-orbit-hub:hover .orb-item { opacity: 1; pointer-events: auto; transform: translate(var(--tx), var(--ty)) scale(1) rotate(0deg); }

.orb-item.linkedin  { --tx: 0px;    --ty: -110px; transition-delay: 0.0s; }
.orb-item.instagram { --tx: -55px;  --ty: -95px;  transition-delay: 0.1s; }
.orb-item.facebook  { --tx: -95px;  --ty: -55px;  transition-delay: 0.2s; }
.orb-item.whatsapp  { --tx: -110px; --ty: 0px;    transition-delay: 0.3s; }

.orb-item:hover { transform: translate(var(--tx), var(--ty)) scale(1.6) rotate(0deg) !important; z-index: 10; border-color: transparent; color: #fff; transition-delay: 0s !important; }
.orb-item.whatsapp:hover { background: #25D366; box-shadow: 0 0 25px rgba(37, 211, 102, 0.8); }
.orb-item.facebook:hover { background: #1877F2; box-shadow: 0 0 25px rgba(24, 119, 242, 0.8); }
.orb-item.instagram:hover { background: #E1306C; box-shadow: 0 0 25px rgba(225, 48, 108, 0.8); }
.orb-item.linkedin:hover { background: #0A66C2; box-shadow: 0 0 25px rgba(10, 102, 194, 0.8); }

/* ==========================================================================
   11. FOOTER "TRUST ANCHOR"
   ========================================================================== */
.ra9-footer { position: relative; background: var(--bg-dark); padding: 100px 20px 40px; z-index: 10; overflow: hidden; }
.footer-top-glow {
  position: absolute; top: 0; left: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ra9-purple), var(--ra9-pink), transparent);
  box-shadow: 0 0 15px var(--ra9-pink), 0 0 30px var(--ra9-purple); opacity: 0.5;
}
.footer-container { max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 2fr 1.5fr 1fr 1fr; gap: 50px; margin-bottom: 80px; }

.footer-logo-wrapper { display: flex; align-items: center; gap: 15px; text-decoration: none; margin-bottom: 25px; }
.footer-logo-img { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.1); }
.logo-text { font-family: var(--font-hero); font-size: 2.5rem; color: #fff; letter-spacing: 2px; }

.footer-manifesto { color: #8b949e; font-size: 1rem; line-height: 1.7; max-width: 350px; }
.footer-heading { font-family: var(--font-body); font-size: 0.85rem; font-weight: 700; color: #fff; letter-spacing: 0.15em; margin-bottom: 25px; }

.contact-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.contact-list li { display: flex; align-items: flex-start; gap: 15px; color: #a0aab5; font-size: 0.9rem; line-height: 1.5; }
.contact-list i { font-size: 1.2rem; margin-top: 3px; }
.contact-info { display: flex; flex-direction: column; gap: 4px; }
.contact-info span:first-child { color: #fff; font-weight: 600; font-family: var(--font-body); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.footer-links a { color: #8b949e; text-decoration: none; font-size: 0.95rem; transition: all 0.3s var(--transition); display: inline-block; }
.footer-links a:hover { color: var(--ra9-pink); transform: translateX(8px); text-shadow: 0 0 10px rgba(255, 64, 160, 0.4); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 30px; display: flex; justify-content: space-between; align-items: center; color: #6e7681; font-size: 0.85rem; font-family: var(--font-mono); }

/* ==========================================================================
   12. UTILIDADES Y ANIMACIONES GLOBALES
   ========================================================================== */
.premium-anim { opacity: 0; }
.premium-anim.anim-glass-slide.anim-active { animation: glassSlideAnim 0.8s var(--transition) forwards; animation-delay: var(--delay, 0s); }
.premium-anim.anim-fade-up.anim-active { animation: fadeUpAnim 0.7s var(--transition) forwards; animation-delay: var(--delay, 0s); }

@keyframes glassSlideAnim { 0% { opacity: 0; transform: translateY(20px); filter: blur(5px); } 100% { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes fadeUpAnim { 0% { opacity: 0; transform: translateY(30px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes fadeSlideUp { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes pulseBeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@keyframes popIn { 0% { opacity: 0; transform: translateY(20px) scale(0.9); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes atomPulse { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.5); opacity: 1; } }
@keyframes flowEnergy { 0% { top: -250px; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes pulseNode { 0% { transform: scale(0.8); opacity: 0.8; } 50% { transform: scale(1.3); opacity: 0; } 100% { transform: scale(0.8); opacity: 0; } }

/* Animaciones del Logo Reactor */
@keyframes turbine-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes logoPulseRing { 0% { transform: scale(1); opacity: 0.8; border-width: 2px; } 100% { transform: scale(1.8); opacity: 0; border-width: 0px; } }

/* Animación del texto Hero */
@keyframes shineText { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes driftStardust { 0% { background-position: 0 0, 0 0, 0 0, 0 0; } 100% { background-position: 1000px 1000px, 800px 1200px, 1500px 800px, 1200px 1000px; } }

/* ==========================================================================
   13. RESPONSIVE MEDIA QUERIES A PRUEBA DE BALAS
   ========================================================================== */
@media (max-width: 1024px) {
  .neural-diagnostic-section { padding-bottom: 0; }
  .custom-agent-flow .neural-axis-line { top: 0; }
  .maintenance-flow .neural-axis-line { top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 60px; }
  .brand-col { grid-column: span 2; }
}

@media (max-width: 900px) {
  .neural-section-flow { mask-image: none; -webkit-mask-image: none; padding: 80px 20px; }
  .custom-agent-flow .neural-axis-line, .maintenance-flow .neural-axis-line { top: 0; }
  .neural-header { margin-bottom: 60px; }
  .node-title { font-size: 2.2rem; }
}

@media (max-width: 768px) {
  /* FIX RESPONSIVE: Mantenemos el padding seguro en móviles para evitar el choque */
  .hero-section { padding: 120px 20px 40px; }
  .integrations-clone-section { padding: 80px 20px; mask-image: none; }
  .hero-title-ia { font-size: clamp(2.8rem, 10vw, 4.5rem); letter-spacing: 0px; }
  .hero-subtitle-om { font-size: 1.1rem; margin-top: 1rem; }
  .clone-title { font-size: 2.5rem; text-align: center; }
  .stack-main-copy { font-size: 1.1rem; line-height: 1.5; padding: 0 10px; }
  
  /* NEURAL RESPONSIVE */
  .neural-flow-wrapper { gap: 50px; }
  .neural-axis-line { left: 20px; transform: none; top: 0; bottom: 0; }
  .axis-energy { height: 150px; }
  .node-point { left: 20px; transform: translateX(-50%); }
  .point-pulse { width: 35px; height: 35px; }
  .neural-node { flex-direction: row !important; }
  .node-spacer { display: none; }
  .node-content, .left-node .node-content, .right-node .node-content { 
    flex: none; width: 100%; padding: 0 0 0 60px !important; 
    flex-direction: column; align-items: flex-start; text-align: left; gap: 15px; 
  }
  .node-icon { font-size: 2.5rem; -webkit-text-stroke: 1px var(--ra9-pink); }
  .neural-node:hover .node-icon { transform: scale(1.1); rotate: 0deg; }
  .node-title { font-size: 2rem; margin-bottom: 5px; }
  .node-text p { margin: 0; font-size: 1rem; }
  
  /* MIDDLE OF FUNNEL RESPONSIVE */
  .mof-container { padding: 40px 20px; border-radius: 16px; }
  .mof-cta-section { padding: 20px 20px 60px; }

  /* ORÁCULO RESPONSIVE */
  .oraculo-box { padding: 30px 20px; }
  .step-question { font-size: 1.5rem; }
  .horizontal-grid { flex-direction: column; }
  .next-btn, .submit-btn { padding: 14px 24px; font-size: 1.1rem; }
  
  /* MENU OVERLAY RESPONSIVE */
  .overlay-menu { width: 100%; }
  .close-btn { font-size: 4rem; top: 20px; right: 25px; }
  .menu-tabs { justify-content: center; gap: 8px; }
  .tab { padding: 6px 12px; font-size: 0.75rem; }
  .menu-item a { font-size: clamp(1.8rem, 6vw, 2.5rem); text-align: center; }
  .menu-container { padding: 0 20px; align-items: center; }
  .menu-list { align-items: center; }
  
  /* HUB ORBITAL RESPONSIVE */
  .digital-orbit-hub { bottom: 15px; right: 15px; }
  .orbit-trigger.smart-hub-trigger { width: 50px; height: 50px; }
  .hub-nucleus { width: 10px; height: 10px; }
  .orb-item { top: 5px; right: 5px; }
  
  /* FOOTER RESPONSIVE */
  .ra9-footer { padding: 80px 20px 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title-ia { font-size: 2.5rem; }
  .node-title { font-size: 1.8rem; }
  .stack-main-copy { font-size: 0.95rem; }
  .menu-item a { padding: 10px 0; } 
  .hero-pills { flex-direction: column; align-items: center; }
}
