.x-eo-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.x-eo-media-card {
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}

.x-eo-media-thumb {
    position: relative;
    height: 240px;
    background: #0b1120;
    overflow: hidden;
}

.x-eo-media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.x-eo-media-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #dcfce7;
    background: rgba(22, 163, 74, .20);
    border: 1px solid rgba(34, 197, 94, .35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.x-eo-media-order {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    min-width: 32px;
    height: 32px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: rgba(15, 23, 42, .74);
    border: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.x-eo-media-caption {
    position: absolute;
    text-align: center;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
    background: rgba(0, 0, 0, .42);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .16);
}

.x-eo-media-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px;
}

.x-eo-btn {
    border: 0;
    border-radius: 12px;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: .18s ease;
}

.x-eo-btn:hover {
    transform: translateY(-1px);
}

.x-eo-btn--soft {
    color: #e5e7eb;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
}

.x-eo-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 8px 18px rgba(37, 99, 235, .28);
}

.x-eo-empty {
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    color: #94a3b8;
    border: 1px dashed rgba(148, 163, 184, .28);
    background: rgba(15, 23, 42, .32);
}

.x-eo-media-card__preview {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.x-eo-media-card__fav {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 4;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 24, 39, .72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .08);
    color: #facc15;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .20);
}

.x-eo-media-card__index {
    position: absolute;
    top: 12px;
    right: 54px;
    z-index: 4;
}

.x-eo-media-card__delete {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
}

.x-eo-media-datetime {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    z-index: 4;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    max-width: calc(100% - 16px);
    width: max-content;
    pointer-events: none;
}

.x-eo-media-date,
.x-eo-media-time {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
}

@media (max-width: 480px) {
    .x-eo-media-datetime {
        gap: 4px;
        bottom: 10px;
        max-width: calc(100% - 12px);
    }

    .x-eo-media-date,
    .x-eo-media-time {
        font-size: 9px;
        padding: 5px 8px;
        gap: 4px;
    }
}

.x-eo-media-card__footer {
    padding: 12px 14px 14px;
}

.x-eo-media-card__label {
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 4px;
}

.x-eo-media-card__meta {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.35;
}

.x-eo-media-card__meta--editable {
    cursor: pointer;
    transition: .18s ease;
}

.x-eo-media-card__meta--editable:hover {
    color: #e2e8f0;
}

.x-eo-media-card__meta-placeholder {
    color: #cbd5e1;
    opacity: .92;
}

.x-eo-media-card__meta-placeholder i {
    opacity: .85;
}

.x-eo-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.x-eo-media-card--principal {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 215, 0, .25);
}

/* =========================
   VIEWER EVIDENCIAS PRO
========================= */

#modalEvidenciasOrden .modal-dialog {
    max-width: 50vw;
    width: 50vw;
    margin: 1rem auto;
}

@media (max-width: 1400px) {
    #modalEvidenciasOrden .modal-dialog {
        max-width: 50vw;
        width: 50vw;
    }
}

@media (max-width: 991px) {
    #modalEvidenciasOrden .modal-dialog {
        max-width: 84vw;
        width: 84vw;
    }
}

@media (max-width: 767px) {
    #modalEvidenciasOrden .modal-dialog {
        max-width: 100vw;
        width: 100vw;
        margin: 0;
        height: 100vh;
    }
}

#modalEvidenciasOrden .modal-content.x-eo-viewer-modal {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 26px;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, .12), transparent 22%),
        radial-gradient(circle at top right, rgba(168, 85, 247, .10), transparent 20%),
        linear-gradient(180deg, #071226 0%, #020817 100%);
    box-shadow:
        0 30px 90px rgba(0, 0, 0, .55),
        inset 0 1px 0 rgba(255, 255, 255, .04);
    color: #fff;
    min-height: 88vh;
}

/* Header */
.x-eo-viewer-top {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0));
}

.x-eo-viewer-top__title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.x-eo-viewer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    opacity: 1;
    text-shadow: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
    transition: transform .18s ease, background .18s ease, opacity .18s ease;
}

.x-eo-viewer-close span {
    display: block;
    line-height: 1;
    font-size: 26px;
    margin-top: -1px;
}

