.organigramaTitle {
    text-align: center;
    margin-bottom: 60px;
}
.organigramaTitle a.btn:before {
    content: url(../img/icono-descargar-click.png);
    padding: 0px 10px;
}

.organigrama {
    max-width: 1920px;
    margin: 0 auto;
    margin-left: -165px;
    margin-right: -165px;
}
.container-fluid .organigrama ul li p {
    margin-left: 0px;
    margin-top: 0px;
}
.organigrama a {
    color: #fff !important;
}
.organigrama .thirdLevelSubelement.subElement a {
    color: #000 !important;
}
.organigrama ul {
    list-style-type: none;
    padding-inline-start: 0px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-block-start: 0em;
    margin-block-end: 0em;
}
.organigrama ul li:before {
    content: '' !important;
    display: block !important;
    height: 0px !important;
    width: 0px !important;
    background-image: none !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    margin-right: 0px !important;
    top: 0px !important;
}

.firstLevel, .secondLevel, .thirdLevel {
    height: auto;
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 120px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

/** PRIMER NIVEL */
.firstLevel .horizontal {
    width: 66.778%;
    height: 2px;
    border: 1px solid black;
    background: #000000;
    z-index: -1;
    margin-left: -210px;
    position: relative;
    top: 60px;
}

.firstLevelElement {
    margin: 0 60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: rgb(17, 56, 106);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    overflow: hidden;
}

.firstLevelElement.principal {
    width: 220px;
    height: 220px;
    background-color: rgb(21, 68, 129);
}

.firstLevelElement.principal:after {
    content: '';
    position: absolute;
    max-width: 2px;
    width: 100%;
    height: 220px;
    background: #000000;
    z-index: -1;
    margin-top: 143px;
}

.firstLevelElement.subElement {
    margin-bottom: -120px;
}

.firstLevelElement.subElement:before {
    content: '';
    position: absolute;
    max-width: 250px;
    width: 100% !important;
    height: 2px !important;
    background: #000000;
    margin-left: -250px;
    margin-top: 360px;
    z-index: -1;
}

.firstLevelElement.principal .image-container {
    flex: 0 0 45%;
    max-width: 45%;
    overflow: hidden;
}
.firstLevelElement.principal .image-container img {
    width: 110%;
    margin-left: -15%;
}

.firstLevelElement.subElement .text-container {
    flex: 0 0 75%;
    max-width: 75%;
}
.firstLevelElement.principal .text-container {
    flex: 0 0 55%;
    max-width: 55%;
}
.firstLevelElement.subElement .text-container .nombre {
    font-size: 1.5rem;
    line-height: 25px;
    margin-block-end: 0.5em;
}
.firstLevelElement.principal .text-container .nombre {
    font-size: 1.75rem;
    line-height: 25px;
    margin-block-end: 0.5em;
}
.firstLevelElement.subElement .text-container .titulo,
.firstLevelElement.principal .text-container .titulo {
    font-size: 0.9rem;
    line-height: 16px;
}



/** SEGUNDO NIVEL */
.secondLevelBox {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.secondLevelElement {
    margin: 0 20px;
    border-radius: 50%;
    border: 1px solid orange;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    overflow: hidden;
}

.secondLevelElement.principal {
    width: 180px;
    height: 180px;
    background-color: rgb(173, 135, 11);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.secondLevelElement.subElement {
    width: 170px;
    height: 170px;
    background-color: rgb(143, 113, 15);
    margin-bottom: -120px;
}

.secondLevelElement.principal:after {
    content: '';
    position: absolute;
    transform: rotate(90deg);
    max-width: 314px;
    margin-top: 10px;
    width: 100%;
    height: 2px;
    background: #000000;
    z-index: -1;
}

.secondLevelElement.principal.plegado:after {
    max-width: 214px;
    margin-top: -90px;
}

.secondLevelElement.subElement:before {
    content: '';
    position: absolute;
    max-width: 250px;
    width: 100% !important;
    height: 2px !important;
    background: #000000;
    margin-left: -250px;
    margin-top: -50px;
    z-index: -1;
    top: unset !important;
}

.secondLevelElement.principal .text-container {
    flex: 0 0 90%;
    max-width: 90%;
}

.secondLevelElement.principal .more {
    flex: 0 0 100%;
    max-width: 100%;
    text-align: center;
}

.secondLevelElement.subElement .text-container {
    flex: 0 0 90%;
    max-width: 90%;
}

.secondLevelElement .text-container p {
    line-height: 16px;
}

.secondLevelElement.principal .text-container .nombre {
    text-align: center;
    font-weight: bold;
    margin-block-start: 0.5em;
    margin-block-end: 0.5em;
}

.secondLevelElement.subElement .text-container .nombre {
    text-align: center;
    font-weight: bold;
    margin-block-start: 0.5em;
    margin-block-end: 0.5em;
}

.secondLevelElement.principal .text-container .titulo {
    text-transform: uppercase;
    font-size: 0.9rem;
    text-align: center;
    margin-block-start: 2em;
    margin-block-end: 0.5em;
}
.secondLevelElement.subElement .text-container .titulo {
    text-transform: uppercase;
    font-size: 0.9rem;
    text-align: center;
    margin-block-start: 0.5em;
    margin-block-end: 0.5em;
}

.secondLevel .horizontal {
    width: 73%;
    height: 2px;
    border: 1px solid black;
    background: #000000;
    z-index: -1;
    margin-left: 0px;
    position: relative;
    top: 62px;
}

.secondLevel .horizontal.final {
    width: 59%;
}

/** TERCER NIVEL */
.thirdLevel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
}

.thirdLevelBox {
    margin: 0;
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
    padding: 0.5%;
}

.thirdLevelBox ul.firstList,
.thirdLevelBox ul.secondList,
.thirdLevelBox ul.thirdList {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
}

.thirdLevelBox .thirdLevelElement {
    flex: 0 0 24%;
    max-width: 24%;
    margin: 0 0.5%;
}

.thirdLevelBox .thirdLevelElement.vacia {
    flex: 0 0 35%;
    max-width: 35%;
}

.thirdLevelBox .thirdLevelElement .thirdLevelSubelement {
    width: 82%;
    height: 165px;
    color: #000000;
    border-radius: 5%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    overflow: hidden;
    box-shadow: 0px 2px 0px 3px rgb(48 66 89 / 7%);
    margin: 15px 0 30px;
}

.thirdLevelBox .thirdLevelElement .thirdLevelSubelement.principal {
    width: 140px;
    height: 140px;
    color: #ffffff;
    border-radius: 50%;
    background-color: rgb(110, 117, 119);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    overflow: hidden;
    margin: 0px 0 15px;
}

.thirdLevelBox .thirdLevelElement .thirdLevelSubelement .more {
    flex: 0 0 100%;
    max-width: 100%;
    text-align: center;
}

.thirdLevelBox .text-container {
    margin-top: 0px;
}

.thirdLevelBox .thirdLevelElement .thirdLevelSubelement .text-container {
    flex: 0 0 90%;
    max-width: 90%;
}

.thirdLevelBox .thirdLevelElement .thirdLevelSubelement .text-container p {
    line-height: 12px;
}

.thirdLevelBox .thirdLevelElement .thirdLevelSubelement .text-container .nombre {
    text-align: center;
    font-weight: bold;
    margin-block-start: 0.5em;
    margin-block-end: 0.5em;
    font-size: 0.7rem;
}

.thirdLevelBox .thirdLevelElement .thirdLevelSubelement .text-container .titulo {
    text-transform: uppercase;
    font-size: 0.6rem;
    text-align: center;
    margin-block-start: 2em;
    margin-block-end: 0.5em;
}
.thirdLevelBox .thirdLevelElement .thirdLevelSubelement.principal .text-container .nombre {
    font-size: 0.8rem;
}

.thirdLevelBox .thirdLevelElement .thirdLevelSubelement.principal .text-container .titulo {
    font-size: 0.8rem;
}

.thirdLevelBox .thirdLevelElement .thirdLevelSubelement:after {
    content: '';
    position: absolute;
    height: 165px;
    border: 1px solid black;
    margin-bottom: 90px;
    z-index: -1;
}


.thirdLevelBox .thirdLevelElement .thirdLevelSubelement.principal:after {
    content: none;
}

.thirdLevelBox .thirdLevelElement .thirdLevelSubelement.principal .vertical {
    position: absolute;
    border: 1px solid black;
    z-index: -1;
}

.thirdLevelBox .thirdLevelElement.secondColumn,
.thirdLevelBox .thirdLevelElement.fourthColumn {
    padding-top: 155px;
}
.thirdLevelBox .thirdLevelElement.secondColumn .thirdLevelSubelement:after,
.thirdLevelBox.secondElement .thirdLevelElement.fourthColumn .thirdLevelSubelement.subElement:after,
.thirdLevelBox .thirdLevelElement.fourthColumn .thirdLevelSubelement.first:after,
.thirdLevelBox .thirdList .thirdLevelElement.fourthColumn .thirdLevelSubelement:after {
    height: 324px;
    margin-bottom: 316px;
}

.thirdLevelBox .thirdLevelElement.fourthColumn .thirdLevelSubelement.subElement:after {
    border: 1px dashed black;
}
.thirdLevelBox .thirdLevelElement.thirdColumn .borderBoxTop {
    position: relative;
}
.thirdLevelBox .thirdLevelElement.thirdColumn .borderBoxTop:after {
    content: '';
    position: absolute;
    z-index: -1;
    border: 1px dashed black;
    height: 156px;
    bottom: 60px;
    left: 50%;
}

.thirdLevelBox .thirdLevelElement.fourthColumn .thirdLevelSubelement.subElement,
.thirdLevelBox .thirdLevelElement.thirdColumn .thirdLevelSubelement.subElement {
    overflow: visible;
    position: relative;
}

.thirdLevelBox .image-container {
    position: absolute;
    top: 0;
    flex: 0 0 35px;
    max-width: 35px;
    height: 35px;
    border: 5px solid #ffffff;
    margin-top: -20px;
    overflow: hidden;
    border-radius: 50%;
    padding: 4px;
    display: flex;
    justify-content: center;
    background-color: rgb(227, 237, 238);
}

.thirdLevelBox .thirdLevelElement.thirdColumn ul {
    background-color: rgb(110, 117, 119);
}

.borderBoxTop {
    border-radius: 50% 50% 0 0;
    background-color: rgb(110, 117, 119);
    height: 150px;
}

.borderBoxTop .text-container {
    color: #fff;
    text-align: center;
    line-height: 16px;
    padding-top: 30px;
    font-size: 1rem;
    padding: 60px 15px 15px;
}

.organigrama .more {
    width: 100%;
    height: 28px;
    border: 0px;
    background: url(../img/icono-replegar-organigrama.svg) no-repeat;
    background-position: center;
}

.organigrama .more.close {
    width: 100%;
    height: 28px;
    border: 0px;
    background: url(../img/icono-desplegar-organigrama.svg) no-repeat;
    background-position: center;
}
.horizontal.responsive {
    display: none;
    width: 100%;
}

/** MEDIA QUERYS */
@media only screen and (max-width: 1536px) {
    .borderBoxTop .text-container {
        padding: 60px 5px 5px;
        font-size: 0.9rem;
    }
    .thirdLevelBox .thirdLevelElement .thirdLevelSubelement.principal .text-container .nombre {
        font-size: 0.6rem;
    }
    .thirdLevelBox .thirdLevelElement .thirdLevelSubelement .text-container .titulo {
        margin-block-start: 0.5em;
        margin-block-end: 0em;
    }
    .thirdLevelBox .thirdLevelElement .thirdLevelSubelement.principal .text-container .titulo {
        font-size: 0.7rem;
    }
}
@media only screen and (max-width: 1320px) {

    .firstLevel .horizontal {
        margin-left: -195px;
    }

    .secondLevelElement.principal {
        width: 165px;
        height: 165px;
    }

    .secondLevelElement.subElement {
        width: 155px;
        height: 155px;
    }
    
    .secondLevelElement.principal:after {
        max-width: 300px;
        margin-top: 10px;
    }

    .thirdLevelBox .thirdLevelElement .thirdLevelSubelement.principal .text-container .titulo {
        font-size: 0.7rem;
    }

    .thirdLevelBox .thirdLevelElement .thirdLevelSubelement.principal:after {
        height: 156px;
        margin-bottom: 116px;
    }

    .thirdLevelBox .thirdLevelElement.secondColumn .thirdLevelSubelement:after,
    .thirdLevelBox.secondElement .thirdLevelElement.fourthColumn .thirdLevelSubelement.subElement:after,
    .thirdLevelBox .thirdLevelElement.fourthColumn .thirdLevelSubelement.first:after,
    .thirdLevelBox .thirdList .thirdLevelElement.fourthColumn .thirdLevelSubelement:after {
        height: 320px;
    }

    .borderBoxTop .text-container {
        font-size: 0.8rem;
    }
}

/* @media only screen and (max-width: 1230px) {
    .secondLevelElement.principal {
        width: 140px;
        height: 140px;
    }

    .secondLevelElement.principal .text-container .titulo,
    .secondLevelElement.principal .text-container .nombre {
        font-size: 0.7rem;
    }

    .secondLevelElement.subElement {
        width: 120px;
        height: 120px;
    }

    .firstLevel .horizontal {
        margin-left: -160px;
    }

    .secondLevelElement.principal:after {
        max-width: 276px;
    }

    .secondLevelElement.subElement:before {
        max-width: 200px;
    }

    .secondLevelElement.subElement .text-container .titulo {
        font-size: 0.7rem;
    }

    .secondLevelElement .text-container .nombre {
        font-size: 0.8rem;
    }

    .thirdLevelBox .thirdLevelElement .thirdLevelSubelement {
        min-height: 165px;
        height: auto;
    }
    .thirdLevelBox .thirdLevelElement .thirdLevelSubelement .text-container .titulo {
        font-size: 0.5rem;
    }

    .thirdLevelBox .thirdLevelElement .thirdLevelSubelement.principal:after {
        height: 180px;
    }

    .thirdLevelBox .thirdLevelElement .thirdLevelSubelement.principal .text-container .titulo {
        font-size: 0.6rem;
    }

    .thirdLevelBox .thirdLevelElement .thirdLevelSubelement.principal .text-container .nombre {
        font-size: 0.7rem;
    }

    .borderBoxTop .text-container {
        font-size: 0.7rem;
        padding: 60px 5px 5px;
    }
    
} */

@media only screen and (max-width: 1280px) {
    .organigrama {
        margin-left: -65px;
        margin-right: -65px;
    }
    .firstLevelElement {
        margin: 0 45px;
        width: 180px;
        height: 180px;
    }
    .firstLevelElement.principal {
        width: 200px;
        height: 200px;
    }

    .firstLevelElement.principal:after {
        width: 100%;
        height: 220px;
        margin-top: 123px;
    }

    .secondLevel {
        align-items: flex-start;
    }
    .thirdLevelBox.firstElement, .thirdLevelBox.secondElement, .thirdLevelBox.thirdElement,
    .secondLevel .horizontal, .secondLevelElement.subElement {
        display: none;
    }
    .thirdLevelBox.firstElement, .thirdLevelBox.secondElement, .thirdLevelBox.thirdElement {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .secondLevel .firstBox .horizontal,
    .secondLevel .secondBox .horizontal,
    .secondLevel .thirdBox .horizontal {
        display: none !important;
    }

    .firstLevel .horizontal {
        margin-left: 0px;
        width: 66.9%;
    }
    
    .secondLevel .horizontal {
        width: 80%;
    }
    .horizontal.responsive {
        top: 60px;
    }
    .secondLevelElement.principal {
        width: 180px;
        height: 180px;
    }

    .secondLevelElement.subElement {
        width: 170px;
        height: 170px;
        margin-bottom: 0px;
    }
    
    .secondLevelElement.principal .text-container .titulo,
    .secondLevelElement.principal .text-container .nombre,
    .secondLevelElement.subElement .text-container .titulo,
    .secondLevelElement.subElement .text-container .nombre {
        font-size: 0.9rem;
    }
    
    .secondLevelElement.principal:after {
        max-width: 216px;
        margin-top: -86px;
    }

    .organigrama .more {
        width: 100%;
        height: 28px;
        border: 0px;
        background: url(../img/icono-desplegar-organigrama.svg) no-repeat;
        background-position: center;
    }
    
    .organigrama .more.close {
        width: 100%;
        height: 28px;
        border: 0px;
        background: url(../img/icono-replegar-organigrama.svg) no-repeat;
        background-position: center;
    }


    .secondLevelElement.subElement:before {
        margin-left: 0px;
        margin-top: 0px;
        transform: rotate(90deg);
        max-width: 296px;
    }
}

@media only screen and (max-width: 640px) {
    .organigrama {
        display: none;
        margin-left: -30px;
        margin-right: -30px;
    }
}

.organigrama .leyenda {
    max-width: 75%;
    margin: 0 auto;
}