/* ==========================================================================
   Restaurante Santa Rita · Costa del Este
   Sistema de diseño — fiel a la identidad de marca de Santa Rita Panamá
   Display: Forum · Texto: Inter · Acento: taupe #AC937B
   ========================================================================== */

/* ---------- 0. Fuentes (auto-alojadas, woff2 subconjunto latino) --------- */
@font-face {
  font-family: "Forum"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/forum-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Forum"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/forum-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
                 U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
                 U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Marca */
  --ink:        #16150F;
  --ink-2:      #1E1C15;
  --ink-3:      #262218;
  --line:       #332D22;
  --espresso:   #3A2E22;
  --brown:      #614637;
  --taupe:      #AC937B;
  --taupe-2:    #C4AE97;
  --taupe-soft: rgba(172,147,123,.14);
  --sand:       #DED2C2;
  --cream:      #F7F3EC;
  --paper:      #FBF9F5;
  --wine:       #7A2233;

  /* Texto sobre oscuro */
  --t-hi:       #F7F3EC;
  --t-mid:      #D6CDC0;
  --t-low:      #A79C8C;
  /* Texto sobre claro */
  --t-hi-l:     #16150F;
  --t-mid-l:    #4A4234;
  --t-low-l:    #6E6455;

  /* Tipografía */
  --f-display: "Forum", "Playfair Display", Georgia, "Times New Roman", serif;
  --f-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --fs-hero: clamp(2.5rem, 1.25rem + 4.4vw, 4.75rem);
  --fs-h1:   clamp(2.35rem, 1.35rem + 4.1vw, 4.6rem);
  --fs-h2:   clamp(1.95rem, 1.25rem + 2.9vw, 3.5rem);
  --fs-h3:   clamp(1.35rem, 1.08rem + 1.15vw, 1.95rem);
  --fs-h4:   clamp(1.1rem, 1rem + .5vw, 1.35rem);
  --fs-lead: clamp(1.05rem, .99rem + .38vw, 1.28rem);
  --fs-body: 1rem;
  --fs-sm:   .9375rem;
  --fs-xs:   .8125rem;
  --fs-kicker: .75rem;

  /* Espaciado — escala espaciosa */
  --s-1: .5rem;  --s-2: .75rem; --s-3: 1rem;   --s-4: 1.5rem;
  --s-5: 2rem;   --s-6: 3rem;   --s-7: 4rem;   --s-8: 6rem;
  --section:  clamp(4.5rem, 3rem + 7.5vw, 9rem);
  --gutter:   clamp(1.15rem, .4rem + 3vw, 3rem);
  --wrap:     78rem;
  --wrap-nar: 46rem;

  /* Radios, sombras, motion */
  --r-sm: 4px; --r-md: 8px; --r-lg: 14px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(0,0,0,.16);
  --sh-2: 0 8px 26px -8px rgba(0,0,0,.42);
  --sh-3: 0 26px 64px -22px rgba(0,0,0,.62);
  --ease: cubic-bezier(.22,1,.36,1);
  --dur: 260ms;
  --header-h: 76px;
}

/* ---------- 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* El menú móvil pone overflow:hidden en <body>; sin esto la barra aparece
     y desaparece, el contenido se ensancha ~15px y se dispara el CLS. */
  scrollbar-gutter: stable;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--t-mid);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: 1.08; color: var(--t-hi); text-wrap: balance; }
p { text-wrap: pretty; }
:target { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

/* Foco visible en todo lo interactivo */
:focus-visible {
  outline: 2px solid var(--taupe);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100%; left: var(--gutter); z-index: 200;
  background: var(--taupe); color: var(--ink); padding: .75rem 1.25rem;
  border-radius: var(--r-md); font-weight: 600; font-size: var(--fs-sm);
}
.skip-link:focus { top: .75rem; }

/* ---------- 3. Layout ---------------------------------------------------- */
.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - var(--gutter) * 2, var(--wrap-nar)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(3rem, 2rem + 5vw, 6rem); }
.section--paper { background: var(--paper); color: var(--t-mid-l); }
.section--paper h1, .section--paper h2, .section--paper h3, .section--paper h4 { color: var(--t-hi-l); }
.section--ink2 { background: var(--ink-2); }

