* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-black: #000000;
    --bg-blue: #352879;
    --green-phosphor: #00ff00;
    --yellow-phosphor: #ffff00;
    --cyan-phosphor: #00ffff;
    --green-dim: #00cc00;
    --yellow-dim: #cccc00;
    --cyan-dim: #00cccc;
}

body {
    background-color: var(--bg-blue);
    font-family: 'Press Start 2P', 'Courier New', monospace;
    color: var(--green-phosphor);
    line-height: 1.6;
    padding: 10px;
    min-height: 100vh;
    overflow-x: hidden;
}

.commodore-screen {
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--bg-black);
    border: 3px double var(--green-phosphor);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
}

.header-container {
    display: flex;
    align-items: flex-start;
    position: relative;
}

.header-logo {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    padding: 15px;
    display: flex;
    align-items: flex-start;
}

.terminal-logo {
    height: 185px;
    width: auto;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    filter: 
        brightness(1.1) 
        contrast(1.2)
        drop-shadow(0 0 8px var(--green-phosphor))
        drop-shadow(0 0 15px rgba(0, 255, 0, 0.5));
    position: relative;
    animation: terminalGlow 3s ease-in-out infinite;
}

/* Efecto de brillo fosforescente */
@keyframes terminalGlow {
    0%, 100% {
        filter: 
            brightness(1.1) 
            contrast(1.2)
            drop-shadow(0 0 8px var(--green-phosphor))
            drop-shadow(0 0 15px rgba(0, 255, 0, 0.5));
    }
    50% {
        filter: 
            brightness(1.2) 
            contrast(1.3)
            drop-shadow(0 0 12px var(--green-phosphor))
            drop-shadow(0 0 20px rgba(0, 255, 0, 0.7));
    }
}

/* Efecto de scanlines sobre el logo */
.terminal-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    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: 2;
    animation: scanlineMove 8s linear infinite;
}

@keyframes scanlineMove {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(4px);
    }
}

/* Efecto de ruido/estático sutil */
.terminal-logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 255, 0, 0.03) 0px,
            transparent 1px,
            transparent 2px,
            rgba(0, 255, 0, 0.03) 3px
        );
    pointer-events: none;
    z-index: 3;
    opacity: 0.5;
    animation: staticNoise 0.1s infinite;
}

@keyframes staticNoise {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

.header-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.screen-header {
    background-color: var(--bg-black);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--green-phosphor);
    position: relative;
}

.header-text {
    font-size: 10px;
    color: var(--yellow-phosphor);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--yellow-phosphor);
    flex: 1;
    text-align: center;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
}

.lang-btn {
    background: transparent;
    border: 2px solid var(--green-phosphor);
    color: var(--green-phosphor);
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 8px;
    padding: 5px 10px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
}

.lang-btn:hover {
    background-color: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 10px var(--green-phosphor);
}

.lang-btn.active {
    background-color: rgba(0, 255, 0, 0.2);
    color: var(--yellow-phosphor);
    border-color: var(--yellow-phosphor);
    box-shadow: 0 0 15px var(--yellow-phosphor);
}

.lang-separator {
    color: var(--green-phosphor);
    font-size: 10px;
}

.navigation-menu {
    padding: 20px;
    border-bottom: 2px solid var(--green-phosphor);
    text-align: center;
    flex: 1;
}

.nav-title {
    font-size: 12px;
    color: var(--cyan-phosphor);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.nav-commands {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.nav-link {
    color: var(--green-phosphor);
    text-decoration: none;
    font-size: 10px;
    padding: 10px 15px;
    border: 2px solid var(--green-phosphor);
    background-color: rgba(0, 255, 0, 0.05);
    text-transform: uppercase;
    transition: all 0.2s;
    display: inline-block;
}

.nav-link:hover {
    background-color: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 15px var(--green-phosphor);
    color: var(--yellow-phosphor);
    border-color: var(--yellow-phosphor);
}

.nav-link.active {
    background-color: rgba(0, 255, 0, 0.3);
    color: var(--yellow-phosphor);
    border-color: var(--yellow-phosphor);
    box-shadow: 0 0 20px var(--yellow-phosphor);
}

.terminal-body {
    padding: 20px;
    min-height: 500px;
}

.prompt-line {
    margin-bottom: 15px;
    font-size: 12px;
    display: flex;
    align-items: center;
    position: relative;
    min-height: 20px;
}

.prompt-symbol {
    color: var(--green-phosphor);
    margin-right: 8px;
    flex-shrink: 0;
}

.prompt-command {
    color: var(--cyan-phosphor);
}

.command-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--green-phosphor);
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 12px;
    flex: 1;
    margin-left: 2px;
    min-width: 0;
    caret-color: transparent;
    position: relative;
}

