.pdc-wrapper {
    position: relative;
}

.pdc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.pdc-section-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.pdc-more-link {
    text-decoration: underline;
    font-weight: 600;
    white-space: nowrap;
}

/* Oculta los items inactivos laterales pero deja espacio abajo para los puntos */
.pdc-swiper {
    overflow: hidden !important; 
    padding-bottom: 50px; 
}

.pdc-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    border-radius: 16px;
    overflow: hidden; /* Vital para que el zoom de imagen no se salga de las esquinas */
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    
    position: relative;
    cursor: pointer;
    /* Variables por defecto (se sobreescriben desde Elementor) */
    --border-color: #000000; 
    --border-width: 2px;
}

a.pdc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

/* =========================================
   ANIMACIÓN DE CONTORNO (LÍNEA DIBUJADA)
========================================= */
.pdc-card::before,
.pdc-card::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    box-sizing: border-box;
    border: var(--border-width) solid transparent;
    z-index: 10;
    pointer-events: none;
}

.pdc-card::before {
    top: 0;
    left: 0;
}

.pdc-card::after {
    bottom: 0;
    right: 0;
}

.pdc-card:hover::before {
    width: 100%;
    height: 100%;
    border-top-color: var(--border-color);
    border-right-color: var(--border-color);
    transition: width 0.3s ease-out, height 0.3s ease-out 0.3s;
}

.pdc-card:hover::after {
    width: 100%;
    height: 100%;
    border-bottom-color: var(--border-color);
    border-left-color: var(--border-color);
    transition: border-color 0s ease-out 0.6s, width 0.3s ease-out 0.6s, height 0.3s ease-out 0.9s;
}

/* =========================================
   ANIMACIÓN DE IMAGEN (ZOOM)
========================================= */
.pdc-image {
    width: 100%;
    padding-top: 45%;
    background-size: cover;
    background-position: center;
    background-color: #eee;
    transition: transform 0.5s ease-in-out; 
}

/* Efecto Zoom en la imagen al hacer hover en la tarjeta */
.pdc-card:hover .pdc-image {
    transform: scale(1.1);
}

.pdc-card-body {
    padding: 20px;
    background: #f4f1fb;
    flex: 1;
    position: relative; /* Mantiene los textos por encima si hay interacciones */
    z-index: 2;
}

.pdc-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.pdc-title {
    font-size: 20px;
    font-weight: 700;
}

.pdc-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
}

.pdc-description {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #4f4f4f;
}

/* =========================================
   NAVEGACIÓN: FLECHAS Y PUNTOS
========================================= */
.pdc-prev,
.pdc-next {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 16px;
    user-select: none;
}

/* Flechas por fuera del contenedor */
.pdc-prev {
    left: -50px !important; 
}

.pdc-next {
    right: -50px !important;
}

/* Los puntos se ubican en el espacio vacío creado por el padding-bottom de .pdc-swiper */
.pdc-pagination {
    text-align: center;
    position: absolute !important; 
    bottom: 10px; 
    left: 0;
    width: 100%;
    z-index: 10;
}

.pdc-pagination .swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
    transition: background-color 0.3s ease;
}

.pdc-pagination .swiper-pagination-bullet-active {
    background: #f2c94c;
}

@media (max-width: 767px) {
    .pdc-prev,
    .pdc-next {
        display: none;
    }
}