/*
  La Máscara — alitas y boneless, tema lucha libre.
  Paleta real del menú físico (rojo + azul + papel envejecido + negro),
  estrellas y tipografía de póster americano, no minimalismo corporativo.
*/

:root {
  --cream:      #F3EAD9;
  --paper:      #EAE0C6;
  --red:        #C23A2C;
  --red-bright: #E5503D;
  --red-deep:   #96291D;
  --blue:       #2569A8;
  --blue-deep:  #184B7D;
  --blue-tint:  #DCE7F1;
  --verde:      #25D366;
  --verde-deep: #1B9E4E;

  --ink:        #211C16;
  --ink-mid:    #5B5346;
  --ink-light:  #82786A;

  --line: 2px solid var(--ink);
  --line-soft: 1px solid #DCCFAF;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: var(--ink);
  color: var(--ink);
  font-family: 'Poppins', system-ui, sans-serif;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: 100%;
  max-width: 428px;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  padding-bottom: 90px;
}

body.has-cart-bar .page { padding-bottom: 158px; }

/* — TOP BAR — */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--red);
  border-bottom: var(--line);
}

.topbar-main {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}

.logo-badge {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  display: block;
  object-fit: contain;
  background: #FFFFFF;
  padding: 4px;
}

.topbar-name {
  font-family: 'Anton', Impact, sans-serif;
  font-size: 26px;
  letter-spacing: 0.03em;
  color: var(--cream);
  line-height: 1.05;
  display: block;
}

.topbar-hours {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(243,234,217,0.8);
  display: block;
  margin-top: 3px;
}

.topbar-badge-row {
  padding: 0 16px 12px;
}
.topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: var(--cream);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

/* — NAV — */
.cat-nav {
  counter-reset: catnum;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--blue);
  padding: 0 14px 14px;
  border-bottom: var(--line);
}
.cat-nav::-webkit-scrollbar { display: none; }

.cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink);
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 999px;
  flex-shrink: 0;
  transition: transform 160ms var(--ease-out), background 150ms ease, color 150ms ease;
}
.cat-pill:active { transform: scale(1.08); }
.cat-pill::before {
  counter-increment: catnum;
  content: counter(catnum) ".";
  opacity: 0.55;
  margin-right: 5px;
}
.cat-pill.active {
  background: var(--red);
  color: var(--cream);
  border-color: var(--ink);
}
@media (hover: hover) and (pointer: fine) {
  .cat-pill:hover { background: var(--red); color: var(--cream); transform: scale(1.05); }
}
.cat-pill:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 2px; }

/* — RESEÑA GOOGLE — */
.review-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--blue-tint);
  border-bottom: var(--line-soft);
  text-decoration: none;
  color: var(--ink);
  transition: transform 160ms var(--ease-out), background 150ms ease;
}
.review-banner:active { transform: scale(1.04); }
@media (hover: hover) and (pointer: fine) {
  .review-banner:hover { background: #CFE0EF; transform: scale(1.02); }
}
.review-banner-icon { font-size: 13px; letter-spacing: 1px; flex-shrink: 0; color: #E0A727; }
.review-banner-text { flex: 1; font-size: 12.5px; line-height: 1.3; color: var(--ink-mid); }
.review-banner-text strong { color: var(--red); font-weight: 700; }
.review-banner-arrow { color: var(--blue-deep); font-size: 18px; flex-shrink: 0; }

/* — SECTION HEADER — */
.section {
  margin-top: 0;
  border-bottom: var(--line);
  scroll-margin-top: 172px;
}

.section-head {
  background: var(--cream);
  padding: 16px 18px 10px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-bottom: 3px solid var(--ink);
}

.section-title {
  font-family: 'Anton', Impact, sans-serif;
  font-size: 26px;
  letter-spacing: 0.03em;
  color: var(--red);
  line-height: 1;
}
.section-title::before { content: "★ "; color: var(--blue); font-size: 15px; }

.section-note {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-deep);
}

/* — MINI POSTER DE SECCIÓN — */
.section-hero {
  position: relative;
  background: var(--ink);
  margin: 0 18px 16px;
  border-radius: 14px;
  min-height: 148px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.section-hero-text {
  position: relative;
  z-index: 1;
  padding: 14px 150px 14px 16px;
}
.section-hero-eyebrow {
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent, var(--red-bright));
}
.section-hero-tag {
  font-family: 'Anton', Impact, sans-serif;
  font-size: 17px;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--cream);
  margin-top: 3px;
}
.section-hero img {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  height: 122px;
  width: auto;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,0.5));
}

