#staff {
   height: 100vh;
}
.div-imagen {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden; 
}

.imagenes-staff {
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background-size: cover;
    position: relative;
    z-index: 1;
    background-image: url('../images/Staff1.jpeg');
}

.imagenes-staff::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.208);
    border-radius: 50%;
    z-index: 2;
}

.div-imagen:hover .imagenes-staff::before {
    opacity: 0;
}

.card-img-top {
    overflow: hidden;
    border-radius: 50%;
    width: 250px;
    height: 250px !important;
    margin: 20px auto;
    position: relative;
}

.card-img-top::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.37);
    border-radius: 50%;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.card-img-top:hover::before {
    opacity: 0;
}

.card-img-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.card-img-top:hover img {
    transform: scale(1.1);
}

.staff-nombre {
    color: #7B5A14;
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.staff-profesion {
    text-align: center;
    color: #666;
    margin-bottom: 1rem;
}

.btn-biografia {
    background-color: #7B5A14;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.btn-biografia:hover {
    background-color: #DBC27C;
    color: white;
    text-decoration: none;
}

.card {
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.staff-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.staff-container {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 0 20px;
}

.staff-container::-webkit-scrollbar {
    display: none;
}

.staff-item {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 300px;
    max-width: 400px;
}

@media (max-width: 768px) {
    .staff-item {
        flex: 0 0 calc(100% - 20px);
        min-width: 250px;
    }
    .card-img-top {
        width: 200px;
        height: 200px !important;
    }
    .staff-nombre {
        font-size: 1.2rem;
    }
    .staff-profesion {
        font-size: 0.9rem;
    }
    .btn-biografia {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    #staff {
        height: auto;
        padding: 40px 0;
    }
}

.staff-nav-prev,
.staff-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(123, 90, 20, 0.8);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.staff-nav-prev {
    left: 0;
}

.staff-nav-next {
    right: 0;
}

#staff-items {
    display: flex;
    flex-direction: row;
    gap: 30px;
    padding: 0 20px;
    min-width: min-content;
}

#staff-items .col-md-4 {
    flex: 0 0 auto;
    width: 420px;
    padding: 15px;
    margin-bottom: 20px;
}

.staff-wrapper::-webkit-scrollbar {
    display: none;
}

.staff-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}