@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

body{
    background: #efefef;
}

/*:::Boton-Modal:::*/
.boton-modal{
    padding: 40px;
    background-color: #fff;
}

.boton-modal label{
    padding: 10px 15px;
    background-color: #5488a3;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 300ms ease;
}

.boton-modal label:hover{
    background-color: #185E83;
}
/*:::Fin Boton-Modal:::*/

/*:::Ventana Modal:::*/
#btn-modal{
    display: none;
}

.container-modal{
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(144, 148, 150, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

#btn-modal:checked ~ .container-modal{
    display: flex;
}

/* Modal */
.content-modal{
    width: 100%;
    max-width: 480px;
    background: transparent;
    border-radius: 4px;
    overflow: visible;
    position: relative;
    padding: 0;
}

/* Imagen principal */
.modal-imagen{
    width: 100%;
}

.modal-imagen img{
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Botón X como imagen */
.btn-cerrar-img{
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1000;
    cursor: pointer;
}

.btn-cerrar-img img{
    width: 24px;   /* Cambia este valor si la quieres más grande o más pequeña */
    height: 24px;
    display: block;
}

/* Cerrar al hacer clic fuera del modal */
.cerrar-modal{
    width:100%;
    height:100vh;
    position:absolute;
    top:0;
    left:0;
    z-index:-1;
}

@media screen and (max-width:800px){
    .content-modal{
        width:90%;
        max-width: 480px;
    }

    .btn-cerrar-img img{
        width: 20px;
        height: 20px;
    }
}::Fin Ventana Modal:::*/
