/* ================= DOLCE VITA — estilos ================= */
:root {
  --bg: #141614;
  --bg-2: #1c1f1c;
  --bg-3: #252925;
  --line: rgba(240, 242, 232, .12);
  --chalk: #f2f2ea;
  --chalk-2: #c9cbc0;
  --chalk-3: #9a9d92;
  --palta: #7BBF3A;
  --palta-2: #A8D86E;
  --mostaza: #F6C744;
  --danger: #ff8a7a;
  --radius: 18px;
  --top-h: 60px;
  --font-logo: "Kaushan Script", "Segoe Script", cursive;
  --font-title: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 16px/1.5 var(--font-body);
  color: var(--chalk);
  background-color: var(--bg);
  /* textura de pizarrón: ruido de tiza + manchas de borrador */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .055 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 60% 40% at 15% 20%, rgba(255,255,255,.035), transparent 70%),
    radial-gradient(ellipse 50% 35% at 85% 65%, rgba(255,255,255,.03), transparent 70%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--palta-2); }
:focus-visible { outline: 3px solid var(--mostaza); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--mostaza); color: #111; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
svg { width: 1em; height: 1em; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 22px; border-radius: 999px; border: 0;
  font-weight: 800; font-size: 1rem; text-decoration: none; letter-spacing: .01em;
  transition: transform .15s ease, background-color .2s ease, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn--main { background: var(--palta); color: #10140c; box-shadow: 0 6px 24px -8px rgba(123,191,58,.7); }
.btn--main:hover { background: var(--palta-2); }
.btn--ghost { background: transparent; color: var(--chalk); border: 2px solid var(--line); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--bg-3); color: var(--chalk-3); box-shadow: none; cursor: not-allowed; }
.btn svg { width: 22px; height: 22px; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  height: var(--top-h);
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px; padding-top: env(safe-area-inset-top);
  background: rgba(20, 22, 20, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--palta); min-width: 0; }
.brand__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--palta); }
.brand__name { font-family: var(--font-logo); font-size: 1.3rem; line-height: 1.1; white-space: nowrap; padding-right: 4px; }
@media (max-width: 380px) { .brand__name { font-size: 1.1rem; } .brand__avatar { width: 34px; height: 34px; } }
.status {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .68rem; font-weight: 700; line-height: 1.15;
  padding: 5px 9px; border-radius: 999px;
  background: var(--bg-3); color: var(--chalk-2);
  max-width: 112px; flex-shrink: 1;
}
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--chalk-3); flex: none; }
.status.is-open { color: var(--palta-2); background: rgba(123,191,58,.14); }
.status.is-open i { background: var(--palta); box-shadow: 0 0 0 0 rgba(123,191,58,.6); animation: latido 2s infinite; }
.status.is-closed { color: #ffb4a8; background: rgba(255,138,122,.12); }
.status.is-closed i { background: var(--danger); }
@keyframes latido { 0% { box-shadow: 0 0 0 0 rgba(123,191,58,.6);} 70% { box-shadow: 0 0 0 7px rgba(123,191,58,0);} 100% { box-shadow: 0 0 0 0 rgba(123,191,58,0);} }

.icon-btn, .cart-btn {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; border: 0;
  background: var(--bg-3); color: var(--chalk);
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn[aria-pressed="true"] { color: var(--palta-2); }
.cart-btn { position: relative; background: var(--mostaza); color: #1a1505; }
.cart-btn svg { width: 24px; height: 24px; }
.cart-btn__count {
  position: absolute; top: -4px; right: -4px;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--palta); color: #10140c; font-size: .75rem; font-weight: 800;
  display: grid; place-items: center; border: 2px solid var(--bg);
}
.cart-btn__count[data-n="0"] { display: none; }
.bounce { animation: rebote .6s var(--ease-pop); }
@keyframes rebote { 0% { transform: scale(1);} 25% { transform: scale(1.25) rotate(-8deg);} 50% { transform: scale(.92) rotate(5deg);} 75% { transform: scale(1.08);} 100% { transform: scale(1);} }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 0 0 8px; overflow: hidden; }
.hero__photo { position: relative; aspect-ratio: 5 / 3.4; overflow: hidden; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,22,20,0) 45%, var(--bg) 98%); }
.hero__body { position: relative; padding: 0 20px; margin-top: -64px; z-index: 2; }
.hero__logo { margin: 0; font: 400 clamp(3.2rem, 15vw, 4.6rem)/.95 var(--font-logo); color: var(--palta); text-shadow: 0 4px 24px rgba(0,0,0,.6); }
.hero__logo small { display: block; font: 600 1.1rem/1 var(--font-body); color: var(--chalk); letter-spacing: .12em; margin: 2px 0 0 62%; text-transform: lowercase; }
.trazo { display: block; width: 150px; height: 18px; color: var(--palta); filter: url(#tiza); margin: 4px 0 10px; }
.chispa { position: absolute; width: 30px; height: 30px; color: var(--palta); filter: url(#tiza); }
.chispa--l { left: 0; top: 4px; transform: scaleX(-1); }
.hero__tag { margin: 0 0 14px; color: var(--chalk-2); max-width: 34ch; }
.hero__tag strong { color: var(--chalk); }
.hero__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; }
.hero__chips li { font-size: .8rem; font-weight: 600; padding: 6px 10px; border-radius: 999px; background: var(--bg-2); border: 1px dashed rgba(168,216,110,.35); }
.hero__cta { min-width: 190px; }
.hero__mascota {
  position: absolute; right: 12px; top: calc(min(68vw, 460px) - 140px); z-index: 3;
  width: 104px; height: 104px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--palta); box-shadow: 0 10px 30px rgba(0,0,0,.5);
  animation: flota 4s ease-in-out infinite;
}
@keyframes flota { 0%,100% { transform: translateY(0) rotate(-3deg);} 50% { transform: translateY(-6px) rotate(3deg);} }

/* ---------- Barra fija: buscador + categorías ---------- */
.sticky-bar {
  position: sticky; top: var(--top-h); z-index: 25;
  background: rgba(20, 22, 20, .95);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 10px 0 0;
}
.search { display: flex; align-items: center; gap: 8px; margin: 0 12px 8px; padding: 0 14px; height: 46px; border-radius: 14px; background: var(--bg-3); border: 1px solid var(--line); }
.search:focus-within { border-color: var(--palta); }
.search svg { width: 20px; height: 20px; color: var(--chalk-3); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 16px; height: 100%; }
.search input::placeholder { color: var(--chalk-3); }
.cats { display: flex; gap: 6px; overflow-x: auto; padding: 0 12px 10px; scrollbar-width: none; scroll-snap-type: x proximity; }
.cats::-webkit-scrollbar { display: none; }
.cat {
  flex: none; scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: transparent; color: var(--chalk-2);
  font-weight: 700; font-size: .88rem; white-space: nowrap; text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.cat svg { width: 20px; height: 20px; }
.cat.is-active { background: var(--palta); border-color: var(--palta); color: #10140c; }

/* ---------- Menú ---------- */
.menu { padding: 6px 0 24px; outline: none; }
.sec { padding: 26px 12px 6px; scroll-margin-top: calc(var(--top-h) + 118px); }
.sec__banner { position: relative; height: 118px; margin: 0 0 14px; border-radius: var(--radius); overflow: hidden; }
.sec__banner img { width: 100%; height: 100%; object-fit: cover; }
.sec__banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,22,20,.85), rgba(20,22,20,.15) 70%); }
.sec__head { position: relative; padding: 0 4px; }
.sec__banner .sec__head { position: absolute; z-index: 1; left: 14px; bottom: 10px; padding: 0; }
.sec__title { margin: 0; font: 400 2.3rem/1 var(--font-title); letter-spacing: .02em; color: var(--chalk); display: flex; align-items: center; gap: 10px; }
.sec__title svg { width: 34px; height: 34px; color: var(--palta); filter: url(#tiza); }
.sec__script { display: block; font: 400 1.2rem/1.1 var(--font-logo); color: var(--palta-2); margin-bottom: 2px; }
.sec .trazo { width: 120px; height: 14px; margin: 4px 0 6px; }
.sec__nota { margin: 0 4px 12px; font-size: .9rem; color: var(--chalk-2); }
.sec__nota::before { content: "✦ "; color: var(--palta); }
.grupo { margin: 18px 4px 8px; font: 400 1.5rem/1 var(--font-logo); color: var(--mostaza); display: flex; align-items: center; gap: 10px; }
.grupo::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, rgba(123,191,58,.6), transparent); border-radius: 2px; }

/* tarjeta en lista */
.list { display: grid; gap: 10px; }
.card {
  position: relative; display: grid; grid-template-columns: 1fr 108px; gap: 12px; align-items: center;
  width: 100%; text-align: left; padding: 12px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line); color: inherit;
  transition: transform .15s ease, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.card:hover { border-color: rgba(168,216,110,.45); }
.card:active { transform: scale(.985); }
.card__name { margin: 0; font: 400 1.5rem/1 var(--font-title); letter-spacing: .03em; color: var(--mostaza); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card__desc { margin: 4px 0 8px; font-size: .86rem; line-height: 1.35; color: var(--chalk-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__price { font-weight: 800; color: var(--chalk); font-size: 1rem; }
.card__price small { font-weight: 600; color: var(--chalk-3); font-size: .78rem; }
.card__price.consultar { color: var(--palta-2); font-size: .9rem; }
.card__media { position: relative; width: 108px; height: 108px; border-radius: 14px; overflow: hidden; background: var(--bg-3); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__add {
  position: absolute; right: 6px; bottom: 6px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--palta); color: #10140c;
  font-size: 1.5rem; font-weight: 700; line-height: 1; box-shadow: 0 4px 12px rgba(0,0,0,.45);
}
.ilus { width: 100%; height: 100%; display: grid; place-items: center; color: var(--palta-2);
  background: radial-gradient(circle at 30% 25%, rgba(168,216,110,.14), transparent 60%), var(--bg-3); }
.ilus svg { width: 56%; height: 56%; filter: url(#tiza); opacity: .9; }
.card.is-out { opacity: .5; cursor: not-allowed; }
.card.is-out:active { transform: none; }
.out-tag { position: absolute; inset: auto 0 0 0; padding: 4px; text-align: center; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: rgba(0,0,0,.75); color: #fff; }
.badge18 { display: inline-grid; place-items: center; min-width: 34px; height: 22px; padding: 0 5px; border-radius: 6px; font: 800 .72rem/1 var(--font-body); color: #fff; background: #c2412f; letter-spacing: .02em; vertical-align: middle; }
.badge18--big { width: 64px; height: 64px; border-radius: 50%; font-size: 1.3rem; margin: 0 auto 12px; }

/* tarjetas grandes (hamburguesas) */
.feat { display: grid; gap: 14px; }
.fcard {
  position: relative; display: block; width: 100%; padding: 0; text-align: left; overflow: hidden;
  border-radius: 22px; border: 1px solid var(--line); background: var(--bg-2); color: inherit;
  transition: transform .2s ease;
}
.fcard:active { transform: scale(.985); }
.fcard__media { aspect-ratio: 5 / 4; overflow: hidden; }
.fcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.fcard:hover .fcard__media img { transform: scale(1.04); }
.fcard__body { position: relative; padding: 12px 16px 16px; margin-top: -54px; background: linear-gradient(180deg, transparent, var(--bg-2) 52px); }
.fcard__name { margin: 0; font: 400 2.4rem/1 var(--font-title); letter-spacing: .03em; color: var(--mostaza); text-shadow: 0 2px 14px rgba(0,0,0,.7); }
.fcard__desc { margin: 4px 0 10px; color: var(--chalk-2); font-size: .92rem; }
.fcard__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fcard__prices { display: flex; gap: 6px; flex-wrap: wrap; }
.fcard__prices span { font-size: .78rem; font-weight: 700; padding: 5px 9px; border-radius: 999px; background: var(--bg-3); color: var(--chalk-2); }
.fcard__prices b { color: var(--chalk); }
.fcard__add { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--palta); color: #10140c; font-size: 1.8rem; font-weight: 700; }

.empty-search { text-align: center; padding: 40px 20px; color: var(--chalk-2); }
.noscript { margin: 20px; padding: 16px; border-radius: 14px; background: var(--bg-2); }
.is-hidden { display: none !important; }

/* ---------- Info y pie ---------- */
.info { padding: 30px 16px 10px; border-top: 1px dashed var(--line); }
.info__title { margin: 0; font: 400 2.2rem/1 var(--font-logo); color: var(--palta); }
.steps { list-style: none; padding: 0; margin: 4px 0 22px; display: grid; gap: 10px; }
.steps li { display: flex; gap: 12px; align-items: center; color: var(--chalk-2); }
.steps b { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 400 1.4rem/1 var(--font-title); color: #1a1505; background: var(--mostaza); }
.steps em { color: var(--chalk); font-style: normal; font-weight: 700; }
.info__grid { display: grid; gap: 12px; }
.info__card { padding: 16px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.info__card h3 { margin: 0 0 8px; font: 400 1.6rem/1 var(--font-title); letter-spacing: .03em; color: var(--mostaza); }
.info__card p { margin: 0 0 10px; color: var(--chalk-2); }
.hours { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.hours li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--line); color: var(--chalk-2); }
.hours li:last-child { border: 0; }
.hours li.hoy { color: var(--chalk); font-weight: 700; }
.hours li.hoy span:first-child::after { content: " · hoy"; color: var(--palta-2); }
.info__links { display: flex; gap: 10px; flex-wrap: wrap; }
.info__links a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--bg-3); text-decoration: none; font-weight: 700; color: var(--chalk); }
.info__links svg { width: 20px; height: 20px; color: #25d366; }
.foot { padding: 22px 16px 120px; text-align: center; font-size: .82rem; color: var(--chalk-3); }
.foot p { margin: 0 0 8px; }
.foot__legal { color: var(--chalk-2); font-weight: 600; }
.foot__credit { font-size: .7rem; opacity: .7; }

/* ---------- Barra flotante del carrito ---------- */
.cartbar {
  position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
  min-height: 58px; padding: 0 18px 0 10px; border-radius: 999px; border: 0;
  background: var(--palta); color: #10140c; font-weight: 800; font-size: 1.02rem;
  box-shadow: 0 12px 30px -6px rgba(0,0,0,.7), 0 0 0 4px rgba(20,22,20,.6);
  animation: subir .35s var(--ease-pop);
}
.cartbar[hidden] { display: none; }
.cartbar__count { min-width: 38px; height: 38px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center; background: #10140c; color: var(--palta-2); }
.cartbar__label { flex: 1; text-align: left; }
.cartbar.pop { animation: pop .45s var(--ease-pop); }
@keyframes subir { from { transform: translateY(120%); } to { transform: none; } }
@keyframes pop { 0% { transform: scale(1);} 40% { transform: scale(1.06);} 100% { transform: scale(1);} }

/* ---------- Hojas inferiores ---------- */
.backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.6); opacity: 0; transition: opacity .25s; }
.backdrop.is-on { opacity: 1; }
.sheet {
  position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
  max-height: 92vh; max-height: 92dvh;
  display: flex; flex-direction: column;
  background: var(--bg-2); border-radius: 24px 24px 0 0; border-top: 1px solid var(--line);
  box-shadow: 0 -20px 50px rgba(0,0,0,.5);
  transform: translateY(105%); transition: transform .32s cubic-bezier(.22,1,.36,1);
}
.sheet.is-on { transform: none; }
.sheet--tall { height: 92vh; height: 92dvh; }
.sheet--tall .sheet__scroll { margin-top: 34px; border-top: 1px solid var(--line); }
.sheet--tall .sheet__close { top: 6px; width: 36px; height: 36px; }
.sheet__grip { width: 44px; height: 5px; border-radius: 5px; background: rgba(255,255,255,.25); margin: 8px auto 0; flex: none; }
.sheet__close { position: absolute; top: 10px; right: 10px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(20,22,20,.8); color: var(--chalk); font-size: 1rem; }
.sheet__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet__foot { flex: none; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg-2); display: flex; gap: 10px; align-items: center; }
.sheet__foot:empty { display: none; }

/* hoja de producto */
.p__media { height: 210px; margin: 10px 12px 0; border-radius: 18px; overflow: hidden; background: var(--bg-3); }
.p__media img { width: 100%; height: 100%; object-fit: cover; }
.p__media.is-ilus { height: 130px; }
.p__media .ilus svg { width: 80px; height: 80px; }
.p__body { padding: 14px 16px 18px; }
.p__name { margin: 0; font: 400 2.3rem/1 var(--font-title); letter-spacing: .03em; color: var(--mostaza); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.p__desc { margin: 6px 0 4px; color: var(--chalk-2); }
.p__base { margin: 0; font-weight: 800; }
.p__note { font-size: .82rem; color: var(--palta-2); margin: 4px 0 0; }
.field-group { margin: 18px 0 0; padding: 0; border: 0; }
.field-group legend, .field-label { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 0; margin: 0 0 8px; font-weight: 800; font-size: 1rem; }
.req { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 999px; background: var(--bg-3); color: var(--chalk-2); }
.req.ok { background: rgba(123,191,58,.18); color: var(--palta-2); }
.opt { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 14px; margin-bottom: 8px; border-radius: 14px; background: var(--bg-3); border: 2px solid transparent; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--palta); background: rgba(123,191,58,.1); }
.opt input { width: 22px; height: 22px; accent-color: var(--palta); flex: none; margin: 0; }
.opt span { flex: 1; font-weight: 600; }
.opt b { color: var(--mostaza); }
.sabor { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 6px 0 14px; margin-bottom: 8px; border-radius: 14px; background: var(--bg-3); }
.sabor span { flex: 1; font-weight: 600; }
.sabor.has { box-shadow: inset 0 0 0 2px rgba(123,191,58,.6); }
.progress { height: 8px; border-radius: 8px; background: var(--bg-3); overflow: hidden; margin: 0 0 12px; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--palta), var(--palta-2)); border-radius: 8px; transition: width .25s ease; }
textarea, .inp, select.inp {
  width: 100%; padding: 13px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg-3);
  font-size: 16px; color: var(--chalk); resize: vertical;
}
textarea:focus, .inp:focus { outline: none; border-color: var(--palta); }
textarea::placeholder, .inp::placeholder { color: var(--chalk-3); }
.stepper { display: inline-flex; align-items: center; gap: 2px; background: var(--bg-3); border-radius: 999px; padding: 3px; flex: none; }
.stepper button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: var(--chalk); font-size: 1.4rem; font-weight: 700; display: grid; place-items: center; }
.stepper button:not([disabled]):active { background: rgba(255,255,255,.08); }
.stepper button[disabled] { opacity: .3; cursor: not-allowed; }
.stepper output { min-width: 28px; text-align: center; font-weight: 800; font-size: 1.05rem; }
.stepper--sm button { width: 36px; height: 36px; font-size: 1.2rem; }
.sheet__foot .btn { flex: 1; }
.btn.pop { animation: pop .4s var(--ease-pop); }

/* carrito */
.c__head { padding: 12px 16px 6px; }
.c__title { margin: 0; font: 400 2.2rem/1 var(--font-title); letter-spacing: .03em; color: var(--mostaza); }
.c__sub { margin: 2px 0 0; color: var(--chalk-2); font-size: .9rem; }
.c__list { list-style: none; margin: 0; padding: 4px 16px; }
.line { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.line__img { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--bg-3); }
.line__img img { width: 100%; height: 100%; object-fit: cover; }
.line__img .ilus svg { width: 60%; height: 60%; }
.line__name { margin: 0; font-weight: 800; line-height: 1.25; }
.line__meta { margin: 2px 0 0; font-size: .82rem; color: var(--chalk-2); }
.line__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.line__price { font-weight: 800; color: var(--mostaza); }
.line__note { margin-top: 8px; }
.line__note button { border: 0; background: none; padding: 4px 0; color: var(--palta-2); font-weight: 700; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; }
.line__note input { margin-top: 4px; padding: 10px 12px; }
.c__empty { text-align: center; padding: 40px 24px; color: var(--chalk-2); }
.c__empty img { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 14px; border: 3px solid var(--palta); }
.totals { margin: 0; padding: 12px 16px 20px; }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; color: var(--chalk-2); }
.totals .total { color: var(--chalk); font-weight: 800; font-size: 1.15rem; padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--line); }
.totals .total dd { color: var(--mostaza); }
.totals dt, .totals dd { margin: 0; }
.aviso { margin: 0 16px 14px; padding: 12px 14px; border-radius: 14px; font-size: .88rem; background: rgba(246,199,68,.1); border: 1px solid rgba(246,199,68,.35); color: #f8dc8a; }
.aviso--closed { background: rgba(255,138,122,.1); border-color: rgba(255,138,122,.35); color: #ffc2b8; }

/* checkout */
.form { padding: 4px 16px 20px; }
.form h3 { margin: 22px 0 10px; font: 400 1.5rem/1 var(--font-title); letter-spacing: .04em; color: var(--palta-2); }
.form h3:first-child { margin-top: 8px; }
.f { margin-bottom: 12px; }
.f label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.f label small { font-weight: 500; color: var(--chalk-3); }
.f .err { display: none; margin-top: 6px; font-size: .82rem; color: var(--danger); font-weight: 600; }
.f.invalid .inp { border-color: var(--danger); }
.f.invalid .err { display: block; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.seg--3 { grid-template-columns: 1fr 1fr 1fr; }
.seg label { position: relative; display: grid; place-items: center; text-align: center; min-height: 58px; padding: 8px 6px; border-radius: 14px; background: var(--bg-3); border: 2px solid transparent; font-weight: 700; font-size: .9rem; line-height: 1.2; cursor: pointer; }
.seg label:has(input:checked) { border-color: var(--palta); background: rgba(123,191,58,.12); color: var(--palta-2); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--mostaza); outline-offset: 2px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg .emo { display: block; font-size: 1.3rem; margin-bottom: 2px; }
.alias { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 12px 14px; border-radius: 14px; background: var(--bg-3); margin-bottom: 12px; }
.alias b { color: var(--mostaza); word-break: break-all; }
.alias button { flex: none; border: 0; border-radius: 999px; padding: 8px 14px; background: var(--palta); color: #10140c; font-weight: 800; }
.hint { font-size: .85rem; color: var(--chalk-2); margin: -4px 0 12px; }
.back-link { border: 0; background: none; color: var(--palta-2); font-weight: 700; padding: 8px 0; }

/* modal edad */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.75); }
.modal[hidden] { display: none; }
.modal__box { width: 100%; max-width: 360px; padding: 26px 20px 20px; border-radius: 22px; background: var(--bg-2); border: 1px solid var(--line); text-align: center; animation: pop .35s var(--ease-pop); }
.modal__box h2 { margin: 0 0 6px; font: 400 2rem/1.05 var(--font-title); letter-spacing: .03em; color: var(--mostaza); }
.modal__box p { margin: 0 0 18px; color: var(--chalk-2); font-size: .92rem; }
.modal__box .btn { width: 100%; margin-top: 8px; }

/* toast */
.toast { position: fixed; z-index: 90; left: 50%; bottom: 90px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 999px; background: var(--chalk); color: #141614; font-weight: 700; font-size: .92rem; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0,0,0,.5); transition: opacity .25s, transform .3s var(--ease-pop); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Pantallas grandes ---------- */
@media (min-width: 700px) {
  .hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; max-width: 1100px; margin: 0 auto; padding: 30px 24px; gap: 30px; }
  .hero__photo { order: 2; border-radius: 28px; aspect-ratio: 1; }
  .hero__photo::after { display: none; }
  .hero__body { margin: 0; padding: 0; }
  .hero__mascota { top: auto; bottom: 30px; right: auto; left: calc(55% - 70px); width: 130px; height: 130px; }
  .menu, .info, .sticky-bar > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
  .feat { grid-template-columns: repeat(2, 1fr); }
  .list { grid-template-columns: repeat(2, 1fr); }
  .info__grid { grid-template-columns: 1fr 1fr; }
  .sec__banner { height: 160px; }
  .sheet { left: 50%; right: auto; width: 520px; margin-left: -260px; }
  .cartbar { left: 50%; right: auto; width: 440px; margin-left: -220px; }
}
@media (min-width: 1000px) { .feat { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .bounce, .cartbar, .cartbar.pop, .btn.pop, .modal__box, .hero__mascota, .status.is-open i { animation: none !important; }
  .sheet { transition: opacity .2s; transform: none; opacity: 0; }
  .sheet.is-on { opacity: 1; }
  .fcard:hover .fcard__media img { transform: none; }
}
