/**
 * Video Hero Styles - InkaBox Express
 * Optimizado para rendimiento y responsive
 */

.hero-video-section {
    position: relative;
    width: 100%;
    height: 600px;
    min-height: 600px;
    overflow: hidden;
    margin-top: 0;
}

/* Contenedor del video */
.video-hero-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Video de fondo */
.hero-background-video {
    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: 1;
}

/* Overlay oscuro sobre el video para mejorar legibilidad del texto */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

/* Contenido sobre el video */
.video-hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: white;
    padding: 4rem 0;
}

.video-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    max-width: 800px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease forwards;
}

.video-hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.video-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.video-hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.video-hero-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.video-hero-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.video-hero-stats .stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Control de reproducción (opcional) */
.video-control-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.video-control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    transform: scale(1.1);
}

.video-control-btn i {
    font-size: 1.2rem;
}

/* Indicador de carga */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: white;
    font-size: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-video-section {
        height: 500px;
        min-height: 500px;
    }

    .video-hero-title {
        font-size: 2.5rem;
    }

    .video-hero-subtitle {
        font-size: 1.2rem;
    }

    .video-hero-stats {
        gap: 20px;
    }

    .video-hero-stats .stat-number {
        font-size: 2rem;
    }

    .video-control-btn {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }

    .video-control-btn i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-video-section {
        height: 400px;
        min-height: 400px;
    }

    .video-hero-title {
        font-size: 2rem;
    }

    .video-hero-subtitle {
        font-size: 1rem;
    }

    .video-hero-stats .stat-number {
        font-size: 1.5rem;
    }

    .video-hero-stats .stat-label {
        font-size: 0.85rem;
    }
}

/* Optimización: Ocultar video en conexiones lentas */
@media (prefers-reduced-data: reduce) {
    .hero-background-video {
        display: none;
    }
    
    .video-hero-container {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
}

/* Optimización: Reducir movimiento si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
    .video-hero-title,
    .video-hero-subtitle,
    .video-hero-actions,
    .video-hero-stats {
        animation: none;
        opacity: 1;
    }
}
