* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(ellipse at center, #0a0e27 0%, #000000 100%);
    color: white;
    overflow-x: hidden;
    overflow-y: hidden !important;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
}

.container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px 120px 20px;
    box-sizing: border-box;
    overflow-x: hidden;
        overflow-y: hidden !important;
}

/* Caja de Misión - Arriba de exploración */
.mission-box {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.9);
    padding: 12px 15px;
    border-radius: 10px;
    border: 2px solid rgba(255, 208, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 90;
    width: 220px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

.mission-box h1 {
    margin: 0;
    font-size: 0.95em;
    color: #ffd000;
    text-align: center;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.3;
    text-shadow: 0 0 10px rgba(255, 208, 0, 0.5);
}

/* Sidebar de controles */
.controls {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.9);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid rgba(100, 150, 255, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    width: 180px;
}

.controls button {
    padding: 10px 12px;
    font-size: 0.9em;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
}

.controls button svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.controls button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.language-btn {
    background: rgba(255, 208, 0, 0.2) !important;
    border: 2px solid rgba(255, 208, 0, 0.5) !important;
    font-weight: bold;
}

.language-btn:hover {
    background: rgba(255, 208, 0, 0.3) !important;
    box-shadow: 0 0 15px rgba(255, 208, 0, 0.5);
}

.exit-btn {
    background: rgba(255, 69, 58, 0.2) !important;
    border: 2px solid rgba(255, 69, 58, 0.5) !important;
    font-weight: bold;
}

.exit-btn:hover {
    background: rgba(255, 69, 58, 0.3) !important;
    box-shadow: 0 0 15px rgba(255, 69, 58, 0.6);
    transform: scale(1.05);
}

/* Control de volumen fusionado */
.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(100, 150, 255, 0.1);
    border-radius: 5px;
    border: 1px solid rgba(100, 150, 255, 0.3);
    width: 100%;
    box-sizing: border-box;
}

.volume-control .sound-toggle {
    padding: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
    width: auto;
    min-width: 32px;
    height: 32px;
}

.volume-control .sound-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.volume-control .sound-toggle svg {
    width: 18px;
    height: 18px;
}

.volume-control input[type="range"] {
    flex: 1;
    min-width: 0;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4fc3f7;
    cursor: pointer;
    transition: all 0.2s;
}

.volume-control input[type="range"]::-webkit-slider-thumb:hover {
    background: #81d4fa;
    transform: scale(1.15);
    box-shadow: 0 0 10px rgba(79, 195, 247, 0.8);
}

.volume-control input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4fc3f7;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.volume-control input[type="range"]::-moz-range-thumb:hover {
    background: #81d4fa;
    transform: scale(1.15);
    box-shadow: 0 0 10px rgba(79, 195, 247, 0.8);
}

.volume-control span {
    font-size: 0.75em;
    min-width: 30px;
    text-align: right;
    color: #4fc3f7;
    font-weight: bold;
    flex-shrink: 0;
}

.solar-system {
    position: relative;
    width: min(800px, 90vw);
    height: min(800px, 90vw);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px auto 80px auto;
    flex-shrink: 0;
}

