/***********************/
/*LISTADOS DESPLEGALBES*/
/***********************/
/* Permite el uso de unidades px en los bordes. */
#listadoDesplegable {
    box-sizing: border-box;
}

    #listadoDesplegable *, #listadoDesplegable *::before, #listadoDesplegable *::after {
        box-sizing: inherit;
    }

.gridListadoDesplegable {
    /* Evita el comportamiento extraño de los márgenes en Chrome */
    overflow: hidden;
}

    .gridListadoDesplegable .gridLista {
        /* Forzar misma altura para las celdas*/
        display: -webkit-box;
        display: flex;
        flex-wrap: wrap;
        /* crea un espaciado exterior igual (opcional) */
        padding: 20px 0 0 20px;
        /*Posiciona las celdas de la cuadrícula en los bordes*/
        margin: -20px;
    }

    .gridListadoDesplegable .gridElementoLista {
        /* crea espaciados */
        border: 0 solid transparent;
        border-width: 0 20px 20px 0;
        /* previene el sangrado de fondo */
        background-clip: padding-box;
        position: relative;
        height: auto;
        min-height: 80px;
        padding-left: 0px !important;
    }
    /*Establece el número de columnas*/
    .gridListadoDesplegable.gridColumnOne .gridElementoLista {
        width: calc(100% / 1);
    }

    .gridListadoDesplegable.gridColumnTwo .gridElementoLista {
        width: calc(100% / 2);
    }

    .gridListadoDesplegable.gridColumnThree .gridElementoLista {
        width: calc(100% / 3);
    }

    .gridListadoDesplegable.gridColumnFour .gridElementoLista {
        width: calc(100% / 4);
    }

    .gridListadoDesplegable.gridColumnFive .gridElementoLista {
        width: calc(100% / 5);
    }
    /*Fin numero columnas*/
    /*Posicion del contenido desplegado en función del numero de columnas*/
    /*Una columna*/
    .gridListadoDesplegable.gridColumnOne ul li div.elementoDesplegable {
        left: 0;
    }
    /*Dos columnas*/
    .gridListadoDesplegable.gridColumnTwo ul li:nth-child(2n+2) div.elementoDesplegable {
        left: -105.5%;
    }
    /*Tres columnas*/
    .gridListadoDesplegable.gridColumnThree ul li:nth-child(3n+2) div.elementoDesplegable {
        left: -108.5%;
    }

    .gridListadoDesplegable.gridColumnThree ul li:nth-child(3n+3) div.elementoDesplegable {
        left: -217.5%;
    }
    /*Cuatro columnas*/
    .gridListadoDesplegable.gridColumnFour ul li:nth-child(4n+2) div.elementoDesplegable {
        left: -112%;
    }

    .gridListadoDesplegable.gridColumnFour ul li:nth-child(4n+3) div.elementoDesplegable {
        left: -224%;
    }

    .gridListadoDesplegable.gridColumnFour ul li:nth-child(4n+4) div.elementoDesplegable {
        left: -336%;
    }
    /*Cinco columnas*/
    .gridListadoDesplegable.gridColumnFive ul li:nth-child(5n+2) div.elementoDesplegable {
        left: -115%;
    }

    .gridListadoDesplegable.gridColumnFive ul li:nth-child(5n+3) div.elementoDesplegable {
        left: -231%;
    }

    .gridListadoDesplegable.gridColumnFive ul li:nth-child(5n+4) div.elementoDesplegable {
        left: -346%;
    }

    .gridListadoDesplegable.gridColumnFive ul li:nth-child(5n+5) div.elementoDesplegable {
        left: -462%;
    }
    /*Fin posicion contenido*/
    .gridListadoDesplegable .elementoDesplegable {
        margin-left: 0px !important;
        position: relative;
        display: none;
        width: 723px;
        border: 0px solid red;
    }

    .gridListadoDesplegable .elementoSeleccionable {
        position: relative;
        height: 100%;
        display: flex;
        flex-flow: row;
        cursor: pointer;
        background: #e2e8f3;
        border: 1px solid #c4d7ff;
    }

        .gridListadoDesplegable .elementoSeleccionable span {
            display: block;
            align-self: center;
            color: #4a5f8a;
        }

            .gridListadoDesplegable .elementoSeleccionable span:first-of-type {
                background-image: url(../img/t_flechaLista.png);
                background-repeat: no-repeat;
                background-position: center;
                transition: all 0.3s;
                transform: rotate(0deg);
                width: 4em;
                height: 100%;
                min-width: 2em;
                max-width: 2em;
            }

    .gridListadoDesplegable .activo span:first-of-type {
        background-image: url(../img/t_flechaLista2.png);
    }

    .gridListadoDesplegable .activo span:first-of-type {
        background-repeat: no-repeat;
        background-position: center;
        transform: rotate(90deg);
    }

    .gridListadoDesplegable .elementoSeleccionable span:last-of-type {
        padding: 0px 10px 0px 0px;
    }

    .gridListadoDesplegable .gridElementoLista li {
        position: relative;
    }

