/* Mejoras Foro - estilos front seguros */
/* El color oscuro se limita al menú superior/navegación de wpForo, no a cabeceras de hilos ni listados. */
#wpforo-wrap #wpforo-menu,
#wpforo-wrap .wpforo-menu,
#wpforo-wrap .wpf-menu,
#wpforo-wrap nav.wpforo-menu,
#wpforo-wrap nav.wpf-menu,
#wpforo-wrap .wpf-menu-wrap,
#wpforo-wrap .wpforo-menu-wrap {
    background: var(--mf-menu-bg, #151515) !important;
    color: var(--mf-menu-text, #ffffff) !important;
    border-radius: 12px;
    overflow: visible;
}

#wpforo-wrap #wpforo-menu a,
#wpforo-wrap .wpforo-menu a,
#wpforo-wrap .wpf-menu a,
#wpforo-wrap nav.wpforo-menu a,
#wpforo-wrap nav.wpf-menu a,
#wpforo-wrap .wpf-menu-wrap a,
#wpforo-wrap .wpforo-menu-wrap a {
    color: var(--mf-menu-text, #ffffff) !important;
}

#wpforo-wrap #wpforo-menu a:hover,
#wpforo-wrap .wpforo-menu a:hover,
#wpforo-wrap .wpf-menu a:hover,
#wpforo-wrap nav.wpforo-menu a:hover,
#wpforo-wrap nav.wpf-menu a:hover,
#wpforo-wrap .wpf-menu-wrap a:hover,
#wpforo-wrap .wpforo-menu-wrap a:hover,
#wpforo-wrap #wpforo-menu .current-menu-item > a,
#wpforo-wrap .wpforo-menu .current-menu-item > a,
#wpforo-wrap .wpf-menu .current-menu-item > a {
    color: var(--mf-menu-accent, #ff7a00) !important;
}


/* Oculta los accesos de cabecera de wpForo que el sitio no utiliza: Publicaciones sin leer | Foros | Temas.
   Se aplica solo a elementos marcados por el JS del plugin para no afectar otros enlaces del foro. */
#wpforo-wrap .mf-foro-hide-header-link,
#wpforo-wrap .mf-foro-hide-header-group {
    display: none !important;
}

/* Protección: evita que barras de herramientas, cabeceras de temas o listados hereden el fondo negro. */
#wpforo-wrap .wpf-head-bar,
#wpforo-wrap .wpf-tools,
#wpforo-wrap .wpf-thread,
#wpforo-wrap .wpf-topic,
#wpforo-wrap .wpforo-forum,
#wpforo-wrap .wpf-post-row {
    color: inherit;
}


.mf-featured-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: linear-gradient(135deg, var(--mf-badge-bg, #ff7a00), #ffb000);
    color: var(--mf-badge-text, #ffffff) !important;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 6px 10px;
    margin-right: 7px;
    vertical-align: middle;
    white-space: nowrap;
    box-shadow: 0 5px 14px rgba(255, 122, 0, .28);
    border: 1px solid rgba(255,255,255,.35);
}

.mf-featured-star {
    font-size: 12px;
    line-height: 1;
    transform: translateY(-.5px);
}

.mf-featured-badge.mf-featured-title-badge {
    margin: 0 9px 6px 0;
    font-size: 12px;
    padding: 7px 12px;
}

.mf-featured-box {
    margin: 14px 0 18px;
    padding: 14px;
    border-radius: 14px;
    background: #fffaf2;
    border: 1px solid rgba(255, 122, 0, .28);
    box-shadow: 0 8px 22px rgba(20, 20, 20, .06);
}

.mf-featured-box-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #1f1f1f;
    font-size: 14px;
    line-height: 1.2;
}

.mf-featured-box-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--mf-badge-bg, #ff7a00);
    color: var(--mf-badge-text, #ffffff);
    font-size: 13px;
    box-shadow: 0 5px 14px rgba(255, 122, 0, .25);
}

.mf-featured-box-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mf-featured-box-link {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 11px;
    background: #ffffff;
    color: #222 !important;
    text-decoration: none !important;
    border: 1px solid rgba(0, 0, 0, .08);
    font-size: 13px;
    font-weight: 700;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.mf-featured-box-link:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 122, 0, .45);
    box-shadow: 0 6px 16px rgba(20, 20, 20, .08);
}

#wpforo-wrap img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    #wpforo-wrap #wpforo-menu,
    #wpforo-wrap .wpforo-menu,
    #wpforo-wrap .wpf-menu,
    #wpforo-wrap nav.wpforo-menu,
    #wpforo-wrap nav.wpf-menu,
    #wpforo-wrap .wpf-menu-wrap,
    #wpforo-wrap .wpforo-menu-wrap {
        border-radius: 8px;
    }
    .mf-featured-badge {
        font-size: 10px;
        padding: 5px 8px;
    }
    .mf-featured-box {
        padding: 12px;
        border-radius: 12px;
    }
    .mf-featured-box-list {
        display: grid;
        grid-template-columns: 1fr;
    }
}


/* Carrusel global de hilos destacados: se inserta antes de “Información del foro”. */
.mf-featured-carousel {
    position: relative;
    margin: 26px 0 22px;
    padding: 20px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, rgba(255, 186, 0, .28), transparent 34%),
        linear-gradient(135deg, #fff7e6 0%, #ffffff 46%, #fff1d2 100%);
    border: 2px solid rgba(255, 122, 0, .38);
    box-shadow: 0 18px 45px rgba(33, 24, 12, .14);
    color: #191919;
    clear: both;
    overflow: hidden;
}

.mf-featured-carousel:before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--mf-badge-bg, #ff7a00), #ffca28, var(--mf-badge-bg, #ff7a00));
}

.mf-featured-carousel-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.mf-featured-carousel-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 7px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 122, 0, .12);
    color: #a94c00;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mf-featured-carousel h2 {
    margin: 0 !important;
    padding: 0 !important;
    color: #151515 !important;
    font-size: 23px !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    border: 0 !important;
}

