/* ==========================================================
   La Esquina · Cafetería (demo)  —  styles.css
   Paleta: crema, beige, arena, caramelo y marrón café.
   ========================================================== */

:root {
  --cream:     #fbf6ee;
  --cream-2:   #f4ece0;
  --beige:     #e8dac4;
  --sand:      #d6c1a0;
  --caramel:   #b5824f;
  --caramel-2: #c89b6d;
  --brown:     #6b4a37;
  --espresso:  #3b271d;
  --ink:       #2c1e17;
  --muted:     #7d6757;
  --olive:     #7f8a5a;

  --ff-display: "Fraunces", "Georgia", "Times New Roman", serif;
  --ff-body:    "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 22px;
  --radius-lg: 34px;
  --shadow-sm: 0 2px 10px rgba(59, 39, 29, .06);
  --shadow:    0 18px 40px -18px rgba(59, 39, 29, .28);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html, body { overflow-x: clip; }
/* grano de papel sutil */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.3 0 0 0 0 0.2 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--ff-display); font-weight: 500; line-height: 1.1; margin: 0; color: var(--espresso); }
p { margin: 0 0 1em; }
em { font-style: italic; }
h1 em, h2 em { color: var(--caramel); font-weight: 400; }

.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--espresso); color: var(--cream); padding: .6rem 1rem; z-index: 200; }
.skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 2px solid var(--caramel); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500;
  color: var(--caramel); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.section__head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section__head .eyebrow { justify-content: center; }
.section__title { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.01em; margin-bottom: 1rem; }
.section__lead { color: var(--muted); }

/* ---------- Botones ---------- */
.btn {
  --bg: transparent; --fg: var(--espresso);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.7rem; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--bg); color: var(--fg); font-weight: 500; font-size: .98rem;
  transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .35s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(4px); }
.btn--dark { --bg: var(--espresso); --fg: var(--cream); box-shadow: 0 10px 24px -12px rgba(59,39,29,.6); }
.btn--dark:hover { --bg: var(--brown); }
.btn--ghost { border-color: var(--sand); }
.btn--ghost:hover { --bg: var(--beige); }
.btn--small { padding: .6rem 1.2rem; font-size: .9rem; }
.btn--block { width: 100%; }

