/****************************************************
 * HEADER
 ****************************************************/
 /** Breakpoint 1024px */

 .header-general {
    display: grid;
    grid-template-columns: 1fr min(var(--wp--custom--layout--content-size), 90%) 1fr;
    padding-bottom: 0;
    position: fixed;
    margin-top: 32px;
    width: 100%;
    background-color: transparent;
    border: none;
    z-index: 10;
}

.inner-header-general {
    display: flex;
    align-items: center;
    border-radius: 24px;
    border: 1px solid var(--wp--preset--color--neutral-50);
    background: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(10px);
    justify-content: center;
    margin: 0 auto;
    padding: 0 24px;
    height: 80px;
}
.header-general .logo-header {
    margin-right: 48px;
    z-index: 100;
    width: clamp(7.938rem, 6.277rem + 4.911vw, 10.438rem);
}
.header-general .logo-header img {
    display: block;
    height: auto;
}

.menu ul.nav {
    display: flex;
    list-style: none;
    padding-inline-start: 0;
    align-items: center;
    gap: 28px;
}

.header-general .menu-main {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.header-general .menu-second,
.header-general .menu-ctas {
    margin-left: 5px;
    margin-right: 5px;
}

.header-general .menu a {
    text-decoration: none;
}

.header-general .menu-item a {
    font-size: var(--wp--preset--font-size--body);
    line-height: 1.2;
    font-weight: var(--wp--preset--font-weight-500);
    color: var(--wp--preset--color--neutral-800);
    display: block;
}


.header-general .cabecera-cta{
    height: 40px;
}
.header-general .menu .menu-item a:hover, .header-general .menu .current-menu-item a{
    color: var(--wp--preset--color--primary-100) !important;
}

/*Menú*/


.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    width: 27px;
    height: 14px;
    position: relative;
    padding: 0;
    margin: 0;
    align-self: self-start;
}
.menu-toggle .hamburger,
.menu-toggle.open .hamburger::before,
.menu-toggle.open .hamburger::after {
    position: absolute;
    width: 100%;
    height: 20px;
    background: var(--wp--preset--color--neutral-900);
    transition: all 0.3s ease;
    align-self: self-start;
}
.menu-toggle .hamburger {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--wp--preset--color--neutral-900);
    transition: all 0.3s ease;
    border-radius: 10px;
}
.menu-toggle .hamburger:nth-child(1) {
    top: 0;
}
.menu-toggle .hamburger:nth-child(2) {
    top: 6px;
}
.menu-toggle .hamburger:nth-child(3) {
    top: 12px;
}

.menu-toggle.open .hamburger:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}
.menu-toggle.open .hamburger:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open .hamburger:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}

.main-menu {
    display: none;
}
.main-menu.open {
    display: block;
}
.arrow-icon {
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease;
    display: inline-block;
}

@media only screen and (max-width: 1024px) {
    .header-general {
        grid-template-columns: none;
        margin-top: 0;
        padding: 0;
        scrollbar-width: none;
    }
    .header-general .menu-main nav{
        display: none;
    }

    .menu-main.open nav {
        display: block;
    }

    .menu-toggle {
        display: inline-block;
    }

    .inner-header-general {
        width: 100%;
        height: 78px;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        justify-content: space-between;
        align-items: center;
        padding: 16px;
    }

    .menu-main.open {
        flex-direction: column;
        align-items: stretch;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--wp--preset--color--secondary-30);
        z-index: 99;
        min-height: unset;
        max-height: unset;
        padding-left: 16px;
        padding-right: 16px;
    }

    .inner-header-general:has(.menu-main.open) {
        backdrop-filter: none;
    }
    .menu-main.open nav{
        width: 100%;
    }
    .arrow-icon {
        filter: brightness(0) invert(1);
    }
    .menu-main.open  ul.nav {
        flex-direction: column;
        text-align: left;
        padding-top: 68px;
        gap: 32px;
    }
    .menu-toggle {
        align-self: auto;
    }

    .menu-main {
        display: none;
        justify-content: flex-end;
    }



    .menu-main nav {
        flex-grow: 1;
    }

    .menu-main ul.nav {
        list-style: none;
        padding: 0;
        margin-top: 48px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .menu-main nav > ul > li {
        padding-bottom: 8px;
        border-bottom: 1px solid var(--wp--preset--color--neutral-400);
    }

    .menu-main nav > ul > li > a {
        font-size: var(--wp--preset--font-size--h-5) !important;
        line-height: var(--wp--preset--line-height-h5) !important;
        text-decoration: none;
    }

    .menu-main nav > ul > li > a.active,
    .menu-main nav > ul > li.current-menu-item > a {
        font-weight: 600;
    }

    .menu-main .contenedor-cta {
        margin-top: auto;
        padding-top: 24px;
        padding-bottom: 28px;
        left: 0;
        right: 0;
    }

    .menu-main .cabecera-cta {
        width: 100%;
        display: flex;
        justify-content: right;
        padding-right: 71px;
    }
    .menu-main.open .cabecera-cta {
        padding-right: 0;
    }

    .menu-toggle {
        z-index: 100;
        margin-left: 24px;
    }

    header .open .contenedor-cta a {
        width: 100%;
    }


}