/* ELYONSYSTEM360 - FIX PARA VIDEO RESPONSIVO */


.elyon-hero-video-fix {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

/* El contenedor directo de ese video */
.elyon-hero-video-fix-container {
    position: relative !important;
    overflow: hidden !important;
    height: 600px !important;
    border-radius: 10px !important;
    margin: 40px 0 !important;
}

/* Se aplica SOLO a videos con atributo autoplay (tu video hero) */
video[autoplay] {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Contenedores que tienen videos con autoplay */
div:has(> video[autoplay]) {
    position: relative !important;
    overflow: hidden !important;
    height: 600px !important;
}

/* O más específico aún */
section:has(video[autoplay]) {
    position: relative !important;
    overflow: hidden !important;
}

/* Contenedor específico del video */
.video-hero,
.video-hero-container,
.hero-video-container {
    position: relative !important;
    width: 100% !important;
    height: 600px !important; /* Ajusta esta altura */
    overflow: hidden !important;
    border-radius: 10px !important;
}


/* El elemento video */
.video-hero-container video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* Estrategia de cobertura completa */
    width: 100%;
    height: 100%;
    object-fit: cover;
    
    /* Asegurar cobertura en todos los navegadores */
    min-width: 100%;
    min-height: 100%;
}

/* Overlay de contenido */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(10, 17, 40, 0.95) 0%, 
        rgba(10, 17, 40, 0.7) 50%, 
        rgba(10, 17, 40, 0.4) 100%);
    display: flex;
    align-items: center;
    padding: 0 5%;
    z-index: 2;
}

.video-content {
    max-width: 650px;
}

.video-content h3 {
    color: white;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(90deg, #2962ff 0%, #00e5ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.video-content p {
    color: #bbdefb;
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  
    .video-hero-container {
        height: 50vh;
        min-height: 400px;
        margin: 30px 0;
        border-radius: 10px;
    }
    
    .video-overlay {
        padding: 0 20px;
        background: linear-gradient(to bottom, 
            rgba(10, 17, 40, 0.95) 0%, 
            rgba(10, 17, 40, 0.8) 100%);
    }
    
    .video-content {
        text-align: center;
        max-width: 100%;
    }
}
  
  

/* Para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .video-hero-container {
        height: 60vh;
        min-height: 450px;
    }
}

/* Para pantallas muy anchas */
@media (min-width: 1600px) {
    .video-hero-container {
        max-width: 1600px;
        margin: 80px auto;
        border-radius: 20px;
    }
}