/* Los colores principales llegan desde Ajustes (variables --primary, --accent, --bg, --text). */
:root {
  --surface: color-mix(in srgb, var(--text) 7%, var(--bg));
  --surface-2: color-mix(in srgb, var(--text) 12%, var(--bg));
  --line: color-mix(in srgb, var(--text) 18%, var(--bg));
  --muted: color-mix(in srgb, var(--text) 64%, var(--bg));
  --radius: 14px;
  --header-h: 64px;
  --font-display: Verdana, "DejaVu Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 90px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text);
  background: var(--bg) linear-gradient(180deg, var(--bg) 0, color-mix(in srgb, var(--bg) 84%, #6b3d15) 100%);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; }
h1, h2 { text-transform: uppercase; letter-spacing: .04em; font-weight: 800; color: var(--accent); }

/* Marco dorado de doble línea, como en la carta de mesa */
.frame { position: relative; border: 2px solid var(--accent); border-radius: 22px; background: color-mix(in srgb, var(--bg) 90%, black); }
.frame::before {
  content: ""; position: absolute; inset: 6px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 16px; pointer-events: none;
}
.rule { border: 0; height: 1px; background: var(--accent); margin: 1rem auto; width: min(80%, 420px); }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
ul.plain { list-style: none; margin: 0; padding: 0; }

/* Aviso superior */
.notice { background: var(--accent); color: var(--on-accent); text-align: center; padding: .45rem 1rem; font-weight: 600; font-size: .92rem; }

/* Cabecera */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 94%, black); border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--text); }
.brand img { height: 46px; width: auto; }
.brand-text { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.main-nav { display: flex; gap: .25rem; }
.main-nav a {
  color: var(--text); text-decoration: none; padding: .5rem .85rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem;
}
.main-nav a:hover { background: var(--surface-2); }
.main-nav a.is-active { background: var(--primary); color: var(--on-primary); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--text); margin: 6px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0;
    background: color-mix(in srgb, var(--bg) 97%, black); border-bottom: 1px solid var(--line);
    padding: .5rem 16px 1rem; display: none; box-shadow: 0 18px 30px rgba(0,0,0,.35);
  }
  .nav-open .main-nav { display: flex; }
  .main-nav a { padding: .85rem 1rem; border-radius: 10px; font-size: 1.05rem; }
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .75rem 1.3rem; border-radius: 999px; font: 700 .98rem/1.1 var(--font-body);
  color: var(--text); background: transparent; border: 2px solid var(--line); text-decoration: none; cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--accent); }
.btn-primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 88%, white); border-color: transparent; }

