:root {
    --bg: #0d1117;
    --gold: #d4a373;
    --gold-dim: rgba(212, 163, 115, 0.3);
    --matrix-green: #00ff41;
    --matrix-dim: rgba(0, 255, 65, 0.3);
    --green-check: #4ade80;
    --text-white: #ffffff;
    --text-muted: #e6edf3;
}

body {
    background-color: var(--bg);
    color: var(--text-muted);
    font-family: 'Fira Code', 'Input Mono', monospace;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Permite scroll natural */
    min-height: 100vh;
    overflow-x: hidden; /* Evita scroll horizontal */
    padding: 20px 0;
}

/* Grilla con perspectiva */
.grid-background {
    position: fixed;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(var(--gold-dim) 1px, transparent 1px),
        linear-gradient(90deg, var(--gold-dim) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    transform: perspective(500px) rotateX(60deg);
    top: -50%;
    z-index: -1;
}

.scanline {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 100;
}

.container {
    width: 90%;
    max-width: 900px;
    margin: auto;
    z-index: 10;
}

.main-logo {
    max-width: 100%;
    width: 450px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 15px rgba(212, 163, 115, 0.2));
}

.system-header {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-text {
    font-size: 1rem;
    color: var(--matrix-green);
    letter-spacing: 3px;
    text-shadow: 0 0 8px var(--matrix-dim);
}

.blink { animation: blinker 1.5s linear infinite; color: var(--matrix-green); }
@keyframes blinker { 50% { opacity: 0; } }

.main-title {
    font-size: clamp(1.8rem, 5vw, 3.2rem); /* Tamaño fluido según pantalla */
    font-weight: 900;
    margin: 0 0 2rem 0;
    letter-spacing: -2px;
    opacity: 0.9;
}

.terminal-container {
    background: rgba(0, 0, 0, 0.6);
    padding: clamp(1rem, 5vw, 2.5rem);
    border-left: 4px solid var(--gold);
    backdrop-filter: blur(5px);
    margin-bottom: 2rem;
}

.boot-item {
    margin-bottom: 1.5rem;
    opacity: 0.15;
    transition: opacity 0.4s;
}

.boot-item.active { opacity: 1; }

.boot-info {
    display: flex;
    justify-content: space-between;
    font-size: clamp(0.9rem, 2vw, 1.3rem);
    margin-bottom: 8px;
}

.boot-check.done {
    color: var(--green-check);
    visibility: visible;
    display: inline-block;
    transform: scale(1.2);
}

.boot-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
}

.fill {
    width: 0%;
    height: 100%;
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold);
}

.menu-list { list-style: none; padding: 0; margin-bottom: 2rem; }
.menu-item {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: var(--text-white);
    margin-bottom: 1rem;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateX(-10px);
    transition: 0.5s ease;
}
.menu-item span { color: var(--gold); margin-right: 15px; }
.menu-item.show { opacity: 1; transform: translateX(0); }

.command-line {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    display: flex;
    align-items: center;
}
.prompt { color: var(--gold); margin-right: 15px; font-weight: bold; }
.terminal-cursor { animation: cursor-blink 0.8s step-end infinite; color: var(--gold); }

@keyframes cursor-blink { 50% { opacity: 0; } }

.cls-exit { animation: cls-up 0.5s ease-in forwards; }
@keyframes cls-up { 100% { transform: translateY(-20px); opacity: 0; } }

.nav-links {
    display: flex;
    flex-wrap: wrap; /* Permite que bajen si no caben */
    gap: 20px;
    opacity: 0;
    transition: 1s ease;
    margin-bottom: 3rem;
}
.nav-links.visible { opacity: 1; }
.nav-links a {
    color: var(--matrix-green);
    text-decoration: none;
    font-weight: bold;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    letter-spacing: 1px;
}

footer { 
    padding: 2rem 0;
    font-size: 0.8rem; 
    opacity: 0.4; 
    text-align: center; 
}
footer a { color: var(--matrix-green); text-decoration: none; }

/* MEDIA QUERY PARA MÓVILES */
@media (max-width: 600px) {
    .nav-links {
        flex-direction: column;
        gap: 15px;
    }
    .main-logo {
        width: 100%;
    }
}