@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  background: #6b1f3f;
  color: #111827;
}
a { color: inherit; text-decoration: none; }

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero {
  padding: 48px 16px 110px;
  text-align: center;
}
.hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 5vw, 46px);
  text-transform: uppercase;
  font-weight: 700;
}
.hero p {
  margin: 20px auto 0;
  color: #fff;
  font-size: clamp(17px, 2.3vw, 32px);
  max-width: 840px;
}

.white-panel {
  flex: 1;
  background: #ffffff;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  margin-top: -52px;
  padding: 20px 14px 30px;
  display: flex;
  flex-direction: column;
}
.card-center {
  width: min(550px, 95%);
  margin: 0 auto;
}

.info-circle {
  width: 42px;
  height: 42px;
  margin: 0 auto 28px;
  border-radius: 50%;
  border: 0;
  background: #f5e6d3;
  color: #111827;
  font-weight: 700;
  cursor: pointer;
}

.field-wrap {
  position: relative;
  margin-bottom: 18px;
}
.field-wrap input,
.field-wrap select {
  width: 100%;
  height: 56px;
  border-radius: 1.5rem;
  border: 1px solid #d4c4b0;
  background: #f5e6d3;
  color: #111827;
  padding: 23px 14px 8px 44px;
  font-size: 15px;
  outline: none;
}
.field-wrap label {
  position: absolute;
  left: 44px;
  top: 20px;
  color: #667085;
  font-size: 16px;
  transition: all .2s ease;
  pointer-events: none;
}
.field-wrap.is-filled label,
.field-wrap input:focus + label,
.field-wrap select:focus + label {
  top: 5px;
  font-size: 12px;
  color: #111827;
}
.field-icon {
  position: absolute;
  left: 14px;
  top: 19px;
  color: #4b5563;
}
.field-error {
  margin-top: 6px;
  color: #ef4444;
  font-size: 14px;
}
.field-wrap.has-error input,
.field-wrap.has-error select {
  border-color: #ef4444 !important;
}
.field-wrap.has-error::after {
  content: "!";
  position: absolute;
  right: 14px;
  top: 28px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.8px solid #ef4444;
  background: transparent;
  color: #ef4444;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cta-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: min(420px, 85%);
  margin: 24px auto 0;
  height: 56px;
  border: 0;
  border-radius: 999px;
  background: #6b1f3f;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.tiny-note {
  margin: 22px auto 0;
  max-width: 530px;
  font-size: 12px;
  color: #6b7280;
  text-align: center;
}
.tiny-note a { color: #6b1f3f; }
.help-note {
  margin: auto 0 26px;
  text-align: center;
  color: #4b5563;
}

/* Home exact sizes */
.home-page .home-hero {
  padding: 50px 16px 112px;
}
.home-page .home-hero h1 {
  font-size: 36px;
  line-height: 1.1;
  font-weight: 700;
  text-transform: uppercase;
}
.home-page .home-hero p {
  margin-top: 20px;
  font-size: 24px;
  line-height: 1.25;
  max-width: 700px;
}
.home-page .home-panel {
  margin-top: -54px;
  padding: 30px 14px 0;
}
.home-page .card-center {
  width: min(560px, 95%);
}
.home-page .info-circle {
  width: 40px;
  height: 40px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 18px;
}
.home-page .home-email-wrap {
  margin-bottom: 12px;
  width: min(500px, 100%);
  margin-left: auto;
  margin-right: auto;
}
.home-page .home-email-icon {
  top: 19px;
  left: 16px;
}
.home-page .home-email-input {
  height: 56px;
  border-radius: 1.5rem;
  border: 1px solid #d4c4b0;
  background: #f5e6d3;
  font-size: 16px;
  color: #111827;
  padding: 22px 18px 8px 46px;
  line-height: 1.2;
  width: 100%;
  display: block;
  transition: border-color .2s ease;
}
.home-page .home-email-input:focus {
  border-color: #6b1f3f;
}
.home-page .home-email-input::placeholder {
  color: transparent;
  font-weight: 500;
}
.home-page .home-email-input:focus::placeholder {
  color: #9ca3af;
  font-weight: 500;
}
.home-page .home-email-label {
  left: 46px;
  top: 17px;
  font-size: 16px;
  color: #667085;
  font-weight: 500;
}
.home-page .home-email-wrap.is-filled .home-email-label,
.home-page .home-email-input:focus + .home-email-label {
  top: 6px;
  font-size: 12px;
  color: #111827;
  font-weight: 500;
}
.home-page .cta-btn {
  font-size: 16px;
  font-weight: 500;
  margin-top: 42px;
  width: min(340px, 86%);
  transition: background-color .2s ease;
}
.home-page .cta-btn:hover {
  background: #4a1529;
}
.home-page .cta-btn .cta-btn-arrow,
.home-page .cta-btn .cta-btn-arrow.h-5.w-5 {
  flex-shrink: 0;
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}
.cta-btn .cta-btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.cta-btn.is-loading {
  opacity: .95;
  cursor: wait;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.home-page .home-tiny-note {
  margin-top: 34px;
  font-size: 12px;
  line-height: 1.35;
  max-width: 430px;
}
.home-page .home-help-note {
  margin: 136px 0 64px;
  font-size: 16px;
  line-height: 1.3;
}

@media (max-width: 760px) {
  .home-page .home-hero h1 {
    font-size: 32px;
  }
  .home-page .home-hero p {
    font-size: 16px;
    max-width: 320px;
    line-height: 1.35;
  }
  .home-page .home-email-input,
  .home-page .home-email-label {
    font-size: 16px;
  }
  .home-page .home-help-note {
    font-size: 14px;
  }
  .home-page .home-tiny-note {
    max-width: 320px;
  }
}
.home-page .site-footer {
  margin-top: 0;
  padding: 32px 18px 24px;
}
.home-page .footer-grid h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 10px;
}
.home-page .footer-grid p,
.home-page .footer-grid li,
.home-page .footer-grid a,
.home-page .footer-bottom {
  font-size: 14px;
  line-height: 1.5;
}
.home-page .footer-bottom {
  margin-top: 20px;
  padding-top: 14px;
}

/* Modal información (como Node / Dialog) */
.home-info-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: "Montserrat", Arial, sans-serif;
}
.home-info-overlay.is-open {
  display: flex;
}
.home-info-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}
.home-info-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 28rem;
  background: #fff;
  border-radius: 8px;
  padding: 24px 24px 28px;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}
