@media only screen and (min-width: 600px) {
    #preguntas_popup{
        & .formulario_preguntas{
            width: auto !important;
            aspect-ratio: 1 !important;
        }
    }
}

.boton_preguntas{
    width: 95%;
    border: 1px solid black;
    border-radius: 15px;
    background-color: white;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: left;
    cursor: pointer;
    animation: pulsar 5s ease 0s infinite normal forwards;
    & i{
        margin-right: 15px;
        color: rgb(92, 92, 92);
        font-size: 32px;
    }
    & h2{
        font-size: 1.5rem;
    }
}

@keyframes pulsar {
	0% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.1);
	}

	100% {
		transform: scale(1);
	}
}

#preguntas_popup{
    background-color: transparent;
    position: fixed;
    transition: background-color 0.3s ease-in-out;
    width: 100vw;
    height: 100vh;
    box-sizing: border-box;
    justify-items: center;
    top:0;
    left:0;
    z-index: 9999;
    & .formulario_preguntas{
        position: absolute;
        padding: 1rem;
        box-sizing: border-box;
        transform: translateY(100%);
        bottom: -0.5rem;
        width: calc(100% - 2rem);
        height: 50%;
        background-color: white;
        border-radius: 5px;
        transition: bottom 0.3s;
        & h2{
            margin-top: 0;
            font-weight: 400;
        }
        & form{
            display: flex;
            flex-direction: column;
            gap: 6px;
            & label{
                font-size: 1.2rem;
            }
            & input, textarea{
                font-size: 20px;
                outline: none;
                border: solid 1px rgb(146, 146, 146);
                border-radius: 5px;
                padding: 0.5rem;
            }
            & button{
                border: none;
                background-color: rgb(17, 141, 13);
                color: white;
                padding: 0.5rem;
                position: absolute;
                bottom: 1rem;
                border-radius: 5px;
                font-size: 15px;
                font-weight: bold;
                width: calc(100% - 2rem);
            }
        }
    }

    & .cerrar{
        position: absolute;
        top: 1rem;
        right: 1rem;
        border: none;
        background-color: transparent;
        font-size: 32px;
    }
}

#preguntas_popup.cerrar{
    background-color: rgba(0, 0, 0, 0);
    pointer-events: none;
}

#preguntas_popup.abrir{
    background-color: rgba(0, 0, 0, 0.274);
    & .formulario_preguntas{
        bottom: calc(50% + 64px);
        opacity: 1;
    }
}