/* ==========================================================================
   Taquería El Pastorcito
   Night-market taquería: mole-dark base, masa type, achiote + talavera accents,
   sign-painter caps for headlines, Spanish words set in italic serif.
   ========================================================================== */

:root {
  --mole: #1a1210;
  --mole-2: #221814;
  --mole-3: #2d211b;
  --masa: #f3e7d3;
  --masa-dim: rgba(243, 231, 211, 0.7);
  --masa-faint: rgba(243, 231, 211, 0.45);
  --line: rgba(243, 231, 211, 0.12);
  --achiote: #d2491e;
  --achiote-hi: #e85d2c;
  --talavera: #2b4c9b;
  --maiz: #e6b34a;
  --rosa: #d6457e;
  --nopal: #3f7d4e;

  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 3px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }

body {
  background: var(--mole);
  color: var(--masa);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--maiz); outline-offset: 3px; }

em { font-family: var(--serif); font-style: italic; font-weight: 400; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--maiz); color: var(--mole); padding: 0.5rem 1rem; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--maiz);
  margin-bottom: 0.9rem;
}

.section-title {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: 0.005em;
  max-width: 16ch;
}
.section-title em { text-transform: none; font-size: 1.05em; color: var(--maiz); }

.section-lede { color: var(--masa-dim); max-width: 56ch; margin-top: 1.1rem; font-size: 1.1rem; }

