/* Grupo Fantome · capa d'experiència: menú a pantalla completa, portada immersiva, animacions */
:root { --cond: 'Instrument Sans', sans-serif; }
.cond { font-family: var(--cond); font-stretch: 75%; text-transform: uppercase; }

/* ---------- Píndola flotant (substitueix la franja demo) ---------- */
.demo-banner { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 1200; background: var(--gold-light); color: #0d0e12; border-radius: 99px; padding: 6px 16px; font-family: var(--cond); font-stretch: 75%; font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; width: max-content; max-width: calc(100vw - 32px); box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.demo-pill { background: #0d0e12; color: var(--gold-light); }

/* ---------- Capçalera: transparent, marca + Vota + Menú ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 1000; }
.site-header { background: transparent; border: 0; backdrop-filter: none; padding-top: 44px; transition: background .3s; }
body.fx-scrolled .site-header { background: rgba(13, 14, 18, .88); backdrop-filter: blur(10px); padding-top: 40px; }
.site-header .inst-logos { display: none; }
.header-in { min-height: 72px; }
.brand-mark { width: 44px; height: 44px; }
.brand-ed { font-family: var(--cond) !important; font-stretch: 75%; text-transform: uppercase; font-weight: 700 !important; font-size: 1.25rem !important; letter-spacing: .01em; line-height: 1; }
.brand-city { font-family: var(--cond); font-stretch: 75%; font-size: .85rem; letter-spacing: .08em; }
.lang { border: 0; }
.fx-headcta { min-height: 44px; padding: 0 22px; border-radius: 99px !important; }
.menu-btn { display: inline-flex !important; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 99px !important; border: 1px solid var(--gold-light) !important; background: transparent !important; color: var(--gold-light) !important; font-family: var(--cond); font-stretch: 75%; font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; position: relative; z-index: 1101; }
.menu-btn span { display: inline !important; }
.menu-btn svg { width: 20px; height: 20px; }
.menu-btn[aria-expanded="true"] { background: var(--gold-light) !important; color: #0d0e12 !important; }

/* ---------- Menú a pantalla completa ---------- */
.mainnav.fx-nav { display: block !important; position: fixed; inset: 0; z-index: 1100; background: #041e50 url("../img/bg_window.jpg") center / cover; border: 0; padding: 150px 0 40px; overflow-y: auto; max-height: none !important;
  clip-path: circle(0% at calc(100% - 80px) 80px); visibility: hidden; transition: clip-path .7s cubic-bezier(.7, 0, .2, 1), visibility 0s .7s; }
.mainnav.fx-nav::before { content: ""; position: fixed; inset: 0; background: linear-gradient(90deg, rgba(4, 18, 48, .97) 0%, rgba(4, 18, 48, .9) 55%, rgba(4, 18, 48, .55) 100%); pointer-events: none; }
.mainnav.fx-nav.open { clip-path: circle(150% at calc(100% - 80px) 80px); visibility: visible; transition: clip-path .8s cubic-bezier(.7, 0, .2, 1); }
.fx-nav ul { position: relative; flex-direction: column !important; gap: 0 !important; overflow: visible !important; padding: 0 var(--gutter) !important; }
.fx-nav li { display: grid; grid-template-columns: 70px 1fr; align-items: baseline; border-bottom: 1px solid rgba(222, 192, 138, .25); padding: 10px 0; opacity: 0; transform: translateY(30px); transition: opacity .5s, transform .6s cubic-bezier(.2, .8, .2, 1); }
.fx-nav.open li { opacity: 1; transform: none; }
.fx-nav.open li:nth-child(1) { transition-delay: .25s; } .fx-nav.open li:nth-child(2) { transition-delay: .32s; } .fx-nav.open li:nth-child(3) { transition-delay: .39s; } .fx-nav.open li:nth-child(4) { transition-delay: .46s; } .fx-nav.open li:nth-child(5) { transition-delay: .53s; }
.fx-n { font-family: var(--cond); font-stretch: 75%; color: var(--gold); font-size: 1rem; letter-spacing: .1em; }
.fx-nav li > a { font-family: var(--font-title) !important; font-size: clamp(2.6rem, 7vw, 5.6rem) !important; line-height: 1 !important; text-transform: none !important; letter-spacing: -.02em !important; color: #f6efe0 !important; padding: 0 !important; min-height: 0 !important; background: none !important; box-shadow: none !important; width: max-content; transition: color .25s, transform .35s; }
.fx-nav li > a:hover, .fx-nav li > a:focus-visible { color: var(--gold-light) !important; transform: translateX(14px); font-style: italic; }
.fx-nav li > a[aria-current="page"] { font-style: italic; color: var(--gold-light) !important; }
.fx-sub { grid-column: 2; display: flex; gap: 22px; flex-wrap: wrap; padding: 6px 0 4px; }
.fx-sub a { font-family: var(--cond) !important; font-stretch: 75%; font-size: 1rem !important; text-transform: uppercase; letter-spacing: .1em !important; color: var(--gold-light) !important; padding: 0 !important; min-height: 0 !important; background: none !important; box-shadow: none !important; }
.fx-sub a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Portada immersiva (inspiració Riven) ---------- */
main { padding-top: 128px; }
main:has(> .fx-hero) { padding-top: 0; }
@media (max-width: 560px) { main { padding-top: 110px; } }
.fx-hero { position: relative; min-height: 100vh; overflow: hidden; background: radial-gradient(120% 90% at 50% 40%, #0a2a66 0%, #041e50 45%, #020c22 100%); border-bottom: 1px solid var(--gold); isolation: isolate; }
.fx-hero-bg { position: absolute; inset: -6% 0 0 0; background: url("../img/bg_street.jpg") center 70% / cover; opacity: .32; mix-blend-mode: screen; z-index: -2; will-change: transform; }
.fx-hero-shade { position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 52%, transparent 0%, rgba(2, 10, 30, .65) 100%); z-index: -1; }
.fx-snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.fx-hero-in { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: 1fr minmax(300px, 420px) 1fr; align-items: center; gap: clamp(20px, 4vw, 60px); padding: 150px clamp(16px, 5vw, 80px) 60px; }
.fx-kicker { font-family: var(--cond); font-stretch: 75%; text-transform: uppercase; color: var(--gold-light); letter-spacing: .14em; font-size: .95rem; margin-bottom: 18px; }
.fx-title { font-family: var(--cond) !important; font-stretch: 75%; text-transform: uppercase; font-weight: 700 !important; font-size: clamp(2.6rem, 5vw, 4.6rem) !important; line-height: .95 !important; letter-spacing: -.005em !important; color: #f6efe0; margin: 0 0 22px; }
.fx-title em { display: block; font-family: var(--font-title); font-stretch: normal; text-transform: none; font-weight: 400; font-style: italic; color: var(--gold-light); font-size: 1.12em; line-height: 1; margin-top: .08em; }
.fx-title .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; }
.fx-title .w > span { display: inline-block; transform: translateY(110%); animation: fx-up .9s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(.15s + var(--d) * .09s); }
@keyframes fx-up { to { transform: none; } }
.fx-lead { color: #cdc5b3; max-width: 34ch; font-size: 1.02rem; }
.fx-cd { margin-top: 26px; border-top: 1px solid rgba(222, 192, 138, .35); padding-top: 16px; }
.fx-cd-t { font-family: var(--cond); font-stretch: 75%; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); font-size: .85rem; margin: 0 0 8px; }
.fx-cd-n { display: flex; gap: 26px; }
.fx-cd-n span { display: flex; flex-direction: column; }
.fx-cd-n b { font-family: var(--font-title); font-weight: 400; font-size: 3rem; line-height: 1; color: #f6efe0; font-variant-numeric: tabular-nums; }
.fx-cd-n i { font-style: normal; font-family: var(--cond); font-stretch: 75%; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--muted); }
.fx-open { font-family: var(--font-title); font-weight: 400; font-size: 2rem; color: var(--gold-light); }

/* carta 3D */
.fx-stage { perspective: 1400px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.fx-card3d { --rx: 0deg; --ry: 0deg; position: relative; width: 100%; aspect-ratio: 620 / 877; border: 0; padding: 0; background: none; cursor: pointer; transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(calc(var(--ry) - 4deg)) rotateZ(-2.5deg); transition: transform .25s ease-out; animation: fx-float 6s ease-in-out infinite; }
.fx-card3d[aria-pressed="true"] { transform: rotateX(var(--rx)) rotateY(calc(var(--ry) + 180deg)) rotateZ(2.5deg); transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
@keyframes fx-float { 50% { translate: 0 -10px; } }
.fx-face { position: absolute; inset: 0; backface-visibility: hidden; border: 10px solid #e9dcc0; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .2); background: #041e50; }
.fx-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fx-back { transform: rotateY(180deg); }
.fx-card3d:focus-visible { outline: 3px solid var(--focus); outline-offset: 10px; border-radius: 14px; }
.fx-hint { font-family: var(--cond); font-stretch: 75%; text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; color: var(--muted); margin: 0; }

.fx-hero-r { display: flex; align-items: flex-end; justify-content: flex-end; gap: 28px; align-self: end; padding-bottom: 30px; }
.fx-round { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; color: #f6efe0; font-family: var(--cond); font-stretch: 75%; text-transform: uppercase; font-weight: 700; font-size: 1.15rem; line-height: 1; text-align: center; max-width: 9ch; }
.fx-round-i { width: 64px; height: 64px; border-radius: 50%; background: #e9dcc0; display: grid; place-items: center; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.fx-round-i svg { width: 24px; height: 24px; fill: none; stroke: #041e50; stroke-width: 1.6; }
.fx-round:hover .fx-round-i { transform: rotate(90deg) scale(1.08); }
.fx-round:hover { color: var(--gold-light); }
.fx-pill { display: inline-flex; align-items: center; min-height: 56px; padding: 0 44px; border-radius: 99px; background: #e9dcc0; color: #041e50; text-decoration: none; font-weight: 600; font-size: 1rem; transition: transform .3s, background .3s; }
.fx-pill:hover { background: var(--gold-light); color: #041e50; transform: translateY(-3px); }

@media (max-width: 980px) {
  .fx-hero-in { grid-template-columns: 1fr; padding-top: 140px; text-align: left; }
  .fx-stage { order: -1; max-width: 300px; margin: 0 auto; }
  .fx-hero-r { justify-content: flex-start; align-self: start; padding-bottom: 0; }
  .demo-banner { font-size: .7rem; top: 8px; }
  .site-header { padding-top: 38px; }
  .fx-headcta { display: none; }
  .menu-btn span { display: none !important; }
  .menu-btn { padding: 0 14px; }
}

/* ---------- Cinta en moviment ---------- */
.fx-marquee { overflow: hidden; background: var(--gold-light); color: #0d0e12; padding: 14px 0; border-bottom: 1px solid #000; }
.fx-mq-track { display: flex; width: max-content; gap: 28px; align-items: center; animation: fx-mq 40s linear infinite; }
.fx-mq-track span { font-family: var(--cond); font-stretch: 75%; text-transform: uppercase; font-weight: 700; font-size: clamp(1.3rem, 2.6vw, 2.1rem); white-space: nowrap; }
.fx-mq-track i { font-style: normal; font-size: 1.2rem; }
@keyframes fx-mq { to { transform: translateX(-50%); } }

/* ---------- Xifres ---------- */
.fx-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: clamp(50px, 7vw, 90px); padding-bottom: clamp(30px, 5vw, 60px); }
.fx-stats div { border-top: 1px solid var(--gold); padding-top: 14px; }
.fx-stats b { display: block; font-family: var(--font-title); font-weight: 400; font-size: clamp(3rem, 7vw, 6rem); line-height: .95; color: #f6efe0; font-variant-numeric: tabular-nums; }
.fx-stats span { font-family: var(--cond); font-stretch: 75%; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-light); }
@media (max-width: 700px) { .fx-stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Carrusel ---------- */
.fx-railsec { padding: clamp(30px, 5vw, 60px) 0 clamp(40px, 6vw, 80px); }
.fx-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.fx-head h2 { margin: 0; }
.fx-railnav { display: flex; gap: 10px; }
.fx-arrow { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--gold-light); background: transparent; color: var(--gold-light); font-size: 1.3rem; cursor: pointer; transition: background .25s, color .25s; }
.fx-arrow:hover { background: var(--gold-light); color: #0d0e12; }
.fx-rail { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 24px; scrollbar-width: none; }
.fx-rail::-webkit-scrollbar { display: none; }
.fx-card { position: relative; flex: 0 0 clamp(250px, 26vw, 340px); scroll-snap-align: start; text-decoration: none; color: var(--ink); transform: rotate(var(--tilt, 0deg)); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.fx-card:nth-child(odd) { --tilt: -1.5deg; } .fx-card:nth-child(even) { --tilt: 1.2deg; }
.fx-card:hover { transform: rotate(0deg) translateY(-10px); }
.fx-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: 8px solid #e9dcc0; border-radius: 10px; }
.fx-no { position: absolute; top: -14px; left: -10px; z-index: 1; font-family: var(--font-title); font-size: 2.4rem; color: var(--gold-light); line-height: 1; text-shadow: 0 2px 10px #000; }
.fx-cap { display: flex; flex-direction: column; padding: 12px 4px 0; }
.fx-cap b { font-family: var(--cond); font-stretch: 75%; text-transform: uppercase; font-size: 1.35rem; letter-spacing: .01em; color: #f6efe0; }
.fx-cap span { color: var(--muted); font-size: .9rem; }
.fx-link { font-family: var(--cond); font-stretch: 75%; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--gold-light); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.fx-link:hover { color: #fff; }

/* ---------- Modalitats amb fons d'aparador ---------- */
.fx-mods { position: relative; padding: clamp(60px, 9vw, 120px) 0; overflow: hidden; isolation: isolate; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); }
.fx-mods-bg { position: absolute; inset: 0; background: url("../img/bg_window.jpg") center / cover fixed; z-index: -2; }
.fx-mods::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 22, 58, .78), rgba(4, 22, 58, .9)); z-index: -1; }
.fx-modgrid { margin-top: 28px; }
.fx-mods .card { background: rgba(8, 16, 36, .82); backdrop-filter: blur(6px); border-color: rgba(222, 192, 138, .35); }

/* ---------- Passes ---------- */
.fx-steps { padding-top: clamp(60px, 8vw, 110px); padding-bottom: clamp(40px, 6vw, 80px); }
.fx-steps ol { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.fx-steps li { border-left: 1px solid var(--line); padding: 0 22px 10px; }
.fx-big { display: block; font-family: var(--font-title); font-style: italic; font-size: clamp(4rem, 8vw, 7rem); line-height: .9; color: var(--gold-light); }
.fx-steps b { display: block; font-family: var(--cond); font-stretch: 75%; text-transform: uppercase; font-size: 1.6rem; margin: 6px 0 4px; color: #f6efe0; }
.fx-steps p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .fx-steps ol { grid-template-columns: 1fr 1fr; row-gap: 30px; } }

/* ---------- Calendari ---------- */
.fx-dates { padding-bottom: clamp(60px, 8vw, 110px); }
.fx-tl { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--gold); }
.fx-tl li { padding: 18px 20px 0 0; position: relative; }
.fx-tl li::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: #0d0e12; border: 1px solid var(--gold-light); }
.fx-tl .fx-hot::before { background: var(--gold-light); box-shadow: 0 0 0 6px rgba(222, 192, 138, .18); }
.fx-tl-d { display: block; font-family: var(--font-title); font-size: 2rem; color: #f6efe0; line-height: 1.1; }
.fx-tl b { display: block; font-family: var(--cond); font-stretch: 75%; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-light); margin: 4px 0; }
.fx-tl p { color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 860px) { .fx-tl { grid-template-columns: 1fr 1fr; row-gap: 26px; } }

/* ---------- Crida final ---------- */
.fx-join { background: var(--gold-light); color: #0d0e12; padding: clamp(60px, 8vw, 110px) 0; }
.fx-join-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.fx-join h2 { color: #0d0e12; font-size: clamp(2.4rem, 5vw, 4.4rem); }
.fx-join .eyebrow { color: #5c4415; }
.fx-join .btn-primary { background: #0d0e12; color: var(--gold-light); }
.fx-join .fx-link { color: #0d0e12; }
.fx-join .notice { background: rgba(255, 255, 255, .35); border-color: rgba(0, 0, 0, .25); color: #0d0e12; }
.fx-join .notice a { color: #0d0e12; }
@media (max-width: 860px) { .fx-join-in { grid-template-columns: 1fr; } }

/* ---------- Aparició en fer scroll ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s, transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--d, 0) * .08s); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .fx-title .w > span { animation: none; transform: none; }
  .fx-mq-track, .fx-card3d { animation: none; }
  .mainnav.fx-nav, .fx-nav li { transition: none; }
}

/* mòbil: capçalera compacta */
@media (max-width: 560px) {
  .header-in { gap: 6px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-ed { font-size: 1rem !important; }
  .brand-city { font-size: .7rem; }
  .lang button { min-width: 34px; padding: 0 4px; font-size: .78rem; }
  .menu-btn { min-height: 44px; padding: 0 12px; }
}
@media (min-width: 981px) { .fx-hero-in { padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); padding-right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); } }
@media (max-width: 560px) {
  .demo-banner { font-size: .62rem; padding: 4px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100vw - 24px); }
  .demo-banner span[data-i18n] { overflow: hidden; text-overflow: ellipsis; }
  .site-header { padding-top: 34px; }
}
.fx-rail { --pad: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); padding-left: var(--pad); padding-right: var(--pad); scroll-padding-left: var(--pad); padding-top: 26px; }
.fx-no { top: -22px; left: 6px; }

/* ===== v3: capçalera centrada sense estrella, portada centrada sense carta ===== */
.site-header { padding-top: 18px; }
body.fx-scrolled .site-header { padding-top: 10px; }
.header-in { position: relative; justify-content: flex-end; }
.header-in .lang { margin-right: auto; order: 0; }
.fx-headcta { order: 2; }
.menu-btn { order: 3; }
.fx-brand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0 !important; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.fx-brand .brand-mark { display: none; }
.fx-brand .brand-ed { font-family: var(--cond) !important; font-stretch: 75%; font-weight: 700 !important; text-transform: uppercase; font-size: clamp(1.3rem, 2.2vw, 1.9rem) !important; letter-spacing: -.005em; color: #f6efe0; line-height: .95; }
.fx-brand .brand-city { font-family: var(--font-title); font-stretch: normal; font-style: italic; text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--gold-light); }
.fx-center { grid-template-columns: 1fr !important; justify-items: center; text-align: center; max-width: 1100px; margin: 0 auto; padding-top: 130px !important; }
.fx-center .fx-title { font-size: clamp(3.2rem, 9.5vw, 9rem) !important; line-height: .9 !important; }
.fx-center .fx-title em { font-size: 1.05em; }
.fx-center .fx-lead { margin: 0 auto; max-width: 46ch; font-size: 1.12rem; }
.fx-center .fx-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.fx-pill--ghost { background: transparent; color: #f6efe0; border: 1px solid rgba(233, 220, 192, .6); }
.fx-pill--ghost:hover { background: transparent; color: var(--gold-light); border-color: var(--gold-light); }
.fx-center .fx-cd { margin-top: 34px; border-top: 0; padding-top: 0; display: flex; flex-direction: column; align-items: center; }
.fx-center .fx-cd-n { justify-content: center; }
@media (max-width: 760px) {
  .fx-brand { position: static; transform: none; align-items: flex-start; text-align: left; margin-right: auto !important; order: -1; }
  .header-in .lang { margin-right: 0; }
  .fx-brand .brand-ed { font-size: 1.15rem !important; }
  .fx-center { padding-top: 110px !important; }
}
.fx-center .fx-title { font-size: clamp(3rem, 7vw, 7rem) !important; margin-bottom: 16px; }
.fx-center { padding-top: 120px !important; padding-bottom: 40px !important; }
.fx-center .fx-cta { margin-top: 22px; }
.fx-center .fx-cd { margin-top: 26px; }
.fx-center .fx-cd-n b { font-size: 2.6rem; }

/* ===== Pàgines interiors amb composició pròpia ===== */
/* capçaleres de pàgina gegants */
.page-head h1, main h1 { font-family: var(--cond) !important; font-stretch: 75%; text-transform: uppercase; font-weight: 700 !important; font-size: clamp(2.8rem, 6.5vw, 6rem) !important; line-height: .92 !important; letter-spacing: -.005em; }
.page-head .lead { font-family: var(--font-title); font-style: italic; font-size: clamp(1.3rem, 2.2vw, 1.8rem); color: var(--gold-light); max-width: 40ch; }

/* sala de control: xifres gegants sense caixes */
.kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--gold); }
.kpi { background: transparent !important; border: 0 !important; border-right: 1px solid var(--line) !important; border-radius: 0 !important; padding: 22px 22px 26px 0 !important; }
.kpi + .kpi { padding-left: 22px !important; }
.kpi .k-value { font-size: clamp(2.6rem, 4.5vw, 4.2rem) !important; line-height: .95 !important; color: #f6efe0 !important; }
.kpi .k-label { font-family: var(--cond); font-stretch: 75%; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-light); font-size: .8rem; }
.admin-bar { background: var(--gold-light) !important; color: #0d0e12; border: 0; }
.admin-bar p, .admin-bar strong { color: #0d0e12; }
.admin-bar .btn { color: #0d0e12; border-color: #0d0e12; }
.admin-head h2 { font-family: var(--cond) !important; font-stretch: 75%; text-transform: uppercase; font-weight: 700 !important; font-size: 1.9rem !important; }
.rank-row { counter-increment: rk; grid-template-columns: 34px minmax(0, 170px) minmax(0, 1fr) 52px; }
.rank-row::before { content: counter(rk, decimal-leading-zero); font-family: var(--font-title); font-style: italic; color: var(--gold); font-size: 1.15rem; }
.card:has(.rank-row) { counter-reset: rk; background: transparent; border: 0; border-top: 1px solid var(--gold); padding-left: 0; padding-right: 0; }
.rank-row .bar { height: 4px; background: rgba(255, 255, 255, .08); border-radius: 0; }
.rank-row .bar span { border-radius: 0; }

/* galeria de participants: fitxes tipus pòster */
.filters { background: transparent; border: 0; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--line); border-radius: 0; padding: 18px 0; }
.shop-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 38px 26px; }
.shop-card { background: transparent; border: 0; border-radius: 0; overflow: visible; box-shadow: none; transform: rotate(var(--tilt, 0deg)); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.shop-card:nth-child(3n+1) { --tilt: -1.2deg; } .shop-card:nth-child(3n+2) { --tilt: .8deg; } .shop-card:nth-child(3n) { --tilt: -.4deg; }
.shop-card:hover { transform: rotate(0) translateY(-8px); box-shadow: none; }
.shop-card .thumb { aspect-ratio: 3 / 4; border: 7px solid #e9dcc0; border-radius: 10px; overflow: hidden; }
.shop-card .body { padding: 12px 2px 0; }
.shop-card h3 { font-family: var(--cond) !important; font-stretch: 75%; text-transform: uppercase; font-weight: 700 !important; font-size: 1.5rem !important; }
.shop-card .actions .btn { border-radius: 99px; }

/* fitxa de comerç */
.gallery { gap: 14px; }
.gallery button { border-radius: 10px !important; border: 6px solid #e9dcc0; }
.vote-box, aside.card { border-top: 1px solid var(--gold) !important; }
.kpi:nth-child(4n+1) { padding-left: 0 !important; }
.kpi:nth-child(4n) { border-right: 0 !important; }

/* ===== Votació: galeria en mosaic i contrastos ===== */
.vote-layout { grid-template-columns: 1fr !important; }
.vote-layout > .card { background: transparent; border: 0; padding: 0; }
.vote-layout > aside.card { border-top: 1px solid var(--gold) !important; padding-top: 18px; }
.choice { background: transparent !important; border: 1px solid #4a463d !important; border-radius: 99px !important; color: var(--ink) !important; padding: 10px 18px !important; min-height: 46px; align-items: center !important; font-family: var(--cond); font-stretch: 75%; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.choice:has(input:checked) { background: var(--gold-light) !important; border-color: var(--gold-light) !important; color: #0d0e12 !important; }
.choice input { accent-color: #0d0e12; }
.picker { max-height: none !important; overflow: visible !important; border: 0 !important; background: transparent !important; margin-top: 18px; }
.fx-mosaic { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.fx-tile { position: relative; display: block !important; padding: 0 !important; min-height: 0 !important; border: 0 !important; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 10px; outline: 1px solid rgba(222, 192, 138, .25); color: #f6efe0 !important; text-decoration: none; }
.fx-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .8, .2, 1), filter .4s; }
.fx-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 12, 32, 0) 40%, rgba(4, 12, 32, .92) 100%); }
.fx-tile-cap { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.fx-tile-cap b { font-family: var(--cond); font-stretch: 75%; text-transform: uppercase; font-size: 1.35rem; line-height: 1; color: #fff; }
.fx-tile-cap > span { font-size: .85rem; color: #e6dcc6; }
.fx-tile-go { position: absolute; top: 10px; right: 10px; z-index: 1; background: var(--gold-light); color: #0d0e12; border-radius: 99px; padding: 4px 12px; font-family: var(--cond); font-stretch: 75%; text-transform: uppercase; font-weight: 700; font-size: .85rem; opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s; }
.fx-tile:hover img, .fx-tile:focus-visible img { transform: scale(1.06); filter: brightness(1.15); }
.fx-tile:hover .fx-tile-go, .fx-tile:focus-visible .fx-tile-go { opacity: 1; transform: none; }
@media (hover: none) { .fx-tile-go { opacity: 1; transform: none; } }
.badge { background: rgba(4, 12, 32, .8); color: #f6efe0; border: 1px solid rgba(222, 192, 138, .5); }
.badge-a, .badge-b { color: #f6efe0 !important; }
@media (max-width: 560px) { .fx-mosaic { grid-template-columns: 1fr 1fr; gap: 10px; } .fx-tile-cap b { font-size: 1.1rem; } }

/* ===== Participa: capçalera immersiva ===== */
main:has(> .fx-hero) { padding-top: 0; }
.fx-hero--sub { min-height: 92vh; }
.fx-hero--sub .fx-hero-bg { background-image: url("../img/bg_window.jpg"); opacity: .28; }
.fx-hero--sub .fx-title { font-size: clamp(2.8rem, 6.4vw, 6.4rem) !important; }
.fx-jsteps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 0; margin: 30px auto 6px; max-width: 900px; width: 100%; }
.fx-jsteps li { border-left: 1px solid rgba(222, 192, 138, .35); padding: 4px 18px; text-align: left; opacity: 0; transform: translateY(20px); animation: fx-in .8s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(.8s + var(--d) * .15s); }
.fx-jsteps li:first-child { border-left: 0; }
.fx-jsteps span { display: block; font-family: var(--font-title); font-style: italic; font-size: 3rem; line-height: 1; color: var(--gold-light); }
.fx-jsteps b { display: block; font-family: var(--cond); font-stretch: 75%; text-transform: uppercase; font-size: 1.5rem; color: #f6efe0; }
.fx-jsteps i { font-style: normal; color: #b9b19f; font-size: .95rem; }
@keyframes fx-in { to { opacity: 1; transform: none; } }
.fx-anchor { scroll-margin-top: 90px; }
@media (max-width: 700px) { .fx-jsteps { grid-template-columns: 1fr; gap: 14px; } .fx-jsteps li { border-left: 0; border-top: 1px solid rgba(222, 192, 138, .3); padding-top: 10px; } }
@media (prefers-reduced-motion: reduce) { .fx-jsteps li { animation: none; opacity: 1; transform: none; } }

/* Descobreix: sense desplegable de barri (el plànol ja serveix per zones) */
.filters .field:has(#f-barri) { display: none; }
.filters { grid-template-columns: 2fr 1fr 1fr !important; }
@media (max-width: 760px) { .filters { grid-template-columns: 1fr !important; } }

/* ===== Sala de control (tauler) ===== */
.sc-bar { background: var(--gold-light); color: #0d0e12; }
.sc-bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.sc-bar p { margin: 0; font-family: var(--cond); font-stretch: 75%; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.sc-bar .btn { background: #0d0e12; color: var(--gold-light); border-color: #0d0e12; }
.sc-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #d7330f; margin-right: 8px; box-shadow: 0 0 0 0 rgba(215, 51, 15, .6); animation: sc-ping 1.6s infinite; }
@keyframes sc-ping { 70% { box-shadow: 0 0 0 10px rgba(215, 51, 15, 0); } 100% { box-shadow: 0 0 0 0 rgba(215, 51, 15, 0); } }
.sc { padding-top: 34px; padding-bottom: 70px; }
.sc-head h1 { margin-bottom: 4px; }
.sc-head p { color: var(--muted); }
.sc-k { font-family: var(--cond); font-stretch: 75%; text-transform: uppercase; letter-spacing: .14em; color: var(--gold-light); font-size: .85rem; margin: 0 0 12px; }
.sc-pulse { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: end; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--line); padding: 22px 0 26px; margin: 18px 0 30px; }
.sc-pulse .sc-k { grid-column: 1 / -1; margin-bottom: 0; }
.sc-big { display: flex; gap: 34px; flex-wrap: wrap; }
.sc-big b { display: block; font-family: var(--font-title); font-weight: 400; font-size: clamp(3.4rem, 7vw, 6.2rem); line-height: .9; color: #f6efe0; }
.sc-big div:first-child b { color: var(--gold-light); }
.sc-big span { color: var(--muted); font-size: .9rem; }
.sc-chart { margin: 0; }
.sc-spark { width: 100%; height: 120px; fill: var(--gold-light); opacity: .9; }
.sc-chart figcaption { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.sc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 30px; }
.sc-cell { border-top: 1px solid var(--line); padding-top: 16px; min-width: 0; }
.sc-wide { grid-column: 1 / -1; }
.sc-pods { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.sc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: end; }
.sc-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--surface); border-top: 2px solid var(--gold); padding: 10px 8px 12px; }
.sc-p1 { padding-bottom: 34px; border-top-color: var(--gold-light); }
.sc-p2 { padding-bottom: 18px; }
.sc-step img { width: 64%; aspect-ratio: 3 / 4; object-fit: cover; border: 4px solid #e9dcc0; border-radius: 6px; margin-bottom: 8px; }
.sc-step b { font-family: var(--cond); font-stretch: 75%; text-transform: uppercase; font-size: 1.05rem; color: #f6efe0; line-height: 1.05; }
.sc-step span { font-family: var(--font-title); font-size: 1.6rem; color: var(--gold-light); line-height: 1.1; }
.sc-step i { position: absolute; top: -16px; font-style: normal; font-family: var(--font-title); width: 30px; height: 30px; border-radius: 50%; background: var(--gold-light); color: #0d0e12; display: grid; place-items: center; font-size: 1.1rem; }
.sc-funnel { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.sc-funnel li { position: relative; display: flex; justify-content: space-between; padding: 8px 12px; overflow: hidden; }
.sc-funnel li::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: rgba(222, 192, 138, .18); border-right: 2px solid var(--gold-light); }
.sc-funnel span, .sc-funnel b { position: relative; }
.sc-funnel b { font-family: var(--font-title); font-weight: 400; font-size: 1.4rem; color: #f6efe0; line-height: 1; }
.sc-heat { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.sc-heat li { display: grid; grid-template-columns: 1fr 70px 50px; gap: 10px; align-items: center; font-size: .9rem; }
.sc-heat i { height: 18px; background: rgba(222, 192, 138, var(--a)); border-radius: 2px; }
.sc-heat b { text-align: right; font-weight: 600; color: #f6efe0; }
.sc-sms b { display: block; font-family: var(--font-title); font-weight: 400; font-size: 3.4rem; line-height: 1; color: #f6efe0; }
.sc-sms span { color: var(--muted); font-size: .85rem; }
.sc-meter { height: 6px; background: rgba(255, 255, 255, .1); margin-top: 14px; }
.sc-meter i { display: block; height: 100%; background: var(--gold-light); }
.sc-alerts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .9rem; }
.sc-alerts li { padding-left: 16px; position: relative; color: var(--ink); }
.sc-alerts li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.sc-alerts .ok::before { background: #8fc29a; } .sc-alerts .warn::before { background: #e3b55b; }
@media (max-width: 900px) { .sc-pulse { grid-template-columns: 1fr; } .sc-grid { grid-template-columns: 1fr; } .sc-pods { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .sc-dot { animation: none; } }
.sc-hero { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(120% 120% at 50% 30%, #0a2a66 0%, #041e50 50%, #020c22 100%); border-bottom: 1px solid var(--gold); padding: 54px 0 46px; }
.sc-hero-bg { position: absolute; inset: 0; background: url("../img/bg_street.jpg") center 65% / cover; opacity: .28; mix-blend-mode: screen; z-index: -1; }
.sc-hero h1 { color: #f6efe0; margin: 6px 0 6px; }
.sc-hero p:last-child { color: #cdc5b3; margin: 0; }
.sc { padding-top: 26px; }
.fx-story { display: flex; gap: 18px; align-items: center; margin: 18px 0 22px; padding: 16px; border: 1px solid rgba(222, 192, 138, .4); border-radius: 12px; background: rgba(4, 30, 80, .55); text-align: left; }
.fx-story img { width: 110px; height: auto; border-radius: 8px; border: 4px solid #e9dcc0; flex: none; }
.fx-story p { margin: 0 0 12px; color: #e6dcc6; }
.fx-story b { font-family: var(--cond); font-stretch: 75%; text-transform: uppercase; font-size: 1.3rem; color: #f6efe0; }
.fx-story .fx-pill { min-height: 46px; padding: 0 24px; }
.success-mark { background: var(--gold-light) !important; color: #0d0e12 !important; }

/* ===== Sala de control: quadrant de rajoles desplegables ===== */
.sc-quad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
.sc-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color .3s, background .3s; animation: fx-in .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--d) * .05s); }
.sc-tile:hover { border-color: rgba(222, 192, 138, .5); }
.sc-tile-btn { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "k plus" "v plus" "s plus"; width: 100%; padding: 20px 22px; cursor: pointer; min-height: 150px; align-content: start; row-gap: 4px; }
.sc-tile-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; border-radius: 14px; }
.sc-tile-btn .sc-k { grid-area: k; margin: 0; }
.sc-tv { grid-area: v; font-family: var(--font-title); font-weight: 400; font-size: clamp(2.2rem, 3.6vw, 3.4rem); line-height: 1; color: #f6efe0; margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-ts { grid-area: s; color: var(--muted); font-size: .88rem; }
.sc-plus { grid-area: plus; align-self: start; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--gold-light); color: var(--gold-light); display: grid; place-items: center; font-size: 1.3rem; transition: transform .35s cubic-bezier(.2, .8, .2, 1), background .3s, color .3s; }
.sc-tile-btn:hover .sc-plus { background: var(--gold-light); color: #0d0e12; }
.sc-tile.open { grid-column: 1 / -1; background: #10131c; border-color: var(--gold); }
.sc-tile.open .sc-plus { transform: rotate(45deg); background: var(--gold-light); color: #0d0e12; }
.sc-det { padding: 4px 22px 24px; animation: fx-in .45s cubic-bezier(.2, .8, .2, 1) both; }
.sc-det .sc-big { margin-bottom: 18px; }
.sc-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; }
.sc-list li { display: grid; grid-template-columns: 1fr auto; padding: 9px 0; border-bottom: 1px solid var(--line); gap: 2px 10px; }
.sc-list b { font-weight: 600; color: #f6efe0; }
.sc-list span { grid-column: 1; color: var(--muted); font-size: .85rem; }
.sc-list i { grid-row: 1 / 3; grid-column: 2; align-self: center; font-style: normal; font-size: .78rem; font-family: var(--cond); font-stretch: 75%; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-light); }
.sc-list .st-pending { color: #e3b55b; } .sc-list .st-rejected { color: #f08a80; } .sc-list .st-confirmed { color: #8fc29a; }
.sc-hint { margin-top: 14px; color: var(--muted); font-size: .85rem; text-align: center; }
@media (max-width: 900px) { .sc-quad { grid-template-columns: 1fr 1fr; } .sc-list { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .sc-quad { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .sc-tile, .sc-det { animation: none; } }
.sc-quad { grid-auto-flow: row dense; }
