 /* --- CONTENEDOR PRINCIPAL GESTOR --- */
    #hero-system-container {
        position: relative;
        width: 100%;
        min-height: 100vh;
        background-color: #0a0a0a;
        overflow: hidden;
        margin: 0; padding: 0;
        z-index: 0; 
    }

    /* Capas de Escenas */
    .hero-layer {
        position: absolute; inset: 0; width: 100%; height: 100%;
        opacity: 0; visibility: hidden;
        transition: opacity 1.5s ease-in-out, visibility 1.5s;
        z-index: 1;
        display: flex; align-items: center; justify-content: center;
    }

    .hero-layer.active {
        opacity: 1; visibility: visible; z-index: 5;
    }

    /* Fix Hero 6: Servicios destacados sobre el slider sin desplazar */
    #hero-layer-6 #servicios-destacados {
        position: absolute !important;
        left: 0;
        right: 0;
        z-index: 10;
        margin-top: -20%;
    }

    /* FLECHAS DE NAVEGACIÓN */
    .hero-nav-arrow {
        position: fixed;
        top: 50%;
        transform: translateY(-50%);
        z-index: 100;
        background: rgba(255,255,255,0.05);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255,255,255,0.1);
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        opacity: 0;
        transition: all 0.3s ease;
        color: white;
        font-size: 1.2rem;
    }
    
    #hero-system-container:hover .hero-nav-arrow {
        opacity: 0.7;
    }
    
    .hero-nav-arrow:hover {
        opacity: 1 !important;
        background: rgba(255,255,255,0.1);
        transform: translateY(-50%) scale(1.1);
    }
    
    .hero-nav-arrow.left {
        left: 20px;
    }
    
    .hero-nav-arrow.right {
        right: 20px;
    }
    
    /* Indicadores de progreso */
    .hero-indicators {
        position: fixed;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 100;
        display: flex;
        gap: 10px;
        padding: 10px 15px;
        background: rgba(0,0,0,0.3);
        backdrop-filter: blur(10px);
        border-radius: 99px;
        border: 1px solid rgba(255,255,255,0.1);
        opacity: 1;
        transition: opacity 0.3s ease; /* Transición suave al ocultar */
    }
    
    .hero-indicator {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255,255,255,0.3);
        cursor: pointer;
        transition: all 0.3s;
    }
    
    .hero-indicator.active {
        background: white;
        width: 24px;
        border-radius: 4px;
    }


#servicios-destacados {
	margin-top: -23%;
	z-index: 10;
	position: absolute !important;
}


@media (max-width: 1399.98px) {
  #servicios-destacados {
    display: none !important;
  }
}

/*estilos escena 1*/