.grid { display: grid; gap: var(--s-5); }
.split {
  display: grid; gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 62rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--media-right > .split__media { order: 2; }
}

/* ---------- 4. Tipografía utilitaria ------------------------------------- */
.kicker {
  font-family: var(--f-body); font-size: var(--fs-kicker); font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--taupe);
  display: flex; align-items: center; gap: .7rem; margin-bottom: var(--s-3);
}
.kicker::before { content: ""; width: 1.9rem; height: 1px; background: var(--taupe); opacity: .75; flex: none; }
.kicker--center { justify-content: center; }
.kicker--center::after { content: ""; width: 1.9rem; height: 1px; background: var(--taupe); opacity: .75; flex: none; }
.section--paper .kicker { color: var(--brown); }
.section--paper .kicker::before, .section--paper .kicker::after { background: var(--brown); }

.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--t-mid); max-width: 60ch; }
.section--paper .lead { color: var(--t-mid-l); }
.muted { color: var(--t-low); font-size: var(--fs-sm); }
.section--paper .muted { color: var(--t-low-l); }
.center { text-align: center; }
.center .kicker { justify-content: center; }
.center .lead { margin-inline: auto; }
.section .center .lead { margin-top: var(--s-3); }
.stack > * + * { margin-top: var(--s-4); }
.stack-sm > * + * { margin-top: var(--s-2); }
em, .accent { color: var(--taupe); font-style: normal; }
.section--paper em, .section--paper .accent { color: var(--brown); }

/* Ornamento de marca (filigrana del logo original) */
.ornament { display: block; margin: var(--s-4) auto; width: 132px; height: auto; opacity: .55; color: var(--taupe); }

/* ---------- 5. Botones --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .85rem 1.9rem;
  font-family: var(--f-body); font-size: var(--fs-sm); font-weight: 600;
  letter-spacing: .045em; text-transform: uppercase;
  border-radius: var(--r-pill); border: 1px solid transparent;
  cursor: pointer; text-align: center;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--taupe); color: #14130E; }
.btn--primary:hover { background: var(--taupe-2); }
.btn--ghost { border-color: rgba(222,210,194,.42); color: var(--t-hi); }
.btn--ghost:hover { border-color: var(--taupe); color: var(--taupe); background: var(--taupe-soft); }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover { background: var(--espresso); }
.btn--outline-dark { border-color: rgba(22,21,15,.28); color: var(--t-hi-l); }
.btn--outline-dark:hover { border-color: var(--brown); color: var(--brown); background: rgba(97,70,55,.06); }
.btn--wa { background: #1FA855; color: #fff; }
.btn--wa:hover { background: #178c46; }
.btn--sm { min-height: 42px; padding: .6rem 1.35rem; font-size: var(--fs-xs); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.center .btn-row { justify-content: center; }

.link-under {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--taupe); padding-bottom: 3px; border-bottom: 2px solid currentColor;
  transition: gap var(--dur) var(--ease), color var(--dur) var(--ease);
}
.link-under:hover { gap: .95rem; color: var(--taupe-2); }
.section--paper .link-under { color: var(--brown); }
.link-under svg { width: 1em; height: 1em; flex: none; }

/* ---------- 6. Header ---------------------------------------------------- */
.header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color 380ms var(--ease), box-shadow 380ms var(--ease),
              border-color 380ms var(--ease);
  border-bottom: 1px solid transparent;
}
.header__inner { width: min(100% - var(--gutter) * 2, 88rem); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.header.is-stuck { background: rgba(22,21,15,.94); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); box-shadow: var(--sh-2); }

/* Marca: el wordmark «Santa Rita» del logotipo original —el anillo de texto del
   sello es ilegible a esta altura— y la sucursal compuesta en Inter. */
