/**
 * Efecto de Seguridad - Cúpula de Protección
 */

/* Cúpula de protección */
.security-dome {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    perspective: 1000px;
    overflow: hidden;
}

.security-dome-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%) rotateX(20deg);
    transform-style: preserve-3d;
}

/* Estructura hexagonal de la cúpula */
.dome-hexagon-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 40px,
            rgba(0, 255, 255, 0.2) 40px,
            rgba(0, 255, 255, 0.2) 42px
        ),
        repeating-linear-gradient(
            60deg,
            transparent,
            transparent 40px,
            rgba(0, 255, 255, 0.2) 40px,
            rgba(0, 255, 255, 0.2) 42px
        ),
        repeating-linear-gradient(
            -60deg,
            transparent,
            transparent 40px,
            rgba(0, 255, 255, 0.2) 40px,
            rgba(0, 255, 255, 0.2) 42px
        );
    animation: domeEnergy 4s ease-in-out infinite;
}

/* Energía de la cúpula */
.dome-energy {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        rgba(0, 255, 255, 0.05) 50%,
        rgba(0, 255, 255, 0.1) 100%
    );
    animation: domePulse 3s ease-in-out infinite;
}

/* Ondas de energía */
.energy-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: energyWave 3s linear infinite;
}

.energy-wave:nth-child(2) {
    animation-delay: 1s;
}

.energy-wave:nth-child(3) {
    animation-delay: 2s;
}

/* Ataques entrantes */
.security-attack {
    position: fixed;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 0, 0, 0.9);
    border: 2px solid #ff0000;
    border-radius: 4px;
    color: white;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    z-index: 101;
    pointer-events: none;
    font-size: 14px;
    text-transform: uppercase;
}

.security-attack i {
    font-size: 18px;
}

/* Tipos específicos de ataques */
.attack-sql {
    background: rgba(255, 100, 0, 0.9);
    border-color: #ff6400;
    box-shadow: 0 0 20px rgba(255, 100, 0, 0.8);
}

.attack-xss {
    background: rgba(255, 0, 100, 0.9);
    border-color: #ff0064;
    box-shadow: 0 0 20px rgba(255, 0, 100, 0.8);
}

.attack-ddos {
    background: rgba(200, 0, 0, 0.9);
    border-color: #c80000;
    box-shadow: 0 0 20px rgba(200, 0, 0, 0.8);
}

.attack-exploit {
    background: rgba(150, 0, 255, 0.9);
    border-color: #9600ff;
    box-shadow: 0 0 20px rgba(150, 0, 255, 0.8);
}

.attack-fraud {
    background: rgba(255, 0, 200, 0.9);
    border-color: #ff00c8;
    box-shadow: 0 0 20px rgba(255, 0, 200, 0.8);
}

.attack-proxy {
    background: rgba(100, 100, 100, 0.9);
    border-color: #646464;
    box-shadow: 0 0 20px rgba(100, 100, 100, 0.8);
}

/* Efecto de impacto */
.impact-ripple {
    position: fixed;
    pointer-events: none;
    z-index: 102;
}

.impact-ring {
    position: absolute;
    border: 3px solid rgba(0, 255, 255, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: impactRipple 1s ease-out forwards;
}

/* Partículas de desintegración */
.disintegration-particle {
    position: fixed;
    width: 3px;
    height: 3px;
    background: #00ffff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 103;
    /* Sin box-shadow para mejor rendimiento */
}

/* Panel de estadísticas */
.security-stats {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #00ffff;
    border-radius: 8px;
    padding: 15px 20px;
    font-family: 'Courier New', monospace;
    color: #00ffff;
    z-index: 104;
    min-width: 250px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.security-stats h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-counter {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin: 10px 0;
}

.security-status {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #00ff00;
}

/* Logo protegido en el centro - DESHABILITADO
.protected-core {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 105;
    pointer-events: none;
}

.core-shield {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.core-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(0, 255, 255, 0.5);
    border-radius: 50%;
    animation: coreRotate 4s linear infinite;
}

.core-ring:nth-child(2) {
    width: 120%;
    height: 120%;
    animation-direction: reverse;
    animation-duration: 6s;
}

.core-content {
    font-size: 24px;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    animation: corePulse 2s ease-in-out infinite;
}
*/

/* Animación del escudo (giro 3D suave) */
@keyframes shieldFlip3D {
    0% {
        transform: rotateY(-30deg) scale(1.2);
    }
    50% {
        transform: rotateY(30deg) scale(1.2);
    }
    100% {
        transform: rotateY(-30deg) scale(1.2);
    }
}

/* Animaciones */
@keyframes domeEnergy {
    0%, 100% {
        opacity: 0.3;
        filter: hue-rotate(0deg);
    }
    50% {
        opacity: 0.6;
        filter: hue-rotate(20deg);
    }
}

@keyframes domePulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes energyWave {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

@keyframes impactRipple {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

@keyframes coreRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes corePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Efecto de desintegración de ataques */
@keyframes attackDisintegrate {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .security-stats {
        bottom: 10px;
        left: 10px;
        padding: 10px 15px;
        min-width: 200px;
    }
    
    .stats-counter {
        font-size: 20px;
    }
    
    .security-attack {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .core-shield {
        width: 100px;
        height: 100px;
    }
}