.img-background {
    position: relative;
    background-image: url('/img/csoc.png');
    background-size: cover;
    background-position: center;
    height: 90dvh;
    padding: 190px;

    color: white;
    overflow: hidden;
    box-sizing: border-box;
}

.img-background::before {
    content: "";
    position: absolute;
    inset: 0; 
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

#img2{
     position: relative;
    background-image: url('/img/img-soc1.png') !important;
    background-size: cover;
    background-position: center;
}

#img3{
     position: relative;
    background-image: url('/img/img-csoc-r.png') !important;
    background-size: cover;
    background-position: center;
}

.img-background h2,
.img-background p {
    position: relative;
    z-index: 2;
    
}

.img-background h2{
    font-size: 4rem;
    margin-top: 50px;
   
}

.img-background p {
    margin-top: 20px;
    font-size: 1.6rem;
}

.btn-csoc {
    --color: #000000;
    font-family: inherit;
    display: inline-block;
    padding: 0 20px;
    min-height: 3.4em;
    line-height: 2.5em;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border: 2px solid rgb(255, 255, 255);
    transition: color 0.5s;
    z-index: 1;
    font-size: 20px;
    border-radius: 50px;
    font-weight: 500;
    color: #fff;
    background-color: transparent;
    margin-top: 30px;
}

.btn-csoc:hover {
    background-color: #fff;
    color: #000000;
    transition: 600ms;
}

.btn-csoc:not(:hover) {
    background-color: transparent;
    color: #ffffff;
    transition: 600ms;
}

.img-cardcsoc {
    position: relative;
    background-image: url('/img/img-cardcsoc.jpg');
    background-size: cover;
    background-position: center;
    width: 30%;
    height: 65dvh;
    border-radius: 10px;
    overflow: hidden; 
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;

    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.img-cardcsoc.show {
    opacity: 1;
    transform: translateY(0);
}


.img-cardcsoc::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
    z-index: 1;
    border-radius: 10px;
}

.img-cardcsoc h3, 
.img-cardcsoc p {
    
    margin-bottom: 20px;
    width: 90%;
    z-index: 2; 
    color: white;
}

.img-cardcsoc h3{
    font-size: 2rem;
}

.sec-csoc{
    background-color: #F4F3F0;
    padding-left: 170px;
    padding-top: 40px;
}

.sec-csoc h2{
    font-size: 3rem;

}

.container-cards{
    display: flex; 
    justify-content: space-between; 
    width: 84%; 
    margin-top: 50px; 
    padding-bottom: 50px;
}

.h3-csoc{
    background-color: #F4F4F4; 
    padding-left: 170px; 
    font-size: 2.6rem; 
    padding-top: 40px;
}

.container-cards-csoc{
    background-color: #F4F4F4; 
    display: flex; 
    justify-content: center; 
    align-items: center;
}

.cards-container{
    display: flex; 
    justify-content: space-between;
    width: 82%; gap: 20px; 
    padding-top: 55px; 
    padding-bottom: 35px;
}

.container-metricas{
    display: flex; 
    align-items: center; 
    gap: 20px;
}

@media(max-width: 1366px){

    .img-background{
        padding: 80px;
        padding-top: 180px;
    }

    .img-background h2{
        margin-top: 0;
        font-size: 3rem;
    }

    .img-background p{
        font-size: 1.3rem;
    }
    .btn-csoc{
        font-size: 1.2rem;
    }

    .h3-csoc{
        padding-left: 80px;
    }

    .cards-container{
        width: 90%;
    }

    .sec-csoc{
        padding-left: 80px;
    }
}

@media(max-width: 425px){
    .sec-csoc{
        padding: 0;
    }

    .container-cards{
        flex-direction: column;
    }

    .img-background{
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .img-background h2{
        font-size: 2rem;
        text-align: center;
        width: 90% !important;
    }

    .img-background p{
        text-align: center;
        width: 90%;
        font-size: 1.1rem;
    }

    .btn-csoc{
        font-size: 1rem;
    }
    
    .h3-csoc{
        padding: 0;
        text-align: center;
        font-size: 2rem;
        padding-top: 20px;
    }

    .cards-container{
        flex-direction: column;
    }

    .img-cardcsoc{
        width: 100%;
    }

    .sec-csoc h2{
        text-align: center;
    }

    .container-cards{
        width: 100%;
    }
    
    .container-metricas{
        width: 100% !important;
        justify-content: center;
        flex-direction: column;
        text-align: center; 
    }

    .text-csoc{
        margin-bottom: 30px;
    }
}

@media(max-width: 375px){
    .img-background h2{
        font-size: 1.2rem;
        width: 100% !important;
    }
    
    .h3-csoc{
        font-size: 1.4rem;
    }

    .sec-csoc h2{
        font-size: 1.4rem;
    }
}