@import url('https://fonts.googleapis.com/css?family=PT+Sans:400,700&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.1/font/bootstrap-icons.css');

:root {
  --za-primary: #1f6fb2;
  --za-primary-dark: #184f8d;
  --za-primary-soft: #eef6ff;
  --za-text: #24384d;
  --za-text-soft: #5a7187;
  --za-border: #d9e4ef;
  --za-surface: rgba(255, 255, 255, 0.98);
  --za-surface-soft: #f7fbff;
  --za-shadow: 0 24px 60px rgba(9, 30, 66, 0.18);
  --za-radius: 22px;
}

* {
  box-sizing: border-box;
  font-family: 'PT Sans', sans-serif;
}

html,
body {
  min-height: 100%;
}

body {
  background-image: url('../img/fondo.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  color: var(--za-text);
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: var(--za-primary-dark);
}

a:hover,
a:focus {
  color: var(--za-primary);
}

ul {
  list-style-type: none !important;
  padding: 0;
  margin: 0;
}

::placeholder {
  color: #7a8a9a;
  opacity: 1;
}

#transparencia {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 24, 39, 0.82) 0%, rgba(11, 24, 39, 0.68) 100%);
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
}

.panel {
  border: 0;
  border-radius: var(--za-radius);
  box-shadow: var(--za-shadow);
  overflow: hidden;
  background: var(--za-surface);
}

.panel-default > .panel-heading {
  border: 0;
  border-radius: var(--za-radius) var(--za-radius) 0 0;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(238, 246, 255, 0.98) 100%);
  padding: 26px 30px 18px;
}

.panel-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: #17324d;
}

.panel-body {
  padding: 30px;
  color: var(--za-text);
}

.hola {
  margin: 28px auto;
}

.za-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(31, 111, 178, 0.1);
  color: var(--za-primary-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.za-lead {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  color: #17324d;
}

.za-sublead {
  margin: 0;
  color: var(--za-text-soft);
  font-size: 17px;
}

.za-copy {
  color: var(--za-text-soft);
  font-size: 17px;
}

.za-copy strong,
.za-sublead strong {
  color: var(--za-text);
}

.za-divider,
hr {
  border-color: #e4edf5;
  margin: 24px 0;
}

.za-form-shell,
.za-soft-panel {
  border: 1px solid #e4edf5;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  padding: 22px;
}

.za-soft-panel {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.za-inline-note,
.za-help-note {
  margin: 0 0 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f5f9fd;
  border: 1px solid #dce8f3;
  color: var(--za-text-soft);
  font-size: 15px;
}

.za-step-note {
  margin-bottom: 20px;
}

.za-section-title {
  margin: 0 0 10px;
  font-size: 24px;
  color: #17324d;
  font-weight: 700;
}

.za-section-copy {
  margin: 0;
  color: var(--za-text-soft);
  font-size: 16px;
}

.za-form-group {
  margin-bottom: 18px;
}

.za-formulario-contacto {
  overflow: visible;
}

.za-formulario-contacto-columna {
  padding: 0;
}

.za-form-divider {
  margin: 18px 0 0;
}

.za-select-wrapper {
  position: relative;
  width: 100%;
}

.za-select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
}

.za-native-select-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  top: 0;
  left: 0;
}

.za-select-wrapper--enhanced {
  z-index: 2;
}

