:root {
  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --blue-spark: #3fa9e0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  transition: background .45s ease, color .45s ease;
  -webkit-tap-highlight-color: transparent;
}

body[data-mode="day"] {
  --bg: #faf3e7;
  --surface: #ffffff;
  --ink: #2b1b12;
  --ink-soft: #7a6a58;
  --accent: #c0392b;
  --gold: #b9812c;
  --line: #e8dcc8;
  --switch-bg: rgba(43, 27, 18, .08);
}

body[data-mode="night"] {
  --bg: #0b0b0d;
  --surface: #18140f;
  --ink: #f5efe3;
  --ink-soft: #b3a795;
  --accent: #ff5a1f;
  --gold: #ffc93c;
  --line: #332a22;
  --switch-bg: rgba(255, 255, 255, .08);
}

img { max-width: 100%; display: block; }
button { font: inherit; }
ul { margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  transition: background .45s ease, border-color .45s ease;
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--gold);
  flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: .03em;
  color: var(--accent);
  transition: color .45s ease;
}

.brand-tag {
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.mode-switch {
  position: relative;
  display: flex;
  background: var(--switch-bg);
  border-radius: 999px;
  padding: 4px;
  width: min(280px, 54vw);
  flex-shrink: 0;
}

.mode-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: var(--accent);
  border-radius: 999px;
  transition: transform .4s cubic-bezier(.65, 0, .35, 1), background .45s ease;
  z-index: 1;
}

body[data-mode="night"] .mode-thumb { transform: translateX(100%); }

.mode-btn {
  position: relative;
  z-index: 2;
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 6px;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: .92rem;
  letter-spacing: .02em;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  border-radius: 999px;
  transition: color .3s ease;
  white-space: nowrap;
}

.mode-btn.is-active { color: #fff; }
.mode-icon { font-size: .85em; }

/* ---------- panels ---------- */

main { max-width: 720px; margin: 0 auto; }

.panel { animation: fadeIn .45s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-intro { padding: 30px 20px 6px; text-align: center; }

.eyebrow {
  font-family: var(--font-display);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--gold);
  margin: 0 0 6px;
  transition: color .45s ease;
}

.panel-intro h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 6vw, 2.5rem);
  line-height: 1.05;
  margin: 0 0 8px;
  letter-spacing: .01em;
}

.panel-sub { color: var(--ink-soft); font-size: .88rem; margin: 0 0 4px; }

.divider {
  height: 2px;
  width: 130px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ---------- categories ---------- */

.category {
  padding: 20px 20px 22px;
  border-bottom: 1px solid var(--line);
  transition: border-color .45s ease;
}

.category:last-of-type { border-bottom: none; }

.category h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: .02em;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 4px;
}

.price-tag {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .68rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .03em;
  white-space: nowrap;
}

.category-note { color: var(--ink-soft); font-size: .85rem; margin: 2px 0 12px; }

.extra-note {
  text-align: center;
  font-weight: 600;
  padding: 16px 20px;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

/* item rows with price */

.items { list-style: none; display: flex; flex-direction: column; gap: 0; }

.items li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: .95rem;
}

.items li:last-child { border-bottom: none; }

.items li.highlight { color: var(--accent); font-weight: 700; }

.items .price {
  font-family: var(--font-display);
  letter-spacing: .02em;
  color: var(--accent);
  white-space: nowrap;
  font-size: 1rem;
}

.tag-new {
  display: inline-block;
  font-style: normal;
  font-size: .58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--accent);
  color: #fff;
  padding: 2px 6px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}

/* spotlight (comida rapida top 3) */

.items-spotlight { gap: 10px; }

.items-spotlight li {
  border: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  border-radius: 12px;
  padding: 12px 16px;
  background: var(--surface);
}

.items-spotlight li span:first-child { font-weight: 700; }
.items-spotlight li .price { font-size: 1.1rem; }

/* chip lists (desayunos, arroces, etc) */

.chip-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 6px 13px;
  border-radius: 999px;
  font-size: .85rem;
}

/* poster link */

.poster-link {
  display: block;
  margin: 4px auto 26px;
  padding: 12px 24px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: .85rem;
  border-radius: 999px;
  cursor: pointer;
  width: fit-content;
  transition: background .25s ease, color .25s ease;
}

.poster-link:hover { background: var(--ink); color: var(--bg); }

/* ---------- footer ---------- */

.footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 30px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  transition: background .45s ease, border-color .45s ease;
}

.whatsapp-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #25d366;
  color: #fff;
  padding: 12px 22px;
  border-radius: 16px;
  text-decoration: none;
  width: 100%;
  max-width: 360px;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .28);
}

.whatsapp-cta strong { display: block; font-size: .95rem; }
.whatsapp-cta small { display: block; font-size: .72rem; opacity: .9; }

.social-row { display: flex; gap: 10px; }
.social-row a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 2px; }
.social-row img { width: 40px; height: 40px; transition: transform .2s ease; }
.social-row a:hover img, .social-row a:focus-visible img { transform: translateY(-3px) scale(1.06); }

.footer-note { font-size: .74rem; color: var(--ink-soft); margin: 0; text-align: center; }

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 28px;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.lightbox-close:hover { background: rgba(255, 255, 255, .28); }

/* ---------- motion & a11y ---------- */

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

@media (max-width: 420px) {
  .brand-tag { display: none; }
  .mode-switch { width: 58vw; }
}
