@media (max-width: 768px) {
  .x-order-steps {
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .x-step-label {
    display: none;
  }

  .x-step {
    flex: 0 0 auto;
  }
}

.x-mobile-step-indicator {
  align-items: center;
  justify-content: space-between;
  padding: 12px 10px;
  margin-bottom: 15px;
  border-radius: 10px;
  background: #0f1c2f;
}

.x-mobile-step-center {
  text-align: center;
  flex: 1;
}

.x-mobile-step-count {
  font-size: 12px;
  color: #8aa4d4;
}

.x-mobile-step-title {
  font-size: 16px;
  font-weight: 600;
  color: white;
}

.x-mobile-step-arrow {
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
}


@media (max-width:768px) {

  .x-order-footer {
    flex-direction: column;
    gap: 10px;
  }

  .x-order-footer button {
    width: 100%;
  }

}


.x-mobile-step-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(15, 23, 42, .96) 0%, rgba(10, 18, 34, .96) 100%);
  border-top: 1px solid rgba(255, 255, 255, .06);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.x-mobile-step-arrow {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex: 0 0 38px;
}

.x-mobile-step-arrow:disabled {
  opacity: .35;
}

.x-mobile-step-center {
  flex: 1;
  text-align: center;
  min-width: 0;
}

.x-mobile-step-count {
  font-size: 12px;
  line-height: 1.1;
  color: #93c5fd;
  margin-bottom: 2px;
}

.x-mobile-step-title {
  font-size: 17px;
  line-height: 1.15;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {

  .x-order-modal-footer {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 14px 12px 16px;
    align-items: stretch;
  }

  .x-order-modal-footer .btn {
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
  }

  .x-order-modal-footer .btn span,
  .x-order-modal-footer .btn i {
    white-space: nowrap;
  }
}

/* ocultar texto mobile por defecto */
.label-mobile {
  display: none;
}

@media (max-width: 768px) {

  .x-order-modal-footer {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 14px 12px 16px;
    align-items: stretch;
  }

  .x-order-modal-footer .btn {
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
  }

  .label-desktop {
    display: none;
  }

  .label-mobile {
    display: inline;
  }
}

/*STEP 3*/

.x-label-dark {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 13px;
  color: #e5e7eb;
}

.x-input-group-dark .input-group-text {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, .08);
  border-right: none;
  color: #94a3b8;
  border-radius: 14px 0 0 14px;
  min-height: 44px;
}

.x-input-dark {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, .08);
  color: #e5e7eb;
  min-height: 44px;
  border-radius: 0 14px 14px 0;
}

.x-input-dark:focus {
  background: #0f172a;
  color: #fff;
  border-color: #3b82f6;
  box-shadow: none;
}

.x-input-dark::placeholder {
  color: #64748b;
}

.x-input-group-dark .input-group-append .x-btn-inline-dark {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-left: none;
  background: #1d4ed8;
  color: #fff;
  border-radius: 0 14px 14px 0;
  padding: 0 14px;
  font-weight: 600;
}

.x-input-group-dark .input-group-append .x-btn-inline-dark:hover {
  background: #1e40af;
  color: #fff;
}

.x-inline-check-dark {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 14px;
  padding: 12px 14px;
  color: #cbd5e1;
  font-size: 13px;
}

/*STEP 4*/




.x-chip-group {

  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin-bottom: 10px;

}

.x-chip {

  background: #1e293b;
  color: #cbd5e1;

  padding: 5px 12px;

  border-radius: 14px;
  font-size: 12px;

  cursor: pointer;

  border: 1px solid rgba(255, 255, 255, .08);

  transition: all .2s;

}

.x-chip:hover {

  background: #2563eb;
  color: white;

}

.x-chip.active {

  background: #3b82f6;
  color: white;
  border-color: #3b82f6;

}


/*STEP 6*/

.x-subcard-order {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 16px;
  padding: 18px;
}

.x-subcard-title {
  color: #e5e7eb;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}

.x-refacciones-list {
  min-height: 120px;
  background: #0b1320;
  border: 1px dashed rgba(255, 255, 255, .08);
  border-radius: 12px;
  padding: 12px;
}

.x-empty-refacciones {
  color: #64748b;
  font-size: 13px;
}

.x-refaccion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.x-refaccion-item:last-child {
  border-bottom: none;
}

.x-refaccion-name {
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 600;
}

.x-refaccion-meta {
  color: #94a3b8;
  font-size: 12px;
}

.x-refaccion-remove {
  background: transparent;
  border: none;
  color: #f87171;
  font-size: 14px;
  cursor: pointer;
}

.x-resumen-costos {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.x-resumen-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  color: #cbd5e1;
  font-size: 13px;
}

.x-resumen-row strong {
  color: #fff;
}

.x-total-row strong {
  color: #60a5fa;
  font-size: 16px;
}

.x-saldo-row strong {
  color: #34d399;
  font-size: 16px;
}




.x-order-summary-shell {
  padding: 4px 2px 2px;
}

.x-order-summary-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.x-order-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(59, 130, 246, .12);
  border: 1px solid rgba(59, 130, 246, .22);
  color: #cfe3ff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .03em;
  white-space: nowrap;
}

