/* Estilos card */
.wp-carousel-container h3 {
    margin-top: 16px;
    margin-bottom: 8px;
    font-size: 1.2rem;
    color: #004021;
    font-family: Inter, Sans-serif;
}

/* Skeleton */
.wp-carousel-container .skeleton-image {
    width: 100%;
    height: 200px;
    background-color: #e0e0e0;
    position: relative;
    overflow: hidden;
}
.wp-carousel-container .skeleton-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(224,224,224,0) 0%, rgba(224,224,224,0.8) 50%, rgba(224,224,224,0) 100%);
    animation: loading 1.5s infinite;
}

/* Contenedor Swiper correcto */
.wp-carousel-container .blogSwiper-container {
    position: relative;
    width: 100%;
    overflow: hidden; /* CLAVE: evita que se “salgan” */
}

/* Mínimos estilos base por si no cargas el CSS de Swiper */
.wp-carousel-container .blogSwiper-container .swiper-wrapper {
    display: flex;
    transition-property: transform;
    box-sizing: border-box;
}
.wp-carousel-container .blogSwiper-container .swiper-slide {
    flex-shrink: 0;
    box-sizing: border-box;
}

.wp-carousel-container .swiper-slide img {
    display: block;
    width: 100%;
    min-height: 260px;
    max-height: 260px;
    border-radius: 8px;
    margin: 0 auto;
}

/* Flechas */
.wp-carousel-container .swiper-button-prev,
.wp-carousel-container .swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 30px;
    height: 30px;
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
}
.wp-carousel-container .swiper-button-prev { left: 10px; }
.wp-carousel-container .swiper-button-next { right: 10px; }

/* Opcional: cortar cualquier desbordamiento del wrapper principal */
.wp-carousel-container { overflow: hidden; }

@keyframes loading {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}
