:root {
  --bg: #120e0b;
  --surface: #1b1612;
  --surface-2: #241d17;
  --ink: #f3ebe1;
  --muted: rgb(243 235 225 / 0.64);
  --line: rgb(243 235 225 / 0.12);
  --accent: #e08a3c;
  --accent-ink: #1a120b;
  --ember: #ff6a1a;
  --radius: 4px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

body { font-size: 16px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2, .story h2, .reserve h2, .visit h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 400; letter-spacing: -0.01em; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* Header */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.header.is-solid { background: rgb(18 14 11 / 0.88); backdrop-filter: blur(12px); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.6rem; text-decoration: none; letter-spacing: 0.02em; }
.logo svg { width: 22px; fill: var(--accent); }
.nav { display: flex; gap: 32px; font-size: 0.92rem; }
.nav a { text-decoration: none; color: var(--muted); transition: color 0.2s; }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; align-content: end; padding: 140px 0 40px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.06); animation: settle 2.4s var(--ease) forwards; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(18 14 11 / 0.55), rgb(18 14 11 / 0.35) 35%, rgb(18 14 11 / 0.92) 85%, var(--bg)); }
@keyframes settle { to { transform: scale(1); } }
.hero-content { max-width: 900px; margin-left: max(var(--gutter), (100% - var(--max)) / 2); }
.hero h1 { font-size: clamp(3.4rem, 11vw, 9rem); font-weight: 400; letter-spacing: -0.03em; line-height: 0.92; }
.hero h1 em { font-style: italic; color: var(--accent); }
.lede { max-width: 520px; margin-top: 24px; font-size: 1.1rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 72px; list-style: none; padding: 0; border-top: 1px solid var(--line); }
.hero-facts li { display: grid; padding: 20px 0 0; }
.hero-facts strong { font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; }
.hero-facts span { font-size: 0.85rem; color: var(--muted); }

