/* ABM Contratos — wizard operativo v1 (modal #ndModalCon) */

/* Popup clásico (solo si inline ABM desactivado) */
#ndModalCon.con-wizard-v1.nd-modal-backdrop.is-open:not(.nd-modal-backdrop--inline-con) {
  background: rgba(8, 7, 12, 0.78);
  backdrop-filter: blur(10px);
}

html:not(.theme-f10) #ndModalCon.con-wizard-v1.nd-modal-backdrop.is-open:not(.nd-modal-backdrop--inline-con) {
  background: rgba(15, 12, 24, 0.55);
  backdrop-filter: blur(8px);
}

#ndModalCon .nd-modal--con-v2 {
  max-width: min(920px, 100vw - 32px);
  max-height: min(92vh, 960px);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

html:not(.theme-f10) #ndModalCon .nd-modal--con-v2 {
  background: var(--panel-bg, #faf8f6);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 64px -28px rgba(0, 0, 0, 0.28);
}

/* Hero */
#ndModalCon .pp-hero.con-wizard-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px 18px;
  padding: 20px 26px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.14) 0%, transparent 100%);
  flex-shrink: 0;
  align-items: start;
}

html:not(.theme-f10) #ndModalCon .pp-hero.con-wizard-hero {
  border-bottom-color: rgba(0, 0, 0, 0.08);
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.08) 0%, transparent 100%);
}

#ndModalCon .con-wizard-hero__avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: #4c1d95;
  background: linear-gradient(135deg, #ddd6fe 0%, #a78bfa 55%, #8b5cf6 100%);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.34), 0 0 22px 3px rgba(139, 92, 246, 0.18);
  flex-shrink: 0;
}

html.theme-f10 #ndModalCon .con-wizard-hero__avatar {
  color: #ede9fe;
}

#ndModalCon .pp-hero-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#ndModalCon .pp-hero-eyebrow {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a78bfa;
  line-height: 1;
}

html:not(.theme-f10) #ndModalCon .pp-hero-eyebrow {
  color: #7c3aed;
}

#ndModalCon #contratoFormTitulo {
  margin: 0;
  font-size: 1.34rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.012em;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.theme-f10 #ndModalCon #contratoFormTitulo {
  color: #f7f1e8;
}

#ndModalCon .pp-hero-meta {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted, #6b7280);
  line-height: 1.4;
}

html.theme-f10 #ndModalCon .pp-hero-meta {
  color: #a39e95;
}

#ndModalCon .con-wizard-hero__meta {
  font-weight: 500;
}

#ndModalCon .con-wizard-hero__plazo {
  font-size: 0.8rem;
  color: var(--muted-soft, #9ca3af);
}

html.theme-f10 #ndModalCon .con-wizard-hero__plazo {
  color: #807a72;
}

#ndModalCon.con-wizard-v1 #contratoFormModoHint {
  display: none;
}

#ndModalCon .pp-hero-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: start;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#ndModalCon .pp-pill.con-wizard-step-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted, #6b7280);
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  white-space: nowrap;
}

html.theme-f10 #ndModalCon .pp-pill.con-wizard-step-badge {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(167, 139, 250, 0.28);
}

#ndModalCon .pp-close.nd-modal__close {
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  border-radius: 10px;
  font-size: 1.15rem;
  line-height: 1;
}

/* Scroll + form — el scroll vive en .con-wizard-stack; acá solo reparte alto */
#ndModalCon .nd-modal-con-v2__scroll {
  flex: 1 1 0%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  padding: 16px 22px 0;
  display: flex;
  flex-direction: column;
}

#ndModalCon .con-wizard-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 0;
}

/* Stepper — superficie pp-card (paridad Prop/Inq) */
#ndModalCon .con-wizard-stepper {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 12px 14px;
  margin: 0 0 14px;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: thin;
  flex-shrink: 0;
  min-height: 4.75rem;
  box-sizing: border-box;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--panel-bg, #faf8f6);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.5), 0 16px 36px -20px rgba(0, 0, 0, 0.12);
}

html.theme-f10 #ndModalCon .con-wizard-stepper {
  background: linear-gradient(165deg, #2c2927 0%, #282522 55%, #1a1816 100%);
  border-color: rgba(255, 255, 255, 0.055);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.025), 0 16px 36px -20px rgba(0, 0, 0, 0.65);
}

