/* ========================================================
   HERO SECTION: NÚCLEO TECNOLÓGICO Y RED DE CONEXIONES
   ======================================================== */

.hero-section {
  position: relative;
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  padding-top: clamp(3rem, 6vw, 5.5rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

/* Patrón de cuadrícula tecnológica sutil de fondo */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(rgba(12, 113, 195, 0.08) 1px, transparent 1px),
    radial-gradient(rgba(12, 113, 195, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
  pointer-events: none;
  opacity: 0.8;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  position: relative;
  z-index: 2;
}

/* Columna de Texto */
.hero-content {
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background-color: #FFFFFF;
  border: 1px solid rgba(12, 113, 195, 0.2);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 6px rgba(12, 113, 195, 0.06);
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(243, 145, 33, 0.25);
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-text-heading);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  color: var(--color-primary);
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  font-weight: 600;
  color: #1E293B;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.hero-intro {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

/* Indicadores de Respaldo */
.hero-highlights {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.hero-highlight-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-body);
}

.hero-highlight-item svg {
  color: var(--color-primary);
}

/* Columna Visual Tecnológica Abstracta */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Contenedor del Diagrama de Nodos Conectados */
.tech-network-card {
  width: 100%;
  max-width: 500px;
  background: linear-gradient(145deg, #091428 0%, #0E1F3B 100%);
  border: 1px solid rgba(46, 163, 242, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 20px 45px -10px rgba(9, 20, 40, 0.4),
              0 0 35px -5px rgba(12, 113, 195, 0.25);
  position: relative;
  overflow: hidden;
}

/* Marco de ventana estilo arquitectura */
.tech-network-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.window-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.25);
}

.window-dot:nth-child(1) { background-color: #EF4444; }
.window-dot:nth-child(2) { background-color: #F59E0B; }
.window-dot:nth-child(3) { background-color: #10B981; }

.tech-system-status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #38BDF8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 6px #10B981;
}

/* Área de Canvas Interactivo y Nodos */
.network-canvas-container {
  position: relative;
  width: 100%;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#heroCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Nodo Central: Núcleo Inputsoft */
.core-node {
  position: relative;
  z-index: 3;
  background: linear-gradient(135deg, #0C71C3 0%, #004D73 100%);
  border: 2px solid #38BDF8;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.4rem;
  color: #FFFFFF;
  text-align: center;
  box-shadow: 0 0 25px rgba(46, 163, 242, 0.6);
  pointer-events: none;
}

.core-node-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.core-node-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #BAE6FD;
  display: block;
}

/* Nodos Periféricos de Especialidad */
.specialty-node {
  position: absolute;
  z-index: 3;
  background: rgba(15, 30, 56, 0.9);
  border: 1px solid rgba(46, 163, 242, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  color: #F8FAFC;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.specialty-node svg {
  color: #38BDF8;
  width: 14px;
  height: 14px;
}

.specialty-node:hover {
  border-color: var(--color-accent);
  color: #FFFFFF;
  transform: scale(1.06);
  box-shadow: 0 0 15px rgba(243, 145, 33, 0.4);
}

/* Posiciones de los nodos en la composición */
.node-ciberseguridad { top: 12px; left: 18px; }
.node-ia             { top: 12px; right: 18px; }
.node-software       { bottom: 16px; left: 16px; }
.node-integraciones  { bottom: 16px; right: 16px; }
.node-contabilidad   { top: 48%; left: -6px; }
.node-remuneraciones { top: 48%; right: -6px; }
.node-facturacion    { bottom: -6px; left: 50%; transform: translateX(-50%); }

/* Responsive */
@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-highlights {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .hero-visual {
    margin-top: 1.5rem;
  }
}

@media (max-width: 576px) {
  .specialty-node {
    font-size: 0.68rem;
    padding: 0.3rem 0.55rem;
  }
  .node-contabilidad { left: 4px; }
  .node-remuneraciones { right: 4px; }
  .network-canvas-container { height: 310px; }
}
