/* Video Testimonials Carousel CSS */
.video-testimonials-carousel {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

.carousel-container {
    position: relative;
    perspective: 1200px;
    height: 400px;
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s ease-in-out;
}

.testimonial-slide {
    position: absolute;
    width: 320px;
    height: 180px;
    left: 50%;
    top: 50%;
    transform-origin: center;
    transition: all 0.6s ease-in-out;
    cursor: pointer;
}

/* Posicionamiento en círculo - como la luna alrededor de la tierra */
.testimonial-slide:nth-child(1) { 
    transform: translate(-50%, -50%) translateZ(350px); 
    z-index: 10;
}
.testimonial-slide:nth-child(2) { 
    transform: translate(-50%, -50%) rotateY(72deg) translateZ(300px) rotateY(-72deg); 
    z-index: 5;
}
.testimonial-slide:nth-child(3) { 
    transform: translate(-50%, -50%) rotateY(144deg) translateZ(300px) rotateY(-144deg); 
    z-index: 5;
}
.testimonial-slide:nth-child(4) { 
    transform: translate(-50%, -50%) rotateY(216deg) translateZ(300px) rotateY(-216deg); 
    z-index: 3;
}
.testimonial-slide:nth-child(5) { 
    transform: translate(-50%, -50%) rotateY(288deg) translateZ(300px) rotateY(-288deg); 
    z-index: 3;
}

.testimonial-slide.active {
    transform: translate(-50%, -50%) translateZ(380px) scale(1.1);
    z-index: 15;
}

.video-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease;
}

.video-container:hover {
    transform: translateY(-5px);
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.play-button svg {
    display: none;
}

.play-button::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 26px;
    border-color: transparent transparent transparent #311a1f;
    margin-left: 3px;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 5;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.testimonial-info {
    display: none;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 15;
    padding: 0 20px;
    pointer-events: none;
}

.carousel-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 8px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    pointer-events: auto;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.carousel-btn svg {
    display: none; /* Ocultar SVG */
}

.carousel-btn::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
}

.prev-btn::before {
    border-width: 8px 12px 8px 0;
    border-color: transparent #D6BA91 transparent transparent;
    margin-left: -2px;
}

.next-btn::before {
    border-width: 8px 0 8px 12px;
    border-color: transparent transparent transparent #D6BA91;
    margin-right: -2px;
}

.carousel-indicators {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #007cba;
    transform: scale(1.2);
}

.indicator:hover {
    background: #555;
}

@media (max-width: 768px) {
    .video-testimonials-carousel {
        padding: 10px;
    }
    
    .carousel-container {
        height: 300px;
        perspective: none;
    }
    
    .testimonial-slide {
        width: 100% !important;
        max-width: 100% !important;
        height: 200px !important;
        position: relative !important;
        transform: none !important;
        left: auto !important;
        top: auto !important;
    }
    
    .testimonial-slide:not(.active) {
        display: none !important;
    }
    
    .testimonial-slide.active {
        display: block !important;
        position: relative !important;
        transform: none !important;
        z-index: 1 !important;
        opacity: 1;
        width: 100%;
        height: 200px;
    }
    
    .video-container {
        width: 100%;
        height: 100%;
        border-radius: 16px;
    }
    
    .video-wrapper {
        width: 100%;
        height: 100%;
        border-radius: 16px;
        overflow: hidden;
    }
    
   /* Controles móvil - ENCIMA del video */
.carousel-controls {
    position: absolute !important;
    top: 50% !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    transform: translateY(-50%) !important;
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    padding: 0 -10px !important;
    pointer-events: none !important;
    z-index: 20 !important;
}

.carousel-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 20px !important;
    background: rgba(255,255,255,0.9) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25) !important;
    border: none !important;
    pointer-events: auto !important;
    backdrop-filter: blur(5px) !important;
}

.prev-btn {
    margin-left: -15px !important;
}

.next-btn {
    margin-right: -15px !important;
}

.carousel-btn svg {
    display: none !important;
}

.carousel-btn::before {
    content: '' !important;
    width: 0 !important;
    height: 0 !important;
    border-style: solid !important;
    display: block !important;
}

.prev-btn::before {
    border-width: 6px 10px 6px 0 !important;
    border-color: transparent #D6BA91 transparent transparent !important;
    margin-left: -1px !important;
}

.next-btn::before {
    border-width: 6px 0 6px 10px !important;
    border-color: transparent transparent transparent #D6BA91 !important;
    margin-right: -1px !important;
}

.carousel-btn:hover {
    background: #fff !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
}
    
    .carousel-indicators {
        bottom: -90px !important;
        gap: 8px;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
}