/* Smog Junkies SMG — colors lifted from the shop's street sign (red / blue) and business card (yellow). */
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url(/fonts/oswald-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

:root {
  --red: #e0122f;
  --blue: #1a2fc4;
  --blue-dark: #0f1c80;
  --yellow: #ffd60a;
  --ink: #111318;
  --muted: #4a5060;
  --line: #d9dce3;
  --paper: #ffffff;
  --wash: #f3f4f7;
  --radius: 14px;
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --bar: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 12px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom)); /* room for the mobile action bar */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0 0 .4em; letter-spacing: .01em; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 5vw, 2.3rem); text-transform: uppercase; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--ink); padding: 10px 14px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); }
.tap { display: inline-flex; align-items: center; min-height: 44px; }

/* ── top strip ───────────────────────────── */
.topbar { background: var(--ink); color: #fff; font-size: 15px; }
.topbar .wrap { display: flex; gap: 12px 20px; align-items: center; justify-content: space-between; min-height: 44px; }
.topbar a { color: #fff; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.status::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #9aa0ab; }
.status.open::before { background: #2fd26b; animation: pulse 2.4s var(--ease-out) infinite; }
.status.closed::before { background: var(--red); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 210, 107, .55); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(47, 210, 107, 0); }
}
.lang { font-weight: 700; text-decoration: none; border: 1.5px solid rgba(255,255,255,.8); border-radius: 999px; padding: 4px 14px; min-height: 34px; display: inline-flex; align-items: center; transition: background .2s, color .2s; }
.lang:hover { background: #fff; color: var(--ink); }
@media (max-width: 819px) { .topbar .tel { display: none; } }

/* ── brand header ───────────────────────────── */
.brandbar { background: var(--blue); border-bottom: 1px solid rgba(255,255,255,.14); }
.brandbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand img { width: 48px; height: 48px; flex: none; transition: transform .5s var(--ease-out); }
.brand:hover img { transform: rotate(-8deg) scale(1.05); }
.wordmark { font: 700 1.75rem/0.95 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.wordmark small { display: flex; align-items: center; gap: 8px; font: 600 11px/1 var(--body); letter-spacing: .1em; white-space: nowrap; color: rgba(255,255,255,.78); margin-top: 6px; }
.wordmark b { background: var(--red); color: #fff; font: 700 12px/1 var(--display); letter-spacing: .08em; padding: 3px 6px; border-radius: 4px; }
.brandbar .since { color: rgba(255,255,255,.8); font-size: 14px; text-align: right; display: none; }
@media (min-width: 820px) { .brandbar .since { display: block; } .wordmark { font-size: 2rem; } .wordmark small { font-size: 12px; letter-spacing: .14em; } .brand img { width: 54px; height: 54px; } }

/* ── hero ───────────────────────────── */
.hero { background: var(--blue); color: #fff; padding: 30px 0 48px; overflow: hidden; }
.hero .wrap { display: grid; gap: 30px; align-items: center; }
.eyebrow { display: inline-block; background: var(--red); color: #fff; font-weight: 700; font-size: 13.5px; letter-spacing: .07em; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.3rem, 8.5vw, 3.7rem); text-transform: uppercase; margin-bottom: .25em; }
.hero h1 .price { color: var(--yellow); white-space: nowrap; }
.rating { margin: 0 0 16px; font-size: 15px; color: rgba(255,255,255,.92); }
.rating b { color: var(--yellow); }
.hero .lede { font-size: 1.12rem; max-width: 34em; }
.facts { list-style: none; padding: 0; margin: 16px 0 24px; display: grid; gap: 8px; font-weight: 600; }
.facts li { display: flex; gap: 10px; align-items: baseline; }
.facts li::before { content: "✓"; color: var(--yellow); font-weight: 900; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 22px;
  border-radius: 12px; font: 700 1.1rem/1.1 var(--body); text-decoration: none; border: 0; cursor: pointer;
  transition: transform .16s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.2); }
.btn:active { transform: translateY(0) scale(.97); box-shadow: none; transition-duration: .06s; }
.btn-call { background: var(--yellow); color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 2px #fff, 0 8px 18px rgba(0,0,0,.2); }
.btn-red { background: var(--red); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }

/* ── coupon ───────────────────────────── */
.coupon {
  position: relative;
  background: var(--yellow);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 24px 22px 20px;
  border: 3px dashed var(--ink);
  box-shadow: 0 10px 0 rgba(0,0,0,.18);
  max-width: 440px;
  width: 100%;
  justify-self: center;
}
.coupon .tag { font: 700 .9rem/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; }
.coupon .amount { font: 700 clamp(4rem, 18vw, 5.6rem)/1 var(--display); color: var(--blue-dark); margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.coupon .amount sup { font-size: .45em; vertical-align: .9em; }
.coupon .what { font: 700 1.35rem/1.2 var(--display); text-transform: uppercase; margin-bottom: 12px; }
.coupon ul { margin: 0 0 14px; padding-left: 1.1em; font-size: 15.5px; }
.coupon ul li { margin: 2px 0; }
.coupon .fine { font-size: 14px; color: #2b2d33; margin: 0; }
.coupon .who { font-size: 14px; border-top: 2px dashed rgba(0,0,0,.35); margin-top: 12px; padding-top: 10px; }
.coupon .es { display: block; font-size: 13.5px; color: #3a3d45; }

/* ── sections ───────────────────────────── */
section { padding: 56px 0; }
section.alt { background: var(--wash); }
.grid2 { display: grid; gap: 28px; }
.services { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.services li { background: var(--paper); border: 1.5px solid var(--line); border-left: 6px solid var(--red); border-radius: 10px; padding: 12px 14px; font-weight: 600; transition: transform .2s var(--ease-out), border-color .2s; }
.services li:hover { transform: translateY(-2px); border-left-color: var(--blue); }
.services li span { display: block; font-weight: 400; color: var(--muted); font-size: 15px; }

.reviews { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.review { margin: 0; background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; padding: 16px; }
.review .stars { color: #c98f00; letter-spacing: 2px; font-size: 18px; }
.review p { margin: 6px 0 8px; }
.review footer { color: var(--muted); font-size: 14.5px; font-weight: 600; }

.hours { width: 100%; border-collapse: collapse; font-size: 16.5px; }
.hours th, .hours td { text-align: left; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.today th, .hours tr.today td { font-weight: 800; color: var(--blue); }
.hours tr.today th::after { content: " · today"; font-weight: 600; font-size: 13px; color: var(--muted); }
html[lang="es"] .hours tr.today th::after { content: " · hoy"; }
.addr { font-style: normal; font-size: 1.1rem; margin-bottom: 14px; }
.phones { display: flex; flex-wrap: wrap; gap: 0 18px; }
.phones a { font-weight: 700; font-size: 1.15rem; min-height: 44px; display: inline-flex; align-items: center; }
.map { border: 0; width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; background: var(--wash); }

.faq details { border-bottom: 1.5px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--red); transition: transform .25s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: #2b2d33; padding-bottom: 6px; }
.faq details[open] p { animation: faq-in .3s var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }

.es-band { background: var(--red); color: #fff; padding: 26px 0; }
.es-band .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.es-band p { margin: 0; font: 700 1.4rem/1.2 var(--display); text-transform: uppercase; }

footer.site { background: var(--ink); color: #c9ccd4; padding: 28px 0 24px; font-size: 15px; }
footer.site a { color: #fff; min-height: 44px; display: inline-flex; align-items: center; }
footer.site .wrap { display: grid; gap: 6px; }

/* ── shop photo ── */
.shop .grid2 { align-items: center; }
.shop figure { margin: 0; }
.shop figure img { width: 100%; max-height: 520px; object-fit: cover; object-position: center 35%; border-radius: 14px; box-shadow: 0 12px 28px rgba(17,19,24,.18); }
@media (min-width: 820px) { .shop figure img { max-height: 560px; } }

/* ── mobile action bar ───────────────────────────── */
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: grid; grid-template-columns: 1fr 1fr 1fr; background: var(--ink); border-top: 3px solid var(--yellow); padding-bottom: env(safe-area-inset-bottom); animation: bar-in .5s .3s var(--ease-out) both; }
.actionbar a { color: #fff; text-decoration: none; text-align: center; font-weight: 700; font-size: 15px; padding: 8px 4px; min-height: var(--bar); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: background-color .15s; }
.actionbar a:active { background: #2a2d35; }
.actionbar a:first-child { background: var(--yellow); color: var(--ink); }
.actionbar svg { width: 22px; height: 22px; }
@keyframes bar-in { from { transform: translateY(100%); } }

/* ── motion: hero entrance + scroll reveal (off for reduced motion) ── */
@media (prefers-reduced-motion: no-preference) {
  .hero .copy > * { animation: rise .7s var(--ease-out) both; }
  .hero .copy > *:nth-child(2) { animation-delay: .06s; }
  .hero .copy > *:nth-child(3) { animation-delay: .12s; }
  .hero .copy > *:nth-child(4) { animation-delay: .18s; }
  .hero .copy > *:nth-child(5) { animation-delay: .24s; }
  .hero .copy > *:nth-child(6) { animation-delay: .3s; }
  .hero .coupon { animation: coupon-in .9s .2s var(--ease-out) both; }
  .coupon .amount { animation: pop .5s .75s var(--ease-out) both; }
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes coupon-in { from { opacity: 0; transform: translateY(28px) rotate(-4deg) scale(.96); } }
@keyframes pop { 0% { transform: scale(.9); } 60% { transform: scale(1.04); } 100% { transform: none; } }

@media (min-width: 820px) {
  body { padding-bottom: 0; }
  .actionbar { display: none; }
  .hero { padding: 44px 0 60px; }
  .hero .wrap { grid-template-columns: 1.15fr .85fr; }
  .hero .coupon { transform: rotate(1.5deg); }
  .grid2 { grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (min-width: 820px) and (prefers-reduced-motion: no-preference) {
  .hero .coupon { animation-name: coupon-in-tilt; }
  .hero .coupon:hover { transform: rotate(0deg) translateY(-3px); transition: transform .35s var(--ease-out); }
}
@keyframes coupon-in-tilt { from { opacity: 0; transform: translateY(28px) rotate(-3deg) scale(.96); } to { transform: rotate(1.5deg); } }

/* ── coupon page: whole coupon fits one phone screen; print gives a clean cut-out ── */
.coupon-page { padding-bottom: 0; }
.coupon-page .actionbar { display: none; }
.coupon-page .hero { padding: 18px 0 28px; }
.coupon-page .coupon { margin: 0 auto; padding: 18px 18px 16px; }
.coupon-page .coupon .amount { font-size: clamp(3.6rem, 16vw, 5rem); }
.coupon-page .coupon ul { font-size: 14.5px; margin-bottom: 10px; }
.coupon-page .coupon ul li { margin: 1px 0; }

@media print {
  body { padding: 0; background: #fff; }
  .topbar, .brandbar, .actionbar, .no-print, footer.site, .es-band { display: none !important; }
  .hero { background: #fff; color: #000; padding: 0; }
  .coupon { box-shadow: none; border-color: #000; background: #fff; transform: none !important; animation: none !important; }
  a { color: #000; text-decoration: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
