/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

html {
    height: 100%;
    font-size: 62.5%;
}

body {
    background: #f4f7fa;
    color: #333;
    display: flex;
    flex-direction: column;
    width: 100%;  
    height: 100%;
}

/* Secciones de juegos */
main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    padding: 8rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.game {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items:center;
    justify-content: space-around;
    transition: transform 0.3s ease;
}

.game:hover {
    transform: translateY(-5px);
}

.game img {
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.game h2 {
    color: #2c3e50;
    font-size: 2.6rem;
    margin-bottom: 1rem;
}

.game p {
    margin: 1.5rem 0;
    padding: 0 1.5rem;
    font-size: 1.3rem;
    line-height: 1.5;
}

/* Botones */
.btn {
    display: inline-block;
    background: #27ae60;
    color: white;
    padding: 1rem 2rem;
    font-size: 1.6rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
}

.btn:hover {
    background: #219150;
    transform: scale(1.05);
}


@media (max-width: 1024px) {
    main {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .game img {
        max-width: 60%;
    }
}

@media (max-width: 768px) {
    main {
        padding: 4rem 2rem;
    }

    .game {
        padding: 1.5rem;
    }

    .game img {
        max-width: 70%;
    }

    .game h2 {
        font-size: 2.2rem;
    }

    .game p {
        font-size: 1.4rem;
        padding: 0 1rem;
    }

    .btn {
        font-size: 1.4rem;
        padding: 0.8rem 1.5rem;
    }
}

@media (max-width: 480px) {
    main {
        padding: 2rem 1rem;
    }

    .game img {
        max-width: 85%;
    }

    .game h2 {
        font-size: 2rem;
    }

    .game p {
        font-size: 1.3rem;
    }

    .btn {
        font-size: 1.3rem;
        padding: 0.7rem 1.2rem;
    }
}