/* ============================================================
   EHU Investment Club — bbPress Styles v4
   Selectores basados en el HTML real que genera bbPress 2.x
   ============================================================ */

/* ── Like button ──────────────────────────────────────────── */
.ehu-like-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
}

.ehu-like-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 20px;
    background: transparent;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    line-height: 1;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.ehu-like-btn:hover {
    border-color: #16213e;
    color: #16213e;
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ehu-like-btn:active {
    transform: scale(0.93);
}

.ehu-like-btn.ehu-liked {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.ehu-like-btn.ehu-liked:hover {
    background: #dbeafe;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
}

.ehu-like-btn.ehu-loading {
    opacity: 0.6;
    pointer-events: none;
}

.ehu-like-count:empty {
    display: none;
}

.ehu-like-count {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.15s ease;
    display: inline-block;
}

/* Icono rebote al activar */
.ehu-like-btn i {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
    display: inline-block;
}

.ehu-like-btn.ehu-pop i {
    animation: ehu-like-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes ehu-like-pop {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.55) rotate(-10deg);
    }

    70% {
        transform: scale(0.88) rotate(5deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* Ripple */
.ehu-like-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.18);
    transform: scale(0);
    animation: ehu-ripple 0.5s ease-out forwards;
    pointer-events: none;
}

@keyframes ehu-ripple {
    to {
        transform: scale(3.5);
        opacity: 0;
    }
}

/* Partículas flotantes */
.ehu-like-particle {
    position: fixed;
    pointer-events: none;
    font-size: 0.9rem;
    animation: ehu-particle-fly 0.8s ease-out forwards;
    z-index: 9999;
}

@keyframes ehu-particle-fly {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(var(--tx), var(--ty)) scale(0.3);
        opacity: 0;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ── Wrapper de página ──────────────────────────────────────── */
.bbpress-page-wrapper {
    background: #f8fafc;
    padding: 48px 0 80px;
    min-height: 60vh;
}

.bbpress-page-wrapper .container,
#bbpress-forums,
#bbp-container,
#bbp-user-wrapper {
    max-width: 1380px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ── Breadcrumb y botones superior (Favorito / Suscribir) ────── */
/* ── Breadcrumb y botones superior (Favorito / Suscribir) ────── */
#bbpress-forums p.bbp-breadcrumb {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-bottom: 28px !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    clear: both !important;
}

#bbpress-forums p.bbp-breadcrumb a {
    color: #4f7df3;
    text-decoration: none;
    font-weight: 600;
}

#bbpress-forums p.bbp-breadcrumb a:hover {
    text-decoration: underline;
}

/* En las páginas de búsqueda, alinear el breadcrumb con el buscador */
#bbpress-forums .bbp-search-form-wrapper,
#bbpress-forums form.bbp-search-form,
#bbpress-forums #bbp-search-form,
#bbpress-forums form[role="search"] {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    margin: 0 !important;
}

/* Ajustes específicos para el buscador flotante en la cabecera */
#bbpress-forums #bbp-search-form div,
#bbpress-forums form[role="search"] div {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

#bbpress-forums #bbp-search-form input#bbp_search,
#bbpress-forums form[role="search"] input[type="text"] {
    width: 260px !important;
    max-width: 100% !important;
    padding: 10px 18px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    font-size: 0.9rem !important;
    color: #16213e !important;
    background: #fff !important;
    outline: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
}

#bbpress-forums #bbp-search-form input#bbp_search:focus,
#bbpress-forums form[role="search"] input[type="text"]:focus {
    border-color: #4f7df3 !important;
    box-shadow: 0 0 0 3px rgba(79, 125, 243, 0.14) !important;
}

#bbpress-forums #bbp-search-form input[type="submit"],
#bbpress-forums form[role="search"] input[type="submit"] {
    background: #16213e !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 10px 22px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background 0.15s, transform 0.15s !important;
    -webkit-appearance: none !important;
}

/* ── Botones de Favorito y Suscribirse con diseño de tamaño idéntico ── */
#bbpress-forums .subscription-toggle,
#bbpress-forums .favorite-toggle,
#bbpress-forums span.is-subscribed,
#bbpress-forums span.is-favorite,
#bbpress-forums .user-subscribe-link,
#bbpress-forums .user-favorite-link,
#bbpress-forums a.subscription-toggle,
#bbpress-forums a.favorite-toggle,
#bbpress-forums span.user-subscription a,
#bbpress-forums span.is-subscribed a,
.subscription-toggle,
.favorite-toggle,
a.subscription-toggle,
a.favorite-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    margin: 0 !important;
    vertical-align: middle !important;
    padding: 8px 18px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    border-radius: 12px !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    font-family: 'Inter', sans-serif !important;
    text-decoration: none !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    transition: all 0.18s ease !important;
    box-sizing: border-box !important;
}

/* Iconos FontAwesome inyectados por CSS puro para botones de Suscribirse */
.subscription-toggle::before,
a.subscription-toggle::before,
#bbpress-forums a.subscription-toggle::before {
    content: "\f0f3" !important;
    /* fa-bell */
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-size: 0.85rem !important;
    margin-right: 6px !important;
    display: inline-block !important;
}

span.is-subscribed a::before,
.is-subscribed a.subscription-toggle::before {
    content: "\f1f6" !important;
    /* fa-bell-slash */
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-size: 0.85rem !important;
    margin-right: 6px !important;
    display: inline-block !important;
}

/* Estado: Marcado como favorito */
#bbpress-forums span.is-favorite a,
span.is-favorite a,
span.is-favorite a.favorite-toggle {
    background: #fefce8 !important;
    color: #854d0e !important;
    border: 1.5px solid #fde047 !important;
    box-shadow: 0 2px 8px rgba(234, 179, 8, 0.15) !important;
}

#bbpress-forums span.is-favorite a:hover,
span.is-favorite a:hover,
span.is-favorite a.favorite-toggle:hover {
    background: #fef08a !important;
    color: #713f12 !important;
    border-color: #eab308 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.25) !important;
}

/* Estado: No es favorito aún */
#bbpress-forums span.user-favorite a,
span.user-favorite a,
span.user-favorite a.favorite-toggle,
a.favorite-toggle {
    background: #ffffff !important;
    color: #475569 !important;
    border: 1.5px solid #cbd5e1 !important;
}

#bbpress-forums span.user-favorite a:hover,
span.user-favorite a:hover,
span.user-favorite a.favorite-toggle:hover,
a.favorite-toggle:hover {
    background: #16213e !important;
    color: #ffffff !important;
    border-color: #16213e !important;
}

/* Estado: Botón Suscribirse (Azul marino sólido elegante) */
#bbpress-forums a.subscription-toggle,
a.subscription-toggle,
span.is-subscribed a {
    background: #16213e !important;
    color: #ffffff !important;
    border: 1.5px solid #16213e !important;
    box-shadow: 0 2px 8px rgba(22, 33, 62, 0.18) !important;
}

#bbpress-forums a.subscription-toggle:hover,
a.subscription-toggle:hover,
span.is-subscribed a:hover {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25) !important;
}

/* ── Rediseño profesional de avisos / estados vacíos en bbPress ───── */
div.bbp-template-notice,
p.bbp-template-notice,
div.bbp-topic-description,
.bbp-template-notice,
#bbpress-forums div.bbp-template-notice,
#bbp-user-wrapper div.bbp-template-notice,
.bbpress-page-wrapper div.bbp-template-notice {
    clear: both !important;
    background: #ffffff !important;
    border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
    border-radius: 16px !important;
    padding: 36px 32px !important;
    margin: 24px 0 32px !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

div.bbp-template-notice:hover,
p.bbp-template-notice:hover,
.bbp-template-notice:hover {
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06) !important;
    border-color: rgba(96, 165, 250, 0.4) !important;
}

div.bbp-template-notice::before,
p.bbp-template-notice::before,
.bbp-template-notice::before {
    content: none !important;
    display: none !important;
}

/* Insignia del icono destacado */
.ehu-notice-icon-wrap {
    width: 56px !important;
    height: 56px !important;
    background: #eff6ff !important;
    border: 1.5px solid #dbeafe !important;
    border-radius: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.35rem !important;
    color: #2563eb !important;
    margin-bottom: 4px !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08) !important;
}

/* Título del estado vacío */
.ehu-notice-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #16213e !important;
    margin: 0 0 4px 0 !important;
    font-family: 'Inter', sans-serif !important;
}

/* Descripción del estado vacío */
div.bbp-template-notice p,
p.bbp-template-notice p,
.bbp-template-notice p,
.ehu-notice-desc {
    margin: 0 !important;
    font-size: 0.88rem !important;
    color: #64748b !important;
    font-weight: 500 !important;
    max-width: 480px !important;
    line-height: 1.55 !important;
    font-family: 'Inter', sans-serif !important;
    text-align: center !important;
}

div.bbp-template-notice ul,
.bbp-template-notice ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
}

div.bbp-template-notice li,
.bbp-template-notice li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.55 !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    color: #64748b !important;
    text-align: center !important;
}

div.bbp-template-notice a,
.bbp-template-notice a {
    color: #2563eb !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border-bottom: 1.5px solid rgba(37, 99, 235, 0.3) !important;
    transition: all 0.15s ease !important;
}

div.bbp-template-notice a:hover,
.bbp-template-notice a:hover {
    color: #1d4ed8 !important;
    border-bottom-color: #1d4ed8 !important;
}

#bbpress-forums div.bbp-template-notice img.avatar {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    vertical-align: middle !important;
    margin: 0 4px !important;
}

/* ── Contador de temas ──────────────────────────────────────── */
#bbpress-forums span.bbp-topic-count-per-page,
#bbpress-forums p.bbp-topic-count-per-page {
    font-size: 0.8rem;
    color: #94a3b8;
    display: block;
    margin-bottom: 8px;
}

/* ── Lista de temas — ul.topic ────────────────────────── */
#bbpress-forums ul.topic,
.bbpress-page-wrapper ul.topic {
    list-style: none !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.07) !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    transition: transform 0.15s, box-shadow 0.15s !important;
    overflow: hidden !important;
    display: grid !important;
    grid-template-columns: 1fr 80px 80px 170px !important;
    align-items: center !important;
}

/* Columna 1: título */
/* Columna 1: título */
#bbpress-forums ul.topic li.bbp-topic-title,
.bbpress-page-wrapper ul.topic li.bbp-topic-title,
ul.topic li.bbp-topic-title {
    grid-column: 1 !important;
    grid-row: 1 !important;
    padding: 14px 20px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    align-self: center !important;
    gap: 6px 14px !important;
}

/* 1. Título a la izquierda */
#bbpress-forums ul.topic li.bbp-topic-title a.bbp-topic-permalink,
.bbpress-page-wrapper ul.topic li.bbp-topic-title a.bbp-topic-permalink,
ul.topic li.bbp-topic-title a.bbp-topic-permalink {
    display: inline-flex !important;
    align-items: center !important;
    order: 1 !important;
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    color: #16213e !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    flex: 1 1 auto !important;
}

/* 2. Botón de favoritos a la derecha alineado con el título */
#bbpress-forums ul.topic li.bbp-topic-title .bbp-row-actions,
.bbpress-page-wrapper ul.topic li.bbp-topic-title .bbp-row-actions,
.bbp-row-actions,
#favorite-toggle,
span.is-favorite,
span.user-favorite {
    display: inline-flex !important;
    align-items: center !important;
    order: 2 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

/* 3. Autor y foro en la fila inferior completa */
#bbpress-forums ul.topic li.bbp-topic-title p.bbp-topic-meta,
.bbpress-page-wrapper ul.topic li.bbp-topic-title p.bbp-topic-meta,
ul.topic li.bbp-topic-title p.bbp-topic-meta {
    width: 100% !important;
    order: 3 !important;
    margin: 2px 0 0 0 !important;
    font-size: 0.76rem !important;
    color: #94a3b8 !important;
}

/* Columna 2: voces */
#bbpress-forums ul.topic li.bbp-topic-voice-count,
.bbpress-page-wrapper ul.topic li.bbp-topic-voice-count,
ul.topic li.bbp-topic-voice-count {
    grid-column: 2 !important;
    grid-row: 1 !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #16213e !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    margin: auto 0 !important;
    padding: 0 8px !important;
    width: 100% !important;
    height: 100% !important;
}

/* Columna 3: respuestas */
#bbpress-forums ul.topic li.bbp-topic-reply-count,
.bbpress-page-wrapper ul.topic li.bbp-topic-reply-count,
ul.topic li.bbp-topic-reply-count {
    grid-column: 3 !important;
    grid-row: 1 !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #16213e !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    margin: auto 0 !important;
    padding: 0 8px !important;
    width: 100% !important;
    height: 100% !important;
}

/* Columna 4: última actividad */
#bbpress-forums ul.topic li.bbp-topic-freshness,
.bbpress-page-wrapper ul.topic li.bbp-topic-freshness,
ul.topic li.bbp-topic-freshness {
    grid-column: 4 !important;
    grid-row: 1 !important;
    padding: 0 20px 0 8px !important;
    font-size: 0.77rem !important;
    color: #64748b !important;
    text-align: right !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: center !important;
    align-self: center !important;
    margin: auto 0 !important;
    height: 100% !important;
}

#bbpress-forums ul.bbp-topics li.bbp-topic div.bbp-topic-freshness a {
    color: #16213e !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    font-size: 0.8rem !important;
    display: block !important;
}

#bbpress-forums ul.bbp-topics li.bbp-topic div.bbp-topic-freshness img {
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
}

