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

:root {
  --bg: #0d0a07;
  --card: #17120e;
  --line: #3a3128;
  --text: #f5eee0;
  --muted: #a99a84;
  --glass: rgba(245, 238, 224, 0.05);
  --accent: #d9a441;
  --accent-hover: #e7b75a;
  --on-accent: #16100a;
  --accent-glow: rgba(217, 164, 65, 0.3);
  --warm-soft: rgba(245, 238, 224, 0.06);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0d0a07;
}

::-webkit-scrollbar-thumb {
  background: #3a3128;
  border-radius: 99px;
  border: 2px solid #0d0a07;
}

::-webkit-scrollbar-thumb:hover {
  background: #58493a;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 3000;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 12px 0;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

#reserva,
#carta {
  scroll-margin-top: 140px;
}

.section-head {
  text-align: center;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 0.85rem;
}

.section-title {
  margin: 0;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.13;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  border: 0;
  cursor: pointer;
  font-family: var(--font);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}

.btn-solid {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-ghost {
  border: 1px solid #4a3f30;
  color: var(--text);
  background: rgba(245, 238, 224, 0.03);
}

.btn-ghost:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  background: var(--warm-soft);
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.06rem;
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
}

.demo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.55rem 1rem;
  background: #17120e;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.demo-bar-text {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
}

.demo-bar-text strong {
  font-weight: 800;
  color: var(--accent);
}

.demo-bar-links {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: center;
}

.demo-bar-cta,
.demo-bar-ghost {
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.demo-bar-cta {
  background: var(--accent);
  color: var(--on-accent);
}

.demo-bar-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.demo-bar-ghost {
  border: 1px solid #5a4c37;
  color: var(--text);
}

.demo-bar-ghost:hover {
  background: var(--warm-soft);
  border-color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.1rem;
}

.brand-name {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.brand-name em {
  font-style: normal;
  color: var(--muted);
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 1.6rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-cta {
  border: 1px solid #4a3f30;
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-cta:hover {
  border-color: var(--accent);
  background: var(--warm-soft);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 10vh, 7rem) 0 4.5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.glow {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(90px);
}

.g1 {
  top: -180px;
  left: -140px;
  background: radial-gradient(circle, rgba(217, 164, 65, 0.38), transparent 70%);
  animation: drift 14s ease-in-out infinite alternate;
}

.g2 {
  bottom: -220px;
  right: -180px;
  background: radial-gradient(circle, rgba(184, 138, 60, 0.16), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(70px, 40px) scale(1.12);
  }
}

.grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(230, 180, 95, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 180, 95, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0;
}

.hero-title {
  margin: 1.1rem 0 0;
  font-size: clamp(2.4rem, 6.8vw, 5.4rem);
  font-weight: 900;
  line-height: 0.99;
  letter-spacing: -0.03em;
}

.hero-sub {
  max-width: 660px;
  margin: 1.4rem auto 0;
  color: #d8cdba;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.55;
  min-height: 1.6em;
}

.mode-switch {
  position: relative;
  display: flex;
  margin-top: 2.2rem;
  width: min(560px, 100%);
  background: #130f0b;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}

.mode-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: var(--accent);
  border-radius: 999px;
  transition: transform 0.35s cubic-bezier(0.68, -0.15, 0.22, 1.2);
}

.mode-switch[data-mode="degustacion"] .mode-thumb {
  transform: translateX(100%);
}

.mode-btn {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 0.75rem 1.2rem;
  background: none;
  border: 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border-radius: 999px;
  transition: color 0.3s ease;
  font-family: var(--font);
}

.mode-btn.active {
  color: var(--on-accent);
}

.mode-stage {
  display: grid;
  width: 100%;
  max-width: 960px;
  margin: 2rem auto 0;
}

.mode-panel {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.985);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0.45s;
}

.mode-panel.active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s;
}

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

.plate-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem;
  text-align: left;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
}

.plate-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 18px 44px -16px var(--accent-glow);
}

.plate-art {
  width: 72px;
  height: 72px;
  margin-bottom: 0.9rem;
  color: #ece3cf;
}

