/* ========================= */
/* 🔝 NAVBAR PREMIUM */
/* ========================= */
.nav {
    position: fixed;
    top: 0;
    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding:  10px 40px;

    background: rgba(10, 10, 10, 0.45);
    backdrop-filter: blur(16px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    
    z-index: 1000;
   
}

/* LOGO */
.logo img {
    width: 130px;   
}

/* MENU DESKTOP */
#menu {
    display: flex;
    align-items: center;
}

#menu a {
    margin: 0 15px;
    text-decoration: none;
    color: #aaa;

    font-size: 14px;
    transition: 0.3s ease;
}

#menu a:hover {
    color: white;
}

/* BTN */
.nav-btn {
    background: transparent;
    border: 1px solid #333;

    padding: 11px 18px;
    border-radius: 8px;

    color: white;
    cursor: pointer;

    transition: 0.3s ease;
}

.nav-btn:hover {
    border-color: #7a00ff;
    box-shadow: 0 0 20px rgba(122, 0, 255, 0.3);
}

/* ========================= */
/* 🍔 HAMBURGUESA */
/* ========================= */
.menu-toggle {

    display: none;

    width: 42px;
    height: 42px;

    justify-content: center;
    align-items: center;

    position: relative;

    cursor: pointer;
    z-index: 1200;
}

.menu-toggle span {

    position: absolute;

    width: 24px;
    height: 2px;

    background: white;
    border-radius: 999px;

    transition: 0.4s ease;
}

.menu-toggle span:nth-child(1) {
    transform: translateY(-6px);
}

.menu-toggle span:nth-child(2) {
    opacity: 1;
}

.menu-toggle span:nth-child(3) {
    transform: translateY(6px);
}

/* X */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* ========================= */
/* 🌌 OVERLAY PREMIUM */
/* ========================= */
.mobile-menu {

    position: fixed;
    inset: 0;

    background: rgba(5, 5, 5, 0.82);
    backdrop-filter: blur(18px);

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    pointer-events: none;

    transition: 0.5s ease;

    z-index: 1100;
}

/* ACTIVO */
.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

/* GLOW */
.mobile-glow {

    position: absolute;

    width: 450px;
    height: 450px;

    background:
        radial-gradient(circle,
            rgba(122, 0, 255, 0.25),
            transparent 70%);

    filter: blur(90px);
}

/* LINKS */
.mobile-links {

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 28px;

    position: relative;
    z-index: 2;
}

/* LINKS */
.mobile-links a {

    text-decoration: none;
    color: #aaa;

    font-size: 2rem;
    font-weight: 500;

    position: relative;

    opacity: 0;
    transform: translateY(25px);

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

/* HOVER */
.mobile-links a:hover {
    color: white;
    transform: scale(1.05);
}

/* LÍNEA */
.mobile-links a::after {

    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0%;
    height: 2px;

    background:
        linear-gradient(45deg, #00c3ff, #7a00ff);

    transition: 0.3s ease;
}

.mobile-links a:hover::after {
    width: 100%;
}

/* STAGGER */
.mobile-menu.active .mobile-links a {
    animation: fadeLink 0.6s forwards;
    animation-delay: calc(var(--i) * 0.08s);
}

@keyframes fadeLink {

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* BTN MOBILE */
.mobile-btn {

    margin-top: 15px;

    background:
        linear-gradient(45deg, #00c3ff, #7a00ff);

    border: none;

    padding: 14px 24px;
    border-radius: 10px;

    color: white;
    cursor: pointer;

    transition: 0.3s ease;
}

.mobile-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(122, 0, 255, 0.4);
}

/* ========================= */
/* 📱 MOBILE */
/* ========================= */
@media (max-width: 767px) {

    #menu,
    .nav-btn {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .nav {
        justify-content: space-between;
        padding: 10px 20px;
    }

    .logo {
        position: relative;
        z-index: 1200;

        display: flex;
        justify-content: center;
        align-items: center;
    }

    .logo {
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .menu-toggle {
        position: relative;
        z-index: 1300;
    }
}

/* ========================= */
/* 📲 TABLET */
/* ========================= */
@media (min-width:768px) and (max-width:1024px) {

    .nav {
        padding: 8px 30px;
    }

    #menu a {
        font-size: 13px;
        margin: 0 10px;
    }

    .nav-btn {
        padding: 9px 14px;
        font-size: 13px;
    }

    .menu-toggle {
        display: none;
    }

    .mobile-menu {
        display: none;
    }
}

/* ========================= */
/* 🔒 LOCK SCROLL */
/* ========================= */
body.menu-open {
    overflow: hidden;
}
