/* ==========================================================================
   Obra Card Component — matches production red-es.es
   ========================================================================== */

.pf-redes-obra-card {
    border-radius: 0;
    overflow: hidden;
    background: #fff;
    transition: box-shadow var(--pf-redes-transition);
}

.pf-redes-obra-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
    transition: transform 0.2s, box-shadow 0.2s;
}
.pf-redes-obra-card:hover .pf-redes-obra-card__info {
    padding: 2px 8px;
}
@media (max-width: 700px) {
    .pf-redes-obra-card:hover { transform: scale(0.95); }
}

.pf-redes-obra-card__link {
    text-decoration: none;
    color: var(--pf-redes-text, #171723);
    display: block;
}

.pf-redes-obra-card__link:hover,
.pf-redes-obra-card__link:focus {
    color: var(--pf-redes-text, #171723);
}

.pf-redes-obra-card__image-wrap {
    position: relative;
    aspect-ratio: 3 / 4.2;
    overflow: hidden;
}

.pf-redes-obra-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Info container (title + footer) — animates padding on hover */
.pf-redes-obra-card__info {
    padding: 2px 0;
    transition: padding 0.2s ease-out;
}

.pf-redes-obra-card__title {
    font-family: "Roboto Condensed", var(--pf-redes-font);
    font-size: 14px;
    font-weight: 400;
    color: #171723;
    white-space: nowrap;
    overflow: hidden;
    padding: 4px 0;
    position: relative;
    margin: 0;
    line-height: 1.3;
    mask-image: linear-gradient(to right, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
}

/* Recommended badge overlay (heart icon) */
.pf-redes-obra-card__recommended {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    pointer-events: none;
}

/* Atributos container at bottom of poster */
.pf-redes-obra-card__badges {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.5);
    display: flex;
    gap: 5px;
    padding: 4px;
    flex-wrap: wrap;
}
.pf-redes-obra-card__badge-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Card footer with estado + recomendaciones */
.pf-redes-obra-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px 8px;
    gap: 6px;
}

.pf-redes-obra-card__estado {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    line-height: 1.4;
    white-space: nowrap;
    text-transform: capitalize;
}

.pf-redes-obra-card__estado--en-gira {
    background: #d4edda;
    color: #155724;
}

.pf-redes-obra-card__estado--borrador {
    background: #fff3cd;
    color: #856404;
}

.pf-redes-obra-card__recom {
    font-size: 12px;
    color: #d4a017;
    font-weight: 600;
    white-space: nowrap;
}

/* Recomendaciones footer */
.pf-redes-obra-card .recomendaciones {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    padding: 2px 0;
}
.pf-redes-obra-card .obra-estado {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 600;
    margin-right: auto;
    color: #171723;
}
.pf-redes-obra-card .veces-recomendado {
    color: #909090;
}

/* Carousel-specific: no hover effects, no background */
.swiper .pf-redes-obra-card {
    background: transparent;
}
.swiper .pf-redes-obra-card:hover {
    transform: none;
    box-shadow: none;
}
.swiper .pf-redes-obra-card:hover .pf-redes-obra-card__info {
    padding: 2px 0;
}
