/* ==========================================================================
   XICLICA MEDIA SLIDER - CSS SHIELD (BLINDAJE)
   ========================================================================== */

/* 1. RESET LOCAL: Protege los elementos internos de estilos del tema */
.xiclica-peek-container,
.xiclica-peek-container * {
    box-sizing: border-box !important;
    -webkit-tap-highlight-color: transparent;
}

.xiclica-peek-container {
    width: 100%;
    overflow: hidden;
    padding: 0 0 0 20px;
    margin: 0 auto !important;
    background: transparent;
    display: block;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* 2. PROTECCIÓN DE ELEMENTOS GENÉRICOS */
.xiclica-peek-container img {
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.xiclica-peek-container a {
    text-decoration: none !important;
    box-shadow: none !important;
    border: none !important;
    display: block;
    padding: 0 !important;
    margin: 0 !important;
}

/* 3. ESTRUCTURA SWIPER (Aislamiento) */
.xiclica-peek-container .swiper {
    width: 100%;
    overflow: visible !important;
    /* Necesario para el efecto peek */
    padding: 0 !important;
    margin: 0 !important;
}

.xiclica-peek-container .swiper-slide {
    width: calc(100% - 70px);
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0.8; /* Efecto des-énfasis en slides laterales */
    display: flex;
    justify-content: center;
    align-items: center;
}

.xiclica-peek-container .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

/* 4. PAGINACIÓN */
.xiclica-peek-container .swiper-pagination {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    margin-top: 20px !important;
    text-align: center;
    width: 100% !important;
    line-height: 1 !important;
}

.xiclica-peek-container .swiper-pagination-bullet {
    width: 10px !important;
    height: 10px !important;
    background: #ccc !important;
    opacity: 0.5 !important;
    margin: 0 5px !important;
}

.xiclica-peek-container .swiper-pagination-bullet-active {
    opacity: 1 !important;
    background: #0073aa !important; /* Color WordPress predeterminado */
}

/* 5. EFECTO FADE EDGE (DESVANECIDO) */
.xiclica-peek-container.has-fade-edge::before,
.xiclica-peek-container.has-fade-edge::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 10;
    pointer-events: none;
}

.xiclica-peek-container.has-fade-edge::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.xiclica-peek-container.has-fade-edge::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

/* 6. RESPONSIVE */
@media (min-width: 768px) {
    .xiclica-peek-container .swiper-slide {
        width: 60%;
    }
}