:root {
    --padding-bdialog: 16px;
    --margin-modalbody: 16px 0;

    @media(min-width: 1920px) {  
        --padding-bdialog: 24px;

    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    margin: 340px auto 0;
    border: 1px solid #888;
    width: 47%;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    animation: animatetop 0.4s;
    padding: var(--padding-bdialog);
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    border-radius: 15px;
    background: #FFF;

    @media(min-width: 786px) and (max-width: 1199px) {
        margin: 320px auto 0;
        width: 80%;
    }

    @media(max-width: 785px) {
        margin: 230px auto 0;
        width: 80%;
        max-width: 360px;
    }

    .modal-header {
        margin: 0;
        display: flex;
        height: 29px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        color: #212322;
        font-feature-settings: 'liga' off, 'clig' off;
        font-family: Roboto;
        font-style: normal;
        line-height: normal;

        #modalTitle {
            margin: 0;
            font-size: var(--fontsize-section-title);
            font-weight: 600;
            font-family: 'Roboto Condensed';

            @media(max-width: 785px) {
                color: #212322;
                font-feature-settings: 'liga' off, 'clig' off;
                font-size: 18px;
                font-style: normal;
                font-weight: 600;
                line-height: normal;
            }
        }
    }
}

@keyframes animatetop {
    from {
        top: -300px;
        opacity: 0;
    }

    to {
        top: 0;
        opacity: 1;
    }
}

.modal-body {
    margin: 16px 0;

    @media(max-width: 785px) {
        color: #000;
        font-feature-settings: 'liga' off, 'clig' off;
        font-family: Roboto;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
    }

    .cat-list {
        font-family: 'Roboto';
    }
}

.modal-footer {

    @media(max-width: 785px) {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
}

/* El botón de cierre (x) */
.close-btn {
    height: 24px;
    width: 24px;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

p {
    margin: 0;
}