.brand { display: flex; align-items: center; gap: .75rem; flex: none; min-height: 48px; }
.brand__mark {
  width: auto; height: 38px;
  transition: height var(--dur) var(--ease);
}
.brand__loc {
  position: relative; padding-left: .8rem;
  font-size: .6875rem; font-weight: 500; letter-spacing: .2em;
  text-transform: uppercase; color: var(--taupe); white-space: nowrap;
}
.brand__loc::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 1.6em; background: currentColor; opacity: .45;
}
@media (max-width: 26rem) {
  .brand { gap: .55rem; }
  .brand__mark { height: 34px; }
  .brand__loc { font-size: .5625rem; letter-spacing: .14em; padding-left: .6rem; }
}

.nav { display: none; }
@media (min-width: 64rem) {
  .nav { display: flex; align-items: center; gap: clamp(1.35rem, .5rem + 1.7vw, 2.4rem); }
  .nav a {
    font-size: var(--fs-sm); color: var(--t-mid); position: relative;
    padding: .4rem 0; transition: color var(--dur) var(--ease);
  }
  .nav a::after {
    content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
    background: var(--taupe); transition: width var(--dur) var(--ease);
  }
  .nav a:hover, .nav a[aria-current="page"] { color: var(--t-hi); }
  .nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
}
.header__cta { display: none; }
@media (min-width: 64rem) { .header__cta { display: inline-flex; } }

/* Selector de idioma ------------------------------------------------------ */
.header__end { display: flex; align-items: center; gap: .5rem; flex: none; }

.lang-switch {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 40px; padding: .35rem .75rem; border-radius: var(--r-pill);
  border: 1px solid var(--line); color: var(--t-mid);
  font-size: var(--fs-xs); font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}
.lang-switch:hover { color: var(--taupe); border-color: var(--taupe); background: var(--taupe-soft); }
.lang-switch svg { width: 15px; height: 15px; flex: none; opacity: .85; }
/* En movil solo cabe el codigo de dos letras, y el selector se queda en la barra:
   dentro del menu quedaba por debajo del pliegue y habia que buscarlo con scroll. */
.lang-switch__short { display: none; }
@media (max-width: 63.9375rem) {
  .lang-switch__long { display: none; }
  .lang-switch__short { display: inline; }
  .header__end > .lang-switch { min-height: 44px; padding: .4rem .7rem; gap: .3rem; }
  .header__end > .lang-switch svg { width: 16px; height: 16px; }
}
.footer__bottom .lang-switch { min-height: 34px; padding: .25rem .7rem; }

.burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 48px; height: 48px; align-items: center; flex: none;
}
@media (min-width: 64rem) { .burger { display: none; } }
.burger span { display: block; width: 24px; height: 1.5px; background: var(--t-hi);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Menú móvil */
.mobile-nav {
  position: fixed; inset: 0; z-index: 99; background: var(--ink);
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
  display: flex; flex-direction: column; gap: var(--s-5);
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity 300ms var(--ease), transform 300ms var(--ease), visibility 300ms;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav ul { display: flex; flex-direction: column; }
.mobile-nav li { border-bottom: 1px solid var(--line); }
.mobile-nav li a {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--f-display); font-size: 1.6rem; color: var(--t-hi);
  padding: 1.05rem 0; min-height: 48px;
}
.mobile-nav li a[aria-current="page"] { color: var(--taupe); }
.mobile-nav__foot { margin-top: auto; display: grid; gap: var(--s-3); }

/* ---------- 7. Hero ------------------------------------------------------ */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: center;
  padding-block: calc(var(--header-h) + 2rem) 4.5rem; isolation: isolate; overflow: hidden;
}
.hero--inner { min-height: clamp(28rem, 62svh, 40rem); }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg picture { display: block; width: 100%; height: 100%; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 26s var(--ease) infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.13) translate3d(-1.2%, -1%, 0); } }
@media (prefers-reduced-motion: reduce) { .hero__bg img { animation: none; } }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(115% 85% at 50% 42%, rgba(22,21,15,.30) 0%, rgba(22,21,15,.72) 62%, rgba(22,21,15,.90) 100%),
    linear-gradient(180deg, rgba(22,21,15,.80) 0%, rgba(22,21,15,.22) 26%, rgba(22,21,15,.55) 72%, rgba(22,21,15,.94) 100%);
}
.hero__inner { text-align: center; display: grid; justify-items: center; gap: clamp(.85rem, .5rem + 1vw, 1.35rem); }
/* Entrada del hero: SOLO transform y sin depender de JS. El titular es el elemento
   LCP; si naciera con opacity:0 la métrica no contaría hasta que hidrate el script. */
