/* ============================================================
   RCAD PRO — bbPress XenForo Style v3
   ============================================================ */
:root{--bbp:#f5a623;--bbp-dk:#d4850a;--bbp-bg:#1b2838;--bbp-tx:#333;--bbp-mt:#888;--bbp-bd:#e5e7eb;--bbp-lbg:#f8f9fa;--bbp-hv:#fff8ef;--bbp-r:8px}
#bbpress-forums{font-family:system-ui,-apple-system,'Segoe UI',sans-serif;font-size:14px;color:var(--bbp-tx);line-height:1.6}

/* Breadcrumb */
#bbpress-forums .bbp-breadcrumb p{color:var(--bbp-mt);font-size:13px;margin:0 0 16px;padding:10px 16px;background:var(--bbp-lbg);border-radius:var(--bbp-r)}
#bbpress-forums .bbp-breadcrumb a{color:var(--bbp-dk);text-decoration:none;font-weight:500}
#bbpress-forums .bbp-breadcrumb a:hover{color:var(--bbp)}
#bbpress-forums .bbp-breadcrumb .bbp-breadcrumb-sep{margin:0 6px;color:#ccc}

/* Search */
#bbpress-forums .bbp-search-form{padding:0 0 20px}
#bbpress-forums #bbp_search{width:100%;max-width:420px;height:42px;border:2px solid var(--bbp-bd);border-radius:var(--bbp-r);padding:8px 14px;font-size:14px;transition:border-color .2s}
#bbpress-forums #bbp_search:focus{outline:none;border-color:var(--bbp);box-shadow:0 0 0 3px rgba(245,166,35,.12)}
#bbpress-forums .bbp-search-form .button{background:var(--bbp);color:#fff;border:none;padding:10px 24px;border-radius:var(--bbp-r);font-weight:700;cursor:pointer;transition:background .2s}
#bbpress-forums .bbp-search-form .button:hover{background:var(--bbp-dk)}

/* Lists */
#bbpress-forums ul.bbp-forums,#bbpress-forums ul.bbp-topics,#bbpress-forums ul.bbp-replies,#bbpress-forums ul.bbp-search-results{border:none;margin:0;background:#fff;border-radius:var(--bbp-r);overflow:hidden;box-shadow:0 1px 4px rgba(0,0,0,.06)}

/* Header */
#bbpress-forums li.bbp-header{background:var(--bbp-bg);color:#fff;padding:14px 20px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
#bbpress-forums li.bbp-header a{color:rgba(255,255,255,.8)}
#bbpress-forums li.bbp-header a:hover{color:#fff}

/* Footer */
#bbpress-forums li.bbp-footer{background:var(--bbp-lbg);padding:10px 20px;font-size:11px;color:var(--bbp-mt)}

/* Body rows */
#bbpress-forums li.bbp-body{margin:0}
#bbpress-forums li.bbp-body ul.forum,#bbpress-forums li.bbp-body ul.topic{padding:16px 20px;border-bottom:1px solid var(--bbp-bd);transition:background .15s;display:flex;align-items:center}
#bbpress-forums li.bbp-body ul.forum:last-child,#bbpress-forums li.bbp-body ul.topic:last-child{border-bottom:none}
#bbpress-forums li.bbp-body ul.forum:hover,#bbpress-forums li.bbp-body ul.topic:hover{background:var(--bbp-hv)}
#bbpress-forums div.odd,#bbpress-forums ul.odd{background:transparent}

/* Row icon */
#bbpress-forums li.bbp-body .bbp-forum-info::before,#bbpress-forums li.bbp-body .bbp-topic-title::before{content:'';display:inline-block;width:32px;height:32px;margin-right:12px;border-radius:50%;background:var(--bbp);vertical-align:middle;flex-shrink:0;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 24 24'%3E%3Cpath d='M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H6l-2 2V4h16v12z'/%3E%3C/svg%3E");background-size:16px;background-repeat:no-repeat;background-position:center}

/* Titles */
#bbpress-forums .bbp-forum-title,#bbpress-forums .bbp-topic-permalink{font-size:15px;font-weight:700;color:var(--bbp-tx);text-decoration:none;transition:color .15s}
#bbpress-forums .bbp-forum-title:hover,#bbpress-forums .bbp-topic-permalink:hover{color:var(--bbp)}
#bbpress-forums .bbp-forum-info .bbp-forum-content{font-size:13px;color:var(--bbp-mt);margin-top:4px;line-height:1.5}

/* Columns */
#bbpress-forums .bbp-forum-freshness,#bbpress-forums .bbp-topic-freshness{width:28%;text-align:right;padding-right:8px}
#bbpress-forums .bbp-forum-topic-count,#bbpress-forums .bbp-forum-reply-count,#bbpress-forums .bbp-topic-voice-count,#bbpress-forums .bbp-topic-reply-count{text-align:center;font-size:13px;color:#666;font-weight:600}
#bbpress-forums li.bbp-body .bbp-forum-freshness a,#bbpress-forums li.bbp-body .bbp-topic-freshness a{font-size:12px;color:var(--bbp-mt)}

/* Freshness avatars */
#bbpress-forums li.bbp-body .bbp-topic-freshness img.avatar,#bbpress-forums li.bbp-body .bbp-forum-freshness img.avatar{width:28px;height:28px;border-radius:50%;vertical-align:middle;margin-right:6px;box-shadow:0 1px 3px rgba(0,0,0,.1)}

/* Reply / Topic containers — layout 2 columnas tipo XenForo */
/* Reply / Topic — flex row: autor izq | columna derecha flex-col */
#bbpress-forums div.reply,
#bbpress-forums div.topic{
  background:#fff;
  border:1px solid var(--bbp-bd);
  border-radius:var(--bbp-r);
  margin-bottom:12px;
  overflow:hidden;
  box-shadow:0 1px 3px rgba(0,0,0,.06);
  display:flex;
  flex-direction:row;
  align-items:stretch;
}

