/* ASEAF Acogedoras Videos Carousel Styles */

.aseaf-videos-carousel {
    max-width: 960px;
    margin: 40px auto;
    position: relative;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);*/
}

.aseaf-video-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.aseaf-video-slide {
    display: none;
    width: 100%;
}

.aseaf-video-slide.active {
    display: block;
}

.aseaf-video-wrapper {
    position: relative;
}

/* Video Thumbnail */
.aseaf-video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    cursor: pointer;
    background: #000;
}

.aseaf-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.aseaf-video-thumbnail:hover img {
    transform: scale(1.05);
}

/* Play Button */
.aseaf-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    opacity: 0.9;
}

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

.aseaf-play-button svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Video iframe (when loaded) */
.aseaf-video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Video Content */
.aseaf-video-content {
    padding: 20px;
    text-align: center;
    background: transparent;
}

.aseaf-video-title {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}

.aseaf-video-description {
    margin: 0;
    font-size: 0.95em;
    font-style: italic;
    color: #666;
    line-height: 1.5;
    background: none;
    border: none;
}

.aseaf-videos-carousel.oscuro .aseaf-video-title, .aseaf-videos-carousel.oscuro .aseaf-video-description {
    color: white;
}

/* Progress Bar */
.aseaf-progress-bar {
    position: relative;
    height: 4px;
    background-color: transparent;
    margin: 0;
}

.aseaf-progress-fill {
    height: 100%;
    background-color: #e67e22;
    transition: width 0.3s ease;
}

.aseaf-videos-carousel.verde .aseaf-progress-fill {
    background-color: #08998B;
}

/* Navigation */
.aseaf-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: transparent;
}

.aseaf-nav-btn, button.aseaf-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid #e67e22;
    background: #e67e22;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    padding:0;
}

.aseaf-nav-btn:hover, button.aseaf-nav-btn:hover {
    background: #000000;
    color: white;
    transform: scale(1.05);
}

.aseaf-nav-btn:disabled, button.aseaf-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
    background-color: #e67e22;
    color: #fff;
}

.aseaf-nav-btn:disabled:hover, button.aseaf-nav-btn:disabled:hover {
    background: #e67e22;
    color: #fff;
    transform: none;
}

.aseaf-videos-carousel.verde .aseaf-nav-btn, .aseaf-videos-carousel.verde button.aseaf-nav-btn, .aseaf-videos-carousel.verde .aseaf-nav-btn:disabled, .aseaf-videos-carousel.verde button.aseaf-nav-btn:disabled, .aseaf-videos-carousel.verde .aseaf-nav-btn:disabled:hover, .aseaf-videos-carousel.verde button.aseaf-nav-btn:disabled:hover  {
    background-color: #08998B;
}
.aseaf-videos-carousel.verde .aseaf-nav-btn, .aseaf-videos-carousel.verde button.aseaf-nav-btn {
    border-color: #08998B;
}

/* Responsive Design */

/* Tablet */
@media (max-width: 1024px) {
    .aseaf-videos-carousel {
        margin: 30px 20px;
    }
}

@media (max-width: 768px) {
    .aseaf-videos-carousel {
        margin: 25px 15px;
        border-radius: 6px;
    }
    
    .aseaf-video-content {
        padding: 15px;
    }
    
    .aseaf-video-title {
        font-size: 1.2em;
    }
    
    .aseaf-video-description {
        font-size: 0.9em;
    }
    
    .aseaf-play-button svg {
        width: 50px;
        height: 50px;
    }
    
    .aseaf-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .aseaf-videos-carousel {
        margin: 20px 10px;
    }
    
    .aseaf-video-content {
        padding: 12px;
    }
    
    .aseaf-video-title {
        font-size: 1.1em;
        margin-bottom: 10px;
    }
    
    .aseaf-video-description {
        font-size: 0.85em;
        padding-left: 12px;
    }
    
    .aseaf-navigation {
        padding: 15px;
        gap: 15px;
    }
    
    .aseaf-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .aseaf-play-button svg {
        width: 45px;
        height: 45px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .aseaf-videos-carousel {
        margin: 15px 8px;
    }
    
    .aseaf-video-content {
        padding: 10px;
    }
    
    .aseaf-video-title {
        font-size: 1em;
        margin-bottom: 8px;
    }
    
    .aseaf-video-description {
        font-size: 0.8em;
    }
    
    .aseaf-navigation {
        padding: 12px;
        gap: 12px;
    }
    
    .aseaf-nav-btn {
        width: 30px;
        height: 30px;
        font-size: 10px;
    }
    
    .aseaf-play-button svg {
        width: 40px;
        height: 40px;
    }
}

/* Loading state */
.aseaf-video-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16/9;
    background: #f8f9fa;
    color: #666;
    font-size: 0.9em;
}

/* Fade transition */
.aseaf-video-slide {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.aseaf-video-slide.active {
    opacity: 1;
}