:root {
    --bg-color: #050505;
    --neon-pink: #ff00ff;
    --neon-blue: #00f2ff;
    --text-color: #e0e0e0;
}

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

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Orbitron', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Efecto CRT Scanlines */
.crt-overlay::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 9999;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* HEADER & NAVIGATION */
.main-header { padding: 20px 0; border-bottom: 1px solid var(--neon-blue); background: rgba(5,5,5,0.95); position: sticky; top: 0; z-index: 1000; }
.nav-bar { display: flex; justify-content: space-between; align-items: center; }

.logo-text { font-family: 'Press Start 2P', cursive; font-size: 1.2rem; color: var(--neon-blue); text-shadow: 0 0 10px var(--neon-blue); }
.logo-text span { color: var(--neon-pink); text-shadow: 0 0 10px var(--neon-pink); }
.logo-slogan { font-size: 0.55rem; color: var(--neon-blue); text-transform: uppercase; margin-top: 5px; opacity: 0.8; }

.nav-right { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; list-style: none; gap: 20px; }
.nav-links a { color: var(--text-color); text-decoration: none; font-size: 0.8rem; transition: 0.3s; font-family: 'Orbitron'; }
.nav-links a:hover { color: var(--neon-blue); text-shadow: 0 0 8px var(--neon-blue); }

/* SOCIAL ICONS - UNIFIED SVG SOLUTION */
.header-socials { display: flex; gap: 18px; border-left: 1px solid var(--neon-blue); padding-left: 20px; }
.header-socials a { 
    color: var(--text-color); 
    text-decoration: none; 
    transition: 0.3s; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-socials a svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: currentColor;
    transition: 0.3s;
}

.header-socials a:hover { 
    color: var(--neon-pink); 
    filter: drop-shadow(0 0 5px var(--neon-pink));
    transform: translateY(-3px); 
}

/* MENU MÓVIL */
.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; }
.menu-toggle span { width: 25px; height: 3px; background: var(--neon-blue); transition: 0.3s; }

/* TÍTULOS */
h1, .section-title { 
    font-family: 'Press Start 2P', cursive; 
    color: #fff; 
    text-shadow: 4px 4px var(--neon-blue), -2px -2px var(--neon-pink); 
    text-transform: uppercase;
}
.section-title { font-size: 1.6rem; text-align: center; margin-bottom: 50px; }

/* HERO */
.hero-section { padding: 60px 0; background: radial-gradient(circle at center, #1a0b2e 0%, #050505 100%); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.hero-art img { width: 100%; border: 3px solid var(--neon-pink); box-shadow: 0 0 20px var(--neon-pink); background: #000; }
h1 { font-size: 2.8rem; margin-bottom: 20px; }
.badge-neon { border: 1px solid var(--neon-pink); color: var(--neon-pink); padding: 5px 10px; font-size: 0.7rem; display: inline-block; margin-bottom: 15px; }
.hero-meta-container { display: flex; gap: 10px; margin-bottom: 20px; }
.hero-badge-year { background: var(--neon-pink); color: #000; padding: 2px 8px; font-size: 0.8rem; font-weight: bold; }
.hero-badge-plat { border: 1px solid var(--neon-blue); color: var(--neon-blue); padding: 2px 8px; font-size: 0.8rem; }
.btn-main { display: inline-block; border: 2px solid var(--neon-blue); color: var(--neon-blue); padding: 12px 25px; text-decoration: none; font-family: 'Press Start 2P'; font-size: 0.7rem; transition: 0.3s; background: transparent; }
.btn-main:hover { background: var(--neon-blue); color: #000; box-shadow: 0 0 20px var(--neon-blue); }

/* GAMES SYSTEM CARD - MASTER CONTAINER */
.games-system-card {
    border: 1px solid var(--neon-blue);
    padding: 50px 30px;
    position: relative;
    background: rgba(5,5,5,0.8);
}
.games-system-card::before { 
    content: " [ DISK_DRIVE_A: ] "; 
    position: absolute; 
    top: -10px; 
    left: 20px; 
    background: var(--bg-color); 
    color: var(--neon-blue); 
    font-family: 'Press Start 2P'; 
    font-size: 0.6rem; 
    padding: 0 5px; 
}

/* GAMES GRID INSIDE CARD */
.section { padding: 60px 0; }
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.game-card { border: 1px solid var(--neon-blue); padding: 20px; background: rgba(0, 242, 255, 0.05); transition: 0.3s; }
.game-card:hover { transform: translateY(-5px); box-shadow: 0 0 15px var(--neon-blue); }
.card-art img { width: 100%; height: 200px; object-fit: cover; margin-bottom: 15px; border-bottom: 2px solid var(--neon-pink); }
.card-title { font-family: 'Press Start 2P'; font-size: 0.8rem; color: var(--neon-pink); margin-bottom: 10px; }

/* BIO & DEVLOG CARDS */
.bio-card, .devlog-card { 
    border: 1px solid var(--neon-blue); 
    padding: 50px 30px; 
    position: relative; 
    background: rgba(5,5,5,0.8); 
}
.bio-card::before { content: " [ BIO_LOG ] "; position: absolute; top: -10px; left: 20px; background: var(--bg-color); color: var(--neon-blue); font-family: 'Press Start 2P'; font-size: 0.6rem; padding: 0 5px; }
.devlog-card::before { content: " [ DEV_LOG ] "; position: absolute; top: -10px; left: 20px; background: var(--bg-color); color: var(--neon-blue); font-family: 'Press Start 2P'; font-size: 0.6rem; padding: 0 5px; }

.bio-content-grid { display: grid; grid-template-columns: 180px 1fr; gap: 30px; align-items: center; }
.bio-portrait { width: 180px; height: 180px; border: 2px solid var(--neon-pink); box-shadow: 0 0 10px var(--neon-pink); }
.bio-portrait img { width: 100%; height: 100%; object-fit: cover; }

/* FOOTER */
.main-footer { padding: 30px 0; text-align: center; border-top: 1px solid var(--neon-blue); opacity: 0.7; font-size: 0.7rem; }

/* RESPONSIVE */
@media (max-width: 992px) {
    h1 { font-size: 2.2rem; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-meta-container { justify-content: center; }
    .bio-content-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-right { 
        position: fixed; 
        top: 0; 
        right: -100%; 
        width: 100%; 
        height: 100vh; 
        background: rgba(5,5,5,0.98); 
        flex-direction: column; 
        justify-content: center;
        align-items: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
        z-index: 999;
    }
    .nav-right.active { right: 0; }
    .nav-links { flex-direction: column; align-items: center; gap: 40px; }
    .nav-links a { font-size: 1.5rem; }
    .header-socials { border-left: none; padding-left: 0; border-top: 1px solid var(--neon-blue); padding-top: 20px; margin-top: 20px; gap: 25px; }
    
    .header-socials a svg {
        width: 1.6rem;
        height: 1.6rem;
    }
    .games-system-card { padding: 30px 15px; }
}