.home-info-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-info-close:hover {
  background: #f3f4f6;
  color: #111827;
}
.home-info-title {
  margin: 0 40px 12px 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
}
.home-info-text {
  margin: 0;
  padding-top: 8px;
  font-size: 1rem;
  line-height: 1.625;
  color: #374151;
  text-align: left;
}

.site-footer {
  background: #f3f4f6;
  color: #1f2937;
  padding: 34px 18px 24px;
}
.footer-inner { width: min(1100px, 95%); margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.footer-grid h3 { margin: 0 0 16px; font-size: 30px; font-weight: 600; }
.footer-grid p, .footer-grid li, .footer-grid a {
  color: #4b5563;
  font-size: 20px;
  line-height: 1.5;
}
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li { margin-bottom: 4px; }
.footer-bottom {
  border-top: 1px solid #d1d5db;
  margin-top: 20px;
  padding-top: 14px;
  text-align: center;
  color: #4b5563;
  font-size: 17px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.form-page .form-hero {
  padding: 50px 16px 112px;
}
.form-page .form-hero h1 {
  font-size: 36px;
  line-height: 1.1;
  font-weight: 700;
  text-transform: uppercase;
}
.form-page .form-hero p {
  margin-top: 20px;
  font-size: 24px;
  line-height: 1.25;
  max-width: 700px;
}
.form-page .form-panel {
  margin-top: -54px;
  padding: 30px 14px 72px;
}
.form-page .card-center {
  width: min(560px, 95%);
}
.form-intro {
  margin: 0 0 20px;
  font-size: 15px;
  color: #374151;
  line-height: 1.45;
}
.form-intro-list {
  margin: 0 0 20px;
  padding-left: 1.25rem;
  font-size: 15px;
  color: #374151;
  line-height: 1.5;
}
.form-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.form-tab {
  flex: 1;
  min-height: 48px;
  border-radius: 999px;
  border: 2px solid #d4c4b0;
  background: #fff;
  color: #4b5563;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.form-tab:hover {
  border-color: #6b1f3f;
  color: #6b1f3f;
}
.form-tab.is-active {
  background: #6b1f3f;
  border-color: #6b1f3f;
  color: #fff;
}
.form-tab-panel.is-hidden,
.form-tab-panel[hidden] {
  display: none !important;
}
.form-page .form-grid {
  gap: 12px;
}
/* Pestañas y paneles siempre ancho completo (evita 2 columnas: tabs | input) */
.form-page .form-grid > .form-tabs,
.form-page .form-grid > .form-tab-panel,
.form-page .form-grid > .form-datos-grid,
.form-page .form-grid > .form-filiacion-note {
  grid-column: 1 / -1;
}
@media (min-width: 768px) {
  .form-busqueda-grid .form-busqueda-span-full {
    grid-column: 1 / -1;
  }
}
.form-filiacion-note {
  margin: 8px 0 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.4;
}
.form-page .field-wrap input,
.form-page .field-wrap select {
  height: 56px;
  border-radius: 1.5rem;
  border: 1px solid #d4c4b0;
  background: #f5e6d3;
  font-size: 16px;
  color: #111827;
  padding: 22px 18px 8px 46px;
  line-height: 1.2;
  width: 100%;
  display: block;
  transition: border-color .2s ease;
}
.form-page .field-wrap select {
  cursor: pointer;
}
.label-required {
  color: #b91c1c;
  font-weight: 700;
  margin-left: 1px;
}
.form-datos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 14px;
  row-gap: 16px;
  width: 100%;
}
.form-datos-grid .field-wrap {
  min-width: 0;
}
/* Una sola columna solo en vista móvil */
@media (max-width: 767px) {
  .form-datos-grid {
    grid-template-columns: 1fr;
  }
}
.form-page .field-wrap input::placeholder {
  color: #9ca3af;
  opacity: 1;
}
.form-page .field-wrap input:focus,
.form-page .field-wrap select:focus {
  border-color: #6b1f3f;
}
.form-page .field-wrap label {
  left: 46px;
  top: 17px;
  font-size: 16px;
  color: #667085;
  font-weight: 500;
}
.form-page .field-wrap.is-filled label,
.form-page .field-wrap input:focus + label,
.form-page .field-wrap select:focus + label {
  top: 6px;
  font-size: 12px;
  color: #111827;
  font-weight: 500;
}
.form-page .field-icon {
  top: 19px;
  left: 16px;
}
.form-page .cta-btn {
  font-size: 16px;
  font-weight: 500;
  margin-top: 42px;
  width: min(340px, 86%);
  transition: background-color .2s ease;
}
.form-page .cta-btn:hover {
  background: #4a1529;
}
.form-page .cta-btn .cta-btn-arrow,
.form-page .cta-btn .cta-btn-arrow.h-5.w-5 {
  flex-shrink: 0;
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}
.form-page .field-wrap select {
  appearance: none;
}
.form-page #estado,
.form-page #regimenFiscal {
  cursor: pointer;
}

