/*====================================================
   SISTEMAS — página + mockups laptop premium (JimTech)
=====================================================*/

body.sistemas-page {
    background: #f4f7fc;
}

body.sistemas-page .header,
body.sistemas-page .header.header-scroll {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 24px rgba(19, 48, 102, 0.08);
}

body.sistemas-page .header .nav-link,
body.sistemas-page .header .logo-text strong,
body.sistemas-page .header .logo-text span {
    color: var(--primary);
}

body.sistemas-page .header .logo-text span {
    color: var(--text);
}

body.sistemas-page .header .nav-link.active,
body.sistemas-page .header .nav-link:hover {
    color: var(--secondary);
}

body.sistemas-page .btn-outline-white {
    color: var(--primary);
    border-color: var(--primary);
}

body.sistemas-page .btn-outline-white:hover {
    background: var(--primary);
    color: var(--white);
}

body.sistemas-page .menu-toggle span {
    background: var(--primary);
}

@media (max-width: 992px) {
    body.sistemas-page .nav-menu .nav-link,
    body.sistemas-page .nav-menu .btn-outline-white {
        color: var(--white);
    }

    body.sistemas-page .nav-menu .btn-outline-white {
        border-color: rgba(255, 255, 255, 0.55);
    }

    body.sistemas-page .nav-menu .nav-link.active,
    body.sistemas-page .nav-menu .nav-link:hover {
        color: var(--secondary);
    }
}

.sistemas-hero {
    position: relative;
    padding: calc(var(--header-height) + 3.5rem) 0 2.5rem;
    background:
        radial-gradient(ellipse 70% 60% at 15% 20%, rgba(57, 96, 235, 0.12), transparent 55%),
        radial-gradient(ellipse 55% 50% at 90% 10%, rgba(251, 130, 42, 0.1), transparent 50%),
        linear-gradient(180deg, #eef3fb 0%, #f7f9fc 100%);
    text-align: center;
    overflow: clip;
}

.sistemas-hero-inner {
    width: var(--container-width);
    max-width: 760px;
    margin: 0 auto;
}

.sistemas-tag {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: var(--space-xs);
}

.sistemas-hero-title {
    margin: 0 0 var(--space-xs);
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--primary);
}

.sistemas-hero-lead {
    margin: 0 auto 1.5rem;
    max-width: 52ch;
    font-size: var(--text-sm);
    line-height: 1.65;
    color: var(--text);
}

.sistemas-hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.sistemas-section {
    position: relative;
    width: 100%;
    padding: 1.5rem 0 calc(var(--space-lg) + 1rem);
    background:
        radial-gradient(ellipse 80% 50% at 10% 0%, rgba(57, 96, 235, 0.06), transparent 55%),
        radial-gradient(ellipse 70% 45% at 90% 20%, rgba(251, 130, 42, 0.05), transparent 50%),
        linear-gradient(180deg, #f7f9fc 0%, var(--white) 35%, #f4f7fc 100%);
    color: var(--dark);
    font-family: var(--font-primary);
    /* visible: los floaters de las laptops sobresalen del contenedor */
    overflow: visible;
}

body.sistemas-page {
    overflow-x: clip;
}

@media (max-width: 768px) {
    body.sistemas-page {
        padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    }

    .jt-laptop-base {
        margin: 0;
    }

    .jt-floater,
    .jt-floater-kpi,
    .jt-floater-status,
    .jt-floater-chip,
    .jt-floater-mini,
    .jt-showcase[data-system="works"] .jt-floater-kpi,
    .jt-showcase[data-system="talentica"] .jt-floater-kpi,
    .jt-showcase[data-system="works"] .jt-floater-status,
    .jt-showcase[data-system="talentica"] .jt-floater-status,
    .jt-showcase[data-system="works"] .jt-floater-chip,
    .jt-showcase[data-system="talentica"] .jt-floater-chip,
    .jt-showcase[data-system="works"] .jt-floater-mini,
    .jt-showcase[data-system="talentica"] .jt-floater-mini,
    .jt-showcase[data-system="crm"] .jt-floater-kpi,
    .jt-showcase[data-system="crm"] .jt-floater-status,
    .jt-showcase[data-system="crm"] .jt-floater-chip,
    .jt-showcase[data-system="crm"] .jt-floater-mini {
        left: auto;
        right: auto;
        max-width: min(46%, 160px);
    }

    .jt-floater-kpi,
    .jt-showcase[data-system="works"] .jt-floater-kpi,
    .jt-showcase[data-system="talentica"] .jt-floater-kpi,
    .jt-showcase[data-system="crm"] .jt-floater-kpi {
        left: 2%;
    }

    .jt-floater-status,
    .jt-showcase[data-system="works"] .jt-floater-status,
    .jt-showcase[data-system="talentica"] .jt-floater-status,
    .jt-showcase[data-system="crm"] .jt-floater-status {
        right: 2%;
    }

    .jt-floater-chip,
    .jt-showcase[data-system="works"] .jt-floater-chip,
    .jt-showcase[data-system="talentica"] .jt-floater-chip,
    .jt-showcase[data-system="crm"] .jt-floater-chip {
        left: 2%;
    }

    .jt-floater-mini,
    .jt-showcase[data-system="works"] .jt-floater-mini,
    .jt-showcase[data-system="talentica"] .jt-floater-mini,
    .jt-showcase[data-system="crm"] .jt-floater-mini {
        right: 2%;
    }
}

body.jt-chat-open .jt-phasebar,
body.jt-demo-open .jt-phasebar,
body.jt-webinar-open .jt-phasebar,
body.jt-webinar-pop-open .jt-phasebar {
    display: none;
}

.sistemas-page-cta {
    width: var(--container-width);
    max-width: 820px;
    margin: var(--space-md) auto 0;
    padding: clamp(1.75rem, 3vw, 2.5rem);
    text-align: center;
    background: linear-gradient(125deg, var(--primary) 0%, #0a1936 60%, #1a3a6e 100%);
    border-radius: var(--radius-md);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.sistemas-page-cta h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    font-weight: 800;
}

.sistemas-page-cta p {
    margin: 0 auto 1.25rem;
    max-width: 42ch;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.78);
}

.sistemas-page-cta .btn-primary {
    background: var(--secondary);
    border-color: var(--secondary);
}

.sistemas-page-cta .btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--white);
}

.sistemas-page-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/*----------------------------------------------------
    Floating glass dock (líneas) — derecha
-----------------------------------------------------*/

.jt-phasebar {
    position: fixed;
    top: 50%;
    right: max(0.85rem, env(safe-area-inset-right, 0px) + 0.65rem);
    left: auto;
    bottom: auto;
    transform: translateY(-50%);
    z-index: 60;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 6px;
    width: max-content;
    max-width: none;
    margin: 0;
    padding: 8px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 22px;
    box-shadow:
        0 18px 40px rgba(19, 48, 102, 0.16),
        0 2px 0 rgba(255, 255, 255, 0.65) inset;
    backdrop-filter: blur(16px) saturate(1.25);
    -webkit-backdrop-filter: blur(16px) saturate(1.25);
}

.jt-phasebar-btn {
    border: 0;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 10px 14px;
    border-radius: 14px;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.jt-phasebar-btn:hover {
    color: var(--primary);
    background: rgba(19, 48, 102, 0.07);
}

.jt-phasebar-btn.is-active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 8px 18px rgba(19, 48, 102, 0.28);
    transform: translateX(-2px);
}

.jt-phasebar-btn:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

/*----------------------------------------------------
    Líneas de producto + timeline
-----------------------------------------------------*/

.jt-line {
    --jt-a: var(--secondary);
    --jt-b: var(--primary);
    --jt-glow: rgba(251, 130, 42, 0.28);
    padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
    scroll-margin-top: calc(var(--header-height) + 16px);
    border-bottom: 1px solid rgba(19, 48, 102, 0.08);
    overflow: visible;
}

/* Pausar animaciones decorativas fuera de viewport (sin content-visibility: recorta floaters) */
.jt-line:not(.is-near) .jt-line-rail::after,
.jt-line:not(.is-near) .jt-line-node::after,
.jt-line:not(.is-near) .jt-laptop,
.jt-line:not(.is-near) .jt-chat,
.jt-line:not(.is-near) .jt-dot.is-live {
    animation-play-state: paused !important;
}

.jt-line[data-line="nova"] {
    --jt-a: #68e1f0;
    --jt-b: #153876;
    --jt-glow: rgba(104, 225, 240, 0.45);
}

.jt-line[data-line="orbit"] {
    --jt-a: #417fe4;
    --jt-b: #651bbb;
    --jt-glow: rgba(101, 27, 187, 0.38);
}

.jt-line[data-line="ali"] {
    --jt-a: #75c3f3;
    --jt-b: #75c3f3;
    --jt-glow: rgba(117, 195, 243, 0.45);
}

.jt-line[data-line="mas"] {
    --jt-a: #ec4899;
    --jt-b: #9d174d;
    --jt-glow: rgba(236, 72, 153, 0.35);
}

.jt-line[data-line="web"] {
    --jt-a: #34d399;
    --jt-b: #065f46;
    --jt-glow: rgba(52, 211, 153, 0.35);
}

.jt-line:last-child {
    border-bottom: 0;
}

.jt-line-head {
    max-width: 720px;
    margin: 0 auto 1.75rem;
    text-align: center;
}

.jt-line-eyebrow {
    margin: 0 0 0.5rem;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--jt-a), var(--jt-b));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.jt-line[data-line="ali"] .jt-line-eyebrow {
    color: var(--jt-a);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.jt-line-head h2 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.55rem, 2.4vw, 2.2rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.15;
}

.jt-line-head > p {
    margin: 0;
    font-size: var(--text-sm);
    line-height: 1.6;
    color: var(--text);
}

.jt-line-timeline {
    position: relative;
    width: min(100%, 960px);
    margin: 0 auto 1.5rem;
    padding: 0.35rem 0.5rem 0.75rem;
}

.jt-line-rail {
    position: absolute;
    top: 34px;
    left: 28px;
    right: 28px;
    height: 2px;
    background: var(--border);
    z-index: 1;
    overflow: hidden;
    border-radius: 99px;
}

.jt-line-rail::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--jt-a) 20%,
        var(--jt-b) 50%,
        var(--jt-a) 80%,
        transparent 100%
    );
    background-size: 220% 100%;
    opacity: 0.55;
    animation: jtLineShimmer 3.2s linear infinite;
}

.jt-line-steps {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.35rem;
}

.jt-line-step {
    appearance: none;
    border: 0;
    background: transparent;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
    position: relative;
}

.jt-line-step::before,
.jt-line-step::after {
    content: "";
    position: absolute;
    top: 27px;
    height: 4px;
    z-index: 2;
    width: 0;
    border-radius: 99px;
    transition:
        width 0.38s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.38s ease,
        filter 0.38s ease;
    background: linear-gradient(90deg, var(--jt-a), var(--jt-b));
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.jt-line-step::before {
    right: 50%;
    background: linear-gradient(270deg, var(--jt-a), var(--jt-b));
}

.jt-line-step::after {
    left: 50%;
    background: linear-gradient(90deg, var(--jt-a), var(--jt-b));
}

.jt-line-step:first-child::before,
.jt-line-step:last-child::after {
    display: none;
}

.jt-line-step:hover::before,
.jt-line-step:hover::after,
.jt-line-step.is-active::before,
.jt-line-step.is-active::after {
    width: 50%;
    box-shadow: 0 0 14px var(--jt-glow);
    filter: saturate(1.15);
}

.jt-line-node {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--border);
    display: grid;
    place-items: center;
    overflow: hidden;
    transition:
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.35s ease,
        box-shadow 0.35s ease;
    position: relative;
    z-index: 3;
}

.jt-line-node::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, var(--jt-a), var(--jt-b), var(--jt-a));
    background-size: 200% 200%;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.35s ease;
    animation: jtLineRing 2.8s linear infinite;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.jt-line-node img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    display: block;
    margin: auto;
}

.jt-line-step:hover .jt-line-node,
.jt-line-step.is-active .jt-line-node {
    transform: translateY(-6px) scale(1.08);
    border-color: transparent;
    box-shadow:
        0 12px 24px var(--jt-glow),
        0 0 0 1px color-mix(in srgb, var(--jt-a) 55%, transparent);
}

.jt-line-step:hover .jt-line-node::after,
.jt-line-step.is-active .jt-line-node::after {
    opacity: 1;
}

.jt-line-label {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    line-height: 1.25;
    max-width: 7.5rem;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

.jt-line-step:hover .jt-line-label,
.jt-line-step.is-active .jt-line-label {
    color: var(--jt-b);
    text-shadow: 0 0 18px var(--jt-glow);
}

.jt-line[data-line="ali"] .jt-line-step:hover .jt-line-label,
.jt-line[data-line="ali"] .jt-line-step.is-active .jt-line-label {
    color: #2b8bc4;
}

.jt-mono-logo {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(135deg, var(--jt-b), var(--jt-a));
}

.jt-mono-logo.is-nova {
    background: linear-gradient(145deg, #153876 0%, #1a6fa8 48%, #68e1f0 100%);
}

.jt-mono-logo.is-orbit {
    background: linear-gradient(145deg, #651bbb 0%, #417fe4 100%);
}

.jt-mono-logo.is-orbit.is-works,
.jt-mono-logo.is-orbit.is-crm {
    background:
        #fff url("../img/sistemas/orbit/logo-orbit.png") center / 86% no-repeat;
    color: transparent;
    text-shadow: none;
    font-size: 0;
}

.jt-line-node .jt-mono-logo.is-orbit.is-works,
.jt-line-node .jt-mono-logo.is-orbit.is-crm {
    background-color: #fff;
}

.jt-mono-logo.is-ali {
    background:
        #fff url("../img/sistemas/ali/logo-ali-mark.png") center / 86% no-repeat;
    color: transparent;
    text-shadow: none;
    font-size: 0;
}

.jt-line-node .jt-mono-logo.is-ali {
    background-color: #fff;
}

.jt-mono-logo.is-ali.is-tc {
    background:
        #fff url("../img/sistemas/torre/logo-torre.png") center / 78% no-repeat;
    color: transparent;
    text-shadow: none;
    font-size: 0;
}

.jt-line-node .jt-mono-logo.is-ali.is-tc {
    background-color: #fff;
}

.jt-mono-logo.is-mas {
    background: linear-gradient(135deg, #9d174d, #ec4899);
}

.jt-mono-logo.is-web {
    background:
        radial-gradient(circle at 35% 30%, #b7f08a, #4caf50 55%, #2e7d32);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.jt-mono-logo.is-web.is-gb {
    background:
        #fff url("../img/sistemas/green/logo-green-balloon.png") center / 82% no-repeat;
    color: transparent;
    text-shadow: none;
    font-size: 0;
}

.jt-mono-logo.is-web.is-bb {
    background:
        #fff url("../img/sistemas/blue/logo-blue-balloon.png") center / 78% no-repeat;
    color: transparent;
    text-shadow: none;
    font-size: 0;
}

.jt-placeholder-logo .jt-mono-logo.is-web.is-gb,
.jt-line-node .jt-mono-logo.is-web.is-gb,
.jt-placeholder-logo .jt-mono-logo.is-web.is-bb,
.jt-line-node .jt-mono-logo.is-web.is-bb {
    background-color: #fff;
}

@keyframes jtLineShimmer {
    0% { background-position: 120% 0; }
    100% { background-position: -120% 0; }
}

@keyframes jtLineRing {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    .jt-line-rail::after,
    .jt-line-node::after {
        animation: none;
    }
}

.jt-line-stage {
    position: relative;
    overflow: visible;
}

.jt-product-panel {
    display: none;
    opacity: 0;
    overflow: visible;
}

.jt-product-panel.is-active {
    display: block;
    opacity: 1;
    position: relative;
    z-index: 1;
    overflow: visible;
    animation: jtPanelIn 0.42s ease both;
}

.jt-product-panel.is-leaving {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
    transition: opacity 0.32s ease;
    animation: none;
}

/* El movimiento va en el copy, no en el panel (un transform en el panel recorta floaters) */
.jt-product-panel.is-active .jt-chapter {
    animation: jtPanelCopyIn 0.48s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes jtPanelIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes jtPanelCopyIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jt-product-panel.is-active,
    .jt-product-panel.is-leaving,
    .jt-product-panel.is-active .jt-chapter {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 1;
    }

    .jt-product-panel.is-leaving {
        opacity: 0;
    }
}

.jt-product-row {
    padding-top: 1rem;
    overflow: visible;
}

.jt-story-row > .jt-chapter,
.jt-story-row > .jt-story-visual {
    overflow: visible;
    /* Evita que el grid recorte floaters que salen de la celda */
    min-width: 0;
}

.jt-showcase-placeholder {
    min-height: 280px;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.jt-placeholder-card {
    width: min(100%, 280px);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(19, 48, 102, 0.12);
    padding: 1.35rem 1.2rem 1.2rem;
    text-align: center;
    position: relative;
}

.jt-placeholder-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 0.85rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border);
    background: #f8fafc;
}

.jt-placeholder-logo img {
    width: 72%;
    height: 72%;
    object-fit: contain;
    display: block;
    margin: auto;
}

.jt-placeholder-logo .jt-mono-logo {
    font-size: 16px;
}

.jt-placeholder-card strong {
    display: block;
    font-size: 1.05rem;
    color: var(--primary);
    margin-bottom: 0.35rem;
}

.jt-placeholder-card p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text);
}

.jt-placeholder-x {
    display: inline-grid;
    place-items: center;
    margin-top: 0.85rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px dashed rgba(19, 48, 102, 0.25);
    color: rgba(19, 48, 102, 0.35);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 720px) {
    .jt-line-rail {
        display: none;
    }

    .jt-line-steps {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem 0.5rem;
    }

    .jt-line-step {
        flex: 0 0 auto;
        width: 72px;
    }

    .jt-line-step::before,
    .jt-line-step::after {
        display: none;
    }

    .jt-line-node {
        width: 52px;
        height: 52px;
    }
}

/*----------------------------------------------------
    Story rows
-----------------------------------------------------*/

.jt-story {
    width: var(--container-width);
    margin: 0 auto;
    overflow: visible;
}

.jt-story-row {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(300px, 1.08fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: center;
    padding: clamp(2.5rem, 5vw, 4.5rem) 0;
    scroll-margin-top: calc(var(--header-height) + 16px);
    overflow: visible;
}

.jt-story-row.is-flip {
    grid-template-columns: minmax(300px, 1.08fr) minmax(0, 0.92fr);
}

.jt-story-row.is-flip .jt-chapter {
    order: 2;
}

.jt-story-row.is-flip .jt-story-visual {
    order: 1;
}

.jt-chapter {
    max-width: 520px;
    position: relative;
    z-index: 1;
}

.jt-chapter-num {
    margin: 0;
    font-size: clamp(3.5rem, 7vw, 6rem);
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -0.04em;
    color: rgba(19, 48, 102, 0.12);
}

.jt-chapter-kicker {
    margin: 0.6rem 0 0.75rem;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--secondary);
}

.jt-chapter h2 {
    margin: 0 0 0.85rem;
    font-size: clamp(1.7rem, 2.6vw, 2.55rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--primary);
}

.jt-copy {
    margin: 0;
    font-size: var(--text-sm);
    line-height: 1.65;
    color: var(--text);
}

.jt-chapter ul {
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.jt-chapter li {
    position: relative;
    padding: 0.55rem 0 0.55rem 1.15rem;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--dark);
}

.jt-chapter li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 0 0 3px rgba(251, 130, 42, 0.18);
}

.jt-chapter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    margin-top: 1.35rem;
}

.jt-chapter-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    padding: 0.7rem 1.35rem;
    border: 0;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    color: #fff;
    background: var(--primary);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, filter 0.2s ease;
}

.jt-chapter-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(19, 48, 102, 0.18);
}

/* Toma el color de la línea (--jt-a / --jt-b) */
.jt-chapter-cta.is-demo {
    background: linear-gradient(135deg, var(--jt-a), var(--jt-b));
    box-shadow: 0 10px 22px var(--jt-glow);
}

.jt-chapter-cta.is-demo:hover {
    filter: brightness(1.06);
    box-shadow: 0 12px 26px var(--jt-glow);
}

.jt-chapter-cta.is-web {
    background: #2e7d32;
}

.jt-chapter-cta.is-web:hover {
    background: #256b29;
    box-shadow: 0 10px 22px rgba(46, 125, 50, 0.28);
}

.jt-chapter-cta.is-blue {
    background: #152a55;
    box-shadow: 0 10px 24px rgba(74, 144, 226, 0.35);
}

.jt-chapter-cta.is-blue:hover {
    background: #0f1f42;
    box-shadow: 0 12px 28px rgba(74, 144, 226, 0.45);
}

.jt-product-panel[data-product="web-blue"] .jt-chapter-cta.is-demo {
    background: linear-gradient(135deg, #4a90e2, #152a55);
    box-shadow: 0 10px 24px rgba(74, 144, 226, 0.35);
}

.jt-product-panel[data-product="web-green"] .jt-chapter-cta.is-demo {
    background: linear-gradient(135deg, #55c057, #1b5e20);
    box-shadow: 0 10px 22px rgba(46, 125, 50, 0.28);
}

.jt-product-panel[data-product="talentica"] .jt-chapter-cta.is-demo {
    background: linear-gradient(135deg, #ec4899, #9d174d);
    box-shadow: 0 10px 22px rgba(236, 72, 153, 0.35);
}

.jt-story-visual {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    overflow: visible;
}

/*----------------------------------------------------
    Showcase + floaters
-----------------------------------------------------*/

.jt-showcase {
    position: relative;
    width: 100%;
    max-width: 640px;
    min-height: 460px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.25rem 3.5rem 2.75rem;
    overflow: visible;
}

.jt-showcase[data-system="works"] {
    max-width: 720px;
    padding: 2.5rem 4.25rem 3rem;
}

.jt-showcase[data-system="crm"] {
    max-width: 720px;
    padding: 5.5rem 4.25rem 3rem;
}

.jt-showcase[data-system="crm"] .jt-laptop-wide { z-index: 7; }

.jt-showcase[data-system="crm"] .jt-laptop-screen.has-real-ui {
    height: 318px;
    min-height: 318px;
    max-height: 318px;
}

.jt-showcase[data-system="crm"] .jt-floater-kpi {
    top: -6%;
    left: -8%;
}

.jt-showcase[data-system="crm"] .jt-floater-status {
    top: -2%;
    right: -8%;
}

.jt-showcase[data-system="crm"] .jt-floater-chip {
    bottom: 10%;
    left: -10%;
}

.jt-showcase[data-system="crm"] .jt-floater-mini {
    bottom: -6%;
    right: -8%;
}

.oc-view-switch {
    position: absolute;
    top: 0.35rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9;
    display: flex;
    gap: 4px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(19, 48, 102, 0.12);
    backdrop-filter: blur(8px);
}

.oc-view-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
}

.oc-view-btn:hover { color: #417fe4; }

.oc-view-btn.is-active {
    background: linear-gradient(135deg, #651bbb, #417fe4);
    color: #fff;
}

.jt-floater[data-oc-floater] {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

.jt-floater[data-oc-floater].is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px) scale(0.96);
}

.jt-floater {
    position: absolute;
    z-index: 6;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.jt-floater-kpi {
    top: -2%;
    left: -2%;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 118px;
    padding: 12px 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(19, 48, 102, 0.14);
}

.jt-floater-kpi strong {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}

.jt-floater-label,
.jt-floater-sub,
.jt-mini-title,
.jt-mini-meta {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
}

.jt-floater-sub,
.jt-mini-meta {
    text-transform: none;
    font-weight: 600;
    letter-spacing: 0;
    opacity: 0.85;
}

.jt-floater-status {
    top: 4%;
    right: -4%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: var(--dark);
    box-shadow: 0 14px 30px rgba(19, 48, 102, 0.12);
    white-space: nowrap;
}

.jt-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(76, 176, 80, 0.2);
}

.jt-dot.is-live {
    animation: jtPulse 1.8s ease-in-out infinite;
}

.jt-dot.is-warm {
    background: var(--secondary);
    box-shadow: 0 0 0 4px rgba(251, 130, 42, 0.22);
}

.jt-dot.is-ok {
    background: #e91e63;
    box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.18);
}

.jt-floater-chip {
    bottom: 14%;
    left: -4%;
    padding: 8px 12px;
    background: var(--primary);
    color: var(--white);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 12px 28px rgba(19, 48, 102, 0.28);
}

.jt-floater-mini {
    bottom: -2%;
    right: -4%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 128px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 14px 32px rgba(19, 48, 102, 0.12);
}

/* Works / Talentica: floaters más afuera para no tapar el dashboard */
.jt-showcase[data-system="works"] .jt-floater-kpi,
.jt-showcase[data-system="talentica"] .jt-floater-kpi {
    top: -6%;
    left: -8%;
}

.jt-showcase[data-system="works"] .jt-floater-status,
.jt-showcase[data-system="talentica"] .jt-floater-status {
    top: -2%;
    right: -8%;
}

.jt-showcase[data-system="works"] .jt-floater-chip,
.jt-showcase[data-system="talentica"] .jt-floater-chip {
    bottom: 10%;
    left: -10%;
}

.jt-showcase[data-system="works"] .jt-floater-mini,
.jt-showcase[data-system="talentica"] .jt-floater-mini {
    bottom: -6%;
    right: -8%;
}

.jt-mini-bar {
    display: block;
    height: 6px;
    border-radius: 99px;
    background: rgba(19, 48, 102, 0.08);
    overflow: hidden;
}

.jt-mini-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary-light), var(--secondary));
}

