/* MILPA: La Milpa's look on top of the base (theme premium + brand/brand.css tokens).
   Light and airy: cream background with soft olive/terracotta glows, very rounded cards, floating glass
   tab bar with the active tab in a capsule, dark round buttons, segmented selectors, headlines that mix
   light and bold weights. Brush lettering only for brand accents. Everything that moves stops with
   "Reduce motion". */

html { background: var(--bg); }
body { background: transparent; color: var(--ink); font-family: var(--body); font-weight: 400; letter-spacing: 0; }
.app { position: relative; z-index: 1; background: transparent; max-width: 520px; }
@media (min-width: 520px) { body { background: transparent; } .app { box-shadow: none; } }
.stripe { display: none; }

/* Diffuse glows (fixed behind everything). */
.lm-glow { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.lm-glow i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.lm-glow i:nth-child(1) { width: 420px; height: 420px; right: -170px; top: -150px; background: #cfcb8f; animation: lm-drift 18s ease-in-out infinite alternate; }
.lm-glow i:nth-child(2) { width: 380px; height: 380px; left: -200px; top: 38%; background: #e8b598; opacity: .45; animation: lm-drift 22s ease-in-out infinite alternate-reverse; }
.lm-glow i:nth-child(3) { width: 300px; height: 300px; right: -120px; bottom: -60px; background: #d6d9b0; opacity: .5; }
@keyframes lm-drift { to { transform: translate(-40px, 60px) scale(1.12); } }

/* ── Shared pieces ─────────────────────────────────────────────────────── */
.lm-circle { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--glass); border: 1px solid rgba(255,255,255,.8); box-shadow: 0 6px 18px rgba(64,58,36,.08); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.lm-circle svg, .lm-chip svg, .lm-glass-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lm-circle.dark { background: var(--lm-dark); color: #fff; border-color: var(--lm-dark); box-shadow: 0 12px 26px rgba(38,43,32,.28); width: 54px; height: 54px; }
.lm-chip { display: inline-flex; align-items: center; gap: 9px; height: 50px; padding: 0 20px 0 16px; border-radius: 99px; background: rgba(239,233,222,.85); border: 1px solid rgba(255,255,255,.7); font-weight: 500; font-size: 15px; }
.lm-glass-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 99px; background: rgba(255,253,249,.62); border: 1px solid rgba(255,255,255,.7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 12.5px; font-weight: 500; color: var(--ink); }
.lm-demo { height: 34px; padding: 0 13px; border-radius: 99px; background: var(--lm-dark); color: #f5f1ea; font-size: 11.5px; font-weight: 600; letter-spacing: .16em; }

/* Headlines: light + bold in the same line. */
.lm-h1, .vhead h1, .mtop h1, .ht, .gate h1 { font-family: var(--display); font-weight: 650; letter-spacing: -.02em; color: var(--ink); }
.lm-h1 span, .vhead h1 span, .mtop h1 span, .ht span, .gate h1 span { font-weight: 250; color: #8b8676; }
.vhead { padding: calc(22px + env(safe-area-inset-top)) 20px 8px; }
.vhead h1, .mtop h1 { font-size: 34px; line-height: 1.05; }
.mtop h1 { font-size: clamp(26px, 8vw, 32px); white-space: nowrap; }

/* Status pill. */
.status { background: var(--ok-bg); color: #4e6a2c; font-weight: 600; font-size: 12.5px; padding: 6px 12px; margin: 0; }
.status i { box-shadow: 0 0 0 4px rgba(95,125,58,.16); animation: lm-live 2s ease-in-out infinite; }
.status.closed { background: var(--danger-bg); color: var(--lm-terra); }
.status.closed i { box-shadow: 0 0 0 4px rgba(180,85,45,.16); animation: none; }
@keyframes lm-live { 50% { box-shadow: 0 0 0 7px rgba(95,125,58,0); } }

/* ── Inicio ───────────────────────────────────────────────────────────── */
.lm-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(14px + env(safe-area-inset-top)) 18px 0; }
.lm-top .logo { width: auto; height: 46px; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.lm-top .logo img { height: 100%; width: auto; object-fit: contain; }
.lm-intro { padding: 30px 20px 4px; }
.lm-kicker { font-size: 13px; color: var(--muted); letter-spacing: 0; text-transform: none; font-family: var(--body); opacity: 1; margin: 0; }
.lm-h1 { font-size: clamp(32px, 9.4vw, 40px); line-height: 1.06; margin-top: 10px; }
.lm-cta { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }

.lm-herocard { position: relative; margin: 22px 14px 0; border-radius: 40px; overflow: hidden; background: linear-gradient(180deg, #9a8a60 0%, #6e6a3c 100%); box-shadow: 0 26px 50px rgba(78,70,40,.25); isolation: isolate; }
.lm-herocard .hero img { object-position: center 62%; }
.lm-herocard .hero { height: 310px; margin: 10px 10px 0; border-radius: 32px; overflow: hidden; }
.lm-herocard .hero::after { background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(90,80,48,.35) 100%); }
.lm-herocard > .lm-glass-pill { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); padding: 3px; max-width: calc(100% - 44px); }
.lm-herocard > .lm-glass-pill .status { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.lm-herocard > .lm-glass-pill .status { background: transparent; }
.lm-hero-body { padding: 16px 18px 20px; color: #fff; }
.lm-hero-who { display: flex; align-items: center; gap: 12px; }
.lm-hero-who img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 20% 10%; background: #f5efe4; border: 2px solid rgba(255,255,255,.6); }
.lm-hero-who b { display: block; font-size: 18px; font-weight: 500; }
.lm-hero-who small { display: block; font-size: 13px; opacity: .78; margin-top: 2px; }
.lm-herocard .info { color: rgba(255,255,255,.8); font-size: 13px; margin-top: 12px; }
.lm-glass-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 16px; padding: 6px 6px 6px 22px; border-radius: 99px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); color: #fff; font-size: 15px; font-weight: 500; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.lm-glass-btn i { width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--lm-dark); display: grid; place-items: center; }

.hblock { margin-top: 34px; }
.hhead { padding: 0 20px 14px; align-items: center; }
.ht { font-size: 25px; line-height: 1.1; }
.hlink { color: var(--ink); font-weight: 500; font-size: 13.5px; padding: 8px 14px; border-radius: 99px; background: rgba(239,233,222,.8); }

/* Menús del día (segmented cards). */
.lm-menus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 16px; padding: 6px; border-radius: 30px; background: rgba(255,253,249,.6); border: 1px solid rgba(255,255,255,.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lm-menus button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px 12px; border-radius: 24px; text-align: center; }
.lm-menus b { font-size: 15px; font-weight: 600; }
.lm-menus small { font-size: 11.5px; color: var(--muted); line-height: 1.25; }
.lm-menus button.live { background: var(--lm-dark); color: #fff; box-shadow: 0 10px 24px rgba(38,43,32,.25); }
.lm-menus button.live small { color: rgba(255,255,255,.7); }
.lm-menus .live small::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #b9d48a; margin-right: 5px; vertical-align: 1px; }

/* Lo más pedido (big photo cards, horizontal). */
.lm-favs { display: flex; gap: 14px; overflow-x: auto; padding: 4px 20px 14px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lm-favs::-webkit-scrollbar { display: none; }
.lm-fav { position: relative; flex: none; width: 214px; height: 270px; border-radius: 34px; overflow: hidden; scroll-snap-align: start; text-align: left; color: #fff; box-shadow: var(--shadow); background: var(--surface-2); }
.lm-fav img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.lm-fav:active img { transform: scale(1.05); }
.lm-fav::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(30,28,18,.72) 100%); }
.lm-fav .fv-b { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.lm-fav b { font-size: 17px; font-weight: 600; line-height: 1.15; }
.lm-fav small { display: block; font-size: 13px; opacity: .85; margin-top: 3px; }
.lm-fav .fv-plus { width: 40px; height: 40px; flex: none; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--lm-dark); display: grid; place-items: center; font-size: 22px; font-weight: 300; }
.lm-fav .fv-tag { position: absolute; top: 12px; left: 12px; z-index: 1; color: var(--ink); }

/* Section cards on Inicio. */
.hcats { gap: 12px; padding: 2px 20px 10px; }
.hcat { width: 136px; border-radius: 28px; background: rgba(255,253,249,.8); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 10px 24px rgba(64,58,36,.08); }
.hcat .hci { height: 104px; margin: 6px 6px 0; border-radius: 22px; background: var(--surface-2); }
.hcat .hci img.cmark { width: 70%; aspect-ratio: auto; border-radius: 0; opacity: .8; }
.hcat b { font-family: var(--body); font-weight: 600; font-size: 14.5px; letter-spacing: 0; line-height: 1.2; padding: 10px 12px 2px; }
.hcat small { color: var(--muted); font-weight: 500; }

/* Visítanos. */
.lm-visit { margin: 0 14px; border-radius: 36px; overflow: hidden; background: rgba(255,253,249,.82); border: 1px solid rgba(255,255,255,.9); box-shadow: var(--shadow); }
.lm-visit-ph { position: relative; height: 190px; margin: 8px 8px 0; border-radius: 28px; overflow: hidden; }
.lm-visit-ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.lm-visit-ph .lm-glass-pill { position: absolute; left: 12px; bottom: 12px; }
.lm-visit .visit { margin: 0; padding: 16px 18px 18px; }
.vrow svg { stroke: var(--lm-olive); }
.vrow b { font-weight: 600; }
.actions a { background: var(--surface-2); border: 0; border-radius: 99px; font-weight: 500; color: var(--ink); }
.actions svg { stroke: var(--ink); }

footer { padding: 40px 22px 10px; }
footer .lm-foot-art { width: 120px; height: auto; opacity: .95; }
footer .h { font-family: var(--script); font-size: 38px; font-weight: 400; letter-spacing: 0; color: var(--lm-olive); margin: 4px 0 6px; }
footer .by { letter-spacing: .14em; }

/* Order in progress (Inicio). */
.homeorder { width: calc(100% - 28px); margin: 18px 14px 0; border: 0; border-radius: 26px; background: var(--lm-dark); color: #fff; padding: 14px 16px; box-shadow: 0 14px 30px rgba(38,43,32,.25); }
.homeorder b { color: #fff; font-weight: 600; }
.homeorder small { color: rgba(255,255,255,.7); }
.homeorder .lo-dot { background: #b9d48a; }
.homeorder.st-ok { background: #4e6a2c; }
.homeorder.st-ok b, .homeorder.st-done b, .homeorder.st-bad b { color: #fff; }
.homeorder.st-done { background: rgba(255,253,249,.9); color: var(--ink); }
.homeorder.st-done b { color: var(--ink); }
.homeorder.st-done small { color: var(--muted); }
.homeorder.st-bad { background: var(--lm-terra); }

/* ── Menú ─────────────────────────────────────────────────────────────── */
.mtop { display: flex; align-items: center; gap: 14px; padding: calc(14px + env(safe-area-inset-top)) 18px 4px; }
.mtop .mtxt { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.mtop .status { display: none; }
.mtop .mlogo { width: 84px; height: auto; border-radius: 0; background: none; box-shadow: none; }

/* Menús por horario: segmented capsule. */
.mtabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 16px 16px 0; padding: 5px; border-radius: 99px; background: rgba(239,233,222,.75); border: 1px solid rgba(255,255,255,.8); }
.mtabs button { min-width: 0; position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 9px 4px 8px; border-radius: 99px; transition: background .3s var(--ease-out), color .3s; }
.mtabs b { font-size: 14.5px; font-weight: 600; }
.mtabs small { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mtabs .live { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #6f9a3a; margin-right: 4px; vertical-align: 1px; }
.mtabs button.on { background: var(--lm-dark); color: #fff; box-shadow: 0 8px 20px rgba(38,43,32,.25); }
.mtabs button.on small { color: rgba(255,255,255,.7); }
.mtabs button.on .live { background: #b9d48a; }
.minfo { margin: 12px 16px 0; padding: 12px 16px; border-radius: 22px; background: rgba(255,253,249,.75); font-size: 13.5px; line-height: 1.45; color: var(--ink); }
.minfo span { color: var(--muted); }
.closed { margin: 12px 16px 0; background: rgba(247,227,216,.85); border: 0; color: #7a3519; border-radius: 22px; font-weight: 500; }

.nav { margin-top: 10px; background: rgba(245,241,234,.78); border-bottom: 0; backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); }
.search { padding: 10px 16px; }
.search input { border-radius: 99px; border: 1px solid rgba(255,255,255,.9); background-color: rgba(255,253,249,.9); padding: 13px 18px 13px 42px; background-position: 16px center; box-shadow: 0 6px 16px rgba(64,58,36,.06); }
.search input:focus { border-color: var(--lm-olive); }
.lastorder { border: 0; border-radius: 22px; background: var(--lm-dark); color: #fff; }
.lastorder b { color: #fff; font-weight: 600; }
.lastorder small { color: rgba(255,255,255,.7); }
.lastorder .lo-dot { background: #b9d48a; }
.lastorder .lo-x { background: rgba(255,255,255,.14); border: 0; color: #fff; }

/* Section cards: big, very rounded photos. The first one spans both columns. */
.cats { gap: 12px; padding: 14px 14px 6px; }
.cat { border: 0; border-radius: 32px; background: rgba(255,253,249,.85); box-shadow: 0 12px 28px rgba(64,58,36,.1); }
.cat:first-child { grid-column: 1 / -1; }
.cat:first-child .cimg { aspect-ratio: 16 / 9; }
.cat .cimg { margin: 6px 6px 0; border-radius: 26px; aspect-ratio: 1 / .9; background: var(--surface-2); }
.cat .cimg img.cmark { width: 74%; aspect-ratio: auto; border-radius: 0; opacity: .75; }
.cat .cbody { padding: 11px 14px 14px; gap: 4px; }
.cat .cbody b { font-family: var(--body); font-weight: 600; font-size: 16px; letter-spacing: -.01em; line-height: 1.2; }
.cat .crange { color: var(--muted); font-weight: 500; font-size: 13px; }

section.sec { padding: 12px 16px 4px; }
.sec .back { background: rgba(255,253,249,.85); border: 1px solid rgba(255,255,255,.9); font-weight: 500; padding: 9px 16px; }
.sh h2 { font-family: var(--display); font-weight: 650; font-size: 30px; letter-spacing: -.02em; color: var(--ink) !important; }
.note { color: var(--muted); font-size: 13.5px; }
.items { display: grid; gap: 12px; margin-top: 14px; }
.item { padding: 10px; gap: 14px; border: 0; border-radius: 28px; background: rgba(255,253,249,.85); box-shadow: 0 8px 22px rgba(64,58,36,.07); }
.item .th { width: 92px; height: 92px; border-radius: 22px; box-shadow: none; }
.item .th:empty, .item .th.none { display: none; }
.item .nm { font-weight: 600; font-size: 15.5px; }
.item .ds { font-size: 13px; }
.item .pr { color: var(--ink); font-weight: 600; font-size: 15px; padding-right: 6px; }
.badge { border-radius: 99px; background: var(--lm-terra); font-weight: 600; letter-spacing: .06em; }
.badge.grey { background: var(--surface-2); color: var(--muted); border: 0; }
.lm-loading, .lm-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); grid-column: 1 / -1; }
.lm-empty img { width: 150px; height: auto; }
.lm-empty b { color: var(--ink); font-size: 17px; font-weight: 600; }
.lm-cup { width: 76px; height: 76px; fill: none; stroke: var(--lm-olive); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lm-cup .sm { stroke: var(--lm-terra); stroke-width: 2; opacity: 0; animation: lm-steam 1.8s ease-in-out infinite; }
.lm-cup .sm:nth-child(2) { animation-delay: .3s; }
.lm-cup .sm:nth-child(3) { animation-delay: .6s; }
@keyframes lm-steam { 0% { opacity: 0; transform: translateY(6px); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-8px); } }

/* ── Tab bar: floating glass, active tab in a capsule ─────────────────── */
.tabbar { left: 50%; right: auto; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); width: min(calc(100% - 28px), 420px); padding: 6px; border-radius: 99px; border: 1px solid rgba(255,255,255,.85); background: rgba(255,253,249,.6); backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5); box-shadow: 0 18px 40px rgba(64,58,36,.16); display: flex; gap: 2px; }
.tabbar button { flex: 1; color: var(--ink); padding: 9px 0 7px; border-radius: 99px; font-size: 11px; font-weight: 500; gap: 2px; transition: flex .35s var(--ease-out), background .3s, box-shadow .3s; }
.tabbar button::before { display: none; }
.tabbar button span { display: none; }
.tabbar button.on { flex: 1.5; background: #fff; color: var(--ink); box-shadow: 0 6px 16px rgba(64,58,36,.14); }
.tabbar button.on span { display: block; }
.tabbar button.on svg { transform: none; }
.tabbar svg { stroke-width: 1.7; }
.tabbar .dot { background: var(--lm-terra); border-color: #fff; }
.cartbar { bottom: calc(92px + env(safe-area-inset-bottom)); border-radius: 99px; background: var(--lm-dark); color: #fff; box-shadow: 0 18px 40px rgba(38,43,32,.35); font-weight: 600; }
.cartbar .n { background: #fff; color: var(--lm-dark); }

/* ── Sheets and buttons ───────────────────────────────────────────────── */
.btn { background: var(--lm-dark); color: #fff; font-weight: 600; }
.btn.ghost { background: rgba(239,233,222,.9); color: var(--ink); border: 0; }
.sheet { background: var(--surface); border-radius: 34px 34px 0 0; box-shadow: 0 -20px 60px rgba(64,58,36,.2); }
.sheet .x { background: rgba(255,253,249,.85); border: 0; color: var(--ink); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.sheet .ph { margin: 8px 8px 0; border-radius: 28px; height: 250px; }
.sheet h3, .oh h3 { font-family: var(--display); font-weight: 650; letter-spacing: -.02em; font-size: 28px; }
.sheet .secn { font-family: var(--body); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.sheet .bigp { color: var(--ink); font-weight: 600; }
.opt { background: var(--surface-2); border: 0; font-weight: 500; }
.opt.on { background: var(--lm-dark); color: #fff; }
.opt.on small { color: rgba(255,255,255,.7); }
.seg button { border: 0; border-radius: 99px; font-weight: 600; background: var(--surface-2); }
.seg button.on { background: var(--lm-dark); color: #fff; }
.lbl em { color: var(--lm-terra); }
.addbar { background: linear-gradient(180deg, rgba(255,253,249,0), var(--surface) 30%); }
.qty { background: var(--surface-2); border: 0; }
.scrim { background: rgba(60,56,40,.28); }
.scrim.on { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.toast { background: var(--lm-dark); color: #fff; font-weight: 500; }
.inp { border-radius: 16px; background: var(--surface-2); border-color: transparent; }
.inp:focus { border-color: var(--lm-olive); }

/* Welcome screen. */
.gate { background: rgba(245,241,234,.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.gate-logo { width: min(64vw, 250px); aspect-ratio: auto; border-radius: 0; background: none; box-shadow: none; }
.lm-gate-art { width: 190px; margin-top: 18px; }
.gate h1 { font-size: 36px; margin-top: 10px; }
.gate-in > p { color: var(--muted); }

/* ── Drawer: side menu over the blurred app ───────────────────────────── */
.lm-drawer { position: fixed; inset: 0; z-index: 70; background: rgba(245,241,234,.35); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); opacity: 0; transition: opacity .35s var(--ease-out); }
.lm-drawer.on { opacity: 1; }
.lm-drawer-in { height: 100%; max-width: 360px; padding: calc(34px + env(safe-area-inset-top)) 28px 28px; display: flex; flex-direction: column; transform: translateX(-24px); transition: transform .45s var(--ease-out); }
.lm-drawer.on .lm-drawer-in { transform: none; }
.lm-dw-av { display: block; width: 74px; height: 74px; border-radius: 50%; overflow: hidden; background: #fffdf9; box-shadow: 0 10px 24px rgba(64,58,36,.15); }
.lm-dw-av img { width: 160%; margin: -6% 0 0 -12%; }
.lm-dw-who b { display: block; font-size: 30px; font-weight: 650; letter-spacing: -.02em; margin-top: 16px; }
.lm-dw-sub { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 15px; margin-top: 4px; }
.lm-dw-sub svg, .lm-dw-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lm-dw-nav { display: grid; gap: 4px; margin-top: 36px; }
.lm-dw-nav button, .lm-dw-nav a { display: flex; align-items: center; gap: 16px; padding: 13px 0; font-size: 21px; font-weight: 400; text-decoration: none; text-align: left; }
.lm-dw-nav svg { width: 24px; height: 24px; }
.lm-drawer.on .lm-dw-nav > * { animation: pr-rise .5s var(--ease-out) both; }
.lm-dw-nav > :nth-child(2) { animation-delay: .04s !important; }
.lm-dw-nav > :nth-child(3) { animation-delay: .08s !important; }
.lm-dw-nav > :nth-child(4) { animation-delay: .12s !important; }
.lm-dw-nav > :nth-child(5) { animation-delay: .16s !important; }
.lm-dw-nav > :nth-child(6) { animation-delay: .2s !important; }
.lm-dw-foot { margin-top: auto; color: var(--muted); font-size: 13px; }
.lm-dw-foot span { display: block; font-family: var(--script); font-size: 30px; color: var(--lm-olive); }
html.lm-dw-open { overflow: hidden; }

/* DEMO sheet. */
.lm-demo-sheet .bd { padding-top: 26px; }
.lm-demo-sheet .seg { grid-template-columns: repeat(4, 1fr); }
.lm-demo-sheet p { color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 6px; }

/* Screen transitions between tabs. */
.view:not([hidden]) { animation: lm-view .45s var(--ease-out) both; }
@keyframes lm-view { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Mac / wide screens: the app floats in the middle like a phone, glows around. */
@media (min-width: 760px) {
  .app { margin-top: 0; }
  .lm-h1 { font-size: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .lm-glow i, .status i, .lm-cup .sm { animation: none !important; }
}

/* ── Etapa 2: product sheet, builder, cart, tracking ──────────────────── */
.sheet .ph.lm-ph-art { position: relative; display: grid; place-items: center; background: radial-gradient(circle at 70% 20%, #e7e3bf, #efe2d3 60%, #f3ebe0); }
.sheet .ph.lm-ph-art img { width: 62%; height: auto; object-fit: contain; }
.sheet .ph.lm-ph-art .lm-glass-pill { position: absolute; left: 14px; bottom: 14px; }
.sheet .bigp { font-size: 26px; letter-spacing: -.01em; }
.sheet .bigp small { font-weight: 400; }
.lbl { font-weight: 600; letter-spacing: .1em; }
.lbl em.opc { color: var(--muted); }
.opt { padding: 11px 16px; transition: background .25s, color .25s, transform .15s; }
.opt:disabled { opacity: .45; }

.lm-steps { list-style: none; display: flex; gap: 6px; margin: 18px 0 4px; padding: 5px; border-radius: 99px; background: rgba(239,233,222,.8); overflow-x: auto; scrollbar-width: none; }
.lm-steps li { flex: 1; min-width: max-content; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 12px; border-radius: 99px; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; transition: background .3s, color .3s; }
.lm-steps i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 600; background: #fff; color: var(--ink); }
.lm-steps li.cur { background: var(--lm-dark); color: #fff; }
.lm-steps li.done { color: var(--ink); }
.lm-steps li.done i { background: #6f9a3a; color: #fff; font-size: 0; }
.lm-steps li.done i::after { content: "✓"; font-size: 12px; }
.lm-multi .opt.on { background: #5f7d3a; }
.sheet .ph.lm-ph-art { height: 190px; }
@media (max-width: 420px) { .lm-steps li:not(.cur) span { display: none; } .lm-steps li:not(.cur) { flex: 0 0 auto; } }
.lm-picks { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 18px; font-size: 13px; color: var(--muted); min-height: 30px; }
.lm-picks i { font-style: normal; padding: 5px 11px; border-radius: 99px; background: var(--ok-bg); color: #4e6a2c; font-weight: 500; animation: pr-rise .35s var(--ease-out) both; }
.addbar .lm-circle { width: 52px; height: 52px; }

/* Bird flying to the cart (the small bird of the logo). */
.lm-fly { position: fixed; left: 0; top: 0; z-index: 95; width: 46px; height: 54px; pointer-events: none; background: url(/brand/art/birds.webp) 0 0 / auto 54px no-repeat; opacity: 0; will-change: transform; filter: drop-shadow(0 6px 8px rgba(0,0,0,.15)); }

/* Cart. */
.oh h3 { font-size: 30px; }
.line { border-bottom: 1px solid var(--line); }
.line b { font-weight: 600; }
.line .pr { font-weight: 600; }
.line .q button { background: var(--surface-2); border: 0; }
.line .q button.rm { background: transparent; color: var(--lm-terra); border: 0; }
.seg button small { display: block; font-size: 11px; font-weight: 500; opacity: .7; margin-top: 2px; }
.sum { background: rgba(239,233,222,.7); border-radius: 24px; }
.sum .lm-soft { color: var(--muted); }
.sum .lm-eta span { display: flex; flex-wrap: wrap; align-items: center; gap: 0 7px; font-weight: 500; }
.sum .lm-eta svg { width: 18px; height: 18px; fill: none; stroke: var(--lm-olive); stroke-width: 2; stroke-linecap: round; }
.sum .lm-eta small { flex-basis: 100%; padding-left: 25px; }
.sum .lm-total { border-top: 1px solid rgba(0,0,0,.08); padding-top: 10px; font-size: 17px; font-weight: 600; }
.sum .lm-total b { font-size: 20px; }
.btn.wa { background: var(--lm-dark); }
.steps div::before { background: var(--lm-dark); color: #fff; }
.steps .done::before { background: #6f9a3a; }
.bank { background: var(--surface-2); border: 0; border-radius: 22px; }
.lm-demo-note { justify-content: center !important; font-size: 11.5px !important; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--lm-terra); }
.folio { font-family: var(--body); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--lm-olive); }
.hint { color: var(--muted); }

/* Order status + the dog on its way. */
.ostatus { border: 0; border-radius: 26px; background: rgba(239,233,222,.85); color: var(--ink); }
.ostatus.st-ok { background: var(--ok-bg); color: var(--ink); }
.ostatus.st-bad { background: var(--danger-bg); color: #7a3519; }
.stages li i { border: 0; background: #fff; }
.stages li.done i, .stages li.done::before, .stages li.cur::before { background: #6f9a3a; }
.stages li.cur i, .ostatus.st-ok .stages li.cur i { background: var(--lm-dark); border-color: var(--lm-dark); }
.lm-track { position: relative; height: 74px; margin: 2px 6px 8px; }
.lm-rail { position: absolute; left: 0; right: 0; bottom: 8px; height: 6px; border-radius: 6px; background: rgba(255,255,255,.85); overflow: hidden; }
.lm-rail i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #9aa05a, #5f7d3a); transition: width 1.1s cubic-bezier(.4,.1,.3,1); }
.lm-pup { position: absolute; bottom: 4px; width: 58px; height: auto; translate: -50% 0; transition: left 1.1s cubic-bezier(.4,.1,.3,1); filter: drop-shadow(0 4px 6px rgba(0,0,0,.12)); }
.lm-eta-tag { position: absolute; right: 0; top: 0; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 99px; background: #fff; color: var(--lm-olive); }

/* Orders list. */
.lm-nothing img { width: 170px; height: auto; border-radius: 0; background: none; }
.ocard { border: 0; border-radius: 26px; background: rgba(255,253,249,.85); box-shadow: 0 8px 22px rgba(64,58,36,.07); }
.chip { border-radius: 99px; }
.promo { margin: 18px 16px 0; padding: 20px; border: 0; border-radius: 30px; background: rgba(255,253,249,.85); color: var(--ink); box-shadow: 0 8px 22px rgba(64,58,36,.07); }
.promo::before, .promo::after, .promo-bar { display: none; }
.promo b { font-family: var(--body); font-size: 19px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.promo p { color: var(--muted); }

/* "Falta un producto, ¿lo cambiamos?" in the order status. */
.lm-swap { display: grid; gap: 10px; margin: 0 0 14px; padding: 16px; border-radius: 24px; background: #fff; box-shadow: 0 12px 28px rgba(180,85,45,.16); border: 1.5px solid #efc9b3; animation: lm-swap-in .5s var(--ease-out) both; }
@keyframes lm-swap-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.lm-swap-k { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--lm-terra); }
.lm-swap-k img { height: 26px; width: auto; }
.lm-swap-q { font-size: 22px; font-weight: 650; letter-spacing: -.02em; }
.lm-swap-note { font-size: 14px; color: var(--muted); font-style: italic; }
.lm-swap-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; font-size: 14px; }
.lm-swap-row .old { color: var(--muted); text-decoration: line-through; }
.lm-swap-row .new { font-weight: 600; padding: 8px 10px; border-radius: 14px; background: var(--ok-bg); }
.lm-swap-row small { font-weight: 400; color: var(--muted); }
.lm-swap-row .arrow { color: var(--lm-terra); font-size: 18px; }
.lm-swap-tot { display: flex; justify-content: space-between; align-items: baseline; padding-top: 8px; border-top: 1px solid var(--line); font-size: 14px; }
.lm-swap-tot s { color: var(--muted); }
.lm-swap-tot b { font-size: 19px; }
.lm-swap-sim { padding: 9px 12px; border-radius: 14px; background: #f6e1d3; color: #7a3519; font-size: 13.5px; font-weight: 500; }
.lm-swap-sim em { font-style: normal; opacity: .75; }
.lm-swap-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lm-swap-btns .btn { white-space: nowrap; padding: 0 12px; }
.lm-swap-btns .btn { height: 48px; }
.lm-swap-wait { color: var(--muted); font-size: 12.5px; text-align: center; }
.lm-swap-done { margin-top: 10px; padding: 10px 12px; border-radius: 14px; font-size: 13.5px; background: var(--ok-bg); }
.lm-swap-done.rejected { background: var(--danger-bg); color: #7a3519; }

/* Steam over hot drinks. */
.sheet .ph { position: relative; }
.lm-steam { position: absolute; left: 50%; top: 8%; width: 120px; height: 120px; translate: -50% 0; fill: none; stroke: rgba(255,255,255,.85); stroke-width: 2.6; stroke-linecap: round; filter: blur(1.5px); pointer-events: none; }
.lm-steam path { stroke-dasharray: 80; stroke-dashoffset: 80; animation: lm-wisp 2.6s ease-in-out infinite; }
.lm-steam path:nth-child(2) { animation-delay: .5s; }
.lm-steam path:nth-child(3) { animation-delay: 1s; }
@keyframes lm-wisp { 0% { stroke-dashoffset: 80; opacity: 0; } 30% { opacity: 1; } 100% { stroke-dashoffset: -80; opacity: 0; transform: translateY(-14px); } }

@media (prefers-reduced-motion: reduce) {
  .lm-rail i, .lm-pup { transition: none; }
  .lm-steam { display: none; }
}
