:root {
  --navy:        #0c1b33;
  --navy-card:   rgba(14,28,56,0.72);
  --gold:        #c8a84b;
  --gold-light:  #e2c97e;
  --gold-dim:    rgba(200,168,75,0.28);
  --gold-glow:   rgba(200,168,75,0.10);
  --teal:        #2e8b72;
  --teal-light:  #4db89a;
  --teal-dim:    rgba(46,139,114,0.18);
  --sand:        #f0e6cc;
  --sand-dim:    rgba(240,230,204,0.55);
  --sand-ghost:  rgba(240,230,204,0.22);
  --white:       #faf7f0;
  --rope:        repeating-linear-gradient(90deg,#b8943f 0px,#c8a84b 4px,#7a5c20 8px,#c8a84b 12px,#b8943f 16px);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html { font-size: 18.4px; } /* base 16px × 1.15 */

/* iOS Safari auto-detected links (tel, email, address) */
a { color: inherit; text-decoration: none; }

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  color: var(--sand);
  min-height: 100vh;
  overflow-x: hidden;
  background-color: #0d1e38;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 90% 50% at 50% -8%, rgba(17,55,110,0.8) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* ── HEADER ── */
header {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 44px 20px 28px;
  border-bottom: 1px solid var(--gold-dim);
}
header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--rope);
  opacity: 0.75;
}
.logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}
.logo-img {
  width: 175px;
  height: 175px;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 0 24px rgba(200,168,75,0.5)) drop-shadow(0 6px 18px rgba(0,0,0,0.75));
  transition: transform 0.4s ease, filter 0.4s ease;
}
.logo-img:hover {
  transform: scale(1.05) rotate(1.5deg);
  filter: drop-shadow(0 0 38px rgba(200,168,75,0.78)) drop-shadow(0 6px 24px rgba(0,0,0,0.85));
}
header .tagline {
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  color: var(--sand-ghost);
  text-transform: uppercase;
  font-weight: 400;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,23,46,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gold-dim);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
nav::-webkit-scrollbar { display: none; }
nav::after {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal) 35%, var(--gold) 65%, transparent);
  opacity: 0.35;
}
.nav-inner {
  display: inline-flex;
  min-width: 100%;
  justify-content: center;
  padding: 0 16px;
}
nav button {
  background: none;
  border: none;
  color: var(--sand-ghost);
  font-family: 'Jost', sans-serif;
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 18px 15px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.22s, border-color 0.22s;
}
nav button:hover { color: var(--sand); border-bottom-color: var(--teal); }
nav button.active { color: var(--gold); border-bottom-color: var(--gold); }

/* ── GLOBAL SEARCH ── */
.search-global {
  position: relative;
  z-index: 90;
  background: rgba(10,23,46,0.92);
  border-bottom: 1px solid var(--gold-dim);
  padding: 10px 20px;
}
.search-global input {
  width: 100%;
  max-width: 880px;
  display: block;
  margin: 0 auto;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--gold-dim);
  border-radius: 1px;
  padding: 10px 22px;
  color: var(--sand);
  font-family: 'Jost', sans-serif;
  font-size: 0.83rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  outline: none;
  transition: border-color 0.22s, box-shadow 0.22s;
}
.search-global input::placeholder { color: var(--sand-ghost); font-style: italic; }
.search-global input:focus {
  border-color: rgba(200,168,75,0.55);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

/* ── MAIN ── */
main {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px 100px;
}

/* ── SECTIONS ── */
.section {
  display: block;
  scroll-margin-top: 108px;
}
.section.hidden-by-search { display: none; }

/* ── CATEGORY TITLE ── */
.cat-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--gold-light);
  text-align: center;
  letter-spacing: 0.1em;
  margin: 50px 0 4px;
  text-shadow: 0 0 22px rgba(200,168,75,0.25);
}
.cat-title::after {
  content: '';
  display: block;
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  margin: 11px auto 0;
}
.cat-sub {
  font-size: 0.63rem;
  color: var(--teal-light);
  text-align: center;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 26px;
  opacity: 0.75;
}

/* ── ITEM (list format) ── */
.item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 22px;
  padding: 19px 0;
  border-bottom: 1px solid rgba(46,139,114,0.12);
  position: relative;
  transition: padding 0.2s;
}
.item:last-child { border-bottom: none; }
.item::before {
  content: '';
  position: absolute;
  left: -20px; right: -20px; top: 0; bottom: 0;
  background: var(--teal-dim);
  opacity: 0;
  border-radius: 2px;
  transition: opacity 0.2s;
  pointer-events: none;
}
.item:hover::before { opacity: 1; }
.item.hidden { display: none; }

.item-info { flex: 1; min-width: 0; }
.item-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.07em;
  color: var(--white);
  margin-bottom: 5px;
  text-transform: uppercase;
}
.item-desc {
  font-size: 0.88rem;
  color: var(--sand-dim);
  line-height: 1.65;
  font-style: italic;
  font-weight: 300;
}
.item-note {
  font-size: 0.8rem;
  color: var(--teal-light);
  font-style: italic;
  margin-top: 4px;
  opacity: 0.85;
}
.item-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
  padding-top: 3px;
}

