/* =====================================================
   CARTA DIGITAL — TU.LUM RESTAURANT
   Mobile-first, browsable, fast.
   ===================================================== */

body.carta-page {
  background: #ffffff;
  color: var(--ink);
  min-height: 100svh;
}

/* Hide the main site nav/drawer on the carta page — its own header */
body.carta-page .nav,
body.carta-page .nav-drawer,
body.carta-page .cursor-dot,
body.carta-page .cursor-ring {
  display: none !important;
}

/* ============== HEADER ============== */
.cp-nav {
  position: sticky; top: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(11, 10, 8, 0.08);
}
.cp-nav__back, .cp-nav__share {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.3s ease;
}
.cp-nav__back svg, .cp-nav__share svg { width: 16px; height: 16px; }
.cp-nav__back:hover, .cp-nav__share:hover { background: rgba(11,10,8,0.06); }
.cp-nav__brand img { height: 48px; width: auto; display: block; }
.cp-nav__share span { display: none; }

/* ============== INTRO ============== */
.cp-intro {
  padding: 56px 24px 32px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.cp-intro__eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 18px;
}
.cp-intro__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.cp-intro__title em { font-style: normal; color: var(--gold-deep); font-weight: 700; }
.cp-intro__sub {
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.75;
  max-width: 560px;
  margin: 0 auto;
}

/* ============== MENU SWITCHER (tabs) ============== */
.cp-menubar {
  position: sticky;
  top: 76px;
  z-index: 90;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(11, 10, 8, 0.08);
  padding: 12px 0 0;
}
.cp-menubar__inner {
  display: flex;
  gap: 4px;
  padding: 0 20px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  max-width: 920px;
  margin: 0 auto;
}
.cp-menubar__inner::-webkit-scrollbar { display: none; }
.cp-menutab {
  flex-shrink: 0;
  padding: 10px 16px;
  border: 1px solid rgba(11, 10, 8, 0.15);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}
.cp-menutab:hover { border-color: var(--ink); }
.cp-menutab.is-on {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}

/* ============== FILTERS ============== */
.cp-filters {
  background: #fafafa;
  border-bottom: 1px solid rgba(11, 10, 8, 0.06);
  padding: 16px 0;
}
.cp-filters__inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cp-search {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: #f3f3f3;
  border-radius: 999px;
  color: var(--ink);
}
.cp-search svg { width: 16px; height: 16px; opacity: 0.5; flex-shrink: 0; }
.cp-search input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: var(--f-sans);
  font-size: 15px;
  color: var(--ink);
  outline: none;
}
.cp-search input::placeholder { color: rgba(11,10,8,0.4); }

.cp-chips {
  display: flex; gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.cp-chips::-webkit-scrollbar { display: none; }
.cp-chip {
  flex-shrink: 0;
  padding: 7px 14px;
  border: 1px solid rgba(11, 10, 8, 0.12);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
}
.cp-chip:hover { border-color: var(--ink); }
.cp-chip.is-on {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  font-weight: 600;
}

/* ============== JUMPBAR ============== */
.cp-jumpbar {
  position: sticky;
  top: 140px;
  z-index: 80;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(11, 10, 8, 0.06);
}
.cp-jumpbar__inner {
  display: flex;
  gap: 28px;
  padding: 14px 20px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 920px;
  margin: 0 auto;
}
.cp-jumpbar__inner::-webkit-scrollbar { display: none; }
.cp-jumpbar a {
  flex-shrink: 0;
  font-family: var(--f-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.55;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: opacity 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}
.cp-jumpbar a:hover, .cp-jumpbar a.is-active {
  opacity: 1;
  border-bottom-color: var(--gold);
}
.cp-jumpbar a .cp-jumpbar__num {
  color: var(--gold-deep);
  font-weight: 700;
  margin-right: 6px;
  letter-spacing: 0;
}

/* ============== MENU ============== */
.cp-menu {
  max-width: 920px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}
.cp-cat {
  margin-bottom: 64px;
  scroll-margin-top: 220px;
}
.cp-cat:last-child { margin-bottom: 0; }
.cp-cat.is-hidden { display: none; }

.cp-cat__head {
  display: flex; align-items: baseline; gap: 16px;
  padding: 24px 0 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(11, 10, 8, 0.12);
}
.cp-cat__num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
}
.cp-cat__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 0;
  flex: 1;
  line-height: 1;
}
.cp-cat__note {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 500;
  text-align: right;
  line-height: 1.4;
}
.cp-cat__foot {
  margin-top: 24px;
  font-size: 13px;
  color: var(--stone);
  font-style: italic;
  text-align: center;
}

