/* ========== bbPress – Inspenet Lite (clean) ========== */

/* ====== Contenedor general ====== */
.archive-wrap,
.bbp-wrap,
.insp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* ====== Header de archivo ====== */
.archive-head { margin: 12px 0 20px; }
.archive-head .crumbs { font-size: .9rem; opacity: .95; margin-bottom: 10px; }
.archive-title { font-weight: 700; line-height: 1.15; margin: .25rem 0 0; font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem); }

/* ====== Layout: contenido + sidebar ====== */
.forums-row { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 24px; align-items: start; }
.forums-main, .forums-sidebar { min-width: 0; }
.sticky-widget { position: sticky; top: var(--sticky-top, 96px); }

@media (max-width:1080px){
  .forums-row { grid-template-columns: 1fr; }
  .sticky-widget { top: calc(var(--sticky-top,96px) + 10px); }
}

/* ====== Breadcrumb “chips + chevrón” ====== */
.crumbs--bbp {
  --crumb-gap: 8px;
  --crumb-sep: "›";
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--crumb-gap);
  inline-size: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, rgba(0,0,0,1) 80%, rgba(0,0,0,0));
}

.crumbs--bbp .bbp-breadcrumb { display: inline-flex; gap: var(--crumb-gap); align-items: center; flex-wrap: wrap; }

.crumbs--bbp .bbp-breadcrumb a,
.crumbs--bbp .bbp-breadcrumb span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f6f8;
  color: #334155;
  text-decoration: none;
  font-size: .85rem;
  white-space: nowrap;
}

