ol.organizational-chart ul,
ol.organizational-chart li,
ol.organizational-chart ul a,
ol.organizational-chart ul:before,
ol.organizational-chart li:before,
ol.organizational-chart ul a:before,
ol.organizational-chart ul:after,
ol.organizational-chart li:after,
ol.organizational-chart ul a:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box; 
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

ol.organizational-chart,
ol.organizational-chart ol,
ol.organizational-chart li,
ol.organizational-chart li > a {
    position: relative;
}

ol.organizational-chart,
ol.organizational-chart ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

ol.organizational-chart {
    text-align: center;
}

ol.organizational-chart ol {
    padding-top: 1em;
}

ol.organizational-chart > li {
    margin-left: 1%; 
    margin-right: 1%; 
}

ol.organizational-chart ol:before,
ol.organizational-chart ol:after,
ol.organizational-chart li:before,
ol.organizational-chart li:after,
ol.organizational-chart > li > a:before,
ol.organizational-chart > li > a:after {
    background-color: #b7a6aa;
    content: '';
    position: absolute;
}

ol.organizational-chart ol > li {
    padding: 1em 0 0 1em;
}

ol.organizational-chart > li ol:before {
    height: 1em;
    left: 50%;
    top: 0;
    width: 3px;
}

ol.organizational-chart > li ol:after {
    height: 3px;
    left: 3px;
    top: 1em;
    width: 50%;
}

ol.organizational-chart > li ol > li:before {
    height: 3px;
    left: 0;
    top: 2em;
    width: 1em;
}

ol.organizational-chart > li ol > li:after {
    height: 100%;
    left: 0;
    top: 0;
    width: 3px;
}

ol.organizational-chart > li ol > li.lc:before {
    height: 3px;
    left: 0;
    top: 2em;
    width: 1em;
}

ol.organizational-chart > li ol > li.lc:after {
    height: 2em;
    left: 0;
    top: 0;
    width: 3px;
}

ol.organizational-chart > li ol > li:last-child:before {
    height: 3px;
    left: 0;
    top: 2em;
    width: 1em;
}

ol.organizational-chart > li ol > li:last-child:after {
    height: 2em;
    left: 0;
    top: 0;
    width: 3px;
}

ol.organizational-chart li > a {
    background-color: #fff;
    border-radius: 3px;
    min-height: 2em;
    padding: 0.5em;
}

/*** PRIMARY ***/
ol.organizational-chart > li > a {
    background-color: #333333;
    margin-right: 1em;
}

ol.organizational-chart > li > a:before {
    bottom: 2em;
    height: 3px;
    right: -1em;
    width: 1em;
}

ol.organizational-chart > li > a:first-child:after {
    bottom: 0;
    height: 2em;
    right: -1em;
    width: 3px;
}

ol.organizational-chart > li > a + a {
    margin-top: 1em;
}

ol.organizational-chart > li > a + a:after {
    /*height: calc(100% + 1em);*/
    height: 100%;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding-top: -16px;
    padding-bottom: -16px;
    margin-top: 16px;
    margin-bottom: 16px;
    right: -1em;
    top: -1em;
    width: 3px;
}

/*** SECONDARY ***/
ol.organizational-chart > li > ol:before {
    left: inherit;
    right: 0;
}

ol.organizational-chart > li > ol:after {
    left: 0;
    width: 100%;
}
/*
#006666 verde obscuro
#339999 verde mediano
#333333 casi negro
#5bc0de azul claro
#142333 azul muy obscuro
#E6E6E6 gris
#283A97 azul fuerte
#F4F1DE amarillito
#389BAA azul verdoso
#FF9933 naranja
#c0c0c0(silver) gris.
#cecece gris mas claro
#f4f4f4 gris mas mas claro
#ededed gris mas claro
#f5f5f5 gris mas claro
#EEEEEE gris mas claro
#66CCCC verde azuloso
#cccccc gris obscuro
*/

ol.organizational-chart > li > ol > li > a {
    /*background-color: #83e4e2;*/
    background-color: #006666;
}

/*** TERTIARY ***/
ol.organizational-chart > li > ol > li > ol > li > a {
    background-color: #337AB7;
}

/*** QUATERNARY ***/
ol.organizational-chart > li > ol > li > ol > li > ol > li > a {
    background-color: #F4953B;
}

/*** QUINARY ***/
ol.organizational-chart > li > ol > li > ol > li > ol > li > ol > li > a {
    background-color: #D9534F;
}

/*** SENARY ***/
ol.organizational-chart > li > ol > li > ol > li > ol > li > ol > li > ol > li > a {
    background-color: #339999;
}

/*** PRIMARY ***/
ol.organizational-chart > li > a:hover {
    background-color: #000000;
}
/*** SECONDARY ***/
ol.organizational-chart > li > ol > li > a:hover {
    background-color: #004747;
}
/*** TERTIARY ***/
ol.organizational-chart > li > ol > li > ol > li > a:hover {
    background-color: #235580;
}

/*** QUATERNARY ***/
ol.organizational-chart > li > ol > li > ol > li > ol > li > a:hover {
    background-color: #E2974F;
}

/*** QUINARY ***/
ol.organizational-chart > li > ol > li > ol > li > ol > li > ol > li > a:hover {
    background-color: #C34A47;
}

/*** SENARY ***/
ol.organizational-chart > li > ol > li > ol > li > ol > li > ol > li > ol > li > a:hover {
    background-color: #2D8989;
}

ol.organizational-chart a {
    display: block;
    color: #F4F1DE;
}

ol.organizational-chart a:hover {
    box-shadow: 8px 8px 9px -4px rgba(0,0,0,0.1);
    cursor: pointer;
    color: #FFFFFF;
}

