// CURSOS
//------------------------------------
.course-home--wrapper {
    padding-top: 30px;
    width: 100%;
    overflow: hidden;
    background: @color-white;

    > .content {
        display: flex;
        position: relative;
        flex-wrap:wrap;
        text-align:center;
    }

    @media screen{
        @media (min-width:880px){
            padding-top: 40px;
        }

        @media (min-width:1170px){
            padding-top: 60px;

            > .content {
                min-height:790px;
                text-align:left;

                &:after,
                &:before {
                    content: '';
                    position: absolute;
                    bottom: 0;
                    background-position: center;
                    background-repeat: no-repeat;
                }

                &:after {
                    background-image: url(/images/home/detail-courses.min.svg);
                    width: 522px;
                    height: 782px;
                    left: -360px;
                    z-index: 2;
                }

                &:before {
                    background-image: url(/images/home/man-courses.jpg);
                    width: 898px;
                    height: 606px;
                    left: -194px;
                    z-index: 1;
                }
            }
        }
    }
}

.course-home--content,
.course-home--intro {
    position: relative;
    z-index: 3;
    padding: 0 15px;
}

.course-home--intro {
    width:100%;

    @media screen{
        @media (min-width:1170px){
            width:~'calc(100% - 900px)';
        }
    }
}

.course-home--content {
    width:100%;

    @media screen{
        @media (min-width:880px){
            margin-top:20px;
        }

        @media (min-width:1170px){
            width:900px;
            margin-top:0;
        }
    }
}

.course-select{
    max-width:300px;
    margin:15px auto 0;

    select{
        width:100%;
        padding: 10px;
        border:1px solid @color-gray;
        border-radius:4px;
        -webkit-appearance: none;
        -moz-appearance: none;
        text-indent: 1px;
        text-overflow: '';
    }
    
    &.select-seta:after{
        right: 20px;
        top: -4px;
    }

    @media screen{
        @media (min-width:880px){
            display:none;
        }
    }
}

.course-menu {
    @media screen{
        @media (max-width:879px){
            height:0;
            overflow:hidden;
        }

        @media (min-width:880px){
            display: flex;
            justify-content: center;

            .title {
                color: @color-gray;
                font-weight: 700;
                font-size: 14px;
                text-transform: uppercase;
                line-height: 1em;
                margin: 0 0 10px;
                display: block;
            }
        }

        @media (min-width:1170px){
            justify-content: flex-start;
        }
    }
}

.course-menu-freecourses {
    @media screen{
        @media (min-width:880px){
            margin-left: 40px;
        }
    }
}

.course-menu-postgraduate {
    @media screen{
        @media (min-width:880px){
            margin-left: 40px;
        }
    }
}

.list-courses {
    margin: 0 -15px 30px;
    display:flex;
    flex-wrap: wrap;
    justify-content:center;

    .msg-box,
    .msg-empty {
        width: 100%;
        margin-left:15px;
        margin-right:15px;
    }

    .msg-empty {
        margin-top: 30px;
    }

    .loading {
        margin-top: 50px;
    }

    @media screen{
        @media (min-width:450px){
            
        }

        @media (min-width:960px){
            margin-bottom:60px;
        }

        @media (min-width:1170px){
            justify-content:flex-start;
        }
    }
}

.course-link {
    position: relative;
    display: flex;
    width: ~'calc((100% /2) - 30px)';
    margin: 30px 15px 0;
    max-width: 195px;
    background-position: center;
    background-repeat: no-repeat;
    transition: .3s transform, .3s box-shadow;
    animation-fill-mode: both;
    animation-duration: .4s;
    opacity: 0;
    transform: translateY(20px);
    align-items: center;
    background: @color-dblue;

    &:after {
        content: '';
        padding-bottom: 100%;
        display: block;
    }

    .ico,
    .title {
        position: absolute;
        display: block;
        margin: auto;
    }

    .ico {
        top: 15.4%;
        left: 0;
        right: 0;
        z-index: 2;
        width: 25.9%;
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;

        & + .title {
            bottom: 45px;
        }

        &:after {
            content: '';
            padding-bottom: 100%;
            display: block;
        }
    }

    .title {
        font-weight: 500;
        color: @color-white;
        line-height: 1.3em;
        left: 10px;
        right: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        height: 40px;
        z-index: 2;
        font-size: 12px;
    }

    &[hidden] {
        display: none;
    }

    &:hover {
        box-shadow: fade(@color-black, 40%) 0 5px 25px;
    }

    &.entering {
        animation-name: entering;
        animation-timing-function: ease-out;
    }

    .tarja-subcat {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 24px;
        background: fade(@color-dgray, 80%);
        display: flex;
        justify-content: center;
        align-items: center;
        color: @color-white;
        font-size: 12px;
    }

    @media screen {
        @media (min-width:470px) {
            width: 195px;

            .title {
                font-size: 16px;
            }

            .ico {
                top: 30px;
                width: 70px;
            }

            .title {
                left: 15px;
                right: 15px;
            }
        }
    }
}

@keyframes entering{
    from {
        transform:translateY(20px);
        opacity:0;
    }
    to {
        transform:translateY(0);
        opacity:1;
    }
}


