:root{
    --transition-default: all 0.27s cubic-bezier(0, 0, 0.58, 1);
}

body{
    margin: 0;
    padding: 0;
  /*font-family: "Raleway", sans-serif;*/
  font-family: 'Tw Cen MT', sans-serif;
  position:relative;
  min-height: 100vh;
height: fit-content;
}

.pRelative{
    position: relative;
}

.pAbs{
    position: absolute;
}

.colorBlue{
    background-color: rgba(0, 85, 192, 0.8);
}

.colorTransparent{
    background-color: transparent;
}

.colorRed{
    background-color: rgba(230, 50, 40, 0.8);

}

.colorPink{
    background-color: rgba(251, 6, 173,0.8);

}

.colorYellow{
    background-color: rgba(249, 178, 51,0.8);
}


.morado{
    color: #7726FF;
}

.underline{
    text-decoration: underline;
}

.subrayado{
    text-decoration: underline;
}

.negritas{
    font-weight: bold;
}

.flex{
    display: flex;
}


.fw300{
    font-weight: 300;
}


a{
    text-decoration: none;
    color: inherit;
    pointer-events: auto;
}



.flexCentered{
    display: flex;
    align-items: center;
    justify-content: center;
}


.whiteDiv{
    width: 100%;
    height: 20px;
}

/* ------------------------------- */

#disclaimerCont{
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.8);
    /*overflow-y: auto;*/
}

#imagenDisclaimer{
    min-height: 80vh;
    height: calc(var(--vh) * 70);;
}

#parrafosDisclaimer{
    position: absolute;
    top: 4em;
    right: 2em;
    width: 30%;
}

.botonDisclaimer{
    border:2px solid white;
    cursor: pointer;
    padding: 0.3em;
    font-weight: 650;
    width: fit-content;
}

#btD2{
    margin-top: 0.5em;
}

.botonDisclaimer p{
    margin: 0;
}



#nav{
    height: 4em;
    width: 100%;
    background-color: #F2F2F2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position:relative;
    color: #676767;
}

#acerca{
    flex-basis: fit-content;
}





#infoAcerca{
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    /*width: 90%;
    height: fit-content;
    min-height: 90%;*/
    background-color: white;
    border: 1px solid #CCCCCC;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
    padding: 5%;
    overflow-y: auto;
}

#innerInfoAcerca{
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#closeAcerca{
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

#pantallaBuscar{
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: white;
    z-index: 1;
    overflow-y: auto;
}






#name{
    margin-left: 2em;
    color: white;
}

.infoContMulti{
        padding-left: 35%;
        padding-right: 30%;
    }




#buscadorCont{
    position: absolute;
    
    left: 50%;
    top:50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    color: #676767;

}
#buscador{
    background-color: #DADADA;
    border: none;
    padding: 5px 5px 5px 25px;
    width: 20em;
}


#buscadorCont2{
    white-space: nowrap;
    height: 40px;
    width: 85%;
    color: #E4E4E4;

}
#buscador2{
    background-color: #E4E4E4;
    border: none;
    padding: 3px 3px 3px 30px;
    width: 100%;
    align-items: center;
    box-sizing: border-box;
    height: 100%;
}

#buscador2:focus {
  border: none;
  outline: none;
}

#botonBuscar{
    background-color: #FF6801;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px 3px 10px;
    width: 15%;
    box-sizing: border-box;
    cursor: pointer;

}

#botonBuscar p {
    margin: 0;
}

#menu{
    margin-right: 2em;
    color: black;
    font-weight: 600;
    font-size: 18px;
    gap:1em;
    width: fit-content;
    flex-direction: row;
    justify-content: end;
}

.colorLine{
    width: 100%;
    height: 100%;
}

#barraColores{
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

#exploraMain{
    padding: 2em;
    display: flex;
    flex-direction: row;
}

#mainContent1{
    flex-basis: 75%;    
    display: flex;
    justify-content: right;
}