.jt-floater-kpi.is-crm strong,
.jt-floater-chip.is-crm {
    color: #194aa7;
}

.jt-floater-chip.is-crm {
    background: #194aa7;
    color: var(--white);
}

.jt-floater-kpi.is-rh strong {
    color: #e91e63;
}

.jt-floater-chip.is-rh {
    background: #e91e63;
}

.jt-floater-kpi.is-ali strong {
    color: #00bcd4;
}

.jt-floater-chip.is-ali {
    background: #0f766e;
}

.jt-chat {
    position: absolute;
    top: 58%;
    left: -2%;
    z-index: 7;
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: jtFloatChat 6s ease-in-out infinite alternate;
}

.jt-chat-bubble {
    max-width: 190px;
    padding: 9px 14px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 12px 28px rgba(19, 48, 102, 0.16);
}

.jt-chat-bubble.ask {
    background: var(--white);
    color: var(--dark);
    border-bottom-left-radius: 4px;
}

.jt-chat-bubble.reply {
    background: linear-gradient(135deg, #0f766e, #00bcd4);
    color: var(--white);
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

/*----------------------------------------------------
    Laptop mockup
-----------------------------------------------------*/

.jt-laptop {
    position: relative;
    z-index: 5;
    width: min(100%, 420px);
    filter: drop-shadow(0 28px 48px rgba(16, 24, 40, 0.28));
    animation: jtLaptopGlow 4s ease-in-out infinite;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.jt-laptop-wide {
    width: min(100%, 540px);
    pointer-events: auto;
}

.jt-showcase[data-system="works"] .jt-laptop-wide {
    z-index: 7;
}

.jt-showcase[data-system="works"] {
    padding-top: 5.5rem;
}

.jt-laptop-screen.has-real-ui {
    height: 318px;
    min-height: 318px;
    max-height: 318px;
    padding: 0;
    gap: 0;
    background: #e9eef5;
    overflow: hidden;
    border-radius: inherit;
}

.jt-laptop-bezel:has(.has-real-ui) {
    border-radius: 8px;
    overflow: hidden;
}

.jt-laptop-bezel:has(.has-real-ui) .jt-laptop-camera {
    z-index: 4;
    top: 4px;
    width: 5px;
    height: 5px;
    background: rgba(15, 23, 42, 0.55);
    box-shadow: none;
}

.jt-laptop-bezel:has(.has-real-ui) .ow-app {
    border-radius: inherit;
}

/*----------------------------------------------------
    Orbit Works — UI real (mini dashboard)
-----------------------------------------------------*/

.ow-view-switch {
    position: absolute;
    top: 0.35rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px;
    max-width: min(100% - 1rem, 560px);
    padding: 4px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(19, 48, 102, 0.12);
    backdrop-filter: blur(8px);
}

.ow-view-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 8px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
    white-space: nowrap;
}

.ow-view-btn:hover {
    color: var(--primary);
}

.ow-view-btn.is-active {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}

.jt-floater[data-ow-floater] {
    opacity: 1;
    visibility: visible;
    transition:
        opacity 0.4s ease,
        visibility 0.4s ease,
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        translate 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.jt-floater[data-ow-floater].is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px) scale(0.96);
}

.ow-app {
    display: grid;
    grid-template-columns: 102px 1fr;
    height: 100%;
    min-height: 318px;
    max-height: 318px;
    font-family: var(--font-primary);
    color: #1f2937;
    overflow: hidden;
    --ow-bg: #e9eef5;
    --ow-panel: #ffffff;
    --ow-text: #0f172a;
    --ow-muted: #64748b;
    --ow-border: #e2e8f0;
    --ow-side: linear-gradient(180deg, #15233f 0%, #0d1730 100%);
    --ow-soft: #f8fafc;
}

.ow-app.is-dark {
    color: #e2e8f0;
    --ow-bg: #0b1220;
    --ow-panel: #152033;
    --ow-text: #f1f5f9;
    --ow-muted: #94a3b8;
    --ow-border: #243247;
    --ow-side: linear-gradient(180deg, #0a101c 0%, #070b14 100%);
    --ow-soft: #111827;
}

.jt-laptop-screen.has-real-ui:has(.ow-app.is-dark) {
    background: #0b1220;
}

.ow-stage {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--ow-bg);
    overflow: hidden;
}

.ow-panels {
    display: grid;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.ow-view {
    grid-area: 1 / 1;
    min-height: 0;
    min-width: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(14px);
    transition:
        opacity 0.42s ease,
        transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.42s ease;
    z-index: 0;
}

.ow-view[hidden] {
    display: none !important;
}

.ow-view.is-leaving[hidden] {
    display: block !important;
}

.ow-view.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    z-index: 2;
    overflow: hidden;
    height: 100%;
}

.ow-view.is-leaving {
    display: block !important;
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    transform: translateX(-12px);
    z-index: 1;
    overflow: hidden;
    height: 100%;
}

@media (prefers-reduced-motion: reduce) {
    .ow-view,
    .ow-view.is-active,
    .ow-view.is-leaving,
    .jt-floater[data-ow-floater],
    .ow-view-btn {
        transition: none !important;
    }
}

.ow-side {
    background: var(--ow-side);
    color: rgba(255, 255, 255, 0.78);
    padding: 8px 6px 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow: hidden;
}

.ow-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.ow-mark {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    display: grid;
    place-items: center;
    font-size: 0;
    color: transparent;
    background:
        #fff url("../img/sistemas/orbit/logo-orbit.png") center / 92% no-repeat;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
    overflow: hidden;
    flex-shrink: 0;
}

.ow-brand strong {
    display: block;
    font-size: 8px;
    letter-spacing: 0.08em;
    color: #fff;
    line-height: 1;
}

.ow-brand em {
    display: block;
    font-style: normal;
    font-size: 7px;
    color: #93c5fd;
}

.ow-menu-label {
    margin: 0;
    font-size: 6.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.35);
}

.ow-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-height: 0;
}

.ow-nav li {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3.5px 5px;
    border-radius: 5px;
    font-size: 6.5px;
    font-weight: 600;
    line-height: 1.15;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

.ow-nav li:hover {
    background: rgba(255, 255, 255, 0.08);
}

.ow-nav li span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    flex-shrink: 0;
}

.ow-nav li.is-on {
    background: rgba(59, 130, 246, 0.22);
    color: #fff;
}

.ow-nav li.is-on span {
    background: #60a5fa;
}

.ow-main {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 8px 9px 9px;
    min-width: 0;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    background: var(--ow-bg);
    box-sizing: border-box;
}

.ow-stage > .ow-top {
    padding: 8px 9px 0;
    background: var(--ow-bg);
}

