/* Estilos base */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Exo 2', sans-serif;
    overflow-x: hidden;
    background-color: #0B0033;
    color: #f8fafc;
}

/* Efectos espaciales */
#space-scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #0B0033;
    overflow: hidden;
}

.star {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    animation: twinkle 4s infinite ease-in-out;
}

.planet {
    position: absolute;
    background-size: cover;
    background-position: center;
    filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.3));
    border-radius: 50%;
}

/* Planetas específicos */
.saturn-planet {
    position: absolute;
    top: -15%;
    left: -15%;
    width: 800px;
    height: 800px;
    opacity: 0.85;
    z-index: 1;
}

.earth-planet {
    position: absolute;
    bottom: -30%;
    right: -20%;
    width: 1200px;
    height: 1200px;
    opacity: 0.8;
    z-index: 1;
}

.spaceship {
    position: absolute;
    filter: drop-shadow(0 0 5px rgba(108, 99, 255, 0.5));
    background-image: url('assets/imgs/nave.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
}

/* Animaciones */
@keyframes twinkle {

    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes comet-animation {
    0% {
        transform: translateX(-100%) translateY(0);
        opacity: 1;
    }

    70% {
        opacity: 1;
    }

    100% {
        transform: translateX(calc(100vw + 100px)) translateY(100vh);
        opacity: 0;
    }
}

@keyframes portal-pulse {
    0% {
        transform: scale(0);
        opacity: 0.8;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

@keyframes glow {

    0%,
    100% {
        text-shadow: 0 0 2px rgba(0, 245, 255, 0.5),
            0 0 5px rgba(0, 245, 255, 0.3);
    }

    50% {
        text-shadow: 0 0 5px rgba(0, 245, 255, 0.7),
            0 0 10px rgba(0, 245, 255, 0.5);
    }
}

@keyframes pulse-neon {

    0%,
    100% {
        box-shadow: 0 0 2px rgba(0, 245, 255, 0.5),
            0 0 5px rgba(0, 245, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 5px rgba(0, 245, 255, 0.7),
            0 0 10px rgba(0, 245, 255, 0.5);
    }
}

/* Efectos especiales */
.comet {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00F5FF, transparent);
    animation: comet-animation 6s linear infinite;
}

.portal {
    position: absolute;
    border-radius: 50%;
    border: 2px solid #FF00E4;
    box-shadow: 0 0 20px #FF00E4, inset 0 0 20px #FF00E4;
    opacity: 0;
    animation: portal-pulse 8s linear infinite;
}

.alien-float {
    position: absolute;
    background-image: url('assets/imgs/alien.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 5px rgba(0, 245, 255, 0.5));
    z-index: 2;
}

/* Tarjetas con efecto glassmorphism */
.glass-card {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(108, 99, 255, 0.3);
    border: 1px solid rgba(108, 99, 255, 0.3);
}

/* Efecto neón para textos y elementos (sutiles) */
.neon-text {
    text-shadow: 0 0 2px rgba(0, 245, 255, 0.5),
        0 0 5px rgba(0, 245, 255, 0.3);
}

.neon-text-pink {
    text-shadow: 0 0 2px rgba(255, 0, 228, 0.5),
        0 0 5px rgba(255, 0, 228, 0.3);
}

.neon-border {
    border: 1px solid rgba(0, 245, 255, 0.5);
    box-shadow: 0 0 3px rgba(0, 245, 255, 0.5);
}

.neon-border-pink {
    border: 1px solid rgba(255, 0, 228, 0.5);
    box-shadow: 0 0 3px rgba(255, 0, 228, 0.5);
}

.neon-icon {
    filter: drop-shadow(0 0 2px rgba(0, 245, 255, 0.5));
}

.neon-icon-pink {
    filter: drop-shadow(0 0 2px rgba(255, 0, 228, 0.5));
}

/* Efectos de botones */
.btn-glow {
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 3px rgba(0, 245, 255, 0.5);
}

.btn-glow:hover {
    box-shadow: 0 0 8px rgba(0, 245, 255, 0.7);
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.btn-glow:hover::before {
    left: 100%;
}

.highlight-badge {
    background: linear-gradient(90deg, #FF00E4, #6C63FF);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 0, 228, 0.3);
    transform: rotate(-2deg);
    animation: pulse 2s infinite;
}

.price-tag {
    position: relative;
}

.price-tag::after {
    content: "¡MEJOR PRECIO!";
    position: absolute;
    top: -10px;
    right: -30px;
    background: #FF00E4;
    color: white;
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: 4px;
    transform: rotate(15deg);
    animation: pulse 2s infinite;
}

/* Media queries */
@media (max-width: 768px) {
    .price-tag::after {
        font-size: 0.5rem;
        top: -8px;
        right: -20px;
    }

    .saturn-planet {
        width: 400px;
        height: 400px;
    }

    .earth-planet {
        width: 600px;
        height: 600px;
    }
}