/* ── Paginación moderna centrada ─────────────────────────────── */
div.bbp-pagination,
#bbpress-forums div.bbp-pagination,
.bbpress-page-wrapper div.bbp-pagination {
    margin: 32px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    clear: both !important;
    float: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Ocultar únicamente la paginación superior (mantener solo la paginación inferior de abajo) */
#bbp-user-wrapper .bbp-user-section>div.bbp-pagination:first-of-type,
#bbp-user-wrapper .bbp-user-section>div.bbp-pagination:nth-of-type(1),
#bbp-user-topics-started .bbp-user-section>div.bbp-pagination:first-of-type,
#bbp-user-topics-started .bbp-user-section>div.bbp-pagination:nth-of-type(1),
#bbp-user-replies-created .bbp-user-section>div.bbp-pagination:first-of-type,
.bbp-user-section>div.bbp-pagination:first-of-type,
.bbp-user-section>div.bbp-pagination:first-child,
.bbp-user-section>div.bbp-pagination:nth-of-type(1),
div.bbp-pagination:has(+ ul),
div.bbp-pagination:has(+ table),
div.bbp-pagination:has(+ .bbp-topics),
div.bbp-pagination:has(+ .bbp-replies),
div.bbp-pagination:has(+ #bbp-forum-0),
#bbp-user-body div.bbp-pagination:first-child,
#bbp-user-body div.bbp-pagination:first-of-type,
#bbpress-forums>div.bbp-pagination:first-child,
#bbpress-forums>div.bbp-pagination:first-of-type,
.bbpress-page-wrapper div.bbp-pagination:first-child,
.bbpress-page-wrapper div.bbp-pagination:first-of-type,
div.bbp-pagination:first-of-type:not(:only-of-type),
div.bbp-pagination:first-of-type:not(:last-of-type) {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

#bbp-user-wrapper .bbp-user-section>div.bbp-pagination:first-of-type *,
#bbp-user-topics-started .bbp-user-section>div.bbp-pagination:first-of-type *,
#bbp-user-replies-created .bbp-user-section>div.bbp-pagination:first-of-type *,
.bbp-user-section>div.bbp-pagination:first-of-type *,
div.bbp-pagination:has(+ ul) *,
div.bbp-pagination:has(+ #topic-0-replies) *,
div.bbp-pagination:has(+ .forums.bbp-replies) *,
#bbpress-forums>div.bbp-pagination:first-of-type * {
    display: none !important;
}

/* Forzar que la paginación inferior siempre se muestre adecuadamente */
#bbp-user-wrapper .bbp-user-section>div.bbp-pagination:last-of-type,
#bbp-user-topics-started .bbp-user-section>div.bbp-pagination:last-of-type,
#bbp-user-replies-created .bbp-user-section>div.bbp-pagination:last-of-type,
.bbp-user-section>div.bbp-pagination:last-of-type,
.bbp-user-section>div.bbp-pagination:nth-of-type(2),
#bbpress-forums>div.bbp-pagination:last-of-type {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
}

div.bbp-pagination-count,
#bbpress-forums div.bbp-pagination-count,
.bbpress-page-wrapper div.bbp-pagination-count,
#bbpress-forums p.bbp-pagination-count {
    float: none !important;
    width: 100% !important;
    text-align: center !important;
    font-size: 0.84rem !important;
    color: #64748b !important;
    font-weight: 500 !important;
    margin: 0 !important;
    display: block !important;
}

div.bbp-pagination-links,
#bbpress-forums div.bbp-pagination-links,
.bbpress-page-wrapper div.bbp-pagination-links {
    float: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
    width: 100% !important;
}

div.bbp-pagination .page-numbers,
#bbpress-forums div.bbp-pagination .page-numbers,
.bbpress-page-wrapper div.bbp-pagination .page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 16px !important;
    border-radius: 10px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    color: #16213e !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.18s ease !important;
    box-sizing: border-box !important;
}

div.bbp-pagination .page-numbers.current,
#bbpress-forums div.bbp-pagination .page-numbers.current,
.bbpress-page-wrapper div.bbp-pagination .page-numbers.current {
    background: #16213e !important;
    color: #ffffff !important;
    border-color: #16213e !important;
    box-shadow: 0 4px 14px rgba(22, 33, 62, 0.25) !important;
}

div.bbp-pagination .page-numbers:hover:not(.current),
#bbpress-forums div.bbp-pagination .page-numbers:hover:not(.current),
.bbpress-page-wrapper div.bbp-pagination .page-numbers:hover:not(.current) {
    background: #4f7df3 !important;
    color: #ffffff !important;
    border-color: #4f7df3 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(79, 125, 243, 0.3) !important;
}

/* ═══════════════════════════════════════════════════════════════
   FORMULARIO NUEVO TEMA — bbPress genera #new-topic > form#new-post
   ═══════════════════════════════════════════════════════════════ */

/* Contenedor del formulario */
div#new-topic,
div#new-reply {
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 16px !important;
    padding: 32px !important;
    margin-top: 40px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

/* Título y tarjeta del formulario */
div#new-topic,
div#new-reply {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 16px !important;
    padding: 36px !important;
    margin-top: 32px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

div#new-topic legend,
div#new-reply legend {
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    color: #16213e !important;
    padding-bottom: 16px !important;
    border-bottom: 2px solid #eef2ff !important;
    margin-bottom: 24px !important;
    width: 100% !important;
    font-family: 'Inter', sans-serif !important;
}

/* Aviso HTML */
div#new-topic div.bbp-template-notice,
div#new-reply div.bbp-template-notice {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 4px solid #4f7df3 !important;
    border-radius: 10px !important;
    color: #475569 !important;
    font-size: 0.82rem !important;
    padding: 10px 16px !important;
    margin-bottom: 22px !important;
}

/* Espaciado generoso entre celdas/campos del formulario */
#bbpress-forums fieldset.bbp-form p,
.bbpress-page-wrapper fieldset.bbp-form p,
div#new-topic p,
div#new-reply p {
    margin-top: 0 !important;
    margin-bottom: 24px !important;
}

#bbpress-forums fieldset.bbp-form p label,
.bbpress-page-wrapper fieldset.bbp-form p label,
div#new-topic p label,
div#new-reply p label {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: #16213e !important;
    margin-bottom: 8px !important;
    display: inline-block !important;
}

/* Botón Enviar Formulario */
div#new-topic button.submit,
div#new-topic input[type="submit"],
div#new-reply button.submit,
div#new-reply input[type="submit"],
#bbp_topic_submit,
#bbp_reply_submit {
    background: #16213e !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 14px 36px !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.18s ease !important;
    box-shadow: 0 4px 14px rgba(22, 33, 62, 0.2) !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

div#new-topic button.submit:hover,
div#new-topic input[type="submit"]:hover,
div#new-reply button.submit:hover,
div#new-reply input[type="submit"]:hover,
#bbp_topic_submit:hover,
#bbp_reply_submit:hover {
    background: #2563eb !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3) !important;
    transform: translateY(-1px) !important;
}

/* Fieldsets */
div#new-topic fieldset.bbp-form,
div#new-reply fieldset.bbp-form {
    border: none !important;
    padding: 0 !important;
    margin: 0 0 22px !important;
    background: transparent !important;
}

/* Legends como labels */
div#new-topic fieldset.bbp-form legend,
div#new-reply fieldset.bbp-form legend {
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: #16213e !important;
    margin-bottom: 8px !important;
    float: none !important;
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
}

/* Input del título */
div#new-topic fieldset.bbp-form input#bbp_topic_title,
div#new-reply fieldset.bbp-form input#bbp_reply_title {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: #16213e !important;
    background: #fff !important;
    font-family: 'Inter', sans-serif !important;
    outline: none !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
    -webkit-appearance: none !important;
}

div#new-topic fieldset.bbp-form input#bbp_topic_title:focus,
div#new-reply fieldset.bbp-form input#bbp_reply_title:focus {
    border-color: #4f7df3 !important;
    box-shadow: 0 0 0 3px rgba(79, 125, 243, 0.13) !important;
}

/* Wrapper del editor */
div#new-topic fieldset.bbp-form div.bbp-the-content-wrapper,
div#new-reply fieldset.bbp-form div.bbp-the-content-wrapper {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #fff !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
}

div#new-topic fieldset.bbp-form div.bbp-the-content-wrapper:focus-within,
div#new-reply fieldset.bbp-form div.bbp-the-content-wrapper:focus-within {
    border-color: #4f7df3 !important;
    box-shadow: 0 0 0 3px rgba(79, 125, 243, 0.13) !important;
}

/* Toolbar */
div#new-topic div.bbp-the-content-wrapper div.bbp-editor-toolbar,
div#new-reply div.bbp-the-content-wrapper div.bbp-editor-toolbar {
    background: #f8fafc !important;
    border-bottom: 1px solid #e8edf4 !important;
    padding: 9px 12px !important;
    display: flex !important;
    gap: 4px !important;
    flex-wrap: wrap !important;
}

div#new-topic div.bbp-editor-toolbar a,
div#new-reply div.bbp-editor-toolbar a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 5px 11px !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    color: #475569 !important;
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    transition: all 0.12s !important;
    font-family: 'Inter', sans-serif !important;
    line-height: 1 !important;
}

div#new-topic div.bbp-editor-toolbar a:hover,
div#new-reply div.bbp-editor-toolbar a:hover {
    background: #16213e !important;
    color: #fff !important;
    border-color: #16213e !important;
}

/* Textarea */
div#new-topic fieldset.bbp-form textarea#bbp_topic_content,
div#new-reply fieldset.bbp-form textarea#bbp_reply_content {
    width: 100% !important;
    min-height: 180px !important;
    padding: 14px 16px !important;
    border: none !important;
    outline: none !important;
    font-size: 0.92rem !important;
    color: #334155 !important;
    line-height: 1.7 !important;
    resize: vertical !important;
    font-family: 'Inter', sans-serif !important;
    background: #fff !important;
    display: block !important;
}

/* Input etiquetas */
div#new-topic fieldset.bbp-form input#bbp_topic_tags,
div#new-reply fieldset.bbp-form input#bbp_topic_tags {
    width: 100% !important;
    padding: 11px 16px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-size: 0.88rem !important;
    color: #16213e !important;
    background: #fff !important;
    font-family: 'Inter', sans-serif !important;
    outline: none !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
    -webkit-appearance: none !important;
}

div#new-topic fieldset.bbp-form input#bbp_topic_tags:focus {
    border-color: #4f7df3 !important;
    box-shadow: 0 0 0 3px rgba(79, 125, 243, 0.13) !important;
}

/* Selects */
div#new-topic fieldset.bbp-form select,
div#new-reply fieldset.bbp-form select {
    padding: 10px 36px 10px 14px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-size: 0.88rem !important;
    color: #16213e !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394a3b8' d='M6 8L0 0h12z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    cursor: pointer !important;
    font-family: 'Inter', sans-serif !important;
    outline: none !important;
    transition: border-color 0.15s !important;
    min-width: 180px !important;
}

div#new-topic fieldset.bbp-form select:focus,
div#new-reply fieldset.bbp-form select:focus {
    border-color: #4f7df3 !important;
    box-shadow: 0 0 0 3px rgba(79, 125, 243, 0.13) !important;
}

/* Checkbox suscripción */
div#new-topic p.bbp-subscribe-wrapper,
div#new-reply p.bbp-subscribe-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 0.84rem !important;
    color: #64748b !important;
    margin: 6px 0 0 !important;
}

div#new-topic p.bbp-subscribe-wrapper input[type="checkbox"],
div#new-reply p.bbp-subscribe-wrapper input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    accent-color: #16213e !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

div#new-topic p.bbp-subscribe-wrapper label,
div#new-reply p.bbp-subscribe-wrapper label {
    font-size: 0.84rem !important;
    color: #64748b !important;
    font-weight: 400 !important;
    cursor: pointer !important;
    margin: 0 !important;
}

/* Wrapper botón submit */
/* Dropzone de subida de imágenes drag & drop */
.ehu-image-dropzone {
    border: 2px dashed #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 24px 16px !important;
    text-align: center !important;
    background: #f8fafc !important;
    cursor: pointer !important;
    margin-top: 14px !important;
    margin-bottom: 20px !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.ehu-image-dropzone:hover,
.ehu-image-dropzone.is-dragover {
    border-color: #4f7df3 !important;
    background: #eef2ff !important;
}

.ehu-image-dropzone i.fa-cloud-upload-alt {
    font-size: 2.2rem !important;
    color: #4f7df3 !important;
}

.ehu-image-dropzone-title {
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    color: #16213e !important;
}

.ehu-image-dropzone-subtitle {
    font-size: 0.78rem !important;
    color: #94a3b8 !important;
}

.ehu-dropzone-preview {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin-top: 10px !important;
}

.ehu-dropzone-preview img {
    width: 68px !important;
    height: 68px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
}

/* ── Hilo de respuestas (single-topic) — Tarjetas Modernas ──── */
#bbpress-forums ul.bbp-replies {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

#bbpress-forums ul.bbp-replies li.bbp-reply,
#bbpress-forums ul.bbp-replies li.bbp-body,
.bbpress-page-wrapper div.ehu-reply-card,
.bbpress-page-wrapper div.ehu-entrada {
    background: #ffffff !important;
    border: 1px solid rgba(22, 33, 62, 0.08) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    list-style: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

#bbpress-forums ul.bbp-replies li.bbp-reply:hover,
.bbpress-page-wrapper div.ehu-reply-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(22, 33, 62, 0.08) !important;
    border-color: rgba(79, 125, 243, 0.3) !important;
}

/* Cabecera del post y avatar del usuario */
#bbpress-forums ul.bbp-replies li div.bbp-reply-author img.avatar,
.bbpress-page-wrapper .bbp-reply-author img.avatar {
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid #eef2ff !important;
    box-shadow: 0 2px 8px rgba(79, 125, 243, 0.15) !important;
}

#bbpress-forums ul.bbp-replies li div.bbp-reply-author a.bbp-author-name,
.bbpress-page-wrapper .bbp-reply-author a.bbp-author-name {
    font-weight: 700 !important;
    font-size: 0.94rem !important;
    color: #16213e !important;
    text-decoration: none !important;
    transition: color 0.15s !important;
}

#bbpress-forums ul.bbp-replies li div.bbp-reply-author a.bbp-author-name:hover,
.bbpress-page-wrapper .bbp-reply-author a.bbp-author-name:hover {
    color: #4f7df3 !important;
}

#bbpress-forums ul.bbp-replies li div.bbp-reply-author .bbp-author-role,
.bbpress-page-wrapper .bbp-reply-author .bbp-author-role {
    font-size: 0.72rem !important;
    color: #4f7df3 !important;
    background: #eef2ff !important;
    padding: 3px 10px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    display: inline-block !important;
    margin-top: 4px !important;
}

/* Admin links estilizados como acciones rápidas */
#bbpress-forums ul.bbp-replies li div.bbp-reply-admin-links,
.bbpress-page-wrapper div.bbp-reply-admin-links {
    padding: 12px 24px !important;
    border-top: 1px solid #f1f5f9 !important;
    font-size: 0.78rem !important;
    display: flex !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
    background: #f8fafc !important;
    align-items: center !important;
}

#bbpress-forums ul.bbp-replies li div.bbp-reply-admin-links a,
.bbpress-page-wrapper div.bbp-reply-admin-links a {
    color: #64748b !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: color 0.15s !important;
}

#bbpress-forums ul.bbp-replies li div.bbp-reply-admin-links a:hover,
.bbpress-page-wrapper div.bbp-reply-admin-links a:hover {
    color: #4f7df3 !important;
}

#bbpress-forums ul.bbp-replies li div.bbp-reply-admin-links span.trash a {
    color: #ef4444 !important;
}

/* ── Tags ───────────────────────────────────────────────────── */
#bbpress-forums p.bbp-topic-tags {
    margin: 16px 0;
}

#bbpress-forums p.bbp-topic-tags a {
    display: inline-block;
    padding: 4px 12px;
    background: #eef2ff;
    color: #4f7df3;
    border-radius: 12px;
    font-size: 0.74rem;
    font-weight: 700;
    text-decoration: none;
    margin: 2px 3px 2px 0;
    transition: all 0.12s;
}

#bbpress-forums p.bbp-topic-tags a:hover {
    background: #4f7df3;
    color: #fff;
}

