/* ==========================================
   NEXES — Viver d'Empreses de Forallac
   Sistema de disseny compartit
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&family=Roboto:ital,wdth,wght@0,75..100,100..900;1,75..100,100..900&display=swap');

/* ——— Design Tokens ——— */
:root {
  --verd-fosc:  #1C3A2B;
  --verd-mig:   #2D5E40;
  --verd-palid: #D6E8DC;
  --ocre:       #B8860B;
  --llinosa:    #FAF0D7;
  --fons:       #F5F0E8;
  --gris-fosc:  #3D4451;
  --gris-mig:   #8A8F99;
  --blanc:      #FFFFFF;
  --wa-verd:    #25D366;

  --font: 'Instrument Sans', 'Roboto', sans-serif;

  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 40px; --s6: 48px; --s8: 64px; --s10: 80px;

  --r-sm: 4px; --r-md: 8px; --r-lg: 16px; --r-full: 999px;

  --shadow-sm: 0 1px 3px rgba(28,58,43,.08), 0 1px 2px rgba(28,58,43,.05);
  --shadow-md: 0 4px 16px rgba(28,58,43,.10), 0 2px 6px rgba(28,58,43,.06);
  --shadow-lg: 0 8px 32px rgba(28,58,43,.12);

  --max-w: 1200px;
  --header-h: 72px;
  --ease: 0.2s ease;
}

/* ——— Reset ——— */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--gris-fosc);
  background: var(--fons);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a { color: var(--verd-mig); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--verd-fosc); }
address { font-style: normal; }
button { font-family: var(--font); cursor: pointer; }

/* ——— Typography ——— */
h1 { font-size: clamp(34px, 5.5vw, 64px); line-height: 1.05; font-weight: 700; color: var(--verd-fosc); }
h2 { font-size: clamp(26px, 4vw, 42px);   line-height: 1.2;  font-weight: 700; color: var(--verd-fosc); }
h3 { font-size: clamp(18px, 2.5vw, 22px); line-height: 1.3;  font-weight: 700; color: var(--verd-fosc); }
h4 { font-size: 15px; font-weight: 700; color: var(--verd-fosc); }
p { line-height: 1.72; }

/* ——— Layout ——— */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--s3); }
.section    { padding: var(--s10) 0; }
.section--sm { padding: var(--s6) 0; }

/* ——— Buttons ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; font-family: var(--font); font-size: 15px; font-weight: 700;
  border-radius: var(--r-md); border: 2px solid transparent;
  text-decoration: none; transition: all var(--ease); white-space: nowrap; line-height: 1;
}
.btn-lg  { padding: 16px 32px; font-size: 16px; }
.btn-sm  { padding: 8px 16px;  font-size: 13px; }
.btn-full { width: 100%; }

.btn-primary   { background: var(--verd-mig); color: var(--blanc); border-color: var(--verd-mig); }
.btn-primary:hover { background: var(--verd-fosc); border-color: var(--verd-fosc); color: var(--blanc); }

.btn-secondary { background: transparent; color: var(--blanc); border-color: rgba(255,255,255,.65); }
.btn-secondary:hover { background: rgba(255,255,255,.12); border-color: var(--blanc); color: var(--blanc); }

.btn-ocre  { background: var(--ocre); color: var(--blanc); border-color: var(--ocre); }
.btn-ocre:hover { background: #9a7009; border-color: #9a7009; color: var(--blanc); }

.btn-outline { background: transparent; color: var(--verd-mig); border-color: var(--verd-mig); }
.btn-outline:hover { background: var(--verd-mig); color: var(--blanc); }

.btn-outline-blanc { background: transparent; color: var(--blanc); border-color: var(--blanc); }
.btn-outline-blanc:hover { background: var(--blanc); color: var(--verd-fosc); }

/* ——— Badges ——— */
.badge {
  display: inline-block; padding: 4px 12px; font-size: 11px; font-weight: 700;
  border-radius: var(--r-full); text-transform: uppercase; letter-spacing: .6px;
}
.badge-verd  { background: var(--verd-mig);   color: var(--blanc); }
.badge-ocre  { background: var(--ocre);         color: var(--blanc); }
.badge-palid { background: var(--verd-palid);   color: var(--verd-fosc); }
.badge-white { background: rgba(255,255,255,.18); color: var(--blanc); border: 1px solid rgba(255,255,255,.35); }

/* ——— Section header ——— */
.section-header       { margin-bottom: var(--s6); }
.section-header--center { text-align: center; }
.section-header--center .section-subtitle { margin: var(--s2) auto 0; }
.section-title   { margin-bottom: var(--s2); }
.section-subtitle { font-size: 18px; color: var(--gris-mig); max-width: 600px; margin-top: var(--s2); line-height: 1.6; }

/* ——— Reveal on scroll ——— */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible  { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: .1s; }
.reveal:nth-child(3) { transition-delay: .18s; }
.reveal:nth-child(4) { transition-delay: .26s; }
.reveal:nth-child(5) { transition-delay: .34s; }
.reveal:nth-child(6) { transition-delay: .42s; }