#ndModalCon .con-wizard-stepper__item {
  flex: 1 1 0;
  flex-shrink: 0;
  min-width: 4.5rem;
  min-height: 3.35rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted, #6b7280);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  font: inherit;
}

html:not(.theme-f10) #ndModalCon .con-wizard-stepper__item {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.02);
}

#ndModalCon .con-wizard-stepper__item:hover {
  border-color: rgba(167, 139, 250, 0.35);
}

#ndModalCon .con-wizard-stepper__num {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
}

html:not(.theme-f10) #ndModalCon .con-wizard-stepper__num {
  background: rgba(0, 0, 0, 0.06);
}

#ndModalCon .con-wizard-stepper__lbl {
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
}

#ndModalCon .con-wizard-stepper__item--active {
  border-color: rgba(167, 139, 250, 0.55);
  background: rgba(139, 92, 246, 0.14);
  color: var(--text, #1a1a1a);
}

html.theme-f10 #ndModalCon .con-wizard-stepper__item--active {
  color: #ede9fe;
}

#ndModalCon .con-wizard-stepper__item--active .con-wizard-stepper__num {
  background: rgba(167, 139, 250, 0.35);
  color: #fff;
}

#ndModalCon .con-wizard-stepper__item--done {
  border-color: rgba(167, 139, 250, 0.28);
  color: var(--text, #374151);
}

html.theme-f10 #ndModalCon .con-wizard-stepper__item--done {
  color: #c4b5fd;
}

#ndModalCon .con-wizard-stepper__item--done .con-wizard-stepper__num {
  background: rgba(16, 185, 129, 0.22);
  color: #6ee7b7;
}

/* Lead bajo stepper */
#ndModalCon.nd-modal-backdrop--inline-con .con-wizard-step:not(.con-wizard-step--legajo) .pp-card__body {
  padding-left: 24px;
  padding-right: 24px;
  padding-bottom: 24px;
}

#ndModalCon .con-wizard-step-lead {
  margin: 0 0 16px;
  padding: 0 2px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted, #6b7280);
  flex-shrink: 0;
}

html.theme-f10 #ndModalCon .con-wizard-step-lead {
  color: #a39e95;
}

/* Step cards */
#ndModalCon .con-wizard-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 4px 2px 24px;
  max-width: none;
  margin: 0;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

#ndModalCon.nd-modal-backdrop--inline-con .con-wizard-stack {
  padding-bottom: 28px;
}

#ndModalCon.nd-modal-backdrop--inline-con .con-wizard-stepper,
#ndModalCon.nd-modal-backdrop--inline-con .con-wizard-step-lead,
#ndModalCon.nd-modal-backdrop--inline-con .con-wizard-step.pp-card {
  width: 100%;
  max-width: none;
}

#ndModalCon .con-wizard-step.pp-card {
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--panel-bg, #faf8f6);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.5), 0 16px 36px -20px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: visible;
  margin: 2px 0 0;
}

html.theme-f10 #ndModalCon .con-wizard-step.pp-card {
  background: linear-gradient(165deg, #2c2927 0%, #282522 55%, #1a1816 100%);
  border-color: rgba(255, 255, 255, 0.055);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.025), 0 16px 36px -20px rgba(0, 0, 0, 0.65);
}

#ndModalCon .con-wizard-step.hidden {
  display: none !important;
}

/* Pasos 1–4: el stepper + lead ya contextualizan; ocultar título duplicado de la card */
#ndModalCon .con-wizard-step:not(.con-wizard-step--legajo) .pp-card__head {
  display: none;
}

#ndModalCon .con-wizard-step:not(.con-wizard-step--legajo) .pp-card__body {
  padding-top: 18px;
}

#ndModalCon .con-wizard-step--multi {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

#ndModalCon .con-wizard-step--multi .con-wizard-subcard {
  margin: 0;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--panel-bg, #faf8f6);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.5), 0 16px 36px -20px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: visible;
}

html.theme-f10 #ndModalCon .con-wizard-step--multi .con-wizard-subcard {
  background: linear-gradient(165deg, #2c2927 0%, #282522 55%, #1a1816 100%);
  border-color: rgba(255, 255, 255, 0.055);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.025), 0 16px 36px -20px rgba(0, 0, 0, 0.65);
}

