/* ============================================================
   Blog listing page — Marketing Ultra
   ============================================================ */

/* Reset Astra wrappers on blog page for full-width control */
body.blog #content > .ast-container {
    display: block;
    max-width: 100%;
    padding: 0;
}
body.blog .ast-archive-description {
    display: none;
}

/* ── PAGE WRAPPER ── */
.mu-bl-page {
    width: 100%;
}

/* ── HEADER ── */
.mu-bl-header {
    background: #fff;
    border-bottom: 1px solid #E8EBF0;
    padding: 48px 32px 36px;
}
.mu-bl-wrap {
    max-width: 1200px;
    margin: 0 auto;
}
.mu-bl-title {
    font-family: "Sora", system-ui, sans-serif;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    color: #0F172A;
    line-height: 1.1;
}
.mu-bl-sub {
    font-family: "Sora", system-ui, sans-serif;
    font-size: 18px;
    color: #454F5E;
    max-width: 55ch;
    margin-bottom: 0;
    line-height: 1.55;
}

/* ── FILTERS ── */
.mu-bl-filters {
    display: flex;
    gap: 10px 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.mu-bl-filter-btn {
    min-height: 44px;
    padding: 9px 20px;
    border-radius: 999px;
    border: 2px solid #E8EBF0;
    background: #fff;
    font-family: "Sora", system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #454F5E;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.12s;
    display: inline-flex;
    align-items: center;
}
.mu-bl-filter-btn:hover {
    border-color: #0F172A;
    color: #0F172A;
}
.mu-bl-filter-btn.active {
    background: #0F172A;
    color: #fff;
    border-color: #0F172A;
}

/* ── MAIN ── */
.mu-bl-main {
    padding: 34px 32px 80px;
    background-color: #E9F8F9;
    background-image: radial-gradient(#CAE6E8 1.6px, transparent 1.6px);
    background-size: 22px 22px;
}

/* ── CURATED + LATEST SECTIONS ── */
.mu-bl-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}
.mu-bl-section-head h2,
.mu-bl-section-title {
    font-family: "Sora", system-ui, sans-serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: #0F172A;
    margin: 0;
}
.mu-bl-section-head p {
    font-family: "Sora", system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #454F5E;
    max-width: 52ch;
    margin: 0;
}
.mu-bl-curated-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.mu-bl-curated-card {
    height: 150px;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(180px, 38%) 1fr;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 30px -22px rgba(15, 23, 42, 0.34);
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
}
.mu-bl-curated-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -24px rgba(15, 23, 42, 0.42);
}
.mu-bl-curated-img {
    overflow: hidden;
    background: #E9F8F9;
}
.mu-bl-curated-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease-out;
}
.mu-bl-curated-card:hover .mu-bl-curated-img img {
    transform: scale(1.03);
}
.mu-bl-curated-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px 20px;
}
.mu-bl-curated-label {
    align-self: flex-start;
    padding: 5px 11px;
    border-radius: 999px;
    background: #DFF9EA;
    color: #127047;
    font-family: "Sora", system-ui, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.055em;
    line-height: 1.25;
    text-transform: uppercase;
}
.mu-bl-curated-body h3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-family: "Sora", system-ui, sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.018em;
    line-height: 1.22;
    color: #0F172A;
    margin: 11px 0 0;
}
.mu-bl-latest.has-featured {
    margin-top: 42px;
}
.mu-bl-section-title {
    margin-bottom: 18px;
}

/* ── FEATURED POST ── */
.mu-bl-featured {
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    box-shadow: 0 20px 50px -20px rgba(15, 23, 42, 0.12);
    margin-bottom: 40px;
    transition: transform 0.15s, box-shadow 0.15s;
    text-decoration: none;
    color: inherit;
}
.mu-bl-featured:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 56px -16px rgba(15, 23, 42, 0.18);
}
.mu-bl-featured-img {
    aspect-ratio: 16 / 9;
    background: #E9F8F9;
    overflow: hidden;
}
.mu-bl-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.mu-bl-featured:hover .mu-bl-featured-img img {
    transform: scale(1.03);
}
.mu-bl-featured-body {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}
.mu-bl-featured-body h2 {
    font-family: "Sora", system-ui, sans-serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #0F172A;
    margin: 0;
}
.mu-bl-featured-body > p {
    font-family: "Sora", system-ui, sans-serif;
    font-size: 16px;
    color: #8B95A7;
    line-height: 1.6;
    margin: 0;
}

/* ── CATEGORY CHIPS ── */
.mu-bl-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-family: "Sora", system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    align-self: flex-start;
    line-height: 1.4;
}
.mu-bl-cat-ia {
    background: #FFE8E8;
    color: #C73131;
}
.mu-bl-cat-mkt {
    background: #B9F4C8;
    color: #168A55;
}
.mu-bl-cat-lid {
    background: #E9F8F9;
    color: #1F6F7C;
    border: 1px solid #CAE6E8;
}
.mu-bl-cat-default {
    background: #E8EBF0;
    color: #454F5E;
}
.mu-bl-cat-lanz {
    background: #FFF1D6;
    color: #B5731A;
}

