.bloque-home,
.bloque-home-publicaciones {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

/* ---------- BLOQUE SUPERIOR ---------- */
.bloque-home {
    margin-bottom: 2rem;
}

.bloque-home .row {
    align-items: start;
}

.card-home-destacada {
    background: #f3f5f7;
    border: 1px solid #d8dde3;
    border-top: 4px solid #005da4;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    height: auto;
    min-height: unset;
}

.card-home-destacada .card-body {
    padding: 1.25rem;
    min-height: unset;
}

.card-home-flex {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.card-home-icono {
    flex: 0 0 64px;
    max-width: 64px;
}

.card-home-texto {
    flex: 1 1 auto;
    min-width: 0;
}

.card-home-destacada h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: .5rem;
    color: #222;
}

.card-home-destacada p {
    font-size: .95rem;
    line-height: 1.45;
    color: #444;
    margin-bottom: .6rem;
}

.card-home-destacada a {
    font-weight: 600;
    color: #005da4;
    text-decoration: none;
}

.card-home-destacada a:hover {
    text-decoration: underline;
}

/* ---------- BLOQUE DE PUBLICACIONES ---------- */
.bloque-home-publicaciones {
    margin-top: 1rem;
}

.titulo-bloque-home {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2f2f2f;
    border-left: 4px solid #005da4;
    padding-left: .75rem;
}

.subtitulo-publicaciones {
    font-size: .88rem;
    color: #6b7280;
}

.card-publicacion {
    border: 1px solid #dfe4ea;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card-publicacion:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
    border-color: #cfd8e3;
}

.publicacion-cover-wrap {
    height: 100%;
    min-height: 190px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .75rem;
    border-right: 1px solid #eef2f6;
}

.publicacion-cover {
    object-fit: contain;
    max-height: 220px;
}

.card-publicacion .card-body {
    padding: 1rem 1rem 1rem .95rem;
}

.card-publicacion .card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.25;
}

.card-publicacion .card-text {
    font-size: .93rem;
    color: #4b5563;
    line-height: 1.45;
    margin-bottom: .75rem;
}

.badge-publicacion {
    display: inline-block;
    padding: .35rem .55rem;
    font-size: .75rem;
    font-weight: 700;
    color: #005da4;
    background: #eaf3fb;
    border: 1px solid #cfe2f5;
    border-radius: 999px;
}

.enlace-publicacion {
    font-weight: 600;
    color: #005da4;
    text-decoration: none;
}

.enlace-publicacion:hover {
    text-decoration: underline;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1399.98px) {
    .card-home-flex {
        flex-direction: column;
    }

    .card-home-icono {
        flex: 0 0 auto;
        max-width: 56px;
    }
}

@media (max-width: 767.98px) {
    .card-home-destacada .card-body,
    .card-publicacion .card-body {
        padding: 1rem;
    }

    .publicacion-cover-wrap {
        min-height: 160px;
    }

    .card-publicacion .card-body {
        padding: .9rem;
    }
}

.card-home-destacada {
    min-height: 220px;
}