.crumbs--bbp .bbp-breadcrumb a:hover { background: #002990; color: white; }
.crumbs--bbp .bbp-breadcrumb a:focus-visible { outline: 2px solid #0ea5e9; outline-offset: 2px; }

.crumbs--bbp .bbp-breadcrumb a + a::before,
.crumbs--bbp .bbp-breadcrumb a + span::before,
.crumbs--bbp .bbp-breadcrumb span + a::before {
  content: var(--crumb-sep);
  margin-right: 2px;
  color: #94a3b8;
  font-weight: 600;
}

.crumbs--bbp .bbp-breadcrumb .bbp-breadcrumb-current {
  background: #002990;
  color: white;
  font-weight: 600;
}

/* ====== Grid de cards (3/2/1) ====== */
.forums-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
}

@media (max-width:1024px){ .forums-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width:640px) { .forums-grid { grid-template-columns: 1fr; } }

/* ====== Card ====== */
.forum-card {
  position: relative; /* para hit-area */
  display: flex; flex-direction: column;
  border: 1px solid #eaeaea; border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  min-height: 100%;
}
.forum-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.08); border-color: #e4e4e4; }
.forum-card:has(:focus-visible) { outline: 2px solid #0ea5e9; outline-offset: 2px; }

/* Hit area completa */
.card-hit-area {
  position: absolute; inset: 0; z-index: 1;
  border-radius: inherit;
}
.card-hit-area:focus-visible { outline: 2px solid #0ea5e9; outline-offset: 2px; }

/* Cover */
.forum-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #f6f7f8; }
.forum-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Cuerpo */
.forum-body { padding: 14px 14px 8px; display: grid; gap: 8px; position: relative; z-index: 2; }
.forum-badge { display: inline-block; font-size: 12px; line-height: 1; padding: 6px 10px; border-radius: 999px; color: white; max-width: 50px; background-color: #002990; }
.forum-title { margin: 0; font-size: 1.05rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.forum-title a { color: #111; text-decoration: none; position: relative; z-index: 2; }
.forum-title a:hover { text-decoration: underline; }
.forum-excerpt { color: #555; font-size: .94rem; line-height: 1.45; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Métricas */
.forum-stats { display: flex; gap: 14px; align-items: center; padding: 10px 14px 6px; color: #6a6f76; font-size: .9rem; flex-wrap: wrap; z-index: 2; }
.forum-stat { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.forum-stat .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .5; display:inline-block; }

/* Freshness */
.forum-freshness { padding: 10px 14px 14px; font-size: .88rem; color: #6a6f76; border-top: 1px dashed #eee; z-index: 2; }
.forum-freshness a { color: inherit; text-decoration: underline; }

/* Ocultar listado clásico si aparece (seguridad) */
#bbpress-forums ul.bbp-forums,
#bbpress-forums ul.forum,
#bbpress-forums .bbp-forums-list { display: none !important; }

/* Paginación bbPress */
#bbpress-forums .bbp-pagination {
  margin: 22px 0 6px;
  display: flex; justify-content: center;
}
.bbp-pagination .bbp-pagination-links a,
.bbp-pagination .bbp-pagination-links span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; margin: 0 4px; padding: 0 10px;
  border-radius: 10px; border: 1px solid #e6e6e6; background: #fff; color: #111;
  font-size: .92rem; text-decoration: none; transition: background .2s, color .2s, border-color .2s;
}
.bbp-pagination .bbp-pagination-links .current {
  background: #0ea5e9; border-color: #0ea5e9; color: #fff;
}
.bbp-pagination .bbp-pagination-links a:hover { background: #f7fafc; }

/* Sidebar */
.forums-sidebar .widget {
  border: 1px solid #eaeaea; background: #fff; border-radius: 14px; padding: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04); margin-bottom: 16px;
}
.forums-sidebar .widget-title { font-size: 1rem; margin: 0 0 10px; font-weight: 700; }

/* Respeto por reduce-motion */
@media (prefers-reduced-motion: reduce){
  .forum-card, .bbp-pagination .bbp-pagination-links a { transition: none; }
}


/* Grid (ya existe en el archive) */
.forums-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
@media (max-width:1200px){.forums-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.forums-grid{grid-template-columns:1fr}}

/* Card */
.forum-card{
  position:relative;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  overflow:hidden;
  transition:transform .18s,box-shadow .18s,border-color .18s;
  display:flex;
  flex-direction:column;
  min-width:0; /* evita overflow en grid */
}
.forum-card:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 18px rgba(0,0,0,.06);
  border-color:#d1d5db;
}
.forum-thumb{
  aspect-ratio:16/9;
  background:#f3f4f6;
  overflow:hidden;
}
.forum-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.forum-body{
  padding:14px;
  display:grid;
  gap:10px;
}
.forum-badge{
  display:inline-block;
  font-size:12px;
  font-weight:700;
  letter-spacing:.02em;
  color:#0f766e;
  background:#ecfeff;
  border:1px solid #cffafe;
  border-radius:999px;
  padding:4px 8px;
  width:max-content;
}
.forum-title{
  margin:0;
  font-size:18px;
  font-weight:800;
  color:#111827;
  line-height:1.2;
}
.forum-title a{ color:inherit; text-decoration:none; }
.forum-title a:hover{ text-decoration:underline; }

.forum-excerpt{
  margin:0;
  font-size:14px;
  color:#374151;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.forum-stats{
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
  align-items:center;
  font-size:12px;
  color:#6b7280;
}
.forum-stat{ display:inline-flex; align-items:center; gap:6px; }
.forum-stat .dot{
  width:6px; height:6px; border-radius:50%; background:#9ca3af; display:inline-block;
}

/* Freshness pegada al borde inferior */
.forum-freshness{
  margin-top:auto;
  padding:12px 14px;
  font-size:12px;
  color:#6b7280;
  border-top:1px solid #e5e7eb;
}
.forum-freshness a{ color:#0ea5e9; text-decoration:none; }
.forum-freshness a:hover{ text-decoration:underline; }

/* Área clicable completa */
.card-hit-area{
  position:absolute; inset:0;
  z-index:1;
}

/* Asegura que la imagen llene la caja con aspect-ratio */
.forum-card .forum-thumb{
  aspect-ratio: 16/9;         /* puedes cambiar a 21/9 o 4/3 si prefieres */
  background:#f3f4f6;
  overflow:hidden;
  display:block;
}

.forum-card .forum-thumb img{
  width:100% !important;
  height:100% !important;      /* vence height:auto globales */
  object-fit:cover;
  display:block;
}


/* Oculta solo visualmente títulos accesibles de bbPress */
.entry-title {
	display: none;
}


/*CSS DISCUSIONES*/
/* ======= Cabecera de columnas ======= */
.topic-list-head{
  display:grid;grid-template-columns:4fr 1fr 1fr 2fr;
  gap:12px;align-items:center;
  font-weight:800;color:#0f172a;
  padding:10px 14px;margin:12px 0 6px;
  border:1px solid #e5e7eb;border-radius:12px;background:#f9fafb;
}
.tlh-col{font-size:.9rem}
@media (max-width:900px){.topic-list-head{display:none}}

/* ======= Lista/Fila ======= */
.topic-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.topic-row{
  position:relative;
  display:grid;grid-template-columns:4fr 1fr 1fr 2fr;gap:12px;
  border:1px solid #e5e7eb;border-radius:14px;background:#fff;
  padding:12px 14px;box-shadow:0 10px 14px -12px rgba(0,0,0,.12);
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.topic-row:hover{transform:translateY(-2px);box-shadow:0 14px 20px -12px rgba(0,0,0,.18);border-color:#dfe3ea}
.topic-hit{position:absolute;inset:0;z-index:1}

/* Col: Tema */
.tr-col-topic{min-width:0}
.tr-topic-line{display:flex;align-items:center;gap:.6rem;margin-bottom:.25rem}
.tr-avatar{border-radius:999px;flex:0 0 auto}
.tr-title{font-size:1rem;font-weight:900;margin:0;color:#0f172a;display:flex;align-items:center;gap:.4rem}
.tr-badge{font-size:.72rem;border-radius:999px;padding:.18rem .5rem;background:#f3f4f6;color:#334155}
.tr-badge--sticky{background:#fef3c7;color:#92400e}
.tr-badge--closed{background:#fee2e2;color:#991b1b}
.tr-excerpt{color:#6b7280;margin:0 0 .35rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.tr-submeta{display:flex;align-items:center;gap:.45rem;color:#64748b;font-size:.88rem}
.tr-submeta .dot{width:4px;height:4px;border-radius:999px;background:#94a3b8;display:inline-block}

/* Cols: Voces / Respuestas */
.tr-col-voices,.tr-col-posts{display:flex;align-items:center;justify-content:center}
.tr-count{font-weight:800;color:#0f172a}

/* Col: Último */
.tr-lastline{display:flex;align-items:center;gap:.5rem;justify-content:flex-end}
.tr-last-avatar{border-radius:999px;flex:0 0 auto}
.tr-lastmeta{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.tr-fresh{color:#475569;font-size:.88rem}
.tr-last-by{color:#6b7280;font-size:.84rem}

/* Responsive (stack) */
@media (max-width:900px){
  .topic-row{grid-template-columns:1fr;gap:8px}
  .tr-col-voices,.tr-col-posts{justify-content:flex-start;gap:.35rem}
  .tr-lastline{justify-content:flex-start}
  .topic-row .tr-count::after{content:''}
}

/* Encabezado del foro */
.bbp-forum-hero {
  display:grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.bbp-forum-hero__media {
  margin:0;
  border-radius: 18px;
  overflow:hidden;
}
.bbp-forum-hero__media img {
  width:100%;
  height:260px;
  object-fit: cover;
  display:block;
}
.bbp-forum-hero__body .archive-title { margin: 6px 0 4px; }
.bbp-forum-hero__excerpt { color: var(--muted, #5f6677); margin: 2px 0 10px; }
.bbp-forum-hero__actions a { margin-right: 10px; }

/* Cabecera del listado */
.topics-head{
  display:flex; align-items:center; justify-content:space-between;
  margin: 10px 0 6px;
}
.topics-head__left{ display:flex; gap:8px; align-items:center; }
.topics-count{ font-weight:600; opacity:.7 }
.topics-head__right{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }

/* Lista de topics */
.topics-list{
  list-style:none; margin:0; padding:0;
  border-radius: 16px;
  overflow:hidden;
  background: #fff;
  box-shadow: 0 1px 0 rgba(20,24,35,.06);
}
.topic-item{
  display:grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(20,24,35,.07);
}
.topic-item:last-child{ border-bottom:none; }
.topic-item__title a{ color:inherit; text-decoration:none; }
.topic-item__meta{ display:flex; align-items:center; gap:6px; color:var(--muted,#6b7280); font-size:.92rem; }
.topic-item__author img{ border-radius:50%; vertical-align:middle; margin-right:6px; }
.topic-item__sep{ opacity:.5 }
.topic-item__stats{ display:flex; gap:14px; align-items:center; white-space:nowrap; }
.stat{ font-size:.92rem; color:var(--muted,#6b7280); }
.stat .dot{ width:6px; height:6px; border-radius:50%; background:currentColor; display:inline-block; margin-right:6px; opacity:.6 }

/* Pie */
.topics-foot{ display:flex; justify-content:space-between; align-items:center; margin-top:10px; }

/* Responsive */
@media (max-width: 900px){
  .topic-item{ grid-template-columns: 1fr; }
  .topic-item__stats{ justify-content:flex-start; }
}



/*FIX DISCUIONES*/

/* ===========================
   LISTA DE DEBATES (FORUM)
   =========================== */

.bbp-topics-table{
  display:block;
  margin: 8px 0 24px;
  border: 1px solid rgba(20,24,35,.08);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 20px rgba(16,24,40,.06);
}

.bbp-topics-head{
  display:flex;
  gap:12px;
  padding: 14px 16px;
  background: #f7f9fc;
  border-bottom: 1px solid rgba(20,24,35,.08);
  font-weight: 600;
  font-size: .92rem;
  color: #0f172a;
}

.bbp-topic-row{
  display:flex;
  gap:12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(20,24,35,.08);
  align-items:flex-start;
}
.bbp-topic-row:last-child{ border-bottom:none; }

.bbp-col{ display:flex; align-items:center; }
.bbp-col--topic{
  flex: 1 1 62%;
  min-width: 0;
  display:block;
}
.bbp-col--voices{ flex: 0 0 80px; justify-content:flex-end; font-variant-numeric: tabular-nums; }
.bbp-col--posts { flex: 0 0 80px; justify-content:flex-end; font-variant-numeric: tabular-nums; }
.bbp-col--freshness{
  flex: 0 0 28%;
  min-width: 220px;
  display:flex;
  flex-direction:column;
  gap:6px;
  align-items:flex-end;
  text-align:right;
}

/* Título & meta */
.bbp-topic-title{
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 0 0 6px;
  font-weight: 800;
}
.bbp-topic-title a{ color:#0f172a; text-decoration:none; }
.bbp-topic-title a:hover{ color:#0ea5e9; }

.bbp-topic-meta{
  font-size: .86rem;
  color: #425066;
}
.bbp-topic-badges{
  background: #eef6ff;
  color:#0369a1;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .72rem;
  margin-left: 8px;
}

/* Freshness */
.bbp-fresh-time{
  font-size: .86rem;
  color:#0ea5e9;
  text-decoration:none;
}
.bbp-fresh-time:hover{ text-decoration:underline; }
.bbp-fresh-author{
  font-size: .82rem;
  color:#334155;
}
.bbp-fresh-empty{ color:#64748b; }

/* Toolbars arriba/abajo */
.bbp-topics-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin: 10px 0 14px;
}
.bbp-topics-toolbar--bottom{ margin-top: 18px; }

/* Responsive: 1024↓ apilamos col freshness */
@media (max-width: 1024px){
  .bbp-col--freshness{ display:none; }
  .bbp-col--topic{ flex-basis: 70%; }
}
/* 768↓ mostramos todo en 2 columnas */
@media (max-width: 768px){
  .bbp-topics-head{ display:none; }
  .bbp-topic-row{
    flex-direction:column;
    gap:8px;
    padding: 14px;
  }
  .bbp-col--topic{ width:100%; }
  .bbp-col--voices, .bbp-col--posts{
    align-self:flex-start;
    justify-content:flex-start;
    gap:8px;
  }
  .bbp-col--voices::before,
  .bbp-col--posts::before{
    content: attr(data-label);
    font-weight:600;
    color:#425066;
    margin-right:8px;
  }
}

/* ===========================
   RESPUESTAS (SINGLE TOPIC)
   =========================== */

/* contenedor general de respuestas */
#bbpress-forums .bbp-replies{
  border: none;
  background: transparent;
  margin-top: 16px;
}
#bbpress-forums .bbp-replies .bbp-header,
#bbpress-forums .bbp-replies .bbp-footer{
  display:none;
}

/* cada reply como una card */
#bbpress-forums .bbp-replies .bbp-body .bbp-reply{
  display:grid;
  grid-template-columns: 64px 1fr;
  gap:12px;
  padding:16px;
  margin: 0 0 12px;
  border:1px solid rgba(20,24,35,.08);
  border-radius:16px;
  background:#fff;
  box-shadow: 0 6px 16px rgba(16,24,40,.06);
}

/* autor */
#bbpress-forums .bbp-reply-author{
  grid-column:1;
  text-align:center;
}
#bbpress-forums .bbp-reply-author .bbp-author-avatar img{
  width:56px;height:56px;border-radius:999px;display:block;margin:0 auto 6px;object-fit:cover;
}
#bbpress-forums .bbp-reply-author .bbp-author-name{
  font-weight:700;
  font-size:.9rem;
  color:#0f172a;
}
#bbpress-forums .bbp-reply-author .bbp-author-role{
  display:inline-block;
  margin-top:4px;
  padding:2px 8px;
  border-radius:999px;
  background:#eef6ff;
  color:#0369a1;
  font-size:.72rem;
}

/* contenido */
#bbpress-forums .bbp-reply-content{
  grid-column:2;
  font-size: .95rem;
  color:#0f172a;
  line-height:1.6;
}
#bbpress-forums .bbp-reply-content p:last-child{ margin-bottom:0; }

/* header/meta de la respuesta (fecha, enlace, acciones) */
#bbpress-forums .bbp-reply-header{
  grid-column: 2;
  order: -1;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  font-size:.8rem;
  color:#64748b;
  margin-bottom:6px;
  border: none;
  padding: 0;
  background: transparent;
}
#bbpress-forums .bbp-reply-header a{ color:#64748b; text-decoration:none; }
#bbpress-forums .bbp-reply-header a:hover{ color:#0ea5e9; }

/* acciones (editar, responder, etc.) */
#bbpress-forums .bbp-reply-content .bbp-admin-links{
  margin-top:10px;
  font-size:.78rem;
  opacity:.85;
}
#bbpress-forums .bbp-reply-content .bbp-admin-links a{
  color:#475569; text-decoration:none; margin-right:12px;
}
#bbpress-forums .bbp-reply-content .bbp-admin-links a:hover{ color:#0ea5e9; }

/* caja para el formulario de respuesta */
#bbpress-forums fieldset.bbp-form{
  border:1px solid rgba(20,24,35,.08) !important;
  background:#fff !important;
  border-radius:16px !important;
  padding:16px !important;
  box-shadow: 0 6px 16px rgba(16,24,40,.06);
}
#bbpress-forums fieldset.bbp-form legend{
  padding:0 6px; background:#fff; font-weight:800; color:#0f172a;
}

/* ===========================
   UTILIDADES & FIXES
   =========================== */

.crumbs.crumbs--bbp{ margin-bottom: 2px; }
.crumbs.crumbs--bbp a{ color:#64748b; text-decoration:none; }
.crumbs.crumbs--bbp a:hover{ color:#0ea5e9; }

#bbpress-forums .bbp-pagination{
  display:flex; justify-content:flex-end; gap:8px; margin: 10px 0;
}
#bbpress-forums .bbp-pagination .page-numbers{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:34px; height:34px; padding:0 10px;
  border-radius:10px; border:1px solid rgba(20,24,35,.08);
  background:#fff; text-decoration:none; color:#0f172a; font-weight:600;
}
#bbpress-forums .bbp-pagination .current{
  background:#0ea5e9; color:#fff; border-color:#0ea5e9;
}

/* Oculta la “tabla” vieja de bbPress por si alguna parte cuela estilos */
#bbpress-forums table{ border:none; }
#bbpress-forums th, #bbpress-forums td{ border:none; background:transparent; }

/* Pequeños resets de avatar/imagenes dentro de contenido */
#bbpress-forums .bbp-reply-content img{
  max-width:100%; height:auto; border-radius:12px;
}

/* Para que las columnas numericas no salten */
.bbp-col--voices, .bbp-col--posts{ font-feature-settings: "tnum"; }


/*SEGUNDO FIX DISCUSIONES*/

/* ---------- BOX ---------- */
#bbpress-forums ul.bbp-topics{
  border:1px solid rgba(20,24,35,.08);
  border-radius:16px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 6px 20px rgba(16,24,40,.06);
  margin:10px 0 24px;
}
/* ---------- HEADER ---------- */
#bbpress-forums ul.bbp-topics li.bbp-header{
  background:#f7f9fc;
  border-bottom:1px solid rgba(20,24,35,.08);
  padding:10px 12px;
  font-weight:700;
  color:#0f172a;
}
#bbpress-forums .bbp-topics .forum-titles{
  display:grid;
  grid-template-columns: 1fr 90px 90px minmax(220px, 260px);
  gap:12px;
  align-items:center;
}
/* ---------- ROWS ---------- */
#bbpress-forums ul.bbp-topics li.bbp-body{ padding:0; }
#bbpress-forums .bbp-topics .topic{
  display:grid;
  grid-template-columns: 1fr 90px 90px minmax(220px, 260px);
  gap:12px;
  align-items:center;
  padding:14px 12px;
  border-bottom:1px solid rgba(20,24,35,.08);
}
#bbpress-forums .bbp-topics .topic:last-child{ border-bottom:none; }
#bbpress-forums .bbp-topics .topic:hover{ background:#fafcff; }

/* título */
#bbpress-forums .bbp-topics .topic .bbp-topic-title{
  font-size:1.05rem; font-weight:800; line-height:1.3; margin:0;
}
#bbpress-forums .bbp-topics .topic .bbp-topic-title a{
  color:#0f172a; text-decoration:none;
}
#bbpress-forums .bbp-topics .topic .bbp-topic-title a:hover{ color:#0ea5e9; }

/* números */
#bbpress-forums .bbp-topic-voice-count,
#bbpress-forums .bbp-topic-reply-count{
  justify-self:end; font-variant-numeric:tabular-nums; color:#0f172a;
}

/* freshness (tiempo + autor) */
#bbpress-forums .bbp-topic-freshness{
  justify-self:end; text-align:right; color:#475569; font-size:.9rem;
}
#bbpress-forums .bbp-topic-freshness a{ color:#0ea5e9; text-decoration:none; }
#bbpress-forums .bbp-topic-freshness a:hover{ text-decoration:underline; }
#bbpress-forums .bbp-topic-freshness .bbp-topic-freshness-author{
  display:block; font-size:.82rem; color:#334155; margin-top:2px;
}

/* ---------- responsive ---------- */
@media (max-width: 1024px){
  #bbpress-forums .bbp-topics .forum-titles,
  #bbpress-forums .bbp-topics .topic{
    grid-template-columns: 1fr 80px 80px;
  }
  #bbpress-forums .bbp-topic-freshness{ display:none; }
}
@media (max-width: 768px){
  #bbpress-forums ul.bbp-topics li.bbp-header{ display:none; }
  #bbpress-forums .bbp-topics .topic{
    grid-template-columns: 1fr;
    gap:6px;
  }
  #bbpress-forums .bbp-topic-voice-count,
  #bbpress-forums .bbp-topic-reply-count{
    justify-self:start;
    color:#475569; font-size:.9rem;
  }
  #bbpress-forums .bbp-topic-voice-count::before{
    content:"Voces: "; font-weight:700; color:#334155;
  }
  #bbpress-forums .bbp-topic-reply-count::before{
    content:"Posts: "; font-weight:700; color:#334155; margin-right:4px;
  }
}