.mf-featured-carousel-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.mf-featured-carousel-btn {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255, 122, 0, .35);
    background: #ffffff;
    color: #1f1f1f;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(33, 24, 12, .10);
}

.mf-featured-carousel-btn:hover {
    background: var(--mf-badge-bg, #ff7a00);
    border-color: var(--mf-badge-bg, #ff7a00);
    color: var(--mf-badge-text, #ffffff);
}

.mf-featured-carousel-track {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 2px 12px;
    -webkit-overflow-scrolling: touch;
}

.mf-featured-carousel-track::-webkit-scrollbar {
    height: 9px;
}

.mf-featured-carousel-track::-webkit-scrollbar-track {
    background: rgba(255, 122, 0, .10);
    border-radius: 999px;
}

.mf-featured-carousel-track::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--mf-badge-bg, #ff7a00), #ffbd26);
    border-radius: 999px;
}

.mf-featured-card {
    position: relative;
    min-width: 270px;
    max-width: 330px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 17px 17px 16px;
    border-radius: 18px;
    background: #ffffff;
    color: #191919 !important;
    text-decoration: none !important;
    border: 1px solid rgba(255, 122, 0, .24);
    box-shadow: 0 12px 26px rgba(33, 24, 12, .12);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    overflow: hidden;
}

.mf-featured-card:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--mf-badge-bg, #ff7a00), #ffca28);
}

.mf-featured-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 122, 0, .55);
    box-shadow: 0 18px 34px rgba(33, 24, 12, .18);
}

.mf-featured-card.is-current {
    outline: 2px solid var(--mf-badge-bg, #ff7a00);
    background: linear-gradient(180deg, #ffffff, #fff8ed);
}

.mf-featured-card-badge,
.mf-featured-mini-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--mf-badge-bg, #ff7a00), #ffb000);
    color: var(--mf-badge-text, #ffffff);
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 6px 9px;
    box-shadow: 0 7px 15px rgba(255, 122, 0, .22);
}

.mf-featured-card strong {
    display: block;
    font-size: 16px;
    line-height: 1.25;
    color: #141414;
    font-weight: 900;
}

.mf-featured-card small {
    color: #6a5642;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 700;
}

.mf-featured-box-link {
    gap: 7px;
}

@media (max-width: 768px) {
    .mf-featured-carousel {
        margin: 22px 0 18px;
        padding: 16px;
        border-radius: 16px;
    }
    .mf-featured-carousel-head {
        align-items: flex-start;
    }
    .mf-featured-carousel h2 {
        font-size: 19px !important;
    }
    .mf-featured-carousel-btn {
        width: 34px;
        height: 34px;
    }
    .mf-featured-card {
        min-width: 84%;
    }
}

/* Aviso de pago para destacar hilo */
.mf-paid-highlight-cta {
    margin: 16px 0 20px;
    padding: 18px;
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(255, 202, 40, .34), transparent 30%),
        linear-gradient(135deg, #181818 0%, #252525 52%, #111111 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 178, 0, .38);
    box-shadow: 0 18px 38px rgba(0, 0, 0, .18);
    clear: both;
}

.mf-paid-highlight-main {
    display: grid;
    grid-template-columns: minmax(230px, 1fr) minmax(320px, 1.35fr);
    gap: 18px;
    align-items: center;
}

.mf-paid-highlight-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 178, 0, .16);
    color: #ffc247;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mf-paid-highlight-cta h3 {
    margin: 0 0 7px !important;
    color: #ffffff !important;
    font-size: 22px !important;
    line-height: 1.15 !important;
    font-weight: 900 !important;
    border: 0 !important;
    padding: 0 !important;
}

.mf-paid-highlight-cta p {
    margin: 0 !important;
    color: rgba(255, 255, 255, .82) !important;
    font-size: 14px;
    line-height: 1.45;
}

.mf-paid-highlight-prices {
    display: grid;
    grid-template-columns: repeat(3, minmax(90px, 1fr));
    gap: 9px;
}

.mf-paid-highlight-price {
    padding: 11px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .14);
    text-align: center;
}

.mf-paid-highlight-price strong,
.mf-paid-highlight-price span {
    display: block;
}

.mf-paid-highlight-price strong {
    color: #ffffff;
    font-size: 12px;
    line-height: 1.15;
    margin-bottom: 4px;
}

.mf-paid-highlight-price span {
    color: #ffc247;
    font-size: 18px;
    line-height: 1;
    font-weight: 900;
}

.mf-paid-highlight-pay {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 15px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.mf-paid-highlight-pay strong {
    color: #ffffff;
    font-weight: 900;
}

.mf-paid-highlight-pay b {
    color: #ffc247;
}

.mf-paid-highlight-note {
    padding: 11px 12px;
    border-radius: 14px;
    background: rgba(255, 178, 0, .12);
    color: #fff3d1;
    font-size: 13px;
    line-height: 1.35;
    border: 1px solid rgba(255, 178, 0, .20);
}

@media (max-width: 768px) {
    .mf-paid-highlight-cta {
        padding: 15px;
        border-radius: 16px;
    }
    .mf-paid-highlight-main,
    .mf-paid-highlight-pay {
        grid-template-columns: 1fr;
    }
    .mf-paid-highlight-prices {
        grid-template-columns: repeat(2, minmax(90px, 1fr));
    }
    .mf-paid-highlight-cta h3 {
        font-size: 19px !important;
    }
}

/* Botón pequeño + modal para destacar hilo */
.mf-paid-highlight-widget {
    clear: both;
    margin: 10px 0 14px;
}

.mf-highlight-open {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    border-radius: 999px;
    padding: 8px 13px;
    background: linear-gradient(135deg, #ff7a00, #ffbd26);
    color: #151515;
    font-size: 13px;
    line-height: 1;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(255, 122, 0, .25);
}

.mf-highlight-open:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(255, 122, 0, .32);
}

.mf-highlight-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
}

.mf-highlight-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 14px;
    box-sizing: border-box;
}

