/* Test "Quin element del Seguici et representa segons els problemes de ciutat del teu dia a dia?" — estils v2 (to de web festiva) */

/* Tipografies allotjades aquí (sense demanar-les a Google). Variables, subconjunt llatí. */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/montserrat-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("assets/fonts/raleway-latin.woff2") format("woff2");
}

:root {
  --negre: #161616;
  --negre-2: #0f0f0f;
  --or: #C1A14F;
  --or-clar: #F4D98B;
  --or-fosc: #7A5E1E;
  --vermell: #D11531;
  --vermell-fosc: #A70F26;
  --crema: #FBF6EA;
  --paper: #F6F4EF;
  --linia: #E7E2D6;
  --tinta: #1B1B1B;
  --tinta-suau: #5C5C5C;
  --blanc: #FFFFFF;

  --lila: #611B70;
  --lila-fosc: #430F4D;
  --lila-clar: #C79ED0;

  --font-titol: "Raleway", system-ui, sans-serif;
  --font-cos: "Montserrat", system-ui, sans-serif;

  --topbar-h: 84px;
  --accent: var(--or);

  --banderetes-fosc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='40' viewBox='0 0 96 40'%3E%3Cpath d='M0 3.5H96' stroke='%23161616' stroke-width='1.5'/%3E%3Cpath d='M5 4H27L16 31Z' fill='%23C1A14F'/%3E%3Cpath d='M37 4H59L48 31Z' fill='%23FBF6EA'/%3E%3Cpath d='M69 4H91L80 31Z' fill='%23161616'/%3E%3C/svg%3E");
  --banderetes-clar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='40' viewBox='0 0 96 40'%3E%3Cpath d='M0 3.5H96' stroke='%23161616' stroke-width='1.5'/%3E%3Cpath d='M5 4H27L16 31Z' fill='%23C1A14F'/%3E%3Cpath d='M37 4H59L48 31Z' fill='%23D11531'/%3E%3Cpath d='M69 4H91L80 31Z' fill='%23161616'/%3E%3C/svg%3E");
  --patro-vermell: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cpath d='M36 24l3 9 9 3-9 3-3 9-3-9-9-3 9-3z' fill='%23B8102A'/%3E%3Ccircle cx='0' cy='0' r='3' fill='%23B8102A'/%3E%3Ccircle cx='72' cy='0' r='3' fill='%23B8102A'/%3E%3Ccircle cx='0' cy='72' r='3' fill='%23B8102A'/%3E%3Ccircle cx='72' cy='72' r='3' fill='%23B8102A'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--negre);
  color: var(--tinta);
  font-family: var(--font-cos);
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; }
/* Títols que rep el focus en canviar de pantalla (lectors de pantalla): sense contorn. */
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
button { font: inherit; }

/* ---------- Tipografia comuna ---------- */

.kicker {
  display: block;
  margin: 0;
  font-family: var(--font-titol);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.kicker-or { color: var(--or); }
.kicker-fosc { color: var(--or-fosc); }

.kicker-espaiat {
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  color: var(--blanc);
}

@media (min-width: 600px) {
  .kicker-espaiat {
    font-size: 0.9rem;
    letter-spacing: 0.32em;
  }
}

.kicker-espaiat.kicker-fosc { color: var(--tinta); }

.titol-seccio {
  margin: 0 0 10px;
  font-family: var(--font-titol);
  font-weight: 800;
  font-size: clamp(1.8rem, 7vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--or);
}

.titol-or-fosc { color: var(--or-fosc); }

.ratlla {
  display: block;
  width: 56px;
  height: 2px;
  margin: 18px 0 24px;
  background: var(--or);
}

/* ---------- Botons ---------- */

.btn-or,
.btn-linia {
  position: relative;
  z-index: 0;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border: 2px solid var(--or);
  border-radius: 0;
  background: transparent;
  color: var(--blanc);
  font-family: var(--font-titol);
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-or::before,
.btn-linia::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--or);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.btn-or:hover,
.btn-or:focus-visible { color: var(--negre); }

.btn-or:hover::before,
.btn-or:focus-visible::before,
.btn-linia:hover::before,
.btn-linia:focus-visible::before { transform: scaleX(1); }

.btn-or:active,
.btn-linia:active { transform: scale(0.98); }

.btn-ple {
  background: var(--or);
  color: var(--negre);
}

.btn-ple::before { background: var(--negre); }

.btn-ple:hover,
.btn-ple:focus-visible { color: var(--or); }

.btn-linia {
  border-color: var(--negre);
  color: var(--negre);
}

.btn-linia::before { background: var(--negre); }

.btn-linia:hover,
.btn-linia:focus-visible { color: var(--blanc); }

/* ---------- Capçalera ---------- */

.capcalera {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
}

.capcalera-franja {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  overflow: hidden;
  background: #0B0B0B;
  color: #BDBDBD;
  font-family: var(--font-titol);
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.franja-oficial { color: var(--or); }

.franja-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}

.franja-socials a {
  position: relative;
  display: flex;
  color: var(--or);
  opacity: 0.9;
  transition: color 0.15s ease, opacity 0.15s ease;
}

/* Zona de toc de 36 px (la icona en fa 22): amb el dit, 22 px és massa poc. */
.franja-socials a::after {
  content: "";
  position: absolute;
  inset: -7px;
}

.franja-socials a:hover,
.franja-socials a:focus-visible {
  color: var(--or-clar);
  opacity: 1;
}

.franja-socials svg {
  width: 22px;
  height: 22px;
}

.capcalera-nav {
  position: relative;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--or);
}

