/* ══════════════════════════════════════════════════════════════
   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; }
/* Idioma: CA | ES (el català és la portada per defecte; el castellà viu a es.html i productos.html) */
.idioma { display: flex; border-radius: 999px; background: var(--groc); box-shadow: inset 0 0 0 1.5px currentColor; }   /* opac: els objectes del hero hi poden caure al darrere */
.idioma a { min-width: 42px; min-height: 44px; display: grid; place-items: center; padding: 0 10px; border-radius: 999px; text-decoration: none;
  font: 400 12px/1 "DM Mono", monospace; letter-spacing: .08em; }
.idioma a[aria-current] { background: var(--tinta); color: var(--groc); }
.idioma a:not([aria-current]):hover { text-decoration: underline; text-underline-offset: 3px; }

/* 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; }

/* Tancament: el producte en quatre dades */
.tancament { background: var(--tinta); color: var(--groc); padding: clamp(72px, 10vw, 140px) var(--gutter); }
.tancament .graella { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.tancament .data { font: 400 clamp(44px, 6vw, 100px)/1.28 "Boldonse", sans-serif; letter-spacing: -.04em; }
.tancament h2 { font-weight: 700; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.1; margin-top: 28px; max-width: 18ch; }
.tancament .claims { list-style: none; margin: 0; padding: 0; display: grid; color: var(--paper); }
.tancament .claims li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(243, 238, 226, .18);
  font-weight: 700; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.3; }
.tancament .claims li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--groc); transform: translateY(-1px); }
.tancament .botiga { margin-top: 22px; color: var(--paper); font-size: 16px; line-height: 1.5; }
.tancament .botiga .etiq { color: var(--groc); margin-right: 12px; }
.tancament .botiga a { color: var(--groc); text-underline-offset: 3px; }
.tancament .accions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* 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; }
  .nav .dreta { gap: 8px; }
  .idioma a { min-width: 36px; padding: 0 8px; }
  .cinta { height: 56px; } .cinta span { font-size: 16px; }
  .tancament .graella { grid-template-columns: 1fr; }
  }
