
        :root {
            --bg-main: #0f0c29;
            --bg-glass: rgba(255, 255, 255, 0.05);
            --border-glass: rgba(255, 255, 255, 0.1);
            --accent-wp: #25D366;
            --accent-cyan: #00d9ff;
            --accent-purple: #7928ca;
            --text-main: #ffffff;
            --text-muted: rgba(255, 255, 255, 0.6);
        }

        * { box-sizing: border-box; margin: 0; padding: 0; }

        body {
            font-family: 'Segoe UI', Roboto, sans-serif;
            background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
            color: var(--text-main);
            height: 100vh;
            display: flex;
            overflow: hidden;
        }

        .app-container { display: flex; width: 100%; height: 100%; }

        /* SIDEBAR */
        .sidebar {
            width: 80px;
            background: rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(10px);
            border-right: 1px solid var(--border-glass);
            display: flex; flex-direction: column;
            align-items: center; padding-top: 20px;
            z-index: 1000;
        }
        .logo { font-size: 28px; color: var(--accent-wp); margin-bottom: 40px; }
        .nav-btn {
            width: 50px; height: 50px; border-radius: 15px;
            background: transparent; border: none;
            color: var(--text-muted); font-size: 20px;
            cursor: pointer; margin-bottom: 20px;
            transition: all 0.3s ease;
            display: flex; align-items: center; justify-content: center;
        }
        .nav-btn:hover { background: rgba(255, 255, 255, 0.1); color: white; }
        .nav-btn.active { background: linear-gradient(135deg, var(--accent-wp), var(--accent-cyan)); color: #000; box-shadow: 0 0 15px rgba(0, 217, 255, 0.4); transform: scale(1.1); }

        /* CONTENT */
        .main-content { flex: 1; position: relative; overflow: hidden; }
        
        /* PAGES */
        .page { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: none; flex-direction: column; padding: 20px; }
        .page.active { display: flex; }
        
        /* Página Bot IA - permite scroll */
        #page-bot { 
            overflow-y: auto !important; 
            height: 100%;
            display: none;
            padding: 15px;
        }
        #page-bot.active { 
            display: flex; 
        }

        /* GLASS */
        .glass-panel { background: var(--bg-glass); backdrop-filter: blur(15px); border: 1px solid var(--border-glass); border-radius: 20px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); }

        /* --- CHAT PAGE --- */
        .chat-layout { display: flex; height: 100%; gap: 15px; }
        .chat-sidebar { width: 320px; display: flex; flex-direction: column; }
        .chat-main { flex: 1; display: flex; flex-direction: column; }
        .chat-info { width: 280px; display: flex; flex-direction: column; padding: 20px; gap: 15px; overflow-y: auto; }

        .search-box { padding: 15px; }
        .search-input { width: 100%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 12px 15px; color: white; font-size: 13px; }
        .search-input::placeholder { color: rgba(255,255,255,0.4); }
        .chat-list { flex: 1; overflow-y: auto; }
        
        /* Chat Item Styles - MEJORADO */
        .chat-item { 
            padding: 12px 15px; 
            display: flex; 
            gap: 12px; 
            cursor: pointer; 
            border-bottom: 1px solid rgba(255,255,255,0.05); 
            transition: background 0.2s;
        }
        .chat-item:hover { 
            background: rgba(255,255,255,0.05); 
        }
        .chat-item.active { 
            background: linear-gradient(90deg, rgba(0, 217, 255, 0.15), rgba(0, 217, 255, 0.05)); 
            border-left: 3px solid var(--accent-cyan); 
        }
        .chat-item .chat-info { 
            flex: 1; 
            display: flex; 
            flex-direction: column; 
            overflow: hidden; 
            padding: 0;
            gap: 4px;
        }
        .chat-item .chat-name { 
            font-weight: 600; 
            font-size: 14px; 
            white-space: nowrap; 
            overflow: hidden; 
            text-overflow: ellipsis; 
            color: #fff;
        }
        .chat-item .chat-preview { 
            font-size: 12px; 
            color: rgba(255,255,255,0.5); 
            white-space: nowrap; 
            overflow: hidden; 
            text-overflow: ellipsis; 
        }
        .chat-item .chat-time { 
            font-size: 10px; 
            color: rgba(255,255,255,0.4); 
            min-width: 45px;
            text-align: right;
        }
        
        /* Avatar - MEJORADO */
        .chat-avatar { 
            width: 50px; 
            height: 50px; 
            min-width: 50px; 
            border-radius: 50% !important; 
            background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan)); 
            display: flex; 
            align-items: center; 
            justify-content: center; 
            font-weight: 600; 
            font-size: 16px; 
            color: #fff;
            box-shadow: 0 3px 10px rgba(0,217,255,0.3);
        }
        .chat-avatar img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
        }
        
        /* Mensajes - MEJORADO */
        .msg-area { 
            flex: 1; 
            padding: 20px; 
            overflow-y: auto; 
            display: flex; 
            flex-direction: column; 
            gap: 8px; 
            background: rgba(0,0,0,0.1);
        }
        .msg { 
            max-width: 70%; 
            padding: 12px 16px; 
            border-radius: 18px; 
            font-size: 14px; 
            line-height: 1.4;
            display: flex; 
            flex-direction: column; 
            position: relative;
            animation: fadeIn 0.2s ease;
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .msg .msg-text { 
            word-break: break-word; 
        }
        .msg .msg-time { 
            font-size: 10px; 
            opacity: 0.6; 
            margin-top: 4px; 
            align-self: flex-end;
        }
        .msg-in { 
            background: rgba(255,255,255,0.12); 
            align-self: flex-start; 
            border-bottom-left-radius: 4px;
        }
        .msg-out { 
            background: linear-gradient(135deg, #3b78aa, #13353b); 
            color: #fff; 
            align-self: flex-end; 
            border-bottom-right-radius: 4px;
            box-shadow: 0 4px 15px rgba(66, 83, 81, 0.3);
        }
        
        /* Chat Header */
        .chat-header { 
            padding: 15px 20px; 
            border-bottom: 1px solid var(--border-glass); 
            display: flex; 
            align-items: center; 
            gap: 12px;
            background: rgba(255,255,255,0.03);
        }
        .chat-header-avatar, #chat-header-avatar {
            width: 40px;
            height: 40px;
            min-width: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 12px;
            color: #fff;
            box-shadow: 0 3px 10px rgba(0,217,255,0.3);
        }
        .chat-header-info {
            flex: 1;
        }
        .chat-header-name {
            font-weight: 600;
            font-size: 15px;
        }
        .chat-header-phone {
            font-size: 11px;
            color: var(--accent-cyan);
            opacity: 0.7;
        }
        
        .input-area { 
            padding: 15px 20px; 
            border-top: 1px solid var(--border-glass); 
            display: flex; 
            gap: 12px; 
            background: rgba(255,255,255,0.03);
        }
        .input-area input {
            flex: 1;
            padding: 14px 18px;
            border-radius: 25px;
            border: 1px solid rgba(255,255,255,0.1);
            background: rgba(255,255,255,0.08);
            color: #fff;
            font-size: 14px;
        }
        .input-area input:focus {
            outline: none;
            border-color: var(--accent-cyan);
            box-shadow: 0 0 15px rgba(0,217,255,0.1);
        }
        .btn-send { 
            width: 45px; 
            height: 45px; 
            border-radius: 50%; 
            border: none; 
            background: linear-gradient(135deg, #00b09b, #00d4aa); 
            color: white; 
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(0,176,155,0.3);
            transition: transform 0.2s;
        }
        .btn-send:hover {
            transform: scale(1.05);
        }
        
        /* Status indicator */
        .status-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff0055; margin-left: auto; }
        .status-dot.connected { background: var(--accent-wp); box-shadow: 0 0 5px var(--accent-wp); }

        /* --- TEMPLATES PAGE --- */
        .grid-layout { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; overflow-y: auto; padding-bottom: 20px; }
        .card-template { padding: 20px; cursor: pointer; }
        .card-template:hover { transform: translateY(-5px); border-color: var(--accent-cyan); }

        /* --- MARKETING PAGE --- */
        .marketing-layout { display: flex; height: 100%; gap: 20px; }
        .calendar-section { flex: 2; display: flex; flex-direction: column; padding: 20px; }
        .campaigns-section { width: 350px; display: flex; flex-direction: column; padding: 20px; overflow-y: auto; }
        .campaign-card { background: rgba(0,0,0,0.2); border-radius: 10px; padding: 15px; margin-bottom: 15px; border-left: 4px solid var(--accent-purple); }

        /* --- MODAL CONFIG --- */
        .modal-overlay { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.8); z-index: 2000; display: flex; align-items: center; justify-content: center; display: none; }
        .modal-content { width: 400px; padding: 30px; }
        .modal-input { width: 100%; background: rgba(255,255,255,0.1); border: 1px solid var(--border-glass); margin-bottom: 15px; padding: 12px; border-radius: 8px; color: white; }
        .btn-save { width: 100%; padding: 12px; border: none; border-radius: 8px; background: var(--accent-cyan); color: black; font-weight: bold; cursor: pointer; }

        /* Loader */
        .loader { border: 3px solid rgba(255,255,255,0.1); border-top: 3px solid var(--accent-cyan); border-radius: 50%; width: 20px; height: 20px; animation: spin 1s linear infinite; display: inline-block; margin-right: 10px;}
        @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

        /* Labels / Tags */
        .label-tag { 
            display: inline-flex !important; 
            align-items: center !important; 
            padding: 5px 12px !important; 
            border-radius: 20px !important; 
            font-size: 11px !important; 
            font-weight: 500 !important;
            margin: 3px !important;
            gap: 6px !important;
            transition: all 0.2s !important;
            box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
        }
        .label-tag:hover { transform: scale(1.05); }
        .label-tag .remove-label {
            cursor: pointer !important;
            opacity: 0.7 !important;
            font-size: 10px !important;
            margin-left: 6px !important;
        }
        .label-tag .remove-label:hover { opacity: 1 !important; }

        /* Select dropdown styling */
        #label-selector {
            appearance: none;
            -webkit-appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 12px center;
            padding-right: 35px !important;
        }
        #label-selector option {
            background: #1a1a2e;
            color: #fff;
            padding: 10px;
        }
        #label-selector:focus {
            border-color: var(--accent-cyan) !important;
            box-shadow: 0 0 10px rgba(0,217,255,0.2);
        }

        /* Contact info panel */
        .contact-panel {
            background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
            border-radius: 12px;
            padding: 15px;
        }
        
        /* Template tabs */
        .template-tab {
            transition: all 0.3s;
        }
        .template-tab.active {
            background: rgba(0, 217, 255, 0.1);
        }
        .template-tab:hover {
            color: #fff !important;
        }
        .template-tab-content {
            animation: fadeIn 0.3s ease;
        }

        /* =========================
           SCROLLBARS PERSONALIZADOS
           ========================= */
        /* Ocultar scrollbar pero mantener funcionalidad */
        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }
        ::-webkit-scrollbar-track {
            background: transparent;
        }
        ::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.15);
            border-radius: 3px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.25);
        }
        /* Firefox */
        * {
            scrollbar-width: thin;
            scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
        }
        /* Para elementos específicos que no deben mostrar scroll */
        .no-scrollbar {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }
        .no-scrollbar::-webkit-scrollbar {
            display: none;
        }
        /* Contenedor del editor IA */
        #ia-editor-container {
            overflow: hidden !important;
        }
        #ia-editor-container .carzor-n8n {
            overflow: hidden !important;
        }
        /* Chat de prueba - forzar scroll */
        #ia-seccion-chat {
            overflow-y: auto !important;
            max-height: 250px;
        }
        #ia-chat-mensajes {
            overflow-y: auto !important;
            max-height: 120px;
        }
        /* Página Bot IA con scroll */
        #page-bot {
            overflow-y: auto !important;
            height: 100%;
        }
        /* Estilos para mensajes del chat de prueba */
        #ia-chat-mensajes .mensaje-usuario {
            text-align: right;
            margin-bottom: 8px;
        }
        #ia-chat-mensajes .mensaje-usuario span {
            background: linear-gradient(135deg, var(--accent-purple), #7c3aed);
            padding: 10px 15px;
            border-radius: 18px 18px 4px 18px;
            display: inline-block;
            max-width: 80%;
            word-wrap: break-word;
        }
        #ia-chat-mensajes .mensaje-bot {
            text-align: left;
            margin-bottom: 8px;
        }
        #ia-chat-mensajes .mensaje-bot span {
            background: rgba(255,255,255,0.1);
            padding: 10px 15px;
            border-radius: 18px 18px 18px 4px;
            display: inline-block;
            max-width: 80%;
            word-wrap: break-word;
            border: 1px solid var(--border-glass);
        }
        #ia-chat-mensajes .mensaje-error {
            color: #ef4444;
            font-size: 12px;
            text-align: center;
            padding: 8px;
        }
        /* Contenedor interno del editor IA */
        #ia-editor-container {
            overflow: hidden !important;
            flex: 1;
            min-height: 850px;
        }
        #ia-editor-container .carzor-n8n {
            overflow: hidden !important;
        }
        /* Chat de prueba */
        #ia-seccion-chat {
            max-height: 180px;
        }
        #ia-chat-mensajes {
            max-height: 80px;
        }
        /* Planes del Bot IA */
        #ia-planes-container .glass-panel {
            min-width: 220px;
            max-width: 280px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        #ia-planes-container .glass-panel:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(139, 92, 246, 0.3);
        }
        /* Botones mini para planes */
        .btn-mini {
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 11px;
            cursor: pointer;
            border: none;
            transition: all 0.2s ease;
            font-weight: 600;
        }
        .btn-mini:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        }

        /* Selects con fondo oscuro y letra blanca */
        select {
            background-color: #1f2937 !important;
            color: #fff !important;
            border: 1px solid #4b5563 !important;
            padding: 6px 10px !important;
            border-radius: 4px !important;
        }
        select option {
            background-color: #1f2937 !important;
            color: #fff !important;
        }
        select:focus {
            outline: none;
            border-color: #00d9ff !important;
        }

        /* IA Toolbar - 3 columnas bootstrap */
        .ia-toolbar {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 15px;
            align-items: center;
            padding: 12px 15px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        .ia-toolbar-col {
            display: flex;
            gap: 10px;
            align-items: center;
        }
        .ia-toolbar-center {
            justify-content: center;
        }
        .ia-toolbar-right {
            justify-content: flex-end;
        }
        .ia-toolbar .btn-save {
            padding: 10px 16px;
            font-size: 12px;
            color: #fff;
            border-radius: 6px;
        }

        /* ==================== DISEÑADOR DE NODOS ==================== */
        
        .nodes-tab-btn {
            padding: 12px 24px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 25px;
            color: rgba(255, 255, 255, 0.6);
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .nodes-tab-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
        }
        .nodes-tab-btn.active {
            background: linear-gradient(135deg, #FF6B00, #ff8c00);
            color: #fff;
            border-color: transparent;
            box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
        }
        
        .nodes-tab-content {
            animation: fadeIn 0.3s ease;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        /* Cards de Tablas */
        .tabla-card {
            background: linear-gradient(145deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
            border: 1px solid rgba(34, 197, 94, 0.2);
            border-radius: 16px;
            padding: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        .tabla-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(34, 197, 94, 0.2);
            border-color: rgba(34, 197, 94, 0.4);
        }
        .tabla-card-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 10px;
        }
        .tabla-card-icon {
            width: 45px;
            height: 45px;
            background: linear-gradient(135deg, #22c55e, #16a34a);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
        }
        .tabla-card-title {
            font-size: 16px;
            font-weight: 600;
            color: #fff;
        }
        .tabla-card-meta {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.5);
        }
        .tabla-card-actions {
            display: flex;
            gap: 10px;
            margin-top: 15px;
        }
        .tabla-card-actions button {
            flex: 1;
            padding: 8px;
            border-radius: 8px;
            font-size: 12px;
            cursor: pointer;
            border: none;
            transition: all 0.2s ease;
        }
        .tabla-card-actions .btn-ver {
            background: rgba(34, 197, 94, 0.2);
            color: #22c55e;
        }
        .tabla-card-actions .btn-ver:hover {
            background: rgba(34, 197, 94, 0.3);
        }
        .tabla-card-actions .btn-eliminar {
            background: rgba(239, 68, 68, 0.2);
            color: #ef4444;
        }
        .tabla-card-actions .btn-eliminar:hover {
            background: rgba(239, 68, 68, 0.3);
        }
        
        /* Cards de Nodos */
        .nodo-card {
            background: linear-gradient(145deg, rgba(255, 107, 0, 0.1), rgba(255, 107, 0, 0.05));
            border: 1px solid rgba(255, 107, 0, 0.2);
            border-radius: 16px;
            padding: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s ease;
        }
        .nodo-card:hover {
            transform: translateX(5px);
            border-color: rgba(255, 107, 0, 0.4);
        }
        .nodo-card-info {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        .nodo-card-icon {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, #FF6B00, #ff8c00);
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
        }
        .nodo-card-title {
            font-size: 16px;
            font-weight: 600;
            color: #fff;
            margin-bottom: 5px;
        }
        .nodo-card-desc {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.5);
        }
        .nodo-card-badge {
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 600;
        }
        .nodo-card-badge.borrador {
            background: rgba(245, 158, 11, 0.2);
            color: #f59e0b;
        }
        .nodo-card-badge.publicado {
            background: rgba(34, 197, 94, 0.2);
            color: #22c55e;
        }
        .nodo-card-actions {
            display: flex;
            gap: 8px;
        }
        .nodo-card-actions button {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            border: none;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .nodo-card-actions .btn-ver {
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
        }
        .nodo-card-actions .btn-ver:hover {
            background: rgba(255, 255, 255, 0.2);
        }
        .nodo-card-actions .btn-descargar {
            background: rgba(34, 197, 94, 0.2);
            color: #22c55e;
        }
        .nodo-card-actions .btn-descargar:hover {
            background: rgba(34, 197, 94, 0.3);
        }
        .nodo-card-actions .btn-eliminar {
            background: rgba(239, 68, 68, 0.2);
            color: #ef4444;
        }
        .nodo-card-actions .btn-eliminar:hover {
            background: rgba(239, 68, 68, 0.3);
        }
        
        /* Cards de Flujos */
        .flujo-card {
            background: linear-gradient(145deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.05));
            border: 1px solid rgba(139, 92, 246, 0.2);
            border-radius: 16px;
            padding: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s ease;
        }
        .flujo-card:hover {
            transform: translateX(5px);
            border-color: rgba(139, 92, 246, 0.4);
        }
        .flujo-card-info {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        .flujo-card-icon {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, #8b5cf6, #a78bfa);
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
        }
        
        /* Tabla de datos */
        #tabla-datos-grid table {
            border-collapse: collapse;
        }
        #tabla-datos-grid th {
            background: rgba(255, 255, 255, 0.1);
            padding: 12px;
            text-align: left;
            font-size: 12px;
            color: var(--text-muted);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        #tabla-datos-grid td {
            padding: 12px;
            font-size: 13px;
            color: #fff;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }
        #tabla-datos-grid tr:hover td {
            background: rgba(255, 255, 255, 0.05);
        }
        
        /* Inputs de columna */
        .columna-item {
            display: flex;
            gap: 10px;
            align-items: center;
            padding: 10px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            margin-bottom: 8px;
        }
        .columna-item input,
        .columna-item select {
            flex: 1;
            padding: 8px 12px;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 6px;
            color: #fff;
            font-size: 13px;
        }
        .columna-item input:focus,
        .columna-item select:focus {
            outline: none;
            border-color: #22c55e;
        }
        .columna-item .btn-quitar {
            width: 30px;
            height: 30px;
            background: rgba(239, 68, 68, 0.2);
            border: none;
            border-radius: 6px;
            color: #ef4444;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .columna-item .btn-quitar:hover {
            background: rgba(239, 68, 68, 0.3);
        }
        
        /* Loader spinner */
        .loader-nodes {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            border-top-color: #FF6B00;
            animation: spin 0.8s linear infinite;
        }
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        /* Diseño vacío */
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: var(--text-muted);
        }
        .empty-state i {
            font-size: 64px;
            opacity: 0.3;
            margin-bottom: 20px;
        }
        .empty-state h4 {
            font-size: 18px;
            margin-bottom: 10px;
            color: rgba(255, 255, 255, 0.7);
        }
        .empty-state p {
            font-size: 13px;
            max-width: 300px;
            margin: 0 auto;
        }
        
        @keyframes slideIn {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }
        
        @keyframes fadeOut {
            from { opacity: 1; }
            to { opacity: 0; }
        }
