.rotator {
    width: 100%;
    max-width: 1400px;
    position: relative;
    margin: 0 auto;
    overflow: visible;
    perspective: 1000px;
    margin-top: -1rem;
}

.rotator-card {
    position: absolute;
    width: clamp(250px, 30%, 350px);
    height: auto;
    aspect-ratio: 1.65 / 1;
    opacity: 0.4;
    transition: all 1.2s ease-in-out;
    transform-origin: center;
    display: flex;
    justify-content: center;
}

.rotator-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: clamp(200px, 50vh, 400px);
    overflow: visible;
    padding: 20px 0;
}

.rotator-card.active {
    opacity: 1;
    transform: translateX(0) scale(1) rotateY(0);
    z-index: 2;
}

.rotator-card.left {
    opacity: 0.6;
    transform: translateX(calc(-25vw - 5%)) scale(0.85) rotateY(25deg);
    z-index: 1;
}

.rotator-card.right {
    opacity: 0.6;
    transform: translateX(calc(25vw + 5%)) scale(0.85) rotateY(-25deg);
    z-index: 1;
}

.review-container {
    width: 100%;
    height: 100%;
    padding: clamp(15px, 5%, 25px);
    border-radius: 15px;
    background: var(--color-cardeventos) !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    position: relative;
    transform: translateY(-5px);
}

.quierodonarcarrusel3d {
    display: flex;
    height: 40px;
    padding: 7px 20px;
    margin: 0px auto;
    gap: 10px;
    border: none;
    border-radius: 30px;
    color: var(--color-whiteforwhite);
    margin-top: 3rem;
    background: var(--color-button-redprimario);
    align-self: stretch;
}

.review-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    background: linear-gradient(45deg, #9D72A7, #D2916D, #C85572, #7177AB, #7BB2DA, #A8B49F);
    z-index: -1;
    padding: 2px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
}

.review-text {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    line-height: 1.6;
    color: var(--color-text-blackandwhite) !important;
    margin-bottom: clamp(10px, 3vh, 20px);
}

.profile-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(5px, 2%, 15px);
    color: var(--color-text-blackandwhite) !important;
    width: 100%;
}

.textoperfil {
    color: var(--color-text-blackandwhite) !important;
    margin-right: clamp(15px, 3vw, 30px);
}

.textocurso {
    color: var(--color-text-blackandwhite) !important;
}

.profile-circle {
    position: relative;
    width: 15%;
    aspect-ratio: 1/1;
    border-radius: 50%;
    background-color: #f0f0f0;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    margin-left: clamp(20px, 5vw, 59px);
}

.profile-circle::after {
    content: '';
    display: block;
    padding-bottom: 100%;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.profile-details strong {
    color: var(--color-text-blackandwhite) !important;
    font-size: clamp(0.8rem, 1.5vw, 1rem);
}

.profile-details span {
    color: var(--color-text-blackandwhite) !important;
    font-size: clamp(0.7rem, 1.2vw, 0.9rem);
    margin-right: clamp(12px, 2.5vw, 25px);

}

.rotator-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: -50px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: white;
    transform: scale(1.2);
}


#contenedorTitulo {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 4rem;
    flex-direction: column;

}

#titulocarrusel3D {
    width: 60%;
    margin: 0 auto;
    text-align: center;
    font-weight: 600;
    line-height: 40px;
}

#subtitulocarrusel3D {
    padding-top: 1rem;
    width: 50%;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    text-align: center;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: var(--Body-Large-Line-Height, 24px);
    letter-spacing: 0.5px;
}

@media screen and (max-width: 420px) {
    #titulocarrusel3D {
        width: 90%; 
        font-size: 1.5rem; 
        line-height: 30px; 
        height: auto; 
        margin-bottom: 10px; 
    }

    #subtitulocarrusel3D {
        width: 80%; 
        font-size: 0.9rem; 
        line-height: 20px; 
        padding-top: 0.5rem; 
        letter-spacing: 0.3px; 
        margin-bottom: -4rem;
    }
    
    #contenedorTitulo {
        margin-top: 2rem; 
    }

  
}