/* ---------- Cabecera ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .4s, box-shadow .4s, height .4s var(--ease);
}
.header.is-scrolled {
  background: rgba(251, 246, 238, .86);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(107, 74, 55, .1);
  --header-h: 66px;
}
.header.menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; box-shadow: none; }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.logo { display: flex; align-items: center; gap: .7rem; color: var(--espresso); }
.logo__mark { width: 36px; height: 36px; color: var(--caramel); transition: transform .6s var(--ease); }
.logo:hover .logo__mark { transform: rotate(-8deg) scale(1.05); }
.logo__text { font-family: var(--ff-display); font-size: 1.45rem; font-weight: 600; line-height: 1; display: flex; flex-direction: column; }
.logo__text small { font-family: var(--ff-body); font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 500; color: var(--muted); margin-top: .3rem; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; gap: 1.8rem; list-style: none; margin: 0; padding: 0; }
.nav__link { position: relative; font-size: .95rem; color: var(--brown); padding: .3rem 0; transition: color .3s; }
.nav__link::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--caramel); transform: translateX(-50%) scale(0); transition: transform .35s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--espresso); }
.nav__link.is-active::after, .nav__link:hover::after { transform: translateX(-50%) scale(1); }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--sand); background: var(--cream); position: relative; z-index: 60; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.6px; background: var(--espresso); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 4.5rem)); overflow: hidden;
  background: radial-gradient(1200px 600px at 85% 10%, var(--cream-2), transparent 60%), var(--cream); }
.hero__sun { position: absolute; width: 520px; aspect-ratio: 1; right: -140px; top: 40px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,155,109,.28), rgba(200,155,109,0) 65%); filter: blur(10px);
  animation: breathe 9s ease-in-out infinite; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero__title { font-size: clamp(2.8rem, 7vw, 5.4rem); font-weight: 400; letter-spacing: -.02em; margin-bottom: 1.5rem; }
.hero__title em { font-weight: 300; }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 32rem; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 3rem; }
.hero__facts { display: flex; gap: clamp(1.5rem, 4vw, 3rem); list-style: none; padding: 1.5rem 0 0; margin: 0; border-top: 1px solid var(--beige); }
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts strong { font-family: var(--ff-display); font-size: 1.8rem; font-weight: 500; color: var(--espresso); }
.hero__facts span { font-size: .82rem; color: var(--muted); }

.hero__visual { position: relative; padding: 0 0 3rem 2.5rem; }
.hero__arch { border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); background: var(--beige); }
.hero__arch img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; transform: scale(1.08); animation: slowzoom 18s ease-in-out infinite alternate; }

.hero__cup { position: absolute; left: 0; bottom: 0; width: 42%; aspect-ratio: 1; border-radius: 50%; overflow: visible;
  border: 8px solid var(--cream); box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; }
.hero__cup img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.steam { position: absolute; width: 46%; left: 27%; top: -36%; fill: none; stroke: var(--sand); stroke-width: 2.4; stroke-linecap: round; }
.steam path { stroke-dasharray: 60; stroke-dashoffset: 60; opacity: 0; animation: steam 3.6s ease-in-out infinite; }
.steam path:nth-child(2) { animation-delay: .7s; }
.steam path:nth-child(3) { animation-delay: 1.4s; }

.hero__badge { position: absolute; top: 8%; right: -4%; width: 120px; height: 120px; display: grid; place-items: center; }
.hero__badge-ring { position: absolute; inset: 0; animation: spin 22s linear infinite; }
.hero__badge-ring text { font-size: 11.5px; letter-spacing: .21em; text-transform: uppercase; fill: var(--espresso); font-family: var(--ff-body); font-weight: 500; }
.hero__badge-core { width: 58px; height: 58px; border-radius: 50%; background: var(--caramel-2); display: grid; place-items: center; font-size: 1.5rem; box-shadow: var(--shadow-sm); }
.hero__badge::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--cream); box-shadow: var(--shadow-sm); }

.marquee { margin-top: clamp(3rem, 7vw, 5rem); background: var(--espresso); color: var(--beige); padding: 1.05rem 0; overflow: hidden; transform: rotate(-1.2deg) scale(1.02); }
.marquee__track { display: flex; gap: 2.2rem; width: max-content; animation: marquee 38s linear infinite; font-family: var(--ff-display); font-style: italic; font-size: 1.35rem; white-space: nowrap; }
.marquee__track span:nth-child(even) { color: var(--caramel-2); font-style: normal; font-size: 1rem; align-self: center; }

/* ---------- Nosotros ---------- */
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.about__media { margin: 0; position: relative; }
.about__media img { border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 160px; aspect-ratio: 4/5; object-fit: cover; box-shadow: var(--shadow); width: 100%; }
.about__media::before { content: ""; position: absolute; inset: 1.5rem -1.5rem -1.5rem 1.5rem; border: 1.5px solid var(--sand); border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 160px; z-index: -1; }
.about__media figcaption { position: absolute; right: -1rem; bottom: 2rem; background: var(--cream); padding: .75rem 1.1rem; border-radius: 14px; font-size: .85rem; color: var(--brown); box-shadow: var(--shadow-sm); max-width: 220px; }
.about__copy > p { color: var(--muted); }

.values { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; gap: 1rem; }
.value { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--cream-2); transition: transform .4s var(--ease), background .3s; }
.value:hover { transform: translateX(6px); background: var(--beige); }
.value__icon { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; }
.value__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--caramel); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.value h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.value p { margin: 0; font-size: .93rem; color: var(--muted); }

