 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background-color: #020208;
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        /* Fondo de estrellas */
        .stars {
            position: absolute;
            width: 1px;
            height: 1px;
            background: transparent;
            z-index: 1;
        }

        /* Contenedor principal que escala automáticamente según la pantalla */
        .solar-container {
            position: relative;
            width: 900px;
            height: 900px;
            display: flex;
            justify-content: center;
            align-items: center;
            transform: scale(0.8); /* Escala base por defecto */
            transform-origin: center;
        }

        /* El Sol */
        .sun {
            position: absolute;
            width: 80px;
            height: 80px;
            background: radial-gradient(circle, #ffcc00, #ff6600, #cc0000);
            border-radius: 50%;
            box-shadow: 0 0 60px #ff9900, 0 0 120px #ff3300;
            z-index: 10;
        }

        /* Estilos base para las Órbitas */
        .orbit {
            position: absolute;
            border: 1px dashed rgba(255, 255, 255, 0.15);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: flex-start;
        }

        /* Planetas y sus contenedores rotatorios */
        .planet {
            border-radius: 50%;
            position: absolute;
        }

        /* --- ÓRBITAS Y PLANETAS --- */

        /* Mercurio */
        .orbit-mercury {
            width: 140px;
            height: 140px;
            animation: spin 3s linear infinite;
        }
        .mercury {
            width: 10px;
            height: 10px;
            background: #a8a8a8;
            top: -5px;
        }

        /* Venus */
        .orbit-venus {
            width: 220px;
            height: 220px;
            animation: spin 6s linear infinite;
        }
        .venus {
            width: 16px;
            height: 16px;
            background: #e3bb76;
            top: -8px;
        }

        /* Tierra */
        .orbit-earth {
            width: 320px;
            height: 320px;
            animation: spin 10s linear infinite;
        }
        .earth {
            width: 20px;
            height: 20px;
            background: radial-gradient(circle at 30% 30%, #3b82f6, #1d4ed8);
            top: -10px;
            position: relative;
        }

        /* Órbita de la Luna (gira alrededor de la Tierra) */
        .moon-orbit {
            position: absolute;
            width: 46px;
            height: 46px;
            border: 1px dashed rgba(255,255,255,0.2);
            border-radius: 50%;
            top: -13px;
            left: -13px;
            animation: spin 1.5s linear infinite;
        }
        .moon {
            width: 6px;
            height: 6px;
            background: #cbd5e1;
            border-radius: 50%;
            position: absolute;
            top: -3px;
        }

        /* Marte */
        .orbit-mars {
            width: 440px;
            height: 440px;
            animation: spin 16s linear infinite;
        }
        .mars {
            width: 14px;
            height: 14px;
            background: #ef4444;
            top: -7px;
        }

        /* Júpiter */
        .orbit-jupiter {
            width: 580px;
            height: 580px;
            animation: spin 25s linear infinite;
        }
        .jupiter {
            width: 36px;
            height: 36px;
            background: radial-gradient(circle, #d97706, #78350f);
            top: -18px;
        }

        /* Saturno */
        .orbit-saturn {
            width: 720px;
            height: 720px;
            animation: spin 35s linear infinite;
        }
        .saturn {
            width: 30px;
            height: 30px;
            background: #fde047;
            top: -15px;
            position: relative;
        }
        /* Anillo de Saturno */
        .saturn::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) rotate(25deg);
            width: 50px;
            height: 14px;
            border: 3px solid rgba(234, 179, 8, 0.6);
            border-radius: 50%;
        }

        /* Animación general de rotación */
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Título Inferior */
        .title {
            position: absolute;
            bottom: 20px;
            color: rgba(255, 255, 255, 0.5);
            font-size: 12px;
            letter-spacing: 2px;
            text-transform: uppercase;
            text-align: center;
            width: 100%;
        }

        /* --- MEDIA QUERIES PARA ADAPTAR A CELULARES --- */
        @media (max-width: 950px) {
            .solar-container {
                transform: scale(0.62); /* Se reduce para pantallas medianas o tablets */
            }
        }

        @media (max-width: 600px) {
            .solar-container {
                transform: scale(0.42); /* Se reduce de forma óptima para smartphones */
            }
        }