/* Columna derecha: apila header arriba + contenido abajo */
#bbpress-forums div.bbp-reply-right-col{
  display:flex;
  flex-direction:column;
  flex:1;
  min-width:0;
}

/* Header — fecha izq / #nº post dcha */
#bbpress-forums div.bbp-reply-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:6px 16px;
  font-size:11px;
  color:var(--bbp-mt);
  border-bottom:1px solid var(--bbp-bd);
  background:#fafafa;
  flex-shrink:0;
}
#bbpress-forums .bbp-header-left{
  color:var(--bbp-mt);
  font-size:11px;
}
#bbpress-forums .bbp-header-right{
  margin-left:auto;
  padding-left:12px;
}
#bbpress-forums div.bbp-reply-header a,
#bbpress-forums .bbp-header-right a{
  color:#aaa;
  text-decoration:none;
  font-size:11px;
  font-weight:500;
}
#bbpress-forums div.bbp-reply-header a:hover,
#bbpress-forums .bbp-header-right a:hover{
  color:var(--bbp);
}

/* ── Sidebar autor — compacto ── */
#bbpress-forums div.bbp-reply-author,
#bbpress-forums div.bbp-topic-author{
  flex-shrink:0;
  text-align:center;
  padding:14px 8px 10px;
  background:#f8f9fa;
  border-right:1px solid var(--bbp-bd);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  width:120px;
  min-width:120px;
  max-width:120px;
  box-sizing:border-box;
  overflow:hidden;
}

/* Avatar — círculo */
#bbpress-forums div.bbp-reply-author img.avatar,
#bbpress-forums div.bbp-topic-author img.avatar{
  width:60px;
  height:60px;
  border-radius:50%;
  box-shadow:0 1px 6px rgba(0,0,0,.12);
  border:2px solid #fff;
  outline:1px solid var(--bbp-bd);
  display:block;
  margin:0 auto 6px;
  object-fit:cover;
  flex-shrink:0;
}

/* Nombre usuario */
#bbpress-forums div.bbp-reply-author .bbp-author-name,
#bbpress-forums div.bbp-reply-author a.bbp-author-name,
#bbpress-forums div.bbp-topic-author .bbp-author-name,
#bbpress-forums div.bbp-topic-author a.bbp-author-name{
  display:block;
  font-weight:700;
  font-size:12px;
  color:var(--bbp-dk);
  text-decoration:none;
  line-height:1.3;
  width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#bbpress-forums div.bbp-reply-author a.bbp-author-name:hover,
#bbpress-forums div.bbp-topic-author a.bbp-author-name:hover{
  color:var(--bbp);
}

