/* ==========================================================
   ESTILOS: BIBLIA Y PROYECTOR BÍBLICO (CLÁSICO / REFORMA)
   ========================================================== */

.biblia-container {
    background-color: #f8fafc;
    min-height: calc(100vh - 80px);
}

.biblia-header-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.bg-gold-subtle {
    background: #fef3c7 !important;
}

.libros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
    max-height: 55vh;
    overflow-y: auto;
    padding-right: 6px;
}

.libro-item-btn {
    border-radius: 10px;
    padding: 8px 10px;
    transition: all 0.2s ease;
    border-color: #e2e8f0;
}

.libro-item-btn:hover, .libro-item-btn.active {
    background-color: #1e3a8a;
    color: #ffffff !important;
    border-color: #1e3a8a;
}
.libro-item-btn:hover small, .libro-item-btn.active small {
    color: #cbd5e1 !important;
}

.capitulos-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    max-height: 65vh;
    overflow-y: auto;
    padding-right: 4px;
}

.cap-btn {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    transition: all 0.15s ease;
    cursor: pointer;
}

.cap-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.cap-btn.active {
    background: #1e3a8a;
    color: #ffffff;
    border-color: #1e3a8a;
}

/* Sugerencias predictivas en vivo */
.suggestion-item {
    transition: all 0.15s ease;
    border-left: 4px solid transparent;
}
.suggestion-item:hover, .suggestion-item.active-suggestion {
    background-color: #eff6ff !important;
    border-left-color: #2563eb;
}
.suggestion-item.active-suggestion {
    outline: none;
}

/* Versículos en modo lectura */
.versiculos-flow {
    font-family: 'Merriweather', 'Georgia', serif;
    font-size: 1.15rem;
    line-height: 2;
    color: #1e293b;
}

.v-item {
    display: inline;
    padding: 2px 4px;
    border-radius: 4px;
    transition: background 0.15s ease;
    cursor: pointer;
}

.v-item:hover {
    background: #fef08a;
}

.v-item.selected {
    background: #fde047;
}

.v-num {
    font-size: 0.75rem;
    font-weight: 700;
    vertical-align: super;
    color: #64748b;
    margin-right: 4px;
    user-select: none;
    font-family: system-ui, sans-serif;
}

.v-action-pill {
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.v-item:hover .v-action-pill {
    opacity: 1;
}

/* ==========================================================
   OVERLAY PROYECTOR DE PANTALLA COMPLETA
   ========================================================== */
.proyector-biblia-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background 0.3s ease;
    background: #000000;
    color: #ffffff;
    overflow: hidden;
    user-select: none;
}

/* Temas del proyector */
.proyector-biblia-overlay.theme-negro {
    background: #000000;
    color: #ffffff;
}

.proyector-biblia-overlay.theme-azul {
    background: radial-gradient(circle at center, #1e3a8a 0%, #09132b 100%);
    color: #ffffff;
}

.proyector-biblia-overlay.theme-pergamino {
    background: #fdf6e2;
    color: #2b1810;
}
.proyector-biblia-overlay.theme-pergamino .p-verse-ref {
    color: #854d0e;
}
.proyector-biblia-overlay.theme-pergamino .p-control-topbar,
.proyector-biblia-overlay.theme-pergamino .p-control-bottombar {
    background: rgba(0, 0, 0, 0.08);
}
.proyector-biblia-overlay.theme-pergamino .p-cita-header {
    color: #2b1810;
}

/* Barra Superior */
.p-control-topbar {
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
}

.p-badge-version {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    background: #f59e0b;
    color: #000000;
    letter-spacing: 0.5px;
}

.p-cita-header {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Escenario Central */
.p-slide-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 60px;
    text-align: center;
}

.p-slide-content {
    max-width: 1200px;
    width: 100%;
}

.p-verse-ref {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
    font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
}

.p-verse-text {
    font-family: 'Georgia', 'Merriweather', serif;
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    line-height: 1.35;
    font-weight: 500;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    word-break: break-word;
}
.proyector-biblia-overlay.theme-pergamino .p-verse-text {
    text-shadow: none;
}

/* Barra Inferior */
.p-control-bottombar {
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
}

