/* Hobby Store · base compartida (tienda y panel) */
:root {
  --bg: #09090a;
  --surface: #131315;
  --surface-2: #1b1b1f;
  --line: #2b2a2e;
  --gold: #d4af37;
  --gold-hi: #f3dd96;
  --gold-lo: #a47f2a;
  --text: #f5f0e6;
  --muted: #a69f90;
  --danger: #e5665a;
  --ok: #63c08a;
  --radius: 16px;
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --gold-grad: linear-gradient(135deg, #f3dd96 0%, #d4af37 45%, #a47f2a 100%);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: var(--gold-hi); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px;
  font-weight: 700; font-size: 14px; letter-spacing: .02em; text-decoration: none;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
  transition: transform .12s ease, filter .12s ease;
}
.btn:active { transform: scale(.98); }
.btn.gold { background: var(--gold-grad); color: #171204; border-color: transparent; }
.btn.gold:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; border-color: var(--gold-lo); color: var(--gold-hi); }
.btn.danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn.block { width: 100%; }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn:disabled { opacity: .45; }

.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; letter-spacing: .03em; }
.input, select.input, textarea.input {
  width: 100%; min-height: 46px; padding: 11px 14px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); font-size: 15px;
}
textarea.input { min-height: 76px; resize: vertical; }
.input::placeholder { color: #6f6a60; }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, .18); }

.gold-text {
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.muted { color: var(--muted); }

#toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px);
  background: #f5f0e6; color: #14110a; font-weight: 600; font-size: 13.5px;
  padding: 11px 18px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  z-index: 60; max-width: calc(100vw - 32px); text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- efectos compartidos (tienda y panel); el código está en js/fx.js ---------- */
/* fondo: resplandor dorado que se mueve despacio */
body::before {
  content: ''; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 35% at 15% 12%, rgba(212, 175, 55, .11), transparent 70%),
    radial-gradient(35% 30% at 88% 62%, rgba(212, 175, 55, .07), transparent 70%);
  animation: drift 22s ease-in-out infinite alternate;
}
/* barra de progreso de scroll */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 25; pointer-events: none;
  background: var(--gold-grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}
/* aparición al hacer scroll */
.reveal {
  opacity: 0; translate: 0 28px;
  transition: opacity .6s ease var(--d, 0ms), translate .75s var(--ease) var(--d, 0ms);
}
.reveal.in { opacity: 1; translate: 0 0; }
.instant .reveal { opacity: 1; translate: none; transition: none; }
/* reflejo que sigue al puntero en los elementos con data-tilt */
.glare {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 236, 170, .26), transparent 55%);
}
/* botón dorado con brillo que cruza */
.btn.gold { position: relative; overflow: hidden; }
.btn.gold::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg);
  transition: left .7s ease;
}
.btn.gold:hover::after { left: 130%; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; translate: 0 18px; } }
@keyframes flip-in { from { opacity: 0; transform: perspective(1400px) rotateX(12deg) translateY(50px) scale(.93); } }
@keyframes drift { to { transform: translate3d(4%, 3%, 0) scale(1.12); } }
@keyframes pop { from { transform: scale(0) rotate(-30deg); opacity: 0; } }
@keyframes shake { 25% { translate: -5px 0; } 50% { translate: 5px 0; } 75% { translate: -3px 0; } }
@keyframes bump { 40% { transform: scale(1.5); } }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