.x-summary-card {
  background: linear-gradient(180deg, rgba(11, 23, 52, .95), rgba(6, 16, 40, .96));
  border: 1px solid rgba(74, 108, 180, .18);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
  overflow: hidden;
}

.x-summary-card__head {
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.x-summary-card__head h6 {
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.x-summary-card__body {
  padding: 16px;
  color: #d9e3f3;
  font-size: 14px;
  line-height: 1.55;
}

.x-summary-sep {
  border-color: rgba(255, 255, 255, .08);
  margin: 14px 0;
}

.x-resumen-costos-pro {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.x-cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .05);
}

.x-cost-row span {
  color: #b9c8e3;
}

.x-cost-row strong {
  color: #fff;
  font-weight: 700;
}

.x-cost-row--total {
  background: rgba(59, 130, 246, .12);
  border-color: rgba(59, 130, 246, .20);
}

.x-cost-row--saldo {
  background: rgba(16, 185, 129, .10);
  border-color: rgba(16, 185, 129, .20);
}

.x-check-summary-pro {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.x-check-group-pro h6 {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #91a4c7;
}

.x-badge-wrap-pro {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.x-check-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
}

.x-check-badge--ok {
  background: rgba(16, 185, 129, .12);
  color: #92f0bd;
  border-color: rgba(16, 185, 129, .22);
}

.x-check-badge--bad {
  background: rgba(239, 68, 68, .12);
  color: #ffb4b4;
  border-color: rgba(239, 68, 68, .22);
}

.x-check-badge--neutral {
  background: rgba(148, 163, 184, .10);
  color: #d6dfeb;
  border-color: rgba(148, 163, 184, .18);
}

.x-ref-mini-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.x-ref-mini-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .05);
}

.x-ref-mini-item__name {
  color: #fff;
  font-weight: 600;
}

.x-ref-mini-item__meta {
  color: #9fb1d0;
  font-size: 12px;
}

.x-ref-mini-item__total {
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.x-signature-card .x-summary-card__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.x-signature-wrap {
  min-height: 180px;
  padding: 10px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .03);
}

.x-signature-actions {
  display: flex;
  justify-content: flex-end;
}

.x-summary-metric {
  background: linear-gradient(180deg, rgba(17, 30, 62, .95), rgba(9, 19, 45, .96));
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 18px;
  padding: 18px 18px 14px;
  min-height: 104px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.x-summary-metric__label {
  color: #8d9bb6;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
}

.x-summary-metric__value {
  color: #fff;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 6px;
}

.x-summary-metric__value--success {
  color: #19d69b;
}

.x-summary-metric__value--danger {
  color: #ff5c5c;
}

.x-summary-progress-card {
  background: linear-gradient(180deg, rgba(17, 30, 62, .95), rgba(9, 19, 45, .96));
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 18px;
  padding: 16px 16px 14px;
}

.x-summary-progress-card__label {
  color: #8d9bb6;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
}

.x-summary-progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  overflow: hidden;
}