/* ==========================================
   HEADER
   ========================================== */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h); background: var(--blanc);
  border-bottom: 1px solid rgba(28,58,43,.09);
  z-index: 1000; transition: box-shadow var(--ease);
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header__inner { display: flex; align-items: center; height: 100%; gap: var(--s3); }

.header__logo { display: flex; flex-direction: column; text-decoration: none; flex-shrink: 0; }
.header__logo-text { font-size: 22px; font-weight: 700; color: var(--verd-fosc); line-height: 1; }
.header__logo-sub  { font-size: 10px; color: var(--gris-mig); letter-spacing: .5px; text-transform: uppercase; }

.header__nav { flex: 1; display: flex; justify-content: center; }
.header__menu { display: flex; align-items: center; gap: 2px; }
.header__link {
  padding: 6px 10px; font-size: 14px; font-weight: 500; color: var(--gris-fosc);
  border-radius: var(--r-sm); transition: all var(--ease); white-space: nowrap;
}
.header__link:hover, .header__link.active {
  color: var(--verd-mig); background: var(--verd-palid);
}
.header__cta { flex-shrink: 0; }

.header__hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none;
  padding: 8px; border-radius: var(--r-sm);
}
.header__hamburger span {
  display: block; width: 100%; height: 2px; background: var(--verd-fosc);
  border-radius: 2px; transition: transform var(--ease), opacity var(--ease);
}
.header__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__hamburger.open span:nth-child(2) { opacity: 0; }
.header__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================
   HERO HOME (S2)
   ========================================== */
.hero {
  position: relative; min-height: 90vh;
  display: flex; align-items: center;
  padding-top: var(--header-h); overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(120deg, rgba(10, 23, 16, .84) 0%, rgba(15, 35, 24, .62) 42%, rgba(28, 58, 43, .48) 100%),
    url('https://www.fluxaroo.com/nexes/wp-content/uploads/nexes-site/photos/IMG_8625.jpg') center/cover no-repeat;
}
.hero__bg::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(45,94,64,.4) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(28,58,43,.6) 0%, transparent 50%);
}
.hero__bg::after {
  content: ''; position: absolute; bottom: -10%; right: -8%; width: 55%; height: 80%;
  background: rgba(45,94,64,.15); border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}
.hero__overlay { position: absolute; inset: 0; background: rgba(8,20,12,.35); }
.hero__content { position: relative; z-index: 1; padding: var(--s10) 0; max-width: 740px; }
.hero__badge    { margin-bottom: var(--s3); }
.hero__title    { color: var(--blanc); margin-bottom: var(--s3); }
.hero__subtitle { font-size: clamp(17px, 2.2vw, 20px); color: rgba(255,255,255,.82); margin-bottom: var(--s5); max-width: 560px; }
.hero__ctas     { display: flex; gap: var(--s2); flex-wrap: wrap; }
.hero__scroll   {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.45); font-size: 22px; z-index: 1;
  animation: bounceDown 2s ease-in-out infinite;
}
@keyframes bounceDown {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ==========================================
   XIFRES (S3)
   ========================================== */
.xifres { background: var(--verd-fosc); padding: var(--s8) 0; }
.xifres__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--s4); text-align: center; }
.xifra { padding: var(--s3); }
.xifra__num {
  display: block; font-size: clamp(40px,5.5vw,64px); font-weight: 700;
  color: var(--blanc); line-height: 1; margin-bottom: var(--s1);
}
.xifra__label { font-size: 13px; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .8px; font-weight: 500; }

/* ==========================================
   SERVEIS RÀPIDS (S4)
   ========================================== */
.serveis { background: var(--fons); }
.serveis__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s3); }
.servei-card {
  background: var(--blanc); border-radius: var(--r-md); padding: clamp(28px, 2.8vw, 36px);
  box-shadow: var(--shadow-sm); border: 1px solid rgba(28,58,43,.06);
  transition: transform var(--ease), box-shadow var(--ease);
  display: flex; flex-direction: column; gap: var(--s3);
}
.servei-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.servei-card__icon {
  width: 56px; height: 56px; background: var(--verd-palid); border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--verd-mig); margin-bottom: 0;
}
.servei-card__title  { margin: 0; }
.servei-card__desc   { color: var(--gris-mig); font-size: 15px; line-height: 1.65; margin: 0; }
.servei-card__link   { font-size: 14px; font-weight: 500; color: var(--verd-mig); margin-top: auto; padding-top: var(--s2); }
.servei-card__link:hover { color: var(--verd-fosc); }

/* ==========================================
   PROPERS CURSOS (S5)
   ========================================== */
.cursos-home { background: var(--blanc); }
.cursos-home__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s3); margin-bottom: var(--s6); }
.cursos-home__footer { text-align: center; }

