/* El Jefe — Late-Night Neon theme
   Rebrand = edit these variables. */
:root {
  --bg: #0c0b0e;
  --panel: #16141a;
  --panel-2: #1d1a22;
  --ink: #f6efe4;
  --muted: #b9afa1;
  --line: #2b2731;
  --neon: #ff7a1a;
  --neon-hot: #ff4d2e;
  --neon-soft: rgba(255, 122, 26, 0.14);
  --red: #e5303a;
  --ok: #3ddc84;
  --radius: 16px;
  --display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  /* clear the sticky action bar + iPhone home indicator */
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}

/* EN/ES toggle: <html class="es"> shows .es spans, hides .en */
html.es .en { display: none !important; }
html:not(.es) .es { display: none !important; }

img, svg { max-width: 100%; }

a { color: var(--neon); }

.wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 56px 0; }

h1, h2, h3 { line-height: 1.08; margin: 0; }

h2 {
  font-size: clamp(28px, 7vw, 40px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h2 .accent { color: var(--neon); text-shadow: 0 0 18px rgba(255, 122, 26, 0.45); }

.kicker {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 10px;
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px calc(10px);
  background: rgba(12, 11, 14, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
}

.brand svg { width: 30px; height: 30px; }

.lang-toggle {
  min-height: 44px;
  min-width: 84px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 8px 14px;
  cursor: pointer;
}

.lang-toggle .on { color: var(--neon); }

/* ---------- hero (phone-first: full screen, photo, one thumb) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 88px 0 56px;
  text-align: center;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(255, 122, 26, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(12, 11, 14, 0.78) 0%, rgba(12, 11, 14, 0.62) 45%, var(--bg) 97%);
}

.hero-content { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(40px, 12vw, 84px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.hero h1 .neon {
  display: block;
  color: var(--neon);
  text-shadow:
    0 0 8px rgba(255, 122, 26, 0.65),
    0 0 32px rgba(255, 122, 26, 0.4),
    0 0 72px rgba(255, 77, 46, 0.3);
}

.hero .sub {
  max-width: 520px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 4.4vw, 20px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge .dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--muted);
}

.badge.open { border-color: rgba(61, 220, 132, 0.4); }
.badge.open .dot { background: var(--ok); box-shadow: 0 0 10px rgba(61, 220, 132, 0.8); }
.badge.open .dot { animation: pulse 1.6s ease-in-out infinite; }
.badge.closed .dot { background: var(--red); }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.7; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .badge.open .dot { animation: none; }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(180deg, var(--neon), var(--neon-hot));
  color: #160902;
  box-shadow: 0 8px 30px rgba(255, 100, 30, 0.35);
}

.btn-ghost {
  border-color: var(--line);
  background: var(--panel);
  color: var(--ink);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
  padding: 0 12px;
}

.hero-tags span {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(22, 20, 26, 0.7);
}

/* ---------- order strip ---------- */
.order-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
}

.order-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 17px;
}

.order-card small {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
}

.order-card .go { color: var(--neon); font-size: 20px; }

.order-card.call {
  border-color: rgba(255, 122, 26, 0.5);
  background: linear-gradient(180deg, rgba(255, 122, 26, 0.14), rgba(255, 77, 46, 0.08));
}

.order-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- gallery (swipeable on phone) ---------- */
.gallery { padding: 8px 0 40px; }

.gallery .kicker { margin-bottom: 14px; }

.gallery-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 20px 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gallery-strip::-webkit-scrollbar { display: none; }

.gallery-strip figure {
  flex: 0 0 76%;
  max-width: 330px;
  margin: 0;
  scroll-snap-align: center;
}

.gallery-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: block;
}

.gallery-strip figcaption {
  margin-top: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}

.stock-note {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
  opacity: 0.75;
}

/* ---------- start here (Q4) ---------- */
.start-here { padding: 0 0 8px; }

.start-card {
  border: 1px solid rgba(255, 122, 26, 0.45);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 122, 26, 0.12), rgba(229, 48, 58, 0.06));
  padding: 22px;
  text-align: center;
}

.start-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neon);
}

.start-pick {
  margin-top: 10px;
  font-size: clamp(19px, 5vw, 24px);
  font-weight: 800;
  line-height: 1.3;
}

.start-note { margin-top: 8px; font-size: 14px; color: var(--muted); font-style: italic; }

/* ---------- why (Q7) ---------- */
.why-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }

.why-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 20px;
}

