/**
 * Pago por transferencia — estilos de la sección (scoped en .tb-transfer).
 * Hereda el header/footer de Astra; solo estiliza el contenido central.
 */

.tb-transfer {
  --tbt-blue:      #1B4F8A;
  --tbt-sky:       #5BAADC;
  --tbt-sky-pale:  #EAF4FB;
  --tbt-gold:      #E8B800;
  --tbt-ink:       #2A2A2A;
  --tbt-ink-mid:   #4A5568;
  --tbt-border:    rgba(42, 42, 42, .12);
  --tbt-cream:     #FAF8F3;
  --tbt-radius:    16px;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--tbt-ink);
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 0 2.5rem;
  line-height: 1.6;
}

/* El tema puede inyectar márgenes en .entry-content; los neutralizamos. */
.tb-transfer * { box-sizing: border-box; }

/* ── Cabecera ─────────────────────────────────────────── */
.tbt-head { text-align: center; margin-bottom: 2.5rem; }

.tbt-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tbt-blue);
  background: var(--tbt-sky-pale);
  padding: .4rem .9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.tbt-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .8rem;
  color: var(--tbt-ink);
}

.tbt-intro {
  font-size: 1.05rem;
  color: var(--tbt-ink-mid);
  max-width: 620px;
  margin: 0 auto;
}

/* ── Grid de tarjetas ─────────────────────────────────── */
.tbt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 720px) {
  .tbt-grid { grid-template-columns: 1fr; }
}

.tbt-card {
  background: #fff;
  border: 1px solid var(--tbt-border);
  border-radius: var(--tbt-radius);
  padding: 1.8rem;
  box-shadow: 0 4px 24px rgba(27, 79, 138, .06);
}

.tbt-account {
  background: linear-gradient(160deg, #fff 0%, var(--tbt-sky-pale) 100%);
  border-color: rgba(91, 170, 220, .35);
}

.tbt-card-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tbt-blue);
  margin: 0 0 1.2rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--tbt-border);
}

/* ── Datos de la cuenta ───────────────────────────────── */
.tbt-rows { margin: 0; }

.tbt-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .65rem 0;
  border-bottom: 1px dashed var(--tbt-border);
}
.tbt-row:last-child { border-bottom: 0; }

.tbt-row dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--tbt-ink-mid);
  white-space: nowrap;
}

.tbt-row dd {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--tbt-ink);
  text-align: right;
  word-break: break-word;
}

/* En mobile, apilar el dato debajo de la etiqueta (en vez de a la derecha). */
@media (max-width: 560px) {
  .tbt-row {
    flex-direction: column;
    align-items: flex-start;
    gap: .15rem;
  }
  .tbt-row dt { white-space: normal; }
  .tbt-row dd { text-align: left; }
}

/* ── Banner de monto ──────────────────────────────────── */
.tbt-amount {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  text-align: center;
  background: linear-gradient(135deg, var(--tbt-blue), var(--tbt-sky));
  color: #fff;
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  margin: 0 0 1.4rem;
  box-shadow: 0 8px 24px rgba(27, 79, 138, .25);
}
.tbt-amount-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .92;
}
.tbt-amount-value {
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  font-weight: 800;
  line-height: 1.1;
}

/* ── Pasos ────────────────────────────────────────────── */
.tbt-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: tbt-step;
}

.tbt-steps li {
  position: relative;
  counter-increment: tbt-step;
  padding: 0 0 1rem 2.4rem;
  font-size: 14px;
  color: var(--tbt-ink-mid);
}
.tbt-steps li:last-child { padding-bottom: 0; }

.tbt-steps li::before {
  content: counter(tbt-step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 1.7rem;
  height: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tbt-gold);
  color: #1A1A1A;
  font-weight: 700;
  font-size: 13px;
  border-radius: 50%;
}

/* ── Nota destacada ───────────────────────────────────── */
.tbt-note {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  background: #FFF8E1;
  border: 1px solid rgba(232, 184, 0, .4);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  margin-bottom: 2.5rem;
  font-size: 14px;
  color: #6B5500;
}
.tbt-note-icon {
  flex: 0 0 auto;
  fill: none;
  stroke: #B89000;
  stroke-width: 2;
  stroke-linecap: round;
  margin-top: 1px;
}
.tbt-note div { line-height: 1.55; }

/* ── Bloque del formulario ────────────────────────────── */
.tbt-form-block {
  background: var(--tbt-cream);
  border: 1px solid var(--tbt-border);
  border-radius: var(--tbt-radius);
  padding: 2rem;
  scroll-margin-top: 90px;
}

.tbt-form-title {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 700;
  margin: 0 0 .5rem;
  color: var(--tbt-ink);
}

.tbt-form-intro {
  font-size: .98rem;
  color: var(--tbt-ink-mid);
  margin: 0 0 1.6rem;
}

/* ── Contact Form 7 ───────────────────────────────────── */
.tbt-form .wpcf7-form { margin: 0; }

.tbt-form .wpcf7-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--tbt-ink);
  margin-bottom: 1.1rem;
}

.tbt-form .wpcf7-form-control-wrap { display: block; margin-top: .4rem; }

.tbt-form input[type="text"],
.tbt-form input[type="email"],
.tbt-form input[type="tel"],
.tbt-form input[type="file"] {
  width: 100%;
  padding: .75rem .9rem;
  font-size: 15px;
  font-family: inherit;
  color: var(--tbt-ink);
  background: #fff;
  border: 1.5px solid var(--tbt-border);
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}

.tbt-form input[type="text"]:focus,
.tbt-form input[type="email"]:focus,
.tbt-form input[type="tel"]:focus {
  outline: none;
  border-color: var(--tbt-sky);
  box-shadow: 0 0 0 3px rgba(91, 170, 220, .2);
}

.tbt-form input[type="file"] {
  padding: .6rem .9rem;
  cursor: pointer;
  background: #fff;
}
.tbt-form input[type="file"]::file-selector-button {
  margin-right: .9rem;
  padding: .45rem .9rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  color: var(--tbt-blue);
  background: var(--tbt-sky-pale);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.tbt-form .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: .4rem;
  padding: .85rem 2rem;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #1A1A1A;
  background: var(--tbt-gold);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .12s, background .15s, box-shadow .15s;
  box-shadow: 0 6px 18px rgba(232, 184, 0, .35);
}
.tbt-form .wpcf7-submit:hover {
  background: #F5C800;
  transform: translateY(-1px);
}
.tbt-form .wpcf7-submit:disabled { opacity: .55; cursor: not-allowed; }

/* Validación / mensajes de CF7 */
.tbt-form .wpcf7-not-valid-tip {
  display: block;
  margin-top: .3rem;
  font-size: 12px;
  font-weight: 600;
  color: #D52B1E;
}
.tbt-form .wpcf7-not-valid {
  border-color: #D52B1E !important;
  box-shadow: 0 0 0 3px rgba(213, 43, 30, .15) !important;
}
.tbt-form .wpcf7-response-output {
  margin: 1.3rem 0 0 !important;
  padding: .85rem 1.1rem !important;
  border-radius: 10px !important;
  font-size: 14px;
  border-width: 1.5px !important;
}
.tbt-form .wpcf7-spinner { margin: 0 0 0 .6rem; }
