/*** Estilos EDP - Index **/
/** 2. Layout: l-; 2.1. Home */
/** 3. Componente: c-; 3.1. Slider */
/** 4. Paginas: p- */

/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++ */

/** 2. Layout */

.l-page__general {
    padding: 5rem 0;
}

h3 {
    font-size: 3.6rem;
    margin-bottom: 2.5rem;
}

/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++ */

/** 3. Componentes */

/* 3.1 Cartela */

.c-cartela {
    background-color: #fff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-flow: row wrap;
            flex-flow: row wrap;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    overflow: hidden;
    width: 100%;
}

.c-cartela > article {
    min-height: 22rem;
    width: 50%;
}

.c-cartela__text {
    background: transparent url('../images/bkg_home.jpg') no-repeat scroll center center;
    background-size: cover;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-flow: row wrap;
            flex-flow: row wrap;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
    position: relative;
}

.c-cartela__text::before {
    background-color: rgba(255,255,255,0.8);
    content: '';
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.c-cartela > article.c-cartela__text {
    width: 100%;
}

h1 {
    color: var(--color-primary);
    font-size: 3.4rem;
    font-weight: 700;
    padding: 2rem;
    margin: 0;
    position: relative;
}

.c-cartela__image {
    background: transparent url('../images/bkg_home.jpg') no-repeat scroll center center;
    background-size: cover;
    display: none;
    width: 50%;
}

@media (min-width: 768px) {
    .c-cartela > article {
        min-height: 42rem;
        width: 50%;
    }

    .c-cartela > article.c-cartela__text {
        background: #fff none no-repeat scroll 0 0;
        -webkit-box-pack: end;
            -ms-flex-pack: end;
                justify-content: flex-end;
        width: 50%;
    }

    .c-cartela__text::before {
        display: none;
    }

    h1 {
        padding-left: 1rem;
        padding-right: 7rem;
    }
    
    .c-cartela__image {
        display: block;
    }
}

@media (min-width: 991px) {
    h1 {
        font-size: 4.8rem;
    }
}

/* 2. Categorias */

.c-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-flow: row wrap;
            flex-flow: row wrap;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    margin: 0 auto 3rem;
    max-width: 91rem;
}

.c-list li {
    margin: 2rem 0 0;
    max-width: 44.3rem;
    position: relative;
    width: 49%;
}

.c-list li a {
    border-radius: 2rem;
    overflow: hidden;
    text-decoration: none;
}

.c-list li a,
.c-list li img {
    display: block;
    width: 100%;
}

.c-list li a:hover::before {
    background-color: rgba(0,0,0,0.7);
    border-radius: 2rem;
    bottom: 0;
    content: '';
    height: 100%;
    left: 0;
    position: absolute;
    width: 100%;
}

.c-list li span {
    bottom: 0;
    color: #fff;
    font-size: 1.8rem;
    left: 0;
    padding: 1rem;
    position: absolute;
    text-decoration: none;
    z-index: 2;
}

@media (min-width: 991px) {
    .c-list li {
        width: 31%;
    }
    .c-list li span {
        font-size: 2.6rem;
        padding: 2rem;
    }
}

/* Provincia */

.c-province {
    border: 0.1rem solid #ccc;
    -webkit-border-radius: 2rem;
    border-radius: 2rem;
    margin: 0 auto 2rem;
    max-width: 91rem;
    padding: 1.5rem;
    overflow: hidden;
    text-align: center;
    width: 100%;
}

.c-province p {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 0 1rem;
}

.c-province select {
    background-color: #fff;
    border: 0.1rem solid #eee;
    -webkit-border-radius: 1rem;
    border-radius: 1rem;
    font-size: 1.4rem;
    height: 4.5rem;
    line-height: 2.4rem;
    text-transform: uppercase;
}

/* Modal */

.c-modal {
    background-color: rgba(0,0,0,0.8);
    display: none;
    flex-flow: column;
    align-items: center;
    justify-content: center;

    bottom: 0;
    height: 100%;
    left: 0;
    position: fixed;
    width: 100%;
    z-index: 25;
}

.c-modal__content {
    background-color: #fff;
    -webkit-border-radius: 2.5rem;
    border-radius: 2.5rem;
    margin: 0 auto;
    max-width: 50rem;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease-in-out 0s;
    width: 94%;
}

.c-modal h2 {
    color: #f80000;
}

.c-modal p {
    font-weight: bold;
    margin-bottom: 3rem;
}

.c-modal button {
    border: 0 none;
    display: block;
    margin: 0 auto;
    width: 18rem;
}

/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++ */

/** 4. Index */

.display-none {
    display: none;
}