/* Games Grid Matrix */
.games-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Laptops/PC Default */
    gap: 1.1rem;
    margin-bottom: 2rem;
}

/* Large Screens */
@media (min-width: 1440px) {
    .games-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Tablets */
@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.95rem;
    }
}

/* Smartphones */
@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* Small Mobiles */
@media (max-width: 480px) {
    .game-info {
        padding: 0.8em;
        font-size: 0.95em;
    }

    .game-title {
        min-height: 2.4em; /* Espacio para 2 líneas */
    }
}

.game-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    width: 100%;
    aspect-ratio: 4 / 5;
    container-type: inline-size;
    font-size: clamp(11px, 5.5cqw, 15px);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.game-card.hidden {
    display: none;
}

.game-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    flex: 0 0 auto;
    background: linear-gradient(135deg, var(--teal), var(--dark-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.2em;
    overflow: hidden;
    position: relative;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.game-info {
    padding: 0.65em 0.75em;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25em;
    min-height: 0;
}

.game-title {
    font-size: clamp(0.95em, 7cqw, 1.15em);
    font-weight: bold;
    color: var(--dark-blue);
    line-height: 1.15;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
    min-height: 2.3em;
}

.game-category {
    font-size: clamp(0.78em, 5.6cqw, 0.92em);
    font-weight: 600;
    color: var(--teal);
    text-align: center;
    line-height: 1.1;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-genre {
    color: var(--teal);
    font-size: 0.85em;
    font-weight: 500;
    display: none;
}

.game-platform {
    color: var(--peach);
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    display: none;
}

.game-rating {
    color: var(--yellow);
    margin-top: 0.35em;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25em;
}

.game-rating .stars {
    display: inline-flex;
    gap: 0.15em;
    line-height: 1;
}

.game-price {
    font-size: 1.3em;
    font-weight: 800;
    color: var(--coral);
    margin-top: 0.4em;
    display: none;
}
