nav.main-menu {
    max-width: 1190px;
    margin: 0 auto;
    width: 100%;
    justify-content: end;
    display: flex;
}

#menu-main-menu {
    text-align: right;
    max-width: 980px;
    display: flex;
    
    /* Ayoze: */
    /* flex-flow: row-reverse wrap; */
    /* Lo que quiere antonio */
    flex-flow: wrap;
    gap: 4em;
    
    position: relative;
    z-index: 1;
    width: 100%;
    justify-content: end;
    align-items: end;
}

ul#menu-main-menu li.menu-item {
    /* Ayoze: */
    /* flex: 1; */
    text-align: right;
}

ul#menu-main-menu li.menu-item a {
    text-decoration: none;
    color: var(--black);
    text-transform: uppercase;
    margin: 0;
    font-size: 16px;
}

header {
    position: relative;
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
}

.red-figure {
    position: absolute;
    z-index: 2;
    left: 9em;
}

.header-img {
    margin: auto;
    height: 315px;
    max-width: 1920px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    transform: translateY(-5px);
}

.header-wrapper {
    display: grid;
    place-content: center;
    place-items: center;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto 5px;
    position: relative;
}

.social-images-header {
    width: 1280px;
    text-decoration: none;
    color: unset;
    text-align: right;
    margin-right: 5em;
    transform: translateY(20px);
}

.social-images-header img {
    filter: invert(1);
}
a.logo-header {
    max-width: 172px;
}
.social-images-header a {
    text-decoration: none;
}

.social-images-header a:nth-of-type(2) {
    margin: 0 15px;
}

.current-menu-item {
    font-weight: bold;
}

.hide {
    display: none;
}

.show {
    display: flex;
}

#menu-toggle {
    display: none;
}

.swiper.funciones {
    height: 630px;
}

.swiper.funciones .swiper-slide img {
    height: 630px;
    object-fit: cover;
}

.titulo-funcion-container {
    position: absolute;
    z-index: 40;
    width: 100%;
    bottom: 2.5em;
    left: 0;
    color: var(--white);
    text-align: center;
    text-transform: uppercase;
    margin: 0;
}

.titulo-funcion-container .content-container {
    max-width: 1080px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    place-content: start;
    text-align: start;
}

.titulo-funcion-container h2 {
    margin: 0;
    font-size: 34px !important;
    font-weight: 300 !important;
}

@media( max-width: 1800px) {
    .red-figure {
        left: 0em;
        top: -.5em;
    }
}

@media( max-width: 1490px) {
    .red-figure {
        left: -8.5em;
    }
}

@media( max-width: 1280px) {

    #menu-toggle {
        display: flex;
        flex-flow: column;
        gap: 4px;
        position: absolute;
        right: 1em;
        top: 1em;
        z-index: 99999;
    }

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

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

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

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

    .bg-red.slope-2 {
        transform: translateY(10px);
    }

    #menu-main-menu {
        display: none;
    }
    
    .header-wrapper {
        display: flex;
        flex-flow: column-reverse;
        justify-content: center;
        align-items: center;
        text-align: center !important;
        margin: 0 auto;
        padding: 0 15px;
    }
    
    .social-images-header {
        display: none;
        margin: unset !important;
        text-align: inherit;
    }

    .header-wrapper>a {
        margin: 2em 0 0;
    }

    /* Version absoluta */
    body.open nav.main-menu {
        position: absolute;
        display: grid;
        max-width: unset;
        place-content: center;
        place-items: center;
        background-color: rgba(255, 255, 255, .95);;
        z-index: 20;
        width: 100%;
        height: 100vh;
        top: 0;
    }

    body.open nav.main-menu ul#menu-main-menu li.menu-item {
        text-align: center;
    }

    body.open {
        overflow: hidden;
    }

    body.open .social-images-header {
        display: block;
        top: 7em;
        width: 100%;
        margin: 0 auto !important;
        z-index: 21;
        position: absolute;
    }

    body.open #menu-main-menu {
        position: absolute;
        display: flex;
        flex-flow: column;
        gap: 2em;
        top: 15em;
        justify-content: center;
        align-items: center;
    }

    body.open #menu-main-menu li a {
        font-weight: 500;
        font-size: 25px;
    }

    body.open .social-images-header,
    body.open .logo-header {
        z-index: 30;
    }

    .red-figure {
        left: -10.5em;
        top: 1.3em;
    }
}

@media(max-width: 800px) {
    .red-figure {
        display: none;
    }
}

@media(max-width: 780px) {
    .funciones {
        grid-template-columns: 1fr 5fr 1fr;
    }

    .funcion {
        padding: 0 1em;
    }
}
