:root {
  --ink: #171512;
  --ink-soft: #625d56;
  --ivory: #f7efe3;
  --paper: #fffaf3;
  --vermilion: #df2b11;
  --orange: #f24b0a;
  --wood: #9a4b12;
  --tea: #315944;
  --sakura: #e9b8b1;
  --line: rgba(23, 21, 18, 0.16);
  --shadow: 0 18px 50px rgba(48, 30, 15, 0.14);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #007a70;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.staging-ribbon {
  background: #fff1c9;
  border-bottom: 1px solid #d8b767;
  color: #4c3a10;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 16px;
  text-align: center;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(23, 21, 18, 0.11);
  background: rgba(247, 239, 227, 0.95);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(calc(100% - 32px), var(--max));
  min-height: 74px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 170px 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
}

.brand-link img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand-link span {
  font-size: 14px;
  line-height: 1.05;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-color: var(--vermilion);
  color: var(--vermilion);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-home {
  display: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  width: 20px;
  height: 2px;
  display: block;
  margin: 4px auto;
  background: var(--ink);
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--vermilion);
  color: #fff;
}

.button.primary:hover {
  background: #b8210d;
}

.button.secondary {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.button.light {
  background: #fff;
  color: var(--ink);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.container {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
}

.section {
  padding: 84px 0;
}

.section.compact {
  padding: 56px 0;
}

.section.dark {
  background: var(--ink);
  color: #fff;
}

.section.white {
  background: var(--paper);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--vermilion);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(48px, 7vw, 96px);
}

h2 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(36px, 4.6vw, 62px);
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.lead {
  max-width: 720px;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 22px);
}

.dark .lead,
.dark .muted {
  color: rgba(255, 255, 255, 0.72);
}

.hero {
  min-height: min(700px, calc(100dvh - 154px));
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #ead7c2 url("../images/brand/fondo-hero-joki.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247, 239, 227, 0.98) 0%, rgba(247, 239, 227, 0.83) 35%, rgba(247, 239, 227, 0.08) 71%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 72px 0 76px;
}

.hero-content p:not(.eyebrow) {
  max-width: 580px;
  font-size: 20px;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-facts {
  position: relative;
  z-index: 3;
  border-top: 1px solid rgba(23, 21, 18, 0.14);
  background: rgba(247, 239, 227, 0.95);
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.fact-grid a,
.fact-grid div {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-right: 1px solid var(--line);
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.fact-grid > :last-child {
  border-right: 0;
}

.fact-grid img {
  width: 25px;
  height: 25px;
}

.intro-grid,
.split,
.reservation-layout,
.buba-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 64px;
  align-items: center;
}

.image-collage {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  aspect-ratio: 1.2;
}

.image-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.image-collage img:first-child {
  grid-row: 1 / 3;
}

.pill-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill,
.tag {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 850;
}

.feature-list {
  display: grid;
  gap: 0;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.feature-list strong {
  display: block;
  margin-bottom: 4px;
}

.feature-number {
  color: var(--vermilion);
  font-size: 22px;
  font-weight: 950;
}

.teaser-grid,
.experience-grid,
.flavor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.teaser,
.experience-card,
.flavor-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.teaser img,
.flavor-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.teaser-copy,
.experience-card,
.flavor-card div {
  padding: 22px;
}

.teaser a {
  color: var(--vermilion);
  font-weight: 900;
}

.cta-band {
  background: var(--tea);
  color: #fff;
}

.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.page-hero {
  padding: 74px 0 60px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(46px, 6vw, 78px);
}

.page-hero .lead {
  margin-bottom: 0;
}

.menu-toolbar {
  position: sticky;
  z-index: 20;
  top: 75px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 239, 227, 0.97);
  padding: 14px 0;
  backdrop-filter: blur(12px);
}

.toolbar-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.search-field {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 0 16px;
}

.menu-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.filter-button,
.diet-button {
  min-height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.filter-button.active,
.diet-button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.mobile-category {
  display: none;
  min-height: 46px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 12px;
}

.menu-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.menu-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.menu-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #17120e;
  isolation: isolate;
}

.menu-card-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: var(--menu-image-position, 50% 50%);
  transform: scale(var(--menu-image-zoom, 1));
  transform-origin: var(--menu-image-position, 50% 50%);
  background: #17120e;
}

.menu-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.menu-category {
  color: var(--vermilion);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.menu-card h3 {
  margin: 8px 0;
}

.menu-card p {
  flex: 1;
  color: var(--ink-soft);
  font-size: 14px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0 18px;
}

.badge-row span {
  border-radius: 999px;
  background: #e4eee7;
  color: #234332;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
}

.menu-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.small-button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--vermilion);
  border-radius: 6px;
  background: transparent;
  color: var(--vermilion);
  font-weight: 900;
  cursor: pointer;
}

