/* Testimonials Section Styles */
.testimonials {
    text-align: center;
}

.testimonial-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Reproductor personalizado responsive */
.testimonial-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #0A0A0A;
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.testimonial-video:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.testimonial-video-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
    background: #000;
}

/* Contenedor del reproductor YouTube */
#testimonial-video-player {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    background: #000;
}

/* Video Display Control */
.desktop-video {
    display: block;
}

.mobile-thumbnail {
    display: none;
}

/* Mobile Thumbnail Styles */
.mobile-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 15px;
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.play-button svg {
    filter: drop-shadow(0 4px 12px rgba(0, 229, 255, 0.3));
    pointer-events: none;
}

/* Responsive Video Control */
@media (max-width: 768px) {
    .desktop-video {
        display: none;
    }
    
    .mobile-thumbnail {
        display: block;
    }
    
    /* Mobile-specific play button improvements */
    .play-button {
        min-width: 60px;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .play-button svg {
        width: 60px;
        height: 60px;
    }
    
    /* Ensure the button is easily tappable */
    .mobile-thumbnail {
        position: relative;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
    }
    
    .mobile-thumbnail:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Make the entire thumbnail clickable */
    .mobile-thumbnail * {
        pointer-events: none;
    }
    
    .mobile-thumbnail {
        pointer-events: auto;
    }
}

.control-btn {
    background: rgba(0, 229, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.3);
}

.control-btn:hover {
    background: rgba(0, 229, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 229, 255, 0.4);
}

.progress-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 15px;
}

.time-display {
    font-size: 14px;
    color: #CCCCCC;
    font-weight: 500;
    min-width: 40px;
    text-align: center;
    font-family: 'Courier New', monospace;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: height 0.2s ease;
}

.progress-bar:hover {
    height: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00E5FF, #0099CC);
    border-radius: 4px;
    transition: width 0.1s ease;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

.progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 16px;
    height: 16px;
    background: #00E5FF;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 229, 255, 0.6);
}

.progress-handle:hover {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.8);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider-container {
    width: 80px;
    height: 20px;
}

.volume-slider {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #00E5FF;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 229, 255, 0.5);
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 10px rgba(0, 229, 255, 0.7);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #00E5FF;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 229, 255, 0.5);
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 10px rgba(0, 229, 255, 0.7);
}

/* Responsive Testimonials */
@media (max-width: 768px) {
    .testimonial-container {
        margin-top: 40px;
        max-width: 100%;
        padding: 0 20px;
    }
    
    .testimonial-card {
        margin: 0;
        padding: 20px;
        border-radius: 12px;
    }
    
    .testimonial-video {
        margin-bottom: 15px;
        border-radius: 12px;
    }
    
    .testimonial-video-iframe {
        border-radius: 12px;
    }
    
    .custom-video-controls {
        padding: 12px 16px 8px;
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(10px);
        opacity: 0.95;
        border-radius: 0 0 12px 12px;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
        box-shadow: 0 3px 10px rgba(0, 229, 255, 0.3);
    }
    
    .control-btn:hover {
        transform: scale(1.05);
    }
    
    .progress-container {
        margin: 0 12px;
        gap: 8px;
    }
    
    .progress-bar {
        height: 6px;
        border-radius: 3px;
    }
    
    .progress-bar:hover {
        height: 7px;
    }
    
    .progress-fill {
        border-radius: 3px;
    }
    
    .progress-handle {
        width: 14px;
        height: 14px;
    }
    
    .time-display {
        font-size: 12px;
        min-width: 35px;
    }
    
    .volume-slider-container {
        width: 70px;
        height: 18px;
    }
    
    .volume-slider {
        height: 5px;
        border-radius: 2.5px;
    }
    
    .volume-slider::-webkit-slider-thumb {
        width: 14px;
        height: 14px;
    }
    
    .volume-slider::-moz-range-thumb {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .testimonial-container {
        margin-top: 30px;
        padding: 0 15px;
    }
    
    .testimonial-card {
        padding: 15px;
        border-radius: 10px;
    }
    
    .testimonial-video {
        margin-bottom: 12px;
        border-radius: 10px;
    }
    
    .testimonial-video-iframe {
        border-radius: 10px;
    }
    
    .custom-video-controls {
        padding: 10px 12px 6px;
        border-radius: 0 0 10px 10px;
        gap: 8px;
    }
    
    .control-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
        box-shadow: 0 2px 8px rgba(0, 229, 255, 0.3);
    }
    
    .progress-container {
        margin: 0 8px;
        gap: 6px;
    }
    
    .progress-bar {
        height: 5px;
        border-radius: 2.5px;
    }
    
    .progress-bar:hover {
        height: 6px;
    }
    
    .progress-fill {
        border-radius: 2.5px;
    }
    
    .progress-handle {
        width: 12px;
        height: 12px;
    }
    
    .time-display {
        font-size: 11px;
        min-width: 30px;
    }
    
    .volume-slider-container {
        width: 60px;
        height: 16px;
    }
    
    .volume-slider {
        height: 4px;
        border-radius: 2px;
    }
    
    .volume-slider::-webkit-slider-thumb {
        width: 12px;
        height: 12px;
    }
    
    .volume-slider::-moz-range-thumb {
        width: 12px;
        height: 12px;
    }
}

/* Animaciones para mobile */
@media (max-width: 768px) {
    .testimonial-video:active {
        transform: scale(0.98);
    }
    
    .control-btn:active {
        transform: scale(0.95);
    }
    
    .progress-handle:active {
        transform: translate(-50%, -50%) scale(1.3);
    }
    
    /* Mejoras específicas para mobile */
    .testimonial-video {
        position: relative;
        touch-action: manipulation;
    }
    
    .custom-video-controls {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 10;
        pointer-events: auto;
    }
    
    /* Hacer los controles más grandes en mobile para mejor usabilidad */
    .control-btn {
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
    }
    
    .progress-bar {
        min-height: 44px;
        padding: 20px 0;
        touch-action: manipulation;
    }
    
    .progress-handle {
        min-width: 20px;
        min-height: 20px;
        touch-action: manipulation;
    }
}

/* Pantalla completa */
.testimonial-video:fullscreen {
    background: #000;
    border-radius: 0;
}

.testimonial-video:-webkit-full-screen {
    background: #000;
    border-radius: 0;
}

.testimonial-video:-moz-full-screen {
    background: #000;
    border-radius: 0;
}

.testimonial-video:-ms-fullscreen {
    background: #000;
    border-radius: 0;
}

