/* ============ Lokura Burgers · Landing (retro diner) ============ */
:root {
  --cream:     #f7f0e1;   /* fondo base */
  --cream-2:   #fffdf8;   /* tarjetas / superficies */
  --cream-3:   #efe5d0;   /* alterno sutil */
  --line:      #e4d8be;   /* bordes tostado */
  --text:      #2b2519;   /* texto principal (casi negro cálido) */
  --muted:     #8a7f69;   /* texto secundario */
  --red:       #f53a30;   /* rojo Lokura */
  --red-deep:  #d92d23;
  --navy:      #1c2373;   /* azul Lokura */
  --navy-2:    #2a3193;
  --accent:    #f53a30;   /* alias (JS puede sobreescribir con primaryColor) */
  --accent-ink:#ffffff;
  --wa:        #1faf54;
  --wa-ink:    #ffffff;

  --font-display: "Anton", system-ui, sans-serif;
  --font:         "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 14px 32px -16px rgba(40,30,10,.4);
  --shadow-sm: 0 4px 14px -8px rgba(40,30,10,.35);
  --header-h:  62px;
  --maxw:      1080px;
}

* { box-sizing: border-box; }
/* hidden SIEMPRE oculta, aunque la clase tenga display:flex/grid */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 58px); }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--cream);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: env(safe-area-inset-bottom);
}
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
.muted { color: var(--muted); }