.small-button:hover {
  background: var(--vermilion);
  color: #fff;
}

.cart-drawer {
  position: fixed;
  z-index: 60;
  right: 18px;
  bottom: 18px;
  width: min(430px, calc(100% - 36px));
  max-height: min(620px, calc(100dvh - 110px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: var(--ink);
  box-shadow: var(--shadow);
  color: #fff;
}

.cart-drawer[hidden] {
  display: none;
}

.cart-head,
.cart-foot {
  padding: 18px;
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.cart-close,
.icon-button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: currentColor;
  font-size: 24px;
  cursor: pointer;
}

.cart-items {
  overflow: auto;
  padding: 8px 18px;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 0;
}

.quantity-control {
  display: inline-grid;
  grid-template-columns: 44px 32px 44px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.quantity-control button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.quantity-control span {
  text-align: center;
}

.cart-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cart-foot .button {
  width: 100%;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  padding: 28px;
  color: var(--ink-soft);
  text-align: center;
}

.story-timeline {
  border-left: 2px solid var(--vermilion);
  margin: 38px 0 0 12px;
  padding-left: 30px;
}

.story-timeline article {
  position: relative;
  padding: 0 0 34px;
}

.story-timeline article::before {
  content: "";
  position: absolute;
  left: -39px;
  top: 4px;
  width: 14px;
  height: 14px;
  border: 4px solid var(--ivory);
  border-radius: 50%;
  background: var(--vermilion);
}

.poster-frame {
  max-height: 760px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow);
}

.poster-frame img {
  width: 100%;
}

.experience-card {
  min-height: 220px;
  background: var(--paper);
}

.experience-card strong {
  display: block;
  color: var(--vermilion);
  font-size: 14px;
}

.floorplan-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.floorplan {
  min-height: 640px;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: #fff8ef;
}

.floor-label {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.floor-kitchen { left: 23%; top: 12%; width: 39%; height: 35%; }
.floor-bar-1 { left: 26%; bottom: 3%; width: 44%; height: 12%; }
.floor-bar-2 { left: 24%; top: 48%; width: 39%; height: 10%; }
.floor-bar-3 { left: 58%; top: 16%; width: 8%; height: 32%; }
.floor-table-1 { left: 61%; bottom: 16%; width: 19%; height: 17%; }
.floor-table-2 { left: 27%; bottom: 23%; width: 16%; height: 15%; }
.floor-table-3 { right: 5%; top: 52%; width: 16%; height: 15%; }
.floor-table-4 { right: 5%; top: 13%; width: 16%; height: 22%; }

.seat {
  position: absolute;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.seat:hover,
.seat.selected {
  background: var(--vermilion);
  box-shadow: 0 0 0 3px var(--vermilion);
}

.seat[data-zone="bar3"] { background: #28774e; }
.seat[data-zone="bar2"] { background: #126cb4; }
.seat[data-zone="groups"] { background: #d36809; }
.seat[data-zone="couples"] { background: #72429a; }

.seat.selected {
  background: var(--vermilion);
}

.plan-side {
  position: sticky;
  top: 100px;
}

.selection-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  padding: 22px;
}

.selection-panel .button {
  width: 100%;
  margin-top: 14px;
}

.legend {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.legend span {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.legend i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
}

.legend .green { background: #28774e; }
.legend .blue { background: #126cb4; }
.legend .orange { background: #d36809; }
.legend .purple { background: #72429a; }

.reservation-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.reservation-form label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 850;
}

.reservation-form input,
.reservation-form select,
.reservation-form textarea {
  min-height: 50px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
}

.reservation-form textarea {
  min-height: 110px;
  resize: vertical;
}

.reservation-form .wide,
.reservation-form .form-actions,
.reservation-form .form-note {
  grid-column: 1 / -1;
}

.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
}

.form-note {
  min-height: 24px;
  margin: 0;
  font-weight: 750;
}

.rules {
  border-left: 4px solid var(--vermilion);
  padding-left: 22px;
}

.rules li {
  margin: 10px 0;
}

.pet-hero {
  background: linear-gradient(110deg, #f7efe3 0%, #f7efe3 58%, #e3eadf 58%, #e3eadf 100%);
}

.pet-policy {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 32px;
  margin-top: 24px;
}

.pet-policy div {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.buba-hero {
  background: #efe5ed;
}

.buba-wordmark {
  color: #6c174e;
}

.b2b-band {
  background: #5a1644;
  color: #fff;
}

.social-map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.map-frame {
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #e7ded1;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
}

.site-footer {
  background: #100f0d;
  color: #fff;
  padding: 48px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(2, 1fr);
  gap: 36px;
}

.footer-grid nav,
.footer-grid div {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 36px;
  padding-top: 22px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

@media (max-width: 960px) {
  .nav-shell {
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-home {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 12px;
    color: var(--ink);
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
  }

  .site-nav {
    position: fixed;
    inset: 102px 0 0;
    display: none;
    align-content: start;
    justify-items: stretch;
    background: var(--ivory);
    padding: 24px;
  }

  .site-nav.open {
    display: grid;
  }

  .site-nav a {
    min-height: 56px;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
  }

  .nav-actions .button {
    display: none;
  }

  .fact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .fact-grid a,
  .fact-grid div {
    border-bottom: 1px solid var(--line);
  }

  .intro-grid,
  .split,
  .reservation-layout,
  .buba-hero-grid,
  .floorplan-shell,
  .social-map {
    grid-template-columns: 1fr;
  }

  .plan-side {
    position: static;
  }

  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teaser-grid,
  .experience-grid,
  .flavor-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 60px 0;
  }

  .hero {
    min-height: max(560px, calc(100dvh - 190px));
    background-position: 64% center;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(247, 239, 227, 0.95) 0%, rgba(247, 239, 227, 0.82) 58%, rgba(247, 239, 227, 0.15) 100%);
  }

  .hero-content {
    padding: 58px 0 62px;
  }

  .fact-grid,
  .menu-grid,
  .teaser-grid,
  .experience-grid,
  .flavor-grid,
  .pet-policy,
  .footer-grid,
  .reservation-form {
    grid-template-columns: 1fr;
  }

  .fact-grid a,
  .fact-grid div {
    min-height: 66px;
    border-right: 0;
  }

  .cta-band .container,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbar-grid {
    grid-template-columns: 1fr;
  }

  .menu-toolbar {
    top: 74px;
  }

  .menu-filters {
    display: none;
  }

  .mobile-category {
    display: block;
  }

  .menu-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .menu-card-media {
    aspect-ratio: 4 / 3;
  }

  .floorplan {
    min-height: 560px;
  }

  .seat {
    width: 44px;
    height: 44px;
    font-size: 11px;
  }

  .reservation-form .wide,
  .reservation-form .form-actions,
  .reservation-form .form-note {
    grid-column: auto;
  }

  .cart-drawer {
    right: 8px;
    bottom: 8px;
    width: calc(100% - 16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
