﻿
/* CSS Document */
/*ESTILOS HOME AREAS TEMATICAS*/
#atHome {
    width: 100%;
    position: relative;
    font-family: 'Roboto Condensed', sans-serif;
}

    #atHome div.atBloqueA {
        position: relative;
        margin-bottom: 15px;
        top: -40px;
    }

        #atHome div.atBloqueA img {
            max-width: 100%;
        }
        /*CABECERA AREAS TEMATICAS*/
        #atHome div.atBloqueA div {
            float: left;
            clear: both;
        }

            #atHome div.atBloqueA div div {
                float: left;
                clear: none;
                position: relative;
                top: 50px;
                margin-bottom: 30px;
            }

                #atHome div.atBloqueA div div + div {
                    background: none;
                    padding: 0px;
                    clear: none;
                    position: absolute;
                    width: 100%;
                    text-align: right;
                    padding-top: 75px;
                }

                    #atHome div.atBloqueA div div + div p {
                        text-transform: uppercase;
                        font-size: 2em;
                        font-family: 'Fjalla One', sans-serif !important;
                        color: #36c9f9 !important;
                        text-shadow: none;
                        margin: 0px;
                        font-weight: normal !important;
                    }

                        #atHome div.atBloqueA div div + div p span + span {
                            color: #4a8ce0;
                            margin-left: 8px;
                        }
            /*CABECERA AREAS TEMATICAS - texto introduccion*/
            #atHome div.atBloqueA div + div {
                border-radius: 5px;
                background: #63aae8;
                background: -webkit-linear-gradient(141deg, #31b7f6 0%, #1fc8db 51%, #23c1fc 75%);
                background: -moz-linear-gradient(141deg, #31b7f6 0%, #1fc8db 51%, #23c1fc 75%);
                background: -o-linear-gradient(141deg, #31b7f6 0%, #1fc8db 51%, #23c1fc 75%);
                background: linear-gradient(141deg, #13aff9 0%, #1fc8db 51%, #23c1fc 75%);
                color: #ffffff;
                text-shadow: 1px 1px 0px rgba(0,0,0, 0.3);
                font-size: 1.25em;
                font-weight: lighter;
                padding: 35px 25px 25px 25px;
                float: none;
            }
    /*SECCIONES AREAS TEMATICAS*/


    #atHome div.atBloqueB {
        margin-top: -50px;
        position: relative;
        z-index: 0 !important;
    }

        #atHome div.atBloqueB div ul {
            margin: 0px;
            padding: 0px;
            width: 100%;
            display: table;
            width: 100%;
            border-collapse: separate;
            border-spacing: 0px 10px;
        }

            #atHome div.atBloqueB div ul li {
                display: table-row !important;
                height: 145px;
                border-radius: 5px;
            }

                #atHome div.atBloqueB div ul li ul li {
                    background-color: transparent !important;
                }

                #atHome div.atBloqueB div ul li div {
                    display: table-cell;
                    width: 125px !important;
                    position: relative !important;
                    z-index: 0;
                    border-top-left-radius: 5px;
                    border-bottom-left-radius: 5px !important;
                    vertical-align: middle;
                    text-align: center;
                }

                    #atHome div.atBloqueB div ul li div + div {
                        width: 600px !important;
                        background-image: none !important;
                        position: relative;
                        border-top-right-radius: 5px;
                        border-bottom-right-radius: 5px;
                        border-top-left-radius: 0px;
                        border-bottom-left-radius: 0px;
                        vertical-align: top;
                    }

                    #atHome div.atBloqueB div ul li div::after {
                        display: block;
                        position: relative;
                        z-index: 0;
                        width: 118px;
                        height: 145px !important;
                    }

                    #atHome div.atBloqueB div ul li div::after {
                        content: "";
                        opacity: 0.7;
                        top: 0;
                        left: 0;
                        bottom: 0;
                        right: 0;
                        position: absolute !important;
                        z-index: 1 !important;
                        background-repeat: no-repeat;
                        width: 125px !important;
                    }

                    #atHome div.atBloqueB div ul li div + div::after {
                        background-image: none !important;
                    }
                    /*Secciones areas tematicas - fondo flechita iconos secciones*/
                    #atHome div.atBloqueB div ul li div + div div {
                        width: 0;
                        height: 0;
                        border-style: solid;
                        border-width: 20px 0 20px 20px;
                        border-color: transparent transparent transparent #007bff;
                        line-height: 0px;
                        _border-color: #000000 #000000 #000000 #007bff;
                        _filter: progid:DXImageTransform.Microsoft.Chroma(color='#000000');
                        background: none !important;
                        width: auto !important;
                        position: absolute !important;
                        top: 60px;
                        left: -1px;
                        border-radius: 0px;
                        display: block;
                    }

                        #atHome div.atBloqueB div ul li div + div div::after {
                            background-image: none !important;
                        }

                    /*Secciones areas tematicas - listados secciones*/
                    #atHome div.atBloqueB div ul li div + div h2 a {
                        font-family: 'Fjalla One', sans-serif !important;
                        text-transform: uppercase;
                        font-size: 1.4rem !important;
                        text-align: right;
                        width: 100%;
                        float: right;
                        padding-top: 15px;
                        text-shadow: 1px 1px 0px rgba(255,255,255, 0.3);
                        padding-right: 15px;
                        font-weight: normal;
                    }

                    #atHome div.atBloqueB div ul li div + div h2 + ul {
                        display: flex;
                        flex-flow: row wrap;
                        margin: 0px;
                        padding: 0px;
                        float: left;
                        margin-bottom: 15px;
                        margin-top: 35px;
                        padding-left: 30px !important;
                    }

                        #atHome div.atBloqueB div ul li div + div h2 + ul li {
                            display: inline-block;
                            flex: 1 1 50%;
                            position: relative;
                            max-width: 283px;
                            font-family: 'Roboto Condensed', sans-serif;
                            font-weight: normal;
                            text-shadow: 1px 1px 0px rgba(255,255,255, 0.2);
                            font-size: 1.06em;
                            min-height: auto;
                            height: auto;
                            padding-left: 0px;
                            background-position: left top !important;
                        }

                            #atHome div.atBloqueB div ul li div + div h2 + ul li a {
                                text-transform: none;
                                font-family: 'Roboto Condensed', sans-serif !important;
                                text-shadow: 1px 1px 0px rgba(255,255,255, 0.2);
                                font-size: 1.1em;
                                font-weight: lighter;
                                width: 240px;
                                max-width: 240px;
                                float: left;
                                text-align: left;
                                margin-top: 0px;
                                padding: 3px 3px 3px 30px;
                                border-radius: 5px;
                                display: inline-block;
                                background-color: transparent;
                                -webkit-transition: all 0.5s ease-in-out;
                                -moz-transition: all 0.5s ease-in-out;
                                -o-transition: all 0.5s ease-in-out;
                                transition: all 0.5s ease-in-out;
                                cursor: pointer;
                                position: relative;
                                z-index: 999;
                            }

                                #atHome div.atBloqueB div ul li div + div h2 + ul li a span {
                                    background-repeat: no-repeat;
                                    background-position: left top;
                                    opacity: 0;
                                    float: left;
                                    -webkit-transition: all 0.5s ease-in-out;
                                    -moz-transition: all 0.5s ease-in-out;
                                    -o-transition: all 0.5s ease-in-out;
                                    transition: all 0.5s ease-in-out;
                                    display: inline;
                                    position: absolute;
                                    left: 0px;
                                    padding: 12px;
                                    top: 0px;
                                    width: 4px;
                                }

                                #atHome div.atBloqueB div ul li div + div h2 + ul li a:hover span {
                                    opacity: 1;
                                }

                                #atHome div.atBloqueB div ul li div + div h2 + ul li a:hover {
                                    text-decoration: none;
                                    background-color: rgba(255, 255, 255, 0.4) !important;
                                }

        #atHome div.atBloqueB .noLink {
            pointer-events: none;
        }



    #atHome .atBloqueC {
        display: block;
        clear: both;
        position: relative;
        border-collapse: separate;
        display: table;
        border-collapse: separate;
        padding-left: 22px;
        padding-left: 0px;
    }

        #atHome .atBloqueC h2, #atHome .atBloqueC h3 {
            font-family: 'Roboto Condensed', sans-serif !important;
            color: #4e9fe6 !important;
            font-weight: lighter !important;
            text-align: center;
            font-size: 2em !important;
            padding: 0px;
            margin: 0px;
            margin-top: 0px;
            margin-top: 20px;
            position: relative;
            float: left;
            clear: both;
            width: 100%;
            text-align: left;
            margin-bottom: 0px;
        }

        #atHome .atBloqueC p {
            font-family: 'Roboto Condensed', sans-serif !important;
            font-size: 1.1em;
            font-weight: lighter;
            color: #195890;
            line-height: 21px;
            margin-bottom: 8px;
            margin-top: 0px;
            text-align: justify;
            text-justify: inter-word;
        }

        #atHome .atBloqueC a {
            font-family: 'Roboto Condensed', sans-serif !important;
            font-size: 1.1em;
            font-weight: normal;
            color: #2384d8;
            line-height: 21px;
            margin-bottom: 8px;
            margin-top: 0px;
            text-align: justify;
            border-bottom: 1px solid transparent;
            text-justify: inter-word;
            -webkit-transition: all 0.5s ease-in-out;
            -moz-transition: all 0.5s ease-in-out;
            -o-transition: all 0.5s ease-in-out;
            transition: all 0.5s ease-in-out;
        }

            #atHome .atBloqueC a:hover {
                text-decoration: none;
                border-bottom: 1px solid #a5cdff;
            }

        #atHome .atBloqueC ul {
            float: left;
            clear: both;
            padding-left: 0px;
        }

            #atHome .atBloqueC ul li {
                list-style-type: none;
                background-image: url(../img/bullet-flecha.png);
                background-repeat: no-repeat;
                padding: 5px;
                padding-left: 40px;
            }