.x-summary-progress .progress-bar {
  background: linear-gradient(90deg, #1ad598, #26b7ff);
  border-radius: 999px;
}

.x-summary-progress-note {
  color: #b5c4de;
  font-size: 13px;
}

@media (max-width: 991px) {
  .x-order-summary-top {
    flex-direction: column;
    align-items: flex-start;
  }
}



/* .x-draft-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  color: #c7d4ea;
  font-size: 12px;
  font-weight: 600;
  margin: 8px 0 0;
}

.x-draft-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
  box-shadow: 0 0 0 0 rgba(100, 116, 139, .35);
}

.x-draft-status.is-saving .x-draft-status__dot {
  background: #f59e0b;
  box-shadow: 0 0 0 6px rgba(245, 158, 11, .10);
}

.x-draft-status.is-saved .x-draft-status__dot {
  background: #10b981;
  box-shadow: 0 0 0 6px rgba(16, 185, 129, .10);
}

.x-draft-status.is-idle .x-draft-status__dot {
  background: #64748b;
} */

.x-draft-toast {
  position: sticky;
  top: 10px;
  z-index: 20;
  margin: 0 0 12px auto;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(9, 16, 34, .94);
  border: 1px solid rgba(255, 255, 255, .08);
  color: #d9e3f3;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  opacity: 0;
  transform: translateY(-8px) scale(.98);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.x-draft-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.x-draft-toast__icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, .14);
  color: #8ef0b5;
  border: 1px solid rgba(16, 185, 129, .24);
  transform: scale(.9);
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.x-draft-toast.is-visible .x-draft-toast__icon {
  transform: scale(1);
}

.x-draft-toast.is-saving .x-draft-toast__icon {
  background: rgba(245, 158, 11, .14);
  color: #ffd27a;
  border-color: rgba(245, 158, 11, .24);
}

.x-draft-toast.is-error .x-draft-toast__icon {
  background: rgba(239, 68, 68, .14);
  color: #ffb4b4;
  border-color: rgba(239, 68, 68, .24);
}

.x-draft-toast.is-saving .x-draft-toast__icon i {
  animation: xDraftPulse .9s infinite ease-in-out;
}

.x-draft-toast.is-success .x-draft-toast__icon i {
  animation: xDraftPop .28s ease;
}

@keyframes xDraftPulse {
  0% {
    transform: scale(.92);
    opacity: .75;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }

  100% {
    transform: scale(.92);
    opacity: .75;
  }
}

@keyframes xDraftPop {
  0% {
    transform: scale(.4) rotate(-18deg);
    opacity: 0;
  }

  70% {
    transform: scale(1.15) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: scale(1);
  }
}


.x-order-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 10px 0 14px;
}

.x-order-toolbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.x-draft-toast {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(9, 16, 34, .94);
  border: 1px solid rgba(255, 255, 255, .08);
  color: #d9e3f3;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  opacity: 0;
  transform: translateY(-8px) scale(.98);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.x-draft-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.x-draft-toast__icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, .14);
  color: #8ef0b5;
  border: 1px solid rgba(16, 185, 129, .24);
  transform: scale(.9);
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.x-draft-toast.is-visible .x-draft-toast__icon {
  transform: scale(1);
}

.x-draft-toast.is-saving .x-draft-toast__icon {
  background: rgba(245, 158, 11, .14);
  color: #ffd27a;
  border-color: rgba(245, 158, 11, .24);
}

.x-draft-toast.is-error .x-draft-toast__icon {
  background: rgba(239, 68, 68, .14);
  color: #ffb4b4;
  border-color: rgba(239, 68, 68, .24);
}

.x-draft-toast.is-saving .x-draft-toast__icon i {
  animation: xDraftPulse .9s infinite ease-in-out;
}

.x-draft-toast.is-success .x-draft-toast__icon i {
  animation: xDraftPop .28s ease;
}

@keyframes xDraftPulse {
  0% {
    transform: scale(.92);
    opacity: .75;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }

  100% {
    transform: scale(.92);
    opacity: .75;
  }
}

@keyframes xDraftPop {
  0% {
    transform: scale(.4) rotate(-18deg);
    opacity: 0;
  }

  70% {
    transform: scale(1.15) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .x-order-toolbar {
    justify-content: flex-start;
  }

  .x-order-toolbar__right {
    width: 100%;
  }
}



.x-evidencia-box {
  border: 1px solid #e4e9f2;
  border-radius: 12px;
  /* background: #fff; */
  padding: 14px;
}

.x-evidencia-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border: 2px dashed #c8d3e6;
  border-radius: 12px;
  /* background: #f8fbff; */
  cursor: pointer;
  transition: all .2s ease;
  text-align: center;
  margin-bottom: 12px;
}

.x-evidencia-upload:hover {
  border-color: #5b9df9;

}

.x-evidencia-upload-icon {
  font-size: 28px;
  margin-bottom: 8px;
  color: #e5e7eb;
}

.x-evidencia-upload-text {
  font-weight: 700;
  color: #e5e7eb;
}

.x-evidencia-upload-sub {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

.x-evidencia-topbar {
  margin-bottom: 10px;
}

.x-evidencia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 12px;
}

.x-evidencia-item {
  position: relative;
}

.x-evidencia-thumb-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;

  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.x-evidencia-thumb {
  width: 100%;
  height: 145px;
  object-fit: cover;
  display: block;
}

.x-evidencia-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: rgba(0, 0, 0, .68);

  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
}

