@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/barlow-condensed-800.woff2") format("woff2");
}

:root {
  --display: "Barlow Condensed", "Arial Narrow", "Arial Rounded MT Bold", ui-sans-serif, sans-serif;
  color-scheme: light;
  --ink: #191310;
  --ink-soft: #5f5149;
  --cream: #fffaf0;
  --paper: #ffffff;
  --red: #c92f22;
  --red-dark: #8f1c15;
  --green: #45643f;
  --mustard: #d9a441;
  --line: #ded2bf;
  --shadow: 0 18px 55px rgb(42 24 12 / 12%);
  --header-height: 76px;
  --radius: 16px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
  background: var(--cream);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 8%, rgb(217 164 65 / 13%), transparent 24rem),
    var(--cream);
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: rgb(201 47 34 / 18%); }
button { font: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--red-dark);
  outline-offset: 4px;
}
/* El mostaza solo contrasta (>3:1) sobre fondos oscuros; en claros se usa el rojo oscuro. */
.hero :focus-visible, .menu-band :focus-visible, .order-section :focus-visible, .site-footer :focus-visible, .paisanito:focus-visible { outline-color: var(--mustard); }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  translate: 0 -160%;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  color: #fff;
  background: var(--ink);
  font-weight: 800;
}

.skip-link:focus { translate: 0; }

.container { width: min(1160px, calc(100% - 2rem)); margin-inline: auto; }
.section { padding: clamp(4.5rem, 8vw, 7.5rem) 0; }
.section[id] { scroll-margin-top: calc(var(--header-height) + 18px); }
.eyebrow { margin: 0 0 0.55rem; color: var(--red-dark); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.13em; text-transform: uppercase; }

