:root {
  color-scheme: light;
  --ink: #38261e;
  --ink-strong: #241710;
  --muted: #756b65;
  --paper: #fffdf9;
  --canvas: #f7f1e9;
  --line: #e8ddd1;
  --orange: #ed5c21;
  --orange-dark: #c84513;
  --yellow: #ffcf39;
  --green: #2f7b52;
  --shadow: 0 18px 45px rgb(55 35 24 / 10%);
  --radius: 18px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin-top: 0; }
.shell { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(247 241 233 / 92%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink-strong); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  color: var(--orange);
  font-size: 22px;
  font-weight: 900;
}
.brand strong { display: block; font-size: 16px; letter-spacing: .08em; }
.brand small { display: block; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.site-nav { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 750; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover { color: var(--orange-dark); }
.site-nav .button { color: #fff; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}
.button-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px rgb(237 92 33 / 22%); }
.button-primary:hover { background: var(--orange-dark); }
.button-secondary { background: transparent; border-color: var(--line); color: var(--ink); }
.button-secondary:hover { background: #fff; border-color: var(--orange); color: var(--orange-dark); }
.button-small { min-height: 38px; padding: 8px 14px; font-size: 13px; }

/* Hero */
.hero { padding: 64px 0 54px; }
.hero .shell { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 42px; align-items: center; }
.hero h1 { margin-bottom: 16px; font-size: clamp(38px, 6vw, 68px); line-height: 1.02; letter-spacing: -.035em; }
.hero-copy > p { max-width: 58ch; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 14px; }
.hero-note { font-size: 12px; color: var(--muted); }
.hero-card {
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}
.hero-card h2 { margin-bottom: 4px; font-size: 26px; }
.hero-card ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.hero-card li { padding-top: 8px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; }

/* Sections */
.section { padding: 48px 0; }
.section-head { max-width: 720px; margin-bottom: 24px; }
.section-head h2 { margin-bottom: 6px; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.02em; }
.section-head p { color: var(--muted); }
.menu-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
}
.menu-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.menu-nav a:hover { background: #fff2e8; color: var(--orange-dark); }
.menu-section { margin-top: 34px; }
.menu-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.menu-section-head h3 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.menu-section-head span { color: var(--muted); font-size: 12px; font-weight: 700; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.product {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.product-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.product h4 { margin: 0; font-size: 16px; line-height: 1.25; }
.product-price { flex: 0 0 auto; color: var(--orange-dark); font-size: 13px; font-weight: 850; white-space: nowrap; }
.product-desc { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.product-badge { align-self: flex-start; padding: 3px 8px; border-radius: 999px; background: #f8d7d2; color: #8d2318; font-size: 10px; font-weight: 900; }
.variant-list { margin: 2px 0 0; padding: 0; list-style: none; display: grid; gap: 3px; font-size: 12.5px; }
.variant-list li { display: flex; justify-content: space-between; gap: 10px; color: var(--ink); }
.variant-list strong { font-weight: 800; }
.extras { margin: 3px 0 0; color: var(--muted); font-size: 11.5px; }
.menu-footnote { margin-top: 26px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fffaf4; color: var(--muted); font-size: 12px; }

/* How it works */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.how-step { padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.how-step span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: #fff2e8;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 900;
}
.how-step h3 { margin-bottom: 4px; font-size: 17px; }
.how-step p { margin: 0; color: var(--muted); font-size: 13px; }
.payment-methods {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.payment-methods h3 { margin: 0 0 4px; font-size: 17px; }
.payment-methods p { margin: 0; color: var(--muted); font-size: 13px; }
.payment-logos { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.payment-logos img { display: block; width: auto; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-card { padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.contact-card h3 { margin-bottom: 8px; font-size: 17px; }
.contact-card p, .contact-card a { color: var(--muted); font-size: 14px; }
.contact-card a { font-weight: 700; text-decoration: none; }
.contact-card a:hover { color: var(--orange-dark); }

/* Footer */
.site-footer { margin-top: 30px; padding: 34px 0; background: #2a1710; color: #f3e5da; }
.site-footer .shell { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.site-footer strong { display: block; font-size: 16px; letter-spacing: .08em; }
.site-footer p, .site-footer a { color: #cdb8a9; font-size: 12.5px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; align-content: start; }
.footer-payments { display: flex; align-items: center; gap: 10px; }
.footer-payments span { color: #cdb8a9; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.footer-payments img { display: block; width: auto; }

/* Legal pages */
.legal-body { background: var(--canvas); }
.legal-shell { width: min(920px, calc(100% - 40px)); margin: 0 auto; padding: 26px 0 48px; }
.legal-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.legal-card { padding: 30px 34px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 14px 38px rgb(55 35 24 / 6%); }
.legal-card h1 { margin-bottom: 4px; font-size: clamp(26px, 4vw, 34px); }
.legal-card h2 { margin: 26px 0 8px; font-size: 18px; }
.legal-card p, .legal-card li { font-size: 15px; line-height: 1.65; }
.legal-card ul, .legal-card ol { padding-left: 22px; }
.legal-card a { color: var(--orange-dark); font-weight: 700; }
.legal-meta { color: var(--muted); font-size: 12px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 13px; }
.legal-links a { color: var(--muted); font-weight: 700; text-decoration: underline; }

@media (max-width: 900px) {
  .hero .shell { grid-template-columns: 1fr; gap: 26px; }
  .hero { padding-top: 44px; }
  .hero-card { max-width: 460px; }
  .how-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-nav a:not(.button) { display: none; }
}
@media (max-width: 620px) {
  .shell, .legal-shell { width: min(calc(100% - 24px), var(--max)); }
  .legal-card { padding: 20px 18px; }
  .hero h1 { font-size: 38px; }
  .menu-grid { grid-template-columns: 1fr; }
  .site-footer .shell { flex-direction: column; }
  .payment-methods { flex-direction: column; align-items: flex-start; }
}

/* Alérgenos: iconos circulares de la carta y leyenda. */
.allergen-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}
.allergen-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: contain;
}
.variant-list .allergen-strip { margin-top: 4px; }
.variant-list li > div { min-width: 0; }
.allergen-section {
  margin-top: 34px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf4;
}
.allergen-section-head { max-width: 760px; }
.allergen-section-head h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.01em; }
.allergen-section-head p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.allergen-legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px 12px;
  margin-top: 16px;
}
.allergen-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
}
.allergen-legend-item .allergen-icon { width: 34px; height: 34px; }

/* La cabecera es sticky: deja aire al saltar a una categoría. */
.menu-section, .section { scroll-margin-top: 92px; }
.variant-list .allergen-icon { width: 18px; height: 18px; }
