/* ==========================================================================
   LA BODEGA 30 — bodegarabat.site
   Feria-poster design system: the sun the bull carries between his horns,
   saffron and vermillion out of the house logo, espresso-dark rooms for the
   bar and the night, chalk asides written by hand.

   Faces: Abril Fatface (display), Hanken Grotesk (spoken plainly),
   Shantell Sans (the chalkboard voice).
   ========================================================================== */

:root {
  --amarillo: #F2A80F;
  --amarillo-deep: #DB9600;
  --rojo: #D6301F;
  --rojo-dark: #A31F10;
  --noche: #221011;
  --noche-2: #2F1719;
  --crema: #FBF3E2;
  --crema-2: #F4E8CE;
  --tinta: #34191a;
  --tinta-soft: #6d4a44;
  --linea: rgba(52, 25, 26, 0.16);
  --chalk: #FBF3E2;
  --font-display: 'Abril Fatface', serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --font-chalk: 'Shantell Sans', cursive;
  --shadow-poster: 10px 12px 0 rgba(52, 25, 26, 0.16);
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--crema);
  color: var(--tinta);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { font-weight: 400; }

::selection { background: var(--amarillo); color: var(--noche); }

.hidden { display: none !important; }

.container { width: min(1180px, 92%); margin: 0 auto; }

section { padding: 96px 0; position: relative; }

/* ---------- type helpers ---------- */

.t-script {
  font-family: var(--font-chalk);
  font-style: normal;
  font-weight: 500;
  color: var(--rojo);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: var(--tinta);
  margin: 14px 0 18px;
}

.section-sub { color: var(--tinta-soft); max-width: 560px; }

.section-head { margin-bottom: 44px; }
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin: 0 auto; }
.section-head.center .kicker { justify-content: center; }

/* The ticket-number chip: a feria entrada stub, stamped slightly askew */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--rojo);
}
.kicker .mm {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--crema);
  background: var(--rojo);
  border: 1.5px dashed rgba(251, 243, 226, 0.55);
  outline: 3px solid var(--rojo);
  padding: 4px 10px 3px;
  transform: rotate(-3deg);
  border-radius: 3px;
}
.section-head.center .kicker::after { content: none; }

/* ---------- reveals: a rubber stamp coming down ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal[data-delay='1'] { transition-delay: 0.12s; }
.reveal[data-delay='2'] { transition-delay: 0.24s; }
.reveal[data-delay='3'] { transition-delay: 0.36s; }

.reveal-left {
  opacity: 0;
  transform: translateX(-30px) rotate(-1deg);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal-left.visible { opacity: 1; transform: none; }
.reveal-left[data-delay='1'] { transition-delay: 0.12s; }
.reveal-left[data-delay='2'] { transition-delay: 0.24s; }
.reveal-left[data-delay='3'] { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-left { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; }
}

/* ---------- buttons: poster print, hard offset shadow ---------- */

.btn {
  display: inline-block;
  padding: 14px 30px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid var(--tinta);
  border-radius: 4px;
  color: var(--tinta);
  background: transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  box-shadow: 4px 4px 0 rgba(52, 25, 26, 0.9);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(52, 25, 26, 0.9); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

.btn.solid {
  background: var(--rojo);
  border-color: var(--rojo-dark);
  color: var(--crema);
  box-shadow: 4px 4px 0 var(--noche);
}
.btn.solid:hover { background: var(--rojo-dark); box-shadow: 6px 6px 0 var(--noche); }

.btn.ghost { background: transparent; }

.btn.danger { background: var(--rojo-dark); border-color: var(--rojo-dark); color: var(--crema); }
.btn.danger:hover { background: #7d1509; }

.btn.wa-btn { display: inline-flex; align-items: center; gap: 10px; }
.btn.wa-btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn.wa-btn.busy { opacity: 0.6; }
.btn.wa-btn:hover { transform: translate(-2px, -2px); }

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  padding: 14px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.nav.scrolled {
  background: rgba(251, 243, 226, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 0 var(--rojo), 0 10px 30px rgba(52, 25, 26, 0.10);
  padding: 8px 0;
}

/* The nav uses a wider track than the page body so the seven links and the
   right-hand cluster never crowd the wordmark. */
.nav .container { width: min(1460px, 95%); }
.nav-inner { display: flex; align-items: center; gap: 22px; }

.nav-logo { display: inline-flex; align-items: center; gap: 10px; margin-right: 12px; }
.nav-bull { height: 40px; width: auto; transition: transform 0.3s ease; }
.nav-logo:hover .nav-bull { transform: translateX(3px); }
.nav-word {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--rojo);
  white-space: nowrap;
}
.nav-word i { font-style: normal; color: var(--amarillo-deep); }

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--rojo);
  transition: right 0.25s ease;
}
.nav-links a:hover::after { right: 0; }
.nav-links a:hover { color: var(--rojo); }

.nav-deals {
  color: var(--crema) !important;
  background: var(--rojo);
  padding: 5px 12px !important;
  border-radius: 3px;
  transform: rotate(-2deg);
  display: inline-block;
}
.nav-deals::after { content: none !important; }

.nav-right { display: flex; gap: 12px; list-style: none; align-items: center; margin-left: auto; }
.nav-cta {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--rojo);
  color: var(--crema);
  padding: 10px 18px;
  border-radius: 4px;
  border: 2px solid var(--rojo-dark);
  box-shadow: 3px 3px 0 var(--noche);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.nav-cta:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--noche); }
/* Sign in / Sign up are ghost buttons, matching the hero's "Discover the menu":
   2px outline, hard offset shadow, a lift on hover. */
.nav-auth {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 4px;
  border: 2px solid var(--tinta);
  color: var(--tinta);
  background: transparent;
  box-shadow: 3px 3px 0 rgba(52, 25, 26, 0.9);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.nav-auth:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 rgba(52, 25, 26, 0.9); }
.nav-auth.signed-in { border-color: var(--amarillo-deep); background: rgba(242, 168, 15, 0.18); }
.nav-auth.signed-in:hover { background: rgba(242, 168, 15, 0.32); }