/* De la casa */
.signature { position: relative; height: calc(var(--count, 6) * 85vh + 100vh); background: radial-gradient(ellipse 60% 50% at 68% 50%, #2a1c12, var(--bg) 70%); }
.signature-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-items: center; overflow: hidden; }
.signature-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 40px; }
.dish { min-height: 300px; }
.dish-cat { display: inline-block; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.dish-name { margin-top: 12px; font-size: clamp(2.2rem, 5vw, 4.2rem); font-weight: 400; letter-spacing: -0.02em; }
.dish-desc { margin-top: 18px; max-width: 440px; color: var(--muted); font-size: 1.02rem; }
.dish-price { margin-top: 22px; font-family: var(--font-display); font-size: 1.6rem; color: var(--accent); }
.dish.is-changing > * { animation: dish-in 0.7s var(--ease) both; }
.dish.is-changing > :nth-child(2) { animation-delay: 0.05s; }
.dish.is-changing > :nth-child(3) { animation-delay: 0.1s; }
.dish.is-changing > :nth-child(4) { animation-delay: 0.15s; }
@keyframes dish-in { from { opacity: 0; transform: translateY(18px); } }
.dish-progress { display: flex; gap: 10px; list-style: none; padding: 0; margin: 40px 0 0; }
.dish-progress li { width: 34px; height: 2px; background: var(--line); transition: background 0.3s, width 0.3s; }
.dish-progress li.is-active { width: 56px; background: var(--accent); }

.plate-wrap { position: relative; width: min(46vw, 620px); aspect-ratio: 1; justify-self: center; }
.plate-glow { position: absolute; inset: -12%; border-radius: 50%; background: radial-gradient(circle, rgb(255 106 26 / 0.28), transparent 62%); filter: blur(10px); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.6; transform: scale(0.96); } }
.plate {
  position: absolute; inset: 14%; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 10px #f3ebe1, 0 0 0 11px rgb(0 0 0 / 0.1), 0 50px 80px rgb(0 0 0 / 0.65), inset 0 0 40px rgb(0 0 0 / 0.4);
  transform: rotate(var(--spin, 0deg));
  will-change: transform;
}
.plate-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12) rotate(-25deg); transition: opacity 0.7s var(--ease), transform 0.9s var(--ease); }
.plate-img.is-active { opacity: 1; transform: none; }
.orbit { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; transform: rotate(var(--orbit, 0deg)); will-change: transform; }
.orbit li { position: absolute; left: var(--x); top: var(--y); }
.orbit span {
  display: inline-block; translate: -50% -50%; rotate: calc(var(--orbit, 0deg) * -1);
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: rgb(27 22 18 / 0.85); backdrop-filter: blur(6px);
  font-size: 0.8rem; white-space: nowrap; color: var(--ink);
  animation: chip-in 0.6s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 150ms);
}
@keyframes chip-in { from { opacity: 0; scale: 0.6; } }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.scroll-hint::after { content: ''; display: block; width: 1px; height: 36px; margin: 10px auto 0; background: linear-gradient(var(--accent), transparent); animation: drip 1.8s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Carta */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.tab { padding: 14px 18px; border: 0; background: none; color: var(--muted); font-size: 0.95rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab[aria-selected='true'] { color: var(--ink); border-color: var(--accent); }
.menu-panel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 64px; outline: none; }
.menu-item { padding: 26px 0; border-bottom: 1px solid var(--line); animation: dish-in 0.5s var(--ease) both; animation-delay: calc(var(--i) * 50ms); }
.menu-item header { display: flex; align-items: baseline; gap: 12px; }
.menu-item h3 { font-size: 1.35rem; font-weight: 400; }
.menu-item .leader { flex: 1; border-bottom: 1px dotted rgb(243 235 225 / 0.3); translate: 0 -5px; }
.menu-item .price { font-family: var(--font-display); color: var(--accent); font-size: 1.15rem; }
.menu-item p { margin-top: 6px; color: var(--muted); font-size: 0.93rem; }
.menu-note { margin-top: 28px; font-size: 0.85rem; color: var(--muted); }

/* Nosotros */
.story { background: var(--surface); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.story-media { position: relative; margin: 0 0 60px; }
.story-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.story-inset { position: absolute; width: 46% !important; right: -8%; bottom: -60px; border: 8px solid var(--surface); }
.story-copy { display: grid; gap: 22px; }
.story-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 18px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.stats dt { font-size: 0.8rem; color: var(--muted); order: 2; }
.stats div { display: flex; flex-direction: column; }
.stats dd { margin: 0; font-family: var(--font-display); font-size: 2.6rem; color: var(--accent); }

/* Galería */
.gallery { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 12px; padding: 12px; }
.gallery img { width: 100%; height: clamp(320px, 48vw, 640px); object-fit: cover; border-radius: var(--radius); }
.gallery img:nth-child(2) { margin-top: 60px; }

/* Reservas */
.reserve-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.reserve-copy { display: grid; gap: 20px; position: sticky; top: 120px; }
.reserve-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.reserve-notes { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.reserve-notes li { padding-left: 26px; position: relative; color: var(--muted); font-size: 0.95rem; }
.reserve-notes li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 12px; height: 1px; background: var(--accent); }
.reserve-form { display: grid; gap: 18px; padding: clamp(24px, 4vw, 44px); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.reserve-form .input { background: var(--surface-2); border-color: var(--line); color-scheme: dark; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field small { font-weight: 400; color: var(--muted); }
.slots-field { border: 0; padding: 0; margin: 0; }
.slots-field legend { margin-bottom: 8px; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slots-group { width: 100%; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.slot { min-width: 74px; height: 42px; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; color: var(--ink); font-size: 0.92rem; transition: background 0.2s, border-color 0.2s; }
.slot:hover { border-color: var(--accent); }
.slot[aria-checked='true'] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.slots-empty { color: var(--muted); font-size: 0.92rem; }
.form-hint { text-align: center; font-size: 0.82rem; color: var(--muted); }

/* Visítanos */
.visit { border-top: 1px solid var(--line); }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.visit-sub { margin: 16px 0 28px; color: var(--muted); }
.hours { margin: 0; display: grid; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; text-align: right; }

.footer { padding: 36px 0 100px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer .logo { font-size: 1.3rem; color: var(--ink); }

/* Responsive */
@media (max-width: 900px) {
  .nav { display: none; }
  .signature { height: calc(var(--count, 6) * 75vh + 100vh); }
  .signature-grid { grid-template-columns: 1fr; gap: 0; align-content: center; height: 100%; padding-top: 70px; }
  .plate-wrap { width: min(84vw, 420px); order: -1; }
  .orbit span { font-size: 0.7rem; padding: 6px 10px; }
  .dish { min-height: 0; text-align: center; }
  .dish-desc { margin-inline: auto; font-size: 0.92rem; }
  .dish-name { font-size: 2rem; margin-top: 6px; }
  .dish-desc, .dish-price { margin-top: 10px; }
  .dish-progress { justify-content: center; margin-top: 18px; }
  .signature-copy .eyebrow { display: none; }
  .scroll-hint { display: none; }
  .menu-panel, .story-grid, .reserve-grid, .visit-grid { grid-template-columns: 1fr; }
  .reserve-copy { position: static; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img:nth-child(2) { margin-top: 0; grid-row: span 2; height: 100%; }
  .gallery img { height: 260px; }
  .hero-facts { grid-template-columns: 1fr; margin-top: 48px; }
  .hero-facts li { grid-template-columns: auto 1fr; gap: 12px; align-items: baseline; padding-top: 12px; }
  .story-inset { right: 0; }
}
@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
  .stats dd { font-size: 2rem; }
}
