.probador-modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); overflow-y: auto; }
.probador-modal-content { background-color: #fefefe; margin: 5% auto; padding: 0; border: none; width: 90%; max-width: 600px; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.3); position: relative; }
.probador-modal-header { padding: 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.probador-modal-header h2 { margin: 0; color: #333; font-size: 22px; }
.probador-close, .probador-close-privacy { color: #aaa; font-size: 28px; font-weight: bold; cursor: pointer; }
.probador-close:hover, .probador-close-privacy:hover { color: #000; }
.probador-modal-body { padding: 20px; }
.probador-privacy-section { margin-bottom: 20px; font-size: 14px; }
.probador-privacy-section a { text-decoration: underline; color: #2196F3; }
.probador-checkbox-container { display: block; position: relative; padding-left: 35px; margin-bottom: 12px; cursor: pointer; user-select: none; }
.probador-checkbox-container input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.checkmark { position: absolute; top: 0; left: 0; height: 20px; width: 20px; background-color: #eee; border-radius: 4px; border: 2px solid #ddd; }
.probador-checkbox-container:hover input ~ .checkmark { background-color: #ccc; }
.probador-checkbox-container input:checked ~ .checkmark { background-color: #2196F3; border-color: #2196F3; }
.checkmark:after { content: ""; position: absolute; display: none; }
.probador-checkbox-container input:checked ~ .checkmark:after { display: block; }
.probador-checkbox-container .checkmark:after { left: 6px; top: 2px; width: 5px; height: 10px; border: solid white; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.probador-upload-section { margin-bottom: 20px; }
.probador-upload-area { border: 2px dashed #ddd; border-radius: 8px; padding: 40px; text-align: center; transition: border-color 0.3s; }
.probador-upload-placeholder { cursor: pointer; }
.probador-upload-placeholder:hover { opacity: 0.8; }
.probador-upload-area:hover { border-color: #2196F3; }
.probador-upload-icon { font-size: 48px; margin-bottom: 10px; display: block; }
.probador-upload-placeholder p { margin: 10px 0; font-size: 16px; color: #333; }
.probador-upload-placeholder small { color: #666; }
.probador-upload-preview { text-align: center; }
.probador-upload-preview img { max-width: 200px; max-height: 200px; border-radius: 8px; margin-bottom: 10px; border: 1px solid #ddd; }
.probador-upload-preview .probador-btn-secondary { margin-top: 10px; }
.probador-actions { text-align: center; }
.probador-btn-primary, .probador-btn-secondary { padding: 12px 30px; border: none; border-radius: 6px; cursor: pointer; font-size: 16px; transition: background-color 0.3s; }
.probador-btn-primary { background-color: #2196F3; color: white; }
.probador-btn-primary:hover:not(:disabled) { background-color: #1976D2; }
.probador-btn-primary:disabled { background-color: #ccc; cursor: not-allowed; }
.probador-btn-secondary { background-color: #f5f5f5; color: #333; border: 1px solid #ddd; }
.probador-btn-secondary:hover { background-color: #e0e0e0; }
.probador-loading { text-align: center; padding: 40px; }
.probador-spinner { border: 4px solid #f3f3f3; border-top: 4px solid #2196F3; border-radius: 50%; width: 50px; height: 50px; animation: spin 1s linear infinite; margin: 0 auto 20px; }
.probador-error-message { color: #D32F2F; background-color: #FFCDD2; padding: 15px; border-radius: 4px; margin-top: 20px; border: 1px solid #E57373; font-weight: bold; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.probador-result { text-align: center; }
.probador-result-image img { max-width: 100%; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.probador-result-actions { margin-top: 20px; display: flex; justify-content: center; gap: 15px; }
.probador-icon-btn { font-size: 24px; background: #f0f0f0; border: 1px solid #ddd; border-radius: 50%; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; text-decoration: none; color: #333; }
.probador-icon-btn:hover { background: #e0e0e0; border-color: #ccc; }
#probador-virtual-btn { background-color: #ff6b6b !important; border-color: #ff6b6b !important; color: white !important; margin-top: 15px; width: 100%; }
#probador-virtual-btn:hover { background-color: #ff5252 !important; border-color: #ff5252 !important; }
.uploading-indicator { background-color: #f0f0f0; padding: 10px; border-radius: 4px; margin-top: 10px; font-style: italic; color: #666; }
.probador-warning { background-color: #FFF9C4; border: 1px solid #FBC02D; border-radius: 4px; padding: 15px; margin-bottom: 20px; text-align: left; }
.probador-warning p { margin: 0; font-size: 13px; color: #333; }
.probador-warning p strong { color: #F57F17; }
#probador-privacy-modal { z-index: 10000; }
.probador-privacy-content { max-width: 800px; height: 80%; }
.probador-privacy-body { height: calc(100% - 70px); padding: 10px; }
#probador-privacy-iframe { width: 100%; height: 100%; border: none; }
#probador-print-only-area { display: none; }

@media print {
    body * { visibility: hidden !important; }
    #probador-print-only-area, #probador-print-only-area * { visibility: visible !important; }
    #probador-print-only-area { position: absolute; left: 0; top: 0; width: 100%; }
    .probador-print-header { text-align: center; margin-bottom: 20mm; }
    .probador-print-header h1 { font-size: 24pt; font-weight: bold; color: black; }
    .probador-print-image-container img { max-width: 100%; max-height: 200mm; display: block; margin: 0 auto; }
    @page { size: A4 portrait; margin: 20mm; }
}