.checkout-body {
  min-height: 100vh;
}

.checkout-page {
  position: relative;
  z-index: 1;
  padding: 2rem 1rem 4rem;
}

.checkout-shell {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.checkout-left,
.checkout-right {
  min-width: 0;
}

.checkout-head {
  margin-bottom: 1.5rem;
}

.checkout-kicker {
  color: var(--rojo);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 800;
  margin-bottom: .75rem;
}

.checkout-title {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: .95;
  letter-spacing: .04em;
  margin-bottom: .5rem;
}

.checkout-title span {
  color: var(--rojo);
}

.checkout-sub {
  color: var(--gris-txt);
  max-width: 620px;
}

.checkout-card,
.summary-card {
  background: rgba(20,20,20,0.88);
  border: 1px solid var(--gris-bor);
  border-radius: var(--rad-xl);
  backdrop-filter: blur(5px);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}

.checkout-card {
  padding: 1.25rem;
}

.form-block + .form-block {
  margin-top: 1rem;
}

.form-block {
  border: 1px solid rgba(255,255,255,.04);
  background: rgba(10,10,10,.45);
  border-radius: var(--rad-lg);
  padding: 1rem;
}

.form-block h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.35rem;
  margin-bottom: .75rem;
}

.pay-note {
  color: var(--gris-txt);
  font-size: .92rem;
  margin-bottom: .75rem;
}

.grid-1,
.grid-2 {
  display: grid;
  gap: .85rem;
  margin-top: .85rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0,1fr));
}

.checkout-card input,
.checkout-card select {
  width: 100%;
  min-height: 52px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--gris-bor);
  color: var(--blanco);
  border-radius: var(--rad-md);
  padding: .9rem 1rem;
  font-family: 'Barlow', sans-serif;
  font-size: .95rem;
}

.checkout-card input::placeholder {
  color: #a6a6a6;
}

.checkout-card select option {
  color: #000;
}

.check-row {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-top: .9rem;
  color: var(--blanco);
  font-size: .95rem;
}

.check-row input {
  width: 18px;
  height: 18px;
  min-height: auto;
  accent-color: var(--rojo);
}

.pay-method {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--rad-lg);
  overflow: hidden;
  background: rgba(255,255,255,.02);
}

.pay-method.active {
  border-color: rgba(204,0,0,.7);
  box-shadow: 0 0 0 1px rgba(204,0,0,.25) inset;
}

.pay-method-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .95rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(204,0,0,.08);
}

.pay-method p {
  color: var(--gris-txt);
  text-align: center;
  padding: 1rem;
}

.pay-badges {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
}

.pay-badges span {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--blanco);
  border-radius: 999px;
  padding: .25rem .55rem;
  font-size: .72rem;
  font-weight: 700;
}

.checkout-submit {
  width: 100%;
  margin-top: 1rem;
  min-height: 56px;
  border: none;
  border-radius: var(--rad-md);
  background: linear-gradient(135deg, var(--rojo), var(--rojo-viv));
  color: var(--blanco);
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(204,0,0,.3);
  transition: transform .25s ease, box-shadow .25s ease;
}

.checkout-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(204,0,0,.4);
}

.summary-card {
  position: sticky;
  top: 175px;
  padding: 1.25rem;
}

.summary-items {
  display: grid;
  gap: 1rem;
}

.summary-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: .9rem;
  align-items: center;
}

.summary-thumb {
  width: 72px;
  height: 82px;
  border-radius: 12px;
  border: 1px solid var(--gris-bor);
  overflow: hidden;
  position: relative;
}

.summary-thumb .qty-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  border: 2px solid rgba(255,255,255,.15);
  display: grid;
  place-items: center;
  font-size: .75rem;
  font-weight: 800;
}

.summary-info h3 {
  font-size: .98rem;
  margin-bottom: .15rem;
}

.summary-meta {
  color: var(--gris-txt);
  font-size: .82rem;
}

.summary-price {
  text-align: right;
  font-weight: 800;
}

.summary-totals {
  border-top: 1px solid var(--gris-bor);
  margin-top: 1.2rem;
  padding-top: 1rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: .8rem;
  color: var(--blanco);
}

.summary-row.total strong {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 2rem;
  color: var(--blanco);
  letter-spacing: .04em;
}

.summary-save {
  color: var(--dorado);
  font-size: .92rem;
  font-weight: 700;
}