.x-evidencia-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(220, 38, 38, .92);

  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.x-evidencia-remove:hover {
  background: #b91c1c;
}



.x-evidencia-counter {
  margin: 14px 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: #aab7cf;
}

.x-evidencia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.x-evidencia-item {
  position: relative;
}

.x-evidencia-thumb {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.x-evidencia-thumb:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .24);
  border-color: rgba(59, 130, 246, .35);
}

.x-evidencia-thumb img {
  width: 100%;
  height: 135px;
  object-fit: cover;
  display: block;
}

.x-evidencia-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 3;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(8, 15, 30, .78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .08);
}

.x-evidencia-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.x-evidencia-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(8, 15, 30, .78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: transform .18s ease, background .18s ease;
}

.x-evidencia-btn:hover {
  transform: scale(1.08);
}

.x-evidencia-btn--view:hover {
  background: rgba(37, 99, 235, .88);
}

.x-evidencia-btn--remove:hover {
  background: rgba(220, 38, 38, .88);
}

.x-evidencia-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 10, 22, .66), rgba(4, 10, 22, .08));
  opacity: 0;
  transition: opacity .2s ease;
  z-index: 2;
}

.x-evidencia-thumb:hover .x-evidencia-overlay {
  opacity: 1;
}

.x-preview-modal {
  background: linear-gradient(180deg, #0c1830, #081121);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px;
}

#imgPreviewEvidenciaFull {
  max-height: 72vh;
  object-fit: contain;
  border-radius: 16px;
}

.x-preview-viewer {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  gap: 14px;
}

.x-preview-stage {
  min-height: 68vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06);
  padding: 16px;
}

.x-preview-stage img {
  max-height: 64vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 14px;
}

.x-preview-nav {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  transition: transform .18s ease, background .18s ease;
}

.x-preview-nav:hover {
  transform: scale(1.06);
  background: rgba(37, 99, 235, .85);
}

.x-preview-caption {
  margin-top: 14px;
  text-align: center;
  color: #c7d4ea;
  font-size: 13px;
  font-weight: 700;
}

.x-evidencia-click {
  cursor: zoom-in;
}

.x-evidencia-thumb:hover {
  transform: translateY(-3px) scale(1.01);
}

.x-preview-stage img {
  cursor: zoom-in;
  transition: transform .25s ease;
}

.x-preview-stage img.zoomed {
  transform: scale(1.6);
  cursor: zoom-out;
}



.x-summary-evidencias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.x-summary-evidencia-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
}

.x-summary-evidencia-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.x-summary-evidencia-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(8, 15, 30, .78);
  border: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.x-summary-stack,
.x-summary-sidebar {
  display: flex;
  flex-direction: column;
}

.x-summary-sidebar {
  position: sticky;
  top: 10px;
}

@media (max-width: 991.98px) {
  .x-summary-sidebar {
    position: static;
  }
}

.x-summary-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.x-summary-info-item {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06);
}

.x-summary-info-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #8ea2c3;
  margin-bottom: 4px;
}

.x-summary-info-value {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #edf4ff;
  line-height: 1.45;
}

.x-signature-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.x-signature-panel__hint {
  font-size: 12px;
  font-weight: 600;
  color: #8ea2c3;
}

.x-signature-wrap {
  min-height: 220px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .025));
  border: 1px dashed rgba(255, 255, 255, .14);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* #sig {
  width: 100%;
  min-height: 180px;
  background: #f8fafc;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .05);
}

#sig canvas {
  width: 100% !important;
  height: 180px !important;
  border-radius: 14px;
  background: #f8fafc;
} */

#sig {
  width: 100%;
  height: 220px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, .35);
  border-radius: 14px;
  overflow: hidden;
}

#sig canvas {
  width: 100% !important;
  height: 220px !important;
  display: block;
  cursor: crosshair;
}

.x-signature-actions {
  display: flex;
  justify-content: flex-end;
}

#sig {
  width: 100%;
  height: 220px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

#sig canvas {
  width: 100% !important;
  height: 220px !important;
  display: block !important;
  cursor: crosshair;
}

.x-btn-signature-clear {
  border: 1px solid rgba(239, 68, 68, .22);
  background: rgba(239, 68, 68, .08);
  color: #ff7d7d;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 700;
  transition: all .18s ease;
}

.x-btn-signature-clear:hover {
  background: rgba(239, 68, 68, .16);
  color: #fff;
}

/* =============================================
   PASO 6 - COSTOS PRO
============================================= */

.x-cost-step {
  display: grid;
  gap: 18px;
}

