/* =========================================================
   VISOR DE BOLETINES (PDF) — MODAL PERSONALIZADO
   No usa el visor nativo del navegador: renderiza el PDF
   en un <canvas> con PDF.js para poder ocultar cualquier
   botón de descarga.
========================================================= */

.pdfv-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 8, 25, 0.85);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pdfv-overlay.activo {
    display: flex;
}

.pdfv-modal {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 780px;
    height: 92vh;
    max-height: 920px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.pdfv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    background: linear-gradient(135deg, #431043, #d34681);
    color: #ffffff;
    flex-shrink: 0;
}

.pdfv-titulo {
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0;
}

.pdfv-cerrar {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #ffffff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: background .2s;
    flex-shrink: 0;
}

.pdfv-cerrar:hover {
    background: rgba(255,255,255,0.3);
}

.pdfv-cuerpo {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: #efe6f3;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px;
    position: relative;
    -webkit-user-select: none;
    user-select: none;
}

.pdfv-canvas-wrap {
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    background: #ffffff;
    line-height: 0;
    margin-bottom: 22px;
}

.pdfv-canvas-wrap:last-child {
    margin-bottom: 0;
}

.pdfv-canvas-wrap canvas {
    display: block;
    max-width: 100%;
    height: auto;
    pointer-events: none; /* evita arrastrar/guardar la imagen del canvas */
}

.pdfv-loading,
.pdfv-error {
    color: #5a2d82;
    font-weight: 600;
    text-align: center;
    margin: auto;
}

.pdfv-error {
    color: #a3244b;
    max-width: 360px;
}

.pdfv-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
    background: #ffffff;
}

.pdfv-pagina-info {
    font-size: .9rem;
    color: #5a2d82;
    font-weight: 600;
}

@media (max-width: 575px) {
    .pdfv-modal {
        height: 96vh;
        border-radius: 10px;
    }

    .pdfv-header {
        padding: 12px 16px;
    }

    .pdfv-titulo {
        font-size: 0.95rem;
    }

    .pdfv-footer {
        padding: 8px;
    }
}
