:root {
  --forest-950: #06200f;
  --forest-900: #0b2e17;
  --forest-800: #12401f;
  --forest-700: #1b5a2b;
  --leaf-500: #3f9a2c;
  --leaf-400: #6cbf3c;
  --leaf-300: #a3d977;
  --leaf-100: #e6f3da;
  --cream-50: #fbf9f3;
  --cream-100: #f5f1e6;
  --cream-200: #ebe4d1;
  --ink: #13201a;
  --muted: #5b6a60;
  --danger: #b3261e;
  --wa: #25d366;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--forest-950);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}
h1, h2, h3 {
  font-stretch: 72%;
  text-transform: uppercase;
  line-height: 0.95;
  margin: 0;
  letter-spacing: 0.01em;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { max-width: 440px; margin: 0 auto; padding: 20px 16px 40px; }
.top { display: flex; align-items: center; gap: 12px; color: var(--cream-50); margin-bottom: 20px; }
.top img { width: 52px; height: 52px; }
.top b { display: block; font-stretch: 72%; text-transform: uppercase; font-size: 22px; line-height: 1; }
.top span { font-size: 13px; color: var(--leaf-300); }

.panel { background: var(--cream-50); border-radius: 18px; padding: 22px 18px; }
.panel + .panel { margin-top: 14px; }
.muted { color: var(--muted); font-size: 14px; }
.small { font-size: 13px; }

label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }
input[type="text"], input[type="tel"], input[type="password"], input[type="search"], select, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--cream-200);
  border-radius: 12px;
  background: #fff;
  font-size: 17px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--leaf-500); outline-offset: 1px; border-color: transparent; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--muted); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--leaf-500); flex: none; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border: 0;
  border-radius: 14px;
  background: var(--leaf-500);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  text-transform: uppercase;
  font-stretch: 80%;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; cursor: default; }
.btn.dark { background: var(--forest-900); }
.btn.ghost { background: transparent; color: var(--forest-800); border: 1.5px solid var(--cream-200); }
.btn.gold { background: #e2a72e; color: var(--forest-950); }
.btn.danger { background: transparent; color: var(--danger); border: 1.5px solid #e9c9c6; }
.btn.wallet { background: #000; text-transform: none; font-stretch: 100%; font-weight: 600; border-radius: 26px; }
.btn.wallet svg { width: 26px; height: 26px; }
.stack > * + * { margin-top: 10px; }

.error { color: var(--danger); font-size: 14px; margin-top: 10px; min-height: 1em; }
.hidden { display: none !important; }

/* ---------- tarjeta ---------- */
.loyalty {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 20px 18px 18px;
  color: var(--cream-50);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(108, 191, 60, 0.28), transparent 55%),
    linear-gradient(160deg, var(--forest-700), var(--forest-900) 70%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.loyalty .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.loyalty .head img { width: 58px; height: 58px; flex: none; }
.loyalty .kicker { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--leaf-300); font-weight: 700; }
.loyalty h1 { font-size: 34px; margin-top: 4px; }
.loyalty .who { margin-top: 14px; font-size: 15px; color: var(--cream-200); }
.loyalty .who b { color: #fff; }

.stamps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0 6px; }
.stamp {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.28);
  display: grid; place-items: center;
  font-weight: 800; font-stretch: 72%; font-size: 20px;
  color: rgba(255, 255, 255, 0.35);
}
.stamp.on { border: 0; background: var(--leaf-400); color: var(--forest-950); }
.stamp.on svg { width: 62%; height: 62%; }
.stamp.prize { border-color: #e2a72e; color: #e2a72e; font-size: 12px; text-align: center; line-height: 1; padding: 4px; }
.stamp.prize.on { background: #e2a72e; color: var(--forest-950); }
.stamp.pop { animation: pop 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
@keyframes pop { from { transform: scale(0.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.progress { font-size: 15px; color: var(--cream-200); }
.progress b { color: #fff; font-size: 18px; }
.ready { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #e2a72e; color: var(--forest-950); font-weight: 700; }

.qr { background: #fff; border-radius: 16px; padding: 14px; display: grid; place-items: center; }
.qr svg { width: 100%; max-width: 230px; height: auto; display: block; }
.qr .code { margin-top: 6px; font-size: 13px; color: var(--muted); }

.rules { margin: 0; padding-left: 20px; }
.rules li + li { margin-top: 6px; }

/* ---------- panel tienda ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--cream-100); border-radius: 12px; padding: 10px; text-align: center; }
.stat b { display: block; font-size: 26px; font-stretch: 72%; line-height: 1; }
.stat span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.tabs button {
  flex: 1; padding: 10px 6px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--forest-800); color: var(--cream-200); font-weight: 700; font-size: 14px;
}
.tabs button.on { background: var(--cream-50); color: var(--forest-900); }
.video { position: relative; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 1; }
.video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video .frame { position: absolute; inset: 18%; border: 3px solid var(--leaf-400); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.35); }
.list { list-style: none; margin: 10px 0 0; padding: 0; }
.list li { padding: 12px 4px; border-bottom: 1px solid var(--cream-200); display: flex; justify-content: space-between; gap: 10px; cursor: pointer; }
.list li:last-child { border-bottom: 0; }
.list small { color: var(--muted); }
.pill { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--leaf-100); color: var(--forest-800); white-space: nowrap; align-self: center; }
.pill.gold { background: #f7e2b5; color: #6b4a00; }
.member-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.member-head h2 { font-size: 28px; }
.mini-stamps { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.mini-stamps i { width: 30px; height: 30px; border-radius: 50%; border: 2px dashed var(--cream-200); }
.mini-stamps i.on { background: var(--leaf-500); border: 0; }
.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
  background: var(--forest-900); color: #fff; padding: 12px 18px; border-radius: 14px;
  font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); z-index: 10; max-width: calc(100% - 32px);
}
footer { text-align: center; color: var(--leaf-300); font-size: 12px; margin-top: 22px; }
footer a { color: var(--cream-200); }
