.modal-certificado { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.modal-certificado[aria-hidden="false"] { opacity: 1; visibility: visible; }

.modal-certificado__overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.9); backdrop-filter: blur(4px); }

.modal-certificado__content { position: relative; background: #ffffff; border-radius: 12px; max-width: 1000px; width: 100%; height: 90vh; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); z-index: 1; transform: translateY(20px); transition: transform 0.3s ease; }
.modal-certificado[aria-hidden="false"] .modal-certificado__content { transform: translateY(0); }

.modal-certificado__close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border: none; background: rgba(255, 255, 255, 0.95); border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s ease, transform 0.2s ease; z-index: 100; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); }
.modal-certificado__close:hover { background: #ffffff; transform: scale(1.05); }
.modal-certificado__close svg { width: 20px; height: 20px; stroke: #1a1a1a; }

.modal-certificado__body { width: 100%; height: 100%; display: flex; flex-direction: column; }

.certificado-header { text-align: center; padding: 20px 24px; background: #f8fafc; border-bottom: 2px solid #e2e8f0; flex-shrink: 0; }
.certificado-header h2 { font-family: 'Space Grotesk', sans-serif; font-size: 24px; font-weight: 700; color: #1a1a1a; margin: 0 0 4px 0; }

.certificado-subtitle { font-family: 'Manrope', sans-serif; font-size: 14px; color: #64748b; margin: 0; font-weight: 500; }

.certificado-pdf-container { flex: 1; width: 100%; overflow: hidden; background: #f1f5f9; }
.certificado-pdf-viewer { width: 100%; height: 100%; border: none; display: block; }

@media (max-width: 768px) {
    .modal-certificado__content { max-width: 100%; height: 95vh; border-radius: 8px; }
    .certificado-header h2 { font-size: 20px; }
    .modal-certificado__close { top: 12px; right: 12px; width: 36px; height: 36px; }
}