: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;
}

/** Global **/

[class$="__contenedor"] { /** todo lo que termine con __contenedor llevara la clase **/
    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 0rem;
}
@media (min-width: 768px) {
    .header{
        background-size: 55rem;
    }
}
@media (min-width: 992px) {
    .header{
        background-size: 60rem;
    }
}
@media (min-width: 1280px) {
    .header{
        background-size: 110rem;
    }
}
@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);
        align-items: center;
        gap: 4rem;
    }
}
.header__heading{
    font-size: 3rem;
    font-weight: 400;
}
.header__span{
    font-weight: 900;
}
@media (min-width: 768px) {
    .header__heading{
        font-size: 6rem;
        text-align: unset;
        font-weight: 700;
        line-height: 1.2;
    }
}
.header__boton{
    background-color: var(--primario);
    color: var(--blanco);
    padding: 1rem;
    text-align: center;
    display: block;
    margin-bottom: 4rem;
}
@media (min-width: 768px) {
    .header__boton{
        padding: 2rem 3rem;
        display: inline-block;
    }
}
@media (min-width: 768px) {
    .header__imagen{
        max-width: 30rem;
        margin: 0 auto;
    }
}

/** Navegacion **/
.navegacion{
    display: flex;
    flex-direction: column;
    align-items: center;
}
@media (min-width: 768px) {
    .navegacion{
        flex-direction: row;
        align-items: flex-start;
        gap: 2rem;
    }
}
.navegacion__link{
    font-size: 2rem;
    color: var(--primario);
}
.navegacion__link--blanco {
    color: var(--blanco);
}
@media (min-width: 768px) {
    .navegacion__link{
        color: var(--blanco);
    }
}

/** Contenido main **/
.nucleus{
   margin-top: 3rem;
}
.nucleus__grid{
    display: flex;
    flex-direction: column-reverse;
}
@media (min-width: 768px) {
    .nucleus__grid{
        display: grid;
        grid-template-columns: 1fr 2fr;
        align-items: center;
        column-gap: 5rem;
    }
}
/**
.listado{

}
**/
.listado__elemento{
    background-color: var(--blanco);
    box-shadow: 0px 0px 15px 3px rgb(0 0 0 / .15);
    padding: 2rem;
    margin-bottom: 5rem;
    transition: transform .3s ease;
}
.listado__elemento:last-of-type{
    margin-bottom: 0rem;
}
.listado__elemento:hover{
    transform: scale(1.1);
}
.listado__heading{
    margin: 0;
    color: var(--primario);
    font-size: 3rem;
}
.listado__texto{
    margin: 0;
    font-size: 2rem;
}

@media (min-width: 768px) {
    .listado__elemento--2col {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 2rem;
    }
}
.listado__numero {
    margin: 0;
    font-size: 6rem;
    font-weight: 900;
    color: var(--primario);
    text-align: center;
}
@media (min-width: 768px) {
    .listado__numero {
        flex-basis: 20rem;
        font-size: 3rem;
        text-align: right;
    }
}


/** Seguridad **/
.seguridad{
    background-color: var(--primario);
    padding: 20rem 0rem;
    position: relative;
    margin: 10rem 0rem;
    overflow: hidden;
}
/* pasos para las diagonales*/
.seguridad::before,
.seguridad::after{
    background-color: var(--blanco);
    content: '';
    height: 20rem;
    width: 130%;
    position: absolute;
}
.seguridad::before {
    top: -10rem;
    left: 0;
    transform: rotate(3deg);
}
.seguridad::after {
    bottom: -10rem;
    left: 0;
    transform: rotate(3deg);
}

.seguridad__heading {
    color: var(--blanco);
}
@media (min-width: 768px) {
    .seguridad__grid{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 2rem;
        align-items: center;
    }
}

/** Comisiones **/
@media (min-width: 768px) {
    .comisiones__grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        align-items: flex-end;
        column-gap: 5rem;
    }
}
@media (min-width: 992px) {
    .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 0rem;
}
.testimoniales__heading {
    color: var(--blanco);
}

@media (min-width: 768px) {
    .testimoniales__grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 5rem;
    }
}
.testimonial {
    box-shadow: 0px 0px 15px 3px rgb(0 0 0 / .15);
    background-color: var(--blanco);
    padding: 2rem;
    margin-bottom: 5rem;
    position: relative;
}
.testimonial:last-of-type {
    margin-bottom: 0rem;
}
@media (min-width: 768px) {
    .testimonial {
        margin-bottom: 0rem;
    }
}
.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;
    width: 3rem;
    height: 3rem;
    display: block;
    position: absolute;
    top: 3rem;
    left: 2rem;

}
.testimonial__autor {
    color: var(--primario);
    text-align: right;
    font-weight: 700;
}


/** Footer **/
.footer {
    background-color: #5a30A0;
    padding: 3rem 0rem;
}
@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;
    }
}