/* ── Botón suscripción ──────────────────────────────────────── */
#bbpress-forums a.bbp-forum-subscription,
#bbpress-forums a.bbp-topic-subscription {
    font-size: 0.8rem;
    color: #4f7df3;
    font-weight: 600;
    padding: 6px 14px;
    border: 1.5px solid #4f7df3;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.15s;
    display: inline-block;
}

#bbpress-forums a.bbp-forum-subscription:hover,
#bbpress-forums a.bbp-topic-subscription:hover {
    background: #4f7df3;
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   BOTONES FAVORITO + SUSCRIBIR (cabecera del tema)
   ═══════════════════════════════════════════════════════════════ */

/* Fila que contiene ambos enlaces */
#bbpress-forums #subscription-toggle,
#bbpress-forums #favorite-toggle {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 0 !important;
    color: transparent !important;
}

#bbpress-forums #subscription-toggle {
    margin-left: 12px !important;
}

/* Ocultar el separador " | " que bbPress mete entre ambos botones */
#bbpress-forums .bbp-topic-favorites-links+.bbp-topic-subscribe-links,
#bbpress-forums span.bbp-topic-action-separator,
#bbpress-forums .favorite-toggle+*,
#bbpress-forums span.favorite-toggle+span {
    display: none !important;
    font-size: 0 !important;
    color: transparent !important;
}

/* Base común de los dos botones */
#bbpress-forums #favorite-toggle a,
#bbpress-forums a.favorite-toggle,
#bbpress-forums .bbp-favorite a,
#bbpress-forums #subscription-toggle a,
#bbpress-forums a.subscription-toggle,
#bbpress-forums .bbp-topic-subscribe-links a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 8px 18px !important;
    border-radius: 22px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transition: all 0.18s ease !important;
    border: 1.5px solid transparent !important;
}

#bbpress-forums #favorite-toggle a::before,
#bbpress-forums a.favorite-toggle::before,
#bbpress-forums .bbp-favorite a::before,
#bbpress-forums #subscription-toggle a::before,
#bbpress-forums a.subscription-toggle::before,
#bbpress-forums .bbp-topic-subscribe-links a::before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-size: 0.85rem !important;
    line-height: 1 !important;
}

/* ── FAVORITO (estrella, dorado) ─────────────────────────────── */
#bbpress-forums #favorite-toggle a,
#bbpress-forums a.favorite-toggle,
#bbpress-forums .bbp-favorite a {
    color: #b45309 !important;
    background: #fffbeb !important;
    border-color: #fcd34d !important;
}

#bbpress-forums #favorite-toggle a::before,
#bbpress-forums a.favorite-toggle::before,
#bbpress-forums .bbp-favorite a::before {
    content: "\f005" !important;
    /* estrella */
    color: #f59e0b !important;
}

#bbpress-forums #favorite-toggle a:hover,
#bbpress-forums a.favorite-toggle:hover,
#bbpress-forums .bbp-favorite a:hover {
    background: #fef3c7 !important;
    border-color: #f59e0b !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2) !important;
}

/* Estado "en favoritos" (enlace para quitar) */
#bbpress-forums .bbp-favorite.is-favorite a,
#bbpress-forums #favorite-toggle a.is-favorite {
    background: #f59e0b !important;
    color: #fff !important;
    border-color: #f59e0b !important;
}

/* ── SUSCRIBIR (campana, azul oscuro constante) ──────────────── */
#bbpress-forums #subscription-toggle a,
#bbpress-forums a.subscription-toggle,
#bbpress-forums .bbp-topic-subscribe-links a,
#bbpress-forums .user-subscribe-link a,
#bbpress-forums span.subscription-toggle a,
#bbpress-forums .bbp-user-subscribe-link a,
.bbp-topic-subscribe-link,
.subscription-toggle a,
a.subscription-toggle,
#bbpress-forums #subscription-toggle a:hover,
#bbpress-forums a.subscription-toggle:hover,
#bbpress-forums .bbp-topic-subscribe-links a:hover,
#bbpress-forums .user-subscribe-link a:hover,
#bbpress-forums span.subscription-toggle a:hover,
.subscription-toggle a:hover,
a.subscription-toggle:hover {
    color: #ffffff !important;
    background: #16213e !important;
    border: 1.5px solid #16213e !important;
}

#bbpress-forums #subscription-toggle a::before,
#bbpress-forums a.subscription-toggle::before,
#bbpress-forums .bbp-topic-subscribe-links a::before,
#bbpress-forums .user-subscribe-link a::before,
#bbpress-forums span.subscription-toggle a::before,
.subscription-toggle a::before,
a.subscription-toggle::before,
#bbpress-forums #subscription-toggle a:hover::before,
#bbpress-forums a.subscription-toggle:hover::before,
#bbpress-forums .bbp-topic-subscribe-links a:hover::before,
#bbpress-forums .user-subscribe-link a:hover::before,
#bbpress-forums span.subscription-toggle a:hover::before,
.subscription-toggle a:hover::before,
a.subscription-toggle:hover::before {
    content: "\f0f3" !important;
    /* campana */
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    margin-right: 6px !important;
    display: inline-block !important;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 680px) {
    #bbpress-forums ul.bbp-topics li.bbp-topic {
        grid-template-columns: 1fr 50px !important;
    }

    #bbpress-forums ul.bbp-topics li.bbp-topic div.bbp-topic-voice-count,
    #bbpress-forums ul.bbp-topics li.bbp-topic div.bbp-topic-freshness {
        display: none !important;
    }

    div#new-topic,
    div#new-reply {
        padding: 20px !important;
    }

    div#new-topic div.bbp-submit-wrapper input[type="submit"] {
        width: 100% !important;
        text-align: center !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   RESULTADOS DE BÚSQUEDA — content-search / loop-search
   ═══════════════════════════════════════════════════════════════ */

/* Header flex para colocar breadcrumb a la izquierda y caja de búsqueda a la derecha */
#bbpress-forums div.bbp-breadcrumb {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
    background: transparent !important;
}

/* Contador "Viendo X resultado(s)" centrado */
#bbpress-forums .bbp-search-pagination-count,
#bbpress-forums p.bbp-pagination-count {
    text-align: center !important;
    font-size: 0.86rem !important;
    color: #94a3b8 !important;
    margin: 20px 0 28px !important;
    font-weight: 500 !important;
}

/* Lista de resultados */
#bbpress-forums ul.bbp-search-results {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

/* Ocultar las barras grises "Autor / Resultados de búsqueda" */
#bbpress-forums ul.bbp-search-results>li.bbp-header,
#bbpress-forums ul.bbp-search-results>li.bbp-footer {
    display: none !important;
}

#bbpress-forums ul.bbp-search-results>li.bbp-body {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

/* Tarjeta de cada resultado (topic o reply) en lista de búsqueda */
#bbpress-forums ul.bbp-search-results>li.bbp-body>li {
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.07) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
    padding: 0 !important;
    overflow: hidden !important;
    margin-bottom: 20px !important;
    list-style: none !important;
    transition: transform 0.15s, box-shadow 0.15s !important;
}

#bbpress-forums ul.bbp-search-results>li.bbp-body>li:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07) !important;
}

/* Cabecera del tema en resultados (Fecha + permalink + Título + Foro) */
#bbpress-forums ul.bbp-search-results .bbp-topic-header,
#bbpress-forums ul.bbp-search-results .bbp-reply-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #eef2f7 !important;
    padding: 14px 22px !important;
    margin: 0 !important;
}

#bbpress-forums ul.bbp-search-results .bbp-meta {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 0.76rem !important;
    color: #94a3b8 !important;
    margin-bottom: 8px !important;
}

#bbpress-forums ul.bbp-search-results .bbp-meta a {
    color: #94a3b8 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

#bbpress-forums ul.bbp-search-results .bbp-topic-title h3,
#bbpress-forums ul.bbp-search-results .bbp-reply-title h3 {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #16213e !important;
    margin: 0 0 4px !important;
    font-family: 'Inter', sans-serif !important;
}

#bbpress-forums ul.bbp-search-results .bbp-topic-title a,
#bbpress-forums ul.bbp-search-results .bbp-reply-title a {
    color: #4f7df3 !important;
    text-decoration: none !important;
}

#bbpress-forums ul.bbp-search-results .bbp-topic-title-meta {
    font-size: 0.78rem !important;
    color: #64748b !important;
}

#bbpress-forums ul.bbp-search-results .bbp-topic-title-meta a {
    color: #4f7df3 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

/* Interior del post (Autor | Contenido) */
#bbpress-forums ul.bbp-search-results div.topic,
#bbpress-forums ul.bbp-search-results div.reply {
    display: grid !important;
    grid-template-columns: 130px 1fr !important;
    align-items: center !important;
    padding: 16px 20px !important;
    gap: 16px !important;
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
}

#bbpress-forums ul.bbp-search-results .bbp-topic-author,
#bbpress-forums ul.bbp-search-results .bbp-reply-author {
    grid-column: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 4px !important;
    border-right: 1px solid #f1f5f9 !important;
    padding-right: 16px !important;
}

#bbpress-forums ul.bbp-search-results .bbp-topic-author img.avatar,
#bbpress-forums ul.bbp-search-results .bbp-reply-author img.avatar {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

#bbpress-forums ul.bbp-search-results .bbp-topic-author a.bbp-author-name,
#bbpress-forums ul.bbp-search-results .bbp-reply-author a.bbp-author-name {
    font-weight: 700 !important;
    color: #16213e !important;
    font-size: 0.84rem !important;
    text-decoration: none !important;
}

#bbpress-forums ul.bbp-search-results .bbp-topic-author .bbp-author-role,
#bbpress-forums ul.bbp-search-results .bbp-reply-author .bbp-author-role {
    font-size: 0.65rem !important;
    color: #4f7df3 !important;
    background: #eef2ff !important;
    padding: 2px 8px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
}

#bbpress-forums ul.bbp-search-results .bbp-reply-ip {
    font-size: 0.66rem !important;
    color: #cbd5e1 !important;
}

#bbpress-forums ul.bbp-search-results .bbp-topic-content,
#bbpress-forums ul.bbp-search-results .bbp-reply-content {
    grid-column: 2 !important;
    font-size: 0.94rem !important;
    line-height: 1.7 !important;
    color: #334155 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    padding: 0 !important;
}

#bbpress-forums ul.bbp-search-results .bbp-topic-content p,
#bbpress-forums ul.bbp-search-results .bbp-reply-content p {
    margin: 0 !important;
    display: inline-block !important;
}

/* Responsive resultados */
@media (max-width: 680px) {

    #bbpress-forums .bbp-search-topic div.topic,
    #bbpress-forums .bbp-search-reply div.reply {
        grid-template-columns: 1fr !important;
    }

    #bbpress-forums .bbp-search-topic .bbp-topic-author,
    #bbpress-forums .bbp-search-reply .bbp-reply-author {
        flex-direction: row !important;
        border-right: none !important;
        border-bottom: 1px solid #f1f5f9 !important;
        padding-bottom: 12px !important;
    }
}

/* Alinear a la misma altura y evitar recortes en Favorito/Suscribir */
#bbpress-forums .bbp-topic-favorites-links,
#bbpress-forums .bbp-topic-subscribe-links,
#bbpress-forums #favorite-toggle,
#bbpress-forums #subscription-toggle {
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    padding-top: 0 !important;
    overflow: visible !important;
}

/* Igualar altura de ambos botones */
#bbpress-forums #favorite-toggle a,
#bbpress-forums a.favorite-toggle,
#bbpress-forums .bbp-favorite a,
#bbpress-forums #subscription-toggle a,
#bbpress-forums a.subscription-toggle,
#bbpress-forums .bbp-topic-subscribe-links a {
    height: 38px !important;
    box-sizing: border-box !important;
}

/* ═══════════════════════════════════════════════════════════════
   ENTRADA (post original, extraído por JS a .ehu-entrada)
   ═══════════════════════════════════════════════════════════════ */

/* Etiquetas de sección "Entrada" / "Respuestas" */
.ehu-section-label {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: #16213e !important;
    margin: 0 0 16px !important;
    font-family: 'Inter', sans-serif !important;
}

.ehu-section-label::before {
    content: "" !important;
    width: 4px !important;
    height: 20px !important;
    border-radius: 3px !important;
    background: #4f7df3 !important;
}

.ehu-section-label .ehu-count {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: #4f7df3 !important;
    background: #eef2ff !important;
    padding: 2px 10px !important;
    border-radius: 20px !important;
}

/* ── Tarjetas de post: entrada y respuestas ─────────────────────
   Cada tarjeta agrupa (vía JS) la cabecera hermana + el post:
   .ehu-entrada / .ehu-reply-card > .bbp-reply-header + div.topic|div.reply
   ─────────────────────────────────────────────────────────────── */
.ehu-entrada,
.ehu-reply-card {
    display: flex !important;
    flex-direction: column !important;
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.07) !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    overflow: hidden !important;
    margin: 0 0 14px !important;
    transition: transform 0.15s, box-shadow 0.15s !important;
    position: relative !important;
}

/* Destacar la entrada principal con reborde de gradiente animado ultra vistoso */
.ehu-entrada {
    border: 3.5px solid transparent !important;
    background-image: linear-gradient(#ffffff, #ffffff), linear-gradient(var(--ehu-angle, 135deg), #2563eb, #3b82f6, #60a5fa, #1d4ed8, #2563eb) !important;
    background-origin: border-box !important;
    background-clip: padding-box, border-box !important;
    animation: ehu-glow-pulse 2.5s infinite alternate ease-in-out, ehu-border-rotate 4s linear infinite !important;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.28) !important;
}

@property --ehu-angle {
    syntax: '<angle>';
    initial-value: 135deg;
    inherits: false;
}

@keyframes ehu-border-rotate {
    to {
        --ehu-angle: 495deg;
    }
}

@keyframes ehu-glow-pulse {
    0% {
        box-shadow: 0 6px 20px rgba(37, 99, 235, 0.22), 0 0 12px rgba(59, 130, 246, 0.35);
    }

    50% {
        box-shadow: 0 12px 36px rgba(37, 99, 235, 0.45), 0 0 25px rgba(96, 165, 250, 0.65);
        transform: translateY(-1px);
    }

    100% {
        box-shadow: 0 6px 20px rgba(37, 99, 235, 0.22), 0 0 12px rgba(59, 130, 246, 0.35);
    }
}

.ehu-reply-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08) !important;
}

/* Cabecera (fecha + admin links) — barra superior de la tarjeta */
#bbpress-forums .ehu-entrada .bbp-topic-header {
    background: rgba(79, 125, 243, 0.06) !important;
    border-bottom-color: #e4ecfb !important;
}

#bbpress-forums .ehu-entrada .bbp-meta>span,
#bbpress-forums .ehu-reply-card .bbp-meta>span {
    font-weight: 600 !important;
}

/* Admin links (Editar, Mover, Dividir, Papelera...): botones limpios */
#bbpress-forums .bbp-admin-links,
#bbpress-forums .bbp-reply-admin-links {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    font-size: 0 !important;
}

#bbpress-forums .bbp-admin-links a,
#bbpress-forums .bbp-reply-admin-links a {
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    transition: all 0.12s !important;
}

