/* ESTILOS GENERALES */

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    background: #141414;
}

h1, h2, h3, h4, h5, h6{
    font-family: "Raleway", sans-serif;
    color: #fff;
}

p, a, span{
    font-family: 'Noto Sans', sans-serif;
    font-size: 15px;
    color: #fff;
}

.main{
    width: 95%;
    max-width: 390px;
    margin: 20px auto;
    /* background: #fff; */
    /* padding: 8px; */
    /* border-radius: 9px; */
    overflow: hidden;
}

/* ENCABEZADO */

header{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.profile{
    background: url(images-contact/tiomothy-swope-zwe--GYIZtc-unsplash.jpg);
    background-size: cover;
    border-radius: 9px;
}

.profile_content{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 8px 0px;
    background: linear-gradient(0deg, #141414 28%, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));
}

.profile_content img{
    margin-bottom: 10px;
    width: 40%;
}

.profile_content h1, .profile_content h3{
    color: #fff;
}

.profile_content h1{
    font-size: 24px;
}

.profile_content h3{
    font-size: 16px;
    font-weight: 400;
}

.profile-info{
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #141414;
    padding: 20px 10px;
}

.profile-info p{
    text-align: center;
    font-weight: 400;
}

.social-icons{
    padding: 40px 0;
}

.social-icons i{
    margin: 0 10px;

}

.button{
    display: inline-block;
    width: 95%;
    padding: 10px 0;
    
    background: #1c81f4;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
}

.button.green{
    margin-top: 10px;
    background: #25d366;
}

/* CONTENIDO */

.wrap h2{
    padding: 0 5px;
    margin-bottom: 15px;
}

/* CARDS 1 */

.cards{
    display: flex;
    flex-wrap: nowrap;
    overflow-x: scroll;
    padding: 0 0 15px;
    margin-bottom: 30px;
}

.cards::-webkit-scrollbar{
    height: 10px;
    background: none;
}

.cards::-webkit-scrollbar-thumb{
    background: #444444;
    border-radius: 20px;
}

.card{
    flex: 1 0 auto;
    width: 165px;
    /* height: 340px; */
    padding: 10px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #34353a;
    margin-left: 10px;
}

.card img{
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.card h3{
    margin-bottom: 5px;
}

.card p{
    font-size: 13px;
}

.card .text-important{
    background: #4a4b50;
    padding: 6px 8px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}

/* CARDS 2 */
.cards2{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px 10px;
    padding: 0 10px;
}

.card2{
    background: #fff;
    width: 100%;
    padding: 50%;
    border-radius: 10px;
}

.card2:nth-child(1){
    background: #1f98cf url(images-contact/pacifico2.jpg);
    background-size: 90%;
    background-repeat: no-repeat;
    background-position: center;
}

.card2:nth-child(2){
    background: url(images-contact/rimac.png);
    background-size: cover;
}

.card2:nth-child(3){
    background: #fff url(images-contact/lapositiva.png);
    background-size: 90%;
    background-repeat: no-repeat;
    background-position: center;
}

.card2:nth-child(4){
    background: url(images-contact/mapfre.png);
    background-size: cover;
}

.card2:nth-child(5){
    background: #fff url(images-contact/qualitas.png);
    background-size: cover;
}

.card2:nth-child(6){
    background: url(images-contact/liberty.png);
    background-size: cover;
}

.card2:nth-child(7){
    background: #fff url(images-contact/sanitas.jpg);
    background-size: contain;
}

.card2:nth-child(8){
    background: #fff url(images-contact/crecer.png);
    background-size: 80%;
    background-repeat: no-repeat;
    background-position: center;
}

.fa-qrcode{
    font-size: 22px;
}

.qr-body{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
}

.qr-body img{
    width: 80%;
    max-width: 250px;
}

.qr-body__inactive{
    display: none;
}

.qr-body__active{
    display: flex;
}

#closeQr{
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 30px;
}