/* INE en formulario: mismo patrón que spei.php + bordes redondos como los inputs */
.form-page .form-page-alert {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.45;
  box-sizing: border-box;
}
.form-page .form-page-alert--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.form-page .form-upload-ine .upload-label {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 500;
  color: #111827;
}
.form-page .form-upload-ine .upload-picker-wrap {
  margin-top: 8px;
}
/* Mismo look que los inputs del formulario + ancho como el botón Cargar anterior (upload-btn-wide) */
.form-page .form-upload-ine .upload-picker-wrap .upload-action {
  margin-top: 0;
  width: min(240px, 100%);
  max-width: min(240px, 100%);
  box-sizing: border-box;
  border-radius: 1.5rem;
  height: 56px;
  padding: 0 18px;
  gap: 8px;
  justify-content: center;
  background: #f5e6d3;
  border: 1px solid #d4c4b0;
  color: #667085;
  font-family: inherit;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.form-page .form-upload-ine .upload-picker-wrap .upload-action:hover {
  background: #f0dcc4;
  border-color: #6b1f3f;
  color: #111827;
}
.form-page .form-upload-ine .upload-picker-wrap .upload-action-icon,
.form-page .form-upload-ine .upload-picker-wrap .upload-action-text {
  color: inherit;
}
.form-page .form-upload-ine .upload-picker-wrap .upload-file-chip {
  border-radius: 1.5rem;
  width: min(240px, 100%);
  max-width: min(240px, 100%);
  box-sizing: border-box;
  background: #f5e6d3;
  border: 1px solid #d4c4b0;
}
.form-page .form-upload-ine .upload-picker-wrap .upload-file-chip-name {
  color: #111827;
}
.form-page .form-upload-ine .field-error {
  margin-top: 6px;
  max-width: min(240px, 100%);
}
.form-page .form-upload-ine.has-error .upload-picker-wrap .upload-action,
.form-page .form-upload-ine.has-error .upload-picker-wrap .upload-file-chip {
  border-color: #ef4444 !important;
}
@media (min-width: 640px) {
  .form-page .form-upload-ine .upload-picker-wrap .upload-file-chip {
    max-width: min(240px, 100%);
  }
}

.form-grid-half {
  grid-column: span 1;
}
.form-grid-full {
  grid-column: 1 / -1;
}
.upload-block {
  margin-top: 2px;
}
.upload-label-inline {
  display: block;
  font-size: 16px;
  color: #111827;
}
.upload-btn-wide {
  margin-top: 8px;
  width: min(240px, 100%);
  height: 56px;
  border-radius: 1.5rem;
}
.upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #d4c4b0;
  background: #f5e6d3;
  cursor: pointer;
}
.upload-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #93c5fd;
  background: rgba(147, 197, 253, .2);
  font-size: 13px;
}