/* ============== ITEMS ============== */
.cp-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cp-items--compact { gap: 0; }
.cp-item {
  display: flex; gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(11, 10, 8, 0.06);
  transition: opacity 0.25s ease;
}
.cp-item.is-hidden { display: none; }
.cp-item:last-child { border-bottom: 0; }

.cp-item__thumb {
  flex-shrink: 0;
  width: 88px; height: 88px;
  border-radius: 6px;
  overflow: hidden;
  background: #f3f3f3;
}
.cp-item__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.cp-item:hover .cp-item__thumb img { transform: scale(1.08); }

.cp-item__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cp-item__head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px;
}
.cp-item__head h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.005em;
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
  flex: 1;
  min-width: 0;
}
.cp-item__head .cp-light { color: var(--stone); font-weight: 400; font-size: 13px; }
.cp-item__price {
  flex-shrink: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--gold-deep);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.cp-item__price small {
  font-size: 11px;
  margin-left: 1px;
  font-weight: 600;
  opacity: 0.8;
}
.cp-item__body > p {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
  opacity: 0.72;
}
.cp-item__meta {
  display: flex; flex-wrap: wrap; gap: 5px;
  margin-top: 4px;
}
.cp-bdg {
  font-family: var(--f-sans);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(11, 10, 8, 0.06);
  color: var(--ink);
  opacity: 0.7;
}
.cp-bdg--sig {
  background: rgba(184, 148, 90, 0.18);
  color: var(--gold-deep);
  opacity: 1;
}
.cp-bdg--veg {
  background: rgba(80, 130, 70, 0.12);
  color: #4f6f3f;
  opacity: 1;
}

/* Compact items (wines) — no thumb */
.cp-item--compact { gap: 0; }
.cp-item--compact .cp-item__thumb { display: none; }
.cp-item--compact .cp-item__body { gap: 0; }
.cp-item--compact .cp-item__head h3 { font-size: 14.5px; }

/* Menu degustación cards — centered */
.cp-item--menu {
  background: #fafafa;
  border: 1px solid rgba(11,10,8,0.08);
  border-radius: 12px;
  padding: 32px 24px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(11,10,8,0.08);
}
.cp-item--menu .cp-item__thumb { display: none; }
.cp-item__body--center {
  align-items: center;
  text-align: center;
  gap: 12px;
}
.cp-item__kicker {
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
}
.cp-item__body--center h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(22px, 3.5vw, 32px);
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 0;
}
.cp-item__meta--center { justify-content: center; }
.cp-item__price--big {
  font-size: 36px !important;
  margin: 12px 0;
}
.cp-item__notes {
  font-size: 12px !important;
  font-style: italic;
  opacity: 0.6 !important;
}

/* ============== EMPTY STATE ============== */
.cp-empty {
  max-width: 480px;
  margin: 60px auto;
  padding: 60px 24px;
  text-align: center;
}
.cp-empty h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 24px;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.cp-empty p { font-size: 14px; opacity: 0.7; margin: 0 0 24px; }

/* ============== FOOTER ============== */
.cp-foot {
  max-width: 920px;
  margin: 0 auto;
  padding: 56px 20px 100px;
  text-align: center;
  border-top: 1px solid rgba(11, 10, 8, 0.08);
}
.cp-foot__legal p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--stone);
  margin: 0 0 6px;
  font-style: italic;
}
.cp-foot__cta {
  display: flex; gap: 12px; justify-content: center;
  margin: 32px 0;
  flex-wrap: wrap;
}
.cp-foot__sig {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  opacity: 0.55;
  margin: 0;
}

/* ============== TO TOP ============== */
.cp-totop {
  position: fixed;
  right: 20px; bottom: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bone);
  border: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
  z-index: 90;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.cp-totop.is-on { opacity: 1; transform: translateY(0); }
.cp-totop:hover { background: var(--gold-deep); }
.cp-totop svg { width: 18px; height: 18px; }

/* ============== RESPONSIVE ============== */
@media (min-width: 720px) {
  .cp-nav { padding: 16px 32px; }
  .cp-nav__share span { display: inline; }
  .cp-intro { padding: 80px 32px 48px; }
  .cp-filters__inner { flex-direction: row; align-items: center; }
  .cp-search { flex: 1; max-width: 320px; }
  .cp-chips { flex: 1; }
  .cp-item__thumb { width: 120px; height: 120px; }
  .cp-item__head h3 { font-size: 18px; }
  .cp-item__price { font-size: 18px; }
  .cp-item__body > p { font-size: 14px; }
}

@media (max-width: 480px) {
  .cp-intro { padding: 40px 20px 24px; }
  .cp-cat__head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .cp-cat__note { text-align: left; }
  .cp-item { padding: 16px 0; gap: 12px; }
  .cp-item__thumb { width: 72px; height: 72px; }
  .cp-item__price--big { font-size: 28px !important; }
}
