@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

nav {
    width: 100%;
    height: 10vw;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: fixed;
    margin: 0;
    padding: 0;
    top: 0;
    font-size: 2.5vw;
    background-color: white;
    z-index: 1;

    box-shadow: rgba(17, 17, 26, 0.1) 0px 1px 0px;
}

nav div {
    margin: 0px 0 0 150px;
    height: 100%;
    width: auto;
}
.menu,
.telefono {
    display: flex;
    align-items: center;
    justify-content: center;
}
.telefono p {
    margin-left: 1.5vw;
}
.telefono img {
    width: 4vw;
    height: auto;
}
.whatsap img {
    width: auto;
    height: 100%;
}

/* Header */
header {
    width: 100%;
    height: 40vw;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10vw;
    background-image: url(../img/Recurso\ 4.webp);
    background-size: 75% 100%;
    background-position: right;
    background-repeat: no-repeat;
    position: relative;
}
.azulheader {
    position: absolute;
    width: 39%;
    z-index: 2;
    left: 0;
}
.azulheader img {
    width: 100%;
    height: auto;
}

main {
    width: 100%;
    margin: 50px 0;
    height: auto;
}

.PrimeraSeccion {
    width: 100%;
    height: auto;
}
.PrimeraSeccion::after {
    content: "";
    display: block;
    clear: both;
}
.Pensiones,
.Seguros,
.Contabilidad {
    width: 80%;
    float: right;
    margin: 80px 0;
    border-top-left-radius: 6vw;
    border-bottom-left-radius: 6vw;
    padding: 30px 4vw;
    position: relative;
    display: flex;
    justify-content: center;
    color: white;
    height: 8vw;
    font-family: "Montserrat", sans-serif;
}
.Pensiones img,
.Seguros img,
.Contabilidad img {
    position: absolute;
    height: 150%;
    top: -25%;
    right: 0;
}
.ContenidoPS p {
    margin: 0;
    width: 90%;
    font-size: 1.5vw;
    word-break: break-word;
    font-weight: 200;
}
.ContenidoPS h3 {
    margin: 0 0 10px 0;
    font-size: 2.5vw;
    font-weight: 500;
}
.ContenidoPS {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    width: 80%;
    margin-right: 20%;
    word-break: break-all;
    text-align: right;
}
.Pensiones {
    background-color: rgb(231, 212, 180);
}
.Seguros {
    background-color: rgba(240, 157, 143);
}
.Contabilidad {
    background-color: rgba(14, 60, 137);
}

/* Segunda Seccion */

.SegundaSeccion {
    width: 100%;
    height: 40vw;
    position: relative;
    font-family: "Montserrat", sans-serif;
    background-color: rgba(250, 246, 243);
}
.SegundaSeccion img {
    position: absolute;
    width: 35%;
    height: auto;
    top: -7%;
    left: 0;
}
.ContenidoSS {
    width: 60%;
    margin-left: 40%;
    margin-top: 2vw;
    position: absolute;
}
.ContenidoSS h2 {
    font-size: 4vw;
    margin: 20px 0;
    color: rgba(13, 59, 136);
    font-weight: 600;
}
.ContenidoSS p {
    font-size: 1.8vw;
    font-weight: 200;
    line-height: 1.5;
    width: 95%;
    margin-right: 5%;
}

/* Tercera Seccion */
.TerceraSeccion {
    width: 100%;
    height: auto;
    margin-top: 70px;
    font-family: "Montserrat", sans-serif;
}
.TerceraSeccion::after {
    content: "";
    display: block;
    clear: both;
}
.caja1,
.caja2,
.caja3 {
    width: 80%;
    height: 12vw;
    margin: 40px 0;
    display: flex;
    align-items: center;
    position: relative;
}
.caja1 img,
.caja2 img,
.caja3 img {
    width: 22%;
    height: auto;
    position: absolute;
}
.caja1 img,
.caja3 img {
    right: 0px;
}
.caja2 img {
    left: -9px;
}
.caja1,
.caja3 {
    float: right;
    text-align: right;
}
.caja2 {
    float: left;
    text-align: left;
    border: 9px rgba(240, 157, 143) solid;
    padding: 2vw 3vw;
    border-top-right-radius: 10vw;
    border-bottom-right-radius: 10vw;
}
.caja1 {
    border: 9px rgba(14, 60, 137) solid;
    border-right: none;
    padding: 2vw 3vw;
    border-top-left-radius: 10vw;
    border-bottom-left-radius: 10vw;
}
.caja3 {
    border: 9px rgb(231, 212, 180) solid;
    border-right: none;
    padding: 2vw 3vw;
    border-top-left-radius: 10vw;
    border-bottom-left-radius: 10vw;
}
.ContenidoTS1 {
    width: 70%;

    margin-right: 25%;
    margin-left: 5%;
}
.ContenidoTS2 {
    width: 70%;

    margin-right: 5%;
    margin-left: 25%;
}
.ContenidoTS1 h3,
.ContenidoTS2 h3 {
    font-size: 2.5vw;
    font-weight: 600;
    margin: 0;
}
.caja1 h3 {
    color: rgba(14, 60, 137);
}
.caja2 h3 {
    color: rgba(240, 157, 143);
}
.caja3 h3 {
    color: rgb(231, 212, 180);
}
.ContenidoTS1 p,
.ContenidoTS2 p {
    font-size: 1.4vw;
    font-weight: 200;
}

