/* =========================================
   AURA BISTRÓ — CARTA (/xx/menus)
   Basado en el modelo aura-menu-tawny.vercel.app
========================================= */

@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('/fonts/CabinetGrotesk-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('/fonts/CabinetGrotesk-Bold.woff2') format('woff2');
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('/fonts/Satoshi-Variable.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --terracota: #cc6944;
  --nieve: #e8e1c9;
  --ceniza: #464646;
  --neblina: #e8f1f1;

  --page-x: 24px;
  --header-h: 76px;
  --category-h: 45px;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--nieve);
  color: var(--ceniza);
  font-family: 'Satoshi', system-ui, sans-serif;
  font-weight: 400;
}

a {
  font: inherit;
}

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* =========================================
   NAVBAR
========================================= */

.menu-header {
  position: sticky;
  top: 0;
  z-index: 30;

  height: var(--header-h);

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  padding: 0 var(--page-x);

  background: var(--terracota);
  color: var(--nieve);
}

.brand-home {
  justify-self: start;
  display: flex;
  align-items: center;
}

.logo-header {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.menu-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 32px;
}

.menu-nav a {
  color: var(--nieve);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 180ms ease;
}

.menu-nav a:hover {
  color: var(--neblina);
}

.menu-nav a:focus-visible,
.category-nav a:focus-visible,
.language-nav a:focus-visible {
  outline: 2px solid var(--nieve);
  outline-offset: 4px;
}

.menu-nav a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}


/* ---------- NAVEGACION SECUNDARIA ---------- */

.category-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 20;

  background: var(--terracota);
  color: var(--nieve);
  border-top: 1px solid rgba(232, 225, 201, 0.22);
}

.category-nav__list {
  width: 100%;

  display: flex;
  align-items: stretch;
  gap: 28px;

  padding: 0 var(--page-x);

  overflow-x: auto;
  scrollbar-width: none;
}

.category-nav__list::-webkit-scrollbar {
  display: none;
}

.category-nav__list a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;

  color: var(--nieve);
  text-decoration: none;

  font-size: 13px;
  line-height: 1.2;
  font-weight: 500;
  white-space: nowrap;

  border-bottom: 2px solid transparent;
}

.category-nav__list a[aria-current="page"] {
  font-weight: 700;
  border-bottom-color: var(--nieve);
}

/* Sin JavaScript se muestran todas las secciones y la subnavegacion no aplica. */
html:not(.js) .category-nav {
  display: none;
}


/* ---------- IDIOMAS ---------- */

.language-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
}

.language-nav a {
  padding: 4px 0;
  color: var(--nieve);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: color 180ms ease;
}

.language-nav a:hover {
  color: var(--neblina);
}

.language-nav a[aria-current="true"] {
  font-weight: 700;
}


/* =========================================
   CONTENIDO
========================================= */

.menu-content {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--nieve);
  color: var(--ceniza);
}

.js .menu-route {
  display: none;
}

.js .menu-route.is-active {
  display: flex;
}

/* La seccion activa ocupa el alto disponible para que el footer quede abajo. */
.menu-route {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  scroll-margin-top: calc(var(--header-h) + var(--category-h));
}

.menu-section {
  flex: 1 0 auto;
  width: 100%;
  margin: 0;
  padding: 52px var(--page-x) 56px;
}

.menu-section h2 {
  margin: 0 0 42px;
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}


/* ---------- PLATO ---------- */

.menu-item {
  margin: 0 0 34px;
}

.menu-item:last-child {
  margin-bottom: 0;
}

.menu-item h3 {
  margin: 0 0 8px;
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: lowercase;
}

.menu-item .description {
  max-width: 620px;
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 300;
}

.menu-item .option {
  margin: 12px 0 4px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 400;
}

.menu-item .price {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 600;
}


/* =========================================
   COLORES POR FAMILIA
========================================= */

.menu-section--entradas,
.menu-section--principales {
  background: var(--nieve);
  color: var(--ceniza);
}

.menu-section--entradas .menu-item h3,
.menu-section--principales .menu-item h3,
.menu-section--postres .menu-item h3 {
  color: var(--terracota);
}

.menu-section--postres {
  background: var(--neblina);
  color: var(--ceniza);
}


/* =========================================
   DESAYUNOS Y MERIENDAS
========================================= */

.breakfast-section {
  background: var(--nieve);
  color: var(--ceniza);
}

.breakfast-section > h2 {
  margin-bottom: 48px;
  color: var(--ceniza);
  font-size: 32px;
  font-weight: 700;
  text-transform: none;
}

.breakfast-category {
  margin: 0 0 42px;
}

.breakfast-category:last-child {
  margin-bottom: 0;
}

.breakfast-category-title {
  margin: 0 0 20px;
  color: var(--terracota);
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}

.breakfast-category .menu-item {
  margin-bottom: 30px;
}

.breakfast-category .menu-item:last-child {
  margin-bottom: 0;
}

.breakfast-category .menu-item h3 {
  margin-bottom: 8px;
  color: var(--ceniza);
  font-size: 20px;
  font-weight: 600;
  text-transform: none;
}

.breakfast-category .description {
  margin-bottom: 10px;
  color: var(--ceniza);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 300;
}

.breakfast-category .price {
  color: var(--ceniza);
  font-size: 17px;
  font-weight: 600;
}


/* =========================================
   BEBIDAS
========================================= */

.beverage-section {
  background: var(--ceniza);
  color: var(--nieve);
}

.beverage-section > h2 {
  color: var(--nieve);
}

.beverage-category {
  margin: 0 0 48px;
}

.beverage-category:last-child {
  margin-bottom: 0;
}

.beverage-category-title {
  margin: 0 0 18px;
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--nieve);
}

