:root {
  --sun: #F9CA18;
  --sun-clear: #f9ca1800;  /* sun at zero opacity, for the hero fade */
  --mango: #FE934B;
  --chile: #C8102E;
  --chile-dark: #a10d25;  /* links and button hover */
  --nopal: #2E5E3A;
  --carbon: #29241f;
  --crema: #FFF8EC;
  --muted: #5a5248;
  --rule: #e4dac9;
  --masa: #F6E9D2;      /* warm tortilla cream, Find Us */
  --jitomate: #CC3418;    /* tomato red: catering surface and Find Us heading (buttons stay chile) */
  --on-jitomate: #FFF3EA; /* body text on jitomate */
  --day-off: #f1e7d4;
  --day-off-text: #8f8474; /* closed-day names: deliberately faint, still 3:1 on the chip */
  --on-sun: #4a3714;
  --sun-rule: #b38a2c;      /* decorative dividers on the sun background */
  --sun-outline: #4a3714b3; /* control outlines on sun: --on-sun at 70%, clears 3:1 */
  --crema-50: #fff8ec80;    /* hover and pressed washes on the sun background */
  --crema-70: #fff8ecb3;
  --on-carbon-muted: #e6ddcf; /* footer */
  --on-carbon-faint: #cec5b7;
  --carbon-outline: #615b50;
  --carbon-rule: #4b463d;
  --on-green-muted: #e2e8d8;
  --on-green-rule: #4e7558;
  --font: "League Spartan", system-ui, sans-serif;
  --accent-font: "Bangers", "League Spartan", sans-serif;

  /* Type scale: five text steps plus one fluid step for mid-size headings (meat names, hours).
     The Bangers display sizes are set where they are used. */
  --text-xs: 13px;
  --text-sm: 15px;
  --text-md: 16px;
  --text-base: 18px;
  --text-lg: 20px;
  --text-title: clamp(24px, 2.4vw, 30px);

  /* Spacing scale, 4px-based. The number is the multiple of 4px. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  /* Rhythm shared by every section. */
  --section-pad: var(--space-24);   /* top and bottom of a section */
  --head-gap: var(--space-10);      /* heading block → section content */
  --feature-gap: clamp(32px, 5vw, 64px);    /* hero-style split: big photo ↔ content */
  --feature-photo: clamp(520px, 52vw, 680px); /* height of a hero-size photo */
  --gutter: clamp(20px, 4vw, 56px);

  /* Radii: boxes (buttons, cards, photos), chips (day strip, thumbnails), tiny tags, pills. */
  --radius: 14px;
  --radius-sm: 8px;
  --radius-xs: 4px;
  --radius-pill: 999px;

  --shadow: 0 1px 2px #29241f14, 0 12px 32px -12px #29241f40;
}
*, *::before, *::after { box-sizing: border-box; }
/* iOS Safari colors its status bar and toolbar from the page's background color (a solid
   color; gradients are ignored). Sun to match the hero; js/main.js switches it to carbon
   while the footer is on screen, so the bottom bar matches there. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { background-color: var(--sun); }
html.at-footer, html.at-footer body { background-color: var(--carbon); }
body { margin: 0; color: var(--carbon); font: 400 var(--text-base)/1.5 var(--font); }
::selection { background: var(--sun); color: var(--carbon); }
img, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 4px; }
h1, h2, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2 { font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
address { font-style: normal; }
[hidden] { display: none !important; }
.container, .hero-bar, .hero-inner { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
section[id] { scroll-margin-top: var(--space-4); }
:focus-visible { outline: 3px solid var(--nopal); outline-offset: 4px; border-radius: var(--radius-xs); }
.footer :focus-visible, .carne :focus-visible, .events :focus-visible { outline-color: var(--sun); }
main:focus { outline: none; }
.skip-link { position: absolute; top: var(--space-3); left: var(--space-3); z-index: 10; padding: var(--space-3) var(--space-5); background: var(--crema); transform: translateY(-180%); }
.skip-link:focus-visible { transform: none; }
/* One line-icon style for the whole site. */
.icon { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* One section voice: Bangers headline, then a semibold 20px lead line, then regular 18px
   detail lines (the address/corner pairing in Find Us). Each section sets its own colors. */
.section-title { font-family: var(--accent-font); font-weight: 400; font-size: clamp(52px, 6vw, 80px); line-height: .95; letter-spacing: .02em; text-transform: uppercase; }
.section-intro { max-width: 52ch; margin-top: var(--space-4); font-size: var(--text-lg); font-weight: 600; line-height: 1.4; }

/* Buttons. Three heights: red primary 56px, outlined pills 48px, plain nav links 44px. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 56px; padding: var(--space-3) var(--space-6); border: 0; border-radius: var(--radius); background: var(--chile); color: var(--crema); text-decoration: none; font-weight: 600; font-size: var(--text-base); line-height: 1.2; transition: background-color .18s, transform .18s cubic-bezier(.2, .8, .2, 1); }
.btn:hover { background: var(--chile-dark); transform: translateY(-1px); }
.btn:active { transform: none; }

/* Icon + label pairs: trim the font's extra top/bottom space so the label centers on the icon. */
.btn > span, .ig-link > span, .social a span, .cashapp-link > span { line-height: 1; text-box: trim-both cap alphabetic; }
@supports not (text-box: trim-both cap alphabetic) {
  .btn > span, .ig-link > span, .social a span, .cashapp-link > span { padding-top: .08em; }
}

/* Hero */
/* Solid sun along the top edge (meets Safari's status bar seamlessly), fading into the
   live site's sun-to-mango diagonal. */
.hero { background: linear-gradient(to bottom, var(--sun) 0, var(--sun) 40px, var(--sun-clear) 320px), linear-gradient(135deg, var(--sun), var(--mango)); padding-top: env(safe-area-inset-top); }
.hero-bar { min-height: 80px; padding-top: var(--space-3); padding-bottom: var(--space-1); display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); }
.hero-nav { display: flex; gap: var(--space-1); margin-left: calc(-1 * var(--space-4)); font-size: var(--text-md); font-weight: 500; }
.hero-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-4); border-radius: var(--radius-pill); text-decoration: none; transition: background-color .18s; }
.hero-nav a:hover { background: var(--crema-50); }
.hero-nav a:active { background: var(--crema-70); }
.lang-toggle { display: flex; align-items: center; gap: var(--space-2); min-height: 48px; padding: 0 var(--space-4); border: 1px solid var(--sun-outline); border-radius: var(--radius-pill); background: transparent; color: var(--on-sun); font: 500 var(--text-sm) var(--font); cursor: pointer; transition: background-color .18s; }
.lang-toggle:hover { background: var(--crema-50); }
.lang-toggle:active { background: var(--crema-70); }
.lang-toggle .is-active { color: var(--chile-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.lang-sep { color: var(--sun-rule); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: var(--feature-gap); align-items: center; padding-top: var(--space-4); padding-bottom: var(--space-16); }

.brand { display: flex; align-items: center; gap: var(--space-5); }
.hero-logo { flex: none; width: 128px; height: auto; }
/* The mascot's visual weight sits low (the banner), so the text drops a little below box-center. */
.hero-title { display: grid; gap: var(--space-1); padding-top: var(--space-4); font-weight: 400; }
/* Lettered like the truck's sign (from the live site): chile red over an offset crema copy. */
.hero-name { font-family: var(--accent-font); font-size: clamp(46px, 5.4vw, 72px); line-height: .95; letter-spacing: .02em; color: var(--chile); text-shadow: .04em .04em 0 var(--crema); }
.hero-tagline { font-size: var(--text-lg); font-weight: 600; color: var(--on-sun); }

/* Visit panel: hours → Instagram → location */
.visit { margin-top: var(--space-6); padding: var(--space-1) var(--space-6); border-radius: var(--radius); background: var(--crema); box-shadow: var(--shadow); }
.visit-row { display: grid; gap: var(--space-3); padding-block: var(--space-6); }
.visit-row + .visit-row { border-top: 1px solid var(--rule); }
.visit-hours { font-size: var(--text-title); line-height: 1.1; letter-spacing: -.02em; }
.visit-label { font-size: var(--text-lg); font-weight: 600; line-height: 1.25; }
.visit-note { color: var(--muted); font-size: var(--text-base); line-height: 1.4; margin-top: calc(-1 * var(--space-1)); }
.visit-row .btn { margin-top: var(--space-1); }
/* Payment row: label, then the Cash App pill beside it where there is room, below it where not. */
.visit-pay { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }
.cashapp-link { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 48px; padding: 0 var(--space-4) 0 var(--space-3); border: 1.5px solid var(--rule); border-radius: var(--radius-pill); color: var(--carbon); font-size: var(--text-md); font-weight: 600; text-decoration: none; transition: border-color .18s, background-color .18s; }
.cashapp-link:hover { border-color: var(--carbon); background: var(--day-off); }
.cashapp-logo { flex: none; width: 28px; height: 28px; }
.cashapp-out { width: 18px; height: 18px; color: var(--muted); }
.where-link { text-decoration: none; }
.where-link:hover { text-decoration: underline; }
.inline-link { color: var(--chile-dark); font-weight: 500; }

/* The bottom padding leaves room for the "Today" tag that hangs under the strip. */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--space-2); padding-bottom: var(--space-6); }
/* Closed days are hatched out, like a blocked day on a calendar, so they read as unavailable
   rather than as buttons. Open days are solid green. */