/* — SUBSECTION — */
.sub-head {
  padding: 9px 18px;
  background: var(--blue-tint);
  border-bottom: var(--line-soft);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-deep);
}

/* — ITEM ROW — */
.item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: var(--line-soft);
  background: var(--cream);
}
.item:last-child { border-bottom: none; }
@media (hover: hover) and (pointer: fine) {
  .item:hover { background: var(--paper); }
}
.item.is-selected { background: var(--blue-tint); }

.item-left { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 10px; }

.item-ic {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--blue-tint);
  border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  margin-top: 1px;
}

.item-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.item-note {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-mid);
  margin-top: 1px;
  line-height: 1.4;
}

.item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.price-solo {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.new-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  background: var(--red);
  color: var(--cream);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  vertical-align: middle;
}

/* — CANTIDAD (carrito) — */
.item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), background 140ms ease, opacity 140ms ease;
}
.qty-btn:disabled { opacity: 0.35; cursor: default; }
.qty-btn.qty-plus { background: var(--red); border-color: var(--ink); color: var(--cream); }
.qty-btn:active:not(:disabled) { transform: scale(1.18); }
@media (hover: hover) and (pointer: fine) {
  .qty-btn:not(:disabled):hover { transform: scale(1.1); }
  .qty-btn.qty-plus:not(:disabled):hover { background: var(--red-deep); }
  .qty-btn.qty-minus:not(:disabled):hover { border-color: var(--blue-deep); color: var(--blue-deep); }
}
.qty-value {
  min-width: 16px;
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 14px;
}

/* — SALSAS — */
.salsas-panel {
  margin: 14px 18px 18px;
  background: var(--blue);
  border-radius: 16px;
  padding: 16px 16px 10px;
}
.salsas-title {
  font-family: 'Anton', Impact, sans-serif;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--cream);
  text-align: center;
  margin-bottom: 10px;
}
.salsas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-flow: column;
  grid-template-rows: repeat(12, auto);
  gap: 8px 14px;
}
.salsa-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  width: 100%;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  text-align: left;
  color: var(--cream);
  line-height: 1.5;
  padding: 0 0 6px;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(243,234,217,0.15);
  cursor: pointer;
  transition: transform 140ms var(--ease-out), color 140ms ease;
}
.salsa-item::before { content: "★"; color: var(--red-bright); font-size: 9px; flex-shrink: 0; }
.salsa-item.is-selected {
  color: var(--red-bright);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--red-bright);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.salsa-item:disabled:not(.is-selected) { opacity: 0.35; cursor: not-allowed; }
.salsa-item:active:not(:disabled) { transform: scale(1.05); }
@media (hover: hover) and (pointer: fine) {
  .salsa-item:not(:disabled):hover { transform: scale(1.03); }
}
.salsa-item:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 2px; }

.salsas-counter {
  margin: 12px 0 0;
  text-align: center;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(243,234,217,0.6);
}

/* — BRAND DIVIDER — */
.brand-divider {
  background: var(--ink);
  padding: 22px 18px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin-top: 0;
  border-top: 4px solid var(--red-bright);
  border-bottom: 4px solid var(--red-bright);
}
.brand-divider img {
  width: 132px;
  height: auto;
  object-fit: contain;
  margin-bottom: 2px;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.45));
}
.brand-divider-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red-bright); }
.brand-divider-name { font-family: 'Anton', Impact, sans-serif; font-size: 28px; letter-spacing: 0.03em; color: var(--cream); line-height: 1; text-align: center; }
.brand-divider-sub { font-size: 10.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(243,234,217,0.55); text-align: center; }