/* language toggle: a two-stop slider */
.lang-switch {
  position: relative;
  display: inline-flex;
  border: 2px solid var(--tinta);
  border-radius: 999px;
  overflow: hidden;
  background: var(--crema);
}
.lang-switch::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 50%;
  background: var(--amarillo);
  transition: transform 0.25s cubic-bezier(0.3, 0.8, 0.4, 1);
}
.lang-switch.on-fr::before { transform: translateX(100%); }
.lang-switch button {
  position: relative;
  z-index: 1;
  border: 0;
  background: none;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  color: var(--tinta-soft);
}
.lang-switch button.active { color: var(--noche); }

.burger { display: none; background: none; border: 0; width: 40px; height: 36px; flex: none; position: relative; z-index: 70; }
.burger span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--tinta);
  margin: 6px 7px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Pages that open on a dark hero (the menu page): while the nav is
   transparent at the top, its text must read on the dark image. auth.js
   drops the 'scrolled' class at scrollY 0, so this covers that state. */
.nav.on-dark:not(.scrolled) .nav-links a { color: var(--crema); }
.nav.on-dark:not(.scrolled) .nav-auth {
  color: var(--crema);
  border-color: var(--crema);
  box-shadow: 3px 3px 0 rgba(242, 168, 15, 0.85);
}
.nav.on-dark:not(.scrolled) .nav-auth:hover { background: var(--crema); color: var(--noche); }
.nav.on-dark:not(.scrolled) .nav-word { color: var(--amarillo); }
.nav.on-dark:not(.scrolled) .burger span { background: var(--crema); }
.nav.on-dark:not(.scrolled) .lang-switch { border-color: var(--crema); background: rgba(251, 243, 226, 0.15); }
.nav.on-dark:not(.scrolled) .lang-switch button { color: rgba(251, 243, 226, 0.8); }
.nav.on-dark:not(.scrolled) .lang-switch button.active { color: var(--noche); }

/* ==========================================================================
   Hero — the feria poster
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 0 80px;
  background: var(--noche);
  overflow: hidden;
}

@keyframes sunturn { to { rotate: 360deg; } }

/* Full-bleed looping footage of the room, with a scrim that darkens it enough
   for the cream wordmark and text to sit on top. */
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-bg-video { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(135% 105% at 50% 34%, rgba(34, 16, 17, 0.26), rgba(34, 16, 17, 0.64) 60%, rgba(34, 16, 17, 0.9)),
    linear-gradient(180deg, rgba(34, 16, 17, 0.55), rgba(34, 16, 17, 0.3) 38%, rgba(34, 16, 17, 0.86));
}
/* a saffron hairline at the foot, tying the hero into the chalk strip below */
.hero-scrim::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--amarillo);
  z-index: 4;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, 92%);
  margin: 0 auto;
  display: flex;
  justify-content: center;
}
.hero-content { max-width: 700px; }

.hero-content > * { opacity: 0; animation: heroup 0.8s cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
.hero-content > *:nth-child(2) { animation-delay: 0.12s; }
.hero-content > *:nth-child(3) { animation-delay: 0.24s; }
.hero-content > *:nth-child(4) { animation-delay: 0.34s; }
.hero-content > *:nth-child(5) { animation-delay: 0.46s; }
.hero-content > *:nth-child(6) { animation-delay: 0.58s; }
@keyframes heroup {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

.hero-over {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(251, 243, 226, 0.72);
  margin-bottom: 22px;
}

.hero-name { line-height: 0; margin-bottom: 22px; }
.hero-name img {
  width: min(460px, 82vw);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 8px 26px rgba(0, 0, 0, 0.5));
}

.hero-script {
  font-family: var(--font-chalk);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  color: var(--crema);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  margin-bottom: 8px;
}

.hero-tag {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--amarillo);
  margin-bottom: 30px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 34px; justify-content: center; }
/* over the video the ghost button needs a light outline, not the dark one */
.hero-actions .btn.ghost {
  border-color: var(--crema);
  color: var(--crema);
  box-shadow: 4px 4px 0 rgba(242, 168, 15, 0.85);
}
.hero-actions .btn.ghost:hover { background: var(--crema); color: var(--noche); }

.hero-hours {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  color: var(--crema);
}
.hero-hours .dia {
  width: 26px;
  height: 2px;
  background: var(--amarillo);
  transform: rotate(-8deg);
}
.hero-hours small {
  font-weight: 600;
  color: rgba(251, 243, 226, 0.7);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin-left: 6px;
}

.hero::before { content: none; }
.hero-90, .hero-sun, .hero-grid, .hero-visual { display: none; }

/* ---------- the chalk strip ---------- */

.mc-ticker {
  background: var(--noche);
  color: var(--chalk);
  overflow: hidden;
  padding: 22px 0 18px;
  border-bottom: 4px solid var(--amarillo);
}
.mc-ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  white-space: nowrap;
  animation: tickerslide 30s linear infinite;
  will-change: transform;
}
.mc-ticker span {
  font-family: var(--font-chalk);
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}
/* the little sun between the words */
.mc-ticker b {
  width: 12px;
  height: 12px;
  background: var(--amarillo);
  clip-path: polygon(50% 0%, 62% 36%, 100% 36%, 70% 58%, 82% 100%, 50% 74%, 18% 100%, 30% 58%, 0% 36%, 38% 36%);
  flex: none;
}
@keyframes tickerslide { to { transform: translateX(-50%); } }

/* ---------- floating reserve badge ---------- */

.reserve-badge {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 50;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
}
.reserve-badge svg {
  position: absolute;
  inset: 0;
  animation: badgeturn 18s linear infinite;
}
@keyframes badgeturn { to { transform: rotate(360deg); } }
.reserve-badge svg text {
  font-size: 11.4px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  fill: var(--rojo);
}
.reserve-badge .badge-center {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(52, 25, 26, 0.35);
  transition: transform 0.25s ease;
}
.reserve-badge .badge-center img { width: 100%; height: 100%; }
.reserve-badge:hover .badge-center { transform: scale(1.12) rotate(-6deg); }