/* contenedor */
#bbpress-forums ul.bbp-replies{
  background:transparent; border:none; margin-top:14px;
}
#bbpress-forums ul.bbp-replies li.bbp-header,
#bbpress-forums ul.bbp-replies li.bbp-footer{ display:none; }

/* reply como tarjeta */
#bbpress-forums ul.bbp-replies li.bbp-body .bbp-reply{
  display:grid;
  grid-template-columns: 64px 1fr;
  gap:12px;
  padding:16px;
  margin:0 0 12px;
  border:1px solid rgba(20,24,35,.08);
  border-radius:16px;
  background:#fff;
  box-shadow:0 6px 16px rgba(16,24,40,.06);
}

/* autor */
#bbpress-forums .bbp-reply-author{ grid-column:1; text-align:center; }
#bbpress-forums .bbp-reply-author img.avatar{
  width:56px; height:56px; border-radius:999px; object-fit:cover; margin:0 auto 6px;
}
#bbpress-forums .bbp-reply-author .bbp-author-name{
  font-weight:700; font-size:.9rem; color:#0f172a;
}
#bbpress-forums .bbp-reply-author .bbp-author-role{
  display:inline-block; margin-top:4px; padding:2px 8px; border-radius:999px;
  background:#eef6ff; color:#0369a1; font-size:.72rem;
}

