/* ============================================================
   CHECKOUT - Payment Gateway Design
   ============================================================ */

/* Variables inherited from tokens.css (loaded first on all pages) */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; font-size: 14px; }

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--color-primary); color: #fff; }

/* ============================================================
   TOP BAR - Secure checkout strip
   ============================================================ */
.checkout-topbar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
}

.topbar-brand {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
}

.topbar-secure {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--color-success);
  font-weight: 500;
}

.topbar-secure svg {
  width: 14px;
  height: 14px;
}

.topbar-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition-base);
}

.topbar-back:hover {
  color: var(--color-primary);
}

.topbar-back svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-base);
}

.topbar-back:hover svg {
  transform: translateX(-3px);
}

/* ============================================================
   MAIN LAYOUT - Two column checkout
   ============================================================ */
.checkout-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2.5rem;
  align-items: start;
}

/* ============================================================
   LEFT COLUMN - Payment methods
   ============================================================ */
.checkout-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.checkout-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.checkout-subtitle {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Steps indicator */
.checkout-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 0.5rem;
}

.step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-dim);
  position: relative;
}

.step.active {
  color: var(--color-primary);
}

.step.completed {
  color: var(--color-success);
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--color-surface-2);
  border: 2px solid var(--color-border);
  transition: all var(--transition-base);
}

.step.active .step-number {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 12px var(--color-primary-glow);
}

.step.completed .step-number {
  background: var(--color-success);
  border-color: var(--color-success);
  color: #fff;
}

.step-line {
  width: 40px;
  height: 2px;
  background: var(--color-border);
  margin: 0 0.5rem;
}

.step.completed + .step-line,
.step-line.done {
  background: var(--color-success);
}

/* Already student link (main area) */
.already-student-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  background: rgba(59, 130, 246, 0.06);
  border: 2px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-md);
  color: var(--color-primary);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-family);
  text-decoration: none;
  transition: all var(--transition-base);
  margin-bottom: 0.25rem;
}

.already-student-link:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: var(--color-primary);
  color: #fff;
}

.already-student-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Important note card */
.note-card {
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.note-card svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.note-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.note-card strong {
  color: var(--color-text);
}

.note-card em {
  color: var(--color-accent);
  font-style: normal;
  font-weight: 500;
}

/* Payment method selection */
.payment-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.payment-section-title svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.payment-method {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
}

.payment-method:hover {
  border-color: var(--color-border-hover);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.payment-method.selected {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary), 0 4px 20px rgba(59, 130, 246, 0.15);
}

.payment-method-header {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  transition: background var(--transition-base);
}

.payment-method:hover .payment-method-header {
  background: rgba(255, 255, 255, 0.02);
}

.payment-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--color-text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.payment-method.selected .payment-radio {
  border-color: var(--color-primary);
}

.payment-radio-inner {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  transform: scale(0);
  transition: transform var(--transition-base);
}

.payment-method.selected .payment-radio-inner {
  transform: scale(1);
}

.payment-method-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.payment-method-icon svg {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
}

.payment-method-icon.cripto svg { color: var(--color-warning); }
.payment-method-icon.intl svg { color: var(--color-accent); }

.payment-method-info {
  flex: 1;
}

.payment-method-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.payment-method-desc {
  font-size: 0.78rem;
  color: var(--color-text-dim);
  margin-top: 1px;
}

.payment-method-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--color-success-dim);
  color: var(--color-success);
  white-space: nowrap;
}

/* Payment details panel */
.payment-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.payment-method.selected .payment-details {
  max-height: 1200px;
}

.payment-details-inner {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--color-border);
}

.detail-block {
  margin-top: 1rem;
}

.detail-block-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  color: var(--color-text-dim);
  font-weight: 500;
}

.detail-value {
  color: var(--color-text);
  font-weight: 600;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.82rem;
  user-select: all;
}

.detail-note {
  margin-top: 0.75rem;
  padding: 0.6rem 0.85rem;
  background: var(--color-success-dim);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--color-success);
  font-weight: 500;
  line-height: 1.4;
}