.marca {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--negre);
  text-decoration: none;
}

.marca-espurna {
  flex: none;
  width: 26px;
  height: 26px;
  color: var(--blanc);
  animation: gira 14s linear infinite;
}

@keyframes gira {
  to { rotate: 360deg; }
}

.marca-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-titol);
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marca-text em {
  margin-top: 3px;
  font-style: normal;
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.34em;
}

.footer-marca {
  font-family: var(--font-titol);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blanc);
}

.footer-marca em {
  font-style: normal;
  color: var(--or);
}

.hamburguesa {
  display: grid;
  place-content: center;
  gap: 5px;
  width: 46px;
  height: 40px;
  padding: 0;
  border: 2px solid var(--negre);
  background: transparent;
  cursor: pointer;
}

.hamburguesa span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--negre);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-obert .hamburguesa span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-obert .hamburguesa span:nth-child(2) { opacity: 0; }
.menu-obert .hamburguesa span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  max-height: calc(100svh - var(--topbar-h));
  margin: 0;
  padding: 10px 0 18px;
  overflow: auto;
  list-style: none;
  background: rgba(15, 15, 15, 0.97);
  border-bottom: 2px solid var(--or);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.menu-obert .menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.menu a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  color: var(--blanc);
  font-family: var(--font-cos);
  font-size: 0.82rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.menu svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--or);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}

.menu a:hover svg,
.menu a:focus-visible svg { transform: translateY(-3px) scale(1.06); }

section[id] { scroll-margin-top: var(--topbar-h); }

/* ---------- Pantalles ---------- */

.screen { animation: aparicio 0.45s ease both; }

@keyframes aparicio {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Portada: hero ---------- */

.hero {
  --cercavila-h: 150px;
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: var(--topbar-h);
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 55% at 50% 32%, rgba(209, 21, 49, 0.28), transparent 70%),
    var(--negre);
  color: var(--blanc);
}

.hero-fons {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-fons::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 22, 22, 0.2) 0%, rgba(22, 22, 22, 0.55) 60%, rgba(22, 22, 22, 0.9) 100%);
}

.hero-boira {
  position: absolute;
  width: 62%;
  max-width: 540px;
  opacity: 0.16;
  filter: blur(2px);
  animation: deriva 16s ease-in-out infinite alternate;
}

.boira-1 { top: 6%; left: -20%; }
.boira-2 { top: 26%; right: -24%; animation-delay: -5s; }
.boira-3 { bottom: 16%; left: 8%; width: 48%; animation-delay: -10s; }

@keyframes deriva {
  from { transform: translate(0, 0) rotate(-3deg); }
  to { transform: translate(18px, -14px) rotate(3deg); }
}

.hero-contingut {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  max-width: 820px;
  margin: 0 auto;
  padding: 36px 22px 70px;
  text-align: center;
}

.hero-titol {
  margin: 0;
  font-family: var(--font-titol);
  font-weight: 500;
  font-size: clamp(1.25rem, 6.1vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--or);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.hero-sub {
  margin: 0 0 10px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
}

.kicker-blanc {
  font-family: var(--font-cos);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.92);
}

.diapos {
  display: grid;
  width: 100%;
}

.diapo {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s;
}

.diapo.actiu {
  opacity: 1;
  visibility: visible;
}

.diapo.actiu > * { animation: entra-titol 0.9s ease both; }
.diapo.actiu > :nth-child(2) { animation-delay: 0.12s; }
.diapo.actiu > :nth-child(3) { animation-delay: 0.24s; }
.diapo.actiu > :nth-child(4) { animation-delay: 0.36s; }

.diapos-punts {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
}

.punt {
  position: relative;
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid var(--or);
  background: transparent;
  transform: rotate(45deg);
  cursor: pointer;
  transition: background 0.3s ease;
}

.punt::after {
  content: "";
  position: absolute;
  inset: -12px;
}

.punt.actiu { background: var(--or); }

.fons-diapo {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.fons-diapo.actiu { opacity: 1; }

@keyframes entra-titol {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.rombe {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: calc(var(--cercavila-h) + 16px);
  width: 34px;
  height: 34px;
  margin-left: -17px;
  display: grid;
  place-items: center;
  color: var(--negre);
  animation: rebot 1.8s ease-in-out infinite;
}

.rombe::before {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--or);
  transform: rotate(45deg);
}

.rombe svg {
  position: relative;
  width: 18px;
  height: 18px;
}

@keyframes rebot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

/* ---------- Portada: cercavila ---------- */

.cercavila {
  position: relative;
  z-index: 1;
  height: var(--cercavila-h);
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent calc(100% - 14px), rgba(122, 94, 30, 0.14) calc(100% - 14px)),
    var(--crema);
  border-top: 3px solid var(--or);
}

