/* Navbar Style */
.navbar {
    position: fixed;
    display: flex;
    height: 80px;
    margin: 0;
    inset: 10px;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.4);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    backdrop-filter: blur(12.4px);
    -webkit-backdrop-filter: blur(12.4px);
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    top: 0;
    left: 0;
    right: 0;
    border-radius: 0 0 10px 10px;
}

/* Contenedor del logo y los enlaces */
.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    img {
        vertical-align: middle;
        height: 60px;
    }
}
    .nav-links {
        list-style: none;
        display: flex;
        font-weight: bold;
        gap: 25px;
        justify-content: center;
        flex-grow: 1; /* Para que ocupe todo el espacio posible */
    }

    .nav-links li a {
        color: #ffffff;
        background-color: #502655;
        border-radius: 5px;
        text-decoration: none;
        padding: 10px;
    }

    .nav-links li a:hover {
        background-color: #783c7e;
    }

    /* Responsive Menu */
    .hamburger {
        display: none;
        cursor: pointer;
        margin-right: 20px; /* Añade margen a la derecha en móviles */
    }

    .hamburger .dash {
        width: 25px;
        height: 3px;
        background-color: #ffffff;
        margin: 5px;
    }

    /* Menú móvil */
    .mobile-menu {
        display: none; /* Oculto por defecto */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.9);
        justify-content: center;
        align-items: center;
        z-index: 100;
    }

    .mobile-menu.show {
        display: flex; /* Mostrar cuando se activa */
    }

    .mobile-menu-content {
        background-color: rgba(255, 255, 255, 0.1);
        padding: 20px;
        width: 100%;
        height: 100%;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .mobile-menu ul {
        width: 100%;
        list-style: none;
        text-align: center;
        justify-items: center;

        hr {
            width: 60%;
            border: 1px groove #C387BF;

        }
    }

    .mobile-menu ul li {
        margin: 20px 0;
    }

    .mobile-menu ul li a {
        color: white;
        text-decoration: none;
        font-size: 2rem;
    }

.mobile-menu ul li a img {
    width: auto;
    max-width: 80%;
    height: 20%;
}

    /* Botón de cerrar en el menú móvil */
    .close-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        background-color: transparent;
        border: none;
        font-size: 2rem;
        color: white;
        cursor: pointer;
    }

    #container3D canvas {
        width: 100vw !important;
        height: 100vh !important;
        position: absolute;
        top: 0;
        left: 0;
    }

    /* Estilos para tableta/móvil */
    @media (max-width: 800px) {
        .nav-links {
            display: none; /* Ocultar enlaces en móviles */
        }

        .hamburger {
            display: block; /* Mostrar hamburguesa en móviles */
        }

        .mobile-menu.show {
            display: flex; /* Mostrar menú móvil */
        }
    }