@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");
body {
    background-color: rgba(198, 180, 158, 0.1);
}
/* Header */
header {
    width: 100%;
    height: 40vw;
    display: flex;
    align-items: center;
    justify-content: end;
    background-image: url("../img/contabilidad-finanzas.webp");
    font-family: "Montserrat", sans-serif;
    background-size: 75% 100%;
    background-position: right;
    background-repeat: no-repeat;
    position: relative;
    overflow: visible;
}
.azulheader {
    position: absolute;
    width: 39%;
    z-index: 2;
    left: 0;
}
.textheader {
    width: 100%;
    height: 90%;
    float: right;
    text-align: right;
    color: white;
}
.titleH {
    background-color: rgba(0, 0, 0, 0.3);
}
.textheader h2 {
    font-size: 5vw;
    margin: 0;
    padding-right: 3vw;
}
.textheader p {
    font-size: 2vw;
    font-weight: 500;
    margin: 0 0 0 0;
    padding-right: 3vw;
    padding-left: 38vw;
    line-height: 1.9;
}
.azulheader img {
    width: 100%;
    height: auto;
}

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

/*Primera Seccion */
.PrimeraSeccion {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
}
.PrimeraSeccion h2 {
    width: 90%;
    margin: 0 auto;
    font-family: "Montserrat", sans-serif;
    font-weight: 100;
    font-size: 5vw;
    text-align: right;
}
#TxtTitulo {
    width: 90%;
    margin: 20px auto 0 auto;
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    font-size: 2vw;
    text-align: center;
    color: white;
}
.PrimeraSeccion::after {
    content: "";
    display: block;
    clear: both;
}
.Pensiones1 {
    width: 80%;
    float: right;
    margin: 80px 0;
    border-top-left-radius: 12vw;
    border-bottom-left-radius: 12vw;
    padding: 30px 4vw;
    left: 11.8%;
    position: relative;
    display: flex;
    justify-content: center;
    color: white;
    height: 15vw;
    font-family: "Montserrat", sans-serif;
}
.Pensiones1 img {
    position: absolute;
    height: 120%;
    top: -10%;
    right: 0;
}
.ContenidoPS p {
    margin: 0;
    width: 90%;
    font-size: 2vw;
    word-break: break-word;
    font-weight: 200;
}
.ContenidoPS h3 {
    margin: 0 0 10px 0;
    font-size: 2.5vw;
    font-weight: 100;
}
.ContenidoPS {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 82%;
    margin-right: 18%;
    word-break: break-all;
    text-align: center;
}
.Pensiones1 {
    background-color: rgba(14, 60, 137);
}

/*Segunda Sección */
.SegundaSeccion {
    width: 100%;
    height: 40vw;
    background-color: rgba(14, 60, 137);
    position: relative;
    font-family: "Montserrat", sans-serif;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 10vw;
}
.SegundaSeccion img {
    position: absolute;
    width: 35%;
    height: auto;
    top: -7%;
    left: 0;
}
.ContenidoSS {
    width: 60%;
    color: white;
}
.ContenidoSS p {
    font-size: 1.8vw;
    font-weight: 200;
    margin: 0;
}
.ContenidoSS h2 {
    font-size: 3.5vw;
    font-weight: 100;
    margin: 0 0 15px 0;
}

