/* ==========================================================
   BM Barberà · estilos
   Colores del escudo: verde (principal), amarillo y rojo
   ========================================================== */
:root {
  --green: #0B6B38;
  --green-deep: #06361D;
  --green-mid: #13894A;
  --green-soft: #EDF5EE;
  --yellow: #FFD21A;
  --yellow-soft: #FFF4C2;
  --red: #D7261E;
  --ink: #102017;
  --muted: #4E5E54;
  --white: #FFFFFF;
  --bg-1: #06361D;
  --bg-2: #0A4527;
  --bg-3: #0C5530;
  --text-soft: rgba(255,255,255,.8);

  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --radius: 14px;
  --header-h: 68px;

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
/* Textos justificats (amb partició de paraules en català per evitar espais grans) */
.club__copy p, .values__head p, .join__copy > p, .join__list li, .moment__card p, .value p {
  text-align: justify; hyphens: auto; -webkit-hyphens: auto; text-wrap: pretty;
}
.club__copy .club__closing { text-align: left; hyphens: manual; }
/* Punt volat català (l·l): la tipografia Barlow el dibuixa enganxat a les eles */
.pv { display: inline-block; font-family: Arial, Helvetica, sans-serif; font-weight: 400; margin: 0 -.03em; transform: scale(.85); }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; line-height: .95; margin: 0; letter-spacing: .005em; }
h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); color: var(--yellow); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--ink); padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 2rem; }
.section__head p { margin: 0; color: var(--text-soft); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 1rem/1 var(--body);
  padding: .95rem 1.5rem; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--yellow { background: var(--yellow); color: var(--green-deep); }
.btn--yellow:hover { background: #FFE15A; }
.btn--ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn--block { width: 100%; }

/* ---------- Franja de la bandera de Barberà del Vallès (vermell 3 · groc 1 · verd 1) ---------- */
:root { --flag-red: #D7141A; --flag-yellow: #FCD800; --flag-green: #16923F; }
.tricolor { display: grid; grid-template-rows: 3fr 1fr 1fr; height: 15px; }
.tricolor i:nth-child(1) { background: var(--flag-red); }
.tricolor i:nth-child(2) { background: var(--flag-yellow); }
.tricolor i:nth-child(3) { background: var(--flag-green); }
.tricolor--thin { height: 10px; }

/* ---------- Cabecera ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--green-deep);
  color: var(--white);
  padding-top: env(safe-area-inset-top, 0px);
  margin-top: calc(-1 * env(safe-area-inset-top, 0px));
}
.topbar__inner { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; font: 900 1.6rem/1 var(--display); }
.brand img { width: 36px; height: auto; }
.brand span { white-space: nowrap; }
@media (max-width: 420px) { .brand { font-size: 1.35rem; } .brand img { width: 30px; } }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { text-decoration: none; font-weight: 600; font-size: .98rem; padding: .55rem .8rem; border-radius: 999px; }
@media (max-width: 1180px) and (min-width: 961px) { .nav a { padding: .5rem .55rem; font-size: .92rem; } .brand { font-size: 1.35rem; } }
.nav a:hover { background: rgba(255,255,255,.1); }
.nav .nav__shop { border: 2px solid rgba(255,255,255,.55); margin-left: .4rem; padding: .45rem .9rem; }
.nav .nav__shop:hover { border-color: var(--yellow); color: var(--yellow); background: none; }
.nav .nav__cta { background: var(--yellow); color: var(--green-deep); margin-left: .4rem; }
.nav .nav__cta:hover { background: #FFE15A; }
.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--green-deep); padding: .5rem 1.25rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,.12);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .9rem .5rem; border-radius: 8px; font-size: 1.1rem; }
  .nav .nav__cta { margin: .5rem 0 0; text-align: center; }
  .nav .nav__shop { margin: .5rem 0 0; text-align: center; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: calc(100svh - var(--header-h));
  display: grid; place-items: center;
  color: var(--white); text-align: center; overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) 1.25rem clamp(5rem, 10vw, 7rem);
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 85%; z-index: -2; transform: scale(1.04); animation: heroZoom 14s ease-out forwards; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(6,54,29,.38) 0%, rgba(6,54,29,.72) 75%),
    linear-gradient(180deg, rgba(6,54,29,.55) 0%, rgba(6,54,29,.15) 40%, rgba(6,54,29,.9) 100%);
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 24px; background: linear-gradient(180deg, var(--flag-red) 0 60%, var(--flag-yellow) 60% 80%, var(--flag-green) 80% 100%); }
.hero__inner { max-width: 980px; display: flex; flex-direction: column; align-items: center; }
.hero__crest { width: clamp(92px, 11vw, 140px); height: auto; margin-bottom: 1.5rem; filter: drop-shadow(0 12px 28px rgba(0,0,0,.45)); animation: heroIn .9s .1s both cubic-bezier(.2,.7,.2,1); }
.hero h1 {
  font-size: clamp(3.6rem, 12vw, 10rem);
  line-height: .84; text-transform: uppercase;
  margin-bottom: 1.5rem; text-shadow: 0 6px 30px rgba(0,0,0,.35);
  animation: heroIn .9s .25s both cubic-bezier(.2,.7,.2,1);
}
.hero h1 span { display: block; }
.hero h1 span:first-child { color: var(--white); font-size: .52em; letter-spacing: .12em; margin-bottom: .12em; }
.hero h1 span:last-child { color: var(--yellow); }
.hero__slogan { position: relative; display: flex; flex-direction: column; align-items: center; margin: .3rem 0 2rem; }
.slogan__words { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .2rem 0; }
.slogan__w {
  font: 800 clamp(1.35rem, 2.8vw, 2.1rem)/1 var(--display); text-transform: uppercase; letter-spacing: .1em; color: var(--white);
  opacity: 0; translate: 0 12px; animation: sloganIn .6s cubic-bezier(.2,.7,.2,1) forwards;
}
.slogan__w + .slogan__w::before {
  content: "/"; display: inline-block; margin: 0 .55em; color: var(--yellow); font-weight: 900; transform: skewX(-8deg);
}
.slogan__w--1 { animation-delay: .45s; } .slogan__w--2 { animation-delay: .6s; } .slogan__w--3 { animation-delay: .75s; }
.slogan__tail {
  margin-top: .25rem; font-family: "Permanent Marker", "Marker Felt", "Comic Sans MS", cursive;
  font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1; color: #FF3B30;
  transform: rotate(-4deg); text-shadow: 0 4px 14px rgba(0,0,0,.45);
  opacity: 0; animation: sloganTail .7s cubic-bezier(.2,.7,.2,1) forwards 1.05s;
}
/* Lletres que salten en passar el ratolí */
.slogan__w { cursor: default; transition: color .25s ease; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.slogan__w .ch { display: inline-block; }
.slogan__w--1:hover, .slogan__w--1.is-tap { color: #FF3B30; }
.slogan__w--2:hover, .slogan__w--2.is-tap { color: var(--yellow); }
.slogan__w--3:hover, .slogan__w--3.is-tap { color: #3DDC84; }
.slogan__w:hover .ch, .slogan__w.is-tap .ch { animation: letterJump .55s cubic-bezier(.3,.7,.3,1.4) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes letterJump { 0% { transform: translateY(0); } 35% { transform: translateY(-.35em) rotate(-6deg); } 65% { transform: translateY(.05em); } 100% { transform: translateY(0); } }
.slogan__tail { transition: rotate .3s ease, scale .3s ease; }
.slogan__tail:hover { rotate: 3deg; scale: 1.08; }
@keyframes sloganTail { from { opacity: 0; transform: rotate(-4deg) scale(.7); } to { opacity: 1; transform: rotate(-4deg) scale(1); } }
@keyframes sloganIn { to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .slogan__w .ch { animation: none !important; }
  .slogan__w, .slogan__tail { opacity: 1; translate: none; animation: none; }
}
.hero__lead {
  font: italic 500 clamp(1.2rem, 2vw, 1.55rem)/1.3 var(--display); letter-spacing: .02em;
  max-width: 34ch; color: rgba(255,255,255,.88); margin-bottom: 2.2rem;
  animation: heroIn .9s .4s both cubic-bezier(.2,.7,.2,1);
}
.hero__lead strong { font-weight: 800; color: var(--white); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; animation: heroIn .9s .55s both cubic-bezier(.2,.7,.2,1); }
.hero__scroll { position: absolute; bottom: 34px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px; }
.hero__scroll::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--yellow); animation: scrollDot 1.8s infinite; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes heroZoom { to { transform: scale(1); } }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 600px) { .hero__scroll { display: none; } }

/* ---------- El club ---------- */
.club { background: var(--bg-2); color: var(--white); }
.club__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.club__title { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 1.75rem); margin-bottom: 1.5rem; }
.club__copy h2 { margin: 0; max-width: 15ch; }
.club__crest { flex: none; width: auto; height: clamp(84px, 9vw, 118px); filter: drop-shadow(0 8px 16px rgba(0,0,0,.4)); transform: rotate(4deg); transition: transform .35s ease; }
.club__title:hover .club__crest { transform: rotate(-4deg) scale(1.05); }
.club__copy p { max-width: 60ch; color: var(--text-soft); }
.club__copy .club__closing { color: var(--white); font-weight: 600; font-size: 1.12rem; padding-left: 1rem; border-left: 3px solid var(--yellow); }
.facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 1.25rem 2.25rem; margin: 2.25rem 0 0; padding-top: 1.75rem; border-top: 3px solid var(--yellow); }
.facts div { margin: 0; }
.facts__icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: .7rem; border-radius: 11px; color: var(--yellow); background: rgba(255,210,26,.12); box-shadow: inset 0 0 0 1px rgba(255,210,26,.3); }
.facts__icon svg { width: 20px; height: 20px; }
.facts dt { font: 900 2.4rem/1 var(--display); color: var(--yellow); }
.facts dd { margin: .3rem 0 0; font-size: .92rem; color: var(--text-soft); max-width: 14ch; line-height: 1.35; }
.club__photos { position: relative; aspect-ratio: 1 / 1.18; }
.club__photos img {
  position: absolute; object-fit: cover; border-radius: var(--radius); box-shadow: 0 18px 40px rgba(0,0,0,.35);
  rotate: var(--r, 0deg);
  animation: collageFloat var(--dur, 7s) ease-in-out var(--d, 0s) infinite;
  transition: rotate .45s ease, scale .45s ease, box-shadow .45s ease, opacity .8s ease;
  cursor: pointer;
}
.club__photos img:hover { rotate: 0deg; scale: 1.06; z-index: 6 !important; box-shadow: 0 26px 50px rgba(0,0,0,.5); animation-play-state: paused; }
@keyframes collageFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
.club__photos.is-hidden img { opacity: 0; scale: .88; }
.club__p1 { right: 0; top: 23%; width: 72%; aspect-ratio: 3 / 2; border: 6px solid var(--bg-2); --r: 0deg; --dur: 8s; --d: 0s; z-index: 1; }
.club__p3 { left: 0; top: 2%; width: 47%; aspect-ratio: 4 / 3; border: 6px solid var(--flag-yellow); --r: -3deg; --dur: 6.5s; --d: -1.2s; z-index: 2; }
.club__p2 { left: 2%; bottom: 0; width: 52%; aspect-ratio: 719 / 593; object-position: 50% 30%; border: 6px solid var(--flag-yellow); --r: 0deg; --dur: 7.5s; --d: -2.2s; z-index: 3; }
.club__p5 { right: 1%; top: 0; width: 38%; aspect-ratio: 16 / 13; object-position: 50% 30%; border: 6px solid var(--flag-yellow); --r: 3deg; --dur: 7s; --d: -3.1s; z-index: 2; }
.club__p4 { right: 1%; bottom: 1%; width: 41%; aspect-ratio: 4 / 5; object-position: 50% 40%; border: 6px solid var(--flag-yellow); --r: 3deg; --dur: 6s; --d: -4s; z-index: 3; }
@media (max-width: 860px) {
  .club { background: var(--bg-2); color: var(--white); }
.club__grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
}
@media (min-width: 861px) and (max-width: 1100px) {
  .facts { gap: 1.25rem 1.4rem; }
}
@media (max-width: 560px) {
  .facts { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
  .facts dt { font-size: 2rem; }
}

/* ---------- El que ens fa equip ---------- */
.values { background: var(--bg-1); color: var(--white); }
.values__head { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 4rem; align-items: start; margin-bottom: 3rem; }
.values__head h2 { color: var(--white); text-transform: uppercase; font-size: clamp(2.8rem, 6vw, 4.8rem); line-height: .9; }
.values__head h2 em { display: block; color: var(--yellow); font-style: italic; font-weight: 900; }
.values__head p { margin: .4rem 0 0; color: var(--text-soft); max-width: 52ch; }
.values__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255,255,255,.14); border-radius: 22px; overflow: hidden;
}
.value {
  --accent: var(--yellow); --accent-rgb: 255,210,26;
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-right: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14);
  transition: background-color .3s ease;
}
.value--red { --accent: #FF4A3D; --accent-rgb: 255,74,61; }
.value--yellow { --accent: #FFD21A; --accent-rgb: 255,210,26; }
.value--green { --accent: #3DDC84; --accent-rgb: 61,220,132; }
.value::before {
  content: ""; position: absolute; z-index: -1; right: -30%; top: -40%; width: 80%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .16) 0%, rgba(var(--accent-rgb), 0) 65%);
  transition: transform .5s ease, opacity .5s ease; opacity: .9;
}
.value::after {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 56px;
  background: var(--accent); border-radius: 0 0 4px 0; transition: width .4s ease;
}
.value:hover::before { transform: scale(1.35); opacity: 1; }
.value:hover::after { width: 100%; border-radius: 0; }
.value.is-hidden { opacity: 0; transform: translateY(24px); }
.value { transition: background-color .3s ease, opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.value__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.value__icon {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px;
  color: var(--accent); background: rgba(var(--accent-rgb), .14);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .35);
  transition: transform .3s ease, background-color .3s ease, color .3s ease;
}
.value__icon svg { width: 26px; height: 26px; }
.value:hover .value__icon { transform: rotate(-6deg) scale(1.06); background: var(--accent); color: var(--green-deep); }
.value__num { font: 900 3.4rem/1 var(--display); color: var(--accent); opacity: .9; letter-spacing: -.01em; }
.value:nth-child(3n) { border-right: 0; }
.value:nth-last-child(-n+3) { border-bottom: 0; }
.value:hover { background: rgba(255,255,255,.035); }
.value h3 { font-size: clamp(1.8rem, 2.5vw, 2.2rem); font-weight: 800; text-transform: uppercase; color: var(--white); margin-bottom: .8rem; letter-spacing: .005em; }
.value p { margin: 0; color: var(--text-soft); font-size: 1rem; line-height: 1.7; max-width: 38ch; }
@media (max-width: 960px) {
  .values__head { grid-template-columns: 1fr; }
  .values__grid { grid-template-columns: repeat(2, 1fr); }
  .value, .value:nth-child(3n), .value:nth-last-child(-n+3) { border-right: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); }
  .value:nth-child(2n) { border-right: 0; }
  .value:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 560px) {
  .values__grid { grid-template-columns: 1fr; }
  .value, .value:nth-child(2n), .value:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .value:last-child { border-bottom: 0; }
  .value__num { font-size: 2.6rem; }
  .value__top { margin-bottom: 1.1rem; }
}

