@font-face {
    font-family: 'ResidentEvilFont';
    src: url('fuentes/biohazard.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    color-scheme: dark;
}

body {
    forced-color-adjust: none;
    background: linear-gradient(135deg, #000000 0%, #300000 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.7) 0%, rgba(40, 0, 0, 0.3) 100%);
    backdrop-filter: blur(10px) saturate(160%);
    padding: 2rem;
    text-align: left;
    border-right: 1px solid rgba(255, 0, 0, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 4px 0 20px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

header h1 {
    font-family: 'ResidentEvilFont', sans-serif;
    color: #ff0000;
    text-shadow: 0 0 12px 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;
    text-transform: uppercase;
}

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(150, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 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.5);
    transition: all 0.3s ease;
    display: block;
}

nav a:hover {
    background: linear-gradient(to bottom, rgba(200, 0, 0, 0.5) 0%, rgba(50, 0, 0, 0.2) 100%);
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.6), inset 0 0 5px rgba(255,255,255,0.2);
    color: #ffffff;
    transform: translateX(10px);
    border-color: #ff0000;
}

main {
    padding: 40px;
    flex-grow: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

section {
    background: linear-gradient(135deg, rgba(40, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
    backdrop-filter: blur(6px);
    margin-bottom: 40px;
    padding: 25px;
    border-radius: 25px;
    border: 1px solid rgba(255, 0, 0, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255,255,255,0.05);
    max-width: 800px;
}

h2 { 
    color: #ff0000; 
    font-family: 'ResidentEvilFont', sans-serif; 
    margin-bottom: 1rem;
    text-transform: uppercase;
}

h3 { 
    color: #ff0000; 
    font-family: 'ResidentEvilFont', sans-serif; 
    text-transform: uppercase;
}

.fuente-re {
    font-family: 'ResidentEvilFont', sans-serif;
    color: #ff0000;
    text-transform: uppercase;
    font-size: 1.1em;
}

.pez-decor {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 150px;
    filter: drop-shadow(0 5px 20px rgba(255, 0, 0, 0.4)) hue-rotate(150deg);
    transform: scaleX(-1);
    z-index: 100;
    pointer-events: none;
}

footer {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    margin-top: auto;
}

@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.8) 0%, rgba(40, 0, 0, 0.6) 100%);
        padding: 2rem 1rem;
    }
    nav ul { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 10px; }
    nav a { padding: 10px 18px; font-size: 0.9rem; }
    nav a:hover { transform: translateY(-3px); }
}