/* ==========================================================================
   TAPEO: a Spanish tapas house in Rabat, drawn from its own walls.
   Oxide red out of the lacquered dining room, saffron out of the bar wall,
   olive out of the hand-painted wordmark, crema out of the printed carte.
   The bandera double rule (green over red) borrowed from the menu covers,
   chalk-wobble borders out of their own photography, a gingham ticket edge
   out of the paella tablecloth.
   Type: Bricolage Grotesque (display & numerals) · Albert Sans (body)
         · Caveat (the hand-marker voice).
   ========================================================================== */

:root {
  --rojo: #8c2422;
  --rojo-deep: #641715;
  --brasa: #3a1210;
  --azafran: #e3a93c;
  --azafran-deep: #b98426;
  --oliva: #4a7040;
  --oliva-deep: #35522e;
  --crema: #f7f1e6;
  --paper: #fdf9f0;
  --arena: #efe3cd;
  --tinta: #2b1b14;
  --tinta-soft: #6e5b4e;
  --line: rgba(43, 27, 20, 0.15);
  --crema-on-dark: #f7f1e6;
  --display: 'Bricolage Grotesque', 'Arial Black', sans-serif;
  --sans: 'Albert Sans', 'Segoe UI', sans-serif;
  --script: 'Caveat', 'Segoe Script', cursive;
  --count: 'Bricolage Grotesque', 'Arial Narrow', sans-serif;
  --shadow: 0 18px 44px rgba(58, 18, 16, 0.18);
  --shadow-soft: 0 10px 26px rgba(58, 18, 16, 0.11);
  --radius: 16px;
  /* the chalk wobble: a hand-drawn line that never quite closes evenly */
  --chalk: 255px 18px 225px 18px / 18px 225px 18px 255px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--tinta);
  background: var(--crema);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--azafran); color: var(--brasa); }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; }

/* ---------- shared section furniture ---------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rojo);
}
/* the tapa tag: a numbered order slip pinned at a slight angle */
.kicker .mm {
  font-family: var(--count);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--brasa);
  background: var(--azafran);
  border-radius: 4px 10px 4px 10px;
  padding: 5px 9px 4px;
  transform: rotate(-4deg);
}
.section-head.center .kicker { justify-content: center; }
.section-head.center .kicker::before,
.section-head.center .kicker::after {
  content: '';
  width: 40px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}

.section-title {
  font-size: clamp(33px, 4.4vw, 54px);
  margin: 12px 0 18px;
  color: var(--tinta);
  letter-spacing: -0.015em;
}
.t-script {
  font-family: var(--script);
  font-style: normal;
  font-weight: 600;
  font-size: 1.18em;
  color: var(--rojo);
}
.section-sub { color: var(--tinta-soft); max-width: 640px; }

.container { width: min(1180px, 92vw); margin: 0 auto; }
section { padding: 96px 0; position: relative; }
.section-head { margin-bottom: 44px; }
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin: 0 auto; }

/* ---------- buttons: painted saffron, set down like a plate ---------- */

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px 14px 4px 14px;
  border: 2px solid var(--tinta);
  background: transparent;
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, border-radius 0.25s ease;
}
.btn:hover { transform: translateY(-3px) rotate(-0.6deg); box-shadow: 0 6px 0 rgba(43, 27, 20, 0.2); border-radius: 14px 4px 14px 4px; }
.btn.solid {
  background: var(--azafran);
  border-color: var(--azafran);
  color: var(--brasa);
}
.btn.solid:hover { background: var(--azafran); border-color: var(--azafran); box-shadow: 0 6px 0 rgba(100, 23, 21, 0.45); }
.btn.ghost { border-color: currentColor; background: transparent; }
.hero-actions .btn.ghost, .contact-band .btn.ghost {
  color: var(--crema-on-dark);
  border-color: rgba(247, 241, 230, 0.65);
}
.hero-actions .btn.ghost:hover, .contact-band .btn.ghost:hover {
  box-shadow: 0 6px 0 rgba(227, 169, 60, 0.35);
}
.afterwork .btn.ghost { color: var(--brasa); border-color: rgba(43, 27, 20, 0.6); }
.btn:disabled { opacity: 0.55; cursor: wait; transform: none; box-shadow: none; }

/* ---------- navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  padding: 15px 0;
  color: var(--crema-on-dark);
  transition: background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}
.nav.scrolled {
  background: rgba(247, 241, 230, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--tinta);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px rgba(58, 18, 16, 0.07);
  padding: 9px 0;
}
.nav.menu-open, .nav.scrolled.menu-open { background: var(--brasa); color: var(--crema-on-dark); box-shadow: none; }
.nav .container { width: min(1320px, 94vw); }
.nav-inner { display: flex; align-items: center; gap: 26px; }
.nav-logo { flex: 0 0 auto; display: flex; }
.nav-logo img { height: 38px; width: auto; transition: height 0.3s ease; }
.nav .logo-on-light { display: none; }
.nav.scrolled .logo-on-dark { display: none; }
.nav.scrolled .logo-on-light { display: block; height: 33px; }
.nav.menu-open .logo-on-dark { display: block; }
.nav.menu-open .logo-on-light { display: none; }
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0 auto; }
.nav-right { display: flex; align-items: center; gap: 14px; list-style: none; }
.nav-links a, .nav-right a {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}
/* the underline is drawn by hand: it thickens and wobbles instead of sliding */
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  border-radius: 40% 60% 50% 50%;
  background: var(--azafran);
  transform: scaleX(0) rotate(-1deg);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav.scrolled .nav-links a::after { background: var(--rojo); }
