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

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 2.2rem;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

[class$="__contenedor"] {
    width: 90%;
    margin: 0 auto;
}

[class$="__heading"] {
    text-align: center;
    margin-bottom: 3rem;
}

.header {
    background-image: url(../img/header_bg.svg);
    background-repeat: no-repeat;
    background-position: top right;
    background-size: 10rem;
    padding: 3rem 0;
}

.header__logo {
    width: 10rem;
    margin: 0 auto 2rem auto;
}

.header__heading {
    font-size: 2.5rem;
}

.header__imagen {
    display: none;
}

.header__boton {
    background-color: var(--primario);
    display: block;
    padding: 1rem;
    text-align: center;
    color: var(--blanco);
    margin-bottom: 2rem;
}

.navegacion {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.navegacion__link {
    color: var(--primario);
}

.navegacion__link--blanco {
    color: var(--blanco);
}

.nucleus {
    margin-top: 2rem;
}

.nucleus__grid {
    display: flex;
    flex-direction: column-reverse;
}

.nucleus__imagen {
    display: flex;
    justify-content: center;
}

.grid__img {
    width: 25rem;
}

.listado__elemento {
    background-color: var(--blanco);
    box-shadow: 0px 0px 15px 3px rgb(0 0 0 / .15);
    padding: 2rem;
    margin-bottom: 3rem;
    transition: transform 300ms;

}

.listado__elemento:hover {
    transform: scale(1.1);
}

.listado__heading {
    font-size: 2.2rem;
    color: var(--primario);
    margin: 0;
}

.listado__numero {
    font-size: 4rem;
    margin: 0;
    font-weight: 900;
    color: var(--primario);
    text-align: center;

}

.listado__texto {
    margin: 0;
    font-size: 1.8rem;
}

.seguridad {
    background-color: var(--primario);
    padding: 10rem 0;
    position: relative;
    margin: 5rem 0;
    overflow: hidden;
}

/* CREACION DE DIAGONALES */
.seguridad::before,
.seguridad::after {
    background-color: var(--blanco);
    content: '';
    height: 20rem;
    width: 120%;
    position: absolute;
}

.seguridad::before {
    top: -10rem;
    left: 0;
    transform: rotate(3deg);
}

.seguridad::after {
    bottom: -10rem;
    left: -10px;
    transform: rotate(3deg);
}

.seguridad__heading {
    color: var(--blanco);
}

.comisiones__texto {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
}

.comisiones__imagen {
    display: flex;
    justify-content: center;
    align-items: center;
}

.comisiones__imagen img {
    max-width: 300px;
}



.testimoniales {
    background-color: var(--primario);
    padding: 5rem 0;
}

.testimoniales__heading {
    color: var(--blanco);
}

.testimoniales__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.testimonial {
    box-shadow: 0px 0px 15px 3px rgb(0 0 0 / .15);
    background-color: var(--blanco);
    padding: 2rem;
    position: relative;
}

.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;
    position: absolute;
    top: 3.5rem;
    left: 2rem;
}

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

.footer {
    background-color: #5A30A0;
    padding: 3rem 0;
}

.footer__logo {
    width: 15rem;
    margin: 0 auto 3rem auto;
}

/* Estilos para pantallas más grandes */
@media (min-width: 768px) {
    h1 {
        font-size: 5rem;
    }

    h2 {
        font-size: 4.6rem;
    }

    h3 {
        font-size: 3rem;
    }

    .header {
        background-size: 50rem;
    }

    .header__barra {
        display: flex;
        justify-content: space-between;
    }

    .header__logo {
        margin: 0;
    }

    .header__grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
        align-items: center;
    }

    .header__heading {
        text-align: left;
        font-size: 5rem;
        line-height: 1.2;
    }

    .header__grafico {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .header__imagen {
        width: 30rem;
        display: block;
    }


    .header__boton {
        padding: 1rem 3rem;
        display: inline-block;
    }

    .navegacion {
        flex-direction: row;
        align-items: flex-start;
        gap: 2rem;
        justify-content: end;
    }

    .navegacion__link {
        color: var(--blanco);
    }

    .nucleus__grid {
        display: grid;
        grid-template-columns: 1fr 2fr;
        column-gap: 5rem;
        align-items: center;
    }


    .listado__elemento {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .listado__numero {

        text-align: right;
        font-size: 4rem;
    }

    .listado__elemento--2col {
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        gap: 2rem;
    }


    .seguridad__grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 5rem;
        align-items: center;
    }

    .comisiones__grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 5rem;

    }

    .comisiones__imagen img {
        max-width: 550px;
    }

    .comisiones__texto {
        text-align: left;
    }

    .testimoniales__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__grid {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .footer__logo {
        margin: 0;
    }
}

@media (min-width: 1280px) {
    .header {
        background-size: 110rem;
    }
}