.checkout-back {
  padding-inline: 1rem;
}

@media (max-width: 920px) {
  .checkout-shell {
    grid-template-columns: 1fr;
  }

  .checkout-right {
    order: -1;
  }

  .summary-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .checkout-page {
    padding-inline: .75rem;
  }

  .checkout-card,
  .summary-card {
    padding: 1rem;
  }

  .grid-2,
  .summary-item,
  .pay-method-top {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .summary-item {
    display: grid;
    grid-template-columns: 64px 1fr;
  }

  .summary-price {
    grid-column: 2;
    text-align: left;
  }
}

/* ══════════════════════════════════════
   CONTROLES DE CANTIDAD EN CHECKOUT
══════════════════════════════════════ */
.co-controls {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-top: .5rem;
}

.co-q-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--gris-bor);
  background: rgba(255,255,255,.06);
  color: var(--blanco);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s, border-color .2s;
}

.co-q-btn:hover {
  background: rgba(204,0,0,.25);
  border-color: var(--rojo);
}

.co-q-num {
  min-width: 22px;
  text-align: center;
  font-weight: 700;
  font-size: .95rem;
}

.co-del-btn {
  margin-left: .25rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  opacity: .55;
  transition: opacity .2s, transform .2s;
  padding: 0;
  line-height: 1;
}

.co-del-btn:hover {
  opacity: 1;
  transform: scale(1.15);
}

/* ══════════════════════════════════════
   TELÉFONO CON PREFIJO FIJO
══════════════════════════════════════ */
.phone-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--gris-bor);
  border-radius: var(--rad-md);
  overflow: hidden;
  background: rgba(255,255,255,.03);
}

.phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 .9rem;
  background: rgba(204,0,0,.15);
  border-right: 1px solid var(--gris-bor);
  color: var(--blanco);
  font-weight: 700;
  font-size: .95rem;
  white-space: nowrap;
  user-select: none;
}

.phone-wrap input {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  flex: 1;
}

/* Selects deshabilitados */
.checkout-card select:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* ══════════════════════════════════════
   PAÍS ESTÁTICO
══════════════════════════════════════ */
.country-static {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--gris-bor);
  border-radius: var(--rad-md);
  padding: .9rem 1rem;
  font-family: 'Barlow', sans-serif;
  font-size: .95rem;
  color: var(--blanco);
  gap: .5rem;
}

/* ══════════════════════════════════════
   MODAL — TÉRMINOS Y CONDICIONES
══════════════════════════════════════ */
.terms-link {
  background: none;
  border: none;
  color: var(--rojo);
  font-family: 'Barlow', sans-serif;
  font-size: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.terms-link:hover { opacity: .8; }

.terms-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  backdrop-filter: blur(4px);
}
.terms-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.terms-modal {
  background: #111;
  border: 1px solid var(--gris-bor);
  border-radius: var(--rad-xl);
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
  transform: translateY(20px);
  transition: transform .25s ease;
}
.terms-overlay.open .terms-modal { transform: translateY(0); }

.terms-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gris-bor);
  flex-shrink: 0;
}
.terms-header h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem;
  margin: 0;
}

.terms-close {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--gris-bor);
  color: var(--blanco);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: .9rem;
  display: grid;
  place-items: center;
  transition: background .2s;
  flex-shrink: 0;
}
.terms-close:hover { background: rgba(204,0,0,.25); border-color: var(--rojo); }

.terms-body {
  overflow-y: auto;
  padding: 1.5rem;
  flex: 1;
}
.terms-body::-webkit-scrollbar { width: 3px; }
.terms-body::-webkit-scrollbar-thumb { background: var(--rojo); border-radius: 2px; }

.terms-section { margin-bottom: 1.75rem; }
.terms-section:last-child { margin-bottom: 0; }

.terms-section h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  color: var(--rojo);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .75rem;
}
.terms-section p {
  color: var(--gris-txt);
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: .6rem;
}
.terms-section p strong { color: var(--blanco); }

.terms-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--gris-bor);
  flex-shrink: 0;
}
.terms-accept {
  width: 100%;
  min-height: 48px;
  background: linear-gradient(135deg, var(--rojo), var(--rojo-viv));
  color: var(--blanco);
  border: none;
  border-radius: var(--rad-md);
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 8px 24px rgba(204,0,0,.3);
}
.terms-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(204,0,0,.4);
}
