/* Centre Lluna — estils compartits. Tokens a DESIGN.md */
:root {
  --night: #17205C;
  --night-deep: #0E1440;
  --ink: #1A2147;
  --ink-soft: #4A5373;
  --ink-muted: #687090;
  --background: #F7FAFB;
  --surface: #FFFFFF;
  --surface-tint: #EAF4F6;
  --border: #DCE6EB;
  --teal: #0B7480;
  --teal-soft: #E2F3F5;
  --blue: #1C709F;
  --indigo: #303384;
  --moon: #9EE0E6;
  --moon-glow: #E3F7F8;
  --on-night: #F2F7FC;
  --on-night-soft: #B4C3DE;

  --font-display: 'Fraunces', Georgia, serif;
  --font-sans: 'Figtree', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-arch: 999px 999px 28px 28px;
  --shadow-card: 0 1px 0 rgba(26, 33, 71, 0.04), 0 18px 40px -24px rgba(26, 33, 71, 0.28);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--ink); font: 400 16px/1.65 var(--font-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 16px; background: var(--surface); border-radius: var(--radius-sm); }
.skip:focus { left: 8px; }

/* ---------- Tipografia ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1.4 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); }
.kicker::before { content: ""; width: 14px; height: 14px; flex: none; border-radius: 50%; box-shadow: inset -4px 0 0 0 currentColor; transform: rotate(-20deg); }
.h2 { margin-top: 14px; font: 500 clamp(30px, 4vw, 46px)/1.14 var(--font-display); letter-spacing: -0.015em; text-wrap: balance; }
.h2 em { font-style: italic; color: var(--teal); }
.lead { margin-top: 18px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.65; color: var(--ink-soft); text-wrap: pretty; }
.section { padding: var(--section-y) 0; }
.section--lilac { background: var(--surface-tint); }
.section__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Botons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent; font: 600 16px/1.2 var(--font-sans); text-decoration: none; cursor: pointer; transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), background-color 200ms ease, color 200ms ease; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -12px rgba(11, 116, 128, 0.7); }
.btn--secondary { border-color: var(--ink); color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--background); }
.btn--moon { background: var(--moon); color: var(--night); }
.btn--moon:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -12px rgba(158, 224, 230, 0.8); }
.btn--ghost-night { border-color: rgba(242, 247, 252, 0.5); color: var(--on-night); }
.btn--ghost-night:hover { background: var(--on-night); color: var(--night); }
.btn--sm { min-height: 42px; padding: 10px 18px; font-size: 15px; }

/* ---------- Navegació ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color 300ms ease, box-shadow 300ms ease; }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.nav__logo { flex: none; display: block; width: 104px; }
.nav__logo img { width: 100%; height: auto; }
.nav__logo .logo--color { display: none; }
.nav__menu { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav__links { display: flex; align-items: center; gap: 26px; list-style: none; font-size: 15px; font-weight: 500; }
.nav__links a, .nav__drop summary { color: var(--on-night); text-decoration: none; cursor: pointer; }
.nav__links a:hover, .nav__drop summary:hover { color: var(--moon); }
.nav__lang { display: flex; gap: 10px; font-size: 14px; font-weight: 600; }
.nav__lang a { color: var(--on-night-soft); text-decoration: none; }
.nav__lang a[aria-current] { color: var(--on-night); text-decoration: underline; text-underline-offset: 4px; }
.nav__toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; border-radius: 50%; background: transparent; color: var(--on-night); cursor: pointer; }
.nav__drop { position: relative; }
.nav__drop summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.nav__drop summary::-webkit-details-marker { display: none; }
.nav__drop summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.nav__drop ul { position: absolute; top: calc(100% + 16px); left: -18px; min-width: 230px; padding: 8px; list-style: none; background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.nav__drop ul a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); color: var(--ink); }
.nav__drop ul a:hover { background: var(--surface-tint); color: var(--ink); }
/* Nav sobre el cel, un cop fas scroll */
.nav.is-scrolled { background: rgba(23, 32, 92, 0.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
/* Nav sobre fons clar (després del hero) */
.nav.is-solid { background: rgba(247, 250, 251, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--border); }
.nav.is-solid .logo--blanc { display: none; }
.nav.is-solid .logo--color { display: block; }
.nav.is-solid .nav__links > li > a, .nav.is-solid .nav__drop summary, .nav.is-solid .nav__toggle { color: var(--ink); }
.nav.is-solid .nav__lang a { color: var(--ink-muted); }
.nav.is-solid .nav__lang a[aria-current] { color: var(--ink); }
.nav.is-solid .btn--moon { background: var(--teal); color: #fff; }

/* ---------- Hero (cel de nit) ---------- */
.hero { position: relative; overflow: hidden; padding: 150px 0 clamp(72px, 9vw, 120px); color: var(--on-night); background: radial-gradient(90% 80% at 85% 0%, rgba(17, 153, 167, 0.32) 0%, transparent 60%), radial-gradient(80% 70% at 10% 100%, rgba(48, 51, 132, 0.6) 0%, transparent 70%), linear-gradient(180deg, var(--night) 0%, var(--night-deep) 100%); }
.hero::after { content: ""; position: absolute; inset: auto 0 -1px; height: 80px; background: var(--background); clip-path: ellipse(70% 100% at 50% 100%); }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero .kicker { color: var(--moon); }
.hero__title { margin-top: 18px; font: 500 clamp(40px, 6vw, 72px)/1.08 var(--font-display); letter-spacing: -0.02em; text-wrap: balance; }
.hero__title em { font-style: italic; color: var(--moon); }
.hero__sub { margin-top: 22px; max-width: 34em; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.65; color: var(--on-night-soft); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 36px; list-style: none; font-size: 15px; color: var(--on-night-soft); }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts svg { width: 18px; height: 18px; stroke: var(--moon); flex: none; }
.hero__visual { position: relative; justify-self: center; width: min(100%, 580px); }
.hero__visual::before { content: ""; position: absolute; inset: -12% -8%; z-index: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(17, 153, 167, 0.35), transparent); filter: blur(10px); }
.hero__video { position: relative; z-index: 1; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 1280 / 704; background: var(--night); box-shadow: 0 0 0 1px rgba(158, 224, 230, 0.22), 0 40px 80px -40px rgba(0, 0, 0, 0.7); }
.hero__video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.stars { position: absolute; inset: 0; pointer-events: none; }
.stars span { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--moon-glow); opacity: 0.25; animation: twinkle 4s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: 0.95; transform: scale(1.4); } }

