/* --- Reseteo Básico y Estilos Globales --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    /* CAMBIO CLAVE: Eliminamos el color de fondo de aquí para que no tape el carrusel */
    color: #ffffff;
    overflow: hidden; /* Evita barras de scroll */
}

/* --- Contenedor del Carrusel (Slideshow) --- */
.slideshow-container {
    position: fixed; /* Ocupa toda la pantalla */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* CAMBIO CLAVE: Usamos z-index: 1 para que sea la capa de fondo, pero visible */
    z-index: 1; 
    background-color: #121212; /* Añadimos un color de fondo aquí como fallback */
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover; /* Asegura que la imagen cubra todo el espacio */
    background-position: center;
    
    /* La magia del fade-in / fade-out */
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Duración y suavidad de la transición */
}

.slide.active {
    opacity: 1; /* La diapositiva activa es la única visible */
}

/* --- Contenido Superpuesto --- */
.content-overlay {
    position: relative; /* CAMBIO CLAVE: Necesario para que z-index funcione */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    /* Un fondo semitransparente para que el texto sea legible sobre cualquier imagen */
    background-color: rgba(0, 0, 0, 0.5); 
    padding: 40px;
    /* CAMBIO CLAVE: Le damos un z-index más alto para que esté SOBRE el carrusel */
    z-index: 2; 
}

.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.coming-soon {
    font-size: 1.8rem;
    font-weight: 300;
    margin-top: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

/* --- Selector de Idioma --- */
.language-switcher {
    position: absolute;
    top: 25px;
    right: 30px;
    /* CAMBIO CLAVE: Un z-index alto para que esté encima de todo */
    z-index: 10;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 15px;
}

.language-switcher button {
    background: none;
    border: none;
    color: #cccccc;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s, text-shadow 0.3s;
}

.language-switcher button.active {
    color: #ffffff;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
}

.language-switcher button:not(.active):hover {
    color: #ffffff;
}

.language-switcher span {
    color: #888888;
    margin: 0 5px;
}

/* --- Adaptación para móviles (Responsive Design) --- */
@media (max-width: 768px) {
    .brand-name {
        font-size: 3rem;
    }
    .coming-soon {
        font-size: 1.2rem;
    }
    .language-switcher {
        top: 15px;
        right: 15px;
    }
}