/* =====================================================
   Har Picadas — styles.css
   Layout y tipografía base. Los tokens de identidad
   visual (colores, fuentes, radios, sombras) viven en
   themes.css y se aplican vía [data-theme="..."].
===================================================== */

:root {
  /* Tokens propios (no temables) */
  --wa: #25D366;
  --wa-dark: #128C7E;

  /* layout */
  --page-max: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --sec-y: clamp(72px, 10vw, 140px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: 80px; /* sticky bar room on mobile */
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* Typography scale */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
}
h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--accent);
}
.section-title { font-size: clamp(34px, 5.5vw, 72px); text-wrap: balance; }
.kicker {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  margin-bottom: 14px;
}

/* =========== BUTTONS =========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: scale(0.97); }
.btn-lg { padding: 16px 26px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

.btn-ghost-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}

.btn-whatsapp-header { background: var(--ink); color: var(--bg); }
.btn-whatsapp-header:hover { background: var(--wa-dark); }

.wa-icon { display: inline-flex; color: var(--wa); }
.btn-primary .wa-icon { color: var(--wa); }

/* =========== HEADER =========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--rule) 60%, transparent);
}
.header-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.brand-mark {
  display: inline-flex;
  color: var(--accent);
}
.brand-name {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 20px;
  line-height: 1;
}
.brand-serif {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
}
.brand-sans {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.site-nav a {
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
  position: relative;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px; height: 44px;
  margin-left: auto;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

@media (max-width: 880px) {
  .site-nav { display: none; }
  .btn-whatsapp-header { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.is-open .site-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    padding: 20px var(--gutter) 28px;
    border-bottom: 1px solid var(--rule);
    gap: 16px;
  }
  .site-header.is-open .site-nav a { font-size: 18px; color: var(--ink); }
}

/* =========== HERO =========== */
.hero {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) var(--gutter) 0;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-2);
  background: var(--accent-soft);
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--olive);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--olive) 25%, transparent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.55} }

.hero-title {
  font-size: clamp(48px, 9vw, 124px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  text-wrap: balance;
}
.hero-sub {
  max-width: 48ch;
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--ink-2);
  margin: 0 0 32px;
  text-wrap: pretty;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 44px;
}

.hero-meta {
  list-style: none;
  padding: 24px 0 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid var(--rule);
}
.hero-meta li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-meta strong {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  font-style: italic;
  line-height: 1;
}
.hero-meta span {
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-xl);
  overflow: visible;
}
.hero-image {
  width: 100%;
  height: 100%;
  border-radius: var(--r-xl);
  overflow: hidden;
}
.hero-banner-img {
  display: block;
  width: 100%;
  height: 100%;
  /* hero-banner-portrait.svg es 800×1000 (4:5), pensado para el slot.
     Sin object-position hack: el viewBox ya tiene el sol/logo en el
     tercio superior y el patrón llenando el resto. */
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}
.hero-sticker {
  position: absolute;
  bottom: -20px; right: -20px;
  width: 160px; height: 160px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  animation: spin 40s linear infinite;
  color: var(--accent);
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-sticker .star { position: absolute; inset: 0; display:flex; align-items:center; justify-content:center; opacity: .5; }
.hero-sticker .sticker-text {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  font-size: 10px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  animation: spin-reverse 40s linear infinite;
}
@keyframes spin-reverse { to { transform: rotate(-360deg); } }
.sticker-text .ar {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 22px;
  color: var(--accent);
  text-transform: none;
  letter-spacing: 0;
}

/* marquee */
.marquee {
  margin-top: clamp(48px, 7vw, 88px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  padding: 18px 0;
}
.marquee-track {
  display: inline-flex;
  gap: 32px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 3vw, 36px);
  color: var(--ink-2);
  white-space: nowrap;
  animation: marquee 38s linear infinite;
}
.marquee-track span { flex: 0 0 auto; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 4/4; }
  .hero-sticker { width: 120px; height: 120px; bottom: -16px; right: 0; }
}