/* Sol */
.sun {
    position: absolute;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 40% 40%, 
        #fff9e6 0%, 
        #ffeb3b 15%, 
        #ffd000 35%, 
        #ff9800 70%, 
        #ff6b00 100%);
    border-radius: 50%;
    box-shadow: 
        inset -8px -8px 20px rgba(255, 107, 0, 0.4),
        0 0 40px #ffd000, 
        0 0 80px #ff9800,
        0 0 120px rgba(255, 107, 0, 0.5);
    cursor: pointer;
    z-index: 10;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.glow {
    position: absolute;
    width: 120px;
    height: 120px;
    top: -20px;
    left: -20px;
    background: radial-gradient(circle, rgba(255, 208, 0, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Órbitas */
.orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: rotate linear infinite;
    pointer-events: none;
}

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

/* Planetas base */
.planet {
    position: absolute;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s;
    pointer-events: auto;
    z-index: 50;
}

.planet:hover {
    transform: scale(1.3);
    z-index: 100;
}

/* Mercurio */
.mercury-orbit {
    width: 120px;
    height: 120px;
    animation-duration: 10s;
}

.mercury {
    width: 12px;
    height: 12px;
    background: radial-gradient(circle at 30% 30%, #b8a896, #8c7853, #5a4a3a);
    top: -6px;
    left: 54px;
    box-shadow: inset -3px -3px 6px rgba(0, 0, 0, 0.5),
                0 0 8px rgba(140, 120, 83, 0.4);
}

/* Venus */
.venus-orbit {
    width: 160px;
    height: 160px;
    animation-duration: 15s;
}

.venus {
    width: 18px;
    height: 18px;
    background: radial-gradient(circle at 35% 35%, #ffd97d, #ffc649, #e8a838);
    top: -9px;
    left: 71px;
    box-shadow: inset -4px -4px 8px rgba(0, 0, 0, 0.3),
                0 0 12px rgba(255, 198, 73, 0.6);
}

/* Tierra */
.earth-orbit {
    width: 210px;
    height: 210px;
    animation-duration: 20s;
}

.earth {
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 35% 35%, #6eb5ff, #1e90ff 30%, #0c5da5 50%, #228b22 70%, #1a6b1a);
    top: -10px;
    left: 95px;
    position: relative;
    box-shadow: inset -4px -4px 10px rgba(0, 0, 0, 0.4),
                0 0 15px rgba(30, 144, 255, 0.5);
}

.moon-orbit {
    position: absolute;
    width: 30px;
    height: 30px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotateMoon 3s linear infinite;
    pointer-events: none;
}

.moon {
    position: absolute;
    width: 5px;
    height: 5px;
    background: radial-gradient(circle at 30% 30%, #ffffff, #c0c0c0);
    border-radius: 50%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
}

@keyframes rotateMoon {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Marte */
.mars-orbit {
    width: 270px;
    height: 270px;
    animation-duration: 30s;
}

.mars {
    width: 16px;
    height: 16px;
    background: radial-gradient(circle at 35% 35%, #e27b58, #cd5c5c, #a0342a);
    top: -8px;
    left: 127px;
    box-shadow: inset -3px -3px 8px rgba(0, 0, 0, 0.4),
                0 0 10px rgba(205, 92, 92, 0.5);
}

/* Júpiter */
.jupiter-orbit {
    width: 380px;
    height: 380px;
    animation-duration: 50s;
}

.jupiter {
    width: 45px;
    height: 45px;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15), transparent 40%),
        linear-gradient(to bottom, 
            #d4a373 0%, 
            #c88b3a 15%, 
            #b8813d 25%,
            #a67c52 35%,
            #c9905f 45%,
            #a67c52 55%,
            #b8813d 65%,
            #c88b3a 75%,
            #d4a373 90%,
            #c88b3a 100%);
    top: -22.5px;
    left: 167.5px;
    position: relative;
    box-shadow: inset -8px -8px 15px rgba(0, 0, 0, 0.4),
                0 0 20px rgba(200, 139, 58, 0.5);
}

.red-spot {
    position: absolute;
    width: 14px;
    height: 10px;
    background: radial-gradient(ellipse at center, #d4634a 0%, #a83a2a 60%, rgba(168, 58, 42, 0.3) 100%);
    border-radius: 50%;
    top: 55%;
    left: 35%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 5px rgba(212, 99, 74, 0.6);
    animation: redSpotPulse 4s ease-in-out infinite;
}

@keyframes redSpotPulse {
    0%, 100% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* Saturno */
.saturn-orbit {
    width: 490px;
    height: 490px;
    animation-duration: 70s;
}

.saturn {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at 35% 35%, #ffe4b5, #fad5a5, #e6c896, #d4b896);
    top: -20px;
    left: 225px;
    position: relative;
    box-shadow: inset -6px -6px 12px rgba(0, 0, 0, 0.3),
                0 0 18px rgba(250, 213, 165, 0.5);
}

.rings {
    position: absolute;
    width: 70px;
    height: 30px;
    border-radius: 50%;
    top: 5px;
    left: -15px;
    transform: rotateX(75deg);
    pointer-events: none;
    background: radial-gradient(ellipse, 
        transparent 45%,
        rgba(210, 180, 140, 0.7) 48%,
        rgba(190, 160, 120, 0.8) 52%,
        rgba(210, 180, 140, 0.6) 56%,
        rgba(230, 200, 150, 0.5) 60%,
        transparent 63%);
    box-shadow: 0 0 10px rgba(210, 180, 140, 0.4);
}

/* Urano */
.uranus-orbit {
    width: 600px;
    height: 600px;
    animation-duration: 90s;
}

.uranus {
    width: 28px;
    height: 28px;
    background: radial-gradient(circle at 35% 35%, #7ee5f5, #4fd0e7, #2ab8d8, #1a99b5);
    top: -14px;
    left: 286px;
    box-shadow: inset -5px -5px 10px rgba(0, 0, 0, 0.3),
                0 0 16px rgba(79, 208, 231, 0.6);
}

/* Neptuno */
.neptune-orbit {
    width: 700px;
    height: 700px;
    animation-duration: 110s;
}

.neptune {
    width: 27px;
    height: 27px;
    background: radial-gradient(circle at 35% 35%, #6a8bff, #4169e1, #2950c8, #1a3a9e);
    top: -13.5px;
    left: 336.5px;
    box-shadow: inset -5px -5px 10px rgba(0, 0, 0, 0.3),
                0 0 16px rgba(65, 105, 225, 0.6);
}

/* Plutón */
.pluto-orbit {
    width: 760px;
    height: 760px;
    animation-duration: 130s;
    border-style: dashed;
}

.pluto {
    width: 10px;
    height: 10px;
    background: radial-gradient(circle at 40% 40%, #c8b0a0, #a89080, #8b7060);
    top: -5px;
    left: 375px;
    box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.4),
                0 0 6px rgba(168, 144, 128, 0.4);
}

/* Ceres (en el cinturón de asteroides) */
.ceres-orbit {
    width: 310px;
    height: 310px;
    animation-duration: 40s;
    border-style: dotted;
}

.ceres {
    width: 8px;
    height: 8px;
    background: radial-gradient(circle at 40% 40%, #a89070, #8b7355, #6a5440);
    top: -4px;
    left: 151px;
    box-shadow: inset -2px -2px 3px rgba(0, 0, 0, 0.4),
                0 0 5px rgba(139, 115, 85, 0.4);
}

/* Haumea */
.haumea-orbit {
    width: 720px;
    height: 720px;
    animation-duration: 140s;
    border-style: dashed;
}

.haumea {
    width: 12px;
    height: 8px;
    background: radial-gradient(ellipse at 40% 40%, #e0e0e0, #b8b8b8, #909090);
    border-radius: 60%;
    top: -4px;
    left: 354px;
    box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.4),
                0 0 5px rgba(184, 184, 184, 0.4);
}

/* Makemake */
.makemake-orbit {
    width: 740px;
    height: 740px;
    animation-duration: 150s;
    border-style: dashed;
}

.makemake {
    width: 9px;
    height: 9px;
    background: radial-gradient(circle at 40% 40%, #a86532, #8b4513, #6b3010);
    top: -4.5px;
    left: 365.5px;
    box-shadow: inset -2px -2px 3px rgba(0, 0, 0, 0.4),
                0 0 5px rgba(139, 69, 19, 0.4);
}

/* Eris */
.eris-orbit {
    width: 770px;
    height: 770px;
    animation-duration: 180s;
    border-style: dashed;
}

.eris {
    width: 10px;
    height: 10px;
    background: radial-gradient(circle at 40% 40%, #f0f0f0, #d3d3d3, #a8a8a8);
    top: -5px;
    left: 380px;
    box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.4),
                0 0 6px rgba(211, 211, 211, 0.5);
}


/* Cinturón de Asteroides Mejorado */
.asteroid-belt-improved {
    position: absolute;
    width: 325px;
    height: 325px;
    border-radius: 50%;
    pointer-events: auto;
    cursor: pointer;
    animation: rotateAsteroids 200s linear infinite;
    opacity: 0.92;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.asteroid-belt-improved:hover {
    opacity: 1;
    transform: scale(1.05);
    filter: brightness(1.2);
    box-shadow:
        0 0 15px rgba(255, 215, 130, 0.25),
        0 0 25px rgba(255, 170, 60, 0.15);
}

.asteroid-belt-improved:hover::before {
    box-shadow:
        inset 0 0 35px rgba(255, 215, 130, 0.25),
        0 0 25px rgba(255, 170, 60, 0.2);
    filter: brightness(1.3) saturate(1.1);
}

.asteroid-belt-improved::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 
        inset 0 0 30px rgba(139, 69, 19, 0.3),
        0 0 15px rgba(139, 69, 19, 0.2);
    background: 
        /* Capa base con efecto de cinturón */
        radial-gradient(ellipse at center, 
            transparent 62%, 
            rgba(139, 69, 19, 0.28) 66%,
            rgba(160, 82, 45, 0.35) 75%,
            rgba(105, 105, 105, 0.32) 84%,
            rgba(139, 69, 19, 0.28) 92%,
            transparent 97%),
        /* Asteroides más grandes */
        radial-gradient(circle at 10% 20%, rgba(139, 69, 19, 0.9) 3px, transparent 3px),
        radial-gradient(circle at 20% 40%, rgba(105, 105, 105, 0.9) 4px, transparent 4px),
        radial-gradient(circle at 30% 15%, rgba(160, 82, 45, 0.9) 3px, transparent 3px),
        radial-gradient(circle at 40% 50%, rgba(128, 128, 128, 0.9) 2px, transparent 2px),
        radial-gradient(circle at 50% 25%, rgba(139, 69, 19, 0.9) 4px, transparent 4px),
        radial-gradient(circle at 60% 60%, rgba(105, 105, 105, 0.9) 3px, transparent 3px),
        radial-gradient(circle at 70% 30%, rgba(160, 82, 45, 0.9) 2px, transparent 2px),
        radial-gradient(circle at 80% 70%, rgba(128, 128, 128, 0.9) 4px, transparent 4px),
        radial-gradient(circle at 85% 45%, rgba(139, 69, 19, 0.9) 3px, transparent 3px),
        radial-gradient(circle at 90% 80%, rgba(105, 105, 105, 0.9) 2px, transparent 2px),
        /* Asteroides medianos */
        radial-gradient(circle at 15% 70%, rgba(139, 69, 19, 0.8) 2px, transparent 2px),
        radial-gradient(circle at 25% 85%, rgba(105, 105, 105, 0.8) 3px, transparent 3px),
        radial-gradient(circle at 35% 65%, rgba(160, 82, 45, 0.8) 2px, transparent 2px),
        radial-gradient(circle at 45% 90%, rgba(128, 128, 128, 0.8) 2px, transparent 2px),
        radial-gradient(circle at 55% 75%, rgba(139, 69, 19, 0.8) 2px, transparent 2px),
        radial-gradient(circle at 65% 95%, rgba(105, 105, 105, 0.8) 3px, transparent 3px),
        radial-gradient(circle at 75% 55%, rgba(160, 82, 45, 0.8) 2px, transparent 2px),
        radial-gradient(circle at 95% 35%, rgba(128, 128, 128, 0.8) 2px, transparent 2px),
        /* Asteroides pequeños - más numerosos */
        radial-gradient(circle at 8% 32%, rgba(139, 69, 19, 0.7) 1px, transparent 1px),
        radial-gradient(circle at 17% 55%, rgba(105, 105, 105, 0.7) 1px, transparent 1px),
        radial-gradient(circle at 28% 48%, rgba(160, 82, 45, 0.7) 1px, transparent 1px),
        radial-gradient(circle at 37% 72%, rgba(128, 128, 128, 0.7) 1px, transparent 1px),
        radial-gradient(circle at 48% 38%, rgba(139, 69, 19, 0.7) 1px, transparent 1px),
        radial-gradient(circle at 57% 82%, rgba(105, 105, 105, 0.7) 1px, transparent 1px),
        radial-gradient(circle at 68% 52%, rgba(160, 82, 45, 0.7) 1px, transparent 1px),
        radial-gradient(circle at 77% 62%, rgba(128, 128, 128, 0.7) 1px, transparent 1px),
        radial-gradient(circle at 88% 28%, rgba(139, 69, 19, 0.7) 1px, transparent 1px),
        radial-gradient(circle at 92% 58%, rgba(105, 105, 105, 0.7) 1px, transparent 1px),
        radial-gradient(circle at 5% 88%, rgba(160, 82, 45, 0.7) 1px, transparent 1px),
        radial-gradient(circle at 12% 12%, rgba(128, 128, 128, 0.7) 1px, transparent 1px);
    background-size: 100% 100%;
}





/* Cinturón de Kuiper */



/* Cinturón de Asteroides Mejorado */
.kuiper-belt {
    position: absolute;
    width: 770px;
    height: 770px;
    border-radius: 50%;
    pointer-events: auto;
    cursor: pointer;
    animation: rotateAsteroids 200s linear infinite;
    opacity: 0.92;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.kuiper-belt:hover {
    opacity: 1;
    transform: scale(1.05);
    filter: brightness(1.2);
    box-shadow:
        0 0 15px rgba(255, 215, 130, 0.25),
        0 0 25px rgba(255, 170, 60, 0.15);
}

.kuiper-belt:hover::before {
    box-shadow:
        inset 0 0 35px rgba(144, 242, 255, 0.25),
        0 0 25px rgba(101, 179, 252, 0.2);
    filter: brightness(1.3) saturate(1.1);
}

.kuiper-belt::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 
        inset 0 0 30px rgba(102, 92, 241, 0.3),
        0 0 15px rgba(68, 142, 240, 0.2);
    background: 
        /* Capa base con efecto de cinturón */
        radial-gradient(ellipse at center, 
            transparent 62%, 
            rgba(65, 170, 255, 0.144) 66%,
            rgba(69, 187, 255, 0.205) 75%,
            rgba(81, 122, 255, 0.418) 84%,
            rgba(77, 154, 255, 0.192) 92%,
            transparent 97%),
        /* Asteroides más grandes */
radial-gradient(circle at 5% 15%, rgba(135, 206, 250, 0.8) 3px, transparent 3px),
        radial-gradient(circle at 12% 35%, rgba(176, 224, 230, 0.8) 3px, transparent 3px),
        radial-gradient(circle at 18% 8%, rgba(200, 230, 255, 0.8) 2px, transparent 2px),
        radial-gradient(circle at 25% 45%, rgba(176, 224, 230, 0.8) 3px, transparent 3px),
        radial-gradient(circle at 32% 22%, rgba(135, 206, 250, 0.8) 2px, transparent 2px),
        radial-gradient(circle at 38% 58%, rgba(200, 230, 255, 0.8) 3px, transparent 3px),
        radial-gradient(circle at 45% 12%, rgba(176, 224, 230, 0.8) 2px, transparent 2px),
        radial-gradient(circle at 52% 68%, rgba(135, 206, 250, 0.8) 3px, transparent 3px),
        radial-gradient(circle at 58% 28%, rgba(200, 230, 255, 0.8) 2px, transparent 2px),
        radial-gradient(circle at 65% 78%, rgba(176, 224, 230, 0.8) 3px, transparent 3px),
        radial-gradient(circle at 72% 42%, rgba(135, 206, 250, 0.8) 2px, transparent 2px),
        radial-gradient(circle at 78% 88%, rgba(200, 230, 255, 0.8) 3px, transparent 3px),
        radial-gradient(circle at 85% 55%, rgba(176, 224, 230, 0.8) 2px, transparent 2px),
        radial-gradient(circle at 92% 25%, rgba(135, 206, 250, 0.8) 3px, transparent 3px),
        radial-gradient(circle at 95% 72%, rgba(200, 230, 255, 0.8) 2px, transparent 2px),
        /* Objetos medianos más numerosos */
        radial-gradient(circle at 8% 48%, rgba(135, 206, 250, 0.7) 2px, transparent 2px),
        radial-gradient(circle at 15% 62%, rgba(176, 224, 230, 0.7) 2px, transparent 2px),
        radial-gradient(circle at 22% 78%, rgba(200, 230, 255, 0.7) 2px, transparent 2px),
        radial-gradient(circle at 28% 92%, rgba(135, 206, 250, 0.7) 2px, transparent 2px),
        radial-gradient(circle at 35% 5%, rgba(176, 224, 230, 0.7) 2px, transparent 2px),
        radial-gradient(circle at 42% 85%, rgba(200, 230, 255, 0.7) 2px, transparent 2px),
        radial-gradient(circle at 48% 52%, rgba(135, 206, 250, 0.7) 2px, transparent 2px),
        radial-gradient(circle at 55% 18%, rgba(176, 224, 230, 0.7) 2px, transparent 2px),
        radial-gradient(circle at 62% 38%, rgba(200, 230, 255, 0.7) 2px, transparent 2px),
        radial-gradient(circle at 68% 95%, rgba(135, 206, 250, 0.7) 2px, transparent 2px),
        radial-gradient(circle at 75% 65%, rgba(176, 224, 230, 0.7) 2px, transparent 2px),
        radial-gradient(circle at 82% 8%, rgba(200, 230, 255, 0.7) 2px, transparent 2px),
        radial-gradient(circle at 88% 75%, rgba(135, 206, 250, 0.7) 2px, transparent 2px),
        radial-gradient(circle at 94% 48%, rgba(176, 224, 230, 0.7) 2px, transparent 2px),
        /* Objetos pequeños - partículas heladas */
        radial-gradient(circle at 3% 32%, rgba(200, 230, 255, 0.6) 1px, transparent 1px),
        radial-gradient(circle at 9% 82%, rgba(135, 206, 250, 0.6) 1px, transparent 1px),
        radial-gradient(circle at 16% 25%, rgba(176, 224, 230, 0.6) 1px, transparent 1px),
        radial-gradient(circle at 23% 58%, rgba(200, 230, 255, 0.6) 1px, transparent 1px),
        radial-gradient(circle at 31% 68%, rgba(135, 206, 250, 0.6) 1px, transparent 1px),
        radial-gradient(circle at 37% 15%, rgba(176, 224, 230, 0.6) 1px, transparent 1px),
        radial-gradient(circle at 44% 95%, rgba(200, 230, 255, 0.6) 1px, transparent 1px),
        radial-gradient(circle at 51% 42%, rgba(135, 206, 250, 0.6) 1px, transparent 1px),
        radial-gradient(circle at 59% 75%, rgba(176, 224, 230, 0.6) 1px, transparent 1px),
        radial-gradient(circle at 66% 22%, rgba(200, 230, 255, 0.6) 1px, transparent 1px),
        radial-gradient(circle at 73% 88%, rgba(135, 206, 250, 0.6) 1px, transparent 1px),
        radial-gradient(circle at 79% 35%, rgba(176, 224, 230, 0.6) 1px, transparent 1px),
        radial-gradient(circle at 86% 62%, rgba(200, 230, 255, 0.6) 1px, transparent 1px),
        radial-gradient(circle at 91% 12%, rgba(135, 206, 250, 0.6) 1px, transparent 1px),
        radial-gradient(circle at 97% 85%, rgba(176, 224, 230, 0.6) 1px, transparent 1px);
    background-size: 100% 100%;
}




/* Nube de Oort - Representación científicamente precisa */
/* La Nube de Oort es una nube ESFÉRICA (no un disco) de objetos helados que rodea el sistema solar */
.oort-cloud {
    position: absolute;
    width: 160%;
    height: 160%;
    top: -30%;
    left: -30%;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 2s ease-in-out, visibility 2s ease-in-out, transform 2s ease-in-out;
    transform: scale(0.92);
    z-index: 5;
    /* Rotación extremadamente lenta - la Nube de Oort tarda millones de años en rotar */
    animation: rotateOort 1200s linear infinite;
}

.oort-cloud.active {
    opacity: 0.55;
    visibility: visible;
    transform: scale(1);
}

/* Efecto de parpadeo sutil para simular objetos distantes */
.oort-cloud.active::before {
    animation: oortTwinkle 20s ease-in-out infinite;
}

.oort-cloud.active::after {
    animation: oortTwinkle 25s ease-in-out infinite reverse;
}

@keyframes oortTwinkle {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Capa interna de la Nube de Oort (Nube Interior: ~2,000 - 20,000 UA) */
.oort-cloud::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: 
        /* Gradiente esférico muy sutil - la nube es EXTREMADAMENTE difusa */
        radial-gradient(circle at center, 
            transparent 0%, 
            transparent 60%,
            rgba(200, 220, 255, 0.02) 65%,
            rgba(190, 210, 245, 0.04) 70%,
            rgba(180, 200, 240, 0.06) 75%,
            rgba(170, 190, 235, 0.08) 80%,
            rgba(180, 200, 240, 0.10) 85%,
            rgba(190, 210, 245, 0.08) 90%,
            rgba(200, 220, 255, 0.05) 95%,
            transparent 100%),
        /* Núcleos cometarios individuales dispersos - MUY espaciados (realismo científico) */
        /* Región interior más densa */
        radial-gradient(circle at 68% 22%, rgba(240, 248, 255, 0.4) 0.8px, transparent 1px),
        radial-gradient(circle at 75% 85%, rgba(230, 240, 255, 0.35) 0.6px, transparent 1px),
        radial-gradient(circle at 82% 45%, rgba(220, 235, 250, 0.4) 0.7px, transparent 1px),
        radial-gradient(circle at 70% 58%, rgba(240, 248, 255, 0.3) 0.5px, transparent 1px),
        radial-gradient(circle at 88% 12%, rgba(230, 240, 255, 0.35) 0.8px, transparent 1px),
        radial-gradient(circle at 65% 75%, rgba(220, 235, 250, 0.3) 0.6px, transparent 1px),
        radial-gradient(circle at 92% 68%, rgba(240, 248, 255, 0.4) 0.7px, transparent 1px),
        radial-gradient(circle at 78% 35%, rgba(230, 240, 255, 0.3) 0.5px, transparent 1px),
        radial-gradient(circle at 85% 92%, rgba(220, 235, 250, 0.35) 0.8px, transparent 1px),
        /* Región exterior más dispersa */
        radial-gradient(circle at 72% 8%, rgba(240, 248, 255, 0.25) 0.5px, transparent 1px),
        radial-gradient(circle at 95% 28%, rgba(230, 240, 255, 0.2) 0.4px, transparent 1px),
        radial-gradient(circle at 68% 95%, rgba(220, 235, 250, 0.25) 0.5px, transparent 1px),
        radial-gradient(circle at 90% 55%, rgba(240, 248, 255, 0.2) 0.4px, transparent 1px),
        radial-gradient(circle at 98% 82%, rgba(230, 240, 255, 0.25) 0.5px, transparent 1px);
    background-size: 100% 100%;
    /* Resplandor sutil que simula la dispersión de luz solar reflejada en objetos helados distantes */
    box-shadow: 
        inset 0 0 150px rgba(200, 220, 255, 0.03),
        inset 0 0 300px rgba(180, 200, 240, 0.02),
        0 0 100px rgba(200, 220, 255, 0.02);
    pointer-events: none;
}

/* Capa externa de la Nube de Oort (Nube Exterior: ~20,000 - 100,000 UA) */
/* Esta capa rota en dirección opuesta para simular la distribución esférica tridimensional */
.oort-cloud::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: 
        /* Objetos extremadamente dispersos en la región más externa */
        /* Cometas grandes potenciales (como Sedna, 2012 VP113) */
        radial-gradient(circle at 78% 15%, rgba(245, 250, 255, 0.35) 0.9px, transparent 1.2px),
        radial-gradient(circle at 85% 72%, rgba(240, 248, 255, 0.3) 1px, transparent 1.2px),
        radial-gradient(circle at 92% 38%, rgba(235, 245, 255, 0.35) 0.8px, transparent 1.2px),
        radial-gradient(circle at 70% 90%, rgba(245, 250, 255, 0.3) 0.9px, transparent 1.2px),
        radial-gradient(circle at 96% 62%, rgba(240, 248, 255, 0.35) 1px, transparent 1.2px),
        /* Objetos más pequeños dispersos aleatoriamente */
        radial-gradient(circle at 73% 42%, rgba(235, 245, 255, 0.2) 0.4px, transparent 0.8px),
        radial-gradient(circle at 82% 88%, rgba(240, 248, 255, 0.18) 0.5px, transparent 0.8px),
        radial-gradient(circle at 88% 25%, rgba(245, 250, 255, 0.2) 0.4px, transparent 0.8px),
        radial-gradient(circle at 94% 78%, rgba(235, 245, 255, 0.18) 0.5px, transparent 0.8px),
        radial-gradient(circle at 75% 58%, rgba(240, 248, 255, 0.2) 0.4px, transparent 0.8px),
        radial-gradient(circle at 98% 45%, rgba(245, 250, 255, 0.18) 0.5px, transparent 0.8px),
        radial-gradient(circle at 80% 8%, rgba(235, 245, 255, 0.2) 0.4px, transparent 0.8px),
        radial-gradient(circle at 68% 68%, rgba(240, 248, 255, 0.15) 0.3px, transparent 0.6px),
        radial-gradient(circle at 90% 95%, rgba(245, 250, 255, 0.15) 0.3px, transparent 0.6px),
        radial-gradient(circle at 77% 28%, rgba(235, 245, 255, 0.15) 0.3px, transparent 0.6px);
    background-size: 100% 100%;
    /* Rotación opuesta muy lenta para simular la tridimensionalidad */
    animation: rotateOort 1800s linear infinite reverse;
    pointer-events: none;
    opacity: 0.8;
}

@keyframes rotateOort {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateAsteroids {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateKuiper {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Asteroides individuales flotantes */
.asteroid {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(160, 82, 45, 0.9), rgba(105, 105, 105, 0.8));
    border-radius: 50%;
    box-shadow: 0 0 3px rgba(139, 69, 19, 0.6);
    animation: floatAsteroid 8s ease-in-out infinite;
}

.asteroid:nth-child(1) {
    top: 15%;
    left: 20%;
    width: 5px;
    height: 5px;
    animation-duration: 10s;
    animation-delay: 0s;
}

.asteroid:nth-child(2) {
    top: 45%;
    left: 85%;
    width: 3px;
    height: 3px;
    animation-duration: 12s;
    animation-delay: -2s;
}

.asteroid:nth-child(3) {
    top: 70%;
    left: 30%;
    width: 6px;
    height: 6px;
    animation-duration: 9s;
    animation-delay: -4s;
}

.asteroid:nth-child(4) {
    top: 30%;
    left: 65%;
    width: 4px;
    height: 4px;
    animation-duration: 11s;
    animation-delay: -1s;
}

.asteroid:nth-child(5) {
    top: 55%;
    left: 10%;
    width: 5px;
    height: 5px;
    animation-duration: 13s;
    animation-delay: -3s;
}

@keyframes floatAsteroid {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.8;
    }
    25% {
        transform: translate(5px, -5px) rotate(90deg);
        opacity: 1;
    }
    50% {
        transform: translate(0, -10px) rotate(180deg);
        opacity: 0.9;
    }
    75% {
        transform: translate(-5px, -5px) rotate(270deg);
        opacity: 1;
    }
}

/* Gran Mancha Roja de Júpiter */
.great-red-spot {
    position: absolute;
    width: 15px;
    height: 10px;
    background: #d4301a;
    border-radius: 50%;
    top: 15px;
    left: 10px;
    opacity: 0.8;
    pointer-events: none;
}

/* Panel de información */
.info-panel {
    position: fixed;
    right: -400px;
    top: 50%;
    transform: translateY(-50%);
    width: 350px;
    max-height: 80vh;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    transition: right 0.5s;
    overflow-y: auto;
    backdrop-filter: blur(10px);
    z-index: 200;
}

.info-panel.active {
    right: 20px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5em;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

#planetName {
    margin-bottom: 15px;
    color: #ffd000;
}

#planetImage {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    display: none;
}

#planetInfo {
    line-height: 1.6;
}

#planetInfo p {
    margin-bottom: 10px;
}

#planetInfo strong {
    color: #ffd000;
}

/* Etiquetas de planetas */
.planet-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    pointer-events: none !important;
    opacity: 0;
    transition: opacity 0.3s;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

.show-labels .planet-label {
    opacity: 1;
}

/* Sección de datos curiosos */
.fun-fact-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.fun-fact-section h3 {
    color: #ffd700;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    font-weight: bold;
}

#randomFact {
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 10px;
}

#newFactBtn {
    width: 100%;
    padding: 10px;
    background: rgba(255, 208, 0, 0.2);
    border: 1px solid rgba(255, 208, 0, 0.5);
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

#newFactBtn:hover {
    background: rgba(255, 208, 0, 0.3);
    transform: translateY(-2px);
}

/* Banner de datos curiosos */
.fun-fact {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    padding: 12px 25px;
    border-radius: 25px;
    border: 2px solid rgba(255, 208, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 250;
    max-width: min(600px, calc(100vw - 40px));
    min-width: min(300px, calc(100vw - 40px));
    text-align: center;
    animation: slideUp 0.5s ease-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

@keyframes slideUp {
    from {
        bottom: -100px;
        opacity: 0;
    }
    to {
        bottom: 15px;
        opacity: 1;
    }
}

#factText {
    font-size: 0.95em;
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    line-height: 1.4;
}

/* Panel de logros - Lateral izquierdo (debajo de la caja de misión) */
.achievements {
    position: fixed;
    top: 90px;
    left: 20px;
    background: rgba(0, 0, 0, 0.9);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid rgba(255, 208, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 1;
    width: 220px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

.achievements h3 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    color: #ffd000;
    text-align: center;
}

#visitedPlanets {
    margin: 10px 0;
    font-size: 0.85em;
    text-align: center;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}

.badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75em;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
    cursor: default;
}

.badge.unlocked {
    background: rgba(255, 208, 0, 0.3);
    border-color: #ffd000;
    animation: unlock 0.5s ease-out;
}

@keyframes unlock {
    0% {
        transform: scale(0) rotate(0deg);
    }
    50% {
        transform: scale(1.3) rotate(180deg);
    }
    100% {
        transform: scale(1) rotate(360deg);
    }
}

/* Info de cinturones - Debajo de achievements */
.belts-info {
    position: fixed;
    top: 350px;
    left: 20px;
    background: rgba(0, 0, 0, 0.9);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid rgba(139, 69, 19, 0.5);
    backdrop-filter: blur(10px);
    z-index: 1;
    width: 220px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

.belts-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    color: #ffd000;
    text-align: center;
}

.belt-btn {
    width: 100%;
    display: block;
    padding: 8px 12px;
    margin: 6px 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: white;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s;
    text-align: left;
}

.belt-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-3px);
    box-shadow: 0 2px 10px rgba(255, 208, 0, 0.3);
    border-color: rgba(255, 208, 0, 0.3);
}

.belt-btn:active {
    transform: translateX(-3px) scale(0.98);
}

.belt-btn.active {
    background: rgba(135, 206, 250, 0.2);
    border-color: rgba(135, 206, 250, 0.5);
    box-shadow: 0 0 15px rgba(135, 206, 250, 0.4);
}

.belt-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    padding: 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
    cursor: pointer;
    user-select: none;
}

.belt-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-3px);
    box-shadow: 0 2px 10px rgba(255, 208, 0, 0.3);
}

.belt-item:active {
    transform: translateX(-3px) scale(0.95);
}

.belt-icon {
    font-size: 1.2em;
    pointer-events: none;
}

.belt-item span {
    pointer-events: none;
}

.belt-item span:last-child {
    font-size: 0.9em;
}

/* Estrellas de fondo */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent);
    background-size: 200% 200%;
    animation: twinkle 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Responsive */
@media (max-width: 1200px) {
    h1 {
        font-size: clamp(1.3em, 3.5vw, 2em);
        padding: 12px 25px;
    }

    .solar-system {
        width: min(700px, 85vw);
        height: min(700px, 85vw);
    }

    .mission-box {
        width: 200px;
        padding: 10px 12px;
    }

    .mission-box h1 {
        font-size: 0.85em;
    }

    .controls {
        width: 170px;
        padding: 12px;
    }

    .controls button {
        padding: 9px 10px;
        font-size: 0.85em;
    }

    .achievements {
        width: 200px;
        padding: 12px;
        top: 85px;
    }

    .achievements h3 {
        font-size: 1em;
    }

    #visitedPlanets {
        font-size: 0.8em;
    }

    .badge {
        width: 26px;
        height: 26px;
        font-size: 0.7em;
    }
    
    .belts-info {
        top: 260px;
        width: 200px;
        padding: 12px;
        font-size: 0.9em;
    }
}

