/* =====================================================================
   TR CABRA FEIXET - STYLES.CSS
   DIRECCIÓN VISUAL: MONTAÑA ÉPICA (Cinematográfico + Drama)
   ===================================================================== */

/* ==============================================
   1. DESIGN TOKENS - PALETA ÉPICA
   ============================================== */
:root {
  /* Colores - Paleta Épica */
  --color-bg: #0a1520;
  --color-bg-alt: #0f1f2e;
  --color-accent-primary: #d4af37;
  --color-accent-secondary: #6b8e23;
  --color-text: #f5f5f5;
  --color-text-muted: #a8a8a8;
  --color-text-dim: #888888;

  /* Espaciado - Generoso */
  --space-xs: 0.75rem;
  --space-sm: 1.25rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 4rem;
  --space-2xl: 5.5rem;
  --space-3xl: 7rem;

  /* Tipografia */
  --font-display: "DM Sans", -apple-system, sans-serif;
  --font-serif: "DM Sans", -apple-system, sans-serif;
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --font-size-base: 16px;
  --font-size-sm: 0.875rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;

  --line-height-tight: 1.1;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.9;

  /* Sombras - Profundas */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.8);
  --shadow-xl: 0 30px 90px rgba(0, 0, 0, 0.95);

  /* Transitions */
  --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);

  /* Border Radius */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  /* Z-index */
  --z-nav: 50;
  --z-modal: 1000;
}

/* ==============================================
   2. RESET & BASE STYLES
   ============================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings - Display Épico */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: var(--line-height-tight);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.5rem, 10vw, 7rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 800;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-accent-primary);
}

h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-accent-primary);
}

p {
  margin-bottom: var(--space-md);
  line-height: var(--line-height-relaxed);
}

a {
  color: var(--color-accent-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: #fff9d6;
}

img, svg, picture {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-accent-primary);
  outline-offset: 3px;
}

/* ==============================================
   3. UTILITIES
   ============================================== */
.skip-link {
  position: fixed;
  top: -100px;
  left: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-accent-primary);
  color: var(--color-bg);
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: var(--z-modal);
  transition: var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-sm);
}

.hidden {
  display: none !important;
}

/* ==============================================
   4. LAYOUT CONTAINERS
   ============================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: 900px;
}

.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid--cols-2 {
  grid-template-columns: 1fr;
}

.grid--cols-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid--cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .container {
    padding: 0 var(--space-xl);
  }
}

/* ==============================================
   5. HEADER & NAVIGATION
   ============================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  pointer-events: none;
}

.nav {
  height: auto;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.5s ease, backdrop-filter 0.5s ease, border-color 0.5s ease, padding 0.3s ease, box-shadow 0.5s ease;
  padding: 1.1rem 0;
  pointer-events: auto;
}

.nav.is-scrolled {
  background: rgba(8, 15, 26, 0.55);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border-bottom: none;
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 32px rgba(0, 0, 0, 0.45);
  padding: 0.6rem 0;
  position: relative;
}

.nav.is-scrolled::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding-bottom: 1px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.14) 0%,
    rgba(255,255,255,0.04) 40%,
    rgba(255,255,255,0.0)  60%,
    rgba(255,255,255,0.08) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.nav-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent-primary);
  transition: var(--transition-fast);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-brand:hover {
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

.nav-logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
}

.nav-menu {
  display: none;
  list-style: none;
  gap: var(--space-lg);
  align-items: center;
}

.nav-menu.is-open {
  display: flex;
}

.nav-link {
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent-primary);
  transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--color-accent-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link--cta {
  color: var(--color-accent-primary);
  font-weight: 700;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 32px;
  height: 32px;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger {
  width: 22px;
  height: 2px;
  background: var(--color-accent-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
  transform-origin: center;
}

.nav-toggle.is-open .hamburger:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open .hamburger:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.is-open .hamburger:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 767px) {
  .nav-menu.is-open {
    position: absolute;
    top: 65px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 21, 32, 0.99);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    gap: 0;
    padding: var(--space-md) 0;
    align-items: stretch;
  }

  .nav-menu.is-open .nav-link {
    padding: var(--space-sm) var(--space-lg);
    display: block;
  }

  .container {
    padding: 0 var(--space-md);
  }
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
  }

  .nav-container {
    padding: 0 var(--space-xl);
  }
}

/* ==============================================
   6. HERO SECTION - ÉPICO & CINEMATOGRÁFICO
   ============================================== */

/* Wrapper que conté hero + Qui Som: limita la zona sticky del hero
   quan surts d'aquest div, el hero deixa de fer sticky */
.hero-sticky-zone {
  position: relative;
}

.hero {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Hero Media - Full Bleed */
.hero-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(0.82) saturate(1.05);
}

/* Hero Overlay - Cinematic: darker bottom for text, light top to see mountains */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background:
    linear-gradient(
      to bottom,
      rgba(10, 21, 32, 0.25) 0%,
      rgba(10, 21, 32, 0.1) 25%,
      rgba(10, 21, 32, 0.35) 60%,
      rgba(10, 21, 32, 0.7) 100%
    );
}

/* Bottom fade — transition to next section */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to bottom, transparent, var(--color-bg-alt));
  z-index: 3;
  pointer-events: none;
}

/* Gradient overlay extra per a la transició cap a Qui Som */
.hero-fade-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 420px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(10, 21, 32, 0.32) 22%,
    rgba(12, 24, 38, 0.76) 52%,
    rgba(15, 31, 46, 0.97) 78%,
    #0f1f2e 100%
  );
  z-index: 4;
  pointer-events: none;
}

/* SVG Topografía */
.hero-topo {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  z-index: 2;
  opacity: 0.15;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><path d="M0 200 Q300 100 600 200 T1200 200" stroke="white" fill="none" stroke-width="2"/><path d="M0 250 Q300 150 600 250 T1200 250" stroke="white" fill="none" stroke-width="1.5" opacity="0.6"/><path d="M0 300 Q300 200 600 300 T1200 300" stroke="white" fill="none" stroke-width="1" opacity="0.4"/></svg>');
  background-size: cover;
  pointer-events: none;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  max-width: 1080px;
  width: 100%;
  animation: fadeInDown 1.2s ease-out;
}

/* Eyebrow */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  font-family: var(--font-sans);
  font-size: clamp(0.62rem, 0.95vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.78);
  margin-bottom: var(--space-md);
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 44px;
  height: 1px;
  flex-shrink: 0;
}

.hero-eyebrow::before {
  background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.75));
}

.hero-eyebrow::after {
  background: linear-gradient(to left, transparent, rgba(212, 175, 55, 0.75));
}

.hero-title {
  margin-bottom: var(--space-sm);
  font-size: clamp(2.2rem, 8vw, 6.5rem);
  font-weight: 900;
  color: var(--color-text);
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.75);
  letter-spacing: -0.04em;
  line-height: 0.92;
  white-space: nowrap;
}

.hero-title-kicker {
  display: block;
  font-size: 0.35em;
  font-weight: 600;
  color: var(--color-accent-primary);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.15em;
  text-shadow: 0 2px 16px rgba(212, 175, 55, 0.5);
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-style: normal;
  font-weight: 300;
  color: rgba(245, 245, 245, 0.88);
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.hero-tagline {
  font-family: var(--font-sans);
  font-size: clamp(0.85rem, 1.3vw, 1.05rem);
  font-style: normal;
  font-weight: 400;
  color: rgba(212, 175, 55, 0.85);
  margin-bottom: var(--space-xl);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  letter-spacing: 0.02em;
}

/* Rotating words */
.hero-word-cycle {
  display: inline-grid;
  color: var(--color-accent-primary);
  font-style: inherit;
  font-weight: 600;
  font-size: 1.08em;
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.55), 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-word-cycle > span {
  grid-area: 1 / 1;
  opacity: 0;
  animation: wordCycle 10s infinite;
}

.hero-word-cycle > span:nth-child(1) { animation-delay: 0s; }
.hero-word-cycle > span:nth-child(2) { animation-delay: 2.5s; }
.hero-word-cycle > span:nth-child(3) { animation-delay: 5s; }
.hero-word-cycle > span:nth-child(4) { animation-delay: 7.5s; }

@keyframes wordCycle {
  0%          { opacity: 0; transform: translateY(7px); }
  8%          { opacity: 1; transform: translateY(0); }
  22%         { opacity: 1; transform: translateY(0); }
  30%         { opacity: 0; transform: translateY(-7px); }
  100%        { opacity: 0; transform: translateY(-7px); }
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .hero-cta {
    flex-direction: row;
    gap: var(--space-lg);
  }
}

/* Hero CTA — overrides per màxima visibilitat sobre la imatge de fons */
.hero-cta .btn--primary {
  background: #d4af37;
  color: #0b1720;
  border-color: #d4af37;
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.35),
    0 6px 28px rgba(212, 175, 55, 0.50),
    0 2px 8px rgba(0, 0, 0, 0.40);
}

.hero-cta .btn--primary:hover {
  background: #e8c84a;
  border-color: #e8c84a;
  color: #0b1720;
  box-shadow:
    0 0 0 1px rgba(232, 200, 74, 0.45),
    0 10px 40px rgba(212, 175, 55, 0.65),
    0 4px 12px rgba(0, 0, 0, 0.45);
  transform: translateY(-3px);
}

.hero-cta .liquid-glass {
  background: rgba(8, 18, 30, 0.58) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.32) !important;
  color: #ffffff;
  box-shadow:
    0 6px 28px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.hero-cta .liquid-glass::before {
  display: none;
}

.hero-cta .liquid-glass:hover {
  background: rgba(8, 18, 30, 0.72) !important;
  border-color: rgba(255, 255, 255, 0.52) !important;
  color: #ffffff;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.20);
  transform: scale(1.03) translateY(-2px);
}

/* Coordinates bottom-left */
.hero-coords {
  position: absolute;
  bottom: 2rem;
  left: 2.5rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.6);
}

.hero-coords-sep {
  opacity: 0.5;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  opacity: 0.7;
  animation: bounce 2.5s infinite;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.7;
  }
  50% {
    transform: translateX(-50%) translateY(-15px);
    opacity: 1;
  }
}

/* ==============================================
   7. SECTIONS - ÉPICAS & ESPACIADAS
   ============================================== */
.section {
  padding: var(--space-3xl) 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
  scroll-margin-top: 80px;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--color-accent-primary) 50%, transparent 100%);
  opacity: 0.3;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--hero {
  background: var(--color-bg);
}

.section--cta {
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  text-align: center;
}

.section-header {
  margin-bottom: var(--space-2xl);
  text-align: center;
}

/* ==============================================
   QUI SOM — Compact cinematic
   ============================================== */
.qs-section {
  position: relative;
  z-index: 1;
  background: var(--color-bg-alt);
  scroll-margin-top: 80px;
  padding: 70px 0 80px;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -28px 80px rgba(0, 0, 0, 0.75);
}

.qs-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 90px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.28), transparent);
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 767px) {
  .qs-section { padding: 50px 0 60px; }
}

.qs-wrap {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-2xl);
  align-items: stretch;
}

@media (max-width: 767px) {
  .qs-wrap {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding: 0 var(--space-md);
  }
}

/* Text column */
.qs-eyebrow {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin-bottom: var(--space-lg);
}

.qs-heading {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-transform: none;
  margin-bottom: var(--space-md);
}

.qs-body {
  font-size: clamp(0.87rem, 1.05vw, 0.96rem);
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.qs-tagline {
  font-size: clamp(0.84rem, 1.05vw, 0.94rem);
  font-style: italic;
  font-weight: 400;
  color: var(--color-accent-primary);
  line-height: 1.6;
  margin-top: var(--space-sm);
  margin-bottom: 0;
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  letter-spacing: 0.01em;
}

/* Stats strip — franja final de la secció */
.qs-stats {
  max-width: 1100px;
  margin: var(--space-xl) auto 0;
  padding: var(--space-lg) var(--space-xl) 0;
  border-top: 1px solid rgba(212, 175, 55, 0.14);
}

.qs-stats-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  text-align: center;
  margin-bottom: var(--space-md);
}