.mf-highlight-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.62);
}

.mf-highlight-dialog {
    position: relative;
    width: min(720px, calc(100vw - 28px));
    max-height: calc(100vh - 40px);
    overflow: auto;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 22px;
    color: #171717;
    box-shadow: 0 30px 80px rgba(0,0,0,.35);
    border: 1px solid rgba(255, 122, 0, .28);
}

.mf-highlight-dialog:before {
    content: "";
    display: block;
    height: 6px;
    background: linear-gradient(90deg, #ff7a00, #ffbd26, #ff7a00);
}

.mf-highlight-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.08);
    background: #fff7ea;
    color: #151515;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.mf-highlight-dialog-head {
    padding: 22px 24px 12px;
    background: radial-gradient(circle at top left, rgba(255, 189, 38, .24), transparent 36%);
}

.mf-highlight-dialog-head span {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255, 122, 0, .12);
    color: #9d4800;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mf-highlight-dialog-head h3 {
    margin: 10px 0 7px !important;
    padding: 0 !important;
    border: 0 !important;
    color: #151515 !important;
    font-size: 26px !important;
    line-height: 1.15 !important;
    font-weight: 900 !important;
}

.mf-highlight-dialog-head p {
    margin: 0 !important;
    color: #4c4c4c !important;
    font-size: 14px;
    line-height: 1.45;
}

.mf-highlight-dialog form {
    padding: 12px 24px 24px;
}

.mf-highlight-plans {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 8px 0 16px;
}

.mf-plan-option {
    position: relative;
    display: block;
    cursor: pointer;
}

.mf-plan-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mf-plan-option span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 0;
    border-radius: 13px;
    padding: 10px 12px;
    background: #fffaf2;
    border: 2px solid rgba(255, 122, 0, .16);
    text-align: left;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.mf-plan-option input:checked + span {
    border-color: #ff7a00;
    box-shadow: 0 10px 24px rgba(255, 122, 0, .18);
    transform: translateY(-1px);
}

.mf-plan-option strong {
    color: #171717;
    font-size: 14px;
    line-height: 1.1;
}

.mf-plan-option small {
    color: #ff7a00;
    font-size: 16px;
    line-height: 1;
    font-weight: 900;
}


.mf-highlight-url-field input {
    background: #f7f7f7 !important;
    color: #333 !important;
    font-size: 13px !important;
    cursor: text;
}

.mf-highlight-payments {
    margin: 0 0 14px;
    padding: 13px 14px;
    border-radius: 16px;
    background: #171717;
    color: #ffffff;
}

.mf-highlight-payments strong {
    display: block;
    margin-bottom: 6px;
    color: #ffffff;
}

.mf-highlight-payments p {
    margin: 4px 0 !important;
    color: rgba(255,255,255,.85) !important;
    font-size: 13px;
}

.mf-highlight-payments b {
    color: #ffbd26;
}

.mf-highlight-field {
    display: block;
    margin: 11px 0;
}

.mf-highlight-field span {
    display: block;
    margin-bottom: 5px;
    color: #222;
    font-size: 13px;
    font-weight: 800;
}

.mf-highlight-field input,
.mf-highlight-field select,
.mf-highlight-field textarea {
    width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.14);
    padding: 10px 11px;
    background: #ffffff;
    color: #171717;
    font-size: 14px;
}

.mf-highlight-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 11px 0;
    font-weight: 800;
    color: #222;
}

.mf-highlight-note {
    margin: 13px 0;
    padding: 12px 13px;
    border-radius: 14px;
    background: #fff6e5;
    color: #563300;
    border: 1px solid rgba(255, 122, 0, .20);
    font-size: 13px;
    line-height: 1.35;
}

.mf-highlight-submit {
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 13px 16px;
    background: linear-gradient(135deg, #ff7a00, #ffbd26);
    color: #151515;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(255, 122, 0, .24);
}

.mf-highlight-success {
    margin: 12px 0 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #e9f8ef;
    color: #0b5d2a;
    border: 1px solid rgba(11, 93, 42, .16);
    font-weight: 800;
}

body.mf-highlight-modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .mf-highlight-modal.is-open {
        align-items: flex-start;
        padding-top: 14px;
        padding-bottom: 14px;
    }
    .mf-highlight-dialog {
        margin: 0 auto;
        border-radius: 18px;
    }
    .mf-highlight-dialog-head,
    .mf-highlight-dialog form {
        padding-left: 16px;
        padding-right: 16px;
    }
    .mf-highlight-dialog-head h3 {
        font-size: 21px !important;
    }
}

/* v0.1.11: URL del hilo separada del resto del formulario */
.mf-highlight-url-box {
    display: block;
    margin: 0 0 16px;
    padding: 14px 15px;
    border: 1px solid rgba(255, 122, 0, .32);
    border-radius: 16px;
    background: linear-gradient(180deg, #fff8ef 0%, #ffffff 100%);
}

.mf-highlight-url-box > span {
    display: block;
    margin: 0 0 8px;
    color: #171717;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .01em;
}

.mf-highlight-url-box input {
    width: 100% !important;
    min-height: 42px !important;
    padding: 10px 12px !important;
    border: 1px solid rgba(0, 0, 0, .16) !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: #222222 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: text;
}

.mf-highlight-url-box small {
    display: block;
    margin-top: 7px;
    color: #666666;
    font-size: 12px;
    line-height: 1.35;
}


/* v0.1.12: botón de destacar integrado junto a la búsqueda del menú */
.mf-paid-highlight-widget.mf-paid-highlight-widget-menu {
    clear: none;
    display: inline-flex;
    align-items: center;
    margin: 0 8px 0 0;
    vertical-align: middle;
}

#wpforo-wrap .mf-paid-highlight-widget-menu .mf-highlight-open {
    padding: 7px 12px;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 5px 14px rgba(255, 122, 0, .22);
}

.mf-plan-option span {
    justify-content: flex-start;
}

.mf-plan-option small {
    display: none;
}