.gridListadoDesplegable {
    /* Para que podamos ver los bordes de la cuadrícula. */
    /* box-shadow: 0 0 10px 2px green; */
    /*max-width: 500px;*/
    margin: 30px auto;
}

    .gridListadoDesplegable .gridElementoLista .activo {
        background: #6f8ecd !important;
        border: 1px solid #6f8ecd !important;
    }

        .gridListadoDesplegable .gridElementoLista .activo span {
            color: #ffffff;
        }

    .gridListadoDesplegable .activo + .elementoDesplegable {
        padding-top: 10px;
        /*background-image: url(ico-FlechaInfodes.png);
	background-repeat:no-repeat;*/
    }

    .gridListadoDesplegable .elementoSeleccionable + .elementoDesplegable .elementoDesplegableContenido {
        border-left: 2px solid #ffffff;
        border-right: 2px solid #ffffff;
        border-bottom: 2px solid #ffffff;
        margin-top: 10px;
        padding: 0px 10px;
        margin-top: -2px;
        background: none;
    }

    .gridListadoDesplegable .activo + .elementoDesplegable .elementoDesplegableContenido {
        border-left: 2px solid #c4d7ff;
        border-right: 2px solid #c4d7ff;
        border-bottom: 2px solid #c4d7ff;
        border-top: 2px solid #c4d7ff;
        margin-top: 10px;
        padding: 0px 10px;
        margin-top: -2px;
    }

    .gridListadoDesplegable ul li .elementoSeleccionable + div.elementoDesplegable .elementoDesplegableContenido {
        background-color: #ffffff !important;
        opacity: 0;
    }

    .gridListadoDesplegable ul li .activo + div.elementoDesplegable .elementoDesplegableContenido {
        opacity: 1;
        z-index: 99;
        position: relative;
    }

    .gridListadoDesplegable .botParrafo:first-of-type {
        padding-top: 10px;
    }

    .gridListadoDesplegable .botParrafo {
        border-bottom: 1px solid #dfeafe;
        display: flex;
        flex-flow: column;
    }

        .gridListadoDesplegable .botParrafo:last-child {
            border-bottom: 0px;
        }

        .gridListadoDesplegable .botParrafo > p {
            display: flex;
            padding-left: 4px;
        }

        .gridListadoDesplegable .botParrafo p span.icoDesplegar {
            min-width: 3.2em;
            max-width: 3.2em;
            min-height: 2em;
            display: inline-block;
            background-image: url(../img/Icon_CajaMas.png);
            background-repeat: no-repeat;
            background-position: center;
        }

            .gridListadoDesplegable .botParrafo p span.icoDesplegar + span {
                align-items: normal;
                display: flex;
                font-size: 13px;
                color: #4a5f8a;
                font-weight: 700;
                margin-top: 5px;
                cursor: pointer;
            }

        .gridListadoDesplegable .botParrafo p span.mostrar {
            background-image: url(../img/Icon_CajaMin.png);
        }

        .gridListadoDesplegable .botParrafo ul li {
            padding-left: 25px;
        }

    .gridListadoDesplegable .icoDesplegar {
        cursor: pointer;
    }

    .gridListadoDesplegable .botParrafo .next {
        display: none;
        padding-left: 20px;
    }
