/* --- ESTRUCTURA DE TARJETAS (LIMPIO) --- */
.listado-grid {
    margin-top: 4rem;
    display: grid;
    gap: 2rem;
}
@media (min-width:991px) {
    .listado-grid { grid-template-columns: repeat(2, 1fr); }
}

.card {
    position: relative;
    border-radius: 10px;
    background: #000;
    min-height: 40rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Imagen fija y visible */
.card img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.7; /* Brillo de la imagen */
}

.card .contenido {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

/* Títulos */
.card h3 {
    color: var(--blanco); 
    font-size: 2.6rem; /* Aumentamos un poco el tamaño */
    font-weight: 500;   /* Aumentamos el grosor para que se vea más estilizado */
    font-family: var(--fuente-headings); /* Aseguramos la fuente Staatliches */
    text-align: justify;
    margin-bottom: 1rem;
    line-height: 1.1;
    
    /* El borde negro estilizado (text-shadow) */
    text-shadow: 
        -2px -2px 0 #000,  
         2px -2px 0 #000,
        -2px  2px 0 #000,
         2px  2px 0 #000;
}

/* Categorías (Globos) - Estilo sólido, no transparente */
.card .post-categories {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    display: flex;
    gap: 1rem;
    z-index: 3;
}
.card .post-categories li {
    background-color: var(--mypi-claro);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    opacity: 1; /* FORZAR OPACIDAD TOTAL */
}
.card .post-categories a {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.2rem;
    text-decoration: none;
}

/* Meta / Fecha - Estilo sólido, sin barra azul gigante */
.card .meta {
    font-size: 1.4rem;
    color: #fff;
    background-color: var(--mypi-claro); /* Fondo sólido */
    padding: 0.5rem 1rem;
    border-radius: 5px;
    display: inline-block;
    font-weight: 700;
}
.card .meta span { color: #fff; }

/* Corrección: No pintar el fondo si el meta está vacío */
.card .meta:empty {
    display: none;
}