* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: #000000;
    color: #00ff00;
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 95%;
    max-width: 1400px;
    height: 90vh;
    gap: 3rem;
}

.monitor {
    flex: 1;
    background: #0d0d0d;
    border: 20px solid #1a1a1a;
    border-radius: 15px;
    box-shadow: 
        0 0 50px rgba(0, 255, 0, 0.4),
        inset 0 0 50px rgba(0, 0, 0, 0.9),
        -8px -8px 20px rgba(0, 0, 0, 0.8),
        8px 8px 20px rgba(0, 0, 0, 0.8);
    position: relative;
    height: 100%;
    overflow: hidden;
}

.monitor::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    z-index: 10;
}

.content {
    width: 100%;
    height: 100%;
    padding: 2rem;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    background: linear-gradient(0deg, transparent 24%, rgba(0, 255, 0, 0.03) 25%, rgba(0, 255, 0, 0.03) 26%, transparent 27%, transparent 74%, rgba(0, 255, 0, 0.03) 75%, rgba(0, 255, 0, 0.03) 76%, transparent 77%, transparent);
    background-size: 100% 50px;
    animation: flicker 0.15s infinite;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.5);
}

@keyframes flicker {
    0%, 100% {
        text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
    }
    50% {
        text-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
    }
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 9;
    animation: moveLines 0.1s linear infinite;
}

@keyframes moveLines {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(2px);
    }
}

.terminal-header {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #00ff00;
    padding-bottom: 0.5rem;
    line-height: 1.8;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0.9;
    }
}

.terminal-main {
    font-size: 0.85rem;
    line-height: 1.6;
}

.terminal-section {
    margin-bottom: 1.5rem;
    border: 2px solid #00ff00;
    padding: 1.2rem;
    background: rgba(0, 40, 0, 0.3);
    box-shadow: 
        0 0 15px rgba(0, 255, 0, 0.3),
        inset 0 0 10px rgba(0, 255, 0, 0.1);
}

.terminal-section h2 {
    color: #00ff00;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    border-bottom: 1px dashed #00ff00;
    padding-bottom: 0.5rem;
}

.terminal-text,
.members-display,
.contact-display,
.social-display {
    color: #00ff00;
}

.member-terminal {
    margin: 0.5rem 0;
    padding: 0.5rem;
    border-left: 2px solid #00ff00;
    padding-left: 1rem;
}

.contact-display p {
    margin: 0.3rem 0;
}

.terminal-link {
    display: block;
    color: #00ff00;
    text-decoration: none;
    margin: 0.3rem 0;
    padding: 0.3rem;
    border-left: 2px solid #00ff00;
    padding-left: 1rem;
    transition: all 0.3s ease;
}

.terminal-link:hover {
    background: rgba(0, 255, 0, 0.2);
    box-shadow: inset 0 0 10px rgba(0, 255, 0, 0.3);
    transform: translateX(10px);
}

.terminal-footer {
    margin-top: 2rem;
    border-top: 2px solid #00ff00;
    padding-top: 1rem;
    font-size: 0.8rem;
    text-align: center;
}

.data {
    font-weight: bold;
    color: #00ff00;
}

/* ENTIDAD VIRUS - CABEZA CON MANOS */
.entity-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    perspective: 2000px;
}

.entity-scene {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    position: relative;
}

/* CABEZA */
.entity {
    position: relative;
    width: 200px;
    height: 200px;
}

.head-container {
    position: relative;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 30px rgba(0, 255, 0, 0.8));
}

.head-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 40% 40%, #006600, #001a00);
    border: 3px solid #00ff00;
    border-radius: 45% 45% 35% 35%;
    box-shadow: 
        inset 0 0 30px rgba(0, 0, 0, 0.8),
        inset -10px -10px 20px rgba(0, 0, 0, 0.6);
    animation: pulse-head 1.8s ease-in-out infinite;
}

@keyframes pulse-head {
    0%, 100% {
        box-shadow: 
            inset 0 0 30px rgba(0, 0, 0, 0.8),
            inset -10px -10px 20px rgba(0, 0, 0, 0.6),
            0 0 30px rgba(0, 255, 0, 0.6);
    }
    50% {
        box-shadow: 
            inset 0 0 30px rgba(0, 0, 0, 0.8),
            inset -10px -10px 20px rgba(0, 0, 0, 0.6),
            0 0 50px rgba(0, 255, 0, 0.9);
    }
}

.head-face {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 10;
}

.left-eye-socket,
.right-eye-socket {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #00ff00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
    top: 50px;
}

.left-eye-socket {
    left: 40px;
}

.right-eye-socket {
    right: 40px;
}

.entity-eye {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 30% 30%, rgba(0, 255, 0, 0.2), rgba(0, 0, 0, 0.8));
}

