/* ==========================================================================
   10. SECTION: MÉTODOS DE PAGO COMPONENT
   ========================================================================== */

.payment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  width: 100%;
  margin-top: 15px;
}

.payment-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 22px;
  border-radius: 20px;
  background: var(--bg-card);
  transition: var(--transition);
}

.payment-card:hover {
  transform: translateY(-6px);
}

/* Stagger the reveal-on-scroll across the grid, left to right, row by row */
.payment-card:nth-child(1) { transition-delay: 0s; }
.payment-card:nth-child(2) { transition-delay: 0.08s; }
.payment-card:nth-child(3) { transition-delay: 0.16s; }
.payment-card:nth-child(4) { transition-delay: 0.24s; }
.payment-card:nth-child(5) { transition-delay: 0.32s; }
.payment-card:nth-child(6) { transition-delay: 0.4s; }
.payment-card:nth-child(7) { transition-delay: 0.48s; }

/* A 7th card leaves a lone item on the last row of a 3-column grid —
   center it instead of letting it hug the left edge. Reset in vapor.css
   media queries where the grid drops to 2 or 1 columns. */
.payment-card:nth-child(3n+1):last-child {
  grid-column: 2;
}

/* Each card sets --brand / --brand-soft inline (same pattern already used
   for the hero's background-image) to its real institutional brand color —
   see the HTML for the source of each value. Cards that don't set them fall
   back to the site's default crimson accent. */
.payment-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--brand-soft, rgba(255, 23, 68, 0.18)) 0%, rgba(9, 1, 3, 0.4) 100%);
  border: 1px solid var(--brand-soft, rgba(255, 77, 109, 0.25));
  margin-bottom: 18px;
  transition: var(--transition);
}

.payment-card:hover .payment-icon-wrapper {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 0 26px var(--brand-soft, rgba(255, 23, 68, 0.4));
  border-color: var(--brand, rgba(255, 77, 109, 0.55));
}

.payment-icon {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--brand, var(--accent-gold-bright));
}

.payment-icon path,
.payment-icon rect {
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The lightning-bolt icon ("Deuna!") reads better solid than outlined */
.payment-icon-fill {
  fill: var(--brand, var(--accent-gold-bright));
  stroke: none;
}

.payment-icon-fill path {
  stroke-width: 0;
}

.payment-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.payment-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}
