/* Vars */
        :root {
            --bg-deep: #050505;
            --halo-white: #ffffff;
            --halo-grey: #a1a1aa;
            --glass-bg: rgba(255, 255, 255, 0.03);
            --glass-border: rgba(255, 255, 255, 0.15);
            --accent-glow: rgba(255, 255, 255, 0.4);
        }

        /* Base */
        body, button, a, div { cursor: default; }
        body {
            background-color: var(--bg-deep);
            color: var(--halo-white);
            font-family: 'Barlow', 'Rajdhani', sans-serif;
            overflow: hidden;
            margin: 0;
            height: 100vh;
            width: 100vw;
            user-select: none;
        }
        .font-tech { font-family: 'Rajdhani', monospace; font-weight: 600; }

        /* Video */
        #video-bg-container {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            z-index: -10;
            overflow: hidden;
            transition: opacity 2s ease;
        }
        #bg-video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: brightness(0.4) desaturate(1) contrast(1.1);
            transition: filter 1s ease;
        }
        #bg-video.active-mode { filter: brightness(0.6) desaturate(0.8) contrast(1.1); }
        .video-overlay {
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background: radial-gradient(circle at left, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%);
            z-index: 1;
        }

        /* Lang */
        .lang-btn {
            width: 160px; height: 160px;
            background: transparent; border: none;
            padding: 0; cursor: pointer;
        }
        @media (max-width: 768px) { .lang-btn { width: 140px; height: 140px; } }

        /* FX */
        .scanlines {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.1));
            background-size: 100% 3px;
            z-index: 90; pointer-events: none; opacity: 0.15;
        }
        .noise-overlay {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            z-index: 89; opacity: 0.03; pointer-events: none;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
        }
        .vignette {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: radial-gradient(circle at center, transparent 0%, #000 120%);
            z-index: -5; pointer-events: none;
        }

        /* Anim */
        @keyframes slideInRight {
            0% { opacity: 0; transform: translateX(30px); }
            100% { opacity: 1; transform: translateX(0); }
        }
        @keyframes pingSlow { 75%, 100% { transform: scale(2); opacity: 0; } }
        @keyframes pingSlower { 75%, 100% { transform: scale(2.5); opacity: 0; } }
        @keyframes reactorSurge {
            0% { transform: scale(1); opacity: 0.9; border-width: 2px; border-color: white; }
            100% { transform: scale(50); opacity: 0; border-width: 0px; border-color: white; }
        }

        .animate-ping-slow { animation: pingSlow 3s cubic-bezier(0, 0, 0.2, 1) infinite; }
        .animate-ping-slower { animation: pingSlower 4s cubic-bezier(0, 0, 0.2, 1) infinite; animation-delay: 1s; }
        .anim-slide-in { animation: slideInRight 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; opacity: 0; }
        .anim-fade-up { animation: slideInRight 0.6s ease forwards; opacity: 0; }
        .delay-0 { animation-delay: 0ms; }
        .delay-1 { animation-delay: 50ms; }
        .delay-2 { animation-delay: 100ms; }
        .delay-3 { animation-delay: 150ms; }

        .reactor-mode .ripple-ring { animation: reactorSurge 0.6s cubic-bezier(0.1, 0.5, 0.1, 1) infinite !important; }
        .reactor-mode .ripple-ring:nth-child(2) { animation-delay: 0.0s !important; }
        .reactor-mode .ripple-ring:nth-child(3) { animation-delay: 0.1s !important; }
        .reactor-mode .ripple-ring:nth-child(4) { animation-delay: 0.2s !important; }
        .reactor-mode .ripple-ring:nth-child(5) { animation-delay: 0.3s !important; }
        .reactor-mode .ripple-ring:nth-child(6) { animation-delay: 0.4s !important; }
        .reactor-mode .ripple-ring:nth-child(7) { animation-delay: 0.5s !important; }

        /* Boot */
        #boot-screen {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: #000; z-index: 100;
            display: flex; flex-direction: column; justify-content: center; align-items: center;
            transition: opacity 0.8s ease;
        }
        .log-line {
            color: var(--halo-white); font-size: 0.8rem; width: 100%;
            border-left: 2px solid var(--halo-white); padding-left: 10px; margin-bottom: 5px;
            opacity: 0; animation: slideInRight 0.2s forwards;
        }

        /* Layout */
        .main-layout { 
            display: grid; 
            grid-template-columns: 60% 40%; /* <-- CORRECCIÓN: Panel izquierdo más ancho (estirado a la derecha) */
            height: 100vh; 
        }
        .panel-content {
            padding: 4rem 4rem; /* <-- CORRECCIÓN: Reducido de 6rem a 4rem para dar más espacio horizontal a los botones y claves */
            display: flex; flex-direction: column; justify-content: center;
            position: relative; z-index: 10;
            background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
            backdrop-filter: blur(5px);
            overflow-y: auto; /* Permite scroll si la pantalla es muy pequeña */
        }
        
        /* Scrollbar minimalista para el panel */
        .panel-content::-webkit-scrollbar { width: 4px; }
        .panel-content::-webkit-scrollbar-track { background: transparent; }
        .panel-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }

        .panel-visual { display: flex; align-items: center; justify-content: center; position: relative; }

        /* Text */
        .step-title {
            font-size: 4rem; font-weight: 300; margin-bottom: 0.5rem; line-height: 1;
            color: #fff; text-transform: uppercase; letter-spacing: 0.05em;
            text-shadow: 0 0 20px rgba(255,255,255,0.3);
        }
        .step-desc {
            font-size: 1.1rem; font-weight: 300; color: var(--halo-grey); margin-bottom: 2rem;
            max-width: 650px; /* <-- CORRECCIÓN: Aumentado de 500px a 650px para aprovechar el nuevo espacio */
            border-top: 1px solid rgba(255,255,255,0.2); padding-top: 1rem;
        }

        /* Cards */
        .glass-card {
            background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
            border-top: 1px solid rgba(255,255,255,0.1); border-right: 1px solid rgba(255,255,255,0.1);
            border-bottom: 1px solid rgba(255,255,255,0.1); border-left: none; 
            padding: 1.5rem; margin-bottom: 1.5rem; position: relative;
            transition: all 0.3s ease; backdrop-filter: blur(10px);
        }
        .glass-card:hover { background: rgba(255,255,255,0.08); transform: translateX(5px); box-shadow: 0 0 30px rgba(255,255,255,0.05); }
        .features-grid {
            display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem;
            max-height: 40vh; overflow-y: auto; padding-right: 10px;
        }
        .features-grid::-webkit-scrollbar { width: 4px; }
        .features-grid::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
        .features-grid::-webkit-scrollbar-thumb { background: white; }
        .feature-card {
            background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1);
            padding: 0.8rem; font-size: 0.8rem; color: var(--halo-grey);
            display: flex; align-items: center; gap: 8px; transition: all 0.2s;
        }
        .feature-card:hover { background: rgba(255,255,255,0.1); color: white; border-color: white; }
        .dotted-line { width: 100%; height: 1px; background: rgba(255,255,255,0.2); margin: 1rem 0; }

        /* Keys */
        .key-segment {
            background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2);
            color: white; padding: 0.5rem 1rem; cursor: pointer; transition: all 0.2s;
            min-width: 120px; height: 50px; text-align: center; font-family: 'Rajdhani', sans-serif;
            position: relative; overflow: hidden;
            display: inline-flex; justify-content: center; align-items: center;
        }
        .key-segment .base-text { 
            color: white !important; 
            transition: opacity 0.2s, transform 0.2s; 
        }
        .key-segment .hover-overlay {
            position: absolute; inset: 0; background: white; color: black;
            display: flex; justify-content: center; align-items: center; gap: 6px;
            opacity: 0; transform: translateY(10px); transition: all 0.2s;
        }
        .key-segment .copied-overlay {
            position: absolute; inset: 0; background: #10b981; color: white;
            display: flex; justify-content: center; align-items: center; gap: 6px;
            opacity: 0; transform: scale(0.9); transition: all 0.2s; z-index: 2;
        }
        
        .key-segment:hover .hover-overlay { opacity: 1; transform: translateY(0); }
        .key-segment:hover .base-text { opacity: 0; transform: translateY(-10px); }
        
        .key-segment.copied-state { border-color: #10b981; box-shadow: 0 0 20px rgba(16, 185, 129, 0.4); }
        .key-segment.copied-state .copied-overlay { opacity: 1; transform: scale(1); }
        .key-segment.copied-state .hover-overlay { opacity: 0; }
        .key-segment.copied-state .base-text { opacity: 0; }

        /* Buttons */
        .btn-action {
            background: var(--halo-white); color: #000; font-family: 'Rajdhani', sans-serif;
            font-weight: 700; font-size: 1rem; padding: 0.8rem 3rem; border: none; cursor: pointer;
            transition: transform 0.2s; display: flex; align-items: center; text-transform: uppercase;
            letter-spacing: 0.1em; position: relative; overflow: hidden;
            clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
        }
        .btn-action:hover { transform: scale(1.05); box-shadow: 0 0 40px rgba(255,255,255,0.4); }
        
        .btn-warning {
            background: #ef4444; color: #fff; font-family: 'Rajdhani', sans-serif;
            font-weight: 700; font-size: 1rem; padding: 0.8rem 2rem; border: none; cursor: pointer;
            transition: transform 0.2s; display: flex; align-items: center; text-transform: uppercase;
            letter-spacing: 0.1em; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
        }
        .btn-warning:hover { transform: scale(1.05); box-shadow: 0 0 40px rgba(239, 68, 68, 0.4); }

        .btn-back {
            background: transparent; color: var(--halo-grey); padding: 0.9rem 1rem; cursor: pointer;
            font-family: 'Rajdhani', monospace; transition: all 0.3s; text-transform: uppercase;
            font-size: 0.9rem; letter-spacing: 0.1em;
        }
        .btn-back:hover { color: white; }
        .btn-ghost {
            background: transparent; color: var(--halo-white); border: 1px solid rgba(255,255,255,0.3);
            padding: 0.7rem 1.5rem; cursor: pointer; font-family: 'Rajdhani', monospace;
            transition: all 0.3s; text-transform: uppercase; font-size: 0.8rem;
            display: flex; align-items: center; gap: 8px; margin-right: 1rem;
        }
        .btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: white; }

        /* Progress */
        .progress-pill-container { display: flex; gap: 4px; width: 100%; margin-bottom: 0; }
        .progress-segment { height: 2px; background: rgba(255,255,255,0.1); flex: 1; }
        .progress-fill {
            height: 100%; width: 0%; background-color: var(--halo-white);
            box-shadow: 0 0 15px var(--halo-white); transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        /* Visuals */
        .blur-glow { filter: drop-shadow(0 0 20px rgba(255,255,255,0.3)); }
        i.visual-icon { font-size: 150px; color: white; opacity: 0.9; }

        @media (max-width: 1024px) {
            .main-layout { grid-template-columns: 1fr; }
            .panel-visual { display: none; }
            .panel-content { padding: 2rem; background: rgba(0,0,0,0.7); overflow-y: auto; }
            .step-title { font-size: 2.5rem; }
            .features-grid { grid-template-columns: 1fr; }
        }