/* Badge rol + rango: misma línea visual, compactos */
#bbpress-forums div.bbp-reply-author .bbp-author-role,
#bbpress-forums div.bbp-topic-author .bbp-author-role{
  display:block;
  width:100%;
  font-size:9px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.03em;
  padding:2px 0;
  border-radius:3px;
  background:var(--bbp);
  color:#fff;
  text-align:center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Badge rango — justo debajo del rol, mismo ancho */
#bbpress-forums .rcad-bbp-stats{
  width:100%;
  margin-top:2px;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:0;
}
#bbpress-forums .rcad-bbp-rank{
  display:block;
  width:100%;
  box-sizing:border-box;
  font-size:9px;
  font-weight:600;
  text-transform:lowercase;
  letter-spacing:.02em;
  padding:2px 4px;
  border-radius:3px;
  color:#fff;
  text-align:center;
  margin-bottom:2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
/* Fecha "desde" debajo del badge de rango */
#bbpress-forums .rcad-bbp-since{
  display:block;
  width:100%;
  text-align:center;
  font-size:9px;
  color:var(--bbp-mt);
  margin-bottom:5px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Lista stats — 2 columnas: icono+label | valor */
#bbpress-forums .rcad-bbp-stat-list{
  list-style:none;
  margin:0;
  padding:0;
  width:100%;
  border-top:1px solid var(--bbp-bd);
  padding-top:6px;
}
#bbpress-forums .rcad-bbp-stat-list li{
  display:grid;
  grid-template-columns:16px 1fr auto;
  align-items:center;
  font-size:10px;
  color:#555;
  padding:2px 0;
  gap:3px;
  white-space:nowrap;
}
#bbpress-forums .rcad-stat-icon{
  font-size:11px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
}
#bbpress-forums .rcad-stat-label{
  color:var(--bbp-mt);
  font-size:10px;
  text-transform:lowercase;
  overflow:hidden;
  text-overflow:ellipsis;
}
#bbpress-forums .rcad-bbp-stat-list li strong{
  color:#333;
  font-size:10px;
  font-weight:700;
  text-align:right;
}

/* IP admin oculta */
#bbpress-forums div.bbp-reply-author .bbp-author-ip,
#bbpress-forums div.bbp-topic-author .bbp-author-ip{
  display:none;
}

/* Contenido del post */
#bbpress-forums div.bbp-reply-content{
  padding:20px 24px;
  line-height:1.7;
  font-size:14px;
  min-width:0;
}
#bbpress-forums div.bbp-reply-content p{margin:0 0 12px}
#bbpress-forums div.bbp-reply-content p:last-child{margin-bottom:0}

/* Admin links dentro del content */
#bbpress-forums div.bbp-reply-content .bbp-admin-links{
  margin-top:16px;
  padding-top:12px;
  border-top:1px solid var(--bbp-bd);
}

/* Lead topic highlight */
#bbpress-forums div.bbp-lead-topic{
  background:#fff;
  border:2px solid var(--bbp);
  border-radius:var(--bbp-r);
  margin-bottom:16px;
  overflow:hidden;
  display:grid;
  grid-template-columns:120px 1fr;
  grid-template-rows:auto 1fr;
  grid-template-areas:
    "author  header"
    "author  content";
}
#bbpress-forums div.bbp-lead-topic > div.bbp-reply-header{grid-area:header}
#bbpress-forums div.bbp-lead-topic > div.bbp-topic-author{grid-area:author;grid-row:1/3}
#bbpress-forums div.bbp-lead-topic > div.bbp-reply-content{grid-area:content}

/* Form fieldset */
#bbpress-forums fieldset.bbp-form{background:#fff;border:1px solid var(--bbp-bd);border-radius:var(--bbp-r);padding:24px;margin:20px 0;box-shadow:0 1px 4px rgba(0,0,0,.06)}
#bbpress-forums fieldset.bbp-form legend{font-size:16px;font-weight:700;color:var(--bbp-tx);padding:0 8px}

/* Form labels */
#bbpress-forums .bbp-form label{font-size:13px;font-weight:700;color:#444;display:block;margin-bottom:6px;text-transform:uppercase;letter-spacing:.03em}

