/* ============================================================
   coins.css — Turno Coins (moneda, cofre de la reserva, billetera) y
   reseñas verificadas (formulario, ficha pública, historial).
   Misma estética blanco/negro de TURNNIA; el ÚNICO acento es el dorado
   de la moneda. Sin dependencias: tokens de css/styles.css.
   ============================================================ */
:root {
  --tc-gold: #d4a017;
  --tc-gold-2: #f2c94c;
  --tc-gold-ink: #7a5605;
  --tc-gold-bg: #fff8e1;
  --tc-gold-line: #f1dc9a;
  --rv-star: #f5b301;
}

.tc-coin { display: inline-block; vertical-align: middle; flex: none; }
.tc-amount {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 700; font-variant-numeric: tabular-nums;
}
.tc-amount--lg { font-size: clamp(1.9rem, 6vw, 2.6rem); gap: 10px; letter-spacing: -.01em; }
.tc-amount--neg { color: var(--ink-soft); }
.tc-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 6px; border-radius: 999px;
  background: var(--tc-gold-bg); border: 1px solid var(--tc-gold-line);
  color: var(--tc-gold-ink); font-size: .82rem; font-weight: 600;
}
.tc-provisional {
  display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px;
  background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; vertical-align: middle;
}
.tc-progress { height: 6px; border-radius: 999px; background: var(--bg-3); overflow: hidden; }
.tc-progress > span {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--tc-gold-2), var(--tc-gold));
  transition: width .5s var(--ease);
}

/* ---------------- Cofre flotante (reservar.html) ---------------- */
.tc-chest {
  position: fixed; z-index: 60;
  left: 16px; bottom: calc(88px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 0;
  font-family: var(--font-body);
}
@media (min-width: 1000px) { .tc-chest { left: 24px; bottom: 24px; } }
.tc-chest[hidden] { display: none; }
/* Con el cofre visible, el asistente deja aire abajo: ningún horario ni botón queda debajo. */
@media (max-width: 999px) { body.has-tc-chest #rsvWizard { padding-bottom: calc(150px + env(safe-area-inset-bottom)); } }
.tc-chest__btn {
  position: relative; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.tc-chest__btn:hover { transform: translateY(-2px); }
.tc-chest__btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.tc-chest__badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--ink); color: #fff; font-size: .68rem; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}
.tc-chest__badge[hidden] { display: none; }
.tc-chest__tab {
  margin-left: -10px; padding: 7px 14px 7px 18px; border-radius: 0 999px 999px 0;
  background: var(--ink); color: #fff; font-size: .8rem; font-weight: 600; white-space: nowrap;
  cursor: pointer; border: 0; box-shadow: var(--shadow-sm);
  max-width: 220px; overflow: hidden; text-overflow: ellipsis;
  transition: opacity .25s var(--ease), max-width .3s var(--ease), padding .3s var(--ease);
}
.tc-chest.is-compact .tc-chest__tab { max-width: 0; padding-left: 0; padding-right: 0; opacity: 0; pointer-events: none; }
.tc-chest.has-reward .tc-chest__btn { border-color: var(--tc-gold); box-shadow: 0 0 0 3px var(--tc-gold-bg), var(--shadow-md); }

.tc-chest-panel {
  position: fixed; z-index: 70; left: 16px; right: 16px;
  bottom: calc(150px + env(safe-area-inset-bottom));
  max-height: min(70vh, 560px); overflow: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 18px 18px 14px;
}
@media (min-width: 560px) { .tc-chest-panel { right: auto; width: 380px; } }
@media (min-width: 1000px) { .tc-chest-panel { left: 24px; bottom: 90px; } }
.tc-chest-panel[hidden] { display: none; }
.tc-chest-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.tc-chest-panel__title { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; }
.tc-chest-panel__sub { color: var(--muted); font-size: .84rem; margin-top: 2px; }
.tc-chest-panel__close {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  cursor: pointer; font-size: 1.1rem; line-height: 1; flex: none;
}
.tc-chest-panel__bal {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-radius: var(--radius); background: var(--tc-gold-bg); border: 1px solid var(--tc-gold-line);
  margin-bottom: 12px;
}
.tc-chest-panel__bal small { color: var(--tc-gold-ink); font-size: .78rem; display: block; }
.tc-chest-panel__note { color: var(--muted); font-size: .8rem; margin-top: 10px; line-height: 1.45; }
.tc-chest-panel__login { display: grid; gap: 8px; padding: 12px 14px; border-radius: var(--radius); background: var(--bg-2); margin-bottom: 12px; font-size: .88rem; }

.tc-reward {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line-2);
}
.tc-reward:last-child { border-bottom: 0; }
.tc-reward__title { font-weight: 600; font-size: .94rem; }
.tc-reward__desc { color: var(--muted); font-size: .82rem; margin-top: 2px; }
.tc-reward__cost { font-size: .86rem; }
.tc-reward__prog { grid-column: 1 / -1; display: grid; gap: 4px; }
.tc-reward__prog small { color: var(--muted); font-size: .76rem; }
.tc-reward .dash-btn, .tc-reward .btn { white-space: nowrap; }
.tc-reward.is-selected { background: var(--tc-gold-bg); margin: 0 -10px; padding: 12px 10px; border-radius: var(--radius-sm); border-bottom-color: transparent; }
.tc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: #fff; font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer;
}
.tc-btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.tc-btn:disabled { opacity: .45; cursor: not-allowed; }

