/* Tipografías de la marca: copia los archivos en /public/fonts con estos nombres
   (si no están, se usan las del sistema). */
@font-face { font-family: 'Bedmi Puri'; src: url('/fonts/BedmiPuri.woff2') format('woff2'), url('/fonts/BedmiPuri.otf') format('opentype'); font-display: swap; }
@font-face { font-family: 'Glacial'; src: url('/fonts/Glacial-Regular.woff2') format('woff2'), url('/fonts/Glacial-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Glacial'; src: url('/fonts/Glacial-Bold.woff2') format('woff2'), url('/fonts/Glacial-Bold.otf') format('opentype'); font-weight: 700; font-display: swap; }

:root {
  --dark: #3D1805;
  --amber: #F2A636;
  --peach: #FFC88F;
  --orange: #FC5B31;
  --pink: #FAA5A8;
  --cream: #FFF4EE;
  --ink: #2a1004;
  --muted: #7a5a48;
  --ok: #2f8f4e;
  --radius: 18px;
  --display: 'Bedmi Puri', 'Cooper Black', 'Georgia', serif;
  --body: 'Glacial', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--orange); }
h1, h2, .display { font-family: var(--display); font-weight: 700; letter-spacing: 0.2px; }
.wrap { max-width: 480px; margin: 0 auto; padding: 0 18px 40px; }

/* Cabecera */
.hero {
  background: radial-gradient(120% 100% at 50% 0%, #5a2a0e 0%, var(--dark) 70%);
  color: var(--cream);
  padding: 28px 18px 64px;
  text-align: center;
  border-radius: 0 0 32px 32px;
}
.hero .brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 22px; }
.hero .brand img { width: 40px; height: 40px; }
.hero h1 { font-size: 30px; line-height: 1.1; margin: 18px 0 8px; color: var(--peach); }
.hero p { margin: 0 auto; max-width: 340px; opacity: 0.92; line-height: 1.45; }
.stamps-img { display: block; width: 100%; border-radius: 16px; box-shadow: 0 12px 30px rgba(61, 24, 5, 0.35); }
.overlap { margin-top: -44px; }

/* Tarjetas y formularios */
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 18px;
  box-shadow: 0 6px 24px rgba(61, 24, 5, 0.08);
  margin-top: 18px;
}
label { display: block; font-weight: 700; font-size: 14px; margin: 14px 0 6px; }
label .opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=password], input[type=search], input[type=number] {
  width: 100%;
  font: inherit;
  font-size: 17px;
  padding: 13px 14px;
  border: 1.5px solid #ecd9cc;
  border-radius: 12px;
  background: #fffaf7;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(242, 166, 54, 0.2); }
.field-error { color: #c0392b; font-size: 13px; margin-top: 5px; min-height: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; line-height: 1.4; margin-top: 14px; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--orange); flex: none; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  font: inherit; font-weight: 700; font-size: 17px;
  padding: 15px 18px;
  border: 0; border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.08s, filter 0.15s, opacity 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-dark { background: var(--dark); color: var(--cream); }
.btn-amber { background: var(--amber); color: var(--dark); }
.btn-ghost { background: transparent; color: var(--dark); border: 1.5px solid #e6cfc0; }
.btn-wallet { background: #000; color: #fff; border-radius: 12px; font-weight: 600; }
.btn-wallet svg { width: 26px; height: 26px; }
.stack > * + * { margin-top: 10px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.footer { text-align: center; font-size: 12px; color: var(--muted); margin-top: 28px; }

/* Tarjeta del cliente */
.points-big { font-family: var(--display); font-size: 54px; color: var(--dark); line-height: 1; }
.points-big small { font-size: 24px; color: var(--muted); }
.progress { height: 12px; background: #f3e3d8; border-radius: 99px; overflow: hidden; margin: 12px 0 6px; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--amber), var(--orange)); border-radius: 99px; transition: width 0.5s; }
.qr-box { background: #fff; border-radius: 14px; padding: 12px; width: 210px; margin: 8px auto 0; border: 1.5px dashed #ecd9cc; }
.qr-box img { display: block; width: 100%; }
.code-text { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 18px; letter-spacing: 2px; font-weight: 700; margin-top: 8px; }
.reward-banner {
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: #fff; border-radius: var(--radius); padding: 18px; text-align: center; margin-top: 18px;
}
.reward-banner h2 { margin: 0 0 4px; font-size: 24px; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--dark); color: var(--cream); padding: 12px 18px; border-radius: 12px; font-size: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25); z-index: 50; max-width: 90vw;
}
