:root {
    --primario: #6834a6;
    --blanco: #FFF;
    --negro: #000000;
    --fuentePrincipal: 'Poppins', sans-serif;
}
html {
    font-size: 62.5%;
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}
body {
    font-family: var(--fuentePrincipal);
    font-size: 1.6rem;
    line-height: 1.8;
}
h1, h2, h3 {
    font-weight: 900;
    margin: 2rem 0;
}
h1 {
    font-size: 5rem;
}
h2 {
    font-size: 4.6rem;
}
h3 {
    font-size: 3rem;
}
a {
    text-decoration: none;
}
img {
    max-width: 100%;
    display: block;
}
[class$="__contenedor"] {
    max-width: 120rem;
    margin: 0 auto;
    width: 90%;
}
[class$="__heading"] {
    text-align: center;
    margin-bottom: 5rem;
}

/* Header */
.header {
    background-image: url(../img/header_bg.svg);
    background-repeat: no-repeat;
    background-position: top right;
    background-size: 10rem;
    padding: 5rem 0;
}
@media (min-width: 768px) {
    .header {
        background-size: 58rem;
    }
}
@media (min-width: 992px) {
    .header {
        background-size: 70rem;
    }
}
@media (min-width: 1440px) {
    .header {
        background-size: 100rem;
    }
}
@media (min-width: 2000px) {
    .header {
        background-size: 135rem;
    }
}
@media (min-width: 768px) {
    .header__barra {
        display: flex;
        justify-content: space-between;
    }
}
.header__logo {
    width: 15rem;
    margin: 0 auto 3rem auto;
}
@media (min-width: 768px) {
    .header__logo {
        margin: 0;
    }
    .header__grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
        align-items: center;
    }
}
.header__heading {
    font-size: 3rem;
}
@media (min-width: 768px) {
    .header__heading {
        text-align: left;
        font-size: 5rem;
        line-height: 1.2;
    }
    .header__imagen {
        max-width: 30rem;
        margin: 0 auto;
    }
}
.header__boton {
    background-color: var(--primario);
    border-radius: 1rem;
    display: block;
    padding: 1rem;
    text-align: center;
    color: var(--blanco);
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .header__boton {
        transition: background-color .5s ease; 
        padding: 1rem 3rem;
        display: inline-block;
    }
    .header__boton:hover {
    background-color: #44226d;
    }
}
.navegacion {
    display: flex;
    flex-direction: column;
    align-items: center;
}
@media (min-width: 768px) {
    .navegacion {
        flex-direction: row;
        align-items: flex-start;
    }
}
.navegacion__link {
    color: var(--primario);
}
.navegacion__link--blanco {
    color: var(--blanco);
}
@media (min-width: 768px) {
    .navegacion__link {
        color: var(--blanco);
        padding: 1rem 2rem;
        border-radius: 1rem;
        transition: background-color .5s ease; 
    }
    .navegacion__link:hover {
        background-color: #44226d;
    }
}

/* Main */
.nucleus {
    margin-top: 3rem;
}
.nucleus__grid {
    display: flex;
    flex-direction: column-reverse;
    row-gap: 5rem;
}
@media (min-width: 768px) {
    .nucleus__grid {
        display: grid;
        grid-template-columns: 1fr 2fr;
        align-items: center;
    }
}
@media (min-width: 768px) {
    .nucleus__imagen {
        width: 30rem;
        margin: 0 auto;
    }
}
.listado__elemento {
    background-color: var(--blanco);
    padding: 2rem;
    box-shadow: 0px 0px 15px 3px rgb(0 0 0 / .18);
    border-radius: 1rem;
    transition: transform .3s;
    margin-bottom: 3rem;
}
.listado__elemento:last-of-type {
    margin-bottom: 0;
}
@media (min-width: 768px) {
    .listado__elemento:hover {
        transform: scale(1.08);
    }
}
@media (min-width: 768px) {
    .listado__elemento--2col {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 2rem;
    }
}
.listado__heading {
    color: var(--primario);
    font-size: 3rem;
    margin: 0;
    line-height: 1.2;
}
.listado__numero {
    font-size: 6rem;
    color: var(--primario);
    margin: 0;
    font-weight: 900;
    text-align: center;
}
@media (min-width: 768px) {
    .listado__numero {
        font-size: 4rem;
        flex-basis: 20rem;
        text-align: right;
    }
}
.listado__texto {
    color: var(--negro);
    margin: 0;
}

/* Seguridad */
.seguridad {
    background-color: var(--primario);
    padding: 20rem 0;
    position: relative;
    margin: 10rem 0;
    overflow: hidden;
    /* clip-path: polygon(0 0, 100% 10%, 100% 100%, 0 90%); */
}
.seguridad::before,
.seguridad::after {
    background-color: var(--blanco);
    content: '';
    height: 20rem;
    width: 110%;
    position: absolute;
}
.seguridad::before {
    top: -10rem;
    left: 0;
    transform: rotate(3deg);
}
.seguridad::after {
    bottom: -10rem;
    left: -2rem;
    transform: rotate(-3deg);
}
.seguridad__heading {
    color: var(--blanco);
}
@media (min-width: 768px) {
    .seguridad__grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 5rem;
        align-items: center;
    }
}


/* Comisiones */
.comisiones__grid {
    display: grid;
    row-gap: 4rem;
}
@media (min-width: 768px) {
    .comisiones__grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 5rem;
        align-items: flex-end;
    }
}
@media (min-width: 998px) {
    .comisiones__grid {
        align-items: center;
    }
}
.comisiones__texto {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 700;
}
@media (min-width: 768px) {
    .comisiones__texto {
        text-align: left;
    }
}

/* Testimoniales */
.testimoniales {
    background-color: var(--primario);
    padding: 5rem 0;
}
.testimoniales__heading {
    margin: 0;
    color: var(--blanco);
}
.testimoniales__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .testimoniales__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.testimonial {
    background-color: var(--blanco);
    box-shadow: 0px 0px 15px 3px rgb(0 0 0 / .18);
    padding: 2rem;
    border-radius: 1rem;
    position: relative;
}
@media (min-width: 768px) {
    .testimonial {
        transition: transform .5s ease;
    }
    .testimonial:hover {
        transform: scale(1.05);
    }
}
.testimonial__texto {
    padding-left: 4rem;
}
.testimonial__texto::before {
    content: '';
    background-image: url(../img/comilla.png);
    background-size: 3rem;
    background-repeat: no-repeat;
    background-position: center center;
    width: 3rem;
    height: 3rem;
    position: absolute;
    top: 2.5rem;
    left: 2rem;
}
.testimonial__autor {
    color: var(--primario);
    font-weight: 700;
    text-align: end;
}

/* Footer */
.footer {
    background-color: #44226d;
    padding: 3rem 0;
}
@media (min-width: 768px) {
    .footer__grid {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}
.footer__logo {
    width: 20rem;
    margin: 0 auto 4rem auto;
}
@media (min-width: 768px) {
    .footer__logo {
        margin: 0;
    }
}
