.pg-8fd87a13-wrapper {
    width: 100%;
}

.pg-8fd87a13-grid {
    display: grid;
    /* grid-template-columns and gap are handled by Elementor responsive controls */
    justify-items: center;
    width: 100%;
}

.pg-8fd87a13-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
    position: relative;
}

a.pg-8fd87a13-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* Hover solo con ratón (en el móvil se quedaba "pegado" al tocar) */
@media (hover: hover) {
    .pg-8fd87a13-card:hover {
        transform: translateY(-5px);
    }
}

.pg-8fd87a13-img-wrapper {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f0f0f0;
    position: relative;
}

.pg-8fd87a13-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pg-8fd87a13-img-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.pg-8fd87a13-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 15px;
    text-align: center;
    z-index: 2;
}

.pg-8fd87a13-name {
    margin: 0 0 5px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}

.pg-8fd87a13-team {
    margin: 0;
    font-size: 1rem;
    color: #ddd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================
   MÓVIL: fichas más pequeñas y centradas
   (se puede cambiar desde el widget: Card Max Width)
========================================== */
@media (max-width: 767px) {
    .pg-8fd87a13-card {
        max-width: 280px;
    }

    .pg-8fd87a13-info {
        padding: 15px 10px;
    }

    .pg-8fd87a13-name {
        font-size: 1.2rem;
    }

    .pg-8fd87a13-team {
        font-size: 0.9rem;
    }
}