.checkout-breadcrumb{padding-top:26px;font-size:12px;color:#8fa8b7;position:relative;z-index:1}.checkout-breadcrumb a{color:var(--brand)}
.checkout-page{position:relative;min-height:70svh;padding:8px 0 96px;background:var(--deep);color:#fff;overflow:hidden}
.checkout-page:before{content:"";position:absolute;inset:0;z-index:0;background-image:radial-gradient(circle at 14% 0%,rgba(0,174,239,.16),transparent 38%),radial-gradient(circle at 92% 28%,rgba(0,121,168,.12),transparent 42%),url("../images/brand/circuit-pattern.svg");background-repeat:no-repeat,no-repeat,no-repeat;background-position:left top,right top,center top;background-size:70vw 70vh,60vw 60vh,560px 340px}
.checkout-shell{position:relative;z-index:1;max-width:1180px}
@media(max-width:639px){.checkout-breadcrumb{padding-top:20px}}
.checkout-heading{max-width:820px}
.checkout-heading h1{font-size:clamp(32px,5vw,58px)}
.checkout-heading>p:last-child{max-width:720px;margin-top:16px;color:#b9c9d3}

/* Progreso */
.checkout-stepper{display:flex;flex-wrap:wrap;gap:0;margin:0 0 32px;padding:0;list-style:none;counter-reset:none}
.checkout-stepper li{display:flex;align-items:center;gap:10px;padding-right:22px;margin-right:22px;color:#7f97a6;font-size:12px;font-weight:700;border-right:1px solid #294858}
.checkout-stepper li:last-child{border-right:0;padding-right:0;margin-right:0}
.checkout-step-badge{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;border:1px solid #3a5a6c;color:#8fa8b7;font-size:11px;font-weight:800}
.checkout-stepper li.is-current{color:#fff}
.checkout-stepper li.is-current .checkout-step-badge{border-color:var(--brand);background:var(--brand);color:#052430}
.checkout-stepper li.is-done{color:#9fd8bd}
.checkout-stepper li.is-done .checkout-step-badge{border-color:#39ad82;background:#123b2d;color:#7fe3bd}
@media(max-width:639px){.checkout-stepper li{font-size:10px;padding-right:12px;margin-right:12px}.checkout-stepper li span:last-child{display:none}.checkout-stepper li.is-current span:last-child{display:inline}}

.checkout-notice{margin:0 0 24px;padding:16px 20px;border:1px solid #477184;border-radius:10px;background:#102936}
.checkout-notice.is-success{border-color:#39ad82}
.checkout-notice.is-error{border-color:#d87373}

/* Layout de dos columnas: formulario + resumen */
.checkout-layout{display:grid;gap:24px}
.checkout-form{order:2;display:grid;gap:24px}
.checkout-summary-aside{position:relative;order:1;padding:26px 24px 24px;border:1px solid #2f5468;border-radius:14px;background:linear-gradient(165deg,#123448,#0c2632);box-shadow:0 20px 46px rgba(0,0,0,.32);overflow:hidden}
.checkout-summary-aside:before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,var(--brand),transparent 85%)}
@media(min-width:960px){
  .checkout-layout{grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr);align-items:start;gap:32px}
  .checkout-form{order:1}
  .checkout-summary-aside{order:2;position:sticky;top:110px}
}

.checkout-form>section{padding:28px;border:1px solid #2c4d5e;border-radius:14px;background:linear-gradient(165deg,#0f2632,#0a1c26);box-shadow:0 18px 40px rgba(0,0,0,.28);transition:border-color .25s ease}
.checkout-form>section:focus-within{border-color:#3f7086}
.checkout-substep-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:22px}
.checkout-substep{display:flex;flex-direction:column;gap:24px}
.js .checkout-substeps{display:grid;overflow:hidden}
.js .checkout-substep{grid-area:1/1;min-width:0;transform:translateX(0);transition:transform .45s cubic-bezier(.22,.61,.36,1)}
.js [data-substep="datos"]{transform:translateX(calc(var(--checkout-slide, 100vw) + 40px))}
.js .checkout-substeps.is-datos [data-substep="plan"]{transform:translateX(calc((var(--checkout-slide, 100vw) + 40px) * -1))}
.js .checkout-substeps.is-datos [data-substep="datos"]{transform:translateX(0)}
@media(prefers-reduced-motion:reduce){.js .checkout-substep{transition:none!important}}
.checkout-form h2,.checkout-summary-card h2,.checkout-bank-card h2,.checkout-receipt-head h2{font-size:22px;display:flex;align-items:center;gap:12px}
.checkout-inline-badge{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;flex:none;border-radius:50%;background:var(--brand);color:#052430;font-size:13px;font-weight:800;box-shadow:0 0 0 5px rgba(0,174,239,.14)}

.checkout-plan-select{display:grid;gap:7px;color:#dce8ee;font-size:13px;font-weight:650;max-width:420px}
.checkout-plan-select select{width:100%;min-height:50px;padding:12px 14px;border:1px solid #426275;border-radius:7px;background:#071821;color:#fff;font:inherit;appearance:none;background-image:linear-gradient(45deg,transparent 50%,#8fa8b7 50%),linear-gradient(135deg,#8fa8b7 50%,transparent 50%);background-position:calc(100% - 22px) center,calc(100% - 17px) center;background-size:6px 6px,6px 6px;background-repeat:no-repeat}
.checkout-plan-description{margin-top:14px;max-width:640px;color:#9fb3bf;font-size:13px;line-height:1.55}

.checkout-payment-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:20px}
.checkout-payment-option{position:relative;display:flex;flex-direction:column;gap:10px;padding:20px 18px 18px;border:1px solid #3a5c70;border-radius:12px;background:#0a1e29;cursor:pointer;transition:border-color .2s ease,background-color .2s ease,transform .2s ease,box-shadow .2s ease}
.checkout-payment-option:hover{border-color:#5a8aa0;transform:translateY(-2px)}
.checkout-payment-option input{position:absolute;top:18px;left:18px;width:17px;height:17px;accent-color:var(--brand)}
.checkout-payment-icon{align-self:flex-end;font-size:18px;opacity:.75}
.checkout-payment-copy{padding-left:26px;color:#dce8ee}
.checkout-payment-copy strong{display:block;font-size:15px}
.checkout-payment-copy small{color:#8fa8b7;font-size:12px}
.checkout-payment-amount{padding-left:26px;font-size:24px;font-weight:800;color:#fff}
.checkout-payment-amount small{font-size:11px;font-weight:600;color:#8fa8b7}
.checkout-payment-option.is-selected{border-color:var(--brand);background:linear-gradient(160deg,#0e3244,#0a2634);box-shadow:0 0 0 1px var(--brand) inset,0 14px 30px rgba(0,174,239,.16)}
.checkout-payment-option.is-selected:after{content:"✓ Seleccionado";position:absolute;top:-9px;right:14px;padding:2px 9px;border-radius:999px;background:var(--brand);color:#052430;font-size:10px;font-weight:800;letter-spacing:.02em}
@media(max-width:520px){.checkout-payment-options{grid-template-columns:1fr}}

.checkout-fields{display:grid;gap:18px;margin-top:20px}
.checkout-fields.two-columns{grid-template-columns:repeat(2,minmax(0,1fr))}
.checkout-fields label{display:grid;gap:7px;color:#dce8ee;font-size:13px;font-weight:650}
.checkout-fields input,.checkout-fields select{width:100%;min-height:50px;padding:12px 14px;border:1px solid #426275;border-radius:7px;background:#071821;color:#fff;font:inherit;transition:border-color .2s ease,box-shadow .2s ease}
.checkout-fields input:focus-visible,.checkout-fields select:focus-visible,.checkout-plan-select select:focus-visible{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px rgba(0,174,239,.22)}
.checkout-fields option{color:#10202b;background:#fff}
.checkout-plan-note{margin-top:16px;font-size:12px;color:#8fa8b7}
.field-error{display:block;margin-top:4px;color:#ffaaa5;font-size:12px}

.checkout-terms{display:flex;align-items:flex-start;gap:12px;padding:18px 20px;border:1px solid #2c4d5e;border-radius:12px;background:#0d202d;color:#c6d4dc;font-size:13px}
.checkout-terms input{margin-top:4px;width:18px;height:18px;accent-color:var(--brand)}
.checkout-terms a,.checkout-help a,.orders-table a{color:var(--brand);text-decoration:underline;text-underline-offset:3px}
.checkout-submit{justify-self:start;min-height:52px;padding-inline:28px}
.form-trap{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important}

/* Resumen lateral */
.checkout-summary-aside>.eyebrow{color:var(--brand);font-size:10px;font-weight:800;letter-spacing:.1em}
.checkout-summary-aside h2{margin-top:8px;font-size:22px}
.checkout-summary-modality{margin-top:4px;color:#9fb3bf;font-size:13px}
.checkout-summary-price{margin-top:14px;padding-top:14px;border-top:1px solid #294858;font-size:34px;font-weight:800}
.checkout-summary-price span{margin-left:4px;font-size:13px;font-weight:600;color:#8fa8b7}
.checkout-summary-notes{margin:18px 0 0;padding:0;list-style:none;display:grid;gap:9px;color:#9fb3bf;font-size:12px;line-height:1.5}
.checkout-summary-notes li{padding-left:14px;position:relative}
.checkout-summary-notes li:before{content:"";position:absolute;left:0;top:.55em;width:5px;height:5px;border-radius:50%;background:var(--brand)}

/* Confirmación: resumen + datos bancarios (+ comprobante como tercera columna, mientras no esté verificado) */
.checkout-confirmation-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:24px;align-items:start}
.checkout-confirmation-grid.has-three{grid-template-columns:repeat(3,minmax(0,1fr))}
.checkout-summary-card,.checkout-bank-card{padding:28px;border:1px solid #2c4d5e;border-radius:14px;background:linear-gradient(165deg,#0f2632,#0a1c26);box-shadow:0 18px 40px rgba(0,0,0,.28)}
.checkout-bank-card{border-color:#2f5468;background:linear-gradient(165deg,#123448,#0c2632)}
.checkout-summary-card>span,.checkout-bank-card>span{color:var(--brand);font-size:10px;font-weight:800;letter-spacing:.1em}
.checkout-summary-card h2,.checkout-bank-card h2{margin-top:8px}
.checkout-card-amount{margin-top:10px;font-size:30px;font-weight:800}
.checkout-card-amount small{display:block;margin-top:2px;font-size:12px;font-weight:600;color:#8fa8b7}
.checkout-summary-card dl,.checkout-bank-card dl{display:grid;gap:0;margin:18px 0 0}
.checkout-summary-card dl div,.checkout-bank-card dl div{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid #294858}
.checkout-summary-card dt,.checkout-bank-card dt{flex:none;color:#8fa8b7;font-size:12px}
.checkout-summary-card dd,.checkout-bank-card dd{margin:0;display:flex;align-items:center;gap:10px;overflow-wrap:anywhere;text-align:right}
.checkout-bank-card>p{margin-top:18px;color:#c8d8e0;font-size:13px}
.checkout-copy{flex:none;min-height:30px;padding:5px 12px;border:1px solid #45697d;border-radius:999px;background:rgba(255,255,255,.03);color:#dce8ee;font-size:11px;font-weight:700;cursor:pointer;transition:border-color .2s ease,color .2s ease,background-color .2s ease}
.checkout-copy:hover,.checkout-copy:focus-visible{border-color:var(--brand);color:var(--brand);background:rgba(0,174,239,.08)}
.checkout-copy.is-copied{border-color:#39ad82;color:#7fe3bd}
.checkout-status-pill{display:inline-block;padding:5px 10px;border-radius:999px;background:#243f4e;font-size:12px;font-weight:700}
.checkout-status-pill.is-verified{background:#155b45}
.checkout-status-pill.is-rejected{background:#6b2e32}
.checkout-status-pill.is-receipt_received{background:#2c4f61}

/* Comprobante */
.checkout-receipt-form{padding:28px;border:1px solid #2c4d5e;border-radius:14px;background:linear-gradient(165deg,#0f2632,#0a1c26);box-shadow:0 18px 40px rgba(0,0,0,.28)}
.checkout-receipt-head p{margin-top:6px;max-width:520px;font-size:13px;color:#9fb3bf}
.checkout-dropzone{display:flex;flex-direction:column;align-items:center;gap:6px;margin-top:20px;padding:32px 20px;border:1.5px dashed #45697d;border-radius:12px;background:rgba(0,174,239,.03);text-align:center;cursor:pointer;transition:border-color .2s ease,background-color .2s ease,transform .2s ease}
.checkout-dropzone:hover,.checkout-dropzone:focus-within{border-color:var(--brand);background:rgba(0,174,239,.08);transform:translateY(-2px)}
.checkout-dropzone input{position:absolute!important;width:1px!important;height:1px!important;opacity:0;overflow:hidden}
.checkout-dropzone-icon{font-size:26px;color:var(--brand)}
.checkout-dropzone-text{color:#dce8ee;font-size:14px;font-weight:650;overflow-wrap:anywhere}
.checkout-dropzone-hint{color:#8fa8b7;font-size:11px}
.checkout-dropzone.has-file .checkout-dropzone-text{color:#7fe3bd}
.checkout-submit{margin-top:20px}
.checkout-help{margin-top:22px;font-size:13px;color:#c6d4dc}

/* Panel de pedidos (admin) */
.orders-table-wrap{overflow:auto;margin-top:34px;border:1px solid #294858;border-radius:12px}
.orders-table{width:100%;min-width:1050px;border-collapse:collapse;background:#0d202d}
.orders-table th,.orders-table td{padding:14px;border-bottom:1px solid #294858;text-align:left;vertical-align:top;font-size:12px}
.orders-table th{color:#91aaba;font-size:10px;letter-spacing:.08em}
.orders-table small{display:block;margin-top:5px;color:#8fa8b7}
.orders-table form{display:flex;gap:6px}
.orders-table button{padding:7px 9px;border:1px solid #426275;border-radius:5px;background:transparent;color:#fff;cursor:pointer}
.order-status{display:inline-block;padding:5px 8px;border-radius:999px;background:#243f4e}
.order-status.is-verified{background:#155b45}
.order-status.is-rejected{background:#6b2e32}

@media(max-width:800px){
  .checkout-breadcrumb{padding-top:96px}
  .checkout-page{padding-bottom:64px}
  .checkout-fields.two-columns,.checkout-confirmation-grid,.checkout-confirmation-grid.has-three{grid-template-columns:1fr}
  .checkout-submit{width:100%}
}
@media(max-width:520px){
  .checkout-form>section,.checkout-summary-card,.checkout-bank-card,.checkout-receipt-form,.checkout-summary-aside{padding:22px}
  .checkout-summary-card dl div,.checkout-bank-card dl div{flex-direction:column;align-items:flex-start;gap:6px}
  .checkout-summary-card dd,.checkout-bank-card dd{text-align:left}
}

/* Escritorio: la página ocupa el alto de pantalla y centra su contenido (sin espacio muerto si es corto) */
@media(min-width:1200px){
  .checkout-page{min-height:calc(100svh - 88px);display:flex;flex-direction:column;justify-content:center;padding-block:10px}
  .checkout-breadcrumb{padding-top:16px}
  .checkout-stepper{margin-bottom:18px}
  .checkout-heading h1{font-size:clamp(28px,4vw,44px)}
  .checkout-heading>p:last-child{margin-top:10px}
  .checkout-form{gap:16px}
  .checkout-form>section{padding:20px 24px}
  .checkout-payment-options{margin-top:14px}
  .checkout-plan-note{margin-top:10px}
  .checkout-payment-option{padding:14px 16px 12px;gap:6px}
  .checkout-plan-select select,.checkout-fields input,.checkout-fields select{min-height:44px;padding:9px 12px}
  .checkout-substep{gap:12px}
  .checkout-terms{padding:10px 16px}
  .checkout-fields{gap:8px;margin-top:10px}
  .checkout-substep-actions{margin-top:8px}

  .checkout-confirmation-grid{gap:14px;margin-bottom:16px}
  .checkout-summary-card,.checkout-bank-card,.checkout-receipt-form{padding:18px 20px}
  .checkout-summary-card h2,.checkout-bank-card h2,.checkout-receipt-head h2{margin-top:4px;font-size:19px}
  .checkout-card-amount{margin-top:6px;font-size:24px}
  .checkout-summary-card dl,.checkout-bank-card dl{margin-top:10px}
  .checkout-summary-card dl div,.checkout-bank-card dl div{padding:6px 0;gap:8px}
  .checkout-summary-card dt,.checkout-bank-card dt{font-size:11px}
  .checkout-summary-card dd,.checkout-bank-card dd{font-size:12px}
  .checkout-bank-card>p{margin-top:10px;font-size:12px}
  .checkout-copy{min-height:24px;padding:3px 8px;font-size:10px}
  .checkout-receipt-head p{margin-top:2px;font-size:12px}
  .checkout-dropzone{margin-top:12px;padding:18px 14px}
  .checkout-help{margin-top:10px}
}

@media(min-width:801px) and (max-width:1279px){.checkout-confirmation-grid.has-three{grid-template-columns:1fr 1fr}}
