:root {
  --ink: #1a1714;
  --ink-soft: #4a433c;
  --paper: #efe6d6;
  --paper-2: #e4d8c4;
  --steel: #3e4a50;
  --rust: #b8431f;
  --rust-deep: #8c3014;
  --cream: #f7f1e6;
  --line: rgba(26, 23, 20, 0.12);
  --shadow: 0 24px 50px -28px rgba(26, 23, 20, 0.5);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Figtree", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, .wordmark, .price {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 560;
  letter-spacing: -0.03em;
}
.wrap { width: min(1080px, calc(100% - 32px)); margin-inline: auto; }
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.wordmark { text-decoration: none; font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.mark {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--rust); color: #fff;
  display: grid; place-items: center;
  font-family: Fraunces, serif; font-size: 0.95rem;
}
.nav a.ghost { margin-left: auto; font-size: 0.88rem; text-decoration: none; color: var(--ink-soft); }
.demo-flag {
  background: var(--ink); color: var(--paper);
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  text-align: center; padding: 8px 12px;
}
.hero { padding: 28px 0 12px; display: grid; gap: 22px; }
.kicker { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rust-deep); font-weight: 700; }
h1 { font-size: clamp(2.4rem, 8vw, 4.4rem); line-height: 0.95; max-width: 12ch; }
.lede { margin-top: 12px; max-width: 38ch; color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; border-radius: 999px; padding: 12px 16px;
  font-weight: 650; border: 1px solid transparent; font-size: 0.95rem;
}
.btn-rust { background: var(--rust); color: #fff; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ghost { border-color: var(--line); background: transparent; }
.hero-visual {
  border-radius: 24px; overflow: hidden; min-height: 240px;
  background:
    linear-gradient(160deg, rgba(26,23,20,0.15), rgba(26,23,20,0.55)),
    repeating-linear-gradient(90deg, #6d5846 0 18px, #5c4a3b 18px 20px);
  box-shadow: var(--shadow);
  position: relative;
  color: #f7f1e6;
  padding: 22px;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 320px;
}
.hero-visual strong { font-family: Fraunces, serif; font-size: 1.8rem; letter-spacing: -0.03em; }
.shelf {
  position: absolute; inset: 18px 18px auto 18px;
  display: grid; gap: 8px;
}
.shelf span {
  height: 14px; border-radius: 3px; background: rgba(247,241,230,0.18);
}
.shelf span:nth-child(2) { width: 72%; background: #c47a45; }
.shelf span:nth-child(3) { width: 48%; }
section { padding: 36px 0; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.05; margin: 6px 0 14px; max-width: 16ch; }
.ofertas { display: grid; gap: 12px; }
.oferta {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.oferta img { width: 100%; height: auto; }
.oferta div { padding: 12px 14px 14px; }
.oferta p { color: var(--ink-soft); }
.empty {
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 22px;
  color: var(--ink-soft);
  background: var(--cream);
}
.cats { display: grid; gap: 10px; }
.cat {
  background: var(--cream);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--line);
}
.cat h3 { font-size: 1.05rem; margin-bottom: 4px; }
.cat p { color: var(--ink-soft); font-size: 0.95rem; }
.note { font-size: 0.88rem; color: var(--ink-soft); margin-top: 12px; }
.admin {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  display: grid; gap: 10px;
}
label { font-size: 0.82rem; font-weight: 700; }
input, textarea {
  width: 100%; font: inherit; font-size: 16px;
  padding: 11px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
}
textarea { min-height: 72px; }
.row { display: grid; gap: 8px; }
.foot { border-top: 1px solid var(--line); padding: 22px 0 80px; color: var(--ink-soft); font-size: 0.9rem; display: grid; gap: 6px; }
.wa {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  width: 56px; height: 56px; max-width: 56px; max-height: 56px;
  border-radius: 50%; background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; z-index: 30;
  box-shadow: 0 10px 24px -8px rgba(26,23,20,0.45);
  overflow: hidden;
}
.wa svg { width: 28px; height: 28px; display: block; }
@media (min-width: 800px) {
  .hero { grid-template-columns: 1.05fr 0.95fr; align-items: end; padding-top: 40px; }
  .ofertas, .cats { grid-template-columns: 1fr 1fr 1fr; }
  .wa { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ───────── Admin shell: tab bar + Ofertas tab (same structure as the Glow Room panel) ───────── */
[hidden] { display: none !important; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 14px; }
.tabs a {
  min-height: 44px; display: inline-flex; align-items: center;
  padding: 8px 16px; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 0.95rem;
}
.tabs a.is-active { background: var(--cream); border-color: var(--line); color: var(--ink); }
.panel { display: grid; gap: 14px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toolbar h2 { margin: 0; flex: 1; max-width: none; }
.admin h3 { font-size: 1.05rem; }
.admin .note.count { margin-top: -4px; }
.oferta-preview img { max-width: 220px; max-height: 220px; width: auto; border-radius: 12px; border: 1px solid var(--line); }
.tag {
  display: inline-block; margin-top: 6px;
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; background: var(--paper-2); color: var(--ink-soft);
}
.tag.tag-ok { background: var(--rust); color: #fff; }
.btn:disabled { opacity: 0.5; }
.toast {
  position: fixed; bottom: calc(16px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  max-width: calc(100% - 32px); text-align: center;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px;
  font-size: 0.9rem; display: none; z-index: 40;
}
.toast.show { display: block; }

.nav-admin{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.nav-admin .note{margin:0;font-size:.78rem;max-width:12rem;text-align:right;line-height:1.25}