/* Estilos específicos para el Hero Animado */
    #hero-animado {
        position: relative;
        min-height: 100vh;
        width: 100%;
        background-color: #0a0a0a;
        color: white;
        overflow: hidden;
        display: flex;
        align-items: center;
        font-family: 'Inter', sans-serif;
        perspective: 1000px;
        /* Asegurar que se vea bajo el header flotante */
        z-index: 0;
        margin: 0;
        padding: 0;
    }

    .hero-grid-bg {
        position: absolute;
        inset: 0;
        z-index: 0;
        opacity: 0.2;
        pointer-events: none;
        background-image: radial-gradient(circle at 1px 1px, #4f46e5 1px, transparent 0);
        background-size: 40px 40px;
    }

    .hero-content-wrapper {
        position: relative;
        z-index: 10;
        padding-top: 100px; /* Espacio extra para compensar el header flotante */
        width: 100%;
    }

    /* Animaciones de Texto */
    .reveal-text { overflow: hidden; display: block; }
    .reveal-text span {
        display: block;
        transform: translateY(110%);
        transition: transform 1s cubic-bezier(0.2, 1, 0.3, 1);
    }
    .is-loaded .reveal-text span { transform: translateY(0); }
    
    .delay-100 span { transition-delay: 0.1s; }
    .delay-200 span { transition-delay: 0.2s; }
    .delay-300 span { transition-delay: 0.3s; }

    .fade-in-up { opacity: 0; transform: translateY(20px); transition: all 1s ease-out; }
    .is-loaded .fade-in-up { opacity: 1; transform: translateY(0); }
    
    .delay-500 { transition-delay: 0.5s; }
    .delay-700 { transition-delay: 0.7s; }

    /* Badge */
    .badge-new-era {
        display: inline-flex; align-items: center; gap: 0.5rem;
        padding: 0.25rem 0.75rem; border-radius: 9999px;
        background-color: rgba(49, 46, 129, 0.3);
        border: 1px solid rgba(99, 102, 241, 0.3);
        color: #a5b4fc; font-size: 0.75rem; font-weight: 700;
        text-transform: uppercase; letter-spacing: 0.05em;
        transform: translateY(150%); transition: transform 1s ease-out;
    }
    .is-loaded .badge-new-era { transform: translateY(0); }

    /* Tipografía */
    .hero-title { font-size: 3rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
    @media (min-width: 768px) { .hero-title { font-size: 4.5rem; } }
    
    .gradient-text {
        background: linear-gradient(to right, #818cf8, #c084fc);
        -webkit-background-clip: text; background-clip: text; color: transparent;
        font-style: italic; font-family: 'Playfair Display', serif;
    }

    /* Botones */
    .btn-hero-primary {
        background-color: white; color: black; padding: 1rem 2rem;
        border-radius: 9999px; font-weight: 600; display: inline-flex;
        align-items: center; gap: 0.75rem; transition: transform 0.3s, box-shadow 0.3s;
        box-shadow: 0 0 40px -10px rgba(255,255,255,0.3); border: none; text-decoration: none;
    }
    .btn-hero-primary:hover { transform: scale(1.05); color: black; }
    
    .btn-hero-secondary {
        padding: 1rem 2rem; border-radius: 9999px;
        border: 1px solid rgba(255,255,255,0.1); color: #d1d5db; background: transparent;
        transition: all 0.3s; text-decoration: none;
    }
    .btn-hero-secondary:hover {
        background-color: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.3); color: white;
    }

    /* --- SECCIÓN 3D --- */
    .hero-3d-container {
        position: relative; height: 500px; width: 100%;
        display: flex; align-items: center; justify-content: center;
        perspective: 1000px;
    }

    .tilt-wrapper {
        position: relative; width: 100%; height: 100%;
        transform-style: preserve-3d;
        transition: transform 0.1s ease-out;
    }

    /* Wrappers de Parallax (Posicionamiento) */
    .parallax-layer {
        position: absolute;
        top: 50%; left: 50%;
        transform: translate(-50%, -50%); /* Centrado base */
        /* El JS añadirá translate3d extra */
        pointer-events: none;
        display: flex; justify-content: center; align-items: center;
    }

    /* Orbes */
    .orb-glow { border-radius: 50%; filter: blur(60px); opacity: 0; transform: scale(0.5); transition: all 2s ease-out; }
    .is-loaded .orb-glow { opacity: 0.8; transform: scale(1); }
    
    .orb-primary {
        width: 350px; height: 350px;
        background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 1) 0%, rgba(168, 85, 247, 0.8) 40%, rgba(79, 70, 229, 0) 70%);
        animation: pulse-glow 8s infinite alternate;
    }
    
    .orb-secondary {
        width: 300px; height: 300px; filter: blur(50px); mix-blend-mode: screen; opacity: 0;
        background: radial-gradient(circle at 70% 70%, #ec4899 0%, transparent 60%);
        transition-delay: 0.2s;
    }
    .is-loaded .orb-secondary { opacity: 0.6; }

    @media (min-width: 768px) {
        .orb-primary { width: 450px; height: 450px; }
        .orb-secondary { width: 400px; height: 400px; }
    }

    /* Tarjeta Chatbot */
    .glass-card-chatbot {
        width: 280px; padding: 1.5rem; border-radius: 1.5rem;
        background-color: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
        
        opacity: 0;
        /* Animación de entrada independiente del parallax */
        transform: translateY(20px) rotate(12deg); 
        transition: all 1s cubic-bezier(0.2, 1, 0.3, 1);
        transition-delay: 0.5s;
    }
    .is-loaded .glass-card-chatbot { opacity: 1; transform: translateY(0) rotate(0deg); }

    /* Chats */
    .chat-bubble { font-size: 0.75rem; padding: 0.625rem; margin-bottom: 0.75rem; animation: fadeIn 0.5s ease-out both; }
    .chat-bubble-bot { background: rgba(255,255,255,0.1); border-radius: 0 0.75rem 0.75rem 0.75rem; width: 90%; color: #e5e7eb; animation-delay: 1.2s; }
    .chat-bubble-user { background: rgba(79, 70, 229, 0.8); border-radius: 0.75rem 0 0.75rem 0.75rem; width: 80%; margin-left: auto; color: white; animation-delay: 2s; }
    .chat-bubble-reply { animation: none; opacity: 0; transform: translateY(5px); transition: opacity 0.4s ease-out, transform 0.4s ease-out; }
    .chat-bubble-reply.is-visible { opacity: 1; transform: translateY(0); }
    .chat-typing { display: flex; gap: 4px; animation-delay: 2.8s; }

    .typing-dot { width: 6px; height: 6px; background: #6b7280; border-radius: 50%; animation: bounce 1s infinite; }
    .typing-dot:nth-child(2) { animation-delay: 0.1s; }
    .typing-dot:nth-child(3) { animation-delay: 0.2s; }

    /* Stats Card */
    .card-seo-stats {
        background: white; color: black; padding: 1rem; border-radius: 1rem;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
        opacity: 0; transform: scale(0.75);
        transition: all 1s cubic-bezier(0.2, 1, 0.3, 1); transition-delay: 0.7s;
    }
    .is-loaded .card-seo-stats { opacity: 1; transform: scale(1); }

    /* Deco Circle */
    .deco-circle {
        width: 4rem; height: 4rem; border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(12px);
        display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
        opacity: 0; transform: translateX(-2.5rem);
        transition: all 1s cubic-bezier(0.2, 1, 0.3, 1); transition-delay: 0.9s;
    }
    .is-loaded .deco-circle { opacity: 1; transform: translateX(0); }

    @keyframes pulse-glow {
        0% { opacity: 0.6; transform: scale(0.95); }
        100% { opacity: 0.9; transform: scale(1.05); }
    }
    @keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

 /* Estilos Específicos Escena 2 */
        #hero-scene-2-root { font-family: 'Inter', sans-serif; color: white; display: flex; flex-direction: column; justify-content: center; }
        
        #hero-scene-2-root .spatial-stage { width: 90%; max-width: 1600px; margin: 0 auto; padding-top: 120px; display: flex; flex-direction: column; gap: 3rem; position: relative; z-index: 10; perspective: 2000px; }

        /* Ventana 3D con Animación de Entrada */
        #hero-scene-2-root .cinematic-window {
            position: relative; width: 100%; aspect-ratio: 16/9;
            background: #050505; border-radius: 1.5rem; border: 1px solid rgba(255,255,255,0.1);
            box-shadow: 0 40px 100px -20px rgba(0,0,0,0.8); overflow: hidden;
            transform-style: preserve-3d; 
            transform: perspective(2000px) rotateX(12deg) scale(0.95); /* Estado inicial */
            opacity: 0;
            transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 1s ease-out;
        }
        /* Estado Montado (Clase activada por JS) */
        #hero-scene-2-root.is-loaded .cinematic-window {
            opacity: 1;
            transform: perspective(2000px) rotateX(0deg) scale(1);
        }

        @media (min-width: 992px) { 
            #hero-scene-2-root .cinematic-window { aspect-ratio: 2.4/1; border-radius: 2.5rem; } 
        }

        /* Imágenes Slider */
        #hero-scene-2-root .slide-img-wrapper { 
            position: absolute; inset: 0; opacity: 0; 
            transition: opacity 1s ease-in-out, transform 8s ease; 
            transform: scale(1.05); 
        }
        #hero-scene-2-root .slide-img-wrapper.active { opacity: 1; transform: scale(1); }
        
        #hero-scene-2-root .slide-img { 
            width: 100%; height: 100%; 
            object-fit: cover; 
            object-position: center;
            opacity: 0.7; 
            /* Fix Pixelation */
            image-rendering: -webkit-optimize-contrast;
        }
        
        #hero-scene-2-root .vignette { position:absolute; inset:0; background: radial-gradient(circle at center, transparent 0%, #050505 120%); pointer-events: none; }

        /* Panel Inferior de Control */
        #hero-scene-2-root .control-deck { 
            display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: end; margin-top: 0; 
            opacity: 0; transform: translateY(30px); 
            transition: all 1s cubic-bezier(0.2, 1, 0.3, 1); transition-delay: 0.3s;
        }
        #hero-scene-2-root.is-loaded .control-deck { opacity: 1; transform: translateY(0); }

        @media (min-width: 992px) { 
            #hero-scene-2-root .control-deck { grid-template-columns: 4fr 4fr 3fr; } 
        }

        /* Info */
        .deck-info {
            width: 200% !important;
        }
        #hero-scene-2-root .deck-info h2 { font-size: 2.5rem; font-weight: 700; line-height: 1.1; min-height: 5.5rem; overflow: visible; margin-bottom: 0.5rem; position: relative; }
        @media (min-width: 992px) { 
            #hero-scene-2-root .deck-info h2 { font-size: 3.5rem; min-height: 4rem; line-height: 1.1; margin-bottom: 1.5rem; } 
        }
        
        #hero-scene-2-root .slide-title { display: block; position: absolute; top: 0; left: 0; opacity: 0; transform: translateY(30px); transition: all 0.6s cubic-bezier(0.2,1,0.3,1); width: 100%; white-space: normal; }
        #hero-scene-2-root .slide-title.active { opacity: 1; transform: translateY(0); }

        /* Barras Navegación */
        #hero-scene-2-root .nav-bars { display: flex; gap: 6px; margin-bottom: 1rem; }
        #hero-scene-2-root .nav-bar-item { height: 3px; flex: 1; background: rgba(255,255,255,0.1); cursor: pointer; position: relative; border-radius: 2px; overflow: hidden; }
        #hero-scene-2-root .nav-bar-fill { position: absolute; top: 0; left: 0; height: 100%; width: 0%; background: white; }
        
        #hero-scene-2-root .nav-bar-item.active .nav-bar-fill { animation: fillBar 5s linear forwards; }
        #hero-scene-2-root .nav-bar-item.passed .nav-bar-fill { width: 100%; animation: none; }
        #hero-scene-2-root .nav-bar-item.waiting .nav-bar-fill { width: 0%; animation: none; }
        
        @keyframes fillBar { from { width: 0%; } to { width: 100%; } }

        /* Botón */
        #hero-scene-2-root .btn-deck { background: white; color: black; border: none; padding: 1rem 2rem; border-radius: 12px; font-weight: 700; cursor: pointer; width: 100%; transition: background 0.3s; display: flex; align-items: center; justify-content: center; gap: 10px; }
        #hero-scene-2-root .btn-deck:hover { background: #e5e5e5; }
        @media (min-width: 992px) { 
            #hero-scene-2-root .btn-deck { width: auto; justify-content: start; } 
        }

