.content {
    width: 100% !important;
}

.site-inner {
    padding: 0;
    width: 100%;
    max-width: unset;
    z-index: 1;
    position: relative;
}

.yellow-content main.content {
    background-color: var(--yellow);
}

body:not(.landing-page) .site-inner {
    margin-top: 162px;
}

body.servicios-page .site-inner {
    margin-top: 220px;
}

body.yellow-page:not(.landing-page) .site-inner {
    margin-top: 0;
    padding-top: 162px;
    background-color: var(--yellow);
}

.text-center {
    text-align: center;
}

.centered-column {
    max-width: 1280px;
    margin: auto;
    width: 100%;
    padding: 0 15px;
}

.landing-page main.content * {
    font-family: 'Lora', sans-serif !important;
}

.landing-page main.content .centered-column {
    padding: 3.5rem 15px 2.5rem;
    display: grid;
    gap: 23px;
}

main.content #confianza {
    font-family: 'Lora', sans-serif;
}

main.content #confianza {
    text-wrap: balance;
    font-size: 20px;
    font-weight: 400;
}

.cuentame-page #confianza {
    max-width: 800px;
    margin: auto;
    width: 100%;
}

main.content #mojoverde {
    margin: auto;
    width: fit-content !important;
}

main.content #mojoverde * {
    font-size: 28px;
    font-family: 'Lora', sans-serif;
}

main.content #mojoverde h2 {
    color: var(--black);
    font-weight: 700;
    margin: 0;
}

main.content #mojoverde em {
    color: var(--light-grey);
    font-weight: 300;
    margin-left: 1.8rem;
}

main.content #mojoverde p {
    color: var(--black);
}

/* Title section */

main.content:has(.title-section) {
    position: relative;
}

.title-section {
    background-color: var(--white);
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    text-align: left;
    display: grid;
    grid-template-rows: repeat(7, 1fr);
}

.yellow-page .title-section {
    background-color: var(--yellow);
}

.title-section .inner-container {
    grid-row: 2;
    display: grid;
    grid-template-columns: 220px 160px;
    gap: 1rem;
}

.title-section .bg-image.banner.title {
    width: 300px;
    height: 300px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    rotate: 270deg;
}

.title-section h1 {
    text-transform: uppercase;
    font-family: 'Lora', sans-serif;
    font-weight: 400;
    font-size: 40.5px;
    color: var(--title-color);
    text-align: center;
    transform: rotate(270deg);
    transform-origin: top;
    display: inline-block;
    width: fit-content;
    height: fit-content;
    margin: 0 !important;
}

.servicios-page .title-section,
.cuentame-page .title-section {
    background-color: transparent;
    grid-template-rows: repeat(5, 1fr);
}

.servicios-page .title-section {
    grid-template-rows: repeat(6, 1fr);
}


.cuentame-page .title-section h1 {
    transform: rotate(270deg) translate(40px, -60px);
    width: max-content;
}

.textos-page .title-section h1 {
    transform: rotate(270deg) translate(40px, -70px);
    width: max-content;
}

.yellow-page .title-section h1 {
    color: var(--title-section-yellow-bg);
}

section.posts {
    display: flex;
    flex-flow: column;
}

section.posts article.post {
    padding: 40px 15px;
}

section.posts article.post .inner-content {
    max-width: 980px;
    margin: auto;
}

section.posts article.post:nth-of-type(even) {
    background-color: var(--posts-bg);
}

section.posts article.post p, section.posts article.post strong, section.posts article.post h2 {
    font-family: 'Lora', sans-serif;
}

section.posts article.post h2 {
    color: var(--black);
    font-size: 35px;
    margin: 0 0 40px;
}

section.posts article.post p,
section.posts article.post strong {
    font-size: 22px;
    text-wrap: balance;
}

section.posts article.post h2,
section.posts article.post strong {
    font-weight: 700;
}

section.posts article.post p:has(>strong),
section.posts article.post strong {
    margin: 0;
}

.clientes-page section.list {
    padding: 0 15px 4rem;
}

section.list {
    display: grid;
    grid-template-columns: repeat(auto-fit, 277px);
    place-items: center;
    place-content: center;
    gap: 2rem 0rem;
    max-width: 1280px;
    margin: auto;
    width: 100%;
    padding: 0 15px;
}

section.list article.post {
    border-left: solid 1px var(--light-grey);
    width: 100%;
    height: 156px;
    place-content: center;
    place-items: center;
}

section.list article.post:nth-child(4n) {
    border-left: solid 1px var(--light-grey);
    border-right: solid 1px var(--light-grey);
}

section.list article.post img {
    max-width: 160px;
    height: auto;
    object-fit: contain;
    max-height: 120px;
    width: 100%;
}