.mf-plan-option strong {
    font-size: 15px;
}

@media (max-width: 768px) {
    .mf-paid-highlight-widget.mf-paid-highlight-widget-menu {
        display: flex;
        width: 100%;
        margin: 8px 0;
    }
    #wpforo-wrap .mf-paid-highlight-widget-menu .mf-highlight-open {
        width: 100%;
        justify-content: center;
    }
}


/* v0.1.13: corrección de contraste del modal cuando se abre desde el menú */
#wpforo-wrap .mf-highlight-modal,
#wpforo-wrap .mf-highlight-modal * {
    box-sizing: border-box;
}

#wpforo-wrap .mf-highlight-modal {
    color: #171717 !important;
    font-family: inherit;
}

#wpforo-wrap .mf-highlight-dialog {
    background: #ffffff !important;
    color: #171717 !important;
}

#wpforo-wrap .mf-highlight-dialog-head,
#wpforo-wrap .mf-highlight-dialog form,
#wpforo-wrap .mf-highlight-url-box,
#wpforo-wrap .mf-highlight-plans,
#wpforo-wrap .mf-highlight-field,
#wpforo-wrap .mf-highlight-check,
#wpforo-wrap .mf-highlight-note {
    color: #171717 !important;
}

#wpforo-wrap .mf-highlight-dialog h3,
#wpforo-wrap .mf-highlight-dialog p,
#wpforo-wrap .mf-highlight-dialog label,
#wpforo-wrap .mf-highlight-dialog span,
#wpforo-wrap .mf-highlight-dialog strong,
#wpforo-wrap .mf-highlight-dialog small {
    text-shadow: none !important;
}

#wpforo-wrap .mf-highlight-dialog-head h3,
#wpforo-wrap .mf-highlight-url-box > span,
#wpforo-wrap .mf-highlight-field span,
#wpforo-wrap .mf-plan-option strong,
#wpforo-wrap .mf-highlight-check {
    color: #171717 !important;
}

#wpforo-wrap .mf-highlight-dialog-head p,
#wpforo-wrap .mf-highlight-url-box small {
    color: #555555 !important;
}

#wpforo-wrap .mf-plan-option span {
    background: #fffaf2 !important;
    color: #171717 !important;
    border-color: rgba(255, 122, 0, .22) !important;
}

#wpforo-wrap .mf-plan-option input:checked + span {
    background: #fff3dc !important;
    border-color: #ff7a00 !important;
}

#wpforo-wrap .mf-highlight-field input,
#wpforo-wrap .mf-highlight-field select,
#wpforo-wrap .mf-highlight-field textarea,
#wpforo-wrap .mf-highlight-url-box input {
    background: #ffffff !important;
    color: #171717 !important;
    border-color: rgba(0,0,0,.18) !important;
    -webkit-text-fill-color: #171717 !important;
}

#wpforo-wrap .mf-highlight-field input::placeholder,
#wpforo-wrap .mf-highlight-field textarea::placeholder {
    color: #777777 !important;
    -webkit-text-fill-color: #777777 !important;
}

#wpforo-wrap .mf-highlight-payments {
    background: #171717 !important;
    color: #ffffff !important;
}

#wpforo-wrap .mf-highlight-payments strong,
#wpforo-wrap .mf-highlight-payments p {
    color: #ffffff !important;
}

#wpforo-wrap .mf-highlight-payments b {
    color: #ffbd26 !important;
}

#wpforo-wrap .mf-highlight-note {
    background: #fff6e5 !important;
    color: #563300 !important;
}

#wpforo-wrap .mf-highlight-submit,
#wpforo-wrap .mf-highlight-close,
#wpforo-wrap .mf-highlight-open {
    text-decoration: none !important;
}


/* v0.1.15 - Fijar visualmente los hilos destacados al inicio del listado/categoría */
#wpforo-wrap .mf-featured-pinned-row {
    position: relative;
    z-index: 2;
}
#wpforo-wrap .mf-featured-pinned-row::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #ffb300, #ff6a00);
    border-radius: 6px;
}

/* v0.1.16 - Dos opciones para enviar justificante: email o privado */
.mf-highlight-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 12px;
}

.mf-highlight-private {
    width: 100%;
    box-sizing: border-box;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 14px;
    padding: 13px 16px;
    background: #171717;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
}

.mf-highlight-private:hover,
.mf-highlight-private:focus {
    background: #000000;
    color: #ffbd26 !important;
    text-decoration: none !important;
}

#wpforo-wrap .mf-highlight-private {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

#wpforo-wrap .mf-highlight-private:hover,
#wpforo-wrap .mf-highlight-private:focus {
    color: #ffbd26 !important;
    -webkit-text-fill-color: #ffbd26 !important;
}



/* v0.1.21 - Logo compacto en el menú principal superior, junto a INICIO */
#wpforo-wrap .mf-foro-target-secondary-menu,
#wpforo-wrap .mf-foro-target-primary-menu {
    overflow: visible !important;
}

#wpforo-wrap .mf-foro-menu-with-logo {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
}

#wpforo-wrap .mf-foro-logo-inline,
#wpforo-wrap .mf-foro-logo-menu-item {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: stretch !important;
    height: auto !important;
    min-height: 0 !important;
    width: auto !important;
    max-width: 110px !important;
    margin: 0 6px 0 0 !important;
    padding: 0 8px !important;
    list-style: none !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    flex: 0 0 auto !important;
    overflow: hidden !important;
    line-height: 1 !important;
}

#wpforo-wrap .mf-foro-menu-list-with-logo {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
}

#wpforo-wrap .mf-foro-logo-menu-item .mf-foro-logo-moved,
#wpforo-wrap .mf-foro-logo-inline .mf-foro-logo-moved,
#wpforo-wrap .mf-foro-logo-menu-item a,
#wpforo-wrap .mf-foro-logo-inline a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: 100px !important;
    height: 100% !important;
    max-height: 34px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    line-height: 1 !important;
}

