/* Archivo: style.css (modificado) */

/* --- Variables de Color --- */
:root {
    --color-background: #2c2c2c;       /* Gris carbón oscuro */
    --color-block-bg: #222222;         /* Un poco más oscuro para bloques */
    --color-text: #dddddd;             /* Gris claro para el texto */
    --color-accent: #f0a040;           /* Naranja/ámbar para enlaces */
}

/* --- Reseteo y Estilos Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-background);
    background-image: 
        linear-gradient(rgba(44, 44, 44, 0.85), rgba(44, 44, 44, 0.85)),
        url('images/bg_image.webp');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--color-text);
    font-family: 'Roboto Mono', monospace;
    font-size: 16px;
    line-height: 1.7;
}

/* --- Contenedor Principal --- */
.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* --- Logo --- */
.logo {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 2rem auto;
}

/* --- Bloques de Contenido (Texto) --- */
.content-block {
    background-color: var(--color-block-bg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #444;
}

.content-block p {
    margin-bottom: 1em;
}

.content-block p:last-child {
    margin-bottom: 0;
}

/* --- Imágenes --- */
.full-width-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin-bottom: 2rem;
    border: 1px solid #444;
}

.image-block {
    padding: 1.0rem;
    margin-bottom: 1rem;
}

/* --- Videos Responsivos --- */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin-bottom: 2rem;
    border: 1px solid #444;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- Sección de Características Especiales (Evercade, MSX) --- */
.features {
	margin-top: 4rem;
}

.feature-box {
    background-color: var(--color-block-bg);
    border: 1px solid #444;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.feature-box img {
    max-width: 150px;
    height: auto;
    flex-shrink: 0;
}

.feature-box h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

/* --- Enlaces --- */
a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- Responsividad para pantallas pequeñas --- */
@media (max-width: 600px) {
    body {
        font-size: 14px;
    }
    
    .container {
        margin: 1rem auto;
    }

    .feature-box {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* --- Galería de Imágenes Contiguas --- */
.image-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.image-gallery img {
    max-width: 100%;
    height: auto;
    border: 1px solid #444;
}

@media (max-width: 600px) {
    .image-gallery {
        flex-direction: column;
    }

    .image-gallery img {
        width: 100%;
    }
}


/* --- Contenedor para centrar una imagen --- */
.centered-image-container {
    text-align: center;
    margin-bottom: 2rem;
}

.centered-image-container img {
    max-width: 100%;
    height: auto;
    border: 1px solid #444;
}


/* --- Pie de Página --- */
.site-footer {
    max-width: 800px;
    margin: 3rem auto 2rem;
    padding: 0 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
}

.site-footer a {
    font-weight: bold;
}


/* --- Banners de Compra (Itch.io, Steam) --- */
.purchase-banners {
    margin-top: 6rem;
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-text);
}

.iframe-wrapper {
    position: relative;
    height: 0;
    width: 100%;
    margin: 0 auto 1.5rem auto;
    overflow: hidden;
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.itch-io-widget {
    max-width: 552px;
    padding-bottom: 30.25%;
}

.steam-widget {
    max-width: 646px;
    padding-bottom: 29.41%;
}

@media (max-width: 600px) {
    .itch-io-widget {
        padding-bottom: 0;
        height: 167px; 
    }

    .steam-widget {
        padding-bottom: 0;
        height: 190px;
    }
}


/* --- Estilos para Imágenes Clicables (Sólo Zoom) --- */

/* 1. Preparamos el contenedor del enlace (el 'a') */
.image-gallery a,
.centered-image-container a,
.feature-box a,
a.image-link {
    display: inline-block;
    vertical-align: middle;
}

/* 2. Aplicamos la transición a la imagen misma */
a > img {
    transition: transform 0.2s ease-out;
}

/* 3. Activamos el zoom al pasar el ratón */
a:hover > img {
    transform: scale(1.02);
    cursor: pointer;
}

/* --- Estilos para Lista de Características y Requisitos --- */

.content-block ul {
    list-style-position: inside;
    padding-left: 1rem;
}

.content-block ul li {
    margin-bottom: 0.5em;
}

.requirements-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    text-align: left;
}

.requirement-column {
    flex: 1;
    min-width: 200px;
}

.requirement-column h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.requirement-column ul {
    padding-left: 0;
    list-style-type: none;
}

.requirement-column strong {
    color: var(--color-text);
}


@media (max-width: 768px) {
    .requirements-container {
        flex-direction: column;
    }
}


/* --- Espaciado Vertical para Secciones Principales --- */

.game-features,
.system-requirements {
    margin-top: 4rem;
}


/* --- Ajustes Responsivos para Títulos --- */

@media (max-width: 600px) {
    .section-title {
        font-size: 1.2rem;
    }
}


/* --- Estilos para el separador del pie de página --- */
.footer-separator {
    color: #777;                /* Un color más sutil que el texto principal del footer */
    margin: 0 0.5em;             /* Añade un pequeño espacio a cada lado del separador */
}