/* ==========================================================================
   JurisBot Pro — tema visual
   Se carga después del CSS original y lo reemplaza: barra lateral oscura,
   color de marca esmeralda, tarjetas limpias y componentes propios (jb-*).
   ========================================================================== */

:root,
[data-bs-theme="light"] {
    --jb-navy: #0b1a2e;
    --jb-navy-2: #12243d;
    --jb-navy-3: #1b3150;
    --jb-accent: #0f9d6e;
    --jb-accent-2: #0b8a60;
    --jb-accent-soft: #e6f6ef;
    --jb-gold: #c8a04a;
    --jb-bg: #f4f6fa;
    --jb-surface: #ffffff;
    --jb-line: #e5e9f0;
    --jb-ink: #0f1a2a;
    --jb-muted: #5d6b7e;
    --jb-radius: 14px;
    --jb-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .05);

    --bs-body-bg: var(--jb-bg);
    --bs-body-color: var(--jb-ink);
    --bs-secondary-color: var(--jb-muted);
    --bs-border-color: var(--jb-line);
    --bs-link-color: var(--jb-accent-2);
    --bs-link-color-rgb: 11, 138, 96;
    --bs-link-hover-color: var(--jb-accent);
    --bs-success: var(--jb-accent);
    --bs-success-rgb: 15, 157, 110;
    --bs-focus-ring-color: rgba(15, 157, 110, .25);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--jb-bg);
}

[data-bs-theme="dark"] {
    --jb-bg: #0a1220;
    --jb-surface: #101b2d;
    --jb-line: #1f2e45;
    --jb-ink: #e8edf5;
    --jb-muted: #93a1b5;
    --jb-accent-soft: rgba(15, 157, 110, .16);
    --bs-body-bg: var(--jb-bg);
    --bs-body-color: var(--jb-ink);
    --bs-border-color: var(--jb-line);
    --bs-link-color: #34c796;
}