.cercavila-pista {
  display: flex;
  align-items: flex-end;
  width: max-content;
  height: 100%;
  padding-bottom: 8px;
  animation: desfila 48s linear infinite;
}

.cercavila-pista img {
  height: 116px;
  width: auto;
  margin-right: 34px;
  transform-origin: 50% 100%;
  animation: camina 0.7s ease-in-out infinite alternate;
}

.cercavila-pista img:nth-child(odd) { animation-delay: -0.35s; }
.cercavila-pista img:nth-child(3n) { animation-duration: 0.85s; }

@keyframes desfila {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes camina {
  from { transform: translateY(0) rotate(-2.5deg); }
  to { transform: translateY(-6px) rotate(2.5deg); }
}

/* ---------- Figures per capes (cos + peces soltes) ---------- */

.figura-capes {
  position: relative;
  display: grid;
}

.figura-capes > img {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: auto;
}

.cos-sura { animation: sura 6s ease-in-out infinite; }

.cos-coceja {
  transform-origin: 62% 100%;
  animation: coceja 3.2s ease-in-out infinite;
}

.cos-repta {
  transform-origin: 50% 100%;
  animation: repta 1.8s ease-in-out infinite;
}

.cos-picoteja {
  transform-origin: 38% 70%;
  animation: picoteja 2.6s ease-in-out infinite;
}

@keyframes coceja {
  0%, 62%, 100% { rotate: 0deg; translate: 0 0; }
  72% { rotate: -5deg; translate: 0 -8px; }
  82% { rotate: 3deg; translate: 0 0; }
  90% { rotate: -1deg; }
}

@keyframes repta {
  0%, 100% { scale: 1 1; translate: 0 0; }
  50% { scale: 1.04 0.96; translate: 5px 0; }
}

@keyframes picoteja {
  0%, 55%, 100% { rotate: 0deg; }
  62% { rotate: 5deg; }
  68% { rotate: -1deg; }
  74% { rotate: 4deg; }
  80% { rotate: 0deg; }
}

.fx-confeti { animation: titil 1.9s ease-in-out infinite; }
.fx-estrelles { transform-origin: 50% 40%; animation: estrelles 2.4s ease-in-out infinite; }
.fx-mosques { animation: brunzit 0.42s linear infinite; }
.fx-pluja { animation: plovisqueja 1.5s ease-in-out infinite alternate; }

@keyframes titil {
  0%, 100% { opacity: 1; translate: 0 0; }
  50% { opacity: 0.4; translate: 0 -7px; }
}

@keyframes estrelles {
  0%, 100% { opacity: 1; scale: 1; }
  50% { opacity: 0.35; scale: 0.98; }
}

@keyframes brunzit {
  0% { translate: 0 0; }
  25% { translate: 3px -2px; }
  50% { translate: -2px 2px; }
  75% { translate: 2px 3px; }
  100% { translate: 0 0; }
}

@keyframes plovisqueja {
  from { opacity: 0.45; translate: 0 -5px; }
  to { opacity: 1; translate: 0 7px; }
}

/* ---------- Banderetes ---------- */

.banderetes {
  height: 40px;
  background-color: var(--vermell);
  background-image: var(--banderetes-fosc);
  background-repeat: repeat-x;
  background-position: center top;
}

.banderetes-paper,
#screen-resultat .banderetes {
  background-color: var(--paper);
  background-image: var(--banderetes-clar);
}

/* ---------- Portada: bloc vermell ---------- */

.bloc-vermell {
  position: relative;
  overflow: hidden;
  padding: 36px 24px 0;
  background-color: var(--vermell);
  background-image: var(--patro-vermell);
  color: var(--blanc);
  scroll-margin-top: var(--topbar-h);
}

.bloc-vermell .titol-seccio { color: var(--or-clar); }

.bloc-vermell-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.bloc-text {
  max-width: 560px;
}

.bloc-text p {
  margin: 0 0 16px;
  font-size: 1rem;
  line-height: 1.85;
}

.bloc-text .btn-or { margin-top: 10px; }