.nav-links a:hover { color: var(--azafran); }
.nav.scrolled .nav-links a:hover { color: var(--rojo); }
.nav-links a:hover::after { transform: scaleX(1) rotate(-1deg); }
.nav-cta {
  border: 2px solid currentColor;
  border-radius: 4px 12px 4px 12px;
  padding: 8px 18px !important;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.nav-links > li > a, .nav-right > li > a { display: inline-block; }
.nav-cta:hover { background: var(--azafran); border-color: var(--azafran); color: var(--brasa) !important; }

.lang-switch {
  position: relative;
  display: inline-flex;
  border: 1px solid currentColor;
  border-radius: 4px 10px 4px 10px;
  overflow: hidden;
  font-size: 11px;
}
.lang-switch::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: var(--rojo);
  transition: transform 0.3s ease;
}
.lang-switch.on-fr::before { transform: translateX(100%); }
.lang-switch button {
  position: relative;
  z-index: 1;
  background: none;
  border: 0;
  color: inherit;
  padding: 6px 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.lang-switch button.active { color: #fff; }

.burger { display: none; background: none; border: 0; color: inherit; width: 40px; height: 34px; position: relative; z-index: 70; }
.burger span {
  position: absolute;
  left: 7px;
  right: 7px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}
.burger span:nth-child(1) { top: 9px; }
.burger span:nth-child(2) { top: 16px; }
.burger span:nth-child(3) { top: 23px; }
.burger.open span:nth-child(1) { top: 16px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 16px; transform: rotate(-45deg); }

/* ---------- hero: the red room ----------
   Not a photograph with text over it: the oxide-red wall of the dining room,
   a bull sketched on it in chalk, the wordmark painted large, and the room
   itself pinned to the right on a saffron mat, ¡Salud! scrawled beside it. */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--crema-on-dark);
  background:
    radial-gradient(1000px 700px at 85% -10%, rgba(140, 36, 34, 0.85), transparent 60%),
    radial-gradient(900px 700px at -10% 110%, rgba(30, 8, 7, 0.9), transparent 65%),
    linear-gradient(160deg, var(--rojo-deep), var(--brasa) 70%);
  overflow: hidden;
}
/* the chalk bull on the wall */
.hero-bull {
  position: absolute;
  right: -4vw;
  bottom: -3vw;
  width: clamp(340px, 44vw, 700px);
  color: rgba(247, 241, 230, 0.09);
  pointer-events: none;
  opacity: 0;
  animation: rise 1.6s 0.5s ease forwards;
}
/* a thin saffron thread along the foot of the wall */
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: rgba(227, 169, 60, 0.35);
}
.hero-grid {
  position: relative;
  z-index: 2;
  width: min(1240px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  padding: 130px 0 90px;
}
.hero-content { position: relative; }
.hero-over {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--azafran);
}
.hero-name { margin: 22px 0 0; }
.hero-name img { width: min(480px, 84%); height: auto; }
.hero-script {
  font-family: var(--script);
  font-weight: 600;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.15;
  color: var(--azafran);
  margin: 20px 0 8px;
  transform: rotate(-1.2deg);
}
.hero-tag { font-size: 13.5px; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.85; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

.hero-content > * { opacity: 0; transform: translateY(26px); animation: rise 0.9s ease 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.36s; }
.hero-content > *:nth-child(5) { animation-delay: 0.48s; }
.hero-content > *:nth-child(6) { animation-delay: 0.6s; }

.hero-hours {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  font-family: var(--count);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.14em;
  color: var(--azafran);
  border-top: 1px solid rgba(227, 169, 60, 0.35);
  padding-top: 16px;
}
.hero-hours .dia {
  width: 8px;
  height: 8px;
  background: var(--oliva);
  border-radius: 50% 40% 55% 45%;
  display: inline-block;
}
.hero-hours small {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(247, 241, 230, 0.75);
}

/* the room, pinned on its saffron mat */
.hero-visual { position: relative; opacity: 0; animation: rise 1s 0.3s ease forwards; }
.hero-visual .pill {
  position: relative;
  border-radius: 6px 26px 6px 26px;
  overflow: hidden;
  aspect-ratio: 4 / 5.2;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.hero-visual .pill img { width: 100%; height: 100%; object-fit: cover; animation: kb 26s ease-in-out infinite alternate; }
/* the mat behind, offset like a plate set down a little askew */
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  transform: translate(16px, 16px) rotate(1.4deg);
  background: transparent;
  border: 2px solid rgba(227, 169, 60, 0.55);
  border-radius: 6px 26px 6px 26px;
  pointer-events: none;
}
.hero-visual .pill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, transparent 55%, rgba(30, 8, 7, 0.5));
}
.hero-stamp {
  position: absolute;
  left: -14px;
  bottom: -26px;
  font-family: var(--script);
  font-weight: 700;
  font-size: clamp(36px, 3.4vw, 52px);
  color: var(--crema-on-dark);
  transform: rotate(-9deg);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.08); } }

/* ---------- the bandera strip ----------
   Green over red, exactly as the printed carte rules its covers. */

.mc-ticker {
  background: var(--crema);
  color: var(--tinta);
  overflow: hidden;
  padding: 12px 0;
  position: relative;
  border-top: 3px solid var(--oliva);
  border-bottom: 3px solid var(--rojo);
}
.mc-ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 44px;
  white-space: nowrap;
  animation: ticker 36s linear infinite;
  will-change: transform;
}
.mc-ticker span {
  font-family: var(--script);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.02em;
}
.mc-ticker b {
  width: 8px;
  height: 8px;
  background: var(--oliva);
  border-radius: 50% 40% 55% 45%;
  font-size: 0;
}
.mc-ticker b:nth-of-type(even) { background: var(--rojo); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- the reserve badge ---------- */

.reserve-badge {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 50;
  width: 106px;
  height: 106px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 12px 26px rgba(58, 18, 16, 0.35));
}
.reserve-badge svg { position: absolute; inset: 0; animation: spin 22s linear infinite; }
.reserve-badge svg text {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  fill: var(--rojo-deep);
}
.reserve-badge .badge-center {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.35s ease;
  background: var(--crema);
  border: 2px solid var(--rojo);
  display: grid;
  place-items: center;
}
.reserve-badge .badge-center img { width: 100%; height: 100%; object-fit: cover; }
.reserve-badge:hover .badge-center { transform: rotate(-10deg) scale(1.08); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- reveals ---------- */

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-36px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-left.visible { opacity: 1; transform: none; }
.reveal[data-delay='1'], .reveal-left[data-delay='1'] { transition-delay: 0.12s; }
.reveal[data-delay='2'], .reveal-left[data-delay='2'] { transition-delay: 0.24s; }
.reveal[data-delay='3'], .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; }
  .gal-track, .reserve-badge svg, .hero-visual .pill img, .mc-ticker-track, .hero-bull { animation: none !important; opacity: 1; }
  .hero video { display: none; }
}

