/* Estilos para modales PDF mejorados */
.pdf-modal-container {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 600px;
    overflow: auto;
    background: #525659;
    padding: 15px;
    border-radius: 8px;
}

.pdf-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
    /* Zoom inicial del 200% aplicado desde CSS */
    transform: scale(2);
    transform-origin: top left;
}

.pdf-controls {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.pdf-controls button,
.pdf-controls a.btn {
    background: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    font-size: 14px;
}

.pdf-controls button:hover,
.pdf-controls a.btn:hover {
    background: #ffc800;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.pdf-controls button:active {
    transform: scale(0.98);
}

.pdf-download-btn {
    background: #ffc800 !important;
    color: #000 !important;
}

.zoom-level-display {
    background: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    color: #000;
    min-width: 80px;
    text-align: center;
}

.modal-xl-custom {
    max-width: 95%;
    margin: 1.75rem auto;
}

@media (max-width: 768px) {
    .pdf-modal-container {
        height: 60vh;
        min-height: 400px;
    }
    
    .pdf-controls {
        position: static;
        margin-bottom: 10px;
        justify-content: center;
        padding: 10px;
    }
    
    .pdf-controls button,
    .pdf-controls a.btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}