/* ── BADGE ── */
.badge {
  display: inline-block;
  background: var(--teal-dim);
  border: 1px solid rgba(77,184,154,0.38);
  color: var(--teal-light);
  font-family: 'Jost', sans-serif;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 0;
  margin-left: 7px;
  vertical-align: middle;
}

/* ── SUBGROUP ── */
.subgroup-title {
  font-family: 'Jost', sans-serif;
  font-size: 0.63rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin: 32px 0 10px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.85;
}
.subgroup-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--teal-dim), transparent);
}

/* ── NOTE ── */
.note {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--sand-ghost);
  text-align: center;
  margin: 10px 0 20px;
  letter-spacing: 0.04em;
}

/* ── DRINK GRID ── */
.drink-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 13px;
  margin-bottom: 14px;
}
.drink-card {
  background: var(--navy-card);
  border: 1px solid var(--gold-dim);
  border-top: 2px solid rgba(46,139,114,0.35);
  padding: 16px 17px 14px;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.drink-card:hover {
  transform: translateY(-3px);
  border-color: rgba(200,168,75,0.45);
  box-shadow: 0 10px 28px rgba(0,0,0,0.4);
}
.drink-card.hidden { display: none; }
.drink-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.07em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 5px;
}
.drink-sub {
  font-size: 0.78rem;
  color: var(--sand-ghost);
  font-style: italic;
  margin-bottom: 9px;
  line-height: 1.5;
}
.drink-price {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold);
  font-size: 1.15rem;
  font-weight: 600;
}

/* ── SPIRITS (soft drinks) ── */
.spirits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.spirit-item {
  background: rgba(14,28,56,0.5);
  border: 1px solid rgba(46,139,114,0.1);
  padding: 11px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.2s;
}
.spirit-item.hidden { display: none; }
.spirit-item:hover { border-color: var(--gold-dim); }
.spirit-name { font-size: 0.86rem; color: var(--sand-dim); font-weight: 300; }
.spirit-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
  padding-left: 10px;
}

/* ── WEEKEND BANNER ── */
.weekend-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(90deg, rgba(200,168,75,0.07), transparent);
  border: 1px solid var(--gold-dim);
  padding: 14px 18px;
  margin: 32px 0 14px;
}
.weekend-banner-icon { font-size: 20px; }
.weekend-banner h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--gold-light);
  font-weight: 600;
  letter-spacing: 0.06em;
}
.weekend-banner p {
  font-size: 0.72rem;
  color: var(--sand-ghost);
  margin-top: 2px;
  font-style: italic;
}

/* ── COMPARTIR CARD ── */
.compartir-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--navy-card);
  border: 1px solid var(--gold-dim);
  border-top: 2px solid rgba(46,139,114,0.35);
  padding: 20px 22px;
  margin-bottom: 12px;
  transition: transform 0.22s, box-shadow 0.22s;
}
.compartir-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.4);
}
.compartir-emoji { font-size: 40px; flex-shrink: 0; }
.compartir-body { flex: 1; }
.compartir-badge {
  display: inline-block;
  background: var(--teal-dim);
  border: 1px solid rgba(77,184,154,0.38);
  color: var(--teal-light);
  font-family: 'Jost', sans-serif;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 8px;
  margin-bottom: 8px;
}
.compartir-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 5px;
}
.compartir-desc {
  font-size: 0.78rem;
  color: var(--sand-dim);
  font-style: italic;
  line-height: 1.6;
}
.compartir-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── LOADING ── */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  gap: 14px;
  color: var(--sand-ghost);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.spinner {
  width: 32px; height: 32px;
  border: 1px solid var(--gold-dim);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 32px 20px;
  border-top: 1px solid var(--gold-dim);
  color: var(--sand-ghost);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
footer::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold-dim);
  margin: 0 auto 16px;
}

/* ── RESPONSIVE ── */
@media (max-width: 520px) {
  .logo-img { width: 145px; height: 145px; }
  .nav-inner { justify-content: flex-start; }
  .drink-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .spirits-grid { grid-template-columns: 1fr; }
  .compartir-card { flex-direction: column; text-align: center; }
  .compartir-emoji { font-size: 32px; }

  .cat-title       { font-size: 1.5rem; }
  .item-name       { font-size: 1.25rem; }
  .item-desc       { font-size: 0.95rem; }
  .item-note       { font-size: 0.86rem; }
  .item-price      { font-size: 1.4rem; }
  .drink-name      { font-size: 1.1rem; }
  .drink-sub       { font-size: 0.83rem; }
  .drink-price     { font-size: 1.2rem; }
  .spirit-name     { font-size: 0.92rem; }
  .spirit-price    { font-size: 1.05rem; }
  .search-global input { font-size: 1rem; padding: 12px 18px; }
  .item            { padding: 22px 0; gap: 16px; }
}