.curs-card {
  background: var(--blanc); border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(28,58,43,.07);
  transition: transform var(--ease), box-shadow var(--ease); display: flex; flex-direction: column;
}
.curs-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.curs-card.finalitzat { opacity: .55; filter: grayscale(.5); }
.curs-card__img {
  height: 175px; position: relative; display: flex;
  align-items: flex-start; padding: var(--s2);
}
.curs-card__body { padding: var(--s3); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.curs-card__data  { font-size: 13px; color: var(--gris-mig); font-weight: 500; }
.curs-card__title { font-size: 15px; color: var(--verd-fosc); line-height: 1.4; margin: 4px 0; flex: 1; }
.curs-card__meta  { display: flex; align-items: center; justify-content: space-between; font-size: 13px; margin-top: 4px; }
.curs-card__ponent { color: var(--gris-mig); }
.curs-card__preu   { font-weight: 700; color: var(--verd-mig); }
.curs-card__lloc   { font-size: 13px; color: var(--gris-mig); margin-bottom: var(--s2); }
.curs-card .btn    { align-self: flex-start; margin-top: auto; }

/* ==========================================
   EMPRESA DESTACADA (S6)
   ========================================== */
.empresa-dest { background: var(--fons); }
.empresa-dest__inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: center; }
.empresa-dest__img-wrap { border-radius: var(--r-md); overflow: hidden; }
.empresa-dest__img {
  min-height: 340px; background: var(--verd-palid);
  display: flex; align-items: center; justify-content: center; font-size: 72px;
}
.empresa-dest__content { display: flex; flex-direction: column; gap: var(--s3); }
.empresa-dest__sector  { font-size: 13px; font-weight: 700; color: var(--ocre); text-transform: uppercase; letter-spacing: .5px; }
.empresa-dest__desc    { font-size: 16px; color: var(--gris-fosc); line-height: 1.75; }

/* ==========================================
   BANNER FIRA (S7)
   ========================================== */
.banner-fira { background: var(--verd-fosc); padding: var(--s10) 0; border-top: 4px solid var(--ocre); }
.banner-fira__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.banner-fira__text  { display: flex; flex-direction: column; gap: var(--s1); }
.banner-fira__title { color: var(--blanc); }
.banner-fira__date  { font-size: 16px; color: rgba(255,255,255,.75); font-weight: 500; }

/* ==========================================
   TESTIMONIS (S8)
   ========================================== */
.testimonis { background: var(--fons); }
.testimonis__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s4); }
.testimoni {
  background: var(--blanc); border-radius: var(--r-md); padding: var(--s4);
  box-shadow: var(--shadow-sm); border-left: 4px solid var(--verd-palid);
  display: flex; flex-direction: column; gap: var(--s3);
}
.testimoni__cita { font-size: 16px; font-style: italic; color: var(--gris-fosc); line-height: 1.75; flex: 1; }
.testimoni__cita::before { content: '"'; font-size: 56px; color: var(--verd-palid); line-height: .7; display: block; margin-bottom: var(--s1); font-style: normal; }
.testimoni__author { display: flex; align-items: center; gap: var(--s2); }
.testimoni__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--verd-palid); color: var(--verd-fosc); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.testimoni__author strong { display: block; font-size: 14px; color: var(--verd-fosc); }
.testimoni__author span   { font-size: 12px; color: var(--gris-mig); line-height: 1.4; }

/* ==========================================
   LOGOS XARXA (S9)
   ========================================== */
.logos-xarxa { background: var(--blanc); padding: var(--s6) 0; }
.logos-xarxa__title { text-align: center; font-size: 12px; font-weight: 700; color: var(--gris-mig); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: var(--s5); }
.logos-xarxa__grid  { display: flex; justify-content: center; align-items: center; gap: var(--s6); flex-wrap: wrap; }
.logo-item {
  display: flex; align-items: center; justify-content: center;
  filter: grayscale(1); opacity: .5; transition: filter var(--ease), opacity var(--ease);
}
.logo-item:hover { filter: grayscale(0); opacity: 1; }
.logo-item img {
  max-height: 64px; max-width: 220px;
  width: auto; height: auto;
  display: block;
}

@media (max-width: 768px) {
  .logo-item img { max-height: 44px; max-width: 150px; }
}

/* ==========================================
   FOOTER (S10)
   ========================================== */
.footer { background: var(--verd-fosc); color: rgba(255,255,255,.75); padding: var(--s10) 0 0; }
.footer__inner {
  display: grid; grid-template-columns: 2fr 1.5fr;
  gap: var(--s6); padding-bottom: var(--s8);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__logo   { font-size: 26px; font-weight: 700; color: var(--blanc); margin-bottom: var(--s2); }
.footer__missio { font-size: 14px; line-height: 1.7; margin-bottom: var(--s3); color: rgba(255,255,255,.65); max-width: 240px; }
.footer__ajunt  { font-size: 13px; margin-bottom: var(--s3); }
.footer__ajunt a { color: var(--ocre); font-weight: 700; }
.footer__ajunt a:hover { color: #d4a012; }
.footer__socials { display: flex; gap: var(--s2); }
.footer__social {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.75); font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; transition: background var(--ease);
}
.footer__social:hover { background: var(--verd-mig); color: var(--blanc); }
.footer__col-title { font-size: 12px; font-weight: 700; color: var(--blanc); text-transform: uppercase; letter-spacing: .9px; margin-bottom: var(--s3); }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { font-size: 14px; color: rgba(255,255,255,.6); transition: color var(--ease); }
.footer__links a:hover { color: var(--blanc); }
.footer__contact address { display: flex; flex-direction: column; gap: var(--s2); }
.footer__contact p       { font-size: 14px; color: rgba(255,255,255,.65); line-height: 1.55; }
.footer__contact a       { color: rgba(255,255,255,.85); }
.footer__contact a:hover { color: var(--blanc); }
.footer__bottom { padding: var(--s3) 0; }
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s2); }
.footer__bottom span { font-size: 13px; color: rgba(255,255,255,.4); }
.footer__legal { display: flex; gap: var(--s3); flex-wrap: wrap; }
.footer__legal a { font-size: 13px; color: rgba(255,255,255,.4); transition: color var(--ease); }
.footer__legal a:hover { color: rgba(255,255,255,.85); }