.detail-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.85rem;
  transition: color var(--transition-base);
}

.detail-link:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.payment-divider {
  height: 1px;
  background: var(--color-border);
  margin: 0.75rem 0;
}

/* ============================================================
   RIGHT COLUMN - Order summary (sticky sidebar)
   ============================================================ */
.checkout-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.order-summary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.summary-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1rem;
}

.summary-product {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1rem;
}

.summary-product-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.summary-product-icon svg {
  width: 26px;
  height: 26px;
  color: #fff;
}

.summary-product-info {
  flex: 1;
}

.summary-product-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.summary-product-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.2rem;
  line-height: 1.4;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  font-size: 0.9rem;
}

.summary-label {
  color: var(--color-text-muted);
}

.summary-value {
  font-weight: 600;
  color: var(--color-text);
}

.summary-divider {
  height: 1px;
  background: var(--color-border);
  margin: 0.75rem 0;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.5rem;
}

.summary-total-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

.summary-total-value {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Benefits list */
.summary-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.summary-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.79rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.summary-benefits li svg {
  width: 14px;
  height: 14px;
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Enhanced sidebar pricing elements ── */
.summary-popular-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.15);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.summary-popular-badge svg { width: 12px; height: 12px; }

.summary-phase-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.summary-phase-badge {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
}

.summary-plan-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.summary-plan-desc {
  font-size: 0.78rem;
  color: var(--color-text-dim);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.summary-price-block {
  padding: 0.85rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0.85rem;
}

.summary-price-old {
  font-size: 0.78rem;
  color: var(--color-text-dim);
  text-decoration: line-through;
  display: block;
  margin-bottom: 0.2rem;
}

.summary-price-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.summary-price-main {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.summary-discount-fire {
  font-size: 0.65rem;
  font-weight: 800;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.15);
  padding: 0.2rem 0.5rem;
  border-radius: 50px;
}

.summary-billing-label {
  font-size: 0.72rem;
  color: var(--color-text-dim);
  margin-top: 0.2rem;
}

.summary-urgency {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.1);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.85rem;
}

.summary-urgency svg { width: 13px; height: 13px; color: #f59e0b; flex-shrink: 0; }
.summary-urgency strong { color: #f59e0b; font-variant-numeric: tabular-nums; }

.summary-guarantee-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--color-text-dim);
  justify-content: center;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}

.summary-guarantee-line svg { width: 12px; height: 12px; color: var(--color-success); }

/* Dollar blue card */
.dolar-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.dolar-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.dolar-card-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-success);
}

.dolar-card-note {
  font-size: 0.75rem;
  color: var(--color-text-dim);
  margin-top: 0.35rem;
}

/* ARS conversion */
.ars-conversion {
  margin-top: 0.5rem;
  padding: 0.6rem 0.85rem;
  background: rgba(34, 197, 94, 0.06);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.ars-conversion strong {
  color: var(--color-success);
  font-weight: 800;
}

/* Contact card */
.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}

.contact-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  box-shadow: 0 4px 16px var(--color-primary-glow);
}

.contact-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--color-primary-glow);
  color: #fff;
}

.contact-link svg {
  width: 16px;
  height: 16px;
}

/* Login link */
.login-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: all var(--transition-base);
}

.login-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(59, 130, 246, 0.05);
}

.login-link svg {
  width: 16px;
  height: 16px;
}

/* ============================================================
   TRUST BADGES
   ============================================================ */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem;
  margin-top: 0.5rem;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--color-text-dim);
  font-weight: 500;
  text-align: center;
}

