/* CONFIGURACIÓN GENERAL */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #222;
    line-height: 1.6;
}


/* MENÚ */

header {
    background-color: #222;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1100px;
    margin: auto;
    padding: 18px 25px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h2 {
    font-size: 22px;
}

nav ul {
    list-style: none;

    display: flex;
    gap: 25px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    color: #cccccc;
}


/* PRESENTACIÓN */

.presentacion {
    max-width: 1100px;
    margin: auto;
    padding: 100px 25px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;

    min-height: 600px;
}

.texto-presentacion {
    max-width: 600px;
}

.saludo {
    font-size: 20px;
    color: #666;
}

.texto-presentacion h1 {
    font-size: 55px;
    margin: 10px 0;
}

.texto-presentacion h2 {
    font-size: 25px;
    margin-bottom: 20px;
    font-weight: normal;
}

.texto-presentacion p {
    font-size: 18px;
}


/* FOTO */

.foto {
    display: flex;
    justify-content: center;
    align-items: center;
}

.foto img {
    width: 280px;
    height: 280px;

    border-radius: 50%;

    background-color: #ddd;

    display: flex;
    justify-content: center;
    align-items: center;

    color: #777;
    font-weight: bold;
}

/* SOBRE MÍ */

.sobre-mi {
    background-color: white;
    padding: 80px 25px;
    text-align: center;
}

.sobre-mi h2 {
    font-size: 35px;
    margin-bottom: 40px;
}

.datos {
    max-width: 1000px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.dato {
    padding: 25px;
    background-color: #f4f4f4;
    border-radius: 10px;
}

.dato h3 {
    margin-bottom: 10px;
}


/* GUSTOS */

.gustos {
    max-width: 1100px;
    margin: auto;
    padding: 80px 25px;
    text-align: center;
}

.gustos h2 {
    font-size: 35px;
    margin-bottom: 20px;
}

.gustos > p {
    max-width: 700px;
    margin: 0 auto 50px;
}


/* TARJETAS DE VIDEOJUEGOS */

.videojuegos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.tarjeta {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;

    padding-bottom: 30px;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.imagen-juego {
    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;

    background-color: #222;
}

.imagen-juego img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;
}

.tarjeta h3 {
    font-size: 24px;
    margin: 25px 20px 10px;
}

.tarjeta p {
    margin: 0 25px 25px;
}


/* BOTONES */

.boton {
    display: inline-block;

    background-color: #222;
    color: white;

    padding: 10px 20px;

    border-radius: 6px;

    text-decoration: none;
}

.boton:hover {
    background-color: #444;
}


/* PIE DE PÁGINA */

footer {
    background-color: #222;
    color: white;

    text-align: center;

    padding: 35px 20px;
}

.disclaimer {
    margin-top: 15px;
    font-size: 13px;
    color: #bbb;
}


/* ADAPTACIÓN PARA CELULARES */

@media (max-width: 700px) {

    nav {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        gap: 15px;
    }

    .presentacion {
        flex-direction: column;
        text-align: center;
        padding: 70px 25px;
    }

    .texto-presentacion h1 {
        font-size: 40px;
    }

    .datos {
        grid-template-columns: 1fr 1fr;
    }

    .videojuegos {
        grid-template-columns: 1fr;
    }

}

.pagina-juego {
    max-width: 1000px;
    margin: auto;
    padding: 80px 25px;
}


/* TÍTULO */

.titulo-juego {
    text-align: center;
    margin-bottom: 50px;
}

.titulo-juego h1 {
    font-size: 50px;
    margin: 10px 0;
}

.titulo-juego p:last-child {
    font-size: 18px;
    color: #666;
}


/* IMAGEN PRINCIPAL */

.portada-juego {
    width: 100%;
    max-height: 500px;

    background-color: #222;

    border-radius: 12px;

    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: center;

    margin-bottom: 60px;
}

.portada-juego img {
    width: 100%;
    max-height: 500px;

    object-fit: contain;

    display: block;
}


/* INFORMACIÓN */

.informacion-juego {
    background-color: white;

    padding: 40px;

    border-radius: 12px;

    margin-bottom: 30px;
}

.informacion-juego h2 {
    font-size: 30px;

    margin-bottom: 20px;
}


/* DATOS */

.datos-juego {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;

    margin-bottom: 30px;
}

.dato-juego {
    background-color: white;

    padding: 25px;

    border-radius: 10px;

    text-align: center;
}

.dato-juego h3 {
    margin-bottom: 10px;
}


/* POR QUÉ ME GUSTA */

.por-que-me-gusta {
    background-color: white;

    padding: 40px;

    border-radius: 12px;

    margin-bottom: 30px;
}

.por-que-me-gusta h2 {
    margin-bottom: 20px;
}


/* PERSONAJE */

.personaje-favorito {
    background-color: white;

    padding: 40px;

    border-radius: 12px;

    margin-bottom: 40px;
}

.personaje-favorito h2 {
    margin-bottom: 20px;
}


/* BOTÓN VOLVER */

.volver {
    text-align: center;

    margin: 40px 0;
}


/* CELULARES */

@media (max-width: 700px) {

    .titulo-juego h1 {
        font-size: 35px;
    }

    .datos-juego {
        grid-template-columns: 1fr 1fr;
    }

    .informacion-juego,
    .por-que-me-gusta,
    .personaje-favorito {
        padding: 25px;
    }

}