/*************************************************************************/
/*PORTAL MINHAC. LISTADOS DESPLEGABLES. MOVIL*/
/*************************************************************************/
@media screen and (min-width: 0px) and (max-width: 400px) and (min-resolution:1dppx), only screen and (min-device-width: 0px) and (max-device-width: 767px) and (-webkit-min-device-pixel-ratio: 2) {
    .gridListadoDesplegable .gridLista {
        margin: 0px !important;
    }

    .gridListadoDesplegable .gridElementoLista {
        width: calc(100% / 1) !important;
    }

    .gridListadoDesplegable ul li div.elementoDesplegable {
        left: 0px !important;
    }

    .gridListadoDesplegable .elementoDesplegable {
        margin-left: 0px !important;
        position: relative;
        display: none;
        width: auto;
    }

    .gridListadoDesplegable .gridElementoLista .elementoDesplegableContenido .gridListadoDesplegable .gridElementoLista {
        width: calc(100% / 1) !important;
    }

    .gridListadoDesplegable .gridElementoLista .elementoDesplegable {
        width: auto !important;
    }

    .gridListadoDesplegable .gridElementoLista {
        border-width: 0 5px 5px 0;
    }

    .gridListadoDesplegable .botParrafo .next {
        padding-left: 25px !important;
    }

        .gridListadoDesplegable .botParrafo .next li {
            background-position: left 4px !important;
        }

    .gridListadoDesplegable .botParrafo p span.icoDesplegar {
        min-width: 3em;
        max-width: 3em;
    }
}
/*************************************************************************/
/*PORTAL MINHAC. LISTADOS DESPLEGABLES. 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) {

    .gridListadoDesplegable .gridElementoLista {
        width: calc(100% / 1) !important;
    }

        .gridListadoDesplegable .gridElementoLista .elementoDesplegableContenido .gridListadoDesplegable .gridElementoLista {
            width: calc(100% / 1) !important;
        }
}
/*************************************************************************/
/* PORTAL MINHAC. LISTADOS DESPLEGABLES. TABLET */
/*************************************************************************/
@media only screen and (min-width: 768px) and (max-width: 1824px) and (min-resolution: 2dppx), only screen and (min-device-width: 768px) and (max-device-width: 1824px) and (-webkit-min-device-pixel-ratio: 2) {
    .central {
        margin: 0px;
    }

    .gridListadoDesplegable .gridLista {
        margin: 0px !important;
        padding-left: 20px !important;
    }

    .gridListadoDesplegable .gridElementoLista {
        width: calc(100% / 2) !important;
    }

    .gridListadoDesplegable ul li div.elementoDesplegable {
        left: 0px !important;
    }

    .gridListadoDesplegable ul li:nth-child(2n+2) div.elementoDesplegable {
        left: -106% !important;
    }

    .gridListadoDesplegable .elementoDesplegable {
        width: 695px;
    }

    .gridListadoDesplegable .botParrafo .next {
        padding-left: 20px !important;
    }

    .gridListadoDesplegable .botParrafo p span.icoDesplegar {
        min-width: 2.5em;
        max-width: 2.5em;
    }
}
/*************************************************************************/
/* PORTAL MINHAC. LISTADOS DESPLEGABLES. TABLET (LANDSCAPE)*/
/*************************************************************************/
@media screen and (min-width: 768px) and (max-width: 1824px) and (min-resolution:2dppx) and ( orientation: landscape), only screen and (min-device-width: 768px) and (max-device-width: 1824px) and (-webkit-min-device-pixel-ratio: 2) and ( orientation: landscape) {
    .gridListadoDesplegable .gridElementoLista {
        width: calc(100% / 2) !important;
    }

    .gridListadoDesplegable .elementoDesplegable {
        width: 950px;
    }

    .gridListadoDesplegable ul li:nth-child(2n+2) div.elementoDesplegable {
        left: -104.5% !important;
    }
}
/*************************************************************************/
/* PORTAL MINHAC. LISTADOS DESPLEGABLES. MOVIL PLUS (LANDSCAPE)*/
/*************************************************************************/
@media screen and (min-width: 768px) and (max-width: 900px) and (min-resolution:2dppx) and ( orientation: landscape), only screen and (min-device-width: 768px) and (max-device-width: 900px) and (-webkit-min-device-pixel-ratio: 2) and ( orientation: landscape) {
    .gridListadoDesplegable .botParrafo .next {
        padding-left: 25px !important;
    }

    .gridListadoDesplegable .botParrafo p span.icoDesplegar {
        min-width: 3em;
        max-width: 3em;
    }

    .gridListadoDesplegable ul li:nth-child(2n+1) div.elementoDesplegable {
        left: 0px !important;
    }

    .gridListadoDesplegable ul li:nth-child(2n+2) div.elementoDesplegable {
        left: -105.5% !important;
    }

    .gridListadoDesplegable .elementoDesplegable {
        width: 738px;
    }
}