#wpforo-wrap .mf-foro-logo-menu-item img,
#wpforo-wrap .mf-foro-logo-inline img,
#wpforo-wrap .mf-foro-logo-menu-item svg,
#wpforo-wrap .mf-foro-logo-inline svg,
#wpforo-wrap .mf-foro-logo-menu-item .mf-foro-logo-moved img,
#wpforo-wrap .mf-foro-logo-inline .mf-foro-logo-moved img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-height: 22px !important;
    max-width: 98px !important;
    object-fit: contain !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
}

#wpforo-wrap .mf-foro-logo-menu-item + li,
#wpforo-wrap .mf-foro-logo-inline + * {
    margin-left: 0 !important;
}

#wpforo-wrap .mf-foro-logo-original-empty {
    display: none !important;
}


/* Cuando el logo se inserta en el menú superior blanco/gris, debe quedar como un icono compacto al lado de INICIO. */
#wpforo-wrap .mf-foro-target-primary-menu .mf-foro-logo-menu-item,
#wpforo-wrap .mf-foro-target-primary-menu .mf-foro-logo-inline {
    max-width: 96px !important;
    padding: 0 8px 0 10px !important;
    align-self: center !important;
}

#wpforo-wrap .mf-foro-target-primary-menu .mf-foro-logo-menu-item img,
#wpforo-wrap .mf-foro-target-primary-menu .mf-foro-logo-inline img {
    max-height: 20px !important;
    max-width: 90px !important;
}

#wpforo-wrap .mf-foro-target-primary-menu .mf-foro-logo-menu-item + li,
#wpforo-wrap .mf-foro-target-primary-menu .mf-foro-logo-inline + * {
    margin-left: 0 !important;
}

@media (max-width: 640px) {
    #wpforo-wrap .mf-foro-menu-with-logo,
    #wpforo-wrap .mf-foro-menu-list-with-logo {
        flex-wrap: nowrap !important;
    }
    #wpforo-wrap .mf-foro-logo-inline,
    #wpforo-wrap .mf-foro-logo-menu-item {
        width: auto !important;
        max-width: 92px !important;
        padding: 0 6px !important;
        margin-right: 4px !important;
    }
    #wpforo-wrap .mf-foro-logo-menu-item img,
    #wpforo-wrap .mf-foro-logo-inline img,
    #wpforo-wrap .mf-foro-logo-menu-item .mf-foro-logo-moved img,
    #wpforo-wrap .mf-foro-logo-inline .mf-foro-logo-moved img {
        max-height: 18px !important;
        max-width: 82px !important;
    }
}


/* v0.1.20 - Ajuste específico: logo en el menú negro junto a Inicio */
#wpforo-wrap .mf-foro-target-secondary-menu .mf-foro-logo-menu-item,
#wpforo-wrap .mf-foro-target-secondary-menu .mf-foro-logo-inline {
    height: 47px !important;
    min-height: 47px !important;
    max-height: 47px !important;
    padding: 0 14px 0 12px !important;
    margin: 0 !important;
    background: #111111 !important;
    border-right: 1px solid rgba(255,255,255,.08) !important;
}

#wpforo-wrap .mf-foro-target-secondary-menu .mf-foro-logo-menu-item a,
#wpforo-wrap .mf-foro-target-secondary-menu .mf-foro-logo-inline a,
#wpforo-wrap .mf-foro-target-secondary-menu .mf-foro-logo-menu-item .mf-foro-logo-moved,
#wpforo-wrap .mf-foro-target-secondary-menu .mf-foro-logo-inline .mf-foro-logo-moved {
    height: 47px !important;
    max-height: 47px !important;
    max-width: 116px !important;
}

#wpforo-wrap .mf-foro-target-secondary-menu .mf-foro-logo-menu-item img,
#wpforo-wrap .mf-foro-target-secondary-menu .mf-foro-logo-inline img,
#wpforo-wrap .mf-foro-target-secondary-menu .mf-foro-logo-menu-item .mf-foro-logo-moved img,
#wpforo-wrap .mf-foro-target-secondary-menu .mf-foro-logo-inline .mf-foro-logo-moved img {
    max-height: 24px !important;
    max-width: 112px !important;
    width: auto !important;
    object-fit: contain !important;
    filter: none !important;
}


/* Cuando el logo se inserta en el menú superior blanco/gris, debe quedar como un icono compacto al lado de INICIO. */
#wpforo-wrap .mf-foro-target-primary-menu .mf-foro-logo-menu-item,
#wpforo-wrap .mf-foro-target-primary-menu .mf-foro-logo-inline {
    max-width: 96px !important;
    padding: 0 8px 0 10px !important;
    align-self: center !important;
}

#wpforo-wrap .mf-foro-target-primary-menu .mf-foro-logo-menu-item img,
#wpforo-wrap .mf-foro-target-primary-menu .mf-foro-logo-inline img {
    max-height: 20px !important;
    max-width: 90px !important;
}

#wpforo-wrap .mf-foro-target-primary-menu .mf-foro-logo-menu-item + li,
#wpforo-wrap .mf-foro-target-primary-menu .mf-foro-logo-inline + * {
    margin-left: 0 !important;
}

@media (max-width: 640px) {
    #wpforo-wrap .mf-foro-target-secondary-menu .mf-foro-logo-menu-item,
    #wpforo-wrap .mf-foro-target-secondary-menu .mf-foro-logo-inline {
        height: 42px !important;
        min-height: 42px !important;
        max-height: 42px !important;
        padding: 0 8px !important;
    }
    #wpforo-wrap .mf-foro-target-secondary-menu .mf-foro-logo-menu-item img,
    #wpforo-wrap .mf-foro-target-secondary-menu .mf-foro-logo-inline img {
        max-height: 20px !important;
        max-width: 88px !important;
    }
}


/* v0.1.22 - Logotipo centrado encima del menú principal */
#wpforo-wrap .mf-foro-logo-centered {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 8px auto !important;
    padding: 8px 12px 6px 12px !important;
    text-align: center !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    line-height: 1 !important;
    clear: both !important;
}