/* ---------- Franja de confiança ---------- */
.trust { padding: 8px 0 0; }
.trust__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; }
.trust__list li { padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.trust__list strong { display: block; font: 500 24px/1.2 var(--font-display); color: var(--ink); }
.trust__list span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }

/* ---------- En què us podem ajudar ---------- */
.needs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; }
.needs li { display: flex; gap: 14px; align-items: flex-start; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); transition: border-color 200ms ease, transform 300ms var(--ease-out); }
.needs li:hover { border-color: rgba(11, 116, 128, 0.45); transform: translateY(-2px); }
.needs__icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); }
.needs__icon svg { width: 22px; height: 22px; }
.needs strong { display: block; font-size: 17px; font-weight: 600; line-height: 1.35; }
.needs span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.needs__note { margin-top: 28px; font-size: 16px; color: var(--ink-soft); text-align: center; }

/* ---------- Serveis ---------- */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.services--5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.services--5 > * { grid-column: span 2; }
.services--5 > :nth-child(-n+2) { grid-column: span 3; }
.service { display: grid; grid-template-rows: auto 1fr; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); text-decoration: none; color: inherit; transition: transform 400ms var(--ease-out); }
.service:hover { transform: translateY(-4px); }
.service__img { aspect-ratio: 16 / 10; overflow: hidden; }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease-out); }
.service:hover .service__img img { transform: scale(1.04); }
.service__body { display: flex; flex-direction: column; padding: 26px 28px 28px; }
.service__tag { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); }
.service__title { margin-top: 8px; font: 500 26px/1.2 var(--font-display); }
.service__text { margin-top: 10px; color: var(--ink-soft); }
.service__more { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--teal); }
.service__more svg { width: 18px; height: 18px; transition: transform 300ms var(--ease-out); }
.service:hover .service__more svg { transform: translateX(4px); }