.x-eo-viewer-close:hover {
    background: rgba(255, 255, 255, .16);
    transform: scale(1.06);
    color: #fff;
}

.x-eo-viewer-close:focus {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(59, 130, 246, .22),
        inset 0 1px 0 rgba(255, 255, 255, .05);
}

/* Body */
.x-eo-viewer-body {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64vh;
    padding: 22px 74px 10px;
}

/* Stage */
.x-eo-viewer-stages {
    position: relative;
    width: 100%;
    min-height: 64vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.x-eo-viewer-stages::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .015));
    border: 1px solid rgba(255, 255, 255, .05);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .03),
        0 18px 50px rgba(0, 0, 0, .18);
    pointer-events: none;
}

#xEoViewerImage {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 100%;
    max-height: 74vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 18px;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, .45),
        0 0 0 1px rgba(255, 255, 255, .05);
    background: rgba(255, 255, 255, .02);
}

/* Nav buttons */
.x-eo-viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 999px;

    background: rgba(15, 23, 42, .55);
    color: #fff;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, .28),
        inset 0 1px 0 rgba(255, 255, 255, .08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transition: transform .18s ease, background .18s ease, opacity .18s ease;
}

.x-eo-viewer-nav i {
    font-size: 18px;
}

.x-eo-viewer-nav:hover {
    background: rgba(30, 41, 59, .78);
    transform: translateY(-50%) scale(1.06);
}

.x-eo-viewer-nav:focus {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(59, 130, 246, .20),
        0 10px 30px rgba(0, 0, 0, .28),
        inset 0 1px 0 rgba(255, 255, 255, .08);
}

.x-eo-viewer-nav--prev {
    left: 14px;
}

.x-eo-viewer-nav--next {
    right: 14px;
}

/* Counter */
.x-eo-viewer-footer {
    padding: 4px 20px 10px;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #cbd5e1;
}

/* Thumbs */
.x-eo-viewer-thumbs {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, .28) transparent;
}

.x-eo-viewer-thumbs::-webkit-scrollbar {
    height: 8px;
}

.x-eo-viewer-thumbs::-webkit-scrollbar-track {
    background: transparent;
}

.x-eo-viewer-thumbs::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, .24);
    border-radius: 999px;
}

/* Si tus thumbs se pintan como botones/divs/imgs, esto cubre la mayoría */
.x-eo-viewer-thumbs .x-eo-thumb,
.x-eo-viewer-thumbs .x-eo-viewer-thumb,
.x-eo-viewer-thumbs button,
.x-eo-viewer-thumbs .thumb-item {
    position: relative;
    flex: 0 0 auto;
    width: 84px;
    height: 84px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, .03);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
    opacity: .62;
    transition: transform .18s ease, opacity .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.x-eo-viewer-thumbs .x-eo-thumb:hover,
.x-eo-viewer-thumbs .x-eo-viewer-thumb:hover,
.x-eo-viewer-thumbs button:hover,
.x-eo-viewer-thumbs .thumb-item:hover {
    opacity: .9;
    transform: translateY(-2px);
}

.x-eo-viewer-thumbs .x-eo-thumb.is-active,
.x-eo-viewer-thumbs .x-eo-viewer-thumb.is-active,
.x-eo-viewer-thumbs button.is-active,
.x-eo-viewer-thumbs .thumb-item.is-active,
.x-eo-viewer-thumbs .active {
    opacity: 1;
    border-color: rgba(59, 130, 246, .85);
    box-shadow:
        0 0 0 2px rgba(59, 130, 246, .18),
        0 12px 28px rgba(0, 0, 0, .18);
}

.x-eo-viewer-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Glow lateral suave */
.x-eo-viewer-modal::before,
.x-eo-viewer-modal::after {
    content: "";
    position: absolute;
    top: 18%;
    bottom: 18%;
    width: 110px;
    z-index: 0;
    pointer-events: none;
    filter: blur(40px);
    opacity: .12;
}

.x-eo-viewer-modal::before {
    left: -30px;
    background: linear-gradient(180deg, rgba(59, 130, 246, .35), rgba(168, 85, 247, .20));
}

