/* ESTILOS GENERALES */

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

html,body {
    overflow-x: hidden;
    scroll-behavior: auto;
    font-family: 'Quicksand', sans-serif;
    background-color: rgb(244, 244, 244);
    font-size: 62.5%;
}

.container {
    position: relative;
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 20px;
}


/* LOADER */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, gray, white, gray);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Imagen sobre la barra */
.loader-img img {
    width: 100px;
}

/* Barra de fondo */
.progress-bar {
    width: 10%;
    height: 2px;
    background: transparent;
    border-radius: 5px;
    overflow: hidden;
}

/* Barra que se llena */
.progress-fill {
    width: 100%;
    /* Asegura que ocupe todo el ancho de la barra */
    height: 100%;
    --c: no-repeat linear-gradient(red 0 0);
    background: var(--c), var(--c), #c5c5c5;
    background-size: 60% 100%;
    animation: l16 3s infinite;
}

@keyframes l16 {
    0% {
        background-position: -150% 0, -150% 0
    }

    66% {
        background-position: 250% 0, -150% 0
    }

    100% {
        background-position: 250% 0, 250% 0
    }
}

.type1-h1 {
    color: #27314F;
    font-size: 55px;
    font-weight: 300;
    font-family: 'Quicksand', sans-serif !important;
}

.type1-h1-bold {
    color: #27314F;
    font-size: 80px;
    font-weight: 700;
    font-family: 'Quicksand', sans-serif !important;
}

.type2-h1 {
    color: #27314F;
    font-size: 25px;
    font-weight: 750;
    font-family: 'Quicksand', sans-serif !important;
    -webkit-text-stroke-color: #CB0404;
    stroke: #CB0404;
}

.type3-h1 {
    color: #27314F;
    font-size: 15px;
    font-weight: 650;
    -webkit-text-stroke-color: #CB0404;
    stroke: #CB0404;
    font-family: 'lovelace', sans-serif !important;
}

.type4-h1 {
    color: #27314F;
    font-size: 15px;
    font-weight: 650;
    -webkit-text-stroke-color: #CB0404;
    stroke: #CB0404;
    font-family: 'Quicksand', sans-serif !important;
}


.btn-design1 {
    padding: 8px 16px;
    background-color: #CB0404;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    width: auto;
    font-size: 14px;
    font-weight: 100;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.btn-design1:hover {
    color: white;
    background-color: #990000;
    transition: background-color 0.3s ease;
}

.btn-design2 {
    padding: 8px 16px;
    color: #CB0404;
    background-color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    width: auto;
    font-size: 14px;
    font-weight: 1000;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.btn-design2:hover {
    background-color: #8a0000;
    color: white;
    transition: background-color 0.3s ease;
}

.btn {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    color: #fff;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.375rem;
    transition: color 0.15s ease-in-out,
        background-color 0.15s ease-in-out,
        border-color 0.15s ease-in-out,
        box-shadow 0.15s ease-in-out;
}

.btn-primary {
    color: #fff;
    background-color: #CB0404;
    margin-top: 10px;
}

.btn-primary:hover {
    background-color: #fff;
    color: #CB0404;
}

/* ANIMACIONES */
.titulo,
.titulor,
.titulol {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease;
    will-change: transform, opacity;
}


.item {
    animation: aparecer 0.8s ease forwards;
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flechas-levitando {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.flecha {
    width: 16px;
    height: 16px;
    border: solid #171c1e;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    animation: levitar 1.5s infinite ease-in-out;
    opacity: 0.8;
}

.flecha:nth-child(2) {
    animation-delay: 0.2s;
}

.flecha:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes levitar {

    0%,
    100% {
        transform: translateY(0) rotate(45deg);
        opacity: 0.6;
    }

    50% {
        transform: translateY(8px) rotate(45deg);
        opacity: 1;
    }
}

@media(max-width:1366px) {
    .container {
        width: 100%;
        max-width: 1000px;
        margin: 0 auto;
        padding: 0 20px;
        position: relative;
    }

    .type1-h1 {
        font-size: 40px;
    }

    .type1-h1-bold {
        font-size: 65px;
    }

    .type2-h1 {
        font-size: 25px;
    }

    .type3-h1 {
        font-size: 15px;
    }

    .type4-h1 {
        font-size: 15px;
    }

}


@media (max-width: 768px) {
    .progress-bar {
        width: 30%;
    }

    .type1-h1 {
        font-size: 2rem;
    }

    .type1-h1-bold {
        font-size: 2rem;
    }

}