/* ---------- Momento destacado ---------- */
.moment { position: relative; min-height: 560px; display: flex; align-items: flex-end; overflow: hidden; }
.moment > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.moment::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(6,54,29,.94) 0%, rgba(6,54,29,.7) 40%, rgba(6,54,29,.1) 75%, rgba(6,54,29,0) 100%); }
.moment__card { position: relative; z-index: 2; color: var(--white); width: min(var(--wrap), 100% - 2.5rem); margin: 0 auto; padding-block: 4rem; }
.moment__card h2 { color: var(--white); max-width: 11ch; margin-bottom: 1rem; font-size: clamp(2.6rem, 6vw, 4.6rem); }
.moment__card p { max-width: 42ch; color: rgba(255,255,255,.9); }
.moment__tag { display: inline-block; background: var(--red); color: var(--white); font-weight: 700; font-size: .9rem; padding: .3rem .8rem; border-radius: 6px; margin-bottom: 1rem; }
@media (max-width: 700px) {
  .moment { min-height: 520px; }
  .moment::before { background: linear-gradient(0deg, rgba(6,54,29,.92) 10%, rgba(6,54,29,.2) 70%); }
}

/* ---------- Classificació ---------- */
.standings { background: var(--bg-2); color: var(--white); }
.standings__kicker { margin: 0 0 .5rem; font-weight: 700; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); }
.standings__comp { text-align: right; line-height: 1.45; }
.standings__comp span:first-child { color: var(--white); font-weight: 700; }
.standings__card { background: var(--bg-1); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 50px rgba(0,0,0,.25); }
.standings__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.standings__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 560px; }
.standings__table th, .standings__table td { padding: .85rem .7rem; text-align: center; white-space: nowrap; }
.standings__table thead th { font-size: .78rem; font-weight: 700; letter-spacing: .06em; color: var(--text-soft); background: rgba(0,0,0,.18); border-bottom: 1px solid rgba(255,255,255,.08); }
.standings__table abbr { text-decoration: none; cursor: help; }
.standings__table tbody tr { border-bottom: 1px solid rgba(255,255,255,.06); }
.standings__table tbody tr:last-child { border-bottom: 0; }
.standings__table tbody tr:hover { background: rgba(255,255,255,.03); }
.standings__table .c-pos { width: 3rem; font: 900 1.35rem/1 var(--display); color: var(--text-soft); }
.standings__table .c-team { text-align: left; font-weight: 600; width: 40%; }
.standings__table .team-name { display: inline-flex; align-items: center; gap: .6rem; }
.standings__table .team-name img { width: 18px; height: auto; }
.standings__table .c-pt { font: 900 1.4rem/1 var(--display); color: var(--yellow); }
.standings__table thead .c-pt { font: inherit; font-size: .78rem; font-weight: 700; color: var(--yellow); }
.standings__table td.pos { color: #7FE0A3; }
.standings__table td.neg { color: #FF9A94; }
.standings__table tr.is-us { background: var(--yellow) !important; color: var(--green-deep); }
.standings__table tr.is-us td, .standings__table tr.is-us th, .standings__table tr.is-us .c-pos, .standings__table tr.is-us .c-pt, .standings__table tr.is-us td.pos, .standings__table tr.is-us td.neg { color: var(--green-deep); font-weight: 700; }
.streak { display: inline-flex; gap: 4px; vertical-align: middle; }
.f { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-size: .72rem; font-weight: 700; color: var(--white); }
.f--g { background: var(--green-mid); }
.f--e { background: #B08900; }
.f--p { background: var(--red); }
.is-us .f { box-shadow: 0 0 0 2px var(--yellow); }
.standings__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 1rem; padding: 1rem 1.25rem; border-top: 1px solid rgba(255,255,255,.08); }
.standings__legend { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .85rem; color: var(--text-soft); }
.standings__legend .f { margin-left: .5rem; }
.standings__legend .f:first-child { margin-left: 0; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; margin-right: .5rem; vertical-align: middle; box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: livePulse 2s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,.6); } 70% { box-shadow: 0 0 0 8px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
.standings__table.no-form .c-form { display: none; }
.btn--sm { padding: .7rem 1.1rem; font-size: .92rem; }
@media (max-width: 700px) {
  .standings__comp { text-align: left; }
  .standings__table { min-width: 0; }
  .standings__table .c-hide, .standings__table .c-form { display: none; }
  .standings__table th, .standings__table td { padding: .75rem .45rem; }
  .standings__table .c-team { white-space: normal; font-size: .92rem; line-height: 1.25; }
  .standings__table .team-name img { display: none; }
}

/* ---------- Equipos ---------- */
.teams { background: var(--bg-3); color: var(--white); }
.season-tag { display: inline-block; vertical-align: middle; margin-left: .5rem; padding: .35rem .75rem; border-radius: 999px; background: var(--yellow); color: var(--green-deep); font: 800 clamp(.95rem, 1.6vw, 1.2rem)/1 var(--display); letter-spacing: .03em; transform: translateY(-.15em); white-space: nowrap; }
.tabs { display: inline-flex; background: rgba(0,0,0,.22); border-radius: 999px; padding: 5px; margin-bottom: 2rem; }
.tabs button {
  font: 700 1rem/1 var(--body); color: var(--white);
  background: none; border: 0; border-radius: 999px;
  padding: .8rem 1.6rem; cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--yellow); color: var(--green-deep); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1.5rem; }
.team {
  margin: 0; background: var(--bg-1); border-radius: var(--radius); overflow: hidden;
  border-top: 5px solid var(--yellow);
}
.team:nth-child(3n+2) { border-top-color: var(--red); }
.team:nth-child(3n) { border-top-color: var(--green-mid); }
.team button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.team img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .35s ease; }
.team button:hover img { transform: scale(1.03); }
.team figcaption { padding: 1rem 1.2rem 1.15rem; }
.team h3 { font-size: 1.9rem; color: var(--white); }
.team p { margin: .2rem 0 0; font-size: .92rem; color: var(--yellow); }