/* ==========================================================================
   About
   ========================================================================== */

#about { padding-top: 110px; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-images { position: relative; min-height: 480px; }
.img-frame {
  background: #fff;
  padding: 12px 12px 40px;
  border: 1px solid rgba(52, 25, 26, 0.10);
  box-shadow: var(--shadow-poster);
  overflow: visible;
}
.img-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.img-frame:hover img { transform: scale(1.03); }
.about-images .img-main {
  width: 78%;
  transform: rotate(-2.4deg);
}
.about-images .img-main img { aspect-ratio: 4 / 4.1; }
.about-images .img-accent {
  position: absolute;
  right: 0;
  bottom: -34px;
  width: 52%;
  transform: rotate(3.2deg);
  z-index: 2;
}
.about-images .img-accent img { aspect-ratio: 1; }

.about-text p { color: var(--tinta-soft); font-size: 1.04rem; }
.about-sign {
  margin-top: 26px;
  font-family: var(--font-chalk);
  font-size: 1.14rem;
  color: var(--rojo) !important;
}
.about-sign::before {
  content: '';
  display: block;
  width: 68px;
  height: 3px;
  background: var(--amarillo);
  margin-bottom: 14px;
  transform: rotate(-2deg);
}

/* ==========================================================================
   Menu preview + full menu page
   ========================================================================== */

.menu-section { background: var(--crema-2); }
.menu-section .container { position: relative; }
/* torn-ticket top edge */
#menu.menu-section::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 14px;
  background: radial-gradient(circle at 10px 14px, transparent 9px, var(--crema) 9.6px);
  background-size: 20px 14px;
  background-repeat: repeat-x;
}
.menu-section .kicker { color: var(--rojo); }
.menu-section .section-title { color: var(--tinta); }
.menu-section .section-sub { font-family: var(--font-chalk); }
.menu-section .btn { margin-top: 0; }
.menu-section .btn:hover { background: var(--amarillo); border-color: var(--tinta); color: var(--noche); }

.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
}
.menu-tabs button {
  border: 2px solid var(--tinta);
  background: transparent;
  color: var(--tinta);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 34px;
  transition: background 0.2s ease, color 0.2s ease;
}
.menu-tabs button:first-child { border-radius: 6px 0 0 6px; border-right-width: 1px; }
.menu-tabs button:last-child { border-radius: 0 6px 6px 0; border-left-width: 1px; }
.menu-tabs button.active {
  background: var(--rojo);
  border-color: var(--rojo);
  color: var(--crema);
  box-shadow: inset 0 -3px 0 var(--rojo-dark);
}

.menu-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
  align-items: start;
}

.menu-cat {
  background: var(--crema);
  border: 1px solid rgba(52, 25, 26, 0.12);
  box-shadow: 6px 7px 0 rgba(52, 25, 26, 0.10);
  padding: 34px 34px 28px;
  position: relative;
}
.menu-cat h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--rojo);
  margin-bottom: 4px;
  position: relative;
  display: inline-block;
}
/* a hand-ruled saffron underline, like chalk under the day's plate */
.menu-cat h3::after {
  content: '';
  display: block;
  height: 4px;
  margin-top: 6px;
  background: var(--amarillo);
  border-radius: 4px;
  transform: rotate(-0.6deg) scaleX(0.96);
  transform-origin: left;
}
.menu-cat h3::before { content: none; }
.menu-cat-sub {
  font-family: var(--font-chalk);
  color: var(--tinta-soft);
  font-size: 0.92rem;
  margin: 4px 0 10px;
}

.menu-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-top: 13px;
}
.menu-item .mi-name { font-weight: 600; }
.menu-item .mi-dots {
  flex: 1;
  border-bottom: 2px dotted rgba(52, 25, 26, 0.30);
  transform: translateY(-4px);
}
.menu-item .mi-price {
  font-weight: 800;
  color: var(--tinta);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.menu-item-desc {
  font-size: 0.86rem;
  color: var(--tinta-soft);
  padding-top: 2px;
  max-width: 92%;
}
.mi-was { color: var(--tinta-soft); font-weight: 500; margin-right: 8px; }
.mi-deal, .menu-section .mi-deal { color: var(--rojo); }

/* two price columns (verre / bouteille) */
.menu-cat.two-way .mi-price { min-width: 74px; text-align: right; }
.menu-cat.two-way .mi-price.alt { min-width: 84px; text-align: right; color: var(--tinta-soft); }
.menu-item.mi-head { padding-top: 20px; }
.menu-item.mi-head .mi-price {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rojo);
}

.menu-actions { text-align: center; margin-top: 48px; }

.promo-notice {
  background: var(--amarillo);
  color: var(--noche);
  font-weight: 700;
  text-align: center;
  border: 2px solid var(--amarillo-deep);
  border-radius: 6px;
  padding: 12px 18px;
  margin-bottom: 30px;
  transform: rotate(-0.5deg);
}
.promo-notice.hidden { display: none; }
.menu-page .promo-notice { margin-top: 6px; }

/* menu page hero */
.page-hero {
  position: relative;
  min-height: 46vh;
  display: grid;
  place-items: end start;
  padding: calc(var(--nav-h) + 70px) 0 46px;
  background: var(--noche);
  color: var(--crema);
  overflow: hidden;
}
.page-hero > div:last-child { position: relative; z-index: 2; width: min(1180px, 92%); margin: 0 auto; }
.page-hero .hero-bg { position: absolute; inset: 0; }
.page-hero .hero-bg img, .page-hero .hero-video {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.42;
}
.page-hero .hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(34, 16, 17, 0.4), rgba(34, 16, 17, 0.85));
}
.page-hero .kicker { color: var(--amarillo); }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  color: var(--crema);
  margin-top: 10px;
}
.page-hero .t-script { color: var(--amarillo); }
.menu-page { padding-top: 70px; }

/* ==========================================================================
   Cocteles de autor — the chalkboard band
   ========================================================================== */