/*************************************************************************/
/*PORTAL MINHAC. ANCHO 1440px*/
/*************************************************************************/
@media screen and (min-width: 1400px), only screen and (min-width: 1440px) and (-webkit-min-device-pixel-ratio: 2) {
    #atHome div.atBloqueB div ul li div + div h2 a {
        font-size: 1.7rem !important;
    }


    #atHome div.atBloqueB div ul li div + div h2 + ul li a {
        font-size: 1.1rem !important;
        line-height: 1.2rem;
    }
}
/*************************************************************************/
/*PORTAL MINHAC. PAGINAS EL MINISTERIO Y AREAS TEMATICAS. MOVIL*/
/*************************************************************************/
@media screen and (min-width: 0px) and (max-width: 767px) and (min-resolution:1dppx), only screen and (min-device-width: 0px) and (max-device-width: 767px) and (-webkit-min-device-pixel-ratio: 2) {
    #atHome div.atBloqueA {
        margin-top: 30px;
    }

    #atHome div.atBloqueB div ul li div + div h2 + ul li {
        background-size: 25px !important;
    }

    #atHome div.atBloqueB div ul li div:first-child {
        display: none;
    }

    #atHome div.atBloqueB div ul li div:last-of-type > div + h2 a:nth-of-type(1) {
        position: relative;
        top: 0px;
        width: 100%;
        margin-left: 0px;
        text-align: left;
        padding-left: 10px;
        line-height: 1.5rem;
    }

    #atHome div.atBloqueB div ul li div img {
        width: 60px
    }

    #atHome div.atBloqueB div ul li div + div {
        border-radius: 5px !important;
    }

    #atHome .atBloqueC {
        padding-left: 0px !important;
    }

        #atHome .atBloqueC ul li {
            padding-left: 30px !important;
            background-size: 20px !important;
            margin: 0px;
        }

        #atHome .atBloqueC ul {
            margin-top: 20px;
        }

    #atHome div.atBloqueA div div + div {
        position: relative !important;
        text-align: right;
        padding-top: 20px !important;
        margin-bottom: 30px;
        display: block;
        float: left;
        height: auto;
        min-height: 70px;
        margin-top: -30px;
    }

        #atHome div.atBloqueA div div + div p {
            text-align: center;
        }

            #atHome div.atBloqueA div div + div p span {
                font-size: 2rem;
            }

    #atHome div.atBloqueA div + div {
        padding: 5px 8px !important;
    }
}
/*************************************************************************/
/*PORTAL MINHAC. PAGINAS EL MINISTERIO Y AREAS TEMATICAS. MOVIL (LANDSACPE)*/
/*************************************************************************/