/* ---------- about: la casa ---------- */

#about { padding-top: 110px; }
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.about-images { position: relative; padding-bottom: 80px; }
.about-images .img-main {
  width: 78%;
  border-radius: 6px 30px 6px 30px;
  aspect-ratio: 4 / 5;
  position: relative;
}
/* the saffron mat behind the paella */
.about-images::before {
  content: '';
  position: absolute;
  left: 5%;
  top: 5%;
  width: 78%;
  aspect-ratio: 4 / 5;
  border: 2px solid var(--azafran);
  border-radius: 6px 30px 6px 30px;
  transform: rotate(2deg);
  pointer-events: none;
}
.about-images .img-accent {
  position: absolute;
  right: 2%;
  bottom: 0;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 8px solid var(--crema);
  outline: 2px solid var(--rojo);
  box-shadow: var(--shadow);
}
.img-frame { overflow: hidden; box-shadow: var(--shadow-soft); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.img-frame:hover img { transform: scale(1.05); }
.about-text p { color: var(--tinta-soft); font-size: 16.5px; }
.about-sign {
  font-family: var(--script);
  font-weight: 600;
  font-size: 30px;
  color: var(--rojo);
  margin-top: 26px;
  line-height: 1.25;
  transform: rotate(-1deg);
}
.about-sign::before {
  content: '';
  display: block;
  width: 54px;
  height: 3px;
  border-radius: 40% 60% 50% 50%;
  background: var(--oliva);
  margin-bottom: 14px;
}

/* ---------- menu preview: the printed carte ---------- */

.menu-section {
  background: var(--paper);
  border-top: 3px solid var(--oliva);
  box-shadow: inset 0 3px 0 var(--paper), inset 0 6px 0 var(--rojo);
}
.menu-section .kicker { color: var(--rojo); }
.menu-section .section-title { color: var(--tinta); }
.menu-section .section-sub { color: var(--tinta-soft); }
.menu-section .container { position: relative; z-index: 1; }

.menu-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 46px; }
.menu-tabs button {
  background: none;
  border: 2px solid var(--line);
  border-radius: 4px 14px 4px 14px;
  color: var(--tinta-soft);
  padding: 11px 34px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}
.menu-tabs button.active { background: var(--rojo); border-color: var(--rojo); color: var(--crema); border-radius: 14px 4px 14px 4px; }

.menu-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 60px);
}
.menu-cat h3 {
  font-size: 22px;
  color: var(--rojo);
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
/* the olive on its pick, opening every category of the carte */
.menu-cat h3::before {
  content: '';
  width: 9px;
  height: 9px;
  background: var(--oliva);
  border-radius: 50% 40% 55% 45%;
  flex: 0 0 auto;
}
.menu-cat h3::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
  transform: translateY(-6px);
}
.menu-cat-sub {
  font-family: var(--script);
  font-size: 19px;
  font-weight: 500;
  color: var(--oliva);
  letter-spacing: 0.01em;
  margin: 0 0 10px;
}
.menu-item { display: flex; align-items: baseline; gap: 10px; padding: 9px 0 2px; }
.menu-item .mi-name { font-weight: 600; font-size: 15.5px; }
.menu-item .mi-dots { flex: 1; border-bottom: 1.5px dotted rgba(43, 27, 20, 0.28); transform: translateY(-4px); }
.menu-item .mi-price { font-family: var(--count); font-weight: 700; font-size: 16px; letter-spacing: 0.03em; color: var(--rojo); white-space: nowrap; }
.menu-item-desc { color: var(--tinta-soft); margin: 0 0 4px; padding-right: 46px; font-size: 13.5px; }
.menu-actions { text-align: center; margin-top: 54px; }
.menu-section .btn { border-color: var(--rojo); color: var(--rojo); }
.menu-section .btn:hover { background: var(--rojo); color: var(--crema); }

.btn.wa-btn { display: inline-flex; align-items: center; gap: 10px; }
.btn.wa-btn:hover { background: var(--oliva); border-color: var(--oliva); color: var(--crema); }
.btn.wa-btn.busy { opacity: 0.6; pointer-events: none; }
.btn.wa-btn svg { width: 17px; height: 17px; fill: currentColor; }

.menu-page { padding-top: 70px; }
.menu-page .promo-notice { margin-bottom: 30px; }
.menu-cat.two-way .mi-price { min-width: 74px; text-align: right; }
.menu-cat.two-way .mi-price.alt { min-width: 84px; }
.menu-item.mi-head { padding-bottom: 0; }
.menu-item.mi-head .mi-price {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tinta-soft);
}

/* ---------- the classics: four plates, one house ---------- */

#spaces { background: var(--crema); }
.spaces-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 30px); }
.space-card {
  position: relative;
  text-align: left;
  transition: transform 0.4s ease;
}
.space-card:hover { transform: translateY(-8px) rotate(-0.5deg); }
.space-card img {
  width: 100%;
  aspect-ratio: 3 / 3.8;
  object-fit: cover;
  border-radius: 6px 22px 6px 22px;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.4s ease, filter 0.4s ease;
  filter: saturate(0.95);
}
.space-card:hover img { box-shadow: var(--shadow); filter: saturate(1.06); }
/* the bandera rule across the top of every plate */
.space-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 6px;
  border-top: 3px solid var(--oliva);
  border-bottom: 3px solid var(--rojo);
  z-index: 1;
}
.space-card figcaption { padding-top: 16px; }
.space-card figcaption::before {
  content: '';
  display: block;
  width: 34px;
  height: 3px;
  border-radius: 40% 60% 50% 50%;
  background: var(--azafran-deep);
  margin-bottom: 10px;
  transition: width 0.35s ease, background 0.35s ease;
}
.space-card:hover figcaption::before { width: 58px; background: var(--rojo); }
.space-card figcaption span { font-family: var(--display); font-weight: 700; font-size: 21px; color: var(--rojo); display: block; }
.space-card figcaption small:empty { display: none; }
.space-card figcaption small { color: var(--tinta-soft); font-family: var(--script); font-size: 17px; }