.afterwork {
  background: var(--noche);
  color: var(--crema);
  border-top: 4px solid var(--amarillo);
  border-bottom: 4px solid var(--amarillo);
  overflow: hidden;
}
/* faint bull watching from the corner */
.afterwork::before {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -40px;
  width: 380px;
  height: 460px;
  background: url('/images/bull-light.png') no-repeat center / contain;
  opacity: 0.05;
  transform: rotate(-4deg);
  pointer-events: none;
}

.afterwork-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.afterwork .kicker { color: var(--amarillo); }
.afterwork .kicker .mm { background: var(--amarillo); color: var(--noche); outline-color: var(--amarillo); border-color: rgba(34, 16, 17, 0.4); }
.afterwork .section-title, .afterwork-copy .section-title { color: var(--crema); }
.afterwork .t-script { color: var(--amarillo); }
.afterwork-time {
  font-family: var(--font-chalk);
  color: var(--amarillo);
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.afterwork-copy p { color: rgba(251, 243, 226, 0.75); }
.afterwork-copy .btn { margin-top: 26px; }
.afterwork .btn.ghost {
  border-color: var(--crema);
  color: var(--crema);
  box-shadow: 4px 4px 0 rgba(242, 168, 15, 0.85);
}
.afterwork .btn.ghost:hover { background: var(--crema); color: var(--noche); }

.afterwork-list {
  position: relative;
  background: var(--noche-2);
  border: 2px solid rgba(251, 243, 226, 0.22);
  border-radius: 8px;
  padding: 34px 36px;
  box-shadow: 8px 9px 0 rgba(0, 0, 0, 0.35);
}
/* chalk label pinned over the board */
.afterwork-list::before {
  content: 'la carta de esta noche';
  position: absolute;
  top: -14px;
  left: 26px;
  font-family: var(--font-chalk);
  font-size: 0.85rem;
  background: var(--amarillo);
  color: var(--noche);
  padding: 3px 12px;
  border-radius: 3px;
  transform: rotate(-2deg);
}
.aw-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
}
.aw-name { font-family: var(--font-chalk); font-weight: 500; font-size: 1.02rem; }
.aw-dots { flex: 1; border-bottom: 2px dotted rgba(251, 243, 226, 0.28); transform: translateY(-4px); }
.aw-price { font-weight: 800; color: var(--amarillo); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   La velada — the evening rail
   ========================================================================== */

.ritual-section { background: var(--crema); overflow: hidden; padding-bottom: 110px; }

.ritual-stage { position: relative; width: min(1320px, 96%); margin: 0 auto; }
.ritual-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 7%, black 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 7%, black 93%, transparent);
}
.ritual-track {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 30px 10px 44px;
}
.ritual-track::-webkit-scrollbar { display: none; }

.ritual-card {
  flex: none;
  width: min(340px, 74vw);
  background: #fff;
  border: 1px solid rgba(52, 25, 26, 0.10);
  padding: 12px 12px 42px;
  box-shadow: 7px 8px 0 rgba(52, 25, 26, 0.13);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1);
  position: relative;
}
.ritual-card:nth-child(odd) { transform: rotate(-1.6deg); }
.ritual-card:nth-child(even) { transform: rotate(1.4deg); }
.ritual-card:hover { transform: rotate(0deg) translateY(-8px); z-index: 2; }
.ritual-card img {
  width: 100%;
  aspect-ratio: 1 / 1.04;
  object-fit: cover;
}
.ritual-card::after {
  content: attr(aria-label);
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  font-family: var(--font-chalk);
  font-size: 0.86rem;
  color: var(--tinta-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.ritual-arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 5;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--tinta);
  background: var(--crema);
  display: grid;
  place-items: center;
  box-shadow: 3px 3px 0 rgba(52, 25, 26, 0.85);
  transition: transform 0.18s ease, background 0.18s ease;
}
.ritual-arrow.prev { left: -6px; }
.ritual-arrow.next { right: -6px; }
.ritual-arrow:hover { background: var(--amarillo); }
.ritual-arrow:active { transform: translateY(2px); }
.ritual-arrow:focus-visible { outline: 3px solid var(--rojo); outline-offset: 2px; }
.ritual-arrow svg { width: 22px; height: 22px; fill: none; stroke: var(--tinta); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ==========================================================================
   Spaces
   ========================================================================== */

#spaces { background: var(--crema-2); }

.spaces-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.space-card {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  border: 2px solid var(--noche);
  box-shadow: 6px 7px 0 rgba(52, 25, 26, 0.55);
  aspect-ratio: 3 / 4;
  background: var(--noche);
  margin: 0;
}
.space-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: transform 0.5s ease, opacity 0.5s ease;
}
.space-card:hover img { transform: scale(1.06); opacity: 1; }
.space-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(34, 16, 17, 0.88));
  pointer-events: none;
}
.space-card figcaption {
  position: absolute;
  left: 18px; right: 18px; bottom: 16px;
  z-index: 2;
  color: var(--crema);
}
.space-card figcaption::before {
  content: '';
  display: block;
  width: 34px;
  height: 3px;
  background: var(--amarillo);
  margin-bottom: 10px;
  transform: rotate(-2deg) scaleX(1);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.space-card:hover figcaption::before { transform: rotate(-2deg) scaleX(1.6); }
.space-card figcaption span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}
.space-card figcaption small {
  display: block;
  font-family: var(--font-chalk);
  font-size: 0.82rem;
  color: rgba(251, 243, 226, 0.85);
  margin-top: 2px;
}
.space-card figcaption small:empty { display: none; }

/* ==========================================================================
   Gallery — two drifting rows of pinned prints
   ========================================================================== */

.gallery-section { background: var(--crema); overflow: hidden; }

