﻿.space-alert {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s;
}

    .space-alert.show {
        opacity: 1;
        pointer-events: auto;
    }

.space-alert-box {
    width: 90%;
    max-width: 420px;
    background: rgba(7,10,25,0.92);
    border: 1px solid rgba(0,240,255,0.25);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: modalFloat 4s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(0,240,255,0.15), 0 0 80px rgba(176,38,255,0.12);
}

@keyframes modalFloat {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0px);
    }
}

.planet-glow {
    position: absolute;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(0,240,255,0.22), transparent 70%);
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    filter: blur(20px);
}

.space-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient( 135deg, rgba(0,240,255,0.18), rgba(176,38,255,0.2) );
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: var(--neon-cyan);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 0 25px rgba(0,240,255,0.35);
}

.space-alert-box h2 {
    font-size: 2rem;
    margin-bottom: 12px;
    background: linear-gradient( 90deg, var(--neon-cyan), var(--neon-purple) );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.space-alert-box p {
    color: #b6c2d1;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.space-alert-box button {
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 12px 24px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.3s;
    font-family: inherit;
}

    .space-alert-box button:hover {
        background: var(--neon-cyan);
        color: #02040a;
        box-shadow: 0 0 25px rgba(0,240,255,0.45);
    }


@media (max-width: 768px) {

    .space-alert {
        padding: 1.2rem;
    }

    .space-alert-box {
        width: 100%;
        max-width: 100%;
        padding: 2rem 1.5rem;
        border-radius: 22px;
    }

        .space-alert-box h2 {
            font-size: 1.6rem;
            line-height: 1.3;
        }

        .space-alert-box p {
            font-size: 0.92rem;
            line-height: 1.6;
            margin-bottom: 1.5rem;
        }

    .space-icon {
        width: 72px;
        height: 72px;
        font-size: 2rem;
    }

    .planet-glow {
        width: 180px;
        height: 180px;
        top: -90px;
    }

    .space-alert-box button {
        width: 100%;
        padding: 14px;
        font-size: 0.95rem;
    }
}


@media (max-width: 420px) {

    .space-alert-box {
        padding: 1.8rem 1.2rem;
    }

        .space-alert-box h2 {
            font-size: 1.4rem;
        }

        .space-alert-box p {
            font-size: 0.85rem;
        }

    .space-icon {
        width: 64px;
        height: 64px;
        font-size: 1.7rem;
    }
}

/**/
/* =========================
   OVERLAY FULL SCREEN
========================= */
.space-loading {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 25, 0.92);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
    font-family: Arial, sans-serif;
    padding: 20px;
    text-align: center;
}

/* oculto */
.hidden {
    display: none;
}

/* =========================
   CONTENEDOR ORBITA
========================= */
.orbit {
    position: relative;
    /* RESPONSIVO */
    width: clamp(90px, 25vw, 160px);
    height: clamp(90px, 25vw, 160px);
}

/* =========================
   PLANETA
========================= */
.planet {
    width: clamp(18px, 4vw, 30px);
    height: clamp(18px, 4vw, 30px);
    background: radial-gradient(circle, #00d4ff, #0047ff);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    /* radio dinámico */
    transform-origin: calc(-1 * clamp(35px, 10vw, 65px)) 0;
    animation: orbit 1.6s linear infinite;
}

/* =========================
   ANILLO
========================= */
.ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(0, 200, 255, 0.35);
    /* glow suave */
    box-shadow: 0 0 12px rgba(0, 180, 255, 0.2);
}

/* =========================
   TEXTO
========================= */
.space-loading p {
    margin-top: 18px;
    font-size: clamp(14px, 2.2vw, 18px);
    opacity: 0.85;
    letter-spacing: 0.5px;
}

/* =========================
   ANIMACIÓN ORBITA
========================= */
@keyframes orbit {
    0% {
        transform: rotate(0deg) translateX(clamp(35px, 10vw, 65px)) rotate(0deg);
    }

    100% {
        transform: rotate(360deg) translateX(clamp(35px, 10vw, 65px)) rotate(-360deg);
    }
}

/* =========================
   AJUSTES MOBILE FINOS
========================= */
@media (max-width: 480px) {
    .space-loading {
        padding: 10px;
    }

    .ring {
        border-width: 1px;
    }
}