/* =====================================================================
   WHATSAPP WEB DELIVERY · estilos
   Los colores de marca se sobrescriben desde config.js (colores).
   ===================================================================== */
:root {
  --primary: #D9481C;
  --secondary: #F2A33A;
  --dark: #1E1714;
  --light: #FFF7EF;
  --on-primary: #fff;
  --wa: #25D366;
  --wa-dark: #1DA851;

  --surface: #fff;
  --text: #2A201B;
  --muted: #74665D;
  --line: #EEE3D8;
  --danger: #C62828;
  --ok: #1E8E4E;
  --primary-soft: color-mix(in srgb, var(--primary) 12%, var(--surface));
  --primary-strong: color-mix(in srgb, var(--primary) 82%, #000);
  --accent-text: var(--primary);      /* texto en color de marca (precios, etiquetas) */
  --surface-2: #F8F2EC;
  --surface-3: #F2EAE2;
  --field-bg: #FBF7F3;
  --field-focus: #fff;
  --header-bg: rgba(255, 255, 255, .94);
  --chip-active: var(--dark);
  --chip-active-fg: #fff;
  --tag-bg: var(--secondary);
  --tag-fg: var(--dark);
  --cta-bg: var(--dark);
  --footer-bg: #120D0B;
  --ok-soft: #E9F7EF;
  --warn-text: #9A6B00;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px -2px rgba(30, 23, 20, .12);
  --shadow: 0 18px 40px -18px rgba(30, 23, 20, .35);
  --header-h: 68px;
  --catnav-h: 62px;
  --font-head: "Oswald", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

/* ---------- Tema oscuro (config.js → colores.tema: "oscuro") ---------- */
:root[data-tema="oscuro"] {
  color-scheme: dark;
  --surface: #1A1617;
  --surface-2: #221416;
  --surface-3: #2C1C1F;
  --text: #F5F1F1;
  --muted: #A0A0A0;
  --line: #3E2227;
  --danger: #FF5C68;
  --ok: #4CC38A;
  --ok-soft: #12301F;
  --warn-text: #E8B04B;
  --accent-text: #E8505B;
  --field-bg: #141012;
  --field-focus: #0E0B0C;
  --header-bg: rgba(14, 12, 12, .92);
  --chip-active: var(--primary);
  --chip-active-fg: var(--on-primary);
  --tag-bg: var(--primary);
  --tag-fg: var(--on-primary);
  --cta-bg: linear-gradient(120deg, var(--secondary), color-mix(in srgb, var(--secondary) 55%, #000));
  --footer-bg: #0A0A0A;
  --shadow-sm: 0 2px 10px -2px rgba(0, 0, 0, .6);
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .8);
}
:root[data-tema="oscuro"] .info-ico.warn { background: #3A2C10; }
:root[data-tema="oscuro"] .notice-warn { background: #3A1418; }
:root[data-tema="oscuro"] .cart-count { background: var(--text); color: var(--light); }
/* Logo negro (config.js → logoNegro: true): se vuelve blanco sobre fondos oscuros */
:root[data-tema="oscuro"] .logo-img.logo-negro,
.footer .logo-img.logo-negro { filter: invert(1); mix-blend-mode: screen; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.55 var(--font-body);
  color: var(--text);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.lock { overflow: hidden; }
body.has-mcb { padding-bottom: 84px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--dark); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }
.load-error { margin: 0; padding: 14px; background: #fde2e1; color: var(--danger); font-weight: 700; text-align: center; }
.muted { color: var(--muted); }
.center { text-align: center; margin-top: 28px; }

/* ---------- avisos de prueba ---------- */
.demo-ribbon {
  background: repeating-linear-gradient(-45deg, #FFD54F 0 14px, #FFCA28 14px 28px);
  color: #3E2A00; font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-align: center; padding: 6px 12px; text-transform: uppercase;
}
.pending {
  border: 1.5px dashed #E0A800; background: #FFF8E1; color: #6B4E00;
  border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14px; margin-top: 14px;
}

/* ---------- botones ---------- */
.btn {
  --bg: var(--surface); --fg: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 15px; text-decoration: none; letter-spacing: .01em;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-primary { --bg: var(--primary); --fg: var(--on-primary); }
.btn-primary:hover { --bg: var(--primary-strong); }
.btn-light { --bg: #fff; --fg: var(--dark); }
.btn-ghost { --bg: transparent; --fg: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--primary); --fg: var(--primary); }
.btn-wa { --bg: var(--wa); --fg: #fff; }
.btn-wa:hover { --bg: var(--wa-dark); }
.btn-block { width: 100%; }
.btn-grow { flex: 1; min-width: 0; padding-inline: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-btn { background: none; border: 0; padding: 6px 4px; font-weight: 700; font-size: 13px; letter-spacing: .04em; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--text); }
.link-danger { color: var(--danger); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--surface-3); color: var(--text); }
.icon-btn:hover { background: var(--line); }

.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 10px; }
.eyebrow-light { color: var(--accent-text); }
.tag {
  display: inline-block; background: var(--tag-bg); color: var(--tag-fg);
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em;
}
.tag-light { background: rgba(255,255,255,.2); color: #fff; }
.tag-out { background: var(--dark); color: #fff; }

/* ---------- 01 barra superior ---------- */
.topbar { background: var(--dark); color: #F4E9DF; font-size: 13px; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; padding: 6px 0; }
.topbar a { text-decoration: none; }
.tb-spec { font-weight: 700; color: var(--accent-text); }
.tb-msg { flex: 1; text-align: center; transition: opacity .25s; }
.tb-msg.fade { opacity: 0; }
.tb-contact, .tb-contact a, .tb-hours { display: inline-flex; align-items: center; gap: 6px; }
.tb-contact { gap: 14px; }
.tb-contact svg { width: 14px; height: 14px; }

/* ---------- 02 encabezado ---------- */
.header { position: sticky; top: 0; z-index: 60; background: var(--header-bg); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-accent { color: var(--accent-text, var(--primary)); }
.logo-img { height: 54px; width: auto; max-width: 140px; object-fit: contain; mix-blend-mode: multiply; }
.footer .logo-img { height: 72px; max-width: 180px; mix-blend-mode: normal; }
.logo-mark { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: var(--on-primary); font-family: var(--font-head); font-weight: 800; font-size: 17px; }
.mainnav { display: flex; gap: 4px; margin-left: auto; }
.mainnav a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; color: var(--muted); }
.mainnav a:hover { color: var(--text); background: var(--primary-soft); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--primary-soft); color: var(--accent-text); display: grid; place-items: center; }
.cart-btn.bump { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.18); } 60% { transform: scale(.94); } }
.cart-count { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--dark); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--surface); }
.cart-count.has { background: var(--primary); color: var(--on-primary); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; border-radius: 12px; position: relative; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 11px; width: 22px; height: 2.5px; border-radius: 2px; background: var(--text); content: ""; transition: transform .2s, opacity .2s; }
.burger span { top: 21px; }
.burger span::before { left: 0; top: -7px; }
.burger span::after { left: 0; top: 7px; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .burger span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 03 portada ---------- */
.hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--secondary) 55%, transparent) 0, transparent 45%),
    radial-gradient(circle at 10% 90%, color-mix(in srgb, var(--primary) 70%, transparent) 0, transparent 50%),
    linear-gradient(135deg, var(--dark), color-mix(in srgb, var(--dark) 70%, var(--primary)));
}
.hero-bg.has-img { background-size: cover; background-position: center; }
.hero-bg.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,14,11,.85), rgba(20,14,11,.35)); }
.hero-in { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; padding: 88px 0 96px; }
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 800; margin-bottom: 18px; text-wrap: balance; }
.hero .lead { font-size: 18px; color: rgba(255,255,255,.85); max-width: 560px; margin-bottom: 30px; }
.hero .pending { max-width: 560px; }
.hero-promo { background: var(--surface); color: var(--text); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); transform: rotate(1.5deg); }
.hero-promo-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.hero-promo-body { padding: 20px 22px 22px; display: grid; gap: 10px; justify-items: start; }
.hero-promo-body h2 { font-size: 22px; }
/* portada estilo "texto" (sin foto) */
.hero.hero-text { color: var(--text); background: var(--light); border-bottom: 1px solid var(--line); }
.hero-text-in { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 56px 0 44px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; background: color-mix(in srgb, var(--primary) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 45%, transparent); }
.hero-badge svg { color: var(--accent-text, var(--primary)); }
.hero.hero-text h1 { font-size: clamp(44px, 7vw, 84px); line-height: .95; letter-spacing: -.02em; text-transform: uppercase; margin: 0; }
.hero.hero-text .lead { font-size: 17px; color: var(--muted); max-width: 640px; margin: 0; text-wrap: balance; }