#bbpress-forums .bbp-admin-links a:hover,
#bbpress-forums .bbp-reply-admin-links a:hover {
    color: #16213e !important;
    background: #eef2f7 !important;
}

#bbpress-forums .bbp-admin-links span.trash a:hover,
#bbpress-forums .bbp-reply-admin-links span.trash a:hover {
    color: #dc2626 !important;
    background: #fef2f2 !important;
}

/* Ocultar acciones administrativas sobrantes o ruidosas (Spam, Rechazar, etc.) */
#bbpress-forums .bbp-admin-links a.bbp-topic-reply-link,
#bbpress-forums .bbp-admin-links a.bbp-topic-spam-link,
#bbpress-forums .bbp-admin-links a.bbp-reply-spam-link,
#bbpress-forums .bbp-reply-admin-links a.bbp-reply-spam-link,
#bbpress-forums .bbp-admin-links a.bbp-reply-approve-link,
#bbpress-forums .bbp-reply-admin-links a.bbp-reply-approve-link,
#bbpress-forums .bbp-admin-links a.bbp-topic-approve-link,
#bbpress-forums .bbp-reply-admin-links a.bbp-topic-approve-link,
#bbpress-forums .bbp-admin-links span.spam,
#bbpress-forums .bbp-reply-admin-links span.spam,
#bbpress-forums .bbp-admin-links span.reject,
#bbpress-forums .bbp-reply-admin-links span.reject,
#bbpress-forums .bbp-admin-links span.approve,
#bbpress-forums .bbp-reply-admin-links span.approve,
#bbpress-forums .bbp-admin-links a[href*="spam"],
#bbpress-forums .bbp-reply-admin-links a[href*="spam"],
#bbpress-forums .bbp-admin-links a[href*="reject"],
#bbpress-forums .bbp-reply-admin-links a[href*="reject"],
#bbpress-forums .bbp-admin-links a[href*="approve"],
#bbpress-forums .bbp-reply-admin-links a[href*="approve"] {
    display: none !important;
}

/* Post interior: rejilla autor | contenido */
#bbpress-forums .ehu-reply-card div.reply,
#bbpress-forums .ehu-reply-card div.topic {
    display: grid !important;
    grid-template-columns: 130px 1fr !important;
    align-items: stretch !important;
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
}

#bbpress-forums .ehu-entrada div.topic,
#bbpress-forums .ehu-entrada div.reply {
    display: grid !important;
    grid-template-columns: 140px 1fr !important;
    align-items: stretch !important;
    background: linear-gradient(180deg, #f9fbff 0%, #ffffff 55%) !important;
    border: none !important;
    margin: 0 !important;
}

/* Columna autor (ocupa toda la altura de la tarjeta) */
#bbpress-forums .ehu-entrada .bbp-reply-author,
#bbpress-forums .ehu-entrada .bbp-topic-author,
#bbpress-forums .ehu-reply-card .bbp-reply-author,
#bbpress-forums .ehu-reply-card .bbp-topic-author {
    grid-column: 1 !important;
    grid-row: 1 / -1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
    gap: 6px !important;
    padding: 16px 8px !important;
    background: #fcfdff !important;
    border-right: 1px solid #eef2f7 !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

#bbpress-forums .ehu-reply-card .bbp-reply-author img.avatar,
#bbpress-forums .ehu-reply-card .bbp-topic-author img.avatar {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    max-width: 100% !important;
    flex-shrink: 0 !important;
}

#bbpress-forums .ehu-entrada .bbp-reply-author img.avatar,
#bbpress-forums .ehu-entrada .bbp-topic-author img.avatar {
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid #fff !important;
    box-shadow: 0 2px 10px rgba(79, 125, 243, 0.2) !important;
    max-width: 100% !important;
    flex-shrink: 0 !important;
}

#bbpress-forums .ehu-entrada .bbp-author-name,
#bbpress-forums .ehu-reply-card .bbp-author-name {
    font-weight: 700 !important;
    color: #16213e !important;
    text-decoration: none !important;
    font-size: 0.86rem !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

#bbpress-forums .ehu-entrada .bbp-author-name {
    font-weight: 800 !important;
    font-size: 0.9rem !important;
}

#bbpress-forums .ehu-entrada .bbp-author-role,
#bbpress-forums .ehu-reply-card .bbp-author-role {
    display: inline-block !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 0.63rem !important;
    color: #4f7df3 !important;
    background: #eef2ff !important;
    padding: 3px 8px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-style: normal !important;
    text-align: center !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

#bbpress-forums .ehu-entrada .bbp-reply-ip,
#bbpress-forums .ehu-entrada .bbp-topic-ip,
#bbpress-forums .ehu-reply-card .bbp-reply-ip,
#bbpress-forums .ehu-reply-card .bbp-topic-ip {
    font-size: 0.66rem !important;
    color: #cbd5e1 !important;
}

/* Columna contenido (pegada a la izquierda junto a la columna del autor) */
#bbpress-forums .ehu-entrada .bbp-reply-content,
#bbpress-forums .ehu-entrada .bbp-topic-content,
#bbpress-forums .ehu-reply-card .bbp-reply-content,
#bbpress-forums .ehu-reply-card .bbp-topic-content,
#bbpress-forums div.reply div.bbp-reply-content,
#bbpress-forums div.topic div.bbp-topic-content {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: center !important;
    justify-self: start !important;
    padding: 12px 16px !important;
    font-size: 0.94rem !important;
    line-height: 1.6 !important;
    color: #334155 !important;
    text-align: left !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 8px !important;
}

#bbpress-forums .ehu-entrada .bbp-reply-content,
#bbpress-forums .ehu-entrada .bbp-topic-content {
    font-size: 0.98rem !important;
    line-height: 1.8 !important;
    color: #1f2937 !important;
    padding: 18px 24px !important;
    text-align: left !important;
}

#bbpress-forums .ehu-entrada .bbp-reply-content p,
#bbpress-forums .ehu-entrada .bbp-topic-content p,
#bbpress-forums .ehu-reply-card .bbp-reply-content p,
#bbpress-forums div.bbp-reply-content p,
#bbpress-forums div.bbp-topic-content p {
    margin: 0 !important;
    text-align: left !important;
    margin-left: 0 !important;
    display: block !important;
    width: 100% !important;
}

#bbpress-forums .ehu-entrada .bbp-reply-content a,
#bbpress-forums .ehu-entrada .bbp-topic-content a,
#bbpress-forums .ehu-reply-card .bbp-reply-content a,
#bbpress-forums .ehu-reply-card .bbp-topic-content a {
    color: #4f7df3 !important;
}

/* Botón me gusta dentro del contenedor de contenido */
#bbpress-forums .bbp-reply-content .ehu-like-wrap,
#bbpress-forums .bbp-topic-content .ehu-like-wrap,
#bbpress-forums .ehu-entrada .ehu-like-wrap,
#bbpress-forums .ehu-reply-card .ehu-like-wrap {
    grid-column: auto !important;
    padding: 0 !important;
    border-top: none !important;
    margin: 0 !important;
    display: inline-flex !important;
    justify-content: flex-start !important;
}

/* ═══════════════════════════════════════════════════════════════
   HILO DE RESPUESTAS — contenedor de la lista
   ═══════════════════════════════════════════════════════════════ */
#bbpress-forums ul.bbp-replies {
    list-style: none !important;
    margin: 20px 0 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

#bbpress-forums ul.bbp-replies>li.bbp-header,
#bbpress-forums ul.bbp-replies>li.bbp-footer,
.bbp-user-section ul.bbp-replies>li.bbp-header,
.bbp-user-section ul.bbp-replies>li.bbp-footer {
    display: none !important;
}

#bbpress-forums ul.bbp-replies>li.bbp-body,
.bbp-user-section ul.bbp-replies>li.bbp-body {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
}

/* Tarjeta individual de respuesta (en el perfil y en foros) */
.bbp-user-section ul.bbp-replies li.bbp-body>div.bbp-reply-header,
.bbp-user-section ul.bbp-replies li.bbp-body>div.reply {
    margin: 0 !important;
}

/* En el perfil y en el foro, barra superior de respuesta en Azul Marino Premium (#16213e) */
#bbpress-forums .bbp-reply-header,
#bbpress-forums div.bbp-reply-header,
.bbp-reply-header,
.bbp-user-section ul.bbp-replies li.bbp-body>div.bbp-reply-header {
    background: #16213e !important;
    background-color: #16213e !important;
    border: 1px solid #16213e !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 10px 10px 0 0 !important;
    padding: 8px 16px !important;
    margin-top: 10px !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(22, 33, 62, 0.15) !important;
}

#bbpress-forums .bbp-reply-header .bbp-meta,
#bbpress-forums div.bbp-reply-header .bbp-meta,
.bbp-reply-header .bbp-meta,
.bbp-user-section ul.bbp-replies li.bbp-body>div.bbp-reply-header .bbp-meta {
    color: #ffffff !important;
    font-size: 0.78rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

#bbpress-forums .bbp-reply-header .bbp-reply-post-date,
#bbpress-forums .bbp-reply-header .bbp-header,
.bbp-reply-header span,
.bbp-reply-header div,
.bbp-reply-header .bbp-meta span {
    color: #ffffff !important;
    font-weight: 500 !important;
}

#bbpress-forums .bbp-reply-header a,
.bbp-reply-header a,
.bbp-user-section ul.bbp-replies li.bbp-body>div.bbp-reply-header a {
    color: #93c5fd !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: color 0.15s !important;
}

#bbpress-forums .bbp-reply-header a:hover,
.bbp-reply-header a:hover,
.bbp-user-section ul.bbp-replies li.bbp-body>div.bbp-reply-header a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

/* Links de administración (Editar, Mover, Papelera, etc.) estilizados como pills contrastadas sobre azul marino */
#bbpress-forums .bbp-reply-header .bbp-admin-links a,
.bbp-reply-header .bbp-admin-links a,
.bbp-user-section ul.bbp-replies li.bbp-body>div.bbp-reply-header .bbp-admin-links a {
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    padding: 3px 9px !important;
    border-radius: 6px !important;
    transition: all 0.15s ease !important;
}

#bbpress-forums .bbp-reply-header .bbp-admin-links a:hover,
.bbp-user-section ul.bbp-replies li.bbp-body>div.bbp-reply-header .bbp-admin-links a:hover {
    color: #16213e !important;
    background: #ffffff !important;
    border-color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2) !important;
    text-decoration: none !important;
}

#bbpress-forums .bbp-reply-header .bbp-admin-links span.trash a:hover,
.bbp-user-section ul.bbp-replies li.bbp-body>div.bbp-reply-header .bbp-admin-links span.trash a:hover,
#bbpress-forums .bbp-reply-header .bbp-admin-links a.bbp-reply-spam-link:hover {
    color: #ffffff !important;
    background: #ef4444 !important;
    border-color: #ef4444 !important;
}

.bbp-user-section ul.bbp-replies li.bbp-body>div.reply {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-top: none !important;
    border-radius: 0 0 8px 8px !important;
    padding: 4px 12px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;
    display: grid !important;
    grid-template-columns: 145px 1fr !important;
    align-items: center !important;
    transition: transform 0.15s, box-shadow 0.15s !important;
}

.bbp-user-section ul.bbp-replies li.bbp-body>div.reply:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

.bbp-user-section ul.bbp-replies li.bbp-body>div.reply .bbp-reply-author {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1px !important;
    text-align: center !important;
    border-right: 1px solid #f1f5f9 !important;
    padding: 2px 10px 2px 0 !important;
    min-width: 0 !important;
}

.bbp-user-section ul.bbp-replies li.bbp-body>div.reply .bbp-reply-author img.avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

.bbp-user-section ul.bbp-replies li.bbp-body>div.reply .bbp-author-name {
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
}

.bbp-user-section ul.bbp-replies li.bbp-body>div.reply .bbp-author-role {
    font-size: 0.55rem !important;
    padding: 1px 6px !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.1 !important;
}

.bbp-user-section ul.bbp-replies li.bbp-body>div.reply .bbp-reply-ip {
    font-size: 0.6rem !important;
    display: none !important;
}

.bbp-user-section ul.bbp-replies li.bbp-body>div.reply .bbp-reply-content {
    padding-left: 12px !important;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    font-size: 0.85rem !important;
    min-height: auto !important;
}

/* ═══════════════════════════════════════════════════════════════
   FORMULARIO DE RESPUESTA — refuerzos para el marcado real
   (.quicktags-toolbar, botones .ed_button, button.submit)
   ═══════════════════════════════════════════════════════════════ */

/* Encabezado "Respuesta a: …" */
#bbpress-forums .bbp-reply-form>h3,
#bbpress-forums .bbp-topic-form>h3,
#bbpress-forums #new-reply h3,
#bbpress-forums #new-topic h3 {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #16213e !important;
    margin: 0 0 20px !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid #e8edf4 !important;
    font-family: 'Inter', sans-serif !important;
}

#bbpress-forums .bbp-reply-form>h3 a,
#bbpress-forums .bbp-topic-form>h3 a {
    color: #4f7df3 !important;
    text-decoration: none !important;
}

/* Contenedor principal del formulario (#new-post / #new-reply / #new-topic) */
#bbpress-forums #new-post,
#bbpress-forums .bbp-reply-form,
#bbpress-forums .bbp-topic-form,
#bbpress-forums form#new-post {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 0 !important;
    margin-top: 32px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
    overflow: hidden !important;
}

#bbpress-forums fieldset.bbp-form {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Leyenda PRINCIPAL del formulario de respuesta y tema estilizada como cabecera superior unificada */
#bbpress-forums .bbp-reply-form>fieldset.bbp-form>legend,
#bbpress-forums .bbp-topic-form>fieldset.bbp-form>legend,
#bbpress-forums form#new-post>fieldset.bbp-form>legend,
#bbpress-forums legend.ehu-form-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    background: #16213e !important;
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    padding: 14px 24px !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    float: none !important;
    box-shadow: none !important;
}

#bbpress-forums legend.ehu-form-header .ehu-legend-badge {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
    font-size: 0.72rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

/* Div interior contenedor del formulario */
#bbpress-forums fieldset.bbp-form>div,
#bbpress-forums form#new-post>div,
#bbpress-forums .bbp-reply-form>div,
#bbpress-forums .bbp-topic-form>div {
    padding: 24px 28px !important;
}

#bbpress-forums form#new-post fieldset.bbp-form>div,
#bbpress-forums div.bbp-reply-form fieldset.bbp-form>div,
#bbpress-forums div.bbp-topic-form fieldset.bbp-form>div {
    padding-top: 20px !important;
}

/* Sub-fieldsets interiores (ej. "Mantener un registro de esta modificación") */
#bbpress-forums fieldset.bbp-form fieldset.bbp-form {
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 16px 20px !important;
    margin: 20px 0 !important;
    background: #f8fafc !important;
    box-shadow: none !important;
}