.x-eo-viewer-modal::after {
    right: -30px;
    background: linear-gradient(180deg, rgba(34, 197, 94, .16), rgba(59, 130, 246, .25));
}

/* Responsive */
@media (max-width: 1199px) {
    #modalEvidenciasOrden .modal-dialog {
        max-width: 98vw;
        width: 98vw;
    }

    .x-eo-viewer-body {
        padding-left: 62px;
        padding-right: 62px;
    }

    #xEoViewerImage {
        max-height: 70vh;
    }
}

@media (max-width: 991px) {
    .x-eo-viewer-top {
        padding: 16px 16px;
    }

    .x-eo-viewer-top__title {
        font-size: 19px;
    }

    .x-eo-viewer-body {
        min-height: 58vh;
        padding: 18px 52px 8px;
    }

    .x-eo-viewer-stages {
        min-height: 56vh;
    }

    #xEoViewerImage {
        max-height: 64vh;
        border-radius: 14px;
    }

    .x-eo-viewer-nav {
        width: 48px;
        height: 48px;
    }

    .x-eo-viewer-footer {
        font-size: 20px;
        padding-bottom: 8px;
    }

    .x-eo-viewer-thumbs .x-eo-thumb,
    .x-eo-viewer-thumbs .x-eo-viewer-thumb,
    .x-eo-viewer-thumbs button,
    .x-eo-viewer-thumbs .thumb-item {
        width: 74px;
        height: 74px;
        border-radius: 16px;
    }
}

@media (max-width: 767px) {
    #modalEvidenciasOrden .modal-dialog {
        max-width: 100vw;
        width: 100vw;
        margin: 0;
        height: 100vh;
    }

    #modalEvidenciasOrden .modal-content.x-eo-viewer-modal {
        min-height: 100vh;
        height: 100vh;
        border-radius: 0;
    }

    .x-eo-viewer-top {
        padding: 14px 14px;
    }

    .x-eo-viewer-top__title {
        font-size: 17px;
    }

    .x-eo-viewer-close {
        width: 40px;
        height: 40px;
    }

    .x-eo-viewer-body {
        min-height: 50vh;
        padding: 14px 16px 8px;
    }

    .x-eo-viewer-stages {
        min-height: 48vh;
        padding: 0;
    }

    .x-eo-viewer-stages::before {
        inset: 0;
        border-radius: 18px;
    }

    #xEoViewerImage {
        max-height: 56vh;
        max-width: 100%;
        border-radius: 14px;
    }

    .x-eo-viewer-nav {
        width: 44px;
        height: 44px;
        top: auto;
        bottom: 108px;
        transform: none;
    }

    .x-eo-viewer-nav:hover {
        transform: scale(1.04);
    }

    .x-eo-viewer-nav--prev {
        left: 16px;
    }

    .x-eo-viewer-nav--next {
        right: 16px;
    }

    .x-eo-viewer-footer {
        font-size: 18px;
        padding: 6px 14px 8px;
    }

    .x-eo-viewer-thumbs {
        gap: 10px;
        padding: 0 14px 16px;
        justify-content: flex-start !important;
    }

    .x-eo-viewer-thumbs .x-eo-thumb,
    .x-eo-viewer-thumbs .x-eo-viewer-thumb,
    .x-eo-viewer-thumbs button,
    .x-eo-viewer-thumbs .thumb-item {
        width: 68px;
        height: 68px;
        border-radius: 14px;
    }
}

@media (max-width: 480px) {
    .x-eo-viewer-top {
        padding: 12px 12px;
    }

    .x-eo-viewer-top__title {
        font-size: 16px;
    }

    .x-eo-viewer-body {
        padding: 12px 12px 6px;
    }

    .x-eo-viewer-stages {
        min-height: 44vh;
    }

    #xEoViewerImage {
        max-height: 50vh;
        border-radius: 12px;
    }

    .x-eo-viewer-nav {
        width: 42px;
        height: 42px;
        bottom: 96px;
    }

    .x-eo-viewer-footer {
        font-size: 17px;
    }

    .x-eo-viewer-thumbs .x-eo-thumb,
    .x-eo-viewer-thumbs .x-eo-viewer-thumb,
    .x-eo-viewer-thumbs button,
    .x-eo-viewer-thumbs .thumb-item {
        width: 62px;
        height: 62px;
        border-radius: 13px;
    }
}