.bloc-text .nota {
  margin-top: 22px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.bloc-vermell-figura {
  width: min(78%, 420px);
  margin: 12px -8% -14px auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
  transform-origin: 50% 85%;
  animation: aliga-baixada 5.6s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

@keyframes sura {
  0%, 100% { translate: 0 0; rotate: -2deg; }
  50% { translate: 0 -12px; rotate: 2deg; }
}

/* Moviment propi de l'Àliga: no és un cos lleuger que floti, és una peça
   de llautó de 80 kg que porta una sola persona. S'inspira en "la baixada"
   real del ball (un cop de cap solemne cap avall, pausa, i recuperació
   majestuosa) en comptes d'un flotar genèric. */
@keyframes aliga-baixada {
  0%, 8% { translate: 0 0; rotate: -1deg; }
  38% { translate: 0 14px; rotate: 7deg; }
  52% { translate: 0 14px; rotate: 7deg; }
  80% { translate: 0 -7px; rotate: -3deg; }
  100% { translate: 0 0; rotate: -1deg; }
}

/* ---------- Portada: galeria ---------- */

.bloc-galeria {
  padding: 64px 18px 56px;
  background: var(--paper);
  text-align: center;
}

.galeria-cap .ratlla { margin: 18px auto 0; background: var(--or-fosc); }

.galeria {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 1100px;
  margin: 34px auto 0;
  padding: 0;
  list-style: none;
}

.carta {
  padding: 12px 10px 16px;
  background: var(--blanc);
  border: 1px solid var(--linia);
  transition: translate 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.carta:hover {
  translate: 0 -4px;
  border-color: var(--or);
  box-shadow: 0 14px 30px rgba(22, 22, 22, 0.1);
}

.carta-imatge {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  background: radial-gradient(circle, var(--tint, var(--crema)) 0 58%, transparent 59%);
}

.carta-imatge .figura-capes {
  width: 84%;
  transition: transform 0.4s ease;
}

.carta:hover .carta-imatge .figura-capes { transform: scale(1.07) rotate(-3deg); }

.carta-nom {
  margin: 0 0 4px;
  font-family: var(--font-titol);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tinta);
}

.carta-desquici {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--tinta-suau);
}

/* ---------- Portada: crida final ---------- */

.bloc-cta {
  padding: 76px 24px;
  text-align: center;
  color: var(--blanc);
  background-color: var(--vermell);
  background-image: var(--patro-vermell);
}

.bloc-cta .titol-seccio { color: var(--or-clar); }
.bloc-cta .kicker { margin-bottom: 12px; }

.bloc-cta-sub {
  max-width: 420px;
  margin: 12px auto 30px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
}

.bloc-cta .bloc-cta-lema {
  margin-top: -14px;
  font-weight: 700;
  color: var(--or-clar);
}

.bloc-cta .btn-or { border-color: var(--or-clar); }

/* ---------- Portada: informació pràctica ---------- */

.bloc-info {
  padding: 60px 20px 72px;
  background: #1D1D1D;
  color: var(--blanc);
  text-align: center;
}

.ratlla-centrada { margin: 18px auto 0; }

.info-llista {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 18px;
  max-width: 1000px;
  margin: 38px auto 0;
  padding: 0;
  list-style: none;
}

.info-item svg {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: var(--or);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.info-item h3 {
  margin: 12px 0 6px;
  font-family: var(--font-titol);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--or);
}

.info-item p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.js .info-llista .revela:nth-child(2) { transition-delay: 0.08s; }
.js .info-llista .revela:nth-child(3) { transition-delay: 0.16s; }
.js .info-llista .revela:nth-child(4) { transition-delay: 0.24s; }

/* ---------- Portada: manifest ---------- */

.ratlla-fosca { background: var(--or-fosc); }

.bloc-manifest {
  overflow: hidden;
  padding: 64px 20px 76px;
  background: linear-gradient(165deg, var(--lila) 0%, var(--lila-fosc) 100%);
  color: var(--blanc);
}

.bloc-manifest .titol-seccio,
.bloc-manifest .titol-manifest { color: var(--or-clar); }

.bloc-manifest .kicker-fosc { color: var(--lila-clar); }

.bloc-manifest .manifest-nota { color: rgba(255, 255, 255, 0.72); }

.bloc-manifest .ratlla-fosca { background: var(--or-clar); }

.manifest-cos-intro { margin-bottom: 6px; }

.manifest-cos-intro .manifest-lema {
  font-family: var(--font-titol);
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--or-clar);
}

.manifest-sencer { margin-bottom: 26px; }

.manifest-inner {
  display: grid;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.manifest-text > p {
  margin: 0 0 16px;
  line-height: 1.8;
}

.manifest-premis {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.manifest-premis li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--blanc);
  border: 1px solid var(--linia);
  border-left: 3px solid var(--or);
  color: var(--tinta);
  font-size: 0.92rem;
  line-height: 1.5;
}

.manifest-premis svg {
  flex: none;
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--or-fosc);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.manifest-nota {
  margin: 14px 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--tinta-suau);
}

.titol-manifest { font-size: clamp(1.6rem, 6.4vw, 2.4rem); }

.manifest-text .manifest-crida { font-size: 1.05rem; }

.manifest-premis { margin-top: 20px; }

.manifest-sencer {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.manifest-sencer summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-titol);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--or-clar);
}

.manifest-sencer summary::-webkit-details-marker { display: none; }

.manifest-sencer summary::after {
  content: "+";
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
}

.manifest-sencer[open] summary::after { content: "–"; }

.manifest-cos p {
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.8;
}

.manifest-cos .manifest-contrastos {
  padding-left: 14px;
  border-left: 3px solid var(--or-clar);
  font-family: var(--font-titol);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--or-clar);
}

