/* ══════════════════════════════════════════════════════════════
   MAS KM0 · sistema «Parada» (portada i productes)
   · Boldonse: només paraules gegants, xifres i la cinta
   · Instrument Sans: titulars (700) i cos (400)
   · DM Mono: etiquetes de parada (12px, versaletes)
   · Colors: groc MAS #f2c200 · tinta #1d1d1b · paper #f3eee2
   ══════════════════════════════════════════════════════════════ */

:root { --groc: #f2c200; --tinta: #1d1d1b; --paper: #f3eee2; --gutter: clamp(16px, 3.4vw, 44px); }
body { background: var(--groc); color: var(--tinta); font-family: "Instrument Sans", sans-serif; }
::selection { background: var(--tinta); color: var(--groc); }
:focus-visible { outline: 2px dashed currentColor; outline-offset: 4px; }

.etiq { font: 400 12px/1.35 "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }

/* Navegació */
.nav { position: absolute; inset: 0 0 auto 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px var(--gutter); }
.nav .marca { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav .logo { width: 78px; height: auto; } .nav .logo path { fill: currentColor; }
.nav .km { background: var(--tinta); color: var(--groc); padding: 6px 9px 5px; border-radius: 4px; }
.nav .dreta { display: flex; align-items: center; gap: 18px; }
.nav .enllac { text-decoration: none; font-weight: 700; font-size: 15px; padding: 12px 4px; }
.nav .enllac:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Botons */
.boto { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--tinta); color: var(--groc); font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .2s cubic-bezier(.2,.8,.2,1); }
.boto:hover { transform: translateY(-2px) rotate(-1.5deg); }
.boto.gran { min-height: 60px; padding: 0 30px; font-size: 18px; }
.boto.groc { background: var(--groc); color: var(--tinta); }
.boto.linia { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.boto .fletxa { transition: transform .2s; } .boto:hover .fletxa { transform: translateX(4px); }

/* Cinta de dades */
.cinta { position: absolute; z-index: 35; left: 0; right: 0; bottom: 0; height: 64px; background: var(--tinta); color: var(--groc); overflow: hidden; display: flex; align-items: center; }
.cinta .pista { display: flex; flex: none; white-space: nowrap; will-change: transform; }
.cinta span { font: 400 19px/1 "Boldonse", sans-serif; letter-spacing: -.01em; padding-right: 1.4em; }
.cinta span i { font-style: normal; display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: currentColor; margin: 0 0 .1em 1.4em; vertical-align: middle; }

/* Segell giratori */
.segell { position: absolute; z-index: 30; width: 132px; height: 132px; background: var(--groc); border-radius: 50%; }
.segell svg { width: 100%; height: 100%; animation: gira 22s linear infinite; }
.segell text { font: 400 10.4px "DM Mono", monospace; letter-spacing: .17em; text-transform: uppercase; fill: var(--tinta); }
.segell .centre { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font: 400 11px/1.25 "DM Mono", monospace; text-transform: uppercase; letter-spacing: .06em; }
.segell .centre b { display: block; font: 400 22px/1 "Boldonse", sans-serif; letter-spacing: -.02em; margin-bottom: 4px; }
@keyframes gira { to { transform: rotate(360deg); } }

/* Ingredients amb física */
.mon { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.ing { position: absolute; left: 0; top: 0; will-change: transform; pointer-events: auto; cursor: grab; touch-action: none; user-select: none; -webkit-user-drag: none;
  filter: drop-shadow(0 14px 14px rgba(60, 40, 0, .28)); }
.ing:active { cursor: grabbing; }
.ing.quiet { pointer-events: none; }

/* Fira */
.fira { background: var(--tinta); color: var(--groc); padding: clamp(72px, 10vw, 140px) var(--gutter); }
.fira .graella { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.fira .data { font: 400 clamp(64px, 12vw, 200px)/1.18 "Boldonse", sans-serif; letter-spacing: -.04em; }
.fira h2 { font-weight: 700; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.1; margin-top: 28px; max-width: 18ch; }
.fira dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; margin: 0; font-size: 17px; line-height: 1.4; color: var(--paper); }
.fira dt { font: 400 12px/1.9 "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--groc); }
.fira dd { margin: 0; }
.fira .accions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fira .pendent { opacity: .7; font-style: italic; }

/* Peu */
.peu { background: var(--tinta); color: var(--paper); padding: 0 var(--gutter) 40px; }
.peu .dins { max-width: 1320px; margin: 0 auto; border-top: 1px solid rgba(243, 238, 226, .2); padding-top: 32px; display: flex; flex-wrap: wrap; gap: 24px; align-items: end; justify-content: space-between; font-size: 15px; line-height: 1.5; }
.peu img { width: 92px; height: auto; }
.peu a { text-underline-offset: 3px; }

@media (max-width: 820px) {
  .nav .dreta .etiq, .nav .enllac { display: none; }
  .nav .boto { min-height: 44px; padding: 0 16px; font-size: 14px; }
  .cinta { height: 56px; } .cinta span { font-size: 16px; }
  .fira .graella { grid-template-columns: 1fr; }
  .fira dl { font-size: 16px; }
}
