/* =========================================
   NEXUMBITE "HIGH-TECH" HERO ANIMATION
   Estilo: Blanco, Agresivo, Tech, Formal
   ========================================= */

.insights-hero {
    position: relative;
    width: 100%;
    min-height: 450px; /* Suficiente altura para lucir */
    overflow: hidden;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Borde inferior tecnológico rojo */
    border-bottom: 2px solid #8A0100;
}

/* Capa de contenido para que el texto esté encima */
.hero-content-layer {
    position: relative;
    z-index: 10;
    text-align: center;
    /* Un ligero fondo difuminado detrás del texto para legibilidad */
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 70%);
    padding: 20px;
}

/* Wrapper de la animación (fondo) */
.tech-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    perspective: 800px; /* Profundidad 3D fuerte */
    overflow: hidden;
}

/* 1. PLANO DE REJILLA 3D (MOVIMIENTO RÁPIDO) */
.grid-plane {
    position: absolute;
    width: 200%;
    height: 200%;
    left: -50%;
    top: -50%;
    background-image: 
        linear-gradient(rgba(200, 200, 200, 0.4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 200, 200, 0.4) 1px, transparent 1px);
    background-size: 80px 80px;
    transform: rotateX(60deg); /* Perspectiva agresiva */
    animation: gridRace 4s linear infinite; /* Muy rápido */
    opacity: 0.6;
}

@keyframes gridRace {
    0% { transform: translateY(0) rotateX(60deg); }
    100% { transform: translateY(80px) rotateX(60deg); }
}

/* 2. LÍNEAS CYBER VERTICALES (LÁSER ROJO/GRIS) */
.cyber-lines span {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #8A0100, transparent);
    opacity: 0;
    animation: laserFall 3s ease-in-out infinite;
}

.cyber-lines span:nth-child(1) { left: 10%; animation-duration: 2.5s; animation-delay: 0s; height: 150%; }
.cyber-lines span:nth-child(2) { left: 30%; animation-duration: 3s; animation-delay: 1.5s; background: linear-gradient(to bottom, transparent, #ccc, transparent); height: 120%; }
.cyber-lines span:nth-child(3) { left: 70%; animation-duration: 2s; animation-delay: 0.5s; height: 140%; }
.cyber-lines span:nth-child(4) { left: 90%; animation-duration: 3.5s; animation-delay: 1s; background: linear-gradient(to bottom, transparent, #ccc, transparent); height: 130%; }

@keyframes laserFall {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(100%); opacity: 0; }
}

/* 3. HEXÁGONOS FLOTANTES GIRATORIOS */
.floating-hex {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px dashed rgba(138, 1, 0, 0.15); /* Rojo sutil */
    border-radius: 50%; /* Círculo técnico */
    animation: spinRight 10s linear infinite;
}

.floating-hex::before {
    content: '';
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    border: 2px solid transparent;
    border-top: 2px solid #8A0100;
    border-bottom: 2px solid #8A0100;
    border-radius: 50%;
    animation: spinLeft 5s linear infinite;
}

.hex-2 {
    width: 500px;
    height: 500px;
    border: 1px solid rgba(200,200,200, 0.4);
    animation: spinLeft 15s linear infinite;
}

@keyframes spinRight { 100% { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spinLeft { 100% { transform: translate(-50%, -50%) rotate(-360deg); } }

/* 4. PARTÍCULAS DE DATOS (PUNTOS ROJOS RÁPIDOS) */
.data-particles i {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #8A0100;
    border-radius: 50%;
    box-shadow: 0 0 10px #8A0100;
    opacity: 0;
    animation: particleZoom 4s linear infinite;
}

.data-particles i:nth-child(1) { left: 20%; top: 40%; animation-delay: 0s; }
.data-particles i:nth-child(2) { left: 80%; top: 30%; animation-delay: 1s; }
.data-particles i:nth-child(3) { left: 50%; top: 80%; animation-delay: 2s; }
.data-particles i:nth-child(4) { left: 10%; top: 10%; animation-delay: 0.5s; }
.data-particles i:nth-child(5) { left: 90%; top: 90%; animation-delay: 1.5s; }

@keyframes particleZoom {
    0% { transform: scale(0); opacity: 0; }
    50% { opacity: 1; transform: scale(1.5); }
    100% { transform: scale(0); opacity: 0; }
}

/* =====================================
   OPTIMIZACIÓN MÓVIL
   ===================================== */
@media (max-width: 768px) {
    .grid-plane { animation-duration: 8s; } /* Un poco más lento en móvil */
    .hex-2 { display: none; } /* Menos ruido en pantallas chicas */
    .hero-content-layer { background: rgba(255,255,255,0.8); } /* Más contraste */
}