/* Formulari d'Action Network: només se n'adapta l'aspecte, no el contingut. */

.formulari-marc {
  padding: 22px 18px 20px;
  background: var(--blanc);
  border: 1px solid var(--linia);
  border-top: 4px solid var(--or);
}

.formulari-estat {
  margin: 24px 0;
  text-align: center;
  color: var(--tinta-suau);
}

.formulari-alternativa { margin: 12px 0 0; }
.formulari-alternativa a { color: var(--or-fosc); font-weight: 700; }

.formulari-an #can_embed_form {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--tinta) !important;
  font-family: var(--font-cos) !important;
}

.formulari-an #can_main_col,
.formulari-an #can_sidebar {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.formulari-an #can_embed_form input[type="text"],
.formulari-an #can_embed_form input[type="email"],
.formulari-an #can_embed_form input[type="tel"],
.formulari-an #can_embed_form input[type="submit"],
.formulari-an #can_embed_form select {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.formulari-an #can_embed_form h2,
.formulari-an #can_embed_form h3,
.formulari-an #can_embed_form h4 {
  font-family: var(--font-titol) !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  color: var(--negre) !important;
}

/* El títol del formulari repeteix el del manifest, i la bandera espanyola del
   telèfon sobra: es treuen des d'aquí (Action Network no ho deixa configurar).
   Sense el desplegable, el prefix +34 continua per defecte i qui tingui un
   número estranger el pot escriure amb el seu prefix. */
.formulari-an #can_embed_form_inner > h2 { display: none !important; }
.formulari-an #can_embed_form .iti__flag-container { display: none !important; }

.formulari-an #can_embed_form label {
  font-family: var(--font-titol) !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  color: var(--tinta) !important;
}

.formulari-an #can_embed_form input[type="text"],
.formulari-an #can_embed_form input[type="email"],
.formulari-an #can_embed_form input[type="tel"],
.formulari-an #can_embed_form select {
  border: 1px solid #CFC8B8 !important;
  border-radius: 0 !important;
  background: var(--blanc) !important;
  color: var(--tinta) !important;
  font-family: var(--font-cos) !important;
  font-size: 16px !important;
}

.formulari-an #can_embed_form input[type="text"]:focus,
.formulari-an #can_embed_form input[type="email"]:focus,
.formulari-an #can_embed_form input[type="tel"]:focus,
.formulari-an #can_embed_form select:focus {
  border-color: var(--or) !important;
  outline: 2px solid rgba(193, 161, 79, 0.35) !important;
}

.formulari-an #can_embed_form input[type="submit"],
.formulari-an #can_embed_form .button {
  border: 2px solid var(--or) !important;
  border-radius: 0 !important;
  background: var(--or) !important;
  color: var(--negre) !important;
  font-family: var(--font-titol) !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  cursor: pointer;
}

.formulari-an #can_embed_form input[type="submit"]:hover,
.formulari-an #can_embed_form .button:hover {
  background: var(--negre) !important;
  color: var(--or) !important;
}

.formulari-an #can_embed_form a { color: var(--or-fosc) !important; }

/* Descàrregues que s'obren en signar */

.descarregues {
  margin-bottom: 18px;
  padding: 22px 18px;
  background: var(--negre);
  border-top: 4px solid var(--or);
  color: var(--blanc);
  animation: aparicio 0.5s ease both;
}

.descarregues .kicker { color: var(--or); }

.descarregues-titol {
  margin: 6px 0 16px;
  font-family: var(--font-titol);
  font-weight: 800;
  font-size: 1.4rem;
  text-transform: uppercase;
}

.descarrega {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid rgba(193, 161, 79, 0.5);
  color: var(--blanc);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.descarrega:hover,
.descarrega:focus-visible {
  background: rgba(193, 161, 79, 0.15);
  border-color: var(--or);
}

.descarrega svg {
  flex: none;
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--or);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.descarrega span {
  display: flex;
  flex-direction: column;
}

.descarrega small {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
}

.descarregues-nota {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}


/* ---------- Portada: crida a les descàrregues ---------- */

.bloc-descarrega {
  overflow: hidden;
  padding: 64px 20px 36px;
  color: var(--blanc);
  background:
    radial-gradient(ellipse 70% 60% at 80% 60%, rgba(209, 21, 49, 0.3), transparent 70%),
    var(--negre);
}

.descarrega-inner {
  display: grid;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.descarrega-text p:not(.kicker) {
  margin: 0 0 26px;
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
}

.descarrega-text .kicker { margin-bottom: 12px; }

.manifest-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 440px;
}

/* El cartell imprès i les il·lustracions soltes: exactament el que es descarrega.
   Res de mòbil ni de stickers — això ja no s'ofereix (validat 20-09). */

.cartell-mostra {
  width: 228px;
  height: auto;
  border-radius: 2px;
  box-shadow:
    0 0 0 1px rgba(193, 161, 79, 0.45),
    0 30px 60px rgba(0, 0, 0, 0.5);
  transform: rotate(-4deg);
  animation: sura 7s ease-in-out infinite;
}

.figura-solta {
  position: absolute;
  width: 100px;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.45));
  animation: sura 5s ease-in-out infinite;
}

