/* =========================================================
   H&A Brothers — "Rótulo pintado de Miami"
   Ver DESIGN.md. Tokens → base → piezas del rótulo → secciones → motion
   ========================================================= */

:root {
  --wall: #ffc21a;
  --wall-deep: #f0a800;
  --red: #e3120b;
  --red-dark: #b80d07;
  --ink: #151111;
  --ink-wall: #2b2523;
  --paper: #fffdf6;
  --board: #1e2420;
  --chalk: #f4f1e8;
  --wood: #8a5a33;
  --wa: #1e9e50;

  --on-yellow-soft: #4a3a12;   /* texto secundario sobre amarillo (6.8:1) */
  --on-ink-soft: #d9d1c7;      /* texto secundario sobre muro oscuro */

  --f-sign: "Bungee", "Arial Black", Impact, sans-serif;
  --f-brush: "Yellowtail", "Brush Script MT", cursive;
  --f-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --border: 3px;
  --shadow: 5px 5px 0 var(--ink);
  --radius: 6px;

  --container: 1220px;
  --gutter: 18px;
  --header-h: 70px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-settle: cubic-bezier(0.22, 1, 0.36, 1);

  /* Estuco: ruido fino para que los muros se lean como pintura sobre pared */
  --stucco: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* Cordel de un letrero colgado: dos tramos y un clavo */
  --string: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 26' preserveAspectRatio='none'%3E%3Cpath d='M8 26 L50 4 L92 26' stroke='%23151111' stroke-width='2.5' fill='none' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --string-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 26' preserveAspectRatio='none'%3E%3Cpath d='M8 26 L50 4 L92 26' stroke='%23d9d1c7' stroke-width='2.5' fill='none' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--red); color: var(--ink);
  font: 400 17px/1.6 var(--font-body, var(--f-body));
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; box-shadow: 0 0 0 7px var(--paper); border-radius: 4px; }
::selection { background: var(--ink); color: var(--wall); }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: fixed; left: 16px; top: -80px; z-index: 100;
  background: var(--paper); border: var(--border) solid var(--ink); box-shadow: var(--shadow);
  padding: 10px 16px; font: 400 15px/1 var(--f-sign); transition: top 180ms var(--ease-out);
}
.skip:focus { top: 12px; }

/* ---------- Muros ---------- */
.wall { position: relative; background-image: var(--stucco); }
.wall--red    { background-color: var(--red); color: var(--paper); }
.wall--yellow { background-color: var(--wall); color: var(--ink); }
.wall--deep   { background-color: var(--wall-deep); color: var(--ink); }
.wall--ink    { background-color: var(--ink-wall); color: var(--paper); }
/* Junta entre muros: una franja de pintura de borde a borde */
.wall + .wall { border-top: 6px solid var(--ink); }

.section { padding: 88px 0 96px; }
@media (min-width: 960px) { .section { padding: 120px 0 128px; } }

/* ---------- Letras de rotulista ---------- */
.painted {
  --fill: var(--wall);
  font-family: var(--f-sign); font-weight: 400; text-transform: uppercase;
  line-height: 0.98; letter-spacing: 0.01em;
  color: var(--fill);
  -webkit-text-stroke: 0.11em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0.07em 0.08em 0 var(--ink);
}
.painted--yellow { --fill: var(--wall); }
.painted--red    { --fill: var(--red); }
.painted--paper  { --fill: var(--paper); }

.brush {
  font: 400 clamp(26px, 3.4vw, 36px)/1 var(--f-brush);
  color: var(--ink); rotate: -4deg; transform-origin: left bottom;
  display: inline-block; margin-bottom: 4px;
}
.brush--yellow { color: var(--wall); text-shadow: 2px 2px 0 var(--ink); }