/* checker reutilizable (firma de marca) */
.checker {
  height: 14px;
  background-image:
    linear-gradient(45deg, var(--red) 25%, transparent 25%, transparent 75%, var(--red) 75%),
    linear-gradient(45deg, var(--red) 25%, transparent 25%, transparent 75%, var(--red) 75%);
  background-size: 14px 14px; background-position: 0 0, 7px 7px;
  background-color: #fff;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(247,240,225,.9);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px -12px rgba(40,30,10,.4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--navy); min-width: 0; }
.brand-mark { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-size: 18px; letter-spacing: .4px; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-tag { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cart-pill {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 2px solid var(--navy); border-radius: 12px;
  background: var(--cream-2); color: var(--navy);
  transition: transform .12s, background .2s;
}
.cart-pill:active { transform: scale(.92); }
.cart-pill.bump { animation: bump .35s; }
.cart-count {
  position: absolute; top: -8px; right: -8px;
  min-width: 21px; height: 21px; padding: 0 5px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800;
  background: var(--red); color: #fff;
  border-radius: 999px; border: 2px solid var(--cream);
  transform: scale(0); transition: transform .2s cubic-bezier(.2,1.4,.4,1);
}
.cart-count.show { transform: scale(1); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--cream); overflow: hidden; }
.hero-inner { position: relative; text-align: center; padding: 30px 18px 26px; }
.hero-kicker {
  display: inline-block; margin: 0 0 16px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
  color: #fff; background: var(--navy);
  padding: 7px 15px; border-radius: 999px;
}
.hero-logo { display: block; width: min(440px, 82%); margin: 0 auto; }
.hero-title { margin: 0; font-family: var(--font-display); font-size: clamp(38px, 11vw, 80px); color: var(--red); text-transform: uppercase; }
.hero-sub { margin: 14px auto 0; max-width: 440px; color: var(--navy); font-size: 16px; font-weight: 500; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.chip-meta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--navy);
  background: var(--cream-2); border: 1.5px solid var(--line);
  padding: 7px 13px; border-radius: 999px;
}
.chip-meta svg { color: var(--red); }
.hero-photo { height: clamp(170px, 40vw, 300px); background: url("assets/hero-bg.webp") center 42% / cover no-repeat; }

/* ---------- Category nav ---------- */
.catnav {
  position: sticky; top: var(--header-h); z-index: 30;
  background: rgba(247,240,225,.94);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.catnav-inner { display: flex; gap: 8px; overflow-x: auto; padding: 11px 18px; scrollbar-width: none; -ms-overflow-style: none; }
.catnav-inner::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: 0 0 auto; font-size: 13.5px; font-weight: 700; white-space: nowrap;
  color: var(--navy); background: var(--cream-2); border: 1.5px solid var(--line);
  padding: 8px 15px; border-radius: 999px; transition: all .16s;
}
.cat-chip:hover { border-color: var(--navy); }
.cat-chip.active { color: #fff; background: var(--red); border-color: var(--red); }

/* ---------- Content / sections ---------- */
.content { padding: 26px 0 40px; }
.cat-section { scroll-margin-top: calc(var(--header-h) + 64px); margin-bottom: 38px; }
.cat-title {
  display: flex; align-items: center; gap: 14px; margin: 0 0 16px;
  font-family: var(--font-display); font-size: clamp(22px, 5.5vw, 32px);
  color: var(--navy); text-transform: uppercase; letter-spacing: .5px;
}
.cat-title::after {
  content: ""; flex: 1; height: 12px; border-radius: 2px;
  background-image:
    linear-gradient(45deg, var(--red) 25%, transparent 25%, transparent 75%, var(--red) 75%),
    linear-gradient(45deg, var(--red) 25%, transparent 25%, transparent 75%, var(--red) 75%);
  background-size: 12px 12px; background-position: 0 0, 6px 6px; background-color: var(--cream-3);
}

/* Promos */
.promos { margin-bottom: 38px; }
.promo-grid { display: grid; gap: 13px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.promo-card {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 18px;
  background: var(--cream-2); border: 2px solid var(--red); box-shadow: var(--shadow-sm);
}
.promo-card .badge {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  color: #fff; background: var(--red); padding: 4px 9px; border-radius: 6px; margin-bottom: 10px;
}
.promo-card h3 { margin: 0 0 6px; font-size: 17px; color: var(--navy); }
.promo-card p { margin: 0 0 14px; font-size: 13.5px; color: var(--muted); }
.promo-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.promo-price { font-family: var(--font-display); font-size: 24px; color: var(--red); }

/* Product grid */
.prod-grid { display: grid; gap: 13px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card {
  display: flex; gap: 14px; align-items: stretch;
  background: var(--cream-2); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 12px; box-shadow: var(--shadow-sm); transition: border-color .2s, transform .2s, box-shadow .2s;
  cursor: pointer;
}
.card:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: var(--shadow); }
.card:active { transform: translateY(0); }
.card-img {
  position: relative; flex: 0 0 96px; width: 96px; height: 96px;
  border-radius: var(--radius-sm); overflow: hidden; background: var(--cream-3);
  display: grid; place-items: center;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .ph { font-family: var(--font-display); font-size: 30px; color: var(--line); }
.card.has-img .card-img::after {
  content: "⤢"; position: absolute; right: 5px; bottom: 5px;
  width: 22px; height: 22px; display: grid; place-items: center;
  font-size: 12px; color: #fff; background: rgba(28,35,115,.7); border-radius: 7px; opacity: 0; transition: opacity .2s;
}
.card.has-img:hover .card-img::after { opacity: 1; }
.card-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.card-name { margin: 0; font-size: 15.5px; font-weight: 800; letter-spacing: -.2px; color: var(--navy); }
.card-desc {
  margin: 5px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-family: var(--font-display); font-size: 20px; color: var(--red); letter-spacing: .3px; }

/* Add button + stepper */
.add-btn {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 800;
  color: #fff; background: var(--red); border: none; border-radius: 10px; padding: 10px 15px;
  box-shadow: 0 4px 12px -4px rgba(245,58,48,.6); transition: transform .12s, background .2s;
}
.add-btn:hover { background: var(--red-deep); }
.add-btn:active { transform: scale(.94); }
.stepper { display: inline-flex; align-items: center; gap: 2px; background: var(--cream-3); border: 1.5px solid var(--line); border-radius: 10px; padding: 3px; }
.stepper button {
  width: 30px; height: 30px; border: none; border-radius: 8px; background: transparent;
  color: var(--navy); font-size: 18px; font-weight: 800; display: grid; place-items: center; transition: background .15s;
}
.stepper button:hover { background: var(--cream-2); }
.stepper .qty { min-width: 26px; text-align: center; font-weight: 800; font-size: 14px; color: var(--navy); }

/* ---------- Cart bar ---------- */
.cartbar {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(160%);
  bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 45;
  width: min(560px, calc(100% - 28px));
  display: flex; align-items: center; justify-content: space-between; padding: 14px 18px;
  background: var(--red); color: #fff; border: none; border-radius: 16px;
  box-shadow: 0 14px 34px -10px rgba(245,58,48,.6);
  font-weight: 800; font-size: 15px; transition: transform .3s cubic-bezier(.2,1,.3,1);
}
.cartbar.show { transform: translateX(-50%) translateY(0); }
.cartbar-left { display: flex; align-items: center; gap: 10px; }
.cartbar-count { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; background: #fff; color: var(--red); border-radius: 999px; font-size: 13px; }
.cartbar-total { font-family: var(--font-display); font-size: 19px; letter-spacing: .5px; }

/* ---------- Drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(28,22,10,.5); backdrop-filter: blur(2px); opacity: 0; transition: opacity .25s; }
.drawer-backdrop.show { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; z-index: 55; width: min(420px, 100%); height: 100dvh;
  display: flex; flex-direction: column; background: var(--cream); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2,1,.3,1);
}
.drawer.show { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-family: var(--font-display); font-size: 22px; color: var(--navy); letter-spacing: .4px; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--cream-2); color: var(--navy); font-size: 16px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 18px; }
.cart-empty { text-align: center; color: var(--muted); padding: 50px 10px; }
.cart-empty .em { font-size: 40px; }
.cart-line { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: none; }
.cart-line .ci-img { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: var(--cream-3); display: grid; place-items: center; }
.cart-line .ci-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line .ci-img .ph { font-family: var(--font-display); font-size: 18px; color: var(--line); }
.ci-body { flex: 1; min-width: 0; }
.ci-name { font-weight: 800; font-size: 14px; color: var(--navy); }
.ci-price { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.ci-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 10px; }
.ci-sub { font-family: var(--font-display); font-size: 15px; color: var(--red); }

.drawer-foot { border-top: 1px solid var(--line); padding: 14px 18px calc(16px + env(safe-area-inset-bottom)); background: var(--cream-2); }
.notes-field { display: block; margin-bottom: 12px; }
.notes-field span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.notes-field textarea {
  width: 100%; resize: none; background: var(--cream); color: var(--text);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; font-family: inherit; font-size: 14px;
}
.notes-field textarea:focus { outline: none; border-color: var(--red); }
.total-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 15px; color: var(--navy); }
.total-row strong { font-family: var(--font-display); font-size: 26px; color: var(--red); letter-spacing: .5px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; font-weight: 800; font-size: 16px; border: none; border-radius: 14px; padding: 15px; }
.btn-wa { background: var(--wa); color: #fff; transition: filter .2s, transform .12s; box-shadow: 0 8px 20px -8px rgba(31,175,84,.6); }
.btn-wa:hover { filter: brightness(1.05); }
.btn-wa:active { transform: scale(.98); }
.btn-wa[disabled] { opacity: .45; pointer-events: none; box-shadow: none; }
.btn-ghost { background: var(--cream-2); color: var(--navy); border: 1.5px solid var(--line); width: auto; padding: 12px 20px; }
.checkout-note { margin: 10px 0 0; text-align: center; font-size: 11.5px; color: var(--muted); }

/* ---------- Product detail modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 18px;
  background: rgba(28,22,10,.55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .22s;
}
.modal-backdrop.show { opacity: 1; }
.modal {
  position: relative; width: min(440px, 100%); min-width: 0; max-width: 100%; max-height: 92dvh; overflow: hidden;
  display: flex; flex-direction: column; background: var(--cream-2); border-radius: 22px; box-shadow: 0 24px 60px -20px rgba(28,22,10,.6);
}
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(28,35,115,.75); color: #fff; font-size: 16px; backdrop-filter: blur(4px); }
/* imagen del producto: se ve COMPLETA (no recorta la burger) */
.modal-img { width: 100%; background: var(--cream-3); display: grid; place-items: center; }
.modal-img img { width: 100%; height: auto; max-height: 52dvh; object-fit: contain; display: block; }
.modal-img .ph { font-family: var(--font-display); font-size: 64px; color: var(--line); padding: 50px 0; }
.modal-body { padding: 18px 20px 20px; overflow-y: auto; }
.modal-name { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.3px; color: var(--navy); }
.modal-desc { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; }
.modal-price { font-family: var(--font-display); font-size: 28px; color: var(--red); letter-spacing: .5px; }
.modal-foot .add-btn { font-size: 15px; padding: 12px 20px; }
.modal-foot .stepper { transform: scale(1.05); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #fff; padding: 32px 0 36px; text-align: center; }
.site-footer .footer-logo { width: 72px; height: 72px; object-fit: contain; margin: 0 auto 10px; opacity: .95; }
.site-footer p { margin: 0; }
.site-footer #footerBrand { font-family: var(--font-display); font-size: 22px; letter-spacing: .6px; margin-bottom: 6px; }
.site-footer .muted { color: rgba(255,255,255,.7); font-size: 13px; }
.site-footer .footer-credit { margin-top: 14px; font-size: 12.5px; color: rgba(255,255,255,.55); }
.site-footer .footer-credit a { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 1.5px solid var(--red); padding-bottom: 1px; }
.site-footer .footer-credit a:hover { color: var(--accent-2, #ff7a2f); }

/* ---------- States / skeleton ---------- */
.state { text-align: center; padding: 60px 16px; }
.state-emoji { font-size: 48px; margin-bottom: 8px; }
.state h2 { margin: 0 0 6px; color: var(--navy); }
.state p { color: var(--muted); margin: 0 0 18px; }
.skeleton-grid { display: grid; gap: 13px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); padding-top: 26px; }
.sk-card { height: 122px; border-radius: var(--radius); background: linear-gradient(100deg, var(--cream-2) 30%, var(--cream-3) 50%, var(--cream-2) 70%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }

@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes bump { 0%,100%{transform:scale(1)} 30%{transform:scale(1.18)} }

@media (max-width: 560px) {
  .card-img { flex: 0 0 84px; width: 84px; height: 84px; }
  .cat-title { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