.trabajos-page main.content .content {
    max-width: 985px;
    margin: auto;
    width: 100%;
    padding: 0 15px;
}

.trabajos-page main.content .content p:last-of-type {
    margin: 0;
    padding: 0 0 20px;
}

.trabajos-page main.content {
    min-height: 700px;
    display: grid;
    place-content: center;
    place-items: center;
}

.trabajos-page .title-section {
    grid-template-rows: repeat(3, 1fr);
}

.trabajos-page main.content h2 {
    font-family: 'Lora', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 40px;
}

.trabajos-page main.content strong,
.trabajos-page main.content p {
    font-family: 'Lora', sans-serif;
    font-size: 22px;
    font-weight: 400;
}

.trabajos-page main.content strong {
    font-weight: 700;
}

.cuentame-page .centered-column:has(#mojoverde) {
    padding: 5rem 15px;
    display: grid;
    gap: 2rem;
}

section.identidad .content, section.lenguaje .content {
    max-width: 1020px;
    margin: auto;
    width: 100%;
    padding: 130px 15px;
    /* text-wrap: balance; */
}

section.lenguaje .content {
    padding: 130px 15px 40px;
}

section.identidad .content *,
section.lenguaje .content * {
    font-family: 'Lora', sans-serif;
    font-weight: 400;
}

section.identidad .content strong,
section.lenguaje .content strong {
    font-weight: 700;
}

section.identidad .content p:last-of-type,
section.lenguaje .content p:last-of-type {
    margin: 0;
}

section.identidad {
    background-color: var(--posts-bg);
}

section.cuentame-text .content p {
    font-size: 22px;
    margin: 0 0 70px;
}

section.cuentame-text .content p:last-of-type,
section.cuentame-text .content p:first-of-type {
    font-size: 30px;
}

section.servicios .listado-servicios .listado-container:first-of-type {
    min-height: 490px;
}

section.servicios .listado-servicios .listado-container:last-of-type {
    min-height: 370px;
}

section.servicios .listado-servicios .listado-container:last-of-type, 
section.servicios .listado-servicios .listado-container:first-of-type {
    display: grid;
    place-content: start stretch;
}

section.servicios .listado-servicios .listado-container:first-of-type article,
section.servicios .listado-servicios .listado-container:first-of-type {
    background-color: var(--posts-bg);
}

section.servicios .listado-servicios .listado-container:first-of-type article:last-of-type {
    transform: translate(0px, 235px);
}

section.servicios .listado-servicios .listado-container:last-of-type article:last-of-type {
    transform: translate(0px, 125px);
}

section.servicios .listado-servicios .listado-container .listado {
    max-width: 1115px;
    margin: auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    place-items: center start;
    place-content: center stretch;
}

article.servicio.eventos .inner-container,
section.servicios .listado-servicios .listado-container article {
    padding: 60px 40px;
}

article.servicio.eventos h3,
section.servicios .listado-servicios .listado-container .listado h3 {
    font-family: 'Lora', sans-serif;
    font-weight: 700;
    font-size: 35px;
}

article.servicio.eventos ul,
section.servicios .listado-servicios .listado-container .listado ul {
    padding-left: .8em;
}

article.servicio.eventos ul li,
section.servicios .listado-servicios .listado-container .listado ul li {
    list-style-type: "· ";
    font-family: 'Lora', sans-serif;
    font-size: 22px;
    font-weight: 400;
}

article.servicio.eventos {
    background-color: var(--posts-bg);
    margin: 4rem 0 0;
}

article.servicio.eventos .inner-container {
    max-width: 1115px;
    margin: auto;
    width: 100%;
}

.puntos-fuertes {
    background-color: var(--posts-bg);
}

.maridamos h2, .puntos-fuertes h2 {
    margin: 0;
    font-family: 'Lora', sans-serif;
    font-size: 30px;
    font-weight: 700;
}

.maridamos h2 {
    padding: 1.5em 15px 40px;
}

.puntos-fuertes h2 {
    padding: 3rem 15px 0px !important;
}

.maridamos {
    max-width: 980px;
    width: 100%;
    margin: auto;
    padding: 0 15px 80px;
}

.maridamos h2 {
    font-size: 35px;
}

.maridamos p, .maridamos strong {
    font-size: 22px;
    font-family: 'Lora', sans-serif;
    font-weight: 400;
    margin: 0 0 40px;
}

.maridamos strong {
    font-weight: 700;
}

.maridamos p:nth-of-type(2) {
    font-size: 28px;
}

section.textos {
    max-width: 980px;
    margin: auto;
    width: 100%;
    padding: 2rem 20px;
}

.textos-page main.content * {
    font-family: 'Lora', sans-serif;
}

.textos-page main.content h3, .textos-page main.content h3 strong,
.textos-page main.content h2, .textos-page main.content h2 strong {
    font-weight: 700;
    font-size: 27px;
}