h1, h2, h3 {
  margin-top: 0;
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

h1 { max-width: 13ch; margin-bottom: 1.25rem; font-size: clamp(3.4rem, 10vw, 6rem); }
h2 { margin-bottom: 0.9rem; font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
p { text-wrap: pretty; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: var(--header-height);
  border-bottom: 1px solid rgb(25 19 16 / 9%);
  background: rgb(255 250 240 / 92%);
  backdrop-filter: blur(18px);
}

.header-inner { min-height: var(--header-height); display: flex; align-items: center; gap: 1rem; }
.brand { min-width: 0; min-height: 44px; display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; font-weight: 950; letter-spacing: -0.025em; }
.brand span { white-space: nowrap; }

/* Los cuatro chiles del logo: una unidad (--u = alto del más alto) y el ancho de cada uno en proporción. */
.chiles { --u: 40px; display: inline-flex; align-items: flex-end; flex: none; }
.chile { width: calc(var(--u) * var(--w)); height: auto; }
.chile + .chile { margin-left: calc(var(--u) * -0.12); }
.chile-naranja { --w: 0.729; position: relative; z-index: 1; }
.chile-rojo { --w: 0.707; position: relative; z-index: 2; }
.chile-verde { --w: 0.622; position: relative; z-index: 3; }
.chile-amarillo { --w: 0.773; position: relative; z-index: 2; }
.brand .chiles { --u: 42px; }
@media (min-width: 761px) { .brand .chiles { --u: 50px; } }
.brand { gap: 0.5rem; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 0.2rem; }
.site-nav a, .language-switcher a, .nav-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  background: transparent;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}
.site-nav a:hover, .language-switcher a:hover, .nav-toggle:hover { background: rgb(201 47 34 / 9%); }
.language-switcher { display: inline-flex; align-items: center; padding: 0.2rem; border: 1px solid var(--line); border-radius: 999px; }
.language-switcher a { min-width: 44px; padding-inline: 0.7rem; }
.language-switcher [aria-current="page"] { color: #fff; background: var(--ink); }
.nav-toggle { display: none; min-width: 44px; margin-left: auto; border: 1px solid var(--line); }

.hero { position: relative; min-height: min(780px, calc(100svh - var(--header-height))); display: grid; align-items: end; overflow: clip; color: #fff; background: #28130d; }
.hero-media, .hero-media picture, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: center 48%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(18 8 5 / 88%) 0%, rgb(18 8 5 / 60%) 48%, rgb(18 8 5 / 20%) 100%), linear-gradient(0deg, rgb(18 8 5 / 70%), transparent 55%); }
.hero-content { position: relative; z-index: 1; padding-block: clamp(5rem, 12vw, 9rem); }
.hero-copy { max-width: 710px; }
.hero .eyebrow { color: #ffe29d; }
.hero p { max-width: 54ch; margin: 0 0 1.7rem; color: rgb(255 255 255 / 90%); font-size: clamp(1.05rem, 2vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  color: #fff;
  background: var(--red);
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 10px 30px rgb(115 17 11 / 24%);
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.button:hover { transform: translateY(-2px); background: var(--red-dark); box-shadow: 0 14px 35px rgb(115 17 11 / 30%); }
.button:active { transform: translateY(0) scale(0.98); }
.button.secondary { border-color: rgb(255 255 255 / 65%); background: rgb(255 255 255 / 10%); backdrop-filter: blur(9px); }
.button.secondary:hover { background: rgb(255 255 255 / 20%); }
.button.dark { background: var(--ink); }

.fact-strip { position: relative; z-index: 4; margin-top: -2rem; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.fact { min-width: 0; padding: 1.25rem 1.4rem; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact strong { display: block; font-size: 1.05rem; }
.fact span { color: var(--ink-soft); font-size: 0.9rem; }

.section-heading { max-width: 760px; margin-bottom: 2rem; }
.section-heading > p:last-child { color: var(--ink-soft); font-size: 1.05rem; }
.fact { color: inherit; text-decoration: none; }
a.fact:hover strong { color: var(--red-dark); }

.dish-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.dish { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: #e9decc; isolation: isolate; }
.dish:first-child { grid-column: span 2; grid-row: span 2; }
.dish img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1); }
.dish:first-child img { aspect-ratio: auto; min-height: 100%; }
.dish:hover img { transform: scale(1.04); }
.dish-text { position: absolute; z-index: 1; inset: auto 0 0 0; padding: 4rem 1rem 0.9rem; color: #fff; background: linear-gradient(0deg, rgb(14 7 4 / 90%) 12%, rgb(14 7 4 / 55%) 55%, transparent); }
.dish h3 { margin: 0; color: #fff; font-size: clamp(1.35rem, 2.3vw, 1.8rem); font-weight: 800; letter-spacing: 0.015em; text-shadow: 0 1px 2px rgb(0 0 0 / 70%), 0 2px 14px rgb(0 0 0 / 45%); }
.dish-text p { margin: 0.25rem 0 0; color: rgb(255 255 255 / 92%); font-size: 0.86rem; line-height: 1.35; text-shadow: 0 1px 6px rgb(0 0 0 / 60%); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.dish:first-child .dish-text { padding: 5rem 1.3rem 1.2rem; }
.dish:first-child h3 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.dish:first-child .dish-text p { font-size: 1rem; -webkit-line-clamp: 3; }

.menu-band { margin-top: clamp(2.5rem, 6vw, 4rem); display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding: clamp(1.75rem, 4.5vw, 3.5rem); border-radius: var(--radius); color: #fff; background: var(--red); }
.menu-band h2 { max-width: 12ch; font-size: clamp(2.6rem, 6vw, 4.6rem); }
.menu-band p { max-width: 46ch; margin: 0 0 1.5rem; color: #fff; font-size: 1.1rem; }
.menu-band .button { color: var(--ink); background: #fff; box-shadow: none; }
.menu-band .button:hover { background: var(--cream); }
.qr-card { display: none; margin: 0; justify-self: center; width: min(100%, 260px); padding: 1rem 1rem 0.8rem; border-radius: var(--radius); color: var(--ink); background: #fff; text-align: center; }
.qr-card img { width: 100%; height: auto; aspect-ratio: 1; }
.qr-card figcaption { margin-top: 0.45rem; font-size: 0.85rem; font-weight: 800; }
@media (min-width: 901px) { .qr-card { display: block; } }

.location-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.location-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.location-card { padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--radius); color: #fff; background: var(--green); box-shadow: var(--shadow); }
.location-card p { color: rgb(255 255 255 / 82%); }
.address { margin: 1.5rem 0; font-size: clamp(1.25rem, 3vw, 1.8rem); font-style: normal; font-weight: 900; }
.location-note { padding: 1.5rem; border: 1px dashed #b7a98f; border-radius: 18px; color: var(--ink-soft); background: rgb(255 255 255 / 52%); }

.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: #e9decc; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 280ms ease; }
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.gallery figure:first-child img { aspect-ratio: auto; min-height: 100%; }
.gallery figure:hover img { transform: scale(1.025); }

.order-section { color: #fff; background: var(--ink); }
.order-section .eyebrow { color: #f2c665; }
.order-section .section-heading > p:last-child { color: rgb(255 255 255 / 72%); }
.order-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.order-card { min-width: 0; display: flex; flex-direction: column; padding: 1.35rem; border: 1px solid rgb(255 255 255 / 16%); border-radius: 18px; color: #fff; background: rgb(255 255 255 / 6%); text-decoration: none; transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease; }
.order-card:hover { transform: translateY(-3px); border-color: #f2c665; background: rgb(255 255 255 / 10%); }
.order-card:active { transform: translateY(0) scale(0.99); }
.order-card strong { font-size: 1.15rem; }
.order-card span { color: rgb(255 255 255 / 68%); font-size: 0.92rem; }
.privacy-notice { max-width: 900px; margin-top: 1.5rem; padding: 1rem 1.1rem; border-radius: 14px; color: #25150f; background: #f3cf7a; }
.privacy-notice a { font-weight: 900; }

.site-footer { padding: 2.2rem 0 6.5rem;color: #fff; background: #0d0a08; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-brand { display: flex; align-items: center; gap: 0.8rem; }
.footer-brand .chiles { --u: 56px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; color: rgb(255 255 255 / 76%); font-weight: 750; }
.footer-links a:hover { color: #fff; }
.footer-links .social-link { width: 44px; justify-content: center; border: 1px solid rgb(255 255 255 / 24%); border-radius: 50%; }
.footer-links .social-link:hover { border-color: var(--mustard); color: var(--mustard); }

/* Sección de marca: el logo original, con los cuatro chiles junto al nombre. */
.crew { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.crew-lockup { display: flex; flex-direction: column; align-items: center; gap: clamp(1rem, 3vw, 1.6rem); text-align: center; }
.crew-wordmark { margin: 0; display: grid; justify-items: center; gap: 0.2rem; font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 0.95; }
.crew-name { color: var(--ink); font-size: clamp(3.2rem, 14vw, 6.5rem); letter-spacing: 0.01em; }
.crew-sub { display: inline-flex; align-items: center; gap: 0.8rem; color: var(--red-dark); font-size: clamp(1.1rem, 4vw, 1.6rem); letter-spacing: 0.22em; }
.crew-sub::before, .crew-sub::after { content: ""; width: clamp(1.5rem, 8vw, 3.5rem); height: 3px; border-radius: 3px; background: var(--mustard); }
.crew .chiles { --u: clamp(110px, 36vw, 300px); max-width: 100%; }
.crew-heading { margin: clamp(1.5rem, 4vw, 2.4rem) auto 0; text-align: center; }
.crew-heading p { margin-inline: auto; }

.legal-page { min-height: calc(100svh - var(--header-height)); padding: 4rem 0 7rem; }
.legal-page article { max-width: 760px; }
.not-found { min-height: 100svh; display: grid; place-items: center; padding: 2rem; text-align: center; background: var(--cream); }
.not-found img { width: 130px; height: 139px; margin: 0 auto 1rem; object-fit: contain; }

.no-js .nav-toggle { display: none; }

/* El Paisanito: el botón del chat es la mascota, con un movimiento suave de reposo. */
.paisanito { position: fixed; z-index: 90; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); display: flex; align-items: flex-end; gap: 0.5rem; min-width: 64px; min-height: 64px; border: 0; padding: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.paisanito img { width: clamp(64px, 9vw, 84px); height: auto; filter: drop-shadow(0 8px 14px rgb(25 19 16 / 38%)); transform-origin: 50% 92%; animation: paisanito-bob 3.4s ease-in-out infinite; }
.paisanito:hover img, .paisanito:focus-visible img { animation: paisanito-wave 760ms ease-in-out 1; }
.paisanito:focus-visible { outline-offset: 6px; border-radius: 16px; }
.paisanito-tip { align-self: center; padding: 0.5rem 0.8rem; border-radius: 14px 14px 4px 14px; color: #fff; background: var(--ink); font-size: 0.9rem; font-weight: 850; white-space: nowrap; box-shadow: 0 8px 22px rgb(25 19 16 / 28%); transform-origin: 100% 60%; animation: paisanito-tip 7s ease-in-out infinite; pointer-events: none; }
.paisanito[aria-expanded="true"] .paisanito-tip { display: none; }
@keyframes paisanito-bob { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-6px) rotate(-2.5deg); } }
@keyframes paisanito-wave { 0%, 100% { transform: rotate(0deg); } 20% { transform: rotate(-12deg); } 45% { transform: rotate(9deg); } 70% { transform: rotate(-6deg); } }
@keyframes paisanito-tip { 0%, 60%, 100% { transform: scale(1) rotate(0deg); } 66% { transform: scale(1.1) rotate(-4deg); } 72% { transform: scale(1.04) rotate(3deg); } 78% { transform: scale(1.08) rotate(-2deg); } 86% { transform: scale(1) rotate(0deg); } }

@media (max-width: 1020px) {
  .dish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dish:first-child { grid-row: auto; }
  .dish:first-child img { aspect-ratio: 16 / 10; min-height: 0; }
  .order-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .menu-band { grid-template-columns: 1fr; }
  .gallery figure:first-child { grid-row: auto; }
  .gallery figure:first-child img { aspect-ratio: 16 / 10; min-height: 0; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  :root { --header-height: 68px; }
  .container { width: min(100% - 1.25rem, 1160px); }
  .nav-toggle { display: inline-flex; }
  .language-switcher { margin-left: 0; }
  .js .site-nav { position: absolute; top: calc(100% + 0.4rem); right: 0.65rem; left: 0.65rem; display: none; flex-direction: column; align-items: stretch; padding: 0.7rem; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); }
  .js .site-nav[data-open="true"] { display: flex; }
  .js .site-nav a { justify-content: flex-start; }
  .no-js .header-inner { flex-wrap: wrap; padding-block: 0.55rem; }
  .no-js .site-nav { order: 3; width: 100%; overflow-x: auto; }
  .hero { min-height: 690px; }
  .hero-media::after { background: linear-gradient(0deg, rgb(18 8 5 / 91%) 5%, rgb(18 8 5 / 50%) 68%, rgb(18 8 5 / 18%)); }
  .hero-content { padding-block: 6rem 4.5rem; }
  .facts { grid-template-columns: 1fr; }
  .fact + .fact { border-top: 1px solid var(--line); border-left: 0; }
  .location-grid { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .order-grid { grid-template-columns: 1fr; }
  .dish-text { padding-top: 2.6rem; }
  h1 { font-size: clamp(2.8rem, 15vw, 4.4rem); }
  .brand span { font-size: 0.93rem; }
  .language-switcher a { min-width: 44px; padding-inline: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .paisanito img { animation: none; }
  .paisanito-tip { animation: none; }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .dish, .section-heading, .menu-band, .location-card, .order-card {
      animation: paisano-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 38%;
    }
    @keyframes paisano-rise { from { opacity: 0; transform: translateY(26px); } }
  }
}

/* Pulido estilo Apple: respuesta inmediata, titulares equilibrados, materiales que se adaptan. */
html { -webkit-tap-highlight-color: transparent; text-size-adjust: 100%; }
a, button { touch-action: manipulation; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.dish h3, .price, [class*="price"] { font-variant-numeric: tabular-nums; }

/* Feedback al instante: el press responde en 80 ms, el regreso es suave. */
.button:active, .order-card:active, .footer-links a:active, .nav a:active { transition-duration: 80ms; }
.footer-links .social-link { transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1), border-color 160ms ease, color 160ms ease; }
.footer-links .social-link:active { transform: scale(0.92); transition-duration: 80ms; }

/* Borde de scroll: el encabezado gana profundidad solo cuando hay contenido debajo. */
.site-header { backdrop-filter: blur(20px) saturate(180%); box-shadow: 0 1px 0 rgb(255 255 255 / 55%) inset; }

@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--cream); backdrop-filter: none; }
  .button.secondary { background: rgb(25 19 16 / 55%); backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .site-header { border-bottom-color: var(--ink); }
  .order-card, .footer-links .social-link { border-color: #fff; }
}
@media (prefers-reduced-motion: no-preference) {
  .button, .order-card { transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
}