#xEoViewerImage {
    border-radius: 18px;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, .55),
        0 0 0 1px rgba(255, 255, 255, .06);

    transition: transform .25s ease;
}

#xEoViewerImage:hover {
    transform: scale(1.01);
}

.x-eo-viewer-nav {
    width: 52px;
    height: 52px;

    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, .25),
        inset 0 1px 0 rgba(255, 255, 255, .08);
}

.x-eo-viewer-nav:hover {
    background: rgba(255, 255, 255, .14);
}

.x-eo-viewer-stages::after {
    content: "";
    position: absolute;
    inset: 0;

    background-image: inherit;
    background-size: cover;
    background-position: center;

    filter: blur(60px);
    opacity: .25;
    transform: scale(1.2);

    z-index: 0;
}

.x-eo-viewer-thumbs .active {
    transform: scale(1.08);
    box-shadow:
        0 0 0 2px #3b82f6,
        0 10px 25px rgba(0, 0, 0, .25);
}




/* =========================
   GALERIA PRO
========================= */

#modalEvidenciasOrden .modal-dialog {
    max-width: 78vw;
    width: 78vw;
    margin: 1.2rem auto;
}

#modalEvidenciasOrden .modal-content.x-eo-viewer-modal {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, .10), transparent 22%),
        radial-gradient(circle at top right, rgba(168, 85, 247, .08), transparent 20%),
        linear-gradient(180deg, #071226 0%, #020817 100%);
    box-shadow:
        0 30px 90px rgba(0, 0, 0, .55),
        inset 0 1px 0 rgba(255, 255, 255, .04);
    color: #fff;
    min-height: 86vh;
}

.x-eo-viewer-top {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0));
}

.x-eo-viewer-top__title {
    font-size: 20px;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -.02em;
}

.x-eo-viewer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    opacity: 1;
    text-shadow: none;
    transition: all .2s ease;
}

.x-eo-viewer-close span {
    font-size: 24px;
    line-height: 1;
}

.x-eo-viewer-close:hover {
    background: rgba(255, 255, 255, .14);
    transform: scale(1.05);
    color: #fff;
}

.x-eo-viewer-body {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 62vh;
    padding: 18px 72px 10px;
}

.x-eo-viewer-stages {
    position: relative;
    width: 100%;
    min-height: 62vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.x-eo-viewer-stages::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    filter: blur(55px);
    transform: scale(1.08);
    opacity: .18;
    pointer-events: none;
}

.x-eo-viewer-stages::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .015));
    border: 1px solid rgba(255, 255, 255, .05);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .03),
        0 18px 50px rgba(0, 0, 0, .16);
    pointer-events: none;
}

#xEoViewerImage {
    position: relative;
    z-index: 2;
    display: block;
    max-width: 100%;
    max-height: 72vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 18px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, .55),
        0 0 0 1px rgba(255, 255, 255, .06);
    background: rgba(255, 255, 255, .02);
    transition: transform .25s ease;
    cursor: zoom-in;
}

#xEoViewerImage.is-zoomed {
    cursor: grab;
}

#xEoViewerImage:active.is-zoomed {
    cursor: grabbing;
}

.x-eo-viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, .25),
        inset 0 1px 0 rgba(255, 255, 255, .08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all .2s ease;
}

.x-eo-viewer-nav:hover {
    background: rgba(255, 255, 255, .14);
    transform: translateY(-50%) scale(1.06);
}

.x-eo-viewer-nav--prev {
    left: 14px;
}

.x-eo-viewer-nav--next {
    right: 14px;
}

.x-eo-viewer-footer {
    padding: 2px 16px 10px;
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    color: #cbd5e1;
    letter-spacing: -.02em;
}

.x-eo-viewer-thumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 16px 18px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, .25) transparent;
}

.x-eo-viewer-thumbs::-webkit-scrollbar {
    height: 8px;
}

.x-eo-viewer-thumbs::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, .24);
    border-radius: 999px;
}

