/* =============================================
   HOME.CSS — Estils específics Pàgina Inici
   ============================================= */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --red: #E32219;
  --red-dark: #B81912;
  --dark: #1A1C1E;
  --dark2: #2C2F33;
  --text: #4A4E54;
  --text-light: #7A7F88;
  --bg: #F7F5F2;
  --white: #FEFEFE;
  --border: rgba(0,0,0,0.07);
  --font: 'Poppins', sans-serif;
  --serif: 'Playfair Display', serif;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-hover: 0 16px 48px rgba(0,0,0,0.12);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* =====================
   NAVIGATION
   ===================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 5%;
  transition: padding 0.4s ease;
}
.nav.scrolled { padding: 20px 5%; }

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  border-radius: 100px;
  padding: 10px 0;
  transition: background-color 0.5s cubic-bezier(0.4,0,0.2,1), box-shadow 0.5s cubic-bezier(0.4,0,0.2,1), padding 0.5s cubic-bezier(0.4,0,0.2,1);
  background-color: transparent;
  box-shadow: none;
}

.nav.scrolled .nav-inner {
  background-color: rgba(252,251,249,0.9);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 2px 24px rgba(0,0,0,0.08), inset 0 0 0 1px rgba(255,255,255,0.5);
  padding: 10px 32px;
}

.nav-logo {
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: -0.5px;
  transition: color 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo span { color: var(--red); }
.nav.scrolled .nav-logo { color: var(--dark); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.9);
  transition: color 0.3s;
  position: relative;
  white-space: nowrap;
  text-decoration: none;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.3s;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav.scrolled .nav-links a { color: var(--dark); }

.nav-cta {
  background: var(--red);
  color: #fff !important;
  padding: 9px 22px;
  border-radius: 100px;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  transition: background 0.3s, transform 0.2s !important;
}
.nav-cta:hover { background: var(--red-dark) !important; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

/* Botó secundari nav (outline) — Fes-te voluntari */
.nav-cta-outline {
  border: 1.5px solid rgba(255,255,255,0.70);
  color: rgba(255,255,255,0.90) !important;
  padding: 7px 20px;
  border-radius: 100px;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  transition: all 0.3s !important;
  backdrop-filter: blur(4px);
}
.nav-cta-outline:hover {
  background: rgba(255,255,255,0.14) !important;
  border-color: rgba(255,255,255,0.95) !important;
  transform: translateY(-1px);
}
.nav-cta-outline::after { display: none !important; }
.nav.scrolled .nav-cta-outline {
  border-color: var(--dark) !important;
  color: var(--dark) !important;
  backdrop-filter: none;
}
.nav.scrolled .nav-cta-outline:hover {
  background: var(--dark) !important;
  color: #fff !important;
}

/* ── GTranslate: botó globus (home) ── */
.nav-lang {
  display: flex;
  align-items: center;
  margin-left: 4px;
  position: relative;
}
.nav-lang::after { display: none !important; }

/* =====================
   HERO
   ===================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slides { position: absolute; inset: 0; }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }

.hero-slide-bg {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero-slide.active .hero-slide-bg { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,28,30,0.75) 0%, rgba(26,28,30,0.4) 50%, rgba(227,34,25,0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5%;
  width: 100%;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(227,34,25,0.15);
  border: 1px solid rgba(227,34,25,0.4);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn 0.8s 0.3s forwards;
}

.hero-label-dot {
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  color: #fff;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 24px;
  max-width: 780px;
  opacity: 0;
  transform: translateY(30px);
  animation: heroIn 0.9s 0.5s forwards;
}
.hero-title em { font-style: italic; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,0.6); }

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn 0.9s 0.7s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn 0.9s 0.9s forwards;
}

@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: #fff;
  padding: 16px 36px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s;
  box-shadow: 0 8px 32px rgba(227,34,25,0.4);
}
.btn-hero-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(227,34,25,0.5); }

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  padding: 16px 36px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
  transition: all 0.3s;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); }

.hero-dots {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 20;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 100px;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}
.hero-dot.active { width: 28px; background: #fff; }

.hero-stats {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 20;
  background: rgba(26,28,30,0.6);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  align-items: stretch;
}

.hero-stat {
  flex: 1;
  padding: 22px 0;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: background 0.3s;
}
.hero-stat:last-child { border-right: none; }
.hero-stat:hover { background: rgba(255,255,255,0.04); }

.hero-stat-num { display: block; font-size: 1.8rem; font-weight: 800; color: #fff; line-height: 1; }
.hero-stat-num span { color: var(--red); }
.hero-stat-label { display: block; font-size: 0.72rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 1.2px; margin-top: 4px; }

/* =====================
   SECTION COMMONS
   ===================== */
.section { padding: 100px 5%; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-header { margin-bottom: 64px; }

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--red);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--dark);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.section-title em { font-style: italic; color: var(--red); }

.section-desc {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 540px;
  margin-top: 14px;
  line-height: 1.8;
}

/* =====================
   INTRO STRIP
   ===================== */
.intro-strip {
  background: var(--white);
  padding: 80px 5%;
  border-bottom: 1px solid var(--border);
}

.intro-strip-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.intro-text h2 { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.8rem); color: var(--dark); line-height: 1.2; margin-bottom: 20px; }
.intro-text h2 em { font-style: italic; color: var(--red); }
.intro-text p { font-size: 1rem; color: var(--text); line-height: 1.85; margin-bottom: 16px; }
.intro-text p:last-of-type { margin-bottom: 28px; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dark);
  border: 2px solid var(--dark);
  padding: 13px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: all 0.3s;
}
.btn-outline:hover { background: var(--dark); color: #fff; transform: translateY(-2px); }

.intro-visual { position: relative; }

.intro-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 12px;
}