#mainContent{
    width: 85%;
    margin-right: 2em;
    font-size: 130;
}

#gridInicio{
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

#gridInicio > *:nth-child(12n + 1), *:nth-child(12n + 4), *:nth-child(12n + 5), *:nth-child(12n + 8), *:nth-child(12n + 9), *:nth-child(12n) {
  flex-basis: 57%;
}

#gridInicio > *:nth-child(12n + 2), *:nth-child(12n + 3), *:nth-child(12n + 6), *:nth-child(12n + 7), *:nth-child(12n + 10), *:nth-child(12n + 11) {
  flex-basis: 37%;
}

.background{
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
}

/*
#gridInicio > *:nth-child(even) {
    flex-basis: 35%;
}

.gridElementsInicio:nth-child(odd) {
    flex-basis: 55%;
}*/

.gridElementsInicio{
    background-color: black;
    height: 260px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.gridElementsInicioG{
    background-color: black;
    height: 260px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.overlay{
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: auto;
    height: auto;
    display: flex;
    justify-content: end;
    flex-direction: column;
    align-items: start;
    color: white;
    padding: 1em;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
    visibility: hidden;
}

.vertWhite{
    width: 2px;
    height: 100%;
    background-color: white;
}
.infoHover{
    font-size: 14px;
    color: white;
    margin-left: 0.5em;
}
.infoHover p{
    margin: 0;
}



.overlay.visible{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
}

.overlay.hidden{
    display: flex !important;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    visibility: hidden;
}



.break{
    grid-column: 1 / -1; /* span entire row */
}

.hidden{
    display: none;
}

.popUpContainer{
    width: 100%;
    height: fit-content;
    min-height: 100%;
    background-color: white;
    display: block;
    position: relative;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.upBarPop{
    width: 94%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2em 3% 2em 2em;
}

#nameBuscar{
    position: absolute;
    top: 20px;
    left: 20px;
}

#closeBuscar{
    position: absolute;
    top: 1.2em;
    right: 3%;
    cursor: pointer;
}


.leftArrow{
    position: fixed;
    top: 50vh;
    left: 2%;
    cursor: pointer;
    height: 60px;
    width: 60px;
}
/*
#leftArrow img, #rightArrow img{
    width:60px;
    height:60px;
    min-height: none;
    min-width: none;
}*/

.rightArrow{
    position: fixed;
    top: 50vh;
    right: 2%;
    cursor: pointer;
    height: 60px;
    width: 60px;
}


.imagenPop{
    width: 100%;
    height: auto;
    object-fit: contain;
}


.imagenPopPop{
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    padding: 40px;
    background-color: rgba(0,0,0,0.8);
    z-index: 10;
    
}

.videoPopPop{
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    padding: 40px;
    background-color: rgba(0,0,0,0.8);
    z-index: 10;
    
}

.pdfPopPop{
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    padding: 40px;
    background-color: rgba(0,0,0,0.8);
    z-index: 10;
    
}

.pdfIframe{
    width: 100%;
    height: 85vh;
}

.closePopUp{
    cursor: pointer;
}


.closePopPopUp{
    position: absolute;
    right: 10px;
    top: 10px;
}

.audioPop{
    width: 100%;
    margin-top: 25%;
    margin-bottom: 2em;
}

.audioPopMulti{
    width: 100%;
    margin-top: 5%;
    margin-bottom: 2em;
}

.videoPop{
    width: 100%;
    margin-top: 5%;
    margin-bottom: 2em;
}

.videoPopMulti{
    width: 100%;
    margin-top: 5%;
    margin-bottom: 2em;
}

.pdfPop{
    width: 100%;
    margin-top: 5%;
    margin-bottom: 2em;
}

.popUpDataContainer{
    display: flex;
    font-size: 15px;
    line-height: 1.2em;
    padding-top: 1em;
    padding-bottom: 3em;
}

.popUpDataContainer p {
    margin: 0;
}

.verticalBar{
    width: 0.1em;
    background-color:black;
    margin: 0 1em 0 0;
}


.randomPart{
    width: 100%;
    display: grid;
    grid-template-columns: 43% 55%;
    gap: 1.1em;   
    background-color: white;
    margin-bottom: 2em;
    grid-auto-rows: 100px; /* each row has same height */
}

.randomPart div{
    overflow: hidden;
    box-sizing: border-box;
}

.randomPart > *:nth-child(odd) {
    grid-row: span 1;
    height: 100px;
    
}

.randomPart > *:nth-child(even) {
    grid-row: span 2;
    
    height: calc(200px + 1.1em); /* 2 rows + gap */   
}


#partes{
    flex-basis: 25%;
    height: fit-content;
    background-color: #F2F2F2;
    padding: 1em;
}