.textos-page main.content h3 {
    font-size: 22px;
}

.textos-page main.content p, .textos-page main.content strong, .textos-page main.content li {
    font-weight: 400;
    font-size: 16px;
}

.textos-page main.content strong {
    font-weight: 700;
}

.textos-page main.content ul {
    padding-left: 1.5rem;
    margin: 0 0 30px;
}

.textos-page main.content ul li {
    list-style-type: disc;
}

.textos-page main.content a {
    display: inline;
}

.site-inner:has(.wsp-container) {
    min-height: 800px;
    display: grid;
    width: 100%;
}

section.textos ul.wsp-pages-list {
    margin: 0 0 60px;
    padding: revert;
    display: flex;
    flex-flow: column;
}

section.textos ul.wsp-pages-list li {
    list-style-type: disc;
}

section.textos ul.wsp-pages-list li a {
    text-decoration: none;
    color: var(--black);
}

@media(max-width: 1780px) {
    .title-section .bg-image.banner.title {
        width: 200px;
        height: 200px;
    }

    .title-section .inner-container {
        grid-template-columns: 120px 160px;
    }
}

@media(max-width: 1580px) {
    .title-section .inner-container {
        grid-template-columns: 120px 150px;
    }
}

@media(max-width: 1540px) {

    .title-section {
        background-color: var(--white);
        position: relative;
        left: unset;
        top: unset;
        bottom: unset;
        text-align: center;
        display: grid;
        grid-template-rows: unset;
    }

    .trabajos-page main.content {
        min-height: unset;
        gap: 3rem;
    }

    .textos-page .title-section h1,
    .servicios-page .title-section,
    .cuentame-page .title-section,
    .trabajos-page .title-section {
        grid-template-rows: unset;
    }

    .title-section .inner-container {
        grid-row: unset;
        grid-template-columns: unset;
        gap: unset;
        display: grid;
        place-content: center;
        place-items: center;
    }

    .title-section .bg-image.banner.title {
        width: 125px;
        height: 125px;
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
        rotate: 270deg;
        margin: 0 0 0 20px;
    }

    .textos-page .title-section h1,
    .servicios-page .title-section h1,
    .cuentame-page .title-section h1,
    .title-section h1 {
        text-transform: uppercase;
        font-family: 'Lora', sans-serif;
        font-weight: 400;
        font-size: 40.5px;
        text-align: unset;
        transform: unset;
        display: inline-block;
        margin: 20px 0 0 !important;
        padding: 0 15px;
    }

    .maridamos {
        padding: 0 15px 40px;
    }

}

@media(max-width: 1138px) {

    section.list article.post:nth-child(4n) {
        border-left: solid 1px var(--light-grey);
        border-right: unset;
    }

    section.list article.post:nth-child(3n) {
        border-left: solid 1px var(--light-grey);
        border-right: solid 1px var(--light-grey);
    }
}

@media(max-width: 1000px) {
    section.identidad .content, section.lenguaje .content {
        text-wrap: balance;
    }

    section.identidad .content br, section.lenguaje .content br {
        display: none;
    }
}

@media(max-width: 890px) {
    section.servicios .listado-servicios .listado-container .listado {
        grid-template-columns: 1fr;
    }

    section.servicios .listado-servicios .listado-container article {
        transform: unset !important;
    }

    section.servicios .listado-servicios .listado-container article {
        padding: 35px 15px;
    }

    article.servicio.eventos {
        margin: 0;
    }

    article.servicio.eventos ul li, section.servicios .listado-servicios .listado-container .listado ul li {
        font-size: 18px;
    }

    section.servicios .listado-servicios .listado-container article {
        width: 100%;
    }

    section.servicios .listado-servicios .listado-container article:first-of-type {
        background-color: var(--posts-bg);
    }

    section.servicios .listado-servicios .listado-container article:last-of-type {
        background-color: var(--white);
    }

    article.servicio.eventos .inner-container {
        padding: 35px 15px;
    }
}

@media(max-width: 860px) {

    section.list article.post:nth-child(3n) {
        border-left: solid 1px var(--light-grey);
        border-right: unset;
    }

    section.list article.post:nth-child(2n) {
        border-left: solid 1px var(--light-grey);
        border-right: solid 1px var(--light-grey);
    }

    section.list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    section.identidad .content, section.lenguaje .content {
        padding: 71.5px 15px 45px;
    }
}

@media(max-width: 550px) {
    #mojoverde br:not(#mojoverde br:first-of-type) {
        display: none;
    }

    main.content #mojoverde * {
        font-size: 23px;
    }
}

@media(max-width: 400px) {
    section.list {
        grid-template-columns: 1fr;
    }
}