.gal-rows { display: grid; gap: 26px; }
.gal-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.gal-track {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: galslide 46s linear infinite;
  padding: 14px 0 18px;
}
.gal-marquee.reverse .gal-track { animation-direction: reverse; }
.gal-marquee:hover .gal-track { animation-play-state: paused; }
.gal-track img {
  width: 230px;
  height: 230px;
  object-fit: cover;
  cursor: zoom-in;
  border: 8px solid #fff;
  outline: 1px solid rgba(52, 25, 26, 0.12);
  box-shadow: 5px 6px 0 rgba(52, 25, 26, 0.14);
  transition: transform 0.3s ease;
}
.gal-track img:nth-child(odd) { transform: rotate(-1.6deg); }
.gal-track img:nth-child(even) { transform: rotate(1.4deg); }
.gal-track img:hover { transform: rotate(0) scale(1.05); position: relative; z-index: 2; }
@keyframes galslide { to { transform: translateX(-50%); } }

/* ==========================================================================
   Hours & location
   ========================================================================== */

#hours { background: var(--crema-2); }
#hours .kicker { color: var(--rojo); }

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.info-grid.no-map { grid-template-columns: 1fr; max-width: 640px; }

.hours-list { list-style: none; margin-bottom: 34px; }
.hours-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--linea);
}
.hours-list .day-col { display: flex; flex-direction: column; }
.hours-list .day { font-weight: 700; letter-spacing: 0.04em; }
.hours-list .day-note { font-family: var(--font-chalk); color: var(--rojo); font-size: 0.82rem; }
.hours-list .dots { flex: 1; border-bottom: 2px dotted rgba(52, 25, 26, 0.30); transform: translateY(-4px); }
.hours-list .time { font-weight: 800; font-variant-numeric: tabular-nums; }
.hours-list .closed { font-weight: 700; color: var(--rojo); text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.08em; }

.contact-lines div { padding: 7px 0; color: var(--tinta-soft); }
.contact-lines strong { color: var(--rojo); font-weight: 600; }
.contact-lines a:hover { color: var(--rojo); text-decoration: underline; }

#map {
  height: 420px;
  border: 2px solid var(--noche);
  border-radius: 6px;
  box-shadow: 8px 9px 0 rgba(52, 25, 26, 0.35);
  z-index: 1;
}
.map-pin {
  width: 22px; height: 22px;
  position: relative;
}
.map-pin::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--rojo);
  border: 3px solid var(--crema);
  box-shadow: 0 0 0 2px var(--rojo);
}
.map-pin::after {
  content: '';
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 2px solid rgba(214, 48, 31, 0.5);
  animation: pinpulse 2s ease-out infinite;
}
@keyframes pinpulse {
  from { transform: scale(0.7); opacity: 1; }
  to { transform: scale(1.5); opacity: 0; }
}
.leaflet-popup-content-wrapper {
  background: var(--crema);
  color: var(--tinta);
  border-radius: 6px;
  border: 2px solid var(--noche);
  font-family: var(--font-body);
}
.leaflet-popup-tip { background: var(--noche); }
.leaflet-popup-content a { color: var(--rojo); font-weight: 700; }

/* ==========================================================================
   Contact band
   ========================================================================== */

.contact-band {
  background: var(--rojo);
  color: var(--crema);
  overflow: hidden;
}
/* sunburst behind, in the darker red */
.contact-band::before {
  content: '';
  position: absolute;
  right: -20vw;
  top: 50%;
  width: 70vw;
  aspect-ratio: 1;
  translate: 0 -50%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(163, 31, 16, 0.55) 0deg 9deg,
    transparent 9deg 24deg
  );
  border-radius: 50%;
  -webkit-mask-image: radial-gradient(circle, black 0%, black 40%, transparent 70%);
  mask-image: radial-gradient(circle, black 0%, black 40%, transparent 70%);
  animation: sunturn 140s linear infinite reverse;
  pointer-events: none;
}
.contact-band > .container { position: relative; z-index: 2; }
.contact-inner { max-width: 860px; }
.contact-band .kicker { color: var(--amarillo); }
.contact-band .kicker .mm { background: var(--amarillo); color: var(--noche); outline-color: var(--amarillo); border-color: rgba(34, 16, 17, 0.4); }
.contact-inner .section-title { color: var(--crema); }
.contact-inner .t-script { color: var(--amarillo); }
.contact-lead { color: rgba(251, 243, 226, 0.85); max-width: 560px; margin-bottom: 34px; }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 34px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(34, 16, 17, 0.28);
  border: 1.5px solid rgba(251, 243, 226, 0.30);
  border-radius: 6px;
  padding: 16px 20px;
  transition: background 0.2s ease, transform 0.2s ease;
}
a.contact-card:hover { background: rgba(34, 16, 17, 0.5); transform: translateY(-3px); }
.cc-icon {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--amarillo);
  display: grid;
  place-items: center;
}
.cc-icon svg { width: 20px; height: 20px; fill: var(--noche); }
.cc-body { min-width: 0; display: flex; flex-direction: column; }
.cc-body small {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--amarillo);
}
.cc-body b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.contact-band .btn.ghost {
  border-color: var(--crema);
  color: var(--crema);
  box-shadow: 4px 4px 0 rgba(34, 16, 17, 0.6);
}
.contact-band .btn.ghost:hover { background: var(--crema); color: var(--rojo); }
.contact-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.contact-band .socials { margin-top: 34px; }

.socials { display: flex; gap: 14px; margin-top: 30px; }
.socials a {
  width: 44px; height: 44px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 3px 3px 0 rgba(34, 16, 17, 0.35);
  transition: transform 0.2s ease;
}
.socials a img { width: 100%; height: 100%; object-fit: cover; }
.socials a:hover { transform: translateY(-4px) rotate(-3deg); }

/* ==========================================================================
   Reservation
   ========================================================================== */

.reserve-section { background: var(--crema); padding-bottom: 120px; }

.reserve-panel {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(52, 25, 26, 0.12);
  box-shadow: 10px 12px 0 rgba(52, 25, 26, 0.14);
  padding: 60px clamp(24px, 6vw, 70px) 50px;
}
/* the entrada stub: a striped band + a red corner stamp */
.reserve-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--rojo) 0 18px, var(--amarillo) 18px 36px);
}
.reserve-panel::after {
  content: 'ENTRADA';
  position: absolute;
  top: 26px;
  right: -14px;
  font-weight: 800;
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  color: var(--crema);
  background: var(--rojo);
  padding: 6px 14px 5px;
  transform: rotate(4deg);
  box-shadow: 3px 3px 0 rgba(52, 25, 26, 0.4);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 40px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tinta-soft);
}
.form-field input, .form-field select {
  font-family: inherit;
  font-size: 1rem;
  color: var(--tinta);
  background: var(--crema);
  border: 2px solid rgba(52, 25, 26, 0.25);
  border-radius: 4px;
  padding: 13px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}