.intro-photo {
  border-radius: var(--radius);
  overflow: hidden;
  background: #ddd;
  /* Allow orbital animation to be visible outside cell bounds */
}
.intro-photo:first-child { grid-row: span 2; }
/* Grid must allow overflow for orbital animations */
.intro-photo-grid { overflow: visible; }

.intro-photo-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  text-align: center;
  font-family: monospace;
  letter-spacing: 0.5px;
  line-height: 1.5;
}

.ph-africa { background: linear-gradient(135deg, #5c3a1e, #8b5a2b); background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 0, transparent 50%); background-size: 20px 20px; }
.ph-group  { background: linear-gradient(135deg, #2d4a5c, #3d6b85); background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 0, transparent 50%); background-size: 20px 20px; }
.ph-school { background: linear-gradient(135deg, #4a5c2d, #6b8540); background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 0, transparent 50%); background-size: 20px 20px; }
.ph-dark   { background: linear-gradient(135deg, #1a1c1e, #2c2f33); }
.ph-red    { background: linear-gradient(135deg, #b81912, #e32219); }

.photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; color: rgba(255,255,255,0.55);
  text-align: center; font-family: monospace;
  background-image: repeating-linear-gradient(45deg,rgba(255,255,255,0.03) 0,rgba(255,255,255,0.03) 1px,transparent 0,transparent 50%);
  background-size: 20px 20px;
}

.intro-badge {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--red);
  color: #fff;
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(227,34,25,0.3);
}
.intro-badge-num { display: block; font-size: 2rem; font-weight: 800; line-height: 1; }
.intro-badge-txt { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.85; margin-top: 4px; }

/* =====================
   PROGRAMES BENTO GRID
   ===================== */
.programes { background: var(--bg); }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bento-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), box-shadow 0.35s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.bento-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 24px 64px rgba(0,0,0,0.14); }

.bento-wide { grid-column: span 2; }

.bento-card-photo { min-height: 360px; }
.bento-card-photo .bento-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.6s ease;
}
.bento-card-photo:hover .bento-bg { transform: scale(1.06); }

.bento-card-photo .bento-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,28,30,0.96) 0%, rgba(26,28,30,0.55) 55%, rgba(26,28,30,0.15) 100%);
  transition: background 0.35s ease;
}
.bento-card-photo:hover .bento-overlay {
  background: linear-gradient(to top, rgba(26,28,30,1) 0%, rgba(26,28,30,0.7) 60%, rgba(26,28,30,0.25) 100%);
}

.bento-card-photo .bento-body {
  position: relative; z-index: 2;
  padding: 32px; margin-top: auto;
  display: flex; flex-direction: column; align-items: flex-start;
}
.bento-card-photo .bento-body h3 { font-family: var(--serif); font-size: 1.5rem; color: #fff; font-weight: 700; margin-bottom: 8px; }
.bento-card-photo .bento-body p { font-size: 0.9rem; color: rgba(255,255,255,0.75); line-height: 1.6; margin-bottom: 20px; }

.bento-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  backdrop-filter: blur(8px);
  transition: all 0.3s;
}
.bento-card-photo:hover .bento-card-link { background: var(--red); border-color: var(--red); }

.bento-card-solid { min-height: 220px; padding: 32px; }
.bento-card-solid .bento-tag {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  padding: 4px 12px; border-radius: 100px;
  margin-bottom: 16px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(255,255,255,0.95) !important;
  color: var(--red) !important;
}
.bento-card-solid h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; line-height: 1.25; }
.bento-card-solid p { font-size: 0.88rem; line-height: 1.65; }
.bento-card-solid .bento-icon { font-size: 2.4rem; margin-bottom: 12px; display: block; }

.bento-white { background: var(--white); }
.bento-dark { background: var(--dark); }
.bento-dark h3 { color: #fff; }
.bento-dark p { color: rgba(255,255,255,0.65); }

.bento-red { background: var(--red); }
.bento-red h3 { color: #fff; }
.bento-red p { color: rgba(255,255,255,0.8); }
.bento-red .bento-icon { filter: brightness(0) invert(1); }

.bento-light { background: var(--white); }
.bento-light h3 { color: var(--dark); }
.bento-light p { color: var(--text); }

/* Tags of photo bento cards: white bg + red text (consistent with solid cards) */
.bento-card-photo .noticia-cat {
  background: rgba(255,255,255,0.92) !important;
  color: var(--red) !important;
  backdrop-filter: blur(4px);
  max-width: calc(100% - 64px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =====================
   NOTICIES (home)
   ===================== */
.noticies { background: var(--white); padding: 100px 5%; }

.noticies-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.noticia-featured {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: box-shadow 0.45s ease;
  text-decoration: none;
}
.noticia-featured:hover { box-shadow: 0 18px 48px rgba(0,0,0,0.22); }

.noticia-featured-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.45s ease;
}
.noticia-featured:hover .noticia-featured-bg { transform: scale(1.03); }

.noticia-featured-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(26,28,30,0.92) 0%,
    rgba(26,28,30,0.50) 45%,
    transparent 80%
  );
}

.noticia-featured-body { position: relative; z-index: 2; padding: 32px; margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; }

.noticia-cat {
  display: inline-block;
  background: var(--red); color: #fff;
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 4px 12px; border-radius: 100px; margin-bottom: 12px;
}

.noticia-featured-body h3 {
  font-family: var(--serif); font-size: 1.5rem; color: #fff;
  font-weight: 700; line-height: 1.3; margin-bottom: 8px;
}

/* Featured: data sempre visible */
.noticia-featured-body .noticia-meta {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.5px;
  margin-top: 6px;
}

/* Featured: extracte ocult per defecte, igual que les small */
.noticia-featured-exc {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-bottom: 0;
  color: rgba(255,255,255,0.78);
  font-size: 0.92rem;
  line-height: 1.55;
  transition: max-height 0.45s ease,
              opacity    0.45s ease,
              margin-bottom 0.45s ease;
}
.noticia-featured:hover .noticia-featured-exc {
  max-height: 120px;
  opacity: 1;
  margin-bottom: 10px;
}

/* ─────────────────────────────────────────────
   NOTICIA SMALL — disseny net des de zero
   · Categoria + Títol: sempre visibles
   · Extracte + Data: apareixen en hover
   ───────────────────────────────────────────── */
.noticia-small {
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: box-shadow 0.45s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}
.noticia-small:hover {
  box-shadow: 0 18px 48px rgba(0,0,0,0.22);
}

/* Imatge de fons */
.noticia-small-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.45s ease;
}
.noticia-small:hover .noticia-small-bg { transform: scale(1.03); }

/* Gradient sempre present per llegibilitat */
.noticia-small-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(26,28,30,0.92) 0%,
    rgba(26,28,30,0.5)  45%,
    transparent 80%
  );
}

