/**
 * VIDEO BACKGROUND COMPONENT
 * Fondos de video elegantes para hero sections
 * Inspirado en el estilo moderno de homepage
 * 
 * @package CheckToBuild
 * @since 2.0.0
 */

/* ===========================
   VIDEO BACKGROUND CONTAINER
   =========================== */

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: var(--border-radius-lg, 12px);
}


/* ===========================
   VIDEO ELEMENT
   =========================== */

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    z-index: 0;
    transition: transform 0.3s ease;
}

/* ===========================
   HERO WITH VIDEO BACKGROUND
   =========================== */

.hero-with-video {
    position: relative;
    overflow: hidden;
    background: var(--primary, #004aad);
    color: var(--white, #ffffff);
    padding: var(--space-20, 5rem) 0 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-with-video .container {
    position: relative;
    z-index: 2;
}

/* ===========================
   MODERN GRID LAYOUT
   =========================== */

.hero-with-video .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12, 3rem);
    align-items: center;
    max-width: var(--container-max-width, 1200px);
    margin: 0 auto;
    padding: var(--space-8, 2rem) 0;
}

.hero-with-video .hero-text {
    max-width: 600px;
}

.hero-with-video .hero-title {
    font-family: var(--font-family-base, 'Inter', sans-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--font-weight-bold, 700);
    line-height: var(--line-height-tight, 1.1);
    color: var(--white, #ffffff);
    margin-bottom: var(--space-6, 1.5rem);
    letter-spacing: var(--letter-spacing-tight, -0.025em);
}

.hero-with-video .hero-subtitle {
    font-size: var(--font-size-lg, 1.125rem);
    line-height: var(--line-height-after-title, 1.6);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-8, 2rem);
    font-family: var(--font-family-secondary, 'Inter', sans-serif);
    max-width: 500px;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 768px) {
    .hero-with-video .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-8, 2rem);
        text-align: center;
    }
    
    .hero-with-video {
        padding: var(--space-12, 3rem) 0;
        min-height: 60vh;
    }
    
    .hero-video-wrapper {
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .hero-with-video .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
    
    .hero-with-video .hero-subtitle {
        font-size: var(--font-size-base, 1rem);
    }
    
    .hero-with-video {
        padding: var(--space-8, 2rem) 0;
    }
}

/* ===========================
   ACCESSIBILITY
   =========================== */

@media (prefers-reduced-motion: reduce) {
    .hero-video {
        transform: translateX(-50%) translateY(-50%) scale(1.1);
        transition: none;
    }
    
    .hero-video-wrapper::before {
        animation: none;
    }
}