#custom-cursor {
    color: var(--green-phosphor);
    animation: blink 1s infinite;
    flex-shrink: 0;
    margin-left: 0;
    position: absolute;
    pointer-events: none;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 12px;
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
}

.cursor-measure {
    position: absolute;
    visibility: hidden;
    white-space: pre;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 12px;
    top: 0;
    left: -9999px;
}

.command-input::placeholder {
    color: var(--green-dim);
}

.command-history {
    margin-bottom: 10px;
    font-size: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px 0;
    font-family: 'Press Start 2P', 'Courier New', monospace;
}

.command-history .history-line {
    margin-bottom: 12px;
    color: var(--green-phosphor);
    font-size: 12px;
}

.command-history .history-output {
    color: var(--cyan-phosphor);
    white-space: pre-wrap;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    line-height: 1.8;
    margin-top: 5px;
    margin-left: 20px;
    font-size: 12px;
}

.command-history .history-error {
    color: #ff4444;
    font-size: 12px;
}

.ascii-cube {
    font-family: 'Courier New', monospace;
    font-size: 5px;
    line-height: 1;
    color: var(--yellow-phosphor);
    text-align: center;
    margin: 30px 0;
    white-space: pre;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-shadow: 0 0 5px var(--yellow-phosphor);
}

@media (max-width: 768px) {
    .ascii-cube {
        height: 150px;
        font-size: 4px;
    }
}

@media (min-width: 1200px) {
    .ascii-cube {
        height: 250px;
        font-size: 6px;
    }
}

.typewriter {
    overflow: hidden;
}

.typewriter-content {
    display: inline-block;
}

.cursor {
    color: var(--green-phosphor);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.content {
    margin: 30px 0;
    font-size: 10px;
}

.content h1 {
    color: var(--yellow-phosphor);
    font-size: 16px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.content h2 {
    color: var(--yellow-phosphor);
    font-size: 12px;
    margin-top: 25px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.content p {
    color: var(--green-phosphor);
    margin-bottom: 15px;
    line-height: 1.8;
}

.content a {
    color: var(--yellow-phosphor);
    text-decoration: none;
    border-bottom: 1px dotted var(--yellow-phosphor);
}

.content a:hover {
    color: var(--yellow-dim);
    text-shadow: 0 0 5px var(--yellow-phosphor);
}

.section {
    margin-bottom: 30px;
    padding: 15px;
    border-left: 3px solid var(--green-phosphor);
    padding-left: 20px;
}

.feature-list {
    list-style: none;
    margin: 15px 0;
}

.feature-list li {
    color: var(--green-phosphor);
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.feature-list li:before {
    content: "> ";
    color: var(--yellow-phosphor);
    position: absolute;
    left: 0;
}

.news-section {
    margin-top: 30px;
}

.news-item {
    margin-bottom: 20px;
    padding: 15px;
    background-color: rgba(0, 255, 0, 0.05);
    border: 1px solid var(--green-dim);
}

.news-item h3 {
    color: var(--yellow-phosphor);
    font-size: 11px;
    margin-bottom: 10px;
}

.news-item .date {
    color: var(--green-dim);
    font-size: 8px;
    margin-bottom: 8px;
}

.news-item p {
    color: var(--green-phosphor);
    font-size: 9px;
}

.command-line {
    background-color: rgba(0, 255, 0, 0.05);
    padding: 10px;
    margin: 15px 0;
    border-left: 3px solid var(--green-phosphor);
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 10px;
}

.command-line code {
    color: var(--yellow-phosphor);
}

.screen-footer {
    background-color: var(--bg-black);
    padding: 15px;
    text-align: center;
    border-top: 2px solid var(--green-phosphor);
}

.footer-text {
    font-size: 10px;
    color: var(--green-phosphor);
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .header-container {
        flex-direction: column;
    }
    
    .header-logo {
        width: 100%;
        text-align: center;
        padding: 10px;
        justify-content: center;
    }
    
    .terminal-logo {
        height: 80px;
    }
    
    .header-content {
        width: 100%;
    }
    
    .screen-header {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    
    .header-text {
        width: 100%;
        font-size: 8px;
    }
    
    .terminal-body {
        padding: 15px;
    }
    
    .content {
        font-size: 9px;
    }
    
    .content h1 {
        font-size: 14px;
    }
    
    .content h2 {
        font-size: 11px;
    }
    
    .prompt-line {
        font-size: 10px;
    }
    
    .nav-commands {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-link {
        width: 80%;
        text-align: center;
    }
}