/* ── META ── */
.mu-bl-meta {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 12px;
    color: #8B95A7;
    display: flex;
    gap: 16px;
}

/* ── POST GRID ── */
.mu-bl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ── POST CARD ── */
.mu-bl-card {
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px -6px rgba(15, 23, 42, 0.08);
    transition: transform 0.15s, box-shadow 0.15s;
    text-decoration: none;
    color: inherit;
}
.mu-bl-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -12px rgba(15, 23, 42, 0.16);
}
.mu-bl-card-img {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #E9F8F9;
    overflow: hidden;
}
.mu-bl-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.mu-bl-card:hover .mu-bl-card-img img {
    transform: scale(1.03);
}
/* Holo overlay sobre la imagen — apagado por defecto, solo en hover (consistente con home/landings) */
@keyframes wmholo { from { background-position:0% 0; } to { background-position:100% 0; } }
.mu-bl-card-img::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(110deg, #168A55 0%, #3CE595 14%, #7CF5C8 26%, #F4D818 38%, #3AA6B9 52%, #6FE3F0 64%, #9DB4FF 76%, #3CE595 88%, #168A55 100%);
    background-size: 320% 100%;
    mix-blend-mode: soft-light;
    opacity: 0;
    animation: wmholo 11s ease-in-out infinite alternate;
    transition: opacity 0.25s ease;
}
.mu-bl-card:hover .mu-bl-card-img::after {
    opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
    .mu-bl-card-img::after { animation: none; background-position: 50% 0; }
}
.mu-bl-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}
.mu-bl-card-body h3 {
    font-family: "Sora", system-ui, sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
    color: #0F172A;
    margin: 0;
}
.mu-bl-card-body > p {
    font-family: "Sora", system-ui, sans-serif;
    font-size: 14px;
    color: #8B95A7;
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}
.mu-bl-card-body .mu-bl-meta {
    font-size: 11px;
    gap: 12px;
    margin-top: auto;
}

/* ── PAGINATION ── */
.mu-bl-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}
.mu-bl-pagination .page-numbers {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #fff;
    border: 2px solid #E8EBF0;
    display: grid;
    place-items: center;
    font-family: "Sora", system-ui, sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #454F5E;
    cursor: pointer;
    transition: all 0.12s;
    text-decoration: none;
}
.mu-bl-pagination .page-numbers:hover {
    border-color: #0F172A;
    color: #0F172A;
}
.mu-bl-pagination .page-numbers.current {
    background: #0F172A;
    color: #fff;
    border-color: #0F172A;
}
.mu-bl-pagination .page-numbers.prev,
.mu-bl-pagination .page-numbers.next {
    font-size: 18px;
}
.mu-bl-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
    color: #8B95A7;
}

/* ── EMPTY STATE ── */
.mu-bl-empty {
    text-align: center;
    font-family: "Sora", system-ui, sans-serif;
    font-size: 18px;
    color: #454F5E;
    padding: 80px 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
    .mu-bl-curated-grid {
        grid-template-columns: 1fr;
    }
    .mu-bl-curated-card {
        grid-template-columns: 210px 1fr;
    }
    .mu-bl-featured {
        grid-template-columns: 1fr;
    }
    .mu-bl-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .mu-bl-header {
        padding: 32px 16px 26px;
    }
    .mu-bl-main {
        padding: 26px 16px 60px;
    }
    .mu-bl-section-head {
        display: block;
    }
    .mu-bl-section-head p {
        margin-top: 8px;
    }
    .mu-bl-curated-grid {
        gap: 16px;
    }
    .mu-bl-curated-card {
        height: 124px;
        grid-template-columns: 120px 1fr;
    }
    .mu-bl-curated-body {
        padding: 14px 15px;
    }
    .mu-bl-curated-body h3 {
        font-size: 15px;
        margin-top: 9px;
    }
    .mu-bl-latest.has-featured {
        margin-top: 34px;
    }
    .mu-bl-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .mu-bl-featured {
        margin-bottom: 28px;
    }
    .mu-bl-featured-body {
        padding: 24px;
    }
    .mu-bl-featured-body h2 {
        font-size: 22px;
    }
    .mu-bl-title {
        font-size: clamp(28px, 8vw, 40px);
    }
    .mu-bl-sub {
        font-size: 16px;
    }
    .mu-bl-filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}
.mu-bl-cat-pm {
    background: #E8E0FF;
    color: #5B21B6;
}
.mu-bl-cat-seo {
    background: #DBEAFE;
    color: #1E40AF;
}