/* ==========================================
   WHATSAPP FLOTANT
   ========================================== */
.whatsapp-btn {
  position: fixed; bottom: 24px; right: 24px;
  width: 56px; height: 56px; background: var(--wa-verd); color: var(--blanc);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4); z-index: 999;
  transition: transform var(--ease), box-shadow var(--ease);
}
.whatsapp-btn:hover { transform: scale(1.09); box-shadow: 0 6px 28px rgba(37,211,102,.5); color: var(--blanc); }
.whatsapp-btn { display: flex !important; }

/* ==========================================
   HERO INTERIOR (L2 - S2)
   ========================================== */
.hero-interior {
  background: var(--verd-fosc);
  padding: calc(var(--header-h) + var(--s3)) 0 var(--s3);
  min-height: clamp(160px, 20vh, 240px);
  display: flex; align-items: center; position: relative; overflow: hidden;
}
.hero-interior::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(140deg, #0d2518 0%, #1C3A2B 55%, #2d5e40 100%);
  opacity: .95;
}
.hero-interior__content { position: relative; z-index: 1; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: var(--s2); flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,.55); }
.breadcrumb a:hover { color: var(--blanc); }
.breadcrumb__sep { color: rgba(255,255,255,.25); }
.hero-interior__title    { color: var(--blanc); margin-bottom: var(--s2); }
.hero-interior__subtitle { font-size: 18px; color: rgba(255,255,255,.72); max-width: 560px; line-height: 1.55; }

/* ==========================================
   NAV INTERNA (L2 - S3)
   ========================================== */
.nav-interna {
  position: sticky; top: var(--header-h); z-index: 100;
  background: var(--blanc); border-bottom: 2px solid var(--verd-palid); box-shadow: var(--shadow-sm);
}
.nav-interna__inner { display: flex; overflow-x: auto; scrollbar-width: none; }
.nav-interna__inner::-webkit-scrollbar { display: none; }
.nav-interna__link {
  padding: 14px 20px; font-size: 14px; font-weight: 700; color: var(--gris-mig);
  white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all var(--ease);
}
.nav-interna__link:hover { color: var(--verd-mig); }
.nav-interna__link.active { color: var(--verd-mig); border-bottom-color: var(--verd-mig); }

/* ==========================================
   SECCIONS SERVEIS (L2)
   ========================================== */
.seccio { padding: var(--s10) 0; }
.seccio:nth-child(odd) { background: var(--blanc); }
.seccio:nth-child(even) { background: var(--fons); }

.seccio__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: center; }
.seccio__grid--reverse { direction: rtl; }
.seccio__grid--reverse > * { direction: ltr; }

.seccio__icon { width: 64px; height: 64px; background: var(--verd-palid); border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; color: var(--verd-mig); margin-bottom: var(--s3); }
.seccio__title   { margin-bottom: var(--s3); }
.seccio__desc    { color: var(--gris-fosc); line-height: 1.78; margin-bottom: var(--s3); }
.seccio__list    { display: flex; flex-direction: column; gap: 10px; margin-bottom: var(--s4); }
.seccio__list li { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; }
.seccio__list li::before { content: '✓'; color: var(--verd-mig); font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.seccio__img { border-radius: var(--r-md); overflow: hidden; min-height: 380px; display: flex; align-items: center; justify-content: center; font-size: 88px; }
.seccio__img--verd  { background: linear-gradient(135deg, var(--verd-palid), var(--verd-mig) 80%); }
.seccio__img--llin  { background: linear-gradient(135deg, var(--llinosa), var(--verd-palid)); }

/* Secció IA */
.seccio-ia { background: var(--verd-fosc) !important; }
.seccio-ia .seccio__title { color: var(--blanc); }
.seccio-ia .seccio__desc  { color: rgba(255,255,255,.8); }
.ia-chatbot-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--wa-verd); color: var(--blanc);
  padding: 20px 40px; border-radius: var(--r-full);
  font-size: 19px; font-weight: 700; line-height: 1;
  box-shadow: 0 6px 24px rgba(37,211,102,.4);
  transition: transform var(--ease), box-shadow var(--ease);
  margin: var(--s3) 0;
}
.ia-chatbot-cta:hover { transform: scale(1.04); box-shadow: 0 8px 30px rgba(37,211,102,.5); color: var(--blanc); }
.ia-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s2); }
.ia-badge  { background: rgba(255,255,255,.12); color: rgba(255,255,255,.8); padding: 4px 12px; border-radius: var(--r-full); font-size: 12px; font-weight: 700; }