.pp ol.organizational-chart a:hover > div {
    /*width: 100%;
    height: 100%;*/
    background-color: black;
    /* works for IE 5+. */
    filter:alpha(opacity=30); 
    /* works for IE 8. */
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";
    /* works for old school versions of the Mozilla browsers like Netscape Navigator. */
    -moz-opacity:0.3; 
    /* This is for old versions of Safari (1.x) with KHTML rendering engine */
    -khtml-opacity: 0.3; 
    /* This is the standard. */  
    opacity: 0.3; 
}

/*** MEDIA QUERIES ***/
@media only screen and ( min-width: 64em ) {

    ol.organizational-chart {
        margin-left: -1em;
        margin-right: -1em;
    }

    /* PRIMARY */
    ol.organizational-chart > li > a {
        display: inline-block;
        float: none;
        margin: 0 1em 1em 1em;
        vertical-align: bottom;
    }

    ol.organizational-chart > li > a:only-of-type {
        margin-bottom: 0;
       /* width: calc((100% / 1) - 2em - 4px);*/
        width: 100%;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        padding-right: 36px;
        padding-left: 36px;
        margin-right: -36px;
        margin-left: -36px;
    }

    ol.organizational-chart > li > a:first-child:nth-last-of-type(2),
    ol.organizational-chart > li > a:first-child:nth-last-of-type(2) ~ a {
        /*width: calc((100% / 2) - 2em - 4px);*/
        width: 50%;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        padding-right: 36px;
        padding-left: 36px;
        margin-right: -36px;
        margin-left: -36px;
    }

    ol.organizational-chart > li > a:first-child:nth-last-of-type(3),
    ol.organizational-chart > li > a:first-child:nth-last-of-type(3) ~ a {
        /*width: calc((100% / 3) - 2em - 4px);*/
        width: 33%;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        padding-right: 36px;
        padding-left: 36px;
        margin-right: -36px;
        margin-left: -36px;
    }

    ol.organizational-chart > li > a:first-child:nth-last-of-type(4),
    ol.organizational-chart > li > a:first-child:nth-last-of-type(4) ~ a {
        /*width: calc((100% / 4) - 2em - 4px);*/
        width: 20%;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        padding-right: 36px;
        padding-left: 36px;
        margin-right: -36px;
        margin-left: -36px;
    }

    ol.organizational-chart > li > a:first-child:nth-last-of-type(5),
    ol.organizational-chart > li > a:first-child:nth-last-of-type(5) ~ a {
        /*width: calc((100% / 5) - 2em - 4px);*/
        width: 20%;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        padding-right: 36px;
        padding-left: 36px;
        margin-right: -36px;
        margin-left: -36px;
    }

    ol.organizational-chart > li > a:before,
    ol.organizational-chart > li > a:after {
        bottom: -1em!important;
        top: inherit!important;
    }

    ol.organizational-chart > li > a:before {
        height: 1em!important;
        left: 50%!important;
        width: 3px!important;
    }

    ol.organizational-chart > li > a:only-of-type:after {
        display: none;
    }

    ol.organizational-chart > li > a:first-child:not(:only-of-type):after,
    ol.organizational-chart > li > a:last-of-type:not(:only-of-type):after {
        bottom: -1em;
        height: 3px;
        /*width: calc(50% + 1em + 3px);*/
        width: 50%;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        padding-right: -19px;
        padding-left: -19px;
        margin-right: 19px;
        margin-left: 19px;
    }

    ol.organizational-chart > li > a:first-child:not(:only-of-type):after {
        /*left: calc(50% + 3px);*/
        left: 50%;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        padding-right: -3px;
        padding-left: -3px;
        margin-right: 3px;
        margin-left: 3px;
    }

    ol.organizational-chart > li > a:last-of-type:not(:only-of-type):after {
        /*left: calc(-1em - 3px);*/
        left: -19px;
    }

    ol.organizational-chart > li > a + a:not(:last-of-type):after {
        height: 3px;
        left: -2em;
        /*width: calc(100% + 4em);*/
        width: 100%;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        padding-right: -32px;
        padding-left: -32px;
        margin-right: 32px;
        margin-left: 32px;
    }

    /* SECONDARY */
    ol.organizational-chart > li > ol {
        display: flex;
        flex-wrap: nowrap;
    }

    ol.organizational-chart > li > ol:before,
    ol.organizational-chart > li > ol > li:before {
        height: 1em!important;
        left: 50%!important;
        top: 0!important;
        width: 3px!important;
    }

    ol.organizational-chart > li > ol:after {
        display: none;
    }

    ol.organizational-chart > li > ol > li {
        flex-grow: 1;
        padding-left: 1em;
        padding-right: 1em;
        padding-top: 1em;
    }

    ol.organizational-chart > li > ol > li:only-of-type {
        padding-top: 0;
    }

    ol.organizational-chart > li > ol > li:only-of-type:before,
    ol.organizational-chart > li > ol > li:only-of-type:after {
        display: none;
    }

    ol.organizational-chart > li > ol > li:first-child:not(:only-of-type):after,
    ol.organizational-chart > li > ol > li:last-of-type:not(:only-of-type):after {
        height: 3px;
        top: 0;
        width: 50%;
    }

    ol.organizational-chart > li > ol > li:first-child:not(:only-of-type):after {
        left: 50%;
    }

    ol.organizational-chart > li > ol > li:last-of-type:not(:only-of-type):after {
        left: 0;
    }

    ol.organizational-chart > li > ol > li + li:not(:last-of-type):after {
        height: 3px;
        left: 0;
        top: 0;
        width: 100%;
    }
}