/* estilos escena hero animado 3 */

 #hero-scene-3-root { font-family: 'Inter', sans-serif; color: white; overflow: hidden; }
        
        /* GRID BACKGROUND */
        #hero-scene-3-root .bg-grid {
            position: absolute; inset: -50%;
            background-image: 
                linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
            background-size: 40px 40px;
            mask-image: radial-gradient(ellipse at center, black, transparent 80%);
            transform: perspective(500px) rotateX(60deg);
            animation: grid-move 20s linear infinite;
        }
        @keyframes grid-move { 0% { transform: perspective(500px) rotateX(60deg) translateY(0); } 100% { transform: perspective(500px) rotateX(60deg) translateY(40px); } }

        #hero-scene-3-root .glow-blob { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0; transition: opacity 2s ease; }
        #hero-scene-3-root.is-loaded .glow-blob { opacity: 0.4; }

        #hero-scene-3-root .blob-1 { top: -10%; right: -10%; width: 60vw; height: 60vh; background: rgba(225, 29, 72, 0.2); }
        #hero-scene-3-root .blob-2 { bottom: -10%; left: -10%; width: 40vw; height: 40vh; background: rgba(79, 70, 229, 0.2); }

        /* ISOMETRIC STAGE */
        #hero-scene-3-root .iso-stage {
            width: 100%; max-width: 1400px; margin: 0 auto; padding-top: 80px;
            display: flex; flex-direction: column; height: 100%; position: relative; z-index: 10;
        }

        #hero-scene-3-root .iso-visual {
            flex: 1; display: flex; align-items: center; justify-content: center; perspective: 2000px; min-height: 50vh;
            opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.2,1,0.3,1);
        }
        #hero-scene-3-root.is-loaded .iso-visual { opacity: 1; transform: translateY(0); }

        #hero-scene-3-root .iso-stack {
            position: relative; width: 320px; aspect-ratio: 16/10;
            transform-style: preserve-3d;
            /* Rotación Inicial */
            transform: rotateX(40deg) rotateY(0deg) rotateZ(-10deg);
            transition: transform 0.2s ease-out; /* Para seguimiento ratón */
        }
        @media (min-width: 768px) { 
            #hero-scene-3-root .iso-stack { width: 650px; } 
        }

        /* LAYERS */
        #hero-scene-3-root .iso-layer {
            position: absolute; inset: 0; border-radius: 12px;
            transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.7s;
            opacity: 0; /* Inicialmente invisible */
        }
        
        /* Entrada secuencial */
        #hero-scene-3-root.is-loaded .layer-structure { opacity: 1; transform: translateZ(0px); transition-delay: 0.2s; }
        #hero-scene-3-root.is-loaded .layer-ui        { opacity: 0.95; transform: translateZ(30px); transition-delay: 0.4s; }
        #hero-scene-3-root.is-loaded .layer-content   { opacity: 1; transform: translateZ(60px); transition-delay: 0.6s; }
        #hero-scene-3-root.is-loaded .layer-title     { opacity: 1; transform: translateZ(100px); transition-delay: 0.8s; }

        /* Layer Styles */
        #hero-scene-3-root .layer-structure {
            background: #0a0a0a; border: 1px solid rgba(255,255,255,0.1);
            box-shadow: 0 20px 50px rgba(0,0,0,0.5);
        }
        #hero-scene-3-root .layer-ui {
            background: #111; border: 1px solid rgba(255,255,255,0.05);
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        }
        #hero-scene-3-root .layer-content {
            pointer-events: none; /* Imagen */
        }

        /* Expansión automática vía JS (clase .layers-expanded) */
        #hero-scene-3-root.layers-expanded .layer-ui { transform: translateZ(90px) !important; }
        #hero-scene-3-root.layers-expanded .layer-content { transform: translateZ(180px) !important; }
        #hero-scene-3-root.layers-expanded .layer-title { transform: translateZ(300px) !important; }
        
        /* Hover Expansion (refuerza la expansión al pasar el ratón) */
        #hero-scene-3-root .iso-stack:hover .layer-ui { transform: translateZ(90px) !important; }
        #hero-scene-3-root .iso-stack:hover .layer-content { transform: translateZ(180px) !important; }
        #hero-scene-3-root .iso-stack:hover .layer-title { transform: translateZ(300px) !important; }
        
        /* Labels Flotantes - visibles cuando expandido o hover */
        #hero-scene-3-root .iso-label {
            position: absolute; font-family: monospace; font-size: 10px; padding: 2px 6px; border-radius: 4px;
            opacity: 0; transition: opacity 0.3s;
        }
        
        #hero-scene-3-root.layers-expanded .iso-label { opacity: 1; }
        #hero-scene-3-root .iso-stack:hover .iso-label { opacity: 1; }
        
        /* Cursor pointer para indicar que es clickeable */
        #hero-scene-3-root .iso-stack { cursor: pointer; }


        /* PANEL INFERIOR */
        #hero-scene-3-root .control-panel {
            display: grid; grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2rem;
            opacity: 0; transform: translateY(30px); transition: all 1s ease-out; transition-delay: 0.5s;
        }
        #hero-scene-3-root.is-loaded .control-panel { opacity: 1; transform: translateY(0); }

        @media (min-width: 992px) { 
            #hero-scene-3-root .control-panel { grid-template-columns: 7fr 5fr; align-items: end; }
        }

        #hero-scene-3-root .badge-tech {
            display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px;
            font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
            background: rgba(20, 184, 166, 0.1); color: #2dd4bf; border: 1px solid rgba(20, 184, 166, 0.3);
        }

 /* --- ESTILOS GENERALES HERO 4 --- */
        #hero-scene-4-root .h4-container {
            position: relative;
            width: 100%;
            max-width: 1400px;
            height: 100%;
            margin: 0 auto;
            padding: 100px 24px 40px;
            display: grid;
            grid-template-columns: 1fr;
            align-items: center;
            gap: 3rem;
            z-index: 10;
        }

        @media (min-width: 992px) {
            #hero-scene-4-root .h4-container {
                grid-template-columns: 1fr 1fr;
                padding: 0 40px;
            }
        }

        /* --- BACKGROUND DINÁMICO --- */
        #hero-scene-4-root .ambient-bg {
            position: absolute;
            inset: 0;
            opacity: 0.2;
            filter: blur(150px);
            transition: background 1.5s ease-in-out;
            z-index: 0;
        }

        /* --- COLUMNA IZQUIERDA (TEXTO) --- */
        #hero-scene-4-root .h4-text-col {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            z-index: 20;
        }

        #hero-scene-4-root .badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 6px 12px;
            border-radius: 99px;
            background: rgba(168, 85, 247, 0.1);
            border: 1px solid rgba(168, 85, 247, 0.2);
            color: #d8b4fe;
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 1.5rem;
            transform: translateY(20px);
            opacity: 0;
            transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
        }
        #hero-scene-4-root.is-loaded .badge { transform: translateY(0); opacity: 1; }

        #hero-scene-4-root h1 {
            font-size: 3rem;
            font-weight: 700;
            line-height: 1.1;
            margin-bottom: 1.5rem;
            letter-spacing: -0.02em;
        }
        @media (min-width: 768px) { #hero-scene-4-root h1 { font-size: 4.5rem; } }

        #hero-scene-4-root .title-line {
            display: block;
            overflow: hidden;
        }
        #hero-scene-4-root .title-reveal {
            display: block;
            transform: translateY(110%);
            transition: transform 1s cubic-bezier(0.2, 1, 0.3, 1);
        }
        #hero-scene-4-root.is-loaded .title-reveal { transform: translateY(0); }
        #hero-scene-4-root .title-reveal.delay-1 { transition-delay: 0.1s; }
        #hero-scene-4-root .title-reveal.delay-2 { transition-delay: 0.2s; }

        #hero-scene-4-root .dynamic-accent {
            transition: color 0.7s ease;
        }

        #hero-scene-4-root p {
            color: #9ca3af;
            font-size: 1.125rem;
            line-height: 1.6;
            max-width: 32rem;
            margin-bottom: 2rem;
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.8s 0.3s ease-out;
        }
        #hero-scene-4-root.is-loaded p { opacity: 1; transform: translateY(0); }

        /* --- MINIATURAS (ESCENAS) --- */
        #hero-scene-4-root .scene-selector {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.8s 0.4s ease-out;
        }
        #hero-scene-4-root.is-loaded .scene-selector { opacity: 1; transform: translateY(0); }

        #hero-scene-4-root .thumb-btn {
            position: relative;
            width: 64px;
            height: 64px;
            border-radius: 16px;
            border: 2px solid rgba(255,255,255,0.1);
            overflow: hidden;
            cursor: pointer;
            transition: all 0.3s ease;
            opacity: 0.6;
        }
        #hero-scene-4-root .thumb-btn:hover { opacity: 1; }
        #hero-scene-4-root .thumb-btn.active {
            border-color: white;
            opacity: 1;
            transform: scale(1.1);
            box-shadow: 0 10px 20px rgba(0,0,0,0.3);
        }
        #hero-scene-4-root .thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
        #hero-scene-4-root .thumb-indicator {
            position: absolute; inset: 0; background: rgba(0,0,0,0.3);
            display: flex; align-items: center; justify-content: center;
            opacity: 0; transition: opacity 0.3s;
        }
        #hero-scene-4-root .thumb-btn.active .thumb-indicator { opacity: 1; }
        #hero-scene-4-root .dot { width: 8px; height: 8px; background: white; border-radius: 50%; animation: pulse 1.5s infinite; }

        /* --- COLUMNA DERECHA (3D STUDIO) --- */
        #hero-scene-4-root .h4-visual-col {
            display: flex;
            align-items: center;
            justify-content: center;
            perspective: 1000px;
            height: 500px;
            z-index: 20;
        }

        #hero-scene-4-root .studio-card {
            position: relative;
            width: 100%;
            max-width: 500px;
            aspect-ratio: 4/5;
            border-radius: 3rem;
            transform-style: preserve-3d;
            transition: transform 0.1s linear, opacity 1s ease-out;
            opacity: 0;
            transform: rotateY(10deg) translateY(30px);
        }
        @media (min-width: 768px) {
            #hero-scene-4-root .studio-card { aspect-ratio: 1/1; }
        }
        #hero-scene-4-root.is-loaded .studio-card { opacity: 1; } /* JS controlará el transform */

        /* Fondos de la tarjeta */
        #hero-scene-4-root .card-bg-layer {
            position: absolute;
            inset: 0;
            border-radius: 3rem;
            overflow: hidden;
            box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
            border: 1px solid rgba(255,255,255,0.1);
            background: #111;
        }
        
        #hero-scene-4-root .scene-img-wrapper {
            position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease-in-out;
        }
        #hero-scene-4-root .scene-img-wrapper.active { opacity: 1; }
        #hero-scene-4-root .scene-img {
            width: 100%; height: 100%; object-fit: cover; transform: scale(1.1);
            transition: transform 0.2s linear;
        }
        #hero-scene-4-root .overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.2); }

        /* Producto 3D */
        #hero-scene-4-root .product-wrapper {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: none;
            z-index: 20;
            transform-style: preserve-3d;
        }
        #hero-scene-4-root .product-img {
            height: 60%;
            width: auto;
            object-fit: contain;
            filter: brightness(1.1) contrast(1.1) drop-shadow(0 20px 40px rgba(0,0,0,0.6));
            transition: transform 0.2s linear;
        }
        #hero-scene-4-root .product-shadow {
            position: absolute; bottom: 18%; width: 40%; height: 10%;
            background: rgba(0,0,0,0.4); filter: blur(20px); border-radius: 50%;
            transform: scaleY(0.5); z-index: -1;
        }

        /* UI Flotante (Prompt) */
        #hero-scene-4-root .prompt-box {
            position: absolute;
            bottom: 2rem;
            left: 50%;
            width: 90%;
            background: rgba(0,0,0,0.6);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 12px;
            padding: 1rem;
            z-index: 30;
            transition: transform 0.2s linear;
            /* Initial pos set by JS */
        }
        
        #hero-scene-4-root .prompt-header {
            display: flex; justify-content: space-between; font-size: 10px;
            color: #9ca3af; font-family: monospace; text-transform: uppercase; letter-spacing: 1px;
            margin-bottom: 0.5rem;
        }
        
        #hero-scene-4-root .prompt-text-area {
            position: relative; height: 20px; overflow: hidden; margin-bottom: 0.5rem;
        }
        #hero-scene-4-root .prompt-text {
            position: absolute; top: 0; left: 0; width: 100%;
            font-size: 0.875rem; font-weight: 500; color: white;
            opacity: 0; transform: translateY(100%); transition: all 0.5s;
        }
        #hero-scene-4-root .prompt-text.active { opacity: 1; transform: translateY(0); }

        #hero-scene-4-root .progress-bar {
            height: 4px; width: 100%; background: rgba(255,255,255,0.1); border-radius: 99px; overflow: hidden;
        }
        #hero-scene-4-root .progress-fill {
            height: 100%; width: 0%; background: linear-gradient(to right, #a855f7, #ec4899);
            border-radius: 99px;
        }
        #hero-scene-4-root .progress-fill.animate {
            animation: progressFill 4.5s linear forwards;
        }

        /* Botones laterales */
        #hero-scene-4-root .side-actions {
            position: absolute; right: -1.5rem; top: 50%; transform: translateY(-50%) translateZ(40px);
            display: flex; flex-direction: column; gap: 0.75rem; z-index: 30;
        }
        #hero-scene-4-root .action-btn {
            width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
            cursor: pointer; transition: transform 0.2s; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
        }
        #hero-scene-4-root .action-btn:hover { transform: scale(1.1); }
        #hero-scene-4-root .btn-regen { background: white; color: black; }
        #hero-scene-4-root .btn-settings { background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2); color: white; backdrop-filter: blur(4px); }

        @keyframes progressFill {
            0% { width: 0%; }
            10% { width: 20%; }
            40% { width: 60%; }
            100% { width: 100%; }
        }
        @keyframes pulse { 50% { opacity: 0.5; } }

