/*
 * Menú digital compartido por todas las landings (resources/views/l/_menu.blade.php).
 * Cada diseño lo viste con estas variables (en su propio :root); aquí solo hay valores por defecto.
 */
:where(:root) {
    --lm-bg: #fbf9f4; --lm-card: #ffffff; --lm-ink: #1c1b22; --lm-muted: #6a6878; --lm-line: #e4e1ec;
    --lm-accent: #5a34dc; --lm-on-accent: #ffffff; --lm-price: #5a34dc; --lm-soft: #ece8f8; --lm-soft-ink: #3a2a85;
    --lm-display: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --lm-script: var(--lm-display);
    --lm-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.lm-sheet { position: fixed; inset: auto 0 0 0; width: min(100%, 480px); margin: 0 auto; max-width: none; max-height: none; padding: 0; overflow: visible; border: 0; background: transparent; color: var(--lm-ink); font-family: var(--lm-body); }
.lm-sheet::backdrop { background: rgba(8, 24, 20, .6); }
.lm-sheet[open]::backdrop { animation: lm-fade .25s ease both; }
.lm-sheet[open] .lm-panel { animation: lm-in .34s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes lm-fade { from { opacity: 0; } }
@keyframes lm-in { from { transform: translateY(100%); } }
.lm-panel { position: relative; display: flex; flex-direction: column; max-height: 92dvh; overflow: hidden; border-radius: 30px 30px 0 0; background: var(--lm-bg); }
.lm-menu .lm-panel { height: 94dvh; max-height: none; }
.lm-grab { width: 44px; height: 5px; margin: 10px auto 0; border-radius: 3px; background: color-mix(in srgb, var(--lm-ink) 25%, transparent); flex: none; }
.lm-close { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--lm-soft); color: var(--lm-soft-ink); cursor: pointer; }
.lm-close:active { transform: scale(.94); }
.lm-close svg, .lm-search svg, .lm-search button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.lm-sheet button:focus-visible, .lm-sheet a:focus-visible, .lm-sheet input:focus-visible { outline: 3px solid var(--lm-accent); outline-offset: 2px; }

.lm-top { flex: none; position: relative; z-index: 1; padding: 0 0 4px; background: var(--lm-bg); box-shadow: 0 6px 14px -12px rgba(0, 0, 0, .5); }
.lm-bar { display: flex; align-items: center; gap: 12px; padding: 12px 18px 10px 22px; }
.lm-bar .lm-t { flex: 1; min-width: 0; }
.lm-pdf { display: flex; align-items: center; justify-content: center; gap: 6px; flex: none; min-height: 48px; padding: 0 14px 0 12px; border-radius: 999px; background: var(--lm-soft); color: var(--lm-soft-ink); font: 700 15px/1 var(--lm-display); text-decoration: none; }
.lm-pdf svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lm-pdf:active { transform: scale(.95); }
.lm-bar .lm-sub { display: block; font: 700 23px/1 var(--lm-script); color: var(--lm-price); }
.lm-bar h2 { margin: 2px 0 0; font: 800 32px/1 var(--lm-display); letter-spacing: -.02em; }
.lm-search { display: flex; align-items: center; gap: 10px; height: 50px; margin: 0 18px 12px; padding: 0 6px 0 16px; border-radius: 999px; background: var(--lm-card); box-shadow: inset 0 0 0 1.5px var(--lm-line); color: var(--lm-muted); }
.lm-search:focus-within { box-shadow: inset 0 0 0 2px var(--lm-accent); }
.lm-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--lm-ink); font: 500 17px/1 var(--lm-body); -webkit-appearance: none; appearance: none; }
.lm-search input::-webkit-search-cancel-button { display: none; }
.lm-search button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--lm-soft); color: var(--lm-soft-ink); cursor: pointer; }
.lm-search button[hidden], .lm-cats[hidden] { display: none; }
.lm-cats { position: relative; display: flex; gap: 8px; overflow-x: auto; padding: 2px 18px 10px; scrollbar-width: none; overscroll-behavior-x: contain; }
.lm-cats::-webkit-scrollbar { display: none; }
.lm-chip { flex: none; display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 5px 16px; border: 0; border-radius: 999px; background: var(--lm-soft); color: var(--lm-soft-ink); font: 700 15px/1 var(--lm-display); cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.lm-chip.has-img { padding-left: 5px; }
.lm-chip img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.lm-chip[aria-current="true"] { background: var(--lm-accent); color: var(--lm-on-accent); }

.lm-scroll { position: relative; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 6px 18px max(28px, env(safe-area-inset-bottom)); scroll-behavior: smooth; }
.lm-cat { padding-top: 22px; }
.lm-cat[hidden], .lm-group[hidden], .lm-dish[hidden], .lm-drink[hidden], .lm-extra[hidden] { display: none; }
.lm-head .lm-blurb { display: block; font: 700 26px/1 var(--lm-script); color: var(--lm-price); }
.lm-head h3 { margin: 2px 0 6px; font: 800 38px/1 var(--lm-display); letter-spacing: -.025em; }
.lm-note { margin: 4px 0 12px; font-size: 14.5px; line-height: 1.4; color: var(--lm-muted); }
.lm-group { margin-top: 18px; }
.lm-ghead { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.lm-ghead h4 { margin: 0; font: 700 13px/1.1 var(--lm-display); letter-spacing: .14em; text-transform: uppercase; color: var(--lm-price); }
.lm-ghead::after { content: ""; flex: 1; border-top: 1.5px solid var(--lm-line); }
.lm-items { display: grid; gap: 10px; }

.lm-dish { display: flex; align-items: center; gap: 14px; width: 100%; margin: 0; padding: 12px 12px 12px 18px; border: 0; border-radius: 26px; background: var(--lm-card); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: transform .15s ease; }
.lm-dish:active { transform: scale(.985); }
.lm-dish-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lm-name { font: 700 17.5px/1.15 var(--lm-display); letter-spacing: -.005em; }
.lm-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.35; color: var(--lm-muted); }
.lm-price { margin-top: 5px; font: 800 19px/1 var(--lm-display); color: var(--lm-price); }
.lm-img { flex: none; width: 96px; height: 96px; border-radius: 22px; object-fit: cover; background: var(--lm-soft); }
.lm-tag { display: inline-block; margin-left: 6px; padding: 3px 8px; border-radius: 999px; background: var(--lm-soft); color: var(--lm-soft-ink); font: 700 10.5px/1 var(--lm-display); letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; white-space: nowrap; }
.lm-tag.is-new { background: var(--lm-price); color: var(--lm-on-accent); }

.lm-drink { display: flex; align-items: baseline; gap: 8px; padding: 9px 6px; }
.lm-drink .lm-name { font-weight: 600; }
.lm-drink small { display: block; margin-top: 2px; font: 400 14px/1.3 var(--lm-body); color: var(--lm-muted); }
.lm-dots { flex: 1; min-width: 12px; border-bottom: 2px dotted var(--lm-line); transform: translateY(-4px); }
.lm-drink .lm-price { margin: 0; }

.lm-empty { margin: 40px 10px; text-align: center; font-size: 17px; color: var(--lm-muted); }
.lm-empty[hidden] { display: none; }
.lm-empty b { color: var(--lm-ink); }
.lm-foot { margin: 34px 0 0; text-align: center; font-size: 14px; color: var(--lm-muted); }

/* Detalle de un platillo. */
.lm-detail { padding: 0 24px max(26px, env(safe-area-inset-bottom)); text-align: center; overflow-y: auto; }
.lm-detail .lm-close { position: absolute; top: 14px; right: 14px; }
.lm-hero { display: block; width: 230px; height: 230px; margin: 30px auto 18px; border-radius: 34px; object-fit: cover; background: var(--lm-soft); box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .55); transform: rotate(-2deg); }
.lm-hero[hidden] { display: none; }
.lm-detail h2 { margin: 28px 0 0; font: 800 30px/1.08 var(--lm-display); letter-spacing: -.02em; }
.lm-hero:not([hidden]) ~ h2 { margin-top: 0; }
.lm-detail .lm-tag { margin: 0 0 8px; }
.lm-detail .lm-pill { display: inline-block; margin: 12px 0 0; padding: 8px 18px; border-radius: 999px; background: var(--lm-accent); color: var(--lm-on-accent); font: 800 24px/1 var(--lm-display); }
.lm-detail .lm-full { margin: 16px 0 0; font-size: 17px; line-height: 1.5; text-wrap: pretty; }
.lm-detail .lm-fine { margin: 12px 0 0; font-size: 14.5px; color: var(--lm-muted); }
.lm-detail [hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
    .lm-sheet[open] .lm-panel, .lm-sheet[open]::backdrop { animation: none; }
    .lm-chip, .lm-dish { transition: none; }
    .lm-scroll { scroll-behavior: auto; }
}