.partTitleC{
    color: #656565;
    display: flex;
    height: fit-content;
    font-size: 17px;
    align-items: center;
    justify-content: space-between;
    padding: 0.5em 0 0.5em 0;
}



.partTitle{
    letter-spacing: 0.05em;
    font-size: 17px;
    font-weight: bold;
    text-transform: uppercase;
    height: fit-content;
    color:black
}

.chevronUp{
    display: none;
}

.partsContent{
    font-weight: 400; /* list */
    font-size: 15px;
    display: none;
}

.partsContent ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1em 0;
}

.partsContent li {
    padding: 0.3em 0;
}

.partsContent li.empty-state {
    color: #a5a5a5;
    border: none;
}

.divisor{
    height:0.01em;
    background-color: #656565;
    width: 100%;
}



/* Colecciones */

#presentacion{
    background-color: #004DFF;
    height: 8em;
    width: 100%;
    display: flex;
    gap: 1em;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.coleccionText{
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;
    font-size: 16px;
}

.coleccion-title{
    margin: 0;
    color: #FFEE02;
    font-weight: 600;
    text-transform: uppercase;
}

.mainContent{
    width: 80%;
    padding: 5% 10% 5% 10%;
}

.randomPart{
    width: 100%;
}

.info{
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.infoSerie{
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 1em 4em 1em 6em;
}



.seccionesHijas{
    flex-basis: 42%;
    font-size: 16px;
}

.seccionesHijasSerie{
    flex-basis: 25%;
}

ul{
    list-style: none;
  padding: 0;
  margin: 0;
}

.elementoHijo{
    font-size: 16px;
    margin-top: 1em;
    margin-bottom: 1em;
    font-weight: 600;
}

.infoColeccion{
    font-weight: 400;
    font-size: 16px;
    margin-bottom: 2em;
    flex-basis: 55%;
    background-color: #F2F2F2;
    padding: 1.5em 2em 1.5em 2em;
    line-height: 2em;
    box-sizing: border-box;
}

.infoColeccion p{
    margin: 0;
}



/* Secciones */

#presentacionSeccion{
    background-color: #088122;
    height: 8em;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.seccion-title{
    margin: 0.2em 0 0 0;
    color: #FFEE02;
    font-weight: 600;
    font-size: 22px;
    text-transform: uppercase;
}



/* Series */

#presentacionSerie{
    background-color: #FFCD46;
    height: 8em;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.serieText{
    color: black;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;
    font-size: 16px;
}

.serie-title{
    margin: 0;
    color: #004DFF;
    margin: 0.2em 0 0 0;
    font-weight: 650;
    font-size: 22px;
    text-transform: uppercase;
}

#grayBar{
    background-color: #F2F2F2;
    display: flex;
    font-size: 16px;
    justify-content: center;
    align-items: center;
    padding-top: 2em;
    padding-bottom: 2em;
    width: 100%;
    line-height: 1.5em;
    flex-direction: column;
}

#grayBar div{
    width: 40%;
}

#grayBar p{
    margin: 5px;}

.titles2{
    font-weight: 650;
}

#typeBar{
    box-sizing: border-box;
    width: 98vw;
    padding: 3vw;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    font-size: 18px;
}

