/* ==========================================================================
   Bajaj Carrera Motos - CSS Crítico para LCP
   Estilos mínimos necesarios para el renderizado inicial
   ========================================================================== */

/* Estilos críticos para el banner con video */
.banner-header {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: visible !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    will-change: transform;
    contain: none !important;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-desktop,
.video-mobile {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.78vh;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
    object-fit: cover;
}

.video-desktop {
    display: block;
}

.video-mobile {
    display: none;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(0, 32, 74, 0.85) 0%, 
        rgba(0, 32, 74, 0.4) 25%, 
        rgba(0, 0, 0, 0.2) 50%, 
        rgba(0, 32, 74, 0.3) 75%, 
        rgba(0, 0, 0, 0.7) 100%
    );
    backdrop-filter: blur(0.5px);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 2;
    contain: layout style paint;
}

/* Responsive para video */
@media (max-width: 768px) {
    .video-desktop {
        display: none;
    }
    .video-mobile {
        display: block;
    }
}

/* Mejoras de performance para video */
.video-desktop iframe,
.video-mobile iframe {
    transform: scale(1.02);
    transition: none;
}