.mobile-menu{
    display: none;
}

header{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    box-sizing: border-box;
    width: 100%;
    height: 85px;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--borderOpacity);
    font-family: "Cormorant Garamond";
    backdrop-filter: blur(10px);
    /* background-color: var(--Fondo);*/
    /* transition: background-color .2s ease, color .2s ease; */
}

.header-background{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--Fondo);
    opacity: 0.8;
    z-index: -1;
    transition: background-color .2s ease, color .2s ease;
}

.desktop-nav{
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    gap: 2rem;
}

.desktop-nav nav ul{
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    list-style-type: none;
    margin: 0;
    gap: .75rem;
}

.desktop-nav a{
    text-decoration: none;
    color: var(--textColor);
    font-size: 1.4rem;
    font-weight: 600;
    padding: .5rem 1rem;
    position: relative;
    z-index: 1;
    text-wrap: nowrap;
}

.onActive{
    border-bottom: 2px solid var(--borderOpacity);
    border-radius: 4px;
}

.desktop-nav a:hover,
.desktop-nav a:focus {
    color: white;
    transition: color .2s ease;
}

.desktop-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--blueGradient);
    border-radius: 6px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.2s ease;
}

.desktop-nav a:hover::before,
.desktop-nav a:focus::before {
    opacity: 1;
}

.desktop-toggle{
    position: absolute;
    right: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background-color: transparent;
    border-radius: 50%;
    width: 36px;
    min-width: 36px;
    height: 36px;
    background-color: rgba(128, 128, 128, 0.1);
    border: 1px solid rgba(128, 128, 128, 0.15);
    user-select: none;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.lucide-sun, .lucide-moon, .fa-moon{
    color:var(--iconLight);
}

.icon-transition i, .icon-transition svg {
    opacity: 0;
    animation: iconFadeIn 0.5s forwards;
}

@keyframes iconFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-8px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.desktop-toggle:hover{
    background-color: rgba(128, 128, 128, 0.2);
    box-shadow: 0px 0px 3px 1px rgba(167, 139, 250, 1);
}

@media (max-width: 1024px){    
    .desktop-nav {
        display: none;
    }

    header{
        height: 70px;
        padding: 0 1rem;
        justify-content: flex-end;
        backdrop-filter: none;
    }

    .header-background{
        background-color: var(--Fondo);
        opacity: 1;
        z-index: -1;
        transition: background-color .2s ease, color .2s ease;
    }

    .pages-nav {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .open-menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        width: 45px;
        height: 45px;
        background: transparent;
        border: none;
        gap: .75rem;
        scale: .95;
    }

    .open-menu div {
        width: 100%;
        height: 2.2px;
        background: var(--textColor);
        opacity: 0.8;
        border-radius: 2px;
        transition: all .250s ease;
        transform-origin: left;
    }

    .open-menu.x-icon div:first-child {
        width: 30px;
        transform: rotate(45deg) translateY(-5px);
    }

    .open-menu.x-icon div:last-child {
        width: 30px;
        transform: rotate(-45deg) translateY(5px);
    }

    .header-background{
        opacity: 1;
    }

    .mobile-menu-content {
        position: fixed;
        top: 69px;
        right: 0;
        bottom: 0;
        left: 0;
        height: calc(100vh - 69px);
        background-color: var(--Fondo);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        transform: translateX(-100%);
        pointer-events: none;
        transition: transform 0.6s ease, background-color 0.2s ease, color 0.2s ease;
        z-index: 10;
        overflow-y: auto;
    }

    .mobile-menu-content.open {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-menu-content .onScroll {
        position: relative;
        padding: 2rem;
        padding-top: 3rem;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
        width: 90%;
        overflow-y: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .onScroll::-webkit-scrollbar {
        display: none;
    }

    .fadetop{
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 25px;
        background: linear-gradient(to bottom, var(--Fondo), rgba(255, 255, 255, 0));
        pointer-events: none;
        z-index: 1;
    }

    .navUl {
        list-style-type: none;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 2rem;
        padding: 0;
        margin: 0;
    }

    .navUl a {
        color: var(--textColor);
        text-decoration: none;
        padding: 0.5rem 1rem;
        font-size: 3rem;
    }

    .mobile-toggle {
        font-family: "Cormorant Garamond", serif;
        color: var(--textColor);
        background-color: transparent;
        padding: 0.5rem 1rem;
        font-size: 3rem;
        border: none;
    }

    .social-iconos{
        display: flex;
        align-items: center;
        justify-content: flex-start;
        box-sizing: border-box;
        position: relative;
        list-style-type: none;
        width: 100%;
        gap: 4rem;
        margin: 2rem;
        padding-left: 1rem;
    }

    .social-iconos li{
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .social-iconos a, .social-iconos span{
        background-color: transparent;
        border: none;
        width: 50px;
        height: 50px;
        border-radius: 0;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--iconLight);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--iconLight);
        position: relative;
        transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
    }

    .social-iconos i{
        position: absolute;
        margin: auto;
        opacity: .9;
        scale: 1.25;
    }

    .social-iconos h4{
        font-size: 16px;
    }
}

@media (max-width: 768px) {

    .open-menu {
        scale: .85;
    }

    .mobile-menu-content .onScroll {
        padding: 2rem 1rem;
        gap: 1.5rem;
    }

    .navUl {
        gap: 1.5rem;
    }

    .navUl a, .mobile-toggle{
        font-size: 2rem;
    }

    .social-iconos{
        padding-left: 1rem;
        margin: 0;
        gap: 2rem;
    }

    .social-iconos a, .social-iconos span{
        width: 44px;
        height: 44px;
        padding-bottom: 4px;
    }

    .social-iconos i{
        scale: .95;
    }

    .social-iconos h4{
        font-size: 12px;
    }
}