/* Bahja — "La mesa llena"
   Color: negro carbón del logo como base · rojo granada SOLO para acciones y las secciones de pedido ·
   azafrán para destacar palabras · pistacho para confirmar ("agregado") · blanco papel para la comanda y la galería. */

:root {
  --char: #15110E;
  --char-2: #1E1814;
  --char-3: #2A221C;
  --line: rgba(244, 237, 226, .14);
  --pita: #F4EDE2;
  --paper: #FFFFFF;
  --white: #FBFAF8;
  --muted: #B9AD9D;
  --pom: #A8202A;
  --pom-2: #8A1820;
  --saffron: #E8A93A;
  --pistachio: #A9C46C;

  --f-disp: 'Reem Kufi', 'Arial Black', sans-serif;
  --f-text: 'Readex Pro', 'Helvetica Neue', Arial, sans-serif;

  --gut: clamp(16px, 4vw, 60px);
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; overflow-x: clip; background: var(--char); color: var(--pita); font: 400 clamp(16px, 1.1vw, 18px)/1.6 var(--f-text); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--pom); color: #fff; padding: 10px 16px; border-radius: 6px; }
.skip:focus { top: 12px; }
section[id] { scroll-margin-top: 70px; }
.ar { font-family: var(--f-disp); }

.h2 { font: 700 clamp(40px, 5.2vw, 84px)/1 var(--f-disp); letter-spacing: -.01em; margin: 0 0 .35em; }
.hl { color: var(--saffron); }
.tag { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 500 13px/1 var(--f-text); letter-spacing: .26em; text-transform: uppercase; color: var(--saffron); }
.tag::before { content: ''; width: 10px; height: 10px; background: var(--pom); transform: rotate(45deg); }
.tag--light { color: var(--pita); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border-radius: 4px; border: 1.5px solid transparent; font: 500 16px/1 var(--f-text); text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--pomegranate { background: var(--pom); color: #fff; }
.btn--pomegranate:hover { background: var(--pom-2); }
.btn--pita { background: var(--pita); color: var(--char); }
.btn--pita:hover { background: #fff; }
.btn--line { border-color: rgba(244, 237, 226, .5); color: var(--pita); }
.btn--line:hover { border-color: var(--pita); }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn--lg { min-height: 58px; padding: 0 28px; font-size: 17px; }
.btn--block { width: 100%; }
.link { font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--pom); text-decoration-thickness: 2px; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 24px; padding: 10px var(--gut) 22px; background: linear-gradient(rgba(21, 17, 14, .92) 55%, transparent); transition: background-color .3s ease; }
.nav.is-solid { padding-bottom: 10px; background: rgba(21, 17, 14, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav__brand { margin-right: auto; display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px/1 var(--f-disp); letter-spacing: .04em; }
.nav__brand img { width: 40px; height: 40px; border-radius: 50%; mix-blend-mode: lighten; }
.nav__links { display: flex; gap: 24px; }
.nav__links a { font-size: 15px; text-decoration: none; color: var(--muted); }
.nav__links a:hover { color: var(--pita); }

/* ---------- Hero: la mesa ---------- */
.table {
  --D: min(118vh, 112vw);
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate;
  display: grid; place-items: center; padding: 90px var(--gut) 90px;
  background: radial-gradient(60% 60% at 50% 50%, #2B1E15 0%, var(--char) 70%);
}
.table__top {
  position: absolute; z-index: -2; left: 50%; top: 50%; width: var(--D); height: var(--D); margin: calc(var(--D) / -2) 0 0 calc(var(--D) / -2);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(0, 0, 0, .0) 0 14px, rgba(0, 0, 0, .12) 14px 16px),
    radial-gradient(circle, #5B4330 0%, #3D2C1F 60%, #2A1E15 100%);
  box-shadow: 0 0 0 10px #1B140F, 0 40px 120px rgba(0, 0, 0, .7);
}
.table::before { /* viñeta para que el texto se lea */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(21, 17, 14, .92) 0%, rgba(21, 17, 14, .78) 22%, rgba(21, 17, 14, .1) 46%, transparent 60%);
}
.orbit { position: absolute; inset: 0; }
.js .orbit { animation: spin 160s linear infinite; }
.plate {
  --R: calc(var(--D) * .395);
  position: absolute; left: 50%; top: 50%; width: calc(var(--D) * .22); aspect-ratio: 1; margin: calc(var(--D) * -.11) 0 0 calc(var(--D) * -.11);
  border-radius: 50%; overflow: hidden; background: #fff;
  border: calc(var(--D) * .012) solid #F7F3EE; box-shadow: 0 18px 40px rgba(0, 0, 0, .55), inset 0 0 0 2px rgba(0, 0, 0, .08);
  transform: rotate(var(--a)) translateY(calc(var(--R) * -1)) rotate(calc(var(--a) * -1));
}
.plate img { width: 100%; height: 100%; object-fit: cover; }
.js .plate img { animation: spin 160s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.table__center { text-align: center; max-width: 720px; }
.table__kicker { margin: 0 0 22px; font: 500 13px/1 var(--f-text); letter-spacing: .26em; text-transform: uppercase; color: var(--saffron); }
.wm { margin: 0; color: var(--pita); }
.wm svg { width: min(560px, 78vw); height: auto; overflow: visible; filter: drop-shadow(0 6px 30px rgba(0, 0, 0, .8)); }
.wm-meat { fill: var(--pom); }
.wm-l, .wm-rod, .wm-meat { transform-box: fill-box; }
.steam { color: var(--muted); }
.js .steam .st { animation: steam 2.4s ease-in-out infinite; }
.js .steam .st:nth-child(2) { animation-delay: .4s; }
.js .steam .st:nth-child(3) { animation-delay: .8s; }
@keyframes steam { 0%, 100% { opacity: .2; transform: translateY(4px); } 50% { opacity: 1; transform: translateY(-4px); } }
.table__sub { margin: 14px 0 0; font: 500 clamp(13px, 1.2vw, 17px)/1 var(--f-text); letter-spacing: .5em; text-indent: .5em; text-transform: uppercase; }
.table__ar { margin: 22px 0 30px; font-size: clamp(17px, 1.4vw, 21px); color: var(--muted); }
.table__ar .ar { font-size: 1.6em; color: var(--saffron); margin-right: 6px; vertical-align: -0.1em; }
.table__ar em { font-style: normal; color: var(--pita); }
.table__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.table__facts { position: absolute; left: var(--gut); right: var(--gut); bottom: 22px; margin: 0; padding: 0; list-style: none; display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.table__facts b { color: var(--pita); font-weight: 600; }

/* ---------- Primera vez ---------- */
.first { background: var(--pom); color: #fff; }
.first__pin { display: grid; grid-template-columns: .85fr 1fr; gap: clamp(32px, 6vw, 100px); align-items: center; min-height: 100vh; min-height: 100svh; padding: 90px max(var(--gut), calc((100% - var(--max)) / 2)); }
.first__img { margin: 0; }
.first__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 24px 24px 0 var(--pom-2); }
.first__t { margin: 0 0 30px; font: 500 clamp(20px, 1.8vw, 26px)/1.3 var(--f-text); max-width: 26ch; }
.first__steps { list-style: none; margin: 0 0 30px; padding: 0; }
.first__steps li { font: 700 clamp(46px, 6vw, 96px)/1.02 var(--f-disp); letter-spacing: -.01em; }
.first__steps em { display: block; font-style: normal; font-size: .5em; line-height: 1.15; color: #FFE1A6; margin-top: .15em; }
.first__p { margin: 0; max-width: 48ch; font-size: clamp(16px, 1.2vw, 19px); color: #FBE3E1; }

/* ---------- Carta + comanda ---------- */
.order { background: var(--char-2); padding: clamp(90px, 11vw, 160px) var(--gut); }
.order__head, .order__grid { max-width: var(--max); margin-left: auto; margin-right: auto; }
.order__head { max-width: var(--max); margin-bottom: 50px; }
.order__head > p:not(.tag) { max-width: 56ch; font-size: clamp(17px, 1.3vw, 20px); color: #D9CFC2; }
.order__grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: clamp(24px, 3vw, 44px); align-items: start; }
.dishes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dish { background: var(--char-3); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.dish--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
.dish__img { margin: 0; position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.dish--wide .dish__img { aspect-ratio: auto; min-height: 340px; }
.dish__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.dish:hover .dish__img img { transform: scale(1.06); }
.dish__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.dish--wide .dish__body { padding: clamp(26px, 3vw, 44px); justify-content: center; }
.dish__k { margin: 0 0 8px; font: 500 12px/1 var(--f-text); letter-spacing: .2em; text-transform: uppercase; color: var(--saffron); }
.dish h3 { margin: 0 0 8px; font: 700 clamp(28px, 2.4vw, 38px)/1.05 var(--f-disp); }
.dish--wide h3 { font-size: clamp(44px, 4.4vw, 70px); }
.dish__body > p:not(.dish__k) { margin: 0 0 18px; color: #D9CFC2; font-size: 16px; }
.dish--side { grid-column: 1 / -1; background: transparent; border: 1.5px dashed var(--line); }
.dish--side .dish__body { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 20px; }
.dish--side h3, .dish--side .dish__body > p:not(.dish__k) { margin: 0; }
.dish--side .adds { margin: 0 0 0 auto; }
.adds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.add {
  min-height: 44px; padding: 0 16px; border-radius: 99px; border: 1.5px solid rgba(244, 237, 226, .45); background: transparent; cursor: pointer;
  font: 500 15px/1 var(--f-text); transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.add:hover { background: var(--pita); color: var(--char); border-color: var(--pita); }
.add.is-added { background: var(--pistachio); border-color: var(--pistachio); color: var(--char); }

.ticket { position: sticky; top: 86px; }
.ticket__paper {
  position: relative; background: var(--paper); color: var(--char); padding: 26px 24px 36px; display: grid; gap: 16px;
  font-size: 15px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
  -webkit-mask: radial-gradient(circle 9px at 50% 100%, transparent 98%, #000) 0 0 / 22px 100% repeat-x;
  mask: radial-gradient(circle 9px at 50% 100%, transparent 98%, #000) 0 0 / 22px 100% repeat-x;
}
.ticket__brand { margin: 0; font: 700 13px/1 var(--f-disp); letter-spacing: .3em; color: #7A6E62; text-align: center; padding-bottom: 12px; border-bottom: 2px dashed #D8D0C5; }
.ticket__t { margin: 0; font: 700 30px/1 var(--f-disp); }
.ticket fieldset { border: 0; margin: 0; padding: 0; }
.ticket legend { font: 500 12px/1 var(--f-text); letter-spacing: .2em; text-transform: uppercase; color: #6E6257; margin-bottom: 8px; padding: 0; }
.ticket__sede, .ticket__how { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ticket__sede legend, .ticket__how legend { grid-column: 1 / -1; }
.ticket__sede label, .ticket__how label { position: relative; cursor: pointer; }
.ticket__sede input, .ticket__how input { position: absolute; opacity: 0; }
.ticket__sede span, .ticket__how span { display: grid; gap: 2px; padding: 10px 12px; border: 1.5px solid #D8D0C5; border-radius: 4px; font-weight: 600; transition: border-color .2s ease, background-color .2s ease; }
.ticket__sede small { font-weight: 400; color: #6E6257; }
.ticket input:checked + span { border-color: var(--char); background: #F4EFE8; box-shadow: inset 0 0 0 1px var(--char); }
.ticket input:focus-visible + span { outline: 2px solid var(--pom); outline-offset: 2px; }
.ticket__items { list-style: none; margin: 0; padding: 12px 0; border-top: 2px dashed #D8D0C5; border-bottom: 2px dashed #D8D0C5; display: grid; gap: 8px; min-height: 70px; }
.ticket__empty { color: #6E6257; font-size: 14px; }
.ticket__item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.ticket__item b { font-weight: 600; }
.qty { display: inline-flex; align-items: center; gap: 2px; }
.qty button { width: 32px; height: 32px; border: 1.5px solid #D8D0C5; border-radius: 4px; background: #fff; cursor: pointer; font-size: 18px; line-height: 1; }
.qty button:hover { border-color: var(--char); }
.qty output { min-width: 28px; text-align: center; font-weight: 600; }
.ticket__note { display: grid; gap: 6px; }
.ticket__note span { font: 500 12px/1 var(--f-text); letter-spacing: .2em; text-transform: uppercase; color: #6E6257; }
.ticket__note textarea { border: 1.5px solid #D8D0C5; border-radius: 4px; padding: 10px; resize: vertical; font-size: 15px; color: var(--char); }
.ticket__fine { margin: 0; font-size: 13px; color: #6E6257; line-height: 1.5; }

/* ---------- La mesa llena ---------- */
.full { background: var(--white); color: var(--char); padding: clamp(100px, 12vw, 170px) var(--gut); }
.full__quote { max-width: 18ch; margin: 0 auto 60px; text-align: center; font: 700 clamp(40px, 5.4vw, 88px)/1.02 var(--f-disp); }
.full .hl { color: var(--pom); }
.full__grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(70px, 7vw, 110px); gap: 14px; }
.f { margin: 0; overflow: hidden; border-radius: 4px; clip-path: inset(0% 0% 0% 0%); }
.f img { width: 100%; height: 100%; object-fit: cover; }
.f1 { grid-column: 1 / 6; grid-row: 1 / 6; }
.f2 { grid-column: 6 / 9; grid-row: 1 / 4; }
.f3 { grid-column: 9 / 13; grid-row: 1 / 5; }
.f4 { grid-column: 6 / 9; grid-row: 4 / 8; }
.f5 { grid-column: 1 / 6; grid-row: 6 / 9; }
.f6 { grid-column: 9 / 13; grid-row: 5 / 9; }
.f6 img { object-position: 50% 30%; }
.full__p { max-width: 60ch; margin: 50px auto 0; text-align: center; font-size: clamp(17px, 1.3vw, 20px); }

/* ---------- El local ---------- */
.local { background: var(--char); }
.local__photo { margin: 0; position: relative; height: clamp(460px, 82vh, 820px); overflow: hidden; }
.local__photo img { width: 100%; height: 100%; object-fit: cover; }
.local__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(21, 17, 14, .95) 0%, rgba(21, 17, 14, .35) 45%, rgba(21, 17, 14, .15) 100%); }
.local__photo figcaption { position: absolute; z-index: 1; left: var(--gut); right: var(--gut); bottom: clamp(30px, 6vh, 70px); max-width: 760px; }
.local__t { margin: 0 0 12px; font: 700 clamp(44px, 6vw, 96px)/1 var(--f-disp); }
.local__photo figcaption p:last-child { margin: 0; font-size: clamp(17px, 1.4vw, 21px); }
.local__info { max-width: var(--max); margin: 0 auto; padding: clamp(50px, 6vw, 90px) var(--gut) clamp(90px, 10vw, 140px); display: grid; grid-template-columns: 1fr 1fr; gap: 30px clamp(30px, 5vw, 80px); }
.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; }
.facts dt { font: 500 12px/1 var(--f-text); letter-spacing: .22em; text-transform: uppercase; color: var(--saffron); margin-bottom: 8px; }
.facts dd { margin: 0; }
.facts small { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }
.facts .big { font: 700 30px/1 var(--f-disp); }
.local__cta { grid-column: 1; display: flex; flex-wrap: wrap; gap: 12px; align-self: start; }
.local__map { grid-column: 2; grid-row: 1 / 3; position: relative; min-height: 380px; border-radius: 6px; overflow: hidden; }
.local__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.5) contrast(1.05); }

/* ---------- ¿Pedimos? ---------- */
.ask { background: var(--pom); color: #fff; padding: clamp(100px, 12vw, 170px) var(--gut); text-align: center; }
.ask__t { margin: 0; font: 700 clamp(70px, 13vw, 210px)/.9 var(--f-disp); }
.ask__lead { margin: 20px auto 50px; max-width: 46ch; font-size: clamp(17px, 1.4vw, 21px); }
.sedes { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; text-align: left; }
.sede { background: var(--char); border-radius: 6px; padding: 30px; }
.sede__k { margin: 0 0 6px; font: 500 12px/1 var(--f-text); letter-spacing: .24em; text-transform: uppercase; color: var(--saffron); }
.sede__tel { display: block; font: 700 clamp(34px, 3.4vw, 48px)/1.1 var(--f-disp); text-decoration: none; }
.sede__a { margin: 6px 0 20px; color: var(--muted); }
.sede__btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Footer ---------- */
.foot { display: grid; grid-template-columns: auto auto 1fr auto; gap: 24px 36px; align-items: center; padding: 50px var(--gut); border-top: 1px solid var(--line); }
.foot img { width: 72px; border-radius: 50%; mix-blend-mode: lighten; }
.foot p { margin: 0; }
.foot__name { font: 700 24px/1.2 var(--f-disp); }
.foot__name .ar { color: var(--saffron); }
.foot__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 15px; }
.foot__list span { color: var(--saffron); margin-right: 6px; }
.foot__list a { text-decoration: none; }
.foot__list a:hover { text-decoration: underline; }
.foot__demo { color: var(--muted); font-size: 14px; }

.dock { display: none; }

/* ---------- Reveals ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .order__grid { grid-template-columns: 1fr; }
  .ticket { position: static; max-width: 560px; }
}
@media (max-width: 760px) {
  body { padding-bottom: 78px; }
  .nav .btn--sm { display: none; }
  .table { --D: 150vw; align-items: end; padding-bottom: 110px; }
  .table__top { top: 36%; }
  .table::before { background: radial-gradient(circle at 50% 36%, rgba(21, 17, 14, .55) 0%, transparent 40%), linear-gradient(0deg, var(--char) 30%, rgba(21, 17, 14, .6) 55%, transparent 75%); }
  .table__kicker { font-size: 11px; letter-spacing: .18em; }
  .table__sub { letter-spacing: .28em; text-indent: .28em; font-size: 12px; }
  .table__ar { margin: 16px 0 22px; }
  .table__cta .btn { flex: 1 1 100%; }
  .table__facts { bottom: 14px; justify-content: center; font-size: 12px; gap: 4px 14px; }
  .table__facts li:nth-child(2) { display: none; }
  .first__pin { grid-template-columns: 1fr; min-height: 0; padding: 80px var(--gut); }
  .first__img { width: 82%; }
  .dishes { grid-template-columns: 1fr; }
  .dish--wide { grid-template-columns: 1fr; }
  .dish--wide .dish__img { min-height: 0; aspect-ratio: 4 / 3; }
  .full__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .f { grid-column: auto !important; grid-row: auto !important; aspect-ratio: 4 / 5; }
  .f5 { grid-column: 1 / -1 !important; aspect-ratio: 16 / 10; }
  .local__info { grid-template-columns: 1fr; }
  .local__map { grid-column: 1; grid-row: auto; }
  .facts { grid-template-columns: 1fr; }
  .sedes { grid-template-columns: 1fr; }
  .foot { grid-template-columns: auto 1fr; }
  .foot__list, .foot__demo { grid-column: 1 / -1; }
  .dock {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 6px;
    position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 60; padding: 6px; border-radius: 8px;
    background: rgba(30, 24, 20, .95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); border: 1px solid var(--line);
  }
  .dock a { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 50px; border-radius: 5px; text-decoration: none; font-weight: 500; font-size: 15px; }
  .dock .dock__main { background: var(--pom); color: #fff; }
  .dock b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 99px; background: #fff; color: var(--pom); font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