/* ---------- la barra: the saffron wall ---------- */

.afterwork {
  background:
    radial-gradient(800px 500px at 110% 0%, rgba(185, 132, 38, 0.5), transparent 60%),
    var(--azafran);
  color: var(--tinta);
  position: relative;
  overflow: hidden;
}
.afterwork .kicker { color: var(--rojo-deep); }
.afterwork .kicker .mm { background: var(--brasa); color: var(--azafran); }
.afterwork .section-title { color: var(--brasa); }
.afterwork .t-script { color: #fff; text-shadow: 0 2px 12px rgba(100, 23, 21, 0.3); }
.afterwork-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.afterwork-copy .section-title { margin-bottom: 10px; }
.afterwork-copy p { color: rgba(43, 27, 20, 0.8); }
.afterwork-time {
  font-family: var(--script);
  font-weight: 700;
  font-size: 27px;
  color: var(--rojo-deep);
  margin-bottom: 12px;
  transform: rotate(-1deg);
}
.afterwork-copy .btn { margin-top: 26px; }
/* the card chalked straight onto the wall, as in their own photographs */
.afterwork-list {
  background: transparent;
  border: 2.5px solid rgba(253, 249, 240, 0.9);
  border-radius: var(--chalk);
  padding: 32px 36px;
  position: relative;
}
.afterwork-list::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1.5px solid rgba(253, 249, 240, 0.45);
  border-radius: var(--chalk);
  pointer-events: none;
}
.aw-row { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; }
.aw-name { font-weight: 600; color: var(--brasa); }
.aw-dots { flex: 1; border-bottom: 1.5px dotted rgba(43, 27, 20, 0.4); transform: translateY(-4px); }
.aw-price { font-family: var(--count); font-weight: 700; font-size: 16px; letter-spacing: 0.03em; color: var(--rojo-deep); white-space: nowrap; }

/* ---------- gallery marquee ---------- */

.gallery-section { background: var(--paper); overflow: hidden; }
.gal-rows { display: grid; gap: 18px; }
.gal-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.gal-track { display: inline-flex; gap: 18px; animation: slide 42s linear infinite; will-change: transform; }
.gal-marquee.reverse .gal-track { animation-direction: reverse; }
.gal-marquee:hover .gal-track { animation-play-state: paused; }
.gal-track img {
  height: 250px;
  width: auto;
  border-radius: 4px 16px 4px 16px;
  cursor: zoom-in;
  transition: transform 0.4s ease, filter 0.4s ease;
}
.gal-track img:nth-child(even) { border-radius: 16px 4px 16px 4px; }
.gal-track img:hover { transform: translateY(-6px) rotate(-0.8deg); filter: brightness(1.06); }
@keyframes slide { to { transform: translateX(-50%); } }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(30, 8, 7, 0.95);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: min(1000px, 90vw);
  max-height: 84vh;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lightbox button {
  position: absolute;
  background: rgba(247, 241, 230, 0.08);
  border: 1px solid rgba(227, 169, 60, 0.5);
  color: var(--azafran);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 20px;
  display: grid;
  place-items: center;
  transition: background 0.25s ease;
}
.lightbox button:hover { background: var(--rojo); border-color: var(--rojo); color: #fff; }
.lb-close { top: 26px; right: 26px; }
.lb-prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 26px; top: 50%; transform: translateY(-50%); }

/* ---------- hours & map ---------- */

#hours { background: var(--crema); }
#hours .kicker { color: var(--rojo); }
.info-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 5vw, 80px); align-items: start; }
.info-grid.no-map { grid-template-columns: 1fr; }
.hours-list { list-style: none; }
.hours-list li { display: flex; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.hours-list .day-col { display: flex; flex-direction: column; }
.hours-list .day { font-weight: 600; letter-spacing: 0.04em; }
.hours-list .day-note { color: var(--rojo); font-family: var(--script); font-size: 16px; }
.hours-list .dots { flex: 1; }
.hours-list .time { font-family: var(--count); font-weight: 600; font-size: 17px; letter-spacing: 0.08em; color: var(--rojo); }
.hours-list .closed { color: var(--rojo-deep); font-weight: 700; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.contact-lines { margin-top: 28px; display: grid; gap: 9px; color: var(--tinta-soft); }
.contact-lines a:hover { color: var(--rojo); }
.contact-lines strong { color: var(--rojo); }

#map {
  height: 430px;
  border-radius: 6px 30px 6px 30px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 3px solid var(--azafran);
  z-index: 1;
}
.map-pin { position: relative; width: 22px; height: 22px; }
.map-pin::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--rojo);
  border: 3px solid var(--crema);
  box-shadow: 0 4px 12px rgba(58, 18, 16, 0.4);
}
.map-pin::after {
  content: '';
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 2px solid var(--rojo);
  animation: ping 1.8s ease-out infinite;
}
@keyframes ping {
  from { transform: scale(0.55); opacity: 0.9; }
  to { transform: scale(1.25); opacity: 0; }
}
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--paper); color: var(--tinta); }
.leaflet-popup-content a { color: var(--rojo); font-weight: 600; }

/* ---------- contact band ---------- */

