﻿.fadeIn_animation {
    animation: 1.5s fadeIn;
}

@keyframes fadeIn {
    0% {
/*        transform: translateY(5%);*/
        opacity: 0;
    }

    100% {
/*        transform: translateY(0%);*/
        opacity: 1;
    }
}

@keyframes fadeInUp {
    0% {
        transform: translateY(5%);
        opacity: 0;
    }

    100% {
        transform: translateY(0%);
        opacity: 1;
    }
}

.fadeInUp_animation {
    animation: 1.5s fadeInUp;
}

.fadeInUp_animation3 {
    animation: 5s fadeInUp;
}

/*- - - - - - - - - - - - - - - -- - -  */

/* HTML: <div class="loader"></div> */
.loader {
    width: 20px;
    padding: 2px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--color-400);
    --_m: conic-gradient(#0000 10%,#000), linear-gradient(#000 0 0) content-box;
    -webkit-mask: var(--_m);
    mask: var(--_m);
    -webkit-mask-composite: source-out;
    mask-composite: subtract;
    animation: l3 1s infinite linear;
}

@keyframes l3 {
    to {
        transform: rotate(1turn)
    }
}

/*- - - - - - - - - - - - - - - -- - -  */


.animation_btn {
    --offset: 3px;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.animation_btn::before {
    content: '';
    background: conic-gradient(transparent 270deg, white, transparent);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    aspect-ratio: 1;
    width: 100%;
    animation: rotate 2s linear infinite;
    z-index: 1; /* Debe ser más bajo que el botón */
}

.animation_btn::after {
    content: '';
    background: inherit;
    border-radius: inherit;
    position: absolute;
    inset: var(--offset);
    height: calc(100% - 2 * var(--offset));
    width: calc(100% - 2 * var(--offset));
    z-index: 2; /* Debe ser más bajo que el botón */
}

.animation_btn button {
    color: white; /* Color blanco para el texto */
    background: transparent;
    font-size: 1.5rem;
    position: relative; /* Cambia a relative para que el z-index funcione */
    z-index: 3; /* Sólo asegúrate de que sea más alto que los pseudoelementos */
    padding: 1.5rem;
    border: none;
    cursor: pointer;
}

.animation_btn p {
    z-index: 3;
    display: flex;
    position: relative;
}

.animation_btn {
    z-index: 4;
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) scale(1.4) rotate(0turn);
    }

    to {
        transform: translate(-50%, -50%) scale(1.4) rotate(1turn);
    }
}