.body-card {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f4f4f4;
    padding: 40px;
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    height: 240px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.card img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.card:hover img {
    transform: scale(1.1);
    filter: brightness(0.6);
    /* oscurece la imagen */
}

.card h3 {
    position: absolute;
    bottom: 0;
    width: 100%;
    margin: 0;
    padding: 12px 0;
    text-align: center;
    background-color: #9d2449;
    color: white;
    font-size: 1.1rem;
    transition: 0.3s ease;
}

.card:hover h3 {
    bottom: 50%;
    transform: translateY(50%);
}