/*
 * MENÚ LA POPULAR ANTOJERÍA — ESTILOS EDITABLES
 * Modifica aquí colores, tamaños, separaciones y comportamiento responsivo.
 */
:root {
  --ink: #090909;
  --ink-soft: #151515;
  --paper: #e9e8e4;
  --white: #ffffff;
  --ochre: #d99605;
  --ochre-bright: #f0a000;
  --carmine: #9d1727;
  --carmine-bright: #c41d31;
  --muted: #76736d;
  --line: rgba(157, 23, 39, 0.28);
  --radius-card: 22px;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
}

* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--white); font-family: "Avenir Next", "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button { font: inherit; }
.icon { width: 1.25em; height: 1.25em; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
button:focus-visible { outline: 3px solid var(--ochre-bright); outline-offset: 3px; }
[hidden] { display: none !important; }
.landing-shell, .section-shell { min-height: 100vh; background: var(--ink); }

/* PORTADA */
.brand-bar { position: sticky; top: 0; z-index: 40; height: 84px; display: flex; align-items: center; justify-content: center; padding: 10px 20px; background: rgba(5,5,5,.96); border-bottom: 1px solid rgba(217,150,5,.34); backdrop-filter: blur(16px); }
.brand-logo { width: 205px; height: auto; object-fit: contain; }
.brand-logo--compact { width: 118px; }
.landing-content { width: min(100%,760px); margin: 0 auto; padding: 18px 16px 48px; }
.landing-hero { position: relative; min-height: 230px; overflow: hidden; border-radius: 4px 4px 32px 4px; border: 1px solid rgba(255,255,255,.12); box-shadow: var(--shadow); }
.landing-hero img { width: 100%; height: 100%; min-height: 230px; object-fit: cover; object-position: center 62%; }
.landing-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg,transparent 22%,rgba(0,0,0,.82) 100%); }
.landing-hero__copy { position: absolute; inset: auto 20px 19px; }
.landing-hero__copy h1 { margin: 0; font-size: clamp(1.5rem,6.7vw,2.45rem); font-weight: 900; line-height: 1; letter-spacing: -.045em; white-space: nowrap; }
.category-intro { padding: 28px 2px 12px; }
.category-intro p { margin: 0; font-size: .84rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.category-grid { display: grid; gap: 8px; }
.category-link { width: 100%; min-height: 82px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 13px; padding: 12px 14px; color: var(--white); text-align: left; background: linear-gradient(120deg,#f1aa09,#d99605); border: 1px solid rgba(255,201,63,.72); border-radius: 12px; cursor: pointer; transition: transform .18s ease, background .18s ease; }
.category-link:hover { transform: translateX(3px); background: #efa50a; }
.category-link__number { color: var(--ink); font: 700 .72rem/1 Georgia,serif; letter-spacing: .08em; }
.category-link__text { display: flex; flex-direction: column; min-width: 0; }
.category-link__text small { margin-bottom: 2px; color: var(--ink); font-size: .63rem; letter-spacing: .14em; text-transform: uppercase; }
.category-link__text strong { font-size: 1.3rem; line-height: 1.05; letter-spacing: -.02em; text-transform: uppercase; }
.category-link__arrow { color: var(--carmine-bright); font-size: 1.35rem; line-height: 1; }
.landing-note { margin: 24px 0 0; color: #6f6f6f; font-size: .72rem; text-align: center; }

/* ENCABEZADO DE CADA CATEGORÍA */
.section-header { position: sticky; top: 0; z-index: 38; min-height: 78px; display: grid; grid-template-columns: 128px 1fr; align-items: center; padding: 9px max(16px,calc((100vw - 980px)/2)); background: rgba(5,5,5,.97); border-bottom: 1px solid rgba(217,150,5,.38); backdrop-filter: blur(16px); }
.section-header button { display: flex; align-items: center; padding: 0; background: transparent; border: 0; cursor: pointer; }
.section-header > div { min-width: 0; padding-left: 15px; border-left: 1px solid var(--carmine-bright); }
.section-header span { display: block; color: var(--ochre); font-size: .58rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.section-header h1 { overflow: hidden; margin: 2px 0 0; font: 700 clamp(1.38rem,6.5vw,2rem)/1.02 Georgia,"Times New Roman",serif; letter-spacing: -.03em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.section-content { width: min(100%,1020px); min-height: calc(100vh - 78px); margin: 0 auto; padding: 17px 15px 58px; color: var(--ink); background: var(--paper); }
.section-lead { display: flex; align-items: center; gap: 10px; margin: 0 2px 16px; }
.section-lead span { color: var(--carmine); font: 700 1.45rem/1 Georgia,serif; }
.section-lead p { margin: 0; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.menu-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 18px; }

/* TARJETAS DE PRODUCTOS */
.menu-card { overflow: hidden; background: #f7f6f2; border: 1px solid rgba(20,20,20,.08); border-radius: var(--radius-card); box-shadow: 0 10px 28px rgba(18,18,18,.1); scroll-margin-top: 96px; }
.product-image { position: relative; width: 100%; aspect-ratio: 4/3; overflow: hidden; background: #1b1b1b; }
.product-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 58%,rgba(0,0,0,.32)); pointer-events: none; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.menu-card:hover .product-image img { transform: scale(1.025); }
.product-gallery { display: flex; gap: 8px; overflow-x: auto; background: #111; scroll-snap-type: x mandatory; scrollbar-width: none; }
.product-gallery::-webkit-scrollbar { display: none; }
.product-image--slide { flex: 0 0 88%; scroll-snap-align: start; }
.photo-count { position: absolute; z-index: 2; right: 12px; bottom: 10px; padding: 5px 8px; color: var(--white); background: rgba(0,0,0,.68); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; font-size: .66rem; font-weight: 800; }
.menu-card__body { padding: 18px 17px 15px; }
.menu-card__heading { padding-bottom: 14px; border-bottom: 2px solid var(--carmine); }
.menu-card__heading p { margin: 0 0 4px; color: var(--carmine); font-size: .59rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.menu-card__heading h2 { margin: 0; font: 700 clamp(1.35rem,6vw,2rem)/1.02 Georgia,"Times New Roman",serif; letter-spacing: -.03em; }
.menu-card__heading span { display: block; margin-top: 7px; color: #696660; font-size: .75rem; line-height: 1.45; }
.price-columns { display: grid; grid-template-columns: 1fr 54px 63px; gap: 8px; padding: 12px 0 7px; color: #8c8880; font-size: .55rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.price-columns span:nth-child(n+2) { text-align: right; }
.item-list { display: grid; }
.menu-item { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 48px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.menu-item:last-child { border-bottom: 0; }
.menu-item--package { grid-template-columns: minmax(0,1fr) 54px 63px; gap: 8px; }
.menu-item__name { min-width: 0; }
.menu-item__name strong { display: inline; font-size: .86rem; line-height: 1.25; }
.menu-item__name span { display: block; margin-top: 2px; color: #74716c; font-size: .68rem; line-height: 1.3; }
.menu-item__name em { display: inline-block; margin-left: 6px; padding: 2px 5px; color: var(--white); background: var(--carmine); border-radius: 999px; font-size: .5rem; font-style: normal; font-weight: 800; text-transform: uppercase; }
.menu-item__price, .menu-item__package { font: 700 .85rem/1 Georgia,serif; text-align: right; }
.menu-item__package { color: #a56d00; }
.return-button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 24px; padding: 14px 18px; color: var(--white); background: var(--ink-soft); border: 0; border-radius: 12px; cursor: pointer; }

/* NAVEGACIÓN FLOTANTE */
.floating-backdrop { position: fixed; z-index: 70; inset: 0; width: 100%; height: 100%; padding: 0; background: rgba(0,0,0,.42); border: 0; backdrop-filter: blur(2px); }
.floating-nav { position: fixed; z-index: 80; top: 50%; right: 12px; display: grid; gap: 8px; transform: translateY(-50%); }
.floating-nav__controls { display: grid; justify-items: end; gap: 8px; }
.floating-nav__home, .floating-nav__toggle { width: 46px; height: 46px; display: grid; place-items: center; padding: 0; color: var(--white); border-radius: 50%; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.28); }
.floating-nav__home { background: #222; border: 1px solid rgba(255,255,255,.2); }
.floating-nav__toggle { background: var(--carmine); border: 1px solid rgba(255,255,255,.18); }
.floating-nav__toggle .icon { width: 22px; height: 22px; }
.icon-close { display: none; }
.floating-nav.is-open .icon-menu { display: none; }
.floating-nav.is-open .icon-close { display: block; }
.floating-nav__above, .floating-nav__below { position: fixed; right: max(12px,env(safe-area-inset-right)); width: min(245px,calc(100vw - 78px)); display: flex; flex-direction: column; gap: 5px; max-height: calc(50vh - 76px); overflow-y: auto; scrollbar-width: thin; pointer-events: none; opacity: 0; }
.floating-nav__above { bottom: calc(50% + 60px); transform: translateY(12px); }
.floating-nav__below { top: calc(50% + 60px); transform: translateY(-12px); }
.floating-nav.is-open .floating-nav__above, .floating-nav.is-open .floating-nav__below { pointer-events: auto; opacity: 1; transform: translateY(0); transition: opacity .18s ease,transform .24s ease; }
.floating-nav__above button, .floating-nav__below button { min-height: 35px; padding: 7px 12px; color: var(--white); text-align: right; background: rgba(18,18,18,.96); border: 1px solid rgba(255,255,255,.14); border-radius: 9px; cursor: pointer; }
.floating-nav__above button:hover, .floating-nav__below button:hover { color: var(--ochre-bright); border-color: rgba(217,150,5,.55); }

@media (min-width:720px) {
  .brand-bar { height: 96px; }
  .brand-logo { width: 240px; }
  .brand-logo--compact { width: 138px; }
  .landing-content { padding-inline: 20px; }
  .landing-hero, .landing-hero img { min-height: 330px; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .section-header { grid-template-columns: 154px 1fr; min-height: 88px; }
  .section-content { padding: 24px 22px 72px; }
  .menu-grid { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 22px; }
  .return-button { max-width: 420px; margin-inline: auto; }
}

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