/* ============================================================
   SECCIÓN HERO CON IMAGEN (PÁGINA DE INICIO)
   ============================================================ */

.hero-image {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: #000; /* Fondo de seguridad mientras carga la imagen */
}

.bg-image {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Clave para que la imagen no se deforme */
    transform: translate(-50%, -50%);
    z-index: 1;
    filter: grayscale(70%) contrast(1.2); /* Mantiene tu estilo visual */
}

.video-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    pointer-events: auto; 
}

/* --- ANIMACIONES DE LOS TEXTOS --- */

.hero-title {
    font-size: 64px;
    font-weight: 800;
    color: white;
    margin: 0;
    opacity: 0;
    animation: slideUpCinematic 1.5s ease-out forwards;
    animation-delay: 1.2s; 
}

.hero-subtitle {
    font-size: 22px;
    letter-spacing: 3px;
    margin-top: 15px;
    text-transform: uppercase;
    opacity: 0;
    
    /* Configuración para el barrido de color */
    background: linear-gradient(to right, #D32F2F 50%, white 50%);
    background-size: 200% 100%;
    background-position: 100% 0; 
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Animaciones: Subida + Barrido */
    animation: 
        slideUpCinematic 1.5s ease-out forwards,
        barridoColor 1.5s ease-in-out forwards;
    animation-delay: 1.8s, 3.3s; 
}

/* --- BOTÓN "VER MÁS" --- */

.hero-actions {
    margin-top: 40px;
    opacity: 0;
    animation: slideUpCinematic 1.2s ease-out forwards;
    animation-delay: 5s; 
    display: flex;
    justify-content: center;
}

.btn-ver-mas {
    display: inline-block;
    padding: 12px 35px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-ver-mas i {
    margin-left: 10px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* --- HOVER REFINADO --- */
.btn-ver-mas:hover {
    background: #D32F2F;
    border-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-ver-mas:hover i {
    transform: translateY(3px);
}

/* --- KEYFRAMES --- */

@keyframes slideUpCinematic {
    0% {
        opacity: 0;
        transform: translateY(60px);
        filter: blur(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes barridoColor {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: 0% 0;
    }
}

/* ============================================================
   RESPONSIVIDAD
   ============================================================ */

@media (max-width: 768px) {
    .hero-title { 
        font-size: 40px; 
    }
    .hero-subtitle { 
        font-size: 16px; 
        letter-spacing: 2px; 
    }
    .btn-ver-mas { 
        padding: 10px 25px; 
        font-size: 12px; 
        letter-spacing: 2px; 
    }
}