body { background: var(--jb-bg); letter-spacing: -.005em; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { letter-spacing: -.02em; color: var(--jb-ink); }

/* ---------- Barra lateral ---------- */
.dashboard-sidebar,
[data-bs-theme="dark"] .dashboard-sidebar {
    color: #c9d4e3;
    border-right: 0;
    background: linear-gradient(180deg, var(--jb-navy) 0%, #0d2038 100%);
}
.dashboard-sidebar a { color: #fff; }
.dashboard-sidebar .sidebar-section-label,
[data-bs-theme="dark"] .dashboard-sidebar .sidebar-section-label {
    color: #6f84a3 !important;
    font-size: .68rem;
    letter-spacing: .09em;
    padding-top: 1.4rem !important;
}
.dashboard-sidebar > div:first-child .sidebar-section-label { color: #fff !important; font-size: 1.05rem; letter-spacing: -.01em; }
.dashboard-sidebar .nav-link,
[data-bs-theme="dark"] .dashboard-sidebar .nav-link {
    margin: 1px .75rem;
    padding: .55rem .85rem;
    color: #b4c2d6;
    border-radius: 10px;
    font-size: .9rem;
}
.dashboard-sidebar .nav-link:hover,
[data-bs-theme="dark"] .dashboard-sidebar .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.dashboard-sidebar .nav-link.active,
[data-bs-theme="dark"] .dashboard-sidebar .nav-link.active {
    color: #fff;
    background: rgba(15, 157, 110, .18);
    box-shadow: inset 3px 0 0 var(--jb-accent);
    font-weight: 600;
}
.dashboard-sidebar .nav-link.active > i:first-child { color: #34d39e; }

/* ---------- Barra superior ---------- */
.dashboard-topbar,
[data-bs-theme="dark"] .dashboard-topbar {
    min-height: 4rem;
    border-bottom: 1px solid var(--jb-line);
    background: color-mix(in srgb, var(--jb-surface) 88%, transparent);
}
.dashboard-topbar .btn-light { background: var(--jb-surface); border-color: var(--jb-line) !important; border-radius: 10px; }
.dashboard-footer { background: transparent !important; border: 0 !important; font-size: .78rem; color: var(--jb-muted); }

/* ---------- Tarjetas y formularios ---------- */
.card,
[data-bs-theme="dark"] .card {
    border: 1px solid var(--jb-line) !important;
    border-radius: var(--jb-radius);
    background: var(--jb-surface);
    box-shadow: var(--jb-shadow) !important;
}
.card-header { border-bottom-color: var(--jb-line) !important; }
.form-control, .form-select {
    border-color: var(--jb-line);
    border-radius: 10px;
    padding: .6rem .8rem;
    background-color: var(--jb-surface);
}
.form-control:focus, .form-select:focus { border-color: var(--jb-accent); box-shadow: 0 0 0 .2rem rgba(15, 157, 110, .15); }
.form-label { font-size: .85rem; color: var(--jb-ink); }
.form-text { font-size: .78rem; }
.table { --bs-table-bg: transparent; }
.table > thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--jb-muted); font-weight: 600; border-bottom-color: var(--jb-line); }

/* ---------- Botones ---------- */
.btn { border-radius: 10px; font-weight: 500; }
.btn-success, .btn-jb {
    --bs-btn-color: #fff; --bs-btn-bg: var(--jb-accent); --bs-btn-border-color: var(--jb-accent);
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--jb-accent-2); --bs-btn-hover-border-color: var(--jb-accent-2);
    --bs-btn-active-bg: #087150; --bs-btn-active-border-color: #087150;
    --bs-btn-disabled-bg: #9cc9b6; --bs-btn-disabled-border-color: #9cc9b6;
    box-shadow: 0 1px 2px rgba(15, 157, 110, .25);
}
.btn-ghost { --bs-btn-color: var(--jb-ink); --bs-btn-bg: var(--jb-surface); --bs-btn-border-color: var(--jb-line); --bs-btn-hover-bg: var(--jb-bg); --bs-btn-hover-border-color: #cfd6e2; --bs-btn-hover-color: var(--jb-ink); }
.badge { font-weight: 600; letter-spacing: .01em; }
.text-bg-success { background-color: var(--jb-accent) !important; }

/* ---------- Ayuda contextual (discreta) ---------- */
.ayuda-contextual.card {
    border: 1px dashed #cfd8e6 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.ayuda-contextual > summary { padding: .6rem 1rem; font-size: .85rem; list-style: none; color: var(--jb-muted); }
.ayuda-contextual > summary::-webkit-details-marker { display: none; }
.ayuda-contextual > summary i { color: var(--jb-accent) !important; }
.ayuda-contextual[open] { background: var(--jb-surface) !important; }
.ayuda-contextual .card-body { font-size: .88rem; color: var(--jb-muted); }

/* ---------- Componentes JurisBot ---------- */
.jb-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.jb-head h1 { font-size: 1.6rem; font-weight: 700; margin: 0; }
.jb-head p { margin: .25rem 0 0; color: var(--jb-muted); max-width: 46rem; }
.jb-eyebrow { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--jb-accent); }

.jb-hero {
    position: relative;
    overflow: hidden;
    padding: 1.75rem;
    color: #fff;
    border-radius: 18px;
    background: radial-gradient(120% 140% at 100% 0%, #1d6b55 0%, transparent 55%), linear-gradient(135deg, var(--jb-navy) 0%, var(--jb-navy-3) 100%);
    box-shadow: 0 10px 30px rgba(11, 26, 46, .18);
}
.jb-hero h1, .jb-hero h2 { color: #fff; }
.jb-hero p { color: #bcd0e6; }
.jb-hero .progress { height: .45rem; background: rgba(255, 255, 255, .12); border-radius: 99px; }
.jb-hero .progress-bar { background: linear-gradient(90deg, #34d39e, #8ef0c9); border-radius: 99px; }

.jb-kpi, .card.jb-kpi { display: flex; flex-direction: row; align-items: center; gap: .9rem; padding: 1.1rem 1.2rem; }
.jb-kpi .jb-ico { width: 2.6rem; height: 2.6rem; flex: 0 0 2.6rem; display: grid; place-items: center; border-radius: 12px; background: var(--jb-accent-soft); color: var(--jb-accent); font-size: 1.05rem; }
.jb-kpi .jb-ico.warn { background: #fff4e0; color: #c27803; }
.jb-kpi .jb-ico.navy { background: #e8eef8; color: var(--jb-navy-3); }
.jb-kpi .num { font-size: 1.55rem; font-weight: 700; line-height: 1.1; color: var(--jb-ink); }
.jb-kpi .lbl { font-size: .78rem; color: var(--jb-muted); }

.jb-step { display: flex; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--jb-line); align-items: center; }
.jb-step:last-child { border-bottom: 0; }
.jb-step .dot { width: 2rem; height: 2rem; flex: 0 0 2rem; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; border: 1.5px solid #cfd8e6; color: var(--jb-muted); background: var(--jb-surface); }
.jb-step.done .dot { border-color: var(--jb-accent); background: var(--jb-accent); color: #fff; }
.jb-step.next .dot { border-color: var(--jb-accent); color: var(--jb-accent); box-shadow: 0 0 0 4px var(--jb-accent-soft); }
.jb-step .t { font-weight: 600; font-size: .93rem; }
.jb-step.done .t { color: var(--jb-muted); }
.jb-step .d { font-size: .8rem; color: var(--jb-muted); }

.jb-tile { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem; border: 1px solid var(--jb-line); border-radius: 12px; background: var(--jb-surface); color: var(--jb-ink) !important; transition: border-color .15s, transform .15s, box-shadow .15s; height: 100%; }
.jb-tile:hover { border-color: var(--jb-accent); transform: translateY(-1px); box-shadow: var(--jb-shadow); }
.jb-tile .jb-ico { width: 2.3rem; height: 2.3rem; flex: 0 0 2.3rem; display: grid; place-items: center; border-radius: 10px; background: var(--jb-accent-soft); color: var(--jb-accent); }
.jb-tile .t { font-weight: 600; font-size: .92rem; }
.jb-tile .d { font-size: .78rem; color: var(--jb-muted); }

.jb-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; border-radius: 99px; font-size: .74rem; font-weight: 600; background: var(--jb-bg); color: var(--jb-muted); border: 1px solid var(--jb-line); }
.jb-pill.ok { background: var(--jb-accent-soft); color: var(--jb-accent-2); border-color: transparent; }
.jb-pill.warn { background: #fff4e0; color: #a86500; border-color: transparent; }
.jb-pill.off { background: #f1f3f7; color: #7a8698; border-color: transparent; }
.jb-pill .live { width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }

.jb-section-title { font-size: 1rem; font-weight: 700; margin-bottom: .2rem; }
.jb-section-sub { font-size: .82rem; color: var(--jb-muted); margin-bottom: 1rem; }

/* Tipos de negocio */
.jb-type { display: block; height: 100%; padding: 1rem; text-align: left; border: 1.5px solid var(--jb-line); border-radius: 12px; background: var(--jb-surface); cursor: pointer; transition: all .15s; }
.jb-type i { font-size: 1.2rem; color: var(--jb-navy-3); }
.jb-type .t { display: block; margin-top: .5rem; font-weight: 600; font-size: .88rem; color: var(--jb-ink); }
.btn-check:checked + .jb-type { border-color: var(--jb-accent); background: var(--jb-accent-soft); box-shadow: 0 0 0 3px rgba(15, 157, 110, .12); }
.btn-check:checked + .jb-type i { color: var(--jb-accent); }
.jb-num { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-right: .5rem; border-radius: 8px; font-size: .78rem; font-weight: 700; color: #fff; background: var(--jb-navy-3); vertical-align: 1px; }

/* ---------- Teléfono / chat estilo WhatsApp ---------- */
.jb-phone { overflow: hidden; display: flex; flex-direction: column; border-radius: 22px; border: 1px solid var(--jb-line); background: #efeae2; box-shadow: 0 18px 40px rgba(11, 26, 46, .14); }
.jb-phone-top { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; color: #fff; background: #0b3b30; }
.jb-phone-top .av { width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center; background: #1f8f6c; font-weight: 700; }
.jb-phone-top .st { font-size: .74rem; color: #a7d8c6; }
.jb-chat { flex: 1; overflow-y: auto; padding: 1rem; background-color: #efeae2; background-image: radial-gradient(rgba(11, 59, 48, .05) 1px, transparent 1px); background-size: 14px 14px; }
[data-bs-theme="dark"] .jb-phone, [data-bs-theme="dark"] .jb-chat { background-color: #0d1418; }
.jb-msg { position: relative; max-width: 82%; margin-bottom: .45rem; padding: .45rem .65rem .35rem; border-radius: 10px; font-size: .9rem; line-height: 1.4; white-space: pre-line; word-wrap: break-word; color: #111b21; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.jb-msg.in { margin-right: auto; background: #fff; border-top-left-radius: 2px; }
.jb-msg.out { margin-left: auto; background: #d9fdd3; border-top-right-radius: 2px; }
.jb-msg.sys { margin: .6rem auto; max-width: 90%; text-align: center; font-size: .75rem; color: #54656f; background: #fff8d6; box-shadow: none; }
.jb-msg .meta { display: block; margin-top: .15rem; text-align: right; font-size: .66rem; color: #667781; }
.jb-msg .why { display: inline-flex; gap: .25rem; align-items: center; margin-top: .25rem; padding: .05rem .4rem; border-radius: 99px; font-size: .66rem; font-weight: 600; color: #0b8a60; background: rgba(15, 157, 110, .1); cursor: pointer; border: 0; }
.jb-msg.typing { color: #667781; font-style: italic; }
.jb-compose { display: flex; gap: .5rem; padding: .6rem; background: #f0f2f5; }
[data-bs-theme="dark"] .jb-compose { background: #1f2c34; }
.jb-compose input { flex: 1; border: 0; border-radius: 99px; padding: .6rem 1rem; background: #fff; }
.jb-compose button { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0; color: #fff; background: var(--jb-accent); }
.jb-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.jb-chip { padding: .3rem .7rem; border-radius: 99px; border: 1px solid var(--jb-line); background: var(--jb-surface); font-size: .8rem; color: var(--jb-ink); cursor: pointer; }
.jb-chip:hover { border-color: var(--jb-accent); color: var(--jb-accent-2); }
.jb-why-panel { font-size: .85rem; }
.jb-why-panel .src { padding: .6rem .75rem; margin-top: .5rem; border-left: 3px solid var(--jb-accent); border-radius: 6px; background: var(--jb-bg); font-size: .8rem; color: var(--jb-muted); }

/* ---------- Bandeja ---------- */
.jb-inbox { display: grid; grid-template-columns: 340px 1fr; min-height: 70vh; overflow: hidden; border: 1px solid var(--jb-line); border-radius: var(--jb-radius); background: var(--jb-surface); box-shadow: var(--jb-shadow); }
.jb-inbox-list { overflow-y: auto; max-height: 75vh; border-right: 1px solid var(--jb-line); }
.jb-conv { display: flex; gap: .75rem; padding: .8rem 1rem; border-bottom: 1px solid var(--jb-line); color: var(--jb-ink) !important; }
.jb-conv:hover { background: var(--jb-bg); }
.jb-conv.active { background: var(--jb-accent-soft); }
.jb-conv .av { width: 2.5rem; height: 2.5rem; flex: 0 0 2.5rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--jb-navy-3); }
.jb-conv .n { font-weight: 600; font-size: .9rem; }
.jb-conv .p { font-size: .8rem; color: var(--jb-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jb-conv .unread { min-width: 1.3rem; height: 1.3rem; padding: 0 .35rem; border-radius: 99px; display: grid; place-items: center; font-size: .7rem; font-weight: 700; color: #fff; background: var(--jb-accent); }
.jb-thread { display: flex; flex-direction: column; min-width: 0; }
.jb-thread .jb-chat { max-height: 58vh; }
.jb-empty { display: grid; place-items: center; text-align: center; padding: 3rem 1.5rem; color: var(--jb-muted); }
.jb-empty i { font-size: 2.2rem; color: #b8c4d6; margin-bottom: .75rem; }

/* Base de conocimiento */
.jb-drop { display: block; padding: 2rem 1rem; text-align: center; border: 2px dashed #cdd6e3; border-radius: 14px; background: var(--jb-bg); cursor: pointer; transition: all .15s; }
.jb-drop:hover, .jb-drop.over { border-color: var(--jb-accent); background: var(--jb-accent-soft); }
.jb-drop i { font-size: 1.8rem; color: var(--jb-accent); }
.jb-doc-ico { width: 2.4rem; height: 2.4rem; border-radius: 10px; display: grid; place-items: center; font-size: 1rem; }
.jb-doc-ico.excel { background: #e3f5ea; color: #1d7a45; }
.jb-doc-ico.word { background: #e5edfb; color: #2a5bb8; }
.jb-doc-ico.pdf { background: #fde8e7; color: #c4362c; }
.jb-doc-ico.texto, .jb-doc-ico.manual { background: #f0eefb; color: #5a48b5; }

@media (max-width: 991.98px) {
    .jb-inbox { grid-template-columns: 1fr; }
    .jb-inbox.has-chat .jb-inbox-list { display: none; }
}

/* ---------- CRM: tablero de clientes ---------- */
.jb-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 1rem; overflow-x: auto; padding-bottom: .5rem; }
.jb-col { display: flex; flex-direction: column; min-height: 60vh; border-radius: var(--jb-radius); background: color-mix(in srgb, var(--jb-line) 45%, transparent); }
.jb-col-head { display: flex; align-items: center; gap: .5rem; padding: .85rem 1rem .6rem; font-size: .88rem; }
.jb-col-dot { width: .6rem; height: .6rem; border-radius: 50%; }
.jb-col-body { flex: 1; display: flex; flex-direction: column; gap: .55rem; padding: 0 .6rem .8rem; border-radius: 0 0 var(--jb-radius) var(--jb-radius); transition: background .15s; }
.jb-col-body.over { background: var(--jb-accent-soft); }
.jb-col-empty { padding: 1.5rem .5rem; text-align: center; font-size: .78rem; color: var(--jb-muted); border: 1.5px dashed #cfd8e6; border-radius: 10px; }
.jb-card-cli { display: block; padding: .75rem .85rem; border: 1px solid var(--jb-line); border-radius: 12px; background: var(--jb-surface); color: var(--jb-ink) !important; font-size: .88rem; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); cursor: grab; transition: box-shadow .15s, border-color .15s; }
.jb-card-cli:hover { border-color: #c7d2e0; box-shadow: var(--jb-shadow); }
.jb-card-cli.dragging { opacity: .5; cursor: grabbing; }
.jb-tag { display: inline-block; padding: .05rem .45rem; border-radius: 6px; font-size: .7rem; font-weight: 600; color: #3b4a63; background: #eef2f8; }
[data-bs-theme="dark"] .jb-tag { color: #c9d4e3; background: #1b2a42; }

/* Notas y citas */
.jb-note { padding: .75rem .9rem; margin-bottom: .6rem; border-radius: 10px; background: var(--jb-bg); border-left: 3px solid #c8d3e3; font-size: .9rem; }
.jb-cita { display: flex; align-items: center; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--jb-line); }
.jb-cita-hora { width: 4rem; flex: 0 0 4rem; padding: .35rem 0; text-align: center; border-radius: 10px; background: var(--jb-accent-soft); color: var(--jb-accent-2); }
.jb-dia { margin-top: 1.1rem; padding-bottom: .3rem; font-weight: 700; font-size: .9rem; }
.jb-dia:first-child { margin-top: 0; }
.jb-cita-form { padding: 1rem; border: 1px solid var(--jb-line); border-radius: 12px; background: var(--jb-bg); }

/* ---------- Pantalla de entrada ---------- */
.jb-auth { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; background: var(--jb-surface); }
.jb-auth-brand { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 3rem; color: #fff; background: radial-gradient(90% 70% at 100% 0%, #1d6b55 0%, transparent 60%), radial-gradient(60% 60% at 0% 100%, #1b3150 0%, transparent 70%), var(--jb-navy); }
.jb-auth-brand h2 { color: #fff; font-size: 2.1rem; font-weight: 700; line-height: 1.15; letter-spacing: -.03em; max-width: 30rem; }
.jb-auth-brand p { color: #b6c7dc; max-width: 28rem; }
.jb-auth-feat { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; color: #d6e2f0; font-size: .92rem; }
.jb-auth-feat i { width: 2.1rem; height: 2.1rem; flex: 0 0 2.1rem; display: grid; place-items: center; border-radius: 10px; color: #6ee7b7; background: rgba(110, 231, 183, .1); }
.jb-auth-logo { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.15rem; color: #fff !important; }
.jb-auth-logo .mark { width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 10px; background: var(--jb-accent); }
.jb-auth-form { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.5rem; }
.jb-auth-form .inner { width: 100%; max-width: 400px; }
.jb-auth-form h1 { font-size: 1.7rem; font-weight: 700; }
.jb-auth-form .form-control-lg { font-size: 1rem; padding: .75rem .9rem; }
.jb-auth-form .btn-dark { --bs-btn-bg: var(--jb-accent); --bs-btn-border-color: var(--jb-accent); --bs-btn-hover-bg: var(--jb-accent-2); --bs-btn-hover-border-color: var(--jb-accent-2); --bs-btn-active-bg: #087150; }
.jb-auth-form a:not(.btn) { color: var(--jb-accent-2); }
.jb-auth-form .btn-success, .jb-auth-form .btn-success:hover { color: #fff; }
@media (max-width: 991.98px) {
    .jb-auth { grid-template-columns: 1fr; }
    .jb-auth-brand { padding: 2rem 1.5rem; }
    .jb-auth-brand .jb-auth-feats, .jb-auth-brand .jb-auth-pie { display: none; }
    .jb-auth-brand h2 { font-size: 1.5rem; margin-top: 1.5rem; }
}

/* ---------- Registro con código ---------- */
.jb-pasos { display: flex; gap: .5rem; font-size: .75rem; font-weight: 600; }
.jb-pasos span { padding: .3rem .7rem; border-radius: 99px; color: var(--jb-muted); background: var(--jb-bg); border: 1px solid var(--jb-line); }
.jb-pasos span.activo { color: var(--jb-accent-2); background: var(--jb-accent-soft); border-color: transparent; }
.jb-pasos span.hecho { color: var(--jb-accent-2); }
.jb-otp-ico { width: 3.2rem; height: 3.2rem; display: grid; place-items: center; border-radius: 14px; font-size: 1.6rem; color: #fff; background: var(--jb-accent); box-shadow: 0 6px 18px rgba(15, 157, 110, .3); }
.jb-otp { text-align: center; font-size: 1.8rem !important; font-weight: 700; letter-spacing: .6em; padding-left: 1.2em !important; }
.jb-numero-ok { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #d8e6f5; font-size: .85rem; }

/* ==========================================================================
   Página de venta (portada pública) — clases jl-*
   ========================================================================== */
body.jl { background: #fff; color: #0f1a2a; font-family: "Inter", system-ui, sans-serif; overflow-x: hidden; }
.jl a { text-decoration: none; }
.jl-nav { position: sticky; top: 0; z-index: 50; padding: .9rem 0; background: rgba(8, 20, 38, .82); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.jl-logo { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; color: #fff !important; }
.jl-logo .mark { width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #10b981, #0f9d6e); box-shadow: 0 4px 14px rgba(16, 185, 129, .35); }
.jl-links a { color: #b8c7da; font-size: .92rem; font-weight: 500; }
.jl-links a:hover, .jl-link-login:hover { color: #fff; }
.jl-link-login { color: #dbe6f3; font-weight: 600; font-size: .92rem; padding: .4rem .6rem; }

.jl-btn { --bs-btn-padding-x: 1.5rem; --bs-btn-padding-y: .85rem; color: #fff !important; font-weight: 700; border: 0; border-radius: 12px; background: linear-gradient(135deg, #10b981 0%, #0f9d6e 100%); box-shadow: 0 10px 30px -8px rgba(16, 185, 129, .6); transition: transform .15s, box-shadow .15s; }
.jl-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(16, 185, 129, .7); }
.jl-btn-sm { --bs-btn-padding-x: 1.1rem; --bs-btn-padding-y: .5rem; font-size: .9rem; }
.jl-btn-lg { --bs-btn-padding-x: 2.2rem; --bs-btn-padding-y: 1.05rem; font-size: 1.1rem; }
.jl-btn-ghost { --bs-btn-padding-x: 1.4rem; --bs-btn-padding-y: .85rem; color: #e6eef8 !important; font-weight: 600; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .04); }
.jl-btn-ghost:hover { background: rgba(255, 255, 255, .1); }

.jl-hero { position: relative; overflow: hidden; padding: 5rem 0 6rem; color: #fff; background: #081426; }
.jl-glow { position: absolute; inset: 0; pointer-events: none; background:
    radial-gradient(40rem 26rem at 85% 10%, rgba(16, 185, 129, .28), transparent 60%),
    radial-gradient(36rem 30rem at 0% 100%, rgba(37, 99, 235, .22), transparent 60%),
    linear-gradient(180deg, #081426 0%, #0b1c34 100%); }
.jl-glow::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 75%); }
.jl-badge { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .9rem; border-radius: 99px; font-size: .82rem; font-weight: 600; color: #a7f3d0; background: rgba(16, 185, 129, .12); border: 1px solid rgba(16, 185, 129, .3); }
.jl-badge .dot { width: .5rem; height: .5rem; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .25); animation: jl-pulse 2s infinite; }
.jl-title { margin: 1.3rem 0 1.1rem; font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 800; line-height: 1.04; letter-spacing: -.045em; color: #fff; }
.jl-grad { background: linear-gradient(90deg, #6ee7b7 0%, #34d399 40%, #a7f3d0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.jl-lead { max-width: 34rem; font-size: 1.15rem; line-height: 1.6; color: #b8c7da; }
.jl-checks { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.8rem; font-size: .9rem; color: #c9d6e6; }
.jl-checks i { margin-right: .4rem; color: #34d399; }

/* Teléfono animado */
.jl-stage { position: relative; display: flex; justify-content: center; padding: 1rem 0; }
.jl-phone { position: relative; z-index: 2; width: 330px; height: 600px; display: flex; flex-direction: column; overflow: hidden; border-radius: 42px; border: 10px solid #111b2b; background: #efeae2; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08); }
.jl-phone-top { display: flex; align-items: center; gap: .7rem; padding: 1.4rem 1rem .8rem; color: #fff; background: #0b3b30; }
.jl-phone-top .av { width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 50%; font-weight: 700; background: #10b981; }
.jl-phone-top .n { font-weight: 600; font-size: .92rem; }
.jl-phone-top .s { font-size: .72rem; color: #a7d8c6; }
.jl-chat { flex: 1; overflow-y: auto; scrollbar-width: none; padding: 1rem .8rem; background-color: #efeae2; background-image: radial-gradient(rgba(11, 59, 48, .06) 1px, transparent 1px); background-size: 14px 14px; }
.jl-chat::-webkit-scrollbar { display: none; }
.jl-msg { max-width: 84%; margin-bottom: .5rem; padding: .5rem .7rem .35rem; border-radius: 12px; font-size: .84rem; line-height: 1.4; color: #111b21; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); animation: jl-pop .35s ease-out both; }
.jl-msg.in { margin-right: auto; background: #fff; border-top-left-radius: 3px; }
.jl-msg.out { margin-left: auto; background: #d9fdd3; border-top-right-radius: 3px; }
.jl-msg .h { display: block; margin-top: .1rem; text-align: right; font-size: .64rem; color: #667781; }
.jl-msg.typing { display: flex; gap: .25rem; padding: .7rem .8rem; width: fit-content; }
.jl-msg.typing span { width: .42rem; height: .42rem; border-radius: 50%; background: #8696a0; animation: jl-dot 1s infinite; }
.jl-msg.typing span:nth-child(2) { animation-delay: .15s; }
.jl-msg.typing span:nth-child(3) { animation-delay: .3s; }
.jl-compose { display: flex; justify-content: space-between; align-items: center; margin: .5rem; padding: .65rem 1rem; border-radius: 99px; font-size: .82rem; color: #8696a0; background: #fff; }

.jl-float { position: absolute; z-index: 3; display: flex; align-items: center; gap: .7rem; padding: .7rem .95rem; border-radius: 14px; font-size: .8rem; color: #0f1a2a; background: #fff; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45); animation: jl-float 6s ease-in-out infinite; }
.jl-float i { width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border-radius: 10px; color: #0f9d6e; background: #e6f6ef; font-size: .95rem; }
.jl-float strong { display: block; font-size: .82rem; }
.jl-float span { color: #5d6b7e; font-size: .74rem; }
.jl-f1 { top: 12%; left: -2%; }
.jl-f2 { top: 46%; right: -4%; animation-delay: -2s; }
.jl-f2 i { color: #b45309; background: #fff4e0; }
.jl-f3 { bottom: 10%; left: 2%; animation-delay: -4s; }
.jl-f3 i { color: #2563eb; background: #e8effd; }

/* Secciones */
.jl-section { padding: 6rem 0; }
.jl-head { max-width: 44rem; margin: 0 auto 3.2rem; text-align: center; }
.jl-head h2, .jl-h2 { margin-top: .7rem; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; line-height: 1.12; letter-spacing: -.035em; color: #0b1a2e; }
.jl-eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #0f9d6e; }
.jl-p { font-size: 1.05rem; line-height: 1.65; color: #4a586b; }

.jl-pain { padding: 4.5rem 0; background: #f6f8fb; border-bottom: 1px solid #e8edf3; }
.jl-pain-n { margin-bottom: .4rem; font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; color: #0b1a2e; }
.jl-pain p { max-width: 20rem; margin: 0 auto; color: #4a586b; }
.jl-pain-cta { margin: 2.5rem 0 0; font-size: 1.15rem; font-weight: 700; color: #0f9d6e; }

.jl-feat { height: 100%; padding: 1.8rem; border-radius: 18px; border: 1px solid #e8edf3; background: #fff; transition: transform .2s, box-shadow .2s, border-color .2s; }
.jl-feat:hover { transform: translateY(-4px); border-color: #c9ecdd; box-shadow: 0 24px 48px -24px rgba(15, 157, 110, .35); }
.jl-feat-ico { width: 3rem; height: 3rem; display: grid; place-items: center; margin-bottom: 1.1rem; border-radius: 14px; font-size: 1.2rem; color: #fff; background: linear-gradient(135deg, #10b981, #0b8a60); box-shadow: 0 10px 20px -8px rgba(16, 185, 129, .6); }
.jl-feat h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.02em; color: #0b1a2e; }
.jl-feat p { margin: 0; color: #5d6b7e; line-height: 1.6; }

.jl-dark { color: #fff; background: radial-gradient(40rem 24rem at 50% 0%, rgba(16, 185, 129, .18), transparent 60%), #081426; }
.jl-dark h2, .jl-dark h3 { color: #fff; }
.jl-step { height: 100%; padding: 2rem; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03); }
.jl-step-n { width: 3rem; height: 3rem; display: grid; place-items: center; margin-bottom: 1.2rem; border-radius: 50%; font-size: 1.25rem; font-weight: 800; color: #081426; background: linear-gradient(135deg, #6ee7b7, #10b981); }
.jl-step h3 { font-size: 1.15rem; font-weight: 700; }
.jl-step p { margin: 0; color: #a9b9cd; line-height: 1.6; }

.jl-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 3rem; }
.jl-tabs button { padding: .65rem 1.2rem; border: 1px solid #e1e7ef; border-radius: 99px; font-weight: 600; font-size: .92rem; color: #4a586b; background: #fff; transition: all .15s; }
.jl-tabs button.active, .jl-tabs button:hover { color: #fff; border-color: #0b1a2e; background: #0b1a2e; }
.jl-rubro { display: none; animation: jl-pop .4s ease-out; }
.jl-rubro.active { display: block; }
.jl-rubro-t { margin-bottom: 1.4rem; font-size: 1.8rem; font-weight: 800; letter-spacing: -.03em; color: #0b1a2e; }
.jl-list { padding: 0; list-style: none; }
.jl-list li { display: flex; gap: .75rem; margin-bottom: 1rem; font-size: 1.04rem; color: #33445a; }
.jl-list i { margin-top: .2rem; color: #10b981; }
.jl-mini { padding: 2rem; border-radius: 22px; background: #efeae2; background-image: radial-gradient(rgba(11, 59, 48, .06) 1px, transparent 1px); background-size: 14px 14px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04); }
.jl-bubble { max-width: 85%; margin-bottom: .8rem; padding: .7rem .95rem; border-radius: 14px; font-size: .97rem; line-height: 1.45; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.jl-bubble.in { background: #fff; border-top-left-radius: 4px; }
.jl-bubble.out { margin-left: auto; background: #d9fdd3; border-top-right-radius: 4px; }
.jl-tag-ia { display: flex; width: fit-content; gap: .3rem; align-items: center; margin-top: .45rem; padding: .1rem .5rem; border-radius: 99px; font-size: .7rem; font-weight: 600; color: #0b8a60; background: rgba(16, 185, 129, .12); }

.jl-soft { background: #f6f8fb; }
.jl-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; padding: 1.2rem; border-radius: 20px; background: #fff; border: 1px solid #e8edf3; box-shadow: 0 40px 80px -40px rgba(11, 26, 46, .35); }
.jl-board-col { padding: .7rem; border-radius: 14px; background: #f2f5f9; min-height: 220px; }
.jl-board-col .h { display: flex; align-items: center; gap: .45rem; margin-bottom: .7rem; font-size: .8rem; font-weight: 700; color: #33445a; }
.jl-board-col .h span { width: .55rem; height: .55rem; border-radius: 50%; }
.jl-board-col .c { margin-bottom: .55rem; padding: .65rem .7rem; border-radius: 10px; background: #fff; border: 1px solid #e5eaf1; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.jl-board-col .c strong { display: block; font-size: .82rem; }
.jl-board-col .c small { color: #6b7a8f; font-size: .72rem; }

.jl-faq { margin-bottom: .8rem; padding: 1.2rem 1.4rem; border: 1px solid #e8edf3; border-radius: 14px; background: #fff; }
.jl-faq summary { display: flex; justify-content: space-between; gap: 1rem; align-items: center; list-style: none; cursor: pointer; font-weight: 700; color: #0b1a2e; }
.jl-faq summary::-webkit-details-marker { display: none; }
.jl-faq summary i { color: #0f9d6e; transition: transform .2s; }
.jl-faq[open] summary i { transform: rotate(45deg); }
.jl-faq p { margin: .9rem 0 0; color: #4a586b; line-height: 1.6; }

.jl-final { position: relative; overflow: hidden; padding: 6rem 0; color: #fff; background: radial-gradient(40rem 20rem at 50% 120%, rgba(16, 185, 129, .45), transparent 70%), #081426; }
.jl-final h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.04em; color: #fff; }
.jl-final p { margin-bottom: 2rem; font-size: 1.15rem; color: #b8c7da; }
.jl-footer { padding: 1.6rem 0; font-size: .85rem; color: #7f93ad; background: #06101f; }
.jl-footer a { color: #b8c7da; }
.jl-footer .small-logo { font-size: 1rem; }
.jl-footer .small-logo .mark { width: 1.8rem; height: 1.8rem; }

/* Animaciones */
.jl-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.jl-reveal.in { opacity: 1; transform: none; }
@keyframes jl-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes jl-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes jl-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes jl-pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(52, 211, 153, .25); } 50% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } }
@media (prefers-reduced-motion: reduce) {
    .jl-float, .jl-badge .dot, .jl-msg, .jl-rubro { animation: none; }
    .jl-reveal { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 991.98px) {
    .jl-hero { padding: 3rem 0 4rem; }
    .jl-section { padding: 4rem 0; }
    .jl-float { display: none; }
    .jl-phone { width: 300px; height: 540px; }
    .jl-board { grid-template-columns: repeat(2, 1fr); }
}

/* Panel izquierdo de entrada y registro con teléfono */
.jb-auth-brand .jl-phone { width: 290px; height: 470px; border-width: 8px; border-radius: 36px; }
.jb-auth-stage { position: relative; display: flex; justify-content: center; margin: 1.5rem 0; }
.jb-auth-stage .jl-float { font-size: .78rem; }
.jb-auth-stage .jl-f1 { top: 8%; left: 2%; }
.jb-auth-stage .jl-f2 { top: auto; bottom: 12%; right: 0; }
@media (max-width: 1199.98px) { .jb-auth-stage .jl-float { display: none; } }
@media (max-width: 991.98px) { .jb-auth-stage { display: none; } }

/* ---------- Flujos de conversación ---------- */
.jb-paso { position: relative; display: flex; gap: .9rem; margin-bottom: .9rem; }
.jb-paso::before { content: ""; position: absolute; left: 1.05rem; top: 2.4rem; bottom: -1rem; width: 2px; background: var(--jb-line); }
.jb-paso:last-of-type::before { display: none; }
.jb-paso-n { position: relative; z-index: 1; width: 2.2rem; height: 2.2rem; flex: 0 0 2.2rem; display: grid; place-items: center; border-radius: 50%; font-size: .85rem; font-weight: 700; color: #fff; background: var(--jb-navy-3); }
.jb-paso-ico { width: 2.4rem; height: 2.4rem; flex: 0 0 2.4rem; display: grid; place-items: center; border-radius: 10px; color: var(--jb-accent); background: var(--jb-accent-soft); }
.jb-paso-ico.t-menu { color: #2563eb; background: #e8effd; }
.jb-paso-ico.t-pregunta { color: #7c3aed; background: #f1ebfe; }
.jb-paso-ico.t-cita, .jb-paso-ico.t-humano { color: #b45309; background: #fff4e0; }
.jb-paso-ico.t-etiqueta { color: #475569; background: #eef2f7; }
.jb-paso-ico.t-fin { color: #0f172a; background: #e2e8f0; }
.jb-paso-texto { margin-top: .15rem; font-size: .92rem; white-space: pre-line; }

/* ---------- Biblioteca ---------- */
.jb-media { overflow: hidden; }
.jb-media-prev { height: 160px; display: grid; place-items: center; background: var(--jb-bg); border-bottom: 1px solid var(--jb-line); }
.jb-media-prev img, .jb-media-prev video { width: 100%; height: 160px; object-fit: cover; }

/* Archivos en burbujas de chat */
.jb-msg img.adj, .jb-msg video.adj { display: block; max-width: 100%; max-height: 220px; margin-bottom: .35rem; border-radius: 8px; }
.jb-msg audio.adj { display: block; width: 230px; margin-bottom: .35rem; }
.jb-msg .doc { display: flex; align-items: center; gap: .5rem; margin-bottom: .35rem; padding: .45rem .6rem; border-radius: 8px; font-size: .8rem; color: #111b21; background: rgba(0, 0, 0, .05); }
.jb-adjuntar { position: relative; }

/* Botón mientras se envía el formulario */
.btn[aria-busy="true"] { opacity: .92 !important; cursor: progress; }

/* ---------- Editor de flujos tipo mapa ---------- */
.jm { overflow: hidden; border: 1px solid var(--jb-line); border-radius: var(--jb-radius); background: var(--jb-surface); box-shadow: var(--jb-shadow); }
.jm-barra { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .6rem .8rem; border-bottom: 1px solid var(--jb-line); }
.jm-add { font-size: .78rem; }
.jm-add.t-menu i { color: #2563eb; } .jm-add.t-pregunta i { color: #7c3aed; } .jm-add.t-mensaje i { color: #0f9d6e; }
.jm-add.t-cita i, .jm-add.t-humano i { color: #b45309; }
.jm-cuerpo { display: grid; grid-template-columns: 1fr 320px; height: calc(100vh - 230px); min-height: 520px; }
.jm-wrap { position: relative; overflow: auto; background-color: #f4f6fa; background-image: radial-gradient(#cfd8e6 1px, transparent 1px); background-size: 22px 22px; }
[data-bs-theme="dark"] .jm-wrap { background-color: #0b1626; background-image: radial-gradient(#1f2e45 1px, transparent 1px); }
.jm-lienzo { position: relative; width: 3200px; height: 2200px; transform-origin: 0 0; touch-action: none; }
.jm-lineas { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.jm-l { fill: none; stroke: #10b981; stroke-width: 2.5; }
.jm-l-auto { stroke: #a3b1c4; stroke-width: 2; stroke-dasharray: 6 5; }
.jm-l-temp { stroke: #10b981; stroke-dasharray: 4 4; }

.jm-nodo { position: absolute; z-index: 1; width: 250px; border-radius: 14px; background: var(--jb-surface); border: 1.5px solid var(--jb-line); box-shadow: 0 6px 18px -8px rgba(16, 24, 40, .25); font-size: .85rem; user-select: none; }
.jm-nodo.sel { border-color: var(--jb-accent); box-shadow: 0 0 0 4px rgba(16, 185, 129, .18), 0 10px 24px -10px rgba(16, 24, 40, .3); z-index: 3; }
.jm-nodo.objetivo { border-color: var(--jb-accent); background: var(--jb-accent-soft); }
.jm-cab { display: flex; align-items: center; padding: .55rem .75rem; border-radius: 12px 12px 0 0; font-weight: 700; font-size: .8rem; color: #fff; background: var(--jb-accent); cursor: grab; }
.jm-cab:active { cursor: grabbing; }
.jm-nodo.t-menu .jm-cab { background: #2563eb; }
.jm-nodo.t-pregunta .jm-cab { background: #7c3aed; }
.jm-nodo.t-cita .jm-cab, .jm-nodo.t-humano .jm-cab { background: #c2700a; }
.jm-nodo.t-etiqueta .jm-cab { background: #475569; }
.jm-nodo.t-fin .jm-cab { background: #0f172a; }
.jm-inicio { width: 220px; border-style: dashed; }
.jm-inicio .jm-cab { background: var(--jb-navy-3); }
.jm-num { opacity: .75; font-weight: 600; }
.jm-cuerpo-n { padding: .6rem .75rem; }
.jm-texto { white-space: pre-line; color: var(--jb-ink); line-height: 1.35; }
.jm-ops { padding: 0 .5rem .5rem; }
.jm-op { position: relative; display: flex; align-items: center; gap: .45rem; margin-top: .3rem; padding: .35rem .6rem; border-radius: 8px; background: #eef3fd; color: #1e3a8a; font-weight: 600; font-size: .8rem; }
.jm-op-n { width: 1.2rem; height: 1.2rem; flex: 0 0 1.2rem; display: grid; place-items: center; border-radius: 50%; font-size: .68rem; color: #fff; background: #2563eb; }
.jm-encuesta { margin: 0 .75rem .2rem; font-size: .72rem; font-weight: 700; color: #0b8a60; }
.jm-despues, .jm-fin { position: relative; padding: .4rem .75rem; border-top: 1px solid var(--jb-line); font-size: .74rem; font-weight: 600; color: var(--jb-muted); text-align: right; padding-right: 1.4rem; }
.jm-fin { text-align: left; color: #c2700a; }
.jm-salida { position: absolute; right: -9px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; border: 3px solid #fff; background: var(--jb-accent); box-shadow: 0 0 0 1.5px var(--jb-accent); cursor: crosshair; z-index: 2; }
.jm-salida:hover { transform: scale(1.25); }
.jm-inicio .jm-salida { top: auto; bottom: 18px; }
.jm-entrada { position: absolute; left: -7px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: #a3b1c4; border: 2px solid #fff; }
.jm-punto-demo { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--jb-accent); vertical-align: -1px; }

.jm-panel { overflow-y: auto; padding: 1rem; border-left: 1px solid var(--jb-line); background: var(--jb-surface); }
.jm-panel-vacio { padding: 1.5rem .5rem; text-align: center; }
.jm-panel-vacio > i { font-size: 2rem; color: #b8c4d6; }
@media (max-width: 991.98px) {
    .jm-cuerpo { grid-template-columns: 1fr; height: auto; }
    .jm-wrap { height: 60vh; }
    .jm-panel { border-left: 0; border-top: 1px solid var(--jb-line); }
}

/* Encuesta en el simulador */
.jb-poll { margin: .35rem 0 .2rem; padding: .5rem; border-radius: 8px; background: rgba(0, 0, 0, .04); }
.jb-poll-t { margin-bottom: .35rem; font-size: .72rem; font-weight: 700; color: #54656f; }
.jb-poll-op { display: flex; align-items: center; gap: .5rem; width: 100%; margin-top: .3rem; padding: .4rem .6rem; border: 1px solid #d1d7db; border-radius: 8px; background: #fff; font-size: .84rem; text-align: left; color: #111b21; }
.jb-poll-op:hover { border-color: #10b981; background: #f0fdf7; }
.jb-poll-op .dot { width: .9rem; height: .9rem; flex: 0 0 .9rem; border-radius: 50%; border: 2px solid #8696a0; }
