/* =========================================
   NAVBAR
========================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    padding: 1.2rem 0;

    transition:
        background 0.4s ease,
        padding 0.4s ease,
        box-shadow 0.4s ease;
}


/* NAVBAR AL HACER SCROLL */

.navbar.scrolled {
    background: var(--navy);

    backdrop-filter: blur(10px);

    padding: 0.8rem 0;

    box-shadow:
        0 4px 16px rgba(0,0,0,0.25);
}


/* CONTENEDOR */

.navbar-container {
    width: 90%;
    max-width: 1400px;

    margin: 0 auto;

    display: flex;

    justify-content: space-between;
    align-items: center;
}


/* LOGO */

.logo {
    font-family: 'Great Vibes', cursive;

    font-size: 2rem;

    color: #d4af37;

    letter-spacing: 1px;

    cursor: pointer;

    transition: 0.3s ease;
}

.logo:hover {
    opacity: 0.85;
}

.nav-logo {
    font-family: 'Great Vibes', cursive;
}


/* MENÚ */

.nav-menu {
    display: flex;

    align-items: center;

    gap: 2rem;
}


/* LINKS */

.nav-menu a {
    position: relative;

    color: white;

    text-decoration: none;

    font-size: 0.95rem;

    font-weight: 500;

    letter-spacing: 0.5px;

    transition: color 0.3s ease;
}


/* EFECTO DORADO */

.nav-menu a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -6px;

    width: 0%;
    height: 2px;

    background: #d4af37;

    transition: width 0.35s ease;
}

.nav-menu a:hover {
    color: #d4af37;
}

.nav-menu a:hover::after {
    width: 100%;
}


/* BOTÓN MENÚ MÓVIL */

.menu-toggle {
    display: none;

    background: none;

    border: none;

    color: white;

    font-size: 2rem;

    cursor: pointer;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .nav-menu {
        position: fixed;

        top: 0;
        right: -100%;

        width: 200px;
        height: 100vh;

        background:
            rgba(15,15,15,0.96);

        backdrop-filter: blur(12px);

        flex-direction: column;

        justify-content: center;

        gap: 2rem;

        transition: right 0.4s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        font-size: 1.1rem;
    }

    .menu-toggle {
        display: block;

        z-index: 1001;
    }
}