:root {
  color-scheme: light;
  --ink: #111944;
  --blue: #17257b;
  --blue-bright: #253a9d;
  --red: #b81d36;
  --gold: #ffd033;
  --paper: #fff7e4;
  --milk: #fffdf7;
  --muted: #4c5067;
  --border: #e4d7bf;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.55;
}

body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #0c55d6; outline-offset: 4px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-200%);
  border-radius: 0.5rem;
  padding: 0.7rem 1rem;
  background: var(--milk);
}

.skip:focus { transform: translateY(0); }
.shell { width: min(100% - 3.75rem, 76rem); margin-inline: auto; }

.site-header {
  background: var(--milk);
  border-top: 5px solid transparent;
  border-image: linear-gradient(to right, var(--gold) 50%, var(--blue-bright) 50% 75%, var(--red) 75%) 1;
}

.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
}

.header-inner { min-height: 5rem; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--blue);
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark img {
  width: 3.625rem;
  height: 3.625rem;
  background: #fff;
  border-radius: 0.55rem;
}

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a, .footer-contact, .contact-link { font-weight: 700; text-underline-offset: 0.25em; }
.main-nav a { padding-block: 0.7rem; text-decoration: none; white-space: nowrap; }
.main-nav a:hover, .footer-contact:hover, .contact-link:hover { color: var(--red); text-decoration: underline; }