.za-select-wrapper--enhanced .za-select-trigger {
  display: flex;
  align-items: center;
  width: 100%;
  height: 48px;
  min-height: 48px;
  padding: 10px 42px 10px 14px;
  border-radius: 14px;
  border: 1px solid #cfdbe7;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  color: var(--za-text);
  font-size: 16px;
  text-align: left;
  box-sizing: border-box;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.za-select-wrapper--enhanced .za-select-trigger:hover,
.za-select-wrapper--enhanced .za-select-trigger:focus {
  border-color: rgba(31, 111, 178, 0.75);
  box-shadow: 0 0 0 3px rgba(31, 111, 178, 0.14), 0 12px 24px rgba(15, 35, 63, 0.08);
  outline: none;
}

.za-select-wrapper--enhanced .za-select-trigger-label {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.za-select-wrapper--enhanced .za-select-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #5f748a;
  font-size: 12px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.za-select-wrapper--enhanced.is-open .za-select-trigger {
  border-color: rgba(31, 111, 178, 0.85);
  box-shadow: 0 0 0 3px rgba(31, 111, 178, 0.16), 0 16px 30px rgba(15, 35, 63, 0.10);
}

.za-select-wrapper--enhanced.is-open {
  z-index: 80;
}

.za-select-wrapper--enhanced.is-open .za-select-icon {
  transform: translateY(-50%) rotate(180deg);
  color: var(--za-primary);
}

.za-select-wrapper--enhanced.is-invalid .za-select-trigger {
  border-color: #d96a5f;
  box-shadow: 0 0 0 3px rgba(217, 106, 95, 0.12);
}

.za-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
  top: calc(100% + 8px);
  z-index: 30;
  display: none;
  max-height: 280px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #dce7f1;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 44px rgba(12, 32, 58, 0.18);
  backdrop-filter: blur(8px);
}

.za-select-menu::-webkit-scrollbar {
  width: 8px;
}

.za-select-menu::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(95, 116, 138, 0.55);
}

.za-select-menu::-webkit-scrollbar-track {
  background: rgba(233, 240, 247, 0.8);
  border-radius: 999px;
}

.za-select-wrapper--enhanced.is-open .za-select-menu {
  display: block;
}

.za-select-option {
  width: 100%;
  margin: 0;
  padding: 11px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--za-text);
  font-size: 15px;
  text-align: left;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.za-select-option + .za-select-option {
  margin-top: 2px;
}

.za-select-option:hover,
.za-select-option:focus {
  background: #eef6ff;
  color: #17324d;
  outline: none;
}