/* ---------- Letreros (botones) ---------- */
.sign {
  --fill: var(--paper); --on: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  background: var(--fill); color: var(--on);
  border: var(--border) solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow);
  font: 400 16px/1 var(--f-sign); letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap;
  cursor: pointer; touch-action: manipulation; user-select: none;
  transition: translate 140ms var(--ease-out), box-shadow 140ms var(--ease-out), rotate 420ms var(--ease-settle), background-color 160ms ease;
}
.sign:active { translate: 4px 4px; box-shadow: 1px 1px 0 var(--ink); }
.sign--yellow { --fill: var(--wall); }
.sign--red    { --fill: var(--red); --on: var(--paper); }
.sign--paper  { --fill: var(--paper); }
.sign--wa     { --fill: var(--wa); --on: #fff; }
.sign--lg     { min-height: 60px; padding: 0 26px; font-size: 18px; }
.sign--block  { width: 100%; }
.sign .icon--wa { color: var(--wa); }

/* Letrero colgado de un clavo: el cordel es parte del botón */
.sign--hung { margin-top: 28px; transform-origin: 50% -26px; }
.sign--hung::before {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: calc(100% + var(--border)); height: 26px;
  background: var(--string) center / 100% 100% no-repeat; pointer-events: none;
}
.sign--hung::after {
  content: ""; position: absolute; left: 50%; bottom: calc(100% + 22px); width: 9px; height: 9px; translate: -50% 0;
  border-radius: 50%; background: var(--ink); box-shadow: inset -2px -2px 0 #4a4040;
}
.sign--tilt { rotate: 1.5deg; }

@media (hover: hover) and (pointer: fine) {
  .sign--yellow:hover { --fill: #ffd04a; }
  .sign--red:hover    { --fill: #f2271f; }
  .sign--paper:hover  { --fill: #fff; }
  .sign--wa:hover     { --fill: #22b05a; }
  .sign--hung:hover   { rotate: -2deg; }
  .sign--hung.sign--tilt:hover { rotate: 3deg; }
  .sign .icon:last-child:not(:first-child) { transition: translate 240ms var(--ease-out); }
  .sign:hover .icon:last-child:not(:first-child) { translate: 3px 0; }
}

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 40; height: var(--header-h);
  transition: background-color 220ms ease, box-shadow 220ms ease;
}
.header.is-scrolled, .header.is-open { background: var(--ink); box-shadow: 0 4px 0 var(--wall); }
.header__row { height: 100%; display: flex; align-items: center; gap: 20px; }
.header__logo img {
  height: 46px; width: auto;
  /* borde de calcomanía troquelada */
  filter: drop-shadow(2px 0 0 var(--paper)) drop-shadow(-2px 0 0 var(--paper)) drop-shadow(0 2px 0 var(--paper)) drop-shadow(0 -2px 0 var(--paper)) drop-shadow(3px 4px 0 rgba(21,17,17,0.55));
}
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.nav { display: none; }
.nav a:not(.sign) {
  white-space: nowrap;
  font: 700 15px/1 var(--f-body); font-stretch: 85%; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper);
  padding: 10px 2px; background: linear-gradient(var(--wall), var(--wall)) left bottom / 0 3px no-repeat;
  transition: background-size 240ms var(--ease-out);
}
.nav a.is-active, .nav a:not(.sign):hover { background-size: 100% 3px; }
.nav__cta { min-height: 44px; padding: 0 16px; font-size: 14px; box-shadow: 4px 4px 0 var(--ink); }

.lang {
  position: relative; display: inline-grid; grid-auto-flow: column; height: 42px; padding: 3px;
  background: var(--paper); border: var(--border) solid var(--ink); border-radius: var(--radius); box-shadow: 3px 3px 0 var(--ink);
  font: 400 14px/1 var(--f-sign);
  transition: translate 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
}
.lang:active { translate: 2px 2px; box-shadow: 1px 1px 0 var(--ink); }
.lang span { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; color: #6b625a; transition: color 180ms ease; }
.lang::before {
  content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: 36px; border-radius: 3px; background: var(--red);
  transition: translate 260ms var(--ease-out);
}
html[lang="es"] .lang::before { translate: 36px 0; }
html[lang="en"] .lang [data-lang-opt="en"], html[lang="es"] .lang [data-lang-opt="es"] { color: var(--paper); }

.menu-btn {
  display: grid; place-items: center; width: 46px; height: 46px;
  background: var(--wall); border: var(--border) solid var(--ink); border-radius: var(--radius); box-shadow: 3px 3px 0 var(--ink);
  transition: translate 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
}
.menu-btn:active { translate: 2px 2px; box-shadow: 1px 1px 0 var(--ink); }
.menu-btn .icon { grid-area: 1 / 1; width: 22px; height: 22px; stroke-width: 2.75; transition: opacity 160ms ease, rotate 240ms var(--ease-out); }
.menu-btn .icon--close { opacity: 0; rotate: -45deg; }
.header.is-open .menu-btn .icon--open { opacity: 0; rotate: 45deg; }
.header.is-open .menu-btn .icon--close { opacity: 1; rotate: 0deg; }

@media (max-width: 1023px) {
  .nav {
    display: flex; flex-direction: column; position: fixed; top: var(--header-h); left: 0; right: 0;
    padding: 12px var(--gutter) 28px; background: var(--ink); box-shadow: 0 4px 0 var(--wall);
    opacity: 0; translate: 0 -10px; visibility: hidden; pointer-events: none;
    transition: opacity 180ms ease, translate 260ms var(--ease-out), visibility 0s linear 260ms;
  }
  .header.is-open .nav { opacity: 1; translate: 0 0; visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .nav a:not(.sign) { font: 400 22px/1 var(--f-sign); letter-spacing: 0.02em; padding: 18px 0; border-bottom: 2px dashed rgba(255,253,246,0.18); background: none; }
  .nav__cta { margin-top: 24px; min-height: 56px; font-size: 17px; }
}
@media (min-width: 1024px) {
  :root { --header-h: 84px; --gutter: 32px; }
  .header__logo img { height: 56px; }
  .nav { display: flex; align-items: center; gap: clamp(12px, 1.4vw, 22px); margin-left: auto; }
  .nav__cta { margin-left: 6px; }
  .header__actions { margin-left: 0; }
  .menu-btn { display: none; }
}

/* ---------- Hero: muro rojo + vitrina ---------- */
.hero { padding: calc(var(--header-h) + 36px) 0 72px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; }
.hero__copy { display: grid; justify-items: start; gap: 20px; }
.hero__title { font-size: clamp(40px, 10.5vw, 84px); }
.hero__title span { display: block; }
.hero__title span + span { margin-top: 0.06em; }
.hero__sub { max-width: 46ch; font-size: 18px; line-height: 1.55; color: var(--paper); font-weight: 500; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero__ctas .sign:first-child { rotate: -2.5deg; }  /* el único letrero fuera de escuadra: la acción */
.hero__note { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--paper); }
.hero__note .icon { color: var(--wall); }

.window { margin: 0; position: relative; }
.window__glass {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3.1;
  border: 12px solid var(--ink); border-radius: 8px;
  box-shadow: inset 0 0 0 6px var(--red-dark), inset 0 0 0 9px var(--ink), 12px 12px 0 rgba(21,17,17,0.55);
  background: #ddd;
}
.window__glass img { position: relative; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.window__glass { isolation: isolate; }
/* repisa de la vitrina */
.window::after { content: ""; display: block; height: 16px; margin: 0 -14px; background: var(--ink); border-radius: 3px; box-shadow: 0 6px 0 rgba(21,17,17,0.35); }
/* reflejo del vidrio: una sola franja diagonal, como luz de la calle */
.window__glass::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 0 38%, rgba(255,255,255,0.16) 38% 47%, transparent 47% 52%, rgba(255,255,255,0.1) 52% 55%, transparent 55%);
}
.window__letters {
  position: absolute; top: 7%; left: 0; right: 0; z-index: 1;
  display: grid; justify-items: center; gap: 8px; text-align: center; padding-inline: 6%;
}
.window__l1 {
  font: 400 clamp(20px, 3.4vw, 36px)/1 var(--f-sign); text-transform: uppercase; color: var(--wall);
  -webkit-text-stroke: 0.12em var(--ink); paint-order: stroke fill; text-shadow: 0.06em 0.07em 0 var(--ink);
}
.window__l2 {
  font: 800 clamp(13px, 1.9vw, 18px)/1 var(--f-body); font-stretch: 85%; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--paper); text-shadow: 2px 2px 0 var(--ink), -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink);
}
.window__open {
  position: absolute; right: 6%; top: 34%; z-index: 1;
  padding: 8px 14px; background: var(--red); color: var(--paper);
  border: var(--border) solid var(--ink); border-radius: 4px; box-shadow: 3px 3px 0 var(--ink);
  font: 400 15px/1 var(--f-sign); text-transform: uppercase; rotate: 4deg;
}

.medals { display: flex; justify-content: center; gap: 10px; margin-top: -78px; position: relative; z-index: 2; }
.medal {
  display: grid; place-content: center; text-align: center; gap: 4px;
  width: 112px; height: 112px; border-radius: 50%; padding: 10px;
  background: var(--wall); color: var(--ink);
  border: 4px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
}
.medal:nth-child(2) { rotate: 4deg; translate: 0 10px; }
.medal:nth-child(3) { rotate: -3deg; }
.medal strong { font: 400 24px/1 var(--f-sign); font-variant-numeric: tabular-nums; }
.medal--makes strong { font-size: 17px; }
.medal--makes > span { font-size: 9.5px !important; line-height: 1.25; text-transform: none; letter-spacing: 0.02em; }
.medal > span { font: 800 10.5px/1.15 var(--f-body); font-stretch: 80%; letter-spacing: 0.06em; text-transform: uppercase; }
@media (min-width: 560px) {
  .medal { width: 140px; height: 140px; }
  .medal strong { font-size: 30px; }
  .medal > span { font-size: 12px; }
}
@media (max-width: 559px) {
  .hero__ctas { width: 100%; }
  .hero__ctas .sign { flex: 1 1 100%; }
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 0.92fr 1.08fr !important; }
  .hero { padding: calc(var(--header-h) + 56px) 0 96px; min-height: min(100svh, 980px); display: flex; align-items: center; }
  .hero__grid { grid-template-columns: 1.02fr 1fr; column-gap: 56px; }
  .medals { justify-content: flex-start; margin-top: -70px; margin-left: -56px; }
  .hero__title { font-size: clamp(54px, 5.6vw, 80px); }
}

/* ---------- Encabezados de sección ---------- */
.head { display: grid; justify-items: start; gap: 14px; margin-bottom: 56px; }
.head--center { justify-items: center; text-align: center; }
.head--center .brush { transform-origin: center bottom; }
.head__title { font-size: clamp(34px, 6.4vw, 64px); max-width: 18ch; }
.head__sub { max-width: 52ch; font-size: 18px; font-weight: 500; }
.wall--yellow .head__sub, .wall--deep .head__sub { color: var(--on-yellow-soft); }
.wall--ink .head__sub { color: var(--on-ink-soft); }
.head__more { display: flex; justify-content: center; margin-top: 64px; }

/* ---------- Tendedero de etiquetas (piezas) ---------- */
.line {
  display: grid; grid-template-columns: 1fr; column-gap: 32px; row-gap: 44px;
  overflow-x: clip; padding: 0 24px 16px; margin-inline: -24px;
}
.line { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; row-gap: 34px; }
@media (max-width: 559px) {
  .line .tag__paper { --cut: 16px; }
  .line .tag__inner { --cut: 14.8px; padding: 30px 12px 14px; }
  .line .tag__hole { top: 8px; width: 14px; height: 14px; border-width: 2px; }
  .line .tag__make { margin-top: 12px; font-size: 11px; }
  .line .tag__title { font: 800 16px/1.12 var(--f-body); font-stretch: 75%; letter-spacing: 0.01em; overflow-wrap: break-word; hyphens: manual; }
  .line .tag__fits { font-size: 13px; line-height: 1.35; }
  .line .tag__stamp { font: 800 12px/1.1 var(--f-body); font-stretch: 75%; letter-spacing: 0.04em; padding: 6px 8px; border-width: 2px; margin-top: 12px; }
  .line .tag__body { filter: drop-shadow(4px 5px 0 rgba(21,17,17,0.9)); }
}
@media (min-width: 560px) { .line { column-gap: 32px; row-gap: 44px; } }
@media (min-width: 960px) { .line { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; } }
.tag { position: relative; padding-top: 30px; }
/* el cordel: cada etiqueta dibuja su tramo y juntos forman la línea de la fila */
.tag::before {
  content: ""; position: absolute; top: 12px; left: -50%; right: -50%; height: 4px; border-radius: 2px;
  background: repeating-linear-gradient(60deg, #7a5530 0 5px, #b78a52 5px 9px);
  box-shadow: 0 2px 0 rgba(21,17,17,0.35);
}
.tag__pin {
  position: absolute; top: 0; left: 50%; z-index: 3; translate: -50% 0;
  width: 18px; height: 46px; border-radius: 3px;
  background: linear-gradient(90deg, #c99a62 0 45%, #a77b46 45% 55%, #c99a62 55%);
  border: 2px solid var(--ink); box-shadow: 2px 3px 0 rgba(21,17,17,0.45);
}
.tag__pin::after { content: ""; position: absolute; left: -4px; right: -4px; top: 20px; height: 5px; background: #8b8f94; border: 2px solid var(--ink); border-radius: 2px; }
.tag__body {
  position: relative; rotate: var(--tilt, 0deg); transform-origin: 50% 0;
  filter: drop-shadow(6px 7px 0 rgba(21,17,17,0.9));
  transition: rotate 520ms var(--ease-settle);
}
.tag__paper {
  --cut: 26px;
  background: var(--ink); padding: var(--border);
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%, 0 var(--cut));
}
.tag__inner {
  --cut: 24.8px;
  position: relative; display: flex; flex-direction: column;
  padding: 40px 22px 24px; background: var(--paper);
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%, 0 var(--cut));
}
.tag__hole {
  position: absolute; top: 12px; left: 50%; translate: -50% 0; width: 18px; height: 18px; border-radius: 50%;
  background: var(--wall); border: 3px solid var(--ink);
}
.tag__photo { border: var(--border) solid var(--ink); border-radius: 3px; overflow: hidden; background: #111; aspect-ratio: 4 / 3; }
.tag__photo img { width: 100%; height: 100%; object-fit: cover; transition: scale 600ms var(--ease-out); }
.tag__make { margin-top: 18px; font: 800 13px/1 var(--f-body); font-stretch: 80%; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-dark); }
.tag__title { margin-top: 8px; font: 400 22px/1.08 var(--f-sign); text-transform: uppercase; }
.tag__link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.tag__fits { margin-top: 10px; font-size: 15px; color: #5a5148; }
.tag__fits b { color: var(--ink); font-weight: 700; }
.tag__stamp {
  align-self: flex-start; max-width: 100%; margin-top: 18px; padding: 8px 12px;
  border: 3px solid var(--red); border-radius: 4px; color: var(--red);
  font: 400 15px/1 var(--f-sign); text-transform: uppercase; rotate: -4deg;
  box-shadow: inset 0 0 0 2px rgba(227,18,11,0.18);
}
@media (hover: hover) and (pointer: fine) {
  .tag:hover .tag__body { rotate: calc(var(--tilt, 0deg) * -0.6); }
  .tag:hover .tag__photo img { scale: 1.05; }
}
.tag:focus-within .tag__body { rotate: 0deg; }

/* ---------- Placas pintadas (marcas, contacto) ---------- */
.plates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 16px; }
@media (min-width: 640px) { .plates { grid-template-columns: repeat(4, 1fr); gap: 40px 22px; } }
.plates li { display: flex; }
.plate {
  --fill: var(--paper); --on: var(--ink); --sub: #5a5148;
  position: relative; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  min-height: 118px; padding: 18px 18px 16px;
  background: var(--fill); color: var(--on);
  border: var(--border) solid var(--ink); border-radius: var(--radius); box-shadow: 6px 6px 0 #0c0a0a;
  transition: translate 140ms var(--ease-out), box-shadow 140ms var(--ease-out), rotate 520ms var(--ease-settle);
}
.plate:active { translate: 4px 4px; box-shadow: 2px 2px 0 #0c0a0a; }
.plate--yellow { --fill: var(--wall); --sub: var(--on-yellow-soft); }
.plate--red    { --fill: var(--red); --on: var(--paper); --sub: var(--paper); }
.plate--wa     { --fill: var(--wa); --on: #fff; --sub: #dcf5e5; }
.plate--paper  { --fill: var(--paper); }
.plate--hung { rotate: var(--tilt, 0deg); transform-origin: 50% -24px; margin-top: 24px; }
.plate--hung::before {
  content: ""; position: absolute; left: 16%; right: 16%; bottom: calc(100% + var(--border)); height: 24px;
  background: var(--string-light) center / 100% 100% no-repeat; pointer-events: none;
}
.plate__name { font: 400 clamp(22px, 3vw, 30px)/1 var(--f-sign); text-transform: uppercase; overflow-wrap: anywhere; }
.plate__go, .plate__value { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--sub); }
.plate__go .icon { width: 16px; height: 16px; transition: translate 240ms var(--ease-out); }
.plate__label { font: 400 22px/1.05 var(--f-sign); text-transform: uppercase; }
.plate > .icon { width: 30px; height: 30px; }
@media (hover: hover) and (pointer: fine) {
  .plate--hung:hover { rotate: calc(var(--tilt, 0deg) * -1 - 1.5deg); }
  .plate:hover .plate__go .icon { translate: 3px 0; }
}

.cats__title { margin: 72px 0 22px; font: 400 22px/1 var(--f-sign); text-transform: uppercase; color: var(--wall); }
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .cats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .cats { grid-template-columns: repeat(6, 1fr); } }
.cats li { display: flex; }
.cat {
  flex: 1; display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--paper); color: var(--ink);
  border: var(--border) solid var(--ink); border-radius: var(--radius); box-shadow: 4px 4px 0 #0c0a0a;
  font: 800 14px/1.2 var(--f-body); font-stretch: 85%; letter-spacing: 0.03em; text-transform: uppercase;
  transition: border-color 160ms ease, background-color 160ms ease, translate 140ms var(--ease-out);
}
.cat:active { translate: 3px 3px; box-shadow: 1px 1px 0 #0c0a0a; }
.cat__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--wall); color: var(--ink); border: 2px solid var(--ink); }
@media (hover: hover) and (pointer: fine) { .cat:hover { background: #fff; } .cat:hover .cat__icon { background: var(--red); color: var(--paper); } }

/* ---------- Pasos ---------- */
.steps { display: grid; gap: 44px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 56px; } }
.step {
  position: relative; padding: 52px 26px 28px;
  background: var(--paper); border: var(--border) solid var(--ink); border-radius: var(--radius); box-shadow: 7px 7px 0 var(--ink);
}
.step:nth-child(2) { rotate: 1deg; }
.step:nth-child(3) { rotate: -0.8deg; }
.step__num {
  position: absolute; top: -30px; left: 22px; display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%; background: var(--red); border: var(--border) solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  font: 400 32px/1 var(--f-sign); color: var(--wall); -webkit-text-stroke: 0.12em var(--ink); paint-order: stroke fill;
}
.step h3 { font: 400 24px/1.05 var(--f-sign); text-transform: uppercase; margin-bottom: 10px; }
.step p { color: #4f463e; }
/* flecha pintada entre pasos */
@media (min-width: 900px) {
  .step + .step::before {
    content: ""; position: absolute; top: 50%; left: -50px; width: 44px; height: 28px; translate: 0 -50%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 28'%3E%3Cpath d='M2 15 C12 9 22 9 32 13' stroke='%23151111' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3Cpath d='M26 5 L40 14 L26 23' stroke='%23151111' stroke-width='4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  }
}

/* ---------- Pizarrón de pedidos ---------- */
.request { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; align-items: center; }
.request__copy { display: grid; justify-items: start; gap: 18px; }
.request__sub { color: var(--paper); font-size: 18px; font-weight: 500; max-width: 42ch; }
.request__call { margin-top: 10px; min-height: 64px; gap: 14px; text-transform: none; }
.request__call .icon { width: 26px; height: 26px; color: var(--red); }
.request__call span { display: grid; gap: 4px; text-align: left; }
.request__call small { font: 700 12px/1 var(--f-body); letter-spacing: 0.12em; text-transform: uppercase; color: #5a5148; }
.request__call b { font: 400 20px/1 var(--f-sign); }
@media (min-width: 1000px) { .request { grid-template-columns: 0.9fr 1.1fr; gap: 64px; } }

.board {
  padding: 14px; border-radius: 10px;
  background: repeating-linear-gradient(90deg, #8a5a33 0 7px, #7f522e 7px 9px, #93633b 9px 15px), var(--wood);
  border: var(--border) solid var(--ink); box-shadow: 10px 10px 0 var(--ink);
}
.board__inner {
  display: grid; gap: 22px; padding: 26px 20px 24px; border-radius: 3px; color: var(--chalk);
  background:
    radial-gradient(ellipse at 20% 15%, rgba(244,241,232,0.07), transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(244,241,232,0.05), transparent 50%),
    var(--board);
  box-shadow: inset 0 0 0 2px #121614;
}
@media (min-width: 560px) { .board__inner { padding: 34px 32px 30px; } }
.board__title { font: 400 clamp(38px, 6vw, 52px)/1 var(--f-brush); color: var(--chalk); rotate: -2deg; text-shadow: 0 0 1px rgba(244,241,232,0.6); }
.board__row { display: grid; gap: 22px; }
@media (min-width: 560px) {
  .board__row { grid-template-columns: 1fr 1fr; }
  .board__row--3 { grid-template-columns: 0.7fr 1fr 1fr; }
}
.chalk { display: grid; gap: 4px; min-width: 0; }
.chalk label { font: 700 13px/1 var(--f-body); font-stretch: 85%; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(244,241,232,0.82); }
.chalk input {
  width: 100%; min-height: 48px; padding: 8px 2px 6px;
  background: transparent; border: 0; border-bottom: 2px solid rgba(244,241,232,0.55); border-radius: 0;
  color: var(--chalk); font: 500 19px/1.2 var(--f-body);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.chalk input::placeholder { color: rgba(244,241,232,0.55); }
.chalk input:focus { outline: none; border-bottom-color: var(--wall); box-shadow: 0 2px 0 var(--wall); }
.chalk input[aria-invalid="true"] { border-bottom-color: #ff7a6e; box-shadow: 0 2px 0 #ff7a6e; }
.chalk:has(input[aria-invalid="true"]) label { color: #ff9b91; }
.board__error { padding: 10px 12px; border: 2px dashed #ff9b91; border-radius: 4px; color: #ffb3ab; font-weight: 700; font-size: 15px; }
.board .sign { margin-top: 6px; box-shadow: 5px 5px 0 #0b0e0c; }

/* ---------- Nosotros + franja de calificación ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
.window--small .window__glass { aspect-ratio: 4 / 3; box-shadow: 10px 10px 0 var(--ink); }
.about__copy { display: grid; justify-items: start; gap: 16px; }
.about__copy > p:not(.brush) { max-width: 56ch; font-size: 18px; color: #2c2416; }
.ticks { display: grid; gap: 12px; margin-top: 8px; }
.ticks li { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; }
.ticks .icon { width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: var(--red); color: var(--paper); stroke-width: 3.2; border: 2px solid var(--ink); }
@media (min-width: 960px) { .about { grid-template-columns: 1fr 1fr; gap: 80px; } }

.banner {
  display: grid; gap: 20px; justify-items: start; margin-top: 96px; padding: 28px 24px;
  background: var(--red); color: var(--paper);
  border: 4px solid var(--ink); border-radius: 8px; box-shadow: 9px 9px 0 var(--ink);
}
.banner__stars { display: flex; gap: 4px; }
.banner__stars .icon { width: 28px; height: 28px; color: var(--wall); stroke: var(--ink); stroke-width: 1.4; }
.banner h2 { font: 400 clamp(24px, 3.6vw, 36px)/1.05 var(--f-sign); text-transform: uppercase; }
.banner p { margin-top: 8px; font-weight: 600; color: var(--paper); }
@media (min-width: 960px) { .banner { grid-template-columns: auto 1fr auto; align-items: center; gap: 36px; padding: 32px 40px; } }

/* ---------- FAQ: avisos pegados con cinta ---------- */
.faq { display: grid; gap: 8px; }
@media (min-width: 1000px) { .faq { grid-template-columns: 0.75fr 1.25fr; gap: 64px; align-items: start; } .faq .head { position: sticky; top: calc(var(--header-h) + 40px); } }
.notices { display: grid; gap: 26px; }
.notice {
  position: relative; background: var(--paper); border-radius: 2px;
  box-shadow: 5px 6px 0 rgba(21,17,17,0.85);
}
.notice:nth-child(odd) { rotate: -0.6deg; }
.notice:nth-child(even) { rotate: 0.5deg; }
.notice::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 92px; height: 24px; translate: -50% 0; rotate: -3deg;
  background: rgba(233, 214, 160, 0.85); box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.notice summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 68px; padding: 18px 22px; cursor: pointer; list-style: none;
  font: 700 18px/1.35 var(--f-body);
}
.notice summary::-webkit-details-marker { display: none; }
.notice summary .icon { width: 26px; height: 26px; color: var(--red); stroke-width: 3; transition: rotate 260ms var(--ease-out); }
.notice[open] summary .icon { rotate: 45deg; }
.notice p { padding: 0 22px 22px; color: #4f463e; }
.notice[open] p { animation: note-in 260ms var(--ease-out); }
@keyframes note-in { from { opacity: 0; translate: 0 -4px; } }

/* ---------- Contacto ---------- */
.contact { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .contact { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
@media (min-width: 1024px) { .contact { grid-template-columns: repeat(4, 1fr); } }
.contact li { display: flex; }
.contact .plate { min-height: 170px; justify-content: flex-start; gap: 10px; }
.contact .plate > .icon { margin-bottom: 8px; }
.contact .plate--paper > .icon { color: var(--red); }
.contact .plate__value { overflow-wrap: anywhere; font-size: 15px; }

/* ---------- Footer ---------- */
.footer {
  position: relative; background: var(--ink); color: var(--on-ink-soft);
  padding: 72px 0 calc(32px + 80px);
}
.footer::before { /* toldo rayado */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 18px;
  background: repeating-linear-gradient(90deg, var(--red) 0 34px, var(--paper) 34px 68px);
  border-bottom: 3px solid var(--ink);
}
.footer__grid { display: grid; gap: 32px; }
.footer__brand img { width: min(280px, 80%); height: auto; margin-bottom: 14px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 4px 22px; align-content: start; }
.footer__nav a { padding: 8px 0; font-weight: 600; color: var(--paper); transition: color 160ms ease; }
.footer__nav a:hover { color: var(--wall); }
.footer__legal { display: grid; gap: 8px; margin-top: 48px; padding-top: 20px; border-top: 2px dashed rgba(255,253,246,0.18); font-size: 14px; color: #a9a097; }
@media (min-width: 860px) {
  .footer { padding-bottom: 32px; }
  .footer__grid { grid-template-columns: 1fr 1.4fr; align-items: center; }
  .footer__nav { justify-content: flex-end; }
  .footer__legal { grid-template-columns: 1fr auto; }
}

/* ---------- WhatsApp flotante ---------- */
.fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50;
  display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%;
  background: var(--wa); color: #fff; border: var(--border) solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  opacity: 0; translate: 0 14px; pointer-events: none;
  transition: opacity 220ms ease, translate 260ms var(--ease-out), box-shadow 140ms var(--ease-out);
}
.fab.is-visible { opacity: 1; translate: 0 0; pointer-events: auto; }
.fab.is-visible:active { translate: 3px 3px; box-shadow: 1px 1px 0 var(--ink); }
.fab .icon { width: 30px; height: 30px; }
@media (min-width: 860px) { .fab { right: 28px; bottom: 28px; } }

/* ---------- Motion: el letrero se columpia y se asienta ---------- */
/* Todo es visible por defecto; la única entrada es el balanceo de lo que cuelga. */
@keyframes swing {
  0%   { rotate: calc(var(--tilt, 0deg) + 9deg); }
  30%  { rotate: calc(var(--tilt, 0deg) - 5deg); }
  55%  { rotate: calc(var(--tilt, 0deg) + 2.4deg); }
  78%  { rotate: calc(var(--tilt, 0deg) - 0.9deg); }
  100% { rotate: var(--tilt, 0deg); }
}
.js .tag.is-in .tag__body { animation: swing 1300ms var(--ease-out) var(--d, 0ms) both; }
.js .plates .is-in .plate--hung { animation: swing 1300ms var(--ease-out) var(--d, 0ms) both; }
.hero__ctas.is-in .sign--hung:first-child { --tilt: -2.5deg; animation: swing 1400ms var(--ease-out) 200ms both; }
.hero__ctas.is-in .sign--hung.sign--tilt { --tilt: 1.5deg; animation: swing 1400ms var(--ease-out) 320ms both; }
/* tras el balanceo, quitar la animación para que el hover (transición de rotate) responda */
.settled .tag__body, .settled .plate--hung, .settled.sign--hung { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .tag.is-in .tag__body, .js .plates .is-in .plate--hung, .hero__ctas.is-in .sign--hung { animation: none; }
  .tag__body, .plate, .sign, .fab, .tag__photo img { transition-property: background-color, box-shadow, opacity, color; }
  .notice[open] p { animation: none; }
}