.typeTitle{
    width: fit-content;
    flex-basis: auto;
    font-weight: 600;
    cursor: pointer;
}

#itemCont{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-auto-rows: 10px;
    gap: 10px;
    color: white;
    direction: ltr;
    padding: 0 40px 40px 40px;
}

.pUCA{
    padding-left: 25%;
    padding-right: 20%;
}

.pUCI{
    padding-left: 35%;
    padding-right: 30%;
}



#itemCont > *:nth-child(even) {
    grid-row: span 20;
}

#itemCont > *:nth-child(odd) {
    grid-row: span 30;
}

.docCont{
    background-color: white;
    position: relative;
    overflow: hidden;
    background-color: whitesmoke;
}

.docImage{
    width: 100%;
    height: auto;
    transform-origin: center center;
    transition: transform 0.35s ease;
}

.overlaySerie{
    background-color: #2E057F;
    padding: 2em;
    color: white;
    font-size: 14px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: fit-content;
}

.overlaySerie p{
    margin: 0;
}


/* Expediente */

#presentacionExpediente{
    background-color: #7726FF;
    height: 8em;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
}

.expedienteText{
    color: #FFCD46;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;
    font-size: 16px;
}

.expediente-title{
    margin: 0;
    color: white;
    margin: 0.2em 0 0 0;
    font-weight: 650;
    font-size: 22px;
    text-transform: uppercase;
}


/* Buscar */

#temaTitle{
    font-size: 22px; 
    margin-block-start: 5px;
    margin-block-end: 5px;
    margin-left: 40px;
    margin-right: 20px;
}

#titleContBuscar{
    display: flex;
    align-items: center;
    gap: 1em;
    padding: 1em;
}

#searchTerm{
    padding: 0.2em 0.5em 0.2em 0.5em;
    font-size: 18px;
    background-color: #E6E6E6;
    width: fit-content;
    flex-basis: auto;
}

#searchTerm p{
    margin: 0;
    font-weight: 650;
    width: fit-content;
}

.resultItem{
    display: flex;
    gap: 1em;
    padding: 0.5em;
    font-size: 14px;
}

.resultTitle{
    font-size: 11px;
    font-weight: bold;
    padding: 1em;
}

.zones{
    width: 50%;
}

#lupaBuscar{
    position: absolute;
    top: 5px;
    left: 5px;
    width: 15px;
    height: 15px;
}

#infoBuscarTema{
    box-sizing: border-box;
    padding-left: 25%;
}

#infoBuscarTema>.seccionesHijasSerie{
    flex-basis: 50%;
}



/* Nav */


.mobile-nav{
    display: none;
    position:relative;
    width: fit-content;
    margin-left: auto;
    margin-right: -30px;
    font-size: 16px;
    cursor: pointer;
    height: 20px;    
    transition: all 0.2s cubic-bezier(0.000, 0.000, 0.580, 1.000);
    transition-property:  background, color, height;
}


.mobile-nav-icon{
    position: relative;
    display: block;
    width: 1.8em;
    height: 2px;
    margin: auto;
    background: black;     
}
.mobile-nav-icon:before,
.mobile-nav-icon:after{
    content: "";
    position: absolute;
    top: -0.5em; 
    display: block;
    width: 100%;
    height: 100%;
    background: black;
    transition: var(--transition-default);
    will-change: top, transform;
}
.mobile-nav-icon:after{
    top: 0.5em;
}
.mobile-nav.active .mobile-nav-icon{
    background: transparent;
}
.mobile-nav.active .mobile-nav-icon:before{
    top: 0;
    transform: rotate(45deg);
}
.mobile-nav.active .mobile-nav-icon:after{
    top: 0;
    transform: rotate(-45deg);
}




#mobile-menu{
    display: none;
    /*display: flex;
    height:0;*/
    flex-direction: column;
    gap: 1em;
    background-color: #F2F2F2;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 1em;
    /*transition: height 1s;*/
}