.x-eo-viewer-thumbs .x-eo-thumb,
.x-eo-viewer-thumbs .x-eo-viewer-thumb,
.x-eo-viewer-thumbs button,
.x-eo-viewer-thumbs .thumb-item {
    position: relative;
    flex: 0 0 auto;
    width: 70px;
    height: 70px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, .03);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
    opacity: .58;
    transition: all .18s ease;
}

.x-eo-viewer-thumbs .x-eo-thumb:hover,
.x-eo-viewer-thumbs .x-eo-viewer-thumb:hover,
.x-eo-viewer-thumbs button:hover,
.x-eo-viewer-thumbs .thumb-item:hover {
    opacity: .88;
    transform: translateY(-2px);
}

.x-eo-viewer-thumbs .x-eo-thumb.is-active,
.x-eo-viewer-thumbs .x-eo-viewer-thumb.is-active,
.x-eo-viewer-thumbs button.is-active,
.x-eo-viewer-thumbs .thumb-item.is-active,
.x-eo-viewer-thumbs .active {
    opacity: 1;
    transform: scale(1.06);
    border-color: rgba(59, 130, 246, .85);
    box-shadow:
        0 0 0 2px rgba(59, 130, 246, .18),
        0 10px 25px rgba(0, 0, 0, .25);
}

.x-eo-viewer-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 1400px) {
    #modalEvidenciasOrden .modal-dialog {
        max-width: 86vw;
        width: 86vw;
    }
}

@media (max-width: 991px) {
    #modalEvidenciasOrden .modal-dialog {
        max-width: 94vw;
        width: 94vw;
    }

    .x-eo-viewer-body {
        padding: 16px 54px 8px;
    }

    #xEoViewerImage {
        max-height: 64vh;
    }
}

@media (max-width: 767px) {
    #modalEvidenciasOrden .modal-dialog {
        max-width: 100vw;
        width: 100vw;
        margin: 0;
        height: 100vh;
    }

    #modalEvidenciasOrden .modal-content.x-eo-viewer-modal {
        min-height: 100vh;
        height: 100vh;
        border-radius: 0;
    }

    .x-eo-viewer-body {
        min-height: 50vh;
        padding: 14px 14px 8px;
    }

    .x-eo-viewer-stages {
        min-height: 48vh;
    }

    #xEoViewerImage {
        max-height: 56vh;
        border-radius: 14px;
    }

    .x-eo-viewer-nav {
        width: 44px;
        height: 44px;
        top: auto;
        bottom: 100px;
        transform: none;
    }

    .x-eo-viewer-nav:hover {
        transform: scale(1.04);
    }

    .x-eo-viewer-nav--prev {
        left: 14px;
    }

    .x-eo-viewer-nav--next {
        right: 14px;
    }

    .x-eo-viewer-footer {
        font-size: 18px;
    }

    .x-eo-viewer-thumbs {
        justify-content: flex-start;
    }
}

/* =========================
   GALERIA PRO
========================= */

#modalEvidenciasOrden .modal-dialog {
    max-width: 78vw;
    width: 78vw;
    margin: 1.2rem auto;
}

#modalEvidenciasOrden .modal-content.x-eo-viewer-modal {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, .10), transparent 22%),
        radial-gradient(circle at top right, rgba(168, 85, 247, .08), transparent 20%),
        linear-gradient(180deg, #071226 0%, #020817 100%);
    box-shadow:
        0 30px 90px rgba(0, 0, 0, .55),
        inset 0 1px 0 rgba(255, 255, 255, .04);
    color: #fff;
    min-height: 86vh;
}

.x-eo-viewer-top {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0));
}

.x-eo-viewer-top__title {
    font-size: 20px;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -.02em;
}

.x-eo-viewer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    opacity: 1;
    text-shadow: none;
    transition: all .2s ease;
}

.x-eo-viewer-close span {
    font-size: 24px;
    line-height: 1;
}

.x-eo-viewer-close:hover {
    background: rgba(255, 255, 255, .14);
    transform: scale(1.05);
    color: #fff;
}

.x-eo-viewer-body {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 62vh;
    padding: 18px 72px 10px;
}

