 /* --- VARIABLES & RESET (PALETA PÚRPURA) --- */
        :root {
            --bg-color: #FAFAFA;
            --text-main: #111827;
            --text-secondary: #4B5563;
            
            /* NUEVA PALETA PÚRPURA */
            --primary: #7C3AED;      /* Violeta Vibrante */
            --primary-dark: #5B21B6; /* Violeta Oscuro para hover */
            --primary-glow: rgba(124, 58, 237, 0.4); /* Resplandor */
            
            --dark-section: #0F172A; /* Azul noche muy oscuro */
            --white: #FFFFFF;
            --max-width: 1200px;
            --radius: 16px;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        
        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--bg-color);
            color: var(--text-main);
            line-height: 1.6;
            overflow-x: hidden;
        }

        html { scroll-behavior: smooth; }
        a { text-decoration: none; color: inherit; transition: 0.3s; }
        ul { list-style: none; }
        img { max-width: 100%; display: block; border-radius: var(--radius); }

        /* --- UTILIDADES & ANIMACIONES --- */
        .container {
            max-width: var(--max-width);
            margin: 0 auto;
            padding: 0 24px;
        }
        
        .section-padding { padding: 100px 0; }
        .text-center { text-align: center; }
        
        /* Tipografía */
        h1, h2, h3 { line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
        h1 { font-size: 3.5rem; margin-bottom: 24px; }
        h2 { font-size: 2.5rem; margin-bottom: 16px; position: relative; display: inline-block; }
        p { font-size: 1.125rem; color: var(--text-secondary); margin-bottom: 24px; }
        .centered-content { max-width: 700px; margin: 0 auto 60px auto; text-align: center; }

        /* Clase para animar al scroll (JavaScript la activa) */
        .reveal {
            opacity: 0;
            transform: translateY(40px);
            transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
        }
        .reveal.active {
            opacity: 1;
            transform: translateY(0);
        }

        /* Botones Púrpura */
        .btn {
            display: inline-block;
            padding: 14px 32px;
            background: var(--primary);
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: var(--white);
            border-radius: 50px;
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            border: none;
            box-shadow: 0 4px 15px var(--primary-glow);
            text-align: center;
        }
        .btn:hover { 
            transform: translateY(-2px) scale(1.02); 
            box-shadow: 0 8px 25px var(--primary-glow); 
        }
        .btn-outline { 
            background: transparent; 
            border: 2px solid var(--white); 
            color: var(--white); 
            padding: 12px 30px;
            border-radius: 50px;
            font-weight: 600;
        }
        .btn-outline:hover { background: var(--white); color: var(--text-main); }

        /* --- HEADER & NAV --- */
        header {
            padding: 20px 0;
            position: absolute; /* Sobre el video */
            width: 100%;
            top: 0;
            z-index: 1000;
            background: transparent;
            transition: 0.3s;
        }
        /* Clase para cuando scrolleamos (fondo blanco) */
        header.scrolled {
            position: fixed;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            box-shadow: 0 4px 20px rgba(0,0,0,0.05);
            padding: 15px 0;
        }
        /* Ajuste de color de enlaces en header scroll */
        header.scrolled .nav-links a { color: var(--text-main); }
        header.scrolled .logo-text { color: var(--text-main); }

        nav { display: flex; justify-content: space-between; align-items: center; }
        
        .logo-text { 
            font-weight: 800; font-size: 1.5rem; color: var(--white); letter-spacing: -1px; 
        }
        .nav-links { display: flex; gap: 40px; align-items: center; }
        .nav-links a { font-weight: 500; font-size: 0.95rem; color: rgba(255,255,255,0.9); }
        .nav-links a:hover { color: var(--white); text-shadow: 0 0 10px rgba(255,255,255,0.5); }

        /* --- HERO VIDEO SECTION --- */
        .hero {
            position: relative;
            height: 100vh; /* Pantalla completa */
            min-height: 600px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            text-align: center;
            color: var(--white);
        }
        
        /* El Video de Fondo */
        .video-bg {
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            object-fit: cover;
            z-index: -2;
        }
        /* Capa oscura sobre el video para que se lea el texto */
        .hero-overlay {
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.9));
            z-index: -1;
        }

        .hero-content {
            z-index: 1;
            max-width: 900px;
            padding: 0 20px;
        }
        .hero-content h1 { font-size: 4rem; text-shadow: 0 4px 20px rgba(0,0,0,0.3); margin-bottom: 20px;}
        .hero-content p { color: rgba(255,255,255,0.9); font-size: 1.25rem; max-width: 700px; margin: 0 auto 40px;}
        .highlight { color: #A78BFA; } /* Un lila claro para resaltar en fondo oscuro */

        .hero-btns { display: flex; gap: 20px; justify-content: center; }

        /* Icono de scroll animado */
        .scroll-down {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            animation: bounce 2s infinite;
            opacity: 0.7;
        }
        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
            40% {transform: translateX(-50%) translateY(-10px);}
            60% {transform: translateX(-50%) translateY(-5px);}
        }

        /* --- SERVICES (Cards con efecto Hover) --- */
        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 30px;
        }
        .service-card {
            background: var(--white);
            padding: 40px;
            border-radius: var(--radius);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
            transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            border: 1px solid #f3f4f6;
            position: relative;
            overflow: hidden;
        }
        /* Línea decorativa púrpura */
        .service-card::before {
            content: ''; position: absolute; top: 0; left: 0; width: 0%; height: 4px;
            background: var(--primary); transition: 0.4s ease;
        }
        .service-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(124, 58, 237, 0.15); }
        .service-card:hover::before { width: 100%; }
        
        .service-icon {
            font-size: 2.5rem; margin-bottom: 20px; 
            background: #F3E8FF; width: 70px; height: 70px;
            display: flex; align-items: center; justify-content: center;
            border-radius: 12px; color: var(--primary);
        }

        /* --- PROJECTS (Bento Grid) --- */
        .projects { background-color: var(--white); }
        .project-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 24px;
        }
        .project-item {
            position: relative;
            height: 350px;
            overflow: hidden;
            border-radius: var(--radius);
            background-color: #eee;
            cursor: pointer;
        }
        .project-item img {
            width: 100%; height: 100%; object-fit: cover;
            transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
        .project-overlay {
            position: absolute; bottom: 0; left: 0; right: 0; top: 0;
            background: linear-gradient(to top, rgba(76, 29, 149, 0.9), rgba(76, 29, 149, 0.4), transparent);
            padding: 30px;
            display: flex; flex-direction: column; justify-content: flex-end;
            opacity: 0; transition: 0.4s ease;
        }
        .project-item:hover img { transform: scale(1.1); }
        .project-item:hover .project-overlay { opacity: 1; }
        .project-overlay h4 { color: white; margin-bottom: 5px; transform: translateY(20px); transition: 0.4s 0.1s; }
        .project-overlay span { color: #E9D5FF; transform: translateY(20px); transition: 0.4s 0.2s; }
        .project-item:hover h4, .project-item:hover span { transform: translateY(0); }

        /* --- WORKSHOP (Dark Mode Estilo Cyberpunk) --- */
        .workshop-section {
            background: var(--dark-section);
            color: var(--white);
            position: relative;
            overflow: hidden;
        }
        /* Decoración de fondo */
        .bg-glow {
            position: absolute; width: 600px; height: 600px; background: var(--primary);
            filter: blur(150px); opacity: 0.15; border-radius: 50%;
        }
        .glow-1 { top: -200px; right: -200px; }
        .glow-2 { bottom: -200px; left: -200px; }

        .workshop-grid {
            display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 2;
        }
        .workshop-text h2 span { color: #A78BFA; }
        .workshop-text p { color: #CBD5E1; }
        
        .tech-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; margin-bottom: 30px;}
        .tag { padding: 6px 14px; background: rgba(255,255,255,0.1); border-radius: 20px; font-size: 0.85rem; border: 1px solid rgba(255,255,255,0.2); }

        /* --- CONTACT FIX (Formulario Corregido) --- */
        .contact-container {
            display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px;
            background: var(--white); padding: 60px; border-radius: 24px;
            box-shadow: 0 20px 50px -10px rgba(124, 58, 237, 0.15); /* Sombra púrpura suave */
        }
        
        form {
            display: grid;
            grid-template-columns: 1fr 1fr; /* 2 columnas iguales */
            gap: 20px; /* Espacio entre cuadros */
            width: 100%;
        }

        /* Estilos de los inputs corregidos para que no se rompan */
        input, textarea {
            width: 100%;
            padding: 16px 20px;
            background: #F3F4F6;
            border: 2px solid transparent;
            border-radius: 12px;
            font-family: 'Inter', sans-serif;
            font-size: 1rem;
            color: var(--text-main);
            transition: all 0.3s ease;
            outline: none;
        }

        input:focus, textarea:focus {
            background: #FFFFFF;
            border-color: var(--primary);
            box-shadow: 0 0 0 4px var(--primary-glow);
        }
        
        textarea {
            resize: none;
            height: 150px;
        }

        /* Clase para que el mensaje y botón ocupen todo el ancho */
        .full-width {
            grid-column: span 2;
        }

        /* --- FOOTER --- */
        footer { padding: 60px 0; border-top: 1px solid #e5e7eb; font-size: 0.9rem; color: var(--text-secondary); margin-top: 50px;}
        .footer-content { display: flex; justify-content: space-between; align-items: center; }

        /* --- RESPONSIVE --- */
        @media (max-width: 900px) {
            h1 { font-size: 2.5rem; }
            .hero-btns { flex-direction: column; width: 100%; }
            .hero-btns .btn, .hero-btns .btn-outline { width: 100%; text-align: center; }
            
            /* Ajuste del formulario en móvil */
            .contact-container { grid-template-columns: 1fr; gap: 40px; padding: 30px; }
            form { grid-template-columns: 1fr; } /* Inputs uno debajo del otro */
            .full-width { grid-column: span 1; }

            .workshop-grid { grid-template-columns: 1fr; gap: 40px; }
            .nav-links { display: none; }
            .logo-text { color: var(--text-main); }
            header { position: absolute; } 
            .logo-text { color: var(--white); }

            h2 { font-size: 2.0rem; text-align: center;}
            .hero-content h1 { font-size: 2rem; text-shadow: 0 4px 20px rgba(0,0,0,0.3); margin-bottom: 20px;}
        .hero-content p { color: rgba(255,255,255,0.9); font-size: 1.0rem; max-width: 700px; margin: 0 auto 40px;}

        .footer-content { display: block; text-align: center; justify-content: center;}
        }