/* =========== PLACEHOLDERS =========== */
.placeholder {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      oklch(0.88 0.03 70) 0 8px,
      oklch(0.84 0.035 65) 8px 16px);
  border-radius: var(--r-md);
  overflow: hidden;
  color: var(--ink);
}
.placeholder::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 55%, rgba(255,255,255,0.25) 65%, transparent 75%);
  mix-blend-mode: overlay;
  pointer-events: none;
}
.placeholder.placeholder-sq { aspect-ratio: 1; }
.placeholder.placeholder-lg { aspect-ratio: 4/5; min-height: 320px; }

/* =========== ARTE DECORATIVO (reemplaza placeholders de foto) =========== */
.hp-art {
  position: relative;
  display: grid;
  place-items: center;
  color: color-mix(in oklab, var(--accent) 55%, var(--ink-mute));
  overflow: hidden;
}
.hp-art::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 50%, transparent 35%, color-mix(in oklab, var(--accent) 8%, transparent) 70%),
    repeating-linear-gradient(45deg,
      transparent 0 14px,
      color-mix(in oklab, var(--accent) 6%, transparent) 14px 15px),
    repeating-linear-gradient(-45deg,
      transparent 0 14px,
      color-mix(in oklab, var(--accent) 6%, transparent) 14px 15px);
  pointer-events: none;
}
.hp-art-svg {
  position: relative;
  z-index: 1;
  width: 55%; height: auto;
  max-width: 160px;
  opacity: .55;
}
.hp-art--hero .hp-art-svg { width: 46%; max-width: 220px; opacity: .45; }
.hp-art--sq .hp-art-svg { width: 42%; max-width: 80px; opacity: .55; }

/* Local: mapa vacío con dirección y CTA */
.local-map--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(24px, 4vw, 40px);
  background:
    radial-gradient(circle at 50% 35%, color-mix(in oklab, var(--accent) 10%, transparent), transparent 60%),
    repeating-linear-gradient(135deg,
      oklch(0.88 0.03 70) 0 8px,
      oklch(0.84 0.035 65) 8px 16px);
}
.local-map--empty::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 55%, rgba(255,255,255,0.18) 65%, transparent 75%);
  pointer-events: none;
}
.local-map-body {
  position: relative;
  z-index: 1;
  max-width: 320px;
  display: grid;
  gap: 14px;
  justify-items: center;
}
.local-map-body .map-pin {
  position: static;
  transform: none;
}
.local-map-address {
  font-family: var(--font-display, "Instrument Serif", serif);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}

/* Estado vacío para menú y combos */
.hp-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: clamp(40px, 6vw, 72px) 20px;
  color: var(--ink-mute);
  font-family: var(--font-sans);
}
.hp-empty-title {
  font-family: var(--font-display, "Instrument Serif", serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 28px);
  color: var(--ink);
  margin: 0 0 8px;
}
.hp-empty-sub {
  max-width: 40ch;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.5;
}

/* =========== SECTIONS =========== */
.section {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--sec-y) var(--gutter);
}
.section-head {
  max-width: 780px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-sub {
  margin-top: 18px;
  color: var(--ink-2);
  font-size: clamp(16px, 1.8vw, 19px);
  max-width: 60ch;
  text-wrap: pretty;
}

/* =========== FEATURE GRID =========== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}
.feature-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature-card .placeholder-sq { margin-bottom: 4px; }
.feature-card h3 { font-size: clamp(24px, 2.6vw, 30px); }
.feature-card p {
  color: var(--ink-2);
  font-size: 15px;
  margin: 0;
  text-wrap: pretty;
}
.card-cta {
  margin-top: auto;
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.card-cta:hover { color: var(--ink); }

@media (max-width: 800px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .feature-grid { grid-template-columns: 1fr; } }

/* =========== COMBOS =========== */
.section-combos { background: var(--bg-2); max-width: none; padding-left: 0; padding-right: 0; }
.section-combos > .section-head,
.section-combos > .combo-grid { max-width: var(--page-max); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.combo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}
.combo-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 360px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.combo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.combo-card.featured {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.combo-card.featured .combo-price { color: var(--bg); }
.combo-card.featured .combo-desc { color: color-mix(in oklab, var(--bg) 75%, transparent); }
.combo-card.featured::before {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent) 0%, transparent 70%);
  opacity: 0.5;
}
.combo-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.combo-card.featured .combo-tag { background: var(--accent); color: var(--bg); }
.combo-name {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1;
}
.combo-desc {
  color: var(--ink-2);
  font-size: 15px;
  margin: 0;
  text-wrap: pretty;
}
.combo-price {
  font-family: var(--font-display);
  font-size: 44px;
  font-style: italic;
  color: var(--ink);
  line-height: 1;
  margin-top: auto;
}
.combo-price small {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: block;
  margin-bottom: 4px;
}

