  /* ===============================
           VARIABLES CSS Y CONFIGURACIÓN BASE
        =============================== */
        :root {
            --primary: #2563eb;
            --primary-dark: #1d4ed8;
            --secondary: #f59e0b;
            --accent: #10b981;
            --danger: #ef4444;
            --success: #22c55e;
            --warning: #f59e0b;
            
            --bg-primary: #ffffff;
            --bg-secondary: #f8fafc;
            --bg-tertiary: #e2e8f0;
            --text-primary: #1e293b;
            --text-secondary: #64748b;
            --text-muted: #94a3b8;
            
            --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            --gradient-earth: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
            
            --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
            --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
            --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
            --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
            --shadow-glow: 0 0 20px rgb(37 99 235 / 0.3);
            
            --radius-sm: 0.375rem;
            --radius-md: 0.5rem;
            --radius-lg: 0.75rem;
            --radius-xl: 1rem;
            
            --font-size-xs: 0.75rem;
            --font-size-sm: 0.875rem;
            --font-size-base: 1rem;
            --font-size-lg: 1.125rem;
            --font-size-xl: 1.25rem;
            --font-size-2xl: 1.5rem;
            --font-size-3xl: 1.875rem;
            --font-size-4xl: 2.25rem;
            --font-size-5xl: 3rem;
            
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            --transition-fast: all 0.15s ease;
        }

        /* ===============================
           MODO OSCURO
        =============================== */
        [data-theme="dark"] {
            --bg-primary: #0f172a;
            --bg-secondary: #1e293b;
            --bg-tertiary: #334155;
            --text-primary: #f1f5f9;
            --text-secondary: #cbd5e1;
            --text-muted: #64748b;
        }

        /* ===============================
           RESET Y BASE
        =============================== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
            font-size: 16px;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
            line-height: 1.6;
            color: var(--text-primary);
            background: var(--bg-primary);
            transition: var(--transition);
            overflow-x: hidden;
        }

        /* ===============================
           TIPOGRAFÍA RESPONSIVE
        =============================== */
        .h1 {
            font-size: clamp(2rem, 5vw, 4rem);
            font-weight: 800;
            line-height: 1.1;
            letter-spacing: -0.025em;
        }

        .h2 {
            font-size: clamp(1.5rem, 4vw, 2.5rem);
            font-weight: 700;
            line-height: 1.2;
        }

        .h3 {
            font-size: clamp(1.25rem, 3vw, 1.75rem);
            font-weight: 600;
            line-height: 1.3;
        }

        .h4 {
            font-size: clamp(1.125rem, 2.5vw, 1.375rem);
            font-weight: 600;
        }

        /* ===============================
           COMPONENTES BASE
        =============================== */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1rem;
        }

        .grid {
            display: grid;
            gap: 1.5rem;
        }

        .grid-2 {
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        }

        .grid-3 {
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        }

        .card {
            background: var(--bg-secondary);
            border-radius: var(--radius-lg);
            padding: 1.5rem;
            box-shadow: var(--shadow-md);
            transition: var(--transition);
            border: 1px solid var(--bg-tertiary);
        }

        .card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-xl);
        }

        .glass {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.75rem 1.5rem;
            border-radius: var(--radius-md);
            font-weight: 500;
            text-decoration: none;
            transition: var(--transition);
            border: none;
            cursor: pointer;
            font-size: var(--font-size-sm);
        }

        .btn-primary {
            background: var(--gradient-primary);
            color: white;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-glow);
        }

        .btn-secondary {
            background: var(--bg-tertiary);
            color: var(--text-primary);
            border: 1px solid var(--bg-tertiary);
        }

        .btn-secondary:hover {
            background: var(--text-primary);
            color: var(--bg-primary);
        }

        /* ===============================
           HEADER Y NAVEGACIÓN
        =============================== */
        .header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid var(--bg-tertiary);
            transition: var(--transition);
        }

        .header.scrolled {
            background: rgba(255, 255, 255, 0.95);
            box-shadow: var(--shadow-md);
        }

        .nav {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1rem 0;
        }

        .logo {
            font-size: var(--font-size-xl);
            font-weight: 800;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .nav-links {
            display: flex;
            list-style: none;
            gap: 2rem;
        }

        .nav-links a {
            text-decoration: none;
            color: var(--text-secondary);
            font-weight: 500;
            transition: var(--transition);
            position: relative;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary);
            transition: var(--transition);
        }

        .nav-links a:hover::after,
        .nav-links a.active::after {
            width: 100%;
        }

        .theme-toggle {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0.5rem;
            border-radius: var(--radius-md);
            transition: var(--transition);
        }

        .theme-toggle:hover {
            background: var(--bg-tertiary);
        }

        /* ===============================
           SECCIÓN HERO
        =============================== */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            position: relative;
            overflow: hidden;
            background: var(--gradient-earth);
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.08)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
            opacity: 0.6;
        }

        .hero-content {
            position: relative;
            z-index: 2;
            text-align: center;
            color: white;
        }

        .hero-title {
            margin-bottom: 1.5rem;
        }

        .hero-subtitle {
            font-size: var(--font-size-xl);
            opacity: 0.9;
            margin-bottom: 2rem;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        .hero-cta {
            display: flex;
            gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;
        }

        /* ===============================
           MÉTRICAS SOSTENIBILIDAD
        =============================== */
        .sustainability-metrics {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
            margin-top: 3rem;
        }

        .metric-card {
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: var(--radius-lg);
            padding: 1.5rem;
            text-align: center;
            color: white;
        }

        .metric-value {
            font-size: var(--font-size-3xl);
            font-weight: 800;
            margin-bottom: 0.5rem;
        }

        .metric-label {
            font-size: var(--font-size-sm);
            opacity: 0.9;
        }

        /* ===============================
           SECCIONES TÉCNICAS
        =============================== */
        .tech-section {
            padding: 5rem 0;
            position: relative;
        }

        .tech-section:nth-child(even) {
            background: var(--bg-secondary);
        }

        .tech-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
        }

        .tech-content h2 {
            margin-bottom: 1.5rem;
            color: var(--text-primary);
        }

        .tech-content p {
            margin-bottom: 1.5rem;
            color: var(--text-secondary);
        }

        .benefits-list {
            list-style: none;
            margin-bottom: 2rem;
        }

        .benefits-list li {
            display: flex;
            align-items: center;
            margin-bottom: 0.75rem;
            color: var(--text-secondary);
        }

        .benefits-list li::before {
            content: '✓';
            color: var(--success);
            font-weight: bold;
            margin-right: 0.75rem;
        }

        .tech-demo {
            background: var(--bg-primary);
            border-radius: var(--radius-lg);
            padding: 2rem;
            border: 1px solid var(--bg-tertiary);
        }

        /* ===============================
           CÓDIGO SYNTAX HIGHLIGHTING
        =============================== */
        .code-block {
            position: relative;
            background: #1e293b;
            border-radius: var(--radius-md);
            overflow: hidden;
            margin: 1rem 0;
        }

        .code-header {
            display: flex;
            justify-content: between;
            align-items: center;
            padding: 0.75rem 1rem;
            background: #334155;
            border-bottom: 1px solid #475569;
        }

        .code-lang {
            color: #94a3b8;
            font-size: var(--font-size-sm);
            font-weight: 500;
        }

        .copy-btn {
            background: #475569;
            color: white;
            border: none;
            padding: 0.375rem 0.75rem;
            border-radius: var(--radius-sm);
            font-size: var(--font-size-xs);
            cursor: pointer;
            transition: var(--transition);
        }

        .copy-btn:hover {
            background: #64748b;
        }

        .code-content {
            padding: 1rem;
            font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
            font-size: var(--font-size-sm);
            line-height: 1.5;
            color: #e2e8f0;
            overflow-x: auto;
        }

        .token.keyword { color: #7c3aed; }
        .token.string { color: #10b981; }
        .token.comment { color: #6b7280; }
        .token.function { color: #3b82f6; }
        .token.number { color: #f59e0b; }

        /* ===============================
           GALERÍA DE DEMOS
        =============================== */
        .demos-section {
            padding: 5rem 0;
            background: var(--bg-secondary);
        }

        .demo-card {
            background: var(--bg-primary);
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: var(--shadow-md);
            transition: var(--transition);
        }

        .demo-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-xl);
        }

        .demo-header {
            padding: 1.5rem;
            background: var(--gradient-primary);
            color: white;
        }

        .demo-body {
            padding: 1.5rem;
        }

        .demo-demo {
            background: var(--bg-secondary);
            border-radius: var(--radius-md);
            padding: 1.5rem;
            margin: 1rem 0;
            min-height: 200px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .interactive-button {
            background: var(--gradient-primary);
            color: white;
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: var(--radius-md);
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
        }

        .interactive-button:hover {
            transform: scale(1.05);
        }

        .interactive-button:active {
            transform: scale(0.95);
        }

        /* ===============================
           DASHBOARD DE MÉTRICAS
        =============================== */
        .metrics-dashboard {
            position: fixed;
            bottom: 1rem;
            right: 1rem;
            z-index: 1000;
        }

        .metrics-toggle {
            background: var(--gradient-primary);
            color: white;
            border: none;
            border-radius: 50%;
            width: 60px;
            height: 60px;
            font-size: 1.5rem;
            cursor: pointer;
            box-shadow: var(--shadow-lg);
            transition: var(--transition);
        }

        .metrics-toggle:hover {
            transform: scale(1.1);
        }

        .metrics-panel {
            position: absolute;
            bottom: 80px;
            right: 0;
            background: var(--bg-primary);
            border: 1px solid var(--bg-tertiary);
            border-radius: var(--radius-lg);
            padding: 1.5rem;
            box-shadow: var(--shadow-xl);
            min-width: 300px;
            opacity: 0;
            transform: translateY(20px);
            pointer-events: none;
            transition: var(--transition);
        }

        .metrics-panel.active {
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
        }

        .metric-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.75rem;
            padding: 0.5rem 0;
            border-bottom: 1px solid var(--bg-tertiary);
        }

        .metric-item:last-child {
            border-bottom: none;
            margin-bottom: 0;
        }

        .metric-name {
            font-size: var(--font-size-sm);
            color: var(--text-secondary);
        }

        .metric-value-small {
            font-weight: 600;
            color: var(--text-primary);
        }

        /* ===============================
           ANIMACIONES
        =============================== */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }

        .fade-in-up {
            animation: fadeInUp 0.6s ease-out;
        }

        .pulse {
            animation: pulse 2s infinite;
        }

        .float {
            animation: float 3s ease-in-out infinite;
        }

        /* ===============================
           RESPONSIVE
        =============================== */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }
            
            .tech-grid {
                grid-template-columns: 1fr;
                gap: 2rem;
            }
            
            .hero-cta {
                flex-direction: column;
                align-items: center;
            }
            
            .sustainability-metrics {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .metrics-panel {
                right: -50px;
                min-width: 250px;
            }
        }

        @media (max-width: 480px) {
            .sustainability-metrics {
                grid-template-columns: 1fr;
            }
        }

        /* ===============================
           SCROLL REVEAL
        =============================== */
        .reveal {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.6s ease-out;
        }

        .reveal.active {
            opacity: 1;
            transform: translateY(0);
        }

        /* ===============================
           UTILIDADES
        =============================== */
        .text-center { text-align: center; }
        .text-left { text-align: left; }
        .text-right { text-align: right; }
        
        .mb-1 { margin-bottom: 0.25rem; }
        .mb-2 { margin-bottom: 0.5rem; }
        .mb-3 { margin-bottom: 0.75rem; }
        .mb-4 { margin-bottom: 1rem; }
        .mb-6 { margin-bottom: 1.5rem; }
        .mb-8 { margin-bottom: 2rem; }
        
        .mt-1 { margin-top: 0.25rem; }
        .mt-2 { margin-top: 0.5rem; }
        .mt-3 { margin-top: 0.75rem; }
        .mt-4 { margin-top: 1rem; }
        .mt-6 { margin-top: 1.5rem; }
        .mt-8 { margin-top: 2rem; }

        .text-primary { color: var(--primary); }
        .text-secondary { color: var(--text-secondary); }
        .text-success { color: var(--success); }
        .text-warning { color: var(--warning); }