/* ---------- Carta ---------- */
.menu { background: var(--cream-2); position: relative; }
.menu::before { content: ""; position: absolute; inset: 0 0 auto; height: 60px; background: var(--cream); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.tabs { position: relative; display: flex; justify-content: center; gap: .3rem; margin: 0 auto 2.5rem; padding: .4rem; width: fit-content; max-width: 100%; background: var(--cream); border-radius: 999px; box-shadow: var(--shadow-sm); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; z-index: 1; border: 0; background: none; padding: .7rem 1.3rem; border-radius: 999px; font-size: .95rem; color: var(--brown); white-space: nowrap; transition: color .35s; }
.tab.is-active { color: var(--cream); }
.tabs__pill { position: absolute; z-index: 0; top: .4rem; bottom: .4rem; left: 0; width: 0; border-radius: 999px; background: var(--espresso); transition: transform .5s var(--ease), width .5s var(--ease); }

.menu__board { display: grid; grid-template-columns: repeat(2, 1fr); gap: .4rem 3.5rem; max-width: 960px; margin: 0 auto; min-height: 340px; align-content: start; }
.dish { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding: 1.15rem .2rem; border-bottom: 1px dashed var(--sand);
  opacity: 0; transform: translateY(14px); animation: dishIn .6s var(--ease) forwards; animation-delay: calc(var(--i) * 60ms); }
.dish__name { font-family: var(--ff-display); font-size: 1.22rem; color: var(--espresso); display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.dish__tag { font-family: var(--ff-body); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; padding: .15rem .55rem; border-radius: 999px; background: var(--beige); color: var(--brown); }
.dish__tag--veg { background: #e4e8d4; color: #5a6440; }
.dish__desc { grid-column: 1; font-size: .9rem; color: var(--muted); margin: 0; }
.price { font-family: var(--ff-display); font-size: 1.2rem; color: var(--caramel); font-weight: 500; white-space: nowrap; grid-row: 1; grid-column: 2; }
.price--big { font-size: 2.2rem; margin: 0; }

.menu__special { margin: 3.5rem auto 0; max-width: 960px; display: grid; grid-template-columns: 1fr 1.2fr; border-radius: var(--radius-lg); overflow: hidden; background: var(--espresso); color: var(--beige); box-shadow: var(--shadow); }
.menu__special-img { min-height: 260px; overflow: hidden; }
.menu__special-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.menu__special:hover .menu__special-img img { transform: scale(1.06); }
.menu__special-copy { padding: clamp(1.8rem, 4vw, 3rem); align-self: center; }
.menu__special-copy h3 { color: var(--cream); font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: .8rem; }
.menu__special-copy .eyebrow { color: var(--caramel-2); }
.menu__special .price { color: var(--caramel-2); }

/* ---------- Galería ---------- */
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 1rem; grid-auto-flow: dense; }
.g-item { position: relative; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--beige); }
.g-item--tall { grid-row: span 2; }
.g-item--wide { grid-column: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; filter: saturate(.92); }
.g-item::after { content: attr(data-caption); position: absolute; inset: auto 0 0; padding: 2.5rem 1.2rem 1rem; color: var(--cream); font-size: .92rem; text-align: left;
  background: linear-gradient(to top, rgba(44,30,23,.72), transparent); opacity: 0; transform: translateY(10px); transition: opacity .45s, transform .45s var(--ease); }
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.07); filter: saturate(1.05); }
.g-item:hover::after, .g-item:focus-visible::after { opacity: 1; transform: none; }

