/* Contenedor principal completo */
.ccc-carousel-container {
    position: relative;
    width: 100%;
    margin: 10px 0 25px 0;
    box-sizing: border-box;
}

/* Wrapper con espacio lateral para las flechas */
.ccc-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 45px; 
}

/* Swiper: Padding inferior reservado para albergar la sombra sin cortarla */
.ccc-carousel-container .swiper {
    width: 100%;
    padding: 20px 10px 35px 10px !important;
    overflow: hidden !important;
}

.ccc-carousel-container .swiper-slide {
    height: auto;
    overflow: visible !important;
}

/* Tarjeta Base */
.ccc-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
    text-align: center;
    display: block;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 1;
}

/* Elevación Hover limpia sin recortes */
.ccc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
    z-index: 10;
}

/* Imagen */
.ccc-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.ccc-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ccc-card:hover .ccc-image-wrapper img {
    transform: scale(1.05);
}

/* Título */
.ccc-title-wrapper {
    padding: 14px 10px;
    background: #ffffff;
}

.ccc-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

/* Navegación por fuera de las tarjetas */
.ccc-carousel-wrapper .swiper-button-prev,
.ccc-carousel-wrapper .swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    z-index: 20;
    color: #1a1a1a;
    cursor: pointer;
}

.ccc-carousel-wrapper .swiper-button-prev {
    left: 2px;
}

.ccc-carousel-wrapper .swiper-button-next {
    right: 2px;
}

.ccc-carousel-wrapper .swiper-button-prev::after,
.ccc-carousel-wrapper .swiper-button-next::after {
    font-size: 14px;
    font-weight: bold;
}

.ccc-carousel-wrapper .swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
}

/* Paginación (Bullets) totalmente visible y separada */
.ccc-carousel-container .ccc-pagination {
    position: relative !important;
    bottom: 0 !important;
    margin-top: 5px;
    text-align: center;
    display: block !important;
}

.ccc-carousel-container .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ccc;
    opacity: 0.7;
    margin: 0 4px !important;
}

.ccc-carousel-container .swiper-pagination-bullet-active {
    background: #1a1a1a;
    opacity: 1;
    width: 10px;
    height: 10px;
}

/* ==========================================
   Adaptabilidad Responsive para Móviles
   ========================================== */
@media (max-width: 767px) {
    /* Liberar el espacio lateral reservado para las flechas */
    .ccc-carousel-wrapper {
        padding: 0 5px !important;
    }

    /* Ocultar flechas de navegación en móviles */
    .ccc-carousel-wrapper .swiper-button-prev,
    .ccc-carousel-wrapper .swiper-button-next {
        display: none !important;
    }

    /* Ajuste de espacio de respiración para la sombra móvil */
    .ccc-carousel-container .swiper {
        padding: 10px 5px 20px 5px !important;
    }

    /* Proporción de imagen optimizada para pantallas pequeñas */
    .ccc-image-wrapper {
        height: 160px;
    }

    .ccc-title {
        font-size: 0.88rem;
    }
}