.za-select-option.is-selected {
  background: linear-gradient(180deg, #eff6ff 0%, #e7f1fb 100%);
  color: var(--za-primary-dark);
  font-weight: 700;
}

.za-select-option.is-placeholder {
  color: #7b8ea3;
}

.za-field-label,
label {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  text-align: left;
  color: #2d465f;
  font-size: 15px;
  font-weight: 700;
}

.form-control {
  height: 48px;
  border-radius: 14px;
  border: 1px solid #cfdbe7;
  box-shadow: none;
  padding: 10px 14px;
  font-size: 16px;
  color: var(--za-text);
  background-color: #fff;
}

textarea.form-control {
  height: auto;
  min-height: 120px;
  resize: vertical;
}

.form-control:focus {
  border-color: rgba(31, 111, 178, 0.75);
  box-shadow: 0 0 0 3px rgba(31, 111, 178, 0.14);
}

.input-group {
  width: 100%;
}

.za-phone-group .form-control:first-child {
  width: 30%;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.za-phone-group .form-control:nth-of-type(2) {
  width: 70%;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}

.messages {
  font-size: 13px;
  margin-top: 6px;
}

.za-field-error {
  margin-top: 4px;
  color: #d43f33;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.form-control.za-invalid,
.za-phone-group.za-invalid .form-control {
  border-color: #d96a5f;
  box-shadow: 0 0 0 3px rgba(217, 106, 95, 0.10);
}

.help-block.error {
  margin-bottom: 0;
}

.btn {
  border-radius: 14px;
  font-size: 17px;
  font-weight: 700;
  padding: 13px 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
}

.btn:focus,
.btn:active:focus,
.btn.active:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 111, 178, 0.18);
}

.btn-primary {
  background: linear-gradient(180deg, #257ac2 0%, #1f6fb2 100%);
  border-color: #1f6fb2;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(180deg, #2a82cb 0%, #236fae 100%);
  border-color: #236fae;
}

.btn-success {
  background: linear-gradient(180deg, #2a9c70 0%, #23865f 100%);
  border-color: #23865f;
}

.btn-success:hover,
.btn-success:focus {
  background: linear-gradient(180deg, #31a678 0%, #287e5d 100%);
  border-color: #287e5d;
}

.btn-warning {
  background: linear-gradient(180deg, #f2b24c 0%, #e7a338 100%);
  border-color: #d8962f;
  color: #fff;
}

.btn-warning:hover,
.btn-warning:focus {
  background: linear-gradient(180deg, #f0b960 0%, #de9d37 100%);
  border-color: #cf912f;
  color: #fff;
}

.btn-danger {
  background: #fff;
  color: #5f7388;
  border-color: #ccd9e5;
}

.btn-danger:hover,
.btn-danger:focus {
  background: #f5f8fb;
  color: #405567;
  border-color: #bfcfdd;
}

.btn-lg {
  font-size: 18px;
  padding: 15px 22px;
}

.btn-group-vertical {
  width: 100%;
}

.btn-pagos,
.btn-deshabilitado {
  display: inline-block;
  width: auto;
  max-width: 100%;
  margin: 8px 4px;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  vertical-align: middle;
  box-sizing: border-box;
  line-height: 1.2;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-pagos {
  background: linear-gradient(180deg, #f2b24c 0%, #e5a23a 100%);
  color: #fff;
  border: 1px solid #d99733;
  box-shadow: 0 12px 22px rgba(229, 162, 58, 0.24);
}

.btn-pagos:hover,
.btn-pagos:focus {
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-pagos img {
  display: block;
  margin: 6px auto 0;
  width: auto !important;
  max-width: 130px;
  height: 24px;
}

.btn-deshabilitado {
  background: #e2e8ef;
  color: #5c7085;
  border: 1px solid #d2dde7;
  cursor: default;
}

#logo {
  display: block;
  margin: 0 auto;
  width: 140px;
  max-width: 100%;
  height: auto;
}

#logo.za-logo-lg,
.za-logo-lg {
  width: 250px;
}

#logo.za-logo-xl,
.za-logo-xl {
  width: 290px;
}

.za-auth-shell {
  max-width: 760px;
  margin: 42px auto;
}

.za-auth-shell--compact {
  max-width: 720px;
  margin: 22px auto;
}

.za-auth-shell .panel-body {
  padding: 34px;
}

.za-auth-shell--compact .panel-body {
  padding: 24px 24px 22px;
}

.za-hero-copy {
  text-align: center;
  margin-bottom: 26px;
}

.za-hero-copy--compact {
  margin-bottom: 18px;
}

.za-hero-copy--compact #logo,
.za-hero-copy--compact .za-logo-lg,
.za-hero-copy--compact .za-logo-xl {
  margin-bottom: 14px;
}

.za-hero-copy .za-sublead {
  max-width: 560px;
  margin: 0 auto;
}

.za-hero-copy--compact .za-lead {
  margin-bottom: 8px;
  font-size: 28px;
  line-height: 1.15;
}

.za-hero-copy--compact .za-sublead {
  max-width: 520px;
  font-size: 16px;
}

.za-trust-list {
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.za-hero-copy--compact .za-trust-list {
  margin-top: 12px;
  gap: 8px;
}

.za-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f7fbff;
  border: 1px solid #d9e6f3;
  color: #3d5872;
  font-size: 13px;
  font-weight: 700;
}

.za-hero-copy--compact .za-chip {
  padding: 6px 10px;
  font-size: 12px;
}

.za-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.za-form-shell--compact {
  padding: 18px 18px 16px;
  border-radius: 16px;
}

.za-step-note--compact {
  margin-bottom: 14px;
}

.za-step-note--compact .za-section-title {
  margin-bottom: 4px;
  font-size: 21px;
}

.za-step-note--compact .za-section-copy {
  font-size: 15px;
}

.za-form-shell--compact .za-form-group {
  margin-bottom: 14px;
}

.za-form-shell--compact .form-control {
  height: 44px;
  padding: 9px 13px;
}

.za-form-shell--compact .za-help-note {
  padding: 10px 12px;
  font-size: 14px;
}

.za-form-shell--compact .g-recaptcha {
  margin-top: 14px;
}

.za-form-actions {
  margin-top: 16px;
}

.za-form-actions--tight {
  margin-top: 12px;
}

.za-form-shell--compact .btn {
  padding-top: 12px;
  padding-bottom: 12px;
}

.za-panel-heading-compact.panel-default > .panel-heading {
  padding: 20px 24px 14px;
}

.za-page-header--compact {
  margin-bottom: 16px;
}

.za-page-header--compact .za-lead {
  margin-bottom: 6px;
}

.za-form-shell--narrow {
  max-width: 860px;
  margin: 0 auto;
  border-radius: 20px;
  background-clip: padding-box;
}

.za-form-grid-tight .form-group,
.za-form-grid-tight .za-form-group {
  margin-bottom: 10px;
}

.za-form-grid-tight .radio {
  margin-bottom: 8px;
}

.za-formulario-contacto .za-form-shell {
  margin-bottom: 0;
}

.za-form-actions-bar {
  max-width: 860px;
  margin: 18px auto 0;
  padding: 0 6px;
}

.za-form-actions-bar .btn {
  display: block;
  width: 100%;
}

.row-deuda {
  width: 100%;
  max-width: 760px;
  margin: 0 auto 18px;
  text-align: center;
}

.bloque-entidad {
  width: 100%;
  border: 1px solid #dbe6f0;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 14px 34px rgba(15, 35, 63, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.bloque-entidad-seleccionable {
  cursor: pointer;
}

.bloque-entidad-seleccionable:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(15, 35, 63, 0.14);
}

.bloque-entidad-enviando {
  opacity: 0.72;
  pointer-events: none;
}

.bloque-entidad-activa {
  border-color: #90bae0;
  box-shadow: 0 0 0 4px rgba(31, 111, 178, 0.12), 0 22px 42px rgba(31, 111, 178, 0.14);
  background: linear-gradient(180deg, #ffffff 0%, #f2f8ff 100%);
}

.bloque-entidad-procesando {
  border-color: #72addf;
  box-shadow: 0 0 0 5px rgba(31, 111, 178, 0.16), 0 24px 44px rgba(24, 79, 141, 0.18);
}

.bloque-entidad-procesando .div-origen-deuda {
  position: relative;
  overflow: hidden;
}

.bloque-entidad-procesando .div-origen-deuda::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.22) 45%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-100%);
  animation: zaSelectedSweep 1.2s ease-in-out infinite;
}

.div-origen-deuda {
  background: linear-gradient(180deg, #f7fbff 0%, #eef5fb 100%);
  padding: 16px 18px;
  color: #1d4667;
  font-size: 18px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.div-origen-deuda-con-selector {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

.selector-entidad {
  display: none;
}

.selector-entidad input {
  display: none;
}

.bloque-entidad-activa .div-origen-deuda {
  background: linear-gradient(180deg, #1f6fb2 0%, #1a609d 100%);
  color: #fff;
}

.div-tipo-producto {
  background: #fff;
  border-top: 1px solid #eef3f8;
  padding: 12px 18px;
  color: var(--za-text);
  font-size: 16px;
  margin: 0;
}

.bloque-entidad-activa .div-tipo-producto {
  background: #f8fbff;
}

.bloque-plan-activo {
  border-color: #cfe0ef;
  background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
}

.div-origen-plan-activo {
  background: linear-gradient(180deg, #eff7ff 0%, #e3f0fb 100%);
  color: #1d4f7a;
  text-align: center;
}

.titulo-plan-activo {
  display: block;
  font-size: 20px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.subtitulo-plan-activo {
  display: block;
  margin-top: 6px;
  color: #5a7690;
  font-size: 14px;
}

.tags-entidades-plan {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 18px 0;
}

.tag-entidad-plan {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #edf5fc;
  color: #1f5f96;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.producto-entidad {
  display: inline-block;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #edf5fc;
  color: #1f5f96;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.za-payment-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 0;
  margin-bottom: 8px;
}

.za-payment-actions > div {
  width: 180px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.za-payment-actions .btn-pagos,
.za-payment-actions .btn-deshabilitado {
  width: 180px;
  min-width: 0;
  min-height: 82px;
  margin: 0;
  padding: 12px 18px;
}

.za-cta-panel .btn-pagos {
  width: 180px;
  min-height: 82px;
}

.za-cta-panel .za-cta-payment {
  width: 180px;
  min-height: 82px;
  margin: 8px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.za-cta-panel .btn-deshabilitado.za-cta-payment {
  font-size: 13px;
}

.za-review-actions {
  padding: 4px 18px 18px;
}

.za-page-header {
  text-align: center;
  margin-bottom: 22px;
}

.za-page-header p {
  margin: 0;
}

.za-status-pill {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.za-status-pill--ok {
  background: rgba(40, 132, 90, 0.12);
  color: #237050;
}

.za-status-pill--review {
  background: rgba(235, 163, 54, 0.15);
  color: #9f6820;
}

.za-section-block {
  margin-top: 28px;
}

.za-cta-panel {
  margin-top: 26px;
  padding: 22px;
  border: 1px solid #dce8f3;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #f2f7fd 100%);
  text-align: center;
}

.za-cta-panel .btn {
  margin-top: 14px;
}

body.za-loading-open {
  overflow: hidden;
}

.za-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 18, 32, 0.64);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.za-loading-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.za-loading-card {
  width: 100%;
  max-width: 460px;
  padding: 28px 28px 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.98) 100%);
  border: 1px solid rgba(215, 228, 240, 0.95);
  box-shadow: 0 30px 80px rgba(8, 21, 37, 0.28);
  text-align: center;
}

.za-loading-spinner {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(31, 111, 178, 0.12) 0%, rgba(31, 111, 178, 0.04) 55%, rgba(31, 111, 178, 0) 56%);
}

.za-loading-spinner::before,
.za-loading-spinner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.za-loading-spinner::before {
  inset: 12px;
  border: 3px solid rgba(31, 111, 178, 0.12);
}

.za-loading-spinner::after {
  inset: 12px;
  border: 3px solid transparent;
  border-top-color: #1f6fb2;
  border-right-color: rgba(31, 111, 178, 0.38);
  animation: zaLoadingSpin 1s linear infinite;
}

.za-loading-dots {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.za-loading-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1f6fb2;
  opacity: 0.28;
  animation: zaLoadingDot 1.1s ease-in-out infinite;
}

.za-loading-dots span:nth-child(2) {
  animation-delay: 0.16s;
}

.za-loading-dots span:nth-child(3) {
  animation-delay: 0.32s;
}

.za-loading-title {
  margin: 0 0 10px;
  color: #17324d;
  font-size: 29px;
  line-height: 1.15;
  font-weight: 700;
}

.za-loading-copy {
  margin: 0;
  color: #526d86;
  font-size: 17px;
  line-height: 1.55;
}

.za-loading-note {
  margin: 18px 0 0;
  color: #1f6fb2;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

@keyframes zaLoadingSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes zaLoadingDot {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.28;
  }

  50% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@keyframes zaLoadingBar {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

@keyframes zaSelectedSweep {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.za-summary-strip {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #d9e6f2;
  background: #f7fbff;
  color: #43607a;
  text-align: center;
  font-weight: 700;
}

.za-option-card .btn,
#planes .btn {
  white-space: normal;
  padding: 18px 18px;
  margin-bottom: 12px;
  border-radius: 18px !important;
  border: 1px solid #d6e4f0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 12px 28px rgba(13, 37, 63, 0.06);
  color: var(--za-text);
  text-align: left;
}

.za-option-card .btn:hover,
.za-option-card .btn:focus,
#planes .btn:hover,
#planes .btn:focus {
  border-color: #8eb9df;
  background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
  box-shadow: 0 18px 34px rgba(31, 111, 178, 0.12);
}

.za-info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.za-contact-card {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
  border: 1px solid #dde8f2;
  text-align: center;
  min-height: 100%;
}

.za-contact-card img {
  width: 64px;
  height: auto;
  margin-bottom: 12px;
}

.za-contact-card h4 {
  margin: 0 0 8px;
  color: #18324d;
  font-size: 18px;
  font-weight: 700;
}

.za-contact-card p {
  margin: 0;
  color: var(--za-text-soft);
}

.za-success-panel {
  text-align: center;
}

.za-success-title {
  margin: 0 0 12px;
  font-size: 30px;
  color: #17324d;
  font-weight: 700;
}

.za-success-copy {
  color: var(--za-text-soft);
  font-size: 17px;
}

.za-empty-state {
  padding: 26px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
  border: 1px solid #dbe6ef;
}

.za-radio-list .radio {
  margin-top: 0;
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #dbe6ef;
  background: #fff;
}

.za-radio-list .radio label {
  margin: 0;
  font-weight: 400;
}

input[type="radio"],
input[type="checkbox"] {
  margin: 4px 8px 0 0;
}

#confirmarpago img,
#contacto img,
#datoscontacto img {
  height: 80px;
  margin: 0 auto;
  display: inherit;
}

#confirmarpago .col-md-12,
#contacto .col-md-12,
#datoscontacto .col-md-12 {
  text-align: center;
}

#confirmarpago .col-md-12 img {
  margin-bottom: 15px;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.g-recaptcha {
  display: inline-block;
  margin-top: 18px;
}

.za-auth-shell .panel,
.za-auth-shell .panel-body,
.za-auth-shell .za-form-shell {
  overflow: visible;
}

@media (max-width: 991px) {
  body {
    font-size: 15px;
    background-attachment: scroll;
  }

  .panel-default > .panel-heading {
    padding: 22px 22px 16px;
  }

  .panel-body,
  .za-auth-shell .panel-body {
    padding: 24px 22px;
  }

  .panel-title {
    font-size: 24px;
  }

  .za-lead,
  .za-section-title,
  .za-success-title {
    font-size: 24px;
  }

  #logo.za-logo-lg,
  .za-logo-lg {
    width: 225px;
  }

  #logo.za-logo-xl,
  .za-logo-xl {
    width: 255px;
  }

  .za-auth-shell--compact {
    margin: 18px auto;
  }

  .za-auth-shell--compact .panel-body {
    padding: 22px 20px 20px;
  }

  .row-deuda {
    max-width: 100%;
  }
}

@media (max-width: 1100px) {
  .za-formulario-contacto > .col-md-6,
  .za-formulario-contacto > .col-sm-12 {
    float: none;
    width: 100%;
  }

  .za-formulario-contacto-columna {
    padding-left: 15px;
    padding-right: 15px;
  }

  .za-form-actions-bar .col-md-6 {
    float: none;
    width: 100%;
  }

  .za-form-actions-bar .col-md-6 + .col-md-6 {
    margin-top: 12px;
  }
}

@media (max-width: 767px) {
  #logo.za-logo-lg,
  .za-logo-lg {
    width: 190px;
  }

  #logo.za-logo-xl,
  .za-logo-xl {
    width: 220px;
  }

  .panel {
    border-radius: 18px;
  }

  .panel-body {
    padding: 22px 18px;
  }

  .div-origen-deuda,
  .titulo-plan-activo {
    font-size: 17px;
  }

  .div-tipo-producto {
    font-size: 15px;
  }

  .btn {
    font-size: 16px;
  }

  .za-hero-copy--compact .za-lead {
    font-size: 24px;
  }

  .za-select-wrapper--enhanced .za-select-trigger {
    min-height: 46px;
    font-size: 15px;
  }

  .za-select-option {
    font-size: 14px;
  }

  .za-auth-shell--compact,
  .za-auth-shell {
    margin: 16px auto;
  }

  .za-form-shell--compact {
    padding: 16px 14px 14px;
  }

  .za-formulario-contacto-columna {
    padding-left: 15px;
    padding-right: 15px;
  }

  .za-form-actions-bar {
    margin-top: 16px;
    padding: 0 1px;
  }

  .btn-pagos,
  .btn-deshabilitado {
    width: calc(100% - 8px);
  }

  .za-cta-panel .za-cta-payment {
    width: calc(100% - 8px);
    max-width: 220px;
  }

  .za-loading-overlay {
    padding: 18px;
  }

  .za-loading-card {
    max-width: 100%;
    padding: 24px 20px 20px;
    border-radius: 24px;
  }

  .za-loading-title {
    font-size: 25px;
  }

  .za-loading-copy {
    font-size: 16px;
  }

  .za-loading-spinner {
    width: 76px;
    height: 76px;
    margin-bottom: 18px;
  }

  .za-payment-actions .btn-pagos,
  .za-payment-actions .btn-deshabilitado {
    width: 180px;
  }

  .za-payment-actions > div {
    width: 180px;
    max-width: calc(100% - 16px);
  }

  .za-phone-group .form-control:first-child {
    width: 34%;
  }

  .za-phone-group .form-control:nth-of-type(2) {
    width: 66%;
  }
}

body.creditia-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.creditia-topbar {
  position: relative;
  z-index: 3;
  background: #20252a;
  color: #f8fafc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.creditia-topbar-inner {
  width: 100%;
  margin: 0;
  padding: 10px 36px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
}

.creditia-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: #f8fafc;
  text-decoration: none;
}

.creditia-brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
}

.creditia-brand:hover,
.creditia-brand:focus {
  color: #ffffff;
  text-decoration: none;
}

.creditia-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 0;
  color: #dce6f1;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.creditia-back-link:hover,
.creditia-back-link:focus {
  color: #ffffff;
  text-decoration: underline;
}

.creditia-main {
  flex: 1;
}

.creditia-footer {
  position: relative;
  z-index: 3;
  background: #20252a;
  color: #f8fafc;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
}

.creditia-footer-inner {
  width: 100%;
  margin: 0;
  padding: 18px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
}

.creditia-footer-copy {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #dce6f1;
}

.creditia-footer-copy-line {
  display: inline;
}

.creditia-footer-copy-line + .creditia-footer-copy-line::before {
  content: " - ";
}

.creditia-footer-links {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.creditia-footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 3px;
  background: transparent;
  color: #dce6f1;
  font-size: 18px;
  line-height: 1;
}

.creditia-footer-link i {
  display: block;
}

.creditia-footer-link:hover,
.creditia-footer-link:focus {
  color: #ffffff;
  background: transparent;
  text-decoration: none;
}

@media (max-width: 767px) {
  .creditia-topbar-inner,
  .creditia-footer-inner {
    flex-direction: row;
    align-items: center;
    padding-left: 18px;
    padding-right: 18px;
  }

  .creditia-footer-inner {
    justify-content: space-between;
    gap: 10px;
  }

  .creditia-footer-copy {
    font-size: 12px;
    line-height: 1.35;
  }

  .creditia-footer-copy-line {
    display: block;
  }

  .creditia-footer-copy-line + .creditia-footer-copy-line::before {
    content: "";
  }

  .creditia-footer-links {
    gap: 8px;
  }

  .creditia-footer-link {
    min-width: 28px;
    min-height: 28px;
    padding: 0 6px;
    font-size: 17px;
  }
}