/* Mentors */
.mentors-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s2); margin-bottom: var(--s4); }
.mentor-card { text-align: center; padding: var(--s3); background: var(--fons); border-radius: var(--r-md); }
.mentor-card__foto { width: 60px; height: 60px; border-radius: 50%; background: var(--verd-palid); display: flex; align-items: center; justify-content: center; font-size: 22px; margin: 0 auto var(--s2); }
.mentor-card__nom  { font-size: 14px; font-weight: 700; color: var(--verd-fosc); }
.mentor-card__esp  { font-size: 12px; color: var(--gris-mig); }

/* Ajuts */
.ajuts-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s3); margin-bottom: var(--s4); }
.ajut-card { background: var(--blanc); border-radius: var(--r-md); padding: clamp(28px, 2.8vw, 36px); box-shadow: var(--shadow-sm); border-left: 4px solid var(--verd-mig); display: flex; flex-direction: column; gap: var(--s3); }
.ajut-card__nom  { font-size: 16px; font-weight: 700; color: var(--verd-fosc); }
.ajut-card__who  { font-size: 13px; color: var(--gris-mig); }
.ajut-card__data { font-size: 13px; color: var(--ocre); font-weight: 700; }
.ajut-card__link { font-size: 14px; font-weight: 500; color: var(--verd-mig); margin-top: auto; }
.ajut-card__link:hover { color: var(--verd-fosc); }

/* ==========================================
   FORMACIÓ — ARXIU (L3a)
   ========================================== */
.filtres { background: var(--blanc); border-bottom: 1px solid rgba(28,58,43,.1); padding: var(--s3) 0; position: sticky; top: var(--header-h); z-index: 100; }
.filtres__inner { display: flex; align-items: center; gap: var(--s2); overflow-x: auto; scrollbar-width: none; }
.filtres__inner::-webkit-scrollbar { display: none; }
.filtre-btn {
  padding: 8px 20px; border: 2px solid var(--verd-palid); border-radius: var(--r-full);
  font-family: var(--font); font-size: 14px; font-weight: 700; color: var(--gris-fosc);
  background: var(--blanc); white-space: nowrap; transition: all var(--ease);
}
.filtre-btn:hover  { border-color: var(--verd-mig); color: var(--verd-mig); }
.filtre-btn.active { background: var(--verd-mig); border-color: var(--verd-mig); color: var(--blanc); }

.cursos-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s4); }

.paginacio { display: flex; align-items: center; justify-content: center; gap: 6px; padding: var(--s6) 0; }
.paginacio__btn {
  width: 40px; height: 40px; border: 1px solid var(--verd-palid); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font); font-size: 14px; font-weight: 700; color: var(--gris-fosc);
  background: var(--blanc); transition: all var(--ease);
}
.paginacio__btn:hover, .paginacio__btn.active { background: var(--verd-mig); border-color: var(--verd-mig); color: var(--blanc); }

.subscripcio-cta { background: var(--verd-palid); padding: var(--s6); border-radius: var(--r-md); text-align: center; margin: 0 0 var(--s8); }
.subscripcio-cta h3 { margin-bottom: var(--s2); }
.subscripcio-cta p  { color: var(--gris-fosc); margin-bottom: var(--s4); }

/* ==========================================
   FITXA DE CURS (L3b)
   ========================================== */
.curs-layout { display: grid; grid-template-columns: 2fr 1fr; gap: var(--s6); padding: var(--s8) 0; align-items: start; }
.curs-content h2 { font-size: 22px; margin: var(--s5) 0 var(--s2); color: var(--verd-fosc); }
.curs-content h2:first-child { margin-top: 0; }
.curs-content p  { margin-bottom: var(--s3); }
.curs-content ul { display: flex; flex-direction: column; gap: 10px; margin-bottom: var(--s3); }
.curs-content ul li { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; }
.curs-content ul li::before { content: '●'; color: var(--verd-mig); font-size: 8px; margin-top: 6px; flex-shrink: 0; }

.ponent-card { display: flex; align-items: center; gap: var(--s3); background: var(--fons); border-radius: var(--r-md); padding: var(--s3); margin-top: var(--s4); }
.ponent-card__foto { width: 64px; height: 64px; border-radius: 50%; background: var(--verd-palid); display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; }
.ponent-card__nom  { font-size: 16px; font-weight: 700; color: var(--verd-fosc); margin-bottom: 4px; }
.ponent-card__bio  { font-size: 13px; color: var(--gris-mig); line-height: 1.5; }

.curs-sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
.inscripcio-box { background: var(--blanc); border-radius: var(--r-md); box-shadow: var(--shadow-md); padding: var(--s4); border: 1px solid rgba(28,58,43,.08); }
.inscripcio-box__preu { font-size: 30px; font-weight: 700; color: var(--verd-mig); text-align: center; padding: var(--s2) 0 var(--s3); }
.inscripcio-box__item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(28,58,43,.06); font-size: 14px; }
.inscripcio-box__item:last-of-type { border-bottom: none; }
.inscripcio-box__label { color: var(--gris-mig); }
.inscripcio-box__value { font-weight: 700; color: var(--gris-fosc); }
.places-avis { text-align: center; font-size: 13px; color: var(--ocre); font-weight: 700; margin-top: var(--s2); }