.form-field input:focus, .form-field select:focus {
  outline: none;
  border-color: var(--rojo);
  box-shadow: 3px 3px 0 rgba(214, 48, 31, 0.25);
}
.form-field input::placeholder { color: rgba(52, 25, 26, 0.35); }
.form-field input[type='date'], .form-field input[type='time'] { appearance: none; -webkit-appearance: none; min-height: 50px; }
.field-note { font-size: 0.78rem; color: var(--tinta-soft); }

.phone-row { display: flex; gap: 10px; }
.phone-row select { flex: 0 0 118px; }

.form-submit { text-align: center; margin-top: 36px; }
.form-msg { text-align: center; margin-top: 18px; font-weight: 600; min-height: 1.4em; }
.form-msg.ok { color: #1e7d32; }
.form-msg.err { color: var(--rojo-dark); }
.form-note { text-align: center; font-size: 0.82rem; color: var(--tinta-soft); margin-top: 10px; }
.prefill-note {
  margin-top: 14px;
  font-family: var(--font-chalk);
  color: var(--rojo);
  font-size: 0.9rem;
}

/* time picker */
.timepick { position: relative; }
.timepick-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-size: 1rem;
  color: rgba(52, 25, 26, 0.55);
  background: var(--crema);
  border: 2px solid rgba(52, 25, 26, 0.25);
  border-radius: 4px;
  padding: 13px 16px;
  min-height: 50px;
  transition: border-color 0.2s ease;
}
.timepick-btn svg { width: 18px; height: 18px; fill: var(--rojo); flex: none; }
.timepick-btn.chosen { color: var(--tinta); font-weight: 600; }
.timepick-btn:hover, .timepick-btn.open { border-color: var(--rojo); }
.timepick-btn .tp-caret {
  margin-left: auto;
  width: 9px; height: 9px;
  border-right: 2px solid var(--tinta-soft);
  border-bottom: 2px solid var(--tinta-soft);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.timepick-btn.open .tp-caret { transform: rotate(-135deg) translate(-2px, -2px); }
.timepick-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  z-index: 20;
  max-height: 240px;
  overflow-y: auto;
  background: #fff;
  border: 2px solid var(--noche);
  border-radius: 6px;
  box-shadow: 6px 7px 0 rgba(52, 25, 26, 0.25);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 10px;
}
.timepick-panel[hidden] { display: none; }
.timepick-panel::-webkit-scrollbar { width: 8px; }
.timepick-panel::-webkit-scrollbar-thumb { background: var(--amarillo); border-radius: 8px; }
.timepick-slot {
  border: 1.5px solid rgba(52, 25, 26, 0.25);
  border-radius: 4px;
  background: var(--crema);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 9px 4px;
  transition: background 0.15s ease, color 0.15s ease;
}
.timepick-slot:hover { border-color: var(--rojo); color: var(--rojo); }
.timepick-slot.on { background: var(--rojo); border-color: var(--rojo); color: var(--crema); }

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  background: var(--noche);
  color: rgba(251, 243, 226, 0.8);
  padding: 90px 0 34px;
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--amarillo);
}
.footer-word {
  position: absolute;
  left: 50%;
  bottom: -0.28em;
  translate: -50%;
  font-family: var(--font-display);
  font-size: clamp(6rem, 22vw, 17rem);
  line-height: 1;
  color: rgba(214, 48, 31, 0.14);
  pointer-events: none;
  white-space: nowrap;
}
.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
}
.footer-logo { width: 150px; margin-bottom: 20px; }
.footer-grid p { font-size: 0.92rem; max-width: 340px; }
.footer-grid h4 {
  font-family: var(--font-display);
  color: var(--amarillo);
  font-size: 1.06rem;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}
.footer-grid ul { list-style: none; }
.footer-grid li { padding: 5px 0; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--amarillo); }
.footer-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(251, 243, 226, 0.16);
  padding-top: 24px;
  font-size: 0.8rem;
  color: rgba(251, 243, 226, 0.55);
}
.footer-bottom a:hover { color: var(--amarillo); }

/* ==========================================================================
   Lightbox + toast
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(34, 16, 17, 0.94);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  border: 10px solid #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: var(--crema);
  font-size: 2rem;
  line-height: 1;
  padding: 14px;
  transition: color 0.2s ease, transform 0.2s ease;
}
.lightbox button:hover { color: var(--amarillo); transform: scale(1.15); }
.lb-close { top: 18px; right: 22px; }
.lb-prev { left: 14px; top: 50%; translate: 0 -50%; font-size: 3rem; }
.lb-next { right: 14px; top: 50%; translate: 0 -50%; font-size: 3rem; }

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  translate: -50% 130%;
  z-index: 110;
  background: var(--noche);
  color: var(--crema);
  border: 2px solid var(--amarillo);
  border-radius: 6px;
  padding: 14px 26px;
  font-weight: 600;
  transition: translate 0.35s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.toast.show { translate: -50% 0; }

/* ==========================================================================
   Deals page
   ========================================================================== */

.deals-main { padding-top: calc(var(--nav-h) + 60px); min-height: 70vh; }
.deals-main .section-head { margin-bottom: 30px; }
.promo-banner {
  display: block;
  background: var(--noche);
  color: var(--crema);
  border: 2px solid var(--amarillo);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 34px;
  padding: 14px 0;
}
.promo-track { display: inline-flex; gap: 40px; white-space: nowrap; animation: tickerslide 24s linear infinite; }
.promo-banner:hover .promo-track { animation-play-state: paused; }
.promo-banner-text { font-family: var(--font-chalk); font-size: 1.05rem; color: var(--amarillo); }
a.promo-banner-text:hover { text-decoration: underline; }

