:root {
  --bg: #090909;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.075);
  --text: #f7f2ec;
  --muted: rgba(247, 242, 236, 0.68);
  --line: rgba(247, 242, 236, 0.14);
  --accent: #d8b46a;
  --accent-soft: rgba(216, 180, 106, 0.16);
  --radius: 24px;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
  --font-title: "Bodoni Moda", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(216, 180, 106, 0.14), transparent 35%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.08), transparent 30%),
    var(--bg);
}

.logo-text,
.brand-title,
.menu-title,
.category-title {
  font-family: "Bodoni Moda", serif;
}

a { color: inherit; text-decoration: none; }

/* Fondo difuminado aleatorio
   Coloca tus imágenes en:
   assets/img/fondos/general/
   assets/img/fondos/cockteles/
   assets/img/fondos/cachimbas/
   y actualiza las rutas en BACKGROUND_IMAGES dentro de assets/js/app.js
*/
body {
  position: relative;
  overflow-x: hidden;
  isolation: isolate;
}

.ambient-bg,
.ambient-bg::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.ambient-bg {
  z-index: 0;
  background-image: var(--ambient-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 900ms ease;
}

body.has-ambient-bg .ambient-bg {
  opacity: 1;
}

.ambient-bg::after {
  content: "";
  z-index: 1;
  background:
    radial-gradient(circle at top, rgba(9, 9, 9, 0.18), rgba(9, 9, 9, 0.72) 58%),
    linear-gradient(180deg, rgba(9, 9, 9, 0.66), rgba(9, 9, 9, 0.9));
}

.page {
  position: relative;
  z-index: 2;
}


.page {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 24px 18px 56px;
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.hero-card,
.menu-panel {
  width: 100%;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(3px);
}

.hero-card {
  padding: clamp(28px, 7vw, 70px);
  text-align: center;
  animation: rise 700ms ease both;
}

.logo-wrap,
.menu-header {
  text-align: center;
}

.logo-img {
  width: min(350px, 70vw);
  height: auto;
  display: block;
  margin: 0 auto 18px;
}

.logo-text {
  margin: 0 0 14px;
  font-family: var(--font-title);
  font-size: clamp(3rem, 12vw, 6.6rem);
  font-weight: 400;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.eyebrow,
.section-title {
  margin: 0 0 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 600;
}

h1 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(2.3rem, 8vw, 4.2rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.subtitle {
  width: min(640px, 100%);
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.8vw, 1.18rem);
  line-height: 1.7;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.choice-card {
  position: relative;
  overflow: hidden;
  min-height: 165px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.choice-card::before {
  content: attr(data-icon);
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 2rem;
  opacity: 0.72;
}

.choice-card span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.choice-card strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-title);
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.05em;
}

.choice-card:hover,
.choice-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(216, 180, 106, 0.7);
  background: var(--accent-soft);
  outline: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 34px;
  animation: fade 600ms ease both;
}

.back-link,
.nav-pills a {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 999px;
  padding: 11px 15px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-pills {
  display: flex;
  gap: 8px;
}

.nav-pills a.active,
.nav-pills a:hover,
.back-link:hover {
  color: var(--text);
  border-color: rgba(216, 180, 106, 0.55);
  background: var(--accent-soft);
}

.menu-header {
  padding: 18px 0 32px;
  animation: rise 650ms ease both;
}

.menu-header .logo-text {
  font-size: clamp(2rem, 7vw, 4rem);
}

.menu-panel {
  padding: clamp(18px, 4vw, 34px);
  animation: rise 760ms ease both;
}

.menu-content {
  display: grid;
  gap: 28px;
}

.category {
  display: grid;
  gap: 14px;
}

.category-title {
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--accent);
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.product-list {
  display: grid;
  gap: 12px;
}

.product-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(247, 242, 236, 0.09);
  animation: itemIn 520ms ease both;
}

.product-name {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.product-description {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.96rem;
}

.product-price {
  min-width: 58px;
  text-align: right;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 900;
  white-space: nowrap;
}

.category-note,
.error-box,
.loading-text {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 15px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  line-height: 1.55;
}

.category-note {
  color: var(--accent);
  background: var(--accent-soft);
}

.error-box strong {
  display: block;
  color: var(--text);
  margin-bottom: 6px;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes itemIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 680px) {
  .page { padding: 18px 14px 42px; }
  .choice-grid { grid-template-columns: 1fr; }
  .topbar { align-items: stretch; flex-direction: column; }
  .nav-pills { display: grid; grid-template-columns: 1fr 1fr; }
  .back-link, .nav-pills a { text-align: center; }
}
@media (max-width: 680px) {
  .product-card {
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: start;
    column-gap: 12px;
    row-gap: 6px;
  }

  .product-price {
    min-width: auto;
    text-align: right;
    font-size: 1rem;
    line-height: 1.22;
    padding-top: 1px;
  }
}