/*Estilos hero aniumado 5*/

 #hero-scene-5-root {
            position: relative;
        }

        /* Ambient background que cambia con el proyecto */
        #hero-scene-5-root .h5-ambient {
            position: absolute;
            inset: 0;
            opacity: 0.22;
            pointer-events: none;
            transition: background-color 2s ease-in-out;
            z-index: 0;
        }
        #hero-scene-5-root .h5-ambient-noise {
            position: absolute;
            inset: 0;
            background-image: url('https://grainy-gradients.vercel.app/noise.svg');
            opacity: 0.4;
            mix-blend-mode: overlay;
        }
        #hero-scene-5-root .h5-ambient-vignette {
            position: absolute;
            inset: 0;
            background: linear-gradient(to bottom, #000 0%, transparent 50%, #000 100%);
        }

        /* Layout principal */
        #hero-scene-5-root .h5-container {
            position: relative;
            z-index: 10;
            width: 100%;
            max-width: 1200px;
            padding: 24px;
            display: grid;
            grid-template-columns: 1fr;
            gap: 3rem;
            align-items: center;
        }
        @media (min-width: 992px) {
            #hero-scene-5-root .h5-container {
                grid-template-columns: 4fr 8fr;
            }
        }

        /* Columna izquierda: texto */
        #hero-scene-5-root .h5-left {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
            order: 2;
        }
        @media (min-width: 992px) {
            #hero-scene-5-root .h5-left { order: 1; }
        }

        #hero-scene-5-root .h5-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 12px;
            font-family: monospace;
            color: #9ca3af;
            text-transform: uppercase;
            letter-spacing: 0.18em;
            opacity: 0;
            transform: translateY(15px);
            transition: all 0.7s ease-out;
        }
        #hero-scene-5-root.is-loaded .h5-badge {
            opacity: 1;
            transform: translateY(0);
        }

        #hero-scene-5-root .h5-badge-icon {
            color: #facc15;
            font-size: 14px;
        }

        #hero-scene-5-root h1 {
            font-size: 2.5rem;
            font-weight: 800;
            line-height: 1.1;
            margin: 0;
            opacity: 0;
            transform: translateY(18px);
            transition: all 0.8s 0.1s ease-out;
        }
        @media (min-width: 768px) {
            #hero-scene-5-root h1 { font-size: 3rem; }
        }
        #hero-scene-5-root.is-loaded h1 {
            opacity: 1;
            transform: translateY(0);
        }

        #hero-scene-5-root .gradient-title {
            background: linear-gradient(to right, #ffffff, #9ca3af);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

        #hero-scene-5-root .h5-description {
            color: #9ca3af;
            font-size: 0.95rem;
            line-height: 1.7;
            max-width: 34rem;
            margin: 0;
            opacity: 0;
            transform: translateY(18px);
            transition: all 0.8s 0.2s ease-out;
        }
        #hero-scene-5-root.is-loaded .h5-description {
            opacity: 1;
            transform: translateY(0);
        }

        #hero-scene-5-root .h5-checklist {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
            margin-top: 0.5rem;
            opacity: 0;
            transform: translateY(18px);
            transition: all 0.8s 0.3s ease-out;
        }
        #hero-scene-5-root.is-loaded .h5-checklist {
            opacity: 1;
            transform: translateY(0);
        }

        #hero-scene-5-root .h5-check-item {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.9rem;
            color: #d1d5db;
        }
        #hero-scene-5-root .h5-check-icon {
            width: 18px;
            height: 18px;
            border-radius: 999px;
            border: 1px solid rgba(255,255,255,0.4);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
        }

        /* Barras de paginación */
        #hero-scene-5-root .h5-dots {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-top: 1.75rem;
        }
        #hero-scene-5-root .h5-dot {
            height: 4px;
            border-radius: 999px;
            background: rgba(255,255,255,0.2);
            width: 16px;
            border: none;
            padding: 0;
            cursor: pointer;
            transition: all 0.4s ease;
        }
        #hero-scene-5-root .h5-dot.h5-dot-active {
            width: 48px;
            background: #ffffff;
        }

        /* Columna derecha: mockup del navegador */
        #hero-scene-5-root .h5-right {
            position: relative;
            order: 1;
            perspective: 2000px;
        }
        @media (min-width: 992px) {
            #hero-scene-5-root .h5-right { order: 2; }
        }

        #hero-scene-5-root .h5-browser {
            position: relative;
            width: 100%;
            max-width: 640px;
            aspect-ratio: 16/10;
            background: #0f0f0f;
            border-radius: 16px;
            border: 1px solid rgba(255,255,255,0.12);
            overflow: hidden;
            box-shadow: 0 25px 50px -12px rgba(0,0,0,0.7);
            display: flex;
            flex-direction: column;
            transform-origin: center;
            opacity: 0;
            transform: scale(0.92) rotateY(4deg);
            transition: transform 0.8s ease, opacity 0.8s ease;
        }
        #hero-scene-5-root.is-loaded .h5-browser {
            opacity: 1;
            transform: scale(1) rotateY(0deg);
        }
        #hero-scene-5-root .h5-browser:hover {
            transform: scale(1.02) rotateY(2deg);
        }

        #hero-scene-5-root .h5-browser-bar {
            height: 32px;
            background: #1a1a1a;
            border-bottom: 1px solid rgba(255,255,255,0.06);
            display: flex;
            align-items: center;
            padding: 0 1rem;
            gap: 8px;
        }
        #hero-scene-5-root .h5-browser-dots {
            display: flex;
            gap: 4px;
        }
        #hero-scene-5-root .h5-browser-dot {
            width: 9px;
            height: 9px;
            border-radius: 999px;
            background: rgba(255,255,255,0.2);
        }
        #hero-scene-5-root .h5-url-chip {
            flex: 1;
            text-align: center;
        }
        #hero-scene-5-root .h5-url-chip-inner {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 3px 12px;
            border-radius: 999px;
            background: rgba(0,0,0,0.5);
            font-size: 9px;
            font-family: monospace;
            color: #6b7280;
            letter-spacing: 0.12em;
        }
        #hero-scene-5-root .h5-url-status-dot {
            width: 8px;
            height: 8px;
            border-radius: 999px;
            background: #06b6d4;
        }

        #hero-scene-5-root .h5-browser-body {
            position: relative;
            flex: 1;
            background: black;
            overflow: hidden;
            display: flex;
        }

        #hero-scene-5-root .h5-bg-container {
            position: absolute;
            inset: 0;
        }
        #hero-scene-5-root .h5-bg-layer {
            position: absolute;
            inset: 0;
            opacity: 0;
            transform: scale(1.05);
            transition: opacity 1s ease, transform 1s ease;
        }
        #hero-scene-5-root .h5-bg-layer img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        #hero-scene-5-root .h5-bg-layer::after {
            content: '';
            position: absolute;
            inset: 0;
            background: rgba(0,0,0,0.3);
        }
        #hero-scene-5-root .h5-bg-layer.h5-bg-active {
            opacity: 1;
            transform: scale(1);
        }

        /* UI web mockup */
        #hero-scene-5-root .h5-web-ui {
            position: relative;
            z-index: 10;
            width: 100%;
            height: 100%;
            padding: 24px 28px;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            opacity: 0;
            transform: translateY(18px);
            transition: all 0.9s ease-out;
        }
        #hero-scene-5-root .h5-web-ui.h5-ui-visible {
            opacity: 1;
            transform: translateY(0);
        }

        #hero-scene-5-root .h5-web-tag {
            display: inline-block;
            padding: 4px 12px;
            border-radius: 6px;
            background: rgba(0,0,0,0.65);
            border: 1px solid rgba(255,255,255,0.2);
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.14em;
            margin-bottom: 14px;
        }

        #hero-scene-5-root .h5-web-title {
            font-size: 2.3rem;
            font-weight: 800;
            line-height: 1.1;
            margin-bottom: 20px;
            max-width: 20rem;
            text-shadow: 0 2px 10px rgba(0,0,0,0.6);
        }
        @media (min-width: 768px) {
            #hero-scene-5-root .h5-web-title { font-size: 3rem; max-width: 24rem; }
        }

        #hero-scene-5-root .h5-cta-row {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        #hero-scene-5-root .h5-cta {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 12px 32px;
            border-radius: 999px;
            border: none;
            font-size: 0.85rem;
            font-weight: 700;
            color: white;
            background: #06b6d4;
            cursor: pointer;
            box-shadow: 0 15px 30px -10px rgba(0,0,0,0.7);
            transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.7s ease;
        }
        #hero-scene-5-root .h5-cta:hover {
            transform: translateY(-1px);
            box-shadow: 0 18px 40px -14px rgba(0,0,0,0.8);
        }
        #hero-scene-5-root .h5-cta i {
            font-size: 0.85rem;
        }

        #hero-scene-5-root .h5-color-sync {
            display: none;
            align-items: center;
            gap: 6px;
            padding: 6px 10px;
            border-radius: 999px;
            background: rgba(0,0,0,0.7);
            border: 1px solid rgba(255,255,255,0.15);
            font-size: 9px;
            font-family: monospace;
            color: #d1d5db;
        }
        @media (min-width: 768px) {
            #hero-scene-5-root .h5-color-sync { display: inline-flex; }
        }
        #hero-scene-5-root .h5-color-dot {
            width: 8px;
            height: 8px;
            border-radius: 999px;
            background: #06b6d4;
        }

        /* Badge AI flotante */
        #hero-scene-5-root .h5-ai-badge {
            position: absolute;
            top: 20px;
            right: 20px;
            z-index: 20;
            opacity: 0;
            transform: translateY(-10px);
            transition: all 0.7s ease-out 0.35s;
        }
        #hero-scene-5-root.is-loaded .h5-ai-badge {
            opacity: 1;
            transform: translateY(0);
        }
        #hero-scene-5-root .h5-ai-connector {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 6px;
        }
        #hero-scene-5-root .h5-ai-line {
            width: 32px;
            height: 1px;
            background: rgba(255,255,255,0.6);
        }
        #hero-scene-5-root .h5-ai-dot {
            width: 6px;
            height: 6px;
            border-radius: 999px;
            background: #ffffff;
        }
        #hero-scene-5-root .h5-ai-box {
            background: rgba(0,0,0,0.8);
            backdrop-filter: blur(10px);
            border-radius: 10px;
            border: 1px solid rgba(255,255,255,0.2);
            padding: 10px 12px;
            max-width: 220px;
            box-shadow: 0 20px 35px -18px rgba(0,0,0,0.8);
        }
        #hero-scene-5-root .h5-ai-header {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 4px;
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 0.14em;
            color: #e9d5ff;
        }
        #hero-scene-5-root .h5-ai-header i {
            color: #c084fc;
            font-size: 11px;
        }
        #hero-scene-5-root .h5-ai-text {
            font-size: 9px;
            color: #9ca3af;
            line-height: 1.4;
        }

        /* Sombra inferior */
        #hero-scene-5-root .h5-floor {
            position: absolute;
            left: 10%;
            right: 10%;
            bottom: -18px;
            height: 70px;
            background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.12), transparent 65%);
            filter: blur(16px);
            opacity: 0.7;
            pointer-events: none;
        }