@media (max-width: 980px) {
  .footer-grid h3 { font-size: 22px; }
  .footer-grid p, .footer-grid li, .footer-grid a { font-size: 16px; }
}
@media (max-width: 760px) {
  .hero p { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .white-panel { margin-top: -40px; }
  .form-page .form-hero h1 { font-size: 32px; }
  .form-page .form-hero p {
    font-size: 16px;
    max-width: 320px;
    line-height: 1.35;
  }
  .form-page .field-wrap input,
  .form-page .field-wrap select,
  .form-page .field-wrap label {
    font-size: 16px;
  }
  .checkout-page .checkout-hero h1 { font-size: 32px; }
  .checkout-page .checkout-hero p {
    font-size: 16px;
    max-width: 320px;
    line-height: 1.35;
  }
}
@media (min-width: 760px) {
  .form-page .form-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 14px;
    row-gap: 16px;
  }
  .form-page .form-grid > .field-wrap:not(.form-grid-half),
  .form-page .form-grid > .upload-block,
  .form-page .form-grid > .cta-btn {
    grid-column: 1 / -1;
  }
}

/* Checkout screens */
.checkout-shell {
  min-height: 100vh;
  background: #6b1f3f;
  display: flex;
  flex-direction: column;
}
.checkout-page .checkout-hero {
  padding: 50px 16px 112px;
}
.checkout-page .checkout-hero h1 {
  font-size: 36px;
  line-height: 1.1;
  font-weight: 700;
  text-transform: uppercase;
}
.checkout-page .checkout-hero p {
  margin-top: 20px;
  font-size: 24px;
  line-height: 1.25;
  max-width: 700px;
}
.checkout-page .checkout-panel {
  margin-top: -54px;
  padding: 30px 14px 32px;
}
.checkout-page .checkout-card {
  width: min(560px, 95%);
  margin: 0 auto;
}
.checkout-page .checkout-title {
  font-size: 18px;
  font-weight: 400;
  margin: 0;
  color: #111827;
}
.checkout-page .checkout-desc {
  margin: 8px 0 0;
  font-size: 14px;
  color: #4b5563;
  line-height: 1.5;
}
.checkout-page .payment-choice {
  margin-top: 12px;
}
.checkout-page .cta-btn {
  font-size: 16px;
  font-weight: 500;
  margin-top: 28px;
  width: min(340px, 86%);
  transition: background-color .2s ease;
}
.checkout-page .cta-btn:hover {
  background: #4a1529;
}
.checkout-page .cta-btn .cta-btn-arrow,
.checkout-page .cta-btn .cta-btn-arrow.h-5.w-5 {
  flex-shrink: 0;
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}
.checkout-card {
  width: min(550px, 95%);
  margin: 0 auto;
}
.checkout-title {
  font-size: 18px;
  font-weight: 400;
  margin: 0;
  color: #111827;
}
.checkout-desc {
  margin: 8px 0 0;
  font-size: 14px;
  color: #4b5563;
  line-height: 1.5;
}
.payment-choice {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  background: #fff;
  margin-top: 12px;
  cursor: pointer;
  transition: all .2s ease;
}
.payment-choice.is-active {
  border-color: #6b1f3f;
  background: #f5e6d3;
}
.payment-choice:hover:not(.is-disabled) {
  border-color: rgba(107, 31, 63, .35);
}
.payment-choice.is-disabled {
  opacity: 0.85;
  cursor: not-allowed;
  background: #f9fafb;
  border-color: #d1d5db;
}
.payment-choice.is-disabled .choice-name,
.payment-choice.is-disabled .choice-text {
  color: #9ca3af;
}
.choice-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.choice-copy {
  flex: 1;
  min-width: 0;
}
.choice-name {
  font-size: 16px;
  margin: 0;
  color: #111827;
  font-weight: 500;
}
.choice-unavailable {
  font-size: 12px;
  font-weight: 400;
  color: #9ca3af;
  margin-left: 4px;
}
.choice-text {
  margin: 6px 0 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}