.cursos-rel { background: var(--fons); padding: var(--s10) 0; }
.cursos-rel__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s3); margin-top: var(--s5); }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .serveis__grid    { grid-template-columns: repeat(2,1fr); }
  .cursos-home__grid{ grid-template-columns: repeat(2,1fr); }
  .cursos-grid      { grid-template-columns: repeat(2,1fr); }
  .testimonis__grid { grid-template-columns: repeat(2,1fr); }
  .xifres__grid     { grid-template-columns: repeat(2,1fr); }
  .footer__inner    { grid-template-columns: 1fr 1fr; }
  .footer__brand    { grid-column: 1 / -1; }
  .seccio__grid     { grid-template-columns: 1fr; }
  .seccio__grid--reverse { direction: ltr; }
  .empresa-dest__inner { grid-template-columns: 1fr; }
  .ajuts-grid       { grid-template-columns: repeat(2,1fr); }
  .mentors-grid     { grid-template-columns: repeat(2,1fr); }
  .curs-layout      { grid-template-columns: 1fr; }
  .curs-sidebar     { position: static; }
  .cursos-rel__grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .header__nav {
    display: none; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--blanc); padding: 32px 28px 48px; overflow-y: auto;
    border-top: 1px solid rgba(28,58,43,.1);
  }
  .header__nav.open   { display: block; }
  .header__menu {
    flex-direction: column; align-items: center; justify-content: flex-start;
    gap: 16px; width: 100%; padding-top: 16px;
  }
  .header__link {
    display: inline-flex; justify-content: center; align-items: center;
    font-size: 26px; line-height: 1.2; padding: 16px 24px; width: auto; text-align: center;
  }
  .header__cta        { display: none; }
  .header__inner      { gap: var(--s2); }
  .header__hamburger  { display: flex; margin-left: auto; width: 52px; height: 52px; padding: 10px; }
  .header__hamburger span { height: 3px; }

  .container { padding: 0 34px; }
  .hero { min-height: 100svh; }
  .hero-interior {
    padding: calc(var(--header-h) + var(--s3)) 0 var(--s3);
    min-height: clamp(150px, 20vh, 190px);
  }
  .hero__content { max-width: 100%; padding: var(--s8) 10px; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; text-align: center; white-space: normal; }

  .serveis__grid    { grid-template-columns: 1fr; }
  .cursos-home__grid{ grid-template-columns: 1fr; }
  .cursos-grid      { grid-template-columns: 1fr; }
  .testimonis__grid { grid-template-columns: 1fr; }
  .xifres__grid     { grid-template-columns: repeat(2,1fr); }

  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__contact { grid-column: 1 / -1; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
  .footer__legal { flex-wrap: wrap; justify-content: center; }

  .banner-fira__inner { flex-direction: column; align-items: flex-start; }
  .ajuts-grid { grid-template-columns: 1fr; }
  .cursos-rel__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .xifres__grid { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .mentors-grid  { grid-template-columns: repeat(2,1fr); }
}

/* ==========================================
   ESPAIS — PREUS (L4)
   ========================================== */
.preus-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: var(--s3); margin: var(--s5) 0;
}
.preu-card {
  background: var(--blanc); border-radius: var(--r-md); padding: var(--s4);
  box-shadow: var(--shadow-sm); border-top: 4px solid var(--verd-palid);
  display: flex; flex-direction: column;
}
.preu-card--dest { border-top-color: var(--verd-mig); }
.preu-card__tipus   { font-size: 11px; font-weight: 700; color: var(--gris-mig); text-transform: uppercase; letter-spacing: .8px; margin-bottom: var(--s2); }
.preu-card__preu    { font-size: 28px; font-weight: 700; color: var(--verd-fosc); line-height: 1; margin-bottom: 4px; }
.preu-card__periode { font-size: 13px; color: var(--gris-mig); margin-bottom: var(--s3); padding-bottom: var(--s3); border-bottom: 1px solid rgba(28,58,43,.08); }
.preu-card__features { display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--s4); flex: 1; }
.preu-card__features li { font-size: 13px; display: flex; gap: 8px; align-items: flex-start; line-height: 1.4; }
.preu-card__features li::before { content: '✓'; color: var(--verd-mig); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

.solicitar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: start; }
.contact-items  { display: flex; flex-direction: column; gap: var(--s3); margin-top: var(--s4); }
.contact-item   { display: flex; align-items: center; gap: var(--s3); }
.contact-item__icon {
  width: 44px; height: 44px; background: var(--verd-palid); border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--verd-mig);
}
.contact-item__label { font-size: 12px; color: var(--gris-mig); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; display: block; }
.contact-item__value { font-size: 15px; font-weight: 700; color: var(--verd-fosc); }

.form-box { background: var(--blanc); border-radius: var(--r-md); padding: var(--s5); box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: var(--s3); }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 13px; font-weight: 700; color: var(--gris-fosc); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid rgba(28,58,43,.15); border-radius: var(--r-md);
  font-family: var(--font); font-size: 15px; background: var(--fons);
  transition: border-color var(--ease); color: var(--gris-fosc);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { outline: none; border-color: var(--verd-mig); }