#wpforo-wrap .mf-foro-logo-centered .mf-foro-logo-moved,
#wpforo-wrap .mf-foro-logo-centered a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    max-width: 190px !important;
    max-height: 44px !important;
    padding: 0 !important;
    margin: 0 auto !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    line-height: 1 !important;
}

#wpforo-wrap .mf-foro-logo-centered img,
#wpforo-wrap .mf-foro-logo-centered svg,
#wpforo-wrap .mf-foro-logo-centered .mf-foro-logo-moved img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 180px !important;
    max-height: 40px !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    padding: 0 !important;
    vertical-align: middle !important;
}

@media (max-width: 640px) {
    #wpforo-wrap .mf-foro-logo-centered {
        margin-bottom: 6px !important;
        padding: 6px 8px 5px 8px !important;
    }
    #wpforo-wrap .mf-foro-logo-centered img,
    #wpforo-wrap .mf-foro-logo-centered .mf-foro-logo-moved img {
        max-width: 210px !important;
        max-height: 34px !important;
    }
}


/* v0.1.26 - Suspensión de usuarios del foro. Solo estilos internos del foro. */
#wpforo-wrap .mf-suspended-notice {
    margin: 12px 0 16px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(185, 28, 28, .22);
    background: #fff1f2;
    color: #7f1d1d;
    font-size: 14px;
    line-height: 1.4;
}

#wpforo-wrap .mf-suspended-badge,
#wpforo-wrap .mf-suspended-profile-badge .mf-suspended-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: #b91c1c;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1;
    box-shadow: 0 6px 16px rgba(185, 28, 28, .22);
}

#wpforo-wrap .mf-suspended-profile-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 8px 0 12px;
}

#wpforo-wrap .mf-suspended-until {
    display: inline-flex;
    color: #7f1d1d;
    font-size: 12px;
    font-weight: 700;
}

#wpforo-wrap .mf-suspended-disabled-action {
    opacity: .55 !important;
    cursor: not-allowed !important;
    pointer-events: auto;
}


/* Insignia de perfil verificado: SVG ligero, sin imágenes externas ni icon fonts. */
.mf-verified-profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    max-width: 100%;
    margin: 6px 0 10px;
    padding: 6px 11px 6px 8px;
    border-radius: 999px;
    background: rgba(24, 119, 242, .10);
    color: #1d4f86 !important;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: .015em;
    border: 1px solid rgba(24, 119, 242, .18);
    box-shadow: 0 5px 14px rgba(24, 119, 242, .10);
    vertical-align: middle;
    white-space: nowrap;
}

.mf-verified-profile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    height: 13px;
    min-width: 13px;
    max-width: 13px;
    max-height: 13px;
    line-height: 1;
    color: #1877f2;
    transform: translateY(.5px);
}

#wpforo-wrap .mf-verified-user-mini-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 11px !important;
    height: 11px !important;
    min-width: 11px !important;
    max-width: 11px !important;
    max-height: 11px !important;
    line-height: 1 !important;
    color: #1877f2;
    transform: translateY(.5px);
    overflow: visible;
}

.mf-verified-svg {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;
    overflow: visible;
    shape-rendering: geometricPrecision;
}

.mf-verified-svg-bg {
    fill: #1877f2;
}

.mf-verified-svg-check {
    stroke: #ffffff;
    vector-effect: non-scaling-stroke;
}

#wpforo-wrap .mf-verified-profile-badge + .mf-suspended-profile-badge {
    margin-top: 4px;
}


/* Insignia compacta en tarjetas de autor de wpForo. */
#wpforo-wrap .mf-verified-user-mini {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    width: fit-content;
    max-width: 100%;
    min-height: 12px;
    margin: 0 auto 5px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #1877f2 !important;
    font-size: 10px !important;
    font-weight: 700;
    line-height: 12px !important;
    letter-spacing: 0;
    box-shadow: none;
    vertical-align: middle;
    white-space: nowrap;
    clear: both;
}

#wpforo-wrap .mf-verified-user-mini-label {
    display: inline-block;
    font-size: 10px !important;
    line-height: 12px !important;
    transform: translateY(-.2px);
}

#wpforo-wrap .mf-verified-user-mini svg,
#wpforo-wrap .mf-verified-user-mini-icon svg {
    width: 11px !important;
    height: 11px !important;
    max-width: 11px !important;
    max-height: 11px !important;
}

#wpforo-wrap .mf-verified-profile-badge svg,
#wpforo-wrap .mf-verified-profile-icon svg {
    width: 13px !important;
    height: 13px !important;
    max-width: 13px !important;
    max-height: 13px !important;
}

@media (max-width: 520px) {
    #wpforo-wrap .mf-verified-user-mini {
        font-size: 10px !important;
        min-height: 12px;
        line-height: 12px !important;
    }

    .mf-verified-profile-icon {
        width: 13px;
        height: 13px;
        min-width: 13px;
    }

    #wpforo-wrap .mf-verified-user-mini-icon {
        width: 11px !important;
        height: 11px !important;
        min-width: 11px !important;
    }
}

/* v0.1.35: iconos visuales para listados de wpForo.
   Mejora las cajas blancas de icono sin tocar plantillas ni core de wpForo. */
#wpforo-wrap .mf-smart-icon-holder {
    width: 46px !important;
    min-width: 46px !important;
    max-width: 52px !important;
    text-align: center !important;
    vertical-align: top !important;
    padding-left: 0 !important;
    padding-right: 10px !important;
    box-sizing: border-box !important;
}

#wpforo-wrap .mf-foro-smart-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%) !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .12) !important;
    border: 1px solid rgba(255, 255, 255, .72) !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    transform: translateY(1px);
}

#wpforo-wrap .mf-foro-smart-icon svg {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.9 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

