/* =================================
   CARRUSEL DE VIDEOS - ELEVATE ELEMENTS
   ================================= */

.elevate-carrusel-videos-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.elevate-carrusel-videos {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.elevate-carrusel-videos .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.elevate-carrusel-videos .swiper-slide {
    height: auto;
    flex-shrink: 0;
}

/* Video Item */
.elevate-video-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Contenedor del Video */
.elevate-video-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: #000;
    border-radius: 16px;
}

.elevate-video-container video,
.elevate-video-container iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.elevate-video-container iframe {
    border: none;
}

/* Video Placeholder (Editor) */
.elevate-video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    color: #fff;
    font-size: 14px;
}

/* Video Wrapper */
.elevate-video-wrapper {
    width: 100%;
    height: 100%;
}

.elevate-video-wrapper video,
.elevate-video-wrapper iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Imagen de Portada (Poster) */
.elevate-video-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.elevate-video-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Botón de Play */
.elevate-video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 25px;
    border-radius: 50%;
    font-size: 60px;
    transition: all 0.3s ease;
    z-index: 6;
}

.elevate-video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: rgba(0, 0, 0, 0.8);
}

.elevate-video-play-btn i,
.elevate-video-play-btn svg {
    display: block;
}

.elevate-video-play-btn svg {
    width: 60px;
    height: 60px;
    fill: currentColor;
}

/* Ocultar poster cuando el video está reproduciéndose */
.elevate-video-container.playing .elevate-video-poster {
    opacity: 0;
    pointer-events: none;
}

.elevate-video-container.playing .elevate-video-wrapper {
    display: block !important;
}

/* Overlay del Video */
.elevate-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 40px;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 2;
    pointer-events: none;
}

/* Ocultar overlay cuando el video está reproduciéndose */
.elevate-video-container.playing .elevate-video-overlay {
    opacity: 0;
    visibility: hidden;
}

/* Badge */
.elevate-video-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
}

/* Título sobre el Video */
.elevate-video-title {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    max-width: 600px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Contenido Fuera del Video */
.elevate-video-content {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
    padding: 0 20px;
    flex-wrap: nowrap !important;
}

/* Descripción */
.elevate-video-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666666;
    margin: 0;
    flex: 1 1 0% !important;
    min-width: 0;
}

/* Botón */
.elevate-video-button {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #4169E1;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0 !important;
    white-space: nowrap;
    margin-left: auto !important;
}

.elevate-video-button:hover {
    background: #3155c6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(65, 105, 225, 0.3);
}

.elevate-video-button i,
.elevate-video-button svg {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Navegación del Swiper - En la parte inferior */
.elevate-carrusel-videos-wrapper {
    position: relative;
}

.elevate-videos-nav-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    position: relative;
}

.elevate-videos-nav-wrapper .swiper-button-prev,
.elevate-videos-nav-wrapper .swiper-button-next {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.7);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    margin: 0;
    transform: none;
}

.elevate-videos-nav-wrapper .swiper-button-prev:after,
.elevate-videos-nav-wrapper .swiper-button-next:after {
    font-size: 20px;
}

.elevate-videos-nav-wrapper .swiper-button-prev:hover,
.elevate-videos-nav-wrapper .swiper-button-next:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Paginación del Swiper */
.elevate-carrusel-videos .swiper-pagination {
    bottom: -40px !important;
}

.elevate-carrusel-videos .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #cccccc;
    opacity: 1;
}

.elevate-carrusel-videos .swiper-pagination-bullet-active {
    background: #4169E1;
    width: 32px;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 1024px) {
    .elevate-video-container {
        height: 500px;
    }

    .elevate-video-title {
        font-size: 36px;
    }

    .elevate-video-overlay {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .elevate-video-container {
        height: 400px;
        border-radius: 12px;
    }

    .elevate-video-title {
        font-size: 28px;
    }

    .elevate-video-overlay {
        padding: 24px;
    }

    .elevate-video-badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    .elevate-video-description {
        font-size: 14px;
    }

    .elevate-video-button {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .elevate-video-content {
        gap: 16px !important;
    }

    .elevate-videos-nav-wrapper {
        margin-top: 20px;
        gap: 15px;
    }

    .elevate-videos-nav-wrapper .swiper-button-prev,
    .elevate-videos-nav-wrapper .swiper-button-next {
        width: 40px;
        height: 40px;
    }

    .elevate-videos-nav-wrapper .swiper-button-prev:after,
    .elevate-videos-nav-wrapper .swiper-button-next:after {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .elevate-video-container {
        height: 300px;
    }

    .elevate-video-title {
        font-size: 24px;
    }

    .elevate-video-overlay {
        padding: 20px;
    }

    .elevate-video-content {
        padding: 0 10px;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .elevate-video-button {
        margin-left: 0 !important;
    }

    .elevate-videos-nav-wrapper {
        margin-top: 15px;
        gap: 10px;
    }

    .elevate-videos-nav-wrapper .swiper-button-prev,
    .elevate-videos-nav-wrapper .swiper-button-next {
        width: 36px;
        height: 36px;
    }

    .elevate-videos-nav-wrapper .swiper-button-prev:after,
    .elevate-videos-nav-wrapper .swiper-button-next:after {
        font-size: 14px;
    }
}

/* Elementor Editor */
.elementor-editor-active .elevate-carrusel-videos-wrapper {
    min-height: 400px;
}