.x-eo-viewer-stages {
    position: relative;
    width: 100%;
    min-height: 62vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.x-eo-viewer-stages::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    filter: blur(55px);
    transform: scale(1.08);
    opacity: .18;
    pointer-events: none;
}

.x-eo-viewer-stages::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .015));
    border: 1px solid rgba(255, 255, 255, .05);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .03),
        0 18px 50px rgba(0, 0, 0, .16);
    pointer-events: none;
}

#xEoViewerImage {
    position: relative;
    z-index: 2;
    display: block;
    max-width: 100%;
    max-height: 72vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 18px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, .55),
        0 0 0 1px rgba(255, 255, 255, .06);
    background: rgba(255, 255, 255, .02);
    transition: transform .25s ease;
    cursor: zoom-in;
}

#xEoViewerImage.is-zoomed {
    cursor: grab;
}

#xEoViewerImage:active.is-zoomed {
    cursor: grabbing;
}

.x-eo-viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, .25),
        inset 0 1px 0 rgba(255, 255, 255, .08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all .2s ease;
}

.x-eo-viewer-nav:hover {
    background: rgba(255, 255, 255, .14);
    transform: translateY(-50%) scale(1.06);
}

.x-eo-viewer-nav--prev {
    left: 14px;
}

.x-eo-viewer-nav--next {
    right: 14px;
}

.x-eo-viewer-footer {
    padding: 2px 16px 10px;
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    color: #cbd5e1;
    letter-spacing: -.02em;
}

.x-eo-viewer-thumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 16px 18px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, .25) transparent;
}

.x-eo-viewer-thumbs::-webkit-scrollbar {
    height: 8px;
}

.x-eo-viewer-thumbs::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, .24);
    border-radius: 999px;
}

.x-eo-viewer-thumbs .x-eo-thumb,
.x-eo-viewer-thumbs .x-eo-viewer-thumb,
.x-eo-viewer-thumbs button,
.x-eo-viewer-thumbs .thumb-item {
    position: relative;
    flex: 0 0 auto;
    width: 70px;
    height: 70px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, .03);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
    opacity: .58;
    transition: all .18s ease;
}

.x-eo-viewer-thumbs .x-eo-thumb:hover,
.x-eo-viewer-thumbs .x-eo-viewer-thumb:hover,
.x-eo-viewer-thumbs button:hover,
.x-eo-viewer-thumbs .thumb-item:hover {
    opacity: .88;
    transform: translateY(-2px);
}

.x-eo-viewer-thumbs .x-eo-thumb.is-active,
.x-eo-viewer-thumbs .x-eo-viewer-thumb.is-active,
.x-eo-viewer-thumbs button.is-active,
.x-eo-viewer-thumbs .thumb-item.is-active,
.x-eo-viewer-thumbs .active {
    opacity: 1;
    transform: scale(1.06);
    border-color: rgba(59, 130, 246, .85);
    box-shadow:
        0 0 0 2px rgba(59, 130, 246, .18),
        0 10px 25px rgba(0, 0, 0, .25);
}

.x-eo-viewer-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 1400px) {
    #modalEvidenciasOrden .modal-dialog {
        max-width: 75vw;
        width: 75vw;
    }
}

@media (max-width: 991px) {
    #modalEvidenciasOrden .modal-dialog {
        max-width: 94vw;
        width: 94vw;
    }

    .x-eo-viewer-body {
        padding: 16px 54px 8px;
    }

    #xEoViewerImage {
        max-height: 64vh;
    }
}

@media (max-width: 767px) {
    #modalEvidenciasOrden .modal-dialog {
        max-width: 100vw;
        width: 100vw;
        margin: 0;
        height: 100vh;
    }

    #modalEvidenciasOrden .modal-content.x-eo-viewer-modal {
        min-height: 100vh;
        height: 100vh;
        border-radius: 0;
    }

    .x-eo-viewer-body {
        min-height: 50vh;
        padding: 14px 14px 8px;
    }

    .x-eo-viewer-stages {
        min-height: 48vh;
    }

    #xEoViewerImage {
        max-height: 56vh;
        border-radius: 14px;
    }

    .x-eo-viewer-nav {
        width: 44px;
        height: 44px;
        top: auto;
        bottom: 100px;
        transform: none;
    }

    .x-eo-viewer-nav:hover {
        transform: scale(1.04);
    }

    .x-eo-viewer-nav--prev {
        left: 14px;
    }

    .x-eo-viewer-nav--next {
        right: 14px;
    }

    .x-eo-viewer-footer {
        font-size: 18px;
    }

    .x-eo-viewer-thumbs {
        justify-content: flex-start;
    }
}