// NOTICIAS
//------------------------------------
.news-home--wrapper {
    margin-top: 30px;
    
    > .content {
        display: flex;
    }

    @media screen{
        @media (min-width:470px){
            position: relative;
            min-height: 270px; // lista absoluta
            overflow: hidden;

            .list-news{
                position: absolute;
                top: 0;
                right: 0;
                height:100%;
                .column(6,@resume:true);
            }
        }

        @media (min-width:800px){
            .list-news{
                .column(8,@resume:true);
            }
        }

        @media (min-width:960px){
            margin-top:60px;
            overflow:hidden;
        }

        @media (min-width:1170px){
            .list-news{
                right: auto;
                left: ~'calc((1200px * .3278) + (100vw - 1200px)/ 2)';
                width: ~'calc((1200px * .6722) + (100vw - 1200px)/ 2)';
                padding-left:0;
            }

            &:after {
                content: '';
                position: absolute;
                z-index: 2;
                width: 200px;
                top: 0;
                bottom: 0;
                right: 0;
                background: -moz-linear-gradient(left, rgba(231,247,247,0) 0%, rgba(231,247,247,0.2) 40%, rgba(231,247,247,1) 99%, rgba(231,247,247,1) 100%);
                background: -webkit-linear-gradient(left, rgba(231,247,247,0) 0%,rgba(231,247,247,0.2) 40%,rgba(231,247,247,1) 99%,rgba(231,247,247,1) 100%);
                background: linear-gradient(to right, rgba(231,247,247,0) 0%,rgba(231,247,247,0.2) 40%,rgba(231,247,247,1) 99%,rgba(231,247,247,1) 100%);
                filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00e7f7f7', endColorstr='#e7f7f7',GradientType=1 );
            }
        }
    }
}

.news-home--intro {
    .flex(12);
    padding: 0 15px;
    text-align:center;

    .btn {
        margin-top: 20px;
    }

    br{
        display:none;
    }

    @media screen{
        @media (min-width:470px){
            .flex(6);
            text-align:left;

            .btn{
                margin-top:30px;
            }
        }

        @media (min-width:800px){
            .flex(4);
        }

        @media (min-width:960px){
            br{
                display:block;
            }
        }
    }
}


// SLIDER
//------------------------------------
.slider-home {
    height: 400px;
    position: relative;
    z-index: 1;
    background: @color-dblue;
    
    .loading {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        top: 0;
        margin: auto;
    }

    > .slide-home {
        display: none;
    }

    .owl-stage-outer,
    .owl-stage,
    .owl-item {
        height: 100%;
    }

    .owl-dots {
        position: absolute;
        left: 0;
        right: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
        bottom: 0;
        height: 30px;
    }

    .owl-dot {
        width: 14px;
        height: 14px;
        border: 2px solid @color-white;
        position: relative;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;

        &:after {
            content: '';
            background: transparent;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            transition: .3s background, .3s opacity;
        }

        &:hover:after,
        &.active:after {
            background: @color-white;
        }

        &:hover:after{
            opacity:.5;
        }

        & + .owl-dot {
            margin-left: 8px;
        }
    }

    .owl-nav{
        display:none;
    }

    &.w-detail:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 30px;
        background: url(/images/slider/detail.svg) no-repeat center;
        width: 100%;
        overflow: hidden;
        z-index: 1;
    }

    @media screen{
        @media (min-width:760px){
            height: 550px;
        }

        @media (min-width:960px){
            height: 100vh;
            min-height: 650px;
        }
    }
}

.slide-home {
    position: relative;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 100%;
    color: @color-white;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-shadow: 0px 2px 10px fade(@color-black, 40%);

    .is-title {
        font-size: 27px;
        font-weight: 900;
        margin: 0 0 15px;
        line-height: 1em;
    }

    .is-desc {
        font-size: 14px;
        margin: 0;
    }

    .is-link {
        font-size: 14px;
        color: @color-white;
        font-weight: 700;
        text-transform: uppercase;
        border: 2px solid currentColor;
        padding: 14px 20px;
        line-height: .9em;
        display: table;
        margin: 20px auto 0;
        transition: .3s text-shadow, .3s color, .3s background;

        &:hover {
            background: @color-white;
            color: @color-dblue;
            text-shadow: none;
        }
    }

    @media screen{
        @media (min-width:760px){
            .is-title {
                font-size: 40px;
                margin: 0 0 20px;
            }

            .is-desc {
                font-size: 16px;
            }

            .is-link {
                font-size: 16px;
                padding: 14px 26px;
            }
        }

        @media (min-width:960px){
            .is-title {
                font-size: 60px;
                margin: 0 0 30px;
            }

            .is-desc {
                font-size: 20px;
            }

            .is-link {
                font-size: 24px;
                margin: 40px auto 0;
            }
        }
    }
}


/** PROUNI / FIES **/
.text-bolsa {
    width: 100%;

    @media screen and (min-width: 980px) {
        width: 50%;
        float: left;
    }
}

.video-bolsa {
    width:100%;

    @media screen and (min-width: 980px) {
        width: 50%;
        float: right;
        margin-top: 20px;
    }
}

.video-bolsa-fies {
    width: 100%;

    @media screen and (min-width: 980px) {
        width: 70%;
        margin: 0 auto;
    }
}