@media (max-width: 880px) { .combo-grid { grid-template-columns: 1fr; } }

/* =========== HOW =========== */
.how-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 40px);
  counter-reset: step;
}
.how-steps li {
  position: relative;
  padding: 32px 0 0;
  border-top: 1px solid var(--ink);
}
.step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 56px;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 20px;
}
.how-steps h3 { font-size: 26px; margin-bottom: 10px; }
.how-steps p { color: var(--ink-2); margin: 0; font-size: 15px; text-wrap: pretty; }

@media (max-width: 800px) { .how-steps { grid-template-columns: 1fr; } }

/* =========== MENU =========== */
.section-menu { background: var(--bg); }

.menu-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 32px;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  position: sticky;
  top: 70px;
  z-index: 10;
  /* Fondo sólido. Antes era 90% + blur, pero el prefix -webkit faltaba
     y en Safari + algunos Android los items del menú se veían a través
     de los tabs cuando hacías scroll. Con bg sólido es más limpio
     visualmente y no depende de backdrop-filter. */
  background: var(--bg);
  padding-top: 12px;
  /* Sombra suave para separar visualmente los tabs del contenido que
     scrollea por debajo. */
  box-shadow: 0 4px 12px -8px color-mix(in oklab, var(--ink) 25%, transparent);
}
.menu-tabs::-webkit-scrollbar { display: none; }

.menu-tab {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  transition: all .15s;
}
.menu-tab:hover { color: var(--ink); border-color: var(--ink); }
.menu-tab.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.menu-category { margin-bottom: clamp(48px, 7vw, 88px); }
.menu-cat-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 56px);
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.menu-cat-title em { font-style: italic; color: var(--accent); }
.menu-cat-title span.count {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-left: auto;
}

.menu-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px 48px;
}
.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  padding: 20px 0;
  border-bottom: 1px dashed var(--rule);
  align-items: baseline;
}
.menu-item-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.menu-item h4 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.menu-item-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.menu-item-price {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  white-space: nowrap;
}
.menu-item-desc {
  grid-column: 1 / -1;
  color: var(--ink-2);
  font-size: 14px;
  margin: 4px 0 0;
  text-wrap: pretty;
  padding-right: 100px;
}
.menu-item-actions {
  grid-column: 1 / -1;
  margin-top: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.btn-add, .btn-wa-item {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-2);
  transition: all .15s;
}
.btn-add:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-wa-item { color: var(--wa-dark); border-color: var(--wa-dark); }
.btn-wa-item:hover { background: var(--wa-dark); color: white; }
.btn-wa-item-lite {
  opacity: .76;
  font-size: 10px;
  padding: 7px 12px;
}
.qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
}
.qty-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--ink-2);
}
.qty-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.qty-val { min-width: 18px; text-align: center; font-weight: 500; color: var(--ink); }

@media (max-width: 800px) { .menu-list { grid-template-columns: 1fr; } }