.form-field textarea { resize: vertical; }

/* ==========================================
   EMPRESA INDIVIDUAL (L5)
   ========================================== */
.empresa-content h2 { font-size: 22px; margin: var(--s5) 0 var(--s2); color: var(--verd-fosc); }
.empresa-content h2:first-child { margin-top: 0; }
.empresa-content p  { margin-bottom: var(--s3); }
.empresa-content ul { display: flex; flex-direction: column; gap: 10px; margin-bottom: var(--s3); }
.empresa-content ul li { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; }
.empresa-content ul li::before { content: '●'; color: var(--verd-mig); font-size: 8px; margin-top: 6px; flex-shrink: 0; }
.empresa-sidebar-box {
  background: var(--blanc); border-radius: var(--r-md); box-shadow: var(--shadow-md);
  padding: var(--s4); border: 1px solid rgba(28,58,43,.08);
}
.empresa-dada {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid rgba(28,58,43,.06);
  font-size: 14px; gap: var(--s2);
}
.empresa-dada:last-of-type { border-bottom: none; }
.empresa-dada__label { color: var(--gris-mig); flex-shrink: 0; }
.empresa-dada__value { font-weight: 700; color: var(--gris-fosc); text-align: right; }
.empresa-gallery {
  display: grid; grid-template-columns: 2fr 1fr; gap: var(--s2);
  margin: var(--s5) 0; min-height: 280px; border-radius: var(--r-md); overflow: hidden;
}
.empresa-gallery__main { background: linear-gradient(135deg, var(--verd-palid), #b8d9c0); }
.empresa-gallery__side { display: flex; flex-direction: column; gap: var(--s2); }
.empresa-gallery__sm   { flex: 1; border-radius: var(--r-sm); }
.empresa-gallery__sm:nth-child(1) { background: linear-gradient(135deg, var(--llinosa), var(--verd-palid)); }
.empresa-gallery__sm:nth-child(2) { background: linear-gradient(135deg, var(--verd-palid), #91c4a2); }
.empresa-cita {
  background: var(--verd-fosc); border-radius: var(--r-md);
  padding: var(--s5); margin: var(--s5) 0;
}
.empresa-cita__text {
  font-size: 18px; font-style: italic; color: rgba(255,255,255,.9);
  line-height: 1.75; margin-bottom: var(--s3);
}
.empresa-cita__text::before {
  content: '"'; font-size: 72px; color: rgba(255,255,255,.15); line-height: .7;
  display: block; margin-bottom: var(--s1); font-style: normal;
}
.empresa-cita__autor { font-size: 14px; color: rgba(255,255,255,.6); }
.empresa-cita__autor strong { color: rgba(255,255,255,.9); }
.empreses-rel { background: var(--fons); padding: var(--s10) 0; }
.empreses-rel__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s4); margin-top: var(--s5); }
.empresa-card-rel {
  background: var(--blanc); border-radius: var(--r-md); padding: clamp(28px, 2.8vw, 36px);
  box-shadow: var(--shadow-sm); border: 1px solid rgba(28,58,43,.06);
  display: flex; flex-direction: column; gap: var(--s3);
  transition: transform var(--ease), box-shadow var(--ease);
}
.empresa-card-rel:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.empresa-card-rel__logo {
  width: 52px; height: 52px; border-radius: var(--r-md); background: var(--verd-palid);
  display: flex; align-items: center; justify-content: center; color: var(--verd-mig); margin-bottom: 0;
}
.empresa-card-rel__nom    { font-size: 16px; font-weight: 700; color: var(--verd-fosc); margin: 0; }
.empresa-card-rel__sector { font-size: 11px; font-weight: 700; color: var(--ocre); text-transform: uppercase; letter-spacing: .5px; margin: 0; }
.empresa-card-rel__desc   { font-size: 14px; color: var(--gris-mig); line-height: 1.6; flex: 1; margin: 0; }
.empresa-card-rel__link   { font-size: 14px; font-weight: 500; color: var(--verd-mig); margin-top: auto; padding-top: var(--s2); }
.empresa-card-rel__link:hover { color: var(--verd-fosc); }

/* ==========================================
   QUI SOM (L6)
   ========================================== */
.valors-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s4); margin-top: var(--s5); }
.valor-card {
  background: var(--blanc); border-radius: var(--r-md); padding: clamp(28px, 2.8vw, 36px);
  box-shadow: var(--shadow-sm); border-left: 4px solid var(--verd-mig);
}
.valor-card__icon {
  width: 52px; height: 52px; background: var(--verd-palid); border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center; color: var(--verd-mig); margin-bottom: var(--s3);
}
.valor-card__title { font-size: 17px; font-weight: 700; color: var(--verd-fosc); margin-bottom: var(--s2); }
.valor-card__desc  { font-size: 14px; color: var(--gris-mig); line-height: 1.65; }

