@import url('variables.css');

/* =========================================================
   LAPIGAMES · PÁGINA DE JUEGOS
   ========================================================= */


/* ---------------------------------------------------------
   VIDEOJUEGOS
   --------------------------------------------------------- */

.games-section {
    background: var(--cream-light);
    padding: 70px 0 80px;
}



/* ---------------------------------------------------------
   GRID
   --------------------------------------------------------- */

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}


/* ---------------------------------------------------------
   TARJETAS
   --------------------------------------------------------- */

.game-card {
    background: var(--card-color);
    border: 1px solid var(--border);
    border-radius: 5px;
    overflow: hidden;

    display: flex;
    flex-direction: column;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
}

.game-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1efe7;
}

.game-image img {
    display: block;
    /*width: 100%;*/
    height: 100%;
    object-fit: cover;
    margin: auto;
    transition: transform .3s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.03);
}

.game-card-content {
    padding: 18px 17px 20px;

    display: flex;
    flex-direction: column;
    flex: 1;
}

.game-card h3 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: 20px;
    line-height: 1.25;
    /*font-weight: 750;*/
}

.game-meta {
    margin: 0 0 13px;
    color: #69727a;
    font-size: 12px;
    font-weight: 600;
}

.game-meta span {
    margin-right: 4px;
}

.game-card-content > p:not(.game-meta) {
    margin: 0;
    color: #394550;
    font-size: 14px;
    line-height: 1.6;
}

.game-link {
    display: inline-block;
    margin-top: auto;
    padding-top: 18px;

    color: var(--gold-dark, #b77a18);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: .3px;
}

.game-link:hover {
    text-decoration: underline;
}


/* ---------------------------------------------------------
   BOTÓN
   --------------------------------------------------------- */

.section-button {
    text-align: center;
    margin-top: 40px;
}

.btn-outline,
.btn-dark-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 0 25px;

    border: 1px solid var(--navy);
    border-radius: 4px;

    color: var(--navy);
    background: transparent;

    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: .3px;

    transition:
        background .2s ease,
        color .2s ease;
}

.btn-outline:hover {
    background: var(--navy);
    color: #fff;
}


/* ---------------------------------------------------------
   ASSETS
   --------------------------------------------------------- */

.assets-banner {
    background: #001727;
    color: #fff;
    overflow: hidden;
}

.assets-inner {
    min-height: 230px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 55px;
}

.assets-preview {
    height: 230px;
    overflow: hidden;
}

.assets-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.assets-text {
    padding: 40px 0;
}

.assets-text .section-eyebrow {
    color: var(--gold);
}

.assets-text h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 28px;
    font-weight: 800;
}

.assets-text p:not(.section-eyebrow) {
    max-width: 520px;
    margin: 0 0 22px;

    color: rgba(255,255,255,.82);
    font-size: 15px;
    line-height: 1.65;
}

.btn-dark-outline {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-dark-outline:hover {
    background: var(--gold);
    color: var(--navy);
}


/* ---------------------------------------------------------
   CONTACTO / COLABORACIÓN
   --------------------------------------------------------- */

.games-contact {
    padding: 30px 0;
    background: var(--cream);
}

.games-contact-inner {
    min-height: 110px;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 25px;

    padding: 25px 30px;

    border: 1px solid var(--border);
    border-radius: 5px;

    background: #f7eedf;
}

.games-contact-icon {
    font-size: 28px;
    color: var(--navy);
}

.games-contact h3 {
    margin: 0 0 5px;
    color: var(--navy);
    font-size: 17px;
}

.games-contact p {
    margin: 0;
    color: #4b5862;
    font-size: 13px;
    line-height: 1.5;
}


/* ---------------------------------------------------------
   RESPONSIVE · TABLET
   --------------------------------------------------------- */

@media (max-width: 1000px) {

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .assets-inner {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }

}


/* ---------------------------------------------------------
   RESPONSIVE · MÓVIL
   --------------------------------------------------------- */

@media (max-width: 700px) {




    .games-section {
        padding: 50px 0 60px;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }


    .game-card-content {
        padding: 17px;
    }


    .assets-inner {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .assets-preview {
        width: 100%;
        height: 170px;
        order: 1;
    }

    .assets-text {
        width: 100%;
        padding: 35px 0 40px;
        order: 2;
    }

    .assets-text h2 {
        font-size: 25px;
    }


    .games-contact-inner {
        grid-template-columns: auto 1fr;
        gap: 15px;
        padding: 22px;
    }

    .games-contact-inner .btn-outline {
        grid-column: 1 / -1;
        width: 100%;
    }

}


/* ---------------------------------------------------------
   RESPONSIVE · MÓVILES PEQUEÑOS
   --------------------------------------------------------- */

@media (max-width: 420px) {

    .games-section {
        padding-top: 40px;
    }

}