/* =========== LOCAL =========== */
.section-local { background: var(--bg-2); max-width: none; padding-left: 0; padding-right: 0; }
.local-grid {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--sec-y) var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.local-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 40px;
  margin-top: 36px;
}
.local-info dt {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.local-info dd {
  margin: 0;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.4;
}
.local-info dd a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.local-info dd small { color: var(--ink-mute); font-size: 13px; }

.local-map {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--r-lg);
  min-height: 320px;
  overflow: hidden;
}
.local-map-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: var(--bg);
}
.local-map.has-map .local-map-body { display: none; }
.local-map.has-map { background: transparent; }
.local-map.has-map::after { display: none; }
.map-pin {
  position: absolute;
  top: 40%; left: 45%;
  color: var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transform: translate(-50%, -100%);
}
.map-pin span {
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.map-pin svg { filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25)); }

@media (max-width: 880px) {
  .local-grid { grid-template-columns: 1fr; }
  .local-info { grid-template-columns: 1fr; gap: 24px; }
}

/* =========== FOOTER =========== */
.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(48px, 7vw, 88px) var(--gutter) 32px;
}
.footer-grid {
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid color-mix(in oklab, var(--bg) 15%, transparent);
}
.site-footer .brand-name,
.site-footer .brand-mark { color: var(--bg); }
.site-footer .brand-mark { color: var(--accent); }
.footer-brand p {
  margin-top: 16px;
  color: color-mix(in oklab, var(--bg) 65%, transparent);
  font-size: 14px;
}
.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: color-mix(in oklab, var(--bg) 55%, transparent);
  margin-bottom: 18px;
}
.footer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-list a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: color-mix(in oklab, var(--bg) 50%, transparent);
  flex-wrap: wrap;
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* =========== FLOATING WA =========== */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
  z-index: 50;
  transition: width .3s cubic-bezier(.2,.8,.2,1);
  overflow: hidden;
}
.wa-float:hover { width: 140px; border-radius: 30px; }
.wa-float-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  margin-left: 0;
  font-weight: 600;
  font-size: 14px;
  transition: max-width .3s, margin-left .3s;
}
.wa-float:hover .wa-float-label { max-width: 80px; margin-left: 6px; }

@media (max-width: 720px) {
  .wa-float { bottom: 84px; }
}

/* =========== STICKY MOBILE BAR =========== */
.sticky-mobile {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: none;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--rule);
  z-index: 45;
}
.sticky-mobile .btn { flex: 1; justify-content: center; }
@media (max-width: 720px) {
  .sticky-mobile { display: flex; }
}

