.firma-container{background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 4px 20px #00000012}.firma-header{color:#fff;background:linear-gradient(135deg,#1a3a5c,#1e6091);align-items:center;gap:12px;padding:14px 22px;display:flex}.firma-icon{font-size:1.4rem}.firma-titulo{margin:0 0 2px;font-size:.92rem;font-weight:700}.firma-subtitulo{opacity:.8;margin:0;font-size:.75rem}.firma-canvas-wrap{background:#fafbfc;padding:16px 20px 8px;position:relative;overflow:hidden}.firma-canvas{cursor:crosshair;touch-action:none;box-sizing:border-box;background:#fff;border:2px dashed #cbd5e1;border-radius:10px;width:100%;height:180px;display:block}.firma-linea-guia{pointer-events:none;background:#e2e8f0;height:1px;position:absolute;bottom:40px;left:40px;right:40px}.firma-actions{justify-content:flex-end;gap:10px;padding:12px 20px 16px;display:flex}.firma-btn-limpiar{color:#555;cursor:pointer;background:#f0f2f5;border:1.5px solid #d0d7de;border-radius:9px;padding:9px 18px;font-size:.85rem;font-weight:600;transition:background .15s}.firma-btn-limpiar:hover:not(:disabled){background:#e2e6ea}.firma-btn-limpiar:disabled{opacity:.6;cursor:not-allowed}.firma-btn-subir{color:#fff;cursor:pointer;background:linear-gradient(135deg,#1a3a5c,#1e6091);border:none;border-radius:9px;align-items:center;gap:6px;padding:9px 20px;font-size:.85rem;font-weight:700;transition:transform .15s,box-shadow .15s;display:flex;box-shadow:0 3px 8px #1a3a5c4d}.firma-btn-subir:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 5px 14px #1a3a5c66}.firma-btn-subir:disabled{opacity:.6;cursor:not-allowed}.firma-spinner{border:2px solid #fff6;border-top-color:#fff;border-radius:50%;width:14px;height:14px;animation:.65s linear infinite firmaSpin;display:inline-block}@keyframes firmaSpin{to{transform:rotate(360deg)}}.firma-resultado{border-radius:10px;margin:0 20px 16px;padding:12px 16px;font-size:.85rem;font-weight:600}.firma-resultado--exito{color:#065f46;background:#d1fae5;border:1px solid #6ee7b7}.firma-resultado--error{color:#991b1b;background:#fee2e2;border:1px solid #fca5a5}.firma-url-wrap{flex-direction:column;gap:4px;margin-top:8px;display:flex}.firma-url-label{color:#475569;font-size:.75rem;font-weight:600}.firma-url-link{color:#1e40af;word-break:break-all;font-size:.78rem;text-decoration:underline}.firma-url-link:hover{color:#1d4ed8}@media (width<=600px){.firma-canvas{height:150px}.firma-actions{flex-direction:column}.firma-btn-limpiar,.firma-btn-subir{justify-content:center;width:100%}}
