:root {
  --bg: #f0eee9;
  --card-bg: #FAF6E9;
  --blue: #1E4E9C;
  --blue-dark: #16407f;
  --blue-soft: #dbe6f6;
  --ink: #2b2919;
  --muted: #77704f;
  --muted-2: #6b6450;
  --tan: #8a8265;
  --border: #e7dfc4;
  --border-2: #d8d0b2;
  --gold: #C9A45C;
  --burdeos: #4A181E;
  --burdeos-dark: #3A1218;
  --cream: #FBF3E4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--ink);
}

img { max-width: 100%; display: block; }

/* ---------- Header ---------- */

.topbar {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar::before {
  content: "";
  display: block;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--blue) 0 14px, var(--card-bg) 14px 20px);
}

.topbar-row {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 8px;
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand-logo {
  width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid var(--blue); overflow: hidden; background: #fff; flex: none;
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }

.brand-name {
  font-family: 'Pacifico', cursive;
  font-size: 28px;
  color: var(--blue);
  line-height: 1.1;
}
.brand-sub {
  font-size: 11px; font-weight: 800; letter-spacing: 2px;
  color: var(--tan); text-transform: uppercase;
}

.lang-toggle {
  display: flex; background: #fff; border: 1.5px solid var(--blue);
  border-radius: 999px; overflow: hidden; flex: none;
}
.lang-btn {
  border: 0; background: transparent; cursor: pointer;
  font: 800 13px 'Nunito', sans-serif; padding: 7px 14px; color: var(--blue);
}
.lang-btn.active { background: var(--blue); color: #fff; }

.topbar-info {
  max-width: 900px; margin: 0 auto;
  padding: 0 20px 14px;
  font-size: 12px; font-weight: 600; color: var(--muted-2);
  display: flex; gap: 10px; flex-wrap: wrap;
}
.topbar-info .dot { color: var(--tan); }

.pills {
  max-width: 900px; margin: 0 auto;
  display: flex; gap: 8px; overflow-x: auto;
  padding: 4px 20px 16px;
  scrollbar-width: none;
}
.pills::-webkit-scrollbar { display: none; }

.pill {
  padding: 8px 15px; border-radius: 999px; white-space: nowrap;
  font-size: 12.5px; font-weight: 800; cursor: pointer; border: 1.5px solid var(--border-2);
  background: transparent; color: var(--muted-2); flex: none;
}
.pill.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- Sections ---------- */

main { max-width: 900px; margin: 0 auto; padding: 8px 20px 40px; }

.section { padding: 22px 0 6px; scroll-margin-top: 190px; }

.section-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 4px;
}
.section-head .diamond {
  width: 7px; height: 7px; background: var(--blue); transform: rotate(45deg); flex: none;
}
.section-title {
  font-size: 17px; font-weight: 900; letter-spacing: 2px;
  color: var(--blue); text-transform: uppercase;
}
.section-head .rule { flex: 1; height: 1.5px; background: var(--border-2); }
.section-note {
  font-size: 11px; color: var(--tan); font-weight: 700; white-space: nowrap;
}
.section-note-line {
  font-size: 12.5px; color: var(--muted); margin: 2px 0 12px; line-height: 1.4;
}

.hero-image {
  width: 100%; height: 200px; object-fit: cover; border-radius: 16px; margin-bottom: 14px;
}

/* Promo banner */
.promo-banner {
  margin: 8px 0 20px; padding: 14px 16px; border-radius: 14px;
  background: var(--blue); color: #fff; display: flex; align-items: center; gap: 12px;
  cursor: pointer;
}
.promo-banner .icon { font-size: 24px; }
.promo-banner .title { font-weight: 900; font-size: 14px; }
.promo-banner .subtitle { font-size: 11.5px; opacity: .85; }
.promo-banner .go {
  font-size: 12px; font-weight: 800; background: #fff; color: var(--blue);
  border-radius: 999px; padding: 5px 12px; flex: none;
}

/* Item grid: single column on narrow, two columns on wide screens */
.items-grid {
  display: grid; grid-template-columns: 1fr; gap: 0;
}
@media (min-width: 640px) {
  .items-grid { grid-template-columns: 1fr 1fr; gap: 0 24px; }
}

.item-row {
  display: flex; gap: 12px; align-items: center; padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.item-row.no-image .item-thumb { display: none; }

.item-thumb {
  width: 62px; height: 62px; border-radius: 10px; object-fit: cover; flex: none;
  background: var(--blue-soft);
}
.item-body { flex: 1; min-width: 0; }
.item-name { font-weight: 800; font-size: 14.5px; color: var(--ink); }
.item-desc { font-size: 12px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.item-inactive { opacity: .45; }
.item-inactive .item-name::after {
  content: " (agotado)"; font-weight: 700; font-size: 11px; color: #b23; text-transform: none;
}
:root[lang-current="en"] .item-inactive .item-name::after { content: " (sold out)"; }

.item-price {
  flex: none; text-align: right; font-weight: 900; font-size: 13.5px; color: var(--blue);
}
.item-price .mini { display: block; font-size: 10.5px; font-weight: 700; color: var(--tan); }

/* ---------- Wine section: burdeos / dorado (1c) ---------- */

.section-vinos {
  background: var(--burdeos); border-radius: 20px; padding: 24px 20px; color: var(--cream);
  margin-top: 10px;
}
.section-vinos .section-title { color: var(--gold); }
.section-vinos .section-head .diamond { background: var(--gold); }
.section-vinos .section-head .rule { background: rgba(201,164,92,.35); }
.section-vinos .section-note-line { color: #e8d6b4; }
.section-vinos .wine-empty {
  margin-top: 10px; padding: 16px; border-radius: 14px; border: 1.5px solid var(--gold);
  color: #e8d6b4; font-size: 13px; text-align: center; font-style: italic;
}
.section-vinos .item-row { border-color: rgba(201,164,92,.2); }
.section-vinos .item-name { color: var(--cream); }
.section-vinos .item-desc { color: #d8b98a; }
.section-vinos .item-price { color: var(--gold); }
.section-vinos .item-thumb { border: 1.5px solid var(--gold); border-radius: 50%; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--blue); color: #fff; padding: 22px 20px 26px;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
}
.footer-logo {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: #fff; border: 2px solid #fff;
}
.footer-info { font-size: 12px; line-height: 1.6; opacity: .9; }
.footer-social { display: flex; gap: 10px; margin-top: 4px; }
.footer-social a {
  width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800;
  color: #fff; text-decoration: none;
}

.loading, .error-msg {
  text-align: center; padding: 60px 20px; color: var(--muted);
  font-size: 14px;
}
