/* --- EL CANVA --- */
.scene {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    perspective: 3000px;
    transform-style: preserve-3d;
    width: 100vw;
    height: 100vh;
    z-index: 10;
}

.ring-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    animation: slow-rotate 15s linear infinite;
}

.ring-wrapper:nth-child(1) {
    animation-duration: 35s;
}

.ring-wrapper:nth-child(2) {
    animation-duration: 25s;
    animation-direction: reverse;
}

.ring-wrapper:nth-child(3) {
    animation-duration: 20s;
}

.ring-wrapper:nth-child(4) {
    animation-duration: 15s;
    animation-direction: reverse;
}

.ring-wrapper:nth-child(5) {
    animation-duration: 12s;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.20);
    background: transparent;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.5s, opacity 0.5s;
    animation: breathe 2s ease-in-out infinite alternate;
}

.ring-1 {
    width: 1800px;
    height: 1800px;
    opacity: 0.2;
    border-width: 4px;
    animation-delay: 2s;
}

.ring-2 {
    width: 1500px;
    height: 1500px;
    opacity: 0.3;
    border-width: 15px;
    animation-delay: 1.5s;
}

.ring-3 {
    width: 1200px;
    height: 1200px;
    opacity: 0.4;
    border-width: 35px;
    animation-delay: 1s;
}

.ring-4 {
    width: 900px;
    height: 900px;
    opacity: 0.5;
    border-width: 60px;
    animation-delay: 0.5s;
}

.ring-5 {
    width: 600px;
    height: 600px;
    opacity: 0.6;
    border-width: 5px;
    border-color: #fff;
    animation-delay: 0s;
}

.ring.active {
    opacity: 1;
    filter: brightness(1.5);
    border-color: #ffffff;
    box-shadow: 0 0 120px rgba(255, 255, 255, 0.3), inset 0 0 60px rgba(255, 255, 255, 0.2);
}

/* --- ANIMACIONES DEL CANVA --- */

@keyframes breathe {
    0% {
        transform: translateZ(0) scale(1);
        filter: brightness(0.2);
    }

    100% {
        transform: translateZ(80px) scale(1.06);
        filter: brightness(1.2);
    }
}

/* --- CANVAS RESPONSIVE --- */
@media (max-width: 992px) {
    .ring-1 {
        width: 1200px;
        height: 1200px;
        border-width: 3px;
    }

    .ring-2 {
        width: 1000px;
        height: 1000px;
        border-width: 10px;
    }

    .ring-3 {
        width: 800px;
        height: 800px;
        border-width: 25px;
    }

    .ring-4 {
        width: 600px;
        height: 600px;
        border-width: 40px;
    }

    .ring-5 {
        width: 400px;
        height: 400px;
        border-width: 4px;
    }
}

@media (max-width: 576px) {
    .scene {
        perspective: 2000px;
    }

    .ring-1 {
        width: 800px;
        height: 800px;
        border-width: 2px;
    }

    .ring-2 {
        width: 650px;
        height: 650px;
        border-width: 8px;
    }

    .ring-3 {
        width: 500px;
        height: 500px;
        border-width: 18px;
    }

    .ring-4 {
        width: 380px;
        height: 380px;
        border-width: 30px;
    }

    .ring-5 {
        width: 260px;
        height: 260px;
        border-width: 3px;
    }
}
