/* complemento.css - COPIA EXACTA COMPLETA */
/* ESTILOS ADICIONALES PARA VIDEOS */
.video-container-simple {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    cursor: pointer;
}

#video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}
/* Mejoras para el video player */
.video-overlay {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease;
}

.video-overlay.faded {
    opacity: 0.3;
    pointer-events: none;
}

.video-controls {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.video-controls:hover {
    opacity: 1;
}

/* Evitar que el overlay tape los controles */
.video-container-simple {
    position: relative;
}

#video-overlay {
    z-index: 1;
}

#video-controls {
    z-index: 2;
}

/* Botn de play ms visible */
.overlay-content i {
    transition: transform 0.3s ease;
}

.video-overlay:hover .overlay-content i {
    transform: scale(1.1);
}
.presentation-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

    .presentation-video:hover {
        opacity: 0.9;
    }

.video-instructions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 25px 35px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 200px;
}

    .video-instructions:hover {
        background: rgba(0, 0, 0, 0.95);
        transform: translate(-50%, -50%) scale(1.05);
        border-color: rgba(255, 255, 255, 0.5);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    }

    .video-instructions i {
        font-size: 3rem;
        margin-bottom: 15px;
        display: block;
        color: #4a6cf7;
    }

    .video-instructions span {
        font-size: 1.1rem;
        font-weight: 600;
        display: block;
    }

.video-loading, .video-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    z-index: 10;
    min-width: 200px;
}

    .video-loading i {
        font-size: 2rem;
        margin-bottom: 15px;
        display: block;
    }

.video-error {
    color: #ff6b6b;
    border: 2px solid rgba(255, 107, 107, 0.3);
}

    .video-error i {
        font-size: 2.5rem;
        margin-bottom: 15px;
        display: block;
    }

    .video-error button {
        background: #4a6cf7;
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 6px;
        cursor: pointer;
        margin-top: 15px;
        font-weight: 600;
        transition: background 0.3s ease;
    }

        .video-error button:hover {
            background: #3a5ce5;
        }

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(74, 108, 247, 0.9);
    color: white;
    padding: 25px 35px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(74, 108, 247, 0.3);
}

    .video-play-button:hover {
        background: rgba(74, 108, 247, 1);
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow: 0 15px 40px rgba(74, 108, 247, 0.4);
    }

    .video-play-button i {
        font-size: 3rem;
        margin-bottom: 15px;
        display: block;
    }

    .video-play-button span {
        font-size: 1.1rem;
        font-weight: 600;
        display: block;
    }

/* Asegurar que el video container tenga tamaño adecuado */
.scroll-card-img.desktop {
    height: 500px;
}

@media (max-width: 991px) {
    .video-instructions, .video-play-button {
        padding: 15px 25px;
    }

        .video-instructions i,
        .video-play-button i {
            font-size: 2rem;
        }

        .video-instructions span,
        .video-play-button span {
            font-size: 0.9rem;
        }
}
/* AGREGAR AL FINAL DE complemento.css */

/* Mejoras para el loading del video */
#video-loading {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(74, 108, 247, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#video-loading .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 3px;
    color: #4a6cf7;
    margin-bottom: 20px;
}

#video-loading p {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    text-align: center;
    margin: 0;
}

/* Transiciones ms suaves */
#video-overlay, #video-loading {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Asegurar que el video tenga el tamao correcto */
#presentation-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

/* Mejorar visibilidad del texto del overlay */
.overlay-content p {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Controles ms visibles */
#video-controls {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 6px;
    padding: 8px;
    backdrop-filter: blur(10px);
}

#video-controls button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

#video-controls button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}