/* =========================================================================
   Bot de Ventas — Panel administrativo
   Diseño moderno con menú lateral.
   ========================================================================= */
:root {
    --sidebar-w: 248px;
    --bg: #f4f6fb;
    --panel: #ffffff;
    --ink: #1e293b;
    --ink-soft: #475569;
    --muted: #94a3b8;
    --line: #e8ecf3;

    --brand: #6d28d9;
    --brand-2: #4f46e5;
    --brand-grad: linear-gradient(160deg, #4f46e5 0%, #7c3aed 55%, #9333ea 100%);

    --primary: #4f46e5;
    --primary-d: #4338ca;
    --danger: #e11d48;
    --danger-d: #be123c;
    --ok: #059669;
    --warn: #d97706;

    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
    --shadow-lg: 0 20px 50px rgba(16,24,40,.18);
}

* { box-sizing: border-box; }

html, body { height: 100%; }
body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: none; }
h1 { font-size: 24px; margin: 0 0 6px; letter-spacing: -.02em; }
h2 { font-size: 18px; margin: 0 0 14px; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.ta-right { text-align: right; }
.ta-center { text-align: center; }

/* =========================== Layout general ============================ */
.layout { display: flex; min-height: 100vh; }

/* =============================== Sidebar ============================== */
.sidebar {
    width: var(--sidebar-w);
    flex: 0 0 var(--sidebar-w);
    background: var(--brand-grad);
    color: #ede9fe;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 20px 14px;
    z-index: 40;
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 6px 8px 20px;
    font-weight: 700;
    font-size: 17px;
    color: #fff;
    letter-spacing: -.01em;
}
.brand-logo {
    width: 38px; height: 38px;
    flex: 0 0 38px;
    display: grid; place-items: center;
    background: rgba(255,255,255,.16);
    border-radius: 11px;
}
.brand-logo svg { width: 22px; height: 22px; }

.sidebar-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    color: #ddd6fe;
    font-size: 14.5px;
    font-weight: 500;
    transition: background .15s, color .15s;
}
.nav-item:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-item.on { background: rgba(255,255,255,.95); color: var(--brand); font-weight: 600; box-shadow: var(--shadow); }
.nav-ico { display: inline-flex; }
.nav-ico svg { width: 19px; height: 19px; }

.sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.16); }
.user-mini { display: flex; align-items: center; gap: 11px; padding: 6px 6px 12px; }
.avatar {
    width: 38px; height: 38px; flex: 0 0 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.95);
    color: var(--brand);
    display: grid; place-items: center;
    font-weight: 700; font-size: 16px;
}
.user-mini-info { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.user-mini-info strong { color: #fff; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-mini-info small { color: #c4b5fd; font-size: 12px; }
.logout-link {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: var(--radius-sm);
    color: #ede9fe; font-size: 14px; font-weight: 500;
}
.logout-link:hover { background: rgba(255,255,255,.12); color: #fff; }
.logout-link svg { width: 18px; height: 18px; }

/* ================================ Main =============================== */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.topbar {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; gap: 16px;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    padding: 0 28px;
    height: 62px;
}
.topbar-title { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); flex: 1; }
.topbar-right { display: flex; align-items: center; gap: 12px; }

.content { padding: 28px; flex: 1; max-width: 1100px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; gap: 14px; flex-wrap: wrap; }

/* =============================== Paneles ============================= */
.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 22px;
    box-shadow: var(--shadow);
}
.panel.form { max-width: 560px; }

/* =============================== Cards =============================== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; margin-bottom: 24px; }
.card {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brand-grad); }
.card-num { font-size: 34px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; }
.card-label { color: var(--muted); font-size: 13px; margin-top: 2px; }
.modlist { margin: 0; padding: 0; list-style: none; }
.modlist li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.modlist li:last-child { border-bottom: 0; }

/* =============================== Tabla ============================== */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table th { color: var(--muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; background: #fafbfe; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: #f8f9ff; }
.table tbody tr:last-child td { border-bottom: 0; }
.actions { white-space: nowrap; }
.inline { display: inline; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-on { background: #d1fae5; color: var(--ok); }
.badge-off { background: #ffe4e6; color: var(--danger); }
.badge.dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag { background: var(--brand); color: #fff; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; vertical-align: middle; }

/* =============================== Botones ============================ */
.btn {
    display: inline-flex; align-items: center; gap: 7px;
    border: 1px solid transparent; border-radius: var(--radius-sm);
    padding: 9px 16px; font-size: 14px; font-weight: 600;
    cursor: pointer; background: #eef1f8; color: var(--ink-soft);
    font-family: inherit; transition: filter .12s, background .12s, box-shadow .12s; white-space: nowrap;
}
.btn:hover { filter: brightness(.98); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 6px 11px; font-size: 13px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(79,70,229,.28); }
.btn-primary:hover { background: var(--primary-d); }
.btn-danger { background: #fff; color: var(--danger); border-color: #fecdd3; }
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink-soft); }
.btn-ghost:hover { background: #f8f9ff; }
.btn-block { width: 100%; justify-content: center; }

/* ============================ Formularios =========================== */
.form label, .login-card label { display: block; margin-bottom: 16px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.form input[type=text], .form input[type=email], .form input[type=password],
.login-card input {
    width: 100%; margin-top: 7px;
    padding: 11px 13px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    font-size: 14.5px; font-weight: 400; font-family: inherit; color: var(--ink);
    background: #fff; transition: border-color .12s, box-shadow .12s;
}
.form input:focus, .login-card input:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}
.form .check { font-weight: 500; display: flex; align-items: center; gap: 9px; color: var(--ink); }
.form .check input { width: 17px; height: 17px; margin: 0; accent-color: var(--primary); }
.form-actions { display: flex; gap: 10px; margin-top: 6px; }

/* ============================== Alertas ============================ */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 14px; border: 1px solid transparent; }
.alert-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.alert-danger { background: #fff1f2; color: #9f1239; border-color: #fecdd3; }
.alert-warn { background: #fffbeb; color: #92400e; border-color: #fde68a; }

/* =============================== Login ============================= */
.login-body {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; padding: 20px;
    background: var(--brand-grad);
}
.login-card {
    background: #fff; width: 100%; max-width: 380px;
    padding: 36px 32px; border-radius: 18px;
    box-shadow: var(--shadow-lg);
}
.login-logo {
    width: 54px; height: 54px; margin: 0 auto 16px;
    display: grid; place-items: center;
    background: var(--brand-grad); border-radius: 15px; color: #fff;
}
.login-logo svg { width: 30px; height: 30px; }
.login-card h1 { font-size: 21px; text-align: center; margin-bottom: 4px; }
.login-card .muted { text-align: center; margin: 0 0 22px; font-size: 13.5px; }

/* =============================== Footer =========================== */
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 22px; }

/* ====================== Módulo Zonas (KML) ========================= */
.dropzone {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; text-align: center;
    padding: 38px 20px;
    border: 2px dashed #c7cdf0;
    border-radius: var(--radius);
    background: #fafbff;
    color: var(--ink-soft);
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .05s;
}
.dropzone:hover { border-color: var(--primary); background: #f5f6ff; }
.dropzone.drag { border-color: var(--primary); background: #eef0ff; transform: scale(1.005); }
.dropzone svg { width: 42px; height: 42px; color: var(--primary); margin-bottom: 4px; }
.dz-title { font-size: 16px; font-weight: 600; color: var(--ink); }
.dz-sub { font-size: 13.5px; color: var(--muted); }
.dz-sub u { color: var(--primary); }
.dz-file { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--ok);
    background: #ecfdf5; border: 1px solid #a7f3d0; padding: 6px 14px; border-radius: 999px; }

.mapbox { height: 480px; width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--line); margin-top: 6px; z-index: 1; }

.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.meta-grid > div { display: flex; flex-direction: column; gap: 2px; }
.meta-k { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.meta-v { font-size: 15px; font-weight: 600; color: var(--ink); word-break: break-word; }
.panel.empty { text-align: center; padding: 40px 20px; }

/* ====================== Módulo LLM ================================= */
.row-inline { display: flex; gap: 8px; align-items: center; }
.row-inline select { flex: 1; min-width: 0; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form select, .form textarea {
    width: 100%; margin-top: 7px; padding: 10px 12px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    font-size: 14px; font-family: inherit; color: var(--ink); background: #fff;
}
.form select:focus, .form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.15); }
.form textarea { resize: vertical; }

.testbox { margin-top: 14px; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13.5px; background: #f1f5f9; color: var(--ink-soft); }
.testbox.ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.testbox.err { background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; }

/* Chat */
.chat-panel { display: flex; flex-direction: column; max-width: 720px; }
.chat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.chat-head h2 { margin: 0; }
.chat-log {
    flex: 1; min-height: 280px; max-height: 440px; overflow-y: auto;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 14px; background: #fafbff; display: flex; flex-direction: column; gap: 10px;
}
.chat-empty { margin: auto; text-align: center; font-size: 13.5px; }
.msg { max-width: 85%; padding: 9px 13px; border-radius: 13px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.msg-user { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.msg-assistant { align-self: flex-start; background: #fff; border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 4px; }
.msg-assistant.typing { color: var(--muted); letter-spacing: 2px; }
.msg-error { align-self: stretch; background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; max-width: 100%; }
.chat-input { display: flex; gap: 8px; margin-top: 12px; }
.chat-input input { flex: 1; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; font-family: inherit; }
.chat-input input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.15); }
.chat-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 10px; }

/* ====================== Responsive / sidebar móvil ================= */
.nav-toggle-cb, .nav-burger, .nav-overlay { display: none; }

@media (max-width: 860px) {
    .sidebar {
        position: fixed; left: 0; top: 0;
        transform: translateX(-100%);
        transition: transform .25s ease;
        box-shadow: var(--shadow-lg);
    }
    .nav-burger {
        display: flex; flex-direction: column; gap: 4px;
        width: 38px; height: 38px; padding: 9px 8px;
        border-radius: 9px; cursor: pointer; background: #eef1f8;
    }
    .nav-burger span { display: block; height: 2px; background: var(--ink-soft); border-radius: 2px; }
    .nav-toggle-cb:checked ~ .layout .sidebar { transform: translateX(0); }
    .nav-toggle-cb:checked ~ .layout .nav-overlay {
        display: block; position: fixed; inset: 0; z-index: 35;
        background: rgba(15,23,42,.45);
    }
    .content { padding: 20px 16px; }
    .topbar { padding: 0 16px; }
}

/* ===================== Sesiones de chat ===================== */
/* Tarjetas de resumen (stats) */
.cards-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.stat-card {
    flex: 1 1 160px; background: var(--card, #fff); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px;
}
.stat-num { font-size: 28px; font-weight: 700; color: var(--primary); line-height: 1; }
.stat-lbl { color: var(--muted); font-size: 13px; }

/* Encabezado de sección de formulario */
.form-section { margin: 0 0 4px; font-size: 15px; }

/* Pestañas de filtro */
.filter-tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-tabs .tab {
    padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
    color: var(--muted); background: #fff; border: 1px solid var(--line);
}
.filter-tabs .tab:hover { color: var(--primary); border-color: var(--primary); }
.filter-tabs .tab.on { color: #fff; background: var(--primary); border-color: var(--primary); }

/* Tamaño chico en celdas (fechas) */
td.sm, .sm { font-size: 12.5px; color: var(--muted); }

/* Cabecera de la conversación */
.convo-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.convo-head-info { display: flex; align-items: center; gap: 12px; flex: 1 1 220px; }
.convo-avatar {
    width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary); color: #fff; font-weight: 700; font-size: 18px;
}
.convo-head-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }

/* Hilo de mensajes (burbujas) */
.chat-thread {
    display: flex; flex-direction: column; gap: 10px;
    background: #f7f8fc; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px; max-height: 70vh; overflow-y: auto;
}
.bubble-row { display: flex; }
.bubble-row.in  { justify-content: flex-start; }
.bubble-row.out { justify-content: flex-end; }
.bubble {
    max-width: 72%; padding: 9px 13px; border-radius: 14px; font-size: 14px;
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.bubble-row.in  .bubble { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble-row.out .bubble { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.bubble-text { white-space: pre-wrap; word-break: break-word; }
.bubble-meta { font-size: 10.5px; opacity: .7; margin-top: 4px; }
.bubble-row.out .bubble-meta { color: #e0e0ff; }

/* ===================== Workflow (diseño de grafo) ===================== */
.graph { display: flex; flex-direction: column; align-items: center; padding: 8px 0; }

/* Nodo compacto (chip). <details> o <div> según si es editable. */
.gnode {
    position: relative; width: 300px; max-width: 100%;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15,23,42,.07);
}
.gnode.node-webhook { border-color: #bae6fd; }
.gnode.node-texto   { border-color: #c7d2fe; }
.gnode.node-fin     { border-color: #fecaca; }

/* Puertos de conexión (puntitos arriba/abajo) para el look de grafo. */
.gnode::before, .gnode::after {
    content: ""; position: absolute; left: 50%; transform: translateX(-50%);
    width: 9px; height: 9px; border-radius: 50%;
    background: #fff; border: 2px solid #cbd5e1; z-index: 2;
}
.gnode::before { top: -5px; }   /* puerto de entrada */
.gnode::after  { bottom: -5px; }/* puerto de salida  */
.gnode.is-start::before { display: none; }  /* el webhook no tiene entrada */
.gnode.is-end::after    { display: none; }  /* el fin no tiene salida     */

/* Chip clickeable (abre el drawer) */
.gnode.clickable { cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .05s; }
.gnode.clickable:hover { border-color: var(--primary); box-shadow: 0 4px 14px rgba(79,70,229,.16); }
.gnode.clickable:active { transform: translateY(1px); }

/* Fila resumen (chip) */
.g-summary {
    display: flex; align-items: center; gap: 10px; padding: 10px 13px;
}
.g-ico {
    width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: #eef1fb; color: var(--primary);
}
.node-webhook .g-ico { background: #e0f2fe; color: #0ea5e9; }
.node-fin     .g-ico { background: #fee2e2; color: #ef4444; }
.g-ico svg { width: 17px; height: 17px; }
.g-titles { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.g-titles strong { font-size: 13.5px; }
.g-type { font-size: 11px; color: var(--muted); }
.g-gear { color: var(--muted); display: flex; }
.g-gear svg { width: 16px; height: 16px; }
.gnode.clickable:hover .g-gear { color: var(--primary); }

.g-desc { color: var(--muted); font-size: 12.5px; margin: 0 0 14px; }
.flow-form { display: flex; flex-direction: column; gap: 10px; }
.flow-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: #475569; }
.flow-form textarea, .flow-form input[type="text"] {
    padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    font-family: inherit; font-size: 14px; font-weight: 400; resize: vertical;
}
.flow-form textarea:focus, .flow-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.15); }

/* Línea que une los nodos (con flecha) */
.g-link {
    width: 2px; height: 34px; position: relative;
    background: linear-gradient(#cbd5e1, #94a3b8);
}
.g-link::after {
    content: ""; position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
    border-left: 5px solid transparent; border-right: 5px solid transparent;
    border-top: 6px solid #94a3b8;
}

/* ---------- Drawer de configuración (panel deslizante a la derecha) ---------- */
.drawer-overlay {
    position: fixed; inset: 0; background: rgba(15,23,42,.45);
    opacity: 0; visibility: hidden; transition: opacity .2s ease; z-index: 1200;
}
.drawer-overlay.on { opacity: 1; visibility: visible; }
.drawer {
    position: fixed; top: 0; right: 0; height: 100vh; width: 380px; max-width: 92vw;
    background: #fff; box-shadow: -10px 0 36px rgba(15,23,42,.18);
    transform: translateX(100%); transition: transform .26s cubic-bezier(.4,0,.2,1);
    z-index: 1201; display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
    display: flex; align-items: center; gap: 11px; padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}
.drawer-close {
    margin-left: auto; background: none; border: 0; cursor: pointer;
    font-size: 26px; line-height: 1; color: var(--muted); padding: 0 4px;
}
.drawer-close:hover { color: #ef4444; }
.drawer-body { padding: 18px; overflow-y: auto; flex: 1; }
body.drawer-lock { overflow: hidden; }

/* ---------- Interruptor on/off del nodo ---------- */
.g-switch { display: flex; align-items: center; margin-left: 2px; }
.switch { position: relative; display: inline-block; width: 38px; height: 21px; cursor: pointer; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.slider { position: absolute; inset: 0; background: #cbd5e1; border-radius: 999px; transition: background .2s; }
.slider::before {
    content: ""; position: absolute; height: 15px; width: 15px; left: 3px; top: 3px;
    background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.switch input:checked + .slider { background: #22c55e; }
.switch input:checked + .slider::before { transform: translateX(17px); }

/* Nodo apagado: atenuado (el flujo lo saltea) */
.gnode.is-off { opacity: .55; }
.gnode.is-off .g-ico { filter: grayscale(1); }
.gnode.is-off.clickable:hover { opacity: .8; }