#bbpress-forums fieldset.bbp-form fieldset.bbp-form legend {
    background: transparent !important;
    color: #1e293b !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    padding: 0 6px !important;
    width: auto !important;
    float: none !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

#bbpress-forums fieldset.bbp-form fieldset.bbp-form legend label {
    display: inline !important;
    color: #1e293b !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

/* Labels de formulario en general */
#bbpress-forums fieldset.bbp-form label,
#bbpress-forums form#new-post label {
    font-weight: 700 !important;
    color: #1e293b !important;
    font-size: 0.88rem !important;
    margin-bottom: 6px !important;
    display: inline-block !important;
}

/* Checkboxes y alineación con labels */
#bbpress-forums fieldset.bbp-form input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    accent-color: #16213e !important;
    vertical-align: middle !important;
    margin-right: 8px !important;
    cursor: pointer !important;
}

#bbpress-forums fieldset.bbp-form p {
    margin-bottom: 16px !important;
}

#bbpress-forums fieldset.bbp-form input[type="text"],
#bbpress-forums fieldset.bbp-form select,
#bbpress-forums fieldset.bbp-form textarea,
#bbpress-forums div.bbp-the-content-wrapper textarea#bbp_reply_content,
#bbpress-forums div.bbp-the-content-wrapper textarea#bbp_topic_content,
#bbpress-forums select.bbp_dropdown {
    width: 100% !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-size: 0.9rem !important;
    font-family: inherit !important;
    line-height: 1.4 !important;
    height: auto !important;
    color: #16213e !important;
    background-color: #ffffff !important;
    outline: none !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    box-sizing: border-box !important;
}

#bbpress-forums fieldset.bbp-form input[type="text"]:focus,
#bbpress-forums fieldset.bbp-form select:focus,
#bbpress-forums fieldset.bbp-form textarea:focus,
#bbpress-forums div.bbp-the-content-wrapper textarea:focus,
#bbpress-forums select.bbp_dropdown:focus {
    border-color: #3b82f6 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

/* Selector de desplegables (select) con padding adecuado para que no corte texto */
#bbpress-forums fieldset.bbp-form select,
#bbpress-forums select.bbp_dropdown {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316213e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px !important;
    padding-right: 40px !important;
}

/* Wrapper del editor HTML/quicktags */
#bbpress-forums div.bbp-the-content-wrapper {
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    margin-bottom: 20px !important;
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

#bbpress-forums div.bbp-the-content-wrapper:focus-within {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12) !important;
}

/* Zona de Drag & Drop para Imágenes */
.ehu-dropzone-wrap {
    border: 2px dashed #cbd5e1 !important;
    background: #f8fafc !important;
    border-radius: 10px !important;
    padding: 18px 20px !important;
    text-align: center !important;
    margin: 12px 0 18px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

.ehu-dropzone-wrap:hover,
.ehu-dropzone-wrap.dragover {
    border-color: #3b82f6 !important;
    background: #eff6ff !important;
}

.ehu-dropzone-icon {
    font-size: 1.6rem !important;
    color: #3b82f6 !important;
}

.ehu-dropzone-text {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
}

/* Contenedor de vistas previas visuales de imágenes dentro del editor */
.ehu-img-preview-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    padding: 12px 14px !important;
    background: #f1f5f9 !important;
    border-top: 1px solid #e2e8f0 !important;
}

.ehu-img-preview-item {
    position: relative !important;
    width: 90px !important;
    height: 90px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 2px solid #cbd5e1 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
    background: #ffffff !important;
}

.ehu-img-preview-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.ehu-img-preview-remove {
    position: absolute !important;
    top: 4px !important;
    right: 4px !important;
    background: rgba(15, 23, 42, 0.75) !important;
    color: #ffffff !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background 0.15s !important;
}

.ehu-img-preview-remove:hover {
    background: #ef4444 !important;
}

/* Barra de herramientas del editor (estilo limpio / formato normal) */
#bbpress-forums .quicktags-toolbar,
#bbpress-forums div.bbp-the-content-wrapper .quicktags-toolbar {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 8px 14px !important;
    display: flex !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    border-radius: 0 !important;
}

#bbpress-forums .quicktags-toolbar input.ed_button,
#bbpress-forums .quicktags-toolbar button.ed_button {
    padding: 5px 12px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    height: auto !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

#bbpress-forums .quicktags-toolbar input.ed_button:hover,
#bbpress-forums .quicktags-toolbar button.ed_button:hover {
    background: #16213e !important;
    color: #ffffff !important;
    border-color: #16213e !important;
    box-shadow: 0 2px 6px rgba(22, 33, 62, 0.2) !important;
}

/* Botón "Enviar" / submit */
#bbpress-forums .bbp-submit-wrapper {
    margin-top: 16px !important;
    text-align: right !important;
}

#bbpress-forums .bbp-submit-wrapper button,
#bbpress-forums .bbp-submit-wrapper button.submit,
#bbpress-forums .bbp-submit-wrapper input[type="submit"],
#bbpress-forums div#new-reply button[type="submit"],
#bbpress-forums div#new-topic button[type="submit"] {
    background: #16213e !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 10px 30px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    font-family: 'Inter', sans-serif !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(22, 33, 62, 0.25) !important;
    transition: all 0.18s ease !important;
}

#bbpress-forums .bbp-submit-wrapper button:hover,
#bbpress-forums .bbp-submit-wrapper button.submit:hover,
#bbpress-forums .bbp-submit-wrapper input[type="submit"]:hover {
    background: #2563eb !important;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35) !important;
    transform: translateY(-1px) !important;
}

/* Ocultar avisos innecesarios o de permisos dentro del formulario */
#bbpress-forums .bbp-reply-form .bbp-template-notice,
#bbpress-forums .bbp-topic-form .bbp-template-notice,
#bbpress-forums form#new-post .bbp-template-notice,
#bbpress-forums .bbp-reply-form p.form-allowed-tags,
#bbpress-forums #new-reply p.form-allowed-tags {
    display: none !important;
}

/* Estilo para las citas de respuesta (blockquote) transformadas en desplegable/acordeón */
#bbpress-forums blockquote,
.bbp-reply-content blockquote {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 3.5px solid #4f7df3 !important;
    border-radius: 8px !important;
    padding: 0 !important;
    margin: 4px 0 8px !important;
    font-size: 0.84rem !important;
    color: #475569 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    transition: all 0.2s ease !important;
}

#bbpress-forums blockquote.ehu-quote-accordion details summary,
#bbpress-forums blockquote summary,
blockquote.ehu-quote-accordion summary {
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: #3b82f6 !important;
    cursor: pointer !important;
    user-select: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #f1f5f9 !important;
    transition: background 0.15s !important;
}

#bbpress-forums blockquote.ehu-quote-accordion details summary:hover,
blockquote summary:hover {
    background: #e2e8f0 !important;
}

#bbpress-forums blockquote.ehu-quote-accordion details summary strong {
    color: #1e293b !important;
}

#bbpress-forums blockquote.ehu-quote-accordion details .ehu-quote-body {
    padding: 8px 12px !important;
    border-top: 1px solid #e2e8f0 !important;
    font-style: italic !important;
    color: #64748b !important;
    background: #ffffff !important;
    transition: background 0.15s !important;
}

#bbpress-forums blockquote.ehu-quote-accordion details .ehu-quote-body:hover {
    background: #f8fafc !important;
}

#bbpress-forums blockquote.ehu-quote-accordion a.ehu-quote-link-wrap:hover {
    color: #2563eb !important;
}

/* ═══════════════════════════════════════════════════════════════
   PERFIL DE USUARIO (#bbp-user-wrapper) — Ancho completo y diseño limpio
   ═══════════════════════════════════════════════════════════════ */

/* Ampliar contenedor legal/perfil al 100% */
.bbpress-page-wrapper .container,
.legal-article,
.section .container:has(#bbpress-forums) {
    max-width: 1400px !important;
    width: 100% !important;
}

/* Suprimir el pseudoelemento de viñeta azul del tema genérico (.legal-article li::before) */
.legal-article #bbpress-forums li::before,
#bbpress-forums li::before,
#bbpress-forums ul li::before,
#bbpress-forums #bbp-user-navigation li::before {
    content: none !important;
    display: none !important;
}

#bbpress-forums #bbp-user-wrapper {
    display: grid !important;
    grid-template-columns: 260px 1fr !important;
    gap: 36px !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.07) !important;
    border-radius: 20px !important;
    padding: 36px !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04) !important;
    clear: both !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 1380px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    align-items: start !important;
}

/* Columna Izquierda: Celda con Avatar + Navegación vertical de apartados */
#bbpress-forums #bbp-single-user-details {
    grid-column: 1 !important;
    grid-row: 1 / -1 !important;
    float: none !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 24px !important;
    padding-right: 28px !important;
    margin: 0 !important;
    border-bottom: none !important;
    border-right: 1.5px solid #f1f5f9 !important;
    box-sizing: border-box !important;
}

#bbpress-forums #bbp-user-avatar {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    text-align: center !important;
}

#bbpress-forums #bbp-user-avatar img.avatar {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 4px solid #ffffff !important;
    box-shadow: 0 4px 20px rgba(79, 125, 243, 0.18) !important;
}

#bbpress-forums #bbp-user-navigation {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}

#bbpress-forums #bbp-user-navigation ul {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
}

#bbpress-forums #bbp-user-navigation ul li {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    list-style-type: none !important;
    display: block !important;
    width: 100% !important;
}

#bbpress-forums #bbp-user-navigation ul li::before,
#bbpress-forums #bbp-user-navigation ul li::after {
    content: none !important;
    display: none !important;
}

#bbpress-forums #bbp-user-navigation ul li a,
#bbpress-forums #bbp-user-navigation ul li span a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    padding: 12px 18px !important;
    border-radius: 12px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    transition: all 0.18s ease !important;
}

#bbpress-forums #bbp-user-navigation ul li a:hover,
#bbpress-forums #bbp-user-navigation ul li span a:hover {
    color: #16213e !important;
    background: #eef2ff !important;
    border-color: #cbd5e1 !important;
    transform: translateX(3px) !important;
}

#bbpress-forums #bbp-user-navigation ul li.current a,
#bbpress-forums #bbp-user-navigation ul li.current span a {
    color: #ffffff !important;
    background: #16213e !important;
    border-color: #16213e !important;
    box-shadow: 0 4px 16px rgba(22, 33, 62, 0.22) !important;
}

/* Panel Derecho Principal (#bbp-user-body) */
#bbpress-forums #bbp-user-body {
    grid-column: 2 !important;
    grid-row: 1 !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    clear: both !important;
    display: block !important;
    min-width: 0 !important;
}

/* En la subsección .bbp-user-section que envuelve listas de debates/respuestas, no usar grid de minmax fijo */
#bbpress-forums #bbp-user-body .bbp-user-section {
    display: block !important;
    width: 100% !important;
    background: transparent !important;
}

#bbpress-forums #bbp-user-profile .entry-title,
#bbpress-forums #bbp-user-body h2.entry-title {
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    color: #16213e !important;
    margin: 0 0 20px !important;
    font-family: 'Inter', sans-serif !important;
}

/* Paginación en subsecciones del perfil */
#bbpress-forums #bbp-user-body .bbp-pagination {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 16px !important;
    width: 100% !important;
    float: none !important;
}

#bbpress-forums #bbp-user-body .bbp-pagination-count {
    text-align: left !important;
    margin: 0 !important;
    font-size: 0.85rem !important;
    color: #94a3b8 !important;
}

/* Buscador dentro de subsecciones del perfil (Debates iniciados, Respuestas...) */
#bbpress-forums #bbp-user-body .bbp-search-form {
    float: right !important;
    margin-bottom: 20px !important;
}

#bbpress-forums #bbp-user-body .bbp-search-form form {
    display: flex !important;
    gap: 8px !important;
}

#bbpress-forums #bbp-user-body .bbp-search-form input[type="text"] {
    padding: 8px 14px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 10px !important;
    font-size: 0.86rem !important;
}

#bbpress-forums #bbp-user-body .bbp-search-form input[type="submit"] {
    background: #16213e !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 8px 18px !important;
    font-size: 0.86rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

/* ── Listado nativo de Debates del perfil (#bbp-user-body ul.bbp-topics) ── */
#bbpress-forums #bbp-user-body ul.bbp-topics {
    list-style: none !important;
    margin: 0 0 24px !important;
    padding: 0 !important;
    width: 100% !important;
    border: none !important;
    display: block !important;
}

/* Cabecera independiente de la lista de debates */
#bbpress-forums #bbp-user-body ul.bbp-topics li.bbp-header {
    display: block !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 10px 20px !important;
    margin: 0 0 12px !important;
}

#bbpress-forums #bbp-user-body ul.bbp-topics li.bbp-header ul.forum-titles {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
}

#bbpress-forums #bbp-user-body ul.bbp-topics li.bbp-header ul.forum-titles li {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    float: none !important;
}

#bbpress-forums #bbp-user-body ul.bbp-topics li.bbp-header ul.forum-titles li.bbp-topic-title {
    flex: 1 !important;
    text-align: left !important;
}

#bbpress-forums #bbp-user-body ul.bbp-topics li.bbp-header ul.forum-titles li.bbp-topic-voice-count {
    width: 80px !important;
    flex-shrink: 0 !important;
    text-align: center !important;
    order: 2 !important;
}

#bbpress-forums #bbp-user-body ul.bbp-topics li.bbp-header ul.forum-titles li.bbp-topic-reply-count {
    width: 80px !important;
    flex-shrink: 0 !important;
    text-align: center !important;
    order: 3 !important;
}

#bbpress-forums #bbp-user-body ul.bbp-topics li.bbp-header ul.forum-titles li.bbp-topic-freshness {
    width: 170px !important;
    flex-shrink: 0 !important;
    text-align: right !important;
    order: 4 !important;
}

#bbpress-forums #bbp-user-body ul.bbp-topics li.bbp-body {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

/* Cada fila de tema como tarjeta independiente */
#bbpress-forums #bbp-user-body ul.bbp-topics li.bbp-body>ul {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.07) !important;
    border-radius: 14px !important;
    margin: 0 !important;
    padding: 16px 20px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
    display: flex !important;
    align-items: center !important;
    list-style: none !important;
    transition: transform 0.15s, box-shadow 0.15s !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#bbpress-forums #bbp-user-body ul.bbp-topics li.bbp-body>ul:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06) !important;
}

#bbpress-forums #bbp-user-body ul.bbp-topics li.bbp-body>ul li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#bbpress-forums #bbp-user-body ul.bbp-topics li.bbp-body>ul li.bbp-topic-title {
    flex: 1 !important;
    padding-right: 16px !important;
    order: 1 !important;
}

#bbpress-forums #bbp-user-body ul.bbp-topics li.bbp-body>ul li.bbp-topic-voice-count {
    width: 80px !important;
    flex-shrink: 0 !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #16213e !important;
    text-align: center !important;
    order: 2 !important;
}

