/* MODAL GLOSARIO */
.modalGlosario {
    width: 90%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 15px;
}

.modalGlosario .flex {
    display: flex;
    gap: 1rem;
}

.modalGlosario input {
    padding: 0.7rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9em;
}

.modalGlosario p {
    font-size: 0.9rem;
    color: #777;
    margin: 0.4rem 0 0.2rem;
}

.buttonGlosario {
    cursor: pointer;
    border: none;
    font-weight: 600;
}

.btnGlosario {
    display: inline-block;
    padding: 0.8rem 1.4rem;
    font-weight: 700;
    background-color: black;
    color: white;
    border-radius: 5px;
    text-align: center;
    font-size: 1em;
}

.btn-openGlosario {
    position: absolute;
    bottom: 150px;
}

.btn-closeGlosario {
    padding: 0.1rem 0.3rem;
    background: #9D1F2E;
    border-radius: 7px;
}

.overlayGlosario {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 21;
}

.modalGlosario {
    z-index: 22;
}

.disabledGlosario {
    filter: grayscale(100%);
}

.btnsModalGlosario {}

.modalTitleGlosario {
    color: #9D1F2E;
    font-weight: 700;
    font-size: 1.2rem;
}

.topBoxGlosario {
    margin-bottom: .5rem;
}

.modalLinkGlosario {
    color: #9D1F2E;
    font-weight: 700;
    font-size: 14px;
}

.documentsLinkGlosario {
    display: flex;
    align-items: center;
    padding-top: 1rem;
}

.headerModalGlosario {
    width: 100%;
    background-color: #9D1F2E;
    margin: 1rem 0;
    border-radius: 5px;
    padding: 0 .8rem;
}

.headerModalTitleGlosario {
    color: white;
    font-size: 1.2rem;
}

.modalBoxGlosario {
    padding: 2.5rem 6rem;
}

/*menos de 768px*/
@media (max-width: 767px) {
    .modalBoxGlosario {
        padding: 1rem 1.5rem;
    }
}

.closeBoxGlosario {
    background-image: url("/img/headerModal.png");
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    background-size: cover;
    background-repeat: no-repeat;
    padding: .2rem .4rem .2rem;
    color: white;
    display: flex;
    flex-direction: row-reverse;
    background-position: top right;
}

.modalImageContainerGlosario {
    display: none;
}

@media (min-width:768px) {
    .modalImageContainerGlosario {
        display: block;
    }

    .modalGlosario {
        width: 70%;
        height: 60%;
    }

    .btnsModalGlosario {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* scrollbar de la modal */
.detailBoxGlosario {
    height: 90%;
    overflow-y: scroll;
}

/*menos de 768px*/
@media (max-width: 767px) {
    .detailBoxGlosario {
        height: 500px;
        overflow-y: scroll;
    }
}

.detailBoxGlosario::-webkit-scrollbar {
    width: 5px;
}

.detailBoxGlosario::-webkit-scrollbar-thumb {
    max-height: 5px;
    background: #a0362e;
    border-radius: 5px;
}

/* .detailBoxGlosario::-webkit-scrollbar-thumb {
  height: 5px;
  background: red;
} */

/* Handle on hover */
.detailBoxGlosario::-webkit-scrollbar-thumb:hover {
    background-color: rgb(127 29 29);
}