﻿/*@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');*/
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300;400;500;600;700&display=swap');

:root {
    --blue: 210, 52%, 32%;
    --light-blue: 207, 50%, 46%;
    --white-blue: 194, 50%, 93%;
    --yellow: 39, 62%, 55%;
    --light-yellow: 40, 99%, 71%;
    --dark-yellow: 39, 60%, 33%;
    --gray: 0, 0%, 93%;
    font-size: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow: hidden;
    background-color: snow;
    font-family: 'Roboto', sans-serif;
    accent-color: hsl(var(--light-blue));
}

*, *:before, *:after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

button, h1, h2, h3, h4, h5, input, select, textarea {
    font-family: 'Roboto', sans-serif;
}

textarea {
    resize: none;
}

input[type=checkbox] {
    transform: scale(1.5);
}

.btn {
    background-color: transparent;
    border: none;
    padding: 0.5em 1em;
    text-decoration: none;
}

a, a:hover {
    text-decoration: none;
}

.blue {
    color: hsl(var(--light-blue));
}

.seccion {
    padding-block: 3rem;
}

.bg-gray {
    background-color: hsl(var(--gray));
}

.container {
    width: 90%;
    margin: auto;
}

.text-center {
    text-align: center;
}

p {
    font-weight: 300;
    margin-bottom: 16px;
    line-height: 1.5;
}

h1, h2, h3, h4, h5 {
    margin-bottom: 16px;
    font-weight: 400;
}

h1, .h1 {
    font-size: 2em;
}

h2, .h2 {
    font-size: 1.5em;
}

#loading {
    z-index: 9999;
    display: flex;
    position: fixed;
    inset: 0;
    justify-content: center;
    align-items: center;
    background-color: white;
    opacity: 1;
    transition: opacity 300ms;
}

    #loading.inactive {
        display: none;
    }

    #loading.hidden {
        opacity: 0;
    }

    #loading img {
        width: 200px;
    }

/********** BANNER **********/
.banner {
    height: 80vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
    position: relative;
    font-family: 'Roboto Mono', monospace;
}

    .banner h1 {
        color: white;
        font-size: 3em;
        font-weight: 600;
    }

    .banner h2 {
        color: white;
    }

.banner-content {
    background-color: rgba(0,0,0, 0.5);
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    align-items: flex-start;
    justify-content: center;
    padding: 60px;
}

.banner.no-overlay .banner-content {
    background-color: transparent;
}

.banner-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

    .banner-bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/******** ESTADÍSTICAS *********/
.estadisticas {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

    .estadisticas .estadisticas-item {
        display: flex;
        flex-direction: column;
        text-align: center;
        width: 225px
    }

        .estadisticas .estadisticas-item .numero, .estadisticas .estadisticas-item .numero > * {
            color: hsl(var(--light-blue));
            font-size: 2.5rem;
            font-weight: 400;
            margin: 0;
            overflow: hidden;
        }

        .estadisticas .estadisticas-item .desc {
            font-size: 0.75rem;
        }

.numero .digit {
    display: inline-block;
    transition: transform 1000ms;
}

    .numero .digit.slideup {
        transform: translateY(-100px);
    }

    .numero .digit.hidedown {
        visibility: hidden;
        transform: translateY(100px);
    }

    .numero .digit.show {
        visibility: visible;
        transform: translateY(0);
    }

/****** LISTA *******/
.list-item {
    display: flex;
    gap: 1rem;
}

    .list-item .list-content {
        flex: 1;
    }

        .list-item .list-content .list-heading {
            font-weight: bold;
            margin: 0;
        }

    .list-item .list-number .number {
        background-color: hsl(var(--blue));
        font-weight: bolder;
        color: white;
        width: 45px;
        height: 45px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

#typewriter {
    position: relative;
    border-right: 2px solid rgba(255,255,255,.75);
    white-space: nowrap;
    overflow: hidden;
    animation: blinkTextCursor 500ms steps(44) infinite normal;
    padding-right: 1px;
    height: 2em;
}

#typewriter > * {
    margin: 0;
}

@keyframes blinkTextCursor {
    from {
        border-right-color: rgba(255,255,255,.75);
    }

    to {
        border-right-color: transparent;
    }
}


@media only screen and (max-width: 668px) {
    :root {
        font-size: 20px;
    }

    .banner-content {
        padding: 30px;
    }
}