.day { position: relative; display: grid; place-items: center; min-height: 48px; border-radius: var(--radius-sm); background: repeating-linear-gradient(135deg, var(--day-off) 0 5px, var(--rule) 5px 7px); color: var(--day-off-text); font-size: var(--text-sm); font-weight: 500; }
.day.is-open { background: var(--nopal); color: var(--crema); font-weight: 600; }
.day.is-today { box-shadow: 0 0 0 2px var(--crema), 0 0 0 4px var(--chile); }
.day-tag { position: absolute; padding: 0 var(--space-1); border-radius: var(--radius-xs); background: var(--crema); top: calc(100% + var(--space-2)); left: 50%; transform: translateX(-50%); color: var(--chile); font-size: var(--text-xs); font-weight: 700; line-height: 1.2; letter-spacing: .02em; white-space: nowrap; }
.ig-link { justify-self: start; display: inline-flex; align-items: center; gap: var(--space-2); min-height: 48px; padding: 0 var(--space-4) 0 var(--space-3); border: 1.5px solid var(--rule); border-radius: var(--radius-pill); color: var(--carbon); font-size: var(--text-sm); font-weight: 600; text-decoration: none; transition: border-color .18s, background-color .18s; }
.ig-link:hover { border-color: var(--carbon); background: var(--day-off); }