#xEoViewerImage {
    transform-origin: center center;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
    cursor: zoom-in;
    transition: transform .16s ease;
}

#xEoViewerImage.is-zoomed {
    cursor: grab;
    transition: none;
}

#xEoViewerImage.is-zoomed.is-dragging {
    cursor: grabbing;
}

.x-eo-viewer-stages {
    overflow: hidden;
    cursor: default;
}


.x-eo-viewer-info {
    padding: 0 18px 14px;
    text-align: center;
}

.x-eo-viewer-info__title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
    color: #f8fafc;
    letter-spacing: -.02em;
    margin-bottom: 6px;
}

.x-eo-viewer-info__desc {
    font-size: 15px;
    font-weight: 600;
    color: #94a3b8;
    line-height: 1.35;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.x-eo-viewer-info__meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.x-eo-viewer-info__pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.x-eo-viewer-info__pill i {
    opacity: .9;
}

@media (max-width: 767px) {
    .x-eo-viewer-info {
        padding: 0 14px 12px;
    }

    .x-eo-viewer-info__title {
        font-size: 20px;
    }

    .x-eo-viewer-info__desc {
        font-size: 13px;
    }

    .x-eo-viewer-info__pill {
        font-size: 11px;
        padding: 7px 10px;
    }
}

.x-eo-viewer-stage {
    position: relative;
    overflow: hidden;
}

.x-eo-viewer-overlay-info {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;

    max-width: calc(100% - 32px);
    pointer-events: none;
}

.x-eo-viewer-overlay-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 8px 12px;
    border-radius: 999px;

    background: rgba(0, 0, 0, .45);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
}

.x-eo-viewer-overlay-pill i {
    opacity: .92;
}

@media (max-width: 767px) {
    .x-eo-viewer-overlay-info {
        gap: 6px;
        bottom: 14px;
        max-width: calc(100% - 20px);
    }

    .x-eo-viewer-overlay-pill {
        font-size: 11px;
        padding: 7px 10px;
    }
}

@media (max-width: 480px) {
    .x-eo-viewer-overlay-pill {
        font-size: 10px;
        padding: 6px 9px;
        gap: 5px;
    }
}

/* =============================================
   CARD UPLOAD EVIDENCIAS - MISMO ESTILO
============================================= */

.x-eo-media-card--upload {
    min-height: 260px;
    border-radius: 18px;
    border: 1px dashed rgba(47, 107, 255, .52);
    background:
        radial-gradient(circle at top left, rgba(47, 107, 255, .08), transparent 34%),
        linear-gradient(180deg, rgba(8, 24, 50, .74), rgba(5, 13, 33, .82));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .03),
        0 10px 30px rgba(0, 0, 0, .14);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    cursor: pointer;
    transition: .18s ease;
    width: 100%;
}

.x-eo-media-card--upload:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, .82);
    background:
        radial-gradient(circle at top left, rgba(47, 107, 255, .14), transparent 34%),
        linear-gradient(180deg, rgba(10, 31, 66, .88), rgba(7, 18, 42, .94));
    box-shadow:
        0 16px 38px rgba(0, 0, 0, .24),
        inset 0 1px 0 rgba(255, 255, 255, .04);
}

.x-eo-upload-box {
    width: 100%;
    text-align: center;
    display: grid;
    place-items: center;
    gap: 12px;
}

.x-eo-upload-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(47, 107, 255, .22);
    color: #DCE7FF;
    font-size: 25px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .06),
        0 10px 22px rgba(47, 107, 255, .16);
}

.x-eo-upload-title {
    color: #F5F7FB;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.x-eo-upload-subtitle {
    max-width: 230px;
    color: #9FB0D0;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.45;
}