.sub-title {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  line-height: 1;
  margin-bottom: 1.1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem 0.8rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn-primary { background: var(--achiote); color: #fff8ef; }
.btn-primary:hover { background: var(--achiote-hi); }
.btn-primary:disabled { opacity: 0.6; cursor: progress; }
.btn-ghost { border-color: rgba(243, 231, 211, 0.4); color: var(--masa); }
.btn-ghost:hover { border-color: var(--masa); background: rgba(243, 231, 211, 0.06); }
.btn-sm { font-size: 0.95rem; padding: 0.55rem 1.05rem 0.5rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(26, 18, 16, 0.94); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 72px; }

.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; }
.wordmark-mark { width: 34px; height: 34px; object-fit: contain; }
.wordmark-text {
  display: flex; flex-direction: column;
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: 1.45rem; line-height: 0.9; letter-spacing: 0.02em;
}
.wordmark-text small {
  font-family: var(--serif); font-style: italic; text-transform: none;
  font-weight: 400; font-size: 0.95rem; letter-spacing: 0; color: var(--maiz); line-height: 1;
}

.nav-desktop { display: flex; gap: 2rem; }
.nav-desktop a {
  font-weight: 600; font-size: 0.95rem; color: var(--masa-dim);
  padding: 0.25rem 0; border-bottom: 1.5px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-desktop a:hover { color: var(--masa); border-color: var(--achiote); }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.lang-switcher { display: flex; border: 1px solid var(--line); border-radius: var(--radius); }
.lang-btn {
  background: none; border: 0; cursor: pointer;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  padding: 0.35rem 0.55rem; color: var(--masa-dim);
}
.lang-btn.active { color: var(--mole); background: var(--masa); }

.nav-toggle { display: none; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--masa); transition: transform 0.25s var(--ease); }
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-drawer { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 920px);
  display: flex; align-items: flex-end;
  padding: 120px 0 140px;
  isolation: isolate;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% center; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(26, 18, 16, 0.95) 0%, rgba(26, 18, 16, 0.8) 34%, rgba(26, 18, 16, 0.15) 62%),
    linear-gradient(0deg, var(--mole) 0%, rgba(26, 18, 16, 0) 30%);
}
.hero-inner { max-width: 1180px; }
.hero-title {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(3.2rem, 7.4vw, 6.2rem);
  line-height: 0.88; letter-spacing: 0.005em;
  max-width: 10ch;
}
.hero-title > span { display: block; }
.hero-title em { white-space: nowrap; text-transform: none; color: var(--maiz); font-size: 1.08em; letter-spacing: -0.01em; }
.hero-lede { max-width: 44ch; margin-top: 1.5rem; color: var(--masa-dim); font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.hero-next {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 1.25rem;
  padding: 1.1rem max(var(--gutter), calc((100% - 1180px) / 2 + var(--gutter)));
  background: rgba(26, 18, 16, 0.82); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  transition: background 0.2s;
}
.hero-next[hidden] { display: none; }
.hero-next:hover { background: rgba(45, 33, 27, 0.92); }
.hn-label {
  font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.85rem; color: var(--mole); background: var(--maiz); padding: 0.25rem 0.6rem 0.2rem; border-radius: 2px;
}
.hn-where { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.5rem; line-height: 1; }
.hn-when { color: var(--masa-dim); font-size: 0.95rem; }
.hn-arrow { color: var(--achiote-hi); font-size: 1.3rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(5rem, 10vw, 8rem) 0; position: relative; }
.section-head { margin-bottom: 3rem; }

/* ---------- Schedule + papel picado (signature) ---------- */
.schedule { padding-top: 0; }
.papel {
  display: flex; gap: 6px;
  padding: 0 var(--gutter);
  margin-bottom: clamp(3.5rem, 7vw, 5rem);
  position: relative;
}
.papel::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: rgba(243, 231, 211, 0.35);
}
.papel span {
  flex: 1;
  height: clamp(54px, 7vw, 84px);
  margin-top: 2px;
  transform-origin: 50% 0;
  /* scalloped bottom edge + punched pattern, like cut tissue paper */
  clip-path: polygon(0 0, 100% 0, 100% 82%, 87.5% 100%, 75% 82%, 62.5% 100%, 50% 82%, 37.5% 100%, 25% 82%, 12.5% 100%, 0 82%);
  -webkit-mask: radial-gradient(circle, transparent 2.6px, #000 3.2px) 0 0 / 13px 13px,
                linear-gradient(#000, #000);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle, transparent 2.6px, #000 3.2px) 0 0 / 13px 13px intersect,
        linear-gradient(#000, #000);
  animation: sway 6s ease-in-out infinite alternate;
}
.papel span:nth-child(5n+1) { background: var(--rosa); }
.papel span:nth-child(5n+2) { background: var(--maiz); animation-delay: -1.2s; }
.papel span:nth-child(5n+3) { background: var(--talavera); animation-delay: -2.4s; }
.papel span:nth-child(5n+4) { background: var(--achiote); animation-delay: -3.6s; }
.papel span:nth-child(5n+5) { background: var(--nopal); animation-delay: -4.8s; }
@keyframes sway { from { transform: rotate(-1.4deg); } to { transform: rotate(1.4deg); } }

.stops { border-top: 1px solid var(--line); }
.stop {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 1.75rem; align-items: center;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}
.stop-date { display: grid; justify-items: start; line-height: 1; font-family: var(--display); text-transform: uppercase; }
.stop-dow { font-weight: 800; font-size: 0.85rem; letter-spacing: 0.16em; color: var(--masa-faint); }
.stop-day { font-weight: 900; font-size: 3.1rem; color: var(--maiz); line-height: 0.95; }
.stop-mon { font-weight: 800; font-size: 0.85rem; letter-spacing: 0.16em; color: var(--masa-dim); }
.stop-flag {
  display: inline-block; margin-bottom: 0.35rem;
  font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.8rem;
  color: var(--achiote-hi);
}
.stop-venue { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1; }
.stop-addr { color: var(--masa-dim); font-size: 0.95rem; margin-top: 0.35rem; }
.stop-side { display: grid; justify-items: end; gap: 0.35rem; text-align: right; }
.stop-time { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stop-dir { color: var(--achiote-hi); font-weight: 700; font-size: 0.95rem; }
.stop-dir:hover { color: var(--maiz); }
.stop.is-next .stop-day { color: var(--achiote-hi); }

.stops-status { color: var(--masa-dim); padding: 1.5rem 0; }

.follow {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  margin-top: 3rem; padding: 1.5rem 0 0;
}
.follow p { font-family: var(--serif); font-style: italic; font-size: 1.45rem; color: var(--masa-dim); max-width: 34ch; line-height: 1.25; }
.follow-links { display: flex; gap: 0.6rem; }
.insta-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-top: 1.5rem; }
.insta-strip:empty { display: none; }
.insta-strip a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--mole-3); }
.insta-meta { display: none; }
@media (hover: hover) and (min-width: 641px) {
  .insta-meta {
    position: absolute; inset: auto 0 0; display: flex; flex-direction: column; gap: 0.2rem;
    padding: 2.5rem 0.9rem 0.8rem; background: linear-gradient(transparent, rgba(26, 18, 16, 0.9));
    color: var(--masa); font-size: 0.9rem; line-height: 1.35;
    opacity: 0; transform: translateY(6px); transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .insta-meta time { font-family: var(--display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--maiz); }
  .insta-meta span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .insta-strip a:hover .insta-meta, .insta-strip a:focus-visible .insta-meta { opacity: 1; transform: none; }
}
.insta-strip img { width: 100%; height: 100%; object-fit: cover; opacity: 0.88; transition: opacity 0.3s var(--ease), transform 0.4s var(--ease); }
.insta-strip a:hover img, .insta-strip a:focus-visible img { opacity: 1; transform: scale(1.04); }
@media (max-width: 640px) { .insta-strip { gap: 0.4rem; } }

/* Instagram lightbox (native <dialog>: Esc + focus trap for free) */
.lightbox[open] {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem;
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0;
  padding: 3.5rem 1.2rem 1.2rem; border: 0; background: rgba(26, 18, 16, 0.94); color: var(--masa);
}
.lightbox::backdrop { background: transparent; }
.lb-stage { position: relative; }
.lightbox img { display: block; max-width: min(1000px, 96vw); max-height: 64vh; width: auto; height: auto; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lb-caption { max-width: min(680px, 92vw); max-height: 22vh; overflow-y: auto; font-size: 0.95rem; line-height: 1.7; text-align: center; white-space: pre-line; }
.lb-caption:empty { display: none; }
.lb-caption a.tag { color: var(--maiz); }
.lb-caption a.lb-view { display: inline-block; margin-top: 0.5rem; color: var(--achiote-hi); font-family: var(--display); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.lb-caption a:hover { color: var(--masa); }
.lb-btn { position: absolute; background: none; border: 0; color: var(--masa); cursor: pointer; opacity: 0.85; transition: opacity 0.2s var(--ease); }
.lb-btn:hover, .lb-btn:focus-visible { opacity: 1; }
.lb-close { top: 1rem; right: 1.4rem; font-size: 2.4rem; line-height: 1; }
/* Arrows sit on the image's edges, vertically centred on the picture */
.lb-prev, .lb-next {
  top: 50%; transform: translateY(-50%); width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: grid; place-items: center; padding: 0 0 0.25rem; font-size: 2.2rem; line-height: 1;
  background: rgba(26, 18, 16, 0.55);
}
.lb-prev { left: 0.5rem; }
.lb-next { right: 0.5rem; }

/* ---------- Catering ---------- */
.catering { background: var(--mole-2); overflow: hidden; isolation: isolate; }
.catering-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1;
  opacity: 0.12; filter: grayscale(0.4);
}
.offer-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.offer-list h3 {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: 1.6rem; line-height: 1; margin-bottom: 0.6rem;
}
.offer-list li { border-left: 3px solid var(--achiote); padding-left: 1.1rem; }
.offer-list li:nth-child(2) { border-color: var(--talavera); }
.offer-list li:nth-child(3) { border-color: var(--nopal); }
.offer-list p { color: var(--masa-dim); }
.catering-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 3rem; }
.hotline { color: var(--masa-dim); }
.hotline a { color: var(--masa); font-weight: 700; border-bottom: 1px solid var(--achiote); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 0.4rem; margin-bottom: 1.1rem; }
.field label { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em; color: var(--masa-dim); }
.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(243, 231, 211, 0.18);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(243, 231, 211, 0.32); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--maiz); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--masa-dim) 50%), linear-gradient(135deg, var(--masa-dim) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
.field select option { background: var(--mole-2); }
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--masa-faint); }
.field input[type="date"] { color-scheme: dark; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-side { border-top: 3px solid var(--maiz); padding-top: 1.5rem; }
.contact-side h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 2rem; line-height: 1.1; margin-bottom: 1rem; }
.contact-line {
  display: grid; gap: 0.1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.45rem; line-height: 1.05;
  transition: color 0.2s;
}
.contact-line small { font-family: var(--body); font-weight: 600; text-transform: none; font-size: 0.8rem; color: var(--masa-faint); letter-spacing: 0.02em; }
.contact-line:hover { color: var(--maiz); }
.contact-note { margin-top: 1.25rem; color: var(--masa-dim); font-size: 0.95rem; }