.contact-band {
  position: relative;
  color: var(--crema-on-dark);
  background: url('/images/contact-bg.jpg') center/cover fixed no-repeat;
  overflow: hidden;
}
.contact-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(58, 18, 16, 0.93), rgba(100, 23, 21, 0.88));
}
.contact-band > .container { position: relative; z-index: 1; }
.contact-inner { text-align: center; }
.contact-inner .section-title { color: #fff; }
.contact-inner .t-script { color: var(--azafran); }
.contact-band .kicker { color: var(--azafran); }
.contact-lead { max-width: 560px; margin: 0 auto 40px; color: rgba(247, 241, 230, 0.85); }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  background: rgba(247, 241, 230, 0.06);
  border: 1.5px solid rgba(227, 169, 60, 0.35);
  border-radius: 5px 18px 5px 18px;
  padding: 16px 18px;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
a.contact-card:hover { transform: translateY(-4px) rotate(-0.5deg); background: rgba(247, 241, 230, 0.11); border-color: rgba(227, 169, 60, 0.7); }
.cc-icon {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 4px 14px 4px 14px;
  display: grid;
  place-items: center;
  background: var(--azafran);
}
.cc-icon svg { width: 18px; height: 18px; fill: var(--brasa); }
.cc-body { display: flex; flex-direction: column; min-width: 0; }
.cc-body small { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--azafran); }
.cc-body b { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.contact-band .socials { margin-top: 36px; justify-content: center; }

/* ---------- reservation: your table, on the gingham cloth ---------- */

.reserve-section { background: var(--rojo-deep); padding-bottom: 120px; }
.reserve-section .kicker { color: var(--rojo); }
.reserve-panel {
  background: var(--paper);
  border-radius: 8px 26px 8px 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  padding: clamp(34px, 5vw, 64px);
  padding-top: clamp(48px, 6vw, 78px);
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
/* the gingham edge: the paella tablecloth, folded over the top of the card */
.reserve-panel::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 22px;
  background:
    repeating-linear-gradient(90deg, rgba(140, 36, 34, 0.85) 0 14px, rgba(140, 36, 34, 0.25) 14px 28px),
    repeating-linear-gradient(0deg, rgba(253, 249, 240, 0.4) 0 7px, transparent 7px 14px),
    var(--crema);
}
.reserve-panel::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 26px;
  border-top: 2px dashed rgba(43, 27, 20, 0.2);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; margin-top: 34px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tinta-soft); }
.form-field input, .form-field select {
  background: var(--crema);
  border: 1.5px solid var(--line);
  border-radius: 4px 12px 4px 12px;
  color: var(--tinta);
  padding: 13px 16px;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-field input:focus, .form-field select:focus {
  outline: none;
  border-color: var(--rojo);
  box-shadow: 0 0 0 3px rgba(140, 36, 34, 0.14);
}
.form-field input::placeholder { color: rgba(110, 91, 78, 0.55); }
.form-field select { appearance: none; }
.form-field input[type='date'], .form-field input[type='time'] { color-scheme: light; }
.phone-row { display: grid; grid-template-columns: 118px 1fr; gap: 10px; }
.form-note { font-size: 13px; color: var(--tinta-soft); text-align: center; margin-top: 16px; }
.form-submit { text-align: center; margin-top: 30px; }
.form-msg { text-align: center; margin-top: 14px; font-weight: 500; min-height: 22px; }
.form-msg.ok { color: var(--oliva-deep); }
.form-msg.err { color: var(--rojo); }
.field-note { font-size: 12px; color: var(--tinta-soft); }
.prefill-note { font-size: 13px; color: var(--oliva-deep); margin-top: 10px; }

/* ---------- time picker ---------- */

.timepick { position: relative; }
.timepick-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--crema);
  border: 1.5px solid var(--line);
  border-radius: 4px 12px 4px 12px;
  color: rgba(110, 91, 78, 0.85);
  padding: 13px 16px;
  font-size: 15px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.timepick-btn:hover { border-color: var(--rojo); }
.timepick-btn.open { border-color: var(--rojo); box-shadow: 0 0 0 3px rgba(140, 36, 34, 0.14); }
.timepick-btn.chosen { color: var(--tinta); }
.timepick-btn .tp-caret {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s ease;
}
.timepick-btn.open .tp-caret { transform: rotate(-135deg) translateY(-2px); }
.timepick-btn svg { width: 17px; height: 17px; fill: var(--rojo); flex: 0 0 auto; }
.timepick-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 250px;
  overflow: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 10px;
}
.timepick-panel[hidden] { display: none; }
.timepick-slot {
  background: var(--crema);
  border: 1px solid transparent;
  border-radius: 4px 10px 4px 10px;
  color: var(--tinta);
  padding: 9px 0;
  font-family: var(--count);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 14px;
  transition: all 0.2s ease;
}
.timepick-slot:hover { border-color: var(--rojo); color: var(--rojo); }
.timepick-slot.on { background: var(--rojo); color: var(--crema); }
.timepick-panel::-webkit-scrollbar { width: 8px; }
.timepick-panel::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }

/* ---------- footer ---------- */

footer {
  background: var(--brasa);
  color: rgba(247, 241, 230, 0.8);
  padding: 90px 0 34px;
  position: relative;
  overflow: hidden;
}
.footer-word {
  font-family: var(--script);
  font-weight: 700;
  font-size: clamp(130px, 20vw, 300px);
  letter-spacing: 0.01em;
  line-height: 0.7;
  color: rgba(227, 169, 60, 0.05);
  position: absolute;
  left: 50%;
  top: 60px;
  transform: translateX(-50%) rotate(-3deg);
  white-space: nowrap;
  pointer-events: none;
}
.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(227, 169, 60, 0.2);
}
.footer-grid h4 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--azafran);
  margin-bottom: 18px;
}
.footer-grid p, .footer-grid a, .footer-grid li { font-size: 14.5px; line-height: 2; }
.footer-grid a:hover { color: var(--azafran); }
.footer-grid ul { list-style: none; }
.footer-logo { height: 48px; width: auto; margin-bottom: 18px; }
.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a {
  width: 40px;
  height: 40px;
  border-radius: 4px 13px 4px 13px;
  overflow: hidden;
  display: grid;
  place-items: center;
  transition: transform 0.3s ease;
  background: rgba(247, 241, 230, 0.08);
}
.socials a img { width: 100%; height: 100%; object-fit: cover; }
.socials a:hover { transform: translateY(-4px) rotate(-4deg); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 26px;
  font-size: 13px;
  position: relative;
}
.footer-bottom a:hover { color: var(--azafran); }

/* ---------- inner page hero ---------- */