/* =========== TOASTS (sitio público) =========== */
.hp-toast-stack {
  position: fixed;
  right: 22px;
  bottom: 150px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.hp-toast {
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 999px;
  font: 500 13px/1.3 var(--font-sans, system-ui);
  box-shadow: 0 8px 24px -6px rgba(0,0,0,.3), 0 2px 6px -2px rgba(0,0,0,.2);
  animation: hp-toast-in .22s ease-out;
  max-width: 280px;
}
.hp-toast.out { animation: hp-toast-out .28s ease-in forwards; }
@keyframes hp-toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hp-toast-out {
  to { opacity: 0; transform: translateY(-8px); }
}
@media (max-width: 640px) {
  .hp-toast-stack { right: 14px; left: 14px; bottom: 140px; align-items: flex-end; }
}

/* =========== MODAL DE OPCIONES (variantes) =========== */
.hp-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(25,18,12,0.55);
  backdrop-filter: blur(4px);
  z-index: 90;
  display: grid; place-items: center;
  padding: 16px;
  animation: hp-modal-fade .2s ease-out;
}
@keyframes hp-modal-fade { from { opacity: 0; } to { opacity: 1; } }
.hp-modal {
  background: var(--bg);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.3);
  width: min(520px, 100%);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: hp-modal-slide .25s cubic-bezier(.2,1,.2,1);
}
@keyframes hp-modal-slide {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.hp-modal-head {
  padding: 20px 22px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px solid var(--rule);
}
.hp-modal-head .kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.hp-modal-head h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  line-height: 1.1;
  color: var(--ink);
  margin: 0;
}
.hp-modal-close {
  margin-left: auto;
  width: 32px; height: 32px;
  border: 0; background: transparent;
  border-radius: 50%;
  font-size: 22px;
  color: var(--ink-mute);
  cursor: pointer;
  flex-shrink: 0;
}
.hp-modal-close:hover { background: var(--bg-2); color: var(--ink); }
.hp-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 22px 18px;
}
.hp-opt-group {
  border: 0;
  padding: 0;
  margin: 0 0 20px;
}
.hp-opt-group legend {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 0;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.hp-opt-group legend .req {
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: oklch(0.45 0.14 25);
}
.hp-opt-group legend .max {
  font-weight: 400;
  font-size: 11px;
  color: var(--ink-mute);
  margin-left: auto;
}
.hp-opt-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: border-color .12s, background .12s;
}
.hp-opt-choice:hover { border-color: color-mix(in oklab, var(--accent) 35%, var(--rule)); }
.hp-opt-choice.checked {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 8%, transparent);
}
.hp-opt-choice input { accent-color: var(--accent); margin: 0; }
.hp-opt-label { flex: 1; font-size: 14px; color: var(--ink); }
.hp-opt-delta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}
.hp-opt-group.has-error .hp-opt-choice { border-color: oklch(0.8 0.04 25); }
.hp-opt-error {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: oklch(0.48 0.16 25);
}
.hp-modal-foot {
  padding: 16px 22px 20px;
  border-top: 1px solid var(--rule);
  background: var(--bg-2);
}
.hp-opt-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.hp-opt-total span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hp-opt-total strong {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  color: var(--ink);
}
#hp-opt-add:disabled { opacity: .5; cursor: not-allowed; }

/* =========== ORDER DRAWER =========== */
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(25,18,12,0.5);
  backdrop-filter: blur(4px);
  z-index: 60;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.order-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(440px, 100%);
  height: 100dvh;
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  z-index: 70;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  display: flex;
  flex-direction: column;
}
.order-drawer.open { transform: translateX(0); }

.drawer-head {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  border-bottom: 1px solid var(--rule);
}
.drawer-title { font-size: 28px; }
.drawer-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
}
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 24px; }
.drawer-item {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 14px 0;
  border-bottom: 1px dashed var(--rule);
  gap: 4px 12px;
  align-items: center;
}
.drawer-item-name { font-weight: 600; font-size: 15px; display: flex; flex-direction: column; gap: 2px; }
.drawer-item-options {
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.3;
}
.drawer-item-price { font-family: var(--font-display); font-style: italic; font-size: 18px; }
.drawer-item .qty { grid-column: 1 / -1; margin-left: 0; margin-top: 6px; }
.drawer-item .qty-remove {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  background: transparent;
  border: 0;
  padding: 4px;
}
.drawer-item .qty-remove:hover { color: var(--accent); }

.drawer-empty {
  padding: 48px 16px;
  text-align: center;
  color: var(--ink-mute);
}
.drawer-empty h4 {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--ink);
  margin-bottom: 8px;
}

/* Desglose de totales con envío calculado */
.drawer-summary {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: color-mix(in oklab, var(--accent) 4%, transparent);
}
.drawer-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  padding: 3px 0;
  color: var(--ink);
}
.drawer-summary-row strong { font-weight: 600; }
.drawer-mode-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500;
  padding: 7px 13px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 10%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in oklab, var(--accent) 25%, transparent);
  margin-bottom: 14px;
}
.drawer-mode-pill span { font-size: 15px; line-height: 1; }
.drawer-free-bar {
  margin-top: 10px;
  height: 6px;
  background: color-mix(in oklab, var(--ink) 8%, transparent);
  border-radius: 999px;
  overflow: hidden;
}
.drawer-free-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width .3s ease;
}
.drawer-free-hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.4;
}
.drawer-free-hint strong { color: var(--ink); }
.drawer-min-warn {
  margin: 10px 0 0;
  padding: 10px 12px;
  background: color-mix(in oklab, oklch(0.65 0.2 25) 10%, transparent);
  border: 1px solid color-mix(in oklab, oklch(0.65 0.2 25) 35%, transparent);
  border-radius: 8px;
  font-size: 13px;
  color: oklch(0.45 0.16 25);
  line-height: 1.4;
}
.drawer-shipping-note {
  margin: 0;
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.4;
  font-style: italic;
}
/* Botón de enviar deshabilitado por mínimo no alcanzado */
#drawer-send[data-blocked-reason="min-order"] {
  opacity: .6;
  cursor: not-allowed;
}