.plate-art svg {
  width: 100%;
  height: 100%;
}

.plate-info h3 {
  margin: 0;
  font-size: 1.02rem;
}

.plate-info p {
  margin: 0.35rem 0 0.6rem;
  color: #b3a68f;
  font-size: 0.84rem;
  line-height: 1.5;
}

.plate-info strong {
  font-size: 1.05rem;
  color: var(--accent);
}

.deg-list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.6rem 1.4rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.deg-list li {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.deg-list li:last-child {
  border-bottom: 0;
}

.deg-n {
  font-weight: 900;
  font-size: 1.15rem;
  color: #6b5a40;
  font-variant-numeric: tabular-nums;
}

.deg-info h3 {
  margin: 0 0 0.15rem;
  font-size: 1.05rem;
}

.deg-info p {
  margin: 0;
  color: #b3a68f;
  font-size: 0.85rem;
}

.deg-wine {
  background: #16110c;
  border: 1px solid #473a2b;
  color: #ddd2c0;
  font-size: 0.72rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.4rem;
}

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee-track span {
  margin-right: 3rem;
  font-size: 0.84rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  font-weight: 700;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.res-panel {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 2rem;
  background: #14100b;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  text-align: left;
}

.res-controls {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.res-field {
  display: grid;
  gap: 0.45rem;
}

.res-field > span {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

input[type="date"],
select {
  background: #130f0b;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

input[type="date"]:hover,
select:hover {
  border-color: #6b5a40;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.stepper-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #130f0b;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  font-family: var(--font);
}

.stepper-btn:hover {
  border-color: var(--accent);
  background: var(--warm-soft);
  transform: translateY(-1px);
}

.stepper output {
  font-size: 1.6rem;
  font-weight: 900;
  min-width: 56px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.res-ok {
  min-height: 1.4em;
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.res-ok.ok {
  color: var(--accent-hover);
}

.res-floor {
  display: grid;
  gap: 1.4rem;
  align-content: start;
}

.floor-room {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem 1.2rem;
}

.floor-room h4 {
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.tables {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.table {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid #5a4d38;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  font-family: var(--font);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.25s ease, color 0.25s ease, opacity 0.25s ease, box-shadow 0.3s ease;
}

.table.available:hover {
  border-color: var(--accent);
  transform: scale(1.06);
}

.table.occupied {
  border-color: #3b3123;
  color: #7a6a52;
  background: repeating-linear-gradient(45deg, #1a140d 0 4px, #140f09 4px 8px);
  cursor: not-allowed;
}

.table.recommended {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  animation: recPulse 1.6s ease-in-out infinite;
}

@keyframes recPulse {
  50% {
    box-shadow: 0 0 0 6px rgba(217, 164, 65, 0.12);
  }
}

.table.selected {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
  transform: scale(1.08);
}

.floor-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.4rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.floor-legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 0.35rem;
  vertical-align: -1px;
}

.leg-avail {
  border: 1px solid #5a4d38;
}

.leg-occ {
  background: repeating-linear-gradient(45deg, #1a140d 0 3px, #140f09 3px 6px);
  border: 1px solid #3b3123;
}

.leg-rec {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.leg-sel {
  background: var(--accent);
}

.res-caption {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.menu {
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(217, 164, 65, 0.06), transparent 70%);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 2.4rem 0 0;
}

.filter-pill {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid #4a3f30;
  background: transparent;
  color: #ddd2c0;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  font-family: var(--font);
}

.filter-pill:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
  transform: translateY(-1px);
}

.filter-pill.active {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.dish-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.4rem 1.4rem 1.3rem;
  text-align: left;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.18s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.dish-card:hover {
  border-color: var(--accent);
  box-shadow: 0 20px 50px -18px var(--accent-glow);
}

.dish-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(230, 180, 95, 0.09), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.dish-card:hover::before {
  opacity: 1;
}

.dish-art {
  width: 64px;
  height: 64px;
  color: #ece3cf;
  margin-bottom: 0.9rem;
}

.dish-art svg {
  width: 100%;
  height: 100%;
}

.dish-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.7rem;
}

.dish-badges span {
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d8cdba;
  border: 1px solid #473a2b;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.dish-card h3 {
  margin: 0;
  font-size: 1.08rem;
}

.dish-desc {
  margin: 0.4rem 0 0;
  color: #b3a68f;
  font-size: 0.86rem;
  line-height: 1.55;
}

.dish-meta {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
  margin-top: 0.8rem;
}

.dish-meta-inner {
  overflow: hidden;
  min-height: 0;
}

.dish-note,
.dish-pair {
  font-size: 0.84rem;
  line-height: 1.5;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: #16110c;
  border: 1px solid #2e261a;
}

.dish-note {
  margin-bottom: 0.4rem;
}

.dish-note span,
.dish-pair span {
  display: block;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.2rem;
  font-weight: 700;
}

.dish-pair {
  color: #ede2cd;
}

.dish-card:hover .dish-meta,
.dish-card:focus-within .dish-meta {
  grid-template-rows: 1fr;
}

.dish-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.dish-price {
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--accent-hover);
}

.dish-cat {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cta {
  text-align: center;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.12;
}

.cta-sub {
  color: var(--muted);
  margin: 1rem auto 2.2rem;
  max-width: 560px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 0;
  background: #0a0705;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-tag {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 320px;
  line-height: 1.6;
  margin-top: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links h4 {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #c9bda6;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-hover);
}

.footer-bottom {
  border-top: 1px solid #241d15;
  padding: 1.3rem 0;
  color: #8a7a64;
  font-size: 0.85rem;
}

.perf-panel {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 300;
  width: 150px;
  background: rgba(23, 18, 14, 0.82);
  border: 1px solid #473a2b;
  border-radius: 14px;
  padding: 0.7rem 0.8rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.perf-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 700;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}

.perf-grid {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.perf-cell {
  text-align: left;
}

.perf-cell span {
  display: block;
  font-size: 0.62rem;
  color: #8a7a64;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.perf-cell strong {
  font-size: 1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.perf-target {
  margin-top: 0.15rem;
}

.perf-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 26px;
  margin-top: 0.55rem;
}

.perf-bars span {
  width: 3px;
  background: var(--accent);
  border-radius: 1px;
  opacity: 0.45;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(13, 10, 7, 0.74);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid #473a2b;
  border-radius: 24px;
  padding: clamp(1.6rem, 5vw, 2.4rem);
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(18px) scale(0.96);
  transition: transform 0.32s cubic-bezier(0.34, 1.4, 0.4, 1);
}

.modal-overlay.open .modal {
  transform: none;
}

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #16110c;
  border: 1px solid var(--line);
  color: #9a8a70;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  font-family: var(--font);
}

.modal-close:hover {
  color: var(--accent-hover);
  border-color: var(--accent);
  transform: rotate(90deg);
}

.modal-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  margin: 0 auto 1.1rem;
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
}

.modal-icon svg {
  width: 28px;
  height: 28px;
}

.modal-title {
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
  line-height: 1.2;
}

.modal-text {
  color: #c4b69f;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.modal-cta {
  width: 100%;
}

.modal-dismiss {
  margin-top: 1rem;
  background: none;
  border: 0;
  color: #8a7a64;
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
  font-family: var(--font);
}

.modal-dismiss:hover {
  color: var(--accent-hover);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease var(--rd, 0s), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--rd, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-soft {
  opacity: 0;
  transition: opacity 0.6s ease var(--rd, 0s);
}

.reveal-soft.visible {
  opacity: 1;
}

@media (max-width: 900px) {
  .plate-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .res-panel {
    grid-template-columns: 1fr;
  }

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

  .nav-links {
    display: none;
  }
}

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

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

  .deg-list li {
    grid-template-columns: 32px 1fr;
  }

  .deg-wine {
    grid-column: 2;
    justify-self: start;
  }

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

  .demo-bar {
    gap: 0.4rem;
  }

  .demo-bar-cta,
  .demo-bar-ghost {
    font-size: 0.82rem;
    padding: 0.5rem 1.05rem;
  }

  .perf-panel {
    width: 130px;
    right: 0.75rem;
    bottom: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}