.ci-container-507208de {
    display: flex;
    flex-direction: column;
    gap: var(--scroll-gap, 24px);
    overflow: hidden;
    width: 100%;
}

.ci-track-wrapper-507208de {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
}

.ci-track-507208de {
    display: flex;
    gap: var(--scroll-gap, 24px);
    width: max-content;
    will-change: transform;
}

.ci-right-to-left-507208de {
    animation: ci-scroll-rtl-507208de var(--scroll-speed, 40s) linear infinite;
}

.ci-left-to-right-507208de {
    animation: ci-scroll-ltr-507208de var(--scroll-speed, 40s) linear infinite;
}

/* Ralentizar animación */
.ci-track-507208de:hover {
    animation-duration: calc(var(--scroll-speed, 40s) * 3);
}

@keyframes ci-scroll-rtl-507208de {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - (var(--scroll-gap, 24px) / 2))); }
}

@keyframes ci-scroll-ltr-507208de {
    0% { transform: translateX(calc(-50% - (var(--scroll-gap, 24px) / 2))); }
    100% { transform: translateX(0); }
}

.ci-item-507208de {
    /* Responsive widths */
    width: calc((100vw - (var(--scroll-gap, 24px) * 3)) / 4);
    aspect-ratio: 16/9;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--item-radius, 12px);
    cursor: pointer;
    transition: transform 0.3s ease;
}

@media (max-width: 1024px) {
    .ci-item-507208de {
        width: calc((100vw - (var(--scroll-gap, 24px) * 1.5)) / 2.5);
    }
}

@media (max-width: 767px) {
    .ci-item-507208de {
        width: calc((100vw - (var(--scroll-gap, 24px) * 0.2)) / 1.2);
    }
}

.ci-item-507208de img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.ci-item-507208de:hover {
    transform: scale(1.03);
}

/* Modal Native Styles */
.ci-modal-507208de {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.ci-modal-507208de.active {
    opacity: 1;
    pointer-events: all;
}

.ci-modal-507208de img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.ci-modal-close-507208de {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
}


/* ---------- Lightbox SOLA: colores corporativos ---------- */
.ci-modal-507208de {
    background: rgba(53,53,53,0.96); /* Gris profundo #353535 */
}

.ci-modal-close-507208de {
    color: #c4c0b3; /* Beige suave */
    transition: color 0.2s ease;
}
.ci-modal-close-507208de:hover { color: #ffffff; }

.ci-modal-nav-507208de {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #c4c0b3; /* Beige suave */
    color: #353535;      /* Gris profundo */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.ci-modal-nav-507208de:hover,
.ci-modal-nav-507208de:focus-visible {
    background: #4b6a79; /* Azul petróleo */
    color: #ffffff;
    transform: translateY(-50%) scale(1.06);
    outline: none;
}

.ci-modal-prev-507208de { left: 24px; }
.ci-modal-next-507208de { right: 24px; }

.ci-modal-nav-507208de svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ci-single-507208de .ci-modal-nav-507208de { display: none; }

.ci-modal-counter-507208de {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #c4c0b3;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    letter-spacing: 0.12em;
}

@media (max-width: 767px) {
    .ci-modal-nav-507208de { width: 42px; height: 42px; }
    .ci-modal-nav-507208de svg { width: 20px; height: 20px; }
    .ci-modal-prev-507208de { left: 8px; }
    .ci-modal-next-507208de { right: 8px; }
}


/* ---------- Blindaje frente a estilos de botón del tema ---------- */
.ci-modal-507208de .ci-modal-nav-507208de,
.ci-modal-507208de .ci-modal-nav-507208de:focus,
.ci-modal-507208de .ci-modal-nav-507208de:active {
    background: #c4c0b3 !important;
    background-color: #c4c0b3 !important;
    color: #353535 !important;
    border: none !important;
    outline: none !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25) !important;
}

.ci-modal-507208de .ci-modal-nav-507208de:hover,
.ci-modal-507208de .ci-modal-nav-507208de:focus-visible {
    background: #4b6a79 !important;
    background-color: #4b6a79 !important;
    color: #ffffff !important;
}

@media (hover: none) {
    .ci-modal-507208de .ci-modal-nav-507208de:hover {
        background: #c4c0b3 !important;
        background-color: #c4c0b3 !important;
        color: #353535 !important;
    }
}
