/*
 * home.css — Página de inicio: portada, presentación y listado de casos.
 */

/* ==========================================================================
   home
   ========================================================================== */

.main-home .header {
    position: relative;
    text-align: center;
}

.main-home .header:before {
    content: '';
    position: absolute;
    z-index: -1;
    width: 150%;
    height: 150%;
    top: 70px;
    left: -50px;
    background: linear-gradient(240deg, rgba(255,255,255,0.06) 3%, rgba(255,255,255,0) 58%);
    -webkit-transform: rotate(-6deg);
    transform: rotate(-6deg);
}

.main-home .header .row>div:last-child {
    display: none;
}

.main-home .header h1 {
    font-size: 6.5vw;
    line-height: 12vw;
    text-transform: uppercase;
    margin: 0px;
}

.main-home .header h1 strong {
    font-size: 18vw;
}

.main-home .header p {
    font-size: 18px;
    line-height: 28px;
    font-weight: 200;
    max-width: 340px;
    margin: 10px auto 30px;
}

@media (min-width: 768px) {
    .main-home .header {
        padding: 8vw 0px;
        text-align: left;
    }
    .main-home .header h1 {
        font-size: 50px;
        line-height: 90px;
    }
    .main-home .header h1 strong {
        font-size: 140px;
    }
    .main-home .header p {
        font-size: 20px;
        line-height: 30px;
        position: relative;
        bottom: 10px;
        margin: 0px 0px 20px;
        max-width: none;
    }
}

@media (min-width: 992px) {
    .main-home .header .row {
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
    }
    .main-home .header .row>div:last-child {
        display: block;
    }
}

.main-home .features {
    text-align: center;
}

.main-home .features img {
    max-width: 200px;
    margin: 0 auto 20px;
}

.main-home .features ul {
    text-align: left;
    margin: 25px auto 0px;
    max-width: 300px;
}

.main-home .features ul li {
    font-size: 15px;
    line-height: 25px;
    margin-bottom: 20px;
}

.main-home .features ul li:last-child {
    margin-bottom: 0px;
}

@media (min-width: 768px) {
    .main-home .features {
        text-align: left;
    }
    .main-home .features h3 {
        max-width: 350px;
    }
    .main-home .features.bg-degree h3 {
        max-width: 300px;
    }
    .main-home .features ul {
        margin: 25px 0px 0px;
        max-width: none;
    }
}

@media (min-width: 992px) {
    .main-home .features .container {
        padding: 0px 100px;
    }
    .main-home .features.bg-degree .row>div:last-child {
        padding-left: 40px;
    }
    .main-home .features:not(.bg-degree) .row {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: reverse;
        -ms-flex-direction: row-reverse;
        flex-direction: row-reverse;
    }
    .main-home .features:not(.bg-degree) .row>div:last-child {
        padding-right: 40px;
    }
    .main-home .features img {
        max-width: 100%;
        margin-bottom: 0px;
    }
}

.main-home .cases {
    text-align: center;
}

@media (min-width: 768px) {
    .main-home .cases .container {
        width: 100%;
        padding: 0px 50px;
    }
}

@media (min-width: 1200px) {
    .main-home .cases .container {
        width: 1160px;
    }
}

.main-home .cases h3 {
    margin-bottom: 50px;
}

.main-home .cases .row {
    -webkit-box-align: initial;
    -ms-flex-align: initial;
    align-items: initial;
    margin: 0px -10px;
}

@media (min-width: 992px) {
    .main-home .cases .row {
        margin: 0px -20px;
    }
}

.main-home .cases .row>div {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 0px 10px;
}

@media (min-width: 992px) {
    .main-home .cases .row>div {
        padding: 0px 20px;
    }
}

/* Listado de casos: N tarjetas en rejilla. Los "Próximamente" (.case-soon) se ocultan en móvil */
.main-home .cases .row {
    row-gap: 40px;
}

.main-home .cases .row>div.case-soon {
    display: none;
}

@media (min-width: 768px) {
    .main-home .cases .row>div.case-soon {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }
}

.main-home .cases .content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
}

.main-home .cases .content:hover .btn {
    background: rgba(255,255,255,0.2);
}

@media (min-width: 768px) {
    .main-home .cases .content:hover .image {
        background-size: auto 105%;
    }
}

.main-home .cases .content .image {
    height: 250px;
    background: url(../images/isotipo-dark.png) #fff center no-repeat;
    background-size: cover;
    -webkit-transition: 0.3s all ease;
    transition: 0.3s all ease;
}

@media (min-width: 768px) {
    .main-home .cases .content .image {
        background-size: auto 100%;
    }
}

.main-home .cases .content .text {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 30px;
    background: rgba(7,12,29,0.6);
}

@media (min-width: 768px) {
    .main-home .cases .content .text {
        padding: 20px;
    }
}

@media (min-width: 992px) {
    .main-home .cases .content .text {
        padding: 30px;
    }
}

.main-home .cases .content h4 {
    font-weight: 400;
    font-size: 21px;
    line-height: 28px;
}

@media (min-width: 1200px) {
    .main-home .cases .content h4 {
        font-size: 24px;
        line-height: 32px;
    }
}

.main-home .cases .content .btn {
    padding: 15px 20px;
}

@media (min-width: 992px) {
    .main-home .cases .content .btn {
        padding: 15px 40px;
    }
}

.main-home .cases .content.disabled .image {
    background-color: rgba(255,255,255,0.4);
    background-size: 100px;
}

.main-home .cases .content.disabled h4 {
    margin: 0px;
    opacity: .6;
}

/* botón "Ver todos los casos" bajo las tarjetas */
.main-home .cases .more {
    margin: 40px 0px 0px;
}

/* página de listado de casos (casos/index.html) */
.main-cases .cases {
    padding-top: 40px;
}

.main-cases .cases h1 {
    font-size: 2.2em;
    margin-bottom: 15px;
}

.main-cases .cases .intro {
    max-width: 640px;
    margin: 0px auto 50px;
}
