/* =============================================================
   megaprofe-hablan-de-megaprofe.css
   ============================================================= */

/* ---------- HERO SIN IMAGEN ---------- */
.mp-hablan-hero-inner,
.mp-hablan-hero-copy {
    position: relative;
    z-index: 1;
    text-align: center;
}

.mp-hablan-hero-copy .mp-title,
.mp-hablan-hero-copy .mp-text {
    margin-right: auto;
    margin-left: auto;
}

.mp-hablan-hero-copy .mp-text + .mp-text {
    margin-top: 8px;
}

/* ---------- CONTENIDO EDITORIAL ---------- */
.mp-hablan-content {
    background: var(--mp-bg);
}

.mp-hablan-grid {
    columns: 3 300px;
    column-gap: 24px;
}

.mp-hablan-card {
    display: inline-block;
    width: 100%;
    margin: 0 0 24px;
    padding: clamp(22px, 3vw, 30px);
    break-inside: avoid;
}

.mp-hablan-logo {
    display: block;
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    object-fit: contain;
    object-position: left center;
}

.mp-hablan-card h2 {
    margin: 0 0 16px;
    color: var(--mp-text);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.mp-hablan-card p,
.mp-hablan-links {
    color: var(--mp-muted);
    font-size: var(--mp-text-body);
    line-height: 1.7;
}

.mp-hablan-card p {
    margin: 0 0 16px;
}

.mp-hablan-card a:not(.mp-btn) {
    color: var(--mp-primary);
    font-weight: 700;
}

.mp-hablan-featured,
.mp-hablan-author {
    color: var(--mp-text) !important;
    font-weight: 800;
}

.mp-hablan-links {
    margin: 0 0 16px;
    padding-left: 20px;
}

.mp-hablan-card .mp-btn {
    margin-top: 4px;
}

@media (max-width: 680px) {
    .mp-hablan-grid {
        columns: 1;
    }

    .mp-hablan-card {
        margin-bottom: 20px;
        text-align: center;
    }

    .mp-hablan-card:last-child {
        margin-bottom: 0;
    }

    .mp-hablan-logo {
        margin-right: auto;
        margin-left: auto;
        object-position: center;
    }

    .mp-hablan-links {
        padding-left: 0;
        list-style-position: inside;
    }
}
