/* ========================
   CARDS - SISTEMA SOLAR
======================== */

/* Card general */
.card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.15);
}

/* Título flotante */
.card .title {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-weight: bold;
    color: #083d77;
    font-size: 1.2rem;
    opacity: 0.7;
}

/* Info que aparece al hover */
.card .info {
    margin-top: 1rem;
    text-align: left;
}

.card .info h3 {
    font-size: 1.3rem;
    font-weight: bold;
    color: #083d77;
    margin-bottom: 0.5rem;
}

.card .info p {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.card .info a {
    color: #f97316; /* naranja */
    text-decoration: underline;
    font-weight: 500;
}

.card .info a:hover {
    color: #fb923c;
}

/* ========================
   SISTEMA SOLAR
======================== */

/* contenedor general del sistema solar */
.solar-system {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem auto;
}

/* órbitas */
.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center center;
    border-radius: 50%;
}

/* Animaciones de rotación */
.earth-orbit {
    width: 100px;
    height: 100px;
    margin-left: -50px;
    margin-top: -50px;
    animation: rotate-earth 10s linear infinite;
}

.venus-orbit {
    width: 70px;
    height: 70px;
    margin-left: -35px;
    margin-top: -35px;
    animation: rotate-venus 7s linear infinite reverse;
}

.mercury-orbit {
    width: 40px;
    height: 40px;
    margin-left: -20px;
    margin-top: -20px;
    animation: rotate-mercury 5s linear infinite;
}

/* planetas */
.planet {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.earth { background: #3b82f6; top: 0; left: 50%; transform: translateX(-50%); }
.venus { background: #f59e0b; top: 0; left: 50%; transform: translateX(-50%); }
.mercury { background: #6b7280; top: 0; left: 50%; transform: translateX(-50%); }

/* sol */
.sun {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #fbbf24;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px #fbbf24;
}

/* Animaciones */
@keyframes rotate-earth {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rotate-venus {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rotate-mercury {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .solar-system {
        width: 120px;
        height: 120px;
    }

    .earth-orbit { width: 80px; height: 80px; margin-left: -40px; margin-top: -40px; }
    .venus-orbit { width: 50px; height: 50px; margin-left: -25px; margin-top: -25px; }
    .mercury-orbit { width: 30px; height: 30px; margin-left: -15px; margin-top: -15px; }

    .planet { width: 10px; height: 10px; }
    .sun { width: 16px; height: 16px; }
}