.hero-visual { min-width: 0; }
.hero-food { width: 100%; height: var(--feature-photo); object-fit: cover; object-position: center 56%; border-radius: 120px var(--radius) var(--radius) var(--radius); box-shadow: var(--shadow); }

/* La Carne */
.carne { padding-block: var(--section-pad); background: var(--nopal); color: var(--crema); }
/* The hero's split, mirrored: hero-size photo on the left; heading, intro and meat list
   stacked on the right and centered against the photo (the two 1fr rows take the slack). */
.carne-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto auto 1fr; grid-template-areas: "photo ." "photo title" "photo intro" "photo list" "photo ."; column-gap: var(--feature-gap); }
.carne-head { display: contents; }
.carne-title { grid-area: title; color: var(--sun); }
.carne-intro { grid-area: intro; color: var(--on-green-muted); }
.carne-photo { grid-area: photo; align-self: center; width: 100%; height: var(--feature-photo); object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.meats { grid-area: list; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; column-gap: var(--space-8); margin-top: var(--head-gap); }
.meat { display: grid; grid-template-columns: 12px 1fr; column-gap: var(--space-3); align-content: center; padding-block: var(--space-4); border-bottom: 1px solid var(--on-green-rule); }
.meat::before { content: ""; grid-row: 1; align-self: center; width: 8px; height: 8px; margin-left: 2px; background: var(--sun); transform: rotate(45deg); }
.meat-name { grid-column: 2; font-size: var(--text-title); font-weight: 600; line-height: 1.1; letter-spacing: .01em; text-transform: uppercase; }
.meat-desc { grid-column: 2; margin-top: var(--space-1); color: var(--on-green-muted); font-size: var(--text-base); line-height: 1.3; }
.meat:has(.meat-photo) { grid-template-columns: 64px 1fr; }
.meat:has(.meat-photo)::before { display: none; }
.meat-photo { grid-row: 1 / span 2; width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); }

