.navbar {
    background: rgba(2, 12, 27, 0.98);
    height: 85px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    position: fixed;
    top: 0; width: 100%; z-index: 2000;
    border-bottom: 1px solid rgba(247, 215, 148, 0.1);
}

.logo { color: #fff; font-size: 26px; font-weight: 800; cursor: default; }
.logo span { color: #f7d794; text-shadow: 0 0 10px rgba(247, 215, 148, 0.3); }

.nav-menu { display: flex; list-style: none; gap: 15px; }

.nav-menu li a {
    color: #ccd6f6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 15px;
    transition: 0.4s;
    position: relative;
}

/* Efecto de línea inferior al pasar el mouse */
.nav-menu li a::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    background: #f7d794;
    bottom: 0; left: 50%;
    transition: 0.4s;
    transform: translateX(-50%);
}

.nav-menu li a:hover::after { width: 80%; }
.nav-menu li a:hover { color: #f7d794; }

.btn-login-nav {
    border: 2px solid #f7d794;
    border-radius: 8px;
    margin-left: 10px;
    background: rgba(247, 215, 148, 0.05);
}

.btn-login-nav:hover { background: #f7d794 !important; color: #020c1b !important; }


/* Ajustes para pantallas pequeñas (Celulares) */
@media (max-width: 850px) {
    .checkbtn {
        display: block; /* Muestra las 3 rayitas */
        order: 2;
    }

    .logo {
        order: 1;
        font-size: 20px;
    }

    .nav-menu {
        position: fixed;
        width: 100%;
        height: 100vh;
        background: #020c1b;
        top: 80px;
        left: -100%; /* Escondido a la izquierda */
        text-align: center;
        transition: all .5s;
        flex-direction: column; /* Iconos uno debajo de otro */
        padding-top: 50px;
        z-index: 999;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    /* Cuando el checkbox está activo, el menú entra */
    #check:checked ~ .nav-menu {
        left: 0;
    }

    .btn-login-nav {
        margin-left: 0;
        display: inline-block;
        width: 150px;
    }
}

/* Ocultar el checkbox real */
#check {
    display: none;
}