.qs-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

@media (max-width: 900px) {
  .qs-stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  .qs-stats { padding: var(--space-md) var(--space-md) 0; margin-top: var(--space-lg); }
}

@media (max-width: 479px) {
  .qs-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

.qs-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    opacity 0.7s ease,
    translate 0.7s ease;
}

.qs-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212,175,55,0.3);
  background: rgba(212,175,55,0.04);
}

.qs-card-num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-accent-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.qs-card-label {
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  line-height: 1.35;
}

/* Image column */
.qs-img-col {
  position: relative;
}

.qs-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 10px;
  display: block;
  filter: brightness(0.82) saturate(0.9);
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);
}

/* ==============================================
   REVEAL ANIMATIONS
   ============================================== */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition:
    opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 900ms cubic-bezier(0.22, 1, 0.36, 1);
  filter: blur(8px);
  will-change: opacity, transform, filter;
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal-image {
  transform: translateY(64px) scale(0.94);
}

.reveal-image.reveal-visible {
  transform: translateY(0) scale(1);
}

/* Les targetes recuperen el hover un cop han aparegut */
.qs-card.reveal-visible {
  transition:
    opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 900ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease,
    background 0.25s ease;
}

.qs-card.reveal-visible:hover {
  transform: translateY(-4px);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.reveal-delay-1 { transition-delay: 120ms; }
.reveal-delay-2 { transition-delay: 220ms; }
.reveal-delay-3 { transition-delay: 320ms; }
.reveal-delay-4 { transition-delay: 420ms; }
.reveal-delay-5 { transition-delay: 520ms; }
.reveal-delay-6 { transition-delay: 620ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-image {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

.section-title {
  margin-bottom: var(--space-md);
  color: var(--color-text);
  background: linear-gradient(135deg, var(--color-accent-primary) 0%, #fff9d6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
}

.section-title--large {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-text {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
}

/* ==============================================
   8. CONTENT BLOCKS & STATS - ÉPICOS
   ============================================== */
.content-block {
  line-height: var(--line-height-relaxed);
}

.content-block h3 {
  color: var(--color-accent-primary);
  margin-bottom: var(--space-md);
}

.content-block p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}


/* ==============================================
   9. IMAGES & FIGURES
   ============================================== */
.image-featured {
  margin: var(--space-2xl) 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  position: relative;
}

.image-featured img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition-slow);
  filter: brightness(0.9) contrast(1.05);
}

.image-featured:hover img {
  transform: scale(1.03);
  filter: brightness(1) contrast(1.1);
}

.image-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(212, 175, 55, 0.1) 100%);
  pointer-events: none;
}

.image-featured figcaption {
  padding: var(--space-md) var(--space-lg);
  background: rgba(10, 21, 32, 0.8);
  font-size: var(--font-size-sm);
  color: var(--color-accent-primary);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
}

/* ==============================================
   10. BUTTONS - ÉPICOS & IMPACTANTES
   ============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 1rem 2.5rem;
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:not(.btn--ghost):not(.liquid-glass)::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: var(--transition-fast);
  z-index: -1;
}

.btn:not(.btn--ghost):not(.liquid-glass):hover::before {
  left: 100%;
}

.btn--primary {
  background: var(--color-accent-primary);
  color: var(--color-bg);
  border-color: var(--color-accent-primary);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.2);
}

.btn--primary:hover {
  background: #e8c84a;
  border-color: #e8c84a;
  box-shadow: 0 8px 28px rgba(212, 175, 55, 0.35);
  transform: translateY(-3px);
}

.btn--secondary {
  background: transparent;
  color: var(--color-accent-primary);
  border-color: var(--color-accent-primary);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.2);
}

.btn--secondary:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: #fff9d6;
  color: #fff9d6;
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.4);
  transform: translateY(-4px);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-text-muted);
}

.btn--outline:hover {
  border-color: var(--color-accent-primary);
  color: var(--color-accent-primary);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  background-blend-mode: luminosity;
  color: var(--color-text);
  border: none;
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.18),
    0 4px 20px rgba(0, 0, 0, 0.35);
}

.btn--ghost::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.2px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.50) 0%,
    rgba(255,255,255,0.18) 20%,
    rgba(255,255,255,0.0)  45%,
    rgba(255,255,255,0.0)  55%,
    rgba(255,255,255,0.18) 80%,
    rgba(255,255,255,0.50) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: scale(1.03) translateY(-2px);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.22),
    0 8px 32px rgba(0, 0, 0, 0.4);
}

.btn--sm {
  padding: 0.75rem 1.5rem;
  font-size: 0.75rem;
}

.btn--lg {
  padding: 1.25rem 3rem;
  font-size: 0.875rem;
}

.btn--xl {
  padding: 1.5rem 3.5rem;
  font-size: 1rem;
}

.link-button {
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: var(--transition-fast);
}

.link-button:hover {
  color: var(--color-accent-primary);
}

/* ==============================================
   11. TRAVESSA FEATURE - ÉPICA & PRINCIPAL
   ============================================== */
.travessa-feature {
  margin: var(--space-2xl) 0;
}

.travessa-intro {
  margin: var(--space-2xl) 0;
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-style: normal;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Countdown - Épico */
.countdown-box {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(107, 142, 35, 0.06) 100%);
  border: 2px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-lg);
  margin: var(--space-2xl) 0;
  text-align: center;
  box-shadow: inset 0 0 40px rgba(212, 175, 55, 0.1), 0 12px 50px rgba(0, 0, 0, 0.5);
}

.countdown-header {
  margin-bottom: var(--space-xl);
  font-size: var(--font-size-lg);
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.countdown-header strong {
  color: var(--color-accent-primary);
  font-weight: 900;
}

.countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  min-width: 80px;
}

.countdown-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  color: var(--color-accent-primary);
  line-height: 1;
  text-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.countdown-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  font-weight: 600;
}

.countdown-sep {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 3rem);
  color: rgba(212, 175, 55, 0.5);
  align-self: center;
  margin: 0 var(--space-xs);
  font-weight: 700;
}

/* Travessa Details - Grid Épico */
.travessa-details {
  margin: var(--space-2xl) 0;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-lg);
}

.detail-item {
  padding: var(--space-lg);
  background: rgba(212, 175, 55, 0.06);
  border-left: 3px solid var(--color-accent-primary);
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.detail-item:hover {
  background: rgba(212, 175, 55, 0.12);
  border-left-width: 6px;
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.25);
  transform: translateY(-6px);
}

.detail-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.detail-value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--color-accent-primary);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.detail-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* CTA Section */
.travessa-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: center;
  margin: var(--space-2xl) 0;
}

@media (min-width: 768px) {
  .travessa-cta {
    flex-direction: row;
    justify-content: center;
  }
}

/* Info Panel */
.info-panel {
  margin-top: var(--space-2xl);
  padding: var(--space-2xl);
  background: rgba(212, 175, 55, 0.08);
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 30px rgba(212, 175, 55, 0.05);
  animation: slideDown 0.4s ease-out;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-2xl);
}

.info-section h4 {
  margin-bottom: var(--space-md);
}

.info-section ul {
  list-style: none;
}

.info-section li {
  margin-bottom: var(--space-sm);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
  padding-left: 1.5rem;
  position: relative;
}

.info-section li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--color-accent-primary);
  font-weight: bold;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==============================================
   12. GALLERY - ÉPICA
   ============================================== */
.gallery {
  margin: var(--space-3xl) 0;
}

.gallery-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-2xl);
  text-align: center;
  color: var(--color-accent-primary);
  text-transform: uppercase;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 1;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
  filter: brightness(0.8) contrast(1.1);
}

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(212, 175, 55, 0.15) 100%);
  pointer-events: none;
}

.gallery-item:hover img {
  transform: scale(1.1) rotate(2deg);
  filter: brightness(1) contrast(1.2);
}

/* ==============================================
   13. CARDS & FEATURES
   ============================================== */
.event-card {
  background: rgba(212, 175, 55, 0.08);
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: var(--transition-normal);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.event-card:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--color-accent-primary);
  box-shadow: 0 16px 60px rgba(212, 175, 55, 0.2);
  transform: translateY(-8px);
}

.event-card h3 {
  margin-bottom: var(--space-md);
}

.event-card p {
  color: var(--color-text-muted);
}

.event-preview {
  padding: var(--space-lg);
  background: rgba(212, 175, 55, 0.06);
  border-left: 4px solid var(--color-accent-primary);
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.event-preview:hover {
  background: rgba(212, 175, 55, 0.12);
  border-left-width: 8px;
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.2);
  transform: translateY(-6px);
}

.event-preview h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.3rem;
}

.event-date {
  font-size: var(--font-size-sm);
  color: var(--color-accent-primary);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
}

.event-preview p {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-md);
}

.feature-box {
  text-align: center;
  padding: var(--space-2xl);
  background: rgba(212, 175, 55, 0.08);
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.feature-box h3 {
  margin-bottom: var(--space-md);
}

.feature-box p {
  color: var(--color-text-muted);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-2xl);
}

.feature-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}

@media (min-width: 768px) {
  .feature-actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* ==============================================
   14. EQUIPACIÓ
   ============================================== */
.equip-selector {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.equip-nav {
  display: flex;
  gap: var(--space-sm);
}

.equip-nav-btn {
  flex: 1;
  padding: 1rem;
  background: transparent;
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: var(--transition-normal);
  letter-spacing: 0.08em;
}

.equip-nav-btn.is-active {
  background: var(--color-accent-primary);
  color: var(--color-bg);
  border-color: var(--color-accent-primary);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

.equip-nav-btn:hover {
  border-color: var(--color-accent-primary);
  color: var(--color-accent-primary);
}

.equip-info {
  position: relative;
}

.equip-info-piece {
  display: none;
  animation: fadeInUp 0.4s ease-out;
}

.equip-info-piece.is-active {
  display: block;
}

.equip-info-piece h3 {
  margin-bottom: var(--space-md);
}

.equip-info-piece p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.equip-info-piece ul {
  list-style: none;
  margin-bottom: var(--space-lg);
}

.equip-info-piece li {
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  padding-left: 1.5rem;
  position: relative;
}

.equip-info-piece li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--color-accent-primary);
}

.equip-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  position: relative;
}

.equip-piece {
  display: none;
  width: 100%;
  max-width: 350px;
  opacity: 0;
  transition: var(--transition-normal);
}

.equip-piece.is-active {
  display: block;
  opacity: 1;
}

/* ==============================================
   15. FOOTER
   ============================================== */
.footer {
  background: #080f18;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  padding: var(--space-3xl) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl) var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

@media (min-width: 560px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.7fr 1fr 1.4fr 1fr;
    align-items: start;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
}

/* Brand column */
.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  margin-bottom: var(--space-md);
}

.footer-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-brand-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-text-primary);
  letter-spacing: 0.01em;
}

.footer-brand-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 26ch;
  margin: 0;
}

/* Column titles */
.footer-title {
  font-size: 0.63rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-accent-primary);
  margin-bottom: var(--space-md);
}

/* Nav links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  text-decoration: none;
  transition: color 0.18s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-link-cta {
  color: var(--color-accent-primary) !important;
  font-weight: 600;
  margin-top: 0.35rem;
}

.footer-link-cta:hover {
  color: #fff !important;
}

/* Contact list */
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.footer-contact-icon {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-top: 1px;
  opacity: 0.55;
  stroke: currentColor;
}

.footer-contact-item a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.18s;
}

.footer-contact-item a:hover {
  color: #fff;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: color 0.18s;
}

.footer-social-link:hover {
  color: var(--color-accent-primary);
}

