/* Pasarela Naranja X tal como se ve dentro de Rentas Córdoba */
.jumbotron {
  background: #f2f2f2;
  display: flex;
  padding: 24px 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 0;
}
.jumbotron .pay-head-inner {
  width: min(960px, calc(100% - 30px));
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.jumbotron .back {
  color: #004582;
  margin-bottom: 0;
}
.jumbotron h1 {
  color: #1e272e;
  margin: 0;
  font-weight: 600;
  font-size: 24px;
  line-height: 120%;
}
.monto-final {
  margin: 0;
  color: #000;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 120%;
}
.monto-final sup {
  font-size: 12px;
  padding-top: 14px;
  top: -1.2em;
  position: relative;
}
.info-texts {
  margin: 0;
}
.info-texts p,
.cuotas-vencidas {
  font-size: 18px;
  padding: 4px 0 0;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 400;
  line-height: 120%;
  color: #29343e;
  margin: 0;
}

.pay-bg {
  background: linear-gradient(180deg, #d8e7f3, #fff);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 24px 0 48px;
}
.pay-bg .wrap,
.pay-stack {
  width: min(720px, calc(100% - 30px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
}

.pay-section-title {
  font-family: "Geogrotesque Sharp", "IBM Plex Sans", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #29343e;
  margin: 8px 0 0;
}

.pay-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 4px 1px #00000026, 0 1px 6px 2px #00000014;
  padding: 20px;
  text-decoration: none;
  min-height: 85px;
  cursor: pointer;
}
.pay-card:hover { box-shadow: 0 2px 8px 1px #00000030; }
.pay-card .pay-logo,
.pay-card img.pay-logo {
  width: 110px;
  height: 40px;
  max-width: 110px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
  background: transparent;
}
.pay-card .pay-logo.small { width: 65px; }
.pay-card .pay-data {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  flex: 1;
}
.pay-card .forma-pago-title {
  color: #29343e;
  font-family: "Geogrotesque Sharp", "IBM Plex Sans", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 120%;
  margin: 0;
}
.pay-card .forma-pago-description {
  color: #5c5c5c;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 120%;
  margin: 0;
}
.pay-card .chev {
  color: #004582;
  font-size: 24px;
}
.pay-card--featured {
  border: 2px solid #ff6600;
  box-shadow: 0 2px 12px 2px rgba(255, 102, 0, 0.22), 0 1px 6px 2px #00000014;
  min-height: 96px;
}
.pay-card-badge {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #ff6600;
  color: #fff;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.pay-card--compact {
  min-height: 72px;
  padding: 14px 16px;
  box-shadow: 0 1px 3px 1px #0000001a;
}
.pay-other-acc {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pay-other-toggle {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid #d8e2ea;
  border-radius: 16px;
  box-shadow: 0 1px 4px 1px #00000026, 0 1px 6px 2px #00000014;
  padding: 18px 20px;
  min-height: 85px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.pay-other-toggle:hover {
  box-shadow: 0 2px 8px 1px #00000030;
}
.pay-other-toggle.is-open {
  border-color: #004582;
}
.pay-other-toggle .pay-data {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.pay-other-logos {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.pay-other-logos img {
  width: 36px;
  height: 24px;
  object-fit: contain;
}
.pay-other-chev {
  color: #004582;
  font-size: 24px;
  transition: transform 0.2s ease;
}
.pay-other-toggle.is-open .pay-other-chev {
  transform: rotate(90deg);
}
.pay-other-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0 0 8px;
  border-left: 3px solid #ecf8fe;
  margin-left: 12px;
}
.pay-ico-box {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #ecf8fe;
  color: #004582;
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}
.pay-ico-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  width: auto;
  max-width: min(48vw, 220px);
}
.pay-ico-row img {
  height: 22px;
  width: auto;
  max-width: 56px;
  object-fit: contain;
  object-position: center;
  display: block;
  background: transparent;
}
.cedulon .icon-download {
  margin-left: auto;
  width: 24px;
  height: 24px;
  color: #004582;
  font-size: 20px;
  display: grid;
  place-items: center;
}

.cedulon {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 4px 1px #00000026, 0 1px 6px 2px #00000014;
  padding: 20px;
  min-height: 85px;
  cursor: pointer;
}
.cedulon .forma-pago-title {
  color: #29343e;
  font-family: "Geogrotesque Sharp", "IBM Plex Sans", sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px;
}
.cedulon .forma-pago-description {
  color: #5c5c5c;
  font-size: 16px;
  margin: 0;
}
.cedulon .icon-download {
  margin-left: auto;
  width: 24px;
  height: 24px;
}

/* Tarjeta visual de la pasarela */
.card-flip {
  width: min(100%, 420px);
  margin-inline: auto;
  perspective: 1200px;
}
.card-flip-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 1.586 / 1;
  transform-style: preserve-3d;
  transition: transform 0.62s cubic-bezier(0.22, 0.8, 0.28, 1);
}
.card-flip.is-flipped .card-flip-inner {
  transform: rotateY(180deg);
}
.card-face {
  position: absolute;
  inset: 0;
  height: 100%;
  border-radius: 16px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.card-face-back {
  transform: rotateY(180deg);
}
.card-rectangle {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 22px 18px;
  box-sizing: border-box;
  box-shadow: 0 14px 30px rgba(18, 10, 32, 0.18);
}
.card-face-back.card-rectangle {
  justify-content: flex-start;
  padding: 0 0 16px;
  gap: 16px;
}
.card-magstripe {
  height: 42px;
  margin-top: 18px;
  background: linear-gradient(180deg, #1a1a1a, #3a3a3a 45%, #111);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.card-cvv-panel {
  margin: 0 18px 0 auto;
  width: min(168px, 58%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.card-cvv-label {
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.card-cvv-box {
  width: 100%;
  min-height: 36px;
  border-radius: 4px;
  background: #fff;
  color: #1e272e;
  font-family: Consolas, "Courier New", monospace;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.28em;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
}
.card-cvv-hint {
  margin: 0 18px;
  color: rgba(255,255,255,0.78);
  font-size: 12px;
  line-height: 1.3;
}
.card-rectangle.bg-naranja {
  background: linear-gradient(180deg, #4d2775 33.85%, #2c1642);
}
.card-rectangle.bg-visa {
  background: linear-gradient(180deg, #1a1f71 20%, #0d1140);
}
.card-rectangle.bg-mastercard {
  background: linear-gradient(180deg, #1f1f1f 20%, #111);
}
.card-rectangle.bg-cordobesa {
  background: linear-gradient(180deg, #004582 20%, #00284d);
}
.card-rectangle .logo-wrapper {
  width: min(168px, 55%);
  height: 36px;
  display: flex;
  align-items: center;
}
.card-rectangle .logo-wrapper img {
  height: 32px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}
.card-rectangle.bg-naranja .logo-wrapper img {
  filter: brightness(0) invert(1);
}
.card-rectangle .payment-card-number {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin: 8px 0 0;
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(15px, 4.2vw, 22px);
  font-weight: 600;
  color: #fff;
  line-height: 1;
}
.card-rectangle .pan-group {
  display: flex;
  justify-content: center;
  gap: 0.14em;
  min-width: 0;
}
.card-rectangle .pan-digit {
  font-style: normal;
  display: inline-block;
  min-width: 0.62em;
  text-align: center;
}
.card-rectangle .pan-digit.is-empty {
  opacity: 0.42;
  font-weight: 500;
}
.card-rectangle .pan-digit.is-live {
  animation: cardDigitPulse 0.28s ease;
}
.card-rectangle .card-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}
.card-rectangle .card-holder,
.card-rectangle .expiration-date {
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(12px, 3.2vw, 14px);
  color: #fff;
  margin: 0;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.card-rectangle .card-holder {
  text-transform: uppercase;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.card-rectangle .expiration-date {
  flex: 0 0 auto;
  opacity: 0.92;
}
@keyframes cardDigitPulse {
  0% { transform: translateY(7px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.nx-form-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 4px 1px #00000026, 0 1px 6px 2px #00000014;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.nx-form-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.header-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.h5-title-card {
  color: #29343e;
  font-family: "Geogrotesque Sharp", "IBM Plex Sans", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 120%;
  margin: 0;
}
.header-card p {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #5c5c5c;
  margin: 0;
}
.asterisco { color: #be1e24; }
.p-title-section {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 120%;
  margin: 0;
}
.nx-form-card hr {
  border: 0;
  border-top: 1px solid #e0e0e0;
  width: 100%;
  margin: 0;
}

.kos-field {
  position: relative;
  display: grid;
  grid-template-rows: 14px 24px;
  align-content: center;
  gap: 2px;
  width: 100%;
  height: 64px;
  padding: 0 16px;
  border: 1px solid #5c5c5c;
  border-radius: 6px;
  background: #fff;
  box-sizing: border-box;
}
.kos-field:focus-within {
  outline: 2px solid #004582;
  outline-offset: -2px;
}
.kos-field input,
.kos-field select {
  grid-row: 2;
  box-sizing: border-box;
  width: 100%;
  height: 24px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #29343e;
  font-size: 16px;
  line-height: 24px;
  outline: none;
  box-shadow: none;
}
.kos-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 22px;
  cursor: pointer;
}
.kos-field select option {
  color: #29343e;
  background: #fff;
}
.kos-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #5c5c5c;
  border-bottom: 2px solid #5c5c5c;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.kos-field:focus-within .kos-chevron {
  border-color: #004582;
}
.kos-field label {
  grid-row: 1;
  position: static;
  top: auto;
  left: auto;
  transform: none;
  margin: 0;
  color: #5c5c5c;
  font-size: 12px;
  line-height: 14px;
  pointer-events: none;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: font-size 0.16s ease, color 0.16s ease;
}
.kos-field:focus-within label {
  color: #004582;
}
.kos-field:not(:focus-within):not(:has(input:not(:placeholder-shown))):not(:has(select:valid)) {
  grid-template-rows: 1fr;
}
.kos-field:not(:focus-within):not(:has(input:not(:placeholder-shown))):not(:has(select:valid)) label {
  grid-area: 1 / 1;
  align-self: center;
  font-size: 16px;
  line-height: 1.2;
}
.kos-field:not(:focus-within):not(:has(input:not(:placeholder-shown))):not(:has(select:valid)) input,
.kos-field:not(:focus-within):not(:has(input:not(:placeholder-shown))):not(:has(select:valid)) select {
  grid-area: 1 / 1;
  height: 100%;
  color: transparent;
  caret-color: #29343e;
}
.kos-field #cc-number,
.kos-field #cc-doc {
  font-variant-numeric: tabular-nums;
}
.kos-field #cc-number {
  letter-spacing: 0.06em;
}
/* Respaldo para navegadores sin soporte de :has(): dejamos la etiqueta
   siempre arriba y el valor visible, para que nunca se vea "sin estilo". */
@supports not (selector(:has(*))) {
  .kos-field {
    grid-template-rows: 14px 24px;
  }
  .kos-field input,
  .kos-field select {
    grid-row: 2;
    color: #29343e;
  }
  .kos-field label {
    grid-row: 1;
    align-self: auto;
    font-size: 12px;
    line-height: 14px;
    color: #5c5c5c;
  }
}
.inputs-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.field-row,
.exp-cvv,
.doc-row {
  display: flex;
  align-items: stretch;
  gap: 16px;
}
.field-row .kos-field,
.exp-cvv .kos-field {
  flex: 1 1 0;
  min-width: 0;
}
.doc-row .kos-field-tipo {
  flex: 0 0 118px;
  width: 118px;
}
.doc-row .kos-field-doc {
  flex: 1 1 auto;
  min-width: 0;
}

.btn-nx-continue {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  background: #004582;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 16px;
  line-height: 120%;
  cursor: pointer;
}
.btn-nx-continue:hover:not(:disabled) { background: #007ae5; }
.btn-nx-continue:disabled { opacity: 0.5; pointer-events: none; }
.nx-actions { text-align: center; }

.qr-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 4px 1px rgba(0, 0, 0, 0.15), 0 1px 6px 2px rgba(0, 0, 0, 0.08);
  padding: 28px 20px;
  text-align: center;
}
.qr-frame {
  width: 220px;
  height: 220px;
  margin: 16px auto;
  padding: 12px;
  border: 8px solid #004582;
  border-radius: 12px;
  background: #fff;
}
.qr-frame svg { width: 100%; height: 100%; }
.qr-amount {
  font-size: 24px;
  font-weight: 700;
  color: #004582;
  margin: 8px 0 0;
}

@media (min-width: 1025px) {
  .jumbotron {
    padding: 36px 128px;
    align-items: flex-start;
    gap: 24px;
  }
  .pay-bg {
    gap: 48px;
    padding-top: 48px;
    padding-bottom: 60px;
  }
  .nx-form-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
  }
  .card-flip {
    width: 100%;
    margin-inline: 0;
  }
}

@media (max-width: 1200px) {
  .pay-card .pay-logo,
  .pay-card img.pay-logo {
    width: 96px;
    max-width: 96px;
  }
}

@media (min-width: 641px) {
  .pay-ico-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: auto;
    max-width: 220px;
    gap: 8px;
  }
  .pay-ico-row img {
    width: auto;
    height: 24px;
    max-width: 52px;
  }
}

@media (max-width: 640px) {
  .doc-row {
    gap: 12px;
  }
  .doc-row .kos-field-tipo {
    flex: 0 0 104px;
    width: 104px;
  }
  .jumbotron {
    padding: 16px 0;
  }
  .jumbotron .pay-head-inner {
    width: calc(100% - 24px);
  }
  .monto-final {
    font-size: 26px;
  }
  .pay-card {
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    padding: 16px 12px;
    min-height: 76px;
  }
  .pay-card .pay-logo,
  .pay-card img.pay-logo {
    width: 76px;
    max-width: 76px;
    height: 32px;
  }
  .pay-ico-row {
    display: flex;
    flex-wrap: wrap;
    width: auto;
    max-width: 120px;
    gap: 6px;
  }
  .pay-ico-row img {
    width: auto;
    height: 20px;
    max-width: 52px;
  }
  .cedulon {
    flex-wrap: wrap;
    padding: 16px;
  }
  .nx-form-card {
    padding: 16px;
  }
  .card-rectangle {
    padding: 16px 16px 14px;
  }
  .card-rectangle .payment-card-number {
    gap: 4px;
    font-size: 18px;
  }
  .kos-field #cc-number {
    letter-spacing: 0.03em;
  }
}

@media (max-width: 480px) {
  .login-chip span {
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-rectangle .pan-digit.is-live,
  .kos-field label,
  .card-flip-inner {
    animation: none;
    transition: none;
  }
}