.page-hero {
  position: relative;
  min-height: 46vh;
  display: grid;
  place-items: end center;
  text-align: center;
  color: var(--crema-on-dark);
  overflow: hidden;
  padding-bottom: 60px;
  background: var(--rojo-deep);
  border-bottom: 3px solid var(--oliva);
}
.page-hero .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(58, 18, 16, 0.68), rgba(100, 23, 21, 0.84));
}
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.page-hero .hero-video { position: absolute; inset: 0; }
.page-hero .hero-bg { position: absolute; inset: 0; }
.page-hero h1 { position: relative; z-index: 2; font-size: clamp(44px, 7vw, 80px); color: #fff; }
.page-hero .kicker { color: var(--azafran); }
.page-hero .t-script { color: var(--azafran); }

/* ---------- legal pages ---------- */

.legal { max-width: 760px; margin: 0 auto; padding: 150px 0 90px; }
.legal h1 { font-size: clamp(36px, 5vw, 54px); margin-bottom: 24px; }
.legal h2 { font-size: 24px; margin: 36px 0 12px; color: var(--rojo); }
.legal p, .legal li { color: var(--tinta-soft); font-size: 15.5px; }
.legal ul { padding-left: 22px; }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 80px);
  background: var(--oliva-deep);
  color: var(--crema);
  padding: 14px 26px;
  border-radius: 5px 16px 5px 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 95;
  font-size: 14.5px;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */

@media (min-width: 1500px) {
  .spaces-grid { gap: 34px; }
  .menu-cols { gap: 70px; }
}

@media (max-width: 1340px) {
  .reserve-badge { right: 18px; bottom: 18px; width: 92px; height: 92px; }
}

@media (max-width: 1024px) {
  .nav-inner { gap: 16px; }
  .nav-logo img { height: 30px; }
  .nav.scrolled .logo-on-light { height: 27px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 11.5px; }
  .nav-links .nav-cta { padding: 8px 16px !important; }
  .nav-links li { list-style: none; }
  .nav-links .lang-switch { font-size: 10px; }
  .hero-grid { grid-template-columns: 1fr 0.8fr; }
}

@media (max-width: 900px) {
  section { padding: 72px 0; }

  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--brasa);
    color: var(--crema-on-dark);
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 60;
  }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 19px; letter-spacing: 0.18em; }
  .nav-links .nav-cta { padding: 12px 28px !important; }
  .nav-links li { opacity: 1; }
  .nav-links .lang-switch { font-size: 12px; }
  .nav-links.open li { opacity: 0; transform: translateY(14px); animation: rise 0.5s ease forwards; }
  .nav-links.open li:nth-child(1) { animation-delay: 0.05s; }
  .nav-links.open li:nth-child(2) { animation-delay: 0.1s; }
  .nav-links.open li:nth-child(3) { animation-delay: 0.15s; }
  .nav-links.open li:nth-child(4) { animation-delay: 0.2s; }
  .nav-links.open li:nth-child(5) { animation-delay: 0.25s; }
  .nav-links.open li:nth-child(6) { animation-delay: 0.3s; }
  .nav-links.open li:nth-child(7) { animation-delay: 0.35s; }
  .nav-links.open li:nth-child(8) { animation-delay: 0.4s; }
  .nav-right { display: none; }
  .nav-links .mobile-only { display: block; }
  .burger { display: block; }
  .nav-simple .nav-links { position: static; transform: none; background: none; flex-direction: row; }
  .nav-simple .nav-links li { display: inline-block; }
  .nav-simple .nav-links a { font-size: 12px; }

  .hero-grid { grid-template-columns: 1fr; padding: 120px 0 80px; gap: 44px; }
  .hero-visual { max-width: 420px; }
  .hero-bull { width: 340px; right: -60px; bottom: -30px; }

  .about-grid, .info-grid { grid-template-columns: 1fr; }
  .afterwork-inner { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  #map { height: 330px; border-radius: var(--radius); margin-top: 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .reserve-section { padding-bottom: 90px; }
  .spaces-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-cols { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 901px) {
  .nav-links .mobile-only { display: none; }
}

@media (max-width: 720px) {
  .gal-track img { height: 190px; }
  .hero-actions .btn { padding: 13px 26px; font-size: 12px; }
  .hero-tag { font-size: 11.5px; letter-spacing: 0.22em; }
  .hero-name img { width: min(380px, 92%); }
  .mc-ticker span { font-size: 21px; }
}

@media (max-width: 560px) {
  .spaces-grid { grid-template-columns: 1fr; }
  .space-card img { aspect-ratio: 3 / 3.1; }
  .menu-cols { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .menu-item { flex-wrap: wrap; }
  .menu-item .mi-name { flex: 1 1 60%; }
  .menu-item .mi-dots { display: none; }
  .menu-cat.two-way .menu-item { flex-wrap: nowrap; }
  .menu-cat.two-way .mi-name { flex: 1; }
  .menu-cat.two-way .mi-dots { display: block; }
  .menu-cat.two-way .mi-price { min-width: 58px; font-size: 15px; }
  .menu-cat.two-way .mi-price.alt { min-width: 66px; }
  .menu-cat.two-way .mi-head .mi-price { font-size: 10px; }
  .reserve-badge { display: none; }
}

@media (prefers-reduced-motion: reduce), (max-width: 720px) {
  .contact-band { background-attachment: scroll; }
}

/* ==========================================================================
   Account, deals, reset & delete pages
   ========================================================================== */

/* Sign in / Sign up: olive fills, so they read apart from the saffron CTA */
.nav-auth {
  background: var(--oliva);
  color: #fff !important;
  border-radius: 4px 12px 4px 12px;
  padding: 9px 18px !important;
  font-weight: 700;
  transition: background 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.nav-auth:hover {
  background: var(--oliva-deep);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 0 rgba(58, 18, 16, 0.2);
}
.nav-auth.signed-in { background: var(--rojo); }
.nav-auth.signed-in:hover { background: var(--rojo-deep); }

.page-account { min-height: 100vh; position: relative; }
.page-account::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('/images/account-bg.jpg') center/cover no-repeat;
  z-index: -2;
}
.page-account::after {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(247, 241, 230, 0.93), rgba(247, 241, 230, 0.97));
  z-index: -1;
}
.page-account .nav { position: sticky; top: 0; }
.page-account .nav-logo img { height: 30px; }
.account-main { padding: 60px 0 90px; }
.account-main > .container { width: min(1080px, 92vw); }
.page-account footer { margin-top: 0; }
.page-account .footer-word { display: none; }
.account-main section { padding: 30px 0; }

.auth-wrap { display: grid; place-items: center; padding: 30px 0; }
.auth-card {
  width: min(520px, 100%);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px 24px 8px 24px;
  box-shadow: var(--shadow);
  padding: clamp(30px, 5vw, 50px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* the bandera across the top of the card */
.auth-card::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 9px;
  background: linear-gradient(180deg, var(--oliva) 0 4px, var(--paper) 4px 5px, var(--rojo) 5px 9px);
}
.auth-logo { height: 44px; width: auto; margin: 10px auto 18px; }
.auth-card .section-title { font-size: clamp(28px, 4vw, 38px); }
.auth-sub { color: var(--tinta-soft); font-size: 14.5px; margin-bottom: 26px; }
.auth-form { display: grid; gap: 16px; text-align: left; }
#signupForm { grid-template-columns: 1fr 1fr; }
#signupForm .full { grid-column: 1 / -1; }
.auth-form label { display: grid; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tinta-soft); }
.auth-form input {
  background: var(--crema);
  border: 1.5px solid var(--line);
  border-radius: 4px 12px 4px 12px;
  color: var(--tinta);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.auth-form input:focus { outline: none; border-color: var(--rojo); box-shadow: 0 0 0 3px rgba(140, 36, 34, 0.14); }
.auth-form .btn { margin-top: 8px; }
.auth-form .btn.ghost { border-color: var(--rojo); color: var(--rojo); }
.auth-hint { font-size: 12px; color: var(--tinta-soft); text-transform: none; letter-spacing: 0; font-weight: 400; }
.gender-row { display: flex; gap: 8px; }
.gender-row button {
  flex: 1;
  background: var(--crema);
  border: 1.5px solid var(--line);
  border-radius: 4px 10px 4px 10px;
  color: var(--tinta-soft);
  padding: 10px 0;
  font-size: 13px;
  transition: all 0.25s ease;
}
.gender-row button:hover { border-color: var(--rojo); }
.gender-row button.active { background: var(--rojo); border-color: var(--rojo); color: var(--crema); }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.auth-msg { min-height: 20px; font-size: 14px; margin-top: 12px; }
.auth-msg.err { color: var(--rojo); }
.auth-msg.ok { color: var(--oliva-deep); }
.auth-switch { font-size: 14px; color: var(--tinta-soft); margin-top: 18px; }
.auth-switch a { color: var(--rojo); font-weight: 600; }
.pending-title { font-size: 26px; }

.member-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 10px; }
.member-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px 20px 6px 20px;
  box-shadow: var(--shadow-soft);
  padding: 26px 28px;
}
.member-card h3 { font-size: 21px; margin-bottom: 12px; }
.member-card .btn { margin-top: 14px; padding: 11px 24px; font-size: 12px; }
.member-card .muted { color: var(--tinta-soft); font-size: 14px; }
.fidelity-card { background: linear-gradient(135deg, var(--brasa), var(--rojo)); color: var(--crema-on-dark); border: 0; }
.fidelity-card .kicker { color: var(--azafran); }
.fidelity-card b { font-family: var(--count); font-weight: 700; font-size: 40px; display: block; line-height: 1.1; }
.fidelity-card p { font-size: 13.5px; color: rgba(247, 241, 230, 0.85); }
.fidelity-card.off b { font-size: 22px; }
.member-heading { font-size: 27px; margin: 40px 0 16px; }