.deal-group h2 {
  font-family: var(--font-display);
  color: var(--rojo);
  font-size: 1.5rem;
  margin: 34px 0 18px;
}
.deal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}
.deal-card {
  background: #fff;
  border: 1px solid rgba(52, 25, 26, 0.12);
  box-shadow: 5px 6px 0 rgba(52, 25, 26, 0.12);
  overflow: hidden;
  position: relative;
  transition: transform 0.25s ease;
}
.deal-card:hover { transform: translateY(-5px) rotate(-0.5deg); }
.deal-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.deal-badge {
  position: absolute;
  top: 12px; right: -8px;
  background: var(--rojo);
  color: var(--crema);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  transform: rotate(3deg);
  box-shadow: 3px 3px 0 rgba(52, 25, 26, 0.35);
}
.deal-body { padding: 18px 20px 20px; }
.deal-body h3 { font-weight: 700; font-size: 1.02rem; }
.deal-body p { font-size: 0.85rem; color: var(--tinta-soft); margin-top: 4px; }
.deal-prices { margin-top: 12px; display: flex; align-items: baseline; gap: 12px; }
.deal-prices s { color: var(--tinta-soft); }
.deal-prices b { color: var(--rojo); font-size: 1.2rem; }
.deals-empty { text-align: center; padding: 60px 0; color: var(--tinta-soft); }
.deals-empty .contact-actions { justify-content: center; margin-top: 24px; }

/* ==========================================================================
   Account / auth pages
   ========================================================================== */

.page-account {
  position: relative;
  min-height: 100vh;
  background: var(--noche);
}
.page-account::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('/images/account-bg.jpg') center / cover no-repeat;
  opacity: 0.16;
}
.page-account::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(214, 48, 31, 0.20), transparent 60%);
  pointer-events: none;
}
.page-account .nav { background: rgba(34, 16, 17, 0.85); backdrop-filter: blur(8px); }
.page-account .nav .nav-word { color: var(--amarillo); }
.page-account .nav-links a { color: var(--crema); }
.page-account .nav-auth {
  color: var(--crema);
  border-color: var(--crema);
  box-shadow: 3px 3px 0 rgba(242, 168, 15, 0.85);
}
.page-account .nav-auth:hover { background: var(--crema); color: var(--noche); }
.page-account .burger span { background: var(--crema); }
.page-account .nav-logo img { filter: none; }
.page-account footer { position: relative; z-index: 2; }
.page-account .footer-word { display: none; }

.account-main { position: relative; z-index: 2; padding: calc(var(--nav-h) + 60px) 0 90px; }
.account-main > .container { width: min(560px, 92%); }
.account-main section { padding: 0; }

.auth-wrap { display: grid; gap: 26px; }
.auth-card {
  position: relative;
  background: var(--crema);
  border-radius: 8px;
  padding: 44px clamp(22px, 5vw, 46px) 40px;
  box-shadow: 10px 12px 0 rgba(0, 0, 0, 0.4);
}
.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  border-radius: 8px 8px 0 0;
  background: repeating-linear-gradient(90deg, var(--rojo) 0 18px, var(--amarillo) 18px 36px);
}
.auth-logo { width: 130px; margin: 0 auto 8px; display: block; }
.auth-card .section-title { font-size: 1.7rem; text-align: center; }
.auth-logo + .section-title { margin-top: 4px; }
.auth-sub { text-align: center; color: var(--tinta-soft); font-size: 0.94rem; margin-bottom: 26px; }

.auth-form { display: grid; gap: 16px; }
.auth-form label {
  display: grid;
  gap: 7px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tinta-soft);
}
.auth-form input, .auth-form select {
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--tinta);
  border: 2px solid rgba(52, 25, 26, 0.25);
  border-radius: 4px;
  padding: 12px 15px;
  width: 100%;
}
.auth-form input:focus, .auth-form select:focus {
  outline: none;
  border-color: var(--rojo);
  box-shadow: 3px 3px 0 rgba(214, 48, 31, 0.22);
}
.auth-form select option { color: var(--tinta); }
.auth-form .btn { width: 100%; text-align: center; }
.auth-form .btn.ghost { box-shadow: none; }
.auth-form label.stay-row {
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
  font-weight: 600;
}
.stay-row input { width: auto; accent-color: var(--rojo); }
.stay-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.stay-line .stay-row { margin: 0; }
.forgot-link { font-size: 0.85rem; font-weight: 600; color: var(--rojo); }
.forgot-link:hover { text-decoration: underline; }

.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.auth-hint { font-size: 0.78rem; color: var(--tinta-soft); }
.birthday-note { font-size: 0.8rem; color: var(--tinta-soft); }
.auth-msg { min-height: 1.3em; font-weight: 600; font-size: 0.9rem; text-align: center; }
.auth-msg.err { color: var(--rojo-dark); }
.auth-msg.ok { color: #1e7d32; }
.auth-switch { text-align: center; font-size: 0.9rem; color: var(--tinta-soft); margin-top: 8px; }
.auth-switch a { color: var(--rojo); font-weight: 700; }
.auth-switch a:hover { text-decoration: underline; }
.pending-title { text-align: center; }

.gender-row { display: flex; gap: 10px; }
.gender-row button {
  flex: 1;
  border: 2px solid rgba(52, 25, 26, 0.25);
  background: #fff;
  border-radius: 4px;
  padding: 10px 6px;
  font-weight: 700;
  font-size: 0.86rem;
  transition: all 0.15s ease;
}
.gender-row button:hover { border-color: var(--rojo); color: var(--rojo); }
.gender-row button.active { background: var(--rojo); border-color: var(--rojo); color: var(--crema); }

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 48px; }
.pw-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  translate: 0 -50%;
  border: 0;
  background: none;
  padding: 8px;
  color: var(--tinta-soft);
}
.pw-eye:hover { color: var(--rojo); }
.pw-eye svg { width: 20px; height: 20px; fill: currentColor; }
.pw-eye .eye-shut { display: none; }
.pw-eye.on .eye-open { display: none; }
.pw-eye.on .eye-shut { display: block; }

