/**
 * Footer Video Background Styles
 * 
 * Propósito: Estilos para el video de fondo del footer.
 * 
 * Ubicación: assets/css/footer-video-background.css
 */

/* Contenedor del video */
.footer-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.footer-video-background::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: radial-gradient(rgba(0,0,0,0.5) 1px, transparent 1px);
    background-size: 3px 3px; /* Crea un efecto de puntos finos */
    z-index: 1;
}

/* Elemento de video */
.footer-video-element {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    filter: brightness(50%);
}

/* Fallback de imagen para móviles */
.footer-video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: none;
    z-index: 0;
}

/* Mostrar fallback en móviles, ocultar video */
@media (max-width: 768px) {
    .footer-video-element {
        
    }
    
    .footer-video-fallback {
        display: block;
    }
}

/* Asegurar que el contenido del footer esté sobre el video */
.site-footer {
    position: relative;
}

.site-footer > *:not(.footer-video-background) {
    position: relative;
    z-index: 2;
}