.footer-social-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  opacity: 0.65;
  stroke: currentColor;
  fill: none;
}

/* Bottom bar */
.footer-bottom {
  padding: var(--space-md) 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.7rem;
  color: var(--color-text-dim);
  margin: 0;
  letter-spacing: 0.05em;
}

/* Legacy alias kept for backward compat */
.footer-tagline { display: none; }
.footer-contact  { display: none; }

/* ==============================================
   16. MODALS & DIALOGS
   ============================================== */
/* Panell gran — s'obre com una pàgina, no com un popup petit */
dialog {
  border: none;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.9);
  background: var(--color-bg-alt);
  color: var(--color-text);
  width: min(1100px, 95vw);
  height: auto;
  max-height: 85vh;
  max-width: min(1100px, 95vw);
  padding: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(212, 175, 55, 0.15);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
}

/* El modal-content ocupa tota l'alçada i permet scroll interior */
.modal-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(212, 175, 55, 0.05);
  flex-shrink: 0;
  gap: 1rem;
}

.modal-header-text {
  flex: 1;
}

.modal-header h2 {
  margin: 0;
  padding: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text);
  line-height: 1.2;
}

.modal-subtitle {
  margin: 0.3rem 0 0;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

.modal-close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: rgba(212,175,55,0.08);
  border-radius: 8px;
  color: var(--color-text-muted);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-close:hover {
  background: rgba(212,175,55,0.18);
  border-color: rgba(212, 175, 55, 0.5);
  color: var(--color-accent-primary);
}


.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  margin: 0;
  background: rgba(10, 21, 32, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 8px;
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.search-input::placeholder {
  color: var(--color-text-dim);
}

.search-input:focus {
  outline: none;
  background: rgba(10, 21, 32, 0.8);
  border-color: var(--color-accent-primary);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.modal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.modal-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  background: rgba(212, 175, 55, 0.08);
  color: var(--color-accent-primary);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  border-bottom: 1px solid rgba(212,175,55,0.3);
  text-transform: uppercase;
}

.modal-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.modal-table tr:hover {
  background: rgba(212, 175, 55, 0.08);
}

/* ==============================================
   17. COOKIE BANNER
   ============================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 21, 32, 0.98);
  border-top: 2px solid rgba(212, 175, 55, 0.4);
  padding: var(--space-lg);
  z-index: 100;
  display: none;
  animation: slideUp 0.4s ease-out;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.8);
}

.cookie-banner.is-visible {
  display: flex;
}

.cookie-content {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}

.cookie-content p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.cookie-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 768px) {
  .cookie-banner {
    padding: var(--space-md) var(--space-lg);
  }

  .cookie-content {
    flex-direction: row;
    justify-content: space-between;
  }

  .cookie-content p {
    flex: 1;
  }

  .cookie-actions {
    flex-wrap: nowrap;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ==============================================
   18. CTA SECTION
   ============================================== */
.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 768px) {
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

/* ── CTA Final compacte (Forma part de TR Cabra Feixet) ── */
.cta-final-section {
  padding: var(--space-xl) 0 var(--space-3xl);
  background: var(--color-bg);
}

.cta-final-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2xl);
  align-items: center;
  background: rgba(10, 20, 34, 0.80);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 14px;
  padding: var(--space-xl) var(--space-2xl);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(212, 175, 55, 0.10);
}

.cta-final-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 0% 50%, rgba(212,175,55,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.cta-final-eyebrow {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin-bottom: var(--space-sm);
  opacity: 0.9;
}

.cta-final-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.cta-final-accent {
  color: var(--color-accent-primary);
}

.cta-final-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
  max-width: 46ch;
  margin-bottom: var(--space-lg);
}

.cta-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

.cta-final-fec {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: calc(var(--space-sm) * -0.5);
  margin-bottom: var(--space-lg);
}

.cta-final-fec strong {
  color: var(--color-accent-primary);
  font-weight: 700;
}

.cta-final-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm) var(--space-md);
  flex-shrink: 0;
}

.cta-final-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.70);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.cta-final-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent-primary);
  flex-shrink: 0;
  opacity: 0.85;
}

@media (max-width: 860px) {
  .cta-final-inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    padding: var(--space-xl);
  }

  .cta-final-highlights {
    grid-template-columns: repeat(2, auto);
    justify-content: start;
  }
}

@media (max-width: 480px) {
  .cta-final-highlights {
    grid-template-columns: 1fr;
  }
}

/* ==============================================
   19. RESPONSIVE DESIGN
   ============================================== */
@media (max-width: 767px) {
  .section {
    padding: var(--space-2xl) 0;
  }

  .btn--xl {
    width: 100%;
  }

  .modal-header {
    flex-direction: column;
    gap: var(--space-md);
    align-items: flex-start;
  }

  .modal-header h2 {
    width: 100%;
  }

  .modal-close {
    margin-left: auto;
  }

  .grid {
    gap: var(--space-lg);
  }
}

/* ==============================================
   20. LIQUID GLASS UTILITY
   ============================================== */
.liquid-glass {
  background: rgba(255, 255, 255, 0.03);
  background-blend-mode: luminosity;
  backdrop-filter: blur(10px) saturate(1.3);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  border: none !important;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    0 4px 16px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.45) 0%,
    rgba(255,255,255,0.15) 20%,
    rgba(255,255,255,0.0)  40%,
    rgba(255,255,255,0.0)  60%,
    rgba(255,255,255,0.15) 80%,
    rgba(255,255,255,0.45) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.liquid-glass:hover {
  transform: scale(1.03);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.2),
    0 8px 28px rgba(0, 0, 0, 0.4);
}

/* ==============================================
   21. ANIMATIONS & UTILITIES
   ============================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--color-text-muted);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.is-active {
  /* Active state class */
}

/* Respeto por motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==============================================
   NAV — Reconstrucció: regla, dropdown, CTA
   ============================================== */

/* Línia separadora brand / links */
.nav-rule {
  width: 1px;
  height: 26px;
  background: rgba(212,175,55,0.3);
  flex-shrink: 0;
  display: none;
}

@media (min-width: 768px) {
  .nav-rule { display: block; }
}

/* CTA "Fer-se Soci" — CTA principal del header */
.nav-cta {
  padding: 0.55rem 1.2rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--color-accent-primary);
  color: #0a1520;
  border-color: var(--color-accent-primary);
  box-shadow: 0 2px 14px rgba(212, 175, 55, 0.3);
  transition: var(--transition-normal);
}

.nav-cta:hover {
  background: #e8c84a;
  border-color: #e8c84a;
  color: #0a1520;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.45);
}

@media (min-width: 768px) {
  .nav-cta {
    padding: 0.65rem 1.5rem;
    font-size: 0.72rem;
    box-shadow: 0 2px 18px rgba(212, 175, 55, 0.32);
  }
}

/* Reordenació mòbil: brand | CTA | hamburger */
@media (max-width: 767px) {
  .nav-container { gap: var(--space-sm); }
  .nav-cta { order: 2; margin-left: auto; }
  .nav-toggle { order: 3; }
}

/* Desktop: brand | rule | menú (flex:1 right) | CTA */
@media (min-width: 768px) {
  .nav-container {
    justify-content: flex-start;
    gap: var(--space-lg);
  }
  .nav-menu {
    flex: 1;
    justify-content: flex-end;
    gap: var(--space-lg);
  }
}

/* Dropdown */
.nav-item--has-dropdown { position: relative; }

.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.35em;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

.nav-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.25s ease;
  margin-left: 2px;
  flex-shrink: 0;
}

.nav-dropdown-btn[aria-expanded="true"] .nav-arrow {
  transform: rotate(180deg);
}

.nav-dropdown {
  list-style: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: rgba(8,17,27,0.98);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-xs) 0;
  min-width: 230px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: var(--z-modal);
}

.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  width: 10px;
  height: 10px;
  background: rgba(8,17,27,0.98);
  border-left: 1px solid rgba(212,175,55,0.2);
  border-top: 1px solid rgba(212,175,55,0.2);
  transform: translateX(-50%) rotate(45deg);
}

.nav-item--has-dropdown.is-open .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-link {
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding: 0.75rem var(--space-lg);
  color: var(--color-text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: var(--transition-fast);
  border-left: 2px solid transparent;
}

.nav-dropdown-link:hover {
  color: var(--color-accent-primary);
  background: rgba(212,175,55,0.06);
  border-left-color: var(--color-accent-primary);
}

/* Dropdown mòbil: s'expandeix dins el menú vertical */
@media (max-width: 767px) {
  .nav-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    background: rgba(212,175,55,0.04);
    border: 1px solid rgba(212,175,55,0.12);
    border-radius: var(--radius-md);
    margin: var(--space-xs) var(--space-lg) var(--space-xs);
    box-shadow: none;
    backdrop-filter: none;
    display: none;
  }
  .nav-dropdown::before { display: none; }
  .nav-item--has-dropdown.is-open .nav-dropdown { display: block; }
}

/* ==============================================
   TRAVESSA — Secció completa (3a edició)
   ============================================== */
.tv-section {
  position: relative;
  z-index: 1;
  background: var(--color-bg);
  scroll-margin-top: 80px;
}

/* Capçalera: text + compte enrere — amb fons difuminat atmosfèric */
.tv-top {
  position: relative;
  overflow: hidden;
  padding: var(--space-2xl) 0 var(--space-xl);
}

/* Imatge de fons cinematogràfica (vistamorral) */
.tv-top::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/img/travessa/vistamorral.jpg');
  background-size: cover;
  background-position: center 40%;
  filter: blur(2px) saturate(0.75);
  opacity: 0.52;
  z-index: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease;
}

/* Overlay fosc blau/negre per llegibilitat del text */
.tv-top::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(5,12,22,0.72) 0%,
    rgba(10,21,32,0.78) 45%,
    rgba(10,21,32,0.94) 80%,
    #0a1520 100%
  );
  z-index: 1;
}

/* El contingut per sobre dels pseudo-elements */
.tv-top > .container {
  position: relative;
  z-index: 2;
}

.tv-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 900px) {
  .tv-top-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-2xl);
  }
}

.tv-eyebrow {
  display: block;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin-bottom: var(--space-sm);
}

.tv-title {
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.0;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.tv-date-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-bg);
  background: var(--color-accent-primary);
  border-radius: 4px;
  padding: 0.3rem 0.85rem;
  margin-bottom: var(--space-lg);
}

.tv-intro {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.tv-intro:last-child { margin-bottom: 0; }

/* Compte enrere card */
.tv-cd-card {
  background: rgba(212,175,55,0.05);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 10px;
  padding: var(--space-lg) var(--space-xl);
  text-align: center;
}

.tv-cd-label {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin-bottom: var(--space-lg);
}

.tv-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.tv-cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 58px;
}