/* Cos de la targeta — sempre a baix */
.noticia-small-body {
  position: relative; z-index: 2;
  padding: 18px 20px;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Categoria: sempre visible */
.noticia-small-body .noticia-cat {
  margin-bottom: 6px;
  flex-shrink: 0;
}

/* Títol: sempre visible */
.noticia-small-body h4 {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

/* Extracte: ocult per defecte, es revela en hover */
.noticia-excerpt {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.45s ease,
              opacity    0.45s ease,
              margin-top 0.45s ease;
}
.noticia-small:hover .noticia-excerpt {
  max-height: 90px;
  opacity: 1;
  margin-top: 8px;
}
.noticia-small-body p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  margin: 0;
}

/* Data: sempre visible */
.noticia-small-body .noticia-meta {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  margin-top: 6px;
  opacity: 1;
}

.noticies-footer { margin-top: 48px; text-align: center; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dark);
  border: 2px solid var(--border);
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.3s;
  background: var(--white);
}
.btn-secondary:hover { border-color: var(--dark); background: var(--dark); color: #fff; transform: translateY(-2px); }

/* =====================
   CTA VOLUNTARIAT
   ===================== */
.cta-voluntariat {
  position: relative;
  overflow: hidden;
  padding: 120px 5%;
  background: var(--dark);
}

.cta-bg { position: absolute; inset: 0; opacity: 0.18; background-size: cover; background-position: center; }

.cta-inner {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}

.cta-text .section-tag { color: rgba(255,255,255,0.5); }

.cta-title { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.2rem); color: #fff; line-height: 1.15; font-weight: 800; margin-bottom: 20px; }
.cta-title em { font-style: italic; color: var(--red); }

.cta-desc { color: rgba(255,255,255,0.65); font-size: 1.05rem; line-height: 1.8; margin-bottom: 36px; }

.btn-red {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red); color: #fff;
  padding: 16px 36px; border-radius: 100px;
  font-weight: 700; font-size: 0.95rem;
  transition: all 0.3s;
  box-shadow: 0 8px 32px rgba(227,34,25,0.4);
  text-decoration: none;
}
.btn-red:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(227,34,25,0.5); }