.ow-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ow-company {
    background: var(--ow-panel);
    border: 1px solid var(--ow-border);
    border-radius: 7px;
    padding: 4px 8px;
    font-size: 7px;
    color: var(--ow-muted);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ow-company strong {
    color: var(--ow-text);
}

.ow-top-tools {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.ow-tool {
    appearance: none;
    border: 1px solid var(--ow-border);
    background: var(--ow-soft);
    color: var(--ow-muted);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 3px 8px rgba(15, 23, 42, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    position: relative;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ow-tool:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.12);
}

.ow-tool:active {
    transform: translateY(0);
}

.ow-tool svg {
    display: block;
    width: 9px;
    height: 9px;
}

.ow-tool-timbres {
    height: 16px;
    padding: 0 7px 0 5px;
    border-radius: 999px;
    gap: 4px;
    color: #dc2626;
}

.ow-tool-timbres span {
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
    color: #dc2626;
}

.ow-tool-theme {
    width: 30px;
    height: 16px;
    border-radius: 999px;
    justify-content: space-between;
    padding: 2px 4px 2px 2px;
    color: var(--ow-muted);
}

.ow-theme-knob {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
    flex-shrink: 0;
    transition: transform 0.2s ease;
    order: 0;
}

.ow-theme-moon,
.ow-theme-sun {
    width: 8px !important;
    height: 8px !important;
    margin-right: 1px;
    opacity: 0.85;
}

.ow-theme-sun {
    display: none;
}

.ow-app.is-dark .ow-tool-theme {
    justify-content: flex-start;
    padding: 2px 2px 2px 4px;
}

.ow-app.is-dark .ow-theme-knob {
    order: 2;
    margin-left: auto;
}

.ow-app.is-dark .ow-theme-moon {
    display: none;
}

.ow-app.is-dark .ow-theme-sun {
    display: block;
    order: 0;
    margin-right: 0;
    margin-left: 1px;
    color: #fbbf24;
}

.ow-tool-bell,
.ow-tool-settings {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.ow-badge {
    position: absolute;
    top: -3px;
    right: -4px;
    min-width: 11px;
    height: 9px;
    padding: 0 2px;
    border-radius: 999px;
    background: #3b82f6;
    color: #fff;
    font-style: normal;
    font-size: 5.5px;
    font-weight: 800;
    line-height: 9px;
    text-align: center;
    box-shadow: 0 0 0 1px #f8fafc;
}

.ow-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
}

.ow-kpi {
    background: var(--ow-panel);
    border: 1px solid var(--ow-border);
    border-radius: 8px;
    padding: 6px 7px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.ow-kpi b {
    font-size: 10px;
    font-weight: 800;
    color: var(--ow-text);
    line-height: 1.1;
}

.ow-kpi span {
    font-size: 5.8px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--ow-muted);
}

.ow-kpi.is-ok b { color: #16a34a; }
.ow-kpi.is-warn b { color: #dc2626; }

.ow-charts {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 6px;
    flex: 1;
    min-height: 0;
}

.ow-card {
    background: var(--ow-panel);
    border: 1px solid var(--ow-border);
    border-radius: 9px;
    padding: 7px 8px 8px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.ow-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 6px;
}

.ow-card-head strong {
    font-size: 8px;
    font-weight: 800;
    color: var(--ow-text);
}

.ow-card-head span {
    font-size: 6.5px;
    color: var(--ow-muted);
}

.ow-toggle {
    background: #eff6ff;
    color: #2563eb !important;
    border-radius: 99px;
    padding: 2px 6px;
    font-weight: 700;
}

.ow-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3px;
    height: 78px;
    padding: 0 2px;
}

.ow-bar-group {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: center;
    align-content: flex-end;
    gap: 1px 2px;
    height: 100%;
}

.ow-bar-group i {
    display: block;
    width: 4px;
    height: var(--h);
    border-radius: 2px 2px 1px 1px;
    background: linear-gradient(180deg, #60a5fa, #2563eb);
}

.ow-bar-group i.g {
    background: linear-gradient(180deg, #f87171, #dc2626);
}

.ow-bar-group em {
    flex: 0 0 100%;
    text-align: center;
    font-style: normal;
    font-size: 5.5px;
    font-weight: 700;
    color: #94a3b8;
    line-height: 1;
    margin-top: 2px;
}

.ow-legend {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.ow-legend span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 6px;
    font-weight: 600;
    color: #64748b;
}

.ow-legend i {
    width: 7px;
    height: 7px;
    border-radius: 2px;
}

.ow-legend i.inc { background: #2563eb; }
.ow-legend i.exp { background: #dc2626; }

.ow-donut {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 2px auto 4px;
}

.ow-donut svg {
    width: 100%;
    height: 100%;
}

.ow-donut-center {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    text-align: center;
}

.ow-donut-center b {
    font-size: 11px;
    font-weight: 800;
    color: var(--ow-text);
    line-height: 1;
}

.ow-donut-center span {
    font-size: 6px;
    color: var(--ow-muted);
}

.ow-app.is-dark .ow-donut circle:first-child {
    stroke: #243247;
}

.ow-pie-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ow-pie-legend li {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 6.5px;
    font-weight: 600;
    color: var(--ow-muted);
}

.ow-pie-legend i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/*----------------------------------------------------
    Orbit Works — Comprobantes
-----------------------------------------------------*/

.ow-app-comp {
    grid-template-columns: 96px 1fr;
    min-height: 330px;
}

.ow-app-comp .ow-side {
    padding: 7px 5px 8px;
}

.ow-app-comp .ow-nav li {
    font-size: 5.8px;
    padding: 2.5px 4px;
}

.ow-nav li.is-parent {
    font-weight: 800;
    color: #fff;
}

.ow-nav li.is-sub {
    display: none;
    padding-left: 10px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 5.4px;
}

.ow-nav.is-group-clientes-open > [data-ow-group="clientes"].is-sub,
.ow-nav.is-group-cumplimiento-open > [data-ow-group="cumplimiento"].is-sub,
.ow-nav.is-group-crm-open > [data-oc-group="crm"].is-sub {
    display: flex;
}

.ow-nav .is-parent.is-open {
    color: #fff;
    font-weight: 800;
}

.ow-nav li.is-sub.is-on {
    background: rgba(59, 130, 246, 0.28);
    color: #fff;
}

.oc-app,
.oc-app .ow-stage,
.oc-app .ow-panels,
.oc-app .ow-view,
.oc-app .ow-main,
.oc-app .ow-side,
.oc-app .ow-nav {
    overflow: hidden !important;
}

.oc-app .ow-stage > .ow-top {
    padding: 5px 6px 0;
}

.oc-app .ow-company {
    padding: 3px 6px;
    font-size: 6px;
}

.oc-main {
    gap: 2px;
    padding: 3px 6px 4px;
}

.oc-head {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.oc-head .ow-page-title {
    font-size: 9px;
    margin: 0;
}

.oc-toolbar {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: nowrap;
}

.oc-toolbar .ow-search {
    flex: 1;
    min-width: 70px;
    padding: 3px 6px;
    font-size: 5.5px;
}

.oc-toolbar .ow-btn-new,
.oc-toolbar .ow-btn-outline {
    padding: 3px 5px;
    font-size: 5.2px;
}

.oc-reports {
    display: flex;
    gap: 2px;
    margin-left: auto;
    flex-shrink: 0;
}

.oc-reports button {
    appearance: none;
    border: 0;
    background: #15233f;
    color: #fff;
    font-family: inherit;
    font-size: 4.6px;
    font-weight: 700;
    padding: 3px 4px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.oc-filters {
    background: var(--ow-panel);
    border: 1px solid var(--ow-border);
    border-radius: 6px;
    padding: 3px 6px;
    font-size: 5.2px;
    font-weight: 700;
    color: #2563eb;
    cursor: pointer;
}

.oc-app .ow-main-comp .ow-table-wrap.oc-table,
.oc-table {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow: hidden;
}

.oc-table .ow-table th,
.oc-table .ow-table td {
    padding: 3px 4px;
    font-size: 5.2px;
}

.oc-table .ow-table td {
    white-space: nowrap;
    line-height: 1.2;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oc-table .ow-table td b {
    color: var(--ow-text);
    font-size: 5.4px;
}

.oc-table .ow-table td small {
    display: inline;
    margin-top: 0;
    margin-left: 3px;
    color: var(--ow-muted);
    font-size: 4.8px;
    font-weight: 600;
}

.oc-table .ow-table td br + small {
    display: block;
    margin-left: 0;
    margin-top: 1px;
}

.oc-pill {
    display: inline-flex;
    font-style: normal;
    font-size: 5px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 99px;
    white-space: nowrap;
}

.oc-pill.is-peach {
    background: rgba(251, 146, 60, 0.18);
    color: #c2410c;
}

.oc-pill.is-sky {
    background: rgba(56, 189, 248, 0.18);
    color: #0369a1;
}

.oc-pill.is-green {
    background: rgba(34, 197, 94, 0.16);
    color: #15803d;
}

.ow-app.is-dark .oc-pill.is-peach { color: #fdba74; }
.ow-app.is-dark .oc-pill.is-sky { color: #7dd3fc; }
.ow-app.is-dark .oc-pill.is-green { color: #86efac; }
.ow-app.is-dark .oc-reports button { background: #1e293b; }

@media (prefers-reduced-motion: reduce) {
    .jt-floater[data-oc-floater],
    .oc-view-btn {
        transition: none !important;
    }
}

.ow-main-comp {
    gap: 4px;
    padding: 5px 7px 6px;
    overflow: hidden;
}

.ow-main-comp .ow-comp-head {
    flex-shrink: 0;
}

.ow-main-comp .ow-comp-stats,
.ow-main-comp .ow-comp-filters,
.ow-main-comp .ow-comp-totals {
    flex-shrink: 0;
}

.ow-main-comp .ow-table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 92px;
    overflow: auto;
}

.ow-comp-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
}

.ow-page-title {
    margin: 0 0 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--ow-text);
}

.ow-btn-new {
    appearance: none;
    border: 0;
    background: #2563eb;
    color: #fff;
    font-family: inherit;
    font-size: 6.5px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.28);
    cursor: pointer;
}

.ow-comp-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.ow-btn-outline,
.ow-btn-excel {
    appearance: none;
    border: 1px solid #93c5fd;
    background: var(--ow-panel);
    color: #2563eb;
    font-family: inherit;
    font-size: 5.8px;
    font-weight: 700;
    padding: 4px 7px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
}

.ow-btn-excel {
    border-color: #16a34a;
    background: #16a34a;
    color: #fff;
}

.ow-comp-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
}

.ow-cstat {
    background: var(--ow-panel);
    border: 1px solid var(--ow-border);
    border-radius: 7px;
    padding: 5px 6px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.ow-cstat b {
    font-size: 10px;
    font-weight: 800;
    color: var(--ow-text);
    line-height: 1;
}

.ow-cstat span {
    font-size: 5.5px;
    font-weight: 700;
    color: var(--ow-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ow-cstat.is-ok b { color: #2563eb; }
.ow-cstat.is-warn b { color: #ea580c; }
.ow-cstat.is-bad b { color: #dc2626; }

.ow-comp-filters {
    display: flex;
    gap: 4px;
    align-items: center;
}

.ow-search {
    flex: 1;
    background: var(--ow-panel);
    border: 1px solid var(--ow-border);
    border-radius: 7px;
    padding: 5px 8px;
    font-size: 6px;
    color: var(--ow-muted);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.ow-filters-btn {
    background: var(--ow-panel);
    border: 1px solid var(--ow-border);
    border-radius: 7px;
    padding: 5px 7px;
    font-size: 5.8px;
    font-weight: 700;
    color: var(--ow-text);
    white-space: nowrap;
    cursor: pointer;
}

.ow-table-wrap {
    background: var(--ow-panel);
    border: 1px solid var(--ow-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.ow-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.ow-table th,
.ow-table td {
    padding: 4px 5px;
    font-size: 5.6px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ow-table th {
    background: #15233f;
    color: #fff;
    font-weight: 700;
}

.ow-table td {
    color: var(--ow-muted);
    border-bottom: 1px solid var(--ow-border);
    font-weight: 600;
}

.ow-table tbody tr:last-child td {
    border-bottom: 0;
}

.ow-table td:last-child {
    font-weight: 800;
    color: var(--ow-text);
    text-align: right;
}

.ow-app.is-dark .ow-table th {
    background: #0a1322;
}

.ow-table th:nth-child(1),
.ow-table td:nth-child(1) { width: 24%; }
.ow-table th:nth-child(2),
.ow-table td:nth-child(2) { width: 16%; }
.ow-table th:nth-child(3),
.ow-table td:nth-child(3) { width: 14%; }
.ow-table th:nth-child(4),
.ow-table td:nth-child(4) { width: 14%; }
.ow-table th:nth-child(5),
.ow-table td:nth-child(5) { width: 16%; }
.ow-table th:nth-child(6),
.ow-table td:nth-child(6) { width: 16%; }

.ow-tag {
    display: inline-flex;
    align-items: center;
    padding: 1px 5px;
    border-radius: 99px;
    font-style: normal;
    font-size: 5px;
    font-weight: 800;
}

.ow-tag.is-ok {
    background: #dbeafe;
    color: #1d4ed8;
}

.ow-tag.is-warn {
    background: #ffedd5;
    color: #c2410c;
}

.ow-tag.is-bad {
    background: #fee2e2;
    color: #b91c1c;
}

.ow-comp-totals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.ow-total-card {
    background: var(--ow-panel);
    border: 1px solid var(--ow-border);
    border-radius: 7px;
    padding: 4px 5px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.ow-total-card strong {
    display: block;
    margin-bottom: 3px;
    font-size: 6.5px;
    font-weight: 800;
    color: var(--ow-text);
}

.ow-total-row {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    padding: 1.5px 0;
    font-size: 5.6px;
    color: var(--ow-muted);
}

.ow-total-row b {
    color: var(--ow-text);
    font-weight: 800;
}

.ow-total-row b.is-neg {
    color: #dc2626;
}

.ow-total-row.is-sum {
    margin-top: 2px;
    padding-top: 3px;
    border-top: 1px solid var(--ow-border);
    font-weight: 700;
    color: var(--ow-text);
}

.ow-total-row b.is-hl {
    background: #ffedd5;
    color: #9a3412;
    padding: 1px 4px;
    border-radius: 4px;
}

/*----------------------------------------------------
    Orbit Works — Análisis Inteligente
-----------------------------------------------------*/

.ow-main-ai {
    gap: 3px;
    padding: 4px 6px 5px;
    overflow: hidden;
}

.ow-main-ai > .ow-ai-hero,
.ow-main-ai > .ow-ai-stats,
.ow-main-ai > .ow-ai-charts {
    flex-shrink: 0;
}

.ow-ai-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 5px 7px;
    border-radius: 8px;
    background:
        radial-gradient(circle at 88% 40%, rgba(59, 130, 246, 0.22), transparent 42%),
        linear-gradient(120deg, var(--ow-panel) 0%, rgba(219, 234, 254, 0.65) 100%);
    border: 1px solid var(--ow-border);
}

.ow-app.is-dark .ow-ai-hero {
    background:
        radial-gradient(circle at 88% 40%, rgba(59, 130, 246, 0.28), transparent 42%),
        linear-gradient(120deg, #121a2b 0%, #15233f 100%);
}

.ow-ai-crumb {
    margin: 0 0 1px;
    font-size: 5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #2563eb;
}

.ow-main-ai .ow-page-title {
    margin: 0 0 2px;
    font-size: 9px;
}

.ow-ai-sub {
    margin: 0 0 3px;
    font-size: 6px;
    color: var(--ow-muted);
}

.ow-ai-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.ow-ai-tags span {
    font-size: 5.2px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 99px;
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.ow-ai-tags span.is-warn {
    background: #ffedd5;
    color: #c2410c;
    border-color: #fed7aa;
}

.ow-ai-orb {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    align-self: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 28%, #93c5fd 0%, #3b82f6 42%, #1d4ed8 78%, #0f172a 100%);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

.ow-ai-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
}

.ow-ai-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.ow-ai-donut {
    position: relative;
    width: 48px;
    height: 48px;
    margin: 1px auto 2px;
    color: var(--ow-border);
}

.ow-ai-donut svg {
    width: 100%;
    height: 100%;
}

.ow-ai-ring-bg {
    color: var(--ow-border);
}

.ow-scatter {
    position: relative;
    height: 52px;
    margin-top: 1px;
    border-radius: 8px;
    background:
        linear-gradient(to right, transparent 0, transparent calc(100% - 1px), var(--ow-border) calc(100% - 1px)),
        linear-gradient(to top, transparent 0, transparent calc(100% - 1px), var(--ow-border) calc(100% - 1px)),
        repeating-linear-gradient(to right, transparent 0 11px, rgba(148, 163, 184, 0.12) 11px 12px),
        repeating-linear-gradient(to top, transparent 0 11px, rgba(148, 163, 184, 0.12) 11px 12px),
        var(--ow-soft);
    border: 1px solid var(--ow-border);
}

.ow-dot {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
    transform: translate(-50%, 50%);
}

.ow-dot.is-ok {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.ow-dot.is-warn {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22);
}

.ow-dot.is-bad {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.22);
}

.ow-axis-x,
.ow-axis-y {
    position: absolute;
    font-style: normal;
    font-size: 5px;
    font-weight: 700;
    color: var(--ow-muted);
}

.ow-axis-x {
    left: 50%;
    bottom: 2px;
    transform: translateX(-50%);
}

.ow-axis-y {
    left: 3px;
    top: 50%;
    writing-mode: vertical-rl;
    transform: translateY(-50%) rotate(180deg);
}

.ow-ai-leads {
    min-height: 0;
    flex: 1 1 auto;
    padding: 4px 5px 4px;
    overflow: hidden;
}

.ow-ai-leads .ow-card-head {
    align-items: center;
    margin-bottom: 2px;
}

.ow-ai-leads .ow-table-wrap {
    max-height: 58px;
    overflow: auto;
}

.ow-ai-leads .ow-table th,
.ow-ai-leads .ow-table td {
    padding: 3px 4px;
    font-size: 5.2px;
}

.ow-ai-filters {
    display: flex;
    gap: 2px;
}

.ow-ai-filters button {
    appearance: none;
    border: 1px solid var(--ow-border);
    background: var(--ow-soft);
    color: var(--ow-muted);
    font-family: inherit;
    font-size: 5.4px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 99px;
    cursor: pointer;
}

.ow-ai-filters button.is-on {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.ow-prob {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 5.4px;
    font-weight: 800;
    color: var(--ow-text);
}

.ow-prob i {
    display: inline-block;
    width: var(--w, 28px);
    max-width: 28px;
    height: 4px;
    border-radius: 99px;
    background: linear-gradient(90deg, #22c55e, #4ade80);
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.18);
}

/*----------------------------------------------------
    Orbit Works — Cumplimiento (REPSE / SIROC)
-----------------------------------------------------*/

.ow-main-comply {
    gap: 5px;
    padding: 6px 7px 7px;
    overflow: hidden;
}

.ow-comply-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.ow-page-title.is-blue {
    color: #2563eb;
    font-size: 9px;
    margin: 0;
}

.ow-comply-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 3px;
}

.ow-siroc-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ow-comply-mid,
.ow-comply-tables {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.ow-repse-reg {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ow-repse-reg strong {
    font-size: 7px;
    color: var(--ow-text);
}

.ow-repse-reg p {
    margin: 0;
    font-size: 5.8px;
    color: var(--ow-muted);
}

.ow-repse-reg p b {
    color: var(--ow-text);
}

.ow-days-left {
    margin-top: 2px;
    font-style: normal;
    font-size: 11px;
    font-weight: 800;
    color: #dc2626;
    line-height: 1.1;
}

.ow-repse-hint {
    font-size: 5.2px;
    color: #ea580c;
}

.ow-comply-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 54px;
    margin-top: 4px;
}

.ow-comply-bars i {
    flex: 1;
    height: var(--h);
    border-radius: 2px 2px 1px 1px;
    background: linear-gradient(180deg, #93c5fd, #2563eb);
    opacity: 0.55;
}

.ow-comply-bars i.is-now {
    opacity: 1;
    background: linear-gradient(180deg, #60a5fa, #1d4ed8);
}

.ow-comply-tables .ow-card > strong {
    display: block;
    margin-bottom: 4px;
    font-size: 6.5px;
    color: var(--ow-text);
}

.ow-mini-rows {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ow-mini-rows > div {
    display: grid;
    grid-template-columns: 0.7fr 1.2fr auto;
    gap: 4px;
    align-items: center;
    font-size: 5.4px;
    color: var(--ow-muted);
    padding: 3px 0;
    border-bottom: 1px solid var(--ow-border);
}

.ow-mini-rows > div:last-child {
    border-bottom: 0;
}

.ow-mini-rows b.is-neg {
    color: #dc2626;
    font-size: 5.6px;
    text-align: right;
}

.ow-siroc-rows > div {
    grid-template-columns: 1.4fr auto;
}

.ow-siroc-banner {
    font-size: 5.6px;
    font-weight: 600;
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 7px;
    padding: 4px 7px;
}

.ow-app.is-dark .ow-siroc-banner {
    color: #93c5fd;
    background: rgba(37, 99, 235, 0.18);
    border-color: rgba(96, 165, 250, 0.25);
}

.ow-app.is-dark .ow-days-left {
    color: #f87171;
}

.ow-app.is-dark .ow-repse-hint {
    color: #fb923c;
}

/*----------------------------------------------------
    Orbit Works — Proyectos / Nóminas
-----------------------------------------------------*/

.ow-main-list {
    gap: 5px;
    padding: 6px 7px 7px;
    overflow: hidden;
}

.ow-adv-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.ow-adv-filters span {
    font-size: 5px;
    font-weight: 700;
    color: var(--ow-muted);
    background: var(--ow-panel);
    border: 1px solid var(--ow-border);
    border-radius: 99px;
    padding: 2px 6px;
}

.ow-cell-title {
    display: block;
    font-size: 5.8px;
    font-weight: 800;
    color: var(--ow-text);
    line-height: 1.15;
}

.ow-cell-sub {
    display: block;
    margin-top: 1px;
    font-size: 5px;
    font-weight: 600;
    color: var(--ow-muted);
}

.ow-cell-dates {
    display: block;
    font-size: 5.2px;
    line-height: 1.25;
    color: var(--ow-muted);
}

.ow-pill {
    display: inline-flex;
    align-items: center;
    font-size: 5px;
    font-weight: 700;
    font-style: normal;
    color: var(--ow-muted);
    background: rgba(148, 163, 184, 0.18);
    border-radius: 99px;
    padding: 2px 6px;
}

.ow-money {
    font-size: 5.8px;
    font-weight: 800;
    color: #16a34a;
}

.ow-app.is-dark .ow-money {
    color: #4ade80;
}

.ow-table-proy .ow-table th,
.ow-table-proy .ow-table td,
.ow-table-nom .ow-table th,
.ow-table-nom .ow-table td {
    padding: 4px 5px;
    font-size: 5.4px;
}

.ow-table-proy .ow-table th {
    background: #1e3a8a;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.ow-table-nom .ow-table th {
    background: #2563eb;
    color: #fff;
    font-weight: 700;
}

.ow-app.is-dark .ow-table-proy .ow-table th,
.ow-app.is-dark .ow-table-nom .ow-table th {
    background: #1e3a8a;
    color: #e2e8f0;
}

.ow-table-proy .ow-table th:nth-child(1),
.ow-table-proy .ow-table td:nth-child(1) { width: 28%; }
.ow-table-proy .ow-table th:nth-child(2),
.ow-table-proy .ow-table td:nth-child(2) { width: 20%; }
.ow-table-proy .ow-table th:nth-child(3),
.ow-table-proy .ow-table td:nth-child(3) { width: 16%; }
.ow-table-proy .ow-table th:nth-child(4),
.ow-table-proy .ow-table td:nth-child(4) { width: 16%; }
.ow-table-proy .ow-table th:nth-child(5),
.ow-table-proy .ow-table td:nth-child(5) { width: 20%; }

.ow-table-nom .ow-table th:nth-child(1),
.ow-table-nom .ow-table td:nth-child(1) { width: 40%; }
.ow-table-nom .ow-table th:nth-child(2),
.ow-table-nom .ow-table td:nth-child(2) { width: 22%; }
.ow-table-nom .ow-table th:nth-child(3),
.ow-table-nom .ow-table td:nth-child(3) { width: 14%; }
.ow-table-nom .ow-table th:nth-child(4),
.ow-table-nom .ow-table td:nth-child(4) { width: 24%; }

.ow-table-nom .ow-table td:nth-child(3),
.ow-table-nom .ow-table td:nth-child(4) {
    font-weight: 700;
    color: var(--ow-text);
}

@media (max-width: 640px) {
    .jt-laptop-wide {
        width: min(100%, 480px);
    }

    .ow-app-comp {
        grid-template-columns: 78px 1fr;
        min-height: 300px;
    }

    .ow-comp-actions .ow-btn-outline {
        display: none;
    }

    .ow-main-comp .ow-table th:nth-child(3),
    .ow-main-comp .ow-table td:nth-child(3),
    .ow-main-comp .ow-table th:nth-child(5),
    .ow-main-comp .ow-table td:nth-child(5) {
        display: none;
    }

    .ow-table-proy .ow-table th:nth-child(3),
    .ow-table-proy .ow-table td:nth-child(3) {
        display: none;
    }

    .ow-ai-charts,
    .ow-comply-mid,
    .ow-comply-tables {
        grid-template-columns: 1fr;
    }

    .ow-comply-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ow-ai-orb {
        width: 32px;
        height: 32px;
    }

    .ow-view-btn {
        font-size: 9px;
        padding: 6px 7px;
    }
}

@media (max-width: 480px) {
    .ow-comp-totals {
        grid-template-columns: 1fr;
    }

    .ow-total-card:last-child {
        display: none;
    }

    .ow-nav li.is-sub:not(.is-on) {
        display: none;
    }
}

.jt-laptop-lid {
    position: relative;
    background: linear-gradient(180deg, #1a2744 0%, #0d1628 100%);
    border: 2px solid #2a3a5c;
    border-radius: 14px 14px 8px 8px;
    padding: 10px 10px 8px;
}

.jt-laptop-bezel {
    position: relative;
    background: #060b16;
    border-radius: 8px;
    overflow: hidden;
}

.jt-laptop-camera {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2d3b55;
    box-shadow: inset 0 0 0 1.5px #121a2c;
    z-index: 2;
}

.jt-laptop-screen {
    min-height: 268px;
    padding: 18px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background:
        radial-gradient(ellipse 90% 70% at 80% -10%, rgba(57, 96, 235, 0.22), transparent 55%),
        linear-gradient(165deg, #101a2e 0%, #0a1220 55%, #0d1830 100%);
}

.jt-laptop-base {
    position: relative;
    height: 14px;
    margin: 0 -18px;
    background: linear-gradient(180deg, #c8d0dc 0%, #9aa6b8 45%, #7f8aa0 100%);
    border-radius: 0 0 10px 10px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 8px 16px rgba(16, 24, 40, 0.18);
}

.jt-laptop-indent {
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 5px;
    border-radius: 0 0 6px 6px;
    background: linear-gradient(180deg, #6d788c, #556074);
}

/* Screen UI chrome */

.jt-ui-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.jt-ui-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.jt-ui-brand strong {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
}

.jt-ui-brand span:not(.jt-ui-logo) {
    display: block;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.48);
}

.jt-ui-logo {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 9px;
    font-weight: 800;
    color: #0a1220;
    background: linear-gradient(135deg, #7dd3fc, #3960eb);
}

.jt-ui-logo.is-crm {
    background: linear-gradient(135deg, #93c5fd, #194aa7);
    color: #fff;
}

.jt-ui-logo.is-rh {
    background: linear-gradient(135deg, #f9a8d4, #e91e63);
    color: #fff;
}

.jt-ui-logo.is-ali {
    background: linear-gradient(135deg, #5eead4, #0891b2);
    color: #042f2e;
}

.jt-ui-tabs {
    display: flex;
    gap: 3px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.jt-ui-tabs span {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
}

.jt-ui-tabs span.is-on {
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary);
}

.jt-ui-hero-card {
    border-radius: 14px;
    padding: 12px 12px 14px;
    color: #fff;
    background: linear-gradient(135deg, #fb822a 0%, #e35a12 100%);
    box-shadow: 0 10px 22px rgba(251, 130, 42, 0.28);
}

.jt-ui-hero-card.is-crm {
    background: linear-gradient(135deg, #3960eb 0%, #194aa7 100%);
    box-shadow: 0 10px 22px rgba(25, 74, 167, 0.3);
}

.jt-ui-hero-card.is-rh {
    background: linear-gradient(135deg, #f472b6 0%, #e91e63 100%);
    box-shadow: 0 10px 22px rgba(233, 30, 99, 0.28);
}

.jt-ui-hero-card.is-ali {
    background: linear-gradient(135deg, #2dd4bf 0%, #0f766e 100%);
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.28);
}

.jt-ui-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 6px;
    padding: 3px 8px;
    border-radius: 99px;
    background: rgba(0, 0, 0, 0.18);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.jt-ui-hero-card h3 {
    margin: 0 0 3px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

.jt-ui-hero-card p {
    margin: 0;
    font-size: 9.5px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.jt-ui-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.jt-ui-metric {
    padding: 8px 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.jt-ui-metric em {
    display: block;
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
}

.jt-ui-metric span {
    font-size: 8.5px;
    color: rgba(255, 255, 255, 0.5);
}

.jt-ui-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.jt-ui-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
}

html.jt-sistemas-js .jt-ui-row {
    opacity: 0;
    transform: translateX(8px);
    animation: jtItemIn 0.45s ease forwards;
}

html.jt-sistemas-js .jt-ui-row:nth-child(1) { animation-delay: 0.05s; }
html.jt-sistemas-js .jt-ui-row:nth-child(2) { animation-delay: 0.12s; }
html.jt-sistemas-js .jt-ui-row:nth-child(3) { animation-delay: 0.19s; }
html.jt-sistemas-js .jt-ui-row:nth-child(4) { animation-delay: 0.26s; }

.jt-bullet {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.bullet-blue { background: #60a5fa; }
.bullet-orange { background: #fb822a; }
.bullet-green { background: #4cb050; }
.bullet-teal { background: #2dd4bf; }
.bullet-pink { background: #f472b6; }

.jt-arrow {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
}

/*----------------------------------------------------
    Torre de Control — UI real (mini ops)
-----------------------------------------------------*/

.jt-showcase[data-system="torre"] {
    max-width: 720px;
    padding: 5.5rem 4.25rem 3rem;
}

.jt-showcase[data-system="torre"] .jt-laptop-wide { z-index: 7; }

.jt-showcase[data-system="torre"] .jt-laptop-screen.has-real-ui {
    height: 340px;
    min-height: 340px;
    max-height: 340px;
}

.jt-showcase[data-system="torre"] .jt-floater-kpi {
    top: -6%;
    left: -8%;
}

.jt-showcase[data-system="torre"] .jt-floater-status {
    top: -2%;
    right: -8%;
}

.jt-showcase[data-system="torre"] .jt-floater-chip {
    bottom: 10%;
    left: -10%;
}

.jt-showcase[data-system="torre"] .jt-floater-mini {
    bottom: -6%;
    right: -8%;
}

.tc-view-switch {
    position: absolute;
    top: 0.35rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9;
    display: flex;
    gap: 4px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(19, 48, 102, 0.12);
    backdrop-filter: blur(8px);
}

.tc-view-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
}

.tc-view-btn:hover { color: #3b6ef5; }

.tc-view-btn.is-active {
    background: #1e3a8a;
    color: #fff;
}

.jt-floater[data-tc-floater] {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

.jt-floater[data-tc-floater].is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px) scale(0.96);
}

.tc-app {
    --tc-bg: #eef3f9;
    --tc-panel: #ffffff;
    --tc-text: #0f172a;
    --tc-muted: #64748b;
    --tc-border: #e2e8f0;
    --tc-soft: #f8fafc;
    --tc-accent: #3b6ef5;
    --tc-side: #ffffff;
    height: 100%;
    min-height: 340px;
    max-height: 340px;
    display: grid;
    grid-template-columns: 108px 1fr;
    overflow: hidden;
    background: var(--tc-bg);
    color: var(--tc-text);
    font-family: var(--font-primary);
}

.tc-app.is-dark {
    --tc-bg: #0b1220;
    --tc-panel: #152033;
    --tc-text: #e2e8f0;
    --tc-muted: #94a3b8;
    --tc-border: #243247;
    --tc-soft: #111827;
    --tc-accent: #60a5fa;
    --tc-side: #0f172a;
}

.jt-laptop-screen.has-real-ui:has(.tc-app.is-dark) {
    background: #0b1220;
}

.tc-side {
    display: flex;
    flex-direction: column;
    background: var(--tc-side);
    border-right: 1px solid var(--tc-border);
    min-width: 0;
    overflow: hidden;
}

.tc-brand {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 7px 6px 6px;
    border-bottom: 1px solid var(--tc-border);
}

.tc-brand i {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background:
        #fff url("../img/sistemas/torre/logo-torre.png") center / 78% no-repeat;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
    flex-shrink: 0;
}

.tc-brand strong {
    display: block;
    font-size: 6.5px;
    line-height: 1.1;
}

.tc-brand span {
    display: block;
    font-size: 5px;
    color: var(--tc-muted);
}

.tc-nav {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tc-nav button {
    appearance: none;
    border: 0;
    background: transparent;
    text-align: left;
    font-family: inherit;
    font-size: 6px;
    font-weight: 700;
    color: var(--tc-muted);
    padding: 4px 5px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tc-nav button:disabled {
    opacity: 0.55;
    cursor: default;
}

.tc-nav button.is-on {
    background: var(--tc-accent);
    color: #fff;
}

.tc-side-foot {
    padding: 5px;
    border-top: 1px solid var(--tc-border);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tc-user {
    display: flex;
    gap: 4px;
    align-items: center;
}

.tc-user b {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 5.5px;
    background: var(--tc-accent);
    color: #fff;
    flex-shrink: 0;
}

.tc-user strong {
    display: block;
    font-size: 5.8px;
    line-height: 1.1;
}

.tc-user span {
    display: block;
    font-size: 5px;
    color: var(--tc-muted);
}

.tc-theme {
    appearance: none;
    border: 1px solid var(--tc-border);
    background: var(--tc-soft);
    border-radius: 8px;
    padding: 4px 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    cursor: pointer;
    font-family: inherit;
    color: var(--tc-text);
}

.tc-theme-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.tc-theme-copy strong {
    font-size: 6px;
    line-height: 1.1;
}

.tc-theme-copy em {
    font-style: normal;
    font-size: 5px;
    color: var(--tc-muted);
}

.tc-theme-switch {
    width: 22px;
    height: 12px;
    border-radius: 99px;
    background: #cbd5e1;
    position: relative;
    flex-shrink: 0;
}

.tc-theme-switch i {
    position: absolute;
    top: 1.5px;
    left: 1.5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fbbf24;
    transition: transform 0.25s ease, background 0.25s ease;
}

.tc-app.is-dark .tc-theme-switch {
    background: #334155;
}

.tc-app.is-dark .tc-theme-switch i {
    transform: translateX(10px);
    background: #60a5fa;
}

.tc-logout {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--tc-muted);
    font-family: inherit;
    font-size: 5.8px;
    font-weight: 700;
    text-align: left;
    padding: 2px 2px;
    cursor: pointer;
}

.tc-main {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tc-panels {
    display: grid;
    height: 100%;
    overflow: hidden;
}

.tc-view {
    grid-area: 1 / 1;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 7px 8px 6px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(12px);
    transition: opacity 0.4s ease, transform 0.45s ease, visibility 0.4s ease;
    z-index: 0;
}

.tc-view[hidden] { display: none !important; }

.tc-view.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    z-index: 2;
}

.tc-view.is-leaving {
    display: flex !important;
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    transform: translateX(-10px);
    z-index: 1;
}

.tc-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    flex-shrink: 0;
}

.tc-top h3 {
    margin: 0;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.tc-top p {
    margin: 2px 0 0;
    font-size: 6px;
    color: var(--tc-muted);
}

.tc-ico {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    background: var(--tc-accent);
    display: inline-block;
}

.tc-live {
    font-style: normal;
    font-size: 5.5px;
    font-weight: 800;
    color: #16a34a;
    background: rgba(22, 163, 74, 0.12);
    padding: 2px 5px;
    border-radius: 99px;
}

.tc-btn {
    appearance: none;
    border: 0;
    background: var(--tc-accent);
    color: #fff;
    font-family: inherit;
    font-size: 6.5px;
    font-weight: 700;
    padding: 5px 8px;
    border-radius: 7px;
    cursor: pointer;
    white-space: nowrap;
}

.tc-btn.is-block {
    width: 100%;
    margin-top: 4px;
}

.tc-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 6px;
    flex-shrink: 0;
}

.tc-kpis div {
    background: var(--tc-panel);
    border: 1px solid var(--tc-border);
    border-radius: 8px;
    padding: 5px 5px 4px;
}

.tc-kpis span {
    display: block;
    font-size: 4.8px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tc-muted);
}

.tc-kpis strong {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.tc-charts {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-rows: 1fr 1fr;
    gap: 5px;
}

.tc-card {
    background: var(--tc-panel);
    border: 1px solid var(--tc-border);
    border-radius: 9px;
    padding: 5px 6px;
    min-height: 0;
    overflow: hidden;
}

.tc-card h4 {
    margin: 0 0 4px;
    font-size: 7px;
    font-weight: 800;
}

.tc-vbars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 54px;
    padding: 0 2px;
}

.tc-vbars i {
    flex: 1;
    height: var(--h);
    border-radius: 3px 3px 1px 1px;
    background: var(--c);
    display: block;
}

.tc-vlabs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2px;
    margin-top: 3px;
}

.tc-vlabs span {
    font-size: 4.2px;
    color: var(--tc-muted);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
}

.tc-donut {
    width: 54px;
    height: 54px;
    margin: 2px auto 4px;
    border-radius: 50%;
    background: conic-gradient(#3b6ef5 0 82%, #7c3aed 82% 100%);
    -webkit-mask: radial-gradient(circle, transparent 52%, #000 53%);
    mask: radial-gradient(circle, transparent 52%, #000 53%);
}

.tc-legend {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.tc-legend span {
    font-size: 5px;
    color: var(--tc-muted);
    position: relative;
    padding-left: 8px;
}

.tc-legend span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    transform: translateY(-50%);
    background: #3b6ef5;
}

.tc-legend span.is-purple::before { background: #7c3aed; }

.tc-hbars {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tc-hbars div {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 4px;
    align-items: center;
}

.tc-hbars em {
    font-style: normal;
    font-size: 5.2px;
    color: var(--tc-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tc-hbars b {
    display: block;
    height: 6px;
    border-radius: 99px;
    background: #3b6ef5;
}

.tc-hbars b.is-yel { background: #f59e0b; }
.tc-hbars.is-green b { background: #22c55e; }

/* Chat ALI */
.tc-chat {
    flex: 1;
    min-height: 0;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 4px 2px 6px;
    background:
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(59, 110, 245, 0.12), transparent 60%);
}

.tc-msg {
    max-width: 78%;
    padding: 5px 7px;
    border-radius: 10px;
    font-size: 6.5px;
    line-height: 1.35;
}

.tc-msg.is-user {
    align-self: flex-end;
    background: var(--tc-accent);
    color: #fff;
    border-bottom-right-radius: 3px;
}

.tc-msg.is-bot {
    align-self: flex-start;
    background: var(--tc-panel);
    border: 1px solid var(--tc-border);
    color: var(--tc-text);
    border-bottom-left-radius: 3px;
}

.tc-msg.is-thinking {
    align-self: flex-start;
    background: var(--tc-panel);
    border: 1px solid var(--tc-border);
    color: var(--tc-muted);
    font-style: italic;
}

.tc-chat-input {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 6px;
    border-radius: 10px;
    background: var(--tc-panel);
    border: 1px solid var(--tc-border);
}

.tc-chat-input span {
    flex: 1;
    font-size: 6.5px;
    color: var(--tc-muted);
}

.tc-send {
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 5px;
    background: var(--tc-accent);
    color: #fff;
    font-size: 8px;
    cursor: pointer;
}

/* Operativo */
.tc-op-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    margin-bottom: 6px;
    flex-shrink: 0;
}

.tc-op-kpis div {
    background: var(--tc-panel);
    border: 1px solid var(--tc-border);
    border-top-width: 2px;
    border-radius: 8px;
    padding: 5px 6px;
}

.tc-op-kpis div.is-orange { border-top-color: #f59e0b; }
.tc-op-kpis div.is-blue { border-top-color: #3b6ef5; }
.tc-op-kpis div.is-cyan { border-top-color: #38bdf8; }
.tc-op-kpis div.is-red { border-top-color: #ef4444; }

.tc-op-kpis span {
    display: block;
    font-size: 5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tc-muted);
}

.tc-op-kpis strong {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.tc-table-wrap {
    flex: 1;
    min-height: 0;
    overflow: auto;
    background: var(--tc-panel);
    border: 1px solid var(--tc-border);
    border-radius: 9px;
}

.tc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 5.8px;
}

.tc-table th,
.tc-table td {
    padding: 5px 6px;
    text-align: left;
    border-bottom: 1px solid var(--tc-border);
    vertical-align: top;
}

.tc-table th {
    font-size: 5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tc-muted);
    background: var(--tc-soft);
    position: sticky;
    top: 0;
}

.tc-table td b {
    display: block;
    font-size: 6px;
}

.tc-table td small {
    display: block;
    margin-top: 1px;
    color: var(--tc-muted);
    font-size: 5px;
}

.tc-pill {
    display: inline-flex;
    font-style: normal;
    font-size: 5px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 99px;
    white-space: nowrap;
}

.tc-pill.is-yel { background: rgba(245, 158, 11, 0.16); color: #b45309; }
.tc-pill.is-blue { background: rgba(59, 110, 245, 0.14); color: #1d4ed8; }
.tc-pill.is-sky { background: rgba(56, 189, 248, 0.16); color: #0369a1; }
.tc-pill.is-violet { background: rgba(124, 58, 237, 0.14); color: #6d28d9; }

.tc-app.is-dark .tc-pill.is-yel { color: #fbbf24; }
.tc-app.is-dark .tc-pill.is-blue { color: #93c5fd; }
.tc-app.is-dark .tc-pill.is-sky { color: #7dd3fc; }
.tc-app.is-dark .tc-pill.is-violet { color: #c4b5fd; }

/* Tickets */
.tc-tickets {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 6px;
    overflow: hidden;
}

.tc-new,
.tc-feed {
    background: var(--tc-panel);
    border: 1px solid var(--tc-border);
    border-radius: 9px;
    padding: 6px;
    min-height: 0;
    overflow: auto;
}

.tc-new h4 {
    margin: 0 0 5px;
    font-size: 8px;
}

.tc-new label {
    display: block;
    margin-bottom: 4px;
    font-size: 5.5px;
    font-weight: 700;
    color: var(--tc-muted);
}

.tc-new input,
.tc-new select,
.tc-new textarea {
    display: block;
    width: 100%;
    margin-top: 2px;
    box-sizing: border-box;
    border: 1px solid var(--tc-border);
    background: var(--tc-soft);
    color: var(--tc-text);
    border-radius: 6px;
    padding: 4px 5px;
    font-family: inherit;
    font-size: 6px;
}

.tc-new-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.tc-assign {
    display: flex;
    gap: 3px;
    margin: 4px 0;
}

.tc-assign span {
    flex: 1;
    text-align: center;
    font-size: 5.5px;
    font-weight: 700;
    padding: 4px 2px;
    border-radius: 6px;
    background: var(--tc-soft);
    color: var(--tc-muted);
    border: 1px solid var(--tc-border);
}

.tc-assign span.is-on {
    background: var(--tc-accent);
    color: #fff;
    border-color: var(--tc-accent);
}

.tc-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-bottom: 4px;
}

.tc-filters span {
    font-size: 5.2px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 99px;
    background: var(--tc-soft);
    color: var(--tc-muted);
    border: 1px solid var(--tc-border);
}

.tc-filters span.is-on {
    background: var(--tc-accent);
    color: #fff;
    border-color: var(--tc-accent);
}

.tc-sync {
    margin: 0 0 5px;
    font-size: 5.5px;
    font-weight: 700;
    color: #16a34a;
}

.tc-ticket {
    padding: 6px;
    border-radius: 8px;
    border: 1px solid var(--tc-border);
    background: var(--tc-soft);
    margin-bottom: 5px;
}

.tc-ticket header {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-bottom: 3px;
}

.tc-ticket header > em:first-child {
    font-style: normal;
    font-size: 5.5px;
    font-weight: 800;
    color: var(--tc-muted);
}

.tc-ticket h5 {
    margin: 0 0 3px;
    font-size: 7.5px;
}

.tc-ticket p {
    margin: 0 0 4px;
    font-size: 5.8px;
    line-height: 1.3;
    color: var(--tc-muted);
}

.tc-ticket p b {
    display: block;
    margin-bottom: 1px;
    font-size: 5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tc-text);
}

.tc-ticket footer {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    font-size: 5px;
    color: var(--tc-muted);
}

@media (prefers-reduced-motion: reduce) {
    .tc-view,
    .tc-view.is-active,
    .tc-view.is-leaving,
    .jt-floater[data-tc-floater],
    .tc-view-btn,
    .tc-theme-switch i {
        transition: none !important;
    }
}

/*----------------------------------------------------
    Orbit Work Pulse — multiplataforma (desk + phone)
-----------------------------------------------------*/

.jt-showcase[data-system="pulse"] {
    max-width: 780px;
    padding: 5.5rem 3.5rem 3rem;
}

.jt-showcase[data-system="pulse"] .op-laptop { z-index: 7; }

.jt-showcase[data-system="pulse"] .jt-laptop-screen.has-real-ui {
    height: 300px;
    min-height: 300px;
    max-height: 300px;
}

.jt-showcase[data-system="pulse"] .jt-floater-kpi {
    top: -6%;
    left: -6%;
}

.jt-showcase[data-system="pulse"] .jt-floater-status {
    top: -2%;
    right: -4%;
}

.jt-showcase[data-system="pulse"] .jt-floater-chip {
    bottom: 12%;
    left: -8%;
}

.jt-showcase[data-system="pulse"] .jt-floater-mini {
    bottom: -4%;
    right: 18%;
}

.op-view-switch {
    position: absolute;
    top: 0.35rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9;
    display: flex;
    gap: 4px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(19, 48, 102, 0.12);
    backdrop-filter: blur(8px);
}

.op-view-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
}

.op-view-btn:hover { color: #417fe4; }

.op-view-btn.is-active {
    background: linear-gradient(135deg, #651bbb, #417fe4);
    color: #fff;
}

.jt-floater[data-op-floater] {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

.jt-floater[data-op-floater].is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px) scale(0.96);
}

.op-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.op-ic {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.op-devices {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    width: min(100%, 620px);
    margin: 0 auto;
}

.op-devices .op-laptop {
    width: min(100%, 440px);
    flex: 1 1 auto;
}

.op-phone {
    position: relative;
    z-index: 8;
    flex: 0 0 auto;
    width: 118px;
    filter: drop-shadow(0 18px 28px rgba(16, 24, 40, 0.32));
}

.op-phone-shell {
    background: #0b0f18;
    border: 2px solid #1f2937;
    border-radius: 18px;
    padding: 8px 5px 6px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.op-phone-notch {
    display: block;
    width: 36px;
    height: 4px;
    margin: 0 auto 5px;
    border-radius: 99px;
    background: #111827;
}

.op-phone-screen {
    height: 220px;
    border-radius: 10px;
    overflow: hidden;
    background: #070a12;
}

/* ---------- Desktop (light) ---------- */

.op-desk {
    height: 100%;
    min-height: 300px;
    max-height: 300px;
    display: grid;
    grid-template-columns: 86px 1fr;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 55% at 75% 100%, rgba(124, 58, 237, 0.14), transparent 55%),
        radial-gradient(ellipse 60% 40% at 10% 0%, rgba(209, 231, 255, 0.55), transparent 60%),
        linear-gradient(180deg, #eef6f3 0%, #e9eefb 55%, #e4e9fa 100%);
    color: #0f172a;
    font-family: var(--font-primary);
}

.op-side {
    background: rgba(255, 255, 255, 0.96);
    border-right: 1px solid #e7ebf3;
    padding: 6px 5px 5px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
}

.op-brand {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.op-brand-mark {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #fff url("../img/sistemas/orbit/logo-orbit.png") center / 92% no-repeat;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.op-brand strong {
    display: block;
    font-family: 'Lora', Georgia, serif;
    font-size: 6px;
    font-weight: 600;
    line-height: 1.15;
    color: #1e293b;
}

.op-brand strong em {
    display: block;
    font-style: normal;
    font-weight: 800;
    font-size: 6.6px;
    color: #0f172a;
}

.op-brand.is-center { justify-content: center; }

.op-brand.is-center strong {
    font-size: 8.2px;
    font-weight: 700;
    color: #0f172a;
}

.op-user {
    display: flex;
    gap: 4px;
    align-items: center;
    background: #fff;
    border: 1px solid #e7ebf3;
    border-radius: 8px;
    padding: 4px;
}

.op-user b {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 5px;
    font-weight: 800;
    background: #dbeafe;
    color: #1d4ed8;
    flex-shrink: 0;
}

.op-user strong {
    display: block;
    font-size: 5.2px;
    font-weight: 700;
    line-height: 1.2;
    color: #0f172a;
}

.op-user span {
    display: block;
    font-size: 4.2px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #94a3b8;
}

.op-side-label {
    margin: 2px 0 0;
    font-size: 4.5px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #a3adc2;
}

.op-nav {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-height: 0;
}

.op-nav button {
    appearance: none;
    border: 0;
    background: transparent;
    text-align: left;
    font-family: inherit;
    font-size: 5.6px;
    font-weight: 700;
    color: #64748b;
    padding: 3.5px 4px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 3.5px;
}

.op-nav-ico {
    width: 11px;
    height: 11px;
    border-radius: 5px;
    display: grid;
    place-items: center;
    background: #eef1f6;
    color: #94a3b8;
    flex-shrink: 0;
}

.op-nav-ico .op-ic { width: 6px; height: 6px; }

.op-nav button.is-on {
    background: #dde9ff;
    color: #1d4ed8;
    box-shadow: inset 2px 0 0 #2563eb;
}

.op-nav button.is-on .op-nav-ico {
    background: #2563eb;
    color: #fff;
}

.op-side-foot {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.op-foot-btn {
    appearance: none;
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    font-family: inherit;
    font-size: 3.8px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    padding: 2px 0;
}

.op-foot-btn .op-ic { width: 7px; height: 7px; }

.op-foot-btn.is-out { color: #dc2626; }

.op-desk-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.op-desk-top,
.op-mob-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 5px 7px 3px;
    flex-shrink: 0;
}

.op-ico {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid #e7ebf3;
    color: #64748b;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.op-ico .op-ic { width: 7px; height: 7px; }

.op-desk-panels,
.op-mob-panels {
    flex: 1;
    min-height: 0;
    display: grid;
    overflow: hidden;
}

.op-panel {
    grid-area: 1 / 1;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 2px 8px 6px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(10px);
    transition: opacity 0.4s ease, transform 0.45s ease, visibility 0.4s ease;
    z-index: 0;
}

.op-panel[hidden] { display: none !important; }

.op-panel.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    z-index: 2;
}

.op-panel.is-leaving {
    display: flex !important;
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    transform: translateX(-8px);
    z-index: 1;
}

.op-date {
    flex-shrink: 0;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    border: 1px solid #e7ebf3;
    border-radius: 99px;
    padding: 3.5px 9px;
    font-size: 5.3px;
    font-weight: 700;
    color: #334155;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    box-sizing: border-box;
}

.op-date > .op-ic { width: 6px; height: 6px; color: #2563eb; }

.op-date-nav { justify-content: space-between; padding: 3px; gap: 3px; }

.op-date-nav span {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.op-date-arrow {
    appearance: none;
    border: 0;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    color: #475569;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
    flex-shrink: 0;
    cursor: pointer;
}

.op-date-arrow .op-ic { width: 5px; height: 5px; }

.op-checar {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 6px;
    align-items: center;
}

.op-checar.is-small {
    grid-template-columns: 1fr;
    flex: 0 0 auto;
    justify-items: center;
}

.op-clock {
    position: relative;
    width: 104px;
    height: 104px;
    margin: 0 auto;
}

.op-clock.is-sm {
    width: 78px;
    height: 78px;
}

.op-clock-face {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: repeating-conic-gradient(from -2deg, #a9c3e8 0 2.2deg, transparent 2.2deg 15deg);
    -webkit-mask: radial-gradient(circle, transparent 69%, #000 70%);
    mask: radial-gradient(circle, transparent 69%, #000 70%);
    opacity: 0.85;
}

.op-clock-accent {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: repeating-conic-gradient(from -34deg, #2f6fe0 0 4deg, transparent 4deg 13deg);
    -webkit-mask: radial-gradient(circle, transparent 69%, #000 70%);
    mask: radial-gradient(circle, transparent 69%, #000 70%);
    clip-path: polygon(50% 50%, 14% 0%, 86% 0%);
}

.op-clock-hand {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2px;
    height: 36%;
    background: #2f6fe0;
    border-radius: 2px;
    transform-origin: top center;
    transform: translateX(-50%) rotate(224deg);
}

.op-clock-hand::after {
    content: '';
    position: absolute;
    bottom: -2.5px;
    left: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #2f6fe0;
    transform: translateX(-50%);
}

.op-clock-core {
    position: absolute;
    inset: 16%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.op-clock-core em {
    font-style: normal;
    font-size: 4.8px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #8a94a6;
}

.op-clock-core strong {
    font-family: 'Lora', Georgia, serif;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.05;
    color: #0f172a;
    margin-top: 1px;
}

.op-clock-core span {
    font-size: 5.6px;
    font-weight: 700;
    color: #8a94a6;
    margin-top: 1px;
}

.op-empty {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    border: 1px solid #e7ebf3;
    border-radius: 10px;
    padding: 6px 7px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    box-sizing: border-box;
}

.op-empty-ico {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: #e8f0ff;
    color: #2563eb;
}

.op-empty-ico .op-ic { width: 8px; height: 8px; }

.op-empty-text { min-width: 0; flex: 1; }

.op-empty b {
    display: block;
    font-size: 6px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1px;
}

.op-empty p {
    margin: 0;
    font-size: 4.8px;
    font-weight: 600;
    color: #8a94a6;
    line-height: 1.25;
}

.op-empty-art {
    position: relative;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: #a9c3f0;
}

.op-empty-art > .op-ic { width: 15px; height: 15px; }

.op-empty-art i {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 0 0 1.5px #fff;
}

.op-empty-art i .op-ic { width: 5px; height: 5px; }

.op-empty.is-foot {
    flex-shrink: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.op-empty.is-foot p {
    display: flex;
    align-items: flex-start;
    gap: 3px;
}

.op-empty.is-foot p .op-ic {
    width: 6px;
    height: 6px;
    margin-top: 0.5px;
    flex-shrink: 0;
}

.op-foot-note { opacity: 0.85; }

.op-btn {
    appearance: none;
    border: 0;
    background: linear-gradient(135deg, #3b6ef5, #2f6fe0);
    color: #fff;
    font-family: inherit;
    font-size: 6.3px;
    font-weight: 700;
    padding: 6px 11px;
    border-radius: 9px;
    cursor: pointer;
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 6px 14px rgba(47, 111, 224, 0.28);
}

.op-btn .op-ic { width: 6px; height: 6px; }

.op-btn.is-soft {
    background: #e7ebf3;
    color: #a3adc2;
    box-shadow: none;
}

.op-btn:disabled { cursor: default; opacity: 0.9; }

.op-meal {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    border: 1px solid #e7ebf3;
    border-radius: 10px;
    padding: 5px 7px;
    box-sizing: border-box;
}

.op-meal-ico {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: #dbe7ff;
    color: #2563eb;
}

.op-meal-ico .op-ic { width: 8px; height: 8px; }

.op-meal-info { flex: 1; min-width: 0; }

.op-meal b {
    display: block;
    font-size: 4.8px;
    font-weight: 700;
    color: #64748b;
}

.op-meal strong {
    display: block;
    margin-top: 1px;
    font-size: 7.6px;
    font-weight: 700;
    font-family: 'Lora', Georgia, serif;
    color: #1d4ed8;
}

.op-meal span {
    display: block;
    font-size: 4.4px;
    font-weight: 600;
    color: #a3adc2;
}

.op-meal-badges {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.op-meal-badges i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid #c7d6f5;
    color: #2563eb;
}

.op-meal-badges i.is-accent {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.op-meal-badges .op-ic { width: 6px; height: 6px; }

.op-meal-acts {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.op-meal-acts .op-btn { width: 100%; justify-content: center; }

.op-hist {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    column-count: 2;
    column-gap: 9px;
}

.op-hist-day {
    break-inside: avoid;
    position: relative;
    margin-bottom: 6px;
    padding-left: 26px;
}

.op-hist-day::before {
    content: '';
    position: absolute;
    left: 21px;
    top: 9px;
    bottom: 12px;
    width: 1px;
    background: #cbd5e1;
}

.op-hist-day h4 {
    margin: 0 0 3px -26px;
    font-size: 6px;
    font-weight: 800;
    color: #1e293b;
}

.op-log {
    position: relative;
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 3px;
}

.op-log-time {
    position: absolute;
    left: -26px;
    top: 0;
    width: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 5px;
    font-weight: 800;
    color: #334155;
    line-height: 1.1;
}

.op-log-time i { font-style: normal; font-size: 3.6px; font-weight: 700; color: #94a3b8; }

.op-log-dot {
    position: absolute;
    left: -9px;
    top: 3px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    border: 1.4px solid #2f6fe0;
    z-index: 1;
}

.op-log-pill {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 2.5px;
    padding: 2.5px 4px;
    border-radius: 7px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    min-width: 0;
    color: #475569;
}

.op-log.is-food .op-log-pill { border-color: #a7e7bf; background: #f0fdf4; }
.op-log.is-food .op-log-dot { border-color: #22b159; }

.op-tag {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    font-style: normal;
    font-size: 3.9px;
    font-weight: 700;
    color: inherit;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 99px;
    padding: 1.2px 3px;
    white-space: nowrap;
}

.op-tag .op-ic { width: 3.6px; height: 3.6px; }

.op-tag.is-trunc {
    max-width: 17px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.op-log-pill b {
    margin-left: auto;
    font-size: 5.2px;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    padding-left: 3px;
}

.op-total {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin: 1px 0 0 -26px;
    font-style: normal;
    font-size: 4.8px;
    font-weight: 800;
    color: #1d4ed8;
    background: #dbeafe;
    padding: 2px 6px;
    border-radius: 99px;
}

.op-total .op-ic { width: 4px; height: 4px; }

.op-profile {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    text-align: center;
    padding-top: 2px;
}

.op-avatar-wrap {
    position: relative;
    width: 38px;
    height: 38px;
    margin: 0 auto 4px;
}

.op-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1.5px solid #2f6fe0;
    color: #1d4ed8;
    font-family: 'Lora', Georgia, serif;
    font-size: 11px;
    font-weight: 700;
}

.op-avatar-cam {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 0 0 1.5px #fff;
}

.op-avatar-cam .op-ic { width: 5.5px; height: 5.5px; }

.op-profile h3 {
    margin: 0;
    font-family: 'Lora', Georgia, serif;
    font-size: 9.5px;
    font-weight: 700;
    color: #0f172a;
}

.op-profile > p {
    margin: 1px 0 5px;
    font-size: 5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #94a3b8;
}

.op-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    text-align: left;
}

.op-cards > div,
.op-card {
    background: #fff;
    border: 1px solid #e7ebf3;
    border-radius: 9px;
    padding: 5px 6px;
    position: relative;
}

.op-cards h4,
.op-card h4 {
    display: flex;
    align-items: center;
    gap: 2.5px;
    margin: 0 0 3px;
    font-size: 5.6px;
    font-weight: 800;
    color: #334155;
}

.op-card-ico { color: #2563eb; display: inline-flex; flex-shrink: 0; }

.op-card-ico .op-ic,
.op-card-badge .op-ic { width: 6px; height: 6px; }

.op-card-badge {
    margin-left: auto;
    width: 11px;
    height: 11px;
    border-radius: 4px;
    display: grid;
    place-items: center;
    background: #2563eb;
    color: #fff;
    flex-shrink: 0;
}

.op-cards ul,
.op-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.op-cards li,
.op-card li {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    padding: 2px 0;
    border-top: 1px solid #f1f5f9;
    font-size: 4.8px;
}

.op-cards li:first-child,
.op-card li:first-child { border-top: 0; }

.op-cards li span,
.op-card li span { color: #94a3b8; font-weight: 600; }

.op-cards li b,
.op-card li b { color: #0f172a; font-weight: 700; }

/* ---------- Mobile (dark) ---------- */

.op-mob {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #0c1222 0%, #080b14 100%);
    color: #e2e8f0;
    overflow: hidden;
    font-family: var(--font-primary);
}

.op-mob .op-brand strong,
.op-mob .op-brand strong em { color: #f8fafc; }

.op-mob .op-ico {
    background: #111827;
    border-color: #1f2937;
    color: #94a3b8;
}

.op-mob .op-date {
    background: #111827;
    border-color: #1f2937;
    color: #e2e8f0;
}

.op-mob .op-date > .op-ic { color: #60a5fa; }

.op-mob .op-date-arrow {
    background: #111827;
    color: #cbd5e1;
    box-shadow: none;
    border: 1px solid #1f2937;
}

.op-mob .op-clock-face {
    background: repeating-conic-gradient(from -2deg, rgba(96, 165, 250, 0.3) 0 2.2deg, transparent 2.2deg 15deg);
}

.op-mob .op-clock-accent {
    background: repeating-conic-gradient(from -34deg, #4e8dfb 0 4deg, transparent 4deg 13deg);
}

.op-mob .op-clock-hand { background: #4e8dfb; }
.op-mob .op-clock-hand::after { background: #0c1222; border-color: #4e8dfb; }

.op-mob .op-clock-core em,
.op-mob .op-clock-core span { color: #8794ab; }

.op-mob .op-clock-core strong { color: #fff; }

.op-mob .op-empty,
.op-mob .op-meal,
.op-mob .op-card {
    background: #121a2c;
    border-color: #202a40;
    color: #e2e8f0;
}

.op-mob .op-empty-ico { background: rgba(59, 130, 246, 0.18); color: #60a5fa; }
.op-mob .op-empty b { color: #f1f5f9; }
.op-mob .op-empty p,
.op-mob .op-meal span { color: #8794ab; }

.op-mob .op-empty-art { color: #4f6690; }
.op-mob .op-empty-art i { box-shadow: 0 0 0 1.5px #0c1222; }

.op-mob .op-meal-ico { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.op-mob .op-meal strong { color: #7eb0ff; }
.op-mob .op-meal-badges i { background: #121a2c; border-color: #27344c; color: #60a5fa; }
.op-mob .op-meal-badges i.is-accent { background: #2f6fe0; border-color: #2f6fe0; color: #fff; }

.op-mob .op-btn.is-soft {
    background: #1b2437;
    color: #5b6a85;
}

.op-mob .op-hist-day::before { background: #27324a; }
.op-mob .op-hist-day h4 { color: #e2e8f0; }
.op-mob .op-log-time { color: #e2e8f0; }
.op-mob .op-log-time i { color: #64748b; }

.op-mob .op-log-pill {
    background: rgba(37, 99, 235, 0.14);
    border-color: #2a4f9c;
    color: #c7d2e3;
}

.op-mob .op-log-dot { background: #0c1222; border-color: #4e8dfb; }

.op-mob .op-log.is-food .op-log-pill {
    background: rgba(34, 197, 94, 0.12);
    border-color: #1f7a45;
}

.op-mob .op-log.is-food .op-log-dot { border-color: #34d680; }

.op-mob .op-tag { background: rgba(255, 255, 255, 0.07); }
.op-mob .op-log-pill b { color: #f1f5f9; }

.op-mob .op-total {
    background: rgba(37, 99, 235, 0.22);
    color: #8fc0ff;
}

.op-mob .op-avatar {
    background: #111827;
    border-color: #4e8dfb;
    color: #8fc0ff;
}

.op-mob .op-avatar-cam { box-shadow: 0 0 0 1.5px #0c1222; }

.op-mob .op-profile h3 { color: #fff; }
.op-mob .op-profile > p { color: #8794ab; }

.op-mob .op-card h4 { color: #e2e8f0; }
.op-mob .op-card-ico { color: #60a5fa; }
.op-mob .op-card-badge { box-shadow: 0 0 0 1.5px #121a2c; }
.op-mob .op-card li { border-top-color: #212c42; }
.op-mob .op-card li span { color: #8794ab; }
.op-mob .op-card li b { color: #f1f5f9; }

.op-hist.is-mob {
    display: block;
    overflow: hidden;
    column-count: 1;
}

.op-mob-nav {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    padding: 4px 3px 5px;
    background: rgba(8, 12, 22, 0.95);
    border-top: 1px solid #1f2937;
}

.op-mob-nav button {
    appearance: none;
    border: 1.5px solid transparent;
    background: transparent;
    color: #8794ab;
    font-family: inherit;
    font-size: 4.2px;
    font-weight: 700;
    padding: 3px 1px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.op-mob-nav button .op-ic { width: 9px; height: 9px; }

.op-mob-nav button.is-on {
    color: #8fc0ff;
    border-color: #3b82f6;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.45);
}

.op-mob .op-panel { padding: 2px 6px 4px; }

.op-mob .op-clock { width: 86px; height: 86px; }
.op-mob .op-clock.is-sm { width: 70px; height: 70px; }
.op-mob .op-clock-core strong { font-size: 11.5px; }

@media (prefers-reduced-motion: reduce) {
    .op-panel,
    .op-panel.is-active,
    .op-panel.is-leaving,
    .jt-floater[data-op-floater],
    .op-view-btn {
        transition: none !important;
    }
}

/*----------------------------------------------------
    ALi Onboarding — UI real (mini ops)
-----------------------------------------------------*/

.jt-showcase[data-system="ali"] {
    max-width: 720px;
    padding: 5.5rem 4.25rem 3rem;
}

.jt-showcase[data-system="ali"] .jt-laptop-wide { z-index: 7; }

.jt-showcase[data-system="ali"] .jt-laptop-screen.has-real-ui {
    height: 340px;
    min-height: 340px;
    max-height: 340px;
}

.jt-showcase[data-system="ali"] .jt-floater-kpi {
    top: -6%;
    left: -8%;
}

.jt-showcase[data-system="ali"] .jt-floater-status {
    top: -2%;
    right: -8%;
}

.jt-showcase[data-system="ali"] .jt-floater-chip {
    bottom: 10%;
    left: -10%;
}

.jt-showcase[data-system="ali"] .jt-floater-mini {
    bottom: -6%;
    right: -8%;
}

.ao-view-switch {
    position: absolute;
    top: 0.35rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9;
    display: flex;
    gap: 4px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(19, 48, 102, 0.12);
    backdrop-filter: blur(8px);
}

.ao-view-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
}

.ao-view-btn:hover { color: #2563eb; }

.ao-view-btn.is-active {
    background: #1d4ed8;
    color: #fff;
}

.jt-floater[data-ao-floater] {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

.jt-floater[data-ao-floater].is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px) scale(0.96);
}

.ao-app {
    height: 100%;
    min-height: 340px;
    max-height: 340px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f4f7fe;
    color: #0f172a;
    font-family: var(--font-primary);
}

.ao-topbar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 8px;
    background: #0b1220;
    color: #e2e8f0;
}

.ao-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.ao-brand i {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background:
        #fff url("../img/sistemas/ali/logo-ali-mark.png") center / 88% no-repeat;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
    flex-shrink: 0;
}

.ao-brand strong {
    font-size: 8px;
    font-weight: 700;
    color: #e0f2fe;
    letter-spacing: 0.01em;
}

.ao-brand em {
    font-style: normal;
    font-weight: 600;
    color: #7dd3fc;
}

.ao-top-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ao-top-actions span {
    font-size: 6px;
    color: #94a3b8;
}

.ao-top-actions button {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: transparent;
    color: #e2e8f0;
    font-family: inherit;
    font-size: 6px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    cursor: pointer;
}

.ao-shell {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 92px 1fr;
    overflow: hidden;
}

.ao-side {
    background: #0d1127;
    border-right: 1px solid #1e293b;
    overflow: hidden;
}

.ao-nav {
    height: 100%;
    overflow: auto;
    padding: 5px 4px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ao-nav p {
    margin: 5px 0 2px;
    padding: 0 5px;
    font-size: 4.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.ao-nav button {
    appearance: none;
    border: 0;
    background: transparent;
    text-align: left;
    font-family: inherit;
    font-size: 5.8px;
    font-weight: 600;
    color: #cbd5e1;
    padding: 3.5px 5px;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ao-nav button:disabled {
    opacity: 0.55;
    cursor: default;
}

.ao-nav button.is-on {
    background: #2563eb;
    color: #fff;
}

.ao-main {
    min-width: 0;
    overflow: hidden;
    background: #f4f7fe;
}

.ao-panels {
    display: grid;
    height: 100%;
    overflow: hidden;
}

.ao-view {
    grid-area: 1 / 1;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 7px 8px 6px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(12px);
    transition: opacity 0.4s ease, transform 0.45s ease, visibility 0.4s ease;
    z-index: 0;
}

.ao-view[hidden] { display: none !important; }

.ao-view.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    z-index: 2;
}

.ao-view.is-leaving {
    display: flex !important;
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    transform: translateX(-10px);
    z-index: 1;
}

.ao-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 5px 6px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ao-card h4 {
    margin: 0 0 4px;
    font-size: 7px;
    font-weight: 800;
}

.ao-card h4 small {
    margin-left: 4px;
    font-size: 5px;
    font-weight: 700;
    color: #64748b;
}

.ao-btn {
    appearance: none;
    border: 0;
    background: #2563eb;
    color: #fff;
    font-family: inherit;
    font-size: 6px;
    font-weight: 700;
    padding: 4px 7px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
}

.ao-btn.is-ghost {
    background: #fff;
    color: #2563eb;
    border: 1px solid #93c5fd;
}

.ao-btn.is-soft {
    background: #fff;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.ao-btn.is-warn {
    background: #fff;
    color: #ca8a04;
    border: 1px solid #facc15;
}

.ao-pill {
    display: inline-flex;
    align-items: center;
    font-style: normal;
    font-size: 5px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 99px;
    white-space: nowrap;
}

.ao-pill.is-ok {
    background: rgba(22, 163, 74, 0.14);
    color: #166534;
}

.ao-tag {
    display: inline-flex;
    font-style: normal;
    font-size: 5px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 99px;
    background: #e2e8f0;
    color: #334155;
    white-space: nowrap;
}

.ao-tag.is-blue {
    background: rgba(37, 99, 235, 0.14);
    color: #1d4ed8;
}

.ao-tag.is-green {
    background: rgba(34, 197, 94, 0.16);
    color: #15803d;
}

.ao-tag.is-red {
    background: rgba(239, 68, 68, 0.14);
    color: #b91c1c;
}

.ao-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin-bottom: 5px;
    flex-shrink: 0;
}

.ao-kpis > div {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 5px 6px 4px;
    border-top: 2px solid #94a3b8;
}

.ao-kpis > div.is-blue { border-top-color: #2563eb; }
.ao-kpis > div.is-green { border-top-color: #22c55e; }
.ao-kpis > div.is-dark { border-top-color: #0f172a; }

.ao-kpis span {
    display: block;
    font-size: 5px;
    font-weight: 700;
    color: #64748b;
}

.ao-kpis strong {
    display: block;
    margin-top: 2px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

.ao-kpis em {
    display: block;
    margin-top: 2px;
    font-style: normal;
    font-size: 5.2px;
    font-weight: 700;
    color: #2563eb;
}

.ao-health {
    margin-bottom: 5px;
    flex-shrink: 0;
}

.ao-health > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.ao-health > header h4 { margin: 0; }

.ao-health > header span {
    font-size: 5.5px;
    font-weight: 800;
    color: #64748b;
}

.ao-health-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 4px;
}

.ao-health-row div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding: 4px 5px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.ao-health-row span {
    font-size: 5.5px;
    color: #475569;
}

.ao-health-row b {
    font-size: 6px;
    color: #2563eb;
}

.ao-health > p {
    margin: 0;
    font-size: 5.5px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.ao-dash-mid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 5px;
    margin-bottom: 5px;
    flex-shrink: 0;
}

.ao-dash-mid .ao-btn {
    display: block;
    width: 100%;
    margin-top: 3px;
    text-align: center;
}

.ao-dash-mid ol {
    margin: 0;
    padding-left: 12px;
}

.ao-dash-mid li {
    font-size: 5.4px;
    line-height: 1.3;
    color: #475569;
    margin-bottom: 2px;
}

.ao-dash-charts {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.ao-donut {
    width: 42px;
    height: 42px;
    margin: 2px auto 0;
    border-radius: 50%;
    background: conic-gradient(#2563eb 0 100%);
    -webkit-mask: radial-gradient(circle, transparent 52%, #000 53%);
    mask: radial-gradient(circle, transparent 52%, #000 53%);
}

.ao-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 42px;
    padding: 0 2px;
}

.ao-bars i {
    flex: 1;
    height: var(--h);
    border-radius: 3px 3px 1px 1px;
    background: #2563eb;
    display: block;
    opacity: 0.85;
}

.ao-bars i:first-child { opacity: 1; }
.ao-bars i:nth-child(2) { background: #60a5fa; }
.ao-bars i:nth-child(3) { background: #93c5fd; }
.ao-bars i:nth-child(4) { background: #bfdbfe; }

.ao-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 5px;
    flex-shrink: 0;
}

.ao-head h3 {
    margin: 0;
    font-size: 11px;
    font-weight: 800;
}

.ao-head p {
    margin: 2px 0 0;
    font-size: 5.8px;
    color: #64748b;
}

.ao-head-side {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.ao-stat {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    padding: 3px 7px;
    text-align: center;
}

.ao-stat span {
    display: block;
    font-size: 5px;
    font-weight: 700;
    color: #64748b;
}

.ao-stat strong {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #2563eb;
    line-height: 1.1;
}

.ao-mini-stats {
    display: flex;
    gap: 4px;
}

.ao-mini-stats div {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 3px 6px;
    text-align: center;
    min-width: 28px;
}

.ao-mini-stats span {
    display: block;
    font-size: 4.8px;
    font-weight: 700;
    color: #64748b;
}

.ao-mini-stats strong {
    display: block;
    font-size: 10px;
    font-weight: 800;
    color: #2563eb;
    line-height: 1.1;
}

.ao-filters {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 5px 6px;
    margin-bottom: 5px;
    flex-shrink: 0;
}

.ao-filters label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 5px;
    font-weight: 700;
    color: #64748b;
    min-width: 0;
}

.ao-filters select {
    appearance: none;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 5px;
    padding: 3px 6px;
    font-family: inherit;
    font-size: 5.8px;
    color: #0f172a;
    min-width: 72px;
    max-width: 110px;
}

.ao-kb-list {
    flex: 1;
    min-height: 0;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ao-kb {
    position: relative;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 5px 6px 4px;
}

.ao-kb-acts {
    position: absolute;
    top: 4px;
    right: 4px;
    display: flex;
    gap: 2px;
}

.ao-kb-acts button,
.ao-row-acts button,
.ao-ico {
    appearance: none;
    width: 12px;
    height: 12px;
    border: 1px solid #cbd5e1;
    background: #fff;
    border-radius: 3px;
    font-size: 6px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    color: #334155;
}

.ao-kb-acts button.is-danger,
.ao-row-acts button.is-danger,
.ao-ico.is-danger {
    color: #dc2626;
    border-color: #fca5a5;
}

.ao-kb header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px;
    padding-right: 40px;
    margin-bottom: 3px;
}

.ao-kb header span {
    font-size: 5.5px;
    color: #64748b;
}

.ao-kb header b {
    color: #0f172a;
    font-weight: 800;
}

.ao-kb p {
    margin: 0 0 3px;
    font-size: 5.8px;
    line-height: 1.3;
    color: #334155;
}

.ao-kb footer {
    font-size: 5px;
    color: #94a3b8;
}

.ao-table-wrap {
    flex: 1;
    min-height: 0;
    overflow: auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.ao-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 5.5px;
}

.ao-table th,
.ao-table td {
    padding: 4px 5px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.ao-table th {
    font-size: 4.8px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    background: #f8fafc;
    position: sticky;
    top: 0;
}

.ao-table td b {
    display: block;
    font-size: 5.8px;
}

.ao-table td small {
    display: block;
    margin-top: 1px;
    color: #94a3b8;
    font-size: 4.8px;
}

.ao-row-acts {
    white-space: nowrap;
}

.ao-row-acts button { margin-left: 1px; }

.ao-video {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 7px;
    flex-shrink: 0;
}

.ao-video > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 4px;
}

.ao-video h4 {
    margin: 0;
    font-size: 9px;
    font-weight: 800;
}

.ao-video-tags {
    display: flex;
    gap: 3px;
    margin-bottom: 3px;
}

.ao-video p {
    margin: 0 0 5px;
    font-size: 6px;
    color: #475569;
}

.ao-video footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.ao-video footer > span {
    font-size: 5.5px;
    color: #94a3b8;
}

.ao-video-acts {
    display: flex;
    align-items: center;
    gap: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .ao-view,
    .ao-view.is-active,
    .ao-view.is-leaving,
    .jt-floater[data-ao-floater],
    .ao-view-btn {
        transition: none !important;
    }
}

/*----------------------------------------------------
    Green Balloon — UI real (mini site)
-----------------------------------------------------*/

.jt-showcase[data-system="green"] {
    max-width: 720px;
    padding: 5.5rem 4.25rem 3rem;
}

.jt-showcase[data-system="green"] .jt-laptop-wide { z-index: 7; }

.jt-showcase[data-system="green"] .jt-laptop-screen.has-real-ui {
    height: 340px;
    min-height: 340px;
    max-height: 340px;
}

.jt-showcase[data-system="green"] .jt-floater-kpi {
    top: -6%;
    left: -8%;
}

.jt-showcase[data-system="green"] .jt-floater-status {
    top: -2%;
    right: -8%;
}

.jt-showcase[data-system="green"] .jt-floater-chip {
    bottom: 10%;
    left: -10%;
}

.jt-showcase[data-system="green"] .jt-floater-mini {
    bottom: -6%;
    right: -8%;
}

.jt-floater-kpi.is-web strong,
.jt-floater-chip.is-web {
    color: #3f9e3a;
}

.jt-floater-chip.is-web {
    background: rgba(63, 158, 58, 0.12);
}

.gb-view-switch {
    position: absolute;
    top: 0.35rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9;
    display: flex;
    gap: 4px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(19, 48, 102, 0.12);
    backdrop-filter: blur(8px);
}

.gb-view-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
    white-space: nowrap;
}

.gb-view-btn:hover { color: #3f9e3a; }

.gb-view-btn.is-active {
    background: #1f2a24;
    color: #fff;
    transform: translateY(-1px);
}

.jt-floater[data-gb-floater] {
    opacity: 1;
    visibility: visible;
    transition:
        opacity 0.4s ease,
        visibility 0.4s ease,
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        translate 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.jt-floater[data-gb-floater].is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px) scale(0.96);
}

.gb-app {
    height: 100%;
    min-height: 340px;
    max-height: 340px;
    overflow: hidden;
    font-family: var(--font-primary);
}

.gb-panels {
    display: grid;
    height: 100%;
    overflow: hidden;
}

.gb-view {
    grid-area: 1 / 1;
    min-height: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(14px);
    transition:
        opacity 0.42s ease,
        transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.42s ease;
    z-index: 0;
}

.gb-view[hidden] { display: none !important; }

.gb-view.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    z-index: 2;
    overflow: hidden;
    height: 100%;
}

.gb-view.is-leaving {
    display: block !important;
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    transform: translateX(-12px);
    z-index: 1;
    overflow: hidden;
    height: 100%;
}

.gb-screen {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

.gb-home {
    background:
        radial-gradient(ellipse 55% 70% at 12% 55%, rgba(120, 200, 110, 0.28), transparent 60%),
        linear-gradient(115deg, #eaf7e4 0%, #f7fbf5 48%, #ffffff 100%);
    color: #1a1f1c;
    padding: 8px 10px 8px;
    position: relative;
}

.gb-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-shrink: 0;
    margin-bottom: 8px;
}

.gb-nav.is-dark {
    color: rgba(255, 255, 255, 0.78);
}

.gb-brand {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    font-weight: 800;
    color: #1f2a24;
    min-width: 0;
}

.gb-brand.is-light { color: #fff; }

.gb-brand i {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
    background:
        radial-gradient(circle at 35% 30%, #b7f08a, #4caf50 55%, #2e7d32);
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.35);
}

.gb-brand img.is-ae {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    padding: 1px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(31, 42, 36, 0.18);
}

.gb-nav nav {
    display: flex;
    gap: 7px;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(31, 42, 36, 0.55);
}

.gb-nav.is-dark nav { color: rgba(255, 255, 255, 0.45); }

.gb-nav nav em {
    font-style: normal;
}

.gb-nav nav em.is-on {
    color: #3f9e3a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gb-nav.is-dark nav em.is-on {
    color: #9ce057;
}

.gb-pill {
    appearance: none;
    border: 0;
    font-family: inherit;
    font-size: 8px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 99px;
    cursor: pointer;
    white-space: nowrap;
}

.gb-pill.is-dark {
    background: #1f2a24;
    color: #fff;
}

.gb-pill.is-green {
    background: #4caf50;
    color: #fff;
}

.gb-pill.is-ghost {
    background: rgba(255, 255, 255, 0.75);
    color: #1f2a24;
    border: 1px solid rgba(31, 42, 36, 0.14);
}

.gb-pill.is-gold {
    background: #c5b38d;
    color: #1a1712;
}

.gb-pill.is-ghost-light {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.gb-home-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 10px;
    flex: 1;
    min-height: 0;
    align-items: center;
}

.gb-balloon {
    position: relative;
    height: 100%;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.gb-balloon-mount {
    position: relative;
    width: 132px;
    height: 168px;
    animation: gbBalloonFloat 5.5s ease-in-out infinite;
}

.gb-balloon-mount canvas,
.gb-balloon-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 14px 22px rgba(46, 125, 50, 0.22));
}

.gb-balloon-mount.is-live .gb-balloon-fallback {
    opacity: 0;
    pointer-events: none;
}

.gb-balloon-badge {
    position: relative;
    z-index: 1;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #2e7d32;
    background: rgba(255, 255, 255, 0.78);
    padding: 3px 8px;
    border-radius: 99px;
    border: 1px solid rgba(76, 175, 80, 0.18);
}

@keyframes gbBalloonFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.gb-home-copy h3 {
    margin: 5px 0 6px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.12;
    color: #1a1f1c;
}

.gb-home-copy h3 span {
    color: #3f9e3a;
}

.gb-home-copy p {
    margin: 0 0 8px;
    font-size: 8.5px;
    line-height: 1.4;
    color: rgba(31, 42, 36, 0.72);
}

.gb-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-style: normal;
    font-size: 7.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #3f9e3a;
    background: rgba(76, 175, 80, 0.12);
    padding: 3px 8px;
    border-radius: 99px;
}

.gb-tag.is-gold {
    color: #c5b38d;
    background: rgba(197, 179, 141, 0.14);
}

.gb-live-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #c5b38d;
    box-shadow: 0 0 0 3px rgba(197, 179, 141, 0.25);
}

.gb-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}

.gb-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.gb-chips span {
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(31, 42, 36, 0.55);
}

.gb-guide {
    position: absolute;
    right: 10px;
    bottom: 9px;
    max-width: 150px;
    padding: 7px 9px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 18px rgba(31, 42, 36, 0.08);
    backdrop-filter: blur(8px);
}

.gb-guide b {
    display: block;
    font-size: 8px;
    color: #1f2a24;
}

.gb-guide span {
    font-size: 7px;
    color: rgba(31, 42, 36, 0.62);
}

/* Nosotros */
.gb-nosotros {
    background: #fff;
    color: #1a1f1c;
    padding: 8px 10px 9px;
}

.gb-ns-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    padding: 14px 16px 12px;
    border-radius: 14px;
    color: #f2f7f1;
    background:
        radial-gradient(ellipse 70% 80% at 18% 10%, rgba(156, 224, 87, 0.18), transparent 55%),
        linear-gradient(160deg, #1a3d2a 0%, #153526 45%, #0f2a1e 100%);
}

.gb-ns-kicker {
    margin: 0 0 6px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(242, 247, 241, 0.72);
}

.gb-ns-panel h3 {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 500;
    font-style: italic;
    line-height: 1.15;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
}

.gb-ns-panel h3 em {
    font-style: italic;
    color: #fff;
}

.gb-ns-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

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

.gb-ns-stat strong {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}

.gb-ns-gauge {
    display: block;
    height: 2px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.18);
    position: relative;
    overflow: visible;
}

.gb-ns-gauge b {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, transparent, #9ce057);
    position: relative;
}

.gb-ns-gauge b::after {
    content: "";
    position: absolute;
    right: -3px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px rgba(156, 224, 87, 0.7);
    transform: translateY(-50%);
}

.gb-ns-stat span {
    font-size: 7.5px;
    color: rgba(242, 247, 241, 0.62);
}

.gb-ns-origin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(242, 247, 241, 0.7);
}

.gb-ns-origin i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ce057;
    box-shadow: 0 0 0 3px rgba(156, 224, 87, 0.25);
}

/* Proyectos — layout fidelidad a captura (puede recortarse) */
.gb-proyectos {
    background: #f3f4f3;
    color: #1a1f1c;
    padding: 7px 12px 0;
    overflow: hidden;
}

.gb-pj-hero {
    display: grid;
    grid-template-columns: 0.92fr 1.18fr;
    gap: 6px;
    align-items: center;
    margin-bottom: 8px;
    min-height: 148px;
}

.gb-pj-kicker {
    display: block;
    margin: 0 0 4px;
    font-style: normal;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(31, 42, 36, 0.42);
}

.gb-pj-copy {
    padding-left: 4px;
}

.gb-pj-copy h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: #1a1f1c;
}

.gb-pj-copy h3 span {
    color: #43a047;
    font-style: italic;
    font-weight: 700;
}

.gb-pj-stack {
    position: relative;
    height: 148px;
    overflow: hidden;
    border-radius: 0 0 0 4px;
}

.gb-pj-stack img {
    position: absolute;
    right: -6px;
    top: -4px;
    width: 108%;
    height: 112%;
    object-fit: cover;
    object-position: center top;
    pointer-events: none;
    user-select: none;
}

.gb-pj-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 2px 10px;
}

.gb-pj-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    overflow: hidden;
}

.gb-pj-filters span {
    flex-shrink: 0;
    font-size: 8px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 99px;
    color: rgba(31, 42, 36, 0.58);
    background: #fff;
    border: 1px solid rgba(31, 42, 36, 0.08);
    box-shadow: 0 1px 2px rgba(31, 42, 36, 0.04);
}

.gb-pj-filters span.is-on {
    background: #1f2a24;
    color: #fff;
    border-color: #1f2a24;
}

.gb-pj-bar em {
    font-style: normal;
    font-size: 8px;
    font-weight: 700;
    color: rgba(31, 42, 36, 0.42);
    white-space: nowrap;
}

.gb-pj-card {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 14px;
    min-height: 148px;
    padding: 16px 18px 22px;
    margin: 0 0 -28px;
    border-radius: 22px 22px 0 0;
    background: #fff;
    box-shadow: 0 -2px 24px rgba(31, 42, 36, 0.06);
}

.gb-pj-card-copy em {
    display: block;
    margin-bottom: 6px;
    font-style: normal;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #43a047;
}

.gb-pj-card-copy h4 {
    margin: 0 0 7px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.12;
    color: #1a1f1c;
}

.gb-pj-card-copy p {
    margin: 0 0 10px;
    font-size: 9px;
    line-height: 1.4;
    color: rgba(31, 42, 36, 0.62);
    max-width: 28ch;
}

.gb-pj-card-copy span {
    font-size: 9px;
    font-weight: 700;
    color: #43a047;
}

.gb-pj-services b {
    display: block;
    margin-bottom: 8px;
    font-size: 8px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(31, 42, 36, 0.4);
}

.gb-pj-services div {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.gb-pj-services span {
    font-size: 8px;
    font-weight: 600;
    color: #2e5c32;
    background: rgba(76, 175, 80, 0.14);
    padding: 5px 9px;
    border-radius: 99px;
}

/* Ali Events */
.gb-events {
    background:
        radial-gradient(ellipse 50% 60% at 82% 48%, rgba(90, 140, 200, 0.28), transparent 58%),
        linear-gradient(160deg, #071018 0%, #0d1824 55%, #101c2a 100%);
    color: #e8eef5;
    padding: 8px 10px 9px;
}

.gb-events-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 10px;
    flex: 1;
    min-height: 0;
    align-items: center;
}

.gb-events-copy h3 {
    margin: 6px 0;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.12;
    color: #fff;
}

.gb-events-copy h3 span {
    font-style: italic;
    font-weight: 600;
    font-family: Georgia, "Times New Roman", serif;
    color: #9ec9ef;
}

.gb-events-copy p {
    margin: 0 0 9px;
    font-size: 8.5px;
    line-height: 1.4;
    color: rgba(232, 238, 245, 0.66);
}

.gb-meta {
    margin-top: 8px;
    font-size: 7.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(232, 238, 245, 0.42);
}

.gb-ae-hero-mark {
    position: relative;
    justify-self: center;
    width: 118px;
    height: 118px;
    display: grid;
    place-items: center;
}

.gb-ae-glow {
    position: absolute;
    inset: 4%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(236, 226, 206, 0.55) 0%, rgba(200, 176, 120, 0.18) 48%, transparent 72%);
    animation: gbAePulse 4.5s ease-in-out infinite;
}

.gb-ae-mark {
    position: relative;
    width: 92px;
    height: 100px;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.35));
    animation: gbAeFloat 6.5s ease-in-out infinite;
}

.gb-ae-layer {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.gb-ae-layer.is-mono { background-image: url("../img/sistemas/green/ae-mark-mono.webp"); }
.gb-ae-layer.is-stars {
    background-image: url("../img/sistemas/green/ae-mark-stars.webp");
    animation: gbAeTwinkle 3.2s ease-in-out infinite alternate;
}
.gb-ae-layer.is-alimar { background-image: url("../img/sistemas/green/ae-mark-alimar.webp"); }
.gb-ae-layer.is-events { background-image: url("../img/sistemas/green/ae-mark-events.webp"); }

@keyframes gbAeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes gbAePulse {
    0%, 100% { opacity: 0.75; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.04); }
}

@keyframes gbAeTwinkle {
    from { opacity: 0.65; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .gb-view,
    .gb-view.is-active,
    .gb-view.is-leaving,
    .jt-floater[data-gb-floater],
    .gb-view-btn,
    .gb-balloon-mount,
    .gb-ae-mark,
    .gb-ae-glow,
    .gb-ae-layer.is-stars {
        transition: none !important;
        animation: none !important;
    }
}

/*----------------------------------------------------
    Blue Balloon / Grupo — UI real (mini site)
-----------------------------------------------------*/

.jt-showcase[data-system="blue"] {
    max-width: 720px;
    padding: 5.5rem 4.25rem 3rem;
}

.jt-showcase[data-system="blue"] .jt-laptop-wide { z-index: 7; }

.jt-showcase[data-system="blue"] .jt-laptop-screen.has-real-ui {
    height: 340px;
    min-height: 340px;
    max-height: 340px;
}

.jt-showcase[data-system="blue"] .jt-floater-kpi {
    top: -6%;
    left: -8%;
}

.jt-showcase[data-system="blue"] .jt-floater-status {
    top: -2%;
    right: -8%;
}

.jt-showcase[data-system="blue"] .jt-floater-chip {
    bottom: 10%;
    left: -10%;
}

.jt-showcase[data-system="blue"] .jt-floater-mini {
    bottom: -6%;
    right: -8%;
}

.jt-floater-kpi.is-blue strong,
.jt-floater-chip.is-blue {
    color: #2f5fa8;
}

.jt-floater-chip.is-blue {
    background: rgba(47, 95, 168, 0.12);
}

.bb-view-switch {
    position: absolute;
    top: 0.35rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9;
    display: flex;
    gap: 4px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(19, 48, 102, 0.12);
    backdrop-filter: blur(8px);
}

.bb-view-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.bb-view-btn:hover { color: #2f5fa8; }

.bb-view-btn.is-active {
    background: #152a55;
    color: #fff;
    transform: translateY(-1px);
}

.jt-floater[data-bb-floater] {
    opacity: 1;
    visibility: visible;
    transition:
        opacity 0.4s ease,
        visibility 0.4s ease,
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        translate 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.jt-floater[data-bb-floater].is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px) scale(0.96);
}

.bb-app {
    height: 100%;
    min-height: 340px;
    max-height: 340px;
    overflow: hidden;
    font-family: var(--font-primary);
}

.bb-panels {
    display: grid;
    height: 100%;
    overflow: hidden;
}

.bb-view {
    grid-area: 1 / 1;
    min-height: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(14px);
    transition:
        opacity 0.42s ease,
        transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.42s ease;
    z-index: 0;
}

.bb-view[hidden] { display: none !important; }

.bb-view.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    z-index: 2;
    overflow: hidden;
    height: 100%;
}

.bb-view.is-leaving {
    display: block !important;
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    transform: translateX(-12px);
    z-index: 1;
    overflow: hidden;
    height: 100%;
}

.bb-screen {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    background:
        radial-gradient(ellipse 50% 55% at 88% 20%, rgba(120, 180, 255, 0.22), transparent 55%),
        radial-gradient(ellipse 45% 50% at 8% 85%, rgba(150, 200, 255, 0.18), transparent 50%),
        linear-gradient(160deg, #f4f8fc 0%, #eef4fb 48%, #f8fbfe 100%);
    color: #152a55;
    padding: 8px 10px 9px;
}

.bb-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-shrink: 0;
    margin-bottom: 8px;
}

.bb-brand {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 8.5px;
    font-weight: 800;
    color: #152a55;
    min-width: 0;
}

.bb-brand i {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    flex-shrink: 0;
    background:
        #fff url("../img/sistemas/blue/logo-blue-balloon.png") center / 82% no-repeat;
    box-shadow: 0 2px 6px rgba(21, 42, 85, 0.18);
}

.bb-nav nav {
    display: flex;
    gap: 6px;
    font-size: 6.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(21, 42, 85, 0.48);
}

.bb-nav nav em {
    font-style: normal;
}

.bb-nav nav em.is-on {
    color: #4a90e2;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bb-pill {
    appearance: none;
    border: 0;
    font-family: inherit;
    font-size: 7.5px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 99px;
    cursor: pointer;
    white-space: nowrap;
    background: #152a55;
    color: #fff;
    box-shadow: 0 6px 14px rgba(74, 144, 226, 0.35);
}

.bb-link {
    font-size: 8px;
    font-weight: 700;
    color: #2f5fa8;
}

.bb-tag {
    display: inline-flex;
    font-style: normal;
    font-size: 7.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4a90e2;
    background: rgba(74, 144, 226, 0.12);
    padding: 3px 8px;
    border-radius: 99px;
}

.bb-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.bb-home {
    padding-bottom: 0;
}

.bb-home .bb-nav {
    margin-bottom: 4px;
}

.bb-home-shot {
    flex: 1;
    min-height: 0;
    margin: 0 -4px 0;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.bb-home-shot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
    pointer-events: none;
    user-select: none;
}

/* Nosotros */
.bb-ns-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 2px 4px 4px;
}

.bb-ns-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
    flex: 0 0 auto;
}

.bb-ns-hero h3 {
    margin: 0;
    max-width: 36ch;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.15;
    color: #152a55;
}

.bb-ns-hero p {
    margin: 0;
    max-width: 44ch;
    font-size: 7.5px;
    line-height: 1.35;
    color: rgba(21, 42, 85, 0.58);
}

.bb-ns-hero .bb-pill {
    margin-top: 2px;
}

.bb-ns-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    flex: 0 0 auto;
}

.bb-ns-stats div {
    padding: 7px 5px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(21, 42, 85, 0.06);
    box-shadow: 0 6px 14px rgba(21, 42, 85, 0.05);
    text-align: center;
}

.bb-ns-stats strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: #152a55;
    line-height: 1;
}

.bb-ns-stats span {
    display: block;
    margin-top: 3px;
    font-size: 6.2px;
    color: rgba(21, 42, 85, 0.55);
}

/* Visión */
.bb-vision-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 2px 0 4px;
}

.bb-vision-title {
    margin: 0;
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    color: #152a55;
}

.bb-principles {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.bb-prin-row {
    display: flex;
    justify-content: center;
    gap: 6px;
    width: 100%;
}

.bb-prin {
    width: calc(25% - 5px);
    max-width: 112px;
    padding: 8px 7px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(21, 42, 85, 0.06);
    box-shadow: 0 6px 14px rgba(21, 42, 85, 0.05);
    box-sizing: border-box;
}

.bb-prin-row.is-bottom .bb-prin {
    width: calc(25% - 5px);
    max-width: 112px;
}

.bb-prin i {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    margin-bottom: 5px;
    border-radius: 50%;
    font-style: normal;
    font-size: 7px;
    font-weight: 800;
    color: #2f5fa8;
    background: rgba(74, 144, 226, 0.14);
}

.bb-prin b {
    display: block;
    font-size: 7.5px;
    line-height: 1.2;
    color: #152a55;
}

.bb-prin span {
    display: block;
    margin-top: 4px;
    font-size: 5.8px;
    color: rgba(21, 42, 85, 0.42);
}

/* Filosofía */
.bb-filosofia {
    position: relative;
}

.bb-filosofia::before {
    content: "";
    position: absolute;
    left: -40px;
    bottom: -50px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 18px solid rgba(74, 144, 226, 0.08);
    pointer-events: none;
}

.bb-filo-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 2px 2px;
    overflow: hidden;
}

.bb-filo-hero {
    text-align: center;
    flex: 0 0 auto;
    width: 100%;
}

.bb-filo-hero h3 {
    margin: 4px 0;
    font-size: 16px;
    font-weight: 800;
    color: #152a55;
}

.bb-filo-hero p {
    margin: 0 auto;
    max-width: 52ch;
    font-size: 7px;
    line-height: 1.35;
    color: rgba(21, 42, 85, 0.58);
}

.bb-filo-card {
    width: 100%;
    flex: 0 1 auto;
    min-height: 0;
    padding: 10px 12px 8px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(21, 42, 85, 0.06);
    box-shadow: 0 8px 20px rgba(21, 42, 85, 0.06);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.bb-filo-card h4 {
    margin: 0 0 5px;
    font-size: 12px;
    font-weight: 800;
    color: #152a55;
}

.bb-filo-card > p {
    margin: 0 0 5px;
    font-size: 7px;
    line-height: 1.35;
    color: rgba(21, 42, 85, 0.58);
}

.bb-filo-cos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    margin: 7px 0 6px;
}

.bb-filo-cos span {
    padding: 6px 6px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(21, 42, 85, 0.08);
    border-left-width: 3px;
    box-shadow: 0 2px 8px rgba(21, 42, 85, 0.04);
}

.bb-filo-cos span.is-jt { border-left-color: #f59e0b; }
.bb-filo-cos span.is-gb { border-left-color: #43a047; }
.bb-filo-cos span.is-bb { border-left-color: #4a90e2; }
.bb-filo-cos span.is-jp { border-left-color: #b45309; }

.bb-filo-cos b {
    display: block;
    font-size: 7px;
    color: #152a55;
}

.bb-filo-cos em {
    display: block;
    margin-top: 2px;
    font-style: normal;
    font-size: 5.5px;
    color: rgba(21, 42, 85, 0.5);
}

.bb-filo-foot {
    margin: 0 !important;
    text-align: center;
    font-size: 6.5px !important;
    color: rgba(21, 42, 85, 0.52) !important;
}

@media (prefers-reduced-motion: reduce) {
    .bb-view,
    .bb-view.is-active,
    .bb-view.is-leaving,
    .jt-floater[data-bb-floater],
    .bb-view-btn {
        transition: none !important;
        animation: none !important;
    }
}

/*----------------------------------------------------
    NovaTrackIt — UI real (mini shipping)
-----------------------------------------------------*/

.jt-showcase[data-system="trackit"] {
    max-width: 720px;
    padding: 5.5rem 4.25rem 3rem;
}

.jt-showcase[data-system="trackit"] .jt-laptop-wide { z-index: 7; }

.jt-showcase[data-system="trackit"] .jt-laptop-screen.has-real-ui {
    height: 318px;
    min-height: 318px;
    max-height: 318px;
}

.jt-showcase[data-system="trackit"] .jt-floater-kpi {
    top: -6%;
    left: -8%;
}

.jt-showcase[data-system="trackit"] .jt-floater-status {
    top: -2%;
    right: -8%;
}

.jt-showcase[data-system="trackit"] .jt-floater-chip {
    bottom: 10%;
    left: -10%;
}

.jt-showcase[data-system="trackit"] .jt-floater-mini {
    bottom: -6%;
    right: -8%;
}

.tk-view-switch {
    position: absolute;
    top: 0.35rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9;
    display: flex;
    gap: 4px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(19, 48, 102, 0.12);
    backdrop-filter: blur(8px);
}

.tk-view-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
}

.tk-view-btn:hover { color: #3b82f6; }

.tk-view-btn.is-active {
    background: linear-gradient(135deg, #1e3a5f, #3b82f6);
    color: #fff;
}

.jt-floater[data-tk-floater] {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

.jt-floater[data-tk-floater].is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px) scale(0.96);
}

.tk-app {
    --tk-bg: #f4f6f9;
    --tk-panel: #ffffff;
    --tk-text: #1f2937;
    --tk-muted: #6b7280;
    --tk-border: #e5e7eb;
    --tk-accent: #5b7cfa;
    --tk-side: #222d32;
    height: 100%;
    min-height: 318px;
    max-height: 318px;
    display: grid;
    grid-template-columns: 92px 1fr;
    overflow: hidden;
    background: var(--tk-bg);
    color: var(--tk-text);
    font-family: var(--font-primary);
}

.tk-side {
    display: flex;
    flex-direction: column;
    background: var(--tk-side);
    color: rgba(255, 255, 255, 0.78);
    padding: 6px 4px 5px;
    min-width: 0;
    overflow: hidden;
}

.tk-brand {
    font-size: 6.5px;
    font-weight: 800;
    color: #fff;
    padding: 2px 4px 6px;
    letter-spacing: 0.02em;
}

.tk-nav {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.tk-nav button {
    appearance: none;
    border: 0;
    background: transparent;
    text-align: left;
    font-family: inherit;
    font-size: 5.4px;
    font-weight: 650;
    color: rgba(255, 255, 255, 0.72);
    padding: 3.5px 5px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tk-nav button:disabled {
    opacity: 0.55;
    cursor: default;
}

.tk-nav button.is-on {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.tk-nav button.is-parent {
    font-weight: 750;
    color: rgba(255, 255, 255, 0.88);
}

.tk-nav button.is-sub {
    display: none;
    padding-left: 10px;
    font-size: 5px;
}

.tk-nav.is-log-open > button.is-sub[data-tk-group="log"] {
    display: block;
}

.tk-sec {
    margin: 5px 0 1px;
    padding: 0 5px;
    font-size: 4.4px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}

.tk-stage {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--tk-bg);
}

.tk-top {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 5px 7px;
    background: var(--tk-panel);
    border-bottom: 1px solid var(--tk-border);
}

.tk-search {
    flex: 1;
    max-width: 150px;
    background: #f3f4f6;
    border: 1px solid var(--tk-border);
    border-radius: 99px;
    padding: 3px 8px;
    font-size: 5.4px;
    color: var(--tk-muted);
}

.tk-top-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tk-user {
    font-size: 5.5px;
    font-weight: 700;
}

.tk-bell {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    border: 1.2px solid var(--tk-muted);
    position: relative;
}

.tk-bell::after {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--tk-accent);
}

.tk-panels {
    flex: 1;
    min-height: 0;
    display: grid;
    overflow: hidden;
}

.tk-view {
    grid-area: 1 / 1;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 5px 7px 6px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(12px);
    transition: opacity 0.4s ease, transform 0.45s ease, visibility 0.4s ease;
    z-index: 0;
}

.tk-view[hidden] { display: none !important; }

.tk-view.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    z-index: 2;
}

.tk-view.is-leaving {
    display: flex !important;
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    transform: translateX(-10px);
    z-index: 1;
}

.tk-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 5px;
    flex-shrink: 0;
}

.tk-page-head h3 {
    margin: 0;
    font-size: 9px;
    font-weight: 800;
}

.tk-page-head p {
    margin: 1px 0 0;
    font-size: 5.2px;
    color: var(--tk-muted);
}

.tk-crumb {
    font-size: 5px;
    color: var(--tk-muted);
    white-space: nowrap;
}

.tk-crumb b { color: var(--tk-text); }

.tk-card {
    background: var(--tk-panel);
    border: 1px solid var(--tk-border);
    border-radius: 8px;
    padding: 6px 7px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.tk-company {
    display: flex;
    gap: 7px;
    align-items: center;
    margin-bottom: 5px;
    flex-shrink: 0;
}

.tk-logo-cm {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    font-style: normal;
    font-size: 7px;
    font-weight: 900;
    color: #111;
    background: linear-gradient(135deg, #facc15, #eab308);
    flex-shrink: 0;
}

.tk-company strong {
    display: block;
    font-size: 7px;
    margin-bottom: 1px;
}

.tk-company p {
    margin: 0;
    font-size: 5px;
    color: var(--tk-muted);
    line-height: 1.25;
}

.tk-home-grid {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 5px;
}

.tk-home-grid .tk-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.tk-home-grid em {
    font-style: normal;
    font-size: 5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tk-muted);
    margin-bottom: 5px;
}

.tk-quick {
    display: flex;
    justify-content: space-around;
    gap: 4px;
    margin: auto 0;
}

.tk-quick span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 4.4px;
    font-weight: 700;
    color: var(--tk-muted);
    text-align: center;
}

.tk-quick i {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(91, 124, 250, 0.16);
    border: 1.5px solid var(--tk-accent);
    position: relative;
}

.tk-quick i::before {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 2px;
    background: var(--tk-accent);
}

.tk-quick i.is-user::before {
    inset: 4px 5px 5px;
    border-radius: 50% 50% 40% 40%;
}

.tk-home-grid small {
    display: block;
    margin-top: auto;
    text-align: center;
    font-size: 4.6px;
    color: var(--tk-muted);
}

.tk-info {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 5px;
    color: var(--tk-muted);
}

.tk-info b { color: var(--tk-text); }

.tk-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-top: 2px;
}

.tk-stats span {
    background: var(--tk-bg);
    border-radius: 6px;
    padding: 4px;
    font-size: 4.5px;
    color: var(--tk-muted);
    text-align: center;
}

.tk-stats b {
    display: block;
    font-size: 9px;
    color: var(--tk-text);
    line-height: 1.1;
}

.tk-list {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 5px 6px;
}

.tk-list > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    margin-bottom: 4px;
    flex-shrink: 0;
}

.tk-list > header strong {
    font-size: 5.4px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tk-muted);
}

.tk-list > header div {
    display: flex;
    gap: 3px;
}

.tk-btn {
    appearance: none;
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    color: #3730a3;
    border-radius: 5px;
    padding: 3px 6px;
    font-family: inherit;
    font-size: 5px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.tk-btn.is-solid {
    background: var(--tk-accent);
    border-color: var(--tk-accent);
    color: #fff;
}

.tk-filters {
    display: flex;
    gap: 3px;
    margin-bottom: 4px;
    flex-shrink: 0;
}

.tk-filters span {
    background: #f3f4f6;
    border: 1px solid var(--tk-border);
    border-radius: 4px;
    padding: 2px 5px;
    font-size: 4.6px;
    color: var(--tk-muted);
    white-space: nowrap;
}

.tk-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 5px;
}

.tk-table th,
.tk-table td {
    padding: 3px 3px;
    text-align: left;
    border-bottom: 1px solid var(--tk-border);
    vertical-align: top;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tk-table th {
    font-size: 4.4px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tk-muted);
    background: #f9fafb;
}

.tk-table td b {
    display: block;
    color: var(--tk-accent);
    font-size: 5.2px;
}

.tk-table td small {
    display: block;
    margin-top: 1px;
    color: var(--tk-muted);
    font-size: 4.4px;
}

.tk-pill {
    display: inline-flex;
    font-style: normal;
    font-size: 4.5px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 99px;
}

.tk-pill.is-ok {
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
}

.tk-pill.is-info {
    background: rgba(59, 130, 246, 0.14);
    color: #1d4ed8;
}

.tk-acts {
    white-space: nowrap;
    text-align: right;
}

.tk-acts i {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 2px;
    border-radius: 50%;
    border: 1px solid var(--tk-muted);
    vertical-align: middle;
    opacity: 0.7;
}

.tk-foot {
    margin-top: auto;
    padding-top: 4px;
    font-size: 4.6px;
    color: var(--tk-muted);
    display: flex;
    justify-content: space-between;
}

.tk-foot b {
    display: inline-grid;
    place-items: center;
    min-width: 10px;
    height: 10px;
    padding: 0 3px;
    border-radius: 3px;
    background: var(--tk-accent);
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .tk-view,
    .tk-view.is-active,
    .tk-view.is-leaving,
    .jt-floater[data-tk-floater],
    .tk-view-btn {
        transition: none !important;
    }
}

/*----------------------------------------------------
    NovaTMS — UI real (mini transport)
-----------------------------------------------------*/

.jt-showcase[data-system="tms"] {
    max-width: 720px;
    padding: 5.5rem 4.25rem 3rem;
}

.jt-showcase[data-system="tms"] .jt-laptop-wide { z-index: 7; }

.jt-showcase[data-system="tms"] .jt-laptop-screen.has-real-ui {
    height: 318px;
    min-height: 318px;
    max-height: 318px;
}

.jt-showcase[data-system="tms"] .jt-floater-kpi {
    top: -6%;
    left: -8%;
}

.jt-showcase[data-system="tms"] .jt-floater-status {
    top: -2%;
    right: -8%;
}

.jt-showcase[data-system="tms"] .jt-floater-chip {
    bottom: 10%;
    left: -10%;
}

.jt-showcase[data-system="tms"] .jt-floater-mini {
    bottom: -6%;
    right: -8%;
}

.nt-view-switch {
    position: absolute;
    top: 0.35rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9;
    display: flex;
    gap: 4px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(19, 48, 102, 0.12);
    backdrop-filter: blur(8px);
}

.nt-view-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
}

.nt-view-btn:hover { color: #0284c7; }

.nt-view-btn.is-active {
    background: linear-gradient(135deg, #0369a1, #38bdf8);
    color: #fff;
}

.jt-floater[data-nt-floater] {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

.jt-floater[data-nt-floater].is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px) scale(0.96);
}

.nt-app {
    --nt-bg: #f3f6fb;
    --nt-panel: #ffffff;
    --nt-text: #0f172a;
    --nt-muted: #64748b;
    --nt-border: #e2e8f0;
    --nt-accent: #0ea5e9;
    --nt-side: #ffffff;
    height: 100%;
    min-height: 318px;
    max-height: 318px;
    display: grid;
    grid-template-columns: 102px 1fr;
    overflow: hidden;
    background: var(--nt-bg);
    color: var(--nt-text);
    font-family: var(--font-primary);
}

.nt-side {
    display: flex;
    flex-direction: column;
    background: var(--nt-side);
    border-right: 1px solid var(--nt-border);
    padding: 5px 4px 4px;
    min-width: 0;
    overflow: hidden;
}

.nt-brand {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
    padding: 0 2px;
}

.nt-brand i {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: #fff url("../img/sistemas/nova/nova-tms.jpg") center 30% / 150% no-repeat;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.nt-brand strong {
    display: block;
    font-size: 6.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #0369a1;
    line-height: 1;
}

.nt-brand em {
    display: block;
    font-style: normal;
    font-size: 5.5px;
    font-weight: 700;
    color: var(--nt-muted);
}

.nt-nav {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.nt-nav button,
.nt-side-foot button {
    appearance: none;
    border: 0;
    background: transparent;
    text-align: left;
    font-family: inherit;
    font-size: 5.2px;
    font-weight: 700;
    color: var(--nt-muted);
    padding: 3.2px 4px;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nt-nav button:disabled,
.nt-side-foot button:disabled {
    opacity: 0.72;
    cursor: default;
}

.nt-nav button.is-on {
    background: rgba(14, 165, 233, 0.14);
    color: #0369a1;
}

.nt-badge {
    display: inline-block;
    margin-left: 2px;
    padding: 0.5px 3px;
    border-radius: 99px;
    background: #fb923c;
    color: #fff;
    font-size: 4px;
    font-weight: 800;
    vertical-align: middle;
}

.nt-cold {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
}

.nt-cold i {
    width: 12px;
    height: 7px;
    border-radius: 99px;
    background: #cbd5e1;
    position: relative;
    flex-shrink: 0;
}

.nt-cold i::after {
    content: "";
    position: absolute;
    top: 0.8px;
    left: 0.8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
}

.nt-side-foot {
    border-top: 1px solid var(--nt-border);
    padding-top: 3px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.nt-side-foot .is-out { color: #ef4444 !important; }

.nt-stage {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--nt-bg);
}

.nt-top {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 5px 7px 4px;
    background: var(--nt-panel);
    border-bottom: 1px solid var(--nt-border);
}

.nt-search {
    flex: 1;
    max-width: 210px;
    background: var(--nt-bg);
    border: 1px solid var(--nt-border);
    border-radius: 7px;
    padding: 4px 7px;
    font-size: 5.5px;
    color: var(--nt-muted);
}

.nt-top-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nt-bell {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1.3px solid var(--nt-muted);
    position: relative;
}

.nt-bell::after {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ef4444;
}

.nt-user {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nt-user strong {
    display: block;
    font-size: 5.8px;
    line-height: 1.1;
}

.nt-user em {
    display: block;
    font-style: normal;
    font-size: 4.6px;
    color: var(--nt-muted);
}

.nt-user b {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 6px;
    background: var(--nt-accent);
    color: #fff;
}

.nt-panels {
    flex: 1;
    min-height: 0;
    display: grid;
    overflow: hidden;
}

.nt-view {
    grid-area: 1 / 1;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 5px 6px 6px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(12px);
    transition: opacity 0.4s ease, transform 0.45s ease, visibility 0.4s ease;
    z-index: 0;
}

.nt-view[hidden] { display: none !important; }

.nt-view.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    z-index: 2;
}

.nt-view.is-leaving {
    display: flex !important;
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    transform: translateX(-10px);
    z-index: 1;
}

.nt-dash-grid {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 1.1fr 1.1fr 0.9fr;
    grid-template-rows: 108px 1fr;
    gap: 5px;
}

.nt-card {
    background: var(--nt-panel);
    border: 1px solid var(--nt-border);
    border-radius: 8px;
    padding: 5px 6px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    min-width: 0;
}

.nt-card > header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px;
    margin-bottom: 4px;
}

.nt-card > header strong {
    font-size: 6px;
    font-weight: 800;
}

.nt-card > header span,
.nt-card > header a {
    font-size: 4.8px;
    color: var(--nt-muted);
    text-decoration: none;
}

.nt-bars {
    height: 58px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    padding: 0 2px;
}

.nt-bars i {
    flex: 1;
    height: var(--h);
    border-radius: 3px 3px 1px 1px;
    background: linear-gradient(180deg, #38bdf8, #0284c7);
}

.nt-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 2px;
    font-size: 4.4px;
    color: var(--nt-muted);
}

.nt-spark {
    width: 100%;
    height: 54px;
    display: block;
}

.nt-legend {
    display: flex;
    gap: 6px;
    margin-top: 2px;
}

.nt-legend em {
    font-style: normal;
    font-size: 4.6px;
    font-weight: 700;
}

.nt-legend .is-crit { color: #ef4444; }
.nt-legend .is-warn { color: #f59e0b; }

.nt-card-perf {
    display: flex;
    flex-direction: column;
}

.nt-gauge {
    margin: 2px auto 4px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at center, #fff 58%, transparent 59%),
        conic-gradient(#0ea5e9 0 68%, #e2e8f0 68% 100%);
    text-align: center;
}

.nt-gauge b {
    display: block;
    font-size: 9px;
    line-height: 1;
}

.nt-gauge span {
    display: block;
    font-size: 4.2px;
    color: var(--nt-muted);
}

.nt-perf-row {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    margin-top: auto;
    font-size: 4.6px;
    color: var(--nt-muted);
    text-align: center;
}

.nt-perf-row b {
    color: var(--nt-text);
    font-size: 7px;
}

.nt-card-wide {
    grid-column: 1 / 3;
}

.nt-card-ex {
    grid-column: 3;
}

.nt-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 5px;
}

.nt-table th,
.nt-table td {
    padding: 3px 2px;
    text-align: left;
    border-bottom: 1px solid var(--nt-border);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nt-table th {
    font-size: 4.4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--nt-muted);
}

.nt-tag {
    display: inline-flex;
    font-style: normal;
    font-size: 4.5px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 99px;
}

.nt-tag.is-ok { background: rgba(34, 197, 94, 0.14); color: #15803d; }
.nt-tag.is-warn { background: rgba(245, 158, 11, 0.16); color: #b45309; }

.nt-card-ex ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nt-card-ex li {
    background: var(--nt-bg);
    border-radius: 6px;
    padding: 4px 5px;
}

.nt-card-ex b {
    display: block;
    font-size: 5.4px;
}

.nt-card-ex span {
    display: block;
    font-size: 4.6px;
    color: var(--nt-muted);
}

.nt-rutas-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 5px;
    flex-shrink: 0;
}

.nt-rutas-head h3 {
    margin: 0 0 2px;
    font-size: 8.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nt-ai {
    font-style: normal;
    font-size: 5px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 99px;
    background: linear-gradient(135deg, #7c3aed, #0ea5e9);
    color: #fff;
}

.nt-rutas-head p {
    margin: 0;
    font-size: 5.2px;
    color: var(--nt-muted);
    max-width: 220px;
    line-height: 1.25;
}

.nt-rutas-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.nt-btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 4px 7px;
    font-family: inherit;
    font-size: 5.2px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.nt-btn.is-orange {
    background: #fff;
    border-color: #fb923c;
    color: #c2410c;
}

.nt-btn.is-blue {
    background: #0ea5e9;
    color: #fff;
}

.nt-rutas-body {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 5px;
    align-items: stretch;
}

.nt-rutas-side {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 0;
}

.nt-rutas-side article {
    flex: 0 0 auto;
    background: var(--nt-panel);
    border: 1px solid var(--nt-border);
    border-radius: 8px;
    padding: 5px 6px 8px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.nt-rutas-side article:last-child {
    flex: 1 1 auto;
    min-height: 36px;
}

.nt-rutas-side header {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.nt-rutas-side header i {
    width: 9px;
    height: 9px;
    border-radius: 3px;
    flex-shrink: 0;
    background: rgba(14, 165, 233, 0.16);
    position: relative;
}

.nt-rutas-side header i.is-compass::before,
.nt-rutas-side header i.is-shield::before,
.nt-rutas-side header i.is-pin::before {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    border: 1.2px solid #0284c7;
}

.nt-rutas-side header i.is-shield::before {
    border-radius: 40% 40% 45% 45%;
    border-color: #ea580c;
}

.nt-rutas-side header i.is-pin {
    background: rgba(14, 165, 233, 0.14);
}

.nt-rutas-side header i.is-pin::before {
    inset: 1.5px 2.5px 2.5px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: #0284c7;
    border: 0;
}

.nt-rutas-side strong {
    font-size: 5.6px;
    font-weight: 800;
    color: var(--nt-text);
}

.nt-rutas-side a {
    margin-left: auto;
    font-size: 5px;
    font-weight: 800;
    color: #dc2626;
    text-decoration: none;
    white-space: nowrap;
}

.nt-rutas-side a.is-blue { color: #0284c7; }

.nt-rutas-side p {
    margin: 8px 0 0;
    font-size: 5px;
    color: var(--nt-muted);
    line-height: 1.3;
}

.nt-map {
    position: relative;
    align-self: stretch;
    min-height: 0;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--nt-border);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    background:
        #e8eef3 url("../img/sistemas/nova/nt-map-mexico.jpg") center center / cover no-repeat;
}

.nt-zoom {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 4px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.nt-zoom span {
    width: 16px;
    height: 15px;
    display: grid;
    place-items: center;
    font-size: 9px;
    font-weight: 700;
    color: #475569;
    line-height: 1;
}

.nt-zoom span + span {
    border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.nt-map-ai {
    position: absolute;
    left: 6px;
    bottom: 6px;
    font-style: normal;
    font-size: 5px;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 99px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .nt-view,
    .nt-view.is-active,
    .nt-view.is-leaving,
    .jt-floater[data-nt-floater],
    .nt-view-btn {
        transition: none !important;
    }
}

/*----------------------------------------------------
    NovaWMS — UI real (mini warehouse)
-----------------------------------------------------*/

.jt-showcase[data-system="wms"] {
    max-width: 720px;
    padding: 5.5rem 4.25rem 3rem;
}

.jt-showcase[data-system="wms"] .jt-laptop-wide { z-index: 7; }

.jt-showcase[data-system="wms"] .jt-laptop-screen.has-real-ui {
    height: 318px;
    min-height: 318px;
    max-height: 318px;
}

.jt-showcase[data-system="wms"] .jt-floater-kpi {
    top: -6%;
    left: -8%;
}

.jt-showcase[data-system="wms"] .jt-floater-status {
    top: -2%;
    right: -8%;
}

.jt-showcase[data-system="wms"] .jt-floater-chip {
    bottom: 10%;
    left: -10%;
}

.jt-showcase[data-system="wms"] .jt-floater-mini {
    bottom: -6%;
    right: -8%;
}

.nw-view-switch {
    position: absolute;
    top: 0.35rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9;
    display: flex;
    gap: 4px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(19, 48, 102, 0.12);
    backdrop-filter: blur(8px);
}

.nw-view-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
}

.nw-view-btn:hover { color: #0284c7; }

.nw-view-btn.is-active {
    background: linear-gradient(135deg, #0369a1, #38bdf8);
    color: #fff;
}

.jt-floater[data-nw-floater] {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

.jt-floater[data-nw-floater].is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px) scale(0.96);
}

.nw-app {
    --nw-bg: #eef4fb;
    --nw-panel: #ffffff;
    --nw-text: #0f172a;
    --nw-muted: #64748b;
    --nw-border: #e2e8f0;
    --nw-soft: #f8fafc;
    --nw-accent: #0284c7;
    --nw-side: #ffffff;
    height: 100%;
    min-height: 318px;
    max-height: 318px;
    display: grid;
    grid-template-columns: 108px 1fr;
    overflow: hidden;
    background: var(--nw-bg);
    color: var(--nw-text);
    font-family: var(--font-primary);
}

.nw-app.is-dark {
    --nw-bg: #0b1220;
    --nw-panel: #152033;
    --nw-text: #e2e8f0;
    --nw-muted: #94a3b8;
    --nw-border: #243247;
    --nw-soft: #111827;
    --nw-accent: #38bdf8;
    --nw-side: #0f172a;
}

.jt-laptop-screen.has-real-ui:has(.nw-app.is-dark) {
    background: #0b1220;
}

.nw-side {
    display: flex;
    flex-direction: column;
    background: var(--nw-side);
    border-right: 1px solid var(--nw-border);
    padding: 6px 5px 5px;
    min-width: 0;
    overflow: hidden;
}

.nw-brand {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
}

.nw-brand i {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background:
        #fff url("../img/sistemas/nova/nova-wms.jpg") center 28% / 150% no-repeat;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.nw-brand strong {
    display: block;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #0369a1;
    line-height: 1;
}

.nw-brand em {
    display: block;
    font-style: normal;
    font-size: 6px;
    font-weight: 700;
    color: var(--nw-muted);
}

.nw-menu-label,
.nw-sub-label {
    margin: 4px 0 2px;
    padding: 0 4px;
    font-size: 4.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--nw-muted);
}

.nw-nav {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.nw-nav button {
    appearance: none;
    border: 0;
    background: transparent;
    text-align: left;
    font-family: inherit;
    font-size: 5.8px;
    font-weight: 700;
    color: var(--nw-muted);
    padding: 3.5px 5px;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nw-nav button:disabled { opacity: 0.55; cursor: default; }

.nw-nav button.is-on {
    background: rgba(2, 132, 199, 0.14);
    color: var(--nw-accent);
}

.nw-nav button.is-parent {
    color: var(--nw-text);
    font-weight: 800;
}

.nw-nav button.is-sub {
    display: none;
    padding-left: 10px;
    font-size: 5.2px;
}

.nw-nav .nw-sub-label { display: none; }

.nw-nav.is-mat-open .nw-sub-label[data-nw-group="mat"] { display: block; }

.nw-nav.is-mat-open > button.is-sub[data-nw-group="mat"],
.nw-nav.is-cfg-open > button.is-sub[data-nw-group="cfg"] {
    display: block;
}

.nw-user {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid var(--nw-border);
}

.nw-user b {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 6px;
    font-weight: 800;
    background: var(--nw-accent);
    color: #fff;
    flex-shrink: 0;
}

.nw-user strong {
    display: block;
    font-size: 5.8px;
    line-height: 1.1;
}

.nw-user span {
    display: block;
    font-size: 4.6px;
    color: var(--nw-muted);
}

.nw-user > div { min-width: 0; flex: 1; }

.nw-logout {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    border: 1.2px solid #ef4444;
    border-left: 0;
    position: relative;
    flex-shrink: 0;
    opacity: 0.85;
}

.nw-logout::before {
    content: "";
    position: absolute;
    left: -3px;
    top: 3px;
    width: 5px;
    height: 1.4px;
    background: #ef4444;
}

.nw-ghost {
    appearance: none;
    border: 1px solid var(--nw-border);
    background: var(--nw-panel);
    border-radius: 6px;
    padding: 3px 6px;
    font-family: inherit;
    font-size: 5.2px;
    font-weight: 700;
    color: var(--nw-muted);
    cursor: default;
    white-space: nowrap;
}

.nw-ghost.is-muted { opacity: 0.55; }

.nw-mat-only { display: none; }

.nw-app[data-nw-view="materiales"] .nw-mat-only {
    display: inline-flex;
    align-items: center;
}

.nw-table-mat th:last-child,
.nw-table-mat td:last-child {
    width: 22px;
    text-align: right;
}

.nw-acts {
    white-space: nowrap;
}

.nw-acts i,
.nw-acts em {
    display: inline-block;
    vertical-align: middle;
    margin-left: 2px;
}

.nw-acts i {
    width: 7px;
    height: 7px;
    border: 1.2px solid var(--nw-muted);
    border-radius: 50%;
    position: relative;
    box-sizing: border-box;
}

.nw-acts i::after {
    content: "";
    position: absolute;
    inset: 1.5px;
    border-radius: 50%;
    background: var(--nw-muted);
}

.nw-acts em {
    width: 0;
    height: 0;
    border-left: 2.5px solid transparent;
    border-right: 2.5px solid transparent;
    border-top: 3px solid var(--nw-muted);
    font-style: normal;
}

.nw-stage {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--nw-bg);
}

.nw-top {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 6px 8px 4px;
}

.nw-top h3 {
    margin: 0;
    font-size: 10px;
    font-weight: 800;
}

.nw-top-tools {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nw-company {
    background: var(--nw-panel);
    border: 1px solid var(--nw-border);
    border-radius: 99px;
    padding: 3px 7px;
    font-size: 5.5px;
    font-weight: 700;
    color: var(--nw-text);
}

.nw-theme {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid var(--nw-border);
    background: var(--nw-panel);
    cursor: pointer;
    position: relative;
    padding: 0;
}

.nw-theme i {
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #fbbf24;
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.35);
}

.nw-app.is-dark .nw-theme i {
    background: #60a5fa;
    box-shadow: none;
}

.nw-panels {
    flex: 1;
    min-height: 0;
    display: grid;
    overflow: hidden;
}

.nw-view {
    grid-area: 1 / 1;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 2px 8px 7px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(12px);
    transition: opacity 0.4s ease, transform 0.45s ease, visibility 0.4s ease;
    z-index: 0;
}

.nw-view[hidden] { display: none !important; }

.nw-view.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    z-index: 2;
}

.nw-view.is-leaving {
    display: flex !important;
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    transform: translateX(-10px);
    z-index: 1;
}

.nw-welcome {
    margin: auto;
    width: min(100%, 260px);
    background: var(--nw-panel);
    border: 1px solid var(--nw-border);
    border-radius: 12px;
    padding: 14px 14px 10px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.nw-welcome-logo {
    display: block;
    width: 42px;
    height: 42px;
    margin: 0 auto 6px;
    border-radius: 50%;
    background:
        #fff url("../img/sistemas/nova/nova-wms.jpg") center 30% / 160% no-repeat;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.18);
}

.nw-pill {
    display: inline-flex;
    font-style: normal;
    font-size: 5.5px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 99px;
}

.nw-pill.is-ok {
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
}

.nw-welcome h4 {
    margin: 6px 0 4px;
    font-size: 12px;
    font-weight: 800;
}

.nw-welcome h4 span { color: var(--nw-accent); }

.nw-welcome p {
    margin: 0 0 8px;
    font-size: 6px;
    line-height: 1.35;
    color: var(--nw-muted);
}

.nw-welcome-meta {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.nw-welcome-meta span {
    background: var(--nw-soft);
    border: 1px solid var(--nw-border);
    border-radius: 99px;
    padding: 3px 7px;
    font-size: 5px;
    color: var(--nw-muted);
}

.nw-welcome-meta b { color: var(--nw-text); }

.nw-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 5px;
    flex-shrink: 0;
}

.nw-search {
    flex: 1;
    background: var(--nw-panel);
    border: 1px solid var(--nw-border);
    border-radius: 7px;
    padding: 5px 7px;
    font-size: 5.8px;
    color: var(--nw-muted);
}

.nw-chip {
    appearance: none;
    border: 1px solid var(--nw-border);
    background: var(--nw-panel);
    border-radius: 7px;
    padding: 4px 6px;
    font-family: inherit;
    font-size: 5.5px;
    font-weight: 700;
    color: var(--nw-text);
    cursor: pointer;
    white-space: nowrap;
}

.nw-table-wrap {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    background: var(--nw-panel);
    border: 1px solid var(--nw-border);
    border-radius: 8px;
}

.nw-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 5.4px;
}

.nw-table th,
.nw-table td {
    padding: 4px 5px;
    text-align: left;
    border-bottom: 1px solid var(--nw-border);
    vertical-align: top;
}

.nw-table th {
    font-size: 4.8px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--nw-muted);
    background: var(--nw-soft);
}

.nw-table td b {
    color: var(--nw-accent);
    font-size: 5.6px;
}

.nw-table td small {
    display: block;
    margin-top: 1px;
    color: var(--nw-muted);
    font-size: 4.8px;
}

.nw-tag {
    display: inline-flex;
    font-style: normal;
    font-size: 5px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 99px;
}

.nw-tag.is-in { background: rgba(34, 197, 94, 0.14); color: #15803d; }
.nw-tag.is-out { background: rgba(239, 68, 68, 0.14); color: #b91c1c; }
.nw-tag.is-adj { background: rgba(245, 158, 11, 0.16); color: #b45309; }

.nw-app.is-dark .nw-pill.is-ok { color: #86efac; }
.nw-app.is-dark .nw-tag.is-in { color: #86efac; }
.nw-app.is-dark .nw-tag.is-out { color: #fca5a5; }
.nw-app.is-dark .nw-tag.is-adj { color: #fcd34d; }
.nw-app.is-dark .nw-brand strong { color: #7dd3fc; }

@media (prefers-reduced-motion: reduce) {
    .nw-view,
    .nw-view.is-active,
    .nw-view.is-leaving,
    .jt-floater[data-nw-floater],
    .nw-view-btn {
        transition: none !important;
    }
}

/*----------------------------------------------------
    NovaEscolar — UI real (mini dashboard)
-----------------------------------------------------*/

.jt-showcase[data-system="nova"] {
    max-width: 720px;
    padding: 5.5rem 4.25rem 3rem;
}

.jt-showcase[data-system="nova"] .jt-laptop-wide {
    z-index: 7;
}

.jt-showcase[data-system="nova"] .jt-floater-kpi {
    top: -6%;
    left: -8%;
}

.jt-showcase[data-system="nova"] .jt-floater-status {
    top: -2%;
    right: -8%;
}

.jt-showcase[data-system="nova"] .jt-floater-chip {
    bottom: 10%;
    left: -10%;
}

.jt-showcase[data-system="nova"] .jt-floater-mini {
    bottom: -6%;
    right: -8%;
}

.jt-floater-kpi.is-nova strong,
.jt-floater-chip.is-nova {
    color: #c14630;
}

.jt-floater-chip.is-nova {
    background: rgba(193, 70, 48, 0.12);
}

.nv-view-switch {
    position: absolute;
    top: 0.35rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px;
    max-width: min(100% - 1rem, 460px);
    padding: 4px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(19, 48, 102, 0.12);
    backdrop-filter: blur(8px);
}

.nv-view-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 9px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
    white-space: nowrap;
}

.nv-view-btn:hover { color: #c14630; }

.nv-view-btn.is-active {
    background: #c14630;
    color: #fff;
    transform: translateY(-1px);
}

.jt-floater[data-nv-floater] {
    opacity: 1;
    visibility: visible;
    transition:
        opacity 0.4s ease,
        visibility 0.4s ease,
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        translate 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.jt-floater[data-nv-floater].is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px) scale(0.96);
}

.nv-app {
    display: grid;
    grid-template-columns: 86px 1fr;
    height: 100%;
    min-height: 318px;
    max-height: 318px;
    font-family: var(--font-primary);
    color: #1f2937;
    overflow: hidden;
    --nv-bg: #f4f5f7;
    --nv-panel: #ffffff;
    --nv-text: #111827;
    --nv-muted: #6b7280;
    --nv-border: #e5e7eb;
    --nv-side: #c14630;
    --nv-side-deep: #9f3422;
}

.nv-side {
    background: linear-gradient(180deg, #c14630 0%, #a33824 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 5px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

.nv-brand {
    font-size: 7px;
    font-weight: 800;
    color: #fff;
    padding: 0 3px 4px;
    letter-spacing: 0.01em;
}

.nv-sec {
    margin: 2px 3px 0;
    font-size: 4.6px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.nv-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.nv-nav li {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3.5px 5px;
    border-radius: 5px;
    font-size: 5.3px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
    cursor: pointer;
}

.nv-nav li span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    flex-shrink: 0;
}

.nv-nav li.is-on {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.nv-nav li.is-on span { background: #fff; }

.nv-nav li.is-parent { font-weight: 800; }

.nv-nav li.nv-sec-label {
    margin-top: 4px;
    padding: 2px 3px;
    font-size: 4.5px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    cursor: default;
}

.nv-nav li.nv-sec-label span { display: none; }

.nv-nav li.is-sub {
    display: none;
    padding-left: 10px;
    font-size: 5px;
    color: rgba(255, 255, 255, 0.75);
}

.nv-nav.is-group-escolar-open > [data-nv-group="escolar"].is-sub,
.nv-nav.is-group-clientes-open > [data-nv-group="clientes"].is-sub {
    display: flex;
}

.nv-nav li.is-sub.is-on {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.nv-stage {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--nv-bg);
    overflow: hidden;
}

.nv-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 6px 8px;
    background: var(--nv-panel);
    border-bottom: 1px solid var(--nv-border);
    flex-shrink: 0;
}

.nv-top-title {
    font-size: 7.5px;
    font-weight: 800;
    color: var(--nv-text);
}

.nv-user {
    display: flex;
    align-items: center;
    gap: 5px;
    text-align: right;
}

.nv-user strong {
    display: block;
    font-size: 5.6px;
    color: var(--nv-text);
}

.nv-user em {
    display: block;
    font-style: normal;
    font-size: 4.8px;
    color: var(--nv-muted);
}

.nv-user > span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 5px;
    font-weight: 800;
    color: #fff;
    background: #c14630;
}

.nv-panels {
    display: grid;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.nv-view {
    grid-area: 1 / 1;
    min-height: 0;
    min-width: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(14px);
    transition:
        opacity 0.42s ease,
        transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.42s ease;
    z-index: 0;
}

.nv-view[hidden] { display: none !important; }

.nv-view.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    z-index: 2;
    overflow: hidden;
    height: 100%;
}

.nv-view.is-leaving {
    display: block !important;
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    transform: translateX(-12px);
    z-index: 1;
    overflow: hidden;
    height: 100%;
}

.nv-main {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 6px 7px 7px;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    box-sizing: border-box;
    background: var(--nv-bg);
}

.nv-welcome {
    background: linear-gradient(120deg, #c14630, #a33824);
    color: #fff;
    border-radius: 8px;
    padding: 8px 10px;
    flex-shrink: 0;
}

.nv-welcome p {
    margin: 0;
    font-size: 5.5px;
    font-weight: 700;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.nv-welcome h3 {
    margin: 2px 0;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
}

.nv-welcome span {
    font-size: 5.4px;
    opacity: 0.9;
}

.nv-dash-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.85fr;
    gap: 5px;
    min-height: 0;
    flex: 1;
}

.nv-school-card,
.nv-timbre-card {
    background: var(--nv-panel);
    border: 1px solid var(--nv-border);
    border-radius: 8px;
    padding: 7px;
    overflow: hidden;
}

.nv-school-logo {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    display: grid;
    place-items: center;
    font-size: 8px;
    font-weight: 800;
    color: #fff;
    background: #c14630;
    margin-bottom: 4px;
}

.nv-school-card strong {
    display: block;
    font-size: 6.2px;
    color: var(--nv-text);
    margin-bottom: 3px;
}

.nv-school-card p {
    margin: 0 0 2px;
    font-size: 5.2px;
    color: var(--nv-muted);
}

.nv-license {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    margin-top: 6px;
    padding: 4px 5px;
    border-radius: 5px;
    background: #111827;
    color: #fff;
    font-size: 4.8px;
}

.nv-license b { color: #86efac; }

.nv-timbre-card {
    border-left: 3px solid #0d9488;
}

.nv-timbre-card strong {
    display: block;
    font-size: 5.4px;
    font-weight: 800;
    color: #0f766e;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.nv-timbre-card > b {
    display: block;
    margin: 4px 0 2px;
    font-size: 18px;
    font-weight: 800;
    color: var(--nv-text);
    line-height: 1;
}

.nv-timbre-card p {
    margin: 0;
    font-size: 5.2px;
    color: var(--nv-muted);
}

.nv-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-shrink: 0;
}

.nv-crumbs {
    font-size: 5.6px;
    font-weight: 700;
    color: #2563eb;
}

.nv-actions {
    display: flex;
    gap: 3px;
}

.nv-btn {
    appearance: none;
    border: 0;
    font-family: inherit;
    font-size: 5.4px;
    font-weight: 700;
    padding: 4px 7px;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
}

.nv-btn.is-green {
    background: #15803d;
    color: #fff;
}

.nv-btn.is-ghost {
    background: var(--nv-panel);
    color: var(--nv-text);
    border: 1px solid var(--nv-border);
}

.nv-table-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    font-size: 5.2px;
    color: var(--nv-muted);
    flex-shrink: 0;
}

.nv-search {
    background: var(--nv-panel);
    border: 1px solid var(--nv-border);
    border-radius: 5px;
    padding: 3px 7px;
    color: var(--nv-muted);
}

.nv-table-wrap {
    flex: 1;
    min-height: 0;
    overflow: auto;
    background: var(--nv-panel);
    border: 1px solid var(--nv-border);
    border-radius: 8px;
}

.nv-table {
    width: 100%;
    border-collapse: collapse;
}

.nv-table th,
.nv-table td {
    padding: 4px 6px;
    font-size: 5.3px;
    text-align: left;
    border-bottom: 1px solid var(--nv-border);
    vertical-align: middle;
    color: var(--nv-text);
}

.nv-table th {
    font-size: 5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--nv-muted);
    background: #f9fafb;
}

.nv-pill {
    display: inline-flex;
    font-style: normal;
    font-size: 4.6px;
    font-weight: 700;
    padding: 1.5px 5px;
    border-radius: 99px;
    background: #e5e7eb;
    color: #374151;
}

.nv-pill.is-blue { background: #dbeafe; color: #1d4ed8; }
.nv-pill.is-purple { background: #ede9fe; color: #6d28d9; }
.nv-pill.is-orange { background: #ffedd5; color: #c2410c; }
.nv-pill.is-ok { background: #dcfce7; color: #15803d; }
.nv-pill.is-warn { background: #f3f4f6; color: #4b5563; }

.nv-table-comp td b {
    display: block;
    font-size: 5.4px;
}

.nv-table-comp td em {
    display: block;
    font-style: normal;
    font-size: 4.8px;
    color: var(--nv-muted);
}

.nv-table-comp td.is-folio {
    color: #c14630;
    font-weight: 800;
}

.nv-table-comp td i.nv-pill {
    margin-top: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .nv-view,
    .nv-view.is-active,
    .nv-view.is-leaving,
    .jt-floater[data-nv-floater],
    .nv-view-btn {
        transition: none !important;
    }
}

/*----------------------------------------------------
    Talentica — UI real (mini dashboard)
-----------------------------------------------------*/

.jt-showcase[data-system="talentica"] {
    max-width: 720px;
    padding: 5.5rem 4.25rem 3rem;
}

.jt-showcase[data-system="talentica"] .jt-laptop-wide {
    z-index: 7;
}

.tal-view-switch {
    position: absolute;
    top: 0.35rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px;
    max-width: min(100% - 1rem, 520px);
    padding: 4px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(19, 48, 102, 0.12);
    backdrop-filter: blur(8px);
}

.tal-view-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 9px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
    white-space: nowrap;
}

.tal-view-btn:hover { color: #1d4ed8; }

.tal-view-btn.is-active {
    background: #1e293b;
    color: #fff;
    transform: translateY(-1px);
}

.jt-floater[data-tal-floater] {
    opacity: 1;
    visibility: visible;
    transition:
        opacity 0.4s ease,
        visibility 0.4s ease,
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        translate 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.jt-floater[data-tal-floater].is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px) scale(0.96);
}

.tal-app {
    display: grid;
    grid-template-columns: 88px 1fr;
    height: 100%;
    min-height: 318px;
    max-height: 318px;
    font-family: var(--font-primary);
    color: #0f172a;
    overflow: hidden;
    --tal-bg: #f4f6fb;
    --tal-panel: #ffffff;
    --tal-text: #0f172a;
    --tal-muted: #64748b;
    --tal-border: #e2e8f0;
    --tal-side: #151b33;
    --tal-accent: #2563eb;
}

.tal-side {
    background: var(--tal-side);
    color: rgba(255, 255, 255, 0.78);
    padding: 8px 5px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
}

.tal-brand {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 3px 4px;
}

.tal-mark {
    width: 16px;
    height: 16px;
    border-radius: 5px;
    display: grid;
    place-items: center;
    font-size: 8px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.tal-brand strong {
    font-size: 7px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.02em;
}

.tal-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.tal-nav li {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3.5px 5px;
    border-radius: 5px;
    font-size: 5.4px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.tal-nav li span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
}

.tal-nav li.is-on {
    background: rgba(59, 130, 246, 0.28);
    color: #fff;
}

.tal-nav li.is-on span { background: #93c5fd; }

.tal-nav li.is-parent {
    font-weight: 800;
    color: #fff;
}

.tal-nav li.is-sub {
    display: none;
    padding-left: 10px;
    font-size: 5.1px;
    color: rgba(255, 255, 255, 0.58);
}

.tal-nav.is-group-personal-open > [data-tal-group="personal"].is-sub,
.tal-nav.is-group-cursos-open > [data-tal-group="cursos"].is-sub,
.tal-nav.is-group-biblioteca-open > [data-tal-group="biblioteca"].is-sub,
.tal-nav.is-group-reportes-open > [data-tal-group="reportes"].is-sub {
    display: flex;
}

.tal-nav li.is-sub.is-on {
    background: rgba(59, 130, 246, 0.22);
    color: #fff;
}

.tal-logout {
    margin-top: auto;
    font-size: 5px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    padding: 4px 5px;
}

.tal-stage {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--tal-bg);
    overflow: hidden;
}

.tal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 6px 8px;
    background: var(--tal-panel);
    border-bottom: 1px solid var(--tal-border);
    flex-shrink: 0;
}

.tal-top-title {
    font-size: 7.5px;
    font-weight: 800;
    color: var(--tal-text);
}

.tal-user {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 5.5px;
    font-weight: 700;
    color: var(--tal-muted);
}

.tal-user em {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-style: normal;
    font-size: 5px;
    font-weight: 800;
    color: #fff;
    background: #1e293b;
}

.tal-panels {
    display: grid;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.tal-view {
    grid-area: 1 / 1;
    min-height: 0;
    min-width: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(14px);
    transition:
        opacity 0.42s ease,
        transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.42s ease;
    z-index: 0;
}

.tal-view[hidden] { display: none !important; }

.tal-view.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    z-index: 2;
    overflow: hidden;
    height: 100%;
}

.tal-view.is-leaving {
    display: block !important;
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    transform: translateX(-12px);
    z-index: 1;
    overflow: hidden;
    height: 100%;
}

.tal-main {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 6px 7px 7px;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    box-sizing: border-box;
    background: var(--tal-bg);
}

.tal-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 6px 7px;
    background: var(--tal-panel);
    border: 1px solid var(--tal-border);
    border-radius: 8px;
    flex-shrink: 0;
}

.tal-hero.is-compact { padding: 5px 7px; }

.tal-badge {
    display: inline-block;
    font-size: 5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.tal-badge.is-ok { color: #16a34a; }
.tal-badge.is-purple { color: #7c3aed; }
.tal-badge.is-blue { color: #2563eb; }

.tal-hero h3 {
    margin: 1px 0;
    font-size: 9px;
    font-weight: 800;
    color: var(--tal-text);
    line-height: 1.15;
}

.tal-hero p {
    margin: 0;
    font-size: 5.4px;
    color: var(--tal-muted);
}

.tal-btn {
    appearance: none;
    border: 0;
    background: #1e293b;
    color: #fff;
    font-family: inherit;
    font-size: 5.8px;
    font-weight: 700;
    padding: 5px 8px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.tal-btn.is-outline {
    background: var(--tal-panel);
    color: #1e293b;
    border: 1px solid var(--tal-border);
}

.tal-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    flex-shrink: 0;
}

.tal-kpi {
    background: var(--tal-panel);
    border: 1px solid var(--tal-border);
    border-top: 2px solid #2563eb;
    border-radius: 7px;
    padding: 5px 6px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.tal-kpi.is-blue { border-top-color: #2563eb; }
.tal-kpi.is-purple { border-top-color: #7c3aed; }
.tal-kpi.is-green { border-top-color: #16a34a; }
.tal-kpi.is-orange { border-top-color: #ea580c; }

.tal-kpi b {
    font-size: 11px;
    font-weight: 800;
    color: var(--tal-text);
    line-height: 1;
}

.tal-kpi span {
    font-size: 5px;
    font-weight: 700;
    color: var(--tal-muted);
    text-transform: uppercase;
}

.tal-grid-2 {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4px;
    min-height: 0;
    flex: 1;
}

.tal-card {
    background: var(--tal-panel);
    border: 1px solid var(--tal-border);
    border-radius: 8px;
    padding: 6px 7px;
    overflow: hidden;
}

.tal-card > strong {
    display: block;
    margin-bottom: 5px;
    font-size: 6.5px;
    font-weight: 800;
    color: var(--tal-text);
}

.tal-hbar {
    display: grid;
    grid-template-columns: 48px 1fr 12px;
    gap: 4px;
    align-items: center;
    margin-bottom: 4px;
    font-size: 5.2px;
    color: var(--tal-muted);
}

.tal-hbar i {
    height: 5px;
    border-radius: 99px;
    background: linear-gradient(90deg, #60a5fa, #2563eb);
    width: var(--w);
}

.tal-hbar i.is-purple {
    background: linear-gradient(90deg, #c4b5fd, #7c3aed);
}

.tal-hbar em {
    font-style: normal;
    font-weight: 800;
    color: var(--tal-text);
    text-align: right;
}

.tal-rank {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    font-size: 5.4px;
    color: var(--tal-muted);
    margin-bottom: 2px;
}

.tal-rank b {
    color: var(--tal-text);
    font-weight: 800;
}

.tal-prog {
    height: 4px;
    border-radius: 99px;
    background: rgba(148, 163, 184, 0.25);
    margin-bottom: 6px;
    overflow: hidden;
}

.tal-prog i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #60a5fa, #2563eb);
}

.tal-prog i.is-purple {
    background: linear-gradient(90deg, #c4b5fd, #7c3aed);
}

.tal-search {
    flex-shrink: 0;
    background: var(--tal-panel);
    border: 1px solid var(--tal-border);
    border-radius: 7px;
    padding: 5px 8px;
    font-size: 5.6px;
    font-weight: 600;
    color: var(--tal-muted);
}

.tal-table-wrap {
    flex: 1;
    min-height: 0;
    overflow: auto;
    background: var(--tal-panel);
    border: 1px solid var(--tal-border);
    border-radius: 8px;
}

.tal-table {
    width: 100%;
    border-collapse: collapse;
}

.tal-table th,
.tal-table td {
    padding: 5px 6px;
    font-size: 5.3px;
    text-align: left;
    border-bottom: 1px solid var(--tal-border);
    vertical-align: middle;
}

.tal-table th {
    font-size: 5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--tal-muted);
    background: #f8fafc;
}

.tal-table td:first-child {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tal-table td:first-child > strong {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 5.5px;
    color: #fff;
    background: #1e293b;
    flex-shrink: 0;
}

.tal-table td:first-child > span {
    display: flex;
    flex-direction: column;
    font-weight: 700;
    color: var(--tal-text);
    line-height: 1.15;
}

.tal-table td:first-child em {
    font-style: normal;
    font-size: 4.8px;
    font-weight: 600;
    color: var(--tal-muted);
}

.tal-pill {
    display: inline-flex;
    font-style: normal;
    font-size: 5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 99px;
}

.tal-pill.is-purple {
    background: #ede9fe;
    color: #6d28d9;
}

.tal-pill.is-blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.tal-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-style: normal;
    font-size: 5px;
    font-weight: 700;
    color: #16a34a;
}

.tal-tag.is-ok::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #22c55e;
}

.tal-course-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    min-height: 0;
    flex: 1;
    align-items: stretch;
}

.tal-course {
    background: var(--tal-panel);
    border: 1px solid var(--tal-border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.tal-course-media {
    position: relative;
    flex: 0 0 58px;
    display: flex;
    align-items: flex-end;
    padding: 6px;
    background:
        linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, 0.72) 100%),
        radial-gradient(circle at 25% 30%, rgba(255, 255, 255, 0.28), transparent 48%),
        linear-gradient(135deg, #34d399, #059669 55%, #0f766e);
}

.tal-course-media.is-green {
    background:
        linear-gradient(180deg, transparent 30%, rgba(15, 23, 42, 0.78) 100%),
        radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.35), transparent 46%),
        linear-gradient(135deg, #86efac, #22c55e 40%, #15803d);
}

.tal-course-media.is-navy {
    background:
        linear-gradient(180deg, transparent 28%, rgba(2, 6, 23, 0.82) 100%),
        radial-gradient(circle at 72% 28%, rgba(96, 165, 250, 0.45), transparent 48%),
        linear-gradient(135deg, #1e3a5f, #0f172a 60%, #020617);
}

.tal-course-status {
    position: absolute;
    top: 5px;
    right: 5px;
    font-style: normal;
    font-size: 4.3px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #fff;
    background: #16a34a;
    padding: 2px 5px;
    border-radius: 99px;
}

.tal-course-status.is-muted {
    background: rgba(226, 232, 240, 0.95);
    color: #334155;
}

.tal-course-title {
    position: relative;
    z-index: 1;
    font-size: 6px;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    max-width: 92%;
}

.tal-course-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 5px 6px 5px;
    flex: 1 1 auto;
    min-height: 0;
}

.tal-course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    flex-shrink: 0;
}

.tal-course-tags span {
    font-size: 4.5px;
    font-weight: 700;
    color: var(--tal-muted);
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 99px;
    padding: 1.5px 5px;
}

.tal-course-tags span.is-blue {
    color: #1d4ed8;
    background: #dbeafe;
    border-color: #bfdbfe;
}

.tal-course-body p {
    margin: 0;
    font-size: 5px;
    color: var(--tal-muted);
    line-height: 1.3;
    flex: 1 1 auto;
    min-height: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tal-course-actions {
    display: flex;
    justify-content: flex-end;
    gap: 3px;
    margin-top: auto;
    padding-top: 2px;
    flex-shrink: 0;
}

.tal-course-actions span {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    border: 1px solid var(--tal-border);
    background: linear-gradient(180deg, #fff, #f8fafc);
    box-shadow: 0 1px 1px rgba(15, 23, 42, 0.04);
}

.tal-biblio {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 5px;
    min-height: 0;
    flex: 1;
}

.tal-cats {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--tal-panel);
    border: 1px solid var(--tal-border);
    border-radius: 8px;
    padding: 4px;
}

.tal-cats span {
    font-size: 5px;
    font-weight: 700;
    color: var(--tal-muted);
    padding: 4px 5px;
    border-radius: 5px;
}

.tal-cats span.is-on {
    background: #1e293b;
    color: #fff;
}

.tal-docs {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 0;
}

.tal-doc {
    background: var(--tal-panel);
    border: 1px solid var(--tal-border);
    border-radius: 8px;
    padding: 6px 7px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 6px;
}

.tal-doc strong {
    font-size: 6px;
    font-weight: 800;
    color: var(--tal-text);
}

.tal-doc em {
    grid-column: 2;
    grid-row: 1;
    font-style: normal;
    font-size: 4.8px;
    font-weight: 700;
    color: #1d4ed8;
    background: #dbeafe;
    padding: 2px 5px;
    border-radius: 99px;
    align-self: start;
}

.tal-doc > span {
    grid-column: 1 / -1;
    font-size: 5px;
    color: var(--tal-muted);
}

.tal-report-card {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.tal-report-row {
    display: grid;
    grid-template-columns: 16px 1fr auto auto;
    gap: 6px;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid var(--tal-border);
}

.tal-report-row:last-child { border-bottom: 0; }

.tal-avatar {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 5.5px;
    font-weight: 800;
    color: #fff;
    background: #1e293b;
}

.tal-report-row div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tal-report-row b {
    font-size: 5.8px;
    color: var(--tal-text);
}

.tal-report-row em {
    font-style: normal;
    font-size: 5px;
    color: var(--tal-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tal-report-row > i {
    font-style: normal;
    font-size: 6px;
    font-weight: 800;
    color: #16a34a;
}

@media (prefers-reduced-motion: reduce) {
    .tal-view,
    .tal-view.is-active,
    .tal-view.is-leaving,
    .jt-floater[data-tal-floater],
    .tal-view-btn {
        transition: none !important;
    }
}

/*----------------------------------------------------
    Motion
-----------------------------------------------------*/

@keyframes jtLaptopGlow {
    0%, 100% {
        filter: drop-shadow(0 28px 48px rgba(16, 24, 40, 0.28));
    }
    50% {
        filter: drop-shadow(0 28px 48px rgba(16, 24, 40, 0.28)) drop-shadow(0 0 28px rgba(57, 96, 235, 0.18));
    }
}

@keyframes jtPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(76, 176, 80, 0.18); }
    50% { box-shadow: 0 0 0 6px rgba(76, 176, 80, 0.08); }
}

@keyframes jtFloatChat {
    from { transform: translateY(0); }
    to { transform: translateY(-8px); }
}

@keyframes jtItemIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Reveal solo en el copy; el showcase no lleva transform (recorta floaters) */
html.jt-sistemas-js .jt-story-row .jt-chapter {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

html.jt-sistemas-js .jt-story-row .jt-showcase {
    opacity: 0;
    transition: opacity 0.5s ease;
}

html.jt-sistemas-js .jt-story-row.is-in .jt-chapter,
html.jt-sistemas-js .jt-story-row.is-in .jt-showcase {
    opacity: 1;
    transform: none;
}

html.jt-sistemas-js .jt-story-row.is-in .jt-showcase {
    transition-delay: 0.06s;
}

/*----------------------------------------------------
    Responsive
-----------------------------------------------------*/

@media (max-width: 1100px) {
    .jt-showcase[data-system="works"],
    .jt-showcase[data-system="nova"],
    .jt-showcase[data-system="talentica"],
    .jt-showcase[data-system="green"] {
        max-width: 640px;
        padding: 5.25rem 2.5rem 2.5rem;
    }

    .jt-showcase[data-system="works"] .jt-floater-kpi {
        left: -4%;
        top: -4%;
    }

    .jt-showcase[data-system="works"] .jt-floater-status {
        right: -4%;
    }

    .jt-showcase[data-system="works"] .jt-floater-chip {
        left: -6%;
    }

    .jt-showcase[data-system="works"] .jt-floater-mini {
        right: -4%;
        bottom: -4%;
    }
}

@media (max-width: 980px) {
    .jt-story-row,
    .jt-story-row.is-flip {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .jt-story-row.is-flip .jt-chapter,
    .jt-story-row.is-flip .jt-story-visual {
        order: initial;
    }

    .jt-chapter {
        max-width: none;
        text-align: center;
    }

    .jt-chapter ul {
        display: inline-block;
        text-align: left;
    }

    .jt-showcase {
        max-width: 560px;
        min-height: 0;
        padding: 1.75rem 1.25rem 2rem;
        transform: none;
    }

    .jt-showcase[data-system="works"],
    .jt-showcase[data-system="nova"],
    .jt-showcase[data-system="talentica"],
    .jt-showcase[data-system="green"] {
        max-width: 560px;
        min-height: 0;
        padding: 5rem 1.25rem 2rem;
        transform: none;
    }

    .jt-laptop,
    .jt-laptop-wide {
        width: min(100%, 480px);
    }

    .jt-floater-kpi {
        top: 0;
        left: 0;
    }

    .jt-floater-status {
        top: 0;
        right: 0;
    }

    .jt-floater-chip {
        bottom: 8%;
        left: 0;
    }

    .jt-floater-mini {
        bottom: 0;
        right: 0;
    }

    .jt-showcase[data-system="works"] .jt-floater-kpi,
    .jt-showcase[data-system="works"] .jt-floater-status,
    .jt-showcase[data-system="works"] .jt-floater-chip,
    .jt-showcase[data-system="works"] .jt-floater-mini {
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
    }

    .jt-showcase[data-system="works"] .jt-floater-kpi {
        top: 0;
        left: 0;
    }

    .jt-showcase[data-system="works"] .jt-floater-status {
        top: 0;
        right: 0;
    }

    .jt-showcase[data-system="works"] .jt-floater-chip {
        bottom: 6%;
        left: 0;
    }

    .jt-showcase[data-system="works"] .jt-floater-mini {
        bottom: 0;
        right: 0;
    }
}

@media (max-width: 900px) {
    .jt-phasebar {
        right: 0.55rem;
        padding: 6px;
        gap: 4px;
        border-radius: 18px;
    }

    .jt-phasebar-btn {
        padding: 8px 10px;
        font-size: 11px;
        writing-mode: horizontal-tb;
    }
}

@media (max-width: 640px) {
    .jt-phasebar {
        top: auto;
        bottom: max(0.75rem, env(safe-area-inset-bottom, 0px) + 0.5rem);
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        flex-direction: row;
        border-radius: 999px;
        max-width: calc(100vw - 1.25rem);
        width: max-content;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        gap: 4px;
        padding: 6px;
    }

    .jt-phasebar-btn {
        padding: 7px 10px;
        font-size: 10px;
        flex: 0 0 auto;
    }

    .jt-phasebar-btn.is-active {
        transform: translateY(-1px);
    }

    .jt-showcase {
        max-width: 100%;
        padding: 2.75rem 1.15rem 3.5rem;
        margin-inline: auto;
        overflow: hidden;
    }

    .jt-showcase[data-system="works"],
    .jt-showcase[data-system="nova"],
    .jt-showcase[data-system="talentica"],
    .jt-showcase[data-system="green"],
    .jt-showcase[data-system="blue"],
    .jt-showcase[data-system="torre"],
    .jt-showcase[data-system="ali"],
    .jt-showcase[data-system="crm"],
    .jt-showcase[data-system="pulse"],
    .jt-showcase[data-system="wms"],
    .jt-showcase[data-system="tms"],
    .jt-showcase[data-system="trackit"] {
        max-width: 100%;
        padding: 4.5rem 1.15rem 3.5rem;
        overflow: hidden;
    }

    .jt-laptop,
    .jt-laptop-wide {
        width: min(100%, 100%);
    }

    .jt-laptop-screen.has-real-ui,
    .ow-app,
    .tal-app,
    .nv-app {
        height: 280px;
        min-height: 280px;
        max-height: 280px;
    }

    .gb-app,
    .bb-app,
    .tc-app,
    .ao-app {
        height: 300px;
        min-height: 300px;
        max-height: 300px;
    }

    .tal-view-btn,
    .nv-view-btn,
    .gb-view-btn,
    .bb-view-btn,
    .tc-view-btn,
    .ao-view-btn,
    .oc-view-btn,
    .op-view-btn,
    .nw-view-btn,
    .nt-view-btn,
    .tk-view-btn {
        font-size: 9px;
        padding: 5px 7px;
    }

    .jt-showcase[data-system="wms"] .jt-laptop-screen.has-real-ui,
    .jt-showcase[data-system="tms"] .jt-laptop-screen.has-real-ui,
    .jt-showcase[data-system="trackit"] .jt-laptop-screen.has-real-ui,
    .nw-app,
    .nt-app,
    .tk-app {
        height: 300px;
        min-height: 300px;
        max-height: 300px;
    }

    .op-devices {
        width: 100%;
        gap: 6px;
    }

    .op-phone {
        width: 96px;
    }

    .op-phone-screen {
        height: 180px;
    }

    .ow-app {
        grid-template-columns: 78px 1fr;
    }

    .ow-nav li {
        font-size: 5.8px;
        padding: 2.5px 4px;
    }

    .ow-kpis {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 3px;
    }

    .ow-kpi {
        padding: 4px 5px;
    }

    .ow-kpi b {
        font-size: 8.5px;
    }

    .ow-kpi span {
        font-size: 5px;
    }

    .ow-charts {
        grid-template-columns: 1.2fr 1fr;
        gap: 4px;
    }

    .ow-bars {
        height: 64px;
    }

    .ow-donut {
        width: 58px;
        height: 58px;
    }

    .jt-floater-kpi,
    .jt-floater-mini {
        min-width: 92px;
        padding: 8px 10px;
        transform: scale(0.92);
        transform-origin: center;
    }

    .jt-floater-kpi strong {
        font-size: 1.05rem;
    }

    .jt-floater-status {
        font-size: 9px;
        padding: 7px 10px;
    }

    .jt-floater-chip {
        font-size: 10px;
        padding: 6px 10px;
    }

    .jt-chat {
        left: 0;
        max-width: 150px;
    }

    .jt-ui-tabs span:nth-child(3) {
        display: none;
    }
}

@media (max-width: 480px) {
    .jt-showcase[data-system="works"] .jt-floater-status,
    .jt-floater-chip {
        display: none;
    }

    .ow-app {
        grid-template-columns: 70px 1fr;
    }

    .ow-charts {
        grid-template-columns: 1fr;
    }

    .ow-card:not(.ow-card-wide) {
        display: none;
    }

    .ow-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .jt-floater-kpi {
        top: -0.5rem;
        left: 0.25rem;
    }

    .jt-floater-mini {
        bottom: -0.75rem;
        right: 0.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jt-laptop,
    .jt-chat,
    .jt-dot.is-live,
    html.jt-sistemas-js .jt-ui-row,
    html.jt-sistemas-js .jt-story-row .jt-chapter,
    html.jt-sistemas-js .jt-story-row .jt-showcase {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    html.jt-sistemas-js .jt-story-row .jt-showcase {
        transform: none !important;
    }
}

