header#cabecera {
    height: 100vh;
    color: var(--white);
    display: grid;
    place-items: end start;
}

header#cabecera h1 {
    font-size: 36px;
    font-weight: 400;
    letter-spacing: 9.36px;
}

header#cabecera video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
}

section.vertical-deco {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    z-index: -1;
}

div#vertical-deco-container {
    display: block;
    width: 100%;
    margin: auto;
    text-align: right;
    direction: rtl;
    position: relative;
    z-index: -1;
}

div#vertical-deco {
    width: 448px;
    height: 1624px;
    position: relative;
    z-index: -1;
}

section.botones {
    display: grid;
    place-content: center;
    place-items: center;
    grid-template-columns: 1fr 1fr;
    max-width: 735px;
    margin: auto;
    gap: 155px;
}

section.botones a {
    color: var(--white);
    background-color: var(--green);
    display: block;
    max-width: 290px;
    width: 100%;
    padding: 10px 15px;
    text-transform: uppercase;
    border-radius: 3em;
}

div#identity-header.activo {
    color: var(--white);
    background-color: var(--green);
}

div#identity-header.activo a {
    color: var(--white);
}

section.main_menu {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2;
}

header section.main_menu ul {
    display: flex;
    flex-flow: row;
    justify-content: center;
    align-items: center;
    gap: 4em;
    padding: 40px 0 40px;
    width: 100%;
    background: linear-gradient(180deg, #23545b 0%, #23545ba8 50%, #ffffff00 100%);
}

header section.main_menu ul a, 
header section.main_menu ul a:active, 
header section.main_menu ul a:focus, 
header section.main_menu ul a:hover {
    color: var(--white);
    font-size: 16px;
    font-weight: 400;
}

div#identity-header.activo section.main_menu ul {
    color: var(--white);
    background: var(--green);
}


.header-bottom {
    width: 100%;
    text-align: center;
    display: grid;
    place-content: stretch;
    place-items: stretch;
    gap: 112px;
    position: relative;
    bottom: 70px;
    z-index: 1;
}

section.conocenos a:hover, 
section.conocenos a:active, 
section.conocenos a:focus, 
section.conocenos a {
    color: var(--white);
}

@media(max-width: 1280px) {
    header section.main_menu ul {
        gap: 1.5em;
    }
}

@media(max-width: 980px) {
    header section.main_menu ul li:not(header section.main_menu ul li:nth-of-type(4)) {
        display: none;
    }

    #menu-toggle {
        display: flex;
        flex-flow: column;
        gap: 4px;
        position: fixed;
        right: 2em;
        top: 2em;
        z-index: 299;
    }

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

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

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

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

    body.open {
        overflow: hidden;
    }

    body.open header a {
        font-weight: 700;
    }
    
    body.open header picture {
        z-index: 999;
        position: relative;
    }

    body.open header .menu-main_menu-container {
        background-color: rgba(255, 255, 255, 0.82);
        height: 100vh;
        width: 100%;
        z-index: 2;
        position: absolute;
        top: 0;
        left: 0;
        display: grid;
        place-content: center;
        place-items: start center;
        padding-top: 0em;
    }

    body.open #menu-main_menu {
        display: flex;
        position: absolute;
        flex-flow: column;
        gap: 2em;
    }
    
    body.open header #logo-container a {
        position: relative;
        z-index: 9999;
    }

    body.open #menu-main_menu li {
        position: relative;
        z-index: 9999;
    }


    header section.main_menu ul li:nth-of-type(4) {
        order: 1;
    }


    body.open header section.main_menu ul li:not(header section.main_menu ul li:nth-of-type(4)) {
        display: block;
        order: 2;
    }

    body.open div#identity-header.activo section.main_menu ul {
        color: var(--white);
        background: var(--green);
        height: 100vh;
        justify-content: start;
    }

}

@media(max-width: 800px) {
    section.botones {
        display: grid;
        grid-template-columns: 100%;
        gap: 2em;
    }

    header#cabecera h1 {
        letter-spacing: 3.36px;
    }
}