/* Estilos para el grid en pantallas grandes */
.team-grid-wrapper {
    position: relative;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Estilos de las tarjetas del team */
.team-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 75%;  
}

.team-card h3 {
    margin: 0;
    font-size: 20px;
    font-family: 'Poppins';
    font-weight: 400;
    position: relative;
    z-index: 2;
}

.team-card__image,
.team-card__hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease-in-out;
}

.team-card__image img,
.team-card__hover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.3s ease;
}

.team-card__hover-image {
    opacity: 0;
    z-index: 1;
}

.team-card__hover-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.team-card__hover-image:hover::before {
    opacity: 1;
}

.team-card:hover .team-card__hover-image {
    transform: scale(1.2);
    opacity: 1;
}

.team-card__info {
    position: absolute;
    bottom: 10px;
    left: 10px;
    text-align: left;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    padding: 10px;
    z-index: 2;
}

.team-card:hover .team-card__info {
    opacity: 1;
}
 
@media (max-width: 1024px) {
    .team-grid {
        display: none;  
    }

    .team-grid-wrapper .slick-slider {
        display: block;  
    }

    .slick-slide {
        display: flex;
        justify-content: center;
    }

    .team-card.slick-slide {
        margin-right: 20px;
    }

    .carousel-next-team:hover {
        filter: invert(35%) sepia(88%) saturate(3954%) hue-rotate(318deg) brightness(95%) contrast(106%);
        cursor: pointer;
    }
      
    .carousel-prev-team:hover {
        filter: invert(35%) sepia(88%) saturate(3954%) hue-rotate(318deg) brightness(95%) contrast(106%);
        cursor: pointer;
    }
    .team-card {
        padding-top: 5%;
    }
}

 