.tv-cd-num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 900;
  color: var(--color-accent-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.tv-cd-text {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

.tv-cd-sep {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: rgba(212,175,55,0.4);
  margin-bottom: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

/* Imatge panoràmica — oculta: ara usada com a fons difuminat del tv-top */
.tv-panorama {
  display: none;
}

/* Fitxa tècnica — info-bar compacta */
.tv-tech {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(212,175,55,0.12);
  border-bottom: 1px solid rgba(212,175,55,0.12);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.tv-tech-item {
  flex: 1;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: var(--space-md) var(--space-sm);
  text-align: center;
}

.tv-tech-sep {
  width: 1px;
  height: 32px;
  background: rgba(212,175,55,0.15);
  flex-shrink: 0;
}

@media (max-width: 599px) {
  .tv-tech-sep { display: none; }
  .tv-tech-item { min-width: 40%; padding: var(--space-sm); }
}

.tv-tech-num {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.75rem);
  font-weight: 900;
  color: var(--color-accent-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.tv-tech-lbl {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  transition: color 0.28s ease;
}

/* ── Flow lines canvas sobre la fitxa tècnica ── */
.tv-flow-zone {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.tv-flow-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.tv-flow-zone.is-hovered .tv-flow-canvas {
  opacity: 1;
}

/* Items per damunt del canvas */
.tv-tech-item,
.tv-tech-sep {
  position: relative;
  z-index: 1;
}

/* Hover individual per ítem */
.tv-tech-item {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
}

@media (hover: hover) {
  .tv-tech-item:hover {
    transform: translateY(-3px);
  }

  .tv-tech-item:hover .tv-tech-num {
    color: #f0cc55;
    text-shadow: 0 0 18px rgba(212,175,55,0.45);
  }

  .tv-tech-item:hover .tv-tech-lbl {
    color: var(--color-text-muted);
  }
}

/* ── Bloc recorregut + accions: layout 2 columnes ── */
.tv-route-block {
  margin-bottom: var(--space-2xl);
}

.tv-route-block-grid {
  display: grid;
  grid-template-columns: 65fr 35fr;
  gap: var(--space-xl);
  align-items: start;
}

@media (max-width: 899px) {
  .tv-route-block-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* Card Wikiloc — esquerra */
/* ── Card Wikiloc premium ── */
.tv-wikiloc-card {
  background: rgba(7, 14, 24, 0.92);
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 2px 0 rgba(212,175,55,0.08) inset,   /* filet superior daurat */
    0 8px 40px rgba(0,0,0,0.55),
    0 1px 0 rgba(255,255,255,0.04) inset;
}

/* Capçalera: fila esquerra + chips dreta */
.tv-wikiloc-card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.1rem 1.4rem 1rem;
  background: linear-gradient(
    135deg,
    rgba(212,175,55,0.06) 0%,
    rgba(10,18,30,0.0) 60%
  );
  border-bottom: 1px solid rgba(212,175,55,0.1);
}

.tv-wikiloc-card-hd-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tv-wikiloc-card-eyebrow {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  line-height: 1;
}

.tv-wikiloc-card-meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  margin: 0;
  letter-spacing: 0.01em;
}

/* Chips de dades ràpides */
.tv-wikiloc-card-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.tv-wikiloc-chip {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(212,175,55,0.7);
  background: rgba(212,175,55,0.07);
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: 20px;
  padding: 0.25rem 0.7rem;
  white-space: nowrap;
}

/* Contenidor de l'iframe — mascara les vores blanques */
.tv-wikiloc-iframe-wrap {
  position: relative;
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.tv-wikiloc-iframe-wrap iframe {
  display: block;
  /* Marges negatius per retallar les vores blanques del embed */
  width: calc(100% + 4px);
  margin: -2px;
  height: 520px;
  border: none;
  /* Lleugera saturació i contrast per integrar amb el dark */
  filter: brightness(0.97) contrast(1.03) saturate(0.92);
}

/* Overlays per dissimular les vores blanques del iframe */
.tv-wikiloc-edge {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

.tv-wikiloc-edge--l {
  top: 0; bottom: 0; left: 0;
  width: 3px;
  background: rgba(7,14,24,0.98);
}

.tv-wikiloc-edge--r {
  top: 0; bottom: 0; right: 0;
  width: 3px;
  background: rgba(7,14,24,0.98);
}

.tv-wikiloc-edge--b {
  left: 0; right: 0; bottom: 0;
  height: 40px;
  background: linear-gradient(to top, rgba(7,14,24,0.75) 0%, transparent 100%);
}

@media (max-width: 899px) {
  .tv-wikiloc-iframe-wrap iframe { height: 420px; }
}

@media (max-width: 599px) {
  .tv-wikiloc-iframe-wrap iframe { height: 360px; }
  .tv-wikiloc-card-chips { display: none; }
}

/* Peu del card: link discret */
.tv-wikiloc-card-ft {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.7rem 1.4rem;
  border-top: 1px solid rgba(212,175,55,0.08);
  background: rgba(212,175,55,0.025);
}

.tv-wikiloc-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(212,175,55,0.5);
  text-decoration: none;
  transition: color 0.22s ease, gap 0.22s ease;
}

.tv-wikiloc-card-link:hover {
  color: var(--color-accent-primary);
  gap: 0.5em;
}

/* Card accions — dreta */
.tv-actions-card {
  background: rgba(10, 18, 30, 0.85);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: 16px;
  padding: 1.75rem 1.5rem 2rem;
  position: sticky;
  top: 80px;
}

.tv-actions-card-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin: 0 0 0.45rem;
}

.tv-actions-card-sub {
  font-size: 0.78rem;
  color: var(--color-text-dim);
  margin: 0 0 1.5rem;
  line-height: 1.55;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(212,175,55,0.1);
}

.tv-actions-btns {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.tv-actions-btns .btn {
  width: 100%;
  justify-content: center;
  font-size: 0.75rem;
  padding: 0.85rem 1rem;
}

/* Avís bus — sota els botons */
.tv-actions-notice {
  margin: var(--space-md) 0 0;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(212,175,55,0.2);
  border-left: 3px solid rgba(212,175,55,0.55);
  border-radius: 6px;
  background: rgba(212,175,55,0.04);
  font-size: 0.72rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.5);
}

.tv-actions-notice strong {
  font-weight: 700;
  color: rgba(212,175,55,0.85);
}

/* Botó actiu quan el panel és obert */
#travessa-info-btn.is-active,
#travessa-classification-btn.is-active {
  background: rgba(212,175,55,0.12);
  border-color: rgba(212,175,55,0.6);
  color: var(--color-accent-primary);
}

/* Panel desplegable integrat (no modal) */
.tv-info-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.52s cubic-bezier(0.4, 0, 0.2, 1),
    opacity    0.32s ease,
    margin     0.4s ease;
  margin-top: 0;
  margin-bottom: 0;
}

.tv-info-panel.is-open {
  max-height: 1600px;
  opacity: 1;
  margin-top: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.tv-info-panel-inner {
  background: rgba(12, 24, 38, 0.96);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 12px;
  padding: 2rem 2rem 2.25rem;
}

.tv-info-panel-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(212,175,55,0.12);
}

.tv-info-panel-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin-bottom: 0.35rem;
}

.tv-info-panel-sub {
  font-size: 0.82rem;
  color: var(--color-text-dim);
  line-height: 1.5;
}

.tv-info-panel-close {
  flex-shrink: 0;
  background: none;
  border: 1px solid rgba(212,175,55,0.22);
  border-radius: 20px;
  color: var(--color-text-dim);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.tv-info-panel-close:hover {
  border-color: var(--color-accent-primary);
  color: var(--color-accent-primary);
}

/* Panel classificació inline */
.tv-class-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.52s cubic-bezier(0.4, 0, 0.2, 1),
    opacity    0.32s ease,
    margin     0.4s ease;
  margin-top: 0;
  margin-bottom: 0;
}

.tv-class-panel.is-open {
  max-height: 820px;
  opacity: 1;
  margin-top: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.tv-class-panel-inner {
  background: rgba(12, 24, 38, 0.96);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 12px;
  padding: 1.75rem 2rem 2rem;
}

.tv-class-panel-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(212,175,55,0.12);
}

.tv-class-panel-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin-bottom: 0.25rem;
}

.tv-class-panel-sub {
  font-size: 0.8rem;
  color: var(--color-text-dim);
  line-height: 1.5;
  margin: 0;
}

.tv-class-search-zone {
  margin-bottom: 1rem;
}

.tv-class-table-wrap {
  max-height: 520px;
  overflow-y: auto;
  overflow-x: auto;
  border-radius: 6px;
  border: 1px solid rgba(212,175,55,0.1);
}

/* Scrollbar discreta per al wrapper de la taula */
.tv-class-table-wrap::-webkit-scrollbar {
  width: 5px;
}
.tv-class-table-wrap::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.03);
}
.tv-class-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(212,175,55,0.25);
  border-radius: 3px;
}
.tv-class-table-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(212,175,55,0.45);
}

/* Etiqueta de subsecció */
.tv-subsection-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  text-align: center;
  margin-bottom: var(--space-2xl);
}

/* Ruta Wikiloc */
.tv-route {
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(212,175,55,0.1);
  margin-bottom: var(--space-3xl);
}

.tv-wikiloc-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(212,175,55,0.14);
}

.tv-wikiloc-wrap iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: none;
}

/* ── Veus dels participants — ticker infinit ── */
.tv-voices {
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(212,175,55,0.1);
  margin-bottom: var(--space-3xl);
}

/* Capçalera */
.tv-vc-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.tv-vc-eyebrow {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin-bottom: 0.6rem;
}

.tv-vc-title {
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.tv-vc-sub {
  font-size: 0.82rem;
  color: var(--color-text-dim);
  margin: 0;
  line-height: 1.6;
}

/* Viewport amb màscares de degradat als costats */
.tv-vc-outer {
  position: relative;
  overflow: hidden;
  cursor: grab;
}

.tv-vc-outer:active { cursor: grabbing; }

.tv-vc-outer::before,
.tv-vc-outer::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.tv-vc-outer::before {
  left: 0;
  background: linear-gradient(to right, #0a1520 0%, transparent 100%);
}

.tv-vc-outer::after {
  right: 0;
  background: linear-gradient(to left, #0a1520 0%, transparent 100%);
}

/* Track: flex fila continua */
.tv-vc-track {
  display: flex;
  gap: 20px;
  padding: var(--space-md) 0 var(--space-lg);
  will-change: transform;
  width: max-content;
}

/* Card individual */
.tv-vc-card {
  flex-shrink: 0;
  width: 300px;
  background: rgba(12, 22, 36, 0.9);
  border: 1px solid rgba(212,175,55,0.14);
  border-radius: 14px;
  padding: 1.5rem 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@media (hover: hover) {
  .tv-vc-card:hover {
    border-color: rgba(212,175,55,0.35);
    background: rgba(16, 28, 46, 0.95);
    transform: translateY(-4px);
  }
}

/* Estrelles */
.tv-vc-stars {
  display: flex;
  gap: 2px;
}

.tv-vc-star {
  font-size: 0.75rem;
  color: rgba(212,175,55,0.2);
  line-height: 1;
}

.tv-vc-star.is-lit {
  color: var(--color-accent-primary);
}

/* Text del testimoni */
.tv-vc-text {
  font-size: 0.87rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
  flex: 1;
  margin: 0;
  font-style: italic;
}

/* Footer: autor + badge */
.tv-vc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(212,175,55,0.1);
}

.tv-vc-author {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
}

.tv-vc-badge {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
}

/* Fletxes de navegació */
.tv-vc-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.tv-vc-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(212,175,55,0.06);
  border: 1px solid rgba(212,175,55,0.2);
  color: var(--color-text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.2s ease;
}

.tv-vc-arrow:hover {
  background: rgba(212,175,55,0.14);
  border-color: rgba(212,175,55,0.5);
  color: var(--color-accent-primary);
  transform: scale(1.08);
}

@media (max-width: 480px) {
  .tv-vc-card { width: 260px; }
  .tv-vc-outer::before,
  .tv-vc-outer::after { width: 40px; }
}

/* Galeria Travessa */
.tv-gallery-section {
  padding-bottom: var(--space-3xl);
}

.tv-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .tv-gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─── Travessa Teaser (index.html) ─── */
.tv-teaser-section {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, rgba(6,12,22,0.0) 0%, rgba(10,18,30,0.0) 100%);
}

.tv-teaser-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.tv-teaser-eyebrow {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin-bottom: var(--space-sm);
}

.tv-teaser-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.tv-teaser-date {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: var(--space-md);
}

.tv-teaser-desc {
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 42ch;
  margin-bottom: var(--space-lg);
}

.tv-teaser-stats {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-xl);
}

.tv-teaser-dot {
  color: var(--color-accent-primary);
  font-size: 1.1em;
}

.tv-teaser-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Compte enrere compacte — home teaser Travessa */
.tv-teaser-cd {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.tv-teaser-cd-label {
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  white-space: nowrap;
  opacity: 0.85;
}

.tv-teaser-cd-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.tv-teaser-cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  min-width: 34px;
}

.tv-teaser-cd-num {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--color-accent-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.tv-teaser-cd-text {
  font-size: 0.46rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.tv-teaser-cd-sep {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  color: rgba(212, 175, 55, 0.38);
  margin-bottom: 0.85rem;
  line-height: 1;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .tv-teaser-cd {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    width: 100%;
  }
}

.tv-teaser-visual {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55), 0 1px 0 rgba(212,175,55,0.12) inset;
  border: 1px solid rgba(212,175,55,0.12);
}

.tv-teaser-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.88) brightness(0.93);
  transition: transform 0.6s ease, filter 0.4s ease;
}

