/* Estilos auténticos de Comunidades Identi v2.0 */

.comu_page_container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 6px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  box-sizing: border-box;
}

.comu_main_col {
  flex: 1 1 720px;
  min-width: 0;
  box-sizing: border-box;
}

.comu_side_col {
  width: 260px;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* Breadcrumbs */
.comu_breadcrumb {
  font-size: 11px;
  color: #555555;
  margin-bottom: 12px;
  padding: 4px 0;
  font-family: Arial, Tahoma, sans-serif;
}
.comu_breadcrumb a {
  color: #004CA0;
  text-decoration: none;
  font-weight: 500;
}
.comu_breadcrumb a:hover {
  text-decoration: underline;
}
.comu_breadcrumb .sep {
  margin: 0 5px;
  color: #888888;
}
.comu_breadcrumb .current {
  color: #004CA0;
  font-weight: bold;
}

/* Header Card */
.comu_header_card {
  background: #FFFFFF;
  border-top: 3px solid #2974A8;
  border-bottom: 1px solid #D1D9E0;
  border-left: 1px solid #E1E8EE;
  border-right: 1px solid #E1E8EE;
  padding: 12px 14px;
  margin-bottom: 6px;
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: flex-start;
  position: relative;
}

.comu_header_logo {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 2px;
  overflow: hidden;
  background: #0B5DAF;
}
.comu_header_logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.comu_header_info {
  flex: 1;
  min-width: 0;
}

.comu_title_text {
  font-size: 21px;
  font-weight: bold;
  color: #004CA0;
  margin: 0 0 4px 0;
  font-family: Arial, Tahoma, sans-serif;
  line-height: 1.2;
}

.comu_desc_text {
  font-size: 12px;
  color: #666666;
  margin-bottom: 6px;
}

.comu_more_link {
  font-size: 11px;
  font-weight: bold;
  color: #004CA0;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 12px;
}
.comu_more_link:hover {
  text-decoration: underline;
}

.comu_more_info_box {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 3px;
  padding: 8px 12px;
  font-size: 11px;
  margin-bottom: 12px;
  line-height: 1.6;
}
.comu_more_info_box a {
  color: #004CA0;
  text-decoration: none;
}
.comu_more_info_box a:hover {
  text-decoration: underline;
}

.comu_btn_unirse {
  background: #FFFFFF;
  border: 1px solid #0073D6;
  color: #0073D6 !important;
  font-size: 11px;
  font-weight: bold;
  padding: 4px 14px;
  border-radius: 3px;
  cursor: pointer;
  outline: none;
  text-decoration: none !important;
  transition: all 0.15s;
}
.comu_btn_unirse:hover {
  background: #0073D6 !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
}
.comu_btn_unirse.is_joined {
  background: #27AE60 !important;
  border-color: #219653 !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
}
.comu_btn_unirse.is_joined:hover {
  background: #C0392B !important;
  border-color: #A93226 !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
}

/* Stats Badges */
.comu_header_stats {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}
.comu_stat_box {
  background: #FFFFFF;
  border: 1px solid #D6E0EA;
  border-radius: 3px;
  padding: 6px 12px;
  text-align: center;
  min-width: 52px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.comu_stat_box .num {
  font-size: 16px;
  font-weight: bold;
  color: #333333;
  line-height: 1.1;
}
.comu_stat_box .label {
  font-size: 10px;
  color: #777777;
  margin-top: 2px;
}

.comu_subtext_row {
  margin: 4px 0 16px;
  font-size: 11px;
}
.comu_subtext_row a {
  color: #004CA0;
  text-decoration: none;
}
.comu_subtext_row a:hover {
  text-decoration: underline;
}

/* Table Toolbar: Crear Tema */
.comu_table_toolbar {
  display: flex;
  justify-content: flex-end;
  position: relative;
  margin-bottom: 8px;
}

.comu_btn_crear_tema {
  background: #FFFFFF;
  border: 1px solid #0073D6;
  color: #0073D6 !important;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 14px;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: all 0.15s;
}
.comu_btn_crear_tema:hover {
  background: #0073D6 !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
}

/* Tooltip Únete a Identi! */
.comu_guest_tooltip {
  position: absolute;
  top: 32px;
  right: 0;
  z-index: 1000;
  background: #FFFFFF;
  border: 1px solid #63A7E8;
  border-radius: 4px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.18);
  padding: 12px 14px;
  width: 255px;
  box-sizing: border-box;
  text-align: left;
}
.comu_guest_tooltip:before {
  content: '';
  position: absolute;
  top: -6px;
  right: 32px;
  width: 10px;
  height: 10px;
  background: #FFFFFF;
  border-left: 1px solid #63A7E8;
  border-top: 1px solid #63A7E8;
  transform: rotate(45deg);
}
.comu_guest_tooltip .tt_title {
  color: #004CA0;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 2px;
}
.comu_guest_tooltip .tt_sub {
  color: #555555;
  font-size: 11px;
  margin-bottom: 10px;
  line-height: 1.3;
}
.comu_guest_tooltip .tt_actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.comu_guest_tooltip .tt_btn_reg {
  background: #27AE60 !important;
  color: #FFFFFF !important;
  font-size: 11px;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 2px;
  text-decoration: none !important;
  display: inline-block;
}
.comu_guest_tooltip .tt_btn_reg:hover {
  background: #219653 !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
}
.comu_guest_tooltip .tt_link_login {
  color: #004CA0;
  font-size: 11px;
  text-decoration: none;
  cursor: pointer;
}
.comu_guest_tooltip .tt_link_login:hover {
  text-decoration: underline;
}

/* Topics Table */
.comu_topics_table {
  width: 100%;
  border-collapse: collapse;
  background: #FFFFFF;
  border: 1px solid #E4EBF0;
  border-top: 2px solid #D6E0EA;
  font-family: Arial, Tahoma, sans-serif;
  margin-bottom: 12px;
}
.comu_topics_table thead th {
  background: #F8FAFC;
  color: #475569;
  font-size: 11px;
  font-weight: bold;
  padding: 7px 10px;
  border-bottom: 1px solid #E2E8F0;
  text-align: left;
}
.comu_topics_table thead th.th_center {
  text-align: center;
}
.comu_topics_table tbody tr {
  border-bottom: 1px solid #EDF2F7;
  transition: background 0.1s;
}
.comu_topics_table tbody tr:nth-child(even) {
  background: #FAFBFD;
}
.comu_topics_table tbody tr:hover {
  background: #F1F6FC;
}
.comu_topics_table tbody tr.sticky,
.comu_topic_row.sticky {
  background: #FFEFD5 !important;
  border-bottom: 1px solid #FFE7BF !important;
}
.comu_topics_table tbody tr.sticky:hover,
.comu_topic_row.sticky:hover {
  background: #FDF5E8 !important;
}
.comu_topics_table tbody tr.locked,
.comu_topic_row.locked {
  background: #F9F9F9;
  opacity: 0.85;
}
.comu_badge_sticky {
  background: #D85724;
  color: #FFFFFF;
  font-size: 9px;
  font-weight: bold;
  padding: 1px 5px;
  border-radius: 2px;
  margin-right: 6px;
  display: inline-block;
}
.comu_badge_locked {
  background: #7F8C8D;
  color: #FFFFFF;
  font-size: 9px;
  font-weight: bold;
  padding: 1px 5px;
  border-radius: 2px;
  margin-right: 6px;
  display: inline-block;
}
.comu-table-scroll-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 12px;
}
.comu_topics_table td {
  padding: 7px 10px;
  vertical-align: middle;
}
.comu_topic_title_cell {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.comu_topic_bubble {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  object-fit: contain;
}
.comu_topic_link {
  color: #004CA0;
  font-weight: bold;
  font-size: 12px;
  text-decoration: none;
  display: block;
  line-height: 1.3;
}
.comu_topic_link:hover {
  text-decoration: underline;
}
.comu_topic_author {
  font-size: 11px;
  color: #777777;
  margin-top: 2px;
}
.comu_topic_author a {
  color: #555555;
  text-decoration: none;
}
.comu_topic_author a:hover {
  text-decoration: underline;
}
.comu_topic_date {
  font-size: 11px;
  color: #666666;
  white-space: nowrap;
}
.comu_topic_replies {
  font-size: 11px;
  color: #555555;
  text-align: center;
}
.comu_topic_votes {
  font-size: 11px;
  color: #555555;
  text-align: center;
}

/* Pagination */
.comu_pagination {
  display: flex;
  justify-content: flex-end;
  margin: 8px 0 20px 0;
}
.comu_btn_pag {
  background: #F4F6F9;
  border: 1px solid #CBD5E1;
  color: #004CA0 !important;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 2px;
  text-decoration: none !important;
}
.comu_btn_pag:hover {
  background: #E2E8F0 !important;
  color: #003366 !important;
  text-decoration: none !important;
}

/* Bottom Search */
.comu_bottom_search {
  border-top: 1px dotted #CBD5E1;
  padding-top: 16px;
  margin-top: 10px;
  display: flex;
  justify-content: center;
}
.comu_search_box_pill {
  position: relative;
  width: 320px;
}
.comu_search_box_pill input {
  width: 100%;
  padding: 5px 32px 5px 12px;
  border: 1px solid #CBD5E1;
  border-radius: 14px;
  font-size: 12px;
  color: #555;
  box-sizing: border-box;
  outline: none;
}
.comu_search_box_pill button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

/* Sidebar Widgets */
.comu_side_widget {
  background: #FFFFFF;
  border: 1px solid #D6E0EA;
  border-radius: 2px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.comu_widget_header {
  background: #ECEFF2;
  border-bottom: 1px solid #D6E0EA;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: bold;
  color: #004CA0;
}
.comu_widget_body {
  padding: 10px;
}

/* Sidebar search */
.comu_sidebar_search_inp {
  width: 100%;
  border: 1px solid #CBD5E1;
  padding: 5px 8px;
  border-radius: 2px;
  font-size: 12px;
  box-sizing: border-box;
  outline: none;
}

/* Staff widget */
.comu_staff_avatar {
  width: 38px;
  height: 38px;
  border: 1px solid #CBD5E1;
  display: block;
}
.comu_widget_footer_link {
  text-align: right;
  margin-top: 8px;
}
.comu_widget_footer_link a {
  font-size: 11px;
  color: #004CA0;
  text-decoration: none;
}
.comu_widget_footer_link a:hover {
  text-decoration: underline;
}

/* Ultimas Respuestas */
.comu_respuestas_list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.comu_respuesta_item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border-bottom: 1px dotted #E2E8F0;
}
.comu_respuesta_item:last-child {
  border-bottom: none;
}
.comu_resp_badge {
  background: #E8F1F9;
  border: 1px solid #D1E3F3;
  color: #004CA0;
  font-size: 10px;
  font-weight: bold;
  padding: 1px 5px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
  max-width: 85px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.comu_resp_title {
  font-size: 11px;
  color: #333333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  flex: 1;
}
.comu_resp_title:hover {
  color: #004CA0;
  text-decoration: underline;
}

/* Members Grid & Avatar List (Staff & Ultimos Miembros) */
.small_avatar_list.comu_avatar_grid {
  list-style: none;
  margin: 0 auto 5px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.small_avatar_list.comu_avatar_grid li {
  list-style: none;
  margin: 0;
  padding: 0;
  float: left;
}
.small_avatar_list.comu_avatar_grid li a {
  display: block;
  width: 31px;
  height: 31px;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid #CBD5E1;
  background: #E2E8F0;
  line-height: 0;
}
.small_avatar_list.comu_avatar_grid li a:hover {
  border-color: #004CA0;
}
.small_avatar_list.comu_avatar_grid li img {
  width: 31px !important;
  height: 31px !important;
  display: block;
  object-fit: cover;
}
.comu_members_img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #E2E8F0;
}

/* Moderacion */
.comu_mod_link {
  font-size: 11px;
  color: #004CA0;
  text-decoration: none;
  font-weight: 500;
}
.comu_mod_link:hover {
  text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 800px) {
  .comu_page_container {
    flex-direction: column;
  }
  .comu_main_col, .comu_side_col {
    width: 100%;
  }
  .comu_header_card {
    flex-direction: column;
  }
}
