/* ==========================================================================
   Farah Restaurant — hoja de estilos única
   Paleta: carbón cálido + dorado + crema
   ========================================================================== */

:root {
  --ink:        #171310;
  --ink-soft:   #2b2320;
  --cream:      #faf6ef;
  --cream-2:    #f2ebe0;
  --gold:       #c8963e;
  --gold-dark:  #a97c2c;
  --brick:      #8c2f22;
  --text:       #2a2320;
  --muted:      #6f635c;
  --line:       rgba(23, 19, 16, .12);
  --line-dark:  rgba(250, 246, 239, .16);

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --radius: 14px;
  --shadow: 0 18px 40px -22px rgba(23, 19, 16, .45);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.5rem); }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.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;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.6rem;
  font-family: var(--font-body);
  font-size: .82rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  text-decoration: none; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: #1a1310; }
.btn--gold:hover { background: var(--gold-dark); color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--cream); }
.btn--ghost:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover { background: var(--ink-soft); }
.btn--outline { border-color: var(--line); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn--wa { background: #25d366; color: #08331a; }
.btn--wa:hover { background: #1eb256; color: #fff; }
.btn--sm { padding: .6rem 1.1rem; font-size: .72rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(23, 19, 16, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.site-header__inner {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--cream); }
.brand__mark {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover;
  border: 1.5px solid var(--gold); flex: none; background: var(--ink-soft);
}
.brand__name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: .02em; }
.brand__tag { display: block; font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); font-family: var(--font-body); font-weight: 600; }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  padding: .5rem .8rem; text-decoration: none; color: rgba(250, 246, 239, .82);
  font-size: .82rem; font-weight: 600; letter-spacing: .04em; border-radius: 8px;
  transition: color .18s ease, background .18s ease;
}
.nav a:hover { color: var(--cream); background: rgba(250, 246, 239, .08); }
.nav a[aria-current="page"] { color: var(--gold); }
.nav > .btn { display: none; } /* el CTA vive en .header-cta en escritorio */
.header-cta { display: flex; align-items: center; gap: .5rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-dark);
  border-radius: 10px; background: transparent; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--cream);
  border-radius: 2px; transition: transform .22s ease, opacity .22s ease;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after  { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: rotate(-45deg) translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--cream); text-align: center;
  display: grid; place-items: center;
  padding: clamp(4.5rem, 13vw, 9rem) 0;
  background: var(--ink);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(23,19,16,.55) 0%, rgba(23,19,16,.72) 55%, rgba(23,19,16,.94) 100%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero__eyebrow {
  font-size: .74rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 1.2rem;
}
.hero h1 { margin-bottom: .4rem; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero__lead {
  max-width: 44ch; margin: 0 auto 2.2rem; font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(250, 246, 239, .84);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.hero__meta {
  margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; justify-content: center;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(250, 246, 239, .62);
}
.hero__meta strong { display: block; color: var(--cream); font-size: .92rem; letter-spacing: .05em; text-transform: none; font-weight: 600; }

/* Hero compacto para páginas interiores */
.page-hero {
  background: var(--ink); color: var(--cream); text-align: center;
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem);
  border-bottom: 3px solid var(--gold);
}
.page-hero__eyebrow { font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: .9rem; }
.page-hero p { max-width: 55ch; margin-inline: auto; color: rgba(250, 246, 239, .8); margin-bottom: 0; }
.page-hero h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); }