.tv-teaser-visual:hover img {
  transform: scale(1.04);
  filter: saturate(0.95) brightness(0.97);
}

@media (max-width: 899px) {
  .tv-teaser-inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .tv-teaser-visual {
    order: -1;
    aspect-ratio: 16 / 7;
  }
  .tv-teaser-desc { max-width: 100%; }
}

/* ─── Qui Som – pàgina dedicada ─── */
.qs-page-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.qs-page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.qs-page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.75) brightness(0.55);
}

.qs-page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(10,21,32,0.97) 0%, rgba(10,21,32,0.4) 50%, transparent 80%),
    linear-gradient(to right, rgba(10,21,32,0.4) 0%, transparent 60%);
}

.qs-page-hero-content {
  position: relative;
  z-index: 2;
  padding: 140px 0 var(--space-3xl);
  width: 100%;
}

.qs-page-hero-inner {
  max-width: 600px;
}

.qs-page-hero-eyebrow {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin-bottom: var(--space-sm);
}

.qs-page-hero-title {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: var(--space-sm);
}

.qs-page-hero-sub {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin: 0;
}

/* Cos de la pàgina */
.qs-page-body {
  background: var(--color-bg-alt);
  padding: var(--space-3xl) 0 var(--space-2xl);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -28px 80px rgba(0,0,0,0.75);
  margin-top: -18px;
}

/* Botó d'accions dins el text */
.qs-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

/* CTA final */
.qs-page-cta {
  background: var(--color-bg-alt);
  padding: var(--space-3xl) 0;
}

.qs-page-cta-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.qs-page-cta-eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin-bottom: var(--space-sm);
  display: block;
}

.qs-page-cta-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.qs-page-cta-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.qs-page-cta-fec {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: var(--space-xl);
}

.qs-page-cta-fec strong {
  color: var(--color-accent-primary);
  font-weight: 700;
}

.qs-page-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

/* Estil active del nav link */
.nav-link.is-current {
  color: var(--color-accent-primary) !important;
}

/* ─── Site dots background canvas (totes les pàgines) ─── */
.site-dots-canvas {
  position: fixed;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;        /* mai bloqueja clics ni hover */
  z-index: 1;                  /* sobre fons de secció, sota contingut posicionat */
  will-change: transform;
}

/* ─── Sant Silvestre page ─── */

/* Hero */
.ss-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.ss-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ss-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.8) brightness(0.7);
}

.ss-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top,  rgba(10,21,32,0.97) 0%,  rgba(10,21,32,0.6) 40%, transparent 75%),
    linear-gradient(to right, rgba(10,21,32,0.55) 0%, transparent 60%);
}

.ss-hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: var(--space-3xl);
  padding-top: 140px;
}

.ss-hero-inner {
  max-width: 680px;
}

.ss-hero-eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin-bottom: var(--space-sm);
}

.ss-hero-title {
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--space-md);
}

.ss-hero-edition {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-md);
}

.ss-hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255,255,255,0.75);
  max-width: 38ch;
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.ss-hero-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ss-hero-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.ss-hero-badge-sep {
  color: var(--color-accent-primary);
  font-size: 1em;
}

/* Scroll indicator */
.ss-hero-scroll {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.ss-hero-scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-accent-primary), transparent);
  animation: ss-scroll-pulse 2s ease-in-out infinite;
}

@keyframes ss-scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}

.ss-hero-scroll-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

/* Cos principal */
.ss-body {
  padding: var(--space-3xl) 0;
}

.ss-section-eyebrow {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin-bottom: var(--space-sm);
}

/* Intro */
.ss-intro {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2xl);
  align-items: start;
  margin-bottom: var(--space-3xl);
}

.ss-intro-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  max-width: 28ch;
}

.ss-intro-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-muted);
  max-width: 52ch;
}

.ss-intro-cartel {
  width: 200px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(212,175,55,0.15);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.ss-intro-cartel img {
  width: 100%;
  display: block;
}

@media (max-width: 700px) {
  .ss-intro { grid-template-columns: 1fr; gap: var(--space-xl); }
  .ss-intro-cartel { width: 140px; }
}

/* Modalitats */
.ss-modalities {
  margin-bottom: var(--space-3xl);
}

.ss-modalities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

@media (max-width: 700px) {
  .ss-modalities-grid { grid-template-columns: 1fr; }
}

.ss-modality-card {
  background: rgba(10, 18, 30, 0.85);
  border: 1px solid rgba(212,175,55,0.13);
  border-radius: 20px;
  padding: 2.25rem 2rem 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.ss-modality-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.ss-modality-card--cursa::before {
  background: radial-gradient(ellipse at top left, rgba(212,175,55,0.08) 0%, transparent 65%);
}

.ss-modality-card--caminada::before {
  background: radial-gradient(ellipse at top left, rgba(107,142,35,0.08) 0%, transparent 65%);
}

@media (hover: hover) {
  .ss-modality-card:hover {
    border-color: rgba(212,175,55,0.35);
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  }
  .ss-modality-card:hover::before { opacity: 1; }
}

.ss-modality-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-primary);
  margin-bottom: 1.25rem;
}

.ss-modality-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.4rem;
}

.ss-modality-name {
  font-size: 1.9rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.ss-modality-dist {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--color-accent-primary);
  line-height: 1;
  margin-bottom: 1rem;
}

.ss-modality-desc {
  font-size: 0.87rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.ss-modality-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.25rem;
}

.ss-modality-details li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

.ss-modality-details li span {
  color: rgba(255,255,255,0.4);
  font-weight: 400;
}

.ss-modality-details li strong {
  color: rgba(255,255,255,0.8);
  font-weight: 600;
  text-align: right;
}

/* Inscrits panel zone */
.ss-inscrits-zone {
  margin-bottom: var(--space-2xl);
}

.ss-inscrits-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 1.75rem 2rem;
  background: rgba(10, 18, 30, 0.6);
  border: 1px solid rgba(212,175,55,0.13);
  border-radius: 16px;
  flex-wrap: wrap;
}

.ss-inscrits-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.ss-inscrits-sub {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* Panel desplegable */
.ss-inscrits-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 0;
}

.ss-inscrits-panel.is-open {
  max-height: 700px;
  margin-top: var(--space-sm);
}

.ss-inscrits-panel-inner {
  background: rgba(7, 14, 24, 0.95);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.ss-inscrits-panel-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ss-inscrits-panel-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.2rem;
}

.ss-inscrits-panel-cnt {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.ss-inscrits-search-zone {
  padding: 1rem 1.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ss-inscrits-table-wrap {
  overflow-y: auto;
  max-height: 420px;
  padding: 0 1.75rem 1.5rem;
}

/* Edicions anteriors */
.ss-editions {
  padding: var(--space-3xl) 0;
  background: linear-gradient(to bottom, transparent, rgba(6, 12, 22, 0.5) 30%, rgba(6, 12, 22, 0.5) 70%, transparent);
}

.ss-editions-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.ss-editions-title {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.ss-editions-sub {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 44ch;
  margin: 0 auto;
  line-height: 1.6;
}

.ss-editions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

@media (max-width: 899px) {
  .ss-editions-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }
}

@media (max-width: 480px) {
  .ss-editions-grid { grid-template-columns: 1fr; }
}

.ss-edition-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255,255,255,0.06);
  cursor: default;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.3s ease;
}

@media (hover: hover) {
  .ss-edition-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 24px 56px rgba(0,0,0,0.65);
    border-color: rgba(212,175,55,0.3);
  }
  .ss-edition-card:hover .ss-edition-img img {
    transform: scale(1.08);
    filter: brightness(0.6) saturate(0.9);
  }
}

.ss-edition-img {
  position: absolute;
  inset: 0;
}

.ss-edition-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: brightness(0.55) saturate(0.85);
  transition: transform 0.5s ease, filter 0.4s ease;
}

.ss-edition-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,12,22,0.88) 0%, rgba(6,12,22,0.3) 50%, transparent 100%);
}

.ss-edition-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  padding: 1.25rem 1.1rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ss-edition-year {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
}

.ss-edition-num {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.ss-edition-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 50px;
  padding: 0.2rem 0.6rem;
  margin-left: auto;
}

.ss-edition-card--featured {
  border-color: rgba(212,175,55,0.22);
  box-shadow: 0 0 0 1px rgba(212,175,55,0.1), 0 8px 32px rgba(0,0,0,0.4);
}

.ss-edition-card--featured .ss-edition-year {
  color: var(--color-accent-primary);
}

/* CTA final */
.ss-cta-section {
  padding: var(--space-3xl) 0;
}

.ss-cta-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.ss-cta-eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin-bottom: var(--space-sm);
}

.ss-cta-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.ss-cta-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}

/* Teaser Sant Silvestre (index.html) */
.ss-teaser-section {
  padding: var(--space-3xl) 0;
}

.ss-teaser-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.ss-teaser-eyebrow {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin-bottom: var(--space-sm);
}

.ss-teaser-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.0;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.ss-teaser-date {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-md);
}

.ss-teaser-desc {
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 44ch;
  margin-bottom: var(--space-lg);
}

.ss-teaser-modalities {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.ss-teaser-modality {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ss-teaser-modality-dist {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--color-accent-primary);
  line-height: 1;
}

.ss-teaser-modality-name {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.ss-teaser-sep {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  margin-top: 0.25rem;
}

.ss-teaser-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.ss-teaser-visual {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55), 0 1px 0 rgba(212,175,55,0.1) inset;
  border: 1px solid rgba(212,175,55,0.1);
}

.ss-teaser-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.85) brightness(0.9);
  transition: transform 0.6s ease, filter 0.4s ease;
}

.ss-teaser-visual:hover img {
  transform: scale(1.04);
  filter: saturate(0.92) brightness(0.95);
}

@media (max-width: 899px) {
  .ss-teaser-inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .ss-teaser-visual {
    order: -1;
    aspect-ratio: 16 / 7;
  }
  .ss-teaser-desc { max-width: 100%; }
}

/* ─── Sortides Grupals – teaser portada ─── */
.sgt-teaser-section {
  padding: var(--space-3xl) 0;
  background: var(--color-bg-alt);
}

.sgt-teaser-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.sgt-teaser-eyebrow {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin-bottom: var(--space-sm);
}

.sgt-teaser-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.0;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.sgt-teaser-desc {
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 44ch;
  margin-bottom: var(--space-lg);
}

.sgt-teaser-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-xl);
}

.sgt-pill {
  display: inline-block;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 50px;
  padding: 0.3rem 0.8rem;
  background: rgba(212,175,55,0.06);
}

.sgt-teaser-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.sgt-teaser-visual {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55), 0 1px 0 rgba(212,175,55,0.1) inset;
  border: 1px solid rgba(212,175,55,0.1);
}

.sgt-teaser-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.85) brightness(0.9);
  transition: transform 0.6s ease, filter 0.4s ease;
}

.sgt-teaser-visual:hover img {
  transform: scale(1.04);
  filter: saturate(0.92) brightness(0.95);
}

@media (max-width: 899px) {
  .sgt-teaser-inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .sgt-teaser-visual {
    aspect-ratio: 16 / 7;
  }
  .sgt-teaser-desc { max-width: 100%; }
}