.cta-features { display: flex; flex-direction: column; gap: 20px; }

.cta-feature {
  display: flex; align-items: flex-start; gap: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  transition: background 0.3s;
}
.cta-feature:hover { background: rgba(255,255,255,0.08); }

.cta-feature-icon {
  width: 44px; height: 44px;
  background: rgba(227,34,25,0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.3rem;
}

.cta-feature-text h4 { color: #fff; font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.cta-feature-text p { color: rgba(255,255,255,0.5); font-size: 0.83rem; line-height: 1.5; }

.cta-deadline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(227,34,25,0.15);
  border: 1px solid rgba(227,34,25,0.3);
  color: #fff;
  padding: 10px 20px; border-radius: 100px;
  font-size: 0.83rem; font-weight: 600;
  margin-bottom: 28px;
}
.cta-deadline-dot { width: 8px; height: 8px; background: var(--red); border-radius: 50%; animation: pulse 2s infinite; }

/* =====================
   COL·LABORADORS
   ===================== */
.colabs { background: var(--bg); padding: 80px 5%; text-align: center; }
.colabs-inner { max-width: 1280px; margin: 0 auto; }
.colabs-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2.5px; color: var(--text-light); margin-bottom: 40px; }
.colabs-logos { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }

.colab-logo {
  height: auto;
  min-height: 36px;
  opacity: 0.45;
  filter: grayscale(1);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text);
  text-decoration: none;
}
a.colab-logo { cursor: pointer; }
.colab-logo img { max-height: 44px; width: auto; max-width: 140px; }
.colab-logo:hover { opacity: 0.9; filter: grayscale(0); transform: scale(1.05); }

