* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Configuración del body */
body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #533483 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Efectos de fondo */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Fondo tipo matriz */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 0, 0.03) 2px,
            rgba(0, 255, 0, 0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 0, 0.03) 2px,
            rgba(0, 255, 0, 0.03) 4px
        );
    pointer-events: none;
    z-index: -1;
}

/* Contenedor principal */
.container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Contenido principal */
.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    max-height: 100vh;
    margin-right: 300px;
}

/* Cajas de contenido */
.content-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 255, 255, 0.1);
    max-width: 900px;
    margin: 0 auto 30px auto;
}

/* Títulos */
h1 {
    color: #1a1a2e;
    margin-bottom: 20px;
    font-size: 2.5em;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    font-weight: bold;
    text-align: center;
}

h2 {
    color: #0f3460;
    margin-bottom: 15px;
    margin-top: 25px;
    font-size: 1.8em;
    border-bottom: 2px solid #00ffff;
    padding-bottom: 5px;
}

h3 {
    color: #16213e;
    margin-bottom: 10px;
    margin-top: 20px;
    font-size: 1.3em;
}

/* Párrafos */
p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}

/* Listas */
ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

li {
    color: #333;
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Barra lateral */
.sidebar {
    width: 280px;
    background: rgba(15, 15, 35, 0.9);
    backdrop-filter: blur(15px);
    border-left: 4px solid #00ffff;
    box-shadow: 
        -5px 0 20px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 255, 255, 0.2);
    padding: 20px;
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(0, 255, 255, 0.05) 0%, 
        rgba(255, 0, 255, 0.05) 50%, 
        rgba(0, 255, 0, 0.05) 100%);
    border-radius: 0;
    z-index: -1;
}

/* Título del menú */
.menu-title {
    text-align: center;
    font-size: 1.4em;
    font-weight: bold;
    color: #00ffff;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Lista del menú */
.menu-list {
    list-style: none;
}

.menu-item {
    margin-bottom: 15px;
}

/* Enlaces del menú */
.menu-link {
    display: block;
    padding: 15px 20px;
    color: #ffffff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.menu-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.menu-link:hover::before {
    left: 100%;
}

.menu-link:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
    color: #00ffff;
    transform: translateX(-5px);
    box-shadow: 
        0 5px 15px rgba(0, 255, 255, 0.3),
        0 0 20px rgba(0, 255, 255, 0.2);
}

/* Pie del menú */
.menu-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid rgba(0, 255, 255, 0.3);
}

.menu-footer-box {
    background: rgba(0, 255, 255, 0.1);
    padding: 15px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    text-align: center;
}

.menu-footer-text {
    color: #00ffff;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Acento cibernético */
.cyber-accent {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(0, 255, 255, 0.2);
    border-radius: 50%;
    top: 20px;
    right: 20px;
    animation: pulse 2s infinite;
}

/* Animación de pulso */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Animaciones adicionales */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
    100% { transform: translateY(0px) rotate(360deg); }
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

/* Botón flotante del terminal */
.floating-terminal-btn {
    position: fixed;
    top: 20px;
    right: 320px;
    background: rgba(0, 255, 255, 0.2);
    border: 2px solid #00ffff;
    color: #00ffff;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 1000;
}

.floating-terminal-btn:hover {
    background: rgba(0, 255, 255, 0.4);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

/* Terminal overlay */
.terminal-overlay {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #00ffff;
    border-radius: 10px;
    z-index: 2000;
    font-family: 'Courier New', monospace;
}

.terminal-header {
    background: #00ffff;
    color: #000;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

.terminal-close {
    background: none;
    border: none;
    color: #000;
    font-size: 20px;
    cursor: pointer;
    font-weight: bold;
}

.terminal-body {
    padding: 20px;
    height: calc(100% - 50px);
    display: flex;
    flex-direction: column;
}

#terminalOutput {
    flex: 1;
    overflow-y: auto;
    color: #00ffff;
    margin-bottom: 10px;
}

.terminal-input-line {
    display: flex;
    align-items: center;
}

.terminal-prompt {
    color: #00ff00;
    margin-right: 5px;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #00ffff;
    font-family: 'Courier New', monospace;
    outline: none;
}

.terminal-line {
    margin-bottom: 5px;
}

.terminal-response {
    color: #ffffff;
    margin-bottom: 10px;
    margin-left: 20px;
}

.terminal-loading {
    color: #ffff00;
    margin-bottom: 10px;
    margin-left: 20px;
}

.terminal-error {
    color: #ff0000;
    margin-bottom: 10px;
    margin-left: 20px;
}

.terminal-success {
    color: #00ff00;
    margin-bottom: 10px;
    margin-left: 20px;
}

/* Contador de amenazas */
.threat-counter {
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid #ff0000;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.counter-display {
    font-size: 2em;
    color: #ff0000;
    font-weight: bold;
    margin-top: 10px;
}

.counter-label {
    font-size: 0.5em;
    color: #ffffff;
    display: block;
}

/* Tarjetas interactivas */
.interactive-cards {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.security-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.security-card h3 {
    color: #0f3460;
    margin-bottom: 15px;
    font-size: 1.2em;
}

/* Texto con efecto glitch */
.glitch-text {
    position: relative;
    animation: glitch 2s infinite;
}

/* Partículas flotantes */
.particle {
    position: fixed;
    width: 2px;
    height: 2px;
    background: #00ffff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    animation: float 10s infinite linear;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        margin-right: 0;
        padding: 15px;
    }
    
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        order: -1;
    }
    
    .container {
        flex-direction: column;
    }
    
    .content-box {
        padding: 20px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    h3 {
        font-size: 1.2em;
    }
    
    .floating-terminal-btn {
        right: 20px;
        top: 10px;
    }
    
    .terminal-overlay {
        width: 90%;
        height: 70%;
    }
}