.trust-badge svg {
  width: 20px;
  height: 20px;
  color: var(--color-text-dim);
  opacity: 0.6;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .checkout-wrapper {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem 1rem 3rem;
  }

  /* Mobile-first: el aside se disuelve en el grid para reordenar sus piezas.
     Orden: resumen (precio) → métodos de pago → social proof/contacto. */
  .checkout-sidebar {
    display: contents;
  }

  .checkout-sidebar .order-summary {
    order: -1;
    position: static;
    box-shadow: var(--shadow-sm);
  }

  .checkout-sidebar .testimonial-card,
  .checkout-sidebar .contact-card,
  .checkout-sidebar .login-link {
    order: 10;
  }
}

@media (max-width: 600px) {
  .checkout-topbar {
    padding: 0.6rem 1rem;
  }

  .topbar-brand {
    font-size: 0.85rem;
  }

  .checkout-wrapper {
    padding: 1rem 0.75rem 2rem;
  }

  .checkout-title {
    font-size: 1.3rem;
  }

  .payment-method-header {
    padding: 0.85rem 1rem;
  }

  .summary-total-value {
    font-size: 1.3rem;
  }

  /* Resumen compacto en mobile: precio + modalidad + garantía.
     Los beneficios ya se vieron en la landing; acá el objetivo es pagar. */
  .order-summary .summary-benefits,
  .order-summary .summary-popular-badge {
    display: none;
  }

  .trust-badges {
    gap: 1rem;
  }

  .checkout-steps {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .step-line {
    width: 24px;
  }
}

@media (max-width: 400px) {
  .payment-method-badge {
    display: none;
  }

  .step span {
    display: none;
  }
}

/* ============================================================
   CURRENCY TOGGLE
   ============================================================ */
.currency-toggle {
  display: flex;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
}

.currency-btn {
  flex: 1;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-dim);
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.currency-btn.active {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 12px var(--color-primary-glow);
}

.currency-btn:not(.active):hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.04);
}

.currency-flag {
  font-size: 1rem;
}

/* Payment action button */
.btn-pay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  margin-top: 0.75rem;
}

.btn-pay svg {
  width: 18px;
  height: 18px;
}

.btn-pay-mp {
  background: linear-gradient(135deg, #009ee3, #00b1ea);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 158, 227, 0.3);
}

.btn-pay-mp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 158, 227, 0.4);
}

.btn-pay-stripe {
  background: linear-gradient(135deg, #635bff, #7c75ff);
  color: #fff;
  box-shadow: 0 4px 16px rgba(99, 91, 255, 0.3);
}

.btn-pay-stripe:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(99, 91, 255, 0.4);
}

.btn-pay:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn-pay .spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Login required notice */
.login-required {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
}

.login-required svg {
  width: 20px;
  height: 20px;
  color: var(--color-warning);
  flex-shrink: 0;
}

.login-required p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.login-required a {
  color: var(--color-primary);
  font-weight: 600;
}

.login-required a:hover {
  text-decoration: underline;
}

/* Payment methods separator */
.payment-or {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.5rem 0;
  color: var(--color-text-dim);
  font-size: 0.8rem;
  font-weight: 600;
}

.payment-or::before,
.payment-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* ============================================================
   EMBEDDED PAYMENT FORMS
   ============================================================ */
.embedded-form-container {
  margin-top: 1rem;
  padding: 1.25rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  min-height: 80px;
}

.embedded-form-container.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.payment-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.payment-error-msg {
  margin-top: 0.75rem;
  padding: 0.6rem 0.85rem;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: #ef4444;
  font-weight: 500;
  display: none;
}

.payment-error-msg.visible {
  display: block;
}

.payment-success-msg {
  margin-top: 0.75rem;
  padding: 1rem;
  background: var(--color-success-dim);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-success);
  font-weight: 600;
}

.btn-confirm-pay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  margin-top: 1rem;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #2f74e6);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
}

/* El ícono del botón (candado) debe quedar en tamaño de glifo */
.btn-confirm-pay svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-confirm-pay:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.35);
}

.btn-confirm-pay:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-confirm-pay.stripe {
  background: linear-gradient(135deg, #635bff, #7c75ff);
  box-shadow: 0 4px 16px rgba(99, 91, 255, 0.3);
}

.btn-confirm-pay.stripe:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(99, 91, 255, 0.4);
}

