/* =========================================================================
   CONTRATO IMPRESO, FIRMA CON RATÓN, ARRASTRE Y ENTREGA AL NPC
   ========================================================================= */
@keyframes intDocSlideIn {
  0% {
    opacity: 0;
    transform: translate3d(-150px, -22px, 0) rotate(-6deg) scale(0.92);
  }
  70% {
    opacity: 1;
    transform: translate3d(6px, 2px, 0) rotate(0.8deg) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
}

@keyframes intContractPrint {
  0% {
    opacity: 0;
    transform: translate3d(0, -18px, 0) scaleY(0.12);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scaleY(1);
  }
}

@keyframes intHintShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

#int-desk-mat-wrap,
#int-desk-mat {
  overflow: visible !important;
}

#int-desk-mat {
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 12px !important;
}

.int-desk-docs-row {
  animation: intDocSlideIn 0.48s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  cursor: grab;
  position: relative;
  flex: 1 1 320px;
  will-change: transform;
  touch-action: none;
  user-select: none;
}

.int-desk-docs-row.is-dragging,
.int-contract-paper.is-dragging {
  cursor: grabbing;
  z-index: 60 !important;
  transition: none !important;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.55));
}

.int-desk-docs-row.is-handing-back,
.int-contract-paper.is-handing-back {
  transition: transform 0.34s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.34s ease !important;
  transform: translate3d(-240px, -20px, 0) scale(0.8) rotate(-8deg) !important;
  opacity: 0 !important;
}

.int-doc-read-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 7px;
  border: 2px solid #94a3b8;
  background: #f1f5f9;
  color: #475569;
  letter-spacing: 0.4px;
}
.int-doc-read-pill.is-read {
  border-color: #16a34a;
  background: #dcfce7;
  color: #15803d;
}

.int-contract-paper {
  position: relative;
  width: 248px;
  min-height: 315px;
  flex-shrink: 0;
  background: #fdf8e6;
  color: #1e293b;
  border: 3px solid #1e293b;
  box-shadow: 0 6px 0 #0f172a;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transform-origin: top center;
  animation: intContractPrint 0.46s cubic-bezier(0.22, 1, 0.36, 1) 0.24s forwards;
  will-change: transform;
  touch-action: none;
  cursor: grab;
  user-select: none;
}

.int-contract-folio-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.int-contract-folio-fields {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10px;
  color: #334155;
  border-bottom: 1px dashed #cbd5e1;
  padding-bottom: 7px;
}
.int-contract-folio-fields > div {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.int-contract-folio-fields strong {
  color: #0f172a;
  text-align: right;
}

.int-contract-clause {
  font-size: 9px;
  line-height: 1.4;
  color: #475569;
  font-style: italic;
}

.int-contract-folio-bottom {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: auto;
}

.int-sig-box-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  font-weight: 900;
  color: #334155;
  letter-spacing: 0.4px;
}

.int-sig-box {
  position: relative;
  background: #ffffff;
  border: 2px solid #475569;
  height: 124px;
  cursor: crosshair;
  overflow: hidden;
}

.int-sig-line {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 22px;
  height: 1px;
  border-bottom: 2px dashed #cbd5e1;
  pointer-events: none;
}

.int-contract-paper.is-shake {
  animation: intHintShake 0.38s ease;
  border-color: #ef4444;
}

.int-contract-paper-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px dashed #cbd5e1;
  padding-bottom: 5px;
  gap: 8px;
}

.int-contract-paper-title {
  font-size: 11px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 0.4px;
}

.int-contract-status-pill {
  font-size: 9px;
  font-weight: 900;
  padding: 2px 7px;
  border: 2px solid #b45309;
  background: #fef3c7;
  color: #92400e;
}
.int-contract-status-pill.is-signed {
  border-color: #15803d;
  background: #dcfce7;
  color: #166534;
}

.int-sig-box {
  flex: 1;
  position: relative;
  background: #ffffff;
  border: 2px solid #64748b;
  height: 54px;
  cursor: crosshair;
  overflow: hidden;
}

.int-sig-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #94a3b8;
  pointer-events: none;
  letter-spacing: 0.5px;
}

.int-sig-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.int-booth-dropoff {
  position: absolute;
  inset: 6px;
  border: 3px dashed #4ade80;
  background: rgba(20, 83, 45, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  color: #dcfce7;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.6px;
  z-index: 25;
  pointer-events: none;
  text-shadow: 0 2px 0 #052e16;
}
.int-booth-dropoff.is-visible {
  display: flex;
}
.int-booth-dropoff.is-hot {
  background: rgba(34, 197, 94, 0.85);
  border-color: #fef08a;
  color: #ffffff;
}