@media (max-width: 900px) {
    .solar-system {
        width: min(550px, 80vw);
        height: min(550px, 80vw);
    }

    h1 {
        font-size: clamp(1.2em, 3vw, 1.8em);
        padding: 10px 20px;
        top: 10px;
        white-space: normal;
        max-width: 90%;
    }
    
    .controls {
        top: 10px;
        right: 10px;
        width: 160px;
        padding: 12px;
        gap: 6px;
    }

    .controls button {
        padding: 8px 10px;
        font-size: 0.8em;
    }
    
    .mission-box {
        top: 10px;
        left: 10px;
        width: 180px;
        padding: 10px 12px;
    }

    .mission-box h1 {
        font-size: 0.8em;
    }

    .achievements {
        top: 75px;
        left: 10px;
        width: 180px;
        padding: 12px;
    }

    .achievements h3 {
        font-size: 0.95em;
    }

    #visitedPlanets {
        font-size: 0.75em;
    }

    .badge {
        width: 24px;
        height: 24px;
        font-size: 0.65em;
    }
    
    .belts-info {
        top: 305px;
        left: 10px;
        width: 180px;
        padding: 12px;
    }

    .fun-fact {
        bottom: 12px;
        padding: 10px 20px;
    }
}

@media (max-width: 600px) {
    body {
        overflow-y: auto;
    }
    
    .container {
        padding: 10px 5px 130px 5px;
    }
    
    .solar-system {
        width: min(400px, 90vw);
        height: min(400px, 90vw);
        margin: 10px auto 60px auto;
    }

    h1 {
        font-size: 1.2em;
        margin: 3px 0;
        padding: 0 10px;
    }

    .controls {
        top: 5px;
        right: 5px;
        width: 140px;
        padding: 10px;
        gap: 4px;
    }

    .controls button {
        padding: 6px 8px;
        font-size: 0.7em;
    }

    .info-panel {
        width: 90%;
        right: -100%;
        max-height: 70vh;
    }

    .info-panel.active {
        right: 5%;
    }

    .achievements {
        top: 5px;
        left: 5px;
        width: 160px;
        padding: 10px;
        font-size: 0.75em;
    }
    
    .achievements h3 {
        font-size: 0.9em;
        margin-bottom: 8px;
    }

    #visitedPlanets {
        font-size: 0.7em;
        margin: 8px 0;
    }
    
    .belts-info {
        top: 220px;
        left: 5px;
        width: 160px;
        padding: 8px;
        font-size: 0.75em;
        background: rgba(0, 0, 0, 0.95);
    }
    
    .belts-info h3 {
        font-size: 0.95em;
        margin-bottom: 5px;
    }

    .fun-fact {
        bottom: 8px;
        padding: 8px 15px;
        max-width: calc(100vw - 20px);
        min-width: auto;
    }
    
    #factText {
        font-size: 0.8em;
        line-height: 1.3;
    }
    
    .badges {
        gap: 3px;
    }
    
    .badge {
        width: 20px;
        height: 20px;
        font-size: 0.6em;
    }
    
    .belt-btn {
        padding: 6px 10px;
        margin: 4px 0;
        font-size: 0.85em;
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    .container {
        padding: 5px 0 140px 0;
    }

    .solar-system {
        width: min(320px, 95vw);
        height: min(320px, 95vw);
        margin: 5px auto 50px auto;
    }

    h1 {
        font-size: 1.1em;
        margin: 2px 0 3px 0;
    }

    .controls {
        top: 3px;
        right: 3px;
        width: 120px;
        padding: 8px;
        gap: 3px;
    }

    .controls button {
        padding: 5px 6px;
        font-size: 0.65em;
    }

    .achievements {
        top: 3px;
        left: 3px;
        width: 140px;
        padding: 8px;
    }

    .achievements h3 {
        font-size: 0.85em;
        margin-bottom: 6px;
    }

    #visitedPlanets {
        font-size: 0.65em;
        margin: 6px 0;
    }

    .badges {
        gap: 3px;
    }

    .badge {
        width: 18px;
        height: 18px;
        font-size: 0.55em;
    }

    .belts-info {
        top: 200px;
        left: 3px;
        width: 140px;
        padding: 6px;
    }

    .fun-fact {
        bottom: 5px;
        padding: 6px 10px;
    }

    #factText {
        font-size: 0.75em;
    }
}

