/* src/styles/scrollytelling.css */

/* 1. EL CANVAS 3D (FONDO) */
#hero-3d-container {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    
    /* CAMBIO CLAVE: Lo mandamos detrás de todo */
    z-index: -1 !important; 
    
    pointer-events: auto;
}

/* 2. EL CONTENEDOR PRINCIPAL */
main {
    position: relative !important;
    z-index: 10 !important; /* Encima del canvas */
}

/* 3. LA PISTA DE SCROLL (SECCIONES LARGAS) */
section.pantalla {
    /* Forzamos altura para el scroll */
    height: 300vh !important; 
    display: block !important; 
    position: relative !important;
    
    /* CAMBIO CLAVE: Asegurar que no tenga fondo de color que tape el 3D */
    background: transparent !important; 
    background-color: transparent !important;
    
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Excepción contacto */
section.pantalla:last-of-type {
    height: 100vh !important;
}

/* 4. EL VAGÓN (CONTENIDO PEGAJOSO) */
.contenido {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0;
    height: 100vh !important;
    width: 100%;
    
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    
    z-index: 20 !important;
    pointer-events: none; 
    
    /* CAMBIO CLAVE: Forzamos opacidad 1 por defecto por si el JS falla */
    opacity: 1; 
}

.contenido > * {
    pointer-events: auto;
}

#shader-gradient-bg {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: -2 !important; /* Asegúrate que sea el más bajo */
    pointer-events: none;
    display: block !important; /* Por si acaso */
}

/* IMPORTANTE: El body NO debe tener un color sólido que tape todo */
body {
    background: transparent !important; 
}