.figura-solta-1 { top: 3%; left: 0; transform: rotate(-12deg); }
.figura-solta-2 { top: 26%; right: 0; transform: rotate(10deg); animation-delay: -1.6s; }
.figura-solta-3 { bottom: 4%; left: 4%; width: 116px; transform: rotate(8deg); animation-delay: -3.2s; }

/* ---------- Pantalles fosques (pregunta, transició) ---------- */

.pantalla-fosca {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: calc(var(--topbar-h) + 28px) 20px 40px;
  color: var(--blanc);
  background:
    radial-gradient(ellipse 80% 45% at 50% 0%, rgba(209, 21, 49, 0.22), transparent 70%),
    var(--negre);
}

.pregunta-wrap {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 34px;
}

.progress-segments {
  display: flex;
  gap: 6px;
}

.segment {
  position: relative;
  flex: 1;
  height: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
}

.segment::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--or);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.segment-fet::after { transform: scaleX(1); }

.pregunta-bloc.bloc-entra { animation: bloc-apareix 0.5s ease both; }

@keyframes bloc-apareix {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: none; }
}

.pregunta-text {
  margin: 0;
  font-family: var(--font-titol);
  font-weight: 600;
  font-size: clamp(1.45rem, 6.2vw, 2.1rem);
  line-height: 1.22;
  color: var(--blanc);
}

.respostes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.resposta-btn {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--blanc);
  font-family: var(--font-cos);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
  opacity: 0;
  animation: resposta-puja 0.45s ease forwards;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

@keyframes resposta-puja {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.lletra {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: -2px;
  border: 1px solid var(--or);
  color: var(--or);
  font-family: var(--font-titol);
  font-weight: 700;
  font-size: 0.82rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.resposta-btn:focus-visible {
  border-color: var(--or);
  background: rgba(193, 161, 79, 0.12);
}

.resposta-btn:focus-visible .lletra {
  background: var(--or);
  color: var(--negre);
}

@media (hover: hover) and (pointer: fine) {
  .resposta-btn:hover {
    border-color: var(--or);
    background: rgba(193, 161, 79, 0.12);
  }

  .resposta-btn:hover .lletra {
    background: var(--or);
    color: var(--negre);
  }
}

.resposta-btn:active { transform: scale(0.99); }

.resposta-btn.triada {
  border-color: var(--or);
  background: var(--or);
  color: var(--negre);
}

.resposta-btn.triada .lletra {
  background: var(--negre);
  border-color: var(--negre);
  color: var(--or);
}

.pregunta-figura {
  position: absolute;
  right: -8%;
  bottom: -2%;
  width: 46%;
  max-width: 300px;
  opacity: 0.1;
  pointer-events: none;
  animation: sura 7s ease-in-out infinite;
}

/* ---------- Transició ---------- */

#screen-transicio {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.transicio-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.transicio-cast {
  position: relative;
  width: 150px;
  height: 150px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--crema);
  box-shadow: 0 0 0 3px var(--or), 0 0 0 10px rgba(193, 161, 79, 0.15);
}

.transicio-cast img {
  position: absolute;
  inset: 14%;
  width: 72%;
  height: 72%;
  object-fit: contain;
  opacity: 0;
  animation: cicla-figures 2.1s ease-in-out infinite;
}

.transicio-cast img:nth-child(2) { animation-delay: 0.7s; }
.transicio-cast img:nth-child(3) { animation-delay: 1.4s; }

@keyframes cicla-figures {
  0%, 100% { opacity: 0; transform: scale(0.8) rotate(-8deg); }
  12%, 28% { opacity: 1; transform: scale(1) rotate(0); }
  40% { opacity: 0; transform: scale(0.8) rotate(8deg); }
}

.transicio-text {
  margin: 0;
  font-family: var(--font-titol);
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--blanc);
}

/* ---------- Resultat ---------- */

.res-hero {
  padding: calc(var(--topbar-h) + 30px) 20px 40px;
  text-align: center;
  color: var(--blanc);
  background:
    radial-gradient(circle at 50% 36%, color-mix(in srgb, var(--accent) 45%, transparent) 0, transparent 55%),
    var(--negre);
}

.resultat-brand { margin-bottom: 22px; }

.resultat-spotlight {
  position: relative;
  display: grid;
  place-items: center;
  width: min(72vw, 300px);
  aspect-ratio: 1;
  margin: 0 auto 26px;
}

.resultat-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--crema);
  box-shadow:
    0 0 0 3px var(--or),
    0 0 0 11px rgba(193, 161, 79, 0.16),
    0 24px 50px rgba(0, 0, 0, 0.5);
}

.resultat-figura {
  position: relative;
  width: 84%;
  animation: apareix-figura 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes apareix-figura {
  from { opacity: 0; transform: scale(0.5) rotate(-10deg); }
  to { opacity: 1; transform: none; }
}

.res-hero .kicker-espaiat { color: rgba(255, 255, 255, 0.75); }

.resultat-titol {
  margin: 8px 0 0;
  font-family: var(--font-titol);
  font-weight: 800;
  font-size: clamp(2rem, 9vw, 3.4rem);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--or);
}