/* Find Us */
.find { padding-block: var(--section-pad); background: var(--masa); }
/* Tomato red like the Catering surface; the brighter chile red stays on the button below. */
.find .section-title { color: var(--jitomate); }
/* The hero's split: heading, address and directions button over the map on the left,
   hero-size truck photo on the right. The map stretches so its bottom edge lines up with
   the photo's. */
.find-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); grid-template-rows: auto 1fr; grid-template-areas: "head photo" "card photo"; gap: var(--head-gap) var(--feature-gap); }
.find-heading { grid-area: head; }
/* Same pairing as the hero's visit panel: address line, then a quieter detail line. */
.find-address { margin-top: var(--space-4); font-size: var(--text-lg); font-weight: 600; line-height: 1.25; }
.find-corner { margin-top: var(--space-1); color: var(--muted); font-size: var(--text-base); line-height: 1.4; }
.find-heading .btn { margin-top: var(--space-6); }
.truck-frame { grid-area: photo; align-self: center; height: var(--feature-photo); overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
/* Anchored low so any cropping comes off the sky, not the truck. */
.truck-photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 90%; }
.place-card { grid-area: card; overflow: hidden; background: var(--crema); border-radius: var(--radius); box-shadow: var(--shadow); }
.map { width: 100%; height: 100%; min-height: 280px; border: 0; background: var(--rule); }

/* Catering */
.events { padding-block: var(--section-pad); background: var(--jitomate); color: var(--crema); }
.events .section-title { color: var(--sun); }
.events .section-intro { max-width: 36ch; color: var(--on-jitomate); }
/* The hero's split, mirrored like La Carne: hero-size photo left, copy and phone cards right. */
.events-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: var(--feature-gap); align-items: center; }
.events-photo { width: 100%; height: var(--feature-photo); object-fit: cover; object-position: 50% 70%; border-radius: var(--radius); box-shadow: var(--shadow); }
.events-note { margin-top: var(--space-4); font-size: var(--text-base); color: var(--on-jitomate); }
.calls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin-top: var(--head-gap); max-width: 560px; }
.call { display: flex; gap: var(--space-3); align-items: center; min-height: 76px; padding: var(--space-3) var(--space-4); border-radius: var(--radius); background: var(--crema); color: var(--carbon); text-decoration: none; box-shadow: var(--shadow); transition: background-color .18s, transform .18s cubic-bezier(.2, .8, .2, 1); }
.call:hover { background: var(--sun); transform: translateY(-1px); }
.call:active { transform: none; }
.call .icon { width: 24px; height: 24px; color: var(--chile); }
.call-text { display: grid; gap: 0; }
.call-label { font-size: var(--text-sm); font-weight: 600; color: var(--chile-dark); }
.call-number { font-size: var(--text-lg); font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Footer */
.footer { background: var(--carbon); color: var(--crema); padding-block: var(--space-16) calc(var(--space-8) + env(safe-area-inset-bottom)); }
.footer-inner { display: grid; justify-items: center; text-align: center; }
.footer-logo { width: 84px; }
.footer-brand { margin-top: var(--space-4); font-family: var(--accent-font); font-size: 36px; line-height: 1; letter-spacing: .02em; color: var(--sun); }
.footer-tagline { margin-top: var(--space-2); color: var(--on-carbon-muted); font-size: var(--text-sm); }
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-6); }
.social a { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 48px; padding: 0 var(--space-5) 0 var(--space-4); border: 1px solid var(--carbon-outline); border-radius: var(--radius-pill); color: var(--crema); font-size: var(--text-sm); font-weight: 600; text-decoration: none; transition: background-color .18s, border-color .18s, color .18s; }
.social a svg { flex: none; width: 22px; height: 22px; }
.social a:hover { background: var(--sun); border-color: var(--sun); color: var(--carbon); }
.copyright { width: 100%; margin-top: var(--space-10); padding-top: var(--space-5); border-top: 1px solid var(--carbon-rule); color: var(--on-carbon-faint); font-size: var(--text-xs); }