/* ---------- Story ---------- */
.story { background: var(--mole-2); }
.story-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.story-quote { margin: 2rem 0 2.5rem; padding-left: 1.25rem; border-left: 3px solid var(--achiote); }
.story-quote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; }
.story-quote cite { display: block; margin-top: 0.75rem; font-style: normal; font-size: 0.9rem; font-weight: 600; color: var(--maiz); letter-spacing: 0.04em; }

.timeline { border-left: 1px solid var(--line); margin-left: 4px; }
.tl-item { position: relative; padding: 0 0 2rem 1.75rem; }
.tl-item::before { content: ""; position: absolute; left: -5px; top: 0.45rem; width: 9px; height: 9px; background: var(--maiz); transform: rotate(45deg); }
.tl-year { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.85rem; color: var(--maiz); }
.tl-title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.5rem; line-height: 1.05; margin: 0.2rem 0 0.4rem; }
.tl-text { color: var(--masa-dim); font-size: 0.98rem; }

.story-photo { position: sticky; top: 96px; }
.story-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: var(--radius); }
.story-photo figcaption { margin-top: 0.9rem; color: var(--masa-dim); font-size: 0.95rem; }
.story-photo figcaption strong { color: var(--masa); }

.trompo-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; margin-top: clamp(5rem, 10vw, 8rem); }
.trompo-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); }
.trompo-grid p:not(.eyebrow) { color: var(--masa-dim); margin-bottom: 1rem; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.facts dt { font-family: var(--display); font-weight: 900; font-size: 2.6rem; line-height: 1; color: var(--maiz); text-transform: uppercase; }
.facts dd { color: var(--masa-dim); font-size: 0.92rem; margin-top: 0.2rem; }

/* ---------- Reviews ---------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.review { border-top: 1px solid var(--line); padding-top: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; }
.review blockquote { font-family: var(--serif); font-size: 1.4rem; line-height: 1.3; }
.review blockquote::before { content: "“"; color: var(--achiote-hi); }
.review blockquote::after { content: "”"; color: var(--achiote-hi); }
.review figcaption { display: grid; font-size: 0.9rem; }
.review figcaption span { color: var(--masa-faint); }

/* ---------- FAQ ---------- */
.faqs { background: var(--mole-2); }
.faq { border-bottom: 1px solid var(--line); }
.faq:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.35rem 0; font-weight: 600; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-weight: 800; font-size: 1.8rem; line-height: 1; color: var(--maiz); transition: transform 0.25s var(--ease); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--masa-dim); padding: 0 2.5rem 1.5rem 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
.footer-grid h4 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.85rem; color: var(--maiz); margin-bottom: 0.9rem; }
.footer-grid nav a, .footer-grid > div:last-child a { display: block; color: var(--masa-dim); padding: 0.2rem 0; width: fit-content; }
.footer-grid nav a:hover, .footer-grid > div:last-child a:hover { color: var(--masa); }
.footer-blurb { color: var(--masa-dim); max-width: 36ch; margin-top: 1rem; font-size: 0.95rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-size: 0.85rem; color: var(--masa-faint);
}
.footer-bottom a { color: var(--masa-dim); border-bottom: 1px solid var(--line); }
.footer-bottom a:hover { color: var(--maiz); border-color: var(--maiz); }

