:root {
    color-scheme: dark;
    --fondo: #09070d;
    --panel: #17101f;
    --panel-claro: #21152c;
    --morado: #5c116e;
    --morado-brillante: #9638c6;
    --texto: #f7f2fb;
    --texto-suave: #d2c5dc;
    --borde: rgba(221, 190, 255, 0.25);
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    margin: 0;
    background: var(--fondo);
    color: var(--texto);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.65;
}

a {
    color: inherit;
}

.encabezado-juego {
    min-height: 310px;
    padding: 22px max(24px, calc((100% - 1080px) / 2)) 76px;
    background-image: linear-gradient(90deg, rgba(9, 7, 13, 0.94), rgba(37, 10, 49, 0.72)), url('../imagenes/portada-inicio.jpg');
    background-position: center 42%;
    background-size: cover;
    border-bottom: 2px solid var(--morado-brillante);
}

.volver {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--borde);
    border-radius: 999px;
    background: rgba(9, 7, 13, 0.55);
    color: var(--texto);
    font-weight: 700;
    text-decoration: none;
    transition: background-color 180ms ease, transform 180ms ease;
}

.volver:hover {
    transform: translateY(-2px);
    background: var(--morado);
}

.volver:focus-visible,
.boton-volver:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.titulo-encabezado {
    max-width: 760px;
    margin: 42px auto 0;
}

.marca {
    margin: 0 0 8px;
    color: #e6b8ff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.titulo-encabezado h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.25rem, 6vw, 4.5rem);
    line-height: 1.05;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
}

.titulo-encabezado p:last-child {
    max-width: 620px;
    margin: 14px 0 0;
    color: var(--texto-suave);
    font-size: clamp(1rem, 2vw, 1.15rem);
}

.contenido-juego {
    width: min(1080px, calc(100% - 36px));
    margin: -42px auto 64px;
}

.ficha-juego {
    display: grid;
    grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.22fr);
    overflow: hidden;
    border: 1px solid var(--borde);
    border-radius: 20px;
    background: var(--panel);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.48);
}

.imagen-juego {
    display: grid;
    min-height: 440px;
    place-items: center;
    padding: 24px;
    background: linear-gradient(155deg, #281333, #0e0b12 72%);
}

.imagen-juego img {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.descripcion-juego {
    align-self: center;
    padding: clamp(26px, 5vw, 54px);
}

.genero {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 12px;
    border: 1px solid rgba(221, 190, 255, 0.3);
    border-radius: 999px;
    background: rgba(92, 17, 110, 0.35);
    color: #edceff;
    font-size: 0.82rem;
    font-weight: 700;
}

.descripcion-juego h2,
.detalles-juego h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.2;
}

.descripcion-juego p,
.detalles-juego p {
    color: var(--texto-suave);
}

.descripcion-juego h3 {
    margin: 26px 0 10px;
    color: #e6b8ff;
    font-size: 1.05rem;
}

.puntos-juego {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.puntos-juego li {
    position: relative;
    padding-left: 22px;
    color: var(--texto-suave);
}

.puntos-juego li::before {
    position: absolute;
    top: 0;
    left: 0;
    color: #d28cff;
    content: '😈';
}

.detalles-juego {
    margin-top: 24px;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid var(--borde);
    border-radius: 18px;
    background: linear-gradient(135deg, var(--panel-claro), var(--panel));
}

.detalles-juego p:last-child {
    margin-bottom: 0;
}

.boton-volver {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    padding: 10px 18px;
    border: 1px solid rgba(221, 190, 255, 0.65);
    border-radius: 12px;
    background: linear-gradient(135deg, #8b35d1, #57139c);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.35);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.boton-volver:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 20px rgba(144, 64, 220, 0.45);
}

.pie-juego {
    padding: 20px 18px;
    border-top: 1px solid var(--borde);
    color: #b9a9c4;
    text-align: center;
}

.boton-social {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    padding: 9px 18px;
    border: 1px solid rgba(221, 190, 255, 0.65);
    border-radius: 12px;
    background: linear-gradient(135deg, #8b35d1, #57139c);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.35);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.boton-social:hover {
    transform: translateY(-3px);
    border-color: #fff;
    box-shadow: 0 9px 20px rgba(144, 64, 220, 0.55);
}

.boton-social:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.pie-juego p {
    margin: 0;
}

@media (max-width: 720px) {
    .encabezado-juego {
        min-height: 280px;
        padding: 18px 20px 68px;
    }

    .titulo-encabezado {
        margin-top: 34px;
    }

    .contenido-juego {
        width: min(100% - 24px, 560px);
    }

    .ficha-juego {
        grid-template-columns: 1fr;
    }

    .imagen-juego {
        min-height: 0;
        padding: 18px;
    }

    .imagen-juego img {
        max-height: 420px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .boton-descargar {
        animation: none !important;
    }
}

.boton-descargar{ 
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    padding: 10px 18px;
    border: 1px solid rgba(221, 190, 255, 0.65);
    border-radius: 12px;
    background: linear-gradient(135deg, #8b35d1, #57139c);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.35);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease, filter 180ms ease;
}

.boton-descargar:not(:hover):not(:focus-visible) {
    animation: brillo-descarga 2.2s ease-in-out infinite;
}

@keyframes brillo-descarga {
    0%,
    100% {
        box-shadow: 0 5px 14px rgba(0, 0, 0, 0.35);
    }

    50% {
        box-shadow: 0 0 22px 4px rgba(174, 85, 255, 0.7);
    }
}

.boton-descargar:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: #fff;
    background: linear-gradient(135deg, #a94bf0, #7023bd);
    box-shadow: 0 0 0 2px rgba(221, 190, 255, 0.3), 0 0 26px rgba(174, 85, 255, 0.85);
    filter: brightness(1.12);
}

.boton-descargar:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.4);
}

.boton-descargar:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