/* Powered by Marval */
.powered-by {
    position: fixed;
    bottom: 10px;
    right: 20px;
    z-index: 100;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.powered-by:hover {
    opacity: 1;
}

.powered-by a {
    color: #ffd000;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    border: 1px solid rgba(255, 208, 0, 0.3);
    backdrop-filter: blur(5px);
    transition: all 0.3s;
    text-shadow: 0 0 10px rgba(255, 208, 0, 0.5);
}

.powered-by a:hover {
    background: rgba(255, 208, 0, 0.1);
    border-color: rgba(255, 208, 0, 0.6);
    box-shadow: 0 0 15px rgba(255, 208, 0, 0.4);
    transform: translateY(-2px);
}

/* Responsive para powered-by */
@media (max-width: 768px) {
    .powered-by {
        bottom: 5px;
        right: 10px;
    }
    
    .powered-by a {
        font-size: 0.75em;
        padding: 6px 10px;
    }
}

/* Modal de advertencia para móviles */
.mobile-warning {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.5s ease-out;
}

.mobile-warning.show {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.mobile-warning-content {
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.98) 0%, rgba(20, 25, 50, 0.98) 100%);
    border: 3px solid rgba(255, 208, 0, 0.4);
    border-radius: 20px;
    padding: 30px 25px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8),
                0 0 60px rgba(255, 208, 0, 0.2);
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mobile-warning-icon {
    font-size: 4em;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.mobile-warning-content h2 {
    color: #ffd000;
    font-size: 1.5em;
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(255, 208, 0, 0.5);
}

.mobile-warning-content p {
    color: #ffffff;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* Instrucción visual de rotación */
.rotate-instruction {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
    font-size: 2.5em;
}

.phone-icon {
    animation: tilt 1.5s ease-in-out infinite;
}

@keyframes tilt {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(90deg);
    }
}

.arrow-icon {
    color: #ffd000;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.phone-horizontal {
    transform: rotate(90deg);
    color: #00ff88;
    animation: glow 1.5s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(0, 255, 136, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(0, 255, 136, 0.9));
    }
}

