/* Tarjeta de puntos del cliente: una sola pantalla, pensada para abrirse al acercar el móvil a la pegatina NFC. */
.tc { max-width: 460px; margin: 0 auto; padding: calc(20px + env(safe-area-inset-top)) 18px 20px; }
.tc__wait { padding: 60px 0; text-align: center; color: var(--ink-3); }
.tc__foot { display: flex; justify-content: center; gap: 18px; padding: 8px 18px calc(24px + env(safe-area-inset-bottom)); font-size: 0.875rem; }
.tc__foot a { color: var(--ink-2); text-underline-offset: 3px; }

.tc-head { margin: 8px 0 18px; }
.tc-head h1 { margin: 0; font: 800 2.25rem/1 var(--font-display); text-transform: uppercase; }
.tc-head p { margin: 10px 0 0; color: var(--ink-2); }

/* la tarjeta */
.tc-card {
  position: relative; overflow: hidden; padding: 20px; border-radius: var(--r-lg); color: #fff; background: #0f0f0f;
  box-shadow: 0 18px 36px -18px rgba(15, 15, 15, 0.7);
}
.tc-card::before { content: ''; position: absolute; right: -60px; top: -70px; width: 240px; height: 240px; background: radial-gradient(closest-side, rgba(255, 205, 130, 0.34), transparent); }
.tc-card__top { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tc-card__logo { height: 46px; width: auto; }
.tc-card__coin { position: absolute; right: 14px; bottom: 14px; width: 96px; height: 96px; transform: rotate(-6deg); filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5)); }
.tc-card__label { position: relative; margin: 22px 0 0; font: 600 0.8125rem/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: #cfc6ba; }
.tc-card__points { position: relative; margin: 6px 0 0; font: 800 4.25rem/0.95 var(--font-display); color: #fff; font-variant-numeric: tabular-nums; }
.tc-card__who { position: relative; margin: 14px 0 0; padding-right: 106px; font-weight: 600; overflow-wrap: anywhere; }
.tc-card__who span { display: block; font: 500 0.875rem/1.3 var(--font-body); color: #cfc6ba; }

/* resultado de la operación */
.tc-flash { margin: 0 0 14px; padding: 16px 18px; border-radius: var(--r-md); background: #0f0f0f; color: #fff; animation: tc-in 320ms var(--ease-out, ease-out); }
.tc-flash strong { display: block; font: 800 1.75rem/1.05 var(--font-display); color: var(--turquesa); }
.tc-flash span { display: block; margin-top: 4px; color: #e7dfd4; }
.tc-flash.is-bad strong { color: var(--rosa); font-size: 1.25rem; }
@keyframes tc-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
@media (prefers-reduced-motion: reduce) { .tc-flash { animation: none; } }

.tc-sec { margin-top: 24px; }
.tc-sec h2 { margin: 0 0 10px; font: 800 1.25rem/1.1 var(--font-display); text-transform: uppercase; }
.tc-sec > p { margin: 0 0 10px; color: var(--ink-2); }

.tc-reward { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tc-reward b { font: 700 1.1rem/1 var(--font-data); }
.tc-bar { grid-column: 1 / 3; height: 6px; border-radius: 3px; background: var(--velvet-600); overflow: hidden; }
.tc-bar i { display: block; height: 100%; border-radius: 3px; background: var(--rosa); }
.tc-reward.is-ready .tc-bar i { background: var(--gel-teal); }
.tc-reward small { grid-column: 1 / 3; color: var(--ink-3); }

.tc-qr { display: grid; justify-items: center; gap: 8px; padding: 16px; border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.tc-qr svg { width: min(58vw, 210px); height: auto; display: block; }
.tc-qr small { color: var(--ink-3); text-align: center; }

.tc-hist { list-style: none; margin: 0; padding: 0; }
.tc-hist li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.tc-hist span { color: var(--ink-3); font-size: 0.875rem; display: block; }
.tc-hist b { font: 700 1.1rem/1.3 var(--font-data); white-space: nowrap; }
.tc-hist b.is-plus { color: var(--gel-teal); }

.tc-form { display: grid; gap: 14px; padding: 18px; border-radius: var(--r-lg); background: var(--velvet-700); box-shadow: inset 0 0 0 1px var(--line); }
.tc-check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 0.9375rem; color: var(--ink-2); }
.tc-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--negro); }
.tc-switch { margin-top: 14px; text-align: center; }
.tc-link { padding: 8px; border: 0; background: none; color: var(--tungsten-2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tc-danger { display: block; margin: 26px auto 0; padding: 8px; border: 0; background: none; color: var(--ink-3); font-size: 0.875rem; text-decoration: underline; cursor: pointer; }
.form-error { margin: 0; color: var(--gel-rose); font-weight: 600; }
.form-error:empty { display: none; }
.tc-wallet { display: grid; gap: 8px; margin-top: 14px; }
.tc-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 12px; padding: 4px; border-radius: var(--r-pill); background: var(--velvet-600); }
.tc-tabs button { min-height: 44px; border: 0; border-radius: var(--r-pill); background: none; color: var(--ink-2); font-weight: 700; cursor: pointer; }
.tc-tabs button[aria-pressed='true'] { background: var(--ink); color: var(--bg); }
.tc-pass { position: relative; display: block; }
.tc-pass .input { width: 100%; padding-right: 76px; }
.tc-pass .tc-link { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.tc-logout { margin-top: 26px; }
.tc-logout + .tc-danger { margin-top: 10px; }