/* Pills modalitat inscrits Sant Silvestre */
.ss-mod-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 50px;
  padding: 0.2rem 0.65rem;
  white-space: nowrap;
}

.ss-mod-run {
  background: rgba(212,175,55,0.12);
  color: var(--color-accent-primary);
  border: 1px solid rgba(212,175,55,0.25);
}

.ss-mod-cam {
  background: rgba(107,142,35,0.12);
  color: #8ab34a;
  border: 1px solid rgba(107,142,35,0.25);
}

/* Variants de modal (amplada ja gestionada pel dialog base) */

/* Taula classificació */
.modal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.modal-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(212, 175, 55, 0.1);
}

.modal-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  background: rgba(212, 175, 55, 0.12);
  color: var(--color-accent-primary);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  border-bottom: 1px solid rgba(212, 175, 55, 0.28);
  text-transform: uppercase;
}

.modal-table--compact td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--color-text-muted);
}

.modal-table--compact td:first-child {
  font-weight: 700;
  color: var(--color-accent-primary);
  min-width: 2.5rem;
  font-size: 0.95rem;
}

.modal-table--compact td:nth-child(2) {
  color: var(--color-text-dim);
  min-width: 3.5rem;
  font-weight: 600;
}

.modal-table--compact td:nth-child(3) {
  color: var(--color-text);
  font-weight: 500;
}

.modal-table--compact td:nth-child(4) {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  min-width: 4rem;
}

.modal-table--compact th.th-category,
.modal-table--compact td:nth-child(5) {
  font-size: 0.75rem;
  min-width: 4rem;
}

.modal-table tbody tr:hover {
  background: rgba(212, 175, 55, 0.06);
}

.modal-table tbody tr.hidden {
  display: none;
}

.no-results {
  padding: 2rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.modal-link-note {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.82rem;
}

.modal-link-note a { color: var(--color-accent-primary); }

/* Graella info modal (Més informació) */
.tv-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 500px) {
  .tv-info-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 780px) {
  .tv-info-grid { grid-template-columns: repeat(3, 1fr); }
}

.tv-info-block {
  background: rgba(212,175,55,0.04);
  border: 1px solid rgba(212,175,55,0.12);
  border-radius: 6px;
  padding: 1rem 1.1rem 1.1rem;
}

.tv-info-block h4 {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin-bottom: 0.75rem;
}

.tv-info-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tv-info-block li {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.tv-info-block li:last-child { border-bottom: none; }

/* ==============================================
   CUSTOM CURSOR (desktop / fine pointer only)
   ============================================== */
.custom-cursor-dot,
.custom-cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  will-change: left, top, opacity, transform;
}

.custom-cursor-dot {
  width: 7px;
  height: 7px;
  z-index: 9999;
  background: rgba(255, 249, 210, 0.92);
  box-shadow:
    0 0 6px rgba(212, 175, 55, 0.7),
    0 0 2px rgba(255, 255, 255, 0.6);
  mix-blend-mode: screen;
  transition: opacity 0.22s ease, transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.custom-cursor-glow {
  width: 240px;
  height: 240px;
  z-index: 9997;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.14) 0%,
    rgba(212, 175, 55, 0.05) 40%,
    transparent 70%
  );
  filter: blur(8px);
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.35s ease;
}

/* Visible quan el ratolí es mou */
.custom-cursor-dot.is-visible  { opacity: 1; }
.custom-cursor-glow.is-visible { opacity: 1; }

/* Hover sobre elements interactius */
.custom-cursor-dot.is-hover {
  transform: translate(-50%, -50%) scale(2.4);
  background: rgba(212, 175, 55, 0.88);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.75), 0 0 4px rgba(255, 249, 210, 0.5);
}

.custom-cursor-glow.is-hover {
  transform: translate(-50%, -50%) scale(1.4);
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.24) 0%,
    rgba(212, 175, 55, 0.08) 40%,
    transparent 70%
  );
}

/* Oculta el cursor natiu quan el custom és actiu */
.has-cursor,
.has-cursor * { cursor: none !important; }

/* Desactiva l'efecte en tàctil / no-hover */
@media (hover: none) {
  .custom-cursor-dot,
  .custom-cursor-glow { display: none !important; }
}

/* ==============================================
   CARRUSEL GALERIA TRAVESSA
   Inspirat en el component circular de Framer,
   implementat amb CSS 3D + JS pur (sense libs).
   ============================================== */

.tv-carousel-section {
  padding: var(--space-3xl) 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  margin-bottom: var(--space-3xl);
  text-align: center;
  overflow: hidden; /* evita scroll horitzontal pels items externs */
}

.tv-carousel-eyebrow {
  display: inline-block;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin-bottom: var(--space-sm);
}

/* Sobreescriu el color daurat de h3 base */
.tv-carousel-title {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--color-text);
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.tv-carousel-subtitle {
  font-size: 0.93rem;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto var(--space-2xl);
}

/* ── Stage: l'escenari 3D ── */
.tv-carousel-stage {
  position: relative;
  width: 100%;
  height: 400px;
  /* La perspectiva activarà els rotateY dels items fills */
  perspective: 1400px;
  perspective-origin: 50% 50%;
}

/* Màscares de degradat als costats per a efecte de profunditat */
.tv-carousel-stage::before,
.tv-carousel-stage::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20%;
  z-index: 15;
  pointer-events: none;
}

.tv-carousel-stage::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg) 0%, transparent 100%);
}

.tv-carousel-stage::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg) 0%, transparent 100%);
}

/* ── Cada foto del carrusel ── */
.tv-carousel-item {
  position: absolute;
  top: 50%;
  left: 50%;
  /* Mides base (desktop) - centrades */
  width: 380px;
  height: 272px;
  margin-top: -136px;
  margin-left: -190px;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  will-change: transform, opacity;
  transition:
    transform  0.65s cubic-bezier(0.4, 0, 0.2, 1),
    opacity    0.65s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.5s ease,
    border-color 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  /* Evita que Safari s'arrissi amb 3D */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.tv-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.82) contrast(1.05) saturate(0.92);
  transition: filter 0.4s ease;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Foto central: destacada, border daurat */
.tv-carousel-item.is-active {
  border-color: rgba(212, 175, 55, 0.38);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.68),
    0 0 0 1px rgba(212, 175, 55, 0.22),
    0 0 55px rgba(212, 175, 55, 0.07);
  cursor: default;
}

.tv-carousel-item.is-active img {
  filter: brightness(1) contrast(1.06) saturate(1.04);
}

/* ── Controls: botons + dots ── */
.tv-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

/* Botons prev/next */
.tv-carousel-btn {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.07);
  border: 1px solid rgba(212, 175, 55, 0.28);
  color: var(--color-accent-primary);
  font-size: 1.9rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tv-carousel-btn:hover {
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(212, 175, 55, 0.55);
  transform: scale(1.1);
}

/* Dots indicadors */
.tv-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
  max-width: 280px;
}

.tv-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.22);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tv-carousel-dot.is-active {
  width: 24px;
  border-radius: 3px;
  background: var(--color-accent-primary);
}

/* ── Responsive ── */

/* Tablet: items lleugerament més petits */
@media (max-width: 1023px) {
  .tv-carousel-stage  { height: 360px; }

  .tv-carousel-item {
    width: 320px;
    height: 230px;
    margin-top: -115px;
    margin-left: -160px;
  }
}

/* Mòbil: només la foto central, sense 3D lateral */
@media (max-width: 599px) {
  .tv-carousel-section { padding: var(--space-2xl) 0; }

  .tv-carousel-stage {
    height: 260px;
    perspective: none; /* sense 3D en mòbil */
  }

  .tv-carousel-stage::before,
  .tv-carousel-stage::after { width: 6%; }

  .tv-carousel-item {
    width: 88%;
    height: 210px;
    margin-top: -105px;
    margin-left: -44%;
    border-radius: 10px;
  }

  .tv-carousel-controls { gap: var(--space-lg); }

  .tv-carousel-btn { width: 44px; height: 44px; font-size: 1.6rem; }
}

/* Respecta la preferència de moviment reduït */
@media (prefers-reduced-motion: reduce) {
  .tv-carousel-item {
    transition: opacity 0.15s ease !important;
  }
}

/* Links fotos edicions anteriors — sota el subtítol, abans del carrusel */
.tv-photo-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.tv-photo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  padding: 0.55rem 1.35rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50px;
  background: rgba(255,255,255,0.04);
  transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease, transform 0.2s ease;
  white-space: nowrap;
}

.tv-photo-link:hover,
.tv-photo-link:focus-visible {
  color: var(--color-accent-primary);
  border-color: rgba(212,175,55,0.5);
  background: rgba(212,175,55,0.07);
  transform: translateY(-2px);
  outline: none;
}

@media (max-width: 480px) {
  .tv-photo-links {
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs, 0.5rem);
  }
  .tv-photo-link { width: 100%; max-width: 280px; }
}

/* ==============================================
   20. LEGAL PAGE
   ============================================== */
.legal-hero {
  background: linear-gradient(160deg, var(--color-bg) 0%, #0d2035 100%);
  padding: calc(var(--nav-height, 72px) + var(--space-3xl)) 0 var(--space-3xl);
  border-bottom: 1px solid rgba(212,175,55,0.15);
}

.legal-hero-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin-bottom: var(--space-sm);
}

.legal-hero-title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--color-text-primary);
  line-height: 1.08;
  margin: 0 0 var(--space-sm);
}

.legal-hero-sub {
  color: var(--color-text-muted);
  font-size: var(--font-size-md);
  margin: 0;
  letter-spacing: 0.04em;
}

/* Table of Contents */
.legal-toc-section {
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: var(--space-xl) 0;
}

.legal-toc {
  max-width: 860px;
}

.legal-toc-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin: 0 0 var(--space-md);
}

.legal-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-xs) var(--space-lg);
  counter-reset: none;
}

.legal-toc-link {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--font-size-sm);
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.legal-toc-link:hover {
  color: var(--color-text-primary);
  border-color: rgba(212,175,55,0.3);
}

.legal-toc-num {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--color-accent-primary);
  letter-spacing: 0.06em;
  flex-shrink: 0;
  opacity: 0.7;
}

/* Body */
.legal-body {
  padding: var(--space-3xl) 0 var(--space-2xl);
}

/* Individual Section */
.legal-section {
  border-left: 3px solid rgba(212,175,55,0.25);
  padding-left: var(--space-xl);
  margin-bottom: var(--space-3xl);
  scroll-margin-top: 90px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section-header {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.legal-section-num {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--color-accent-primary);
  opacity: 0.2;
  line-height: 1;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.legal-section-title {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: var(--color-text-primary);
  margin: 0;
  line-height: 1.2;
}

/* Content typography */
.legal-section-content p {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.75;
  margin: 0 0 var(--space-md);
  max-width: 72ch;
}

.legal-section-content p:last-child {
  margin-bottom: 0;
}

.legal-section-content a {
  color: var(--color-accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-section-content a:hover {
  opacity: 0.8;
}

.legal-subsection {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  margin: var(--space-lg) 0 var(--space-sm);
}

.legal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  max-width: 72ch;
}

.legal-list li {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.65;
  padding-left: 1.25rem;
  position: relative;
}

.legal-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--color-accent-primary);
  opacity: 0.5;
  font-size: 0.7em;
  top: 0.15em;
}

/* Data table (titular info) */
.legal-data-table {
  width: 100%;
  max-width: 540px;
  border-collapse: collapse;
  margin: var(--space-md) 0;
  font-size: var(--font-size-sm);
}

.legal-data-table th,
.legal-data-table td {
  text-align: left;
  padding: 0.55rem var(--space-md) 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  vertical-align: top;
}

.legal-data-table th {
  color: var(--color-text-muted);
  font-weight: 600;
  width: 42%;
  white-space: nowrap;
}

.legal-data-table td {
  color: var(--color-text-primary);
}

/* Cookie table */
.legal-table-wrap {
  overflow-x: auto;
  margin: var(--space-md) 0;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.07);
}

