/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #F7EEDC;
  --bg-2: #EFE1C4;
  --paper: #FFFCF6;
  --ink: #241205;
  --ink-soft: #4a3520;
  --ink-mute: #8a7256;
  --accent: #AA2D07;
  --accent-2: #904B20;
  --gold: #C79A54;
  --line: rgba(36, 18, 5, 0.14);
  --line-strong: rgba(36, 18, 5, 0.55);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; font-family: var(--serif); font-weight: 500; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--paper); }

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

.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: 1180px; margin-inline: auto; padding-inline: 24px; }
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--paper);
  z-index: 9999; border-radius: 8px; font-weight: 500;
}
.skip-link:focus { top: 1rem; }

.kicker {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  border-radius: 2px;
  transition: transform .35s var(--ease-out), background .35s var(--ease-out), color .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.btn-primary { background: var(--accent); color: var(--paper); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(170,45,7,0.55); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-light { border: 1px solid rgba(247,238,220,0.55); color: var(--paper); }
.btn-light:hover { background: var(--paper); color: var(--ink); }

/* =============================================================
   4. Cursor (desktop only, hidden until first move)
   ============================================================= */
.cursor-ring {
  position: fixed; top: 0; left: 0; width: 28px; height: 28px;
  border: 1px solid var(--accent); border-radius: 50%;
  pointer-events: none; z-index: 9998; opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity .25s var(--ease-out), width .25s var(--ease-out), height .25s var(--ease-out), border-color .25s var(--ease-out);
  mix-blend-mode: difference;
}
.cursor-ring.is-ready { opacity: 1; }
.cursor-ring.is-active { width: 52px; height: 52px; background: var(--accent); }
@media (hover: none), (pointer: coarse) { .cursor-ring { display: none; } }

/* =============================================================
   5. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 28px;
  color: var(--paper);
  transition: background .4s var(--ease-out), padding .4s var(--ease-out), box-shadow .4s var(--ease-out), color .4s var(--ease-out);
}
.nav-brand span, .nav-links a {
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  transition: text-shadow .4s var(--ease-out);
}
.nav.is-solid {
  background: rgba(247, 238, 220, 0.92);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  padding: 12px 28px;
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
}
.nav.is-solid .nav-brand span, .nav.is-solid .nav-links a { text-shadow: none; }
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand img { width: 34px; height: auto; }
.nav-brand span { font-family: var(--serif); font-size: 19px; }
.nav-links { display: none; align-items: center; gap: 30px; font-size: 14px; font-weight: 500; }
.nav-links a { position: relative; padding-bottom: 3px; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--accent); transition: right .35s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a.is-active::after { right: 0; }
.nav-cta { display: none; }
.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; padding: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: currentColor; filter: drop-shadow(0 1px 4px rgba(0,0,0,0.4)); }
.nav.is-solid .nav-toggle span { filter: none; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 480;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  transform: translateY(-100%); transition: transform .5s var(--ease-out);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu a { font-family: var(--serif); font-size: 30px; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  color: var(--paper);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; transform: scale(1.06); }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,10,3,0.15) 0%, rgba(20,10,3,0.35) 55%, rgba(16,8,2,0.86) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding: 0 28px 76px; }
.hero-inner .kicker { color: var(--gold); margin-bottom: 18px; }
.hero-title {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  max-width: 16ch;
  color: var(--paper);
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-sub {
  margin-top: 20px; max-width: 46ch;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(247,238,220,0.86);
}
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

/* =============================================================
   7. Manifesto
   ============================================================= */
.manifesto { padding: 120px 0; }
.manifesto-grid {
  display: grid; gap: 36px;
  grid-template-columns: 1fr;
}
.manifesto-num { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--accent); }
.manifesto-text p {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.35; color: var(--ink);
  max-width: 22ch;
}
.manifesto-foot { margin-top: 28px; color: var(--ink-soft); max-width: 52ch; font-size: 15px; }

@media (min-width: 960px) {
  .manifesto-grid { grid-template-columns: 180px 1fr; }
}

/* =============================================================
   8. Especialidades — asymmetric bento
   ============================================================= */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 46px; flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head .note { max-width: 34ch; color: var(--ink-mute); font-size: 14px; }

.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
.bento-card {
  position: relative; overflow: hidden; border-radius: 4px;
  aspect-ratio: 4 / 5;
  background: var(--paper);
  will-change: transform;
  box-shadow: 0 0 0 0 rgba(170,45,7,0);
  transition: box-shadow .5s var(--ease-out);
}
.bento-card:hover { box-shadow: 0 24px 46px -18px rgba(170,45,7,0.45); }
.bento-card.is-wide { aspect-ratio: 16 / 10; }
.bento-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.bento-card:hover img { transform: scale(1.08); }
.bento-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,10,3,0) 40%, rgba(20,10,3,0.82) 100%);
}
.bento-tag {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  color: var(--gold);
}
.bento-info { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2; color: var(--paper); }
.bento-info h3 { font-size: 22px; margin-bottom: 6px; }
.bento-info p { font-size: 13px; color: rgba(247,238,220,0.78); max-width: 34ch; margin-bottom: 10px; }
.bento-price { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--gold); }