.hero__inner > * { animation: hero-rise 640ms var(--ease) both; }
.hero__inner > *:nth-child(1) { animation-delay: 0ms; }
.hero__inner > *:nth-child(2) { animation-delay: 60ms; }
.hero__inner > *:nth-child(3) { animation-delay: 120ms; }
.hero__inner > *:nth-child(4) { animation-delay: 180ms; }
.hero__inner > *:nth-child(5) { animation-delay: 240ms; }
.hero__inner > *:nth-child(6) { animation-delay: 300ms; }
@keyframes hero-rise { from { transform: translate3d(0, 16px, 0); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero__inner > * { animation: none; } }
.hero__seal { width: clamp(84px, 11vw, 116px); height: auto; }
.hero__title { font-size: var(--fs-hero); letter-spacing: -.005em; max-width: 18ch; }
.hero__title .accent { display: block; }
.hero__sub { font-size: var(--fs-lead); color: var(--t-mid); max-width: 44ch; }
.hero__meta {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: .6rem 1.15rem; font-size: var(--fs-xs); letter-spacing: .16em;
  text-transform: uppercase; color: var(--t-low);
}
.hero__meta li { display: flex; align-items: center; gap: 1.15rem; }
/* Deja sitio bajo el contenido para que el indicador de scroll no lo pise */
@media (min-width: 48rem) { .hero:not(.hero--inner) { padding-bottom: 7rem; } }
@media (max-width: 48rem) {
  .hero { padding-bottom: 7rem; }
  .hero__meta { font-size: .6875rem; letter-spacing: .12em; gap: .5rem .85rem; }
  .hero__meta li { gap: .85rem; }
  .hero__inner .btn-row { width: 100%; flex-direction: column; }
  .hero__inner .btn-row .btn { width: 100%; }
}
.hero__meta li:not(:last-child)::after { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--taupe); }

.badge {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .48rem 1.05rem; border-radius: var(--r-pill);
  border: 1px solid rgba(172,147,123,.45); background: rgba(172,147,123,.12);
  font-size: var(--fs-xs); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--taupe-2);
  max-width: 100%; text-align: left; line-height: 1.45;
}
@media (max-width: 26rem) {
  .badge { font-size: .6875rem; letter-spacing: .12em; padding: .45rem .85rem; }
}
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--taupe); flex: none; position: relative; }
.badge__dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid var(--taupe); animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(.55); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .badge__dot::after { animation: none; opacity: .35; } }

.scroll-cue {
  position: absolute; bottom: 1.75rem; left: 50%; transform: translateX(-50%);
  display: grid; justify-items: center; gap: .55rem;
  font-size: .625rem; letter-spacing: .26em; text-transform: uppercase; color: var(--t-low);
}
.scroll-cue span { display: block; width: 1px; height: 42px;
  background: linear-gradient(180deg, var(--taupe), transparent); }
@media (max-height: 44rem) { .scroll-cue { display: none; } }
/* En móvil el gesto de scroll es obvio: el indicador solo estorba y choca con el botón flotante */
@media (max-width: 48rem) { .scroll-cue { display: none; } }