/* Línea de descuento en el resumen de la reserva */
.tc-discount-row { color: var(--tc-gold-ink); }
.tc-discount-row b { font-weight: 700; }

/* ---------------- Billetera (puntos.html) ---------------- */
.tc-wallet-grid { display: grid; gap: 14px; }
@media (min-width: 900px) { .tc-wallet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tc-wcard { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; padding: 18px; display: grid; gap: 12px; }
.tc-wcard__head { display: flex; align-items: center; gap: 12px; }
.tc-wcard__logo {
  width: 42px; height: 42px; border-radius: 12px; background: var(--bg-2) center/cover no-repeat;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; flex: none;
}
.tc-wcard__name { font-weight: 700; font-size: 1rem; }
.tc-wcard__meta { color: var(--muted); font-size: .8rem; }
.tc-wcard__bal { margin-left: auto; text-align: right; }
.tc-wcard__exp { font-size: .8rem; color: #9a3412; }
.tc-wcard__next { display: grid; gap: 6px; font-size: .84rem; }
.tc-wcard__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tc-code {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line-2);
}
.tc-code:last-child { border-bottom: 0; }
.tc-code__qr svg, .tc-code__qr img { width: 92px; height: 92px; display: block; image-rendering: pixelated; }
.tc-code__body { flex: 1; min-width: 180px; display: grid; gap: 3px; }
.tc-code__code { font-family: var(--font-head); font-weight: 700; letter-spacing: .04em; }
.tc-hist-amt { font-family: var(--font-head); font-weight: 700; white-space: nowrap; }
.tc-hist-amt.is-pos { color: var(--tc-gold-ink); }
.tc-earn { display: grid; gap: 2px; }
.tc-earn__row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: .9rem; }
.tc-earn__row:last-child { border-bottom: 0; }
.tc-earn__pts { min-width: 92px; max-width: 46%; flex-shrink: 0; }
.tc-earn__cond { display: block; margin-top: 2px; color: var(--muted); font-size: .82rem; line-height: 1.45; }

/* ---------------- Reseñas: estrellas y opiniones rápidas ---------------- */
.rv-stars-input { display: flex; gap: 6px; }
.rv-stars-input button {
  width: 48px; height: 48px; border: 0; background: none; cursor: pointer; padding: 0;
  border-radius: 12px; display: grid; place-items: center;
  transition: transform .15s var(--ease);
}
.rv-stars-input button:hover { transform: scale(1.08); }
.rv-stars-input button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.rv-stars-input svg { width: 40px; height: 40px; fill: var(--bg-3); stroke: #d4d4d8; stroke-width: 1; transition: fill .15s; }
.rv-stars-input button.is-on svg { fill: var(--rv-star); stroke: #d99a00; }
.rv-stars-caption { min-height: 1.3em; font-weight: 600; margin-top: 6px; }
.rv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-chip {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font: inherit; font-size: .88rem; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.rv-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.rv-chip.is-neg[aria-pressed="true"] { background: #7f1d1d; border-color: #7f1d1d; }
.rv-incentive {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--radius); background: var(--tc-gold-bg); border: 1px solid var(--tc-gold-line);
  font-size: .86rem; color: var(--tc-gold-ink); line-height: 1.45;
}

/* Lista pública / panel */
.rv-badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px;
  background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; font-size: .74rem; font-weight: 700;
}
.rv-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rv-tag { padding: 3px 10px; border-radius: 999px; background: var(--bg-2); font-size: .78rem; color: var(--ink-soft); }
.rv-tag.is-neg { background: #fef2f2; color: #991b1b; }
.rv-reply {
  margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--ink); background: var(--bg-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .88rem;
}
.rv-reply b { display: block; font-size: .78rem; margin-bottom: 2px; }
.rv-dist { display: grid; gap: 6px; min-width: 200px; }
.rv-dist__row { display: grid; grid-template-columns: 28px 1fr 34px; gap: 8px; align-items: center; font-size: .82rem; }
.rv-dist__bar { height: 8px; border-radius: 999px; background: var(--bg-3); overflow: hidden; }
.rv-dist__bar > span { display: block; height: 100%; background: var(--rv-star); border-radius: inherit; }
.rv-summary { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.rv-summary__score strong { font-family: var(--font-head); font-size: 2.6rem; line-height: 1; display: block; }
.rv-summary__score span { color: var(--muted); font-size: .86rem; }

/* «Mis reservas» */
.mr-list { display: grid; gap: 12px; }
.mr-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 8px; background: #fff; }
.mr-item__top { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; }
.mr-item__biz { font-weight: 700; }
.mr-item__sub { color: var(--muted); font-size: .86rem; }
.mr-item__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Ajustes tras revisión visual */
.rv-chip:hover { border-color: var(--ink); }
.rv-chip[aria-pressed="true"], .rv-chip[aria-pressed="true"]:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.rv-chip.is-neg[aria-pressed="true"], .rv-chip.is-neg[aria-pressed="true"]:hover { background: #7f1d1d; border-color: #7f1d1d; color: #fff; }
.neg-review__head { flex-wrap: wrap; }
.neg-review__head > b { margin-left: 4px; }
.neg-review__head > .rv-badge { margin-right: auto; }
.rv-summary__score .stars { margin-right: 6px; }
#tcCode {
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; font: inherit;
  min-width: 180px; text-transform: uppercase; letter-spacing: .04em; background: #fff;
}
#tcCode:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