/* =====================
   FOOTER
   ===================== */
footer { background: var(--dark); color: rgba(255,255,255,0.6); padding: 60px 5% 32px; }

.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}

.footer-brand h3 { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-brand h3 span { color: var(--red); }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin-bottom: 20px; }

.footer-social { display: flex; gap: 10px; }
.footer-social-btn {
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); font-size: 0.85rem;
  transition: all 0.3s; cursor: pointer; font-weight: 700; text-decoration: none;
}
.footer-social-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }

.footer-col h4 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,0.9); margin-bottom: 20px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.88rem; color: rgba(255,255,255,0.5); transition: color 0.3s; }
.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
  max-width: 1280px; margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); transition: color 0.3s; }
.footer-bottom a:hover { color: #fff; }

/* =====================
   ORBITAL FLOAT — Intro Qui Som (home)
   Moviment circular suau, cada foto orbita al seu ritme
   ===================== */
@keyframes orbit1 {
  0%   { transform: translate(0px,    0px)  scale(1)    rotate(0deg); }
  16%  { transform: translate(10px,  -12px) scale(1.02) rotate(0.5deg); }
  33%  { transform: translate(4px,   -20px) scale(1.04) rotate(0.2deg); }
  50%  { transform: translate(-8px,  -14px) scale(1.02) rotate(-0.4deg); }
  66%  { transform: translate(-12px,  -4px) scale(1)    rotate(-0.6deg); }
  83%  { transform: translate(-6px,    4px) scale(0.98) rotate(-0.2deg); }
  100% { transform: translate(0px,    0px)  scale(1)    rotate(0deg); }
}
@keyframes orbit2 {
  0%   { transform: translate(0px,   -12px) scale(1.03) rotate(0.3deg); }
  20%  { transform: translate(-10px,  -4px) scale(1)    rotate(-0.3deg); }
  40%  { transform: translate(-6px,   10px) scale(0.98) rotate(-0.5deg); }
  60%  { transform: translate(6px,   14px)  scale(1)    rotate(0.2deg); }
  80%  { transform: translate(10px,   2px)  scale(1.03) rotate(0.5deg); }
  100% { transform: translate(0px,  -12px)  scale(1.03) rotate(0.3deg); }
}
@keyframes orbit3 {
  0%   { transform: translate(8px,    8px)  scale(0.98) rotate(-0.3deg); }
  25%  { transform: translate(0px,   -8px)  scale(1)    rotate(0deg); }
  50%  { transform: translate(-10px,  0px)  scale(1.03) rotate(0.4deg); }
  75%  { transform: translate(-4px,  14px)  scale(1)    rotate(-0.2deg); }
  100% { transform: translate(8px,    8px)  scale(0.98) rotate(-0.3deg); }
}

.intro-float-1 {
  animation: orbit1 8s ease-in-out infinite;
  will-change: transform;
  transform-style: preserve-3d;
}
.intro-float-2 {
  animation: orbit2 10s ease-in-out infinite;
  will-change: transform;
  transform-style: preserve-3d;
}
.intro-float-3 {
  animation: orbit3 9s ease-in-out infinite;
  will-change: transform;
  transform-style: preserve-3d;
}

/* =====================
   3D TILT / FLOAT IMAGES (qui-es-share)
   ===================== */
@keyframes floatImg {
  0%,100% { transform: translateY(0px) rotate(0deg); }
  30%     { transform: translateY(-10px) rotate(0.4deg); }
  70%     { transform: translateY(-6px) rotate(-0.3deg); }
}
.tilt-img {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: default;
  transform-style: preserve-3d;
  animation: floatImg 5.5s ease-in-out infinite;
  will-change: transform;
  transition: box-shadow 0.3s ease;
}

/* =====================
   SCROLL ANIMATIONS
   ===================== */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
