/* https://www.cssscript.com/responsive-hierarchical-organization-chart-pure-css/ */

*,
*:before,
*:after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {

    background-color: #fff;
    font-family: 'Helvetica Neue', 'Helvetica', Arial, sans-serif;
    font-size: 0.8em !important;

    /*background: url("https://enciclopedia.apps-megalabs.com/wp-content/themes/twentyten/images/bgg.jpg");*/
    /*background: url("https://enciclopedia.apps-megalabs.com/wp-content/themes/twentyten/images/bgg.mp4");*/
    background-color: rgba(0, 0, 0, 0);
    background-repeat: repeat;
    background-size: auto;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: black;

}

ol.organizational-chart > li > ol > li > div a {
    color: #fff;
}

#videoFondo {
  background-image: url('https://enciclopedia.apps-megalabs.com/wp-content/themes/twentyten/images/fondo-bgg.jpg');  
  background-repeat: no-repeat;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Esto asegura que el video se adapte al tamaño de la pantalla */
  z-index: -1; /* Coloca el video detrás del contenido */
}

.contenido{
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  
}

.modal-header h5{
    font-size: 18px;
}


h4 {
 
  font-size: 0.95em !important;

}

.cabecera{
    background: #04856b;
  opacity: 0.75;
  padding: 10px 0px;
}

.parrafo-cabecera{
    color: #fff;
    font-size: 18px;
}

.typed-text2{
    padding-top: 20px;
    color: #fff;
    font-size: 18px;
}


.btn-warning{
    padding: 5px 6px;
  font-size: 10px;
  font-weight: bold;
}

.organizational-chart h4{
  cursor: pointer;
}

h4 a{
  text-decoration: none;
  color: #333;
}

#wrapper {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}

#container {
  float: left;
  padding: 0px 0px;
  width: 100%;
}

ol.organizational-chart,
ol.organizational-chart ol,
ol.organizational-chart li,
ol.organizational-chart li > div {
    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;
}

/** This connects the lines together **/
ol.organizational-chart ol:before,
ol.organizational-chart ol:after,
ol.organizational-chart li:before,
ol.organizational-chart li:after,
ol.organizational-chart > li > div:before,
ol.organizational-chart > li > div:after {
    background-color: #d2d2d2;
    content: '';
    position: absolute;
    border: 1px solid #d2d2d2;
}

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

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:not(:last-of-type):before {
    height: 3px;
    left: 0;
    top: 2em;
    width: 1em;
}

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

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

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

ol.organizational-chart li > div {
    background-color: #a5c2d1;
    border-radius: 3px;
    min-height: 2em;
    padding: 0.5em;
    padding: 0.4em;
    padding-right: 0.4em;
    padding-bottom: 0.4em;
    padding-left: 0.4em;
    padding-bottom: 0.3em;
    padding-right: 0.5;
    padding-left: 0.5;
  }

/*** PRIMARY ***/
ol.organizational-chart > li > div {
    background-color: transparent /* #fff; */
    margin-right: .5em;
}

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

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

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

ol.organizational-chart > li > div + div:after {
    height: calc(100% + 1em);
    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%;
}

ol.organizational-chart > li > ol > li > div {
  background-color: #01a78d; /* #becee7;  #01a78d; */
  color: #fff;
}

/*** TERTIARY ***/
ol.organizational-chart > li > ol > li > ol > li > div {
    background-color: #a7e8b8;
    color: #333;
}

/*** QUATERNARY ***/
ol.organizational-chart > li > ol > li > ol > li > ol > li > div {
    background-color: #becee7;
    color: #333;
}

/*** QUINARY ***/
ol.organizational-chart > li > ol > li > ol > li > ol > li > ol > li > div {
    background-color: #a5c2d1;
    color: #333;
}

/* Contenedor principal */

.cursor-enciclopedia{
    position: absolute;
    bottom: 45%;
    width: 160px;
}


/* Animación de escritura */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

/* Animación del cursor parpadeante */
@keyframes blink {
    from, to { border-color: transparent; }
    50% { border-color: white; }
}


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

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

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

    ol.organizational-chart > li > div:only-of-type {
        margin-bottom: 0;
        width: calc((100% / 1) - 2em - 4px);
    }

    ol.organizational-chart > li > div:first-of-type:nth-last-of-type(2),
    ol.organizational-chart > li > div:first-of-type:nth-last-of-type(2) ~ div {
        width: calc((100% / 2) - 2em - 4px);
    }

    ol.organizational-chart > li > div:first-of-type:nth-last-of-type(3),
    ol.organizational-chart > li > div:first-of-type:nth-last-of-type(3) ~ div {
        width: calc((100% / 3) - 2em - 4px);
    }

    ol.organizational-chart > li > div:first-of-type:nth-last-of-type(4),
    ol.organizational-chart > li > div:first-of-type:nth-last-of-type(4) ~ div {
        width: calc((100% / 4) - 2em - 4px);
    }

    ol.organizational-chart > li > div:first-of-type:nth-last-of-type(5),
    ol.organizational-chart > li > div:first-of-type:nth-last-of-type(5) ~ div {
        width: calc((100% / 5) - 2em - 4px);
    }

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

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

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

    ol.organizational-chart > li > div:first-of-type:not(:only-of-type):after,
    ol.organizational-chart > li > div:last-of-type:not(:only-of-type):after {
        bottom: -1em;
        height: 3px;
        width: calc(50% + 1em + 3px);
    }

    ol.organizational-chart > li > div:first-of-type:not(:only-of-type):after {
        left: calc(50% + 3px);
    }

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

    ol.organizational-chart > li > div + div:not(:last-of-type):after {
        height: 3px;
        left: -2em;
        width: calc(100% + 4em);
    }

    /* 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: 0.4em;
        padding-right: 0.4em;
        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-of-type: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-of-type: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%;
    }


}

/*** MEDIA QUERIES ***/
@media only screen and (max-width: 767px) {

 
    .img-enciclopedia{
        width: 50% !important;
        padding: 10% 0 0 0 !important;
    }

    .logo_enc{
        margin-right:10px;
        width: 70px !important;
    }

    .logo_mega{
        margin-right:10px;
        width: 140px !important;
    }

    .logo_pbi{
        width: 80px !important;
    }

    .parrafo-cabecera{
        color: #fff;
        font-size: 16px !important;
        margin-bottom: 0px;
    }

}

/*** MEDIA QUERIES ***/
@media only screen and (max-width: 600px) {

    .pdt20{
        padding-top: 20px;
    }

    .cursor-enciclopedia {
        position: absolute;
        bottom: 17%;
        width: 120px;
    }

    .parrafo-cabecera{
        color: #fff;
        font-size: 16px !important;
        margin-bottom: 0px;
    }

    .typed-text{
         
        color: #fff;
        font-size: 16px !important;
    }

    .typed-text2{
        
        color: #fff;
        font-size: 16px !important;
    }

    .img-enciclopedia{
        width: 50% !important;
        padding: 10% 0 0 0 !important;
    }

    .logo_enc{
        margin-right:10px;
        width: 70px !important;
    }

    .logo_mega{
        margin-right:10px;
        width: 140px !important;
    }

    .logo_pbi{
        width: 80px !important;
    }

}