/* Portada / carrusel */
.hero { position: relative; overflow: hidden; background: var(--surface); }
.hero-track { display: grid; }
.hero-slide { grid-area: 1 / 1; position: relative; min-height: clamp(340px, 46vw, 620px); opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.05) 62%); pointer-events: none; }
.hero-copy { position: absolute; z-index: 2; inset: auto 0 0 0; padding-bottom: 3.2rem; color: #fff; }
.hero-title { font: 800 clamp(1.7rem, 4.6vw, 3.1rem)/1.1 var(--font-display); letter-spacing: .02em; margin: 0 0 .4rem; text-shadow: 0 2px 14px rgba(0,0,0,.5); max-width: 20ch; }
.hero-sub { font-size: clamp(1rem, 2.2vw, 1.3rem); margin: 0 0 1.1rem; max-width: 46ch; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.hero-nav {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0,0,0,.45); color: #fff; font-size: 1.8rem; line-height: 1; display: grid; place-items: center;
}
.hero-nav:hover { background: rgba(0,0,0,.7); }
.hero-prev { left: 12px; }
.hero-next { right: 12px; }
.hero-dots { position: absolute; z-index: 3; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.hero-dots button { width: 11px; height: 11px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.5); cursor: pointer; }
.hero-dots button[aria-selected="true"] { background: #fff; width: 28px; border-radius: 8px; }
.hero-plain { padding: 2.2rem 16px; background: none; }
.hero-card { max-width: 640px; margin-inline: auto; padding: 2.4rem 1.4rem 2.2rem; text-align: center; }
.hero-card .hero-title { max-width: none; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; text-shadow: none; margin-bottom: .3rem; }
.hero-card .hero-kicker { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .9rem; margin: 0; }
.hero-card .hero-sub { color: var(--accent); text-shadow: none; margin: 0 auto 1.3rem; font-size: clamp(1.05rem, 2.4vw, 1.35rem); }
.hero-logo { margin: 0 auto 1rem; height: 120px; width: auto; }

/* Franja rápida */
.quick { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.2rem; }
.quick-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.status { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; margin: 0 0 .6rem; }
.quick .status { margin: 0; }
.status::before { content: ""; width: .7rem; height: .7rem; border-radius: 50%; background: #888; }
.status.is-open::before { background: #38c76a; box-shadow: 0 0 0 4px rgba(56,199,106,.22); }
.status.is-closed::before { background: #e5534b; }

/* Secciones */
.section { padding-block: 2.2rem; }
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; margin-bottom: 1.4rem; }
.section-head h2, .section h2 { font-size: clamp(1.35rem, 3.4vw, 1.9rem); margin: 0; }
.section-head h2::after, .cat-head h2::after {
  content: ""; display: block; height: 1px; width: min(80%, 320px); margin: .7rem auto 0; background: var(--accent);
}
.more { font-weight: 700; text-decoration: none; }
.more:hover { text-decoration: underline; }
.page-head { padding-top: 2rem; padding-bottom: .4rem; text-align: center; }
.page-head h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin-bottom: .3rem; }
.page-head h1::after { content: ""; display: block; height: 1px; width: min(80%, 320px); margin: .7rem auto 0; background: var(--accent); }
.empty-state { text-align: center; color: var(--muted); padding: 3rem 1rem; }
.reveal { transition: opacity .6s ease, transform .6s ease; }
.js .reveal:not(.in) { opacity: 0; transform: translateY(18px); }

/* Platillos */
.badge { display: inline-block; padding: .12rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; background: var(--surface-2); color: var(--text); }
.badge-popular { background: var(--accent); color: var(--on-accent); }
.badge-new { background: #2f8f5b; color: #fff; }
.badge-spicy { background: #d6342a; color: #fff; }
.badge-soldout { background: #555; color: #fff; }

.dish { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dish-name { font-size: 1.12rem; margin: 0 0 .25rem; }
.dish-badges { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 .35rem; }
.dish-desc { color: var(--muted); font-size: .94rem; margin: 0 0 .5rem; }
.dish-price { font: 800 1.2rem/1 var(--font-display); color: var(--accent); margin: 0; }
.dish-variants { list-style: none; padding: 0; margin: .3rem 0 0; }
.dish-variants li { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; border-top: 1px dashed var(--line); }
.dish-variants li:first-child { border-top: 0; }
.dish-variants b { color: var(--accent); white-space: nowrap; }
.dish-img { display: block; padding: 0; border: 0; background: var(--surface-2); cursor: zoom-in; overflow: hidden; }
.dish-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.dish-img:hover img { transform: scale(1.06); }
.dish.is-soldout { opacity: .6; }
.dish.is-hidden { display: none; }

.dish-row { display: grid; grid-template-columns: 1fr; }
.dish-row.has-img { grid-template-columns: 1fr 112px; }
.dish-row .dish-body { padding: 1rem; }
.dish-row .dish-img { order: 2; height: 100%; min-height: 112px; }
.dishes { display: grid; gap: .8rem; grid-template-columns: 1fr; }
@media (min-width: 820px) {
  .dishes { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .dish-row.has-img { grid-template-columns: 1fr 140px; }
}

.tiles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.dish-tile { display: flex; flex-direction: column; }
.dish-tile .dish-img { aspect-ratio: 4 / 3; }
.dish-tile .dish-body { padding: 1rem; }

/* Menú: barra de herramientas */
.menu-tools { padding: .6rem 0 .8rem; }
.menu-sticky {
  position: sticky; top: var(--header-h); z-index: 40;
  background: color-mix(in srgb, var(--bg) 96%, black); border-block: 1px solid var(--line); padding: .55rem 0 .45rem;
}
.menu-sticky .group-tabs { margin-bottom: .45rem; }
.tools-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.page-menu .fab-wa, .page-menu .fab-tel { display: none; }
.menu-body { padding-top: 1.4rem; }
.menu-tools input[type=search] {
  flex: 1 1 220px; min-width: 0; padding: .65rem 1rem; border-radius: 999px; font: inherit;
  background: var(--surface); color: var(--text); border: 2px solid var(--line);
}
.menu-tools input[type=search]:focus { outline: none; border-color: var(--accent); }
.filters { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip-filter { padding: .45rem .9rem; border-radius: 999px; border: 2px solid var(--line); background: transparent; color: var(--text); font: 700 .85rem var(--font-body); cursor: pointer; }
.chip-filter[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.chips { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .2rem; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; padding: .4rem .95rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 700; font-size: .9rem; }
.chips a.is-current { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.menu-body { padding-block: 1.2rem 3rem; }
.menu-cat { margin-bottom: 1.6rem; padding: 1.8rem 1rem 1.4rem; }
.menu-cat > * { position: relative; }
.menu-cat.is-hidden { display: none; }
.cat-head { margin-bottom: 1.2rem; text-align: center; }
.cat-head h2 { font-size: clamp(1.3rem, 3.4vw, 1.8rem); margin: 0; }
.cat-head p { margin: .6rem 0 0; }
@media (min-width: 820px) { .menu-cat { padding: 2.2rem 1.6rem 1.8rem; } }

/* Galería */
.gallery-strip { display: grid; gap: .6rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .gallery-strip { grid-template-columns: repeat(3, 1fr); } }
.g-item { padding: 0; border: 0; background: var(--surface-2); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; display: block; width: 100%; }
.gallery-strip .g-item { aspect-ratio: 4 / 3; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.g-item:hover img { transform: scale(1.05); }
.masonry { columns: 2; column-gap: .6rem; }
@media (min-width: 760px) { .masonry { columns: 3; } }
@media (min-width: 1000px) { .masonry { columns: 4; } }
.masonry .g-item { margin-bottom: .6rem; break-inside: avoid; }
.masonry .g-item img { height: auto; }

/* Sobre nosotros / visita */
.about { display: grid; gap: 1.5rem; align-items: center; }
.about-img { border-radius: var(--radius); width: 100%; max-height: 380px; object-fit: cover; }
.visit { display: grid; gap: 1.5rem; }
.map { width: 100%; height: 340px; border: 0; border-radius: var(--radius); background: var(--surface); }
@media (min-width: 820px) {
  .about:has(.about-img) { grid-template-columns: 1fr 1fr; }
  .visit { grid-template-columns: 1fr 1.2fr; }
}
.hours { list-style: none; padding: 0; margin: 0 0 1rem; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.visit-addr { font-size: 1.1rem; }

/* Contacto y páginas */
.contact-grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.1fr; align-items: start; } }
.contact-cards { display: grid; gap: 1rem; }
.info-card { position: relative; border: 2px solid var(--accent); border-radius: 22px; background: color-mix(in srgb, var(--bg) 90%, black); padding: 1.4rem 1.3rem; text-align: center; }
.info-card::before { content: ""; position: absolute; inset: 6px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 16px; pointer-events: none; }
.info-card h2 { font-size: 1.05rem; }
.info-card .hours li { text-align: left; }
.contact-map .map { height: 420px; }
.page-cover img { width: 100%; max-height: 420px; object-fit: cover; }
.page-article { padding-block: 2rem 3.5rem; max-width: 780px; }
.page-article h1 { font-size: clamp(2rem, 5vw, 3rem); }
.prose { font-size: 1.08rem; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .35em; }

/* Pie */
.site-footer { margin-top: 2rem; background: color-mix(in srgb, var(--bg) 88%, black); border-top: 1px solid var(--line); padding-top: 2.2rem; }
.footer-grid { display: grid; gap: 1.8rem; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-brand { font: 800 1.2rem var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: .1rem; }
.footer-kicker { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; margin: 0 0 .5rem; }
.footer-title { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; color: var(--accent); margin-bottom: .6rem; }
.site-footer li { padding: .15rem 0; }
.site-footer .plain li { display: flex; justify-content: space-between; gap: 1rem; }
.site-footer .plain li:has(a):not(:has(span)) { display: block; }
.social { display: flex; flex-wrap: wrap; gap: .5rem; }
.social a { padding: .35rem .85rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .9rem; color: var(--text); }
.social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-bottom { padding-block: 1.4rem; margin-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

/* Visor de fotos */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; background: rgba(0,0,0,.92); padding: 1rem; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; min-width: 0; }
.lightbox img { max-width: 100%; max-height: 80vh; margin: 0 auto; border-radius: 8px; }
.lightbox figcaption { color: #eee; margin-top: .7rem; }
.lb-close, .lb-prev, .lb-next { background: rgba(255,255,255,.14); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lb-close { position: absolute; top: 12px; right: 12px; z-index: 2; }
.lb-prev { grid-column: 1; justify-self: start; }
.lb-next { grid-column: 3; justify-self: end; }
.lightbox figure { grid-column: 2; }
.lb-single .lb-prev, .lb-single .lb-next { display: none; }

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

/* ---- Interactividad del menú ---- */
.dish[data-dish] { cursor: pointer; transition: border-color .2s, transform .2s; }
.dish[data-dish]:hover { border-color: var(--accent); transform: translateY(-2px); }
.dish-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.dish-top .dish-name { margin: 0 0 .25rem; }
.fav {
  flex: none; width: 38px; height: 38px; margin: -.35rem -.35rem 0 0; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--accent); font-size: 1.25rem; line-height: 1; cursor: pointer;
  transition: transform .15s, background .15s;
}
.fav::before { content: "\2661"; }
.fav[aria-pressed="true"]::before { content: "\2665"; }
.fav[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.fav:active { transform: scale(1.25); }
.chip-fav { border-color: var(--accent); color: var(--accent); }

/* Platillos sin foto: renglón tipo carta con precios a la derecha */
.dish.is-line { background: transparent; border: 0; border-bottom: 1px dashed var(--line); border-radius: 0; }
.dish.is-line:hover { transform: none; }
.dish-row.is-line .dish-body { padding: .75rem .15rem; display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; align-items: start; }
.is-line .dish-top, .is-line .dish-badges, .is-line .dish-desc { grid-column: 1; }
.is-line .dish-price, .is-line .dish-variants { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin: 0; }
.is-line .dish-top .dish-name { font-size: 1rem; font-family: var(--font-body); font-weight: 600; margin: 0; }
.is-line .fav { width: 32px; height: 32px; font-size: 1.05rem; margin: -.2rem 0 0 0; order: 2; }
.is-line .dish-variants { display: flex; gap: 1.1rem; }
.is-line .dish-variants li { display: block; text-align: right; border: 0; padding: 0; }
.is-line .dish-variants span { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.is-line .dish-price { font-size: 1.05rem; }

/* Pestañas de grupo */
.group-tabs { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; margin-bottom: .6rem; }
.group-tabs::-webkit-scrollbar { display: none; }
.gtab {
  flex: none; padding: .5rem 1.1rem; border-radius: 999px; border: 2px solid var(--accent); background: transparent;
  color: var(--accent); font: 800 .85rem var(--font-display); letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
}
.gtab.is-active { background: var(--accent); color: var(--on-accent); }
.chips a.is-hidden { display: none; }

.cat-cover { display: block; width: 100%; padding: 0; border: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 7; margin-bottom: 1.2rem; background: var(--surface-2); cursor: zoom-in; position: relative; }
.cat-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat-cover:hover img { transform: scale(1.04); }

/* Carta ilustrada */
.carta-strip { display: flex; gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .3rem .1rem .8rem; }
.carta-item { flex: none; width: 150px; aspect-ratio: 2 / 3; border: 2px solid var(--accent); border-radius: 12px; overflow: hidden; padding: 0; background: var(--surface-2); scroll-snap-align: start; cursor: zoom-in; transition: transform .2s; }
.carta-item:hover { transform: translateY(-4px); }
.carta-item img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 820px) { .carta-item { width: 200px; } }

/* Ficha del platillo */
.sheet { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; justify-items: center; background: rgba(0,0,0,.72); padding: 0; }
.sheet[hidden] { display: none; }
.sheet-card { width: min(560px, 100%); max-height: 92vh; overflow-y: auto; border-radius: 22px 22px 0 0; background: color-mix(in srgb, var(--bg) 92%, black); animation: sheetUp .28s ease; }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-card::before { z-index: 0; }
.sheet-close { position: absolute; top: 10px; right: 10px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.sheet-img { margin: 12px 12px 0; border-radius: 16px; overflow: hidden; position: relative; z-index: 1; }
.sheet-img img { width: 100%; max-height: 46vh; object-fit: cover; }
.sheet-body { padding: 1.1rem 1.4rem 1.5rem; position: relative; z-index: 1; text-align: center; }
.sheet-body h2 { font-size: 1.35rem; margin-bottom: .4rem; }
.sheet-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem; margin: 0 0 .6rem; }
.sheet-badges:empty { display: none; }
.sheet-desc { color: var(--text); }
.sheet-desc:empty { display: none; }
.sheet-prices .dish-price { font-size: 1.7rem; }
.sheet-prices .dish-variants { max-width: 320px; margin: .4rem auto; text-align: left; }
.sheet-actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.sheet-actions .btn[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
@media (min-width: 700px) { .sheet { align-items: center; } .sheet-card { border-radius: 22px; } }

/* Botones flotantes y aviso */
.fabs { position: fixed; right: 14px; bottom: 14px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: .55rem; }
.fab {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-width: 50px; height: 50px; padding: 0 1rem;
  border-radius: 999px; border: 0; text-decoration: none; font: 800 .9rem var(--font-body); cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.45);
}
.fab-wa { background: #25d366; color: #0b3d1d; }
.fab-tel { background: var(--accent); color: var(--on-accent); padding: 0; width: 50px; }
.fab-top { background: color-mix(in srgb, var(--bg) 80%, black); color: var(--accent); border: 2px solid var(--accent); width: 44px; height: 44px; min-width: 44px; padding: 0; font-size: 1.2rem; }
.fab-top[hidden] { display: none; }
@media (max-width: 520px) { .fab-wa span { display: none; } .fab-wa { padding: 0; width: 50px; } }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 120; background: var(--accent); color: var(--on-accent); padding: .6rem 1.1rem; border-radius: 999px; font-weight: 700; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.toast[hidden] { display: none; }

/* ================= Bienvenida, confeti y papel picado ================= */
.welcome {
  position: fixed; inset: 0; z-index: 300; display: none; place-items: center; padding: 1.2rem; text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, #4a2a14 0%, var(--bg) 62%);
  overflow: auto;
}
html.welcome-pending .welcome { display: grid; }
html.welcome-pending body { overflow: hidden; }
.welcome::before {
  content: ""; position: absolute; inset: 14px; border: 2px solid var(--accent); border-radius: 26px; pointer-events: none; opacity: .9;
}
.welcome::after {
  content: ""; position: absolute; inset: 22px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 20px; pointer-events: none;
}
.welcome-card { max-width: 460px; animation: welcomeIn 1s cubic-bezier(.2,.7,.2,1) both; }
.welcome-logo {
  width: min(56vw, 230px); height: auto; margin: 0 auto 1.1rem; border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(232,194,122,.3), 0 22px 60px rgba(0,0,0,.65), 0 0 90px rgba(232,194,122,.22);
  animation: logoFloat 4.5s ease-in-out infinite;
}
.welcome h2 { font-size: clamp(1.5rem, 6vw, 2.2rem); margin: 0 0 .4rem; animation: fadeUp .8s .35s both; }
.welcome-sub { color: var(--accent); font-size: 1.1rem; margin: 0 0 1.6rem; animation: fadeUp .8s .5s both; }
.welcome-go { font-size: 1.1rem; padding: .95rem 1.8rem; animation: fadeUp .8s .65s both, pulseGold 2.4s 1.6s infinite; }
.welcome-card p { margin: 0; }
.welcome-skip { margin-top: 1.1rem; background: none; border: 0; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; padding: .4rem; animation: fadeUp .8s .8s both; }
.welcome.leaving { opacity: 0; transform: scale(1.05); transition: opacity .8s ease, transform .8s ease; pointer-events: none; }
.confetti { position: fixed; inset: 0; z-index: 400; pointer-events: none; }
.garland { position: fixed; top: 0; left: 0; right: 0; z-index: 390; pointer-events: none; animation: garlandDrop 1.1s cubic-bezier(.2,.8,.2,1) both; transform-origin: top; }
.garland.is-leaving { animation: garlandUp 1s ease-in both; }
.garland svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 8px rgba(0,0,0,.35)); }
.garland .flag { transform-box: fill-box; transform-origin: 50% 0; animation: sway 3.2s ease-in-out infinite alternate; }

@keyframes welcomeIn { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes logoFloat { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-8px) rotate(1.5deg); } }
@keyframes pulseGold { 0% { box-shadow: 0 0 0 0 rgba(232,194,122,.55); } 70% { box-shadow: 0 0 0 20px rgba(232,194,122,0); } 100% { box-shadow: 0 0 0 0 rgba(232,194,122,0); } }
@keyframes garlandDrop { from { transform: translateY(-105%); } to { transform: none; } }
@keyframes garlandUp { from { transform: none; opacity: 1; } to { transform: translateY(-105%); opacity: 0; } }
@keyframes sway { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }

/* ================= Animaciones elegantes ================= */
main { animation: pageIn .75s cubic-bezier(.2,.7,.2,1) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.site-header { transition: box-shadow .35s ease, background .35s ease; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
body.scrolled .site-header { box-shadow: 0 10px 30px rgba(0,0,0,.45); background: color-mix(in srgb, var(--bg) 88%, black); }
.brand img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.brand:hover img { transform: rotate(-6deg) scale(1.08); }
.main-nav a { transition: background .25s, color .25s, transform .25s; }
.main-nav a:hover { transform: translateY(-1px); }

/* Banners: zoom lento y texto que aparece en cascada */
.hero-slide.is-active > img { animation: kenburns 11s ease-out both; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.09); } }
.hero-slide.is-active .hero-title { animation: fadeUp .9s .25s cubic-bezier(.2,.7,.2,1) both; }
.hero-slide.is-active .hero-sub { animation: fadeUp .9s .45s cubic-bezier(.2,.7,.2,1) both; }
.hero-slide.is-active .btn { animation: fadeUp .9s .65s cubic-bezier(.2,.7,.2,1) both; }
.hero-card .hero-title, .hero-card .hero-sub { animation: fadeUp .9s both; }

/* Botones con destello */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.42), transparent); transform: skewX(-20deg); transition: left .8s ease;
}
.btn-primary:hover::after { left: 150%; }

/* Títulos: la línea dorada se dibuja */
.section-head h2::after, .cat-head h2::after, .page-head h1::after { transform: scaleX(0); transition: transform 1s cubic-bezier(.2,.7,.2,1) .25s; }
.reveal.in .section-head h2::after, .menu-cat.in .cat-head h2::after, .page-head h1::after, .section.in h2::after { transform: scaleX(1); }
.page-head h1::after { animation: lineDraw 1s .35s cubic-bezier(.2,.7,.2,1) both; transform: none; }
@keyframes lineDraw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Aparición escalonada de platillos, categorías, tarjetas y fotos */
.js .dish:not(.in), .js .menu-cat:not(.in), .js .info-card:not(.in), .js .g-item:not(.in), .js .carta-item:not(.in) { opacity: 0; }
.dish.in, .menu-cat.in, .info-card.in, .g-item.in, .carta-item.in { animation: riseIn .75s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes riseIn { from { opacity: 0; transform: translateY(20px) scale(.985); } to { opacity: 1; transform: none; } }

.dish { transition: border-color .3s, box-shadow .35s, transform .35s cubic-bezier(.2,.7,.2,1); }
.dish[data-dish]:hover { box-shadow: 0 14px 34px rgba(0,0,0,.4), 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent); }
.dish-price { transition: transform .3s; transform-origin: left; }
.dish:hover .dish-price { transform: scale(1.06); }
.g-item, .carta-item { transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s; }
.g-item:hover, .carta-item:hover { box-shadow: 0 14px 34px rgba(0,0,0,.45); }

/* Corazón con rebote */
.fav[aria-pressed="true"]::before { animation: heartPop .45s cubic-bezier(.2,.9,.3,1.6); }
@keyframes heartPop { 0% { transform: scale(.4); } 60% { transform: scale(1.4); } 100% { transform: scale(1); } }

/* Pestañas y chips */
.gtab, .chips a, .chip-filter { transition: background .25s, color .25s, transform .2s, border-color .25s; }
.gtab:hover, .chip-filter:hover, .chips a:hover { transform: translateY(-1px); }
.menu-cat:not(.is-hidden) { transform-origin: top; }

/* Ventanas */
.lightbox:not([hidden]) { animation: fadeIn .3s ease both; }
.lightbox:not([hidden]) img { animation: zoomIn .4s cubic-bezier(.2,.7,.2,1) both; }
.sheet:not([hidden]) { animation: fadeIn .25s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

.status.is-open::before { animation: livePulse 2s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(56,199,106,.55); } 70% { box-shadow: 0 0 0 9px rgba(56,199,106,0); } 100% { box-shadow: 0 0 0 0 rgba(56,199,106,0); } }

@media (prefers-reduced-motion: reduce) {
  .js .dish:not(.in), .js .menu-cat:not(.in), .js .info-card:not(.in), .js .g-item:not(.in), .js .carta-item:not(.in) { opacity: 1; }
  *, *::before, *::after { animation-delay: 0s !important; animation-iteration-count: 1 !important; }
  .welcome-logo, .welcome-go { animation: none !important; }
}
/* ================= Me gusta, compartir y comentarios ================= */
.g-item { position: relative; }
.g-chips {
  position: absolute; left: 8px; bottom: 8px; padding: .22rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700;
  background: rgba(20,12,7,.72); color: #fbe6c4; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); line-height: 1.3;
}
.g-chips[hidden] { display: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.pv { position: fixed; inset: 0; z-index: 120; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); place-items: center; background: rgba(8,5,3,.92); padding: 12px; animation: fadeIn .25s ease both; }
.pv[hidden] { display: none; }
.pv-close { position: absolute; top: 10px; right: 12px; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.pv-card {
  display: grid; grid-template-rows: minmax(0, 42vh) minmax(0, 1fr); width: min(1100px, 100%); height: min(94vh, 800px);
  background: color-mix(in srgb, var(--bg) 92%, black); border: 2px solid var(--accent); border-radius: 18px; overflow: hidden;
  animation: zoomIn .35s cubic-bezier(.2,.7,.2,1) both;
}
.pv-media { position: relative; background: #000; display: grid; place-items: center; min-height: 0; }
.pv-media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0,0,0,.5); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.pv-nav[hidden] { display: none; }
.pv-prev { left: 8px; }
.pv-next { right: 8px; }
.pv-side { padding: 1rem 1.1rem 1.2rem; overflow-y: auto; min-height: 0; }
.pv-caption { font-family: var(--font-display); font-weight: 700; margin: 0 0 .7rem; font-size: 1.05rem; }
.pv-caption[hidden] { display: none; }
.pv-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .6rem; }
.pv-actions .btn { padding: .55rem 1rem; font-size: .92rem; }
.pv-like .heart::before { content: "\2661"; font-size: 1.15em; }
.pv-like[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.pv-like[aria-pressed="true"] .heart::before { content: "\2665"; }
.pv-like.pop .heart { display: inline-block; animation: heartPop .5s cubic-bezier(.2,.9,.3,1.6); }
.pv-sharemenu { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .8rem; }
.pv-sharemenu[hidden] { display: none; }
.pv-sharemenu a, .pv-sharemenu button { padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); background: transparent; text-decoration: none; font: 700 .85rem var(--font-body); cursor: pointer; }
.pv-comments-box h3 { font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin: .4rem 0 .6rem; }
.pv-comments-box[hidden] { display: none; }
.pv-comments { display: grid; gap: .6rem; margin-bottom: .9rem; max-height: 28vh; overflow-y: auto; padding-right: .2rem; }
@media (min-width: 880px) {
  .pv-card { grid-template-rows: none; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); }
  .pv-comments { max-height: 34vh; }
}

.cm { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; }
.cm-new { animation: riseIn .5s cubic-bezier(.2,.7,.2,1) both; }
.cm-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .5rem; font-size: .92rem; }
.cm-head time { color: var(--muted); font-size: .8rem; margin-left: auto; }
.cm p { margin: .3rem 0 0; overflow-wrap: anywhere; }
.cm-reply { border-left: 3px solid var(--accent); padding-left: .65rem; color: var(--text); font-size: .93rem; }
.cm-reply b { color: var(--accent); }
.stars { color: var(--accent); letter-spacing: .08em; }
.stars.big { font-size: 1.3rem; }
.rating-sum { display: flex; justify-content: center; align-items: center; gap: .5rem; flex-wrap: wrap; margin: .3rem 0 0; }

.cform { display: grid; gap: .6rem; }
.cform input[type=text], .cform textarea {
  width: 100%; padding: .65rem .85rem; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); color: var(--text); font: inherit;
}
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--accent); }
.cform textarea { resize: vertical; }
.cform-msg { margin: 0; min-height: 1.3em; font-size: .9rem; }
.cform-msg.is-ok { color: #7fd69a; }
.cform-msg.is-err { color: #ff9a8f; }
.small { font-size: .85rem; }
.opinions .cform.frame { padding: 1.4rem 1.2rem; }
.opinions .cform h2 { font-size: 1.15rem; margin: 0 0 .2rem; text-align: center; }
.rate { display: flex; justify-content: center; gap: .2rem; }
.rate-star { background: none; border: 0; font-size: 2rem; line-height: 1; color: var(--line); cursor: pointer; padding: .1rem .15rem; transition: transform .15s, color .15s; }
.rate-star:hover { transform: scale(1.2); }
.rate-star.on { color: var(--accent); }
.op-grid { display: grid; gap: 1.4rem; }
@media (min-width: 900px) { .op-grid { grid-template-columns: minmax(300px, 420px) 1fr; align-items: start; } .op-grid .frame { position: sticky; top: calc(var(--header-h) + 16px); } }
.op-list { display: grid; gap: .7rem; }
.op-cards { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.empty-state.compact { padding: 1.2rem; }
.center-actions { text-align: center; margin-top: 1.2rem; }