/* ---------- Secciones ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--cream2 { background: var(--cream-2); }
.section--dark { background: var(--ink); color: var(--cream); }
.section--dark h2 { color: var(--cream); }
.section--dark p { color: rgba(250, 246, 239, .78); }

.section-head { text-align: center; max-width: 62ch; margin: 0 auto clamp(2.2rem, 5vw, 3.4rem); }
.section-head__eyebrow {
  font-size: .72rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold-dark); font-weight: 700; margin-bottom: .8rem;
}
.section--dark .section-head__eyebrow { color: var(--gold); }
.section-head p { color: var(--muted); margin-bottom: 0; }
.section--dark .section-head p { color: rgba(250, 246, 239, .72); }

/* ---------- Grid de platos / galería ---------- */
.dish-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.dish {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.dish__media { aspect-ratio: 4 / 5; background: var(--cream-2); overflow: hidden; }
.dish__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.dish:hover .dish__media img { transform: scale(1.05); }
.dish__body { padding: 1.1rem 1.25rem 1.4rem; }
.dish__body h3 { margin-bottom: .25rem; font-size: 1.2rem; }
.dish__body p { margin: 0; font-size: .92rem; color: var(--muted); }

/* ---------- Tarjetas de local ---------- */
.locations { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.location {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.2rem); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.section--dark .location { background: rgba(250,246,239,.05); border-color: var(--line-dark); color: var(--cream); }
.location__badge {
  align-self: flex-start; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 700; color: var(--gold-dark); background: rgba(200, 150, 62, .14);
  padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1rem;
}
.section--dark .location__badge { color: var(--gold); background: rgba(200, 150, 62, .18); }
.location h3 { margin-bottom: .5rem; }
.location__addr { font-size: .95rem; color: var(--muted); margin-bottom: 1.2rem; }
.section--dark .location__addr { color: rgba(250,246,239,.72); }
.location__list { display: grid; gap: .5rem; margin-bottom: 1.6rem; font-size: .93rem; }
.location__list li { display: flex; gap: .6rem; align-items: flex-start; }
.location__list svg { flex: none; margin-top: .28em; color: var(--gold-dark); }
.section--dark .location__list svg { color: var(--gold); }
.location__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: .6rem; }

/* ---------- Menú ---------- */
.menu-nav {
  position: sticky; top: var(--header-h); z-index: 40;
  background: var(--cream-2); border-bottom: 1px solid var(--line);
}
.menu-nav ul {
  display: flex; gap: .35rem; overflow-x: auto; padding: .7rem 0;
  scrollbar-width: none;
}
.menu-nav ul::-webkit-scrollbar { display: none; }
.menu-nav a {
  white-space: nowrap; text-decoration: none; padding: .5rem 1rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  border-radius: 999px; color: var(--muted); transition: background .18s, color .18s;
}
.menu-nav a:hover, .menu-nav a.is-active { background: var(--ink); color: var(--cream); }

.menu-section { padding: clamp(2.5rem, 6vw, 4rem) 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 60px); }
.menu-section:last-of-type { border-bottom: 0; }
.menu-section__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 2px solid var(--gold);
}
.menu-section__head h2 { margin: 0; }
.menu-section__note { font-size: .85rem; color: var(--muted); margin: 0; }

.menu-group { margin-bottom: 2.4rem; }
.menu-group > h3 {
  font-family: var(--font-body); font-size: .78rem; font-weight: 800;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold-dark);
  margin-bottom: 1.1rem;
}
.menu-list { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.menu-item { display: block; }
.menu-item__row {
  display: flex; align-items: baseline; gap: .6rem;
  font-family: var(--font-display); font-size: 1.08rem; font-weight: 700;
}
.menu-item__row .dots { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-.25em); }
.menu-item__price { white-space: nowrap; color: var(--gold-dark); font-family: var(--font-body); font-size: .95rem; font-weight: 700; }
.menu-item__desc { margin: .2rem 0 0; font-size: .88rem; color: var(--muted); line-height: 1.5; }

.menu-empty {
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 1.6rem; text-align: center; color: var(--muted); font-size: .92rem;
  background: var(--cream-2);
}
.menu-empty p { margin: 0 0 1rem; }
.menu-empty p:last-child { margin-bottom: 0; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: 2.5rem; grid-template-columns: 1.1fr 1fr; align-items: start; }
.contact-list { display: grid; gap: 1.4rem; }
.contact-list dt {
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: .3rem;
}
.contact-list dd { margin: 0; font-size: 1.02rem; }
.contact-list a { text-decoration: none; border-bottom: 1px solid rgba(200,150,62,.5); }
.contact-list a:hover { color: var(--gold); }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-dark); min-height: 320px; }
.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; filter: grayscale(.25); }

/* ---------- Footer ---------- */
.site-footer { background: #100d0b; color: rgba(250,246,239,.7); padding: 3rem 0 2rem; font-size: .9rem; }
.site-footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 2.5rem; }
.site-footer h4 { font-family: var(--font-body); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: .9rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer li { margin-bottom: .45rem; }
.site-footer__bottom {
  border-top: 1px solid var(--line-dark); padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .8rem;
  color: rgba(250,246,239,.5);
}
.social { display: flex; gap: .6rem; }
.social a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-dark);
  display: grid; place-items: center; transition: background .2s, color .2s, border-color .2s;
}
.social a:hover { background: var(--gold); color: #1a1310; border-color: var(--gold); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 70;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 26px -8px rgba(0,0,0,.5);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .header-cta .btn { display: none; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line-dark);
    padding: .5rem 1.25rem 1.25rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .85rem .5rem; border-bottom: 1px solid var(--line-dark); border-radius: 0; }
  .nav > .btn { display: inline-flex; margin-top: .9rem; border-radius: 999px; border-bottom: 0; text-align: center; }
  .site-header__inner { position: relative; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .menu-list { grid-template-columns: 1fr; }
  .hero__meta { gap: 1.2rem; }
  .dish-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .dish__media { aspect-ratio: 1 / 1; }
  .dish__body { padding: .8rem .85rem 1.1rem; }
  .dish__body h3 { font-size: 1rem; }
  .dish__body p { font-size: .78rem; }
  .location__actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