@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); }
  .bento-card:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .bento-card:nth-child(2) { grid-column: span 2; aspect-ratio: auto; }
  .bento-card:nth-child(3) { aspect-ratio: auto; }
  .bento-card:nth-child(4) { aspect-ratio: auto; }
}

/* =============================================================
   9. Marquee
   ============================================================= */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 22px 0; overflow: hidden; white-space: nowrap;
  background: var(--bg-2);
}
.marquee-track { display: inline-flex; gap: 40px; animation: marquee 26s linear infinite; }
.marquee-track span {
  font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 40px;
}
.marquee-track span::after { content: "—"; color: var(--accent); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =============================================================
   10. Clásicas gallery (horizontal scroll)
   ============================================================= */
.clasicas { padding: 120px 0; }
.clasicas-scroll {
  display: flex; gap: 18px; overflow-x: auto; overflow-y: visible;
  padding: 6px 4px 28px; margin: 0 -4px;
  scroll-snap-type: x proximity;
}
.clasica-card {
  scroll-snap-align: start; flex: 0 0 auto; width: 240px;
}
.clasica-card figure {
  aspect-ratio: 1/1; border-radius: 4px; overflow: hidden; background: var(--bg-2);
  margin-bottom: 12px; will-change: transform;
}
.clasica-card.no-photo figure {
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--line-strong);
}
.clasica-card.no-photo figure span { font-family: var(--serif); font-style: italic; color: var(--ink-mute); }
.clasica-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.clasica-card:hover img { transform: scale(1.06); }
.clasica-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.clasica-card h3 { font-size: 17px; }
.clasica-card .price { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 16px; white-space: nowrap; }
.clasica-card p { font-size: 12.5px; color: var(--ink-mute); margin-top: 4px; }

/* =============================================================
   11. Cómo pedir
   ============================================================= */
.pedir { padding: 100px 0; background: var(--bg-2); }
.pedir-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
.pedir-step { padding-top: 22px; border-top: 1px solid var(--line-strong); }
.pedir-step .n { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 15px; }
.pedir-step h3 { font-size: 20px; margin: 10px 0 8px; }
.pedir-step p { font-size: 14px; color: var(--ink-soft); }
@media (min-width: 720px) { .pedir-grid { grid-template-columns: repeat(3, 1fr); } }

/* =============================================================
   12. CTA band
   ============================================================= */
.cta-band {
  position: relative; overflow: hidden;
  padding: 130px 0; text-align: center; color: var(--paper);
}
.cta-band-bg { position: absolute; inset: 0; }
.cta-band-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band-bg::after {
  content: ""; position: absolute; inset: 0; background: rgba(18,9,3,0.72);
}
.cta-band-inner { position: relative; z-index: 2; }
.cta-band h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 16ch; margin: 0 auto 18px; }
.cta-band p { color: rgba(247,238,220,0.82); max-width: 40ch; margin: 0 auto 32px; }
.cta-band .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* =============================================================
   13. Footer
   ============================================================= */
.footer { padding: 64px 0 32px; }
.footer-top {
  display: grid; gap: 40px; grid-template-columns: 1fr;
  padding-bottom: 40px; border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 30px; }
