:root {
  --red: #a20d1a;
  --red-dark: #790812;
  --ink: #1b1b1d;
  --muted: #6b6b70;
  --soft: #f3f3f5;
  --line: #e4e4e7;
  --white: #fff;
  --max: 1080px;
  --radius: 18px;
  --shadow: 0 5px 18px rgba(22, 22, 24, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { margin: 0; padding: 0; scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { min-width: 320px; margin: 0; padding: 0 0 calc(65px + env(safe-area-inset-bottom)); overflow-x: hidden; background: var(--soft); color: var(--ink); font-family: Arial, Helvetica, sans-serif; font-size: 17px; line-height: 1.45; }
main, header, footer, nav, section, div { min-width: 0; }
h1, h2, h3, p, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { margin: 0; font: inherit; }
:focus-visible { outline: 3px solid #f3ba22; outline-offset: 3px; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; transform: translateY(-150%); padding: 10px 14px; background: var(--ink); color: var(--white); }
.skip-link:focus { transform: none; }

.header { position: sticky; z-index: 50; top: 0; min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 14px; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.identity { min-width: 0; display: flex; align-items: center; gap: 9px; text-decoration: none; }
.identity img { flex: 0 0 50px; width: 50px; height: 50px; object-fit: contain; }
.identity__name { min-width: 0; display: flex; flex-direction: column; line-height: 1.08; }
.identity__name strong { max-width: 180px; font-size: 12px; letter-spacing: .015em; text-transform: uppercase; }
.identity__name span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.fair-badge { flex: 0 0 auto; display: flex; flex-direction: column; padding: 7px 8px; background: var(--red); color: var(--white); border-radius: 9px; line-height: 1.05; text-align: center; text-transform: uppercase; }
.fair-badge strong { font-size: 11px; }
.fair-badge span { margin-top: 3px; font-size: 8px; letter-spacing: .06em; }

.order-start { width: min(100%, var(--max)); margin: auto; padding: 20px 14px 14px; }
.location, .eyebrow { margin: 0 0 5px; color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.06; }
h1 { margin-bottom: 15px; font-size: clamp(29px, 8.5vw, 48px); letter-spacing: -.04em; }
.order-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.order-option { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.order-options a { min-height: 88px; display: grid; place-content: center; justify-items: center; gap: 7px; padding: 10px 4px; background: var(--white); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); text-decoration: none; }
.order-options a span { width: 34px; height: 34px; display: grid; place-items: center; background: #fbecee; color: var(--red); border-radius: 50%; font-size: 18px; }
.nav-icon { width: 22px; height: 22px; display: block; }
.order-options a strong { font-size: 16px; }
.order-option--food.is-active { background: var(--red); border-color: var(--red); color: var(--white); }
.order-option--food.is-active span { background: rgba(255,255,255,.18); color: var(--white); }
.order-option--spirits { background: var(--ink) !important; border-color: var(--ink) !important; color: var(--white); }
.order-option--spirits span { background: rgba(255,255,255,.12) !important; color: var(--white) !important; }
.order-option--drink.is-active { border-color: var(--red); box-shadow: 0 0 0 2px rgba(162,13,26,.16); color: var(--red); }
.order-option--spirits.is-active { box-shadow: 0 0 0 3px rgba(162,13,26,.34); }
.provisional { margin: 9px 0 0; color: var(--muted); font-size: 11px; text-align: center; }

.menu-loading, .menu-error { margin: 0 14px 24px; padding: 16px; background: #fff4d6; border: 1px solid #e4bd53; border-radius: 12px; color: #5d4300; font-weight: 700; text-align: center; }

.menu { scroll-margin-top: 68px; padding: 30px 14px 46px; }
.menu--comida, .menu--copas { background: var(--white); }
.menu--bebidas { background: #202023; color: var(--white); }
.menu__header { width: min(100%, var(--max)); margin: auto; display: flex; align-items: end; justify-content: space-between; padding-bottom: 12px; border-bottom: 2px solid currentColor; }
.menu__header h2 { margin: 0; display: flex; align-items: center; gap: 9px; font-size: 36px; letter-spacing: -.04em; }
.section-icon { width: 31px; height: 31px; flex: 0 0 auto; color: var(--red); }
.menu--bebidas .section-icon { color: #ff7581; }
.menu--copas .section-icon { color: var(--ink); }
.menu__header > span { color: #c8c8cc; font-size: 34px; font-weight: 900; line-height: 1; }
.menu--bebidas .eyebrow, .menu--bebidas .product-card__price { color: #ff7581; }
.menu--bebidas .menu__header > span { color: #5c5c61; }
.category-nav { width: min(100%, var(--max)); margin: 12px auto 18px; display: flex; gap: 7px; overflow-x: auto; padding: 2px 0 7px; scrollbar-width: thin; }
.category-nav a { flex: 0 0 auto; min-height: 40px; display: inline-flex; align-items: center; padding: 7px 13px; border: 1px solid #cfcfd3; border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; }
.menu--bebidas .category-nav a { border-color: #55555b; }
.category-nav--food { padding-right: 38px; scroll-padding-inline: 2px 38px; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 32px), transparent 100%); }
.category-nav--food::-webkit-scrollbar { display: none; }
.category-nav--food.is-at-end:not(.is-at-start) { padding-right: 2px; padding-left: 38px; mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 100%); }
.category-nav--food.is-at-start.is-at-end { padding-inline: 0; mask-image: none; }
.category-nav--food a { scroll-snap-align: center; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.category-nav--food a.is-active { background: var(--red); border-color: var(--red); color: var(--white); box-shadow: 0 3px 9px rgba(162,13,26,.17); }
.allergen-info { width: min(100%, var(--max)); margin: 14px auto 0; padding: 0 13px; background: #f7f7f8; border: 1px solid var(--line); border-radius: 12px; }
.allergen-info summary { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink); font-size: 14px; font-weight: 800; cursor: pointer; }
.allergen-info summary::after { color: var(--red); content: "+"; font-size: 22px; line-height: 1; }
.allergen-info[open] summary::after { content: "−"; }
.allergen-legend { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 13px; }
.allergen-badge { --allergen-color: #68686d; display: inline-flex; align-items: center; gap: 6px; color: var(--allergen-color); font-size: 11px; font-weight: 800; line-height: 1; }
.allergen-badge__icon { width: 34px; height: 34px; display: inline-grid; flex: 0 0 34px; place-items: center; background: var(--allergen-color); color: var(--white); border-radius: 50%; }
.allergen-icon { width: 23px; height: 23px; display: block; }
.allergen-badge__label { color: var(--ink); white-space: nowrap; }
.allergen-badge--gluten { --allergen-color: #e56d1a; }
.allergen-badge--crustaceos { --allergen-color: #159bc3; }
.allergen-badge--huevo { --allergen-color: #e9aa00; }
.allergen-badge--pescado { --allergen-color: #123d78; }
.allergen-badge--cacahuete { --allergen-color: #924b2b; }
.allergen-badge--soja { --allergen-color: #3d913e; }
.allergen-badge--leche { --allergen-color: #58a4cf; }
.allergen-badge--frutos_cascara { --allergen-color: #96501f; }
.allergen-badge--apio { --allergen-color: #62a63c; }
.allergen-badge--mostaza { --allergen-color: #d69900; }
.allergen-badge--sesamo { --allergen-color: #9a8069; }
.allergen-badge--sulfitos { --allergen-color: #822274; }
.allergen-badge--altramuces { --allergen-color: #d9a000; }
.allergen-badge--moluscos { --allergen-color: #167f8f; }
.category-list { width: min(100%, var(--max)); margin: auto; display: grid; gap: 28px; }
.category { scroll-margin-top: 78px; }
.category h3 { margin-bottom: 10px; color: var(--red); font-size: 18px; letter-spacing: .04em; text-transform: uppercase; }
.menu--bebidas .category h3 { color: #ff8d97; }
.category ul { display: grid; gap: 9px; }
.product-card { min-height: 76px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 3px 12px rgba(22,22,24,.055); }
.menu--bebidas .product-card { background: #2b2b2f; border-color: #3d3d42; box-shadow: none; }
.product-card--with-media { grid-template-columns: 64px minmax(0, 1fr) auto; }
.product-card img, .product-card__placeholder { width: 64px; height: 64px; overflow: hidden; background: #fff; border: 1px solid #f0f0f2; border-radius: 18px; }
.product-card img { padding: 2px; object-fit: contain; object-position: center; }
.product-card__placeholder { display: grid; place-items: center; color: var(--red); }
.food-placeholder-icon { width: 32px; height: 32px; }
.product-card__info { min-width: 0; }
.product-card__info strong, .product-card__info span { display: block; }
.product-card__info strong { font-size: 16px; line-height: 1.18; }
.product-card__info span { margin-top: 4px; color: var(--muted); font-size: 13px; }
.product-card__allergens { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.product-card__allergens .allergen-badge { display: inline-flex; margin: 0; color: var(--allergen-color); font-size: 11px; }
.product-card__allergens .allergen-badge__icon { width: 23px; height: 23px; display: inline-grid; flex-basis: 23px; margin: 0; color: var(--white); }
.product-card__allergens .allergen-icon { width: 16px; height: 16px; }
.product-card--price-pending { grid-template-columns: minmax(0, 1fr); }
.product-card--with-media.product-card--price-pending { grid-template-columns: 64px minmax(0, 1fr); }
.menu--bebidas .product-card__info span { color: #bcbcc1; }
.product-card__price { align-self: center; min-width: 58px; color: var(--red); font-size: 20px; font-weight: 900; line-height: 1.1; text-align: right; white-space: nowrap; }
.allergen-warning { width: min(100%, var(--max)); margin: 24px auto 0; padding: 14px 15px; background: #fff8e7; border-left: 4px solid #d69b00; border-radius: 8px; color: #4e420f; font-size: 13px; line-height: 1.45; }

.venue, .sponsors, .association { padding: 58px max(18px, calc((100% - var(--max)) / 2)); }
.venue { display: grid; gap: 26px; background: var(--red); color: var(--white); }
.venue .eyebrow { color: #ffd3d7; }
.venue h2, .sponsors h2, .association h2 { margin-bottom: 14px; font-size: clamp(31px, 8vw, 48px); letter-spacing: -.04em; }
.venue p:last-child { max-width: 570px; margin-bottom: 0; }
.venue dl { margin: 0; display: grid; border-top: 1px solid rgba(255,255,255,.28); }
.venue dl div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.28); }
.venue dt { color: #ffd3d7; }
.venue dd { margin: 0; font-weight: 800; text-align: right; }
.sponsors { background: var(--soft); text-align: center; }
.section-intro { max-width: 600px; margin: 0 auto 24px; color: var(--muted); }
.sponsor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.sponsor-grid figure { min-width: 0; margin: 0; display: grid; grid-template-rows: 118px auto; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.sponsor-grid img { width: 100%; height: 118px; padding: 14px; object-fit: contain; background: var(--white); }
.sponsor-grid figcaption { padding: 9px 8px 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1.2; text-align: center; }
.association { display: grid; gap: 22px; background: var(--white); }
.association img { width: 86px; height: 86px; object-fit: contain; }
.association p { max-width: 680px; }
.association small { color: var(--muted); }
.footer { display: grid; gap: 3px; padding: 34px 18px 96px; background: var(--ink); color: var(--white); text-align: center; }
.footer strong { font-size: 13px; }
.footer span { color: #aaaab0; font-size: 11px; }

.bottom-nav { position: fixed; z-index: 45; right: 0; bottom: 0; left: 0; min-height: 65px; display: grid; grid-template-columns: repeat(3, 1fr); padding-bottom: env(safe-area-inset-bottom); background: rgba(255,255,255,.98); border-top: 1px solid var(--line); box-shadow: 0 -5px 18px rgba(0,0,0,.08); }
.bottom-nav a { position: relative; min-height: 64px; display: grid; place-content: center; justify-items: center; color: #6f6f74; font-size: 12px; font-weight: 800; text-decoration: none; }
.bottom-nav a span { line-height: 1; }
.bottom-nav .nav-icon { width: 21px; height: 21px; }
.bottom-nav a::before { position: absolute; top: 0; right: 18%; left: 18%; height: 3px; background: transparent; border-radius: 0 0 3px 3px; content: ""; }
.bottom-nav a.is-active { color: var(--red); }
.bottom-nav a.is-active::before { background: var(--red); }

@media (min-width: 720px) {
  html { scroll-padding-top: 88px; }
  .header { min-height: 78px; padding-inline: max(24px, calc((100% - var(--max)) / 2)); }
  .identity img { width: 60px; height: 60px; flex-basis: 60px; }
  .identity__name strong { max-width: none; font-size: 15px; }
  .identity__name span { font-size: 13px; }
  .fair-badge { padding: 9px 13px; }
  .fair-badge strong { font-size: 13px; }
  .fair-badge span { font-size: 10px; }
  .order-start { padding: 38px 24px 28px; }
  .order-options { gap: 14px; }
  .order-options a { min-height: 112px; }
  .menu { padding: 62px 24px 76px; }
  .category-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 34px 22px; }
  .sponsor-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .venue { grid-template-columns: 1.15fr .85fr; align-items: center; }
  .association { grid-template-columns: 110px 1fr; align-items: center; }
  .bottom-nav { display: none; }
  body { padding-bottom: 0; }
  .footer { padding-bottom: 34px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
