:root {
  --bg: #0b0b0c;
  --bg-2: #141416;
  --card: #18181b;
  --line: #2a2a2f;
  --text: #f3efe6;
  --muted: #a39e93;
  --gold: #d4af37;
  --gold-2: #f0d27a;
  --danger: #e5484d;
  --ok: #3fb950;
  --radius: 16px;
  --nav-h: 56px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--gold-2); }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.gold { color: var(--gold); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 700; cursor: pointer;
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1405; text-decoration: none;
  transition: transform .1s ease, filter .2s ease;
}
.btn:active { transform: scale(.97); }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.6); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid #5a2326; }

/* Portada */
.hero {
  min-height: 92vh; min-height: 92svh; display: flex; flex-direction: column; justify-content: center;
  text-align: center; padding: 48px 20px 32px; position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212,175,55,.22), transparent 60%),
    radial-gradient(circle at 85% 90%, rgba(212,175,55,.08), transparent 40%),
    var(--bg);
}
.hero::after {
  content: "改善"; position: absolute; right: -10px; bottom: -30px; font-size: 13rem; font-weight: 900;
  color: rgba(212,175,55,.05); pointer-events: none; line-height: 1;
}
.hero .kanji { font-size: 1rem; letter-spacing: .6em; color: var(--gold); margin-bottom: 6px; }
.hero h1 {
  font-size: clamp(2.6rem, 11vw, 5rem); margin: 0; letter-spacing: .02em; line-height: 1.05;
  background: linear-gradient(180deg, #fff6d6, var(--gold) 70%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .tagline { font-size: clamp(1.1rem, 4.5vw, 1.4rem); color: var(--text); margin: 14px 0 28px; }
.hero .btn { font-size: 1.1rem; padding: 15px 34px; align-self: center; }
.status-badge {
  display: inline-flex; align-items: center; gap: 8px; align-self: center; margin-bottom: 18px;
  padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
}
.status-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status-badge.open::before { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.status-badge.closed::before { background: var(--danger); }
.info-grid { display: grid; gap: 10px; margin: 34px auto 0; max-width: 720px; grid-template-columns: 1fr; text-align: left; }
@media (min-width: 640px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }
.info { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; gap: 12px; align-items: center; }
.info .ico { font-size: 1.5rem; }
.info b { display: block; font-size: .78rem; color: var(--gold); text-transform: uppercase; letter-spacing: .06em; }
.info span { font-size: .95rem; }
.hero .address { margin-top: 16px; color: var(--muted); font-size: .9rem; }

/* Navegación de categorías */
.cat-nav {
  position: sticky; top: 0; z-index: 20; background: rgba(11,11,12,.92); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.cat-nav .scroller { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; height: var(--nav-h); scrollbar-width: none; max-width: 1080px; margin: 0 auto; }
.cat-nav .scroller::-webkit-scrollbar { display: none; }
.cat-nav a {
  flex: 0 0 auto; padding: 7px 16px; border-radius: 999px; text-decoration: none; color: var(--muted);
  border: 1px solid var(--line); font-weight: 600; font-size: .92rem; white-space: nowrap;
}
.cat-nav a.active { color: #1a1405; background: var(--gold); border-color: var(--gold); }

/* Carta */
.notice { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(229,72,77,.1); border: 1px solid #5a2326; font-size: .92rem; }
.category { padding-top: 26px; }
.category h2 { font-size: 1.5rem; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.category h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); opacity: .5; }
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.product { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.product .photo { aspect-ratio: 4 / 3; background: var(--bg-2); position: relative; }
.product .photo img { width: 100%; height: 100%; object-fit: cover; }
.product.sold .photo img { filter: grayscale(1) brightness(.5); }
.product .sold-tag {
  position: absolute; top: 12px; left: 12px; background: var(--danger); color: #fff; font-weight: 700;
  font-size: .8rem; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em;
}
.product .body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product h3 { margin: 0; font-size: 1.08rem; }
.product p { margin: 0; color: var(--muted); font-size: .92rem; flex: 1; }
.product .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.price { color: var(--gold-2); font-weight: 800; font-size: 1.2rem; }

/* Pie */
footer { margin-top: 48px; padding: 32px 0 140px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; text-align: center; }
footer h3 { color: var(--gold); margin: 0 0 8px; }
.socials { display: flex; justify-content: center; gap: 10px; margin: 16px 0; flex-wrap: wrap; }
.socials a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
footer .small { font-size: .8rem; opacity: .7; }

/* Flotantes */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.45); transition: bottom .25s ease;
}
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
body.has-cart .wa-float { bottom: 92px; }
.cart-bar {
  position: fixed; left: 12px; right: 12px; bottom: 14px; z-index: 39; max-width: 620px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 18px;
  border-radius: 999px; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1405;
  border: 0; font-weight: 700; cursor: pointer; box-shadow: 0 8px 30px rgba(0,0,0,.55);
}
.cart-bar .count { background: #1a1405; color: var(--gold-2); border-radius: 999px; min-width: 28px; height: 28px; display: inline-grid; place-items: center; padding: 0 8px; margin-right: 8px; }
.cart-bar .go { background: rgba(0,0,0,.15); padding: 6px 14px; border-radius: 999px; }

/* Hojas / modales */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 720px) { .overlay { align-items: center; } }
.sheet {
  background: var(--bg-2); width: 100%; max-width: 560px; max-height: 92vh; max-height: 92svh; overflow-y: auto;
  border-radius: 22px 22px 0 0; border: 1px solid var(--line); border-bottom: 0; animation: up .22s ease;
}
@media (min-width: 720px) { .sheet { border-radius: 22px; border-bottom: 1px solid var(--line); } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-head { position: sticky; top: 0; background: var(--bg-2); padding: 16px 18px 10px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); z-index: 2; }
.sheet-head h3 { margin: 0; font-size: 1.15rem; }
.sheet-body { padding: 16px 18px; }
.sheet-foot { position: sticky; bottom: 0; background: var(--bg-2); padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.close-x { background: transparent; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 8px; }
.sheet .hero-img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }

fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend, .label { font-weight: 700; margin-bottom: 8px; display: block; font-size: .95rem; }
legend small, .label small { color: var(--muted); font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; font-size: .92rem; background: var(--card); }
.chip input:checked + span { background: rgba(212,175,55,.16); border-color: var(--gold); color: var(--gold-2); }
.chip input:focus-visible + span { outline: 2px solid var(--gold); }

input[type=text], input[type=tel], input[type=number], input[type=password], input[type=url], input[type=time], select, textarea {
  width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
textarea { resize: vertical; min-height: 70px; }
.field { margin-bottom: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { background: transparent; border: 0; width: 36px; height: 36px; cursor: pointer; font-size: 1.15rem; color: var(--gold-2); }
.qty span { min-width: 28px; text-align: center; font-weight: 700; }

.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }
.cart-item .info2 { flex: 1; min-width: 0; }
.cart-item h4 { margin: 0 0 2px; font-size: .98rem; }
.cart-item .opts { color: var(--muted); font-size: .82rem; }
.cart-item .line { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .82rem; padding: 0; }
.totals { margin-top: 14px; }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; color: var(--muted); }
.totals .grand { color: var(--text); font-size: 1.2rem; font-weight: 800; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; }
.totals .grand span:last-child { color: var(--gold-2); }
.empty { text-align: center; color: var(--muted); padding: 30px 0; }
.error-msg { color: #ff8a8d; background: rgba(229,72,77,.1); border: 1px solid #5a2326; padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; font-size: .92rem; }
.success { text-align: center; padding: 10px 0 4px; }
.success .big { font-size: 3rem; }
.success .num { font-size: 1.8rem; font-weight: 900; color: var(--gold-2); letter-spacing: .04em; }

.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: #222; border: 1px solid var(--gold);
  color: var(--text); padding: 10px 18px; border-radius: 999px; z-index: 60; font-size: .92rem; box-shadow: 0 6px 20px rgba(0,0,0,.5);
  animation: up .2s ease;
}
