/* =====================================================
   FIX PUNTUAL - MINIATURAS Y BADGE DE CATEGORIA
   El enlace de la categoria es hijo directo de .news-card-media,
   por lo que heredaba width/height 100% del enlace de la imagen.
   Este archivo separa ambos comportamientos sin tocar el resto del layout.
===================================================== */

/* La imagen siempre se muestra limpia, sin filtros ni capas. */
.news-card-media,
.news-card-media > a:not(.news-card-category) {
    background: transparent !important;
}

.news-card-media > a:not(.news-card-category) {
    display: block;
    width: 100%;
    height: 100%;
}

.news-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
    background: transparent !important;
}

/* El badge vuelve a ser una capsula pequena y nunca cubre la imagen. */
.news-card-media > .news-card-category {
    position: absolute;
    top: 11px;
    left: 11px;
    z-index: 4;
    display: inline-flex !important;
    align-items: center;
    width: auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 22px);
    height: auto !important;
    min-height: 0 !important;
    padding: 6px 10px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(13, 110, 253, .96) !important;
    color: #fff !important;
    font-size: .68rem;
    font-weight: 800;
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .18);
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
}

.news-card-media > .news-card-category:hover {
    background: #0b5ed7 !important;
    color: #fff !important;
}

/* Evita que reglas antiguas agreguen overlays sobre la miniatura. */
.news-card-media::before,
.news-card-media::after,
.news-card-media > a:not(.news-card-category)::before,
.news-card-media > a:not(.news-card-category)::after {
    content: none !important;
    display: none !important;
}
