:root {
  --bg: #0f1210;
  --bg-elevated: #1a1f1c;
  --surface: #232a26;
  --text: #f2f4f1;
  --text-muted: #9aa69a;
  --accent: #e85d2c;
  --accent-soft: rgba(232, 93, 44, 0.15);
  --gold: #d4a853;
  --border: rgba(242, 244, 241, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --header-h: 64px;
  /* Fallback antes de que JS mida el header (banner + barra) */
  --header-sticky-offset: min(22rem, 48vw);
}

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

html {
  scroll-behavior: smooth;
  /* Anclas #bebidas, #menu, etc.: respetan header sticky completo */
  scroll-padding-top: var(--header-sticky-offset);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 18, 16, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-banner {
  display: block;
  width: 100%;
  border-bottom: 1px solid var(--border);
}

.header-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bar::before {
  top: -6px;
}

.nav-toggle-bar::after {
  top: 6px;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.85rem;
  align-items: center;
  justify-content: center;
}

.nav-list a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
}

.nav-list a:hover {
  color: var(--text);
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.cart-btn:hover {
  border-color: rgba(232, 93, 44, 0.45);
  background: var(--bg-elevated);
}

.cart-count {
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  display: inline-grid;
  place-items: center;
}

.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: center;
  padding: 3rem 1.25rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(232, 93, 44, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(212, 168, 83, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, #121815 100%);
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
}

.hero-content {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

.hero-tag {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #ffb899;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5vw, 3.35rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  max-width: 14ch;
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ff7a3d);
  color: #fff;
  box-shadow: 0 8px 28px rgba(232, 93, 44, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(232, 93, 44, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
}

.btn-block {
  width: 100%;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 520px;
  margin: 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--border);
}

.hero-stats dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 0.25rem;
}

.hero-stats dd {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
}

.trust-strip {
  border-block: 1px solid var(--border);
  background: var(--bg-elevated);
}

.trust-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.menu-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4rem 1.25rem 3rem;
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.5rem;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.menu-block {
  margin-bottom: 3rem;
  scroll-margin-top: 0;
}

.menu-category {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}

.menu-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.menu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s, transform 0.2s;
}

.menu-card:hover {
  border-color: rgba(232, 93, 44, 0.25);
  transform: translateY(-2px);
}

.menu-card-media {
  margin: -0.15rem -0.15rem 0.65rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}

.menu-card-thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.menu-card--with-img .menu-card-media {
  margin-top: -0.35rem;
}

.menu-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.menu-card h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.menu-card-desc {
  margin: 0;
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.menu-price {
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.menu-add {
  align-self: flex-start;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: none;
  background: var(--accent-soft);
  color: #ffb899;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.menu-add:hover {
  background: rgba(232, 93, 44, 0.35);
  color: #fff;
}

.location-section {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 4rem 1.25rem;
}

.location-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.location-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  margin: 0 0 1rem;
}

.location-copy > p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

.location-list {
  margin: 0 0 1.75rem;
  padding-left: 1.15rem;
  color: var(--text-muted);
}

.location-list li {
  margin-bottom: 0.35rem;
}

.location-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.location-card h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.location-card address {
  font-style: normal;
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.6;
}

.location-phone a {
  font-weight: 700;
  font-size: 1.15rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.25rem;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo-wrap {
  margin: 0 auto 1.25rem;
  line-height: 0;
}

.footer-logo {
  display: block;
  width: min(100%, 400px);
  height: auto;
  margin: 0 auto;
}

.footer-brand {
  margin: 0 0 0.35rem;
  font-weight: 700;
}

.footer-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  visibility: hidden;
}

.cart-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.cart-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.25s;
}

.cart-drawer.is-open .cart-drawer-backdrop {
  opacity: 1;
}

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 400px);
  height: 100%;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s ease;
}

.cart-drawer.is-open .cart-panel {
  transform: translateX(0);
}

.cart-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.cart-panel-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--border);
}

.cart-lines {
  list-style: none;
  margin: 0;
  padding: 1rem 1.25rem;
  flex: 1;
  overflow-y: auto;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.cart-line-name {
  font-weight: 600;
}

.cart-line-meta {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.cart-line-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  grid-column: 1 / -1;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
}

.qty-btn:hover {
  border-color: var(--accent);
}

.cart-empty {
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.cart-footer {
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
  font-size: 1.05rem;
}

.cart-hint {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (max-width: 880px) {
  .location-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    max-width: 280px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 60px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.35rem;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    gap: 0;
    display: none;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-list li:last-child a {
    border-bottom: none;
  }

  .nav {
    justify-content: flex-end;
    position: relative;
  }

  .cart-label {
    display: none;
  }
}

body.cart-open {
  overflow: hidden;
}
