header {
    background-color: #141516;
    position: fixed;
    top: 0;
    z-index: 999;
    width: 100%;
    max-height: 97px;

    h1::after {
        display: none
    }

    section {
        display: flex;
        flex-direction: row;
        overflow: visible;
        margin: 0 auto;
        position: relative;
        width: 100%;

        >ul {
            align-items: center;
            display: flex;
            flex: 1;
            justify-content: flex-start;
            list-style: none;
            padding-left: 2rem;
            vertical-align: middle;

            li:nth-child(1) {
                margin-left: 0
            }

            li {
                margin: 0 1.4rem;
                line-height: 1.6;

                a.logo-main {
                    display: inline-block;
                    text-indent: -999em;
                    min-width: 172px;
                    overflow: hidden;
                    height: 46px;
                    background: url('https://images.dv.thinkerp.cc/logo-davinci-blanco.svg') no-repeat;
                    background-size: 172px 46px
                }
            }

            li.mobile-contact {
                display: none;
                padding-right: 2rem;
                margin-right: 0
            }
        }

        >nav {
            ul {
                list-style-type: none;
                display: flex;
                justify-content: flex-end;
                margin-right: 0;
                white-space: nowrap;
                padding-left: 2rem;
                align-items: center;
                vertical-align: middle;

                li:first-child {
                    margin-left: 0
                }

                li {
                    margin: 0 1.4rem;
                    padding-bottom: 2rem;
                    position: relative;
                    text-align: center;
                    font-size: 1.8rem;
                    line-height: 1.6em;

                    a {
                        border-bottom: 3px solid #fff0;
                        color: #fff;
                        display: inline-block;
                        font-family: "Montserrat", sans-serif;
                        font-weight: 800;
                        padding-top: 2.3rem;
                        position: relative;
                        text-decoration: none;
                        text-transform: uppercase
                    }
                }

                li:hover {
                    a {
                        border-bottom: 3px solid #0ce8ab
                    }
                }

                li.dropdown {
                    a {
                        padding-right: 2rem
                    }

                    >ul {
                        background-color: #141516;
                        display: block;
                        list-style-type: none;
                        opacity: 0;
                        padding: 14px 2rem 2rem;
                        position: absolute;
                        top: 8.4rem;
                        transform: opacity .1s visibility .1s;
                        transition-delay: .1s;
                        visibility: hidden;
                        z-index: 1000;

                        li {
                            text-align: left;
                            margin: 0;
                            line-height: 1.6em;
                            padding: 0;

                            a {
                                padding: 4px 4px 0;
                                font-family: "Montserrat", sans-serif;
                                font-size: 1.6rem;
                                border-bottom: 3px solid #fff0;
                                display: inline-block
                            }
                        }

                        li:hover {
                            background-color: #0ce8ab
                        }

                        li.highlight {
                            a {
                                color: #0ce8ab
                            }
                        }

                        li.highlight:hover {
                            background-color: #0ce8ab;

                            a {
                                color: #fff
                            }
                        }
                    }

                    >a::after {
                        position: absolute;
                        right: 0;
                        top: 50%;
                        font-family: "icomoon";
                        font-weight: 300;
                        -webkit-font-smoothing: antialiased;
                        display: inline-block;
                        font-style: normal;
                        text-rendering: auto;
                        line-height: 1;
                        text-align: center;
                        font-size: 1.8rem;
                        content: '\e901'
                    }
                }

                li.dropdown:hover {
                    ul {
                        opacity: 1;
                        visibility: visible;
                        transition: opacity .1s visibility .1s;
                        transition-delay: 0s
                    }
                }

                li.main-contact {
                    font-size: 1.6rem;
                    padding: 0;
                    margin-right: 0;
                    text-align: center;
                    position: relative;

                    a {
                        border: none;
                        padding: 3.3rem 0 3.1rem;
                        background-color: #db0f80;
                        max-width: 21.6rem;
                        display: flex;
                        vertical-align: middle;
                        text-align: left;
                        align-items: center;
                        line-height: 1em;

                        span {
                            display: inline-block;
                            white-space: normal;
                            max-width: 12.6rem;
                            padding-right: 3.6rem
                        }
                    }

                    a:hover {
                        background-color: #c30d72
                    }

                    a::before {
                        content: '\e904';
                        font-family: "icomoon";
                        font-weight: 100;
                        padding-right: 1rem;
                        font-size: 4rem;
                        line-height: 32px;
                        padding-left: 3.6rem;
                        display: inline-block
                    }
                }
            }
        }
    }
}

