@media only screen and (max-width:500px) {


    body {
        margin: 0%;
        background-image: url(img/bg3.png);
        background-size: fill;
        background-attachment: fixed;
        background-position: center center;
        background-repeat: no-repeat;
    }

    .btn_abr {
        display: block;
        align-items: center;
        float: right;

    }

    .btn_crdo {
        display: block;
        float: right;
    }

    .btn_abrir {
        display: block;
        position: relative;
        top: 25px;
        border-color: transparent;
        background-color: transparent;

    }

    .btn_abrir i {
        font-size: 40px;
    }

    .btn_cerrar {
        display: block;
        position: relative;
        width: 80px;
        height: 80px;
        background-color: #36aa08;
        border-color: transparent;
        border-radius: 50px;
    }

    .modal {
        width: 90vw;
        height: auto;
        background-image: url(img/bgmodal.png);
        background-size: fill;
        background-attachment: fixed;
        background-position: center center;
        background-repeat: no-repeat;
        border-color: transparent;
    }


    .modal::backdrop {
        background-color: rgba(11, 11, 11, 0.411);
    }

    .header_hm {
        display: inline;
    }

    #logo_hm {
        width: 100px;
    }

    .lista_hm {
        display: flex;
        justify-content: center;
        position: relative;
        top: 150px;
        width: 100%;


    }

    .hm_element {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    #hm_element1,
    #hm_element2 {
        text-decoration: none;
        color: black;
    }

    #hm_element1:active,
    #hm_element2:active {
        background-color: #36aa08;
        transform: translateY(4px);
    }

    ul li {
        padding: 20px;
    }

    li {
        list-style: none;
        font-family: Garamond regular;
        font-size: 30px;
        text-align: center;
    }

    footer {
        display: inline-block;
        position: fixed;
        bottom: 0;
        text-align: center;
        width: 100%;
    }

    .socialfooter {
        text-align: center;
        padding: 20px;

    }

    .socialfooter i {
        font-size: 40px;
        color: #0D8409;
        padding-inline: 10px;


    }


    .title {
        text-align: center;
        padding-top: 10px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    p {
        font-size: 16px;
        padding: 30px;
        line-height: 1.25;
    }

    .footer2 {
        font-size: 12px;
        padding: 16px;
    }


}