#bbpress-forums #bbp-user-body ul.bbp-topics li.bbp-body>ul li.bbp-topic-reply-count {
    width: 80px !important;
    flex-shrink: 0 !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #16213e !important;
    text-align: center !important;
    order: 3 !important;
}

#bbpress-forums #bbp-user-body ul.bbp-topics li.bbp-body>ul li.bbp-topic-freshness {
    width: 170px !important;
    flex-shrink: 0 !important;
    font-size: 0.78rem !important;
    color: #94a3b8 !important;
    text-align: right !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    order: 4 !important;
}

#bbpress-forums #bbp-user-body ul.bbp-topics li.bbp-topic-freshness a {
    color: #16213e !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

#bbpress-forums #bbp-user-body ul.bbp-topics li.bbp-footer {
    display: none !important;
}

/* ── Formulario Editar Perfil (#bbp-your-profile / #edit-user) Rediseñado como Formulario Profesional ── */
#bbpress-forums form#bbp-your-profile,
#bbpress-forums form#edit-user {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

/* Título de sección h2 moderno con barra azul única y separación garantizada */
#bbpress-forums form#bbp-your-profile h2,
#bbpress-forums form#edit-user h2,
#bbpress-forums #bbp-user-body h2 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #16213e !important;
    font-family: 'Inter', sans-serif !important;
    margin: 32px 0 16px 0 !important;
    padding: 2px 0 2px 16px !important;
    border-left: 4px solid #4f7df3 !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-radius: 2px !important;
    display: block !important;
    box-shadow: none !important;
}

#bbpress-forums form#bbp-your-profile h2:first-of-type,
#bbpress-forums form#edit-user h2:first-of-type,
#bbpress-forums #bbp-user-body h2:first-of-type {
    margin-top: 0 !important;
}

#bbpress-forums form#bbp-your-profile h2::before,
#bbpress-forums form#edit-user h2::before,
#bbpress-forums #bbp-user-body h2::before {
    display: none !important;
    content: none !important;
}

/* Tarjeta del bloque de formulario */
#bbpress-forums form#bbp-your-profile fieldset.bbp-form,
#bbpress-forums form#edit-user fieldset.bbp-form {
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 26px 30px !important;
    margin: 0 0 28px 0 !important;
    background: #ffffff !important;
    width: 100% !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px 24px !important;
    align-items: start !important;
}

/* Ocultar el <legend> redundante interno para evitar títulos duplicados con el <h2> */
#bbpress-forums form#bbp-your-profile fieldset.bbp-form>legend,
#bbpress-forums form#edit-user fieldset.bbp-form>legend {
    display: none !important;
}

/* Cada grupo de campo (label + input/select) */
#bbpress-forums form#bbp-your-profile fieldset.bbp-form>div,
#bbpress-forums form#edit-user fieldset.bbp-form>div {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    float: none !important;
    clear: none !important;
}

/* Ocultar saltos <br> insertados por WordPress */
#bbpress-forums form#bbp-your-profile fieldset.bbp-form>div br,
#bbpress-forums form#edit-user fieldset.bbp-form>div br {
    display: none !important;
}

/* Labels alineados a la izquierda */
#bbpress-forums form#bbp-your-profile label,
#bbpress-forums form#edit-user label,
#bbpress-forums form#bbp-your-profile fieldset.bbp-form label,
#bbpress-forums form#edit-user fieldset.bbp-form label {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    float: none !important;
    clear: none !important;
    text-align: left !important;
    padding: 0 !important;
    margin: 0 0 8px 0 !important;
    font-weight: 600 !important;
    color: #334155 !important;
    font-size: 0.88rem !important;
    font-family: 'Inter', sans-serif !important;
    line-height: 1.3 !important;
}

/* Inputs y Selects modernos */
#bbpress-forums form#bbp-your-profile input[type="text"],
#bbpress-forums form#bbp-your-profile input[type="email"],
#bbpress-forums form#bbp-your-profile input[type="url"],
#bbpress-forums form#bbp-your-profile input[type="password"],
#bbpress-forums form#bbp-your-profile select,
#bbpress-forums form#bbp-your-profile textarea,
#bbpress-forums form#edit-user input[type="text"],
#bbpress-forums form#edit-user input[type="email"],
#bbpress-forums form#edit-user input[type="url"],
#bbpress-forums form#edit-user input[type="password"],
#bbpress-forums form#edit-user select,
#bbpress-forums form#edit-user textarea {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    padding: 10px 14px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 10px !important;
    font-size: 0.92rem !important;
    font-family: 'Inter', sans-serif !important;
    color: #1e293b !important;
    background-color: #ffffff !important;
    outline: none !important;
    box-sizing: border-box !important;
    float: none !important;
    clear: none !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
}

#bbpress-forums form#bbp-your-profile input[type="text"]:focus,
#bbpress-forums form#bbp-your-profile input[type="email"]:focus,
#bbpress-forums form#bbp-your-profile input[type="url"]:focus,
#bbpress-forums form#bbp-your-profile input[type="password"]:focus,
#bbpress-forums form#bbp-your-profile select:focus,
#bbpress-forums form#bbp-your-profile textarea:focus,
#bbpress-forums form#edit-user input[type="text"]:focus,
#bbpress-forums form#edit-user input[type="email"]:focus,
#bbpress-forums form#edit-user input[type="url"]:focus,
#bbpress-forums form#edit-user input[type="password"]:focus,
#bbpress-forums form#edit-user select:focus,
#bbpress-forums form#edit-user textarea:focus {
    border-color: #4f7df3 !important;
    box-shadow: 0 0 0 3px rgba(79, 125, 243, 0.15) !important;
    background-color: #ffffff !important;
}

#bbpress-forums form#bbp-your-profile input:disabled,
#bbpress-forums form#edit-user input:disabled {
    background-color: #f8fafc !important;
    color: #64748b !important;
    cursor: not-allowed !important;
    border-color: #e2e8f0 !important;
}

#bbpress-forums form#bbp-your-profile select,
#bbpress-forums form#edit-user select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px !important;
    padding-right: 38px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    cursor: pointer !important;
}

#bbpress-forums form#bbp-your-profile textarea,
#bbpress-forums form#edit-user textarea {
    height: auto !important;
    min-height: 120px !important;
    resize: vertical !important;
    line-height: 1.6 !important;
}

/* ── Rediseño Componente Subir Foto de Perfil ── */
.ehu-avatar-upload-card {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    margin-top: 10px !important;
    padding: 22px 26px !important;
    background: #f8fafc !important;
    border: 1.5px dashed #cbd5e1 !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
}

.ehu-avatar-upload-card .ehu-avatar-title {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #16213e !important;
    margin: 0 0 14px 0 !important;
    display: block !important;
}

.ehu-avatar-upload-card .ehu-avatar-box {
    display: flex !important;
    align-items: center !important;
    gap: 22px !important;
    flex-wrap: wrap !important;
}

.ehu-avatar-upload-card .ehu-avatar-img-wrap {
    position: relative !important;
    width: 76px !important;
    height: 76px !important;
    flex-shrink: 0 !important;
}

.ehu-avatar-upload-card .ehu-avatar-img-wrap img#ehu-avatar-preview {
    width: 76px !important;
    height: 76px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1) !important;
    display: block !important;
}

.ehu-avatar-upload-card .ehu-avatar-camera-badge {
    position: absolute !important;
    bottom: -2px !important;
    right: -2px !important;
    background: #4f7df3 !important;
    color: #ffffff !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

.ehu-avatar-upload-card .ehu-avatar-info {
    flex: 1 !important;
    min-width: 240px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.ehu-avatar-upload-card label.ehu-avatar-field-label {
    font-size: 0.86rem !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin: 0 !important;
    display: block !important;
}

.ehu-avatar-upload-card input[type="file"]#ehu_custom_avatar_file,
#bbpress-forums form#bbp-your-profile input[type="file"]#ehu_custom_avatar_file,
#bbpress-forums form#edit-user input[type="file"]#ehu_custom_avatar_file {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 7px 12px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #475569 !important;
    font-size: 0.85rem !important;
    font-family: 'Inter', sans-serif !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

.ehu-avatar-upload-card input[type="file"]#ehu_custom_avatar_file::file-selector-button,
#bbpress-forums form#bbp-your-profile input[type="file"]#ehu_custom_avatar_file::file-selector-button,
#bbpress-forums form#edit-user input[type="file"]#ehu_custom_avatar_file::file-selector-button {
    background: #16213e !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 6px 16px !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
    cursor: pointer !important;
    margin-right: 12px !important;
    transition: all 0.15s ease !important;
}

.ehu-avatar-upload-card input[type="file"]#ehu_custom_avatar_file::file-selector-button:hover,
#bbpress-forums form#bbp-your-profile input[type="file"]#ehu_custom_avatar_file::file-selector-button:hover,
#bbpress-forums form#edit-user input[type="file"]#ehu_custom_avatar_file::file-selector-button:hover {
    background: #4f7df3 !important;
}

.ehu-avatar-upload-card .ehu-avatar-help {
    font-size: 0.78rem !important;
    color: #94a3b8 !important;
    margin: 4px 0 0 0 !important;
}

/* ── Rediseño de Campos de Contraseña y Botones ── */
#bbpress-forums form#bbp-your-profile .user-pass1-wrap,
#bbpress-forums form#edit-user .user-pass1-wrap,
#bbpress-forums form#bbp-your-profile div#password,
#bbpress-forums form#edit-user div#password {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
}

/* Botón Generar Contraseña */
#bbpress-forums form#bbp-your-profile button.wp-generate-pw,
#bbpress-forums form#edit-user button.wp-generate-pw {
    background: #eef2ff !important;
    color: #2563eb !important;
    border: 1.5px solid #c7d2fe !important;
    border-radius: 10px !important;
    padding: 11px 20px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
    cursor: pointer !important;
    transition: all 0.18s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

#bbpress-forums form#bbp-your-profile button.wp-generate-pw:hover,
#bbpress-forums form#edit-user button.wp-generate-pw:hover {
    background: #dbeafe !important;
    border-color: #93c5fd !important;
    color: #1d4ed8 !important;
    transform: translateY(-1px) !important;
}

/* Contenedor de la contraseña activa (.wp-pwd) - Alineación perfecta a la misma altura */
#bbpress-forums form#bbp-your-profile .wp-pwd,
#bbpress-forums form#edit-user .wp-pwd {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    margin-top: 6px !important;
}

#bbpress-forums form#bbp-your-profile .wp-pwd .password-input-wrapper,
#bbpress-forums form#edit-user .wp-pwd .password-input-wrapper {
    flex: 1 1 200px !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 44px !important;
}

#bbpress-forums form#bbp-your-profile .wp-pwd input,
#bbpress-forums form#edit-user .wp-pwd input,
#bbpress-forums form#bbp-your-profile input#pass1,
#bbpress-forums form#edit-user input#pass1 {
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    line-height: 44px !important;
    padding: 0 14px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 10px !important;
    font-size: 0.92rem !important;
    font-family: 'Inter', sans-serif !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    width: 100% !important;
    display: block !important;
}

#bbpress-forums form#bbp-your-profile button.wp-hide-pw,
#bbpress-forums form#edit-user button.wp-hide-pw,
#bbpress-forums form#bbp-your-profile button.wp-cancel-pw,
#bbpress-forums form#edit-user button.wp-cancel-pw {
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    padding: 0 18px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 10px !important;
    font-size: 0.86rem !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    background: #ffffff !important;
    color: #334155 !important;
    flex-shrink: 0 !important;
    transition: all 0.15s ease !important;
}

#bbpress-forums form#bbp-your-profile button.wp-hide-pw:hover,
#bbpress-forums form#edit-user button.wp-hide-pw:hover {
    background: #f8fafc !important;
    color: #16213e !important;
    border-color: #94a3b8 !important;
}

#bbpress-forums form#bbp-your-profile button.wp-cancel-pw:hover,
#bbpress-forums form#edit-user button.wp-cancel-pw:hover {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border-color: #fca5a5 !important;
}

/* Indicador de fuerza de contraseña */
#bbpress-forums form#bbp-your-profile #pass-strength-result,
#bbpress-forums form#edit-user #pass-strength-result {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    margin-top: 10px !important;
    padding: 9px 14px !important;
    border-radius: 8px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    box-sizing: border-box !important;
    transition: all 0.25s ease !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    color: #64748b !important;
}

#bbpress-forums form#bbp-your-profile #pass-strength-result.short,
#bbpress-forums form#bbp-your-profile #pass-strength-result.bad,
#bbpress-forums form#edit-user #pass-strength-result.short,
#bbpress-forums form#edit-user #pass-strength-result.bad {
    background: #fee2e2 !important;
    color: #dc2626 !important;
    border-color: #fecaca !important;
}

#bbpress-forums form#bbp-your-profile #pass-strength-result.good,
#bbpress-forums form#edit-user #pass-strength-result.good {
    background: #fef3c7 !important;
    color: #d97706 !important;
    border-color: #fde68a !important;
}

#bbpress-forums form#bbp-your-profile #pass-strength-result.strong,
#bbpress-forums form#edit-user #pass-strength-result.strong {
    background: #dcfce7 !important;
    color: #15803d !important;
    border-color: #bbf7d0 !important;
}

/* Repetir contraseña */
#bbpress-forums form#bbp-your-profile .user-pass2-wrap,
#bbpress-forums form#edit-user .user-pass2-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
}

#bbpress-forums form#bbp-your-profile .user-pass2-wrap p.description,
#bbpress-forums form#edit-user .user-pass2-wrap p.description,
#bbpress-forums form#bbp-your-profile .user-pass2-wrap span.description,
#bbpress-forums form#edit-user .user-pass2-wrap span.description {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 6px 0 0 0 !important;
    color: #64748b !important;
    font-size: 0.8rem !important;
    box-shadow: none !important;
}

/* Checkbox Confirmar contraseña débil: check y texto perfectamente juntos en la misma fila horizontal */
#bbpress-forums form#bbp-your-profile .pw-weak,
#bbpress-forums form#edit-user .pw-weak,
#bbpress-forums form#bbp-your-profile div.pw-weak,
#bbpress-forums form#edit-user div.pw-weak {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    background: #fffbeb !important;
    border: 1.5px solid #fde68a !important;
    border-radius: 12px !important;
    padding: 14px 20px !important;
    margin: 12px 0 6px 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
}

#bbpress-forums form#bbp-your-profile .pw-weak label,
#bbpress-forums form#edit-user .pw-weak label,
#bbpress-forums form#bbp-your-profile div.pw-weak label,
#bbpress-forums form#edit-user div.pw-weak label {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #92400e !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    line-height: 1 !important;
}

#bbpress-forums form#bbp-your-profile .pw-weak input[type="checkbox"],
#bbpress-forums form#edit-user .pw-weak input[type="checkbox"],
#bbpress-forums form#bbp-your-profile div.pw-weak input[type="checkbox"],
#bbpress-forums form#edit-user div.pw-weak input[type="checkbox"] {
    display: inline-block !important;
    width: 18px !important;
    height: 18px !important;
    accent-color: #d97706 !important;
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    vertical-align: middle !important;
}