/* ---------- Com treballem ---------- */
.process { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.process__photo { overflow: hidden; border-radius: var(--radius-arch); aspect-ratio: 4 / 5; }
.process__photo img { width: 100%; height: 100%; object-fit: cover; }
.steps { list-style: none; display: grid; gap: 4px; margin-top: 28px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 14px 0; }
.step__moon { width: 40px; height: 40px; }
.step strong { display: block; font-size: 17px; font-weight: 600; }
.step span { display: block; margin-top: 2px; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

/* ---------- Equip ---------- */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; }
.team__member figure { overflow: hidden; border-radius: var(--radius-arch); aspect-ratio: 4 / 5; background: var(--surface-tint); }
.team__member img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease-out); }
.team__member:hover img { transform: scale(1.04); }
.team__member strong { display: block; margin-top: 14px; font: 500 20px/1.25 var(--font-display); }
.team__member span { display: block; margin-top: 4px; font-size: 15px; color: var(--ink-soft); }
.team__cta { margin-top: 40px; text-align: center; }

/* ---------- Història ---------- */
.story { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.story p + p { margin-top: 16px; }
.story__text p { color: var(--ink-soft); font-size: 17px; }
.story__quote { margin-top: 26px; padding-left: 20px; border-left: 2px solid var(--teal); font: italic 400 20px/1.5 var(--font-display); color: var(--ink); }
.story__photo { overflow: hidden; border-radius: var(--radius-arch); aspect-ratio: 4 / 5; }
.story__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- CTA final ---------- */
.cta { position: relative; overflow: hidden; padding: var(--section-y) 0; color: var(--on-night); text-align: center; background: radial-gradient(90% 70% at 50% 0%, rgba(17, 153, 167, 0.28) 0%, transparent 70%), linear-gradient(180deg, var(--night) 0%, var(--night-deep) 100%); }
.cta .kicker { color: var(--moon); }
.cta .h2 { color: var(--on-night); max-width: 18ch; margin-left: auto; margin-right: auto; }
.cta .h2 em { color: var(--moon); }
.cta .lead { color: var(--on-night-soft); max-width: 36em; margin-left: auto; margin-right: auto; }
.cta__calendar { position: relative; z-index: 1; max-width: 760px; margin: 40px auto 0; padding: 8px; border-radius: var(--radius-lg); background: var(--surface); }
.cta__calendar iframe { display: block; width: 100%; min-height: 660px; border: 0; border-radius: var(--radius-md); }
.cta__alt { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* ---------- Peu ---------- */
.footer { padding: 64px 0 40px; background: var(--night-deep); color: var(--on-night-soft); font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer__logo { width: 120px; }
.footer h3 { margin-bottom: 14px; font: 600 13px/1.2 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--moon); }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a { color: var(--on-night-soft); text-decoration: none; }
.footer a:hover { color: var(--on-night); }
.footer address { margin-top: 16px; font-style: normal; line-height: 1.7; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(180, 195, 222, 0.18); font-size: 14px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* ---------- Aparició al fer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Línia lateral de progrés amb la lluna ---------- */
.scroll-rail { --p: 0; position: fixed; z-index: 40; right: 22px; top: 22vh; height: 52vh; width: 2px; border-radius: 2px; background: rgba(115, 140, 170, 0.28); pointer-events: none; opacity: 0; transition: opacity 400ms var(--ease-out); }
.scroll-rail.is-visible { opacity: 1; }
.scroll-rail__fill { position: absolute; inset: 0 0 auto; height: calc(var(--p) * 100%); border-radius: inherit; background: linear-gradient(180deg, #1199A7, #303384); }
.scroll-rail__moon { position: absolute; left: 50%; top: calc(var(--p) * 100%); width: 24px; height: 24px; transform: translate(-50%, -50%); filter: drop-shadow(0 2px 6px rgba(14, 20, 64, 0.35)); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__toggle { display: grid; place-items: center; }
  .nav__menu { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 18px; padding: 20px var(--gutter) 28px; background: var(--background); box-shadow: 0 20px 30px -20px rgba(26, 33, 71, 0.35); }
  .nav.is-open { background: var(--background); }
  .nav.is-open .logo--blanc { display: none; }
  .nav.is-open .logo--color { display: block; }
  .nav.is-open .nav__toggle { color: var(--ink); }
  .nav.is-open .nav__menu { display: flex; }
  .nav__links { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 17px; }
  .nav__links > li { width: 100%; }
  .nav__links a, .nav__drop summary, .nav.is-solid .nav__links > li > a { display: block; padding: 10px 0; color: var(--ink); }
  .nav__drop summary { display: inline-flex; color: var(--ink); }
  .nav__drop ul { position: static; min-width: 0; padding: 0 0 0 14px; box-shadow: none; background: none; }
  .nav__lang a { color: var(--ink-muted); }
  .nav__lang a[aria-current] { color: var(--ink); }
  .nav__menu .btn--moon { background: var(--teal); color: #fff; }
  .hero__grid, .process, .story { grid-template-columns: 1fr; }
  .hero__visual { width: min(100%, 560px); margin-top: 24px; }
  .services--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services--5 > *, .services--5 > :nth-child(-n+2) { grid-column: auto; }
  .trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .needs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .process__photo, .story__photo { max-width: 420px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero { padding-top: 120px; }
  .hero__ctas .btn { width: 100%; }
  .trust__list, .needs, .services, .services--5 { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .team__member strong { font-size: 18px; }
  .service__body { padding: 22px; }
  .cta__calendar iframe { min-height: 720px; }
  .cta__alt .btn { width: 100%; }
  .scroll-rail { right: 10px; top: 18vh; height: 50vh; }
  .scroll-rail__moon { width: 20px; height: 20px; }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Pàgines interiors ---------- */
.page-hero { position: relative; overflow: hidden; padding: 150px 0 clamp(64px, 8vw, 104px); color: var(--on-night); background: radial-gradient(90% 80% at 85% 0%, rgba(17, 153, 167, 0.3) 0%, transparent 60%), linear-gradient(180deg, var(--night) 0%, var(--night-deep) 100%); }
.page-hero::after { content: ""; position: absolute; inset: auto 0 -1px; height: 60px; background: var(--background); clip-path: ellipse(70% 100% at 50% 100%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .kicker { color: var(--moon); }
.page-hero h1 { margin-top: 16px; max-width: 18ch; font: 500 clamp(36px, 5vw, 60px)/1.1 var(--font-display); letter-spacing: -0.02em; text-wrap: balance; }
.page-hero h1 em { font-style: italic; color: var(--moon); }
.page-hero p { margin-top: 18px; max-width: 40em; font-size: clamp(17px, 1.5vw, 19px); color: var(--on-night-soft); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--on-night-soft); list-style: none; }
.crumbs a { color: var(--on-night-soft); text-decoration: none; }
.crumbs a:hover { color: var(--on-night); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.6; }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--flip > :first-child { order: 2; }
.arch { overflow: hidden; border-radius: var(--radius-arch); aspect-ratio: 4 / 5; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.prose p { color: var(--ink-soft); font-size: 17px; }
.prose p + p { margin-top: 14px; }
.prose strong { color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards li { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.cards strong { display: block; font: 500 21px/1.3 var(--font-display); }
.cards span { display: block; margin-top: 8px; color: var(--ink-soft); }
.ticks { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin-top: 24px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.55; }
.ticks svg { flex: none; width: 20px; height: 20px; margin-top: 2px; stroke: var(--teal); }
.callout { margin-top: 28px; padding: 22px 24px; border-radius: var(--radius-md); background: var(--teal-soft); color: var(--ink); font-size: 17px; }
.callout strong { color: var(--teal); }
.brand-logo { width: min(100%, 260px); height: auto; margin-bottom: 22px; }
.program { margin-top: 8px; padding: clamp(28px, 4vw, 48px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.program .cards { margin-top: 28px; }
.program__facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; list-style: none; }
.program__facts li { padding: 8px 16px; border-radius: 999px; background: var(--teal-soft); color: var(--ink); font-size: 15px; font-weight: 500; }
/* Equip (Qui som) */
.profile { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; padding: clamp(32px, 4vw, 48px) 0; border-top: 1px solid var(--border); }
.profile:first-child { border-top: 0; padding-top: 0; }
.profile figure { overflow: hidden; border-radius: var(--radius-arch); aspect-ratio: 4 / 5; }
.profile figure img { width: 100%; height: 100%; object-fit: cover; }
.profile h2 { font: 500 clamp(26px, 3vw, 34px)/1.2 var(--font-display); }
.profile__role { margin-top: 6px; font-weight: 600; color: var(--teal); }
.profile__titles { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.profile__titles li { padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 14px; color: var(--ink); }
.profile .prose { margin-top: 18px; }
.profile details { margin-top: 12px; }
.profile summary { cursor: pointer; font-weight: 600; color: var(--teal); list-style: none; }
.profile summary::-webkit-details-marker { display: none; }
.profile summary::after { content: " +"; }
.profile details[open] summary::after { content: " −"; }
.profile details .prose { margin-top: 12px; }
/* Contacte */
.contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; }
.contact li { padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.contact strong { display: block; font: 500 22px/1.3 var(--font-display); }
.contact span, .contact a { display: block; margin-top: 8px; font-size: 16px; }
.contact a { font-weight: 600; text-decoration: none; }
/* Legal */
.legal { max-width: 780px; }
.legal h2 { margin-top: 40px; font: 500 26px/1.25 var(--font-display); }
.legal p, .legal li { color: var(--ink-soft); }
.legal p { margin-top: 12px; }
.legal ul { margin-top: 12px; padding-left: 20px; }
.legal li + li { margin-top: 6px; }
.legal table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.legal th { color: var(--ink); }
.legal__updated { color: var(--ink-muted); font-size: 15px; }
@media (max-width: 1080px) {
  .split { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
  .arch { max-width: 420px; }
  .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile { grid-template-columns: 220px 1fr; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .page-hero { padding-top: 116px; }
  .cards, .cards--3, .ticks { grid-template-columns: 1fr; }
  .profile { grid-template-columns: 1fr; }
  .profile figure { max-width: 260px; }
  .legal table { font-size: 14px; }
}
.program__title { margin-top: 12px; font: 500 clamp(26px, 3vw, 34px)/1.2 var(--font-display); letter-spacing: -0.01em; }
.program__title em { font-style: italic; color: var(--teal); }
.program__lead { margin-top: 10px; color: var(--ink-soft); font-size: 17px; }

/* ---------- Color principal: degradat del logotip (turquesa → blau) ---------- */
.hero, .page-hero, .cta { background: linear-gradient(180deg, #0B7A88 0%, #1C709F 50%, #303384 100%); }
.footer { background: #303384; }
.nav.is-scrolled { background: rgba(11, 122, 136, 0.94); }
.hero .kicker, .page-hero .kicker, .cta .kicker,
.hero__title em, .page-hero h1 em, .cta .h2 em { color: #E3F7F8; }
.hero__facts svg { stroke: #E3F7F8; }
.hero__sub, .hero__facts, .page-hero p, .page-hero .crumbs, .page-hero .crumbs a, .cta .lead { color: #FFFFFF; }
.hero__video { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 40px 80px -40px rgba(14, 20, 64, 0.6); }

/* Header en fer scroll: degradat del logotip amb logo i lletres blanques */
.nav.is-solid:not(.is-open) { background: linear-gradient(90deg, rgba(11, 122, 136, 0.96), rgba(48, 51, 132, 0.96)); box-shadow: 0 8px 24px -16px rgba(14, 20, 64, 0.6); }
.nav.is-solid:not(.is-open) .logo--blanc { display: block; }
.nav.is-solid:not(.is-open) .logo--color { display: none; }
.nav.is-solid:not(.is-open) .nav__toggle { color: #fff; }
.nav.is-solid .btn--moon { background: var(--moon); color: var(--night); }
@media (min-width: 1081px) {
  .nav.is-solid .nav__links > li > a, .nav.is-solid .nav__drop summary { color: #fff; }
  .nav.is-solid .nav__links > li > a:hover, .nav.is-solid .nav__drop summary:hover { color: var(--moon); }
  .nav.is-solid .nav__lang a { color: rgba(255, 255, 255, 0.75); }
  .nav.is-solid .nav__lang a[aria-current] { color: #fff; }
}
.nav.is-open { background: var(--background); }