/* ---------- Visítanos ---------- */
.visit { background: linear-gradient(var(--cream), var(--cream-2)); }
.visit__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; align-items: start; }
.card { min-width: 0; background: var(--cream); border: 1px solid var(--beige); border-radius: var(--radius-lg); padding: 2rem 1.8rem; box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__title { font-size: 1.6rem; margin-bottom: 1.2rem; }

.status { display: inline-flex; align-items: center; gap: .55rem; font-size: .85rem; font-weight: 500; padding: .35rem .85rem; border-radius: 999px; background: var(--cream-2); color: var(--brown); margin-bottom: 1rem; }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sand); }
.status.is-open { background: #e6ecd8; color: #4f5c33; }
.status.is-open .status__dot { background: var(--olive); box-shadow: 0 0 0 0 rgba(127,138,90,.6); animation: pulse 2s infinite; }
.status.is-closed { background: #f1e1d6; color: #8a4d32; }
.status.is-closed .status__dot { background: #b8643f; }

.hours__list { list-style: none; padding: 0; margin: 0; }
.hours__list li { display: flex; justify-content: space-between; padding: .62rem .7rem; border-radius: 12px; font-size: .95rem; color: var(--muted); }
.hours__list li:nth-child(odd) { background: rgba(232, 218, 196, .3); }
.hours__list li.is-today { background: var(--espresso); color: var(--cream); font-weight: 500; }

.map { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 5/3; margin-bottom: 1.2rem; }
.map svg { width: 100%; height: 100%; display: block; }
.map__pin { position: absolute; left: 50%; top: 46%; width: 30px; transform: translate(-50%, -100%); animation: bounce 2.4s var(--ease) infinite; }
.map__pin svg { fill: var(--espresso); filter: drop-shadow(0 6px 6px rgba(59,39,29,.3)); }
.map__pin::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 16px; height: 6px; border-radius: 50%; background: rgba(59,39,29,.25); transform: translateX(-50%); }
address { font-style: normal; margin-bottom: .8rem; color: var(--brown); }

.contact__list { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .65rem; }
.contact__list li { display: flex; flex-direction: column; font-size: .97rem; }
.label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--caramel); font-weight: 500; }
.tag { font-style: normal; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; padding: .1rem .45rem; border-radius: 6px; background: var(--beige); color: var(--brown); margin-left: .3rem; vertical-align: middle; }

.form { display: grid; gap: .8rem; }
.form__row { display: grid; grid-template-columns: 1fr 90px; gap: .8rem; }
.form label { min-width: 0; display: grid; gap: .3rem; font-size: .82rem; color: var(--brown); font-weight: 500; }
.form input, .form select, .form textarea { width: 100%; min-width: 0; font: inherit; font-size: .95rem; color: var(--ink); padding: .7rem .9rem; border-radius: 12px; border: 1.5px solid var(--beige); background: var(--cream-2); resize: vertical; transition: border-color .3s, background .3s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--caramel-2); background: #fff; }
.form .is-invalid { border-color: #c27a5a; }
.form__note { font-size: .78rem; color: var(--muted); text-align: center; margin: 0; }

/* ---------- Pie ---------- */
.footer { background: var(--espresso); color: var(--sand); padding: 3.5rem 0 1.8rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(214,193,160,.18); }
.footer .logo__text { color: var(--cream); }
.footer .logo__text small { color: var(--sand); }
.footer__brand p { margin: .8rem 0 0; font-size: .92rem; }
.footer__nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer__nav a { font-size: .92rem; transition: color .3s; }
.footer__nav a:hover { color: var(--cream); }
.footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem 2rem; padding-top: 1.4rem; font-size: .8rem; opacity: .75; }
.footer__legal p { margin: 0; }
.footer__fiction { max-width: 560px; }

/* ---------- Botón WhatsApp DEMO ---------- */
.wa { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 70; display: flex; align-items: center; gap: .6rem; padding: .45rem 1.1rem .45rem .45rem; border-radius: 999px; border: 0;
  background: var(--cream); color: var(--espresso); box-shadow: 0 14px 30px -10px rgba(59,39,29,.45); transition: transform .4s var(--ease);
  animation: waIn .8s var(--ease) 1.2s both; }
