.header-moderno {
    width: 100%;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: var(--z-index-sticky);
}

.header-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--container-padding);
    height: var(--header-height);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.logo-link {
    display: flex;
    transition: var(--transition-base);
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 100%;
    max-height: 48px;
    width: auto;
}

.header-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 8px;
    height: 100%;
    margin: 0;
    padding: 0;
}

.header-nav .nav-item {
    height: 100%;
}

.header-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: var(--text-main);
    font-size: var(--font-size-sm);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

.header-nav .nav-link:hover {
    color: var(--color-primary);
    background-color: rgb(164, 244, 255);
    transform: translateY(-2px);
}

.header-nav .nav-link img {
    width: 22px;
    height: 22px;
    transition: var(--transition-base);
}

.central-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #333333;
    background-color: #ffffff;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
    gap: 8px;
}

.central-link img {
    height: 22px;
}

.central-link::after {
    background: #ffffff;
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    border-radius: 50px;
    z-index: -1;
}

.central-link::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: conic-gradient(#3186ff00 0deg, #6f31ff 43deg, #dd0097 65deg, #dd0097 105deg, #00dcd1 144deg, #00dcd1 180deg, #3186ff00 324deg, #3186ff00 360deg);
    border-radius: 53px;
    scale: 2 1;
    transform: rotate(180deg);
    z-index: -1;
    animation: gradientBorderAnimation 5s linear infinite, pulseShadow 7s infinite ease-in-out;
    transition: opacity 0.3s ease;
}

.central-link:hover {
    color: #000000;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.4), 0 8px 25px rgba(37, 117, 252, 0.4);
}

.central-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.4), 0 8px 25px rgba(37, 117, 252, 0.4);
}

.central-link .material-symbols-outlined {
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes gradientBorderAnimation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulseShadow {
    0% {
        box-shadow: 0 0 15px #5300acd2, 0 0 25px #00f2ff4d;
    }

    50% {
        box-shadow: 0 0 25px #6a11cb7e, 0 0 40px #00f2ff85;
    }

    100% {
        box-shadow: 0 0 15px #6a11cb54, 0 0 25px #00f2ff4d;
    }
}

@keyframes pulseShadowHover {
    0% {
        box-shadow: 0 0 20px rgba(37, 117, 252, 0.6), 0 0 35px rgba(106, 17, 203, 0.4);
    }

    50% {
        box-shadow: 0 0 30px rgba(37, 117, 252, 0.8), 0 0 50px rgba(106, 17, 203, 0.6);
    }

    100% {
        box-shadow: 0 0 20px rgba(37, 117, 252, 0.6), 0 0 35px rgba(106, 17, 203, 0.4);
    }
}

.header-nav .nav-item.active .nav-link {
    color: var(--text-white);
    background-color: var(--text-dark);
}

.header-nav .nav-item.active .nav-link img {
    filter: brightness(0) invert(1);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: var(--radius-full);
}

.menu-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

@media (max-width: 1064px) {
    .header-brand {
        gap: 8px;
    }

    .logo-img {
        height: 40px;
    }

    .header-nav .nav-list {
        gap: 4px;
    }

    .header-nav .nav-link img {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 992px) {
    .header-container {
        height: auto;
        padding: 15px var(--container-padding);
    }

    .header-brand {
        width: 100%;
        justify-content: space-between;
    }

    .menu-toggle {
        display: block;
    }

    .header-nav {
        width: 100%;
        height: auto;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .header-nav.active {
        max-height: 300px;
        margin-top: var(--spacing-md);
    }

    .header-nav .nav-list {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .header-nav .nav-link {
        padding: 12px 16px;
        border-radius: var(--radius-full);
    }

    .central-link {
        width: 100%;
        color: #000000;
    }
}

@media (max-width: 576px) {
    .logo-link {
        height: 40px;
    }

    .header-nav .nav-link {
        padding: 8px 12px;
        font-size: var(--font-size-xs);
    }

    .header-nav .nav-link img {
        width: 18px;
        height: 18px;
    }
}
