/* Frontend Styles para WP Gallery Slider */

.wp-gallery-slider-container {
    position: relative;
    width: 100%;
    overflo/* Video duration indicator */
.slide .video-duration {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
    z-index: 5;
    backdrop-filter: blur(4px);
}   border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.wp-gallery-slider {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slide img,
.slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.slide:hover img,
.slide:hover video {
    transform: scale(1.05);
}

/* Video specific styles */
.slide video {
    background: #000;
}

/* Ocultar controles por defecto */
.slide video::-webkit-media-controls {
    display: none !important;
}

.slide video::-webkit-media-controls-enclosure {
    display: none !important;
}

.slide video::-moz-media-controls {
    display: none !important;
}

/* Play button overlay for videos - Solo visible cuando está pausado */
.slide .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 87, 132, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
}

.slide.paused .play-overlay {
    opacity: 1;
    pointer-events: all;
}

.slide .play-overlay:hover {
    background: rgba(0, 87, 132, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.slide .play-overlay::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 20px solid #fff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 4px;
}

.slide.playing .play-overlay {
    opacity: 0;
    pointer-events: none;
}

/* Video progress indicator */
.slide .video-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 6;
}

.slide .video-progress-bar {
    height: 100%;
    background: #005784;
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 8px rgba(0, 87, 132, 0.5);
}

/* Video loading state */
.slide video {
    background: #000;
}

.slide .video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    z-index: 4;
}

/* Video error state */
.slide.video-error::after {
    content: '⚠️ Error loading video';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    background: rgba(220, 53, 69, 0.8);
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 6;
}

/* Video duration indicator */
.slide .video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-family: monospace;
    z-index: 5;
}

/* Navigation Buttons */
.slider-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 10;
}

.nav-btn {
    pointer-events: all;
    background: #005784;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.nav-btn:hover {
    background: #004267;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.nav-btn:active {
    transform: scale(0.95);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Dots Navigation - Ocultos */
.slider-dots {
    display: none;
}

/* Loading state */
.wp-gallery-slider.loading .slide img {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Touch gestures indicator */
.wp-gallery-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.1) 50%,
        transparent 100%
    );
    transform: translateX(-100%);
    transition: opacity 0.3s ease;
}

.wp-gallery-slider.swiping::before {
    opacity: 1;
    animation: swipeIndicator 0.6s ease;
}

@keyframes swipeIndicator {
    to {
        transform: translateX(100%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .slider-navigation {
        padding: 0 10px;
    }
    
    .nav-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .slide .play-overlay {
        width: 50px;
        height: 50px;
    }
    
    .slide .play-overlay::before {
        border-left: 16px solid #fff;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        margin-left: 3px;
    }
    
    .slide .video-duration {
        font-size: 11px;
        bottom: 8px;
        right: 8px;
    }
}

@media (max-width: 480px) {
    .nav-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .slider-navigation {
        padding: 0 5px;
    }
    
    .slide .play-overlay {
        width: 40px;
        height: 40px;
    }
    
    .slide .play-overlay::before {
        border-left: 12px solid #fff;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
        margin-left: 2px;
    }
    
    .slide .video-duration {
        font-size: 10px;
        bottom: 6px;
        right: 6px;
        padding: 1px 4px;
    }
}

/* Accessibility */
.wp-gallery-slider:focus-within .nav-btn {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .nav-btn {
        background: #005784;
        color: #fff;
        border: 2px solid #fff;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .slider-track {
        transition: none;
    }
    
    .slide img,
    .slide video {
        transition: none;
    }
    
    .nav-btn {
        transition: none;
    }
    
    .slide:hover img,
    .slide:hover video {
        transform: none;
    }
}

/* Print styles */
@media print {
    .slider-navigation {
        display: none;
    }
    
    .slider-track {
        display: block;
    }
    
    .slide {
        display: block;
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .slide video {
        display: none;
    }
    
    .play-overlay,
    .video-duration {
        display: none;
    }
}