.res-list { display: grid; gap: 14px; }
.res-card {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 24px;
  box-shadow: var(--shadow-soft);
}
.res-when { display: flex; flex-direction: column; min-width: 120px; }
.res-when b { font-family: var(--count); font-weight: 700; letter-spacing: 0.04em; font-size: 19px; }
.res-when span { color: var(--tinta-soft); font-size: 13.5px; }
.res-meta { display: flex; flex-direction: column; }
.res-meta b { font-weight: 600; }
.res-meta span { color: var(--tinta-soft); font-size: 13.5px; }
.res-badge {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px 10px 4px 10px;
  padding: 7px 16px;
}
.res-badge.pending { background: rgba(227, 169, 60, 0.2); color: var(--azafran-deep); }
.res-badge.confirmed { background: rgba(74, 112, 64, 0.16); color: var(--oliva-deep); }
.res-badge.cancelled { background: rgba(43, 27, 20, 0.08); color: var(--tinta-soft); }

.hidden { display: none !important; }

@media (max-width: 860px) {
  .member-grid { grid-template-columns: 1fr; }
  .res-card { flex-wrap: wrap; gap: 10px 20px; }
  .res-when { min-width: 0; }
}
@media (max-width: 560px) {
  #signupForm { grid-template-columns: 1fr; }
  .auth-card { padding: 28px 20px; }
  .account-main { padding-top: 30px; }
}

.auth-logo + .section-title { margin-top: 0; }
.auth-form select {
  background: var(--crema);
  border: 1.5px solid var(--line);
  border-radius: 4px 12px 4px 12px;
  color: var(--tinta);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
}
.auth-form select:focus { outline: none; border-color: var(--rojo); }
.auth-form select option { background: var(--paper); color: var(--tinta); }

.pw-wrap { position: relative; display: grid; }
.pw-wrap input { padding-right: 46px; }
.pw-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  color: var(--tinta-soft);
  opacity: 0.8;
}
.pw-eye svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pw-eye .eye-shut { display: none; }
.pw-eye.on .eye-open { display: none; }
.pw-eye.on .eye-shut { display: block; }
.pw-eye:hover { opacity: 1; color: var(--rojo); }

.auth-form label.stay-row {
  display: flex;
  align-items: center;
  gap: 9px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--tinta-soft);
}
.stay-row input { accent-color: var(--rojo); width: 16px; height: 16px; }
.stay-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stay-line .stay-row { margin: 0; }
.forgot-link { font-size: 13px; color: var(--rojo); font-weight: 600; text-transform: none; letter-spacing: 0; }
.forgot-link:hover { text-decoration: underline; }
.birthday-note { font-size: 12px; color: var(--tinta-soft); text-transform: none; letter-spacing: 0; font-weight: 400; }