/*Estilos Hero Scene 6*/

 #hero-scene-6-root { font-family: 'Inter', sans-serif; color: white; }

        /* AMBIENT */
        #hero-scene-6-root .ambient-glow {
            position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
            width: 80vw; height: 80vh; background: rgba(20, 184, 166, 0.1); border-radius: 50%; filter: blur(150px);
            opacity: 0; transition: opacity 2s;
        }
        #hero-scene-6-root.is-loaded .ambient-glow { opacity: 0.5; }

        /* DEVICE INDICATORS */
        #hero-scene-6-root .device-bar {
            position: absolute; top: 100px; display: flex; align-items: center; gap: 1.5rem;
            background: rgba(0,0,0,0.4); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.05);
            padding: 0.5rem 1rem; border-radius: 99px;
            opacity: 0; transform: translateY(-20px); transition: all 1s;
        }
        #hero-scene-6-root.is-loaded .device-bar { opacity: 1; transform: translateY(120px); }

        #hero-scene-6-root .device-item {
            display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: 0.4; transition: all 0.3s; transform: scale(1);
            cursor: default; /* No son clickeables, solo indicadores visuales */
            pointer-events: none; /* Deshabilitar interacción */
        }
        #hero-scene-6-root .device-item.active { opacity: 1; transform: scale(1.1); color: #2dd4bf; }
        #hero-scene-6-root .device-sep { width: 1px; height: 16px; background: rgba(255,255,255,0.1); }

        /* FLUID CONTAINER */
        #hero-scene-6-root .fluid-container-wrapper {
            position: relative; width: 100%; max-width: 1400px; height: 60vh; display: flex; justify-content: center; align-items: center; margin-top: 4rem;
            opacity: 0; transform: scale(0.95); transition: all 1s ease-out 0.3s;
        }
        #hero-scene-6-root.is-loaded .fluid-container-wrapper { opacity: 1; transform: scale(1); }

        #hero-scene-6-root .fluid-window {
            position: relative; height: 100%; background: #0a0a0a; border-radius: 1rem; border: 1px solid rgba(255,255,255,0.1);
            box-shadow: 0 0 50px -10px rgba(20, 184, 166, 0.15); overflow: hidden;
            width: 60%; /* Initial */
            transition: width 0.05s linear; /* Transición ultrarrápida para mousemove fluido */
        }

        /* Window Header */
        #hero-scene-6-root .win-header {
            height: 32px; 
            background: rgba(255,255,255,0.05); 
            border-bottom: 1px solid rgba(255,255,255,0.05);
            display: flex; 
            align-items: center; 
            gap: 8px; 
            padding: 0 1rem;
        }
        #hero-scene-6-root .win-dots { display: flex; gap: 6px; }
        #hero-scene-6-root .dot { width: 10px; height: 10px; border-radius: 50%; }
        
        /* Content Grid Responsive */
        #hero-scene-6-root .fluid-content { padding: 2rem; height: calc(100% - 32px); display: flex; flex-direction: column; overflow: hidden; }
        
        #hero-scene-6-root .cards-grid {
            display: grid; gap: 1rem; width: 100%;
            /* Default styles, updated by JS */
            grid-template-columns: repeat(3, 1fr); 
            transition: all 0.3s ease; /* Transición suave para reorganización */
        }

        /* Cards */
        #hero-scene-6-root .fluid-card {
            background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.05); padding: 1rem; border-radius: 0.75rem;
            display: flex; flex-direction: column; gap: 0.5rem; transition: background 0.3s;
        }
        #hero-scene-6-root .fluid-card:hover { background: rgba(255,255,255,0.1); }

        /* Resize Handle */
        #hero-scene-6-root .resize-handle {
            position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 24px; height: 48px;
            background: rgba(255,255,255,0.1); backdrop-filter: blur(4px); border-radius: 4px 0 0 4px;
            display: flex; align-items: center; justify-content: center; cursor: ew-resize;
            opacity: 0; transition: opacity 0.3s, transform 0.3s; translate: 100%;
        }
        #hero-scene-6-root .fluid-window:hover .resize-handle { opacity: 1; translate: 0; }

        /* Instruction */
        #hero-scene-6-root .instruction {
            position: absolute; bottom: 7rem; text-align: center; width: 100%;
            font-size: 10px; text-transform: uppercase; letter-spacing: 2px; color: #666;
            animation: pulse 2s infinite; pointer-events: none;
            transition: opacity 0.5s ease;
        }
        @keyframes pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
        
        /* Ocultar instrucción cuando se hace hover en desktop */
        #hero-scene-6-root .fluid-container-wrapper:hover ~ .instruction {
            opacity: 0;
        }