/* header/meta (fecha + permalinks/acciones) */
#bbpress-forums .bbp-reply-header{
  grid-column:2; order:-1;
  display:flex; justify-content:space-between; align-items:center;
  gap:8px; margin:0 0 6px; padding:0; border:none; background:transparent;
  font-size:.82rem; color:#64748b;
}
#bbpress-forums .bbp-reply-header a{ color:#64748b; text-decoration:none; }
#bbpress-forums .bbp-reply-header a:hover{ color:#0ea5e9; }

/* contenido */
#bbpress-forums .bbp-reply-content{ grid-column:2; font-size:.96rem; color:#0f172a; line-height:1.6; }
#bbpress-forums .bbp-reply-content img{ max-width:100%; height:auto; border-radius:12px; }

/* admin links */
#bbpress-forums .bbp-reply-content .bbp-admin-links{
  margin-top:8px; font-size:.78rem; opacity:.9;
}
#bbpress-forums .bbp-reply-content .bbp-admin-links a{
  color:#475569; margin-right:12px; text-decoration:none;
}
#bbpress-forums .bbp-reply-content .bbp-admin-links a:hover{ color:#0ea5e9; }

/* formulario de respuesta */
#bbpress-forums fieldset.bbp-form{
  border:1px solid rgba(20,24,35,.08)!important;
  background:#fff!important;
  border-radius:16px!important;
  padding:16px!important;
  box-shadow:0 6px 16px rgba(16,24,40,.06);
}
#bbpress-forums fieldset.bbp-form legend{
  padding:0 6px; background:#fff; font-weight:800; color:#0f172a;
}

/* responsive replies */
@media (max-width: 640px){
  #bbpress-forums ul.bbp-replies li.bbp-body .bbp-reply{
    grid-template-columns: 48px 1fr;
    padding:14px;
  }
  #bbpress-forums .bbp-reply-author img.avatar{ width:48px; height:48px; }
}


/* breadcrumb bbPress integrado al tuyo */
.crumbs.crumbs--bbp{ margin-bottom:8px; }
.crumbs.crumbs--bbp a{ color:#64748b; text-decoration:none; }
.crumbs.crumbs--bbp a:hover{ color:#0ea5e9; }

/* paginación */
#bbpress-forums .bbp-pagination{
  display:flex; justify-content:flex-end; gap:8px; margin:10px 0 18px;
}
#bbpress-forums .bbp-pagination .page-numbers{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:34px; height:34px; padding:0 10px;
  border-radius:10px; border:1px solid rgba(20,24,35,.08);
  background:#fff; text-decoration:none; color:#0f172a; font-weight:600;
}
#bbpress-forums .bbp-pagination .current{
  background:#0ea5e9; color:#fff; border-color:#0ea5e9;
}

/* evita bordes/colores de la “tabla” legacy */
#bbpress-forums table, #bbpress-forums th, #bbpress-forums td{ border:none; background:transparent; }


/* ==== SINGLE FORUM (lista de temas) ==== */

/* Contenedor del tema */
.bbp-single-forum .forums-row{
  display:grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
}
@media (max-width: 1024px){
  .bbp-single-forum .forums-row{ grid-template-columns: 1fr; }
}

/* Toolbar */
.topics-toolbar{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; margin: 8px 0 18px;
}
.topics-toolbar .bbp-search-form{ margin:0; }
.bbp-btn{ display:inline-flex; align-items:center; gap:8px; padding:.6rem .9rem; border-radius:12px; border:1px solid var(--tone-200,#e7e7ea); background:#fff; }
.bbp-btn--primary{ background:var(--brand-500,#2b6bf3); color:#fff; border-color:transparent; }

/* Header tabla */
.bbp-topics-head{
  display:grid; grid-template-columns: 1fr 110px 110px 220px;
  border:1px solid var(--tone-200,#e7e7ea); border-radius:16px; padding:.75rem 1rem; background:#fff;
  font-weight:600; color:#5b6270; margin-bottom:10px;
}
@media (max-width:900px){
  .bbp-topics-head{ display:none; }
}

/* Body lista */
.bbp-topics-body{ background:#fff; border:1px solid var(--tone-200,#e7e7ea); border-radius:18px; overflow:hidden; }
.bbp-topic-item{
  display:grid; grid-template-columns: 1fr 110px 110px 220px; gap:0;
  padding:1rem; border-top:1px solid var(--tone-100,#f1f2f6);
}
.bbp-topics-body .bbp-topic-item:first-child{ border-top:0; }
@media (max-width:900px){
  .bbp-topic-item{ grid-template-columns: 1fr; gap:6px; }
}

/* Columnas */
.bbp-col{ display:flex; align-items:center; gap:10px; }
.bbp-col--topic{ align-items:flex-start; flex-direction:column; }
.bbp-topic-title{ font-size:1rem; line-height:1.3; margin:0 0 4px; }
.bbp-topic-title a{ color:#0b1220; text-decoration:none; }
.bbp-topic-title a:hover{ text-decoration:underline; }

.bbp-badge{
  display:inline-block; font-size:.725rem; padding:.22rem .5rem; border-radius:999px;
  background:#eef1ff; color:#2b6bf3; margin-left:.35rem;
}
.bbp-badge--closed{ background:#ffecec; color:#cc3131; }

.bbp-topic-meta{ font-size:.85rem; color:#6a7382; display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.bbp-topic-meta .avatar{ border-radius:999px; }

.bbp-col--voices, .bbp-col--posts{ justify-content:center; color:#343a46; font-weight:600; }
.bbp-col--freshness{ flex-direction:column; align-items:flex-end; text-align:right; }
@media (max-width:900px){ .bbp-col--freshness{ align-items:flex-start; text-align:left; } }

.bbp-fresh-link{ color:#2b6bf3; text-decoration:none; }
.bbp-fresh-link:hover{ text-decoration:underline; }
.bbp-last-by{ font-size:.8rem; color:#6a7382; }
.bbp-empty{ color:#9aa1ad; }

/* Subforos y vacíos */
.bbp-subforums{ margin-bottom:16px; }
.bbp-empty{ padding:1rem 1.25rem; background:#fff; border:1px dashed var(--tone-200,#e7e7ea); border-radius:12px; }

/* Sidebar sticky */
.forums-sidebar .sticky-widget{
  position:sticky; top:var(--sticky-top, 82px);
}

/* ===== Corrección: ocultar banner/miniatura del tema en bbPress ===== */
body.bbp-page .post-thumbnail,
body.bbp-page .entry-thumb,
body.bbp-page .entry-media,
body.single-forum .post-thumbnail,
body.single-topic .post-thumbnail { display:none !important; }


/*TERCER FIX DISCUSIONES*/

/* ===== Single Forum (lista de topics) ===== */
.inspenet-forum--single {
  --gap: 24px;
  --card-radius: 16px;
  --surface: #fff;
}

.inspenet-forum--single .forum-head {
  max-width: min(1180px, 96vw);
  margin: 0 auto 16px;
  padding: 0 var(--gap);
}

.inspenet-forum--single .forum-title {
  font-size: clamp(28px, 2.4vw, 36px);
  line-height: 1.15;
  margin: 4px 0 8px;
  font-weight: 800;
}

.inspenet-forum--single .forum-desc {
  color: var(--muted, #5f6570);
  font-size: 15px;
}

/* Layout 2 columnas (contenido + sidebar) */
.inspenet-forum--single .forum-row {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--gap);
  max-width: min(1180px, 96vw);
  margin: 0 auto 48px;
  padding: 0 var(--gap);
}
@media (max-width: 1024px){
  .inspenet-forum--single .forum-row { grid-template-columns: 1fr; }
}

/* Sidebar sticky */
.inspenet-forum--single .forum-sidebar .forum-sticky {
  position: sticky;
  top: var(--sticky-top, 72px);
}

/* Caja del loop (tabla/lista nativa de bbPress) */
#bbpress-forums {
  background: transparent;
  border: none;
  padding: 0;
}

#bbpress-forums .bbp-search-form {
  margin: 12px 0 16px;
}

#bbpress-forums ul.bbp-topics {
  border: none;
  background: var(--surface);
  border-radius: var(--card-radius);
  box-shadow: 0 6px 18px rgba(16,24,40,.06);
  overflow: hidden;
}

/* Header de columnas */
#bbpress-forums li.bbp-header {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 100px 100px 240px;
  gap: 12px;
  padding: 14px 18px;
  font-weight: 700;
  color: #111827;
  background: #f5f7fb;
  border: none;
}
@media (max-width: 720px){
  #bbpress-forums li.bbp-header {
    grid-template-columns: 1fr 90px 90px;
  }
  #bbpress-forums li.bbp-header .bbp-topic-freshness { display: none; }
}

/* Filas */
#bbpress-forums li.bbp-body ul.forum,
#bbpress-forums li.bbp-body ul.topic {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 100px 100px 240px;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-top: 1px solid #eef0f4;
  background: #fff;
}
#bbpress-forums li.bbp-body ul.topic:hover {
  background: #fafcff;
}
@media (max-width: 720px){
  #bbpress-forums li.bbp-body ul.forum,
  #bbpress-forums li.bbp-body ul.topic {
    grid-template-columns: 1fr 90px 90px;
  }
  #bbpress-forums li.bbp-body .bbp-topic-freshness { display: none; }
}

/* Columna 1: Título/autor */
#bbpress-forums .bbp-topic-title {
  display: grid;
  gap: 6px;
}
#bbpress-forums .bbp-topic-permalink {
  font-weight: 800;
  color: #0f172a;
}
#bbpress-forums .bbp-topic-started-by,
#bbpress-forums .bbp-topic-meta {
  font-size: 12px;
  color: #687082;
}

/* Columnas numéricas */
#bbpress-forums .bbp-topic-voice-count,
#bbpress-forums .bbp-topic-reply-count {
  text-align: center;
  font-weight: 700;
  color: #0f172a;
}

/* Columna “Último” */
#bbpress-forums .bbp-topic-freshness {
  text-align: right;
  color: #606b85;
  font-size: 13px;
}
@media (max-width: 720px){
  #bbpress-forums .bbp-topic-voice-count,
  #bbpress-forums .bbp-topic-reply-count { text-align: right; }
}

/* Paginación */
#bbpress-forums .bbp-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 0;
}
#bbpress-forums .bbp-pagination .page-numbers {
  display: inline-flex; align-items:center; justify-content:center;
  min-width: 36px; height: 36px; padding: 0 8px;
  border-radius: 10px; background: #fff;
  border: 1px solid #e5e7eb; color: #0f172a; font-weight: 700;
}
#bbpress-forums .bbp-pagination .page-numbers.current {
  background: #141e46; color: #fff; border-color: #141e46;
}

