// colors
@c_base: #000000;
@c_accent: #9F3754;
@c_discrete: #ADADAD;
@c_light: rgba(217, 217, 217, 0.70);


/**sizes**/
@mobile: 758px;
@desktop: 1500px;
@bigscreen: 1500px;

.custom_li(){
    ul {
        padding: 0px;

        li {
            padding-left: 8px;
            list-style: none;
            margin-bottom: 10px;

            &::before {
                content: "-";
                color: @c_discrete;
                margin-left: -8px;
                margin-right: 5px;
            }
        }

    }
}

html {
    height: 100%;

    body {
        margin: 0px;
        overflow-x: hidden;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        font-size: 18px;
        line-height: 21px;
        /* 128.571% */
        
        @media(max-width: @mobile) {
            font-size: 16px;
            line-height: 20px;
        }

        * {
            font-family: 'Mukta', sans-serif;

        }

        a {
            color: inherit;
        }

        h1 {
            font-family: 'Cantata One', serif;
            color: @c_accent;
            font-weight: normal;
            font-size: 46px;
            line-height: 90%;
            margin-bottom: 3rem;
            @media(max-width: @mobile) {
                font-size: 29px;
                margin-bottom: 2rem;
                margin-top: 0px;
            }
        }
        .cenefa{
            img{
                object-fit: cover;
                height: 34px;
                width: 100%;
                display: block;
               
                @media(max-width: @mobile) {
                    height: 20px;
                }
            }
        }
        article {
            padding-bottom: 60px;
            @media(max-width: @mobile) {
                padding-bottom: 20px;
            }
            &:nth-child(even) {
                background-color: @c_light;
            }

            &.a_1020 {
                line-height: 142%;

                strong {
                    color: @c_accent;
                }
            }

            &#contacto {
                .container {
                    p {
                        strong {
                            margin-top: 60px;
                            display: block;
                            color: @c_accent;
                        }
                    }
                }
            }
        }

        .group {
            h5 {
                text-transform: uppercase;
                margin-bottom: 0px;
            }

            &.doc {
                .thumb {
                    background-color: #9FB6C5 !important;
                    background-image: url(../img/computer.svg);
                    background-repeat: no-repeat;
                    background-position-x: 25px;
                    background-position-y: 25px;
                    background-size: 11%;

                }
            }
        }

        .flex {
            display: flex;
            @media(max-width: @mobile) {
                flex-direction: column;
            }

            &.fill {
                justify-content: space-between;
            }

            &.wrap {
                flex-wrap: wrap;
            }

            &.padfix {
                margin-left: max(-1%, -10px);
                margin-right: max(-1%, -10px);
            }

            .flexitem {
                width: 33.333333333%;
                box-sizing: border-box;
                padding: max(1%, 10px);
                margin-bottom: 10px;
                @media(max-width: @mobile) {
                    width: 100%;
                }
                img {
                    width: 100%;
                    margin-bottom: 10px;
                }

                .name {
                    color: @c_accent;
                    font-weight: bold;
                }

                .text {
                    margin-top: -12px;
                }

                .fecha {
                    color: @c_accent;

                    p {
                        margin: 0px;
                    }
                }


            }

            &.thumbs {
                .thumb {
                    font-family: 'Cantata One', serif;
                    background-color: @c_accent;
                    color: white;
                    height: max(16vh, 212px);
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    text-align: center;
                    padding: 20px max(12%, 46px);
                    text-decoration: none;
                    font-size: 26px;
                    line-height: 100%;
                    @media(max-width: @mobile) {
                        font-size: 21px;
                        padding: 20px 26px;
                        height: max(16vh, 184px);
                    }
                }

                .text {
                    margin-top: 17px;
                    font-size: 14px;
                    line-height: 97%;
                }
            }

            &.fechas {
                justify-content: space-between;
                margin: 60px 0px;
                @media(max-width: @mobile) {
                    display: block;
                }

                .year {
                    cursor: pointer;
                    @media(max-width: @mobile) {
                        display: inline-block;
                        cursor: pointer;
                        width: 25%;
                        padding: 10px;
                        box-sizing: border-box;
                    }
                }
            }



        }

        .references {
            .ref {
                margin-bottom: 60px;

                .custom_li();
            }
        }

        .year {
            color: @c_accent;
            font-weight: bold;
        }

        .col{
            &.flex1{
                flex:1;
            }
            &.narrow{
                width: 30%;
                margin-left: 52px;
                @media(max-width: @mobile) {
                    width: 100%;
                    margin-left: 0px;
                }
                img{
                    width: 100%;
                    margin-bottom: 10px;
                }
            }
        }

        .container {
            width: 1430px;
            margin-left: auto;
            margin-right: auto;
            box-sizing: border-box;
            padding: 30px 30px;

            .custom_li();

            @media(max-width: @bigscreen) {
                margin: 14px 0px;
                width: 1300px;
            }
            @media(max-width: @desktop) {
                width: 100%;
            }
            @media(max-width: @mobile) {
                padding: 20px 20px;
            }

            .col {}
        }
        #close-menu{
            display: none;
        }
        @media(max-width: @mobile) {
            #mobile-menu {
                display: block !important;
                background-color: transparent;
                border: none;
                position: absolute;
                right: 10px;
                top: 15px;
                svg{
                    fill: white;
                    width: 35px;
                    height: 35px;
                    margin-left: 10px;
                }
              }
            .topnav {
                display: none;
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                flex-direction: column;
                align-items: center;
                background-color: rgba(159, 55, 85, 1);
                li{
                    text-align: center;
                }
              }
              .topnav.active {
                display: flex;
                align-items: center;
                justify-content: center;
                padding: 0px;
                font-size: 27px;
                backdrop-filter: blur(10px);
                z-index: 10;
                .subnav{
                    display: none;
                    background-color: transparent;
                    position: relative;
                    margin-left: 0px;
                    font-size: 17px;
                    display: none !important;
                }
              }
              #close-menu {
                display: none;
                position: absolute;
                top: 10px;
                right: 10px;
                background-color: transparent;
                border: none;
                font-size: 24px;
                color: white;
                cursor: pointer;
                font-size: 54px;
                line-height: 33px;
              }
              .topnav.active #close-menu {
                display: block;
              }
           
        }

        nav {
            background-color: @c_accent;
            color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 15px;
                padding: 20px 43px;

            @media(max-width: @mobile) {
                padding: 21px 27px !important;
            }

            .topnav{
                @media(max-width: @mobile) {
                    display: none;
                }
            }
            .langs{
                @media(max-width: @mobile) {
                    display: none;
                }
            }

            #mobile-menu {
                display: none;
               
              }

           
            .logo {
                width: 302px;

                @media(max-width: @mobile) {
                    width: calc(100% - 43px) !important;
                    max-width: 262px;
                }
                
               
            }

            ul {
                display: flex;
                margin: 0px;

                li {
                    list-style: none;
                    padding: 29px;
                    text-transform: uppercase;
                    &.current {
                        font-weight: bold;
                    }

                    &.lang {
                        padding: 0px;

                        &:after {
                            content: " / ";
                            margin-right: 5px;

                        }

                        &:last-of-type:after {
                            content: "";
                        }
                    }

                    @media(max-width: @bigscreen) {
                        padding: 15px;
                    }

                    a {
                        text-decoration: none;
                    }
                }
            }

            .subnav {
                position: absolute;
                display: flex;
                flex-direction: column;
                background-color: #D9D9D9;
                padding-left: 0px;
                border-top:solid 3px @c_accent;
                margin-left: -14px;
                margin-top: 10px;
                display: none;
                padding: 7px 0px;
                color:black;
                z-index: 3;
                

                li {
                    padding: 5px 15px;
                    border-bottom: solid 1px @c_accent;
                    font-weight: normal !important;
                    &:last-of-type{
                        border-bottom: none;
                    }
                }
            }
        }

        &.t_home {
            .palabras{
                padding: 39px 0px;
                @media(max-width: @mobile) {
                    padding: 15px 0px;
                }
                h4{
                    text-align: center;
                    color:@c_accent;
                    margin-bottom: -18px;
                    padding: 0px 20px;
                    padding: 39px 0px;
                    padding-top: 0px;
                    padding-bottom: 0px;
                    font-size: 22px;
                    @media(max-width: @mobile) {
                        padding: 0px 20px;
                    }
                }
                .swiper-container {
                    width: 100%;
                    height: 100px;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                  }
                  .swiper-slide {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    font-size: 38px;
                    color:rgba(159, 182, 197, 0.50);
                  
                    @media(max-width: @mobile) {
                        font-size: 28px;
                    }
                  }
            }
            .icons {
                background-color: rgba(159, 55, 84, 0.20);
              
                .container {
                    display: flex;
                    margin: 0px;
                    margin-left: auto;
                    margin-right: auto;
                    justify-content: space-between;
                    @media(max-width: @mobile) {
                        flex-wrap: wrap;
                        justify-content: center;
                    }
                }

                .icon {
                    text-align: center;
                    color: @c_accent;
                    font-size: 20px;
                    line-height: 109%;
                    margin: 36px;
                    font-weight: bold;
                    margin-top: -0.2rem !important;
                    font-size: 18px;
                    margin: 16px;
                    padding: 10px 0px;
                    img {
                        height: 98px;
                    }
                    @media(max-width: @mobile) {
                        width: calc(50% - 32px);
                    }
                }
            }

            .hero {
                display: flex;
                height: max(calc(57vh - 90px),470px);
                align-items: center;
                color: white;
                background-size: cover;
                background-position: center center;

                @media(max-width: @mobile) {
                    flex-direction: column;
                    justify-content: flex-end;
                }
                @media(min-width: @desktop) {
                    height: max(calc(57vh - 90px),770px);
                }

                .text {
                    width: 27%;
                    padding-left: 6%;
                    @media(max-width: @mobile) {
                        width: 100%;
                        padding-right:20px;
                        padding-left: 20px;
                        box-sizing: border-box;
                        background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
                        height:100%;
                        display: flex;
                        flex-direction: column;
                        justify-content: flex-end;
                    }
                }

                h2 {
                    margin: 0px;
                    font-weight: normal;

                    b {
                        font-weight: bold;
                    }
                }

                .summary {}
            }

        }

        .new {
            margin-bottom: 60px;

            h5 {
                margin-bottom: 0px;
                font-size: 18px;
                line-height: 36px;

                /* 128.571% */
                @media(max-width: @bigscreen) {
                    font-size: 20px;
                    line-height: 24px;
                }
            }
            .text strong{
                color:@c_accent;
                font-weight: normal;
            }

            p:first-of-type {
                margin-top: 0px;
            }

            a {
                text-decoration: none;
                color: #9FB6C5;
                position: relative;
                display: flex;
                align-items: center;

                .side {
                    position: relative;
                    margin-right: 9px;
                }

                .ext {

                    text-transform: uppercase;
                    position: absolute;
                    font-weight: bold;
                    font-size: 10px;
                    top: 10px;
                    width: 31px;
                    text-align: center;
                }
            }
        }

        footer {
            background-color: @c_discrete;
            color: white;
            *{
            font-size: 15px;
            }

            .col {
                @media(max-width: @mobile) {
                    text-align: center;
                }
                .legales{
                    clear: both;
                    width: 183%;
                    text-align: center;
                  
                    margin-left: auto;
                    margin-right: auto;
                    @media(max-width: @mobile) {
                        width: 100%;
                    }
                    a{
                        margin: 0px 5px;
                        &:after{
                            content:"|";
                            padding-left: 5px;
                            margin-right: -8px;
                            @media(max-width: @mobile) {
                                display: none;
                            }
                        }
                        &:last-of-type{
                            &:after{
                            display: none;
                            }
                        }
                        @media(max-width: @mobile) {
                         
                            display: inline-block;
                            
                       
                        }
                    }
                    
                }
                &:first-of-type {
                    display: flex;
                    flex-direction: column;
                    justify-content: space-between;

                    a {
                        text-decoration: none;
                    }

                }
                &:nth-child(2){
                    display: flex;
                    flex-direction: column;
                    justify-content: space-between;
                    width: 74%;
                    ul{
                        li{
                            padding-left: 0px;
                        }
                    }
                }

                &:last-of-type,&:nth-child(3) {
                    width: 14%;

                    h5 {
                        margin-top: 0px;
                        margin-bottom: 10px;
                        color: #00000080;
                        text-transform: uppercase;
                    }
                    @media(max-width: @bigscreen) {
                        width: 43%;
                    }
                }
                &:nth-child(3) {
                    width: 50%;
                }
                &:last-of-type{
                    display: flex;
                    flex-direction: column;
                    justify-content: space-between;
                    .small{
                        text-align: right;
                        @media(max-width: @mobile) {
                            text-align: center;
                        }
                    }
                }
                @media(max-width: @mobile) {
                    width: 100% !important;
                    margin-bottom: 20px;
                }
                ul {
                    padding: 0px;
                }

                .bottomnav {
                    margin: 0px;
                    width: 74%;
                    max-height: 57%;
                   
                    margin-left: auto;
                    margin-right: auto;
                    display: flex;
                    flex-wrap: wrap;
                    flex-direction: column;
                    flex-flow: row wrap;
               
                

                    @media(max-width: @mobile) {
                        width: 100%;
                    }

                    .nav-item {
                        
                        margin-bottom: 18px;
                        width: 50%;
                        text-transform: uppercase;
                        padding-right: 2%;
                        box-sizing: border-box;
                        @media(max-width: @mobile) {
                            width: 100%;
                        }
                        a {
                            text-decoration: none;
                            font-weight: bold;
                            color: #00000080;
                        }

                        li{
                            padding-left: 0px;
                            margin-bottom: 0px;
                            &::before {
                                display: none;
                            }
                            a {
                                color: white;
                                font-weight: normal;
                                text-decoration: underline;
    
                                line-height: 115%;
                                display: block;
                                text-transform:none;
                            }
                        } 
                    }

                    li {
                        list-style: none;

                        .subnav {
                            display: block !important;
                            @media(max-width: @mobile) {
                                display: none !important;
                            }
                            
                        }
                    }
                }
            }

            .logo {
                width: 280px;
                @media(max-width: @mobile) {
                    width: 100% ;
                }
            }

            .logos {
                display: flex;
                flex-wrap: wrap;
                justify-content: flex-start;

                @media(max-width: @mobile) {
                    justify-content: center;
                }

                a {
                    display: inline-block;
                    margin-right: 35px;
                    margin-bottom: 21px;

                    @media(max-width: @bigscreen) {

                        margin-bottom: 15px;
                    }

                    @media(max-width: @mobile) {
                        margin: 10px;
                    }

                    img {
                       
                            max-height: 40px;
                        
                    }
                }
            }

            .redesociales {
                display: flex;
                align-items: flex-end;

                @media(max-width: @mobile) {
                    justify-content: center;
                    margin-top: 20px;
                }

                .sm {
                    display: inline-block;
                    margin-right: 20px;

                   

                    img {
                        height: 30px;

                       
                    }
                }
            }
        }
    }

}