#ndModalCon .con-wizard-step--multi .pp-card__num {
  display: none;
}

/* Subsecciones (misma lógica que Prop/Inq) */
#ndModalCon .con-wizard-step__body {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

#ndModalCon .con-wizard-pp-subsec {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

#ndModalCon .con-wizard-pp-subsec--divider {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

html:not(.theme-f10) #ndModalCon .con-wizard-pp-subsec--divider {
  border-top-color: rgba(0, 0, 0, 0.08);
}

#ndModalCon .con-wizard-pp-subsec--minor {
  gap: 10px;
}

#ndModalCon .con-wizard-pp-subsec .pp-subsec__title {
  margin: 0;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #9ca3af);
  font-weight: 700;
  white-space: normal;
}

html.theme-f10 #ndModalCon .con-wizard-pp-subsec .pp-subsec__title {
  color: #807a72;
}

#ndModalCon .con-wizard-pp-subsec .pp-subsec__title--minor {
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: var(--muted, #6b7280);
}

#ndModalCon .con-wizard-hint {
  margin-top: 6px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted, #6b7280);
}

#ndModalCon .con-wizard-hint--compact {
  margin-top: 4px;
  font-size: 0.74rem;
}

html.theme-f10 #ndModalCon .con-wizard-hint {
  color: #a39e95;
}

#ndModalCon.con-wizard-v1 .con-wizard-ingreso-grid .form-contrato__ingreso-wrap {
  margin-top: 4px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

html:not(.theme-f10) #ndModalCon.con-wizard-v1 .con-wizard-ingreso-grid .form-contrato__ingreso-wrap {
  border: none;
  background: transparent;
}

#ndModalCon .con-wizard-step .form-contrato__bloque-titulo:not(.visually-hidden) {
  display: none;
}

#ndModalCon .con-wizard-step .pp-card__num {
  display: none;
}

#ndModalCon .con-wizard-subsec.form-contrato__bloque-titulo {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

html:not(.theme-f10) #ndModalCon .con-wizard-subsec.form-contrato__bloque-titulo {
  border-top-color: rgba(0, 0, 0, 0.08);
}

#ndModalCon .con-wizard-step.is-active {
  animation: con-wizard-step-in 0.22s ease-out;
}

@keyframes con-wizard-step-in {
  from {
    opacity: 0.55;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#ndModalCon .pp-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 10px;
}

#ndModalCon .pp-card__title {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted, #6b7280);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

html.theme-f10 #ndModalCon .pp-card__title {
  color: #a39e95;
}

#ndModalCon .pp-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #7c3aed;
  background: rgba(139, 92, 246, 0.14);
}

html.theme-f10 #ndModalCon .pp-card__num {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.22);
}

#ndModalCon .pp-card__body {
  padding: 4px 20px 20px;
  min-width: 0;
}

#ndModalCon .pp-field__opt {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.78rem;
  color: var(--muted-soft, #9ca3af);
}

#ndModalCon .con-wizard-legajo-wrap {
  margin-top: 12px;
}

#ndModalCon .con-wizard-legajo-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  min-width: 0;
}

#ndModalCon .con-wizard-legajo-lead {
  margin: 0 0 16px;
  max-width: 42rem;
  line-height: 1.45;
}

#ndModalCon .con-wizard-legajo-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

#ndModalCon .con-wizard-legajo-block + .con-wizard-legajo-block {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(167, 139, 250, 0.14);
}

html:not(.theme-f10) #ndModalCon .con-wizard-legajo-block + .con-wizard-legajo-block {
  border-top-color: rgba(0, 0, 0, 0.07);
}

#ndModalCon .con-wizard-legajo-block .pp-subsec__title {
  margin: 0;
}

#ndModalCon .con-wizard-legajo-garantes {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

#ndModalCon .con-wizard-legajo-garante-card {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid rgba(167, 139, 250, 0.22);
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.08) 0%, rgba(139, 92, 246, 0.02) 100%);
  padding: 14px 16px 16px;
}

html:not(.theme-f10) #ndModalCon .con-wizard-legajo-garante-card {
  border-color: rgba(124, 58, 237, 0.16);
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.05) 0%, rgba(255, 255, 255, 0.85) 100%);
}