.legal-cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
  min-width: 480px;
}

.legal-cookie-table th,
.legal-cookie-table td {
  text-align: left;
  padding: 0.7rem var(--space-md);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.legal-cookie-table thead th {
  background: rgba(212,175,55,0.07);
  color: var(--color-accent-primary);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.legal-cookie-table tbody td {
  color: var(--color-text-muted);
}

.legal-cookie-table tbody tr:last-child td {
  border-bottom: none;
}

/* Back bar */
.legal-back {
  padding: var(--space-xl) 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.legal-back .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.legal-back-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: color 0.2s;
}

.legal-back-link:hover {
  color: var(--color-accent-primary);
}

@media (max-width: 600px) {
  .legal-section {
    padding-left: var(--space-md);
    border-left-width: 2px;
  }
  .legal-section-header {
    flex-direction: column;
    gap: var(--space-xs);
  }
  .legal-section-num {
    font-size: 1.5rem;
    opacity: 0.15;
  }
  .legal-toc-list {
    grid-template-columns: 1fr;
  }
  .legal-back .container {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==============================================
   21. SORTIDES GRUPALS PAGE
   ============================================== */

/* Hero */
.sg-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.sg-hero-bg {
  position: absolute;
  inset: 0;
}

.sg-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.45);
}

.sg-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,15,24,0.92) 0%, rgba(8,15,24,0.3) 60%, transparent 100%);
}

.sg-hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: var(--space-3xl);
  width: 100%;
}

.sg-hero-inner {
  max-width: 700px;
}

.sg-hero-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin-bottom: var(--space-md);
}

.sg-hero-title {
  font-size: clamp(3.2rem, 9vw, 7rem);
  font-weight: 900;
  color: #fff;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-md);
  text-transform: uppercase;
}

.sg-hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.7);
  margin: 0;
  font-style: italic;
}

/* Eyebrow reutilitzat */
.sg-eyebrow {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin-bottom: var(--space-sm);
}

/* About section */
.sg-about {
  background: var(--color-bg-alt);
  padding: var(--space-3xl) 0;
  border-radius: 18px 18px 0 0;
  margin-top: -18px;
  position: relative;
  z-index: 2;
}

.sg-about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 900px) {
  .sg-about-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: var(--space-3xl);
  }
}

.sg-about-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-lg);
}

.sg-about-text p {
  color: var(--color-text-muted);
  font-size: var(--font-size-md);
  line-height: 1.75;
  margin: 0 0 var(--space-md);
  max-width: 60ch;
}

.sg-about-text p:last-child { margin-bottom: 0; }

.sg-about-pills {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  flex-shrink: 0;
}

@media (max-width: 899px) {
  .sg-about-pills {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.sg-pill {
  background: rgba(212,175,55,0.07);
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: 12px;
  padding: var(--space-md) var(--space-lg);
  text-align: center;
  min-width: 110px;
}

.sg-pill-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--color-accent-primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.sg-pill-label {
  display: block;
  font-size: 0.68rem;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Gallery / Carousel */
.sg-gallery-section {
  background: var(--color-bg);
  padding: var(--space-3xl) 0 var(--space-2xl);
}

.sg-gallery-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
}

.sg-gallery-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--color-text-primary);
  margin: 0;
}

.sg-carousel-btns {
  display: flex;
  gap: var(--space-sm);
}

.sg-btn-prev,
.sg-btn-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.3);
  background: rgba(212,175,55,0.06);
  color: var(--color-accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.sg-btn-prev:hover,
.sg-btn-next:hover {
  background: rgba(212,175,55,0.14);
  border-color: rgba(212,175,55,0.6);
}

/* Carousel scroll container */
.sg-carousel-wrap {
  position: relative;
}

.sg-carousel {
  overflow-x: scroll;
  overflow-y: hidden;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 var(--space-md);
}

.sg-carousel::-webkit-scrollbar { display: none; }

.sg-carousel.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.sg-carousel-track {
  display: flex;
  gap: 18px;
  width: max-content;
  padding: var(--space-sm) 0 var(--space-lg);
}

.sg-photo-card {
  flex-shrink: 0;
  width: clamp(240px, 32vw, 420px);
  height: clamp(300px, 40vw, 520px);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  border: 1px solid rgba(255,255,255,0.07);
  transition: transform 0.25s, box-shadow 0.25s;
}

.sg-photo-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.sg-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: transform 0.4s ease;
}

.sg-photo-card:hover img {
  transform: scale(1.04);
}

.sg-carousel-hint {
  text-align: center;
  font-size: 0.7rem;
  color: var(--color-text-dim);
  letter-spacing: 0.1em;
  margin-top: var(--space-sm);
}

@media (min-width: 768px) {
  .sg-carousel-hint { display: none; }
}

/* Highlights */
.sg-highlights {
  background: var(--color-bg-alt);
  padding: var(--space-3xl) 0;
}

.sg-highlights-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-2xl);
}

.sg-highlights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .sg-highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.sg-highlight-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.025);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}

.sg-highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

.sg-highlight-img {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: #0d1e2e;
}

.sg-highlight-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.sg-highlight-card:hover .sg-highlight-img img {
  transform: scale(1.04);
}

.sg-highlight-img--nogfx {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d1e2e 0%, #112030 100%);
}

.sg-highlight-img-placeholder {
  color: var(--color-accent-primary);
}

.sg-highlight-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: rgba(8,15,24,0.85);
  backdrop-filter: blur(8px);
  color: var(--color-accent-primary);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  border: 1px solid rgba(212,175,55,0.25);
}

.sg-highlight-body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sg-highlight-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin-bottom: var(--space-sm);
}

.sg-highlight-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-sm);
}

.sg-highlight-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  flex: 1;
  margin: 0 0 var(--space-lg);
}

.sg-highlight-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Strava section */
.sg-strava-section {
  background: var(--color-bg);
  padding: var(--space-3xl) 0;
}

.sg-strava-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-md);
}

.sg-strava-intro {
  color: var(--color-text-muted);
  font-size: var(--font-size-md);
  max-width: 58ch;
  margin: 0 0 var(--space-2xl);
  line-height: 1.7;
}

.sg-strava-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.sg-strava-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: border-color 0.2s, background 0.2s;
}

.sg-strava-card:hover {
  border-color: rgba(252,76,2,0.3);
  background: rgba(252,76,2,0.04);
}

.sg-strava-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sg-strava-icon {
  width: 22px;
  height: 22px;
  color: #fc4c02;
}

.sg-strava-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(252,76,2,0.7);
  border: 1px solid rgba(252,76,2,0.25);
  border-radius: 50px;
  padding: 0.2rem 0.55rem;
}

.sg-strava-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
}

.sg-strava-meta {
  display: flex;
  gap: var(--space-md);
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.sg-strava-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(252,76,2,0.7);
  text-decoration: none;
  margin-top: auto;
  transition: color 0.18s;
}

.sg-strava-link:hover { color: #fc4c02; }

.sg-strava-link[aria-disabled="true"] {
  color: var(--color-text-dim);
  pointer-events: none;
}

.sg-strava-note {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin: 0;
}

.sg-strava-note a {
  color: var(--color-accent-primary);
  text-decoration: none;
}

.sg-strava-note a:hover { color: #fff; }

/* CTA final */
.sg-cta {
  background: linear-gradient(160deg, #0d1e2e 0%, var(--color-bg) 100%);
  padding: var(--space-3xl) 0;
  border-top: 1px solid rgba(212,175,55,0.12);
}

.sg-cta-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.sg-cta-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: var(--color-text-primary);
  margin: var(--space-sm) 0 var(--space-md);
}

.sg-cta-text {
  color: var(--color-text-muted);
  font-size: var(--font-size-md);
  line-height: 1.7;
  margin: 0 0 var(--space-xl);
}

.sg-cta-btns {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.sg-cta-btns .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 480px) {
  .sg-cta-btns { flex-direction: column; align-items: center; }
  .sg-cta-btns .btn { width: 100%; max-width: 280px; justify-content: center; }
  .sg-photo-card { width: clamp(200px, 80vw, 300px); height: 260px; }
  .sg-highlight-img { height: 200px; }
}

/* ── Carrusel 3D Sortides Grupals ── */
.sg-3d-carousel-wrap {
  position: relative;
  padding: 2rem 0 3.5rem;
  /* glow de fons centrat */
  background: radial-gradient(ellipse 70% 60% at 50% 48%, rgba(212,175,55,0.05) 0%, transparent 70%);
}

.sg-3d-stage {
  position: relative;
  height: clamp(290px, 40vw, 500px);
  /* perspective sobre el contenidor → totes les transformacions Z dels fills fan efecte visual */
  perspective: 1100px;
  perspective-origin: 50% 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* NO overflow hidden: els laterals han de ser visibles */
  overflow: visible;
}

.sg-3d-item {
  position: absolute;
  width: clamp(250px, 35vw, 510px);
  height: clamp(175px, 25vw, 360px);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  /* transició incloent filter per al blur/brightness */
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity  0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter   0.65s ease,
              box-shadow 0.4s ease;
  will-change: transform, opacity, filter;
  /* evita artefactes de renderitzat 3D */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.sg-3d-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: transform 0.5s ease;
}

/* Foto central: nítida amb marc daurat */
.sg-3d-item.is-active {
  cursor: default;
  box-shadow:
    0 0 0 1.5px rgba(212,175,55,0.50),
    0 0 0 3px rgba(212,175,55,0.10),
    0 32px 90px rgba(0,0,0,0.75);
}

.sg-3d-item.is-active img {
  transform: scale(1.02);
}

.sg-3d-item:not(.is-active):hover img {
  transform: scale(1.06);
}

/* Indicadors (dots) */
.sg-3d-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.sg-3d-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.20);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.35s, width 0.35s, border-radius 0.35s;
  flex-shrink: 0;
}

/* Dot actiu: píndola daurada */
.sg-3d-dot.is-active {
  background: var(--color-accent-primary);
  width: 20px;
  border-radius: 3px;
  transform: none;
}

.sg-3d-dot:hover:not(.is-active) {
  background: rgba(255,255,255,0.42);
  transform: scale(1.3);
}

/* ── Responsive ── */
@media (max-width: 1023px) {
  .sg-3d-stage {
    height: clamp(250px, 52vw, 420px);
  }
  .sg-3d-item {
    width: clamp(220px, 46vw, 420px);
    height: clamp(155px, 33vw, 300px);
  }
}

@media (max-width: 639px) {
  .sg-3d-carousel-wrap {
    padding: 1rem 0 2.5rem;
  }
  .sg-3d-stage {
    height: clamp(210px, 66vw, 310px);
    overflow: hidden; /* mòbil: talla els laterals pel border del stage */
  }
  .sg-3d-item {
    width: clamp(200px, 80vw, 310px);
    height: clamp(142px, 57vw, 220px);
  }
}

/* ── Strava embeds reals ── */
.sg-strava-embed-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

@media (min-width: 900px) {
  .sg-strava-embed-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sg-strava-embed-item {
  border-radius: 14px;
  overflow: hidden;
  min-height: 320px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(10, 21, 32, 0.9);
  transition: border-color 0.25s;
}

.sg-strava-embed-item:hover {
  border-color: rgba(252,76,2,0.35);
}

.sg-strava-embed-item iframe,
.sg-strava-embed-item .strava-embed-placeholder {
  width: 100% !important;
  display: block;
}

.sg-strava-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  min-height: 280px;
  color: var(--color-text-muted);
}

.sg-strava-fallback p {
  font-size: 0.875rem;
  margin: 0;
  opacity: 0.75;
}