.promo-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.promo-price s { color: var(--muted); font-size: 15px; }
.promo-price strong { font-family: var(--font-head); font-size: 26px; color: var(--accent-text); }

/* ---------- 04 categorías ---------- */
.catnav { position: sticky; top: var(--header-h); z-index: 50; background: color-mix(in srgb, var(--light) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.catnav-in { display: flex; align-items: center; gap: 16px; min-height: var(--catnav-h); }
.cat-pills { position: relative; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; padding: 10px 2px; }
.cat-pills::-webkit-scrollbar { display: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; text-decoration: none; font-weight: 600; font-size: 14px; padding: 9px 16px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: background .15s, color .15s; }
.pill:hover { box-shadow: inset 0 0 0 1.5px var(--primary); }
.pill.active { background: var(--chip-active); color: var(--chip-active-fg); box-shadow: none; }
.search { display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 999px; padding: 0 14px; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); width: 260px; flex-shrink: 0; }
.search input { border: 0; background: none; outline: 0; height: 40px; width: 100%; font-size: 14px; }
.search:focus-within { box-shadow: inset 0 0 0 2px var(--primary); }

/* ---------- secciones ---------- */
.section { padding: 80px 0; scroll-margin-top: var(--header-h); }
.section-alt { background: var(--surface); }
.section-head { margin-bottom: 36px; max-width: 720px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 10px; font-size: 17px; }
#carta { scroll-margin-top: calc(var(--header-h) + var(--catnav-h)); }

/* ---------- 05/06 tarjetas ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s, transform .2s; }
.section-alt .card { background: var(--light); box-shadow: none; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-media { position: relative; border: 0; padding: 0; background: var(--surface-3); display: block; width: 100%; }
.card-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media .tag { position: absolute; top: 12px; left: 12px; }
.card-media .tag-out { left: auto; right: 12px; }
.card.is-out .card-media img { filter: grayscale(.85); opacity: .7; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-size: 19px; font-weight: 700; }
.card-desc { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.price { font-family: var(--font-head); font-weight: 800; font-size: 20px; color: var(--accent-text); }
.card-actions { display: flex; gap: 6px; }
.cat-block { scroll-margin-top: calc(var(--header-h) + var(--catnav-h) + 12px); }
.cat-block + .cat-block { margin-top: 52px; }
.cat-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.cat-head h3 { font-size: 26px; display: flex; gap: 10px; align-items: center; }
.cat-head p { color: var(--muted); }
.no-results { text-align: center; padding: 40px 0; color: var(--muted); }

/* ---------- 13 promociones ---------- */
.promo-list { display: grid; gap: 22px; }
.promo {
  display: grid; grid-template-columns: 1.1fr .9fr; border-radius: 28px; overflow: hidden; color: #fff;
  background: radial-gradient(circle at 0 0, color-mix(in srgb, var(--secondary) 60%, transparent), transparent 55%), linear-gradient(120deg, var(--primary), var(--primary-strong));
}
.promo-copy { padding: 44px; display: grid; gap: 14px; align-content: center; justify-items: start; }
.promo-copy h3 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; }
.promo-copy p { color: rgba(255,255,255,.88); font-size: 17px; max-width: 460px; }
.promo-copy small { color: rgba(255,255,255,.75); }
.promo .promo-price strong { color: #fff; font-size: 34px; }
.promo .promo-price s { color: rgba(255,255,255,.7); }
.promo-media img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }

/* ---------- 14 beneficios ---------- */
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.benefit { background: var(--light); border-radius: var(--radius); padding: 26px; }
.benefit-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--surface); font-size: 26px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.benefit h3 { font-size: 20px; margin-bottom: 6px; }
.benefit p { color: var(--muted); font-size: 15px; }

/* ---------- 15 nosotros ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-media img { width: 100%; aspect-ratio: 5/4; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.about-copy h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 18px; }
.about-copy p { color: var(--muted); font-size: 17px; margin-bottom: 14px; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { padding-left: 32px; position: relative; font-weight: 600; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-size: 13px; display: grid; place-items: center; }

/* ---------- 16 opiniones ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.review { margin: 0; background: var(--light); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; }
.review blockquote { margin: 0; font-size: 16px; }
.review figcaption { color: var(--muted); font-size: 14px; }
.stars { color: #F2A900; letter-spacing: 2px; }
.stars span { color: var(--line); }

/* ---------- 17 locales ---------- */
.locations { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.location { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.location-map iframe, .map-empty { width: 100%; height: 220px; border: 0; display: block; }
.map-empty { display: grid; place-items: center; align-content: center; gap: 6px; background: repeating-linear-gradient(45deg, var(--surface-2) 0 12px, var(--surface-3) 12px 24px); color: var(--muted); font-weight: 600; }
.location-body { padding: 20px 22px 22px; display: grid; gap: 12px; justify-items: start; }
.location-body h3 { font-size: 21px; }
.location-body .pending { margin: 0; width: 100%; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.info-list li { display: flex; gap: 10px; align-items: flex-start; }
.info-list svg { flex-shrink: 0; margin-top: 3px; color: var(--accent-text); }
.info-list small { display: block; color: var(--muted); }

/* ---------- 18 llamada final ---------- */
.cta { background: var(--cta-bg); color: #fff; padding: 84px 0; text-align: center; scroll-margin-top: var(--header-h); position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: color-mix(in srgb, var(--primary) 40%, transparent); filter: blur(90px); left: 50%; top: 30%; transform: translateX(-50%); }
.cta-in { position: relative; display: grid; gap: 16px; justify-items: center; }
.cta h2 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 800; }
.cta p { color: rgba(255,255,255,.8); font-size: 18px; max-width: 540px; }
.cta .btn-row { justify-content: center; margin-top: 10px; }

/* ---------- 19 pie ---------- */
.footer { background: var(--footer-bg); color: #D9CCC2; padding: 64px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 36px; }
.footer .brand-name { color: #fff; }
.footer .brand { text-decoration: none; }
.footer-brand p { margin-top: 14px; color: #A99B90; }
.footer h4 { color: #fff; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; font-family: var(--font-body); }
.footer-links { display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-list li { display: flex; gap: 8px; align-items: flex-start; }
.footer-list svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--secondary); }
.footer .pending { background: rgba(255,248,225,.08); color: #F5D88A; border-color: #8A6D1A; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 48px; padding: 22px 0 28px; font-size: 13px; color: #8E8076; }

/* ---------- barra móvil de carrito ---------- */
.mcb { display: none; }

/* ---------- capas: modal y carrito ---------- */
.modal, .drawer { position: fixed; inset: 0; z-index: 100; }
.layer-backdrop { position: absolute; inset: 0; background: rgba(20, 14, 11, .55); opacity: 0; transition: opacity .25s; }
.open > .layer-backdrop { opacity: 1; }

.modal { display: grid; place-items: center; padding: 24px; }
.modal-panel { position: relative; background: var(--surface); border-radius: 26px; box-shadow: var(--shadow); width: 100%; max-height: calc(100dvh - 48px); opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .25s, transform .25s; }
.open > .modal-panel { opacity: 1; transform: none; }
.layer-close { position: absolute; top: 14px; right: 14px; z-index: 3; }

.product-panel { max-width: 940px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; overflow: hidden; }
.pm-media { grid-row: 1 / 3; background: var(--surface-3); }
.pm-media img { width: 100%; height: 100%; object-fit: cover; min-height: 100%; }
.pm-scroll { overflow-y: auto; min-height: 0; }
.pm-body { padding: 30px 28px 10px; display: grid; gap: 10px; }
.pm-body h2 { font-size: 28px; padding-right: 40px; }
.pm-desc { color: var(--muted); }
.pm-price { font-family: var(--font-head); font-size: 24px; font-weight: 800; color: var(--accent-text); }
.pm-foot { display: flex; gap: 12px; align-items: center; padding: 14px 28px 22px; border-top: 1px solid var(--line); background: var(--surface); }
.opt-group { border: 0; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.opt-group legend { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 0 0 8px; font-weight: 700; font-family: var(--font-head); font-size: 17px; }
.opt-group legend small { font-family: var(--font-body); font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface-3); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.opt-group legend small.req { background: var(--primary-soft); color: var(--accent-text); }
.opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; transition: box-shadow .15s, background .15s; }
.opt:hover { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--primary) 50%, var(--line)); }
.opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--primary); background: var(--primary-soft); }
.opt input { accent-color: var(--accent-text); width: 18px; height: 18px; margin: 0; }
.opt-name { flex: 1; font-weight: 500; }
.opt-price { font-weight: 700; font-size: 14px; color: var(--muted); }
.opt-group.invalid .opt { box-shadow: inset 0 0 0 1.5px var(--danger); }
.qty { display: inline-flex; align-items: center; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); background: var(--surface); }
.qty button { width: 32px; height: 32px; border: 0; background: none; border-radius: 50%; font-size: 18px; font-weight: 700; color: var(--accent-text); }
.qty button:hover { background: var(--primary-soft); }
.qty span { min-width: 24px; text-align: center; font-weight: 700; }
.qty-lg button { width: 46px; height: 48px; font-size: 22px; }
.qty-lg span { min-width: 30px; font-size: 17px; }
.notice { padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; }
.notice-warn { background: #FDECEA; color: var(--danger); }

/* formulario */
.field { display: grid; gap: 6px; margin-top: 16px; }
.field label, .field .label { font-weight: 700; font-size: 14px; }
.field label small { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea, .coupon-form input {
  width: 100%; min-height: 48px; border: 0; border-radius: var(--radius-sm); padding: 12px 14px;
  background: var(--field-bg); box-shadow: inset 0 0 0 1.5px var(--line); font-size: 16px; outline: 0;
}
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field select:focus, .field textarea:focus, .coupon-form input:focus { box-shadow: inset 0 0 0 2px var(--primary); background: var(--field-focus); }
.field.invalid input, .field.invalid select { box-shadow: inset 0 0 0 2px var(--danger); }
.err { color: var(--danger); font-size: 13px; font-weight: 600; margin: 0; }
.err:empty { display: none; }
.hint { color: var(--muted); font-size: 13px; }
.hint-warn { color: var(--warn-text); }
.money-input { display: flex; align-items: center; gap: 8px; background: var(--field-bg); border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1.5px var(--line); padding-left: 14px; max-width: 200px; }
.money-input span { font-weight: 700; color: var(--muted); }
.field .money-input input { box-shadow: none; background: none; padding-left: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input, .mode-card input, .radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 15px; box-shadow: inset 0 0 0 1.5px var(--line); background: var(--surface); transition: all .15s; }
.chip:hover span { box-shadow: inset 0 0 0 1.5px var(--primary); }
.chip:has(input:checked) span { background: var(--chip-active); color: var(--chip-active-fg); box-shadow: none; }
.chip:has(input:focus-visible) span, .mode-card:has(input:focus-visible), .radio-card:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; }
.field.invalid .chip span, .field.invalid .mode-card, .field.invalid .radio-card { box-shadow: inset 0 0 0 1.5px var(--danger); }
.mode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.mode-card { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; padding: 16px 10px; border-radius: 16px; cursor: pointer; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); transition: all .15s; color: var(--muted); }
.mode-card strong { color: var(--text); font-size: 14px; letter-spacing: .04em; }
.mode-card small { font-size: 12px; }
.mode-card:hover { box-shadow: inset 0 0 0 1.5px var(--primary); }
.mode-card:has(input:checked) { box-shadow: inset 0 0 0 2.5px var(--primary); background: var(--primary-soft); color: var(--accent-text); }
.cond { padding: 2px 16px 16px; margin-top: 12px; border-radius: 16px; background: var(--field-bg); }
.cond .field input, .cond .field select { background: var(--field-focus); }
.stack { display: grid; gap: 10px; }
.radio-card { position: relative; display: block; cursor: pointer; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.radio-card small { display: block; color: var(--muted); }
.radio-card:has(input:checked) { box-shadow: inset 0 0 0 2px var(--primary); }
.pickup-card { display: flex; gap: 12px; align-items: flex-start; padding-top: 14px; color: var(--accent-text); }
.pickup-card strong { display: block; color: var(--text); }
.pickup-card small { display: block; color: var(--muted); }

/* carrito (panel lateral) */
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(480px, 100%);
  background: var(--surface); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
  box-shadow: -20px 0 60px -20px rgba(0,0,0,.3);
}
.open > .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 22px; font-weight: 800; letter-spacing: .02em; }
.drawer-head .layer-close { position: static; }
.drawer-body { flex: 1; overflow-y: auto; padding: 4px 20px 24px; overscroll-behavior: contain; }
.block { padding-top: 18px; }
.block + .block { border-top: 8px solid var(--surface-2); margin: 18px -20px 0; padding: 18px 20px 0; }
.block-title { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--muted); margin-bottom: 4px; }
.lines { list-style: none; padding: 0; margin: 0; }
.line { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line img { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; }
.line-info { display: grid; gap: 2px; align-content: start; min-width: 0; }
.line-info strong { font-size: 15px; line-height: 1.3; }
.line-info small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.line-note { font-style: italic; }
.line-unit { font-size: 13px; color: var(--muted); }
.line-side { display: grid; justify-items: end; gap: 6px; align-content: start; }
.line-side .link-btn { padding: 0; font-size: 11px; }
.empty { text-align: center; padding: 34px 0 20px; display: grid; gap: 10px; justify-items: center; color: var(--muted); }
.empty span { font-size: 40px; }
.coupon { margin-top: 14px; }
/* Mapa de entrega por zonas */
.map-tools { display: grid; gap: 8px; margin-bottom: 10px; }
.map-search { display: flex; gap: 8px; }
.map-search input { min-height: 40px; padding: 8px 14px; font-size: 15px; }
.map-tools > .btn { justify-self: start; gap: 6px; }
.map-box { position: relative; z-index: 0; height: 280px; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.field.invalid .map-box { box-shadow: inset 0 0 0 2px var(--primary); }
.map-msg { display: grid; place-items: center; height: 100%; margin: 0; padding: 20px; text-align: center; color: var(--muted); font-size: 14px; }
.map-box .leaflet-control-attribution { font-size: 10px; }
.map-pin span { display: block; width: 28px; height: 28px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--primary); border: 3px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.45); }
.map-local { display: grid; place-items: center; border-radius: 50%; background: #111; color: #fff; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.map-local svg { width: 18px; height: 18px; }
.zone-status { margin: 8px 0 0; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; background: var(--surface-2); color: var(--muted); }
.zone-status.ok { background: var(--ok-soft); color: var(--ok); }
.zone-status.out { background: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--accent-text, var(--primary)); font-weight: 600; }
.zone-status small { display: block; margin-top: 2px; opacity: .85; font-weight: 400; }

