/* ===== Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

@font-face {
    font-family: "Open Sauce Bold";
    font-style: bold;
    font-weight: 700;
    src: url('../../fonts/openSauce/OpenSauceOne-Bold.ttf');
}

@font-face {
    font-family: "Open Sauce Medium";
    font-style: normal;
    src: url('../../fonts/openSauce/OpenSauceOne-Medium.ttf');
}

@font-face {
    font-family: "Open Sauce Regular";
    font-style: normal;
    src: url('../../fonts/openSauce/OpenSauceOne-Regular.ttf');
}

@font-face {
    font-family: "AktivGrotesk";
    font-style: Medium;
    font-weight: 500;
    src: url('../../fonts/ensamble/AktivGrotesk-Medium.otf');
}

@font-face {
    font-family: "EllographCF";
    font-style: Bold;
    font-weight: 700;
    src: url('../../fonts/ensamble/EllographCF-DemiBold.ttf');
}


:root{
    --blanco: white;
    --negro: black;
    
    --text-color-tema-1: #000000;
    --text-color-tema0: #fff;
    --text-color-tema1: #778BEB;
    --text-color-tema2: #616579;
    --clamp-text-0: clamp(5rem, 10vw + 1rem, 9rem);
    --clamp-text-1: clamp(0.8rem, 3vw + 0.85rem, 1.5rem);
    --clamp-text-2: clamp(0.6rem, 2vw + 0.65rem, 1.2rem);
    --clamp-header-01: clamp(2.5rem, 3vw + 1rem, 4rem);
    --clamp-header-0: clamp(2rem, 2vw + 1rem, 3rem);
    --clamp-header-1: clamp(1.8rem, 2vw + 0.8rem, 2.5rem);

    --tema-color1: #778BEB;
    --tema-color2: #787FF6;
    --tema-color3: #222325;
    --tema-color4: #0C111B;

    --gradient-1: #778BEB;
    --gradient-2: #A6B1FF;
    --gradient-3: #E0E4FF;
    --text-primary: #4C5C9A;
    --text-secondary: #6E7FCE;
    --background: #F0F4FF;
    --primary-button: #6A7DE0;
    --primary-button-hover: #5E71D1;
    --cloud-white: #FFFFFF;
    --navbar-height: 72px;
}



/* ===== Etiquetas ==== */

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4{
    font-family: 'Open Sauce Bold';
}

p, input, ul{
    font-family: 'Open Sauce Regular';
}

a{
    text-decoration: none;
    color: var(--text-color-tema1);
}

body, html{
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
    scroll-snap-stop: always;
}

/* ==== Clases ==== */

.btn{
    border: none;
    outline: none;
    padding: 0.5rem 1rem;
    background-color: transparent;
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: var(--clamp-text-2);
    transition: background-color .5s ease-in, color .5s ease-in;
    cursor: pointer;

    &.btn-cuadrado-purpura{
        border: var(--tema-color1) 2px solid;
        color: var(--tema-color1);
        width: 100%;
        display: inline;

        &:hover{
            background-color: var(--tema-color1);
            color: var(--blanco);
        }
    }

    &.btn-cuadrado-blanco{
        border: var(--blanco) 2px solid;
        color: var(--blanco);
        width: 100%;

        &:hover{
            background-color: var(--tema-color1);
            color: var(--blanco);
        }
    }

    &.solid-round{
        border-radius: 0.5rem;
        background-color: var(--tema-color1);
        color: var(--text-color-tema0);

        &:hover{
            font-weight: 600;
        }
    }
}

.link{
    text-decoration: none;
    color: var(--text-color-tema0);
    transition: color .3s ease;

    &:hover{
        color: var(--text-color-tema1);
    }
}

.link-blanco-under{
    color: var(--blanco);
    text-decoration: underline;
}

