/* ==========================================================================
   CONFIGURACIÓN BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
}

/* ==========================================================================
   PANTALLA DE SELECCIÓN (SPLASH)
   ========================================================================== */
#language-selector {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Usamos fondo.png que es el archivo real en tu servidor */
    background: #000 url('fondo.png') no-repeat center center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.selector-content {
    text-align: center;
    max-width: 600px;
    padding: 40px;
}

.main-logo-svg {
    width: 300px; /* Tamaño del logotipo.svg centrado */
    height: auto;
    margin-bottom: 30px;
}

#tagline {
    font-size: 0.8rem;
    letter-spacing: 6px;
    margin-bottom: 50px;
    color: #fff;
    text-transform: uppercase;
}

.buttons-wrapper {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.lang-btn {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 15px 40px;
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: 0.3s ease;
}

.lang-btn:hover {
    background: #fff;
    color: #000;
}

#audio-notice {
    margin-top: 40px;
    font-size: 0.6rem;
    color: #aaa;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ==========================================================================
   ESTRUCTURA PARALLAX (MAIN CONTENT)
   ========================================================================== */
.base-bg {
    background-image: url('fondo.png');
    z-index: 1;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: fixed; 
    top: 0;
    left: 0;
}

/* 1. Forzar que todas las capas de escena sean transparentes */
.layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent !important; /* Crucial: elimina el fondo negro sólido */
}

/* 2. Asegurar que el viewport no tenga fondo propio */
.parallax-viewport {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: transparent !important;
}

/* 3. El fondo rojo debe estar al fondo de todo (z-index: 1) */
.base-bg {
    background-image: url('fondo.png'); /* */
    z-index: 1;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: fixed; 
    top: 0;
    left: 0;
}

/* Nombres de archivos según tu captura archivos.PNG */
.faro-lejos { background-image: url('faro1.png'); z-index: 2; }
.faro-cerca { background-image: url('faro2.png'); z-index: 3; opacity: 0; }
.scene-about { background-image: url('faro3.png'); z-index: 4; opacity: 0; }
.founders-layer { background-image: url('fundadores.png'); z-index: 5; opacity: 0; }

/* ==========================================================================
   RESPONSIVE MÓVIL
   ========================================================================== */
@media (max-width: 768px) {
    .main-logo-svg { width: 220px; }
    
    .base-bg { background-image: url('fondomovil.png'); }
    .faro-lejos { background-image: url('movil2.png'); }
    .faro-cerca { background-image: url('movil3.png'); }
    .scene-about { background-image: url('movil4.png'); }
    .founders-layer { background-image: url('movil5.png'); }
}