.coupon-form { display: flex; gap: 8px; }
.coupon-form input { min-height: 40px; padding: 8px 14px; font-size: 15px; text-transform: uppercase; }
.coupon-form input::placeholder { text-transform: none; }
.coupon-on { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--ok-soft); color: var(--ok); font-size: 14px; }
.totals { margin: 14px 0 0; display: grid; gap: 6px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-weight: 600; }
.totals em { font-style: normal; color: var(--warn-text); font-size: 14px; }
.totals .disc dd { color: var(--ok); }
.totals .grand { margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--line); }
.totals .grand dt { color: var(--text); font-weight: 800; letter-spacing: .04em; }
.totals .grand dd { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--accent-text); }
.drawer-foot { padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); display: grid; gap: 8px; box-shadow: 0 -10px 30px -18px rgba(0,0,0,.25); }
.pay-row { display: flex; justify-content: space-between; align-items: baseline; }
.pay-row span { font-weight: 800; font-size: 14px; letter-spacing: .06em; }
.pay-row strong { font-family: var(--font-head); font-size: 26px; color: var(--accent-text); }
.foot-note { color: var(--warn-text); font-size: 13px; margin-top: -4px; }
.foot-note:empty { display: none; }
.drawer-foot .btn-wa { min-height: 54px; font-size: 15px; letter-spacing: .03em; }
.drawer-foot .link-btn { justify-self: center; }
.drawer.is-empty .checkout, .drawer.is-empty .drawer-foot, .drawer.is-empty #cart-totals, .drawer.is-empty .coupon { display: none; }

