/* ============================================================
   book-viewer.css
   Todos los selectores usan prefijo bv- para evitar conflictos
   con WordPress y el tema.
   ============================================================ */

/* ── Loading overlay ──────────────────────────────────────── */
#bv-loading {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 9999;
    gap: 16px;
}

#bv-loading.hidden {
    display: none;
}

.bv-spinner {
    width: 52px;
    height: 52px;
    border: 5px solid #444;
    border-top-color: #fff;
    border-radius: 50%;
    animation: bv-spin 0.8s linear infinite;
}

@keyframes bv-spin {
    to {
        transform: rotate(360deg);
    }
}

#bv-status {
    font-size: 15px;
    color: #ccc;
}

/* ── Book container ───────────────────────────────────────── */
#bv-book-container {
    filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.8));
    margin: 28px auto 16px;
    max-width: 1180px;
    height: auto;
}

/* PageFlip toma el control de estos divs tras loadFromHTML() */
.bv-page {
    background: #fff;
    overflow: hidden;
}

.bv-page canvas {
    display: block;
}

/* Página en blanco (relleno cuando el PDF tiene nº impar de páginas) */
.bv-page-blank {
    background: #f5f0e8;
}

/* ── Controles de navegación ──────────────────────────────── */
#bv-controls {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 16px;
}

#bv-controls button {
    padding: 10px 28px;
    background: #3a3a3a;
    color: #fff;
    border: 1px solid #555;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.18s, border-color 0.18s;
}

#bv-controls button:hover {
    background: #555;
    border-color: #777;
}

#bv-controls button:disabled {
    opacity: 0.35;
    cursor: default;
}

.expo-pdf-img span#bv-indicator {
    top: 74%;
    transform: translate(0%, 0%);
    right: 0;
    left: auto;
}

#bv-indicator {
    color: #aaa;
    font-size: 14px;
    min-width: 120px;
    text-align: center;
}

/* ── Hint teclado ─────────────────────────────────────────── */
#bv-hint {
    color: #888;
    font-size: 12px;
    margin-bottom: 12px;
}