/* Tercera Seccion */
.TerceraSeccion {
    width: 100%;
    height: auto;
    margin-top: 8vw;
    font-family: "Montserrat", sans-serif;
}
.TerceraSeccion::after {
    content: "";
    display: block;
    clear: both;
}
.caja2,
.caja1 {
    width: 85%;
    height: 12vw;
    margin: 80px 0;
    display: flex;
    align-items: center;
    position: relative;
}
.caja1 img,
.caja2 img {
    width: 22%;
    height: auto;
    position: absolute;
}
.caja1 img {
    right: 0px;
}
.caja2 img {
    left: 0px;
    transform: rotateY(180deg);
}
.caja1 {
    float: right;
    text-align: right;
}
.caja2 {
    float: left;
    text-align: left;
    border: 9px rgba(14, 60, 137) solid;
    border-left: none;
    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;
    color: white;
}
.ContenidoTS1 {
    width: 70%;
    margin-right: 25%;
    margin-left: 5%;
}
.ContenidoTS2 {
    width: 70%;
    color: white;
    margin-right: 5%;
    margin-left: 25%;
}
.ContenidoTS1 h3,
.ContenidoTS2 h3 {
    font-size: 2vw;
    font-weight: 100;
    margin-top: 1vw;
    margin-bottom: 0;
}
.ContenidoTS1 p,
.ContenidoTS2 p {
    font-size: 1.4vw;
    font-weight: 200;
    margin-top: 0;
}

@media screen and (min-width: 2000px) {
    main {
        margin: 100px 0;
    }
}

@media screen and (max-width: 600px) {
    header {
        height: 120vw;
        background-size: 200% 100%;
        background-position: center;
    }
    .titleH {
        margin-top: 70%;
    }
    .titleH h2 {
        font-size: 10vw;
    }
    .textheader p {
        font-size: 5vw;
        font-weight: 500;
        padding-left: 0;
    }
    .azulheader {
        width: 40%;
        top: -20%;
    }

    main {
        margin: 0;
        padding-top: 70px;
        overflow-x: hidden;
        overflow-y: hidden;
    }
    /*Primera Seccion */
    #TxtTitulo {
        width: 80%;
        margin: auto;
        font-size: 4vw;
        text-align: center;
    }
    .Pensiones1 {
        width: 90%;
        margin-top: 250px;
        margin-bottom: 20px;
        border-top-left-radius: 35vw;
        border-bottom-left-radius: 35vw;
        height: 60vw;
        left: 1.5%;
    }
    .ContenidoPS {
        width: 100%;
        margin-right: 0;
    }
    .ContenidoPS p {
        font-size: 5vw;
        font-weight: 300;
    }
    .ContenidoPS h3 {
        margin: 0 0 5px 0;
        font-size: 6vw;
    }
    .Pensiones1 img {
        height: auto;
        top: -95%;
        width: 50%;
    }

    /*Segunda Seccion */
    .SegundaSeccion {
        width: 100%;
        height: 140vw;
        margin-top: 20vw;
    }
    .SegundaSeccion img {
        width: 60%;
    }
    .ContenidoSS {
        width: 100%;
        height: 50%;
        margin-left: 0;
        margin-top: 80%;
    }
    .ContenidoSS h2 {
        font-size: 7vw;
        text-align: center;
        width: 100%;
        margin-bottom: 1vw;
    }
    .ContenidoSS p {
        font-size: 3.5vw;
        margin-left: 5%;
        width: 90%;
        text-align: center;
        margin-top: 1vw;
        font-weight: 400;
    }

    /*Tercera Seccion */
    .TerceraSeccion {
        margin-top: 30px;
    }

    .caja2,
    .caja1 {
        width: 90%;
        height: 60vw;
        margin-top: 290px;
    }
    .caja1 {
        border-top-left-radius: 32vw;
        border-bottom-left-radius: 32vw;
    }
    .caja2 {
        border-left: none;
        border-top-right-radius: 32vw;
        border-bottom-right-radius: 32vw;
    }
    .caja1 img,
    .caja2 img {
        width: 50%;
        height: auto;
        top: -110%;
    }
    .caja2 img {
        left: 0;
    }
    .ContenidoTS1 h3,
    .ContenidoTS2 h3 {
        font-size: 4.2vw;
        margin-bottom: 2vw;
    }
    .ContenidoTS1 p,
    .ContenidoTS2 p {
        font-size: 4vw;
        margin: 0;
    }
    .ContenidoTS1 {
        width: 100%;
        margin-right: 0;
        margin-left: 0;
    }
    .ContenidoTS2 {
        width: 100%;
        margin-right: 0;
        margin-left: 0;
    }
}