.x-cost-hero {
  border: 1px solid rgba(96, 165, 250, .18);
  border-radius: 22px;
  padding: 20px;
  background:
    radial-gradient(circle at top right, rgba(47, 107, 255, .16), transparent 32%),
    linear-gradient(180deg, rgba(9, 23, 51, .96), rgba(5, 13, 31, .98));
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.x-cost-eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: #93c5fd;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.x-cost-hero h3 {
  margin: 0;
  color: #f5f7fb;
  font-size: 22px;
  font-weight: 900;
}

.x-cost-hero p {
  margin: 6px 0 0;
  color: #9fb0d0;
  font-size: 13px;
  font-weight: 600;
}

.x-cost-hero__total {
  min-width: 220px;
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(159, 176, 208, .12);
  text-align: right;
}

.x-cost-hero__total span {
  display: block;
  color: #9fb0d0;
  font-size: 12px;
  font-weight: 750;
}

.x-cost-hero__total strong {
  display: block;
  margin-top: 4px;
  color: #60a5fa;
  font-size: 28px;
  font-weight: 950;
}

.x-cost-hero__total small {
  color: #cbd5e1;
  font-weight: 700;
}

.x-cost-hero__total small b {
  color: #fb923c;
}

.x-cost-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.x-cost-kpi {
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(159, 176, 208, .12);
}

.x-cost-kpi span {
  display: block;
  color: #9fb0d0;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 5px;
}

.x-cost-kpi strong {
  color: #f5f7fb;
  font-size: 18px;
  font-weight: 950;
}

.x-cost-kpi--success strong {
  color: #34d399;
}

.x-cost-kpi--warning strong {
  color: #fb923c;
}

.x-cost-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .75fr);
  gap: 14px;
  align-items: stretch;
}

.x-cost-card {
  border-radius: 20px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(12, 26, 56, .78), rgba(6, 17, 38, .92));
  border: 1px solid rgba(159, 176, 208, .13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

.x-cost-card__head {
  padding-bottom: 11px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(159, 176, 208, .10);
}

.x-cost-card__head--between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.x-cost-card__head h5 {
  margin: 0;
  color: #f5f7fb;
  font-size: 14px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
}

.x-cost-card__head h5 i {
  color: #93c5fd;
}

.x-cost-card__head p {
  margin: 5px 0 0;
  color: #9fb0d0;
  font-size: 12px;
  font-weight: 600;
}

.x-cost-chip {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(47, 107, 255, .12);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, .18);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.x-cost-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.x-cost-field {
  display: grid;
  gap: 7px;
}

.x-cost-field--full {
  grid-column: span 2;
}

.x-cost-field label {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
  margin: 0;
}

.x-cost-input {
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(159, 176, 208, .14);
  background: rgba(255, 255, 255, .035);
}

.x-cost-input span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #93c5fd;
  font-weight: 900;
  background: rgba(47, 107, 255, .12);
  border-right: 1px solid rgba(159, 176, 208, .12);
}

.x-cost-input .form-control,
.x-cost-field .form-control {
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(159, 176, 208, .14);
  background: rgba(255, 255, 255, .035);
  color: #f5f7fb;
  font-weight: 750;
}

.x-cost-input .form-control {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.x-cost-input .form-control:focus,
.x-cost-field .form-control:focus {
  box-shadow: none;
  border-color: rgba(96, 165, 250, .45);
}

.x-cost-summary {
  display: grid;
  gap: 0;
}

.x-cost-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(159, 176, 208, .08);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 750;
}

.x-cost-summary__row strong {
  color: #f5f7fb;
  font-weight: 950;
}

.x-cost-summary__row--total strong {
  color: #60a5fa;
  font-size: 16px;
}

.x-cost-summary__row--saldo strong {
  color: #fb923c;
  font-size: 16px;
}

.x-ref-inline-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px 170px;
  gap: 12px;
  align-items: end;
}