.sg-strava-fallback a {
  color: #fc4c02;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(252,76,2,0.35);
  border-radius: 50px;
  padding: 0.45rem 1.1rem;
  transition: background 0.2s, color 0.2s;
}

.sg-strava-fallback a:hover {
  background: rgba(252,76,2,0.12);
  color: #ff6d33;
}

/* ==============================================
   EQUIPACIÓ — Flip Cards 3D
   ============================================== */

.eq-section {
  padding: var(--space-xl) 0;
  background: var(--color-bg);
  position: relative;
}

.eq-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 40% at 50% 20%, rgba(212,175,55,0.04) 0%, transparent 65%);
  pointer-events: none;
}

.eq-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.eq-eyebrow {
  display: block;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin-bottom: var(--space-sm);
}

.eq-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.eq-subtitle {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  max-width: 420px;
  margin: 0 auto;
}

.eq-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  overflow: visible;
}

.eq-grid .eq-card-wrap {
  flex: 0 0 100%;
}

@media (min-width: 480px) {
  .eq-grid .eq-card-wrap { flex: 0 0 calc(50% - var(--space-md) / 2); }
}

@media (min-width: 900px) {
  .eq-grid .eq-card-wrap { flex: 0 0 calc(25% - var(--space-md) * 0.75); }
}

.eq-card-wrap {
  perspective: 1000px;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  position: relative;
  z-index: 1;
  transition:
    transform 0.42s cubic-bezier(0.34, 1.45, 0.64, 1),
    z-index 0s 0.42s;
}

@media (min-width: 480px) {
  .eq-card-wrap:hover {
    transform: scale(1.38) translateY(-6px);
    z-index: 20;
    transition:
      transform 0.42s cubic-bezier(0.34, 1.45, 0.64, 1),
      z-index 0s 0s;
  }
}

.eq-card {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: block;
}

.eq-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.72s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 10px;
}

.eq-card.is-flipped .eq-card-inner {
  transform: rotateY(180deg);
}

.eq-face {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: #0c1929;
  border: 1px solid rgba(212,175,55,0.12);
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.eq-card:hover .eq-face--front,
.eq-card:focus-visible .eq-face--front {
  border-color: rgba(212,175,55,0.45);
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.22),
    0 32px 72px rgba(0,0,0,0.75),
    0 0 48px rgba(212,175,55,0.14);
}

.eq-face--back {
  transform: rotateY(180deg);
  background: linear-gradient(145deg, #0c1929 0%, #0d2142 100%);
  border-color: rgba(212,175,55,0.2);
}

.eq-img-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.eq-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.45s ease;
}


/* Mitjons: menys padding vertical perquè es vegin proporcionats amb la resta */
.eq-img-wrap--socks {
  padding: 0.75rem 1.5rem;
}

.eq-card:hover .eq-face--front .eq-img-wrap img {
  transform: scale(1.06);
}

.eq-side-label {
  position: relative;
  z-index: 2;
  display: inline-block;
  padding: 0.35rem 0.8rem;
  margin-bottom: var(--space-sm);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(212,175,55,0.65);
  background: rgba(0,0,0,0.40);
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.eq-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-top: var(--space-xs);
}

/* Nom sense footer de CTA — el p.eq-card-name directe */
.eq-card-wrap > .eq-card-name {
  padding-top: var(--space-xs);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-text);
  line-height: 1.3;
  margin: 0;
  text-align: center;
}

/* Botó compra general */
.eq-buy-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
  text-align: center;
}

.eq-buy-note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  max-width: 400px;
  line-height: 1.6;
  margin: 0;
}

.eq-card-name {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-text);
  line-height: 1.3;
  margin: 0;
}

.eq-card-cta {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.eq-card-cta:hover {
  color: #e8c84a;
}

.eq-contact-note {
  text-align: center;
  margin-top: var(--space-2xl);
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.eq-contact-note a {
  color: var(--color-accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.eq-contact-note a:hover { color: #e8c84a; }

/* ==============================================
   EQUIPACIÓ — Card 3D model-viewer
   ============================================== */

.eq-card-wrap--3d {
  /* Sense perspectiva: la card 3D no fa flip */
  perspective: none;
}

.eq-card--3d {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #0c1929;
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: 10px;
  overflow: hidden;
  display: block;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.eq-card--3d:hover {
  border-color: rgba(212,175,55,0.38);
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.18),
    0 24px 56px rgba(0,0,0,0.65),
    0 0 36px rgba(212,175,55,0.10);
}

.eq-model-viewer {
  display: block;
  width: 100%;
  height: 100%;
  background-color: #0c1929;
  --poster-color: #0c1929;
}

.eq-3d-hint {
  position: absolute;
  bottom: var(--space-sm);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(212,175,55,0.70);
  background: rgba(0,0,0,0.45);
  border-radius: 4px;
  padding: 0.35rem 0.8rem;
  backdrop-filter: blur(6px);
  white-space: nowrap;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════
   LA BUFAVENTS – pàgina dedicada (bf-*)
═══════════════════════════════════════════════════════════════════ */

/* ─── Hero ─── */
.bf-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Vídeo de fons */
.bf-hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bf-hero-video-wrap iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh; /* 16:9 */
  height: 100%;
  min-width: 100%;
  min-height: 56.25vw; /* 9/16 */
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: none;
}

.bf-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(10,21,32,0.98) 0%, rgba(10,21,32,0.65) 35%, rgba(10,21,32,0.4) 65%, rgba(10,21,32,0.35) 100%),
    linear-gradient(to right, rgba(10,21,32,0.6) 0%, transparent 60%);
}

.bf-hero-content {
  position: relative;
  z-index: 2;
  padding: 140px 0 var(--space-3xl);
  width: 100%;
}

.bf-hero-inner {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.bf-hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  opacity: 0.9;
}

.bf-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  color: var(--color-text);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
  text-shadow: 0 4px 32px rgba(0,0,0,0.6);
}

.bf-hero-edition {
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  font-weight: 500;
  color: var(--color-accent-primary);
  letter-spacing: 0.06em;
  margin: 0;
}

.bf-hero-tagline {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 400;
  color: rgba(245,245,245,0.75);
  line-height: 1.65;
  margin: 0;
  max-width: 520px;
}

.bf-hero-mods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.bf-hero-mod-chip {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-text);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  backdrop-filter: blur(6px);
}

.bf-hero-cta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.bf-hero-cta .btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.bf-hero-scroll {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 3;
}

.bf-hero-scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(212,175,55,0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

.bf-hero-scroll-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(212,175,55,0.55);
}

/* ─── Secció compartida ─── */
.bf-section-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin-bottom: 0.6rem;
  opacity: 0.85;
}

/* ─── Intro + Vídeo ─── */
.bf-intro {
  padding: var(--space-3xl) 0;
  background: var(--color-bg);
}

.bf-intro-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.bf-intro-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 900;
  color: var(--color-text);
  line-height: 1.15;
  margin: 0 0 var(--space-sm);
}

.bf-intro-desc {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-xs);
}

.bf-vimeo-wrap {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55), 0 1px 0 rgba(212,175,55,0.1) inset;
  border: 1px solid rgba(212,175,55,0.1);
}

.bf-vimeo-ratio {
  position: relative;
  padding-top: 56.25%;
}

.bf-vimeo-ratio iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

@media (max-width: 799px) {
  .bf-intro-wrap {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* ─── Modalitats ─── */
.bf-modalities {
  padding: var(--space-3xl) 0;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.bf-section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.bf-section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--color-text);
  margin: 0 0 0.5rem;
}

.bf-section-sub {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin: 0;
}

.bf-mod-block {
  margin-bottom: var(--space-xl);
}

.bf-mod-block:last-child {
  margin-bottom: 0;
}

.bf-mod-header {
  margin-bottom: var(--space-sm);
}

.bf-mod-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.2);
  padding: 0.28rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 0.5rem;
}

.bf-mod-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: var(--color-text);
  margin: 0 0 0.6rem;
  line-height: 1.1;
}

.bf-mod-dist {
  color: var(--color-accent-primary);
}

.bf-mod-dist-alt {
  color: var(--color-text-muted);
  font-size: 0.65em;
  font-weight: 600;
}

.bf-mod-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.bf-chip {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
}

/* ─── Kids card (sense mapa) ─── */
.bf-mod-kids-card {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: var(--space-lg);
}

.bf-mod-kids-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 16px rgba(212,175,55,0.25));
}

.bf-mod-kids-text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.bf-mod-kids-text p {
  margin: 0 0 0.75rem;
}

.bf-mod-kids-text p:last-child {
  margin: 0;
}

@media (max-width: 599px) {
  .bf-mod-kids-card {
    flex-direction: column;
    text-align: center;
  }
}

/* ─── Resultats ─── */
.bf-results {
  padding: var(--space-3xl) 0;
  background: var(--color-bg);
}

.bf-results-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.bf-results-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: var(--color-text);
  margin: 0 0 var(--space-sm);
  line-height: 1.15;
}

.bf-results-desc {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-md);
}

.bf-results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.bf-results-img {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55);
  border: 1px solid rgba(212,175,55,0.1);
}

.bf-results-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.9);
  transition: transform 0.6s ease;
}

.bf-results-img:hover img {
  transform: scale(1.04);
}

@media (max-width: 799px) {
  .bf-results-inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .bf-results-img {
    order: -1;
    aspect-ratio: 16 / 7;
  }
}

/* ─── Teaser a index.html ─── */
/* Modificador: teaser de La Bufavents a la home (secció, no pantalla completa) */
.bf-home-teaser {
  min-height: 90vh;
}

.bf-home-teaser .bf-hero-content {
  padding: 120px 0 var(--space-3xl);
}

/* Fila superior: PRÒXIMAMENT + eyebrow */
.bf-hero-top-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.bf-hero-prox {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid rgba(212,175,55,0.55);
  color: var(--color-accent-primary);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.28rem 0.85rem;
  border-radius: 4px;
  background: rgba(212,175,55,0.07);
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

/* Títol home: una sola línia, tipografia elegant de cursa */
.bf-home-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-style: italic;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow:
    0 2px 0 rgba(212,175,55,0.15),
    0 6px 40px rgba(0,0,0,0.55);
}

/* Lema destacat */
.bf-hero-lema {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-style: italic;
  font-weight: 300;
  color: rgba(245,245,245,0.8);
  letter-spacing: 0.04em;
  margin: -0.25rem 0 0;
}

.bf-teaser-section {
  padding: var(--space-3xl) 0;
  background: linear-gradient(180deg, rgba(10,21,32,0) 0%, var(--color-bg-alt) 50%, rgba(10,21,32,0) 100%);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.bf-teaser-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.bf-teaser-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  opacity: 0.85;
  display: block;
  margin-bottom: 0.6rem;
}

.bf-teaser-logo {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.4));
  margin-bottom: 0.5rem;
}

.bf-teaser-desc {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-sm);
  max-width: 480px;
}

.bf-teaser-mods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
}

.bf-teaser-mod-chip {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-text);
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.25);
  padding: 0.35rem 0.9rem;
  border-radius: 8px;
}

.bf-teaser-visual {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55), 0 1px 0 rgba(212,175,55,0.12) inset;
  border: 1px solid rgba(212,175,55,0.1);
}

.bf-teaser-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.88);
  transition: transform 0.6s ease, filter 0.4s ease;
}

.bf-teaser-visual:hover img {
  transform: scale(1.04);
  filter: saturate(0.92) brightness(0.95);
}

@media (max-width: 899px) {
  .bf-teaser-inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .bf-teaser-visual {
    order: -1;
    aspect-ratio: 16 / 7;
  }
  .bf-teaser-desc { max-width: 100%; }
}

@media (max-width: 599px) {
  .bf-hero-title { font-size: clamp(2.4rem, 12vw, 3.5rem); }
  .bf-hero-cta { flex-direction: column; align-items: flex-start; }
}