.beverage-category .menu-item {
  margin-bottom: 18px;
}

.beverage-category .menu-item:last-child {
  margin-bottom: 0;
}

.beverage-category .menu-item h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--neblina);
}

.beverage-category .description {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--nieve);
}

.beverage-category .option {
  margin: 10px 0 4px;
  color: var(--nieve);
}

.beverage-category .price {
  margin: 0 0 6px;
  color: var(--nieve);
}


/* ---------- VINOS ---------- */

.wine-category-group {
  margin-top: 34px;
  margin-bottom: 0;
}

.wine-category-group > .beverage-category-title {
  margin-bottom: 28px;
  text-transform: none;
}

.wine-variety {
  margin: 0 0 36px;
}

.wine-variety:last-child {
  margin-bottom: 0;
}

.wine-variety-title {
  margin: 0 0 16px;
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--nieve);
}

.wine-category-group .menu-item {
  margin-bottom: 20px;
}

.wine-category-group .menu-item:last-child {
  margin-bottom: 0;
}

.wine-category-group .menu-item h3 {
  font-size: 18px;
  font-weight: 500;
}


/* =========================================
   AVISOS
========================================= */

.carta-notice {
  max-width: 620px;
  margin: 32px var(--page-x) 0;
  border-left: 2px solid var(--terracota);
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.7;
}

.carta-error {
  padding: 96px var(--page-x);
}

.carta-error strong {
  display: block;
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 28px;
  line-height: 1.1;
  text-transform: lowercase;
}


/* =========================================
   FOOTER
========================================= */

.site-footer {
  padding: 56px var(--page-x) 28px;
  background: var(--terracota);
  color: var(--nieve);
}

.footer-brand {
  margin-bottom: 52px;
}

.logo-footer {
  display: block;
  width: 180px;
  max-width: 60vw;
  height: auto;
}

.footer-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 56px;
}

.footer-label {
  display: block;
  margin-bottom: 10px;
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
}

.footer-link {
  width: fit-content;
  min-height: 44px;

  display: flex;
  align-items: center;
  gap: 10px;

  color: var(--nieve);
  text-decoration: underline;
  text-decoration-color: rgba(232, 225, 201, 0.5);
  text-underline-offset: 4px;

  font-size: 14px;
  line-height: 1.55;

  transition: color 180ms ease, opacity 180ms ease;
}

.footer-link:hover {
  color: var(--neblina);
  opacity: 0.82;
  text-decoration-color: currentColor;
}

.footer-link:focus-visible {
  outline: 2px solid var(--ceniza);
  outline-offset: 4px;
  border-radius: 2px;
}

.footer-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}

.footer-contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;

  padding-top: 18px;
  border-top: 1px solid rgba(232, 225, 201, 0.35);

  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer-bottom > :first-child {
  justify-self: start;
}

.footer-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.footer-location-name {
  justify-self: end;
}

.logo-hi {
  display: block;
  width: 115px;
  height: auto;
}


/* =========================================
   DESKTOP
========================================= */

@media (min-width: 900px) {
  :root {
    --page-x: 48px;
  }

  .menu-section {
    padding-top: 72px;
    padding-bottom: 80px;
  }

  .menu-section h2 {
    font-size: 42px;
  }

  .menu-item h3 {
    font-size: 23px;
  }

  .menu-item .description {
    font-size: 16px;
  }

  .menu-item .price {
    font-size: 18px;
  }

  .beverage-category-title {
    font-size: 24px;
  }

  .beverage-category .menu-item h3 {
    font-size: 18px;
  }

  .beverage-category .description {
    font-size: 15px;
  }

  .beverage-category .price {
    font-size: 17px;
  }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 720px) {
  .footer-bottom {
    grid-template-columns: minmax(0, 1fr);
    align-items: flex-start;
    gap: 18px;
  }

  .footer-credit {
    justify-content: flex-start;
    max-width: 100%;
    flex-wrap: wrap;
  }

  .footer-location-name {
    justify-self: start;
  }
}

@media (max-width: 600px) {
  :root {
    --page-x: 20px;
    --header-h: 64px;
  }

  .menu-header {
    grid-template-columns: auto 1fr auto;
    padding: 0 18px;
  }

  .logo-header {
    width: 36px;
    height: 36px;
  }

  .menu-nav {
    gap: 8px;
  }

  .menu-nav a {
    max-width: 92px;
    font-size: 10.5px;
    line-height: 1.05;
    text-align: center;
    white-space: normal;
  }

  .menu-nav a[aria-current="page"] {
    text-underline-offset: 3px;
  }

  .language-nav {
    gap: 8px;
  }

  .language-nav a {
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  .category-nav__list {
    gap: 20px;
    padding: 0 20px;
  }

  .menu-section {
    padding-top: 42px;
    padding-bottom: 48px;
  }

  .menu-section h2 {
    margin-bottom: 32px;
    font-size: 28px;
  }

  .breakfast-section > h2 {
    margin-bottom: 48px;
    font-size: 32px;
  }

  .menu-item {
    margin-bottom: 28px;
  }

  .menu-item h3 {
    font-size: 19px;
  }

  .beverage-category {
    margin-bottom: 40px;
  }

  .beverage-category-title {
    margin-bottom: 16px;
    font-size: 21px;
  }

  .beverage-category .menu-item {
    margin-bottom: 16px;
  }

  .beverage-category .menu-item h3 {
    font-size: 17px;
  }

  .beverage-category .description {
    font-size: 14px;
  }

  .beverage-category .option {
    font-size: 13px;
  }

  .beverage-category .price {
    font-size: 16px;
  }

  .logo-footer {
    width: 165px;
  }

  .footer-info {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    font-size: 11px;
  }

  .logo-hi {
    width: 110px;
  }
}