/* Sugerencia de contraseña */
#bbpress-forums form#bbp-your-profile fieldset.bbp-form>p.description,
#bbpress-forums form#edit-user fieldset.bbp-form>p.description,
#bbpress-forums form#bbp-your-profile p.description:has(strong),
#bbpress-forums form#edit-user p.description:has(strong),
#bbpress-forums form#bbp-your-profile .password-hint {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    clear: both !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 3.5px solid #4f7df3 !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    color: #475569 !important;
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
    margin: 10px 0 !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
}

/* Campos de ancho completo estándar (textarea, bio, etc.) */
#bbpress-forums form#bbp-your-profile fieldset.bbp-form>div:has(textarea),
#bbpress-forums form#edit-user fieldset.bbp-form>div:has(textarea),
#bbpress-forums form#bbp-your-profile fieldset.bbp-form>div.avatar-wrap,
#bbpress-forums form#edit-user fieldset.bbp-form>div.avatar-wrap {
    grid-column: 1 / -1 !important;
}

/* Descripción de ayuda general */
#bbpress-forums form#bbp-your-profile span.description,
#bbpress-forums form#edit-user span.description {
    font-size: 0.8rem !important;
    color: #64748b !important;
    margin-top: 6px !important;
    display: block !important;
    text-align: left !important;
    line-height: 1.4 !important;
    font-family: 'Inter', sans-serif !important;
}

/* Bloque submit inferior */
#bbpress-forums form#bbp-your-profile fieldset.submit,
#bbpress-forums form#edit-user fieldset.submit {
    display: flex !important;
    justify-content: flex-end !important;
    border: none !important;
    background: transparent !important;
    padding: 10px 0 0 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
}

#bbpress-forums form#bbp-your-profile button[type="submit"],
#bbpress-forums form#edit-user button[type="submit"],
#bbpress-forums form#bbp-your-profile input[type="submit"],
#bbpress-forums form#edit-user input[type="submit"] {
    background: #16213e !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 14px 40px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    font-family: 'Inter', sans-serif !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 14px rgba(22, 33, 62, 0.25) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

#bbpress-forums form#bbp-your-profile button[type="submit"]:hover,
#bbpress-forums form#edit-user button[type="submit"]:hover {
    background: #4f7df3 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(79, 125, 243, 0.35) !important;
}

/* Ocultar completamente el selector de idioma en Editar Perfil */
#bbpress-forums form#bbp-your-profile fieldset.bbp-form>div:has(#locale),
#bbpress-forums form#edit-user fieldset.bbp-form>div:has(#locale),
#bbpress-forums form#bbp-your-profile .user-language-wrap,
#bbpress-forums form#edit-user .user-language-wrap,
#bbpress-forums form#bbp-your-profile div.user-language-wrap,
#bbpress-forums form#edit-user div.user-language-wrap,
#bbpress-forums form#bbp-your-profile div:has(label[for="locale"]),
#bbpress-forums form#edit-user div:has(label[for="locale"]),
#bbpress-forums form#bbp-your-profile label[for="locale"],
#bbpress-forums form#bbp-your-profile select#locale,
#bbpress-forums form#edit-user label[for="locale"],
#bbpress-forums form#edit-user select#locale {
    display: none !important;
}

@media (max-width: 768px) {

    #bbpress-forums form#bbp-your-profile fieldset.bbp-form,
    #bbpress-forums form#edit-user fieldset.bbp-form {
        grid-template-columns: 1fr !important;
        padding: 20px 18px !important;
        gap: 16px !important;
    }
}

/* Ocultar el bloque 'Información de contacto' en Editar Perfil y Vista Perfil */
#bbpress-forums form#bbp-your-profile h2:nth-of-type(2),
#bbpress-forums form#edit-user h2:nth-of-type(2),
#bbpress-forums form#bbp-your-profile fieldset:nth-of-type(2),
#bbpress-forums form#edit-user fieldset:nth-of-type(2),
#bbpress-forums p.bbp-user-website {
    display: none !important;
}

/* Responsive perfil */
@media (max-width: 680px) {
    #bbpress-forums #bbp-single-user-details {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    #bbpress-forums #bbp-user-navigation ul {
        justify-content: center !important;
    }

    #bbpress-forums #bbp-user-wrapper {
        padding: 20px !important;
    }
}

/* Responsive respuestas */
@media (max-width: 680px) {
    #bbpress-forums ul.bbp-replies>li.bbp-body div.reply {
        grid-template-columns: 1fr !important;
    }

    #bbpress-forums ul.bbp-replies div.reply .bbp-reply-author {
        flex-direction: row !important;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
        border-right: none !important;
        border-bottom: 1px solid #eef2f7 !important;
        padding: 12px 18px !important;
    }

    #bbpress-forums ul.bbp-replies div.reply .bbp-reply-author img.avatar {
        width: 36px !important;
        height: 36px !important;
    }

    #bbpress-forums ul.bbp-replies div.reply .bbp-reply-content,
    #bbpress-forums ul.bbp-replies div.reply .ehu-like-wrap {
        grid-column: 1 !important;
    }

    #bbpress-forums .bbp-reply-form,
    #bbpress-forums .bbp-topic-form {
        padding: 20px !important;
    }
}

/* Ocultar campos innecesarios: Tipo de debate y Estado del debate */
#bbpress-forums .bbp-topic-form-type,
#bbpress-forums .bbp-topic-form-status,
#bbpress-forums select#bbp_stick_topic_select,
#bbpress-forums select#bbp_topic_status_select,
.bbpress-page-wrapper select#bbp_stick_topic_select,
.bbpress-page-wrapper select#bbp_topic_status_select,
#bbpress-forums p:has(select#bbp_stick_topic_select),
#bbpress-forums p:has(select#bbp_topic_status_select),
.bbpress-page-wrapper p:has(select#bbp_stick_topic_select),
.bbpress-page-wrapper p:has(select#bbp_topic_status_select),
#bbpress-forums div:has(> select#bbp_stick_topic_select),
#bbpress-forums div:has(> select#bbp_topic_status_select),
.bbpress-page-wrapper div:has(> select#bbp_stick_topic_select),
.bbpress-page-wrapper div:has(> select#bbp_topic_status_select) {
    display: none !important;
}

#bbp_topic_title,
#bbp_topic_tags {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.9rem !important;
    color: #16213e !important;
    background: #ffffff !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    outline: none !important;
    box-sizing: border-box !important;
}

#bbp_topic_title:focus,
#bbp_topic_tags:focus,
#bbp_stick_topic_select:focus,
#bbp_topic_status_select:focus {
    border-color: #4f7df3 !important;
    box-shadow: 0 0 0 3px rgba(79, 125, 243, 0.15) !important;
}

/* Botón Enviar Formulario y Contenedor de Botones al pie del formulario */
#bbpress-forums .bbp-submit-wrapper,
.bbpress-page-wrapper .bbp-submit-wrapper {
    margin-top: 24px !important;
    margin-bottom: 12px !important;
    padding-bottom: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    width: 100% !important;
    clear: both !important;
}

#bbp_topic_submit,
#bbp_reply_submit,
#bbpress-forums .bbp-submit-wrapper button[type="submit"],
#bbpress-forums .bbp-submit-wrapper input[type="submit"],
.ehu-btn-cancel {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 110px !important;
    height: 44px !important;
    padding: 0 24px !important;
    box-sizing: border-box !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    font-family: 'Inter', sans-serif !important;
    letter-spacing: 0.02em !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    line-height: 1 !important;
    transition: all 0.2s ease !important;
}

#bbp_topic_submit,
#bbp_reply_submit,
#bbpress-forums .bbp-submit-wrapper button[type="submit"],
#bbpress-forums .bbp-submit-wrapper input[type="submit"] {
    background: #16213e !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(22, 33, 62, 0.2) !important;
}

#bbp_topic_submit:hover,
#bbp_reply_submit:hover,
#bbpress-forums .bbp-submit-wrapper button[type="submit"]:hover {
    background: #2563eb !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3) !important;
}

/* Botón Cancelar / Cerrar (en Rojo Elegante y tamaño idéntico a Enviar) */
#bbpress-forums .bbp-submit-wrapper .ehu-btn-cancel,
#bbpress-forums .bbp-submit-wrapper button.ehu-btn-cancel,
.bbpress-page-wrapper .bbp-submit-wrapper .ehu-btn-cancel,
button.ehu-btn-cancel,
.ehu-btn-cancel {
    background: #dc2626 !important;
    background-color: #dc2626 !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25) !important;
}

#bbpress-forums .bbp-submit-wrapper .ehu-btn-cancel:hover,
#bbpress-forums .bbp-submit-wrapper button.ehu-btn-cancel:hover,
.bbpress-page-wrapper .bbp-submit-wrapper .ehu-btn-cancel:hover,
button.ehu-btn-cancel:hover,
.ehu-btn-cancel:hover {
    background: #b91c1c !important;
    background-color: #b91c1c !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(185, 28, 28, 0.4) !important;
}

/* Aviso de validación cuando se intenta enviar una respuesta vacía */
.ehu-empty-reply-alert {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: #fef2f2 !important;
    color: #991b1b !important;
    border: 1.5px solid #fecaca !important;
    border-radius: 12px !important;
    padding: 12px 18px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    margin-top: 14px !important;
    margin-bottom: 8px !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.08) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

@keyframes ehuShake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-6px);
    }

    40%,
    80% {
        transform: translateX(6px);
    }
}

/* ═══════════════════════════════════════════════════════════
   FORO — Tabla de temas (cada tema es un <ul class="topic">)
   ═══════════════════════════════════════════════════════════ */
#bbp-content ul.topic,
#bbpress-forums ul.topic,
.bbpress-page-wrapper ul.topic {
    list-style: none !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    background: #ffffff !important;
    border: 1px solid rgba(22, 33, 62, 0.08) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
    overflow: hidden !important;
    display: grid !important;
    grid-template-columns: 1fr 80px 80px 170px !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

#bbp-content ul.topic:hover,
#bbpress-forums ul.topic:hover,
.bbpress-page-wrapper ul.topic:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(22, 33, 62, 0.08) !important;
    border-color: rgba(79, 125, 243, 0.3) !important;
}

#bbp-content ul.topic li,
#bbpress-forums ul.topic li {
    list-style: none !important;
    margin: 0 !important;
}

/* Columna 1 — Título + autor */
ul.topic li.bbp-topic-title,
#bbp-content ul.topic li.bbp-topic-title,
#bbpress-forums ul.topic li.bbp-topic-title,
.bbpress-page-wrapper ul.topic li.bbp-topic-title {
    grid-column: 1 !important;
    grid-row: 1 !important;
    padding: 20px 22px !important;
}

#bbp-content ul.topic li.bbp-topic-title a.bbp-topic-permalink,
#bbpress-forums ul.topic li.bbp-topic-title a.bbp-topic-permalink,
.bbpress-page-wrapper ul.topic li.bbp-topic-title a.bbp-topic-permalink {
    font-size: 1.02rem !important;
    font-weight: 700 !important;
    color: #16213e !important;
    text-decoration: none !important;
    display: block !important;
    margin-bottom: 6px !important;
    line-height: 1.35 !important;
    transition: color 0.15s ease !important;
}

#bbp-content ul.topic li.bbp-topic-title a.bbp-topic-permalink:hover,
#bbpress-forums ul.topic li.bbp-topic-title a.bbp-topic-permalink:hover,
.bbpress-page-wrapper ul.topic li.bbp-topic-title a.bbp-topic-permalink:hover {
    color: #4f7df3 !important;
}

#bbp-content ul.topic li.bbp-topic-title p.bbp-topic-meta,
#bbpress-forums ul.topic li.bbp-topic-title p.bbp-topic-meta {
    font-size: .76rem !important;
    color: #94a3b8 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}

#bbp-content ul.topic li.bbp-topic-title p.bbp-topic-meta a,
#bbpress-forums ul.topic li.bbp-topic-title p.bbp-topic-meta a {
    color: #64748b !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}

#bbp-content ul.topic li.bbp-topic-title p.bbp-topic-meta img,
#bbpress-forums ul.topic li.bbp-topic-title p.bbp-topic-meta img {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
}

/* Columna 2 — Voces · Columna 3 — Respuestas (centrado absoluto vertical y horizontal) */
ul.topic li.bbp-topic-voice-count,
#bbp-content ul.topic li.bbp-topic-voice-count,
#bbpress-forums ul.topic li.bbp-topic-voice-count,
.bbpress-page-wrapper ul.topic li.bbp-topic-voice-count {
    grid-column: 2 !important;
    grid-row: 1 !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #16213e !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 18px 8px !important;
    margin: 0 auto !important;
    width: 100% !important;
}

ul.topic li.bbp-topic-reply-count,
#bbp-content ul.topic li.bbp-topic-reply-count,
#bbpress-forums ul.topic li.bbp-topic-reply-count,
.bbpress-page-wrapper ul.topic li.bbp-topic-reply-count {
    grid-column: 3 !important;
    grid-row: 1 !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #16213e !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 18px 8px !important;
    margin: 0 auto !important;
    width: 100% !important;
}

/* Columna 4 — Última actividad (centrada en su celda) */
ul.topic li.bbp-topic-freshness,
#bbp-content ul.topic li.bbp-topic-freshness,
#bbpress-forums ul.topic li.bbp-topic-freshness,
.bbpress-page-wrapper ul.topic li.bbp-topic-freshness {
    grid-column: 4 !important;
    grid-row: 1 !important;
    padding: 14px 8px !important;
    font-size: .77rem !important;
    color: #64748b !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

ul.topic li.bbp-topic-freshness a,
#bbp-content ul.topic li.bbp-topic-freshness a,
#bbpress-forums ul.topic li.bbp-topic-freshness a,
.bbpress-page-wrapper ul.topic li.bbp-topic-freshness a {
    color: #16213e !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    font-size: .8rem !important;
    display: block !important;
    margin-bottom: 2px !important;
    white-space: nowrap !important;
    text-align: center !important;
}

ul.topic li.bbp-topic-freshness p.bbp-topic-meta,
#bbp-content ul.topic li.bbp-topic-freshness p.bbp-topic-meta,
#bbpress-forums ul.topic li.bbp-topic-freshness p.bbp-topic-meta,
.bbpress-page-wrapper ul.topic li.bbp-topic-freshness p.bbp-topic-meta {
    margin: 0 !important;
    font-size: .72rem !important;
    color: #94a3b8 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    text-align: center !important;
}

ul.topic li.bbp-topic-freshness p.bbp-topic-meta a,
#bbp-content ul.topic li.bbp-topic-freshness p.bbp-topic-meta a,
#bbpress-forums ul.topic li.bbp-topic-freshness p.bbp-topic-meta a,
.bbpress-page-wrapper ul.topic li.bbp-topic-freshness p.bbp-topic-meta a {
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    color: #94a3b8 !important;
    font-size: .72rem !important;
    text-align: center !important;
}

/* ── Botón de suscripción diferencial (Azul Eléctrico #4f7df3) ── */
#subscription-toggle span a,
#subscription-toggle a,
.ehu-navy-sub-btn-wrap a,
a.subscription-toggle,
.subscription-toggle a,
#bbpress-forums #subscription-toggle a,
#bbpress-forums a.subscription-toggle,
#subscription-toggle span a:hover,
#subscription-toggle a:hover,
.ehu-navy-sub-btn-wrap a:hover,
a.subscription-toggle:hover,
.subscription-toggle a:hover,
#bbpress-forums #subscription-toggle a:hover,
#bbpress-forums a.subscription-toggle:hover,
#subscription-toggle span a:focus,
#subscription-toggle a:focus,
.ehu-navy-sub-btn-wrap a:focus,
a.subscription-toggle:focus,
.subscription-toggle a:focus,
#bbpress-forums #subscription-toggle a:focus,
#bbpress-forums a.subscription-toggle:focus,
#subscription-toggle span a:active,
#subscription-toggle a:active,
.ehu-navy-sub-btn-wrap a:active,
a.subscription-toggle:active,
.subscription-toggle a:active,
#bbpress-forums #subscription-toggle a:active,
#bbpress-forums a.subscription-toggle:active {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: #4f7df3 !important;
    background-color: #4f7df3 !important;
    color: #ffffff !important;
    border: 1.5px solid #4f7df3 !important;
    padding: 10px 20px !important;
    border-radius: 10px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    font-family: 'Inter', sans-serif !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
    height: 42px !important;
    transition: all 0.15s ease !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    outline: none !important;
    box-shadow: 0 4px 14px rgba(79, 125, 243, 0.35) !important;
}