#ndModalCon .con-wizard-legajo-garante-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(167, 139, 250, 0.14);
}

html:not(.theme-f10) #ndModalCon .con-wizard-legajo-garante-card__head {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

#ndModalCon .con-wizard-legajo-garante-card__head strong {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

#ndModalCon .con-wizard-legajo-garante-card__opt {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #9ca3af);
}

#ndModalCon .con-wizard-legajo-garante-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(7rem, 0.75fr) minmax(6.5rem, 0.65fr);
  gap: 12px 14px;
  align-items: end;
  width: 100%;
  margin-bottom: 12px;
}

#ndModalCon .con-wizard-legajo-garante-row:last-of-type {
  margin-bottom: 14px;
}

#ndModalCon .con-wizard-legajo-garante-rol {
  max-width: min(22rem, 100%);
  min-width: 0;
}

#ndModalCon.con-wizard-v1 .con-wizard-legajo-body input:not([type="checkbox"]),
#ndModalCon.con-wizard-v1 .con-wizard-legajo-body select {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 5px 0 !important;
  min-height: 1.75rem !important;
  font-size: calc(0.92rem + var(--con-abm-type-bump, 0rem));
  color: #ece6df;
  outline: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html:not(.theme-f10) #ndModalCon.con-wizard-v1 .con-wizard-legajo-body input:not([type="checkbox"]),
html:not(.theme-f10) #ndModalCon.con-wizard-v1 .con-wizard-legajo-body select {
  color: #1a1a1a;
  border-bottom-color: rgba(0, 0, 0, 0.12) !important;
}

#ndModalCon.con-wizard-v1 .con-wizard-legajo-body input:not([type="checkbox"]):focus,
#ndModalCon.con-wizard-v1 .con-wizard-legajo-body select:focus {
  border-bottom-color: var(--con-abm-accent, #a78bfa) !important;
}

#ndModalCon .con-wizard-legajo-obs textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 7.5rem;
  resize: vertical;
  border-radius: 10px;
  padding: 12px 14px;
  line-height: 1.45;
  border: 1px solid rgba(167, 139, 250, 0.2);
  background: rgba(0, 0, 0, 0.12);
}

html:not(.theme-f10) #ndModalCon .con-wizard-legajo-obs textarea {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.92);
}

html.theme-f10 #ndModalCon .con-wizard-legajo-obs textarea {
  color: rgba(245, 242, 238, 0.94);
}

#ndModalCon .con-wizard-legajo-obs textarea:focus {
  outline: none;
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.18);
}

#ndModalCon .con-wizard-step--legajo .pp-card__title {
  letter-spacing: 0.08em;
}

/* Resumen operativo */
#ndModalCon .con-wizard-resumen-lead {
  margin: 0 0 14px;
  max-width: 38rem;
  line-height: 1.45;
}

#ndModalCon .con-wizard-resumen-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

#ndModalCon .con-wizard-resumen-item {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(167, 139, 250, 0.18);
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.07) 0%, rgba(139, 92, 246, 0.02) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  min-width: 0;
}

html:not(.theme-f10) #ndModalCon .con-wizard-resumen-item {
  border-color: rgba(124, 58, 237, 0.14);
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.06) 0%, rgba(255, 255, 255, 0.72) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 8px 20px -16px rgba(91, 33, 182, 0.22);
}

html.theme-f10 #ndModalCon .con-wizard-resumen-item {
  border-color: rgba(167, 139, 250, 0.22);
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.12) 0%, rgba(139, 92, 246, 0.04) 100%);
}

#ndModalCon .con-wizard-resumen-item--full {
  grid-column: 1 / -1;
}

#ndModalCon .con-wizard-resumen-item--highlight {
  border-color: rgba(167, 139, 250, 0.34);
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.16) 0%, rgba(139, 92, 246, 0.05) 100%);
}

html:not(.theme-f10) #ndModalCon .con-wizard-resumen-item--highlight {
  border-color: rgba(124, 58, 237, 0.22);
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.1) 0%, rgba(255, 255, 255, 0.9) 100%);
}

#ndModalCon .con-wizard-resumen-item--compact {
  padding: 11px 13px;
}

#ndModalCon .con-wizard-resumen-item__label {
  margin: 0 0 6px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted, #6b7280);
}