/* aviso posterior a WhatsApp */
.modal-sm .modal-panel { max-width: 460px; padding: 34px 28px 26px; display: grid; gap: 12px; overflow-y: auto; }
.info-panel h2 { font-size: 24px; padding-right: 30px; }
.info-ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-weight: 800; font-size: 28px; }
.info-ico.wa { background: #E3F9EB; color: var(--wa-dark); }
.info-ico.wa svg { width: 30px; height: 30px; }
.info-ico.warn { background: #FFF3CD; color: var(--warn-text); }
.msg-preview summary { cursor: pointer; font-weight: 700; color: var(--muted); font-size: 14px; }
.msg-pre, .msg-preview pre { white-space: pre-wrap; word-break: break-word; background: var(--surface-2); border-radius: var(--radius-sm); padding: 14px; font-size: 13px; line-height: 1.5; max-height: 280px; overflow: auto; margin: 6px 0 0; font-family: ui-monospace, Consolas, monospace; }
.info-panel code { background: var(--surface-3); padding: 1px 6px; border-radius: 6px; font-size: 14px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 300; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; background: var(--text); color: var(--light); padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); transition: all .25s; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { background: var(--ok); }
.toast.error { background: var(--danger); }
.has-mcb .toast { bottom: 96px; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1080px) {
  .mainnav a { padding: 8px 9px; font-size: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 62px; }
  .burger { display: block; }
  .hide-sm { display: none; }
  .mainnav {
    position: absolute; top: var(--header-h); left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 16px; background: var(--surface);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .nav-open .mainnav { display: flex; }
  .mainnav a { padding: 14px 8px; font-size: 16px; border-radius: 10px; color: var(--text); }
  .header-actions { margin-left: auto; }
  .tb-spec, .tb-hours { display: none; }
  .topbar-in { justify-content: center; text-align: center; flex-wrap: wrap; gap: 4px 14px; }
  .tb-msg { flex: initial; }

  .hero-in { grid-template-columns: 1fr; padding: 56px 0 64px; gap: 36px; }
  .hero-promo { transform: none; display: grid; grid-template-columns: 120px 1fr; }
  .hero-promo-img img { height: 100%; aspect-ratio: auto; }
  .hero-promo-body { padding: 16px; gap: 6px; }
  .hero-promo-body h2 { font-size: 18px; }
  .promo-price strong { font-size: 22px; }

  .catnav-in { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 10px; }
  .search { width: 100%; }
  #carta, .cat-block { scroll-margin-top: calc(var(--header-h) + 118px); }

  .section { padding: 56px 0; }
  .promo { grid-template-columns: 1fr; }
  .promo-media { order: -1; }
  .promo-media img { min-height: 0; aspect-ratio: 16/9; }
  .promo-copy { padding: 28px 24px 30px; }
  .about { grid-template-columns: 1fr; gap: 30px; }

  .mcb {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 70;
    display: flex; align-items: center; gap: 12px; padding: 0 18px; height: 60px; border: 0; border-radius: 18px;
    background: var(--wa); color: #fff; font-weight: 700; font-size: 16px;
    box-shadow: 0 16px 30px -12px color-mix(in srgb, var(--wa-dark) 70%, #000);
  }
  .mcb:active { background: var(--wa-dark); }
  .mcb[hidden] { display: none; }
  .mcb span:nth-child(2) { flex: 1; text-align: left; }
  .mcb-count { min-width: 30px; height: 30px; border-radius: 10px; background: rgba(255,255,255,.22); display: grid; place-items: center; font-size: 14px; }
  .mcb strong { font-family: var(--font-head); font-size: 18px; }

  /* modal de producto como hoja inferior */
  .modal { padding: 0; place-items: end stretch; }
  .modal-panel { border-radius: 24px 24px 0 0; max-height: 94dvh; transform: translateY(100%); }
  .open > .modal-panel { transform: none; }
  .product-panel { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; max-width: none; }
  .pm-media { grid-row: auto; }
  .pm-media img { aspect-ratio: 16/10; height: auto; min-height: 0; max-height: 34dvh; }
  .product-panel { display: flex; flex-direction: column; }
  .pm-scroll { flex: 1; }
  .pm-body { padding: 20px 18px 8px; }
  .pm-body h2 { font-size: 24px; }
  .pm-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .layer-close { background: var(--surface); }
  .modal-sm { place-items: end stretch; }
  .modal-sm .modal-panel { max-width: none; padding: 28px 20px calc(22px + env(safe-area-inset-bottom)); }
}

@media (max-width: 640px) {
  .brand-name { font-size: 17px; }
  .logo-mark { width: 38px; height: 38px; border-radius: 12px; font-size: 15px; }
  .hero h1 { font-size: 36px; }
  .hero .lead { font-size: 16px; }
  .hero .btn-row .btn { flex: 1; }
  .section-head { margin-bottom: 24px; }

  /* tarjetas tipo app: foto a la izquierda */
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .card { flex-direction: row; border-radius: 16px; }
  .card:hover { transform: none; }
  .card-media { width: 118px; flex-shrink: 0; }
  .card-media img { height: 100%; aspect-ratio: auto; min-height: 132px; }
  .card-media .tag { top: 8px; left: 8px; font-size: 10px; padding: 3px 7px; }
  .card-media .tag-out { left: 8px; right: auto; top: auto; bottom: 8px; }
  .card-body { padding: 12px 14px; gap: 4px; min-width: 0; }
  .card-title { font-size: 16px; }
  .card-desc { font-size: 13px; }
  .card-foot { padding-top: 8px; }
  .price { font-size: 17px; }
  .card-actions .btn-ghost { display: none; }

  /* destacados uno debajo de otro, con foto grande */
  .grid-featured { grid-template-columns: 1fr; }
  .grid-featured .card { flex-direction: column; }
  .grid-featured .card-media { width: 100%; }
  .grid-featured .card-media img { aspect-ratio: 4/3; min-height: 0; height: auto; }

  .cat-head h3 { font-size: 22px; }
  .cat-block + .cat-block { margin-top: 36px; }
  .benefits { grid-template-columns: 1fr 1fr; gap: 12px; }
  .benefit { padding: 18px; }
  .benefit h3 { font-size: 16px; }
  .benefit p { font-size: 13px; }
  .locations { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta .btn-row { flex-direction: column; width: 100%; }

  .drawer-panel { width: 100%; }
  .line { grid-template-columns: 48px 1fr auto; gap: 10px; }
  .line img { width: 48px; height: 48px; }
}

@media (max-width: 420px) {
  .hide-xs { display: none; }
  .qty-lg button { width: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* ---------- Mr. Juva, nov 2026: subtítulos de carta, avisos, QR de pago y calificación ---------- */
h1, h2, h3, h4 { letter-spacing: .005em; }
.card-media img.fit, .pm-media img.fit { object-fit: contain; background: #1a1a1a; }
.sub-block + .sub-block { margin-top: 34px; }
.sub-block[hidden] { display: none; }
.sub-head { font-size: 15px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.cat-aviso { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; border-radius: var(--radius); background: var(--secondary); color: #fff; }
.cat-aviso[hidden] { display: none; }
.cat-aviso-kick { display: block; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .85; margin-bottom: 4px; }
.cat-aviso strong { font-family: var(--font-head); font-size: 30px; line-height: 1; text-transform: uppercase; }
.cat-aviso p { margin: 4px 0 0; font-size: 14px; opacity: .92; }
.cat-aviso-price { font-family: var(--font-head); font-size: 34px; font-weight: 700; white-space: nowrap; }
.pago-img { margin: 10px 0 4px; display: flex; justify-content: center; }
.pago-img img { width: min(240px, 70%); border-radius: var(--radius-sm); }
.rating { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 26px; }
.rating strong { font-family: var(--font-head); font-size: 56px; line-height: 1; }
.rating .stars { display: block; font-size: 22px; }
.rating div > span:last-child { color: var(--muted); font-size: 14px; }
@media (max-width: 640px) {
  .cat-aviso { padding: 16px 18px; }
  .cat-aviso strong { font-size: 24px; }
  .cat-aviso-price { font-size: 26px; }
}

.cat-aviso-sm { margin-top: 16px; padding: 14px 20px; }
.cat-aviso-sm strong { font-size: 22px; }
.cat-aviso-sm .cat-aviso-price { font-size: 26px; }