/* ═══════════════════════════════════════════════════════════════
   ESTILOS PREMIUM PARA VISTAS DE SUSCRIPCIONES Y PERFIL DE USUARIO
   ═══════════════════════════════════════════════════════════════ */

/* 1. Títulos de sección con barra decorativa lateral */
#bbpress-forums #bbp-user-body h2.entry-title,
#bbpress-forums .bbp-user-section h2,
#bbpress-forums #bbp-user-subscriptions h2 {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #16213e !important;
    margin: 32px 0 20px !important;
    font-family: 'Inter', sans-serif !important;
    padding: 2px 0 2px 16px !important;
    border-left: 4px solid #4f7df3 !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-radius: 2px !important;
    display: block !important;
}

#bbpress-forums #bbp-user-body h2.entry-title::before,
#bbpress-forums .bbp-user-section h2::before,
#bbpress-forums #bbp-user-subscriptions h2::before {
    display: none !important;
    content: none !important;
}

/* 2. Rediseño completo de la lista/tabla de Foros Suscritos (ul.bbp-forums) */
#bbpress-forums ul.bbp-forums {
    list-style: none !important;
    margin: 0 0 32px !important;
    padding: 0 !important;
    border: none !important;
    width: 100% !important;
    background: transparent !important;
}

/* Cabecera de la tabla de foros suscritos */
#bbpress-forums ul.bbp-forums li.bbp-header {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 12px 24px !important;
    margin-bottom: 12px !important;
}

#bbpress-forums ul.bbp-forums li.bbp-header ul.forum-titles {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
}

#bbpress-forums ul.bbp-forums li.bbp-header ul.forum-titles li {
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

#bbpress-forums ul.bbp-forums li.bbp-header ul.forum-titles li.bbp-forum-info {
    flex: 1 !important;
    text-align: left !important;
}

#bbpress-forums ul.bbp-forums li.bbp-header ul.forum-titles li.bbp-forum-topic-count {
    width: 90px !important;
    text-align: center !important;
}

#bbpress-forums ul.bbp-forums li.bbp-header ul.forum-titles li.bbp-forum-reply-count {
    width: 90px !important;
    text-align: center !important;
}

#bbpress-forums ul.bbp-forums li.bbp-header ul.forum-titles li.bbp-forum-freshness {
    width: 170px !important;
    text-align: right !important;
}

/* Filas de foros suscritos como tarjetas modernas */
#bbpress-forums ul.bbp-forums li.bbp-body {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

#bbpress-forums ul.bbp-forums li.bbp-body>ul {
    background: #ffffff !important;
    border: 1px solid rgba(22, 33, 62, 0.08) !important;
    border-radius: 14px !important;
    padding: 18px 24px !important;
    margin: 0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
    display: flex !important;
    align-items: center !important;
    list-style: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

#bbpress-forums ul.bbp-forums li.bbp-body>ul:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(22, 33, 62, 0.08) !important;
    border-color: rgba(79, 125, 243, 0.3) !important;
}

#bbpress-forums ul.bbp-forums li.bbp-body>ul li {
    list-style: none !important;
    margin: 0 !important;
}

#bbpress-forums ul.bbp-forums li.bbp-body>ul li.bbp-forum-info {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
}

#bbpress-forums ul.bbp-forums li.bbp-body>ul li.bbp-forum-info a.bbp-forum-title {
    font-size: 1.02rem !important;
    font-weight: 700 !important;
    color: #16213e !important;
    text-decoration: none !important;
    transition: color 0.15s !important;
}

#bbpress-forums ul.bbp-forums li.bbp-body>ul li.bbp-forum-info a.bbp-forum-title:hover {
    color: #4f7df3 !important;
}

#bbpress-forums ul.bbp-forums li.bbp-body>ul li.bbp-forum-topic-count,
#bbpress-forums ul.bbp-forums li.bbp-body>ul li.bbp-forum-reply-count {
    width: 90px !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #16213e !important;
    text-align: center !important;
}

#bbpress-forums ul.bbp-forums li.bbp-body>ul li.bbp-forum-freshness {
    width: 170px !important;
    font-size: 0.78rem !important;
    color: #94a3b8 !important;
    text-align: right !important;
}

#bbpress-forums ul.bbp-forums li.bbp-body>ul li.bbp-forum-freshness a {
    color: #16213e !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

/* 3. Botón de desuscripción dentro de filas de listas (Con texto completo 'Cancelar suscripción') */
#bbpress-forums ul.bbp-forums .subscription-toggle,
#bbpress-forums ul.bbp-topics .subscription-toggle,
#bbpress-forums .bbp-forum-info .subscription-toggle,
#bbpress-forums .bbp-topic-title .subscription-toggle {
    display: inline-flex !important;
    margin-left: 12px !important;
}

#bbpress-forums ul.bbp-forums .subscription-toggle a,
#bbpress-forums ul.bbp-topics .subscription-toggle a,
#bbpress-forums .bbp-forum-info .subscription-toggle a,
#bbpress-forums .bbp-topic-title .subscription-toggle a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 6px 14px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    background: #4f7df3 !important;
    color: #ffffff !important;
    border: none !important;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(79, 125, 243, 0.25) !important;
    transition: all 0.15s ease !important;
    white-space: nowrap !important;
}

#bbpress-forums ul.bbp-forums .subscription-toggle a:hover,
#bbpress-forums ul.bbp-topics .subscription-toggle a:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

/* 4. Estado vacío profesional — tarjeta centrada con icono, título y descripción */
#bbpress-forums div.bbp-template-notice.info,
#bbpress-forums div.bbp-template-notice,
.bbpress-page-wrapper div.bbp-template-notice {
    position: relative !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 28px 24px !important;
    margin: 20px 0 24px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
    color: #475569 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 8px !important;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease !important;
}

/* Variantes profesionales de notificaciones de formulario (info / error / advertencia) */
#bbpress-forums div.bbp-template-notice.info,
#bbpress-forums div.bbp-template-notice.error,
#bbpress-forums div.bbp-template-notice.warning {
    flex-direction: row !important;
    text-align: left !important;
    padding: 16px 20px !important;
    gap: 16px !important;
    border-radius: 12px !important;
    margin: 16px 0 !important;
}

#bbpress-forums div.bbp-template-notice.info::after {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%) !important;
}

#bbpress-forums div.bbp-template-notice.error {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
}

#bbpress-forums div.bbp-template-notice.error::after {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%) !important;
}

#bbpress-forums div.bbp-template-notice.error .ehu-notice-icon-wrap {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #dc2626 !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15) !important;
}

#bbpress-forums div.bbp-template-notice.info .ehu-notice-icon-wrap,
#bbpress-forums div.bbp-template-notice.error .ehu-notice-icon-wrap {
    width: 42px !important;
    height: 42px !important;
    flex-shrink: 0 !important;
    font-size: 1.1rem !important;
    margin-bottom: 0 !important;
}

#bbpress-forums div.bbp-template-notice .ehu-notice-title,
.bbpress-page-wrapper div.bbp-template-notice .ehu-notice-title {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    color: #0f172a !important;
    margin: 0 !important;
    font-family: 'Inter', sans-serif !important;
}

#bbpress-forums div.bbp-template-notice p,
#bbpress-forums div.bbp-template-notice .ehu-notice-desc,
.bbpress-page-wrapper div.bbp-template-notice p,
.bbpress-page-wrapper div.bbp-template-notice .ehu-notice-desc {
    margin: 0 !important;
    max-width: 440px !important;
    color: #64748b !important;
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    font-family: 'Inter', sans-serif !important;
}

/* Barra de herramientas estilo Microsoft Word / Editor Moderno */
.quicktags-toolbar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 10px 14px !important;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-bottom: none !important;
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
}

.quicktags-toolbar button.ed_button,
.quicktags-toolbar input.ed_button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 7px 14px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    color: #334155 !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
    cursor: pointer !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.15s ease !important;
    line-height: 1 !important;
    text-transform: none !important;
    height: auto !important;
}

.quicktags-toolbar button.ed_button:hover,
.quicktags-toolbar input.ed_button:hover {
    background: #eff6ff !important;
    border-color: #3b82f6 !important;
    color: #1d4ed8 !important;
    transform: translateY(-1px) !important;
}

.quicktags-toolbar button.ed_button i {
    font-size: 0.88rem !important;
    color: #475569 !important;
}

.quicktags-toolbar button.ed_button:hover i {
    color: #1d4ed8 !important;
}

/* Ocultar botones técnicos HTML sobrantes */
#bbpress-forums #qt_bbp_reply_content_code,
#bbpress-forums #qt_bbp_reply_content_close,
#bbpress-forums #qt_bbp_reply_content_li,
#bbpress-forums #qt_bbp_reply_content_img,
#bbpress-forums #qt_bbp_reply_content_del,
#bbpress-forums #qt_bbp_topic_content_code,
#bbpress-forums #qt_bbp_topic_content_close,
#bbpress-forums #qt_bbp_topic_content_li,
#bbpress-forums #qt_bbp_topic_content_img,
#bbpress-forums #qt_bbp_topic_content_del,
.quicktags-toolbar #qt_bbp_reply_content_code,
.quicktags-toolbar #qt_bbp_reply_content_close,
.quicktags-toolbar #qt_bbp_reply_content_li,
.quicktags-toolbar #qt_bbp_reply_content_img,
.quicktags-toolbar #qt_bbp_reply_content_del,
.quicktags-toolbar #qt_bbp_topic_content_code,
.quicktags-toolbar #qt_bbp_topic_content_close,
.quicktags-toolbar #qt_bbp_topic_content_li,
.quicktags-toolbar #qt_bbp_topic_content_img,
.quicktags-toolbar #qt_bbp_topic_content_del {
    display: none !important;

    /* Ocultar barra de ruta de elementos HTML (p » strong) e info inferior de TinyMCE */
    .mce-path,
    .mce-statusbar,
    div.mce-statusbar,
    .mce-path-item {
        display: none !important;
    }

    /* ═══════════════════════════════════════════════════════════
   ESTILOS Y LIMPIEZA DE MODAL TINYMCE (INSERTAR ENLACE)
   ═══════════════════════════════════════════════════════════ */

    /* Ocultar el campo 'Destino' y opciones <top>/<bottom> técnicas */
    .mce-window div.mce-container-body>div.mce-formitem:last-child,
    .mce-window .mce-formitem:nth-last-child(1),
    .mce-menu-item[data-value="top"],
    .mce-menu-item[data-value="bottom"],
    .mce-menu-item[data-value="_top"],
    .mce-menu-item[data-value="_bottom"],
    .mce-floatpanel.mce-popover,
    .mce-floatpanel.mce-menu {
        display: none !important;
    }


    /* Estilo moderno del diálogo modal TinyMCE */
    .mce-window.mce-in {
        border-radius: 16px !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25) !important;
        border: 1px solid rgba(226, 232, 240, 0.8) !important;
        overflow: hidden !important;
    }

    .mce-window-head {
        background: #ffffff !important;
        padding: 16px 20px !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }

    .mce-window-head .mce-title {
        font-family: 'Inter', sans-serif !important;
        font-weight: 700 !important;
        font-size: 1.1rem !important;
        color: #1e293b !important;
    }

    .mce-window-head .mce-close {
        top: 14px !important;
        right: 16px !important;
        font-size: 1.2rem !important;
        color: #64748b !important;
    }

    .mce-window-body {
        background: #ffffff !important;
        padding: 12px 20px !important;
    }

    .mce-textbox,
    .mce-selectbox button {
        border: 1.5px solid #cbd5e1 !important;
        border-radius: 8px !important;
        padding: 8px 12px !important;
        font-family: 'Inter', sans-serif !important;
        font-size: 0.9rem !important;
        color: #1e293b !important;
        box-shadow: none !important;
        transition: border-color 0.15s ease !important;
    }

    .mce-textbox:focus,
    .mce-selectbox button:focus {
        border-color: #2563eb !important;
        outline: none !important;
    }

    /* Integración de Editor TinyMCE + Zona de adjuntos en una sola celda unificada */
    .bbp-the-content-wrapper {
        border: 1.5px solid #cbd5e1 !important;
        border-radius: 14px !important;
        overflow: hidden !important;
        background: #ffffff !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
        transition: border-color 0.2s, box-shadow 0.2s !important;
    }

    .bbp-the-content-wrapper:focus-within {
        border-color: #2563eb !important;
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
    }

    .mce-tinymce.mce-container {
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .mce-top-part.mce-container,
    .mce-toolbar-grp.mce-container {
        background: #f8fafc !important;
        border-bottom: 1px solid #e2e8f0 !important;
        padding: 6px 10px !important;
    }

    .mce-edit-area.mce-container {
        border: none !important;
    }

    .mce-edit-area iframe {
        background: #ffffff !important;
        min-height: 180px !important;
    }

    /* Integrar la zona dropzone al pie de la misma celda sin cortes separadores */
    .bbp-reply-form .ehu-dropzone-wrap,
    .bbp-topic-form .ehu-dropzone-wrap {
        border: none !important;
        border-top: 1px dashed #cbd5e1 !important;
        border-radius: 0 !important;
        margin-top: 0 !important;
        background: #f8fafc !important;
        padding: 16px 20px !important;
    }

    .bbp-reply-form .ehu-dropzone-wrap:hover,
    .bbp-topic-form .ehu-dropzone-wrap:hover {
        background: #eff6ff !important;
    }

}