.test-block {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 10rem;
    margin-right: auto;
    margin-left: auto;
    background-color: red;
    width: 50%;
    margin-top: 40rem;
    color: white;
    text-align: center;
}

/* Animación de rotación */
.animated.rotate {
    animation: rotate 2s infinite linear;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Animación de aumento y reducción de escala */
.animated.scale {
    animation: scaleAnimation 7s infinite ease-in-out;
}

@keyframes scaleAnimation {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Animación de rebote */
.animated.bounce {
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-30px);
    }

    60% {
        transform: translateY(-15px);
    }
}

/* Animación de movimiento desde fuera de la pantalla (desplazamiento a la izquierda) */
.animated.slide-left {
    animation: slideInLeft 5s forwards;
    opacity: 0;
}

@keyframes slideInLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0%);
        opacity: 1;
    }
}

/* Animación de movimiento desde fuera de la pantalla (desplazamiento a la derecha) */
.animated.slide-right {
    animation: slideInRight 5s forwards;
    opacity: 0;
}

@keyframes slideInRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Animación de desvanecimiento y desplazamiento */
.animated.fade-slide {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlide 5s forwards;
}

@keyframes fadeInSlide {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación de sacudida */
.animated.shake {
    animation: shake 0.5s infinite;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}

/* Animación de pulsar */
.animated.pulse {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Animación de rotación 3D */
.animated.rotate-3d {
    animation: rotate3D 3s/*infinite linear*/;
}

@keyframes rotate3D {
    0% {
        transform: rotateY(0);
    }

    100% {
        transform: rotateY(360deg);
    }
}

/* Animación de 'pop' */
.animated.pop {
    animation: pop 0.5s forwards;
}

@keyframes pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Animación de deslizar desde abajo */
.animated.slide-up {
    transform: translateY(100%);
    opacity: 0;
    animation: slideUp 2s forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación de deslizar desde arriba */
.animated.slide-down {
    opacity: 0;
    transform: translateY(-100%);
    animation: slideDown 2s forwards;
    /* Cambia a slideDown */
}

@keyframes slideDown {

    /* Cambia a slideDown */
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación de cambio de color en gradiente */
.animated.gradient {
    background: linear-gradient(90deg, #ff007f, #ffb300);
    background-size: 200% 200%;
    animation: gradient-animation 3s ease infinite;
}

@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Animación de flotación suave */
.animated.float {
    animation: float 5s infinite ease-in-out;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(-5px, 3px);
    }

    50% {
        transform: translate(5px, -3px);
    }

    75% {
        transform: translate(-3px, -5px);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* Animación de aparecer */
.animated.appear {
    opacity: 0;
    animation: appear 1s forwards;
    /* Cambia a slideDown */
}

@keyframes appear {
    to {
        opacity: 1;
    }
}

/* Animación activada al hacer scroll */
.animated.scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animated.scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .animated.scroll {
        transition: none;
    }
}


/* Pantalla e carga */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    /* Fondo semi-transparente */
    z-index: 9999;
    /* Asegúrate de que esté por encima de otros elementos */
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    border: 8px solid #f3f3f3;
    /* Color de fondo */
    border-top: 8px solid #3498db;
    /* Color del spinner */
    border-radius: 50%;
    width: 50px;
    /* Tamaño del spinner */
    height: 50px;
    /* Tamaño del spinner */
    animation: spin 1s linear infinite;
    /* Animación */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.menu-item {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    color: rgb(173 143 119);
    text-decoration: none;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid rgb(173 143 119);
    box-sizing: border-box;
    transform: scale(0);
    opacity: 0;
    transition: all 0.2s ease-in-out;
}

.menu-item:hover::before {
    transform: scale(1);
    opacity: 1;
    animation: draw-rect 1s forwards;
}

@keyframes draw-rect {
    0% {
        width: 0;
        height: 0;
        top: 0;
        left: 100%;
    }

    25% {
        width: 100%;
        height: 0;
        top: 0;
        left: 0;
    }

    50% {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
    }

    75% {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
    }

    100% {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
    }
}