.checkout-page, .thanks-page { min-height: 100svh; background: var(--cream); }
.sae-error { max-width: 1180px; margin: 0 auto 20px; padding: 14px 18px; border-radius: 12px; background: #fff0ee; color: #8c2f25; font-weight: 600; }
.submit-payment:disabled { opacity: .65; cursor: wait; }
.demo-notice { background: var(--ink); color: white; text-align: center; padding: 8px 16px; font-size: .7rem; letter-spacing: .14em; font-weight: 700; }
.checkout-header { min-height: 88px; padding: 18px max(5vw, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(24,60,53,.14); }
.secure-label { color: var(--muted); font-size: .84rem; font-weight: 600; }
.checkout-shell { width: min(1180px, 90vw); margin: 0 auto; padding: 72px 0 100px; }
.checkout-intro { max-width: 760px; margin-bottom: 54px; }
.checkout-intro h1, .thanks-card h1 { margin: 0; font-family: "Fraunces", serif; font-size: clamp(3.2rem, 6vw, 6.1rem); font-weight: 500; letter-spacing: -.05em; line-height: .95; }
.checkout-intro > p:last-child { max-width: 610px; margin: 24px 0 0; color: var(--muted); font-size: 1.08rem; }
.checkout-layout { display: grid; grid-template-columns: .88fr 1.12fr; gap: 26px; align-items: start; }
.payment-panel, .proof-panel { border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); }
.payment-panel { background: var(--lime); }
.proof-panel { background: var(--paper); box-shadow: 0 22px 65px rgba(24,60,53,.1); }
.step-heading { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 32px; }
.step-heading > span { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: white; font-family: "Fraunces", serif; }
.step-heading p { margin: 0 0 4px; font-size: .7rem; letter-spacing: .13em; font-weight: 700; }
.step-heading h2 { margin: 0; font-family: "Fraunces", serif; font-size: clamp(2rem, 3vw, 3rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.payment-data { margin: 0; border-top: 1px solid rgba(24,60,53,.22); }
.payment-data > div { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgba(24,60,53,.22); }
.payment-data dt { color: var(--muted); font-size: .83rem; }
.payment-data dd { margin: 0; text-align: right; font-weight: 700; }
.payment-data .payment-amount dd { font-family: "Fraunces", serif; font-size: 2.5rem; font-weight: 500; }
.temporary-copy { margin: 18px 0 0; color: rgba(24,60,53,.7); font-size: .78rem; line-height: 1.45; }
.order-summary { margin-top: 34px; padding: 26px; border-radius: 24px; background: rgba(255,255,255,.48); }
.order-summary > p { margin: 0 0 5px; font-size: .7rem; letter-spacing: .12em; font-weight: 700; text-transform: uppercase; }
.order-summary > strong, .order-summary > span { display: block; }
.order-summary > span { margin-top: 3px; color: var(--muted); font-size: .84rem; }
.order-summary > div { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(24,60,53,.18); }
.order-summary > div strong { font-family: "Fraunces", serif; font-size: 2.8rem; line-height: 1; font-weight: 500; }
.proof-lead { color: var(--muted); margin: -4px 0 28px; max-width: 550px; }
.reveal-form { width: 100%; border: 0; cursor: pointer; font: inherit; }
.payment-form { margin-top: 34px; padding-top: 32px; border-top: 1px solid #d9ddcf; }
.payment-form[hidden] { display: none; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 19px; }
.field-grid label > span { display: block; margin: 0 0 7px; font-size: .8rem; font-weight: 700; }
.field-grid input { width: 100%; min-height: 52px; border: 1px solid #cdd4ca; border-radius: 14px; background: white; color: var(--ink); padding: 0 15px; font: inherit; font-size: .94rem; outline: none; }
.field-grid input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(46,107,84,.12); }
.upload-field { min-height: 154px; margin-top: 20px; border: 1.5px dashed #a9b6ac; border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; text-align: center; transition: border-color .2s, background .2s; }
.upload-field:hover { border-color: var(--coral); background: #fff7f3; }
.upload-field input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px; background: var(--pink); font-size: 1.2rem; font-weight: 700; }
.upload-field strong { font-size: .93rem; }
.upload-field small { color: var(--muted); }
.form-note { color: var(--muted); font-size: .78rem; margin: 15px 0; text-align: center; }
.submit-payment { width: 100%; border: 0; cursor: pointer; font: inherit; }
.checkout-footer { min-height: 155px; padding: 42px max(5vw, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 30px; background: var(--paper); font-size: .82rem; }
.checkout-footer p { margin: 0; color: var(--muted); }

.thanks-page { background: var(--paper); }
.thanks-shell { min-height: calc(100svh - 243px); display: grid; grid-template-columns: 1.05fr .95fr; }
.thanks-card { padding: clamp(70px, 8vw, 125px) max(6vw, calc((100vw - 1180px) / 2)); }
.success-mark { width: 66px; height: 66px; display: grid; place-items: center; margin-bottom: 26px; border-radius: 50%; background: var(--lime); font-size: 2rem; font-weight: 700; }
.thanks-card h1 { max-width: 760px; font-size: clamp(3.2rem, 5.2vw, 5.5rem); }
.thanks-lead { max-width: 660px; margin: 26px 0 38px; color: var(--muted); font-size: 1.08rem; }
.next-steps { max-width: 670px; border-top: 1px solid #d9ddcf; }
.next-steps article { display: flex; gap: 16px; padding: 19px 0; border-bottom: 1px solid #d9ddcf; }
.next-steps article > span { color: var(--coral); font-family: "Fraunces", serif; font-size: 1.35rem; }
.next-steps strong { display: block; }
.next-steps p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.whatsapp-button { margin-top: 34px; background: #277b50; color: white; }
.link-note { margin: 10px 0 0; color: var(--muted); font-size: .76rem; }
.thanks-side { position: relative; overflow: hidden; padding: clamp(70px, 8vw, 125px) 6vw; background: var(--coral); display: flex; flex-direction: column; justify-content: center; }
.thanks-side blockquote { max-width: 600px; font-size: clamp(3rem, 5vw, 5.3rem); line-height: .95; }
.thanks-side > p:not(.eyebrow) { max-width: 480px; font-size: 1.13rem; }
.thanks-orbit { width: clamp(190px, 23vw, 320px); aspect-ratio: 1; border-radius: 50%; margin: 48px 0 -160px auto; background: var(--lime); display: flex; align-items: center; justify-content: center; gap: 14px; transform: rotate(-7deg); }
.thanks-orbit span { font-family: "Fraunces", serif; font-size: clamp(4.5rem, 8vw, 7rem); line-height: 1; }
.thanks-orbit small { font-weight: 700; line-height: 1.15; }

@media (max-width: 880px) {
  .checkout-layout, .thanks-shell { grid-template-columns: 1fr; }
  .thanks-side { min-height: 620px; }
  .thanks-orbit { margin-bottom: -190px; }
}

@media (max-width: 600px) {
  .checkout-header { min-height: 74px; }
  .secure-label { display: none; }
  .checkout-shell { width: min(92vw, 560px); padding: 54px 0 76px; }
  .checkout-intro { margin-bottom: 36px; }
  .checkout-intro h1, .thanks-card h1 { font-size: 3.25rem; }
  .checkout-layout { gap: 18px; }
  .payment-panel, .proof-panel { padding: 28px 22px; border-radius: 26px; }
  .field-grid { grid-template-columns: 1fr; }
  .checkout-footer { align-items: flex-start; flex-direction: column; }
  .thanks-card { padding: 70px 6vw; }
  .thanks-side { min-height: 570px; padding: 75px 6vw; }
  .thanks-side blockquote { font-size: 3.4rem; }
  .demo-notice { font-size: .59rem; letter-spacing: .1em; }
}


/* Ajustes de jerarquía, márgenes y tasa BCV */
.checkout-intro h1, .thanks-card h1, .step-heading h2, .thanks-side blockquote { text-wrap: balance; }
.checkout-intro p, .proof-lead, .thanks-lead, .next-steps p { text-wrap: pretty; }
.payment-data dd { min-width: 0; overflow-wrap: anywhere; }
.payment-data .payment-amount dd { max-width: 72%; line-height: 1.05; }
.payment-rate-note { display: block; margin-top: 8px; font-family: "DM Sans", sans-serif; font-size: .72rem; font-weight: 600; line-height: 1.45; letter-spacing: 0; color: rgba(24,60,53,.72); }
.bcv-inline { font-family: "DM Sans", sans-serif; font-size: .55em; font-weight: 700; line-height: 1.2; letter-spacing: .01em; opacity: .72; white-space: nowrap; }
.checkout-intro .bcv-inline { font-size: .7em; }
.order-summary .bcv-inline { display: block; margin-top: 5px; font-size: .28em; text-align: right; }
.checkout-footer { padding-top: 34px; padding-bottom: 34px; }

@media (max-width: 600px) {
  .checkout-shell { width: min(90vw, 540px); }
  .checkout-intro h1, .thanks-card h1 { font-size: clamp(2.65rem, 12vw, 3.15rem); line-height: .98; }
  .checkout-intro > p:last-child, .thanks-lead { font-size: 1rem; line-height: 1.65; }
  .payment-panel, .proof-panel { padding: 27px 20px; }
  .step-heading { gap: 14px; margin-bottom: 26px; }
  .step-heading > span { width: 38px; height: 38px; flex-basis: 38px; }
  .step-heading h2 { font-size: clamp(2rem, 9vw, 2.4rem); line-height: 1.02; }
  .payment-data > div { min-height: 70px; display: grid; grid-template-columns: 88px minmax(0,1fr); gap: 14px; }
  .payment-data dt { font-size: .8rem; line-height: 1.3; }
  .payment-data dd { font-size: .92rem; line-height: 1.35; }
  .payment-data .payment-amount dd { max-width: none; font-size: clamp(1.75rem, 9vw, 2.2rem); text-align: right; }
  .payment-rate-note { margin-top: 7px; font-size: .67rem; line-height: 1.4; }
  .order-summary { padding: 23px 20px; }
  .order-summary > div strong { font-size: 2.45rem; }
  .order-summary .bcv-inline { font-size: .25em; }
  .checkout-footer { padding-left: 7vw; padding-right: 7vw; }
  .thanks-card, .thanks-side { padding-left: 7vw; padding-right: 7vw; }
  .thanks-side blockquote { font-size: clamp(2.7rem, 12vw, 3.3rem); }
}