/* ---------- Instagram ---------- */
.insta { background: var(--bg-1); color: var(--white); }
.insta__kicker { margin: 0 0 .5rem; font-weight: 700; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); }
.insta__handle { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.1rem; text-decoration: none; color: var(--white); padding: .6rem 1rem; border-radius: 999px; background: rgba(255,255,255,.07); transition: background-color .2s ease, color .2s ease; }
.insta__handle:hover { background: var(--yellow); color: var(--green-deep); }
.insta__handle svg { width: 22px; height: 22px; }
.insta__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.insta__post {
  position: relative; display: block; aspect-ratio: 1; overflow: hidden;
  border-radius: var(--radius); background: var(--bg-3); text-decoration: none; color: var(--white);
}
.insta__post img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.insta__post:hover img { transform: scale(1.06); }
.insta__type { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: rgba(0,0,0,.45); }
.insta__type svg { width: 16px; height: 16px; }
.insta__over {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: .4rem;
  padding: 1.1rem; background: linear-gradient(180deg, rgba(6,54,29,0) 35%, rgba(6,54,29,.92) 100%);
  opacity: 0; transition: opacity .3s ease;
}
.insta__post:hover .insta__over, .insta__post:focus-visible .insta__over { opacity: 1; }
.insta__date { font-size: .8rem; font-weight: 700; color: var(--yellow); text-transform: uppercase; letter-spacing: .06em; }
.insta__text { font-size: .92rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.insta__post--skel { background: linear-gradient(90deg, var(--bg-3) 0%, #146138 50%, var(--bg-3) 100%); background-size: 200% 100%; animation: skel 1.4s infinite linear; }
@keyframes skel { to { background-position: -200% 0; } }
.insta__grid--empty { display: block; }
.insta__empty {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 20px; text-decoration: none; color: var(--white);
  background: radial-gradient(120% 140% at 0% 0%, rgba(255,210,26,.22) 0%, rgba(215,38,30,.18) 45%, rgba(19,137,74,.25) 100%), var(--bg-3);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.insta__empty-icon { flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: linear-gradient(135deg, #FFD21A, #D7261E 60%, #13894A); color: var(--white); }
.insta__empty-icon svg { width: 36px; height: 36px; }
.insta__empty-text { flex: 1 1 280px; display: grid; gap: .3rem; }
.insta__empty-text strong { font: 800 clamp(1.5rem, 3vw, 2rem)/1.05 var(--display); text-transform: uppercase; }
.insta__empty-text span { color: var(--text-soft); }
.insta__empty:hover .btn--yellow { background: #FFE15A; }
.insta__cta { display: flex; justify-content: center; margin-top: 2rem; }
@media (max-width: 700px) {
  .insta__grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .insta__over { opacity: 1; background: linear-gradient(180deg, rgba(6,54,29,0) 55%, rgba(6,54,29,.85) 100%); padding: .7rem; }
  .insta__text { display: none; }
}

/* ---------- Patrocinadors ---------- */
.sponsors { background: var(--bg-3); color: var(--white); overflow: hidden; }
.marquee {
  position: relative; overflow: hidden; padding-block: .5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; gap: 1.25rem; width: max-content; animation: marquee var(--dur, 30s) linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.sponsor {
  flex: none; width: 240px; height: 120px; padding: 1.25rem 1.5rem;
  display: grid; place-items: center;
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  text-decoration: none; transition: transform .2s ease, box-shadow .2s ease;
}
a.sponsor:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(0,0,0,.35); }
.sponsor img { max-width: 100%; max-height: 72px; width: auto; height: auto; object-fit: contain; }
.sponsor__name { font: 900 2rem/1 var(--display); color: var(--green-deep); text-align: center; }
.sponsors__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 2.5rem; padding: 1.5rem 1.75rem; border-radius: var(--radius); background: var(--bg-1); }
.sponsors__cta p { margin: 0; font-weight: 600; font-size: 1.1rem; }
@media (max-width: 600px) { .sponsor { width: 180px; height: 96px; padding: 1rem; } .sponsor img { max-height: 56px; } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { flex-wrap: wrap; justify-content: center; width: auto; padding-inline: 1.25rem; }
  .marquee__track > [aria-hidden="true"] { display: none; }
}

/* ---------- Únete ---------- */
.join { background: var(--bg-2); color: var(--white); position: relative; overflow: hidden; }
.join::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 40px solid rgba(255,210,26,.12); pointer-events: none; }
.join__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; position: relative; z-index: 1; }
.join h2 { color: var(--yellow); margin-bottom: 1.5rem; max-width: 10ch; }
.join__copy > p { max-width: 46ch; color: rgba(255,255,255,.9); }
.join__list { list-style: none; padding: 0; margin: 1.75rem 0; display: grid; gap: 1rem; }
.join__list li { padding-left: 1.4rem; position: relative; max-width: 46ch; color: rgba(255,255,255,.88); }
.join__list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); }
.join__list strong { color: var(--white); }
.join__note { font-size: .95rem; color: rgba(255,255,255,.75) !important; }

.form { background: var(--white); color: var(--ink); border-radius: 18px; padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 1.1rem; box-shadow: 0 30px 60px rgba(6,54,29,.35); }
.field { display: grid; gap: .4rem; }
.field span { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  border: 1.5px solid #C9D6CD; border-radius: 10px; padding: .8rem .9rem;
  background: #FBFDFB; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(11,107,56,.18); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hp { position: absolute; left: -9999px; }
.form__status { margin: 0; padding: .85rem 1rem; border-radius: 10px; font-size: .95rem; line-height: 1.45; }
.form__status--error { background: #FDECEA; color: #8A1C15; }
.form__status--error a { color: inherit; font-weight: 700; }
.btn:disabled { opacity: .7; cursor: wait; }
@media (max-width: 860px) {
  .join__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Pie ---------- */
.footer { background: #042A16; color: rgba(255,255,255,.85); }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1.6fr .7fr; gap: 2rem; padding-block: 3rem; align-items: start; }
.footer__brand { display: flex; gap: 1rem; align-items: center; }
.footer__brand img { width: 48px; height: auto; }
.footer__brand strong { display: block; font: 900 1.6rem/1 var(--display); color: var(--white); }
.footer__brand span { font-size: .92rem; }
.footer__brand { align-items: flex-start; }
.footer__address { display: flex; width: fit-content; align-items: flex-start; gap: .4rem; margin-top: .45rem; text-decoration: none; color: rgba(255,255,255,.85); line-height: 1.4; transition: color .2s ease; }
.footer__address svg { flex: none; margin-top: .15rem; color: var(--yellow); }
.footer__address:hover { color: var(--yellow); }
.footer__address:hover span { text-decoration: underline; text-underline-offset: 3px; }
.footer__support > span { display: block; font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: .6rem; }
.footer__logos { display: flex; flex-wrap: wrap; gap: .75rem; }
.footer__logo { display: flex; align-items: center; justify-content: center; flex: 1 1 140px; max-width: 180px; height: 100px; padding: .55rem .9rem; overflow: hidden; background: var(--white); border-radius: 12px; transition: transform .2s ease, box-shadow .2s ease; }
.footer__logo:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,.3); }
.footer__logo img { max-width: 100%; max-height: 86px; width: auto; height: auto; object-fit: contain; }
.footer__nav { display: grid; gap: .35rem; justify-items: start; }
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { color: var(--yellow); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Visor de fotos ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(4, 30, 16, .92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; max-width: min(92vw, 1400px); text-align: center; }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 10px; }
.lightbox figcaption { color: var(--white); margin-top: .9rem; font-weight: 600; }
.lightbox__close, .lightbox__nav { position: fixed; background: rgba(255,255,255,.12); color: var(--white); border: 0; cursor: pointer; border-radius: 50%; width: 48px; height: 48px; font-size: 2rem; line-height: 1; display: grid; place-items: center; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--yellow); color: var(--green-deep); }
.lightbox__close { top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .club__photos img { animation: none !important; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ==========================================================
   Pàgina de resultats
   ========================================================== */
.page-results { background: var(--bg-1); }
.nav a[aria-current="page"] { background: rgba(255,255,255,.12); }
.page-hero { position: relative; color: var(--white); text-align: center; padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem); background: radial-gradient(120% 120% at 50% 0%, #0C5530 0%, var(--bg-1) 70%); }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: linear-gradient(180deg, var(--flag-red) 0 60%, var(--flag-yellow) 60% 80%, var(--flag-green) 80% 100%); }
.page-hero__kicker { margin: 0 0 .8rem; font-weight: 700; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); }
.page-hero h1 { font-size: clamp(2.8rem, 7vw, 5rem); color: var(--yellow); text-transform: uppercase; margin-bottom: 1rem; }
.page-hero__lead { max-width: 52ch; margin: 0 auto; color: var(--text-soft); }

.results { color: var(--white); padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.results__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .75rem 2rem; margin-bottom: 1.5rem; }
.results__head h2, .results__head h3 { font-size: clamp(2rem, 4vw, 3rem); color: var(--white); }
.results__comp { margin: .4rem 0 0; font-weight: 700; color: var(--white); }
.results__updated { margin: 0; color: var(--text-soft); font-size: .95rem; }

.results__cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-bottom: 2.5rem; }
.mcard { position: relative; overflow: hidden; background: var(--bg-3); border-radius: 18px; padding: 1.5rem 1.6rem 1.4rem; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.mcard::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 5px; background: var(--yellow); }
.mcard--last::before { background: var(--flag-red); }
.mcard__label { margin: 0 0 1rem; font: 800 1rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); }
.mcard--last .mcard__label { color: #FF6B5E; }
.mcard__teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .75rem; }
.mcard__team { display: flex; flex-direction: column; align-items: center; gap: .55rem; text-align: center; font-weight: 700; line-height: 1.2; font-size: .98rem; }
.mcard__team.is-us { color: var(--yellow); }
.mcard__logo { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; background: var(--white); padding: 5px; }
.mcard__mid { text-align: center; }
.mcard__score { font: 900 clamp(2rem, 4vw, 3rem)/1 var(--display); letter-spacing: .02em; white-space: nowrap; }
.mcard__vs { font: 900 1.6rem/1 var(--display); color: var(--text-soft); }
.mcard__when { margin: 1.1rem 0 0; text-align: center; font-weight: 700; }
.mcard__where { margin: .25rem 0 0; text-align: center; color: var(--text-soft); font-size: .92rem; }
.mcard__badge { display: inline-block; margin-top: .45rem; padding: .25rem .6rem; border-radius: 6px; font: 800 .8rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.badge--g { background: var(--green-mid); color: var(--white); }
.badge--e { background: #B08900; color: var(--white); }
.badge--p { background: var(--red); color: var(--white); }
.mcard__empty { color: var(--text-soft); margin: 0; }

.results__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.results__block h3 { font-size: 2rem; color: var(--yellow); margin-bottom: 1rem; }
.results__block .standings__table { min-width: 0; }
.results__block .standings__table th, .results__block .standings__table td { padding: .75rem .5rem; }
.team-logo { width: 22px; height: 22px; object-fit: contain; border-radius: 4px; background: var(--white); padding: 1px; flex: none; }

.matches { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; max-height: 620px; overflow-y: auto; padding-right: .25rem; scrollbar-width: thin; }
.match { display: grid; grid-template-columns: 64px 1fr auto; gap: .9rem; align-items: center; background: var(--bg-3); border-radius: 14px; padding: .8rem 1rem; border-left: 4px solid transparent; }
.match.is-next { border-left-color: var(--yellow); background: #0F6236; }
.match__date { text-align: center; line-height: 1.05; }
.match__day { display: block; font: 900 1.6rem/1 var(--display); }
.match__month { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-soft); }
.match__time { display: block; margin-top: .2rem; font-size: .8rem; color: var(--yellow); font-weight: 700; }
.match__tbd { font-size: .75rem; color: var(--text-soft); font-weight: 700; text-transform: uppercase; }
.match__teams { display: grid; gap: .3rem; min-width: 0; }
.match__row { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.match__row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.match__row.is-us span { font-weight: 800; color: var(--yellow); }
.match__row b { margin-left: auto; font: 900 1.15rem/1 var(--display); padding-left: .5rem; }
.match__where { font-size: .78rem; color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match__side { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.chip { display: inline-block; padding: .25rem .55rem; border-radius: 6px; font: 800 .75rem/1 var(--display); letter-spacing: .07em; text-transform: uppercase; background: rgba(255,255,255,.1); color: var(--text-soft); }
.chip--live { background: var(--flag-red); color: var(--white); }
.results__source { margin-top: 2rem; text-align: center; }
.results__error { background: var(--bg-3); border-radius: 14px; padding: 1.25rem 1.5rem; color: var(--text-soft); }
.skel { display: block; height: 72px; border-radius: 14px; background: linear-gradient(90deg, var(--bg-3) 0%, #146138 50%, var(--bg-3) 100%); background-size: 200% 100%; animation: skel 1.4s infinite linear; }

@media (max-width: 900px) {
  .results__grid { grid-template-columns: 1fr; }
  .matches { max-height: none; overflow: visible; }
}
@media (max-width: 640px) {
  .results__cards { grid-template-columns: 1fr; }
  .mcard__logo { width: 52px; height: 52px; }
  .mcard { padding: 1.3rem 1.1rem 1.2rem; }
  .mcard__team { font-size: .88rem; }
  .mcard__teams { gap: .5rem; }
  .match { grid-template-columns: 52px 1fr auto; padding: .7rem .8rem; gap: .7rem; }
}
.logo-ini { display: inline-grid; place-items: center; background: var(--bg-1) !important; color: var(--yellow); font: 800 .7rem/1 var(--display); letter-spacing: .02em; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.mcard__logo.logo-ini { font-size: 1.3rem; }
/* Sense escuts */
.no-logos .mcard__team { font: 800 clamp(1.15rem, 2vw, 1.45rem)/1.15 var(--display); letter-spacing: .01em; text-transform: uppercase; min-height: 3.2em; justify-content: center; }
.no-logos .mcard__teams { margin: .4rem 0 .2rem; }
.no-logos .match__row { gap: 0; }
.no-logos .match__row span { font-size: 1rem; }
@media (max-width: 640px) {
  .no-logos .mcard__team { font-size: .84rem; min-height: 0; overflow-wrap: break-word; hyphens: auto; }
  .mcard__score { letter-spacing: 0; }
  .no-logos .mcard__teams { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); }
  .mcard__score { font-size: 1.75rem; }
}
/* Selector Masculí / Femení + equips */
.results__picker { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-bottom: 2rem; }
.results__groups { margin: 0; }
.results__groups button { font-size: 1.05rem; padding: .85rem 1.8rem; }
.results__teams { display: flex; flex-wrap: wrap; gap: .5rem; }
.team-chip { font: 700 .95rem/1 var(--body); color: var(--white); background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.18); border-radius: 999px; padding: .65rem 1.1rem; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.team-chip:hover { border-color: var(--yellow); }
.team-chip[aria-selected="true"] { background: var(--white); color: var(--green-deep); border-color: var(--white); }
@media (max-width: 640px) {
  .results__picker { flex-direction: column; align-items: stretch; }
  .results__groups { display: grid; grid-template-columns: repeat(3, 1fr); }
  .results__groups button { padding: .8rem .4rem; font-size: 1rem; }
  .team-chip { padding: .6rem .95rem; font-size: .9rem; }
}
.venue { display: inline-flex; align-items: center; gap: .4rem; max-width: 100%; }
.venue__ico { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; }
.venue__ico svg { width: 14px; height: 14px; }
.venue--away .venue__ico svg { width: 15px; height: 15px; }
.venue--home { color: var(--white); font-weight: 600; }
.venue--home .venue__ico { background: var(--yellow); color: var(--green-deep); }
.venue--away .venue__ico { color: #d9ebe0; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
.match__where .venue { overflow: hidden; }
.mcard__where .venue__ico { width: 24px; height: 24px; }
.mcard__crest { width: auto; height: 64px; filter: drop-shadow(0 6px 12px rgba(0,0,0,.35)); }
@media (max-width: 640px) { .mcard__crest { height: 50px; } }
/* Avís de fase acabada */
.phase-done { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; padding: 1rem 1.25rem; border-radius: 14px; background: rgba(255,210,26,.12); box-shadow: inset 0 0 0 1.5px rgba(255,210,26,.45); color: var(--white); }
.phase-done strong { font: 800 1.15rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--yellow); }
.phase-done span { color: var(--text-soft); }
.standings__phase { margin: 0 0 1rem; }
.results { background: var(--bg-2); }
.results__title { margin-bottom: 1.5rem; }
/* Campanya L'handbol és respecte */
.respect { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.75rem; padding: 1.4rem 1.6rem; border-radius: 20px; background: linear-gradient(100deg, rgba(255,74,61,.16), rgba(255,74,61,.04) 60%), var(--bg-3); box-shadow: inset 0 0 0 1px rgba(255,74,61,.35); }
.respect__icon { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: #FF4A3D; color: var(--white); }
.respect__text { flex: 1 1 320px; display: grid; gap: .3rem; }
.respect__text strong { font: 800 clamp(1.4rem, 2.4vw, 1.8rem)/1.05 var(--display); text-transform: uppercase; color: var(--white); }
.respect__text span { color: var(--text-soft); }
.respect__btn { flex: none; }
@media (max-width: 560px) { .respect__btn { width: 100%; } }
.slogan__tail { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
@media (max-width: 440px) {
  .slogan__w { font-size: clamp(.95rem, 4.7vw, 1.25rem); letter-spacing: .045em; }
  .slogan__w + .slogan__w::before { margin: 0 .3em; }
}
/* Botó instal·lar app */
.nav__install, .footer__install { display: inline-flex; align-items: center; gap: .45rem; font: 700 .95rem/1 var(--body); cursor: pointer; border-radius: 999px; }
.nav__install { margin-left: .4rem; padding: .5rem .9rem; color: var(--white); background: rgba(255,255,255,.1); border: 0; }
.nav__install:hover { background: rgba(255,255,255,.18); }
.nav__install[hidden], .footer__install[hidden] { display: none; }
.footer__install { margin-top: .6rem; padding: .6rem 1rem; color: var(--green-deep); background: var(--yellow); border: 0; }
@media (max-width: 960px) { .nav .nav__install { margin: .5rem 0 0; justify-content: center; padding: .9rem .5rem; font-size: 1.05rem; border-radius: 8px; } }
.install-dialog { border: 0; border-radius: 20px; padding: 2rem 1.6rem 1.6rem; max-width: min(92vw, 420px); background: var(--bg-1); color: var(--white); text-align: center; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.install-dialog::backdrop { background: rgba(4,30,16,.75); }
.install-dialog > img { margin: 0 auto 1rem; border-radius: 16px; }
.install-dialog h2 { font-size: 1.9rem; margin-bottom: 1.2rem; }
.install-dialog ol { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .9rem; text-align: left; }
.install-dialog li { display: flex; gap: .8rem; align-items: center; color: var(--text-soft); }
.install-dialog li strong { color: var(--white); }
.install-dialog__ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--bg-3); color: var(--yellow); }
.install-dialog__ico img { border-radius: 4px; }
.install-dialog__close { position: absolute; top: 10px; right: 14px; background: none; border: 0; color: var(--text-soft); font-size: 1.8rem; cursor: pointer; }
.install-steps { display: none !important; }
.install-dialog.is-ios .install-steps--ios, .install-dialog.is-android .install-steps--android { display: grid !important; }
/* Escuts desats */
.logo--own { background: none !important; padding: 0 !important; box-shadow: none !important; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.3)); }
.logo--none { visibility: hidden; }
.team-logo.logo--none { display: none; }
.logo--esc { background: none !important; padding: 0 !important; box-shadow: none !important; object-fit: contain; filter: drop-shadow(0 0 1px rgba(255,255,255,.95)) drop-shadow(0 0 2px rgba(255,255,255,.55)); }
.team-logo.logo--esc { width: 24px; height: 24px; }