.x-ref-list-wrap {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.x-ref-empty {
  min-height: 92px;
  border-radius: 16px;
  border: 1px dashed rgba(159, 176, 208, .18);
  background: rgba(255, 255, 255, .02);
  color: #9fb0d0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 750;
}

/* Si tus refacciones usan .x-refaccion-item */
.x-refaccion-item {
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(159, 176, 208, .12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.x-refaccion-item__info {
  display: grid;
  gap: 4px;
}

.x-refaccion-item__info strong {
  color: #f5f7fb;
  font-size: 13px;
  font-weight: 850;
}

.x-refaccion-item__info small {
  color: #9fb0d0;
  font-size: 12px;
  font-weight: 650;
}

@media (max-width: 991px) {
  .x-cost-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .x-cost-hero__total {
    min-width: 0;
    text-align: left;
  }

  .x-cost-layout {
    grid-template-columns: 1fr;
  }

  .x-ref-inline-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {

  .x-cost-kpis,
  .x-cost-form-grid {
    grid-template-columns: 1fr;
  }

  .x-cost-field--full {
    grid-column: span 1;
  }
}

/* =============================================
   PASO 5 - FALLA Y DIAGNÓSTICO PRO
============================================= */

.x-diagnosis-step {
  display: grid;
  gap: 18px;
}

.x-diagnosis-hero {
  border: 1px solid rgba(96, 165, 250, .18);
  border-radius: 22px;
  padding: 20px;
  background:
    radial-gradient(circle at top right, rgba(47, 107, 255, .16), transparent 32%),
    linear-gradient(180deg, rgba(9, 23, 51, .96), rgba(5, 13, 31, .98));
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.x-diagnosis-eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: #93c5fd;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.x-diagnosis-hero h3 {
  margin: 0;
  color: #f5f7fb;
  font-size: 22px;
  font-weight: 900;
}

.x-diagnosis-hero p {
  margin: 6px 0 0;
  color: #9fb0d0;
  font-size: 13px;
  font-weight: 600;
}

.x-diagnosis-hero__icon {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 22px;
  background: rgba(47, 107, 255, .14);
  border: 1px solid rgba(96, 165, 250, .18);
  color: #93c5fd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.x-diagnosis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.x-diagnosis-card {
  border-radius: 20px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(12, 26, 56, .78), rgba(6, 17, 38, .92));
  border: 1px solid rgba(159, 176, 208, .13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

.x-diagnosis-card--primary {
  border-color: rgba(59, 130, 246, .22);
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, .10), transparent 30%),
    linear-gradient(180deg, rgba(12, 26, 56, .82), rgba(6, 17, 38, .94));
}

.x-diagnosis-card--wide {
  grid-column: span 2;
}

.x-diagnosis-card__head {
  padding-bottom: 11px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(159, 176, 208, .10);
}

.x-diagnosis-card__head h5 {
  margin: 0;
  color: #f5f7fb;
  font-size: 14px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
}

.x-diagnosis-card__head h5 i {
  color: #93c5fd;
}

.x-diagnosis-card__head p {
  margin: 5px 0 0;
  color: #9fb0d0;
  font-size: 12px;
  font-weight: 600;
}

.x-diagnosis-textarea-wrap textarea {
  width: 100%;
  min-height: 155px;
  resize: vertical;
  border-radius: 16px;
  border: 1px solid rgba(159, 176, 208, .14);
  background: rgba(255, 255, 255, .035);
  color: #f5f7fb;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
  padding: 14px 15px;
}

.x-diagnosis-card--wide .x-diagnosis-textarea-wrap textarea {
  min-height: 125px;
}

.x-diagnosis-textarea-wrap textarea:focus {
  border-color: rgba(96, 165, 250, .45);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, .12);
  outline: none;
}

.x-diagnosis-textarea-wrap textarea::placeholder {
  color: rgba(159, 176, 208, .62);
}

.x-diagnosis-tips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.x-diagnosis-tip {
  border-radius: 16px;
  padding: 13px 15px;
  background: rgba(255, 255, 255, .025);
  border: 1px solid rgba(159, 176, 208, .11);
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
}

.x-diagnosis-tip i {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 11px;
  background: rgba(47, 107, 255, .12);
  color: #93c5fd;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 991px) {
  .x-diagnosis-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .x-diagnosis-hero__icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    font-size: 22px;
  }

  .x-diagnosis-grid,
  .x-diagnosis-tips {
    grid-template-columns: 1fr;
  }

  .x-diagnosis-card--wide {
    grid-column: span 1;
  }
}

/* =============================================
   PASO 4 - REVISIÓN COMPACTA
============================================= */

.x-review-step4 {
  display: grid;
  gap: 16px;
}

.x-review4-head {
  border: 1px solid rgba(96, 165, 250, .18);
  border-radius: 22px;
  padding: 20px;
  background:
    radial-gradient(circle at top right, rgba(47, 107, 255, .16), transparent 32%),
    linear-gradient(180deg, rgba(9, 23, 51, .96), rgba(5, 13, 31, .98));
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.x-review4-head span {
  display: inline-flex;
  margin-bottom: 8px;
  color: #93c5fd;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.x-review4-head h3 {
  margin: 0;
  color: #f5f7fb;
  font-size: 22px;
  font-weight: 900;
}

.x-review4-head p {
  margin: 6px 0 0;
  color: #9fb0d0;
  font-size: 13px;
  font-weight: 600;
}

.x-review4-head__icon {
  width: 68px;
  height: 68px;
  min-width: 68px;
  border-radius: 22px;
  background: rgba(47, 107, 255, .14);
  border: 1px solid rgba(96, 165, 250, .18);
  color: #93c5fd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.x-review4-card {
  border-radius: 20px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(12, 26, 56, .78), rgba(6, 17, 38, .92));
  border: 1px solid rgba(159, 176, 208, .13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

.x-review4-card__head {
  padding-bottom: 11px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(159, 176, 208, .10);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.x-review4-card__head h5 {
  margin: 0;
  color: #f5f7fb;
  font-size: 15px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
}

.x-review4-card__head h5 i {
  color: #93c5fd;
}

.x-review4-card__head p {
  margin: 5px 0 0;
  color: #9fb0d0;
  font-size: 12px;
  font-weight: 600;
}

.x-review4-chip {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(47, 107, 255, .12);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, .18);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}



/* GRID INFERIOR */
.x-review4-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

/* ACCESORIOS */
.x-accessories-wrap {
  display: grid;
  gap: 12px;
}

.x-accessory-item {
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, .025);
  border: 1px solid rgba(159, 176, 208, .11);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 88px;
  gap: 10px;
}

.x-accessory-field {
  display: grid;
  gap: 6px;
}

.x-accessory-field label {
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 850;
  margin: 0;
}

.x-accessory-field .form-control {
  height: 40px;
  border-radius: 13px;
  border: 1px solid rgba(159, 176, 208, .14);
  background: rgba(255, 255, 255, .035);
  color: #f5f7fb;
  font-weight: 700;
}

/* EVIDENCIAS */
.x-evid-upload-box {
  margin-bottom: 14px;
}

.x-evid-upload-label {
  min-height: 96px;
  border-radius: 18px;
  border: 1px dashed rgba(96, 165, 250, .28);
  background: rgba(47, 107, 255, .055);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  cursor: pointer;
  transition: .18s ease;
}

.x-evid-upload-label:hover {
  border-color: rgba(96, 165, 250, .45);
  background: rgba(47, 107, 255, .09);
}

.x-evid-upload-label__icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 16px;
  background: rgba(47, 107, 255, .14);
  color: #93c5fd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.x-evid-upload-label strong {
  display: block;
  color: #f5f7fb;
  font-size: 14px;
  font-weight: 900;
}

.x-evid-upload-label small {
  display: block;
  color: #9fb0d0;
  font-size: 12px;
  font-weight: 650;
  margin-top: 3px;
}

.x-evid-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 10px;
}