/* Breadcrumb coherente con resto del sitio */
.crumbs.crumbs--bbp {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 13px; color: #6b7280; margin-bottom: 10px;
}
.crumbs.crumbs--bbp a { color: #374151; font-weight: 600; }
.crumbs.crumbs--bbp .bbp-breadcrumb-sep { opacity: .5; margin: 0 4px; }


/*4TO FIX DISCUSIONES*/

/* ====== HERO full width ====== */
.bbp-hero{
  /* truco full-bleed */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  min-height: clamp(260px, 36vw, 420px);
  background-image: var(--hero);
  background-size: cover;
  background-position: center;
  position: relative;
  display: grid;
  align-items: end;
  isolation: isolate;
}
.bbp-hero::before{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.55) 75%);
  z-index:0;
}
.bbp-hero__inner{
  width: min(1180px, 92%);
  margin: 0 auto 28px;
  color: #fff;
  position: relative;
  z-index: 1;
}
.bbp-hero__title{
  font-weight: 800;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.05;
  margin: 0 0 6px;
  letter-spacing: .2px;
}
.bbp-hero__desc{
  margin: 0;
  font-size: clamp(14px, 1.5vw, 16px);
  opacity: .95;
  max-width: 68ch;
}

/* ====== Contenedor general + fondo contraste ====== */
.bbp-single-forum .archive-wrap{
  width: min(1180px, 92%);
  margin: 24px auto 56px;
}
.bbp-single-forum .forums-row{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}
@media (max-width: 1024px){
  .bbp-single-forum .forums-row{ grid-template-columns: 1fr; }
}

/* Área principal con fondo gris suave */
.bbp-single-forum .forums-main{
  background: #f6f8fb;
  border-radius: 18px;
  padding: 18px;
}

/* ====== Breadcrumb + título interno (por si no hay hero) ====== */
.bbp-single-forum .archive-head{
  margin: 0 0 16px;
}
.bbp-single-forum .crumbs--bbp{
  margin-bottom: 10px;
}
.bbp-single-forum .archive-title{
  margin: 0 0 4px;
}