html.theme-f10 #ndModalCon .con-wizard-resumen-item__label {
  color: rgba(245, 242, 238, 0.55);
}

#ndModalCon .con-wizard-resumen-item__value {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text, #1a1a1a);
  min-width: 0;
  overflow-wrap: anywhere;
}

html.theme-f10 #ndModalCon .con-wizard-resumen-item__value {
  color: rgba(245, 242, 238, 0.94);
}

#ndModalCon .con-wizard-resumen-partes {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

#ndModalCon .con-wizard-resumen-partes-line {
  display: grid;
  grid-template-columns: minmax(4.5rem, 5.5rem) minmax(0, 1fr);
  gap: 8px 12px;
  align-items: baseline;
}

#ndModalCon .con-wizard-resumen-partes-k {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted, #6b7280);
}

html.theme-f10 #ndModalCon .con-wizard-resumen-partes-k {
  color: rgba(245, 242, 238, 0.5);
}

#ndModalCon .con-wizard-resumen-partes-v {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

#ndModalCon .con-wizard-resumen-plazo-range {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

#ndModalCon .con-wizard-resumen-date {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

#ndModalCon .con-wizard-resumen-plazo-arrow {
  color: #a78bfa;
  font-weight: 700;
  opacity: 0.85;
}

#ndModalCon .con-wizard-resumen-canon {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

#ndModalCon .con-wizard-resumen-canon__monto {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #5b21b6;
}

html.theme-f10 #ndModalCon .con-wizard-resumen-canon__monto {
  color: #ddd6fe;
}

#ndModalCon .con-wizard-resumen-canon__moneda {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, 0.28);
  background: rgba(139, 92, 246, 0.12);
  color: #7c3aed;
}

html.theme-f10 #ndModalCon .con-wizard-resumen-canon__moneda {
  color: #c4b5fd;
  border-color: rgba(196, 181, 253, 0.28);
}

#ndModalCon .con-wizard-resumen-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#ndModalCon .con-wizard-resumen-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid rgba(167, 139, 250, 0.22);
  background: rgba(139, 92, 246, 0.1);
  color: inherit;
}

html:not(.theme-f10) #ndModalCon .con-wizard-resumen-chip {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.16);
}

#ndModalCon .con-wizard-resumen-chip--accent {
  border-color: rgba(167, 139, 250, 0.38);
  background: rgba(139, 92, 246, 0.18);
  color: #6d28d9;
}

html.theme-f10 #ndModalCon .con-wizard-resumen-chip--accent {
  color: #ddd6fe;
}

#ndModalCon .con-wizard-resumen-chip--soft {
  font-size: 0.72rem;
  opacity: 0.92;
}

#ndModalCon .con-wizard-resumen-chip__val {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

#ndModalCon .con-wizard-resumen-empty,
#ndModalCon .con-wizard-resumen-muted {
  color: var(--muted, #6b7280);
  font-size: 0.86rem;
}

#ndModalCon .con-wizard-resumen-legajo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid rgba(167, 139, 250, 0.12);
}

html:not(.theme-f10) #ndModalCon .con-wizard-resumen-legajo {
  border-top-color: rgba(0, 0, 0, 0.06);
}

#ndModalCon .con-wizard-resumen-legajo-hint {
  margin: 0;
  max-width: 36rem;
  line-height: 1.45;
}

#ndModalCon .con-wizard-btn-legajo-inline {
  margin: 0;
  border-radius: 8px;
  border-color: rgba(167, 139, 250, 0.28);
  color: #7c3aed;
}

html.theme-f10 #ndModalCon .con-wizard-btn-legajo-inline {
  color: #c4b5fd;
  border-color: rgba(196, 181, 253, 0.28);
}

/* Footer */
#ndModalCon .con-wizard-footer {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 14px 22px 18px;
  margin: 0 -22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.12);
}

html:not(.theme-f10) #ndModalCon .con-wizard-footer {
  border-top-color: rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.02);
}

#ndModalCon .con-wizard-footer__btn {
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.2;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    filter 0.2s ease,
    transform 0.12s ease;
}