/* Form inputs */
#bbpress-forums .bbp-form input[type="text"],#bbpress-forums .bbp-form select{width:100%;padding:10px 14px;border:2px solid var(--bbp-bd);border-radius:var(--bbp-r);font-size:14px;margin-bottom:16px;transition:border-color .2s;background:#fff}
#bbpress-forums .bbp-form input[type="text"]:focus,#bbpress-forums .bbp-form select:focus{outline:none;border-color:var(--bbp);box-shadow:0 0 0 3px rgba(245,166,35,.12)}
#bbpress-forums .bbp-form select{appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 14px center;padding-right:40px}

/* Quicktags */
#bbpress-forums .quicktags-toolbar{display:flex!important;flex-wrap:wrap;gap:4px;padding:10px 12px;background:var(--bbp-lbg);border:2px solid var(--bbp-bd);border-bottom:none;border-radius:var(--bbp-r) var(--bbp-r) 0 0}
#bbpress-forums .quicktags-toolbar input[type="button"],#bbpress-forums .quicktags-toolbar .ed_button,#bbpress-forums .bbp-quicktags-toolbar input{display:inline-flex!important;align-items:center;justify-content:center;padding:6px 12px!important;background:#fff!important;border:1px solid #ddd!important;border-radius:4px!important;font-size:12px!important;font-weight:600!important;color:#555!important;cursor:pointer;transition:all .15s;float:none!important;margin:0!important;min-width:auto!important;width:auto!important}
#bbpress-forums .quicktags-toolbar input[type="button"]:hover,#bbpress-forums .quicktags-toolbar .ed_button:hover{background:var(--bbp-hv)!important;border-color:var(--bbp)!important;color:var(--bbp-dk)!important}

/* Textarea */
#bbpress-forums textarea,#bbpress-forums .bbp-the-content textarea,#bbpress-forums .wp-editor-area{width:100%!important;min-height:200px;border:2px solid var(--bbp-bd);border-radius:0 0 var(--bbp-r) var(--bbp-r);padding:16px;font-size:14px;line-height:1.7;resize:vertical;font-family:inherit}
#bbpress-forums textarea:focus{outline:none;border-color:var(--bbp);box-shadow:0 0 0 3px rgba(245,166,35,.12)}

/* Submit */
#bbpress-forums .bbp-submit-wrapper{margin-top:20px;text-align:right}
#bbpress-forums .bbp-submit-wrapper .button,#bbpress-forums .bbp-submit-wrapper button[type="submit"]{background:var(--bbp)!important;color:#fff!important;border:none!important;padding:12px 36px!important;border-radius:var(--bbp-r)!important;font-size:14px!important;font-weight:700!important;cursor:pointer;transition:all .2s;text-transform:uppercase;letter-spacing:.04em;box-shadow:0 2px 8px rgba(245,166,35,.3)}
#bbpress-forums .bbp-submit-wrapper .button:hover{background:var(--bbp-dk)!important;transform:translateY(-1px);box-shadow:0 4px 12px rgba(245,166,35,.4)}

/* Notices */
#bbpress-forums div.bbp-template-notice{background:#fff8e1;border:1px solid #ffe082;border-left:4px solid var(--bbp);border-radius:var(--bbp-r);padding:14px 18px;margin:16px 0;font-size:13px;color:#5d4037}
#bbpress-forums div.bbp-template-notice p{margin:0}

/* Pagination */
#bbpress-forums .bbp-pagination{margin:24px 0;padding:16px 0;border-top:1px solid var(--bbp-bd);display:flex;align-items:center;justify-content:space-between}
#bbpress-forums .bbp-pagination-links{display:flex;gap:4px}
#bbpress-forums .bbp-pagination-links a,#bbpress-forums .bbp-pagination-links span.current{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:36px;padding:0 10px;font-size:13px;border-radius:6px;text-decoration:none;font-weight:600;transition:all .15s}
#bbpress-forums .bbp-pagination-links a{color:#666;border:1px solid var(--bbp-bd);background:#fff}
#bbpress-forums .bbp-pagination-links a:hover{border-color:var(--bbp);color:var(--bbp);background:var(--bbp-hv)}
#bbpress-forums .bbp-pagination-links span.current{background:var(--bbp);color:#fff;border:1px solid var(--bbp)}
#bbpress-forums .bbp-pagination-count{font-size:12px;color:var(--bbp-mt)}

