/* Importar fuente */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
    background-color: #000;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #000; /* Fondo negro */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.spinner {
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-left-color: #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Contenedor principal */
.container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Navegación */
.navigation {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: auto;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    padding: 5px 5px;
    background: rgba(5, 5, 5, 0.7);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Estilos del menú hamburguesa */
.menu-toggle {
    cursor: pointer;
    margin-right: 15px;
    display: none; /* Se muestra en móvil */
}

.menu-toggle .material-icons {
    font-size: 36px;
    color: #fff;
}

/* Estilos del menú */
.navigation ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navigation li {
    margin: 0;
    padding: 0;
}

.navigation a {
    display: block;
    text-decoration: none;
    color: #fff;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
    word-break: break-word;
}

.navigation a:hover,
.navigation a.active,
.navigation a:focus {
    background-color: rgba(255, 255, 255, 0.8);
    color: #000;
    outline: none;
}

/* Ajustes para pantallas más pequeñas */
@media (max-width: 1024px) {
    .navigation a {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    .navigation ul {
        gap: 15px;
    }
}

/* Responsividad para móviles */
@media (max-width: 767px) {
    .navigation {
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
    }
    .nav-wrapper {
        padding: 0;
        justify-content: flex-end;
        width: 100%;
        background: none;
        background-color: none;
        backdrop-filter: none;
        box-shadow: none;
    }
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 15px;
        width: 50px;
        height: 50px;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 50%;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    .navigation ul {
        position: absolute;
        top: 70px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: column;
        background: rgba(0, 0, 0, 0.9);
        padding: 10px;
        border-radius: 30px;
        display: none; /* Oculto inicialmente */
        z-index: 1000;
        width: 90%; /* Ajustamos el ancho para que se adapte a la pantalla */
    }
    .navigation ul.open {
        display: flex;
    }
    .navigation a {
        padding: 10px 15px;
        font-size: 0.9rem;
        white-space: normal; /* Permitir saltos de línea */
        text-align: center; /* Centrar el texto */
    }
}

/* Contenedor de tours */
.tours {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Estilos de los iframes */
.tours iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    pointer-events: none;
}

.tours iframe.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}