.mobile-menu-item{
    cursor: pointer;
    width: fit-content;
}


@media (hover:hover){
.navItem:hover{
    cursor: pointer;
    color: white;
}
.partTitleC:hover{
    cursor: pointer;
}
.gridElementsInicio:hover .overlay,
.gridElementsInicioG:hover .overlay{
    pointer-events: none;
}
.closePop:hover{
    cursor:pointer;
}
}


@media (min-height: 1500px){

    .pUCA{
        padding-left: 25%;
        padding-right: 20%;
    }

    .pUCI{
        padding-left: 35%;
        padding-right: 30%;
    }

    .leftArrow{
        width: 25px;
        height: 25px;
    }

    .leftArrow img{
        width: 25px;
        height: 25px;
    }

    .rightArrow img{
        width: 25px;
        height: 25px;
    }

    .rightArrow{
        width: 25px;
        height: 25px;
    }

}






@media (max-width: 1100px) {
    #itemCont{
        grid-template-columns: 1fr 1fr;
    }

    #exploraMain{
        padding: 1em;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    #mainContent1{
        width: 100%;
    }

    #mainContent{
        width: 85%;
        margin-right: 2em;
        font-size: 130;
    }

    #gridInicio{
        display: flex;
        flex-wrap: wrap;
        gap: 1em;
    }

    #partes{
        width: 40%;
        margin: 1em;
        padding: 1em;
    }

    #cont34{
        width: 70% !important;
    }

    .zones{
    width: 70%;
    }

    #buscador{
        width: 18em;
    }

#grayBar div{
        width: 60%;
    }

    #name{
    width: 90px;
    margin-left: 1.5em;
    color: white;
}

.mobile-nav{
    display: flex;
}

.navItem{
    display: none;
}

#infoBuscarTema{
    box-sizing: border-box;
    padding-left: 10%;
}

#infoBuscarTema>.seccionesHijasSerie{
    flex-basis: 60%;
}
    
}

@media (max-width: 600px) {
    #itemCont{
        grid-template-columns: 1fr;
    }
    #partes{
        width: 85%;
        margin: 2em;
        padding: 1em;
    }
    #subWhiteCont{
        height: 80px !important;
    }

    #gridInicio *{
        flex-basis: 100% !important;
    }
    #cont34{
        width: 90% !important;
    }
    .overlay div{
        display: none;
    }


    .zones{
    width: 90%;
    }

    #buscador{
        width: 14em;
    }

    


.info{
    flex-direction: column;
    gap: 1em;
}

.seccionesHijas{
    flex-basis: 100%;
}

.infoColeccion{
    flex-basis: 100%;
    margin-top: 1em;
}

.infoSerie{
    flex-direction: column;
    gap: 1em;
}

.randomPart{
    grid-template-columns: 100%;
}


#grayBar div{
    width: 80%;
}

#name{
    width: 60px;
    margin-left: 1em;
    color: white;
}

.popUpContent{
    padding-top: 15%;
}

.pUCA{
        padding-left: 13%;
        padding-right: 13%;
    }

    .pUCI{
        padding-left: 15%;
        padding-right: 15%;
    }

    .leftArrow{
        width: 25px;
        height: 25px;
    }

    .leftArrow img{
        width: 25px;
        height: 25px;
    }

    .rightArrow img{
        width: 25px;
        height: 25px;
    }

    .rightArrow{
        width: 25px;
        height: 25px;
    }

    .upBarPop{
        box-sizing: border-box;
    }

    .infoContMulti{
        padding-left: 15%;
        padding-right: 15%;
        padding-top: 15%;
    }

    #typeBar{
        width: 96vw;
    }


    #temaTitle{
    margin-left: 20px;
    margin-right: 10px;
}

#infoBuscarTema{
    box-sizing: border-box;
    padding-left: 10%;
}

#infoBuscarTema>.seccionesHijasSerie{
    flex-basis: 80%;
}



}






