:root {
    color-scheme: dark;
}

body {
    forced-color-adjust: none;
    background: linear-gradient(135deg, #000000 0%, #4a0000 100%);
    background-attachment: fixed;
    color: #ffffff;
    font-family: "Segoe UI", Tahoma, "Trebuchet MS", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    min-height: 100vh;
}

header {
    width: 260px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 100%);
    backdrop-filter: blur(8px) saturate(150%);
    padding: 2rem;
    text-align: left;
    border-right: 1px solid rgba(255, 0, 0, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 4px 0 15px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

header h1 {
    color: #ff3131;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8), 0 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    letter-spacing: -0.5px;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

nav ul { 
    list-style: none; 
    padding: 0; 
    display: flex;
    flex-direction: column;
    gap: 15px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    background: linear-gradient(to bottom, rgba(255, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.4) 100%);
    padding: 12px 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 0, 0, 0.3);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    display: block;
}

nav a:hover {
    background: linear-gradient(to bottom, rgba(255, 0, 0, 0.4) 0%, rgba(255, 0, 0, 0.1) 100%);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.6), inset 0 0 5px rgba(255,255,255,0.2);
    color: #ff4d4d;
    transform: translateX(10px);
    border-color: #ff3131;
}

main {
    background: #000000 url('imagenes/DarkAero.png') no-repeat center center;
    background-size: cover;
    background-attachment: scroll;
    padding: 40px;
    flex-grow: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(30, 0, 0, 0.3) 100%);
    backdrop-filter: blur(4px); 
    margin-bottom: 40px;
    padding: 25px;
    border-radius: 25px;
    border: 1px solid rgba(255, 0, 0, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255,255,255,0.1);
    max-width: 800px;
}

h2, h3 { color: #ff3131; }

.contenedor-botones {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    max-width: 800px;
}

.boton-juego {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%);
    backdrop-filter: blur(5px);
    color: #ffffff;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 49, 49, 0.4);
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.boton-juego:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(255, 49, 49, 0.6);
    border-color: #ff3131;
    background: rgba(255, 0, 0, 0.1);
}

.pez-decor {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 150px;
    filter: drop-shadow(0 5px 15px rgba(255,0,0,0.3)) hue-rotate(150deg); /* Ajuste de color para el pez */
    transform: scaleX(-1);
    z-index: 100;
    pointer-events: none;
}

.alonny-decor {
    position: fixed;
    bottom: -60px;
    right: -200px;
    width: 500px;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
    z-index: 99;
    pointer-events: none;
}

footer {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: auto;
}

/* --- Ajustes para Celulares (Rojo/Negro) --- */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    header {
        width: 100%;
        height: auto;
        min-height: unset;
        position: relative;
        border-right: none;
        border-bottom: 1px solid rgba(255, 0, 0, 0.3);
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
        backdrop-filter: blur(8px) saturate(150%);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 15px rgba(0,0,0,0.5);
        padding: 2rem 1rem;
        text-align: center;
    }

    header h1 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    nav ul {
        flex-direction: row; 
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    nav a {
        padding: 10px 18px;
        font-size: 0.9rem;
        background: linear-gradient(to bottom, rgba(255, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    }

    nav a:hover {
        transform: translateY(-3px); 
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.6), inset 0 0 5px rgba(255,255,255,0.1);
    }

    main {
        padding: 15px;
    }

    section {
        padding: 18px;
        margin-bottom: 25px;
        max-width: 100%;
    }

    .alonny-decor {
        width: 280px; 
        right: -50px; 
        bottom: -30px;
        opacity: 0.8;
    }

    .pez-decor {
        width: 90px;
        left: 10px;
        bottom: 10px;
    }
}