.why-title { font-weight: 900; font-size: 17px; text-transform: uppercase; letter-spacing: 0.03em; }

.why-card p { margin: 8px 0 0; font-size: 15px; color: var(--muted); }

/* ---------- jefe pull-quote (Q8) ---------- */
.jefe-quote {
  margin: 26px 0 0;
  padding: 24px;
  border-left: 4px solid var(--neon);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--panel);
  font-size: clamp(20px, 5.5vw, 26px);
  font-weight: 800;
  font-style: normal;
  line-height: 1.35;
}

.jefe-quote cite {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  font-style: italic;
  color: var(--muted);
}

/* ---------- menu ---------- */
.menu-group { margin-top: 34px; }

.menu-group h3 {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neon);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.menu-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px dashed var(--line);
}

.menu-item .name { font-weight: 800; font-size: 17px; }

.menu-item .desc {
  margin-top: 3px;
  font-size: 14.5px;
  color: var(--muted);
}

.menu-item .price {
  flex: 0 0 auto;
  font-weight: 900;
  font-size: 17px;
  color: var(--neon);
  white-space: nowrap;
}

.menu-item .price.ask { color: var(--muted); font-weight: 600; font-size: 13.5px; }

.star-item .name::after {
  content: "★";
  color: var(--neon);
  margin-left: 7px;
  font-size: 14px;
}

.menu-foot { margin-top: 18px; font-size: 13.5px; color: var(--muted); }

/* ---------- hours & location ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 24px; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 22px;
}

.hours-table { width: 100%; border-collapse: collapse; }

.hours-table td {
  padding: 9px 0;
  font-size: 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.hours-table tr:last-child td { border-bottom: none; }

.hours-table td:last-child { text-align: right; color: var(--muted); }

.hours-table tr.today td { color: var(--neon); font-weight: 800; }

.hours-table tr.today td:last-child { color: var(--neon); }

.late-callout {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--neon-soft);
  border: 1px solid rgba(255, 122, 26, 0.35);
  font-size: 14.5px;
  font-weight: 700;
}

.addr { font-style: normal; font-size: 16px; }

.addr strong { display: block; font-size: 18px; margin-bottom: 4px; }

.addr .hint { color: var(--muted); font-size: 14.5px; margin-top: 8px; }

.card .btn { margin-top: 18px; width: 100%; }

/* ---------- about ---------- */
.quote-row { display: grid; gap: 12px; margin-top: 26px; }

blockquote {
  margin: 0;
  padding: 18px 20px;
  border-left: 3px solid var(--neon);
  border-radius: 0 12px 12px 0;
  background: var(--panel);
  font-size: 16px;
  font-style: italic;
  color: var(--ink);
}

blockquote cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
}

.about-copy { color: var(--muted); margin-top: 16px; max-width: 60ch; }

.about-copy strong { color: var(--ink); }

/* ---------- catering ---------- */
.catering {
  text-align: center;
  background:
    radial-gradient(ellipse 70% 80% at 50% 120%, rgba(255, 122, 26, 0.16), transparent 65%);
}

.catering p { color: var(--muted); max-width: 52ch; margin: 14px auto 0; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 26px;
  font-size: 14.5px;
  color: var(--muted);
  text-align: center;
}

footer .nap { margin-bottom: 10px; }

footer .nap strong { color: var(--ink); }

footer .credits { font-size: 12px; opacity: 0.7; }

footer .credits a { color: var(--muted); }

/* ---------- sticky mobile action bar ---------- */
.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(12, 11, 14, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}

.action-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 54px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink);
  background: var(--panel-2);
  border: 1px solid var(--line);
}

.action-bar a .ico { font-size: 18px; line-height: 1; }

.action-bar a.order {
  background: linear-gradient(180deg, var(--neon), var(--neon-hot));
  color: #160902;
  border-color: transparent;
}

/* ---------- desktop ---------- */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .action-bar { display: none; }
  .split { grid-template-columns: 1.1fr 1fr; }
  .order-grid { grid-template-columns: 1fr 1fr; }
  .order-card.call { grid-column: 1 / -1; }
  .quote-row { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-strip {
    max-width: 980px;
    margin: 0 auto;
    overflow-x: visible;
    padding: 0 20px;
  }
  .gallery-strip figure { flex: 1 1 0; max-width: none; }
  .gallery .wrap, .stock-note.wrap { max-width: 980px; }
  section { padding: 72px 0; }
}
