header {
    position: relative;
    width: 100%;
    background-position: center;
}

body.landing-page header p,
body header h1,
body.landing-page header .content-container a {
    font-family: 'Product Sans', sans-serif;
    margin: 0;
}

body.landing-page header .content-container a:not(.whatsapp-contact) {
    background-color: var(--footer-bg);
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
    border-radius: 3rem;
    padding: 10px 25px;
}

body header h1 {
    font-size: 43px;
    font-weight: 700;
    filter: drop-shadow(0px 2px 13px var(--black));
}

body.landing-page header p {
    font-size: 24px;
    font-weight: 400;
    margin: 0 0 20px;
    text-wrap: balance;
}

body.landing-page header p:not(:has(a)) {
    filter: drop-shadow(0 1px 10px var(--black));
}

body:not(.landing-page) header {
    display: grid;
    place-content: start center;
    min-height: 500px;
}

body:not(.landing-page) header .page-title {
    position: absolute;
    width: 100%;
    bottom: 0;
    color: var(--white);
}

.landing-page header {
    min-height: 70vh;
    display: grid;
    place-content: start center;
}

.whatsapp-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
}

.whatsapp-container > div {
    max-width: 1280px;
    margin: auto;
    width: 100%;
    display: grid;
    place-content: end;
    place-items: center;
    padding: 2rem 15px;
}

.whatsapp-container a {
    width: auto;
    z-index: 99999;
    position: relative;
}

header a {
    text-decoration: none;
}

.landing-page header .enlaces p:first-of-type a {
    color: var(--white);
    background-color: var(--button-bg);
}

.landing-page header .enlaces p:last-of-type a {
    color: var(--title);
    background-color: var(--white);
}

.landing-page header .contenido {
    position: absolute;
    color: var(--white);
    width: 100%;
    height: 100%;
    display: grid;
    place-content: center;
    place-items: center;
    padding: 0 15px;
}

.landing-page header .contenido h1 {
    font-size: 43px;
    font-weight: 400;
    filter: drop-shadow(0 0 0 var(--white));
}

.landing-page header .contenido h1 strong {
    font-weight: 800;
}

.landing-page header .contenido .content p:has(strong) {
    margin: 0;
}

.landing-page header .contenido .content p,
.landing-page header .contenido .content strong {
    font-size: 20px;
}


.landing-page header .contenido .content p {
    filter: drop-shadow(0 0 0 var(--white));
}

header ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, 250px);
    place-items: center;
    place-content: stretch center;
    width: 100%;
    max-width: 1280px;
    margin: auto;
}

header ul li {
    filter: drop-shadow(0px 1px 10px var(--black));
}

header ul a img {
    height: 60px;
    width: 240px;
    object-fit: contain;
    object-position: center;
}

header ul a:hover,
header ul a:focus,
header ul a:active,
header ul a {
    color: var(--white);
    font-size: 16px;
    font-family: 'Product Sans', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
}

div#identity-header {
    padding: 2rem 15px;
    width: 100%;
}

header .toggle-container .toggle-wrapper {
    max-width: 1280px;
    margin: auto;
    padding: 0px;
    direction: rtl;
    height: 98px;
    place-content: start center;
}

#menu-toggle {
    display: none;
}

.menu-bar {
    width: 30px;
    height: 3px;
    border-radius: 2rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
    background: var(--white);
}

body.open #menu-toggle .menu-bar:nth-child(1) {
    opacity: 0;
}

body.open #menu-toggle .menu-bar:nth-child(2) {
    transform: translateY(6px) rotate(45deg);
}

body.open #menu-toggle .menu-bar:nth-child(3) {
    transform: rotate(-45deg);
}

header .content-container:not(.whatsapp-container > div) {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    color: var(--white);
}


header .toggle-container {
    position: absolute;
    top: 2rem;
    width: 100%;
    left: 0;
}


a.logo {
    height: auto;
    display: block;
    z-index: 300;
    position: relative;
}

#identity-header a {
    display: block;
    z-index: 3;
    position: relative;
    width: fit-content;
    margin: auto;
}

.landing_header_content {
    z-index: 2;
    position: absolute;
    color: var(--white);
    width: 100%;
    text-align: center;
    bottom: 5rem;
}

.landing_header_content h1 {
    font-family: 'Lora', sans-serif;
    font-size: 37px;
    margin: 0;
    font-weight: 400;
    filter: drop-shadow(0px 0px 0px var(--white));
}


header img.logo {
    max-width: 89px;
    height: 97px;
    width: 100%;
    object-fit: contain;
}

@media(max-width: 1280px) {
    header ul {
        display: flex;
        flex-flow: row;
        justify-content: space-evenly;
        gap: 3rem;
    }
}

@media(max-width: 930px) {

    header ul {
        display: grid;
        gap: unset;
    }

    header .toggle-container .toggle-wrapper {
        direction: ltr;
    }

    header .toggle-container {
        position: absolute;
        top: 1rem !important;
        width: 100%;
        left: 1rem !important;
    }

    #menu-toggle {
        display: flex;
        flex-flow: column;
        gap: 4px;
        z-index: 299;
        position: relative;
        width: fit-content;
        padding-right: 15px;
    }

    header ul li {
        opacity: 0;
    }

    header ul li:has(img) {
        opacity: 1;
        order: 3;
    }

    body.open header ul li:not(:has(img)) {
        opacity: 1;
        transition: opacity 0s ease;
    }

    header ul li:not(:has(img)) {
        opacity: 0;
        transition: opacity 0s ease;
    }

    header ul li {
        opacity: 0;
    }

    header ul li:nth-of-type(1) {
        order: 1;
    }

    header ul li:nth-of-type(2) {
        order: 2;
    }

    body.open header ul li:has(img) {
        order: 1;
    }

    header ul li:nth-of-type(4) {
        order: 4;
    }

    header ul li:nth-of-type(5) {
        order: 5;
    }

    body.open header ul li:nth-of-type(1) {
        order: 2;
    }

    body.open header ul li:nth-of-type(2) {
        order: 3;
    }

    body.open header ul li:nth-of-type(4) {
        order: 4;
    }

    body.open header ul li:nth-of-type(5) {
        order: 5;
    }


    body.open header .main_menu > div {
        background-color: rgb(from var(--footer-bg) r g b / 95%);
        height: 100vh;
        width: 100%;
        z-index: 2;
        position: fixed;
        top: 0;
        right: 0;
        display: grid;
        place-content: center;
        place-items: start center;
        padding-top: 0em;
        opacity: .95;
        translate: 0 0;
        grid-template-columns: repeat(4, 1fr);

        @starting-style {
            opacity: 0;
            translate: 0 -46.5%;
        }
    }

    body.open header .main_menu > div > ul {
        display: flex;
        position: absolute;
        flex-flow: column;
        gap: 2em;
        text-align: center;
        left: 0px;
        width: 100%;
        align-items: center;
        top: 2rem;
    }

    header .toggle-container {
        top: 1rem;
    }

    body.open header .main_menu > div {
        width: 100%;
    }

    html:has(body.open), body.open {
        overflow: hidden;
    }
}

@media(max-width: 620px) {
    header ul a img {
        width: 180px;
    }

    body header h1 {
        font-size: 36px;
    }

    body.landing-page header p {
        font-size: 18px;
    }

    .landing-page header {
        min-height: 100vh;
    }

    body:not(.landing-page) header {
        min-height: 300px;
    }
}

@media(max-width: 560px) {

    .landing-page header .contenido .content p, .landing-page header .contenido .content strong {
        font-size: 16px;
        text-wrap: balance;
    }

}