:root {
    --nasa-blue: #0b3d91;
    --nasa-red: #fc3d21;
    --venezuela-yellow: #FFCC00;
    --venezuela-blue: #00247D;
    --venezuela-red: #CF142B;
    --dark-bg: #0a0a1a;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-light: #ffffff;
    --border-radius: 15px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #000000 50%, #1a1a2e 100%);
    color: var(--text-light);
    min-height: 100vh;
    line-height: 1.6;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 5s infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 1;
    }
}

/* Navegación */
.main-nav {
    background: rgba(11, 61, 145, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 204, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    color: var(--venezuela-yellow);
    font-size: 1.5em;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    border: 1px solid transparent;
}

.nav-link:hover {
    background: rgba(255, 204, 0, 0.1);
    color: var(--venezuela-yellow);
    border-color: rgba(255, 204, 0, 0.3);
    transform: translateY(-2px);
}

.nav-link.active {
    background: var(--venezuela-yellow);
    color: var(--nasa-blue);
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.4);
    font-weight: bold;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--venezuela-yellow);
    font-size: 1.5em;
    cursor: pointer;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    padding: 40px 0;
    background: rgba(11, 61, 145, 0.3);
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 2px solid var(--venezuela-yellow);
}

.header h1 {
    font-size: 2.8em;
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--venezuela-yellow), var(--venezuela-blue), var(--venezuela-red));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--venezuela-yellow);
    margin: 10px 0;
    font-size: 1.2em;
}

/* Navegación en grid */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.nav-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.nav-card:hover {
    transform: translateY(-10px);
    border-color: var(--venezuela-yellow);
    box-shadow: 0 10px 30px rgba(255, 204, 0, 0.2);
}

.nav-card i {
    font-size: 3em;
    margin-bottom: 15px;
    color: var(--venezuela-yellow);
}

.nav-card h3 {
    margin-bottom: 10px;
    color: var(--venezuela-yellow);
}

.nav-card p {
    opacity: 0.8;
}

/* Secciones */
.section {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: var(--venezuela-yellow);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* APOD */
.apod-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.apod-image img,
.apod-image iframe {
    width: 100%;
    border-radius: 10px;
    max-height: 400px;
    object-fit: cover;
}

.apod-info h3 {
    color: var(--venezuela-yellow);
    margin-bottom: 10px;
}

.apod-date {
    color: #ccc;
    margin-bottom: 15px;
}

.apod-explanation {
    line-height: 1.8;
}

/* Botones */
.nav-btn {
    background: linear-gradient(45deg, var(--nasa-red), var(--venezuela-red));
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(252, 61, 33, 0.4);
}

/* Footer */
.main-footer {
    background: rgba(0, 0, 0, 0.8);
    margin-top: 50px;
    padding: 40px 0 20px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h4 {
    color: var(--venezuela-yellow);
    margin-bottom: 15px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--venezuela-yellow);
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--venezuela-yellow);
    color: var(--nasa-blue);
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
}

/* Sistema Solar */
.solar-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.solar-system-3d {
    position: relative;
    height: 500px;
    margin: 40px 0;
    perspective: 1000px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.sun {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #FFD700, #FF4500);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 50px #FF4500;
    animation: sun-glow 3s infinite alternate;
    z-index: 10;
}

@keyframes sun-glow {
    0% {
        box-shadow: 0 0 50px #FF4500;
    }

    100% {
        box-shadow: 0 0 80px #FFD700, 0 0 120px #FF4500;
    }
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.planet {
    position: absolute;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
    z-index: 5;
}

.planet:hover {
    transform: scale(1.5);
    z-index: 20;
}

.planet-info-panel {
    background: rgba(0, 0, 0, 0.9);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 20px;
    border: 1px solid var(--venezuela-yellow);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.comparison-card {
    background: var(--card-bg);
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.comparison-card:hover {
    border-color: var(--venezuela-yellow);
    transform: translateY(-5px);
}

.planet-color {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.planet-stats {
    margin-top: 10px;
}

.stat {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.stat-label {
    color: #ccc;
}

/* ISS en Vivo */
.streams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.stream-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    position: relative;
}

.live-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--nasa-red);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    z-index: 10;
    animation: pulse 2s infinite;
    font-size: 0.8em;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.stream-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    margin: 15px 0;
}

.stream-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.stream-description {
    color: #ccc;
    font-size: 0.9em;
}

.iss-data {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.data-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.data-card i {
    font-size: 2em;
    color: var(--venezuela-yellow);
    margin-bottom: 10px;
}

.data-card h4 {
    margin-bottom: 10px;
    color: var(--venezuela-yellow);
}

/* Observatorio Estelar */
.star-map-container {
    height: 500px;
    background: #000;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.constellation-search {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.constellation-search input {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.constellation-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.constellation-btn {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.constellation-btn:hover,
.constellation-btn.active {
    background: var(--venezuela-yellow);
    color: var(--nasa-blue);
}

/* Quiz */
.quiz-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
}

.question {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: var(--venezuela-yellow);
}

.options {
    display: grid;
    gap: 10px;
    margin-bottom: 15px;
}

.option {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option:hover {
    background: rgba(255, 255, 255, 0.2);
}

.option.correct {
    background: rgba(76, 175, 80, 0.3);
    border-left: 4px solid #4CAF50;
}

.option.incorrect {
    background: rgba(244, 67, 54, 0.3);
    border-left: 4px solid #F44336;
}

.explanation {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    border-left: 4px solid var(--venezuela-yellow);
}

.quiz-results {
    text-align: center;
    padding: 30px;
}

.score {
    font-size: 3em;
    color: var(--venezuela-yellow);
    margin: 20px 0;
}

/* Simuladores */
.simulators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.simulator-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.simulator-card:hover {
    transform: translateY(-10px);
    border-color: var(--venezuela-yellow);
}

.simulator-card i {
    font-size: 4em;
    color: var(--venezuela-yellow);
    margin-bottom: 15px;
}

.simulator-card h3 {
    margin-bottom: 10px;
    color: var(--venezuela-yellow);
}

/* Misiones NASA */
.missions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.mission-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-5px);
}

.mission-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.mission-content {
    padding: 20px;
}

.mission-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
    margin-bottom: 10px;
}

.status-active {
    background: rgba(76, 175, 80, 0.3);
    color: #4CAF50;
}

.status-completed {
    background: rgba(33, 150, 243, 0.3);
    color: #2196F3;
}

.status-future {
    background: rgba(255, 193, 7, 0.3);
    color: #FFC107;
}

.error-message {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #ccc;
}

.loading i {
    font-size: 2em;
    margin-bottom: 10px;
    color: var(--venezuela-yellow);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
        height: 70px;
        position: relative;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(11, 61, 145, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        border-bottom: 2px solid var(--venezuela-yellow);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-grid {
        grid-template-columns: 1fr;
    }

    .apod-container {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 2em;
    }

    .solar-system-3d {
        height: 300px;
    }

    .streams-grid {
        grid-template-columns: 1fr;
    }

    .solar-controls {
        justify-content: center;
    }
}

/* Venezuela History */
.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.history-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--venezuela-red);
}

.history-item h3 {
    color: var(--venezuela-yellow);
    margin-bottom: 10px;
}

.figures-list {
    list-style: none;
    padding: 0;
}

.figures-list li {
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.figures-list li::before {
    content: '•';
    color: var(--venezuela-yellow);
    position: absolute;
    left: 0;
}