/* Niam Club / Comparte / Folio — estilos propios; se cargan DESPUÉS de rewards.css (misma paleta, claro/oscuro del dispositivo). */

/* Selector de cantidad (personal) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 6px; }
.chip { min-width: 56px; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); font-weight: 800; font-size: 1.15rem; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #fff; }
.other-units { display: flex; gap: 8px; align-items: center; margin: 6px 0; }
.other-units input { width: 110px; min-height: 46px; }
.pay-total { text-align: center; margin: 14px 0 4px; padding: 14px; border-radius: 16px; background: rgba(255,122,0,.10); border: 1.5px solid rgba(255,122,0,.4); }
.pay-total small { display: block; color: var(--muted); font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.pay-total b { display: block; font-size: 2.2rem; font-weight: 900; color: var(--orange-dark); line-height: 1.1; }
.pay-total span { font-weight: 700; }
.donor-line { display: flex; align-items: center; gap: 10px; background: var(--soft); border-radius: 12px; padding: 10px 12px; margin-top: 10px; font-weight: 700; }
.donor-line small { display: block; color: var(--muted); font-weight: 500; }

/* Folio */
.folio-box { text-align: center; margin: 10px 0 2px; }
.folio-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.7rem; font-weight: 800; letter-spacing: .06em; word-break: break-all; }
.legal { color: var(--muted); font-size: .8rem; line-height: 1.4; margin-top: 10px; }

/* Tarjetas de campaña */
.camp h2 { margin-bottom: 2px; }
.camp .nums { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0 6px; }
.camp .nums b { font-size: 1.7rem; font-weight: 900; color: var(--orange); }
.camp .nums span { color: var(--muted); font-size: .9rem; }
.camp .mine { margin-top: 10px; font-weight: 700; }
.camp .soon { color: var(--muted); font-size: .82rem; margin-top: 6px; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .72rem; font-weight: 800; background: rgba(255,179,0,.18); color: var(--warn); margin-left: 6px; vertical-align: middle; }

/* Listas de folios / historial */
.rows { list-style: none; display: flex; flex-direction: column; }
.rows li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rows li:last-child { border-bottom: 0; }
.rows small { display: block; color: var(--muted); }
.rows a { font-weight: 700; }
.pill.warn { background: rgba(255,179,0,.18); color: var(--warn); }

/* Niam Club */
.mod-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.prog-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.prog-row:last-child { border-bottom: 0; }
.prog-row .top-line { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.prog-row .meter.bar { margin: 8px 0 4px; height: 10px; }
.more { margin-top: 8px; }

/* Verificación de folio */
.verdict { text-align: center; padding: 22px 18px; }
.verdict .mark { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 2.2rem; color: #fff; margin: 0 auto 10px; }
.verdict.ok .mark { background: var(--ok); }
.verdict.void .mark { background: var(--warn); }
.verdict.none .mark { background: var(--muted); }
.facts { list-style: none; text-align: left; margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.facts li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.facts li span:first-child { color: var(--muted); }
.facts li span:last-child { font-weight: 700; text-align: right; }
.folio-form { display: flex; gap: 8px; }
.folio-form input { flex: 1; text-transform: uppercase; }

/* Niam Club: un botón por servicio (se ve una sección a la vez) y el código QR en un botón */
.mi-head { align-items: flex-end; justify-content: space-between; margin-bottom: 16px; }
.modtabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--soft); border-radius: 14px; padding: 4px; }
.modtab { border: 0; background: transparent; border-radius: 11px; padding: 11px 6px; font-weight: 800; font-size: .92rem; color: var(--muted); cursor: pointer; }
.modtab[aria-selected="true"] { background: var(--bg); color: var(--orange-dark); box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: .86rem; border-radius: 12px; }

/* Niam Club: tarjetas por restaurante (logo, sellos, membresías tipo wallet) */
#u-rewards.plain, #u-pass.plain { background: none; border: 0; box-shadow: none; padding: 0; }
.plain .mod-head { padding: 0 2px; }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--acc, var(--orange)); color: var(--on-acc, #fff); font-weight: 900; font-size: 1.15rem; box-shadow: 0 0 0 2px rgba(255,255,255,.55); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; background: #fff; }
.rw-card { background: var(--bg); border: 1.5px solid var(--line); border-radius: 20px; padding: 14px 16px; margin-top: 12px; box-shadow: var(--shadow); }
.rw-card .who { display: flex; align-items: center; gap: 12px; }
.rw-card .who b { display: block; font-size: 1.02rem; line-height: 1.2; }
.rw-card .who small { color: var(--muted); }
.rw-card .sellos { display: grid; grid-template-columns: repeat(var(--cols, 10), 22px); gap: 7px; margin: 12px 0 8px; }
.rw-card .sello { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: transparent; }
.rw-card .sello.on { background: var(--acc, var(--orange)); border-color: var(--acc, var(--orange)); }
.rw-card .meter.bar { margin: 12px 0 8px; height: 10px; }
.rw-card .goal-line { font-size: .92rem; color: var(--muted); }
.rw-card.near .goal-line { color: var(--orange-dark); font-weight: 800; }
.rw-card.ready { border-color: var(--ok); box-shadow: 0 0 0 3px rgba(30,158,72,.16); }
.rw-card.paused { opacity: .6; }
.gift { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 9px 12px; border-radius: 12px; background: rgba(30,158,72,.14); color: var(--ok); font-weight: 800; }
.pass-card { border-radius: 22px; margin-top: 12px; overflow: hidden; border: 1.5px solid var(--line); background: var(--bg); box-shadow: var(--shadow); }
.pass-card .hd { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: linear-gradient(135deg, var(--acc, var(--orange)), color-mix(in srgb, var(--acc, var(--orange)) 70%, #000)); color: var(--on-acc, #fff); }
.pass-card .hd .avatar { background: rgba(255,255,255,.92); color: #1A1A1A; }
.pass-card .hd .txt { flex: 1; min-width: 0; }
.pass-card .hd b { display: block; font-size: 1.02rem; line-height: 1.2; overflow-wrap: anywhere; }
.pass-card .hd small { display: block; opacity: .9; }
.pass-card .days { text-align: right; line-height: 1; flex: none; }
.pass-card .days b { font-size: 1.9rem; font-weight: 900; }
.pass-card .days small { display: block; margin-top: 4px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pass-card .bd { padding: 12px 16px 14px; }
.pass-card .ben { padding: 8px 0; }
.pass-card .ben .top-line { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.pass-card .ben .meter.bar { margin: 6px 0 0; height: 8px; }
.pass-card .ben.out .top-line b { color: var(--muted); }
.pass-card .flag { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: rgba(255,179,0,.18); color: var(--warn); font-weight: 800; font-size: .88rem; }
.pass-card.off { opacity: .62; }
.pass-card.off .hd { background: var(--soft); color: var(--muted); }
.pass-card.off .hd .avatar { filter: grayscale(1); }
.pass-card .status { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 999px; background: rgba(255,255,255,.24); font-size: .74rem; font-weight: 800; }
.pass-card.off .status { background: var(--line); }
#u-rewards.plain > .muted, #u-pass.plain > .muted { margin-top: 12px; }

/* Caja: una sección por servicio dentro de la hoja del cliente (Recompensas / Pass / Comparte) */
.svc { margin-top: 14px; padding: 12px 14px 14px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--bg); }
.svc-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.svc-h h2 { font-size: 1rem; font-weight: 800; }
.svc .sub { margin-top: 2px; }
.svc .mem { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
#m-svcs { margin: 2px 0 14px; }
.sheet .modtabs { margin-top: 12px; }
