.hero {
    background-image: url('/images/hero-bg-placeholder.jpg');
    background-size: cover;
    background-position: center center;
    color: #fff;
    text-align: center;
    padding: 300px var(--spacing-lg) var(--spacing-2xl) var(--spacing-lg);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero__video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    object-position: center center;
    z-index: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero__video.loaded {
    opacity: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(26, 54, 101, 0.6);
    z-index: 1;
}

.hero__content {
    max-width: 1540px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 var(--spacing-md);
}

.hero__title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-lg);
    color: #fff;
    line-height: 1.3;
    text-shadow: rgba(0, 0, 0, 0.5) 2px 3px 6px;
    letter-spacing: -0.02em;
}

.hero__subtitle {
    font-size: var(--font-size-xl);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: rgba(0, 0, 0, 0.3) 1px 2px 4px;
}

/* Tablets y dispositivos medianos */
@media (max-width: 1024px) {
    .hero {
        padding: 200px var(--spacing-md) var(--spacing-xl) var(--spacing-md);
        min-height: 450px;
    }
    
    .hero__content {
        max-width: 900px;
        padding: 0 var(--spacing-sm);
    }
    
    .hero__title {
        font-size: var(--font-size-3xl);
        line-height: 1.3;
        margin-bottom: var(--spacing-md);
    }
    
    .hero__subtitle {
        font-size: var(--font-size-lg);
        line-height: 1.5;
    }
}

/* Tablets pequeñas y móviles grandes */
@media (max-width: 768px) {
    .hero {
        min-height: 400px;
        padding: 160px var(--spacing-md) var(--spacing-lg) var(--spacing-md);
        background-position: center center;
    }
    
    .hero__video {
        object-position: center center;
        min-width: 100%;
        width: 100vw;
    }
    
    .hero::before {
        background-color: rgba(26, 54, 101, 0.7);
    }
    
    .hero__content {
        padding: 0;
    }
    
    .hero__title {
        font-size: clamp(1.5rem, 5vw, var(--font-size-2xl));
        line-height: 1.4;
        margin-bottom: var(--spacing-md);
        letter-spacing: -0.01em;
        text-shadow: rgba(0, 0, 0, 0.6) 2px 3px 8px;
    }
    
    .hero__subtitle {
        font-size: clamp(1rem, 3.5vw, var(--font-size-md));
        line-height: 1.6;
        letter-spacing: 0.01em;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .hero {
        min-height: 350px;
        padding: 140px var(--spacing-sm) var(--spacing-md) var(--spacing-sm);
    }
    
    .hero::before {
        background-color: rgba(26, 54, 101, 0.75);
    }
    
    .hero__content {
        padding: 0;
    }
    
    .hero__title {
        font-size: 1.25rem;
        line-height: 1.5;
        margin-bottom: var(--spacing-sm);
        font-weight: 700;
    }
    
    .hero__subtitle {
        font-size: 0.95rem;
        line-height: 1.65;
    }
}

/* Optimización para dispositivos en landscape */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 120px var(--spacing-md) var(--spacing-md) var(--spacing-md);
    }
    
    .hero__video {
        object-position: center 40%;
    }
    
    .hero__title {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .hero__subtitle {
        font-size: 1rem;
    }
}