/* ---------- 8. Tarjetas -------------------------------------------------- */
.card {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; height: 100%; display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
a.card:hover, .card:hover { transform: translateY(-5px); border-color: rgba(172,147,123,.42); box-shadow: var(--sh-3); }
.card__media { position: relative; overflow: hidden; background: var(--ink-3); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 620ms var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: var(--s-4) var(--s-4) var(--s-5); display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card__title { font-size: var(--fs-h3); }
.card__text { font-size: var(--fs-sm); color: var(--t-low); }
.card__foot { margin-top: auto; padding-top: var(--s-3); }
.section--paper .card { background: #fff; border-color: rgba(22,21,15,.10); }
.section--paper .card__text { color: var(--t-low-l); }

/* Tarjeta de plato */
.dish { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--ink-2); display: block; }
.dish img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 700ms var(--ease); }
.dish:hover img { transform: scale(1.055); }
.dish__cap {
  position: absolute; inset-inline: 0; bottom: 0; padding: 2.6rem 1.15rem 1.1rem;
  background: linear-gradient(180deg, transparent, rgba(15,14,10,.90) 62%);
  display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem;
}
.dish__name { display: block; font-family: var(--f-display); font-size: 1.08rem; color: var(--cream); line-height: 1.2; }
.dish__origin { display: block; font-size: .625rem; letter-spacing: .18em; text-transform: uppercase; color: var(--taupe); margin-top: .25rem; }
.dish__price { font-size: var(--fs-sm); font-weight: 600; color: var(--taupe-2); white-space: nowrap; }

.cards-3 { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)); }
.dishes { display: grid; gap: var(--s-3); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 48rem) { .dishes { grid-template-columns: repeat(3, 1fr); gap: var(--s-4); } }
@media (min-width: 68rem) { .dishes { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 9. Media / figuras ------------------------------------------- */
.figure { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--ink-3); }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure--tall { aspect-ratio: 4 / 5; }
.figure--wide { aspect-ratio: 16 / 10; }
.figure--square { aspect-ratio: 1 / 1; }
.figure__tag {
  position: absolute; left: 1rem; bottom: 1rem; padding: .42rem .9rem;
  background: rgba(22,21,15,.82); backdrop-filter: blur(6px); border-radius: var(--r-pill);
  font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--taupe-2);
}