/* ====== Toolbar (buscar + botón nuevo tema) ====== */
.topics-toolbar{
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
  padding: 12px 14px; background:#fff; border-radius: 12px; margin-bottom: 14px;
  box-shadow: 0 1px 0 rgba(16,24,40,.06);
}
.topics-toolbar__left form{ margin:0; }
.bbp-btn{
  display:inline-flex; align-items:center; gap:8px; border-radius: 999px;
  padding: 10px 16px; font-weight: 700; line-height: 1;
  background: var(--accent, #355cff); color:#fff; border:0; text-decoration:none;
}
.bbp-btn:hover{ filter: brightness(.95); }

/* ====== Sidebar sticky ====== */
.forums-sidebar .sticky-widget{
  position: sticky;
  top: var(--sticky-top, 72px);
  display: grid; gap: 16px;
}
.forums-sidebar .widget, .forums-sidebar .bbp-widget{
  background:#fff; border-radius: 18px; padding: 16px 16px;
  box-shadow: 0 1px 0 rgba(16,24,40,.06);
}

/* ====== Lista de temas (bbPress default loop) ====== */
.bbp-topics-list{ margin-top: 12px; }

/* Cabecera (Topic / Voices / Posts / Last Post) */
.bbp-topics .bbp-header, 
.bbp-topics ul.forum-titles{
  background: transparent;
  border: 0;
}
.bbp-topics .bbp-header li, 
.bbp-topics ul.forum-titles li{
  color: #64748b; font-weight:700; text-transform:none; padding: 0 8px 8px 8px;
  font-size: 13px;
}

/* Cada fila de tema como “card” blanca con grid */
.bbp-topics .bbp-body li{
  background:#fff;
  border-radius: 14px;
  margin-bottom: 10px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 84px 84px minmax(220px, 28%);
  gap: 12px;
  align-items: center;
  box-shadow: 0 1px 0 rgba(16,24,40,.06);
}
@media (max-width: 900px){
  .bbp-topics .bbp-body li{
    grid-template-columns: 1fr 70px 70px;
  }
  .bbp-topics .bbp-body li .bbp-topic-freshness{ grid-column: 1 / -1; }
}

/* Columna título + metadatos */
.bbp-topic-title .bbp-topic-permalink{
  font-weight: 800; color: #0f172a; text-decoration:none;
}
.bbp-topic-title .bbp-topic-permalink:hover{ color: var(--accent, #355cff); }
.bbp-topic-title .bbp-topic-meta{
  display:flex; flex-wrap:wrap; gap:10px; margin-top: 4px; font-size: 12.5px; color:#64748b;
}

/* Contadores */
.bbp-topic-voice-count, .bbp-topic-reply-count{
  text-align:center; font-weight:800; color:#0f172a;
}
.bbp-topic-voice-count::after, .bbp-topic-reply-count::after{
  content: attr(data-label);
  display:block; font-size:11px; font-weight:700; letter-spacing:.2px; color:#64748b;
}

/* Freshness */
.bbp-topic-freshness{
  justify-self:end; text-align:right; color:#0f172a;
}
.bbp-topic-freshness a{ color: var(--accent, #355cff); text-decoration:none; }
.bbp-topic-freshness .bbp-topic-freshness-author{
  display:flex; align-items:center; gap:8px; justify-content:flex-end; margin-top: 2px;
}
.bbp-topic-freshness .avatar{ border-radius:50%; }

/* Vacío */
.bbp-empty{
  background:#fff; border-radius:14px; padding: 28px; text-align:center; color:#64748b;
}

/* ====== Paginación ====== */
.bbp-pagination{ margin-top: 18px; }
.bbp-pagination .bbp-pagination-links{
  display:flex; gap:8px; align-items:center;
}
.bbp-pagination .bbp-pagination-links a,
.bbp-pagination .bbp-pagination-links span{
  min-width:38px; height:38px; display:inline-flex; align-items:center; justify-content:center;
  border-radius: 10px; text-decoration:none; font-weight:800; 
  background:#fff; color:#0f172a; border:1px solid #e5e7eb;
}
.bbp-pagination .bbp-pagination-links span.current{
  background: var(--accent, #355cff); color:#fff; border-color: transparent;
}

/* ====== Breadcrumb: alineado al estilo del sitio ====== */
.crumbs--bbp{
  font-size:13px; color:#64748b;
}
.crumbs--bbp a{ color: var(--accent, #355cff); text-decoration:none; }
.crumbs--bbp .bbp-breadcrumb-sep{ margin: 0 6px; opacity:.6; }


/*QUINTO FIX DISCUSIONES*/

/* ====== CONTENEDOR / GRID ====== */
.bbp-container{max-width:var(--wrap,1200px);margin-inline:auto;padding-inline:20px}
.bbp-section{background:var(--surface, #f7f8fb);padding:28px 0}
.bbp-grid{display:grid;grid-template-columns:1fr 320px;gap:24px}
@media (max-width: 1024px){
  .bbp-grid{grid-template-columns:1fr}
}

/* ====== HERO ====== */
.bbp-hero{position:relative;min-height:340px;background-size:cover;background-position:center center}
.bbp-hero__shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.35),rgba(0,0,0,.55))}
.bbp-hero .bbp-container{position:relative;z-index:1;padding-top:56px;padding-bottom:56px}
.bbp-hero__title{color:#fff;font-weight:800;font-size:clamp(28px,3.2vw,42px);margin:16px 0 8px}
.bbp-hero__intro{color:#fff;opacity:.95;max-width:900px}

/* Migas sobre oscuro */
.crumbs--bbp{--crumb-fg:#fff;--crumb-sep:rgba(255,255,255,.65)}
.crumbs--bbp a{color:var(--crumb-fg)}
.crumbs--bbp .bbp-breadcrumb-sep{color:var(--crumb-sep)}

/* ====== MAIN / SIDEBAR ====== */
.bbp-main{min-width:0}
.bbp-sidebar .bbp-sticky{position:sticky;top:var(--sticky-top,88px)}
.bbp-sidebar .widget{background:#fff;border:1px solid rgba(10,12,15,.08);border-radius:var(--radius-2xl,16px);padding:18px;margin-bottom:18px;box-shadow:0 8px 24px rgba(2,22,58,.05)}

/* ====== TOOLBAR ====== */
.topics-toolbar{display:flex;gap:16px;align-items:center;justify-content:space-between;margin:18px 0}
.topics-toolbar form{display:flex;gap:8px}
.topics-toolbar input[type="text"]{height:40px;padding:0 12px;border:1px solid rgba(10,12,15,.12);border-radius:10px;background:#fff}
.topics-toolbar input[type="submit"]{height:40px;padding:0 14px;border-radius:10px;border:none;background:var(--brand, #1a73e8);color:#fff;cursor:pointer}
.bbp-btn{display:inline-flex;align-items:center;gap:8px;border-radius:10px;padding:10px 14px;font-weight:600}
.bbp-btn--primary{background:var(--brand,#1a73e8);color:#fff}

/* ====== LISTA DE TEMAS ====== */
.bbp-topics-box{background:#fff;border:1px solid rgba(10,12,15,.08);border-radius:var(--radius-2xl,16px);overflow:hidden;box-shadow:0 10px 25px rgba(2,22,58,.06)}
.bbp-topic-head{display:grid;grid-template-columns:minmax(0,1fr) 110px 100px 240px;gap:12px;padding:12px 16px;font-weight:700;color:var(--muted,#4d5a67);border-bottom:1px solid rgba(10,12,15,.08);background:linear-gradient(0deg,#fff,rgba(255,255,255,.6))}
.bbp-topic-list{list-style:none;margin:0;padding:0}
.bbp-topic-row{display:grid;grid-template-columns:minmax(0,1fr) 110px 100px 240px;gap:12px;padding:14px 16px;border-bottom:1px solid rgba(10,12,15,.06)}
.bbp-topic-row:last-child{border-bottom:none}
.td--topic{min-width:0}
.td-topic__title{font-weight:700;line-height:1.25}
.td-topic__title .bbp-topic-link{color:var(--ink,#111827);text-decoration:none}
.td-topic__title .bbp-topic-link:hover{text-decoration:underline}
.td-topic__meta{font-size:.875rem;color:var(--muted,#6b7280);margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Celdas numéricas */
.td--voices,.td--posts,.td--fresh{display:flex;align-items:center;font-weight:600;color:var(--ink,#111827)}
.td--fresh a{color:var(--brand,#1a73e8);text-decoration:none}
.td--fresh a:hover{text-decoration:underline}

/* Responsive cols */
@media (max-width: 900px){
  .bbp-topic-head{grid-template-columns:minmax(0,1fr) 80px 80px 160px}
  .bbp-topic-row{grid-template-columns:minmax(0,1fr) 80px 80px 160px}
}
@media (max-width: 680px){
  .bbp-topic-head{display:none}
  .bbp-topic-row{grid-template-columns:minmax(0,1fr);gap:6px}
  .td--voices,.td--posts,.td--fresh{justify-content:flex-start;gap:8px}
  .td--voices::before{content:"Voices: ";font-weight:700;color:var(--muted,#6b7280)}
  .td--posts::before{content:"Posts: ";font-weight:700;color:var(--muted,#6b7280)}
  .td--fresh::before{content:"Last: ";font-weight:700;color:var(--muted,#6b7280)}
}

/* Vacío / alertas */
.bbp-empty,.bbp-alert{background:#fff;border:1px dashed rgba(10,12,15,.2);border-radius:12px;padding:24px;margin:16px 0}
.bbp-alert--muted{background:#fff8e1;border-color:#f6c244}

/* ====== PAGINACIÓN bbPress ====== */
.bbp-pagination{display:flex;justify-content:center;gap:8px;padding:16px}
.bbp-pagination .page-numbers{display:inline-flex;min-width:36px;height:36px;align-items:center;justify-content:center;border-radius:10px;border:1px solid rgba(10,12,15,.12);background:#fff;text-decoration:none;color:var(--ink,#111827)}
.bbp-pagination .page-numbers.current{background:var(--brand,#1a73e8);border-color:transparent;color:#fff}
.bbp-pagination .page-numbers:hover{border-color:var(--brand,#1a73e8)}



/*CSS PARA RESPUESTAS (TOPICS)*/

/* ===== Topic + Replies ===== */
.topic-wrap { --gap: 24px; }
.topic-head {
  display:grid; grid-template-columns: 1fr auto; gap:16px;
  align-items: center; margin: 8px 0 20px;
}
.topic-head__right { display:flex; gap:10px; flex-wrap: wrap; justify-content: flex-end; }
.topic-title { font-size: clamp(22px,2.4vw,28px); line-height:1.25; margin:0 0 6px; }
.topic-meta { display:flex; gap:8px; align-items:center; color:var(--muted, #6b7280); font-size:14px; }

.reply-list { display:flex; flex-direction: column; gap:14px; }
.reply-item {
  display:grid; grid-template-columns: 56px 1fr; gap:14px;
  background:#fff; border:1px solid rgba(17,24,39,.08);
  border-radius: 14px; padding:16px; box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.reply-item--op { border-color: rgba(59,130,246,.35); box-shadow: 0 2px 8px rgba(59,130,246,.08); }
.reply-avatar .avatar { width:56px; height:56px; border-radius:50%; display:block; }

.reply-header { display:flex; flex-wrap:wrap; align-items: baseline; gap:10px; }
.reply-author { font-weight:600; }
.badge-op {
  background:rgba(59,130,246,.1); color:#2563eb; border-radius:999px;
  padding:2px 8px; font-size:12px; font-weight:600;
}
.reply-meta { color:var(--muted, #6b7280); font-size:13px; }
.reply-meta .dot { opacity:.6; margin:0 6px; }
.reply-permalink { color:inherit; text-decoration:none; }
.reply-permalink:hover { text-decoration:underline; }

.reply-content { margin-top:6px; font-size:15px; line-height:1.65; }
.reply-content p { margin: 0 0 .9em; }
.reply-content blockquote {
  margin:.8em 0; padding:.6em .8em; border-left:3px solid #3b82f6;
  background: #f8fafc; border-radius: 6px;
}
.reply-actions {
  display:flex; justify-content: space-between; align-items: center;
  margin-top:10px; gap:10px; font-size:14px; color:#6b7280;
  border-top:1px dashed rgba(17,24,39,.08); padding-top:10px;
}
.bbp-btn, .bbp-link, .topic-head .bbp-btn { 
  display:inline-flex; align-items:center; gap:8px; padding:8px 12px;
  border-radius:10px; border:1px solid rgba(17,24,39,.12); background:#fff;
  text-decoration:none; font-weight:600; font-size:14px;
}
.bbp-btn--primary { background:#2563eb; color:#fff; border-color:#2563eb; }
.bbp-btn--primary:hover { filter: brightness(.98); }
.bbp-link { padding:0; border:none; background:transparent; color:#2563eb; }
.bbp-link:hover { text-decoration: underline; }

.topic-reply-form {
  margin-top: 22px; background:#fff; border:1px solid rgba(17,24,39,.08);
  border-radius:14px; padding:16px;
}

/* Sidebar sticky */
.forums-sidebar .sticky-widget { position: sticky; top: var(--sticky-top, 72px); }

/* Paginación bbPress */
.bbp-pagination { display:flex; justify-content: flex-end; margin:16px 0; }
.bbp-pagination .page-numbers, .bbp-pagination .bbp-pagination-links a, .bbp-pagination .bbp-pagination-links span {
  display:inline-flex; align-items:center; justify-content:center;
  min-width:36px; height:36px; padding:0 10px; margin-left:6px;
  border-radius:10px; border:1px solid rgba(17,24,39,.12); background:#fff;
  text-decoration:none;
}
.bbp-pagination .current { background:#2563eb; color:#fff; border-color:#2563eb; }

/* Responsive */
@media (max-width: 920px){
  .topic-head { grid-template-columns: 1fr; }
  .reply-item { grid-template-columns: 40px 1fr; }
  .reply-avatar .avatar { width:40px; height:40px; }
}


/*PRIMER FIX TOPICS*/

/* ======= TOPIC (replies) ======= */
.topic-wrap { --card-radius: 14px; --card-bg: #fff; --muted:#6b7280; --soft:#f4f5f7; }
.topic-head { margin-bottom: 18px; }
.topic-title {
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.2; margin: 4px 0 8px; font-weight: 800;
}
.topic-meta { display:flex; flex-wrap:wrap; gap:10px; align-items:center; color:var(--muted); font-size:14px; }
.topic-meta .tmeta__sep { opacity:.6 }
.topic-meta .tmeta__btn a,
.topic-meta .tmeta__btn span a {
  display:inline-block; padding:6px 10px; border-radius:20px; background:var(--soft);
  text-decoration:none; font-weight:600; font-size:13px; transition:transform .15s ease, background .15s ease;
}
.topic-meta .tmeta__btn a:hover { transform:translateY(-1px); background:#e9eaee; }

/* Contenedor replies */
.bbp-replies-section { background:var(--card-bg); border-radius:var(--card-radius); box-shadow: 0 6px 22px rgba(16,24,40,.06); overflow:hidden; }

/* Cabecera de la tabla (oculta la palabra “Posts” si estorba en mobile) */
#bbpress-forums .bbp-replies .bbp-header,
#bbpress-forums ul.bbp-replies .bbp-header { background:#fff; }
#bbpress-forums .bbp-replies .bbp-header .bbp-reply-author,
#bbpress-forums .bbp-replies .bbp-header .bbp-reply-content { padding:12px 18px; }

/* Fila de respuesta */
#bbpress-forums li.bbp-body div.bbp-reply-header { display:none; } /* ocultamos mini header por defecto */
#bbpress-forums li.bbp-body { background:#fff; }
#bbpress-forums li.bbp-body .bbp-reply-author,
#bbpress-forums li.bbp-body .bbp-reply-content {
  padding:18px; border-top:1px solid #eef0f3;
}

/* Columna autor */
#bbpress-forums .bbp-reply-author { width:210px; max-width:210px; vertical-align:top; }
#bbpress-forums .bbp-reply-author .bbp-author-avatar img { width:48px; height:48px; border-radius:50%; }
#bbpress-forums .bbp-reply-author .bbp-author-name { display:block; font-weight:700; margin-top:8px; }
#bbpress-forums .bbp-reply-author .bbp-author-role { color:var(--muted); font-size:12px; }

/* Columna contenido */
#bbpress-forums .bbp-reply-content { position:relative; }
#bbpress-forums .bbp-reply-content .bbp-reply-post-date {
  display:block; color:var(--muted); font-size:12px; margin-bottom:6px;
}

/* Cuerpo del texto */
#bbpress-forums .bbp-reply-content p { margin: 0 0 12px; }
#bbpress-forums .bbp-reply-content ul, 
#bbpress-forums .bbp-reply-content ol { margin: 0 0 12px 20px; }

/* Acciones (responder, citar…) */
#bbpress-forums .bbp-reply-content .bbp-admin-links,
#bbpress-forums .bbp-reply-content .bbp-reply-actions {
  position:relative; margin-top:8px; display:flex; gap:8px; flex-wrap:wrap;
}
#bbpress-forums .bbp-reply-content .bbp-admin-links a,
#bbpress-forums .bbp-reply-content .bbp-reply-actions a {
  background:var(--soft); border-radius:18px; padding:6px 10px; text-decoration:none; font-size:12px; font-weight:600;
}
#bbpress-forums .bbp-reply-content .bbp-reply-actions a:hover,
#bbpress-forums .bbp-reply-content .bbp-admin-links a:hover { background:#e9eaee; }

/* Paginación */
#bbpress-forums .bbp-pagination { background:#fff; border-top:1px solid #eef0f3; padding:14px 18px; }
#bbpress-forums .bbp-pagination-links a, 
#bbpress-forums .bbp-pagination-links span.current {
  display:inline-block; min-width:34px; text-align:center; padding:6px 10px; margin-right:6px; border-radius:10px;
  background:var(--soft); font-weight:600; text-decoration:none;
}
#bbpress-forums .bbp-pagination-links span.current { background:#111827; color:#fff; }

/* Formulario de respuesta */
.bbp-reply-form-wrap { margin-top:18px; background:#fff; border-radius:var(--card-radius); box-shadow: 0 6px 22px rgba(16,24,40,.06); padding:16px; }
.bbp-reply-form-wrap .bbp-form legend { font-weight:800; font-size:18px; margin-bottom:8px; }
.bbp-reply-form-wrap .bbp-form textarea { border-radius:12px; }
.bbp-reply-form-wrap .bbp-submit-wrapper button,
.bbp-reply-form-wrap .bbp-submit-wrapper .button {
  border-radius:10px; padding:10px 14px; font-weight:700;
}

/* Responsive */
@media (max-width: 1024px){
  #bbpress-forums .bbp-reply-author { width:160px; max-width:160px; }
}
@media (max-width: 768px){
  /* Autor arriba, contenido abajo (stack) */
  #bbpress-forums .bbp-replies .bbp-body > ul,
  #bbpress-forums .bbp-replies .bbp-body > li { display:block; }
  #bbpress-forums .bbp-reply-author,
  #bbpress-forums .bbp-reply-content { width:100%; max-width:100%; }
  #bbpress-forums .bbp-reply-author { border-bottom:1px dashed #eef0f3; display:flex; gap:12px; align-items:center; }
  #bbpress-forums .bbp-reply-author .bbp-author-name { margin-top:0; }
}



/*SEGUNDO FIX TOPICS*/

/* ======== TOPIC HEAD (evitar grids heredados y organizar) ======== */
.topic-head {
  display: block;               /* mata grids heredados */
  margin-bottom: 18px;
}
.topic-head * {
  grid-column: auto !important; /* por si algún utilitario mete grid-column */
}
.topic-head .crumbs { margin-bottom: 8px; }

.topic-head__row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;              /* si el título es largo, todo fluye */
}
.topic-title {
  flex: 1 1 auto;
  margin: 0;
  line-height: 1.15;
  font-weight: 800;
  font-size: clamp(22px, 2.2vw, 30px);
  word-break: break-word;       /* títulos largos no solapan */
}
.topic-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 0 0 auto;
}
.tmeta__btn a,
.topic-actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--line, #e6e6ea);
  background: #fff;
  transition: .2s;
}
.tmeta__btn a:hover,
.topic-actions a:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
}

/* meta abajo del título */
.topic-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  color: var(--muted, #6b7280);
  font-size: 14px;
}
.topic-meta .tmeta__sep { opacity:.5; }

/* ======== LAYOUT GENERAL (ancho & columnas) ======== */
.archive-wrap {
  max-width: 1140px;    /* ajusta a tu contenedor global */
  margin: 0 auto;
  padding: 0 16px;
}
.forums-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 320px; /* main + sidebar */
  gap: 24px;
}
@media (max-width: 1024px){
  .forums-row { grid-template-columns: 1fr; }
}

/* ======== REPLIES (tarjetas modernas) ======== */
#bbpress-forums .bbp-replies,
.bbp-replies-section .bbp-replies {
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* header de la tabla de replies (opcional, lo hacemos minimal) */
#bbpress-forums li.bbp-header,
#bbpress-forums li.bbp-footer {
  background: transparent;
  border: 0;
  padding: 0;
  height: 0;
  overflow: hidden;
}

/* cada reply como tarjeta */
#bbpress-forums li.bbp-body .bbp-reply {
  list-style: none;
  background: #fff;
  border: 1px solid var(--line, #ebecef);
  border-radius: 14px;
  box-shadow: 0 4px 22px rgba(0,0,0,.04);
  padding: 16px;
  margin: 14px 0;
}

/* header del reply (autor + fecha) */
#bbpress-forums .bbp-reply-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  padding: 0 0 6px 0;
  margin: 0 0 10px 0;
  border-bottom: 1px dashed var(--line, #eceff3);
}
#bbpress-forums .bbp-reply-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
#bbpress-forums .bbp-reply-author .bbp-author-avatar img {
  width: 40px; height: 40px;
  border-radius: 50%;
}
#bbpress-forums .bbp-reply-author .bbp-author-name {
  font-weight: 700;
  color: var(--head, #0f172a);
}
#bbpress-forums .bbp-reply-post-date {
  margin-left: auto;
  color: var(--muted, #6b7280);
  font-size: 13px;
}

/* contenido del reply */
#bbpress-forums .bbp-reply-content {
  color: var(--text, #222);
  line-height: 1.6;
}
#bbpress-forums .bbp-reply-content p { margin: 10px 0; }
#bbpress-forums .bbp-reply-content blockquote {
  border-left: 3px solid var(--primary, #2b6cb0);
  background: #f7fafc;
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 8px;
}

/* acciones (editar, responder, etc.) */
#bbpress-forums .bbp-reply-content .bbp-admin-links {
  margin-top: 10px;
  font-size: 13px;
  opacity: .8;
}
#bbpress-forums .bbp-reply-content .bbp-admin-links a {
  padding: 4px 8px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--line, #e6e8eb);
  text-decoration: none;
  margin-right: 6px;
}

/* ======== PAGINACIÓN ======== */
#subscription-toggle,
#favorite-toggle { white-space: nowrap; }

#bbpress-forums .bbp-pagination {
  display: flex;
  gap: 8px;
  margin: 18px 0;
}
#bbpress-forums .bbp-pagination .page-numbers,
#bbpress-forums .bbp-pagination-links a,
#bbpress-forums .bbp-pagination-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line, #e9ecf1);
  background: #fff;
  font-weight: 600;
  text-decoration: none;
}
#bbpress-forums .bbp-pagination .current {
  border-color: transparent;
  background: var(--primary, #2563eb);
  color: #fff;
}

/* ======== FORM REPLY ======== */
.bbp-reply-form-wrap {
  margin-top: 24px;
  background: #fff;
  border: 1px solid var(--line, #eceff3);
  border-radius: 14px;
  box-shadow: 0 4px 22px rgba(0,0,0,.04);
  padding: 18px;
}
.bbp-reply-form-wrap .bbp-template-notice { margin-bottom: 10px; }
.bbp-reply-form-wrap textarea {
  border-radius: 10px;
  border: 1px solid var(--line, #e6e8eb);
}
.bbp-reply-form-wrap input[type="submit"],
.bbp-reply-form-wrap button[type="submit"] {
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
}


/*TERCER FIX TOPICS*/

/* ====== Arreglo píldora breadcrumb (quita glow/blanco) ====== */
.crumbs--bbp .current,
.crumbs--bbp .current a {
  background: var(--soft, #f4f5f7) !important;
  color: var(--head, #0f172a) !important;
  box-shadow: none !important;
}
.crumbs--bbp .current::after,
.crumbs--bbp .current a::after {
  content: none !important;
  background: none !important;
  mask: none !important;
}

/* ====== Toolbar superior (contador + paginación) ====== */
.bbp-replies-toolbar{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; margin: 6px 0 12px;
}
.bbp-replies-count{ color:var(--muted,#6b7280); font-weight:600; }

/* ====== Oculta cabeceras de tabla nativas (Author/Posts) ====== */
#bbpress-forums .bbp-replies .bbp-header,
#bbpress-forums ul.bbp-replies .bbp-header{
  display:none !important;
}

/* ====== Tarjetas para cada reply (mismo look del form) ====== */
#bbpress-forums .bbp-replies .bbp-body > ul > li,
#bbpress-forums .bbp-replies .bbp-body > div.bbp-reply,
#bbpress-forums .bbp-replies li.bbp-body .bbp-reply{
  list-style:none;
  background:#fff;
  border:1px solid var(--line,#eceff3);
  border-radius:14px;
  box-shadow:0 4px 22px rgba(0,0,0,.04);
  padding:16px;
  margin:14px 0;
}

/* Encabezado de cada reply (avatar + nombre + fecha) */
#bbpress-forums .bbp-reply-header{
  display:flex; align-items:center; gap:12px;
  background:transparent; border:0; padding:0 0 8px 0; margin:0 0 8px;
  border-bottom:1px dashed var(--line,#eceff3);
}
#bbpress-forums .bbp-reply-author{
  display:flex; align-items:center; gap:10px; margin:0;
}
#bbpress-forums .bbp-reply-author .bbp-author-avatar img{
  width:42px; height:42px; border-radius:50%;
}
#bbpress-forums .bbp-reply-author .bbp-author-name{
  font-weight:700; color:var(--head,#0f172a);
}
#bbpress-forums .bbp-reply-post-date{
  margin-left:auto; color:var(--muted,#6b7280); font-size:13px;
}

/* Texto del reply */
#bbpress-forums .bbp-reply-content{ color:var(--text,#222); line-height:1.65; font-size:15px; }
#bbpress-forums .bbp-reply-content p{ margin:10px 0; }
#bbpress-forums .bbp-reply-content blockquote{
  border-left:3px solid var(--primary,#2563eb);
  background:#f7fafc; margin:10px 0; padding:10px 12px; border-radius:8px;
}

/* Acciones del reply (editar, responder…) */
#bbpress-forums .bbp-reply-content .bbp-admin-links{
  margin-top:10px; font-size:13px; opacity:.9;
}
#bbpress-forums .bbp-reply-content .bbp-admin-links a{
  display:inline-block;
  padding:6px 10px; border-radius:10px;
  background:#f8fafc; border:1px solid var(--line,#e6e8eb);
  text-decoration:none; font-weight:600; margin-right:6px;
}
#bbpress-forums .bbp-reply-content .bbp-admin-links a:hover{
  background:#eef2f7;
}

/* Paginación coherente */
#bbpress-forums .bbp-pagination{ display:flex; gap:8px; margin:18px 0; }
#bbpress-forums .bbp-pagination .page-numbers,
#bbpress-forums .bbp-pagination-links a,
#bbpress-forums .bbp-pagination-links span{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:36px; height:36px; padding:0 10px;
  border-radius:999px; border:1px solid var(--line,#e9ecf1); background:#fff;
  font-weight:600; text-decoration:none;
}
#bbpress-forums .bbp-pagination .current{
  border-color:transparent; background:var(--primary,#2563eb); color:#fff;
}

/* Form coherente (ya similar al que te gustó) */
.bbp-reply-form-wrap{
  margin-top:24px; background:#fff; border:1px solid var(--line,#eceff3);
  border-radius:14px; box-shadow:0 4px 22px rgba(0,0,0,.04); padding:18px;
}
.bbp-reply-form-wrap textarea{
  border-radius:10px; border:1px solid var(--line,#e6e8eb);
}
.bbp-reply-form-wrap input[type="submit"],
.bbp-reply-form-wrap button[type="submit"]{
  border-radius:999px; padding:10px 14px; font-weight:700;
}

/* Responsive */
@media (max-width: 860px){
  .bbp-replies-toolbar{ flex-direction:column; align-items:flex-start; gap:6px; }
  #bbpress-forums .bbp-reply-post-date{ margin-left:0; }
}