@media screen and (min-width: 0px) and (max-width: 767px) and (min-resolution:1dppx) and ( orientation: landscape), only screen and (min-device-width: 0px) and (max-device-width: 767px) and (-webkit-min-device-pixel-ratio: 2) and ( orientation: landscape) {
}
/*************************************************************************/
/* PORTAL MINHAC. PAGINAS EL MINISTERIO Y AREAS TEMATICAS. TABLET */
/*************************************************************************/

@media only screen and (min-width: 768px) and (max-width: 1140px) and (min-resolution: 2dppx), only screen and (min-device-width: 768px) and (max-device-width: 1140px) and (-webkit-min-device-pixel-ratio: 2) {
    #atHome div.atBloqueA div div img {
        width: 100%;
    }

    #atHome div.atBloqueB div ul li div + div {
        width: 620px !important;
    }

        #atHome div.atBloqueB div ul li div + div h2 + ul li {
            background-size: 25px !important;
        }

    #atHome .atBloqueC {
        padding-left: 0px;
    }

        #atHome .atBloqueC ul {
            margin-top: 20px;
        }

            #atHome .atBloqueC ul li {
                padding-left: 30px;
                background-size: 20px !important;
                margin: 0px;
            }

    #atHome div.atBloqueA div + div {
        padding: 5px 15px !important;
    }

    #atHome div.atBloqueA div div + div {
        position: absolute;
        text-align: right;
        padding-top: 75px;
        float: left;
        top: 120px;
    }
}

@media screen and (min-width: 768px) and (max-width: 1140px) and (min-resolution: 1dppx), only screen and (min-device-width: 768px) and (max-device-width: 1140px) and (-webkit-min-device-pixel-ratio: 2) {
    #atHome div.atBloqueB div ul li div + div h2 + ul li {
        background-size: 25px !important;
    }

    #atHome .atBloqueC ul li {
        padding-left: 30px !important;
        background-size: 20px !important;
        margin: 0px;
    }

    #atHome div.atBloqueB div ul li div + div h2 + ul li {
        flex: 1 1 50% !important;
    }
}
/*************************************************************************/
/* PORTAL MINHAC. PAGINAS EL MINISTERIO Y AREAS TEMATICAS. TABLET (LANDSCAPE)*/
/*************************************************************************/
@media screen and (min-width: 768px) and (max-width: 1140px) and (min-resolution:2dppx) and ( orientation: landscape), only screen and (min-device-width: 768px) and (max-device-width: 1140px) and (-webkit-min-device-pixel-ratio: 2) and ( orientation: landscape) {
    #atHome div.atBloqueB div ul {
        width: 100%;
    }
}