.wa:hover { transform: translateY(-3px); }
.wa__icon { width: 44px; height: 44px; border-radius: 50%; background: #5d8a62; display: grid; place-items: center; }
.wa__icon svg { width: 24px; height: 24px; fill: #fff; }
.wa__label { font-size: .9rem; font-weight: 500; }
.wa__label b { font-size: .66rem; letter-spacing: .12em; background: var(--caramel); color: #fff; padding: .12rem .45rem; border-radius: 6px; margin-left: .25rem; vertical-align: middle; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 1.2rem; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(44,30,23,.5); backdrop-filter: blur(4px); animation: fade .35s ease both; }
.modal__box { position: relative; max-width: 440px; width: 100%; background: var(--cream); border-radius: var(--radius-lg); padding: 2.2rem 2rem 1.8rem; box-shadow: var(--shadow); animation: pop .5s var(--ease) both; }
.modal__box h3 { font-size: 1.6rem; margin-bottom: .9rem; }
.modal__box p { color: var(--brown); }
.modal__tag { display: inline-block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; background: var(--caramel); color: #fff; padding: .25rem .7rem; border-radius: 999px; margin-bottom: 1rem; }
.modal__close { position: absolute; top: .9rem; right: .9rem; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--cream-2); font-size: 1.4rem; line-height: 1; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(36, 24, 18, .94); display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 1rem; animation: fade .35s ease both; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 18px; animation: pop .5s var(--ease) both; }
.lightbox figcaption { color: var(--beige); margin-top: 1rem; font-family: var(--ff-display); font-style: italic; font-size: 1.15rem; }
.lightbox__close, .lightbox__nav { border: 0; background: rgba(251,246,238,.1); color: var(--cream); border-radius: 50%; width: 48px; height: 48px; font-size: 1.8rem; line-height: 1; flex: none; transition: background .3s; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(251,246,238,.22); }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 130; transform: translate(-50%, 150%); opacity: 0; visibility: hidden; background: var(--espresso); color: var(--cream); padding: .9rem 1.4rem; border-radius: 14px; font-size: .92rem; box-shadow: var(--shadow); transition: transform .5s var(--ease), opacity .4s, visibility .4s; max-width: calc(100% - 2rem); }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- Animaciones al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@keyframes float   { 50% { transform: translateY(-12px); } }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .8; } }
@keyframes slowzoom { to { transform: scale(1.16) translateX(-2%); } }
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes steam   { 0% { stroke-dashoffset: 60; opacity: 0; } 30% { opacity: .9; } 100% { stroke-dashoffset: -60; opacity: 0; } }
@keyframes dishIn  { to { opacity: 1; transform: none; } }
@keyframes pulse   { 70% { box-shadow: 0 0 0 8px rgba(127,138,90,0); } 100% { box-shadow: 0 0 0 0 rgba(127,138,90,0); } }
@keyframes bounce  { 50% { transform: translate(-50%, -112%); } }
@keyframes fade    { from { opacity: 0; } }
@keyframes pop     { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes waIn    { from { opacity: 0; transform: translateY(30px) scale(.9); } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
  .visit__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact { grid-column: span 2; }
}

@media (max-width: 880px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 55; flex-direction: column; justify-content: center; gap: 2.5rem;
    background: var(--cream); clip-path: circle(0 at calc(100% - 2.6rem) 2.4rem); transition: clip-path .7s var(--ease); visibility: hidden;
  }
  .nav.is-open { clip-path: circle(150% at calc(100% - 2.6rem) 2.4rem); visibility: visible; }
  .nav__list { flex-direction: column; align-items: center; gap: 1.2rem; }
  .nav__link { font-family: var(--ff-display); font-size: 2rem; }
  .nav__link::after { display: none; }

  .hero__grid, .about__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 460px; margin: 0 auto; width: 100%; padding-left: 1.5rem; }
  .hero__badge { right: 0; width: 100px; height: 100px; }
  .about__media { max-width: 440px; margin: 0 auto; }
  .about__media figcaption { right: .5rem; }
  .menu__board { grid-template-columns: 1fr; }
  .menu__special { grid-template-columns: 1fr; }
  .menu__special-img { max-height: 260px; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero__facts { gap: 1.2rem; }
  .hero__facts strong { font-size: 1.45rem; }
  .gallery__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; gap: .7rem; }
  .g-item--wide { grid-column: span 2; }
  .g-item::after { opacity: 1; transform: none; padding: 1.8rem .8rem .7rem; font-size: .8rem; }
  .visit__grid { grid-template-columns: minmax(0, 1fr); }
  .tabs { width: 100%; }
  .tab { flex: 1; padding: .65rem .4rem; font-size: .86rem; }
  .contact { grid-column: auto; }
  .card { padding: 1.6rem 1.3rem; }
  .wa { padding: .4rem; right: .9rem; bottom: .9rem; }
  .wa__label { font-size: 0; }
  .wa__label b { font-size: .6rem; margin: 0 .35rem 0 0; }
  .lightbox__nav { position: absolute; bottom: 1.2rem; }
  .lightbox__prev { left: calc(50% - 60px); }
  .lightbox__next { right: calc(50% - 60px); }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .dish { opacity: 1; transform: none; }
}