.btn-confirm-pay .spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* MercadoPago Bricks custom overrides */
#mp-brick-container {
  margin-top: 0.75rem;
}

/* Stripe Payment Element wrapper */
#stripe-payment-element {
  margin-bottom: 0.5rem;
}

/* Fallback method toggle */
.fallback-toggle {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--color-text-dim);
  text-align: center;
  cursor: pointer;
  transition: color var(--transition-base);
  background: none;
  border: none;
  font-family: var(--font-family);
  width: 100%;
}

.fallback-toggle:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ============================================================
   MANUAL PAYMENT BANNER
   ============================================================ */
.manual-payment-banner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.03));
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
}

.manual-payment-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-warning);
}

.manual-payment-icon svg {
  width: 18px;
  height: 18px;
}

.manual-payment-content h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-warning);
  margin-bottom: 0.3rem;
}

.manual-payment-content p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.manual-payment-content a {
  color: var(--color-primary);
  font-weight: 600;
  transition: color var(--transition-base);
}

.manual-payment-content a:hover {
  color: var(--color-accent);
}

/* ============================================================
   DESKTOP: Clean look (reduce decorative effects)
   ============================================================ */
@media (min-width: 769px) {
  .contact-link {
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12);
  }

  .contact-link:hover {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.18);
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   HOW IT WORKS — 3-step flow (replaces manual-payment-banner)
   ============================================================ */
.how-it-works {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.07), rgba(59, 130, 246, 0.04));
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: var(--radius-md);
}

.hiw-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.hiw-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.35);
}

.hiw-num-success {
  background: var(--color-success);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.35);
}

.hiw-text strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

.hiw-text span {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  line-height: 1.3;
}

.hiw-sep {
  color: var(--color-text-dim);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.hiw-sep svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 520px) {
  .how-it-works {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .hiw-sep {
    display: none;
  }
  .hiw-item {
    width: 100%;
  }
}

/* ============================================================
   SECTION BADGE (inline label next to payment section title)
   ============================================================ */
.section-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  background: rgba(34, 197, 94, 0.12);
  color: var(--color-success);
  border-radius: 20px;
  margin-left: 0.5rem;
  vertical-align: middle;
  letter-spacing: 0.2px;
}

/* ============================================================
   DETAIL ROW — updated to accommodate copy button
   ============================================================ */
.detail-row {
  gap: 0.5rem;
}

/* ============================================================
   COPY BUTTON
   ============================================================ */
.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2rem 0.35rem;
  color: var(--color-text-dim);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
}

.copy-btn:hover {
  color: var(--color-primary);
  background: rgba(59, 130, 246, 0.08);
}

.copy-btn.copied {
  color: var(--color-success);
}

.copy-btn svg {
  width: 14px;
  height: 14px;
  pointer-events: none;
}

/* ============================================================
   INSTAGRAM CONFIRMATION CTA (inside manual payment methods)
   ============================================================ */
.confirm-instagram-cta {
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(131, 58, 180, 0.09), rgba(253, 29, 29, 0.05), rgba(252, 176, 69, 0.05));
  border: 1px solid rgba(131, 58, 180, 0.22);
  border-radius: var(--radius-md);
  text-align: center;
}

.confirm-cta-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.confirm-cta-sub {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.btn-instagram-confirm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: #fff;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  box-shadow: 0 4px 20px rgba(131, 58, 180, 0.3);
  text-decoration: none;
}

.btn-instagram-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(131, 58, 180, 0.45);
  color: #fff;
}

.btn-instagram-confirm svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============================================================
   TESTIMONIAL CARD (sidebar social proof)
   ============================================================ */
.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 3rem;
  color: rgba(59, 130, 246, 0.15);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  letter-spacing: 2px;
}

.testimonial-card p {
  font-size: 0.83rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 0.6rem;
}

.testimonial-card span {
  font-size: 0.75rem;
  color: var(--color-text-dim);
  font-weight: 600;
}