#signupForm { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
#signupForm .full { grid-column: 1 / -1; }

/* member area */
.member-heading { text-align: center; margin-bottom: 8px; }
.member-grid { display: grid; gap: 22px; }
.member-card {
  background: var(--crema);
  border-radius: 8px;
  padding: 30px clamp(20px, 4vw, 36px);
  box-shadow: 8px 9px 0 rgba(0, 0, 0, 0.35);
}
.member-card h3 { font-family: var(--font-display); color: var(--rojo); font-size: 1.2rem; margin-bottom: 14px; }
.member-card .muted { color: var(--tinta-soft); font-size: 0.9rem; }
.member-card .btn { margin-top: 14px; }

.fidelity-card { border: 2px dashed var(--amarillo-deep); }
.fidelity-card .kicker { margin-bottom: 8px; }
.fidelity-card b { font-size: 1.8rem; color: var(--rojo); }
.fidelity-card.off b { color: var(--tinta-soft); }
.fidelity-card p { font-size: 0.9rem; color: var(--tinta-soft); }

.res-list { display: grid; gap: 14px; }
.res-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: #fff;
  border: 1.5px solid rgba(52, 25, 26, 0.14);
  border-radius: 6px;
  padding: 14px 18px;
}
.res-when { display: flex; flex-direction: column; }
.res-when b { font-weight: 800; }
.res-when span { font-size: 0.82rem; color: var(--tinta-soft); }
.res-meta { display: flex; flex-direction: column; }
.res-meta b { font-weight: 600; }
.res-meta span { font-size: 0.82rem; color: var(--tinta-soft); }
.res-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 12px;
}
.res-badge.pending { background: rgba(242, 168, 15, 0.25); color: #8a6100; }
.res-badge.confirmed { background: rgba(30, 125, 50, 0.15); color: #1e7d32; }
.res-badge.cancelled { background: rgba(214, 48, 31, 0.14); color: var(--rojo-dark); }

/* boot flash guard on the account page */
.page-boot {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--noche);
  display: grid;
  place-items: center;
  transition: opacity 0.3s ease;
}
.page-boot.gone { opacity: 0; pointer-events: none; }
.boot-mark { position: relative; width: 90px; height: 90px; display: grid; place-items: center; }
.boot-mark img { width: 54px; }
.boot-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(242, 168, 15, 0.25);
  border-top-color: var(--amarillo);
  animation: bootspin 0.9s linear infinite;
}
@keyframes bootspin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Delete account + legal
   ========================================================================== */

.del-app { padding: calc(var(--nav-h) + 60px) 0 90px; }
.del-card {
  background: var(--crema);
  border-radius: 8px;
  box-shadow: 10px 12px 0 rgba(0, 0, 0, 0.4);
  padding: 44px clamp(22px, 5vw, 46px);
}
.del-card .section-title { font-size: 1.7rem; }
.del-card .auth-sub { text-align: left; }
.del-card .btn { margin-top: 10px; }
.del-block h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--rojo);
  margin: 26px 0 10px;
}
.del-list { list-style: none; }
.del-list li { position: relative; padding: 4px 0 4px 22px; font-size: 0.94rem; color: var(--tinta-soft); }
.del-list li::before {
  content: '';
  position: absolute;
  left: 4px; top: 12px;
  width: 8px; height: 8px;
  background: var(--amarillo);
  clip-path: polygon(50% 0%, 62% 36%, 100% 36%, 70% 58%, 82% 100%, 50% 74%, 18% 100%, 30% 58%, 0% 36%, 38% 36%);
}
.del-note { font-weight: 700; color: var(--rojo-dark); margin: 16px 0; }
.del-or { text-align: center; color: var(--tinta-soft); margin: 18px 0; font-size: 0.9rem; }

.legal { padding: calc(var(--nav-h) + 60px) 0 90px; }
.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 26px;
  color: var(--tinta);
}
.legal h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--rojo);
  margin: 30px 0 10px;
}
.legal p, .legal li { color: var(--tinta-soft); font-size: 0.97rem; }
.legal ul { padding-left: 22px; margin: 8px 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1240px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 26px;
    background: var(--noche);
    z-index: 65;
  }
  .nav-links.open a { color: var(--crema); font-size: 1.2rem; }
  .nav-links.open a:hover { color: var(--amarillo); }
  .nav.menu-open .nav-word { position: relative; z-index: 70; color: var(--amarillo); }
  .nav.menu-open .nav-bull { position: relative; z-index: 70; }
  .nav-right .lang-switch { display: none; }
  .mobile-only { display: block; }
  .burger { display: block; margin-left: auto; }
  .nav-right { margin-left: auto; }
  .nav-auth { display: none; }

  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-visual { max-width: 460px; }
  .afterwork-inner { grid-template-columns: 1fr; gap: 50px; }
  .spaces-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr; }
  #map { height: 340px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1241px) {
  .mobile-only { display: none; }
}

@media (max-width: 700px) {
  section { padding: 70px 0; }
  .hero { padding-top: calc(var(--nav-h) + 20px); min-height: auto; }
  .hero-sun { width: 140vw; left: -40vw; opacity: 0.8; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-images { min-height: 0; margin-bottom: 30px; }
  .about-images .img-main { width: 88%; }
  .about-images .img-accent { bottom: -26px; width: 56%; }
  .menu-cols { grid-template-columns: 1fr; }
  .menu-cat { padding: 26px 22px 22px; }
  .spaces-grid { grid-template-columns: 1fr; }
  .space-card { aspect-ratio: 4 / 3; }
  .gal-track img { width: 170px; height: 170px; border-width: 6px; }
  .contact-cards { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .auth-row, #signupForm { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .reserve-badge { width: 78px; height: 78px; right: 16px; bottom: 16px; }
  .reserve-badge .badge-center { width: 42px; height: 42px; }
  .ritual-arrow { display: none; }
  .reserve-panel::after { right: 8px; }
  .timepick-panel { grid-template-columns: repeat(2, 1fr); }
}
