/* ============================================================================
   Detalle de publicación — compartir + metadatos
   Se carga globalmente, pero todos los selectores quedan limitados al bloque
   principal de news/show para no afectar otras vistas.
============================================================================ */

/* Bloque de botones inmediatamente posterior al H1 del artículo. */
.col-lg-8 > h1 + .d-flex.flex-wrap.gap-2.mb-3 {
    align-items: center;
    gap: .45rem !important;
    margin-bottom: .55rem !important;
    padding: .65rem .75rem;
    background: #fbfafc;
    border: 1px solid #ece8f2;
    border-radius: 12px;
}

.col-lg-8 > h1 + .d-flex.flex-wrap.gap-2.mb-3 .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .32rem;
    min-height: 32px;
    padding: .3rem .62rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.15;
    box-shadow: none !important;
    transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease;
}

.col-lg-8 > h1 + .d-flex.flex-wrap.gap-2.mb-3 .btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

/* Autor, fecha y vistas: más editorial y menos alto. */
.col-lg-8 > h1 + .d-flex.flex-wrap.gap-2.mb-3 + .d-flex.align-items-center.text-muted.mb-3 {
    flex-wrap: wrap;
    gap: .4rem 1rem !important;
    margin-bottom: .9rem !important;
    padding: 0 .2rem;
    font-size: .84rem;
    line-height: 1.35;
}

.col-lg-8 > h1 + .d-flex.flex-wrap.gap-2.mb-3 + .d-flex.align-items-center.text-muted.mb-3 span {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    white-space: nowrap;
}

.col-lg-8 > h1 + .d-flex.flex-wrap.gap-2.mb-3 + .d-flex.align-items-center.text-muted.mb-3 i {
    color: var(--mlf-primary);
    opacity: .82;
}

/*
   El sidebar de "Más Leídas" también usa sticky-top de Bootstrap (z-index: 1020).
   Elevamos la navegación principal para que sus dropdowns siempre se dibujen
   por delante del sidebar y del contenido sticky.
*/
.mlf-navbar.sticky-top {
    z-index: 1050;
}

.mlf-navbar .dropdown-menu {
    z-index: 1060;
}

/* Escritorio: reduce un poco el espacio entre título y herramientas. */
@media (min-width: 768px) {
    .col-lg-8 > h1 {
        margin-bottom: .75rem !important;
    }

    .col-lg-8 > h1 + .d-flex.flex-wrap.gap-2.mb-3 {
        width: fit-content;
        max-width: 100%;
    }
}

/* Móvil: todas las acciones se convierten en botones circulares con icono. */
@media (max-width: 575.98px) {
    .col-lg-8 > h1 {
        font-size: 1.48rem;
        line-height: 1.22;
        margin-bottom: .7rem !important;
        padding-left: 10px;
    }

    .col-lg-8 > h1 + .d-flex.flex-wrap.gap-2.mb-3 {
        justify-content: center;
        align-items: center;
        gap: .42rem !important;
        margin-bottom: .5rem !important;
        padding: .5rem .55rem;
        border-radius: 10px;
    }

    /* Facebook, X, WhatsApp, LinkedIn, Copiar copy y Copiar enlace. */
    .col-lg-8 > h1 + .d-flex.flex-wrap.gap-2.mb-3 .btn {
        flex: 0 0 34px;
        width: 34px;
        min-width: 34px;
        max-width: 34px;
        height: 34px;
        min-height: 34px;
        padding: 0 !important;
        border-radius: 50% !important;
        gap: 0;
        font-size: 0 !important;
        line-height: 1;
    }

    .col-lg-8 > h1 + .d-flex.flex-wrap.gap-2.mb-3 .btn i {
        display: block;
        margin: 0 !important;
        font-size: .88rem !important;
        line-height: 1;
    }

    .col-lg-8 > h1 + .d-flex.flex-wrap.gap-2.mb-3 + .d-flex.align-items-center.text-muted.mb-3 {
        gap: .35rem .65rem !important;
        margin-bottom: .75rem !important;
        padding: 0 .05rem;
        font-size: .76rem;
    }

    .col-lg-8 > h1 + .d-flex.flex-wrap.gap-2.mb-3 + .d-flex.align-items-center.text-muted.mb-3 span {
        white-space: normal;
    }

    /* Breadcrumb más compacto para llegar antes al contenido. */
    nav[aria-label="breadcrumb"] {
        margin-bottom: .75rem !important;
    }

    nav[aria-label="breadcrumb"] .breadcrumb {
        margin-bottom: 0;
        font-size: .82rem;
        line-height: 1.35;
    }
}
