/* =========================================================
   PediGo — estilos de la tienda online (los colores de cada comercio se aplican desde app.js)
   ========================================================= */
:root {
  --navy: #002762;
  --navy-deep: #001536;
  --navy-ink: #000c22;
  --sky: #40AFFE;
  --sky-soft: #9fd6ff;
  --cheddar: #FFC531;
  --hero-1: #0a3a85;
  --on-sky: #000c22;
  --on-cheddar: #000c22;
  --cream: #F1F6FF;
  --paper: #ffffff;
  --ink: #0b1a33;
  --muted: #5b6b86;
  --line: rgba(0, 39, 98, .12);
  --ok: #2fd27a;
  --danger: #ff5a6e;

  --f-display: 'Outfit', system-ui, sans-serif;
  --f-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow: 0 18px 50px -18px rgba(0, 21, 54, .35);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--f-body); color: var(--ink); background: var(--cream);
  line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1; margin: 0; letter-spacing: -.02em; }
.sky { color: var(--sky); }
.u { background: linear-gradient(transparent 62%, rgba(64, 175, 254, .35) 62%); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--f-display); font-weight: 800; letter-spacing: .01em;
  padding: .95em 1.5em; border-radius: 999px; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--spring), background .2s, box-shadow .25s, color .2s;
}
.btn svg { width: 1.2em; height: 1.2em; stroke-width: 2.6; }
.btn:active { transform: scale(.96); }
.btn--primary { background: var(--sky); color: var(--on-sky); box-shadow: 0 10px 30px -8px rgba(64, 175, 254, .7); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(64, 175, 254, .9); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-deep); }
.btn--light { background: #fff; color: var(--navy); }
.btn--ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--navy); }
.btn--xl { font-size: 1.12rem; padding: 1.05em 1.8em; }
.btn--sm { font-size: .88rem; padding: .7em 1.15em; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.eyebrow {
  font-family: var(--f-display); font-weight: 700; font-size: .78rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--sky); margin: 0 0 .9rem;
}
.eyebrow--dark { color: var(--navy); opacity: .7; }
.section-title { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 900; color: var(--navy); }
.section-title--light { color: #fff; }

/* ---------- barra superior ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 12px;
  padding: 12px var(--gutter); padding-top: max(12px, env(safe-area-inset-top));
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.topbar.is-solid {
  background: rgba(0, 21, 54, .92); box-shadow: 0 8px 30px -12px rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.topbar__logo img { width: 84px; height: auto; }
.status {
  display: inline-flex; align-items: center; gap: 8px; color: #fff;
  font-size: .78rem; font-weight: 600; padding: 6px 12px 6px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); position: relative; }
.status i::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ok); animation: ping 1.8s ease-out infinite; }
.status.is-closed i { background: var(--danger); }
.status.is-closed i::after { border-color: var(--danger); }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.topbar__actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px;
  border-radius: 999px; font-family: var(--f-display); font-weight: 800; font-size: .9rem;
}
.chip svg { width: 18px; height: 18px; }
.chip--points { background: var(--cheddar); color: var(--on-cheddar); }
.chip--points svg { fill: currentColor; stroke: none; }
.chip--points.bump { animation: bump .6s var(--spring); }
@keyframes bump { 40% { transform: scale(1.18) rotate(-4deg); } }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.icon-btn svg { width: 20px; height: 20px; }
@media (max-width: 420px) { .status { font-size: .7rem; padding: 5px 10px 5px 8px; } .topbar__logo img { width: 70px; } #chipPuntos { display: none; } .chip { width: 40px; padding: 0; justify-content: center; } }

/* ---------- portada (simple y configurable desde Panel → Personalización) ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 90% at 80% 10%, var(--hero-1) 0%, var(--navy-deep) 55%, var(--navy-ink) 100%);
  padding: 104px var(--gutter) 64px; min-height: min(86svh, 820px); display: flex; align-items: center;
}
.hero--liso { background: var(--navy); }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__glow { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; background: var(--sky); filter: blur(80px); opacity: .28; top: -20vmax; right: -14vmax; }
.hero--liso .hero__glow { display: none; }
.hero__img { position: absolute; inset: 0; background-size: cover; background-position: center; display: none; }
.hero__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .7)); }
.hero--conimagen .hero__img { display: block; }
.hero--conimagen .hero__glow { display: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } }
@keyframes spinIn { from { transform: scale(0) rotate(-120deg); } }

.hero__inner {
  position: relative; width: 100%; max-width: var(--maxw); margin: 0 auto;
  display: grid; gap: 36px; align-items: center; animation: fade .8s var(--ease) both;
}
@media (min-width: 960px) { .hero--foto .hero__inner { grid-template-columns: 1.15fr .85fr; } }
.hero__logo { display: none; width: clamp(150px, 34vw, 230px); height: auto; margin-bottom: 18px; }
.hero__title { font-size: clamp(2.7rem, 9vw, 5.6rem); font-weight: 900; line-height: .95; margin-bottom: 20px; letter-spacing: -.035em; white-space: pre-line; }
.hero__lead { font-size: clamp(1rem, 2.3vw, 1.18rem); color: rgba(255, 255, 255, .8); max-width: 34em; margin: 0 0 26px; }
.hero__lead strong { color: var(--cheddar); }

/* foto destacada */
.hero__photo { margin: 0; justify-self: center; width: min(100%, 440px); aspect-ratio: 1; border-radius: 34px; overflow: hidden; background: var(--navy);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .1); transform: rotate(2deg); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo[hidden] { display: none; }
@media (max-width: 959px) { .hero--foto .hero__photo { width: min(70%, 260px); justify-self: start; transform: rotate(-2deg); } }
@media (max-width: 600px) { .hero { padding-top: 92px; padding-bottom: 48px; min-height: 0; } .hero--foto .hero__photo { display: none; } }

/* presentación centrada (logo + texto al centro, sin foto) */
.hero--centrado .hero__inner { justify-items: center; text-align: center; }
.hero--centrado .hero__logo { display: block; margin-inline: auto; }
.hero--centrado .hero__lead { margin-inline: auto; }
.hero--centrado .hero__photo { display: none; }
/* presentación con imagen de fondo */
.hero--imagen .hero__inner { justify-items: center; text-align: center; }
.hero--imagen .hero__lead { margin-inline: auto; }
.hero--imagen .hero__photo { display: none; }
.hero--imagen .hero__logo { display: block; margin-inline: auto; }

/* selector de modo */
.modes {
  position: relative; display: inline-grid; grid-template-columns: repeat(2, 1fr);
  padding: 5px; border-radius: 999px; margin-bottom: 20px; width: min(100%, 340px);
  background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}
.modes button {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 46px; border-radius: 999px; font-weight: 700; font-size: .92rem; color: rgba(255, 255, 255, .8);
  transition: color .25s;
}
.modes button svg { width: 18px; height: 18px; }
.modes button[aria-checked="true"] { color: var(--navy-ink); }
.modes__pill {
  position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 2);
  border-radius: 999px; background: #fff; transition: transform .45s var(--spring);
}
.modes--light { background: var(--cream); box-shadow: inset 0 0 0 1px var(--line); }
.modes--light button { color: var(--muted); }
.modes--light button[aria-checked="true"] { color: #fff; }
.modes--light .modes__pill { background: var(--navy); }
.hero__copy > .modes { display: grid; }
.hero--centrado .hero__copy > .modes, .hero--imagen .hero__copy > .modes { margin-inline: auto; }
.hero__copy .hero__cta { display: inline-flex; }

/* logo con pastilla blanca (para logos oscuros) */
.logo-pill { background: #fff; border-radius: 14px; padding: 6px 10px; box-sizing: content-box; }

/* ---------- cinta ---------- */
.ribbon-wrap { overflow: hidden; overflow: clip; padding: 14px 0; margin-top: -30px; position: relative; z-index: 2; }
.ribbon { background: var(--sky); color: var(--on-sky); overflow: hidden; transform: rotate(-1.6deg); margin: 0 -10px; box-shadow: 0 10px 30px -10px rgba(64, 175, 254, .6); }
.ribbon__track { display: flex; gap: 28px; padding: 14px 0; white-space: nowrap; width: max-content; animation: marquee 26s linear infinite; font-family: var(--f-display); font-weight: 900; font-size: clamp(1.1rem, 3vw, 1.6rem); text-transform: uppercase; letter-spacing: .02em; }
.ribbon b { color: #fff; }

/* ---------- racha + billetera ---------- */
.perks { max-width: var(--maxw); margin: 0 auto; padding: 70px var(--gutter) 30px; display: grid; gap: 18px; }
@media (min-width: 900px) { .perks { grid-template-columns: 1.4fr 1fr; } }
.streak { background: #fff; border-radius: var(--r-xl); padding: 28px; box-shadow: var(--shadow); }
.streak h2 { font-size: clamp(1.7rem, 4.6vw, 2.5rem); font-weight: 900; color: var(--navy); margin-bottom: 24px; }
.streak__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; position: relative; }
.streak__steps::before { content: ''; position: absolute; top: 27px; left: 16%; right: 16%; height: 4px; border-radius: 4px; background: var(--cream); }
.streak__steps::after { content: ''; position: absolute; top: 27px; left: 16%; height: 4px; border-radius: 4px; background: var(--sky); width: calc(68% * var(--p, 0)); transition: width 1s var(--ease); }
.streak__steps li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.streak__dot {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px;
  background: var(--cream); color: var(--navy); font-family: var(--f-display); font-weight: 900; font-size: 1.15rem;
  box-shadow: 0 0 0 6px #fff; transition: background .4s, color .4s, transform .4s var(--spring);
}
.streak__steps b { font-family: var(--f-display); font-weight: 800; color: var(--navy); font-size: 1.05rem; }
.streak__steps small { color: var(--muted); font-size: .78rem; }
.streak__steps li.is-done .streak__dot { background: var(--navy); color: #fff; }
.streak__steps li.is-next .streak__dot { background: var(--sky); color: var(--on-sky); transform: scale(1.12); animation: glow 2s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 6px #fff, 0 0 0 12px rgba(64, 175, 254, .25); } }
.streak__note { margin: 22px 0 0; color: var(--muted); font-size: .88rem; }
.streak__note b { color: var(--navy); }

.wallet__card {
  position: relative; overflow: hidden; height: 100%; min-height: 240px; border-radius: var(--r-xl); padding: 26px; color: #fff;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(64, 175, 254, .55), transparent 55%),
    radial-gradient(90% 90% at 0% 100%, rgba(255, 197, 49, .28), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-ink) 100%);
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px;
  transform-style: preserve-3d; transition: transform .4s var(--ease);
}
.wallet__card::after { /* brillo holográfico */
  content: ''; position: absolute; inset: -50%; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .18) 50%, transparent 60%);
  transform: translateX(var(--shine, -30%)); transition: transform .4s var(--ease);
}
.wallet__top { display: flex; justify-content: space-between; align-items: center; }
.wallet__top span { font-family: var(--f-display); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .75rem; color: var(--cheddar); }
.wallet__pts { margin: 8px 0 0; font-family: var(--f-display); font-size: 1.1rem; font-weight: 700; color: rgba(255, 255, 255, .7); }
.wallet__pts b { font-size: 3.4rem; color: #fff; font-weight: 900; letter-spacing: -.03em; }
.wallet__bar { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.wallet__bar i { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, var(--sky), var(--cheddar)); transition: width 1.2s var(--ease); }
.wallet__next { margin: 0 0 6px; color: rgba(255, 255, 255, .8); font-size: .9rem; }
.wallet__card .btn { align-self: flex-start; margin-top: auto; }

/* ---------- carta ---------- */
.menu { max-width: var(--maxw); margin: 0 auto; padding: 50px var(--gutter) 80px; }
.menu__head { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; justify-content: space-between; margin-bottom: 18px; }
.search {
  display: flex; align-items: center; gap: 10px; flex: 1 1 260px; max-width: 420px; height: 52px; padding: 0 18px;
  border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .2s;
}
.search:focus-within { box-shadow: inset 0 0 0 2px var(--sky), 0 0 0 5px rgba(64, 175, 254, .18); }
.search svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search input { border: 0; outline: 0; background: none; width: 100%; height: 100%; font-size: 1rem; }

.cats {
  position: sticky; top: 64px; z-index: 20; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 12px var(--gutter); margin: 0 calc(-1 * var(--gutter)) 10px;
  background: rgba(241, 246, 255, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.cats::-webkit-scrollbar { display: none; }
.cats a {
  flex: none; text-decoration: none; padding: 10px 18px; border-radius: 999px; font-family: var(--f-display); font-weight: 800;
  color: var(--navy); background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); transition: background .25s, color .25s, transform .25s var(--spring);
}
.cats a.is-active { background: var(--navy); color: #fff; box-shadow: none; transform: scale(1.04); }

.menu__cat { margin-top: 34px; }
.menu__cat-title { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.menu__cat-title h3 { font-size: clamp(1.6rem, 5vw, 2.3rem); font-weight: 900; color: var(--navy); }
.menu__cat-title span { color: var(--muted); font-weight: 600; font-size: .9rem; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1080px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card {
  position: relative; display: flex; flex-direction: column; text-align: left; background: #fff; border-radius: var(--r-lg);
  overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(0, 21, 54, .3);
  transition: transform .35s var(--spring), box-shadow .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 1px 0 var(--line), 0 26px 50px -22px rgba(0, 21, 54, .45); }
.card__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--navy); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.08); }
.card__media--bebida { background: linear-gradient(160deg, #eaf4ff, #d6e9ff); }
.card__media--bebida img { object-fit: contain; padding: 10%; }
.ph { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(80% 80% at 30% 20%, #0d4aa3, var(--navy-ink)); }
.ph svg { width: 58%; height: auto; stroke: none; }
.ph--emoji { background: radial-gradient(80% 80% at 30% 20%, var(--hero-1), var(--navy-ink)); }
.ph--emoji span { font-size: clamp(2.6rem, 9vw, 4.4rem); line-height: 1; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .35)); }
.line__img .ph--emoji span, .goal__img .ph--emoji span, .reward__img .ph--emoji span { font-size: 1.7rem; }
/* nombre del comercio cuando no tiene logo */
.logo-texto { font-family: var(--f-display); font-weight: 900; letter-spacing: -.02em; color: #fff; line-height: 1; display: inline-block; }
.topbar__logo .logo-texto { font-size: 1.25rem; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.hero__copy > .logo-texto { display: none; font-size: clamp(1.6rem, 6vw, 2.4rem); margin-bottom: 14px; }
.hero--centrado .hero__copy > .logo-texto, .hero--imagen .hero__copy > .logo-texto { display: block; }
.wallet__top .logo-texto { font-size: 1rem; }
.footer .logo-texto { font-size: 1.6rem; margin-bottom: 12px; }
.badge {
  position: absolute; top: 10px; left: 10px; z-index: 1; padding: 5px 10px; border-radius: 999px;
  font-family: var(--f-display); font-weight: 800; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
  background: var(--cheddar); color: var(--on-cheddar);
}
.badge--soon { background: #fff; color: var(--navy); }
.card__body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__name { font-family: var(--f-display); font-weight: 800; font-size: 1.08rem; color: var(--navy); line-height: 1.1; }
.card__desc { color: var(--muted); font-size: .82rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card__price { font-family: var(--f-display); font-weight: 800; color: var(--ink); font-size: 1.02rem; }
.card__price small { display: block; font-size: .68rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.card__add {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--sky); color: var(--on-sky); transition: transform .3s var(--spring), background .2s;
}
.card__add svg { width: 20px; height: 20px; stroke-width: 3; }
.card:hover .card__add { transform: rotate(90deg) scale(1.08); }
.card[aria-disabled="true"] { opacity: .75; }
.card[aria-disabled="true"] .card__add { background: var(--cream); color: var(--muted); }
.card__qty {
  position: absolute; top: 10px; right: 10px; z-index: 1; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px;
  display: grid; place-items: center; background: var(--navy); color: #fff; font-family: var(--f-display); font-weight: 900; font-size: .9rem;
  box-shadow: 0 0 0 3px #fff; animation: pop .4s var(--spring);
}
@keyframes pop { from { transform: scale(0); } }
@media (max-width: 420px) { .card__body { padding: 12px; } .card__name { font-size: .98rem; } .card__desc { font-size: .76rem; } .card__add { width: 36px; height: 36px; } }
.card[hidden], .menu__cat[hidden], .empty[hidden] { display: none; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- premios ---------- */
.rewards { position: relative; overflow: hidden; background: var(--navy-deep); color: #fff; padding: 90px var(--gutter); }
.rewards::before { content: ''; position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; background: radial-gradient(circle, rgba(64, 175, 254, .25), transparent 60%); top: -30vmax; left: 50%; transform: translateX(-50%); }
.rewards__head { position: relative; max-width: 720px; margin: 0 auto 40px; text-align: center; }
.rewards__head p:last-child { color: rgba(255, 255, 255, .72); margin: 16px auto 0; max-width: 32em; }
.rewards__list { position: relative; max-width: var(--maxw); margin: 0 auto; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.reward {
  position: relative; border-radius: var(--r-lg); padding: 18px; display: flex; gap: 16px; align-items: center;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  transition: transform .35s var(--spring), background .3s;
}
.reward:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .1); }
.reward__img { width: 74px; height: 74px; border-radius: 18px; overflow: hidden; flex: none; background: var(--navy); }
.reward__img img { width: 100%; height: 100%; object-fit: cover; }
.reward__img .ph svg { width: 70%; }
.reward h3 { font-size: 1.1rem; font-weight: 800; }
.reward p { margin: 4px 0 8px; color: rgba(255, 255, 255, .6); font-size: .82rem; }
.reward__pts { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--cheddar); color: var(--on-cheddar); font-family: var(--f-display); font-weight: 900; font-size: .85rem; }
.reward__state { position: absolute; top: 12px; right: 14px; font-size: .72rem; font-weight: 700; color: var(--ok); }
.reward__state--lock { color: rgba(255, 255, 255, .45); }

/* ---------- info ---------- */
.info { max-width: var(--maxw); margin: 0 auto; padding: 80px var(--gutter); }
.info__grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .info__grid { grid-template-columns: 1fr 1fr; } .info__map { grid-column: 1 / -1; } }
.info__block .section-title { font-size: clamp(1.8rem, 5vw, 2.6rem); margin-bottom: 18px; }
.info__addr { font-size: 1.2rem; font-weight: 600; color: var(--navy); margin: 0 0 18px; }
.info__links { display: flex; flex-wrap: wrap; gap: 10px; }
.info__pay { color: var(--muted); margin-top: 18px; }
.hours { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.hours li { display: flex; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); font-weight: 500; }
.hours li:last-child { border: 0; }
.hours li.is-today { background: var(--navy); color: #fff; font-weight: 700; }
.hours li.is-today span:first-child::after { content: ' · hoy'; color: var(--sky); }
.info__map { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); height: 320px; background: #dde8f7; }
.info__map iframe { width: 100%; height: 100%; border: 0; }

.footer { background: var(--navy-ink); color: rgba(255, 255, 255, .6); text-align: center; padding: 50px var(--gutter) 130px; font-size: .85rem; }
.footer img { margin: 0 auto 14px; width: 120px; height: auto; }

/* ---------- barra del carrito ---------- */
.cartbar {
  position: fixed; z-index: 40; left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%); width: min(calc(100% - 32px), 520px); height: 64px; padding: 0 10px 0 10px;
  display: flex; align-items: center; gap: 12px; border-radius: 999px;
  background: var(--navy); color: #fff; box-shadow: 0 20px 50px -12px rgba(0, 21, 54, .7), inset 0 0 0 1px rgba(255, 255, 255, .1);
  animation: slideUp .5s var(--spring);
}
.cartbar[hidden] { display: none; }
@keyframes slideUp { from { transform: translate(-50%, 140%); } }
.cartbar__count { width: 44px; height: 44px; border-radius: 50%; background: var(--sky); color: var(--on-sky); display: grid; place-items: center; font-family: var(--f-display); font-weight: 900; font-size: 1.1rem; }
.cartbar__count.bump { animation: bump .6s var(--spring); }
.cartbar__label { font-family: var(--f-display); font-weight: 800; font-size: 1.05rem; }
.cartbar__total { margin-left: auto; padding: 0 16px; height: 44px; display: grid; place-items: center; border-radius: 999px; background: rgba(255, 255, 255, .1); font-family: var(--f-display); font-weight: 900; }

/* ---------- hoja deslizable ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(0, 12, 34, .6); opacity: 0; transition: opacity .35s; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 94svh; display: flex; flex-direction: column;
  background: #fff; border-radius: 30px 30px 0 0; transform: translateY(105%); transition: transform .5s var(--ease);
  box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .5);
}
.sheet.is-open { pointer-events: auto; }
.sheet.is-open .sheet__backdrop { opacity: 1; }
.sheet.is-open .sheet__panel { transform: none; }
@media (min-width: 760px) {
  .sheet__panel { left: 50%; right: auto; bottom: auto; top: 50%; width: 560px; max-height: 88vh; border-radius: 30px; transform: translate(-50%, -45%) scale(.96); opacity: 0; transition: transform .45s var(--spring), opacity .3s; }
  .sheet.is-open .sheet__panel { transform: translate(-50%, -50%); opacity: 1; }
}
.sheet__close { position: absolute; z-index: 3; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--navy); box-shadow: 0 4px 14px rgba(0, 0, 0, .15); }
.sheet__close svg { width: 20px; height: 20px; stroke-width: 2.6; }
.sheet__body { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet__pad { padding: 26px 22px 22px; }
.sheet__foot { position: sticky; bottom: 0; padding: 14px 22px max(16px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, #fff 22%); }
.sheet h2 { font-size: 1.8rem; font-weight: 900; color: var(--navy); margin-bottom: 6px; padding-right: 44px; }
.sheet .sub { color: var(--muted); margin: 0 0 18px; }

/* producto */
.pd__media { position: relative; aspect-ratio: 16 / 11; background: var(--navy); overflow: hidden; }
.pd__media img { width: 100%; height: 100%; object-fit: cover; animation: zoomIn 1.2s var(--ease); }
.pd__media--bebida { background: linear-gradient(160deg, #eaf4ff, #d6e9ff); }
.pd__media--bebida img { object-fit: contain; padding: 6%; }
@keyframes zoomIn { from { transform: scale(1.15); } }
.label { font-family: var(--f-display); font-weight: 800; color: var(--navy); font-size: 1.05rem; margin: 22px 0 10px; display: flex; justify-content: space-between; align-items: baseline; }
.label small { font-family: var(--f-body); color: var(--muted); font-weight: 600; font-size: .78rem; }
.sizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; }
.sizes .size b { font-size: .9rem; }
.sizes .size span { font-size: .78rem; }
.size {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px 12px;
  border-radius: var(--r-md); background: var(--cream); box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .2s, background .2s, transform .3s var(--spring);
}
.size:hover { transform: translateY(-2px); }
.size[aria-checked="true"] { background: #fff; box-shadow: inset 0 0 0 2.5px var(--sky), 0 10px 24px -14px rgba(64, 175, 254, .9); }
.size b { font-family: var(--f-display); font-weight: 800; color: var(--navy); }
.size span { font-size: .85rem; font-weight: 700; color: var(--muted); }
.size[aria-checked="true"] span { color: var(--navy); }
.stack { height: 64px; display: flex; flex-direction: column-reverse; align-items: center; justify-content: flex-start; }
.stack i { display: block; border-radius: 6px; }
.stack .bun-b { width: 54px; height: 9px; background: #e9a94b; border-radius: 3px 3px 10px 10px; }
.stack .patty { width: 56px; height: 8px; margin-bottom: -1px; background: #5a3020; border-radius: 6px; position: relative; animation: drop .45s var(--spring) both; }
.stack .patty::after { content: ''; position: absolute; left: 3px; right: 3px; top: -3px; height: 4px; background: var(--cheddar); border-radius: 2px 2px 6px 6px; }
.stack .bun-t { width: 54px; height: 16px; background: linear-gradient(#f3b85a, #e09a3a); border-radius: 30px 30px 5px 5px; margin-top: 2px; }
.size[aria-checked="true"] .patty { animation: drop .45s var(--spring) both; }
@keyframes drop { from { transform: translateY(-24px); opacity: 0; } }
.extras { list-style: none; margin: 0; padding: 0; border-radius: var(--r-md); background: var(--cream); overflow: hidden; }
.extra { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); transition: background .2s; }
.extra:last-child { border: 0; }
.extra.is-on { background: rgba(64, 175, 254, .12); }
.extra__nm { font-weight: 600; font-size: .92rem; color: var(--ink); display: flex; flex-direction: column; line-height: 1.25; }
.extra__nm small { color: var(--muted); font-weight: 700; font-size: .78rem; }
.extra .qty--sm { background: #fff; height: 40px; }
.extra:not(.is-on) .qty--sm button { color: var(--navy); }
.extra.is-on .qty--sm output { animation: pop .3s var(--spring); }
.line__extras { font-size: .78rem; color: var(--navy); font-weight: 600; }
.ph--dip { background: radial-gradient(80% 80% at 30% 20%, #2a6fd6, var(--navy)); }
.ph--dip svg { width: 70%; }
.note { width: 100%; min-height: 76px; resize: vertical; padding: 14px 16px; border-radius: var(--r-md); border: 0; background: var(--cream); box-shadow: inset 0 0 0 1.5px var(--line); outline: none; }
.note:focus { box-shadow: inset 0 0 0 2px var(--sky); }
.addrow { display: flex; gap: 10px; align-items: center; }
.qty { display: flex; align-items: center; background: var(--cream); border-radius: 999px; height: 56px; padding: 4px; flex: none; }
.qty button { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--navy); }
.qty button:hover { background: #fff; }
.qty button svg { width: 18px; height: 18px; stroke-width: 3; }
.qty output { min-width: 26px; text-align: center; font-family: var(--f-display); font-weight: 900; font-size: 1.15rem; color: var(--navy); }
.addrow .btn { flex: 1; height: 56px; }
.qty--sm { height: 40px; padding: 2px; }
.qty--sm button { width: 36px; height: 36px; }
.qty--sm output { min-width: 20px; font-size: 1rem; }

/* carrito */
.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.line { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center; }
.line__img { width: 58px; height: 58px; border-radius: 14px; overflow: hidden; background: var(--navy); }
.line__img img { width: 100%; height: 100%; object-fit: cover; }
.line__name { font-family: var(--f-display); font-weight: 800; color: var(--navy); line-height: 1.15; }
.line__meta { font-size: .8rem; color: var(--muted); }
.line__price { font-weight: 700; font-size: .9rem; }
.line--gift .line__name::before { content: '🎁 '; }
.line--gift .line__price { color: var(--ok); }
.redeem { margin-top: 22px; padding: 18px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--navy), var(--navy-ink)); color: #fff; }
.redeem__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.redeem__head b { font-family: var(--f-display); font-size: 1.1rem; }
.redeem__head span { font-family: var(--f-display); font-weight: 900; color: var(--cheddar); }
.redeem__list { display: grid; gap: 8px; }
.redeem__item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .07); text-align: left; width: 100%; transition: background .2s, box-shadow .2s; }
.redeem__item:hover:not([disabled]) { background: rgba(255, 255, 255, .12); }
.redeem__item[aria-pressed="true"] { background: rgba(64, 175, 254, .22); box-shadow: inset 0 0 0 2px var(--sky); }
.redeem__item[disabled] { opacity: .45; cursor: not-allowed; }
.redeem__item .tick { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .4); }
.redeem__item[aria-pressed="true"] .tick { background: var(--sky); box-shadow: none; color: var(--on-sky); }
.redeem__item .tick svg { width: 14px; height: 14px; stroke-width: 3.5; opacity: 0; }
.redeem__item[aria-pressed="true"] .tick svg { opacity: 1; }
.redeem__item .nm { flex: 1; font-weight: 600; font-size: .92rem; }
.redeem__item .pt { font-family: var(--f-display); font-weight: 800; font-size: .85rem; color: var(--cheddar); white-space: nowrap; }
.redeem__hint { margin: 10px 0 0; font-size: .8rem; color: rgba(255, 255, 255, .65); }
.redeem--login { display: flex; gap: 14px; align-items: center; }
.redeem--login p { margin: 0; font-size: .9rem; flex: 1; }

.cupon { margin-top: 16px; }
.cupon .addr .btn { height: 52px; border-radius: 14px; }
.cupon.is-ok { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(47, 210, 122, .12); color: #0f7a42; font-weight: 600; font-size: .9rem; }
.cupon__msg { display: block; margin-top: 6px; color: var(--muted); }
.cupon__msg.is-bad { color: var(--danger); }
.earn small { font-weight: 500; opacity: .85; }
.mp__nivel { margin: 8px 0 0; color: rgba(255, 255, 255, .8); font-size: .85rem; }
.mp__nivel .nivel { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--cheddar); color: var(--on-cheddar); font-weight: 800; margin-right: 6px; }
.invite { margin-top: 20px; padding: 16px; border-radius: var(--r-lg); background: var(--cream); display: grid; gap: 8px; justify-items: start; }
.invite b { font-family: var(--f-display); color: var(--navy); font-size: 1.05rem; }
.invite p { margin: 0; color: var(--muted); font-size: .88rem; }
.totals { margin-top: 20px; display: grid; gap: 8px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-weight: 500; }
.totals div span:last-child { white-space: nowrap; }
.totals .disc { color: var(--ok); font-weight: 700; }
.totals .total { color: var(--navy); font-family: var(--f-display); font-weight: 900; font-size: 1.5rem; padding-top: 8px; border-top: 1.5px dashed var(--line); margin-top: 4px; }
.earn { margin-top: 12px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #fff7dc; color: #6b4d00; font-size: .88rem; font-weight: 600; }
.earn b { color: var(--navy-ink); }
.nudge { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(64, 175, 254, .12); color: var(--navy); font-size: .88rem; font-weight: 600; }

/* formularios */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-weight: 700; font-size: .85rem; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; border: 0; background: var(--cream);
  box-shadow: inset 0 0 0 1.5px var(--line); outline: none; transition: box-shadow .2s; font-size: 1rem;
}
.field textarea { height: auto; min-height: 70px; padding: 14px 16px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: inset 0 0 0 2px var(--sky); }
.field.is-invalid input { box-shadow: inset 0 0 0 2px var(--danger); }
.field small { color: var(--muted); font-size: .78rem; }
.addr2 { display: grid; grid-template-columns: 1fr 96px; gap: 8px; }
.addr2 input { min-width: 0; }
#addrField .row2 .btn { height: 46px; border-radius: 14px; }
.field.is-invalid .addr2 input { box-shadow: inset 0 0 0 2px var(--danger); }
.addr__map.is-picking { cursor: crosshair; box-shadow: inset 0 0 0 3px var(--sky); animation: glowmap 1.6s ease-in-out infinite; }
@keyframes glowmap { 50% { box-shadow: inset 0 0 0 3px var(--sky), 0 0 0 6px rgba(64, 175, 254, .25); } }
.addr { display: flex; gap: 8px; }
.addr input { flex: 1; min-width: 0; }
.addr .btn { height: 52px; border-radius: 14px; }
.linkbtn { justify-self: start; padding: 4px 0; color: var(--navy); font-weight: 700; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; }
.addr__results { display: grid; gap: 6px; }
.addr__results:empty { display: none; }
.addr__res { text-align: left; padding: 12px 14px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-size: .85rem; font-weight: 600; color: var(--ink); }
.addr__res:hover { box-shadow: inset 0 0 0 2px var(--sky); }
.addr__res--none { background: var(--cream); color: var(--navy); }
.addr__map { height: 220px; border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1.5px var(--line); background: #dde8f7; z-index: 0; }
.addr__map[hidden] { display: none; }
#addrHint { font-size: .8rem; color: var(--muted); }
#addrHint b { color: var(--ok); }
#addrHint.is-bad { color: var(--danger); }
#addrHint.is-bad b { color: var(--danger); }
.field.is-invalid .addr input { box-shadow: inset 0 0 0 2px var(--danger); }
.pin span { position: absolute; left: 3px; top: 0; width: 28px; height: 28px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--navy); box-shadow: 0 6px 14px rgba(0, 0, 0, .35), inset 0 0 0 7px var(--navy), inset 0 0 0 14px var(--sky); }
.badge--day { top: auto; bottom: 10px; background: var(--navy); color: #fff; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.seg button { height: 50px; border-radius: 14px; background: var(--cream); font-weight: 700; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); transition: all .2s; }
.seg button[aria-checked="true"] { background: var(--navy); color: #fff; box-shadow: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* confirmación */
.done { text-align: center; padding: 34px 22px 10px; }
.done__check { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: var(--ok); color: #fff; animation: spinIn .7s var(--spring); box-shadow: 0 0 0 10px rgba(47, 210, 122, .15); }
.done__check svg { width: 48px; height: 48px; stroke-width: 3.2; }
.done h2 { padding: 0; }
.done .num { display: inline-block; margin: 6px 0 16px; padding: 6px 14px; border-radius: 999px; background: var(--cream); font-family: var(--f-display); font-weight: 800; color: var(--navy); }
.track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 20px 0; text-align: center; font-size: .72rem; font-weight: 700; color: var(--muted); }
.track span { display: grid; gap: 6px; justify-items: center; }
.track span::before { content: ''; width: 100%; height: 6px; border-radius: 6px; background: var(--cream); }
.track span.on { color: var(--navy); }
.track span.on::before { background: var(--sky); }
.alert { padding: 14px 16px; border-radius: 14px; background: #fff7dc; color: #6b4d00; font-size: .88rem; text-align: left; margin-bottom: 14px; }

/* mis puntos */
.mp__hero { padding: 30px 22px 26px; color: #fff; background: radial-gradient(120% 120% at 100% 0%, rgba(64, 175, 254, .5), transparent 55%), linear-gradient(135deg, var(--navy), var(--navy-ink)); }
.mp__hero h2 { color: #fff; }
.mp__big { font-family: var(--f-display); font-weight: 900; font-size: 4rem; letter-spacing: -.03em; line-height: 1; margin: 14px 0 4px; }
.mp__big small { font-size: 1.1rem; color: rgba(255, 255, 255, .6); }
.goal { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.goal:last-child { border: 0; }
.goal__img { width: 48px; height: 48px; border-radius: 12px; overflow: hidden; background: var(--navy); }
.goal__img img { width: 100%; height: 100%; object-fit: cover; }
.goal b { font-family: var(--f-display); color: var(--navy); }
.goal .bar { height: 7px; border-radius: 7px; background: var(--cream); margin-top: 6px; overflow: hidden; }
.goal .bar i { display: block; height: 100%; border-radius: 7px; background: linear-gradient(90deg, var(--sky), var(--cheddar)); }
.goal small { color: var(--muted); font-size: .78rem; }
.hist { list-style: none; padding: 0; margin: 0; }
.hist li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.hist .plus { color: var(--ok); font-weight: 800; }
.hist .minus { color: var(--danger); font-weight: 800; }
.rules { margin: 0; padding-left: 18px; color: var(--muted); font-size: .88rem; display: grid; gap: 6px; }

/* toast + confetti */
.toast {
  position: fixed; z-index: 80; left: 50%; top: 80px; transform: translate(-50%, -30px); opacity: 0; pointer-events: none;
  padding: 12px 20px; border-radius: 999px; background: var(--navy-ink); color: #fff; font-weight: 700; font-size: .92rem;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6); transition: transform .45s var(--spring), opacity .3s; white-space: nowrap;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.confetti { position: fixed; inset: 0; z-index: 90; pointer-events: none; width: 100%; height: 100%; }

/* vuelo al carrito */
.fly { position: fixed; z-index: 70; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; pointer-events: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .7s cubic-bezier(.5, -0.3, .6, 1), opacity .7s; }
.fly img { width: 100%; height: 100%; object-fit: cover; }

/* aparición al hacer scroll (con red de seguridad) */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.card { animation: cardIn .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(24px); } }
