/* Tapetes Montmeló — carta web */
:root {
  --bg: #43464c;
  --bg-dark: #3a3d43;
  --green: #3aa32f;
  --green-soft: rgba(58, 163, 47, 0.16);
  --burgundy: #7b2026;
  --burgundy-soft: rgba(123, 32, 38, 0.35);
  --text: #f5f2ec;
  --text-dim: #cfccc4;
  --heading-font: 'Caveat', cursive;
  --body-font: 'Poppins', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  line-height: 1.5;
  min-height: 100vh;
}

/* --- hojas tropicales decorativas --- */
.leaves {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.leaf {
  position: absolute;
  opacity: 0.9;
}
.leaf svg { display: block; }
.leaf.green { color: var(--green); }
.leaf.burgundy { color: var(--burgundy); }

/* --- cabecera --- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 1rem;
  background: rgba(58, 61, 67, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar .logo { height: 42px; width: auto; }
.flags { display: flex; gap: 0.45rem; }
.flag {
  display: inline-block;
  width: 34px;
  height: 24px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.flag:hover { transform: scale(1.12); box-shadow: 0 0 0 2px var(--green); }
.flag.active { box-shadow: 0 0 0 2px var(--green); }
.flag svg { display: block; width: 100%; height: 100%; }

/* --- portada / selector de idioma --- */
.home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem;
}
.home .logo-big { width: min(420px, 82vw); height: auto; margin-bottom: 0.75rem; }
.home .tagline {
  font-family: var(--heading-font);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  color: var(--text-dim);
  margin-bottom: 2.5rem;
}
.lang-picker h2 {
  font-family: var(--heading-font);
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  margin-bottom: 1.5rem;
}
.lang-picker .buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: min(340px, 88vw);
}
.btn-lang {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.95rem 1.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 500;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.btn-lang:hover { background: var(--green-soft); border-color: var(--green); transform: translateY(-2px); }
.btn-lang .flag { width: 40px; height: 28px; flex: none; }
.home-footer { margin-top: 3rem; font-size: 0.85rem; color: var(--text-dim); }
.home-footer a { color: inherit; text-decoration: none; }

/* --- contenido de la carta --- */
.menu-wrap { max-width: 680px; margin: 0 auto; padding: 1.5rem 1.1rem 3rem; }
.hero { text-align: center; margin-bottom: 2rem; }
.hero img { width: min(320px, 70vw); height: auto; }
.hero p {
  font-family: var(--heading-font);
  font-size: 1.7rem;
  color: var(--text-dim);
  margin-top: 0.4rem;
}

section.category { margin-bottom: 2.6rem; scroll-margin-top: 76px; }
.cat-header { text-align: center; margin-bottom: 1.2rem; }
.cat-header h2 {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: clamp(2rem, 7vw, 2.7rem);
  line-height: 1.05;
}
.cat-header .subtitle { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin-top: 0.3rem; }
.cat-header::after {
  content: '';
  display: block;
  width: 130px;
  height: 2px;
  background: var(--text);
  opacity: 0.85;
  margin: 0.55rem auto 0;
}

ul.items { list-style: none; }
ul.items li { padding: 0.45rem 0; }
.item-row { display: flex; align-items: baseline; gap: 0.6rem; }
.item-name { font-weight: 600; }
.item-dots {
  flex: 1;
  border-bottom: 1px dotted rgba(245, 242, 236, 0.35);
  transform: translateY(-4px);
}
.price {
  font-weight: 700;
  white-space: nowrap;
  color: var(--text);
}
.item-desc { font-size: 0.86rem; color: var(--text-dim); max-width: 46ch; }

/* columnas peq./gran. */
.cols-header {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1.1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
}
.cols-header span:last-child, .cols-header span:nth-child(2) { width: 62px; text-align: right; font-weight: 600; }
li.dual .item-row { display: grid; grid-template-columns: 1fr 62px 62px; gap: 1.1rem; align-items: baseline; }
li.dual .price-col { text-align: right; font-weight: 700; white-space: nowrap; }
li.dual .price-col.single { grid-column: 2 / -1; }
li.dual .item-desc { grid-column: 1 / -1; }

/* oferta vermut */
.offer-box {
  background: var(--burgundy-soft);
  border: 2px solid var(--burgundy);
  border-radius: 14px;
  padding: 1.4rem 1.2rem;
  text-align: center;
}
.offer-lines { list-style: none; font-weight: 600; font-size: 1.02rem; }
.offer-plus { font-size: 1.5rem; font-weight: 700; margin: 0.5rem 0; }
.offer-drinks { font-size: 1.35rem; font-weight: 700; letter-spacing: 0.04em; }
.offer-price {
  font-family: var(--heading-font);
  font-size: clamp(2.6rem, 9vw, 3.4rem);
  font-weight: 700;
  margin-top: 0.4rem;
}
.offer-note { font-size: 0.85rem; color: var(--text-dim); margin-top: 0.2rem; }

/* pie */
footer.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 1rem;
  padding: 1.6rem 1rem 2.4rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}
footer .socials { display: flex; justify-content: center; gap: 1.4rem; margin-bottom: 0.9rem; }
footer .socials a { color: var(--text); opacity: 0.9; transition: opacity 0.15s ease, color 0.15s ease; }
footer .socials a:hover { opacity: 1; color: var(--green); }
footer .socials svg { width: 22px; height: 22px; vertical-align: middle; }
footer a { color: inherit; }

@media (max-width: 400px) {
  li.dual .item-row { grid-template-columns: 1fr 54px 54px; gap: 0.7rem; }
  .cols-header { gap: 0.7rem; }
  .cols-header span:last-child, .cols-header span:nth-child(2) { width: 54px; }
}