#wpforo-wrap .mf-foro-smart-icon-blue { background: linear-gradient(135deg, #1d4ed8 0%, #38bdf8 100%) !important; }
#wpforo-wrap .mf-foro-smart-icon-cyan { background: linear-gradient(135deg, #0e7490 0%, #67e8f9 100%) !important; }
#wpforo-wrap .mf-foro-smart-icon-green { background: linear-gradient(135deg, #15803d 0%, #86efac 100%) !important; }
#wpforo-wrap .mf-foro-smart-icon-orange { background: linear-gradient(135deg, #ea580c 0%, #facc15 100%) !important; }
#wpforo-wrap .mf-foro-smart-icon-purple { background: linear-gradient(135deg, #7e22ce 0%, #c084fc 100%) !important; }
#wpforo-wrap .mf-foro-smart-icon-red { background: linear-gradient(135deg, #dc2626 0%, #fb7185 100%) !important; }
#wpforo-wrap .mf-foro-smart-icon-pink { background: linear-gradient(135deg, #be185d 0%, #f9a8d4 100%) !important; }
#wpforo-wrap .mf-foro-smart-icon-dark { background: linear-gradient(135deg, #111827 0%, #64748b 100%) !important; }
#wpforo-wrap .mf-foro-smart-icon-slate { background: linear-gradient(135deg, #334155 0%, #94a3b8 100%) !important; }

#wpforo-wrap .mf-smart-icon-holder:hover .mf-foro-smart-icon,
#wpforo-wrap .wpf-topic:hover .mf-foro-smart-icon,
#wpforo-wrap .wpforo-topic:hover .mf-foro-smart-icon,
#wpforo-wrap .wpf-thread:hover .mf-foro-smart-icon,
#wpforo-wrap .wpforo-thread:hover .mf-foro-smart-icon,
#wpforo-wrap .wpf-forum:hover .mf-foro-smart-icon,
#wpforo-wrap .wpforo-forum:hover .mf-foro-smart-icon {
    transform: translateY(-1px) !important;
    box-shadow: 0 12px 24px rgba(15, 23, 42, .18) !important;
}

@media (max-width: 768px) {
    #wpforo-wrap .mf-smart-icon-holder {
        width: 40px !important;
        min-width: 40px !important;
        padding-right: 7px !important;
    }
    #wpforo-wrap .mf-foro-smart-icon {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        border-radius: 10px !important;
    }
    #wpforo-wrap .mf-foro-smart-icon svg {
        width: 18px !important;
        height: 18px !important;
    }
}

/* Refuerzo v0.1.37: oculta el bloque suelto de enlaces de wpForo
   “Publicaciones sin leer | Foros | Temas” detectado por JS, incluido cuando lleva iconos RSS. */
#wpforo-wrap .mf-foro-hide-header-link,
#wpforo-wrap .mf-foro-hide-header-group,
#wpforo-wrap .mf-foro-hide-header-group * {
    display: none !important;
    visibility: hidden !important;
}

/* Seguridad de registro: casilla humana + honeypot invisible. */
.mf-register-human-check {
    margin: 14px 0 !important;
    padding: 12px 14px !important;
    border-radius: 10px !important;
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, .12) !important;
    color: #202020 !important;
    box-sizing: border-box !important;
}

.mf-register-human-check label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

.mf-register-human-check input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
}

.mf-register-honeypot {
    position: absolute !important;
    left: -99999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}


/* Oculta únicamente la barra de menú superior duplicada del tema cuando el plugin la identifica.
   No oculta el logo ni el menú negro interno de wpForo. */
.mf-foro-theme-duplicate-menu {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}

/* v0.1.43 - Cartelera de hilos populares a lo ancho de la cabecera hasta la zona de búsqueda */
#wpforo-wrap .mf-foro-logo-centered.mf-foro-logo-with-marquee {
    justify-content: center !important;
    gap: 18px !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

#wpforo-wrap .mf-foro-logo-centered.mf-foro-logo-with-marquee > a,
#wpforo-wrap .mf-foro-logo-centered.mf-foro-logo-with-marquee > .mf-foro-logo-moved {
    margin: 0 !important;
    flex: 0 0 auto !important;
}

#wpforo-wrap .mf-popular-marquee {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex: 1 1 720px !important;
    width: clamp(620px, 74vw, 980px) !important;
    min-width: 420px !important;
    max-width: 980px !important;
    height: 48px !important;
    padding: 6px 10px 6px 14px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(28, 34, 48, .96)) !important;
    border: 1px solid rgba(255, 122, 0, .38) !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .18) !important;
    overflow: hidden !important;
    color: #fff !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
}

#wpforo-wrap .mf-popular-label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex: 0 0 auto !important;
    padding: 0 7px 0 0 !important;
    border-right: 1px solid rgba(255,255,255,.18) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: .02em !important;
    white-space: nowrap !important;
}

#wpforo-wrap .mf-popular-viewport {
    position: relative !important;
    overflow: hidden !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 36px !important;
}

#wpforo-wrap .mf-popular-track {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: max-content !important;
    min-width: 100% !important;
    height: 36px !important;
    animation: mf-popular-marquee 36s linear infinite !important;
    will-change: transform !important;
}

#wpforo-wrap .mf-popular-marquee:hover .mf-popular-track {
    animation-play-state: paused !important;
}

#wpforo-wrap .mf-popular-chip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    height: 34px !important;
    max-width: 340px !important;
    padding: 3px 10px 3px 4px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.10) !important;
    color: #fff !important;
    text-decoration: none !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

#wpforo-wrap .mf-popular-chip:hover {
    background: rgba(255, 122, 0, .22) !important;
    border-color: rgba(255, 122, 0, .48) !important;
    color: #fff !important;
}

#wpforo-wrap .mf-popular-orb {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, var(--mf-badge-bg, #ff7a00), #ffb000) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    box-shadow: 0 4px 10px rgba(255, 122, 0, .28) !important;
}

#wpforo-wrap .mf-popular-text {
    display: inline-block !important;
    max-width: 210px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
}

#wpforo-wrap .mf-popular-chip small {
    color: rgba(255,255,255,.74) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