.notice { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--gutter); background: var(--chile); color: var(--crema); font-weight: 500; }
.notice-text { flex: 1; }
.notice-close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--crema); cursor: pointer; }

/* Narrow desktops: a slimmer photo column so the longest meat name (Campechanos) fits. */
@media (min-width: 900px) and (max-width: 1099px) {
  .carne-grid { grid-template-columns: minmax(0, .75fr) minmax(0, 1fr); }
}
@media (max-width: 899px) {
  :root { --section-pad: var(--space-16); --head-gap: var(--space-6); }
  .hero-bar { min-height: 68px; gap: var(--space-2); padding-top: var(--space-3); padding-bottom: var(--space-1); }
  .hero-nav { gap: 0; margin-left: calc(-1 * var(--space-3)); font-size: var(--text-sm); }
  .hero-nav a { padding: 0 var(--space-3); }
  .lang-toggle { padding-inline: var(--space-3); flex: none; }
  .hero-inner { grid-template-columns: 1fr; padding-top: var(--space-2); padding-bottom: var(--space-10); gap: var(--space-8); }
  .brand { gap: var(--space-3); }
  .hero-title { padding-top: var(--space-2); }
  .hero-logo { width: 76px; }
  .hero-name { font-size: clamp(36px, 10.5vw, 50px); }
  .hero-tagline { font-size: var(--text-md); }
  .visit { margin-top: var(--space-5); padding: var(--space-1) var(--space-4); }
  .visit-row { padding-block: var(--space-4); }
  .hero-food { height: 300px; border-radius: 64px var(--radius) var(--radius) var(--radius); }
  .carne-grid, .events-grid, .find-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .carne-grid { grid-template-rows: none; grid-template-areas: "title" "intro" "photo" "list"; gap: 0; }
  .carne-intro { max-width: 34ch; }
  .meats { grid-auto-rows: auto; column-gap: var(--space-6); }
  .carne-photo { height: auto; aspect-ratio: 16 / 10; margin-top: var(--head-gap); }
  .find-grid { grid-template-rows: none; grid-template-areas: "head" "card" "photo"; }
  .truck-frame { height: auto; aspect-ratio: 5 / 4; }
  .map { min-height: 0; height: 400px; }
  .events-photo { height: auto; aspect-ratio: 4 / 3; max-height: 420px; object-position: 50% 85%; }
  .events-body { order: -1; } /* heading first, like every other section */
}
@media (max-width: 599px) {
  .btn { width: 100%; }
  /* Compact pay row so label + Cash App pill share one line on phones (EN from 375px, ES from 390px).
     The out-arrow goes; the Cash App logo already says the link leaves the site. */
  .visit-pay { column-gap: var(--space-3); }
  .visit-pay .visit-label { font-size: var(--text-base); }
  .cashapp-link { gap: 6px; padding: 0 14px 0 10px; font-size: var(--text-sm); }
  .cashapp-logo { width: 24px; height: 24px; }
  .cashapp-out { display: none; }
}
@media (max-width: 480px) {
  .meats { grid-template-columns: 1fr; }
  .calls { grid-template-columns: 1fr; }
  .day { min-height: 44px; font-size: var(--text-xs); }
  .week { gap: var(--space-1); }
}
@media (max-width: 400px) {
  .hero-nav { margin-left: calc(-1 * var(--space-2)); }
  .hero-nav a { padding: 0 var(--space-2); }
  .hero-tagline { font-size: var(--text-sm); white-space: nowrap; }
  /* One step down so the English label stays on one line on small phones. */
  .ig-link { gap: var(--space-1); padding: 0 var(--space-3) 0 var(--space-2); font-size: var(--text-xs); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.nowrap { white-space: nowrap; }