.res-hero .ratlla { margin: 18px auto 20px; }

.resultat-desquici {
  max-width: 460px;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.6;
}

.resultat-badge {
  font-family: var(--font-titol);
  font-weight: 700;
  color: var(--or);
}

.res-cos {
  padding: 36px 20px 60px;
  background: var(--paper);
}

.res-cos > * {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.resultat-descripcio {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1.04rem;
  line-height: 1.85;
}

.resultat-reivindicacio {
  margin: 24px 0 0;
  font-size: 1.04rem;
  line-height: 1.7;
}

.resultat-reivindicacio .resultat-badge { color: var(--accent); }

.resultat-remat {
  margin-top: 24px;
  margin-bottom: 36px;
  padding-left: 16px;
  border-left: 3px solid var(--or);
  font-family: var(--font-titol);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--negre);
}

.resultat-crida {
  margin: 0 0 20px;
  font-size: 1rem;
  line-height: 1.7;
  text-align: center;
}

.resultat-versot {
  position: relative;
  overflow: hidden;
  margin: 0 0 36px;
  padding: 30px 26px 26px;
  background: var(--accent);
  text-align: center;
}

.resultat-versot::before {
  content: "\201C";
  position: absolute;
  top: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-titol);
  font-size: 6rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.22);
  pointer-events: none;
}


.resultat-versot .versot-text {
  position: relative;
  display: block;
  white-space: pre-line;
  font-family: var(--font-titol);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--blanc);
}

.compartir-row {
  margin-bottom: 30px;
  text-align: center;
}

.share-natiu {
  margin-top: 14px;
  width: 100%;
  max-width: 340px;
}

.compartir-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
}

.share-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: none;
  color: var(--tinta-suau);
  font-family: var(--font-titol);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.share-icon svg {
  width: 48px;
  height: 48px;
  padding: 13px;
  border-radius: 50%;
  background: var(--negre);
  color: var(--blanc);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.share-icon:hover svg,
.share-icon:focus-visible svg {
  background: var(--or);
  color: var(--negre);
}

.share-icon:active svg { transform: scale(0.92); }

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}


/* ---------- Peu ---------- */

.site-footer {
  padding: 40px 22px calc(96px + env(safe-area-inset-bottom, 0px));
  background: var(--negre-2);
  border-top: 1px solid rgba(193, 161, 79, 0.25);
  text-align: center;
  color: #9D9D9D;
}

.footer-logo {
  display: block;
  width: 110px;
  max-width: 60%;
  height: auto;
  margin: 0 auto 20px;
}

.site-footer p {
  max-width: 520px;
  margin: 4px auto;
  font-size: 0.76rem;
  line-height: 1.6;
}

.site-footer .footer-marca {
  margin-bottom: 14px;
  font-size: 1rem;
}

.site-footer .autoria {
  margin-top: 12px;
  font-weight: 600;
  color: #D0D0D0;
}

.site-footer a { color: var(--or); }

/* ---------- Aparició en fer scroll ---------- */

.js .revela {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js .revela.visible {
  opacity: 1;
  transform: none;
}

/* Variants amb una mica més de "rebot" a l'entrada, a l'estil de la web
   d'inspiració (WOW.js / animate.css: bounceInLeft pel text, bounce per
   la il·lustració). Només s'apliquen on se sol·liciten explícitament. */
.js .revela-esquerra {
  transform: translateX(-48px);
}

.js .revela-esquerra.visible {
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.22, 1.4, 0.36, 1);
}

.js .revela-bot {
  opacity: 0;
  transform: none;
  transition: none;
}

