*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Poppins', sans-serif;
}

.banner img{
    width: 100%;
}
/* ======================================
   WORK
====================================== */

.work{
    padding: 80px 20px;
    overflow: hidden;
}

.container{
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================
   HEADER
========================== */

.work__header{
    position: relative;
    z-index: 2;
}

.work__header span{
    display: block;
    font-size: 45px;
    font-weight: 700;
    color: #005e9c;
}

.work__header h2{
    font-size: 70px;
    line-height: 1;
    font-weight: 700;
    color: #0a84df;
}

.line{
    width: 110px;
    height: 10px;
    background: #0a84df;
    margin: 25px 0;
}

.work__header p{
    font-size: 27px;
    color: #005e9c;
    font-weight: 700;
}

/* ==========================
   CONTENT
========================== */

.work__content{
    display:grid;
    grid-template-columns: 1fr 1fr;
    align-items:center;
    padding-top: 9rem;
    gap:0;
}

/* ==========================
   CAJA IZQUIERDA
========================== */

.work__box{
    position:relative;
    max-width:700px;
    margin-top:100px;
}

.bloque__gris{
    width: 100%;
    display: block;
}

.work__text{
    position: absolute;
    top: 50%;
    left: 47%;
    transform: translate(-50%, -50%);
    width: 76%;
    font-size: 18px;
    line-height: 1.6;
    color: #111;
}

/* ==========================
   IMAGEN DERECHA
========================== */

.work__image {
    position: relative;
    max-width: 560px;
    margin-left: -71px;
    margin-top: -267px;
    z-index: 2;
}

.work__image img{
    width: 100%;
    display: block;
}

/* ==========================
   DETALLES AZULES
========================== */

.detail{
    position: absolute;
}

.detail-top{
    width: 110px;
    height: 28px;

    top: 30px;
    right: -30px;
}

.detail-bottom{
    width: 110px;
    height: 28px;

    left: 20px;
    bottom: -100px;
}

/* ===================================
   CONTENEDOR
=================================== */
.join{
    position: relative;
    overflow: hidden;
    padding: 0 20px 0;
    background: #ffffff;
}

.join__container{
    max-width: 1300px;
    margin: auto;

    position: relative;

    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 5px;
}

/* ===================================
   IMAGEN
=================================== */

.join__image{
    flex: 1;

    display: flex;
    align-items: flex-end;
}

.join__image img{
    width: 100%;
    max-width: 520px;
    display: block;
    margin-bottom: -5px;
}

/* ===================================
   CONTENIDO
=================================== */

.join__content{
    flex: 1;
    max-width: 700px;
    padding-bottom: 80px;
    position: relative;
    text-align: right;
}

.join__content h2{
    font-size: 45px;
    line-height: 1.1;
    color: #005e9c;
    font-weight: 800;
    text-align: right;
    margin-bottom: 30px;
}

.join__content h2 span{
    display: block;
    font-weight: 600;
    color: #0b84df;
}

.join__content p{
    font-size: 22px;
    line-height: 1.8;
    color: #111;
    text-align: right;
    padding-top: 30px;
    margin-bottom: 45px;
}
.bloque__gris_completo{
    display: none;
}
/* ===================================
   BOTON
=================================== */

.join__button{
    width: fit-content;

    display: flex;
    align-items: center;
    gap: 14px;

    background: #005e9c;
    color: white;
    margin-left: auto;
    padding: 18px 34px;

    border-radius: 18px;

    text-decoration: none;
    font-size: 26px;
    font-weight: 700;

    transition: .3s ease;
}

.join__button:hover{
    transform: translateY(-3px);
}

.join__button i{
    font-size: 24px;
}

/* ===================================
   MAIL
=================================== */

.join__mail{
    display: inline-block;

    margin-top: 18px;

    font-size: 22px;
    color: #111;

    border-bottom: 5px solid #ddd;
    padding-bottom: 6px;
}

/* ===================================
   DECORACIONES
=================================== */

.join__detail{
    position: absolute;
    background: #0b84df;
}

.join__detail--top{
    width: 90px;
    height: 20px;

    top: 10px;
    left: 0;
}

.join__detail--middle{
    width: 90px;
    height: 20px;
    margin-left: -94px;
}

/* ======================================
   RESPONSIVE
====================================== */

@media(max-width:1200px){

    .work__image{
        width: 460px;
        top: 34px;
    }

    .work__box{
        width: 680px;
    }
    .banner img {
        height: 300px;
        object-fit: cover;
    }
}


@media(max-width:1100px){

    .join__content h2{
        font-size: 50px;
    }

    .join__content p{
        font-size: 20px;
    }

}

@media(max-width:1024px){
    .join__container {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    .join__image{
        order: 2;
    }
    .join__content{
        margin: auto;
    }
    .join__content h2{
        text-align: center;
    }
    .join__content p{
        text-align: center;
    }
    .join__button {
        width: auto;
        justify-content: center;
    }
    .join__detail--middle{
        display: none;
    }

    .work__image{
        display: none;
    }

    .work__content{
        display: flex;
        flex-direction: column;
        padding-top: 0;
        min-height: auto;
    }
    .detail-bottom{
        display: none;
    }
    .join__detail--top{
        display: none;
    }
    .line{
        display: none;
    }
    .work__header{
        text-align: center;
    }
    .bloque__gris {
        width: 100%;
        display: none;
    }
    .bloque__gris_completo {
        display: block;
        width: 100%;
    }

}

@media(max-width:992px){

    .work__box{
        width: 100%;
    }

    .work__header{
        text-align: center;
    }

    .line{
        margin-inline: auto;
    }

    .join{
        padding: 80px 20px 0;
    }

    .join__container{
        flex-direction: column;
        align-items: center;
    }

    .join__content{
        padding: 20px;
        max-width: 100%;
        text-align: center;
        margin-bottom: 30px;
    }

    .join__button{
        margin-inline: auto;
    }

    .join__mail{
        display: table;
        margin-inline: auto;
        margin-top: 18px;
    }

    .join__detail--middle{
        margin-inline: auto;
    }

    .join__image{
        justify-content: center;
    }

}

@media(max-width:768px){

    .work{
        padding: 70px 16px;
    }

    .work__header span{
        font-size: 36px;
    }

    .work__header h2{
        font-size: 52px;
    }

    .work__header p{
        font-size: 22px;
    }

    .work__text{
        width: 74%;
        font-size: 15px;
        line-height: 1.7;
    }

    .join{
        padding: 60px 16px 0;
    }

    .join__content h2{
        font-size: 40px;
    }

    .join__content p{
        font-size: 17px;
        line-height: 1.7;
    }

    .join__button{
        font-size: 18px;
        padding: 14px 24px;
    }

    .join__button i{
        font-size: 18px;
    }

    .join__mail{
        font-size: 18px;
    }

}

@media(max-width:576px){

    .work__text{
        font-size: 15px;
        line-height: 1.5;
    }

    .detail{
        width: 70px;
        height: 18px;
    }

    .join__content h2{
        font-size: 32px;
    }

    .join__image img{
        max-width: 380px;
    }
}

@media(max-width: 510px){
    .work__text{
        width: 90%;
    }
    .bloque__gris_completo{
        height: 400px;
    }
}

@media(max-width: 426px){
    .join__content{
        padding: 10px;
    }
    .join {
        padding: 10px 16px 0;
    }
}
