
header {
    top: 0px;
    left: 50%;
    transform: translateX(-50%);

    width: 100%;
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    height: clamp(80px, 10vh, 140px);
    background-color: rgba(0, 0, 0, 0.151);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    margin: 0 auto;
    box-shadow: none;
}

header img {
    height: clamp(40px, 2.2vw, 60px);
    margin: 0 30px;
}



.links-container {
    top: 60px;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
}

.links-container a {
    color: rgba(255, 255, 255, 0.759);
    text-decoration: none;
    font-weight: 100;
    font-size: var(--p-title);
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.links-container a:hover {
    color: aqua;
}

.divisor {
    width: 1px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.759);
}

.services-button-c {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.services-button {
    cursor: pointer;
    user-select: none;
}

.services-container-nav {
    padding: 10px 12px;
    padding-top: 0px;
    max-width: 220px;
    background-color: rgb(5, 0, 0);
    left: -10px;
    position: absolute;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: top;
    transition: all 0.4s ease;
    top: 10px;
    box-shadow: none;
    border-bottom-left-radius: 10px;
    backdrop-filter: blur(10px);
    border-bottom-right-radius: 10px;
}

.services-container-nav-closed {
    transform: scaleY(0%);
}

.services-container-nav a {
    padding: 6px 0px;
    display: none;
}

.scrolled {
    background-color: black;
}

.scrolled-nav {
    background-color: rgb(0, 0, 0);
}

/*==========================================================
        # MENU BUTTON (Tablet / Móvil)
==========================================================*/

.menu-button-c {
    display: none;
    z-index: 2;
}

.menu-button {
    width: 28px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.menu-button span {
    width: 100%;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
}

.menu-button-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-button-active span:nth-child(2) {
    opacity: 0;
}

.menu-button-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/*==========================================================
        # RESPONSIVE
==========================================================*/

/* Desktop pequeño */
@media (max-width: 1200px) {
    .links-container {
        gap: 6px;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .menu-button-c {
        display: flex;
        position: absolute;
        right: 30px;
        top: 50%;
        transform: translateY(-50%);
    }

    .links-container {
        top: clamp(80px, 10vh, 140px);
        left: 0px;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 0px;
        position: absolute;
        background-color: black;
        overflow: hidden;
        transform-origin: top;
        transition: all 0.4s ease;
        padding: 10px 0px;
    }

    .links-container-closed {
        transform: scaleY(0%);
    }

    .links-container a {
        padding: 12px 0px;
    }

    .links-container > .divisor {
        display: none;
    }

    .services-button-c {
        width: 100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .services-container-nav {
        position: static;
        width: 100%;
        left: auto;
        top: auto;
        align-items: center;
        transform: none;
        padding: 0px;
    }

    .services-container-nav a {
        padding: 8px 0px;
        color: white;
    }
}

/* Móvil */
@media (max-width: 600px) {
    header img {
        margin: 0 20px;
    }

    .menu-button-c {
        right: 20px;
    }
}