@media screen and (max-width:1129px) {
    header {
        section {
            >nav {
                ul {
                    li.news-link {
                        display: none
                    }
                }
            }
        }
    }
}

@media screen and (max-width:991px) {
    header {
        section {
            >nav {
                display: none
            }

            >ul {
                justify-content: space-between;

                li {
                    a {
                        line-height: 1.6em
                    }

                    a.button-side-nav {
                        font-size: 2.6rem;
                        padding: 3.3rem 0 3.1rem;
                        line-height: 32px;
                        display: inline-block;
                        color: #fff;
                        text-decoration: none
                    }

                    a.button-side-nav::before {
                        content: '\e91a';
                        font-family: "icomoon";
                        font-weight: 100
                    }
                }

                li.mobile-contact {
                    display: inline-block;

                    a {
                        text-align: right;
                        text-decoration: none;
                        color: #fff;
                        display: inline-block;
                        font-size: 1.8rem
                    }

                    a::before {
                        content: '\e904';
                        font-family: "icomoon";
                        padding: 10px;
                        background-color: #db0f80;
                        border-radius: 50%;
                        font-weight: 100
                    }
                }
            }
        }
    }
}

section#side-nav {
    position: fixed;
    width: 100vw;
    height: 100vh;
    z-index: 999;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    color: #fff;
    display: none;

    a.menu-close {
        position: absolute;
        z-index: 2;
        font-size: 2rem;
        top: 2rem;
        right: 3rem;
        color: #fff;
        text-decoration: none;

        i.icon-times::before {
            content: '\e930';
            font-family: "icomoon";
            font-style: normal;
            line-height: 1
        }
    }

    nav {
        position: fixed;
        width: 100vw;
        height: 100vh;
        top: 0;
        left: 0;
        overflow: scroll;
        padding: 6rem 0;
        background-color: #222427;
        scrollbar-width: none;

        div {
            padding: 1rem 1rem 1rem 4rem;

            ul:first-child {
                font-size: 22px;
                font-weight: 800;
                font-family: "Montserrat", sans-serif;
                list-style: none;

                li {
                    cursor: pointer;
                    min-height: 33px;
                    font-family: 'Montserrat', sans-serif;
                    font-weight: 900;
                    padding: 5px 0;
                    line-height: 1.6em;

                    a {
                        color: #0ce8ab;
                        font-weight: 900
                    }
                }

                li.dropdown {
                    p {
                        font-size: 22px;
                        font-weight: 800;
                        font-family: "Montserrat", sans-serif;
                        line-height: 1.6em;

                        a {
                            color: #0ce8ab;
                            line-height: 1.4rem;
                            text-decoration: none
                        }

                        span {
                            color: #0ce8ab;
                            padding: 0 20px;
                            vertical-align: middle;
                            float: right;
                            font-size: 18px;
                            cursor: pointer;

                            i.icon-angle-up {
                                display: inline-block
                            }

                            i.icon-angle-up::before {
                                content: '\e901';
                                transition: transform 0.3s
                            }

                            i.icon-angle-down::before {
                                transition: transform 0.3s;
                                content: '\e901'
                            }
                        }
                    }

                    ul {
                        list-style-type: disc;
                        font-size: 18px;
                        padding: 0 2rem;
                        width: 100%;
                        display: none;

                        li {
                            padding: 4px 0;
                            min-height: 33px;
                            font-size: 18px;
                            line-height: 1.6em;

                            a {
                                color: #fff;
                                line-height: 1.1em;
                                padding: 6px 0
                            }
                        }
                    }
                }

                li.dropdown.open {
                    ul {
                        display: block
                    }

                    p {
                        span {
                            i {
                                transform: rotate(180deg)
                            }
                        }
                    }
                }
            }
        }
    }
}

@media(max-width:1129px) {
    li:has(a[href="/noticias"]) {
        display: none;
    }
}