/* ==========================================================================
   COMPONENTE · Entradas destacadas del blog (1 grande + 2 pequeñas)
   Enfoque Mobile-First. Valores fieles al CSS de Figma (Blog · Sección 1).
   ========================================================================== */

.bfeat-block {
    padding: var(--pt-m, 32px) 0 var(--pb-m, 32px);
    background-color: #FFFFFF;
    box-sizing: border-box;
    font-family: 'Be Vietnam Pro', system-ui, sans-serif;
}

.bfeat-block .sec-custom-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ---- Encabezado ---- */
.bfeat-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.bfeat-tagline {
    font-weight: 500;
    font-size: 14px;
    line-height: 160%;
    letter-spacing: 2.16px;
    text-transform: uppercase;
}

.bfeat-heading {
    margin: 0;
    font-weight: 600;
    font-size: 26px;                /* móvil; 32px en escritorio */
    line-height: 120%;
    letter-spacing: -0.72px;
    color: #27292B;
}

/* ---- Rejilla (móvil: 1 columna apilada) ---- */
.bfeat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* ---- Tarjeta (enlace a la entrada) ---- */
.bfeat-card {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 260px;
    border-radius: 26px;
    border: 1px solid #EDE6E1;
    background-color: #EAF4FA;      /* fallback si no hay imagen destacada */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bfeat-card--big {
    min-height: 320px;
}

.bfeat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.bfeat-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
}

/* Badge de categoría */
.bfeat-cat {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    padding: 4px 16px;
    background: #EAF4FA;
    border-radius: 12px;
    font-weight: 400;
    font-size: 14px;
    line-height: 160%;
    letter-spacing: -0.45px;
    color: #006491;
}

/* Texto sobre la imagen (abajo) */
.bfeat-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 11.5px;
    padding: 20px;
}

.bfeat-card-title {
    margin: 0;
    font-weight: 600;
    font-size: 20px;                /* pequeñas; grande 24→32 en escritorio */
    line-height: 120%;
    letter-spacing: -0.3px;
    color: #FFFFFF;
}

.bfeat-card--big .bfeat-card-title {
    font-size: 24px;
    letter-spacing: -0.72px;
}

.bfeat-card-excerpt {
    margin: 0;
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    letter-spacing: -0.45px;
    color: #F2F2F3;
    /* Máximo 2 líneas, con puntos suspensivos si sobra */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   Escritorio (≥992px): 1 grande (izq) + 2 pequeñas apiladas (der)
   ========================================================================== */
@media (min-width: 992px) {
    .bfeat-heading {
        font-size: 32px;
    }

    .bfeat-grid {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
        grid-auto-rows: 260px;
        gap: 20px;
    }

    /* La grande ocupa la columna izquierda y las dos filas */
    .bfeat-card--big {
        grid-row: span 2;
        min-height: 0;
    }

    .bfeat-card--big .bfeat-content {
        padding: 24px 28px 16px;
    }

    .bfeat-card--big .bfeat-card-title {
        font-size: 32px;
    }
}