/* ---------- Mobile dock ---------- */
.mobile-dock { display: none; }

/* ---------- Toast ---------- */
.toast-container { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 100; display: grid; gap: 0.5rem; width: min(92vw, 440px); }
.toast {
  background: var(--masa); color: var(--mole); font-weight: 600; font-size: 0.95rem;
  padding: 0.9rem 1.1rem; border-radius: var(--radius); border-left: 4px solid var(--nopal);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  animation: toast-in 0.3s var(--ease);
  transition: opacity 0.3s, transform 0.3s;
}
.toast-error { border-left-color: var(--achiote); }
.toast.out { opacity: 0; transform: translateY(8px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-desktop, .header-cta { display: none; }
  .nav-toggle { display: block; }
  .mobile-drawer {
    display: grid; gap: 0.25rem;
    padding: 0 var(--gutter);
    background: rgba(26, 18, 16, 0.98);
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s var(--ease), padding 0.3s var(--ease);
  }
  .mobile-drawer.open { max-height: 320px; padding: 0.5rem var(--gutter) 1.25rem; border-bottom: 1px solid var(--line); }
  .mobile-drawer a { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.6rem; padding: 0.3rem 0; }
  .site-header:has(.mobile-drawer.open) { background: rgba(26, 18, 16, 0.98); }

  .contact-grid, .story-grid, .trompo-grid { grid-template-columns: 1fr; }
  .story-photo { position: static; max-width: 520px; }
  .offer-list { grid-template-columns: 1fr; gap: 1.75rem; }
  .review-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; padding-bottom: 64px; }
  .hero { padding: 110px 0 170px; min-height: calc(100svh - 60px); }
  .hero::before { background: linear-gradient(0deg, var(--mole) 8%, rgba(26, 18, 16, 0.7) 55%, rgba(26, 18, 16, 0.35) 100%); }
  .hero-img { object-position: 62% center; }
  .hero-next { grid-template-columns: auto 1fr auto; row-gap: 0.25rem; }
  .hn-label { grid-row: 1; }
  .hn-where { grid-column: 1 / 3; grid-row: 2; font-size: 1.3rem; }
  .hn-when { grid-column: 1 / 3; grid-row: 3; font-size: 0.85rem; }
  .hn-arrow { grid-column: 3; grid-row: 1 / 4; }

  .stop { grid-template-columns: 64px 1fr; gap: 0.25rem 1rem; align-items: start; }
  .stop-day { font-size: 2.5rem; }
  .stop-side { grid-column: 2; justify-items: start; text-align: left; grid-auto-flow: column; justify-content: start; gap: 1.25rem; margin-top: 0.4rem; }
  .papel span:nth-child(n+9) { display: none; }
  .two-col { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }

  .mobile-dock {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; inset: auto 0 0 0; z-index: 40; height: 60px;
    background: rgba(26, 18, 16, 0.96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .mobile-dock a {
    display: grid; place-items: center;
    font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; font-size: 1rem;
  }
  .mobile-dock a + a { border-left: 1px solid var(--line); }
  .mobile-dock a:last-child { background: var(--achiote); color: #fff8ef; }
  .toast-container { bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