.footer-brand span { font-family: var(--serif); font-size: 20px; }
.footer p { color: var(--ink-mute); font-size: 14px; max-width: 34ch; }
.footer-col h4 { font-family: var(--sans); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; font-weight: 600; }
.footer-col a, .footer-col p { display: block; font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--ink-mute); }
@media (min-width: 720px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr; } }

/* =============================================================
   14. Menu page
   ============================================================= */
.page-hero {
  padding: 160px 0 60px; background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.page-hero .kicker { margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.page-hero p { margin-top: 16px; color: var(--ink-soft); max-width: 50ch; }

.menu-wrap { padding: 90px 0; }
.menu-nav {
  display: flex; gap: 20px; flex-wrap: wrap;
  padding-bottom: 20px; margin-bottom: 60px; border-bottom: 1px solid var(--line);
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600;
  position: sticky; top: 70px; background: var(--bg); z-index: 40; padding-top: 12px;
}
.menu-nav a { color: var(--ink-mute); }
.menu-nav a:hover { color: var(--accent); }

.menu-section { margin-bottom: 84px; scroll-margin-top: 130px; }
.menu-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.menu-section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.menu-section-head .note { font-size: 13px; color: var(--ink-mute); max-width: 30ch; text-align: right; }

.menu-list { display: grid; gap: 0 40px; grid-template-columns: 1fr; }
.menu-item {
  display: flex; align-items: baseline; gap: 10px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.menu-item .name { font-weight: 600; }
.menu-item .leader { flex: 1; border-bottom: 1px dotted var(--line-strong); transform: translateY(-4px); }
.menu-item .price { font-family: var(--serif); font-style: italic; color: var(--accent); white-space: nowrap; }
.menu-item .desc { display: block; width: 100%; font-size: 12.5px; color: var(--ink-mute); margin-top: 4px; }
@media (min-width: 860px) { .menu-list.two-col { grid-template-columns: 1fr 1fr; } }

.menu-featured { display: grid; gap: 40px; grid-template-columns: 1fr; margin-bottom: 30px; }
.menu-feature-card figure { aspect-ratio: 4/3; overflow: hidden; border-radius: 4px; margin-bottom: 16px; }
.menu-feature-card img { width: 100%; height: 100%; object-fit: cover; }
.menu-feature-card .tag { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.menu-feature-card h3 { font-size: 22px; margin: 8px 0 8px; }
.menu-feature-card p { font-size: 14px; color: var(--ink-soft); margin-bottom: 10px; }
.menu-feature-card .price { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--accent); }
@media (min-width: 860px) { .menu-featured { grid-template-columns: repeat(3, 1fr); } }

.combo-cards { display: grid; gap: 18px; grid-template-columns: 1fr; }
.combo-card {
  border: 1px solid var(--line-strong); padding: 22px 26px; border-radius: 4px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: transform .4s var(--ease-out), border-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.combo-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 20px 36px -22px rgba(170,45,7,0.4);
}
.combo-card .price { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--accent); }
@media (min-width: 720px) { .combo-cards { grid-template-columns: repeat(2, 1fr); } }

.promo-strip {
  margin-top: 20px; border: 1px dashed var(--line-strong); border-radius: 4px;
  padding: 18px 24px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between;
  font-size: 13px; color: var(--ink-soft);
}
.promo-strip b { color: var(--accent); }

/* =============================================================
   15. Contact page
   ============================================================= */
.contact-wrap { padding: 90px 0 120px; display: grid; gap: 56px; grid-template-columns: 1fr; }
.contact-card { border-top: 1px solid var(--line-strong); padding-top: 22px; }
.contact-card h3 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; font-weight: 600; font-family: var(--sans); }
.contact-card p, .contact-card a { font-size: 16px; color: var(--ink); display: block; margin-bottom: 6px; }
.contact-card a:hover { color: var(--accent); }
.contact-note { font-size: 13px; color: var(--ink-mute); margin-top: 10px; }
@media (min-width: 860px) { .contact-wrap { grid-template-columns: repeat(3, 1fr); } }

/* =============================================================
   16. Responsive base
   ============================================================= */
@media (min-width: 540px) {}
@media (min-width: 720px) {}
@media (min-width: 960px) {}
@media (min-width: 1280px) {}

/* =============================================================
   17. Reduced motion — intrusive only
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-duration: 46s; }
}
