.cpn-dc-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    padding: 10px 0;
}

.cpn-dc-track {
    display: flex;
    transition: transform 0.4s ease;
    will-change: transform;
}

.cpn-dc-item {
    flex: 0 0 auto;
    padding: 0 5px;
    box-sizing: border-box;
    cursor: pointer;
}

.cpn-dc-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cpn-dc-item:hover .cpn-dc-img {
    transform: scale(1.03);
    filter: brightness(1.05);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.cpn-dc-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cpn-dc-nav:hover {
    background: rgba(0,0,0,0.85);
    transform: translateY(-50%) scale(1.05);
}

.cpn-dc-prev {
    left: 10px;
}

.cpn-dc-next {
    right: 10px;
}

.cpn-dc-pagination {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    gap: 6px;
}

.cpn-dc-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(0,0,0,0.2);
    transition: background 0.2s ease, transform 0.2s ease;
}

.cpn-dc-dot.is-active {
    background: rgba(0,0,0,0.7);
    transform: scale(1.25);
}

/* Lightbox */
.cpn-dc-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.cpn-dc-lightbox.is-open {
    display: flex;
}

.cpn-dc-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
}

.cpn-dc-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: #111;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1;
}

.cpn-dc-lightbox-image {
    max-width: 80vw;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
}

.cpn-dc-lightbox-caption {
    margin: 0;
    color: #f5f5f5;
    font-size: 14px;
}

.cpn-dc-lightbox-close {
    position: absolute;
    top: 8px;
    right: 8px;
    border: none;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 999px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.cpn-dc-lightbox-close:hover {
    background: rgba(0,0,0,0.9);
}

.cpn-dc-lightbox-prev,
.cpn-dc-lightbox-next {
    border: none;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 999px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.cpn-dc-lightbox-prev:hover,
.cpn-dc-lightbox-next:hover {
    background: rgba(0,0,0,0.9);
}

.cpn-dc-lightbox-prev {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.cpn-dc-lightbox-next {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

/* Estilos base por tema */
.cpn-dc-style-minimal .cpn-dc-img {
    box-shadow: none;
    border-radius: 4px;
}

.cpn-dc-style-classic .cpn-dc-img {
    border-radius: 0;
    border: 1px solid rgba(0,0,0,0.15);
}

.cpn-dc-style-modern .cpn-dc-img {
    border-radius: 10px;
}

@media (max-width: 768px) {
    .cpn-dc-nav {
        width: 32px;
        height: 32px;
    }
}
