html {
    scroll-behavior: smooth;
}

/* Animación para el Hero */
.hero-content h1 {
    opacity: 0;
    transform: translateY(30px);
    animation: aparecer 1s forwards ease-out; /* Animación de entrada */
}

.hero-content h2 {
    opacity: 0;
    transform: translateY(20px);
    animation: aparecer 1s forwards ease-out 0.3s; /* Aparece con retraso */
}

/* Definición de la Animación */
@keyframes aparecer {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- PANTALLA DE CARGA (PRELOADER) --- */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background-color: #0a0a0a; /* Fondo oscuro acorde a tu web */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    width: 600px;
    height: 600px;
    max-width: 80vw;
    max-height: 80vh;
    background: url("img/logorealista.jpg") no-repeat center center;
    background-size: contain;
    animation: preloader-pulse 1.5s infinite ease-in-out;
}

@keyframes preloader-pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* --- EFECTO SCROLL PARALLAX ZOOM --- */
.contenedor-imagen {
    width: 100%;
    height: 60vh; /* Altura adaptada para que luzca bien en la web */
    overflow: hidden; /* Recorta lo que sobra de la imagen para el efecto ventana */
    border-radius: 1rem; /* Bordes redondeados en sintonía con el resto de la web */
    margin: 2rem 0;
}

.imagen-efecto {
    width: 100%;
    height: 150%; /* 50% extra para permitir un recorrido de parallax mucho mayor */
    object-fit: cover;
    transform-origin: center;
}

/* Animación para el Modal de Lanzamiento */
@keyframes aparecer {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}