/*footer*/
footer {
    width: 90%;
    height: auto;
    padding: 1px 5%;
    background-color: rgba(14, 60, 137);
    color: white;
    font-family: "Montserrat", sans-serif;
}
.titulo {
    width: 100%;
    text-align: center;
}
.titulo h2 {
    color: white;
    font-size: 5vw;
    margin-top: 2vw;
    margin-bottom: 0;
}
.informacion {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: left;
    align-items: center;
}
.informacion img {
    width: 3vw;
    height: auto;
}
.informacion p {
    margin-left: 1vw;
    font-size: 1.5vw;
}
#number {
    width: 50%;
}
#direccion {
    width: 40%;
}
#number div,
#direccion {
    display: flex;
    align-items: center;
    margin: 2vw 0;
}
.references {
    width: 100%;
    display: flex;
    align-items: center;
}
#DyR {
    width: 60%;
}
#redesS {
    width: 40%;
    display: flex;
    justify-content: center;
}
#redesS img {
    width: 2vw;
    height: 2.5vw;
    margin: 1.5vw;
}

@media screen and (max-width: 600px) {
    nav {
        height: 20vw;
    }
    nav div {
        margin: 0px 0 0 25px;
    }
    .telefono img {
        width: 6vw;
    }
    .telefono p {
        display: none;
    }
    .menu,
    .telefono {
        font-size: 3.5vw;
    }
    header {
        height: 70vw;
        background-size: 106% 100%;
        margin-top: 20vw;
    }
    .azulheader {
        width: 40%;
        top: -30%;
    }
    main {
        margin: 30px 0;
    }
    .Pensiones,
    .Seguros,
    .Contabilidad {
        width: 85%;
        margin: 40px 0;
        border-top-left-radius: 30vw;
        border-bottom-left-radius: 30vw;
        height: 25vw;
    }
    .ContenidoPS {
        width: 65%;
        margin-right: 35%;
    }
    .ContenidoPS p {
        font-size: 3vw;
        font-weight: 300;
    }
    .ContenidoPS h3 {
        margin: 0 0 5px 0;
        font-size: 4vw;
    }
    .Pensiones img,
    .Seguros img,
    .Contabilidad img {
        height: 110%;
        top: -5%;
    }

    .SegundaSeccion {
        width: 100%;
        height: 80vw;
        margin-top: 10vw;
    }
    .ContenidoSS {
        width: 100%;
        height: 100%;
        margin-left: 0;
        margin-top: 2vw;
    }
    .ContenidoSS h2 {
        font-size: 7vw;
        text-align: center;
        width: 40%;
        margin-left: 40%;
        margin-top: 10%;
    }
    .ContenidoSS p {
        font-size: 2.5vw;

        width: 80%;
        margin-right: 0;
        margin-left: 10%;
        text-align: center;
        margin-top: 16%;
    }

    .TerceraSeccion {
        margin-top: 30px;
    }
    .caja1,
    .caja2,
    .caja3 {
        width: 90%;
        height: 20vw;
        margin: 25px 0;
    }
    .caja2 {
        border-left: none;
        border-top-right-radius: 22vw;
        border-bottom-right-radius: 22vw;
    }
    .caja1,
    .caja3 {
        border-top-left-radius: 22vw;
        border-bottom-left-radius: 22vw;
    }
    .caja1 img,
    .caja2 img,
    .caja3 img {
        width: 32%;
    }
    .ContenidoTS1 h3,
    .ContenidoTS2 h3 {
        font-size: 4vw;
    }
    .ContenidoTS1 p,
    .ContenidoTS2 p {
        font-size: 2.2vw;
        margin: 0;
    }
    .ContenidoTS1 {
        width: 65%;
        margin-right: 30%;
        margin-left: 0;
    }
    .ContenidoTS2 {
        width: 65%;
        margin-right: 0;
        margin-left: 30%;
    }

    .titulo h2 {
        color: white;
        font-size: 7vw;
        margin-top: 5vw;
    }
    .informacion {
        flex-direction: column;
    }
    #number {
        width: 80%;
        margin: auto;
        display: flex;
        align-items: center;
        flex-direction: column;
    }
    #number div {
        margin: 0;
    }
    #direccion {
        width: 100%;
    }
    .informacion p {
        margin-left: 3vw;
        font-size: 4vw;
    }
    .informacion img {
        width: 5vw;
        height: auto;
    }
    .references {
        flex-direction: column-reverse;
    }
    #DyR {
        width: 100%;
        text-align: center;
        font-size: 2vw;
    }
    #redesS img {
        width: 8vw;
        height: 10vw;
        margin: 1.5vw;
    }
    #redesS {
        justify-content: space-evenly;
        width: 100%;
    }
}