/* Fila de descuento en el desglose */
.drawer-summary-row--discount span,
.drawer-summary-row--discount strong {
  color: oklch(0.55 0.14 145);
}

/* Cupón: sección entre body y customer */
.drawer-coupon {
  border-top: 1px solid var(--rule);
  flex-shrink: 0;
  padding: 10px 22px;
  background: color-mix(in oklab, var(--accent) 3%, transparent);
}
.drawer-coupon[hidden] { display: none; }
.drawer-coupon-form > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}
.drawer-coupon-form > summary::-webkit-details-marker { display: none; }
.drawer-coupon-form .dc-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.drawer-coupon-form .dc-chev {
  margin-left: auto;
  font-size: 14px;
  color: var(--ink-mute);
  transition: transform .2s;
}
.drawer-coupon-form[open] .dc-chev { transform: rotate(180deg); }
.dc-form-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.dc-form-row input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: white;
  font: inherit;
  color: var(--ink);
  text-transform: uppercase;
}
.dc-form-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent);
}
.dc-feedback {
  margin: 8px 0 4px;
  font-size: 12px;
  line-height: 1.4;
  color: oklch(0.48 0.16 25);
}
.dc-feedback[hidden] { display: none; }

/* Cupón aplicado */
.drawer-coupon-applied {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  background: color-mix(in oklab, oklch(0.55 0.14 145) 10%, white);
  border: 1px solid color-mix(in oklab, oklch(0.55 0.14 145) 30%, transparent);
  border-radius: 10px;
}
.drawer-coupon-applied .dc-badge {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: oklch(0.55 0.14 145);
  color: white;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}
.dc-applied-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.2;
}
.dc-applied-body strong {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.dc-applied-desc {
  font-size: 12px;
  color: var(--ink-mute);
}
.drawer-coupon-applied .dc-remove {
  margin-left: auto;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 50%;
  font-size: 18px;
  color: var(--ink-mute);
  cursor: pointer;
  transition: background .15s;
}
.drawer-coupon-applied .dc-remove:hover {
  background: color-mix(in oklab, var(--ink) 8%, transparent);
  color: var(--ink);
}

.drawer-foot {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--rule);
  background: var(--bg-2);
  flex-shrink: 0;
}
.drawer-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.drawer-total span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); }
.drawer-total strong { font-family: var(--font-display); font-style: italic; font-size: 32px; color: var(--ink); }
.drawer-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--ink-mute);
  text-align: center;
}

/* =========== TWEAKS =========== */
.tweaks-panel {
  position: fixed;
  right: 20px;
  bottom: 90px;
  width: 280px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  z-index: 80;
  font-size: 13px;
}
.tweaks-panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
}
.tweaks-panel header strong {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
#tweaks-close {
  background: transparent;
  border: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--ink);
}
.tweaks-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 14px; }
.tweak-row { display: flex; flex-direction: column; gap: 6px; font-size: 11px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-mono); }
.tweak-row select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--rule);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
}
.swatches { display: flex; gap: 6px; }
.swatch {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
}
.swatch.active { border-color: var(--ink); }

/* density tweaks */
[data-density="tight"] { --sec-y: clamp(48px, 7vw, 96px); }
[data-density="airy"]  { --sec-y: clamp(96px, 12vw, 180px); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