.lista-flex{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    flex-wrap: nowrap;  
    gap: 2rem;
    width: 100%;

    .lista-flex__item{
        width: 100%;
        display: flex;
        gap: 2rem;
        justify-content: space-between;
        align-items: center;

        div:nth-child(1){
            width: 20%;

            img, i{
                width: 100%;
                height: 100%;

                display: flex;
                justify-content: center;
                align-items: center;
                font-size: var(--clamp-text-0);

                object-fit: contain;
                object-position: center center;
            }
        }

        div:nth-child(2){
            width: 70%;
            p{
                font-size: var(--clamp-text-2);
            }
            h3{
                margin: 0 0 1rem;
            }
        }

        @media (width > 785px) {
            gap: 3rem;
            justify-content: center;

            div:nth-child(2){
                width: 50%;
            }
        }
    }
}

.bold-purpura{
    color: var(--text-color-tema1);
    font-weight: 600;
}

.titulo-cuadrado{
    font-family: "Space Mono", monospace;
    text-align: center;
    padding: 1rem 2rem;
    margin:0 auto 1rem;
    text-transform: uppercase;
    width: min(100%, 550px);
    background-color: transparent;

    &.c-blanco{
        color: var(--text-color-tema0);
        border: var(--text-color-tema0) 2px solid;
    }

    &.c-negro{
        color: var(--text-color-tema-1);
        border: var(--text-color-tema-1) 2px solid;
    }

    &.c-tema1{
        color: var(--tema-color1);
        border: var(--tema-color1) 2px solid;
    }
}

.section-default{
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;

    &.c-tema1{
        background-color: var(--tema-color1);
    }

    &.colum-450-align-strech{
        @media (width < 450px){
            flex-direction: column;
            align-items: stretch;
        }
    }

    &.center{
        justify-content: center;
    }

    .section-default__content{
        height: 100%;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;

        &.centrado{
            justify-content: center;
        }
        
        &.centrado-izquierda{
            justify-content: flex-start;
            flex-direction: row;
        }

        &.centrado-derecha{
            justify-content: flex-end;
            flex-direction: row;
        }
        
        & > img{
            width: 80%;
            height: 80%;
            object-fit: contain;
            display: block;
        }

        &.pdt-1{
            padding-top: 1rem;
        }

        &.pdt-2{
            padding-top: 2rem;
        }

        &.pdt-5{
            padding-top: 5rem;
        }

        &.pdb-1{
            padding-bottom: 1rem;
        }

        &.pdb-2{
            padding-bottom: 2rem;
        }

        &.flex-1{
            flex-grow: 1;
        }

        &.flex-2{
            flex-grow: 2;
        }

        &.flex-5{
            flex-grow: 5;
        }

        &.maxw50{
            max-width: 50%;
        }

        
        &.maxw45{
            max-width: 45%;
        }

        &.maxw40{
            max-width: 40%;
        }

        &.wid1280{
            width: min(90vw, 1280px);
            flex: none;
        }
    }
}

.text{
    font-size: var(--clamp-text-2);

    &.c-tema1{
        color: var(--tema-color1);
    }

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

    &.a-justify{
        text-align: justify;
    }
}

.header{
    font-size: var(--clamp-header-1);
    margin: 1rem 0;
    padding: .5rem;

    &.w100{
        width: 100%;
    }

    &.fd-tema1{
        background-color: var(--tema-color1);
        color: var(--blanco);
    }

    &.center{
        text-align: center;
    }

    &.c-tema1{
        color: var(--tema-color1);
    }

}

.img-fondo{
    padding: 1.5rem;

    display: flex;
    justify-content: center;
    align-items: center;

    img{
        display: block;
        width: 100%;
        object-fit: fill;
        object-position: center;
    }

    &.red-10{
        border-radius: 10px;
    }

    &.asp-16-9{
        img{
            aspect-ratio: 16/9;
        }
    }

    &.asp-4-3{
        img{
            aspect-ratio: 4/3;
        }
    }

    &.asp-3-2{
        img{
            aspect-ratio: 3/2;
        }
    }

    &.asp-21-9{
        img{
            aspect-ratio: 21/9;
        }
    }

    &.c-tema2{
        background-color: var(--tema-color2);
    }
}