main, .cartitas {
    justify-content: center;
    align-items: center;
}

#carouselExampleCaptions, #carouselExampleCaptions2 {
    width: 40vw;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto; /* Centra el carrusel en el contenedor */
}

.carousel-inner {
    width: 60%;
}

.card {
    width: 100%;
    height: 550px;
    border-radius: 10px;
    border: none;
    transition: filter 0.5s ease;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.card img {
    filter: grayscale(100%);
    width: 100%;
    height: 22em;
    object-fit: cover;
    object-position: 0% 20%;
    border-radius: inherit;
}

.card:hover img {
    filter: grayscale(0);
}

.card .name {
    font-size: 1.5em;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
    text-align: center;
}

.card .role, .card .work-at {
    text-align: center;
}

i.fa-arrow-right, i.fa-arrow-left {
    background: orangered;
    padding: 10px;
    border-radius: 100%;
}

.carousel-indicators [data-bs-target] {
    background-color: orangered;
    width: 10px;
    height: 10px;
    border-radius: 100%;
    transition: opacity, width 0.6s ease;
}

.carousel-indicators .active {
    opacity: 1;
    width: 20px;
}

/* Media queries */
@media screen and (max-width: 900px) {
    #carouselExampleCaptions, #carouselExampleCaptions2 {
        width: 70vw;
        height: 70vw;
    }

    #carouselExampleCaptions::before,
    #carouselExampleCaptions::after,
    #carouselExampleCaptions2::before,
    #carouselExampleCaptions2::after {
        background: linear-gradient(90deg, #fff 60%, black 100%);
    }

    .card img {
        height: 22em;
    }

    .card .name {
        margin-top: 1em;
        font-size: 1em;
        font-weight: 700;
    }

    .card .role {
        font-size: 0.8em;
    }

    .card .work-at {
        font-size: 0.6em;
    }
}

@media screen and (max-width: 600px) {
    #carouselExampleCaptions, #carouselExampleCaptions2 {
        width: 90vw;
        height: auto;
        margin-bottom: 20px;
    }

    .carousel-inner {
        width: 100%;
    }

    .carousel-indicators {
        position: absolute;
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
    }

    .card {
        width: 90%;
        height: auto;
        margin: 0 auto;
        padding: 10px;
    }

    .card img {
        height: auto;
        max-height: 15em;
        object-fit: contain;
        margin: 0 auto;
    }

    .card .name {
        font-size: 1.2em;
    }

    .card .role, .card .work-at {
        font-size: 1em;
    }

    i.fa-arrow-right, i.fa-arrow-left {
        padding: 5px;
    }
}
