.rubro_card_premium {
    display: block;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.35s ease;
    background: #000;
}

.rubro_card_premium:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

/* IMAGEN */
.rubro_img {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.rubro_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.rubro_card_premium:hover img {
    transform: scale(1.15);
}

/* GRADIENTE OSCURO */
.rubro_gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.85),
            rgba(0, 0, 0, 0.2),
            transparent);
}

/* BADGE (nombre encima de imagen) */
.rubro_badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* DESCRIPCIÓN PEQUEÑA */
.rubro_desc {
    position: absolute;
    bottom: 55px;
    left: 15px;
    right: 15px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12.5px;
    line-height: 1.4;
    z-index: 2;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* mejora badge encima de todo */
.rubro_badge {
    z-index: 3;
}

/* asegura capa encima */
.rubro_gradient {
    z-index: 1;
}

.rubro_card_premium:hover .rubro_footer i {
    transform: translateX(5px);
}

@media (max-width: 576px) {
    .rubro_img {
        height: 180px;
    }

    .rubro_desc {
        font-size: 11px;
        bottom: 45px;
    }

     .rubro_badge {
        bottom: 10px;
        left: 10px;
        padding: 4px 10px;
        font-size: 11px;
        border-radius: 14px;
    }
}