.button {
  display: inline-flex;
  min-height: 3.125rem;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  border: 1px solid transparent;
  border-radius: 0.7rem;
  padding: 0.65rem 1.1rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.button:hover { transform: translateY(-2px); }
.button span[aria-hidden] { font-size: 1.25em; line-height: 1; }

.external-arrow {
  position: relative;
  display: inline-block;
  flex: none;
  width: 0.76em;
  height: 0.76em;
  vertical-align: 0.01em;
}

.external-arrow::before, .external-arrow::after {
  position: absolute;
  content: "";
}

.external-arrow::before {
  top: 0;
  right: 0;
  width: 0.47em;
  height: 0.47em;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.external-arrow::after {
  top: 0.33em;
  right: -0.07em;
  width: 0.9em;
  height: 2px;
  transform: rotate(-45deg);
  background: currentColor;
}

.button-red { color: #fff; background: var(--red); }
.button-red:hover { background: #94172b; }
.button-gold { color: var(--ink); background: var(--gold); }
.button-gold:hover { background: #ffe376; }

.button-outline {
  color: var(--milk);
  border-color: #a9b3e1;
  background: transparent;
}

.button-outline:hover { background: #293c97; }
.hero :focus-visible, .location > .shell > div:first-child :focus-visible { outline-color: #fff; }

.hero {
  overflow: clip;
  background: radial-gradient(ellipse at 79% 42%, #283d9f, var(--blue) 56%, #151e65);
  color: var(--milk);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.97fr) minmax(0, 1.03fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.75rem);
  min-height: 34rem;
  padding-block: 3.6rem 4.3rem;
}

.eyebrow {
  margin-bottom: 0.9rem;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(3.9rem, 7.75vw, 7.7rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.017em;
}

.hero h1 em { color: var(--gold); font-style: normal; }
.hero-lead { max-width: 25rem; margin-top: 1.45rem; font-size: clamp(1rem, 1.3vw, 1.2rem); }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.55rem; }

.hero-visual { position: relative; margin: 0 0.95rem 0.85rem 0; }

.hero-photo {
  overflow: hidden;
  aspect-ratio: 1.25;
  border: 5px solid var(--milk);
  border-radius: 45% 45% 1.1rem 1.1rem / 30% 30% 1.1rem 1.1rem;
  background: #8e694d;
  box-shadow: 0.8rem 0.8rem 0 var(--gold);
}

.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 50%; }

.hero-price {
  position: absolute;
  bottom: 1.1rem;
  left: -0.95rem;
  display: grid;
  gap: 0.08rem;
  padding: 0.6rem 1.05rem 0.78rem;
  transform: rotate(-4deg);
  border-radius: 0.45rem;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: 0 0.35rem 0.9rem #10174042;
}

.hero-price strong { font: 800 2.85rem/0.93 var(--display); }

.cayena {
  position: absolute;
  right: -1.45rem;
  bottom: -1.85rem;
  width: clamp(5.75rem, 11vw, 9rem);
  height: auto;
  transform: rotate(-12deg);
  filter: drop-shadow(0 0.3rem 0.4rem #0c124063);
  pointer-events: none;
}

.menu { padding-block: clamp(2.7rem, 5.8vw, 5.1rem); }

.section-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.15rem 3rem;
  margin-bottom: 1.6rem;
}

.section-intro h2, .location h2 {
  font-size: clamp(3.2rem, 6.2vw, 5.45rem);
  font-weight: 800;
  letter-spacing: -0.018em;
}

.section-intro h2 { color: var(--blue); }
.section-intro p { max-width: 25rem; color: var(--muted); }

.menu-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
}

.filters { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.filter {
  min-height: 2.85rem;
  padding: 0.48rem 0.88rem;
  border: 1px solid var(--border);
  border-radius: 2rem;
  color: var(--ink);
  background: var(--milk);
  font-weight: 800;
}

.filter:hover { border-color: var(--blue); }
.filter[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); color: var(--milk); }

.search {
  position: relative;
  flex: 0 1 19rem;
}

.search::before {
  position: absolute;
  top: 0.97rem;
  left: 1.05rem;
  width: 0.8rem;
  height: 0.8rem;
  border: 2px solid var(--muted);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.search::after {
  position: absolute;
  top: 1.72rem;
  left: 1.68rem;
  width: 0.38rem;
  height: 2px;
  transform: rotate(45deg);
  background: var(--muted);
  content: "";
  pointer-events: none;
}

.search input {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.45rem 0.85rem 0.45rem 2.35rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--milk);
  color: var(--ink);
}

.search input::placeholder { color: var(--muted); }
.empty-results { padding: 2rem 0; }
.empty-results p { margin-bottom: 0.7rem; }

.menu-group { margin-top: clamp(1.7rem, 3.5vw, 3.15rem); }

.menu-group h3 {
  margin-bottom: 0.95rem;
  color: var(--blue);
  font-size: clamp(2.35rem, 4.5vw, 3.5rem);
  font-weight: 800;
}

.group-layout.with-photo {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 1rem;
}

.group-photo {
  position: relative;
  overflow: hidden;
  min-height: 15rem;
  border-radius: 1rem;
  background: var(--border);
}

.group-photo img { width: 100%; height: 100%; object-fit: cover; }
.empanadas-photo img { position: absolute; inset: 0; object-position: center 60%; }

.drinks-photo { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3px; }
.drinks-photo img { min-width: 0; min-height: 0; object-position: center 38%; }
.drinks-photo img:last-child { object-position: right 34%; }

.menu.is-searching .group-photo { display: none; }
.menu.is-searching .group-layout.with-photo { display: block; }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.menu-platos .menu-grid, .menu.is-searching .menu-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.menu-item { min-width: 0; }

.menu-order {
  display: flex;
  height: 100%;
  min-height: 6.6rem;
  flex-direction: column;
  gap: 0.42rem;
  padding: 0.9rem 0.95rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  background: var(--milk);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.menu-order:hover {
  transform: translateY(-2px);
  border-color: var(--blue-bright);
  box-shadow: 0 0.4rem 1rem #1a2b8115;
}

.menu-item h4 { color: var(--ink); font-size: 1.58rem; font-weight: 700; line-height: 1.04; }
.item-description { color: var(--muted); font-size: 0.88rem; line-height: 1.4; }

.item-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: auto;
}

.price { color: var(--red); font-size: 1.05rem; font-weight: 800; }

.item-plus {
  display: grid;
  flex: 0 0 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: #e9edfd;
  color: var(--blue);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1;
}

.menu-order:hover .item-plus { background: var(--blue); color: white; }

.location { background: var(--blue); color: var(--milk); padding-block: clamp(2.5rem, 5vw, 4.4rem); }

.location-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 4rem;
  align-items: center;
}

.location address {
  margin-top: 1.05rem;
  font-size: 1.15rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.45;
}

.entry { margin: 0.35rem 0 1.15rem; color: var(--gold); font-weight: 800; }
.hours { background: var(--milk); color: var(--ink); border-radius: 1rem; padding: clamp(1.25rem, 3vw, 2rem); }
.hours h3 { color: var(--blue); font-size: 2rem; }
.opening { margin: 0.4rem 0; font-size: 1.2rem; font-weight: 800; }
.hours .contact-link { display: inline-block; margin-top: 0.7rem; }

.site-footer { background: var(--milk); }
.footer-inner { min-height: 5.5rem; }
.footer-contact { text-decoration: none; }
.quick-contact { display: none; }

.quick-order {
  position: fixed;
  z-index: 5;
  inset: auto max(1.2rem, env(safe-area-inset-right)) max(1.15rem, env(safe-area-inset-bottom)) auto;
}

.open-order { box-shadow: 0 0.3rem 1.3rem #11194449; }

.order-count {
  display: grid;
  min-width: 1.65rem;
  min-height: 1.65rem;
  place-items: center;
  padding-inline: 0.25rem;
  border-radius: 100px;
  background: var(--blue);
  color: var(--milk);
}

.modal {
  width: min(100% - 2rem, 31rem);
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  background: var(--milk);
  color: var(--ink);
  box-shadow: 0 1rem 3rem #11194455;
}

.modal::backdrop { background: #0a1232b3; }
.modal-body { position: relative; padding: 1.5rem; }
.modal h2 { padding-right: 2.6rem; color: var(--blue); font-size: clamp(2.25rem, 5.9vw, 3rem); font-weight: 800; }

.modal-close {
  position: absolute;
  z-index: 1;
  top: 0.85rem;
  right: 0.85rem;
}

.modal-close button, .quantity button {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--milk);
  color: var(--blue);
  font-size: 1.65rem;
  line-height: 1;
}

.modal-close button:hover, .quantity button:hover:not(:disabled) { border-color: var(--blue); background: #e9edfd; }

.modal-image {
  width: 100%;
  height: auto;
  max-height: 13rem;
  margin-bottom: 1rem;
  border-radius: 0.7rem;
  aspect-ratio: 2.1;
  object-fit: cover;
  object-position: center 40%;
}

.modal-description { margin-top: 0.6rem; color: var(--muted); }
.modal-price { margin-top: 0.55rem; color: var(--red); font-size: 1.25rem; font-weight: 800; }

.quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin: 1rem 0;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  font-weight: 800;
}

.quantity { display: flex; align-items: center; gap: 0.6rem; }
.quantity output { min-width: 1.5rem; text-align: center; }
.quantity button:disabled { opacity: 0.45; }
.modal-action { width: 100%; }

.order-list { list-style: none; padding: 0; margin: 1rem 0; }

.order-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2rem 0.65rem;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.order-item strong { line-height: 1.3; }
.order-item button {
  justify-self: start;
  min-height: 2.75rem;
  border: 0;
  padding: 0 0.35rem 0 0;
  background: transparent;
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.order-total { display: flex; align-items: center; justify-content: space-between; gap: 0.65rem; font-weight: 800; }
.order-total strong { color: var(--red); white-space: nowrap; }
.order-note, #pedido-vacio { margin: 0.65rem 0 1rem; color: var(--muted); font-size: 0.9rem; }

@media (max-width: 65rem) {
  .menu-platos .menu-grid, .menu.is-searching .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { min-height: 30rem; }
}

@media (max-width: 51rem) {
  .shell { width: min(100% - 2.25rem, 76rem); }
  .header-inner { min-height: 4.4rem; gap: 0.8rem; }
  .header-order, .hero .button-outline { display: none; }
  .wordmark { gap: 0.45rem; font-size: 1.65rem; }
  .wordmark img { width: 2.85rem; height: 2.85rem; }
  .main-nav { gap: 0.95rem; font-size: 0.9rem; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    padding-block: 2.2rem 2.65rem;
  }

  .hero h1 { font-size: clamp(4rem, 10.4vw, 6rem); }
  .hero-lead { margin-top: 0.9rem; }
  .actions { margin-top: 1.1rem; }
  .hero-visual { width: min(100% - 1.4rem, 36rem); margin-inline: 0.55rem auto; }
  .hero-photo { aspect-ratio: 1.45; }
  .hero-price { bottom: 0.65rem; }
  .hero-price strong { font-size: 2.35rem; }
  .cayena { right: -1rem; bottom: -1.15rem; }

  .section-intro { display: block; }
  .section-intro p { margin-top: 0.6rem; }
  .group-layout.with-photo { grid-template-columns: minmax(0, 1fr); gap: 0.7rem; }
  .group-photo { height: clamp(10.5rem, 33vw, 16rem); min-height: 0; }
  .empanadas-photo img { object-position: center 54%; }
  .drinks-photo img { object-position: center 33%; }
  .drinks-photo img:last-child { object-position: right 33%; }
  .location-inner { gap: 1.5rem; }

  .site-footer { padding-bottom: calc(4.2rem + env(safe-area-inset-bottom)); }
  .quick-order {
    inset: auto 0 0;
    padding: 0.6rem max(1rem, env(safe-area-inset-right)) max(0.6rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    background: var(--milk);
    border-top: 1px solid var(--border);
  }
  .quick-order .button { display: flex; width: min(100%, 34rem); margin-inline: auto; }
  .quick-contact, .open-order { box-shadow: none; }
}

@media (max-width: 34rem) {
  .shell { width: calc(100% - 2rem); }
  .wordmark { font-size: 1.48rem; }
  .wordmark img { width: 2.45rem; height: 2.45rem; }
  .main-nav { gap: 0.75rem; font-size: 0.82rem; }
  .hero-inner { gap: 1.5rem; }
  .hero-lead { max-width: 19rem; }
  .hero-photo { aspect-ratio: 1.35; border-width: 4px; box-shadow: 0.55rem 0.55rem var(--gold); }
  .hero-price { font-size: 0.76rem; padding: 0.45rem 0.7rem 0.6rem; }
  .hero-price strong { font-size: 2rem; }
  .hero .button { font-size: 0.91rem; padding-inline: 0.75rem; }
  .menu-tools { align-items: stretch; }
  .filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .filter { min-height: 2.75rem; padding-inline: 0.65rem; font-size: 0.86rem; }
  .search { flex-basis: 100%; }
  .menu-grid, .menu-platos .menu-grid, .menu.is-searching .menu-grid { grid-template-columns: 1fr; }
  .menu-order { min-height: 0; }
  .item-action { margin-top: 0; }
  .location-inner { grid-template-columns: 1fr; }
  .footer-inner { min-height: 4.5rem; gap: 0.6rem; }
  .footer-contact { font-size: 0.8rem; }
  .modal {
    width: 100%;
    max-width: none;
    margin: auto 0 0;
    border-radius: 1.15rem 1.15rem 0 0;
  }
  .modal-body { padding: 1.25rem 1.15rem max(1.15rem, env(safe-area-inset-bottom)); }
}

@media (max-width: 23rem) {
  .main-nav { gap: 0.55rem; }
  .header-inner { gap: 0.45rem; }
  .wordmark { font-size: 1.36rem; }
  .wordmark img { width: 2.15rem; height: 2.15rem; }
  .hero h1 { font-size: 3.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .menu-order { transition: none; }
}