/* Admin links */
#bbpress-forums .bbp-admin-links{font-size:11px}
#bbpress-forums .bbp-admin-links a{color:#bbb;text-decoration:none}
#bbpress-forums .bbp-admin-links a:hover{color:var(--bbp)}

/* Subscribe */
#bbpress-forums .subscription-toggle{display:inline-flex;align-items:center;gap:4px;padding:6px 16px;border:2px solid var(--bbp);border-radius:var(--bbp-r);color:var(--bbp);font-size:12px;font-weight:700;text-decoration:none;text-transform:uppercase;letter-spacing:.03em;transition:all .2s}
#bbpress-forums .subscription-toggle:hover{background:var(--bbp);color:#fff}

/* Notify checkbox */
#bbpress-forums .bbp-form .bbp-checkbox label{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:400;color:#666}

/* Responsive */
@media(max-width:768px){
#bbpress-forums li.bbp-header{font-size:10px;padding:10px 14px}
#bbpress-forums li.bbp-body ul.forum,#bbpress-forums li.bbp-body ul.topic{padding:12px 14px;flex-wrap:wrap}
#bbpress-forums li.bbp-body .bbp-forum-info::before,#bbpress-forums li.bbp-body .bbp-topic-title::before{display:none}
#bbpress-forums .bbp-forum-freshness,#bbpress-forums .bbp-topic-freshness{width:100%;text-align:left;padding:6px 0 0;font-size:11px}
#bbpress-forums div.reply,
#bbpress-forums div.topic,
#bbpress-forums div.bbp-lead-topic{
  flex-direction:column;
}
#bbpress-forums div.bbp-reply-author,
#bbpress-forums div.bbp-topic-author{
  width:100% !important;
  max-width:100% !important;
  flex-direction:row;
  flex-wrap:wrap;
  justify-content:center;
  padding:10px;
  border-right:none;
  border-bottom:1px solid var(--bbp-bd);
}
#bbpress-forums div.bbp-reply-author,
#bbpress-forums div.bbp-topic-author{
  border-right:none;
  border-bottom:1px solid var(--bbp-bd);
  flex-direction:row;
  flex-wrap:wrap;
  justify-content:center;
  padding:12px;
  gap:8px;
}
#bbpress-forums div.bbp-reply-author img.avatar,
#bbpress-forums div.bbp-topic-author img.avatar{width:44px;height:44px;border-radius:50%;margin:0}
#bbpress-forums div.bbp-reply-content{padding:14px}
#bbpress-forums fieldset.bbp-form{padding:16px}
#bbpress-forums .quicktags-toolbar{gap:3px;padding:6px 8px}
#bbpress-forums .quicktags-toolbar input[type="button"]{padding:4px 8px!important;font-size:11px!important}
}

/* ── Barra de acciones: Like + Citar ── */
#bbpress-forums .rcad-action-bar{
  margin-top:14px;
  padding-top:10px;
  border-top:1px solid var(--bbp-bd);
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
}
/* Botón base compartido */
#bbpress-forums .rcad-like-btn,
#bbpress-forums .rcad-quote-btn{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:5px 12px;
  border:1px solid var(--bbp-bd);
  border-radius:4px;
  background:#fff;
  color:#666;
  font-size:12px;
  font-weight:500;
  cursor:pointer;
  transition:all .18s;
  line-height:1;
  text-decoration:none;
}
#bbpress-forums .rcad-like-btn:hover{
  border-color:var(--bbp);
  color:var(--bbp-dk);
  background:var(--bbp-hv);
}
#bbpress-forums .rcad-like-btn.liked{
  border-color:var(--bbp);
  background:var(--bbp);
  color:#fff;
}
#bbpress-forums .rcad-like-btn.liked:hover{
  background:var(--bbp-dk);
  border-color:var(--bbp-dk);
}
#bbpress-forums .rcad-like-btn:disabled{opacity:.6;cursor:wait}
#bbpress-forums .rcad-like-count{font-weight:700}
#bbpress-forums .rcad-like-guest{
  font-size:12px;
  color:#999;
}
#bbpress-forums .rcad-quote-btn:hover{
  border-color:#6c757d;
  color:#333;
  background:#f0f0f0;
}