.eye-pupil {
    width: 16px;
    height: 16px;
    background: radial-gradient(circle at 35% 35%, #00ff00, #008800);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px rgba(0, 255, 0, 1);
    transition: left 0.08s ease-out, top 0.08s ease-out;
}

.mouth {
    position: absolute;
    width: 50px;
    height: 25px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid #00ff00;
    border-top: none;
    border-radius: 0 0 50px 50%;
    box-shadow: inset 0 0 10px rgba(0, 255, 0, 0.3);
}

.head-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 45% 45% 35% 35%;
    border: 2px solid #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* MANOS */
.hand {
    position: absolute;
    width: 80px;
    height: 100px;
    top: 40px;
}

.left-hand {
    left: -150px;
}

.right-hand {
    right: -150px;
}

.palm {
    position: absolute;
    width: 50px;
    height: 60px;
    background: radial-gradient(circle at 40% 40%, #00ff00, #006600);
    border: 2px solid #00ff00;
    border-radius: 50% 50% 30% 30%;
    left: 50%;
    top: 30px;
    transform: translateX(-50%);
    box-shadow: 
        0 0 20px rgba(0, 255, 0, 0.6),
        inset -5px -5px 10px rgba(0, 0, 0, 0.5);
}

.palm::before,
.palm::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 20px;
    background: linear-gradient(to bottom, #00ff00, #008800);
    border: 1px solid #00ff00;
    border-radius: 50%;
    bottom: -15px;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.5);
}

.palm::before {
    left: 10px;
    animation: thumb-wiggle 1s ease-in-out infinite;
}

.palm::after {
    right: 10px;
    animation: thumb-wiggle 1s ease-in-out infinite 0.2s;
}

.finger {
    position: absolute;
    width: 12px;
    background: linear-gradient(90deg, #00ff00, #008800);
    border: 1px solid #00ff00;
    border-radius: 6px;
    left: 50%;
    top: -5px;
    transform: translateX(-50%);
    box-shadow: 0 0 6px rgba(0, 255, 0, 0.6);
}

.f1 {
    height: 35px;
    animation: finger-wave 1.2s ease-in-out infinite;
}

.f2 {
    height: 40px;
    left: calc(50% - 15px);
    animation: finger-wave 1.2s ease-in-out infinite 0.15s;
}

.f3 {
    height: 35px;
    left: calc(50% + 15px);
    animation: finger-wave 1.2s ease-in-out infinite 0.3s;
}

@keyframes finger-wave {
    0%, 100% { transform: translateX(-50%) rotateZ(-5deg); }
    25% { transform: translateX(-50%) rotateZ(-20deg); }
    50% { transform: translateX(-50%) rotateZ(0deg); }
    75% { transform: translateX(-50%) rotateZ(-15deg); }
}

@keyframes thumb-wiggle {
    0%, 100% { transform: rotateZ(0deg); }
    50% { transform: rotateZ(15deg); }
}

.left-hand .finger {
    transform: translateX(-50%) scaleX(-1);
}

.left-hand .f2 {
    left: calc(50% + 15px);
}

.left-hand .f3 {
    left: calc(50% - 15px);
}

.right-hand .finger {
    transform: translateX(-50%);
}

/* ANIMACION DE MANOS */
.hand.waving-left {
    animation: wave-left 0.8s ease-in-out;
}

.hand.waving-right {
    animation: wave-right 0.8s ease-in-out;
}

@keyframes wave-left {
    0% { transform: translateX(0); }
    50% { transform: translateX(-40px) rotateZ(20deg); }
    100% { transform: translateX(0); }
}

@keyframes wave-right {
    0% { transform: translateX(0); }
    50% { transform: translateX(40px) rotateZ(-20deg); }
    100% { transform: translateX(0); }
}

/* TEXTO */
.entity-text {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    color: #00ff00;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
    padding: 0.7rem 1.2rem;
    border: 2px solid #00ff00;
    border-radius: 4px;
    background: rgba(0, 30, 0, 0.9);
    z-index: 20;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    letter-spacing: 1px;
    font-weight: bold;
}

@keyframes type-in {
    0% {
        opacity: 0;
        clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    }
    1% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

@keyframes type-out {
    0% {
        opacity: 1;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    99% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
    }
}

.entity-text.appearing {
    animation: type-in 0.6s ease-out forwards;
}

.entity-text.disappearing {
    animation: type-out 0.6s ease-out forwards;
}

.entity.speaking {
    animation: head-talk 0.4s ease-out;
}

@keyframes head-talk {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 255, 0, 0.05);
}

::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.8);
}

@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    
    .entity {
        width: 150px;
        height: 150px;
    }
    
    .left-hand {
        left: -100px;
    }
    
    .right-hand {
        right: -100px;
    }
}