/* ============================================
   HERO SCENE 8: DEVICE FUSION (Apps)
   ============================================ */

.hero-scene-8 {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    background: #050508;
    color: white;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background */
.h8-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.h8-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.h8-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
}

.h8-glow-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    top: 10%;
    right: 10%;
    animation: h8-float 8s ease-in-out infinite;
}

.h8-glow-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    bottom: 10%;
    left: 20%;
    animation: h8-float 10s ease-in-out infinite reverse;
}

@keyframes h8-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

/* Container */
.h8-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Text Column */
.h8-text-col {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 1s ease-out;
}

.hero-scene-8.is-loaded .h8-text-col {
    opacity: 1;
    transform: translateX(0);
}

.h8-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 99px;
    font-size: 0.85rem;
    color: #22d3ee;
    margin-bottom: 1.5rem;
}

.h8-badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.h8-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.h8-gradient {
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.h8-description {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 500px;
}

.h8-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 2rem;
}

.h8-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #cbd5e1;
}

.h8-feature-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.h8-cta-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.h8-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
    font-weight: 600;
    border-radius: 99px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
}

.h8-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.5);
}

.h8-cta-secondary {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background: transparent;
    color: #94a3b8;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 99px;
    text-decoration: none;
    transition: all 0.3s;
}

.h8-cta-secondary:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