.choice-price {
  margin: 8px 0 0;
  color: #6b1f3f;
  font-size: 16px;
  font-weight: 600;
}
.choice-logo {
  flex-shrink: 0;
  min-width: 58px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.choice-logo-row {
  gap: 8px;
  flex-wrap: wrap;
}
.choice-logo-single {
  min-width: 50px;
}
.payment-brand-img {
  height: 20px;
  width: auto;
  max-width: 48px;
  object-fit: contain;
  display: block;
}
.payment-brand-img--spei,
.payment-brand-img--oxxo {
  height: 24px;
  max-width: 56px;
}
.payment-brand-img.is-muted {
  opacity: 0.5;
}
.logo-badge {
  font-size: 10px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 2px 5px;
  background: #fff;
  color: #374151;
  font-weight: 600;
}

.provider-page {
  min-height: 100vh;
  background: #3b6f62;
  padding: 26px 12px 34px;
}
.provider-card {
  width: min(760px, 100%);
  margin: 0 auto;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
}
.provider-card--narrow {
  width: min(720px, 100%);
}
.provider-logo {
  height: 48px;
  display: block;
  margin: 0 auto;
  width: auto;
  object-fit: contain;
}
.provider-sub {
  margin-top: 12px;
  text-align: center;
  color: #2563eb;
  font-weight: 600;
  font-size: 14px;
}
.provider-amount {
  margin-top: 8px;
  border-bottom: 2px solid #d1d5db;
  padding: 10px 0;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  color: #111827;
}
.provider-title {
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  margin: 14px 0 10px;
}
.provider-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
  color: #111827;
  font-size: 15px;
}
.provider-box h3 {
  margin: 0 0 10px;
  color: #2563eb;
  font-size: 18px;
  font-weight: 600;
}
.provider-text {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.5;
}
.provider-value {
  font-weight: 600;
}
.provider-mini {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 10px 12px;
  color: #374151;
  font-size: 12px;
  line-height: 1.5;
}
.copy-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
  font-size: 15px;
  line-height: 1.5;
}
.copy-btn {
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  padding: 1px 2px;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 0;
}
.copy-btn-icon {
  display: block;
  flex-shrink: 0;
}
.copy-btn-icon--check {
  display: none;
  color: #22c55e;
}
.copy-btn.is-copied .copy-btn-icon--copy {
  display: none;
}
.copy-btn.is-copied .copy-btn-icon--check {
  display: block;
}
.copy-btn:hover:not(.is-copied) { background: #e5e7eb; color: #374151; }
.copy-btn.is-copied { background: transparent; color: inherit; }
.copy-btn.is-copied:hover { background: transparent; }
.copy-btn.is-copy-error { color: #dc2626; }
.copy-btn.is-copy-error .copy-btn-icon--copy { display: block; }
.copy-btn.is-copy-error .copy-btn-icon--check { display: none; }

.upload-label {
  margin-top: 14px;
  display: block;
  font-size: 16px;
}
.upload-action {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #d1d5db;
  height: 56px;
  padding: 0 24px;
  border-radius: 8px;
  color: #2563eb;
  cursor: pointer;
  font-family: "Montserrat", Arial, sans-serif;
  transition: background-color .2s ease, border-color .2s ease;
}
.upload-action:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.upload-action-icon {
  flex-shrink: 0;
  color: #2563eb;
}
.upload-action-text {
  font-size: 16px;
  color: #2563eb;
}

.upload-picker-wrap {
  margin-top: 8px;
}
.upload-picker-wrap .upload-file-chip {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}
.upload-picker-wrap.has-file .upload-action {
  display: none;
}
.upload-picker-wrap.has-file .upload-file-chip {
  display: flex;
}
@media (min-width: 640px) {
  .upload-picker-wrap .upload-file-chip {
    max-width: 50%;
  }
}
.upload-file-chip-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.upload-file-chip-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
}
.upload-file-chip-remove {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  padding: 2px;
  cursor: pointer;
  color: #667085;
  line-height: 0;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.upload-file-chip-remove-icon {
  display: block;
  width: 26px;
  height: 26px;
}
.upload-file-chip-remove:hover {
  opacity: 0.85;
}
.pay-validate {
  margin: 14px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(260px, 100%);
  height: 44px;
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  font-family: "Montserrat", Arial, sans-serif;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}
.pay-validate.enabled {
  background: #28a745;
  color: #fff;
  opacity: 1;
}
.pay-validate.enabled:hover {
  background: #218838;
  color: #fff;
}
.pay-validate.disabled {
  background: #e5e7eb;
  color: #9ca3af;
  opacity: 0.72;
  cursor: not-allowed;
}
.pay-validate.disabled:hover {
  background: #e5e7eb;
  color: #9ca3af;
  opacity: 0.72;
}
.pay-validate.is-loading {
  cursor: wait;
  gap: 10px;
}
.pay-validate.enabled.is-loading {
  pointer-events: none;
}
.pay-validate-spinner {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Confirmación (checkout Node) */
.confirmacion-page {
  margin: 0;
  min-height: 100vh;
  background: #fff;
  font-family: "Montserrat", Arial, sans-serif;
  color: #111827;
}
.confirmacion-shell {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 80px 16px 64px;
  box-sizing: border-box;
}
.confirmacion-inner {
  width: 100%;
  max-width: 42rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.confirmacion-check-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #dcfce7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.confirmacion-check {
  width: 48px;
  height: 48px;
  color: #16a34a;
}
.confirmacion-title {
  margin: 0;
  font-size: 28px;
  font-weight: 400;
  color: #111827;
  line-height: 1.2;
}
.confirmacion-text {
  max-width: 28rem;
  margin: 0;
  text-align: center;
}
.confirmacion-text p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #374151;
}
.confirmacion-text p + p {
  margin-top: 1.5rem;
}
.confirmacion-actions {
  margin-top: 8px;
}
.confirmacion-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 240px;
  padding: 12px 32px;
  border-radius: 999px;
  background: #6b1f3f;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  font-family: "Montserrat", Arial, sans-serif;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.confirmacion-btn:hover {
  background: #4a1529;
  color: #fff;
}
.confirmacion-btn-arrow,
.confirmacion-btn-arrow.h-5.w-5 {
  flex-shrink: 0;
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}
@media (max-width: 760px) {
  .confirmacion-shell {
    padding-top: 64px;
  }
  .confirmacion-title {
    font-size: 24px;
  }
}

.tarjeta-page {
  min-height: 100vh;
  background: #fff;
  color: #111827;
  padding: 26px 14px 30px;
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.tarjeta-page input,
.tarjeta-page select,
.tarjeta-page button,
.tarjeta-page textarea {
  font-family: inherit;
}
.tarjeta-wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
}
.tarjeta-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.tarjeta-title {
  font-size: 28px;
  margin: 0;
  font-weight: 400;
}
.tarjeta-back {
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  color: #111827;
  transition: color 0.2s ease;
}
.tarjeta-back:hover {
  color: #374151;
}
.tarjeta-pay-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.tarjeta-form-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pay-field-card {
  position: relative;
}
.floating-pay--card {
  position: relative;
  overflow: visible;
  z-index: 0;
}
.pay-input--card {
  padding-right: 7.5rem;
  position: relative;
  z-index: 0;
}
.pay-card-logos {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
  pointer-events: none;
}
.pay-card-logo {
  height: 15px;
  width: auto;
  max-width: 32px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.pay-field-cvv {
  position: relative;
}
.floating-pay--cvv {
  position: relative;
}
.pay-input--cvv {
  padding-right: 2.75rem;
}
@media (max-width: 639px) {
  .pay-input--cvv {
    padding-right: 12px;
  }
}
.pay-cvv-hint {
  position: absolute;
  right: 12px;
  top: 50%;
  margin-top: 0;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  color: #9ca3af;
  pointer-events: none;
  z-index: 3;
  display: none;
  overflow: visible;
}
@media (min-width: 640px) {
  .pay-cvv-hint {
    display: block;
  }
}
.pay-input--select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 40px;
}
.floating-pay--select {
  position: relative;
}
.pay-select-chevron {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: #9ca3af;
  pointer-events: none;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pay-select-chevron-svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
  flex-shrink: 0;
}
.tarjeta-address-extra {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out, margin-top 0.5s ease-in-out;
  pointer-events: none;
}
.tarjeta-address-extra.is-open {
  max-height: 900px;
  opacity: 1;
  margin-top: 16px;
  pointer-events: auto;
}
/* Misma separación que entre otros inputs: el gap del section (16px) + margin del floating-pay ya basta; el margin-top extra duplicaba espacio hasta la 2.ª línea */
.tarjeta-page .tarjeta-address-extra.is-open {
  margin-top: 0;
}
.tarjeta-address-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tarjeta-page .tarjeta-address-inner {
  gap: 14px;
}
.tarjeta-address-extra:not(.is-open) .tarjeta-address-inner {
  pointer-events: none;
}
.tarjeta-page .summary-list .summary-item {
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.tarjeta-page .summary-icon {
  flex-shrink: 0;
  margin-top: 2px;
}
.tarjeta-page .summary-svg {
  display: block;
  color: #6b1f3f;
}
.tarjeta-page .summary-svg.h-5.w-5 {
  width: 1.25rem;
  height: 1.25rem;
}
.tarjeta-page .text-burgundy {
  color: #6b1f3f;
}
.tarjeta-page .shrink-0 {
  flex-shrink: 0;
}
.tarjeta-summary-card.simple-card {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  align-self: start;
}
@media (min-width: 981px) {
  .tarjeta-summary-card.simple-card {
    position: sticky;
    top: 5rem;
  }
}
.tarjeta-page .simple-card .summary-total {
  margin: 8px 0 0;
  padding-top: 8px;
}
.tarjeta-process-btn.cta-btn {
  margin-top: 12px;
  width: 100%;
  max-width: none;
  font-size: 16px;
  font-weight: 500;
}
.tarjeta-process-btn .tarjeta-process-btn-label {
  font-size: 16px;
}
.tarjeta-process-btn .cta-btn-arrow.h-5.w-5 {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}
.tarjeta-process-btn.cta-btn:hover {
  background: #4a1529;
}
.tarjeta-page .pay-input,
.tarjeta-page .pay-input--select {
  border-radius: 1.5rem;
  font-size: 16px;
}
.tarjeta-page .pay-input::placeholder {
  font-size: 16px;
}
.tarjeta-page .pay-row {
  gap: 16px;
}
.tarjeta-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
}
.simple-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  padding: 18px;
}
.section-label {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 400;
}
.pay-input {
  width: 100%;
  height: 54px;
  border: 1px solid #f7f7f7;
  background: #f7f7f7;
  border-radius: 10px;
  padding: 24px 12px 8px;
  color: #111827;
  outline: none;
}
.pay-input:focus { border-color: #000; }
.pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.floating-pay { position: relative; margin-bottom: 14px; }
.floating-pay label {
  position: absolute;
  left: 12px;
  top: 18px;
  color: #667085;
  font-size: 16px;
  transition: all .2s ease;
  pointer-events: none;
}
.floating-pay.is-filled label,
.floating-pay input:focus + label,
.floating-pay select:focus + label {
  top: 8px;
  font-size: 12px;
  color: #111827;
}
.summary-list { border-bottom: 1px solid #e5e7eb; padding-bottom: 12px; margin-bottom: 12px; }
.summary-item { display: flex; gap: 10px; margin-bottom: 10px; font-size: 15px; color: #374151; }
.summary-cost { display: flex; justify-content: space-between; font-size: 14px; color: #4b5563; margin-bottom: 8px; }
.summary-total { display: flex; justify-content: space-between; font-size: 16px; color: #111827; margin: 10px 0 16px; }

@media (max-width: 980px) {
  .tarjeta-grid { grid-template-columns: 1fr; gap: 20px; }
  .provider-amount { font-size: 22px; }
}
@media (max-width: 760px) {
  .provider-sub { font-size: 14px; }
  .provider-amount { font-size: 20px; }
  .provider-title { font-size: 16px; }
  .provider-box h3 { font-size: 18px; }
  .provider-text,
  .copy-line { font-size: 16px; }
  .provider-mini { font-size: 14px; }
}
