.team-vertical-section {
    padding: 80px 0 120px 0;
    background-color: var(--bs-extralight);
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* centra cada fila, incluso la última */
    gap: 24px;
    padding-top: 47px;
}

.team-grid > * {
    flex: 0 0 280px; /* ancho fijo */
}

.team-card {
    background-color: var(--bs-light);
    border-radius: 160px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 8px 8px 32px;
    transition: background-color 0.3s ease;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.team-card.highlighted-card {
    background-color: var(--bs-main-500);
}

.team-card.highlighted-card img {
    background-color: var(--bs-main-200);
}

.team-card.highlighted-card svg {
    fill: var(--bs-secondary-500);
}

.team-card.highlighted-card:hover {
    background-color: var(--bs-main-200);
    
    img {
        background-color: var(--bs-main-500);
    }

    svg {
        fill: var(--bs-secondary-500);
    }
}

.team-card.highlighted-card .team-name,
.team-card.highlighted-card .team-role small {
    color: var(--bs-secondary-500);
}

.team-card:hover {
    img {
        background-color: var(--bs-main-500);
    }
    .info-role-span {
        color: var(--bs-main-500);
    }

    svg {
        fill: var(--bs-main-500);
    }
}

.team-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--bs-medium);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    text-align: left;
    width: 70%;
}

.team-name {
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: var(--bs-dark);
    margin-bottom: 0;
}

.team-role {
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-role {
    width: min-content;
    display: flex;
    gap: 8px;
    align-items: center;
}

.team-card.highlighted-card .info-role-span {
    color: var(--bs-secondary-500);
}

.team-role svg {
    fill: var(--bs-dark);
    transition: fill 0.3s ease;
}

.team-card:hover .team-role small {
    color: var(--bs-main-500);
}

.team-card:hover .team-role svg {
    fill: var(--bs-main-500);
}

@media screen and (max-width: 992px) {
    .team-vertical-section {
        padding: 48px 0;
    }

    .info-role svg {
        display: none;
    }
    
    .team-card.highlighted-card {
        display: flex;
    }

    .team-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 16px;
    }

    .team-card {
        width: 100%;
        border-radius: 160px;
        padding: 8px 8px 8px 24px;
    }

    .team-image {
        width: 56px;
        height: 56px;
    }
    
    .info-role-span {
        font-size: 14px;
        line-height: 20px;
    }
}