#ndModalCon .con-wizard-footer__btn--ghost,
#ndModalCon .con-wizard-footer__btn--prev,
#ndModalCon .con-wizard-footer__btn--cancel {
  background: transparent;
  color: var(--muted, #6b7280);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

html:not(.theme-f10) #ndModalCon .con-wizard-footer__btn--ghost,
html:not(.theme-f10) #ndModalCon .con-wizard-footer__btn--prev,
html:not(.theme-f10) #ndModalCon .con-wizard-footer__btn--cancel {
  border-color: rgba(0, 0, 0, 0.12);
}

html.theme-f10 #ndModalCon .con-wizard-footer__btn--ghost,
html.theme-f10 #ndModalCon .con-wizard-footer__btn--prev,
html.theme-f10 #ndModalCon .con-wizard-footer__btn--cancel {
  color: #a39e95;
}

#ndModalCon .con-wizard-footer__btn--ghost:hover,
#ndModalCon .con-wizard-footer__btn--prev:not([disabled]):hover,
#ndModalCon .con-wizard-footer__btn--cancel:hover {
  color: var(--text, #1a1a1a);
  border-color: rgba(167, 139, 250, 0.35);
  background: rgba(139, 92, 246, 0.08);
}

html.theme-f10 #ndModalCon .con-wizard-footer__btn--ghost:hover,
html.theme-f10 #ndModalCon .con-wizard-footer__btn--prev:not([disabled]):hover,
html.theme-f10 #ndModalCon .con-wizard-footer__btn--cancel:hover {
  color: #ece6df;
  background: rgba(255, 255, 255, 0.04);
}

#ndModalCon .con-wizard-footer__btn--prev[disabled] {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
  filter: none;
}

#ndModalCon .con-wizard-footer__spacer {
  flex: 1 1 auto;
  min-width: 8px;
}

#ndModalCon .con-wizard-footer .btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

#ndModalCon .con-wizard-btn-next {
  border-color: rgba(124, 58, 237, 0.55);
  background: linear-gradient(180deg, #7c3aed 0%, #6d28d9 100%);
  color: #f5f3ff;
  font-weight: 600;
  min-width: 7.5rem;
}

html.theme-f10 #ndModalCon .con-wizard-btn-next {
  border-color: rgba(167, 139, 250, 0.45);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.95) 0%, rgba(109, 40, 217, 0.92) 100%);
  color: #faf5ff;
}

#ndModalCon .con-wizard-btn-next:hover {
  filter: brightness(1.06);
}

#ndModalCon .con-wizard-btn-save {
  border-color: rgba(124, 58, 237, 0.55);
  background: linear-gradient(180deg, #7c3aed 0%, #6d28d9 100%);
  color: #f5f3ff;
  font-weight: 600;
  min-width: 9rem;
}

html.theme-f10 #ndModalCon .con-wizard-btn-save {
  border-color: rgba(167, 139, 250, 0.45);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.95) 0%, rgba(109, 40, 217, 0.92) 100%);
  color: #faf5ff;
}

#ndModalCon .con-wizard-btn-save:hover {
  filter: brightness(1.06);
}

/* Guardar solo en pasos 4 y legajo (toolbar legacy puede quitar .hidden antes de tiempo) */
#ndModalCon.con-wizard-v1[data-con-wizard-step="1"] #btnGuardarContrato,
#ndModalCon.con-wizard-v1[data-con-wizard-step="2"] #btnGuardarContrato,
#ndModalCon.con-wizard-v1[data-con-wizard-step="3"] #btnGuardarContrato {
  display: none !important;
}

@media (max-width: 640px) {
  #ndModalCon .pp-hero.con-wizard-hero {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 16px 16px 18px;
  }

  #ndModalCon .pp-hero-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
    width: 100%;
  }

  #ndModalCon .nd-modal-con-v2__scroll {
    padding: 14px 14px 0;
  }

  #ndModalCon .con-wizard-footer {
    padding: 12px 14px 14px;
    margin: 0 -14px;
  }

  #ndModalCon .con-wizard-stepper__lbl {
    font-size: 0.62rem;
  }

  #ndModalCon .con-wizard-resumen-grid {
    grid-template-columns: 1fr;
  }

  #ndModalCon .con-wizard-resumen-partes-line {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  #ndModalCon .con-wizard-legajo-garante-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #ndModalCon .con-wizard-legajo-garante-rol {
    max-width: none;
  }
}
