/* ============================================================
   bible.css — Módulo Biblia
   ============================================================ */
.bible-body { flex: 1; display: flex; min-height: 0; position: relative; }

.bible-books {
  width: 210px; min-width: 210px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.bb-tabs { display: flex; padding: 10px 10px 6px; gap: 6px; }
.bb-tab {
  flex: 1; padding: 6px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--border);
  color: var(--text-dim); cursor: pointer; font-weight: 700;
}
.bb-tab.active { color: var(--text); border-color: var(--accent); }
.bb-list { flex: 1; overflow-y: auto; padding: 4px 8px 10px; }
.bb-book {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; text-align: left;
  background: none; border: 1px solid transparent; color: var(--text);
  padding: 7px 10px; border-radius: 6px; cursor: pointer; font-size: 13px;
}
.bb-book span { font-size: 10px; color: var(--text-dim); }
.bb-book:hover { background: var(--panel); }
.bb-book.active { background: rgba(47,129,247,.14); border-color: rgba(47,129,247,.5); }

.bible-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.bm-crumb {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 16px; flex-wrap: wrap;
}
.bm-crumb > span { font-size: 16px; font-weight: 700; }
.bm-tools { display: flex; gap: 8px; }

.bm-chapters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
  gap: 5px;
  padding: 0 16px 10px;
  max-height: 150px; overflow-y: auto;
}
.bm-ch {
  background: var(--panel); border: 1px solid var(--border);
  color: var(--text); border-radius: 6px; padding: 6px 0; cursor: pointer;
  font-size: 13px;
}
.bm-ch:hover { border-color: var(--border2); }
.bm-ch.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }

.bm-verses {
  flex: 1; overflow-y: auto;
  padding: 4px 16px 14px;
  column-count: 2; column-gap: 26px;
}
.bm-verse {
  break-inside: avoid;
  padding: 6px 8px; border-radius: 6px;
  cursor: pointer; border: 1px solid transparent;
  margin-bottom: 2px;
  line-height: 1.5;
  user-select: text;
}
.bm-verse:hover { background: var(--panel); }
.bm-verse.selected { background: rgba(47,129,247,.14); border-color: rgba(47,129,247,.5); }
.bv-num { color: var(--accent); font-weight: 700; font-size: 12px; margin-right: 5px; }
.bm-verse-info { padding: 8px 4px; color: var(--text-dim); font-size: 12.5px; column-span: all; }

.bm-theme-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-top: 1px solid var(--border);
  color: var(--text-dim);
}

/* Panel de búsqueda de texto */
.bible-search-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 340px; min-width: 340px;
  background: var(--panel);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  box-shadow: -12px 0 30px rgba(0,0,0,.3);
  z-index: 10;
}
.bsp-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px; border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.bsp-head input {
  flex: 1; min-width: 120px;
  background: var(--panel2); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 7px 10px; outline: none;
}
.bsp-results { flex: 1; overflow-y: auto; padding: 8px 10px; }
.bsp-count { color: var(--text-dim); font-size: 12.5px; padding: 4px 4px 10px; }
.bsp-row {
  padding: 8px 10px; border-radius: 6px; cursor: pointer;
  border: 1px solid transparent; margin-bottom: 4px; line-height: 1.45;
  user-select: text;
}
.bsp-row:hover { background: var(--panel2); border-color: var(--border); }
.bsp-row mark { background: rgba(245,166,35,.35); color: inherit; border-radius: 3px; padding: 0 2px; }