/* Visual Column */
.h8-visual-col {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.h8-device-wrapper {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out 0.3s;
}

.hero-scene-8.is-loaded .h8-device-wrapper {
    opacity: 1;
    transform: translateY(0);
}

/* Device - transforms based on data-device attribute */
.h8-device {
    background: #0f0f14;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 0 0 1px rgba(255,255,255,0.05),
        0 25px 50px -12px rgba(0,0,0,0.5),
        0 0 80px rgba(6, 182, 212, 0.1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

/* Mobile Mode (default) */
.hero-scene-8[data-device="mobile"] .h8-device {
    width: 280px;
    height: 560px;
}

/* Tablet Mode */
.hero-scene-8[data-device="tablet"] .h8-device {
    width: 540px;
    height: 400px;
    border-radius: 16px;
}

/* Desktop Mode */
.hero-scene-8[data-device="desktop"] .h8-device {
    width: 780px;
    height: 480px;
    border-radius: 12px;
}

/* Device Bar */
.h8-device-bar {
    height: 36px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 12px;
}

.h8-device-dots {
    position: absolute;
    left: 12px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.3s;
}

.hero-scene-8[data-device="desktop"] .h8-device-dots,
.hero-scene-8[data-device="tablet"] .h8-device-dots {
    opacity: 1;
}

.h8-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.h8-dot:nth-child(1) { background: #ff5f57; }
.h8-dot:nth-child(2) { background: #ffbd2e; }
.h8-dot:nth-child(3) { background: #28ca42; }

.h8-device-notch {
    width: 100px;
    height: 24px;
    background: #050508;
    border-radius: 0 0 16px 16px;
    opacity: 1;
    transition: all 0.3s;
}

.hero-scene-8[data-device="tablet"] .h8-device-notch,
.hero-scene-8[data-device="desktop"] .h8-device-notch {
    opacity: 0;
    width: 0;
}

/* Screen */
.h8-screen {
    height: calc(100% - 36px);
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #0a0a0f 0%, #0f0f18 100%);
}

/* App Header */
.h8-app-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.h8-app-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.h8-app-name {
    font-weight: 600;
    font-size: 0.9rem;
    flex: 1;
}

.h8-app-menu {
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    padding: 4px;
    font-size: 1rem;
}

/* App Content */
.h8-app-content {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    overflow: hidden;
    transition: all 0.5s ease;
}

.hero-scene-8[data-device="tablet"] .h8-app-content,
.hero-scene-8[data-device="desktop"] .h8-app-content {
    flex-direction: row;
    justify-content: flex-start;
    padding: 24px;
    gap: 32px;
    align-items: center;
}

/* Album Cover */
.h8-album-cover {
    width: 100%;
    display: flex;
    justify-content: center;
    transition: all 0.5s ease;
}

.hero-scene-8[data-device="tablet"] .h8-album-cover,
.hero-scene-8[data-device="desktop"] .h8-album-cover {
    width: auto;
}

.h8-album-art {
    width: 140px;
    height: 140px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: all 0.5s ease;
}

.hero-scene-8[data-device="tablet"] .h8-album-art {
    width: 180px;
    height: 180px;
}

.hero-scene-8[data-device="desktop"] .h8-album-art {
    width: 160px;
    height: 160px;
}

/* Player Details Wrapper */
.h8-player-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.hero-scene-8[data-device="tablet"] .h8-player-details,
.hero-scene-8[data-device="desktop"] .h8-player-details {
    align-items: flex-start;
    width: auto;
    flex: 1;
}

/* Song Info */
.h8-song-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    transition: all 0.5s ease;
}

.hero-scene-8[data-device="tablet"] .h8-song-info,
.hero-scene-8[data-device="desktop"] .h8-song-info {
    text-align: left;
    align-items: flex-start;
}

.h8-song-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f1f5f9;
}

.h8-song-artist {
    font-size: 0.8rem;
    color: #64748b;
}

/* Progress Bar */
.h8-progress-bar {
    width: 100%;
    max-width: 240px;
    transition: all 0.5s ease;
}

.hero-scene-8[data-device="tablet"] .h8-progress-bar {
    max-width: 100%;
}

.hero-scene-8[data-device="desktop"] .h8-progress-bar {
    max-width: 280px;
}

.h8-progress-track {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.h8-progress-fill {
    width: 38%;
    height: 100%;
    background: linear-gradient(90deg, #06b6d4, #8b5cf6);
    border-radius: 2px;
}

.h8-progress-times {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.65rem;
    color: #64748b;
}

/* Player Controls */
.h8-player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.5s ease;
}

.hero-scene-8[data-device="tablet"] .h8-player-controls,
.hero-scene-8[data-device="desktop"] .h8-player-controls {
    justify-content: flex-start;
    gap: 16px;
}

.h8-control-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.h8-control-btn:hover {
    color: white;
}

.h8-play-btn {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
}

.h8-play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(6, 182, 212, 0.5);
}

/* Playlist (Desktop Only) */
.h8-playlist {
    display: none;
    flex-direction: column;
    gap: 8px;
    width: 220px;
    background: rgba(255,255,255,0.02);
    border-left: 1px solid rgba(255,255,255,0.08);
    padding: 16px;
    height: 100%;
    overflow-y: auto;
    margin: -24px -24px -24px 0; /* Negativo para pegar al borde derecho */
}

.hero-scene-8[data-device="desktop"] .h8-playlist {
    display: flex;
}

.h8-playlist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s;
}

.h8-playlist-item:hover {
    background: rgba(255,255,255,0.05);
    color: #cbd5e1;
}

.h8-playlist-item.active {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
}

.h8-playlist-item .h8-time {
    margin-left: auto;
    font-size: 0.65rem;
    opacity: 0.6;
}

/* Navigation Bar */
.h8-nav-bar {
    display: flex;
    justify-content: space-around;
    padding: 10px 8px;
    background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.05);
    transition: all 0.5s ease;
}

.h8-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.65rem;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.3s;
}

.h8-nav-item i {
    font-size: 1rem;
}

.h8-nav-item.active {
    color: #06b6d4;
}

.h8-nav-item:hover {
    color: #94a3b8;
}

/* Desktop: nav bar becomes horizontal with text */
.hero-scene-8[data-device="desktop"] .h8-nav-bar {
    justify-content: center;
    gap: 32px;
}

.hero-scene-8[data-device="desktop"] .h8-nav-item {
    flex-direction: row;
    gap: 8px;
    font-size: 0.8rem;
}

/* Floating Badges */
.h8-float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(15, 15, 25, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 99px;
    font-size: 0.8rem;
    color: #e2e8f0;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.5s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-scene-8.is-loaded .h8-float-badge {
    opacity: 1;
}

.h8-badge-pwa {
    top: 10%;
    right: -20px;
    transform: translateX(20px);
    animation: h8-badge-float 4s ease-in-out infinite;
}

.h8-badge-pwa i { color: #22d3ee; }

.h8-badge-offline {
    bottom: 25%;
    left: -30px;
    transform: translateX(-20px);
    animation: h8-badge-float 5s ease-in-out infinite 0.5s;
}

.h8-badge-offline i { color: #f472b6; }

.h8-badge-responsive {
    top: 40%;
    right: -40px;
    transform: translateX(20px);
    animation: h8-badge-float 4.5s ease-in-out infinite 1s;
}

.h8-badge-responsive i { color: #a78bfa; }

.hero-scene-8.is-loaded .h8-badge-pwa,
.hero-scene-8.is-loaded .h8-badge-offline,
.hero-scene-8.is-loaded .h8-badge-responsive {
    transform: translateX(0);
}

@keyframes h8-badge-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Mode Indicator */
.h8-mode-indicator {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    padding: 8px;
    background: rgba(15, 15, 25, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 99px;
}

.h8-mode-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.h8-mode-btn:hover {
    background: rgba(255,255,255,0.05);
    color: #cbd5e1;
}

.h8-mode-btn.active {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    border-color: transparent;
    color: white;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

/* Forzar eliminación de gap en móviles reales */
@media (max-width: 768px) {
    #header + .include-header,
    .include-header {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    #hero-system-container.include-header {
        padding-top: 0 !important;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .h8-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding-top: 100px;
    }

    .h8-text-col {
        order: 1;
        padding: 0 1rem;
    }

    .h8-visual-col {
        order: 2;
        padding-top: 60px;
    }

    .h8-mode-indicator {
        bottom: auto;
        top: -60px;
    }
}

@media (max-width: 768px) {
    .hero-scene-8 {
        padding-top: 30px;
    }

    .h8-container {
        gap: 0.5rem;
        padding: 0 1rem;
        padding-top: 20px; /* Aún menos padding */
    }

    .h8-badge {
        margin-bottom: 0.4rem;
        font-size: 0.65rem;
        padding: 3px 10px;
    }

    .h8-title {
        font-size: 1.5rem;
        margin-bottom: 0.4rem;
        line-height: 1.1;
    }

    .h8-description {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
        padding: 0;
        max-width: 100%;
    }

    .h8-features {
        gap: 4px;
        margin-bottom: 0.75rem;
        text-align: left;
        display: inline-flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .h8-feature {
        font-size: 0.75rem;
    }

    .h8-cta-row {
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .h8-cta-primary,
    .h8-cta-secondary {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .h8-float-badge {
        display: none;
    }

    .h8-device-wrapper {
        transform: scale(1) !important;
        margin-top: 0;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        width: 100%;
        height: 340px; /* Aumentado un poco para dar más aire */
        position: relative;
        overflow: visible;
    }

    /* Centrado absoluto Robusto */
    .h8-device {
        position: absolute;
        left: 50% !important;
        top: 0;
        margin: 0 !important;
    }

    .hero-scene-8[data-device="mobile"] .h8-device {
        width: 180px; /* Más estrecho */
        height: 320px; /* Más corto */
        transform: translate(-50%, 0) scale(0.9) !important;
        transform-origin: top center;
    }

    .hero-scene-8[data-device="tablet"] .h8-device {
        width: 540px;
        height: 400px;
        transform: translate(-50%, 0) scale(0.55) !important; /* Reducido escala */
        transform-origin: top center;
    }

    .hero-scene-8[data-device="desktop"] .h8-device {
        width: 780px;
        height: 480px;
        transform: translate(-50%, 0) scale(0.48) !important; /* Reducido escala */
        transform-origin: top center;
    }

    /* Reducción AGRESIVA de elementos internos para modo móvil nativo */
    .hero-scene-8[data-device="mobile"] .h8-album-art {
        width: 45px; /* Miniatura */
        height: 45px;
        font-size: 1rem;
        border-radius: 8px;
    }

    .hero-scene-8[data-device="mobile"] .h8-app-content {
        gap: 6px;
        padding: 8px;
    }

    .hero-scene-8[data-device="mobile"] .h8-app-header {
        padding: 8px 12px;
        height: 40px;
    }

    .hero-scene-8[data-device="mobile"] .h8-app-logo {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }

    .hero-scene-8[data-device="mobile"] .h8-app-name {
        font-size: 0.75rem;
    }

    .hero-scene-8[data-device="mobile"] .h8-song-info {
        gap: 1px;
    }

    .hero-scene-8[data-device="mobile"] .h8-song-title {
        font-size: 0.85rem;
    }

    .hero-scene-8[data-device="mobile"] .h8-song-artist {
        font-size: 0.65rem;
    }

    .hero-scene-8[data-device="mobile"] .h8-progress-bar {
        max-width: 120px;
        margin: 1px 0;
    }

    .hero-scene-8[data-device="mobile"] .h8-progress-times {
        font-size: 0.55rem;
        margin-top: 2px;
    }

    .hero-scene-8[data-device="mobile"] .h8-player-controls {
        gap: 5px;
    }

    .hero-scene-8[data-device="mobile"] .h8-control-btn {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    .hero-scene-8[data-device="mobile"] .h8-play-btn {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    .hero-scene-8[data-device="mobile"] .h8-nav-bar {
        padding: 4px;
        height: 44px;
    }

    .hero-scene-8[data-device="mobile"] .h8-nav-item {
        gap: 2px;
        padding: 2px;
    }

    .hero-scene-8[data-device="mobile"] .h8-nav-item i {
        font-size: 0.85rem;
    }

    .hero-scene-8[data-device="mobile"] .h8-nav-item span {
        font-size: 0.55rem;
    }

    .h8-mode-indicator {
        bottom: auto;
        top: -80px; /* Forzar arriba en móvil */
        padding: 5px;
        z-index: 100;
        background: rgba(15, 15, 25, 0.95);
    }
}

/* ============================================
   HERO SCENE 9: IDEA-TO-APP PIPELINE
   ============================================ */

.hero-scene-9 {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a12 0%, #1a0a2e 50%, #0a1628 100%);
    color: white;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.h9-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.h9-particles {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(2px 2px at 20px 30px, rgba(139, 92, 246, 0.3), transparent),
                      radial-gradient(2px 2px at 40px 70px, rgba(6, 182, 212, 0.3), transparent),
                      radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.2), transparent),
                      radial-gradient(2px 2px at 130px 80px, rgba(139, 92, 246, 0.2), transparent);
    background-size: 200px 200px;
    animation: h9-particles-drift 20s linear infinite;
}

@keyframes h9-particles-drift {
    from { background-position: 0 0; }
    to { background-position: 200px 200px; }
}

.h9-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}

.h9-glow-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    top: 20%;
    left: 10%;
    animation: h9-glow-pulse 6s ease-in-out infinite;
}

.h9-glow-2 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    bottom: 20%;
    right: 15%;
    animation: h9-glow-pulse 8s ease-in-out infinite reverse;
}

@keyframes h9-glow-pulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.2); opacity: 0.6; }
}

.h9-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.h9-text-col {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 1s ease-out;
}

.hero-scene-9.is-loaded .h9-text-col {
    opacity: 1;
    transform: translateX(0);
}

.h9-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 99px;
    font-size: 0.85rem;
    color: #a78bfa;
    margin-bottom: 1.5rem;
}

.h9-badge-icon {
    display: flex;
    align-items: center;
}

.h9-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.h9-gradient {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.h9-description {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 480px;
}

.h9-stats-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.h9-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.h9-stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.h9-stat-label {
    font-size: 0.85rem;
    color: #64748b;
}

.h9-cta-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.h9-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    font-weight: 600;
    border-radius: 99px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.h9-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.5);
}

.h9-cta-secondary {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background: transparent;
    color: #94a3b8;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 99px;
    text-decoration: none;
    transition: all 0.3s;
}

.h9-cta-secondary:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

/* Visual Column - Pipeline */
.h9-visual-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.h9-pipeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out 0.3s;
}

.hero-scene-9.is-loaded .h9-pipeline {
    opacity: 1;
    transform: translateY(0);
}

.h9-step {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    position: relative;
    opacity: 0.4;
    transform: translateX(20px);
    transition: all 0.5s ease;
}

.h9-step.active,
.h9-step.completed {
    opacity: 1;
    transform: translateX(0);
}

.h9-step-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #64748b;
    transition: all 0.5s ease;
    flex-shrink: 0;
}