/* ---------- 10. Menú (carta) --------------------------------------------- */
.menu-nav {
  position: sticky; top: var(--header-h); z-index: 40;
  background: rgba(22,21,15,.95); backdrop-filter: blur(12px);
  border-block: 1px solid var(--line);
}
.menu-nav ul {
  display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none;
  padding: .7rem 0; -webkit-overflow-scrolling: touch;
}
.menu-nav ul::-webkit-scrollbar { display: none; }
.menu-nav a {
  flex: none; padding: .55rem 1.05rem; border-radius: var(--r-pill);
  font-size: var(--fs-sm); color: var(--t-low); white-space: nowrap; min-height: 40px;
  display: inline-flex; align-items: center;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.menu-nav a:hover { color: var(--t-hi); background: var(--taupe-soft); }
.menu-nav a.is-active { background: var(--taupe); color: #14130E; font-weight: 600; }

.menu-sec { scroll-margin-top: calc(var(--header-h) + 4.75rem); }
.menu-sec + .menu-sec { margin-top: clamp(3rem, 2rem + 4vw, 5.5rem); }
.menu-sec__head { display: grid; gap: .4rem; margin-bottom: var(--s-5); }
.menu-list { display: grid; gap: 0; }
.menu-item {
  display: grid; grid-template-columns: 1fr auto; gap: .35rem 1.25rem;
  padding: 1.15rem 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.menu-item__name { font-family: var(--f-display); font-size: var(--fs-h4); color: var(--t-hi); line-height: 1.25; }
.menu-item__desc { grid-column: 1 / -1; font-size: var(--fs-sm); color: var(--t-low); max-width: 62ch; }
.menu-item__price { font-size: var(--fs-body); font-weight: 600; color: var(--taupe); white-space: nowrap; font-variant-numeric: tabular-nums; }
.diet { display: inline-flex; gap: .3rem; margin-left: .45rem; vertical-align: middle; }
.diet span {
  width: 1.15rem; height: 1.15rem; border-radius: 50%; display: inline-grid; place-items: center;
  font-size: .5625rem; font-weight: 700;
  border: 1px solid currentColor;
}
.diet .v  { color: #8FBF77; }
.diet .vg { color: #AECF92; }
.diet .g  { color: #D4AF37; }

/* ---------- 11. Formularios ---------------------------------------------- */
.form { display: grid; gap: var(--s-4); }
.field { display: grid; gap: .4rem; }
.field label { font-size: var(--fs-sm); font-weight: 500; color: var(--t-hi); }
.section--paper .field label { color: var(--t-hi-l); }
.field .hint { font-size: var(--fs-xs); color: var(--t-low); }
.section--paper .field .hint { color: var(--t-low-l); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .78rem 1rem;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-md);
  color: var(--t-hi); font-size: var(--fs-body);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.section--paper .field input, .section--paper .field select, .section--paper .field textarea {
  background: #fff; border-color: rgba(22,21,15,.16); color: var(--t-hi-l);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(172,147,123,.5); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--taupe); outline-offset: 1px; border-color: var(--taupe); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #D96A5B; }
.field .error { font-size: var(--fs-xs); color: #E8897B; display: none; }
.field .error.is-shown { display: block; }
.form-row { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 40rem) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.form__note { font-size: var(--fs-xs); color: var(--t-low); }
.section--paper .form__note { color: var(--t-low-l); }
.form__status { font-size: var(--fs-sm); padding: .85rem 1.1rem; border-radius: var(--r-md); display: none; }
.form__status.is-ok { display: block; background: rgba(127,176,105,.14); border: 1px solid rgba(127,176,105,.4); color: #A9D08E; }
.form__status.is-err { display: block; background: rgba(217,106,91,.14); border: 1px solid rgba(217,106,91,.4); color: #E8897B; }
.section--paper .form__status.is-ok { color: #3F6B2C; }
.section--paper .form__status.is-err { color: #A6382A; }
.checkbox { display: flex; gap: .7rem; align-items: flex-start; font-size: var(--fs-sm); }
.checkbox input { width: 20px; height: 20px; min-height: 20px; margin-top: .2rem; flex: none; accent-color: var(--taupe); }

/* ---------- 12. Acordeón / FAQ ------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.section--paper .faq, .section--paper .faq__item { border-color: rgba(22,21,15,.12); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: 1.35rem 0; text-align: left; min-height: 48px;
  font-family: var(--f-display); font-size: var(--fs-h4); color: var(--t-hi);
  transition: color var(--dur) var(--ease);
}
.section--paper .faq__q { color: var(--t-hi-l); }
.faq__q:hover { color: var(--taupe); }
.faq__icon { flex: none; width: 1.15rem; height: 1.15rem; position: relative; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; inset: 50% 0 auto 0; height: 1.5px; background: var(--taupe);
  transition: transform var(--dur) var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(0); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__q[aria-expanded="true"] + .faq__a { grid-template-rows: 1fr; }
.faq__a p { padding-bottom: 1.35rem; font-size: var(--fs-sm); max-width: 68ch; }

/* ---------- 13. Galería -------------------------------------------------- */
.gallery { columns: 1; column-gap: var(--s-3); }
@media (min-width: 40rem) { .gallery { columns: 2; } }
@media (min-width: 64rem) { .gallery { columns: 3; column-gap: var(--s-4); } }
.gallery figure { break-inside: avoid; margin-bottom: var(--s-3); border-radius: var(--r-lg); overflow: hidden; position: relative; background: var(--ink-3); }
@media (min-width: 64rem) { .gallery figure { margin-bottom: var(--s-4); } }
.gallery img { width: 100%; transition: transform 700ms var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 2.2rem .95rem .85rem;
  background: linear-gradient(180deg, transparent, rgba(15,14,10,.86));
  font-size: var(--fs-xs); color: var(--sand);
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.gallery figure:hover figcaption, .gallery figure:focus-within figcaption { opacity: 1; transform: none; }
@media (hover: none) { .gallery figcaption { opacity: 1; transform: none; } }

/* ---------- 14. Datos / listas ------------------------------------------- */
.facts { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.fact { padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--ink-2); }
.section--paper .fact { background: #fff; border-color: rgba(22,21,15,.10); }
.fact__n { font-family: var(--f-display); font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); color: var(--taupe); line-height: 1; }
.section--paper .fact__n { color: var(--brown); }
.fact__l { font-size: var(--fs-sm); color: var(--t-low); margin-top: .5rem; }
.section--paper .fact__l { color: var(--t-low-l); }

.ticks { display: grid; gap: .85rem; }
.ticks li { display: grid; grid-template-columns: 1.35rem 1fr; gap: .8rem; align-items: start; font-size: var(--fs-sm); }
.ticks svg { width: 1.35rem; height: 1.35rem; color: var(--taupe); margin-top: .12rem; }
.section--paper .ticks svg { color: var(--brown); }

.info-list { display: grid; gap: var(--s-4); }
.info-list dt { font-size: var(--fs-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--taupe); margin-bottom: .3rem; }
.info-list dd { margin: 0; font-size: var(--fs-body); color: var(--t-hi); }
.section--paper .info-list dt { color: var(--brown); }
.section--paper .info-list dd { color: var(--t-hi-l); }
.info-list a:hover { color: var(--taupe); text-decoration: underline; text-underline-offset: 3px; }

.hours { display: grid; gap: .55rem; }
.hours > div { display: flex; justify-content: space-between; gap: var(--s-4); font-size: var(--fs-sm);
  padding-bottom: .55rem; border-bottom: 1px dashed var(--line); }
.hours dt { color: var(--t-mid); }
.hours dd { margin: 0; color: var(--t-hi); font-variant-numeric: tabular-nums; }
.section--paper .hours > div { border-color: rgba(22,21,15,.14); }
.section--paper .hours dt { color: var(--t-mid-l); }
.section--paper .hours dd { color: var(--t-hi-l); }

/* ---------- 15. Cita ----------------------------------------------------- */
.quote { text-align: center; max-width: 44ch; margin-inline: auto; }
.quote blockquote { font-family: var(--f-display); font-size: var(--fs-h3); line-height: 1.4; color: var(--t-hi); }
.section--paper .quote blockquote { color: var(--t-hi-l); }
.quote cite { display: block; margin-top: var(--s-4); font-style: normal;
  font-size: var(--fs-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--taupe); }
.section--paper .quote cite { color: var(--brown); }

/* ---------- 16. CTA final ------------------------------------------------ */
.cta-band { position: relative; isolation: isolate; overflow: hidden; text-align: center; }
.cta-band__bg { position: absolute; inset: 0; z-index: -2; }
.cta-band__bg picture { display: block; width: 100%; height: 100%; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__scrim { position: absolute; inset: 0; z-index: -1; background: rgba(18,17,12,.80); }

/* ---------- 17. Footer --------------------------------------------------- */
.footer { background: #100F0A; border-top: 1px solid var(--line); padding-block: var(--s-8) var(--s-5); }
.footer__grid { display: grid; gap: var(--s-6); grid-template-columns: 1fr; }
@media (min-width: 48rem) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr; } }
@media (min-width: 68rem) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; } }
.footer h3 { font-family: var(--f-body); font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--taupe); margin-bottom: var(--s-3); }
.footer ul { display: grid; gap: .35rem; }
.footer a { font-size: var(--fs-sm); color: var(--t-low); transition: color var(--dur) var(--ease); }
.footer ul a { display: inline-flex; align-items: center; min-height: 34px; }
@media (max-width: 48rem) {
  .footer ul a, .footer__bottom ul a { min-height: 44px; }
  .info-list dd a { display: inline-flex; align-items: center; min-height: 44px; }
}
.footer a:hover { color: var(--taupe); }
.footer p { font-size: var(--fs-sm); color: var(--t-low); }
.footer__brand img { width: 76px; margin-bottom: var(--s-3); }
.footer__bottom {
  margin-top: var(--s-7); padding-top: var(--s-4); border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); justify-content: space-between;
  font-size: var(--fs-xs); color: var(--t-low);
}
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); }
.footer__bottom ul a { display: inline-flex; align-items: center; min-height: 34px; }
.social { display: flex; gap: .6rem; }
.social a {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); color: var(--t-low);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.social a:hover { color: var(--taupe); border-color: var(--taupe); background: var(--taupe-soft); }
.social svg { width: 19px; height: 19px; }

/* ---------- 18. Flotantes ------------------------------------------------ */
.wa-float {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: 1.15rem; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; background: #1FA855; color: #fff;
  display: grid; place-items: center; box-shadow: var(--sh-3);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.wa-float:hover { transform: scale(1.07); background: #178c46; }
.wa-float svg { width: 29px; height: 29px; }
@media (max-width: 47.9375rem) { .wa-float { bottom: calc(66px + env(safe-area-inset-bottom) + .7rem); } }

/* Volver arriba: abajo a la izquierda, para no competir con WhatsApp.
   Oculto en la vista inicial — aparece cuando ya hay scroll que deshacer. */
.to-top {
  position: fixed; left: max(1rem, env(safe-area-inset-left)); bottom: 1.15rem; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(32, 29, 21, .94); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(172, 147, 123, .72); color: var(--taupe-2);
  box-shadow: var(--sh-3);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
              visibility var(--dur), background-color var(--dur) var(--ease),
              color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--taupe); border-color: var(--taupe); color: #14130E; transform: translateY(-2px); }
.to-top svg { width: 21px; height: 21px; }
@media (max-width: 47.9375rem) {
  .to-top { bottom: calc(66px + env(safe-area-inset-bottom) + .7rem); width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) { .to-top:hover { transform: none; } }

.mobile-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 88;
  display: grid; grid-template-columns: 1fr 1fr; gap: .55rem;
  padding: .55rem var(--gutter) calc(.55rem + env(safe-area-inset-bottom));
  background: rgba(22,21,15,.96); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform 340ms var(--ease);
}
.mobile-bar.is-shown { transform: none; }
@media (min-width: 48rem) { .mobile-bar { display: none; } }

/* ---------- 19. Migas ---------------------------------------------------- */
.crumbs { font-size: var(--fs-xs); color: var(--t-low); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: .5rem; color: var(--line); }
.crumbs a:hover { color: var(--taupe); }
.crumbs [aria-current="page"] { color: var(--t-mid); }
.section--paper .crumbs { color: var(--t-low-l); }
.section--paper .crumbs [aria-current="page"] { color: var(--t-mid-l); }

/* ---------- 20. Motion de entrada (IntersectionObserver) ----------------- */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
  transition-delay: var(--d, 0ms);
}
html:not(.js) .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-in { opacity: 1 !important; transform: none !important; transition: none !important; }
  .card:hover, .btn:hover, .wa-float:hover { transform: none; }
  .card:hover .card__media img, .dish:hover img, .gallery figure:hover img { transform: none; }
}

/* ---------- 21. Utilidades ----------------------------------------------- */
.divider { height: 1px; background: var(--line); border: 0; }
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { padding: .4rem .95rem; border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--t-low); }
.section--paper .pill { border-color: rgba(22,21,15,.16); color: var(--t-low-l); }
.map-embed { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--ink-2); }
.map-embed iframe { display: block; width: 100%; height: clamp(19rem, 42vw, 27rem); border: 0; }
.notice { padding: var(--s-4); border-radius: var(--r-lg); border: 1px solid rgba(172,147,123,.34);
  background: var(--taupe-soft); font-size: var(--fs-sm); }
.page-head { padding-top: calc(var(--header-h) + clamp(2rem, 1rem + 4vw, 4rem)); }

@media print {
  .header, .mobile-nav, .wa-float, .mobile-bar, .scroll-cue, .menu-nav { display: none !important; }
  body { background: #fff; color: #000; }
  .hero__scrim, .hero__bg { display: none; }
}
