 /* ==================== VARIABLES CSS ==================== */
        :root {
            /* Colores espaciales */
            --space-primary: #0a0a1a;
            --space-secondary: #1a1a2e;
            --space-accent: #16213e;
            --cosmic-blue: #0f3460;
            --nebula-purple: #533483;
            --star-white: #ffffff;
            --cosmic-cyan: #00d4ff;
            --magenta-glow: #ff0080;
            --gold-accent: #ffd700;
            
            /* Gradientes */
            --cosmic-gradient: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 50%, #16213e 100%);
            --nebula-gradient: linear-gradient(45deg, #533483 0%, #0f3460 50%, #00d4ff 100%);
            --hero-gradient: radial-gradient(ellipse at center, #16213e 0%, #0a0a1a 70%);
            
            /* Tipografía */
            --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            --font-headers: 'Trebuchet MS', 'Lucida Grande', 'Lucida Sans', sans-serif;
            
            /* Espaciado */
            --spacing-xs: 0.5rem;
            --spacing-sm: 1rem;
            --spacing-md: 2rem;
            --spacing-lg: 3rem;
            --spacing-xl: 4rem;
            
            /* Sombras */
            --glow-cyan: 0 0 20px rgba(0, 212, 255, 0.5);
            --glow-magenta: 0 0 20px rgba(255, 0, 128, 0.5);
            --cosmic-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            
            /* Transiciones */
            --transition-fast: 0.2s ease;
            --transition-medium: 0.4s ease;
            --transition-slow: 0.6s ease;
        }

        /* ==================== RESET Y BASE ==================== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: var(--font-primary);
            background: var(--cosmic-gradient);
            color: var(--star-white);
            line-height: 1.6;
            overflow-x: hidden;
            position: relative;
        }

        /* Fondo animado con partículas */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(2px 2px at 20px 30px, var(--cosmic-cyan), transparent),
                radial-gradient(2px 2px at 40px 70px, var(--star-white), transparent),
                radial-gradient(1px 1px at 90px 40px, var(--cosmic-cyan), transparent),
                radial-gradient(1px 1px at 130px 80px, var(--star-white), transparent),
                radial-gradient(2px 2px at 160px 30px, var(--cosmic-cyan), transparent);
            background-repeat: repeat;
            background-size: 200px 100px;
            animation: sparkle 10s linear infinite;
            pointer-events: none;
            z-index: -2;
        }

        @keyframes sparkle {
            from { transform: translateY(0px); }
            to { transform: translateY(-100px); }
        }

        /* ==================== NAVEGACIÓN ==================== */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background: rgba(10, 10, 26, 0.95);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(0, 212, 255, 0.3);
            z-index: 1000;
            transition: var(--transition-medium);
        }

        .nav-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 var(--spacing-sm);
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 70px;
        }

        .logo {
            font-size: 1.5rem;
            font-weight: bold;
            background: var(--nebula-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            display: flex;
            align-items: center;
            gap: var(--spacing-xs);
        }

        .logo::before {
            content: '🚀';
            font-size: 1.2rem;
            animation: rotate 4s linear infinite;
        }

        @keyframes rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .nav-links {
            display: flex;
            list-style: none;
            gap: var(--spacing-md);
        }

        .nav-link {
            color: var(--star-white);
            text-decoration: none;
            padding: var(--spacing-xs) var(--spacing-sm);
            border-radius: 25px;
            transition: var(--transition-fast);
            position: relative;
            overflow: hidden;
        }

        .nav-link:hover {
            background: rgba(0, 212, 255, 0.1);
            transform: translateY(-2px);
            box-shadow: var(--glow-cyan);
        }

        .nav-link.active {
            background: var(--nebula-gradient);
            box-shadow: var(--glow-cyan);
        }

        .mobile-menu {
            display: none;
            background: none;
            border: none;
            color: var(--star-white);
            font-size: 1.5rem;
            cursor: pointer;
        }

        /* ==================== CONTENEDOR PRINCIPAL ==================== */
        .main-container {
            margin-top: 70px;
            min-height: calc(100vh - 70px);
        }

        .section {
            display: none;
            min-height: calc(100vh - 70px);
            padding: var(--spacing-xl) 0;
        }

        .section.active {
            display: block;
            animation: fadeInUp 0.6s ease;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 var(--spacing-sm);
        }

        /* ==================== HERO SECTION ==================== */
        .hero {
            position: relative;
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            background: var(--hero-gradient);
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                radial-gradient(circle at 30% 70%, rgba(255, 0, 128, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
            animation: pulse 4s ease-in-out infinite alternate;
        }

        @keyframes pulse {
            from { opacity: 0.5; }
            to { opacity: 1; }
        }

        .hero-content {
            position: relative;
            z-index: 2;
            max-width: 800px;
            padding: var(--spacing-md);
        }

        .hero h1 {
            font-size: clamp(2.5rem, 5vw, 4rem);
            font-family: var(--font-headers);
            margin-bottom: var(--spacing-md);
            background: var(--nebula-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: glow 2s ease-in-out infinite alternate;
        }

        @keyframes glow {
            from { filter: brightness(1); }
            to { filter: brightness(1.2); }
        }

        .hero p {
            font-size: 1.25rem;
            margin-bottom: var(--spacing-lg);
            color: rgba(255, 255, 255, 0.8);
            line-height: 1.8;
        }

        .hero-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: var(--spacing-md);
            margin: var(--spacing-lg) 0;
        }

        .stat-card {
            background: rgba(26, 26, 46, 0.6);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(0, 212, 255, 0.3);
            border-radius: 15px;
            padding: var(--spacing-md);
            text-align: center;
            transition: var(--transition-medium);
            position: relative;
            overflow: hidden;
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: conic-gradient(transparent, rgba(0, 212, 255, 0.1), transparent);
            animation: rotate 6s linear infinite;
            z-index: -1;
        }

        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--glow-cyan);
        }

        .stat-number {
            font-size: 2.5rem;
            font-weight: bold;
            color: var(--cosmic-cyan);
            display: block;
        }

        .stat-label {
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.7);
            margin-top: var(--spacing-xs);
        }

        .cta-buttons {
            display: flex;
            gap: var(--spacing-md);
            justify-content: center;
            flex-wrap: wrap;
            margin-top: var(--spacing-lg);
        }

        .btn {
            padding: 15px 30px;
            border: none;
            border-radius: 50px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition-medium);
            text-decoration: none;
            display: inline-block;
            position: relative;
            overflow: hidden;
        }

        .btn-primary {
            background: var(--nebula-gradient);
            color: var(--star-white);
            box-shadow: var(--glow-cyan);
        }

        .btn-secondary {
            background: transparent;
            color: var(--star-white);
            border: 2px solid var(--cosmic-cyan);
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: var(--glow-magenta);
        }

        /* ==================== SECCIONES DE CONTENIDO ==================== */
        .section-header {
            text-align: center;
            margin-bottom: var(--spacing-xl);
        }

        .section-title {
            font-size: clamp(2rem, 4vw, 3rem);
            font-family: var(--font-headers);
            margin-bottom: var(--spacing-md);
            background: var(--nebula-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .section-subtitle {
            font-size: 1.2rem;
            color: rgba(255, 255, 255, 0.7);
            max-width: 600px;
            margin: 0 auto;
        }

        /* ==================== TARJETAS Y GRIDS ==================== */
        .grid {
            display: grid;
            gap: var(--spacing-md);
        }

        .grid-2 {
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        }

        .grid-3 {
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        }

        .grid-4 {
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        }

        .card {
            background: rgba(26, 26, 46, 0.8);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(0, 212, 255, 0.2);
            border-radius: 20px;
            padding: var(--spacing-md);
            transition: var(--transition-medium);
            position: relative;
            overflow: hidden;
        }

        .card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
            transition: left 0.5s;
        }

        .card:hover::before {
            left: 100%;
        }

        .card:hover {
            transform: translateY(-10px);
            box-shadow: var(--glow-cyan);
            border-color: var(--cosmic-cyan);
        }

        .card-image {
            width: 100%;
            height: 200px;
            object-fit: cover;
            border-radius: 15px;
            margin-bottom: var(--spacing-sm);
        }

        .card-title {
            font-size: 1.3rem;
            font-weight: bold;
            margin-bottom: var(--spacing-sm);
            color: var(--cosmic-cyan);
        }

        .card-content {
            color: rgba(255, 255, 255, 0.8);
            line-height: 1.6;
        }

        /* ==================== VISUALIZACIÓN DE DATOS ==================== */
        .data-dashboard {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
            gap: var(--spacing-lg);
            margin-top: var(--spacing-lg);
        }

        .chart-container {
            background: rgba(26, 26, 46, 0.8);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(0, 212, 255, 0.2);
            border-radius: 20px;
            padding: var(--spacing-md);
            height: 400px;
            position: relative;
        }

        .chart-title {
            font-size: 1.3rem;
            font-weight: bold;
            margin-bottom: var(--spacing-md);
            color: var(--cosmic-cyan);
            text-align: center;
        }

        .chart-canvas {
            width: 100%;
            height: 300px;
            border-radius: 10px;
        }

        /* ==================== GALERÍA ==================== */
        .gallery-filters {
            display: flex;
            gap: var(--spacing-sm);
            justify-content: center;
            margin-bottom: var(--spacing-lg);
            flex-wrap: wrap;
        }

        .filter-btn {
            padding: 10px 20px;
            border: 2px solid var(--cosmic-cyan);
            background: transparent;
            color: var(--star-white);
            border-radius: 25px;
            cursor: pointer;
            transition: var(--transition-fast);
            font-weight: 500;
        }

        .filter-btn:hover,
        .filter-btn.active {
            background: var(--cosmic-cyan);
            color: var(--space-primary);
            transform: translateY(-2px);
            box-shadow: var(--glow-cyan);
        }

        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: var(--spacing-md);
            margin-bottom: var(--spacing-lg);
        }

        .gallery-item {
            position: relative;
            border-radius: 15px;
            overflow: hidden;
            aspect-ratio: 1;
            cursor: pointer;
            transition: var(--transition-medium);
        }

        .gallery-item:hover {
            transform: scale(1.05);
            box-shadow: var(--glow-cyan);
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition-medium);
        }

        .gallery-item:hover img {
            transform: scale(1.1);
        }

        .gallery-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
            color: var(--star-white);
            padding: var(--spacing-sm);
            transform: translateY(100%);
            transition: var(--transition-medium);
        }

        .gallery-item:hover .gallery-overlay {
            transform: translateY(0);
        }

        /* ==================== LIGHTBOX ==================== */
        .lightbox {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.95);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            backdrop-filter: blur(10px);
        }

        .lightbox.active {
            display: flex;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .lightbox-content {
            position: relative;
            max-width: 90vw;
            max-height: 90vh;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        }

        .lightbox-image {
            width: 100%;
            height: auto;
            max-height: 80vh;
            object-fit: contain;
        }

        .lightbox-info {
            background: rgba(26, 26, 46, 0.9);
            padding: var(--spacing-md);
            color: var(--star-white);
        }

        .lightbox-close {
            position: absolute;
            top: 20px;
            right: 20px;
            background: none;
            border: none;
            color: var(--star-white);
            font-size: 2rem;
            cursor: pointer;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 0, 128, 0.8);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition-fast);
        }

        .lightbox-close:hover {
            background: var(--magenta-glow);
            transform: scale(1.1);
        }

        /* ==================== DATOS EN TIEMPO REAL ==================== */
        .realtime-feed {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: var(--spacing-md);
        }

        .feed-item {
            background: rgba(26, 26, 46, 0.8);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(0, 212, 255, 0.2);
            border-radius: 15px;
            padding: var(--spacing-md);
            position: relative;
            overflow: hidden;
        }

        .feed-item::before {
            content: 'LIVE';
            position: absolute;
            top: 10px;
            right: 10px;
            background: var(--magenta-glow);
            color: var(--star-white);
            padding: 5px 10px;
            border-radius: 15px;
            font-size: 0.7rem;
            font-weight: bold;
            animation: pulse 2s ease-in-out infinite;
        }

        .feed-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: var(--spacing-sm);
        }

        .feed-type {
            background: var(--cosmic-cyan);
            color: var(--space-primary);
            padding: 5px 12px;
            border-radius: 15px;
            font-size: 0.8rem;
            font-weight: bold;
        }

        .feed-time {
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.9rem;
        }

        .feed-content {
            color: rgba(255, 255, 255, 0.8);
            line-height: 1.6;
        }

        /* ==================== FORMULARIOS ==================== */
        .form-group {
            margin-bottom: var(--spacing-md);
        }

        .form-label {
            display: block;
            margin-bottom: var(--spacing-xs);
            color: var(--cosmic-cyan);
            font-weight: 600;
        }

        .form-input,
        .form-textarea {
            width: 100%;
            padding: 15px;
            border: 2px solid rgba(0, 212, 255, 0.3);
            border-radius: 10px;
            background: rgba(26, 26, 46, 0.8);
            color: var(--star-white);
            font-size: 1rem;
            transition: var(--transition-fast);
        }

        .form-input:focus,
        .form-textarea:focus {
            outline: none;
            border-color: var(--cosmic-cyan);
            box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
        }

        .form-textarea {
            resize: vertical;
            min-height: 120px;
        }

        /* ==================== LOADING STATES ==================== */
        .loading {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: var(--spacing-xl);
        }

        .spinner {
            width: 50px;
            height: 50px;
            border: 3px solid rgba(0, 212, 255, 0.3);
            border-top: 3px solid var(--cosmic-cyan);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .skeleton {
            background: linear-gradient(90deg, rgba(26, 26, 46, 0.8) 25%, rgba(0, 212, 255, 0.1) 50%, rgba(26, 26, 46, 0.8) 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s ease-in-out infinite;
            border-radius: 10px;
        }

        @keyframes shimmer {
            0% { background-position: -200% 0; }
            100% { background-position: 200% 0; }
        }

        /* ==================== SCROLL TO TOP ==================== */
        .scroll-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background: var(--nebula-gradient);
            border: none;
            border-radius: 50%;
            color: var(--star-white);
            font-size: 1.2rem;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition-medium);
            z-index: 1000;
            box-shadow: var(--glow-cyan);
        }

        .scroll-to-top.visible {
            opacity: 1;
            visibility: visible;
        }

        .scroll-to-top:hover {
            transform: translateY(-3px);
            box-shadow: var(--glow-magenta);
        }

        /* ==================== RESPONSIVE DESIGN ==================== */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
                position: absolute;
                top: 70px;
                left: 0;
                right: 0;
                background: rgba(10, 10, 26, 0.98);
                backdrop-filter: blur(20px);
                flex-direction: column;
                padding: var(--spacing-md);
                border-top: 1px solid rgba(0, 212, 255, 0.3);
            }

            .nav-links.active {
                display: flex;
            }

            .mobile-menu {
                display: block;
            }

            .hero-stats {
                grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            }

            .data-dashboard {
                grid-template-columns: 1fr;
            }

            .gallery-grid {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            }

            .cta-buttons {
                flex-direction: column;
                align-items: center;
            }

            .lightbox-content {
                max-width: 95vw;
                max-height: 95vh;
            }
        }

        @media (max-width: 480px) {
            .container {
                padding: 0 var(--spacing-xs);
            }

            .card,
            .feed-item {
                padding: var(--spacing-sm);
            }

            .gallery-filters {
                gap: var(--spacing-xs);
            }

            .filter-btn {
                padding: 8px 15px;
                font-size: 0.9rem;
            }
        }

        /* ==================== ANIMACIONES DE ENTRADA ==================== */
        .fade-in {
            animation: fadeIn 0.8s ease;
        }

        .slide-in-left {
            animation: slideInLeft 0.8s ease;
        }

        .slide-in-right {
            animation: slideInRight 0.8s ease;
        }

        .scale-in {
            animation: scaleIn 0.6s ease;
        }

        @keyframes slideInLeft {
            from {
                opacity: 0;
                transform: translateX(-50px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes slideInRight {
            from {
                opacity: 0;
                transform: translateX(50px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes scaleIn {
            from {
                opacity: 0;
                transform: scale(0.8);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        /* ==================== UTILIDADES ==================== */
        .text-center { text-align: center; }
        .text-left { text-align: left; }
        .text-right { text-align: right; }
        
        .mt-sm { margin-top: var(--spacing-sm); }
        .mt-md { margin-top: var(--spacing-md); }
        .mt-lg { margin-top: var(--spacing-lg); }
        .mt-xl { margin-top: var(--spacing-xl); }
        
        .mb-sm { margin-bottom: var(--spacing-sm); }
        .mb-md { margin-bottom: var(--spacing-md); }
        .mb-lg { margin-bottom: var(--spacing-lg); }
        .mb-xl { margin-bottom: var(--spacing-xl); }
        
        .hidden { display: none; }
        .visible { display: block; }
        
        .error-message {
            background: rgba(255, 0, 128, 0.1);
            border: 1px solid var(--magenta-glow);
            color: var(--magenta-glow);
            padding: var(--spacing-sm);
            border-radius: 10px;
            margin: var(--spacing-sm) 0;
        }
        
        .success-message {
            background: rgba(0, 212, 255, 0.1);
            border: 1px solid var(--cosmic-cyan);
            color: var(--cosmic-cyan);
            padding: var(--spacing-sm);
            border-radius: 10px;
            margin: var(--spacing-sm) 0;
        }