.h9-step.active .h9-step-icon {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    border-color: transparent;
    color: white;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
    transform: scale(1.1);
}

.h9-step.completed .h9-step-icon {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
    color: #4ade80;
}

.h9-step-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #e2e8f0;
}

.h9-step-content p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

/* Features mini para apps móviles */
.h9-features-mini {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.h9-feature-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #a78bfa;
}

.h9-feature-mini i {
    font-size: 1.1rem;
}

.h9-feature-mini i.fa-apple,
.h9-feature-mini i.fa-android {
    color: #94a3b8;
}

.h9-step-connector {
    position: absolute;
    left: 46px;
    top: 72px;
    width: 1px;
    height: 32px;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.4), rgba(6, 182, 212, 0.2));
}

.h9-step:last-child .h9-step-connector {
    display: none;
}

.h9-step.completed .h9-step-connector {
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.6), rgba(6, 182, 212, 0.4));
}

.h9-progress-line {
    position: absolute;
    left: 45px;
    top: 48px;
    width: 2px;
    height: 0%;
    background: linear-gradient(180deg, #8b5cf6, #06b6d4);
    border-radius: 1px;
    transition: height 0.5s ease;
    z-index: -1;
    opacity: 0.7;
}

.h9-progress-line::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #06b6d4;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.6);
}

/* Responsive Scene 9 */
@media (max-width: 1024px) {
    .h9-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .h9-text-col { order: 1; }
    .h9-visual-col { order: 2; }

    .h9-description { margin-left: auto; margin-right: auto; }
    .h9-stats-row { justify-content: center; }
    .h9-cta-row { justify-content: center; }
}

@media (max-width: 768px) {
    .hero-scene-9 { padding-top: 80px; }
    .h9-container { gap: 1.5rem; padding: 1rem; }
    .h9-badge { margin-bottom: 0.75rem; font-size: 0.75rem; }
    .h9-title { font-size: 1.75rem; margin-bottom: 1rem; }
    .h9-description { font-size: 0.95rem; margin-bottom: 1rem; }
    .h9-features-mini { flex-direction: column; gap: 0.75rem; align-items: center; margin-bottom: 1.25rem; }
    .h9-cta-primary, .h9-cta-secondary { padding: 12px 20px; font-size: 0.9rem; }
    
    .h9-pipeline { padding: 1rem; transform: scale(0.9); }
    .h9-step { padding: 12px; gap: 12px; }
    .h9-step-icon { width: 44px; height: 44px; font-size: 1rem; border-radius: 12px; }
    .h9-step-content h3 { font-size: 0.95rem; }
    .h9-step-content p { font-size: 0.8rem; }
    .h9-step-connector { left: 32px; top: 54px; height: 20px; }
    .h9-progress-line { left: 31px; top: 34px; }
}