/* — FOOTER (bar fija) — */
.footer {
  margin-top: 0;
  background: var(--ink);
  display: flex;
  flex-direction: column;
}
.footer-top { padding: 20px 18px 16px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand { font-family: 'Anton', Impact, sans-serif; font-size: 26px; letter-spacing: 0.03em; color: var(--red-bright); line-height: 1; }
.footer-tagline { font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-top: 3px; }
.footer-hours { margin-top: 12px; font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.75); line-height: 1.7; }
.footer-contacts { display: flex; flex-direction: column; }
.contact-btn {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  text-decoration: none; font-size: 15px; font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: transform 160ms var(--ease-out), background 150ms ease;
}
.contact-btn:active { transform: scale(1.03); }
@media (hover: hover) and (pointer: fine) {
  .contact-btn:hover { background: rgba(255,255,255,0.05); transform: scale(1.015); }
}
.contact-btn.phone { color: rgba(255,255,255,0.85); }
.contact-btn svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.85; }

.footer-credit {
  margin: 4px 18px 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 11px;
  color: rgba(255,255,255,0.38);
}
.footer-credit a {
  color: rgba(255,255,255,0.6);
  font-weight: 700;
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .footer-credit a:hover { color: var(--red-bright); }
}

/* — CTA FIJO (WhatsApp) — */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  display: flex; align-items: flex-end; justify-content: center; gap: 4px;
  padding: 10px 14px 12px 4px;
  background: var(--ink); border-top: 3px solid var(--red-bright);
}
.cta-pointer {
  flex-shrink: 0;
  height: 62px;
  width: auto;
  display: block;
  margin-bottom: -2px;
}
.sticky-cta a {
  flex: 1; max-width: 340px; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--verde-deep); color: #fff; text-decoration: none; font-weight: 700; font-size: 15px;
  letter-spacing: 0.02em; text-transform: uppercase; padding: 14px; border-radius: 999px;
  border: 2px solid var(--ink);
  transition: transform 160ms var(--ease-out);
}
.sticky-cta a:active { transform: scale(1.06); }
.sticky-cta a svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) {
  .sticky-cta a:hover { transform: scale(1.03); }
}

/* — BARRA DE PEDIDO (carrito) — */
.cart-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 210;
  transform: translateY(120%);
  transition: transform 220ms var(--ease-out);
}
.cart-bar.is-visible { transform: translateY(0); }
.cart-bar-inner {
  width: 100%;
  max-width: 428px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--red-deep);
  border-top: 3px solid var(--ink);
}
.cart-summary {
  color: var(--cream);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.cart-summary strong {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 17px;
  font-weight: 700;
}
.cart-send-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--verde-deep);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms var(--ease-out);
}
.cart-send-btn:active { transform: scale(1.08); }
.cart-send-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
@media (hover: hover) and (pointer: fine) {
  .cart-send-btn:hover { transform: scale(1.04); }
}

/* — TRANSICIONES ESTILO STITCH (fade + llegada de pantalla) — */
.js .section,
.js .brand-divider,
.js .footer {
  opacity: 0;
  transform: translateY(18px);
}
.js .section.is-revealed,
.js .brand-divider.is-revealed,
.js .footer.is-revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 460ms var(--ease-out), transform 460ms var(--ease-out);
}

@keyframes sectionPunch {
  0% { transform: scale(0.98); }
  55% { transform: scale(1.008); }
  100% { transform: scale(1); }
}
.section.is-jumping {
  animation: sectionPunch 380ms var(--ease-out);
  transform-origin: center top;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .js .section, .js .brand-divider, .js .footer { opacity: 1; transform: none; }
}