/* ---------- deals ---------- */

.mi-was { color: var(--tinta-soft); opacity: 0.75; margin-right: 8px; font-size: 0.85em; }
.mi-deal { color: var(--oliva-deep); }
.menu-section .mi-deal { color: var(--oliva-deep); }
.nav-deals { color: var(--azafran) !important; }
.nav.scrolled .nav-deals { color: var(--rojo) !important; }

.deals-main { padding: 130px 0 90px; min-height: 70vh; }
.deals-main .section-head { text-align: center; }
.deals-empty { text-align: center; color: var(--tinta-soft); max-width: 440px; margin: 40px auto 0; }
.deals-empty .contact-actions { margin-top: 24px; }
.deal-group h2 { font-size: 27px; margin: 44px 0 18px; }
.deal-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.deal-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px 20px 6px 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.deal-card:hover { transform: translateY(-5px) rotate(-0.4deg); box-shadow: var(--shadow); }
.deal-card img { width: 100%; height: 170px; object-fit: cover; }
.deal-body { padding: 18px 20px 20px; }
.deal-body h3 { font-size: 19px; }
.deal-body p { color: var(--tinta-soft); font-size: 13.5px; margin-top: 4px; }
.deal-prices { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; font-family: var(--count); }
.deal-prices s { color: var(--tinta-soft); font-size: 15px; }
.deal-prices b { color: var(--oliva-deep); font-size: 21px; font-weight: 700; letter-spacing: 0.02em; }
.deal-badge {
  display: inline-block;
  background: var(--rojo);
  color: var(--crema);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 3px 9px 3px 9px;
  padding: 4px 12px;
  margin-bottom: 10px;
}
@media (max-width: 860px) { .deal-cards { grid-template-columns: 1fr; } }

/* ---------- delete account ---------- */

.del-card { text-align: left; width: min(640px, 100%); }
.del-card .section-title { text-align: center; }
.del-card .auth-sub { text-align: center; }
.del-block h2 { font-size: 20px; margin: 26px 0 10px; color: var(--rojo); }
.del-list { list-style: none; display: grid; gap: 8px; }
.del-list li { position: relative; padding-left: 22px; color: var(--tinta-soft); font-size: 14.5px; }
.del-list li::before { content: ''; position: absolute; left: 4px; top: 10px; width: 8px; height: 8px; border-radius: 50% 40% 55% 45%; background: var(--rojo); }
.del-note { font-size: 13.5px; color: var(--rojo); font-weight: 600; margin-top: 16px; }
.del-or { text-align: center; color: var(--tinta-soft); margin: 18px 0; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; }
.del-app { background: var(--crema); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; font-size: 14.5px; color: var(--tinta-soft); }
.del-card .btn { width: 100%; }
.btn.danger { background: #a8402f; border-color: #a8402f; color: #fff; }
.btn.danger:hover { background: #8c3323; border-color: #8c3323; }

/* ---------- boot veil ---------- */

.page-boot {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--rojo-deep);
  transition: opacity 0.45s ease;
}
.page-boot.gone { opacity: 0; pointer-events: none; }
.boot-mark { position: relative; display: grid; place-items: center; }
.boot-mark img { height: 44px; width: auto; }
.boot-ring {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--azafran);
  border-right-color: var(--oliva);
  animation: spin 1.1s linear infinite;
}

/* ---------- promo banner ---------- */

.promo-banner {
  position: relative;
  z-index: 55;
  background: var(--oliva);
  color: var(--crema);
  overflow: hidden;
  padding: 11px 0;
}
.promo-track {
  display: inline-flex;
  gap: 60px;
  white-space: nowrap;
  animation: promoslide 26s linear infinite;
  will-change: transform;
  padding-left: 100%;
}
.promo-banner:hover .promo-track { animation-play-state: paused; }
.promo-banner-text { font-size: 13.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
a.promo-banner-text:hover { text-decoration: underline; }
@keyframes promoslide {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.promo-notice {
  background: rgba(74, 112, 64, 0.1);
  border: 1px solid rgba(74, 112, 64, 0.35);
  color: var(--oliva-deep);
  border-radius: 5px 14px 5px 14px;
  padding: 12px 18px;
  font-size: 14px;
  text-align: center;
}
.promo-notice.hidden { display: none; }

/* ---------- the evening rail ---------- */

.ritual-section { background: var(--crema); padding-bottom: 110px; }
.ritual-stage { position: relative; width: min(1320px, 96vw); margin: 0 auto; }
.ritual-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ritual-track {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ritual-track::-webkit-scrollbar { display: none; }
.ritual-card {
  flex: 0 0 auto;
  width: clamp(230px, 24vw, 320px);
  background: none;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  border-radius: 6px 24px 6px 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}
.ritual-card:nth-child(even) { border-radius: 24px 6px 24px 6px; }
/* the chalk line drawn just inside the print */
.ritual-card::after {
  content: '';
  position: absolute;
  inset: 9px;
  border: 1.5px solid rgba(247, 241, 230, 0.55);
  border-radius: var(--chalk);
  pointer-events: none;
}
.ritual-card img { width: 100%; aspect-ratio: 52 / 68; object-fit: cover; }
.ritual-card:hover { transform: translateY(-8px) rotate(-0.6deg); box-shadow: var(--shadow); }
.ritual-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--rojo);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.ritual-arrow.prev { left: -6px; }
.ritual-arrow.next { right: -6px; }
.ritual-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ritual-arrow:hover { background: var(--rojo); border-color: var(--rojo); color: #fff; }
.ritual-arrow:active { transform: translateY(-50%) scale(0.94); }
.ritual-arrow:focus-visible { outline: 2px solid var(--rojo); outline-offset: 2px; }

@media (max-width: 760px) {
  .ritual-arrow { width: 42px; height: 42px; }
  .ritual-arrow svg { width: 16px; height: 16px; }
}
