.team-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    aspect-ratio: 3/4;
}

.team-card .team-member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.team-card:hover .team-member-photo {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.team-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.team-card:hover .team-card-overlay {
    opacity: 1;
}

.team-card-info {
    color: #fff;
    text-align: left;
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.team-card:hover .team-card-info {
    transform: translateY(0);
}

.team-card h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.rank-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.team-card .rank {
    font-size: 1.1rem;
    margin: 0;
}

.rank-shield {
    width: 70px;
    height: 70px;
}

.rank-shield img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card .experience {
    font-size: 1rem;
}

.rank.tmc3 {
    color: #fdfdfd;
    /* Bronce */
}

.rank.tmc4 {
    color: #e4be17;
    /* Plata */
}

.rank.tmc5 {
    color: #eeeeee;
    /* Oro */
    font-weight: bold;
    text-decoration: #e4be17;
}