@keyframes mf-popular-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    #wpforo-wrap .mf-foro-logo-centered.mf-foro-logo-with-marquee {
        flex-direction: column !important;
        gap: 8px !important;
        overflow: visible !important;
    }
    #wpforo-wrap .mf-popular-marquee {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 40px !important;
    }
    #wpforo-wrap .mf-popular-label strong {
        max-width: 112px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    #wpforo-wrap .mf-popular-text {
        max-width: 150px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    #wpforo-wrap .mf-popular-track {
        animation: none !important;
        transform: none !important;
    }
}


/* v0.1.43 - versión más ancha: ocupa casi toda la cabecera y deja el logo a la izquierda */
#wpforo-wrap .mf-foro-logo-centered.mf-foro-logo-with-marquee {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    box-sizing: border-box !important;
}

#wpforo-wrap .mf-foro-logo-centered.mf-foro-logo-with-marquee > a,
#wpforo-wrap .mf-foro-logo-centered.mf-foro-logo-with-marquee > .mf-foro-logo-moved {
    flex: 0 0 auto !important;
    margin: 0 !important;
}

#wpforo-wrap .mf-foro-logo-centered.mf-foro-logo-with-marquee img,
#wpforo-wrap .mf-foro-logo-centered.mf-foro-logo-with-marquee .mf-foro-logo-moved img {
    margin: 0 !important;
}

#wpforo-wrap .mf-foro-logo-centered.mf-foro-logo-with-marquee .mf-popular-marquee {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin-left: 8px !important;
    margin-right: 0 !important;
}

#wpforo-wrap .mf-foro-logo-centered.mf-foro-logo-with-marquee .mf-popular-text {
    max-width: 260px !important;
}

#wpforo-wrap .mf-foro-logo-centered.mf-foro-logo-with-marquee .mf-popular-chip {
    max-width: 410px !important;
}

@media (min-width: 1024px) {
    #wpforo-wrap .mf-foro-logo-centered.mf-foro-logo-with-marquee {
        padding-right: 58px !important; /* reserva visual aproximada para no chocar con la lupa */
    }
}

@media (max-width: 768px) {
    #wpforo-wrap .mf-foro-logo-centered.mf-foro-logo-with-marquee {
        flex-direction: column !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    #wpforo-wrap .mf-foro-logo-centered.mf-foro-logo-with-marquee .mf-popular-marquee {
        width: 100% !important;
        margin-left: 0 !important;
    }
}

/* v0.1.44 - Cartelera extendida y centrada hasta el final real de la cabecera */
#wpforo-wrap .mf-foro-logo-centered.mf-foro-logo-with-marquee {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: center !important;
    column-gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding-left: 8px !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

#wpforo-wrap .mf-foro-logo-centered.mf-foro-logo-with-marquee > a,
#wpforo-wrap .mf-foro-logo-centered.mf-foro-logo-with-marquee > .mf-foro-logo-moved {
    justify-self: start !important;
    flex: none !important;
    margin: 0 !important;
}

#wpforo-wrap .mf-foro-logo-centered.mf-foro-logo-with-marquee .mf-popular-marquee {
    justify-self: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    height: 52px !important;
    padding: 7px 12px 7px 16px !important;
}

#wpforo-wrap .mf-foro-logo-centered.mf-foro-logo-with-marquee .mf-popular-viewport {
    width: 100% !important;
}

#wpforo-wrap .mf-foro-logo-centered.mf-foro-logo-with-marquee .mf-popular-chip {
    max-width: 460px !important;
}

#wpforo-wrap .mf-foro-logo-centered.mf-foro-logo-with-marquee .mf-popular-text {
    max-width: 310px !important;
}

@media (min-width: 1024px) {
    #wpforo-wrap .mf-foro-logo-centered.mf-foro-logo-with-marquee {
        padding-right: 0 !important;
    }
}

@media (max-width: 768px) {
    #wpforo-wrap .mf-foro-logo-centered.mf-foro-logo-with-marquee {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    #wpforo-wrap .mf-foro-logo-centered.mf-foro-logo-with-marquee .mf-popular-marquee {
        width: 100% !important;
        height: 42px !important;
    }
}


/* v0.1.45 - Cartelera realmente a todo el ancho visible de la cabecera.
   Este bloque también cubre el caso en el que wpForo no permite insertar la cartelera dentro del contenedor del logo
   y la coloca justo debajo: evita el límite anterior de 980px y aprovecha el espacio vacío hasta el final. */
#wpforo-wrap .mf-popular-marquee {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

#wpforo-wrap > .mf-popular-marquee,
#wpforo-wrap .wpforo-content + .mf-popular-marquee,
#wpforo-wrap .wpf-head + .mf-popular-marquee,
#wpforo-wrap .wpforo-head + .mf-popular-marquee,
#wpforo-wrap .wpf-head-bar + .mf-popular-marquee {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 52px !important;
    margin: 10px 0 0 !important;
    padding: 7px 14px 7px 16px !important;
    border-radius: 999px !important;
}

#wpforo-wrap .mf-popular-viewport {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
}

#wpforo-wrap .mf-popular-track {
    min-width: max-content !important;
}

#wpforo-wrap .mf-popular-chip {
    max-width: 430px !important;
}

#wpforo-wrap .mf-popular-text {
    max-width: 280px !important;
}

@media (min-width: 1100px) {
    #wpforo-wrap .mf-popular-chip {
        max-width: 520px !important;
    }
    #wpforo-wrap .mf-popular-text {
        max-width: 360px !important;
    }
}

@media (max-width: 768px) {
    #wpforo-wrap .mf-popular-marquee,
    #wpforo-wrap > .mf-popular-marquee {
        width: 100% !important;
        max-width: 100% !important;
        height: 42px !important;
        margin-top: 8px !important;
        padding: 5px 8px !important;
    }
    #wpforo-wrap .mf-popular-chip {
        max-width: 260px !important;
    }
    #wpforo-wrap .mf-popular-text {
        max-width: 165px !important;
    }
}
