.referencias{
    font-size: 0.7em;
}


.libreria{
    margin-bottom: 50px;
}
.menu-buscador{
    width: 100%;
}


.formulario{
    width:100%;
    display: flex;

 
    justify-content: center;
}

.buscador{
    width: 70%;
    height: 40px;
    border-radius: 10px;
    text-align: center;
    font-size: 1em;
    margin-bottom: 15px;
    
}

.categoria{
    width: 100%;
    display: flex;
    margin: 0;
    padding: 0;
}

.item-libreria{
    list-style: none;
    padding: 10px;
}

.link-libreria{
    text-align: center;
    color:#9b9b9b;
    text-decoration: none;
    font-weight: bolder;
    font-size: 15px;
    padding: 0px;

}

.activo{
    color: black;
    border-bottom: 2px solid orange;
    
}


.link-libreria:hover{
    color: black;
    border-bottom: 2px solid orange;
}

/*---------estilos grid---------*/

.grid{
    position: relative;
    width: 95%;
    margin-left:  auto;
    margin-right: auto;
    transition: opacity 0,5s linear  1s;
    
}

.grid .imagenes-cargadas{
    
    opacity: 1;
}

.grid .item{
    position: absolute;
    display: block;
    padding: 0;
    margin: 10px;
    width: calc(25% - 20px);
}

.grid .item-contenido{
    position: relative;
}

.grid .item .img-libreria{
    width: 95%;
    object-fit:cover;
    cursor: pointer;
    vertical-align: top;
    margin-bottom: 5px;
    
    
}

/* -----------------overlay----------------*/


.overlay{
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.9);
    z-index: 200;
    display: none;
    align-items: center;
}

.informacion-libreria{
    width: 80%;
    background: white;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-around;
    
}

.imganes-cerrar{
    width: 70%;
    margin-bottom:  20px;
}


.img-mostrar{
    height: 300px;
    width: 200px;
}

.btn-cerrar{
    background: none;
    font-size: 30px;
    color:white;
    border: 0px;
    cursor: pointer;
    top: 10px;
    left: 20px;
    position: absolute;
}

.activos{
    display: flex;
}

.descripcion{
    margin-bottom: 20px;
    line-height: 20px;
    max-height: 300px;
    text-align: justify;
    overflow: hidden;
    margin-left: 20px;
    margin-right: 30px;
}

@media screen and (min-width:770px){


    .categoria{
        width: 65%;
        margin-left: auto;
        margin-right: auto;
    }

    .link-libreria{
        font-size: 19px;
    }

    .img-mostrar{
        height: 400px;
        width: 300px;
    }

    .descripcion{
        max-height: 380px;
    }

    .btn-cerrar{
        top: 80px;
        left: 60px;
    }

}