@keyframes revelaRebot {
  0% { opacity: 0; transform: scale(0.5) translateY(36px); }
  55% { opacity: 1; transform: scale(1.06) translateY(-10px); }
  75% { transform: scale(0.96) translateY(4px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.js .revela-bot.visible {
  animation: revelaRebot 0.85s cubic-bezier(0.3, 0.7, 0.4, 1) forwards;
}

/* L'Àliga té a més el seu propi balanceig continu (aliga-baixada):
   com que .revela-bot.visible substitueix l'animation sencera, cal
   tornar-la a encadenar aquí perquè no es quedi aturada un cop entra. */
.js .bloc-vermell-figura.revela-bot.visible {
  animation: revelaRebot 0.85s cubic-bezier(0.3, 0.7, 0.4, 1) forwards,
    aliga-baixada 5.6s cubic-bezier(0.45, 0, 0.2, 1) 0.85s infinite;
}

.js .galeria .carta.revela:nth-child(4n + 2) { transition-delay: 0.08s; }
.js .galeria .carta.revela:nth-child(4n + 3) { transition-delay: 0.16s; }
.js .galeria .carta.revela:nth-child(4n + 4) { transition-delay: 0.24s; }

/* ---------- Bombolles "lo lo lololo" ---------- */

.lo-bombolla {
  position: fixed;
  z-index: 50;
  pointer-events: none;
  font-family: var(--font-titol);
  font-weight: 800;
  color: var(--or);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  animation: lo-evapora 1.1s ease-out forwards;
}

@keyframes lo-evapora {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.6) rotate(var(--gir, 0deg)); }
  18% { opacity: 1; transform: translate(-50%, -50%) translateY(-10px) scale(1) rotate(var(--gir, 0deg)); }
  100% { opacity: 0; transform: translate(-50%, -50%) translateY(-90px) scale(1.35) rotate(var(--gir, 0deg)); filter: blur(2px); }
}

/* ---------- Botó de música ---------- */

.boto-so {
  position: fixed;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 2px solid var(--or);
  border-radius: 50%;
  background: rgba(22, 22, 22, 0.92);
  color: var(--or);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.boto-so:hover,
.boto-so:focus-visible { background: var(--negre); }

.boto-so:active { transform: scale(0.94); }

.so-text {
  font-family: var(--font-titol);
  font-weight: 700;
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.so-mut {
  width: 20px;
  height: 20px;
}

.so-eq {
  display: none;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}

.so-eq i {
  display: block;
  width: 4px;
  height: 100%;
  background: currentColor;
  transform-origin: bottom;
  animation: equalitzador 0.9s ease-in-out infinite alternate;
}

.so-eq i:nth-child(2) { animation-delay: -0.3s; animation-duration: 0.7s; }
.so-eq i:nth-child(3) { animation-delay: -0.6s; animation-duration: 1.1s; }

.boto-so.sonant .so-eq { display: flex; }
.boto-so.sonant .so-mut { display: none; }

@keyframes equalitzador {
  from { transform: scaleY(0.25); }
  to { transform: scaleY(1); }
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  padding: 11px 20px;
  border: 1px solid var(--or);
  background: var(--negre);
  color: var(--blanc);
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Pantalles grans ---------- */

@media (min-width: 760px) {
  .galeria {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }

  .carta-nom { font-size: 0.9rem; }
  .carta-desquici { font-size: 0.82rem; }

  .info-llista { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  :root { --topbar-h: 124px; }

  .capcalera-franja {
    padding: 0 32px;
    font-size: 0.64rem;
  }

  .capcalera-nav {
    height: 96px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto repeat(3, minmax(0, 1fr));
    align-items: center;
    padding: 0 24px;
    background: rgba(22, 22, 22, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(193, 161, 79, 0.25);
  }

  .hamburguesa { display: none; }

  .menu {
    display: contents;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .menu li:nth-child(-n + 3) { order: 1; }
  .menu li:nth-child(n + 4) { order: 3; }

  .menu a {
    padding: 8px 4px;
    font-size: 0.8rem;
  }

  .menu a:hover,
  .menu a:focus-visible { color: var(--or); }

  .marca {
    order: 2;
    flex-direction: column;
    gap: 6px;
    margin: 0 28px;
    color: var(--blanc);
    text-align: center;
  }

  .marca-espurna {
    width: 34px;
    height: 34px;
    color: var(--or);
  }

  .marca-text {
    align-items: center;
    font-size: 1.3rem;
  }

  .marca-text em {
    color: var(--or);
    font-size: 0.8rem;
  }

  .manifest-inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 56px;
  }

  .descarrega-inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
  }

  .bloc-descarrega { padding: 90px 40px 60px; }

  .cartell-mostra { width: 262px; }
  .figura-solta { width: 120px; }
  .figura-solta-3 { width: 138px; }

  .hero { --cercavila-h: 170px; }
  .hero-contingut { padding: 20px 22px 58px; }
  .cercavila-pista img { height: 136px; margin-right: 56px; }

  .hero-sub { font-size: 1.1rem; }

  .bloc-vermell { padding: 80px 40px 0; }

  .bloc-vermell-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
    gap: 40px;
  }

  .bloc-text { padding-bottom: 80px; }

  .bloc-vermell-figura {
    width: 100%;
    max-width: 480px;
    margin: 0 -40px -20px auto;
  }

  .pantalla-fosca { padding-top: calc(var(--topbar-h) + 64px); }

  .pregunta-figura { width: 30%; right: 2%; opacity: 0.12; }
}

@media (hover: hover) and (min-width: 900px) {
  .bloc-vermell { background-attachment: fixed; }
}

@media (max-width: 359px) {
  .marca-text { font-size: 0.9rem; }
  .capcalera-franja { font-size: 0.54rem; letter-spacing: 0.06em; }
}

/* Scroll per seccions a la portada (mòbil), a l'estil de la web oficial.
   Només afecta screen-portada: el test (pregunta/transició/resultat) no
   fa scroll, es mostra i s'amaga per pantalla. */
@media (max-width: 768px) {
  body[data-pantalla="portada"] {
    scroll-snap-type: y proximity;
  }

  #screen-portada > .hero,
  #screen-portada > section {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  body[data-pantalla="portada"] { scroll-snap-type: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .revela { opacity: 1; transform: none; }
}