.x-evid-preview-grid img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(159, 176, 208, .14);
}

.x-review4-empty {
  min-height: 90px;
  border-radius: 16px;
  border: 1px dashed rgba(159, 176, 208, .18);
  background: rgba(255, 255, 255, .02);
  color: #9fb0d0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 750;
  padding: 18px;
}

/* RESPONSIVE */
@media (max-width: 1199px) {

  .x-check-grid-compact,
  #checklistDinamicoWrap {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .x-review4-head {
    flex-direction: column;
    align-items: stretch;
  }

  .x-review4-head__icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    font-size: 22px;
  }

  .x-review4-bottom-grid {
    grid-template-columns: 1fr;
  }

  .x-check-grid-compact,
  #checklistDinamicoWrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .x-accessory-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {

  .x-check-grid-compact,
  #checklistDinamicoWrap {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   PASO 5 - BOTONES DE ESCRITURA RÁPIDA
============================================= */

.x-quick-write {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.x-quick-chip {
  border: 1px solid rgba(96, 165, 250, .20);
  background: rgba(47, 107, 255, .10);
  color: #93c5fd;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: .16s ease;
}

.x-quick-chip:hover {
  background: rgba(47, 107, 255, .18);
  border-color: rgba(96, 165, 250, .38);
  color: #f5f7fb;
  transform: translateY(-1px);
}

.x-quick-chip:active {
  transform: scale(.98);
}

/* =============================================
   PASO 1 - RECEPCIÓN PRO
============================================= */

.x-reception-step {
  display: grid;
  gap: 18px;
}

.x-reception-hero {
  border: 1px solid rgba(96, 165, 250, .18);
  border-radius: 22px;
  padding: 20px;
  background:
    radial-gradient(circle at top right, rgba(47, 107, 255, .16), transparent 32%),
    linear-gradient(180deg, rgba(9, 23, 51, .96), rgba(5, 13, 31, .98));
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.x-reception-eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: #93c5fd;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.x-reception-hero h3 {
  margin: 0;
  color: #f5f7fb;
  font-size: 22px;
  font-weight: 900;
}

.x-reception-hero p {
  margin: 6px 0 0;
  color: #9fb0d0;
  font-size: 13px;
  font-weight: 600;
}

.x-reception-hero__icon {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 22px;
  background: rgba(47, 107, 255, .14);
  border: 1px solid rgba(96, 165, 250, .18);
  color: #93c5fd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.x-reception-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, .75fr);
  gap: 14px;
  align-items: stretch;
}

.x-reception-card {
  border-radius: 20px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(12, 26, 56, .78), rgba(6, 17, 38, .92));
  border: 1px solid rgba(159, 176, 208, .13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

.x-reception-card__head {
  padding-bottom: 11px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(159, 176, 208, .10);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.x-reception-card__head h5 {
  margin: 0;
  color: #f5f7fb;
  font-size: 15px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
}

.x-reception-card__head h5 i {
  color: #93c5fd;
}

.x-reception-card__head p {
  margin: 5px 0 0;
  color: #9fb0d0;
  font-size: 12px;
  font-weight: 600;
}

.x-reception-chip {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(47, 107, 255, .12);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, .18);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.x-reception-chip--warning {
  background: rgba(245, 158, 11, .12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, .22);
}

.x-reception-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.x-reception-form-grid--security {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.x-reception-inner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.x-reception-field {
  display: grid;
  gap: 7px;
}

.x-reception-field label {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 850;
  margin: 0;
}

.x-reception-field .form-control,
.x-reception-card .form-control {
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(159, 176, 208, .14);
  background: rgba(255, 255, 255, .035);
  color: #f5f7fb;
  font-weight: 750;
}

.x-reception-field .form-control:focus,
.x-reception-card .form-control:focus {
  border-color: rgba(96, 165, 250, .45);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, .12);
}

.x-new-client-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(159, 176, 208, .11);
  background: rgba(255, 255, 255, .025);
}

.x-reception-toggle,
.x-security-authorization {
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .025);
  border: 1px solid rgba(159, 176, 208, .11);
  display: flex;
  align-items: center;
  gap: 10px;
}

.x-reception-toggle .form-check-input,
.x-security-authorization .form-check-input {
  position: static;
  margin: 0;
}

.x-reception-toggle label,
.x-security-authorization label {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 750;
}

.x-input-group--button {
  display: flex;
}

.x-input-group--button .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.x-btn-pattern {
  height: 42px;
  border-radius: 0 14px 14px 0;
  border: 1px solid rgba(96, 165, 250, .35);
  background: rgba(47, 107, 255, .16);
  color: #f5f7fb;
  font-weight: 850;
  padding: 0 14px;
}

.x-btn-pattern:hover {
  background: rgba(47, 107, 255, .26);
  color: #fff;
}

/* Responsive */
@media (max-width: 1199px) {
  .x-reception-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .x-reception-form-grid--security {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .x-reception-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .x-reception-hero__icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    font-size: 22px;
  }

  .x-reception-grid,
  .x-reception-inner-grid,
  .x-reception-form-grid,
  .x-reception-form-grid--security {
    grid-template-columns: 1fr;
  }
}

#modalNuevaOrden .x-step {
  cursor: pointer;
}

#modalNuevaOrden .x-step.is-locked {
  opacity: .45;
  cursor: not-allowed;
}

/* #modalNuevaOrden .x-step.is-done .x-step-circle {

  background: rgba(34, 197, 94, .18);
  color: #22c55e;
  border-color: rgba(34, 197, 94, .35);
}

#modalNuevaOrden .x-step.is-locked .x-step-circle {
  background: rgba(148, 163, 184, .12);
  color: #64748b;
} */

#modalNuevaOrden .x-step {
  cursor: pointer;
}

#modalNuevaOrden .x-step.is-locked {
  opacity: .45;
  cursor: not-allowed;
}

#modalNuevaOrden .x-step.is-done .x-step-circle {
  background: rgb(22 163 74);
  color: #ffffff;
  /* border-color: rgba(34, 197, 94, .35); */
}

#modalNuevaOrden .x-step.is-locked .x-step-circle {
  background: rgba(148, 163, 184, .12);
  color: #64748b;
}