.equip-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--s4); margin-top: var(--s5); }
.equip-card {
  text-align: center; background: var(--blanc); border-radius: var(--r-md);
  padding: var(--s4); box-shadow: var(--shadow-sm);
}
.equip-card__foto {
  width: 88px; height: 88px; border-radius: 50%; background: var(--verd-palid);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--s3); color: var(--verd-fosc); font-size: 22px; font-weight: 700;
}
.equip-card__nom { font-size: 16px; font-weight: 700; color: var(--verd-fosc); margin-bottom: 4px; }
.equip-card__rol { font-size: 11px; font-weight: 700; color: var(--ocre); text-transform: uppercase; letter-spacing: .6px; margin-bottom: var(--s2); }
.equip-card__bio { font-size: 13px; color: var(--gris-mig); line-height: 1.6; }

.timeline { display: flex; flex-direction: column; margin: var(--s5) 0; }
.timeline__item { display: grid; grid-template-columns: 72px 28px 1fr; padding-bottom: var(--s4); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__any { font-size: 13px; font-weight: 700; color: var(--ocre); text-align: right; padding-right: var(--s2); padding-top: 3px; }
.timeline__dot-wrap { display: flex; flex-direction: column; align-items: center; }
.timeline__dot  { width: 12px; height: 12px; border-radius: 50%; background: var(--verd-mig); flex-shrink: 0; margin-top: 4px; }
.timeline__line { flex: 1; width: 2px; background: var(--verd-palid); margin-top: 4px; }
.timeline__item:last-child .timeline__line { display: none; }
.timeline__cos    { padding-left: var(--s2); }
.timeline__cos h4 { font-size: 15px; font-weight: 700; color: var(--verd-fosc); margin-bottom: 4px; }
.timeline__cos p  { font-size: 14px; color: var(--gris-mig); line-height: 1.6; }

/* ==========================================
   RESPONSIVE — noves pàgines
   ========================================== */
@media (max-width: 1024px) {
  .preus-grid         { grid-template-columns: repeat(2,1fr); }
  .equip-grid         { grid-template-columns: repeat(2,1fr); }
  .valors-grid        { grid-template-columns: repeat(2,1fr); }
  .empreses-rel__grid { grid-template-columns: repeat(2,1fr); }
  .solicitar-grid     { grid-template-columns: 1fr; }
  .empresa-gallery    { grid-template-columns: 1fr; }
  .empresa-gallery__side { flex-direction: row; min-height: 130px; }
}

@media (max-width: 768px) {
  .preus-grid         { grid-template-columns: 1fr 1fr; }
  .valors-grid        { grid-template-columns: 1fr; }
  .empreses-rel__grid { grid-template-columns: 1fr; }
}

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


body.nexes-ui header.wp-block-template-part,
body.nexes-ui footer.wp-block-template-part,
body.nexes-ui .wp-site-blocks > header,
body.nexes-ui .wp-site-blocks > footer,
body.nexes-ui .wp-site-blocks > .wp-block-template-part {
  display: none !important;
}

body.nexes-ui .wp-site-blocks,
body.nexes-ui .site-main,
body.nexes-ui .entry-content,
body.nexes-ui .post-content,
body.nexes-ui main.wp-block-group {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}

body.nexes-ui .wp-block-post-content,
body.nexes-ui .wp-site-blocks > main > article,
body.nexes-ui .wp-site-blocks > article,
body.nexes-ui .type-page {
  margin: 0 !important;
  padding: 0 !important;
}

body.nexes-ui {
  --header-h: 88px;
}

.header {
  min-height: var(--header-h);
  height: auto;
}

.header__inner {
  min-height: var(--header-h);
  padding-top: 10px;
  padding-bottom: 10px;
}

.header__logo,
.header__logo:hover,
.header__logo:focus,
.header__nav a,
.header__nav a:hover,
.header__nav a:focus,
.header__menu a,
.header__menu a:hover,
.header__menu a:focus {
  text-decoration: none !important;
}

.header__logo-sub {
  display: block;
  margin-top: 4px;
}

body.admin-bar .header {
  top: 32px;
}

body.admin-bar .hero {
  padding-top: calc(var(--header-h) + 32px);
}

body.admin-bar .hero-interior {
  padding-top: calc(var(--header-h) + var(--s5) + 32px);
}

@media (max-width: 782px) {
  body.admin-bar .header {
    top: 46px;
  }

  body.admin-bar .hero {
    padding-top: calc(var(--header-h) + 46px);
  }

  body.admin-bar .hero-interior {
    padding-top: calc(var(--header-h) + var(--s4) + 46px);
  }
}

.header__logo {
  display: flex;
  align-items: center;
  width: 176px;
  min-width: 176px;
  height: 58px;
  flex-shrink: 0;
  text-decoration: none;
  overflow: visible;
  background: none;
}

.header__logo-img {
  display: block;
  width: 100%;
  max-width: 176px;
  height: auto;
  max-height: 58px;
  object-fit: contain;
}

.header__logo-text,
.header__logo-sub {
  display: none;
}

@media (max-width: 768px) {
  .header__logo {
    width: 138px;
    min-width: 138px;
    height: 46px;
  }

  .header__logo-img {
    max-width: 138px;
    max-height: 46px;
  }
}
