/* =========================
   RESET
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --color-brand: #154530;
  --color-brand-2: #1c7a35;
  --color-accent: #1c7a35;
  --color-text: #0b1320;
  --color-text-soft: #64748b;
  --color-white: #ffffff;
  --color-border: #8fbfa8;
  --color-surface: #ffffff;
  --color-background: #ffffff;

  --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 14px 28px rgba(36, 99, 85, 0.16);

  --radius-md: 14px;
  --radius-lg: 18px;

  --container-wide: 1580px;
  --container-main: 1180px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Poppins", sans-serif;
  background: var(--color-background);
  color: var(--color-text);
  line-height: 1.45;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.is-hidden {
  display: none !important;
}

/* =========================
   HEADER
========================= */
.ant-header {
  background: #154530;
}

.ant-header__inner {
  width: min(100% - 48px, var(--container-wide));
  margin: 0 auto;
  min-height: 103px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ant-header__brand {
  color: #ffffff;
  font-size: 23px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
}

.ant-header__powered {
  display: flex;
  align-items: center;
}

.ant-header__powered-label {
  display: none;
}

.ant-header__powered-logo {
  display: flex;
  align-items: center;
}

.ant-header__powered-svg {
  height: 46px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* =========================
   MAIN
========================= */
.app-main {
  padding: 38px 0 56px;
}

.app-main__inner {
  width: min(100% - 48px, var(--container-main));
  margin: 0 auto;
}

/* =========================
   SEARCH SCREEN
========================= */
.search-screen {
  max-width: 963px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   INTRO
========================= */
.intro-section {
  margin-bottom: 26px;
}

.intro-section__step {
  margin: 0 0 22px;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 500;
  color: #0d2018;
}

.intro-section__title {
  margin: 0 0 12px;
  font-size: 42px;
  line-height: 1.15;
  font-weight: 500;
  color: #0d2018;
  letter-spacing: -0.3px;
}

.intro-section__subtitle {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 400;
  color: #53657d;
}

/* =========================
   OPTION CARD
========================= */
.option-section {
  display: flex;
  justify-content: flex-start;
  margin: 34px 0 28px;
}

.option-card {
  width: 372px;
  min-height: 145px;
  background: #ffffff;
  border: 2px solid #1c7a35;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 20px;
}

.option-card__icon {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.option-card__svg {
  width: 68px;
  height: 68px;
}

.option-card__label {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 500;
  color: #0b1320;
  text-align: center;
}

/* =========================
   SEARCH PANEL
========================= */
.search-panel {
  width: 100%;
  max-width: 963px;
  background: #ffffff;
  border: 1px solid #8fbfa8;
  border-radius: 10px;
  padding: 28px 36px 34px;
  box-shadow: none;
}

.search-panel__title {
  margin: 0 0 2px;
  text-align: center;
  color: #0b1320;
  font-size: 27px;
  line-height: 1.2;
  font-weight: 500;
}

.search-panel__subtitle {
  margin: 0 0 18px;
  text-align: center;
  color: #0f172a;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
}

/* =========================
   DOC TYPE
========================= */
.doc-type {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.doc-type__option {
  min-height: 56px;
  border: 1px solid #88b8a0;
  border-radius: 14px;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
  cursor: pointer;
}

.doc-type__option {
  user-select: none;
}

.doc-type__option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.doc-type__option--active {
  border: 2px solid #1c7a35;
}

.doc-type__circle {
  width: 31px;
  height: 31px;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}

.doc-type__option--active .doc-type__circle::after {
  content: "";
  position: absolute;
  inset: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}

.doc-type__text {
  font-size: 18px;
  line-height: 1;
  font-weight: 500;
  color: #0b1320;
}

/* =========================
   FORM
========================= */
.search-form__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 142px;
  gap: 16px;
  align-items: end;
}

.form-field {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field__label {
  margin-bottom: 6px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
  color: #66758b;
}

.form-field__control {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid #d7e1ea;
  border-radius: 14px;
  background: #ffffff;
  color: #0b1320;
  font-size: 16px;
  font-weight: 400;
  outline: none;
}

.form-field__control:focus {
  border-color: #1c7a35;
  box-shadow: 0 0 0 3px rgba(46, 158, 70, 0.16);
}

.form-field__control::placeholder {
  color: #94a3b8;
}

.form-field__control.is-masked {
  -webkit-text-security: disc;
  text-security: disc;
}

.form-field__hint {
  margin-top: 9px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 400;
  color: #66758b;
}

.form-field__error {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
  color: #c62828;
}

.form-field__check {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #425466;
}

.form-field__check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.password-rules {
  margin-top: 10px;
  padding: 14px 16px;
  border: 1px solid #8fbfa8;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fdf9 0%, #f2f9f5 100%);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.password-rules__title {
  margin: 0 0 10px;
  font-size: 13px;
  color: #334155;
  font-weight: 600;
}

.password-rules__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.password-rule {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
}

.password-rule::before {
  content: "×";
  position: absolute;
  left: 0;
  top: 1px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #dc2626;
  color: #ffffff;
  font-size: 13px;
  line-height: 17px;
  text-align: center;
  font-weight: 700;
}

.password-rule--pass {
  color: #15803d;
}

.password-rule--pass::before {
  content: "✓";
  background: #16a34a;
}

.password-rule--fail {
  color: #dc2626;
}

/* =========================
   BUTTON
========================= */
.search-form__action {
  display: flex;
  align-items: end;
}

.btn {
  border: none;
  border-radius: 12px;
  font-weight: 700;
}

.btn--primary {
  width: 100%;
  min-height: 53px;
  background: #1c7a35;
  color: #ffffff;
  font-size: 17px;
  box-shadow: var(--shadow-md);
}

/* =========================
   LOADER
========================= */
.loader-section {
  display: flex;
  justify-content: center;
  margin: 28px 0;
}

.loader-section--overlay {
  position: fixed;
  inset: 0;
  margin: 0;
  z-index: 9999;
  background: rgba(11, 19, 32, 0.35);
  align-items: center;
  justify-content: center;
}

.loader-box {
  width: 240px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.loader-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(46, 158, 70, 0.18);
  border-top-color: #1c7a35;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.loader-text {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #0b1320;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================
   AJAX PANELS
========================= */
.panel {
  width: 100%;
  background: #ffffff;
  border: 1px solid #8fbfa8;
  border-radius: 12px;
  padding: 26px 24px;
  margin-top: 18px;
}

.panel__title {
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 500;
  color: #0b1320;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.result-item {
  background: #ffffff;
  border: 1px solid #8fbfa8;
  border-radius: 12px;
  padding: 14px 16px;
}

.result-item__label {
  margin: 0 0 4px;
  color: #66758b;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
}

.result-item__value {
  margin: 0;
  color: #0b1320;
  font-size: 16px;
  font-weight: 500;
  word-break: break-word;
}

/* =========================
   DETAILS FORM
========================= */
.details-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.details-form__actions {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.kbox-actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.kbox-actions .btn--primary {
  width: auto;
  padding: 0 36px;
  background: #112B45;
}

/* =========================
   MENSAJES
========================= */
.message-section {
  display: none;
}

/* =========================
   FOOTER
========================= */
.ant-footer {
  margin-top: 44px;
  background: #154530;
}

.ant-footer__inner {
  width: min(100% - 48px, var(--container-wide));
  margin: 0 auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ant-footer__brand {
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  font-weight: 600;
}

.ant-footer__powered {
  display: flex;
  align-items: center;
}

.ant-footer__powered-label {
  display: none;
}

.ant-footer__powered-logo {
  display: flex;
  align-items: center;
}

.ant-footer__powered-svg {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1100px) {
  .search-panel {
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .doc-type,
  .search-form__bottom,
  .result-grid,
  .details-form__grid {
    grid-template-columns: 1fr;
  }

  .btn--primary {
    width: 100%;
  }

  .option-section {
    justify-content: center;
  }

  .option-card {
    width: 100%;
    max-width: 372px;
  }
}

@media (max-width: 640px) {
  .ant-header__inner,
  .ant-footer__inner {
    width: min(100% - 28px, var(--container-wide));
    min-height: auto;
    padding: 16px 0;
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .ant-header__brand,
  .ant-footer__brand {
    font-size: 18px;
  }

  .ant-header__powered-svg,
  .ant-footer__powered-svg {
    height: 34px;
  }

  .app-main {
    padding: 24px 0 36px;
  }

  .app-main__inner {
    width: min(100% - 24px, var(--container-main));
  }

  .intro-section__step {
    font-size: 22px;
    margin-bottom: 16px;
  }

  .intro-section__title {
    font-size: 30px;
  }

  .intro-section__subtitle {
    font-size: 15px;
  }

  .search-panel,
  .panel {
    padding: 20px 16px;
  }

  .search-panel__title {
    font-size: 22px;
  }

  .doc-type__text {
    font-size: 16px;
  }
}
/* =========================
   USER INFO TOP
========================= */
.info-user {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.info-user__icon {
  width: 42px;
  height: 42px;
  background: #c2e8d4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.info-user__data h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.badge-active {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 10px;
  font-size: 12px;
  background: #1c7a35;
  color: #fff;
  border-radius: 12px;
}

.info-user__amount {
  margin-left: auto;
  font-size: 14px;
}

.info-user__amount strong {
  color: #1c7a35;
}
/* =========================
   FINAL SCREEN
========================= */
.final-screen {
  display: flex;
  justify-content: center;
  padding: 40px 0 10px;
}

.final-card {
  width: 100%;
  max-width: 760px;
  background: #ffffff;
  border: 1px solid #8fbfa8;
  border-radius: 16px;
  padding: 38px 28px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.final-card__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 700;
}

.final-card__icon--success {
  background: #e9f9ef;
  color: #18a957;
}

.final-card__icon--error {
  background: #fdeaea;
  color: #cf2f2f;
}

.final-card__title {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 600;
  color: #0b1320;
}

.final-card__text {
  margin: 0 auto;
  max-width: 540px;
  font-size: 16px;
  line-height: 1.5;
  color: #5e6c7f;
}

.final-card__actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
/* =========================
   FINAL SCREEN MEJORADO
========================= */
.final-screen {
  display: flex;
  justify-content: center;
  padding: 40px 0 10px;
}

.final-card {
  width: 100%;
  max-width: 980px;
  background: #ffffff;
  border: 1px solid #8fbfa8;
  border-radius: 18px;
  padding: 34px 34px 36px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  text-align: center;
}

.final-card__icon {
  width: 94px;
  height: 94px;
  margin: 0 auto 18px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.final-card__icon--success {
  background: radial-gradient(circle at center, #eefaf3 0%, #e6f7ed 100%);
  border: 1px solid #d5f0df;
}

.final-card__icon--error {
  background: radial-gradient(circle at center, #fff1f1 0%, #fdeaea 100%);
  border: 1px solid #f3c9c9;
}

.final-card__checkmark {
  width: 30px;
  height: 16px;
  border-left: 5px solid #16a34a;
  border-bottom: 5px solid #16a34a;
  transform: rotate(-45deg);
  margin-top: -4px;
}

.final-card__error-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #cf2f2f;
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.final-card__icon--error .final-card__checkmark {
  width: 22px;
  height: 22px;
  border: none;
  margin-top: 0;
  position: relative;
}

.final-card__icon--error .final-card__checkmark::before,
.final-card__icon--error .final-card__checkmark::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 22px;
  height: 4px;
  background: #cf2f2f;
  border-radius: 999px;
}

.final-card__icon--error .final-card__checkmark::before {
  transform: rotate(45deg);
}

.final-card__icon--error .final-card__checkmark::after {
  transform: rotate(-45deg);
}

.final-card__eyebrow {
  margin: 0 0 8px;
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.final-card__title {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 600;
  color: #0b1320;
}

.final-card__text {
  margin: 0 auto 22px;
  max-width: 720px;
  font-size: 17px;
  line-height: 1.55;
  color: #425466;
}

.final-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 22px;
}

.final-summary__item {
  background: #e4f5ee;
  border: 1px solid #8fbfa8;
  border-radius: 14px;
  padding: 16px;
  text-align: left;
}

.final-summary__label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
}

.final-summary__value {
  font-size: 18px;
  color: #0b1320;
  font-weight: 600;
  word-break: break-word;
}

.final-summary__value--success {
  color: #16a34a;
}

.final-card__note {
  margin: 0 auto 22px;
  max-width: 700px;
  font-size: 15px;
  color: #6b7280;
}

.final-card__footer-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.final-card__brand-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.final-card__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn--ghost {
  min-height: 54px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid #88b8a0;
  background: #ffffff;
  color: #0b1320;
  font-weight: 600;
}

@media (max-width: 900px) {
  .final-summary {
    grid-template-columns: 1fr;
  }
}
/* =========================
   TITULO AJAX SUPERIOR
========================= */
.ajax-page-title {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 600;
  color: #0b1320;
}

.ajax-page-cta {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.55;
  color: #425466;
}

/* =========================
   INFO TOP
========================= */
.info-top {
  margin-bottom: 22px;
}

.info-user {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.info-user__icon {
  width: 48px;
  height: 48px;
  background: #c2e8d4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.info-user__data h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
  color: #0b1320;
}

.badge-active {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 12px;
  font-size: 13px;
  line-height: 1;
  background: #1c7a35;
  color: #ffffff;
  border-radius: 999px;
  font-weight: 600;
}

.info-user__status-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.info-user__status-line .badge-active {
  margin-top: 0;
}

.badge-identity {
  font-size: 13px;
  font-weight: 600;
  color: #0b1320;
}

.badge-guia {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 2px 10px;
}

.info-user__tag {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
}

.info-user__route {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
}

.pay-button-footnote {
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
  text-align: center;
  max-width: 480px;
}

.pay-button-footnote:empty {
  display: none;
}

.charge-note {
  margin: 12px auto 0;
  max-width: 620px;
  font-size: 13px;
  line-height: 1.55;
  color: #475569;
  text-align: center;
  padding: 10px 16px;
  background: #f8fafc;
  border-radius: 8px;
}

.info-user__amount {
  margin-left: auto;
  font-size: 16px;
  color: #0b1320;
  font-weight: 500;
}

.info-user__amount strong {
  color: #1c7a35;
  font-weight: 700;
}

.info-user__amount {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.info-user__amount-label {
  font-size: 14px;
  color: #0b1320;
}

.info-user__amount-original {
  font-size: 13px;
  color: #64748b;
  text-decoration: line-through;
}

.info-user__amount-discount-note {
  font-size: 12px;
  color: #154530;
  font-weight: 600;
}

.info-user__amount strong {
  font-size: 20px;
  line-height: 1.1;
}

.result-item--full {
  grid-column: 1 / -1;
}

.result-item__value--multiline {
  line-height: 1.5;
}

.result-item--highlight {
  border: 2px solid #154530;
  background: #ffffff;
  box-shadow: 0 8px 16px rgba(36, 99, 85, 0.14);
}

.result-item--highlight .result-item__label {
  color: #154530;
  font-weight: 700;
}

.result-item--highlight .result-item__value {
  font-size: 18px;
  font-weight: 600;
}

.info-top__desc {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.5;
  color: #0b1320;
}

.info-alert-title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  color: #0b1320;
}

.info-alert-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #0b1320;
}

/* =========================
   HEADER MOVIL SIN LOGO
========================= */
@media (max-width: 640px) {
  .ant-header__powered {
    display: none !important;
  }

  .ant-header__inner {
    justify-content: flex-start !important;
    text-align: left !important;
  }

  .ant-header__brand {
    font-size: 18px;
  }

  .ajax-page-title {
    font-size: 22px;
    margin-bottom: 14px;
  }

  .info-user {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }

  .info-user__icon {
    width: 42px;
    height: 42px;
  }

  .info-user__data h3 {
    font-size: 15px;
    word-break: break-word;
  }

  .badge-guia {
    font-size: 11px;
  }

  .info-user__amount {
    margin-left: 0;
    width: 100%;
    margin-top: 4px;
    align-items: flex-start;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
  }
}
@media (max-width: 640px) {
  .ant-header__powered {
    display: none !important;
  }
}
@media (max-width: 640px) {
  .ant-header__powered {
    display: none !important;
  }
}
@media (max-width: 640px) {
  .ant-header__powered,
  .ant-header__powered-logo,
  .ant-header__powered-svg {
    display: none !important;
  }
}
@media (max-width: 640px) {
  .ant-header__powered,
  .ant-header__powered-logo,
  .ant-header__powered-svg {
    display: none !important;
  }

  .ant-header__inner {
    justify-content: flex-start !important;
    text-align: left !important;
  }

  .ant-header__brand {
    font-size: 18px;
  }
}
/* =========================
   ALERTA IMPORTANTE
========================= */
.alert-box {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid #f5c2c7;
  background: #fff5f5;
}

.alert-box__title {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 700;
  color: #c62828;
}

.alert-box__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #8a1c1c;
}


/* Payment Form Redesign */
.kbox {
  position: relative;
  margin: 30px auto 0;
  max-width: 520px;
  padding: 22px;
  border: 1px solid #88b8a0;
  border-radius: 16px;
  background: #ffffff;
}

.payment-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.payment-overlay__spinner {
  width: 110px;
  height: 110px;
  border: 7px solid rgba(17, 43, 69, 0.15);
  border-top-color: #112B45;
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
  margin-top: 14px;
}

.payment-overlay__title {
  margin: 0;
  font-size: 36px;
  font-weight: 400;
  color: #112B45;
  line-height: 1.1;
}

.payment-overlay__subtitle {
  margin: 0;
  font-size: 17px;
  font-weight: 400;
  color: #112B45;
  opacity: 0.75;
}

.khead {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #0b1320;
  font-size: 18px;
  font-weight: 500;
}

.khead-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.9;
}

.logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.logos img {
  display: block;
  height: 14px;
  width: auto;
  object-fit: contain;
}

.kcontent {
  display: grid;
  gap: 14px;
}

.form-block {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field-title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
}

.row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.field {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 50px !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 14px !important;
  border: 1px solid #82b49c !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
}

.field-icon-box {
  height: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.prefix-icon,
.field-icon-box img:not(.dynamic-card-icon) {
  width: 18px !important;
  height: 18px !important;
  object-fit: contain !important;
  opacity: 0.7 !important;
}

.dynamic-card-icon {
  height: 16px !important;
  width: auto !important;
  max-width: 40px !important;
  object-fit: contain !important;
  opacity: 1 !important;
}

.field input {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 16px !important;
  color: #111827 !important;
  font-weight: 500 !important;
}

.field input::placeholder {
  color: #8a93a3 !important;
}

@media (max-width: 900px) {
  .kbox {
    padding: 16px;
    max-width: 100%;
    width: 100%;
  }

  .row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .panel,
  .details-form,
  .kbox,
  .kcontent,
  .form-block,
  .field {
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .panel,
  .kbox {
    overflow: hidden;
  }

  .field input {
    min-width: 0 !important;
  }
}



/* validaciones campos de pago */

/* ERROR */
.input-error-parent {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08) !important;
}

/* SUCCESS */
.input-success-parent {
  border-color: #16a34a !important;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.08) !important;
}

/* TEXTO ERROR */
.field-error {
  min-height: 0;
  font-size: 12px;
  color: #dc2626;
  line-height: 1.3;
}

.field-error:empty {
  display: none;
}

/* =============================================
   TEXTO MARCA — debajo del form de búsqueda
   ============================================= */
.search-brand-desc {
  margin: 18px auto 0;
  max-width: 580px;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.65;
  padding: 0 16px;
}

/* =============================================
   POPUP BIENVENIDA
   ============================================= */
.promo-popup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.promo-popup.is-hidden {
  display: none;
}

.promo-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.promo-popup__box {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  overflow: hidden;
  animation: popupIn 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes popupIn {
  from { opacity: 0; transform: scale(0.88) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.promo-popup__close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(0,0,0,0.08);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: background 0.15s;
}

.promo-popup__close:hover {
  background: rgba(0,0,0,0.16);
}

.promo-popup__img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  display: block;
}

.promo-popup__body {
  padding: 22px 26px 28px;
  text-align: center;
}

.promo-popup__title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  color: #0b1320;
  line-height: 1.3;
}

.promo-popup__lead {
  margin: 0 0 14px;
  font-size: 14px;
  color: #374151;
  line-height: 1.55;
}

.promo-popup__prizes {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.promo-popup__prizes li {
  font-size: 15px;
  font-weight: 600;
  color: #154530;
}

.promo-popup__sub {
  margin: 0 0 8px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.55;
}

.promo-popup__cta {
  margin-top: 18px;
  width: 100%;
  font-size: 15px;
  letter-spacing: 0.04em;
}

@media (max-width: 480px) {
  .promo-popup__box { border-radius: 16px; }
  .promo-popup__body { padding: 18px 18px 24px; }
  .promo-popup__title { font-size: 17px; }
}