.mobile-warning-content small {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8em;
    font-style: italic;
    margin-top: 15px;
}

/* Ocultar el warning en pantallas grandes */
@media (min-width: 769px) {
    .mobile-warning {
        display: none !important;
    }
}

/* Optimización para móviles en modo horizontal (landscape) */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
    body {
        overflow-y: auto;
    }
    
    .container {
        padding: 5px 10px 60px 10px;
    }
    
    .solar-system {
        width: min(500px, 70vh);
        height: min(500px, 70vh);
        margin: 10px auto 40px auto;
    }
    
    .mission-box {
        top: 5px;
        left: 5px;
        padding: 4px 8px;
        width: 140px;
        min-height: 28px;
    }
    
    .mission-box h1 {
        font-size: 0.58em;
        letter-spacing: 0.5px;
        line-height: 1.2;
    }
    
    .achievements {
        top: 75px;
        left: 5px;
        width: 140px;
        padding: 6px 8px;
    }
    
    .achievements h3 {
        font-size: 0.75em;
        margin-bottom: 6px;
    }
    
    .badge {
        width: 16px;
        height: 16px;
        font-size: 0.5em;
    }
    
    #visitedPlanets {
        font-size: 0.6em;
        margin: 6px 0 0 0;
    }
    
    .belts-info {
        top: 196px;
        left: 5px;
        width: 140px;
        padding: 6px 8px;
    }
    
    .belts-info h3 {
        font-size: 0.75em;
        margin-bottom: 6px;
    }
    
    .belt-btn {
        padding: 4px 6px;
        font-size: 0.7em;
        margin: 4px 0;
    }
    
    .controls {
        top: 5px;
        right: 5px;
        width: 130px;
        padding: 6px;
        gap: 3px;
    }
    
    .controls button {
        padding: 5px 6px;
        font-size: 0.65em;
    }
    
    /* Ocultar fun-fact en móvil horizontal para dar más espacio */
    .fun-fact {
        display: none !important;
    }
    
    .powered-by {
        bottom: 3px;
        right: 5px;
    }
    
    .powered-by a {
        font-size: 0.6em;
        padding: 3px 6px;
    }
    
    /* Info panel mejorado para móvil horizontal */
    .info-panel {
        width: 80%;
        max-width: 400px;
        max-height: 70vh;
        padding: 35px 12px 12px 12px;
        right: -450px;
        overflow-y: auto;
    }
    
    .info-panel.active {
        right: 10px;
    }
    
    /* Botón de cerrar fijo en la parte superior */
    .close-btn {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(10, 14, 39, 0.98);
        border-radius: 18px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.45);
        padding: 32px 28px 24px 28px;
        width: 370px;
        max-width: 90vw;
        z-index: 20;
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        background: rgba(255, 255, 255, 0.2);
        transform: rotate(90deg);
    }
    
    .info-panel h2 {
        font-size: 1.1em;
        margin-top: 0;
    }
    
    .info-panel p {
        font-size: 0.8em;
    }
    
    .fun-fact-section h3 {
        font-size: 0.9em;
    }
    
    .fun-fact-section p {
        font-size: 0.75em;
    }
    
    #newFactBtn {
        font-size: 0.75em;
        padding: 6px 12px;
    }
    
    .sun {
        width: 50px;
        height: 50px;
    }
    
    .planet-label {
        font-size: 0.6em;
    }
}
