/* ═══════════════════════════════════════════════════════════════
   Montoliu Assessors — Sistema de diseño v0.2
   Paleta: negre / daurat / marfil càlid
   Tipografia: Cormorant Garamond (titulars) · Inter (body)
   Estètica: despatx premium, sobri, amb fotografia catalana
   ═══════════════════════════════════════════════════════════════ */

/* ── 0. RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.ma-nowrap { white-space: nowrap; }
::selection { background: var(--gold); color: var(--black); }

/* ── 1. CUSTOM PROPERTIES ───────────────────────────────────── */
:root {
  /* Paleta */
  --black:        #000000;
  --black-soft:   #0D0D0B;
  --black-warm:   #15140F;
  --gold:         #C8A933;
  --gold-light:   #D9BE54;
  --gold-dark:    #8A7422;
  --ivory:        #F5F0E6;
  --ivory-deep:   #EDE6D5;
  --gray-warm:    #B8B0A1;
  --gray-line:    rgba(184, 176, 161, 0.35);
  --gray-soft:    rgba(184, 176, 161, 0.18);
  --text-dark:    #1C1C1A;
  --text-mute:    #5A554D;
  --text-soft:    #7A7468;
  --white-warm:   #FFFDF8;

  /* Tipografia — Montserrat neutra moderna, sense serif decoratiu */
  --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Escala tipogràfica (fluid) */
  --fs-xs:   0.8125rem;
  --fs-sm:   0.9375rem;
  --fs-base: 1rem;
  --fs-md:   1.0625rem;
  --fs-lg:   clamp(1.125rem, 1.05rem + 0.4vw, 1.25rem);
  --fs-xl:   clamp(1.375rem, 1.2rem + 0.9vw, 1.625rem);
  --fs-2xl:  clamp(1.75rem, 1.4rem + 1.6vw, 2.375rem);
  --fs-3xl:  clamp(2.25rem, 1.7rem + 2.6vw, 3.5rem);
  --fs-4xl:  clamp(2.75rem, 2rem + 3.8vw, 5rem);
  --fs-mega: clamp(4rem, 2.5rem + 7vw, 8rem);

  /* Espaiat */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;
  --s-11: 10rem;

  /* Layout — container més generós i amb més marges laterals */
  --container: 1240px;
  --container-narrow: 960px;
  --gutter-mobile: 7%;
  --gutter-tablet: 5%;
  --gutter-desktop: clamp(2rem, 5vw, 5rem);

  --radius-sm: 2px;
  --radius:    4px;
  --radius-lg: 14px;   /* contenidors grans: calculadores, test, targeta de la guia */
  --radius-md: 10px;   /* blocs interiors: resultats, opcions */
  --transition: 220ms cubic-bezier(.4, 0, .2, 1);
  --transition-slow: 420ms cubic-bezier(.4, 0, .2, 1);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 20px 48px -16px rgba(28, 28, 26, 0.22);
}

/* ── 2. BASE ────────────────────────────────────────────────── */
html, body { background: var(--white-warm); color: var(--text-dark); }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
  letter-spacing: -0.005em;
}

/* Pàgines sense page-hero: padding-top per compensar header fixed */
body[data-page="aviso-legal"] main,
body[data-page="privacitat"] main,
body[data-page="cookies"] main,
body[data-page="404"] main,
body[data-page="coming-soon"] main {
  padding-top: 96px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.022em;
  color: var(--text-dark);
}
h1 { font-size: var(--fs-4xl); font-weight: 700; letter-spacing: -0.028em; }
h2 { font-size: var(--fs-3xl); font-weight: 600; }
h3 { font-size: var(--fs-xl); font-weight: 600; }
h4 { font-size: var(--fs-lg); font-weight: 500; }

p { color: var(--text-mute); font-size: var(--fs-md); line-height: 1.7; }
.lead { font-size: var(--fs-lg); color: var(--text-dark); line-height: 1.6; }

/* Èmfasi: amb Montserrat l'italic ja no és tan elegant, fem servir
   weight + color + subratllat fi daurat */
h1 em, h2 em, h3 em, h4 em {
  font-style: normal;
  font-weight: 700;
  color: var(--gold-dark);
  position: relative;
  display: inline-block;
}
h1 em::after, h2 em::after, h3 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.05em;
  height: 2px;
  background: var(--gold);
  opacity: 0.4;
}
.ma-section--dark h1 em, .ma-section--dark h2 em, .ma-section--dark h3 em { color: var(--gold); }
.ma-section--dark h1 em::after, .ma-section--dark h2 em::after { background: var(--gold); opacity: 0.6; }

/* p em (en cos de text) — més sutil */
p em {
  font-style: normal;
  font-weight: 600;
  color: var(--text-dark);
}
.ma-section--dark p em { color: var(--white-warm); }

/* ── 3. LAYOUT — més generós ────────────────────────────────── */
.ma-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter-desktop);
}
.ma-container--narrow { max-width: var(--container-narrow); }
.ma-container--wide { max-width: 1480px; }

@media (max-width: 900px) {
  .ma-container { padding-inline: var(--gutter-tablet); }
}
@media (max-width: 600px) {
  .ma-container { padding-inline: var(--gutter-mobile); }
}

.ma-section { padding-block: clamp(var(--s-9), 9vw, var(--s-11)); position: relative; }
.ma-section--tight { padding-block: clamp(var(--s-8), 7vw, var(--s-10)); }
.ma-section--dark { background: var(--black-soft); color: var(--white-warm); }
.ma-section--dark h1,
.ma-section--dark h2,
.ma-section--dark h3,
.ma-section--dark h4 { color: var(--white-warm); }
.ma-section--dark p { color: rgba(255, 253, 248, 0.78); }
.ma-section--ivory { background: var(--ivory); }
.ma-section--white  { background: var(--white-warm); }

/* Separadors fins entre seccions */
.ma-section + .ma-section:not(.ma-section--no-divider)::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 1px;
  background: var(--gold-dark);
  opacity: 0.35;
}
.ma-section--dark + .ma-section::before,
.ma-section + .ma-section--dark::before { background: var(--gold); opacity: 0.5; }

/* ── 4. TIPOGRAFIA AUXILIAR ─────────────────────────────────── */
.ma-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: var(--s-5);
}
.ma-section--dark .ma-eyebrow { color: var(--gold); }
.ma-eyebrow::before {
  content: "";
  width: 32px; height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

/* Número de secció — element premium */
.ma-section-num {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s-3);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-lg);
  color: var(--gold-dark);
  margin-bottom: var(--s-4);
  letter-spacing: 0.02em;
}
.ma-section-num::after {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--gold-dark);
  margin-left: var(--s-2);
}
.ma-section--dark .ma-section-num { color: var(--gold); }
.ma-section--dark .ma-section-num::after { background: var(--gold); }

.ma-section-title {
  font-size: var(--fs-3xl);
  max-width: 22ch;
  margin-bottom: var(--s-5);
  line-height: 1.08;
}
.ma-section-title em {
  color: var(--gold-dark);
  font-style: italic;
}
.ma-section--dark .ma-section-title em { color: var(--gold); }

.ma-section-intro {
  font-size: var(--fs-lg);
  max-width: 58ch;
  color: var(--text-mute);
  line-height: 1.7;
}
.ma-section--dark .ma-section-intro { color: rgba(255, 253, 248, 0.78); }

.ma-section-header { margin-bottom: var(--s-9); }
.ma-section-header--center { text-align: center; }
.ma-section-header--center .ma-eyebrow { justify-content: center; }
.ma-section-header--center .ma-section-title { margin-inline: auto; }
.ma-section-header--center .ma-section-intro { margin-inline: auto; }

/* ── 5. BOTONS ──────────────────────────────────────────────── */
.ma-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  min-height: 50px;
  padding: 15px 32px;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.ma-btn--primary {
  background: var(--gold);
  color: var(--black);
  border: 1px solid var(--gold);
}
.ma-btn--primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgba(200, 169, 51, 0.5);
}

.ma-btn--ghost {
  background: transparent;
  color: var(--white-warm);
  border: 1px solid rgba(255, 253, 248, 0.4);
}
.ma-btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

.ma-btn--outline-dark {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--text-dark);
}
.ma-btn--outline-dark:hover { background: var(--text-dark); color: var(--white-warm); }

.ma-btn--link {
  padding: 0;
  min-height: auto;
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  color: var(--gold-dark);
  letter-spacing: 0.02em;
}
.ma-btn--link:hover { color: var(--text-dark); }

.ma-btn__arrow {
  display: inline-block;
  transition: transform var(--transition);
  font-family: var(--font-body);
}
.ma-btn:hover .ma-btn__arrow { transform: translateX(5px); }

/* ── 6. HEADER + NAV ────────────────────────────────────────── */
.ma-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: var(--s-4);
  background: rgba(13, 13, 11, 0.96);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(200, 169, 51, 0.12);
  transition: padding var(--transition), background var(--transition);
}
.ma-header.is-scrolled {
  background: rgba(13, 13, 11, 0.98);
  border-bottom-color: rgba(200, 169, 51, 0.22);
  padding-block: 0.625rem;
}
/* Override en home abans de scroll: header més translúcid sobre la foto */
body[data-page="home"] .ma-header:not(.is-scrolled) {
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 100%);
  border-bottom-color: transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ma-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}
.ma-logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.ma-logo__img {
  display: block;
  width: auto;
  height: 108px;
  max-width: 440px;
  object-fit: contain;
  transition: opacity var(--transition), height var(--transition);
}
.ma-logo:hover .ma-logo__img { opacity: 0.85; }
.ma-logo--lg .ma-logo__img { height: 120px; max-width: 480px; }

@media (max-width: 600px) {
  .ma-logo__img { height: 78px; max-width: 300px; }
  .ma-logo--lg .ma-logo__img { height: 88px; max-width: 320px; }
}

.ma-header.is-scrolled .ma-logo__img { height: 84px; }

.ma-nav { display: flex; align-items: center; gap: var(--s-7); }
.ma-nav__list { display: flex; gap: var(--s-6); align-items: center; }
.ma-nav__list > li { display: flex; align-items: center; }
.ma-nav__link {
  display: inline-flex;
  align-items: center;
  height: 26px;            /* mateixa alçada que el trigger amb chevron */
  color: rgba(255, 253, 248, 0.78);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0;
  line-height: 1;
  position: relative;
  transition: color var(--transition);
}
.ma-nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}
.ma-nav__link:hover { color: var(--white-warm); }
.ma-nav__link:hover::after,
.ma-nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

/* La pàgina de contacte ja no té ítem al menú: el CTA fa de marcador de pàgina actual */
.ma-nav__cta[aria-current="page"] { box-shadow: 0 0 0 3px rgba(200, 169, 51, 0.28); }

.ma-nav__cta {
  font-size: var(--fs-sm);
  padding: 11px 22px;
  min-height: 44px;
}

/* Menú mòbil */
.ma-burger {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 110;
}
.ma-burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--white-warm);
  transition: transform var(--transition), opacity var(--transition);
}
.ma-burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.ma-burger.is-open span:nth-child(2) { opacity: 0; }
.ma-burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 980px) {
  .ma-nav {
    position: fixed;
    /* El backdrop-filter del header en fa el containing block dels fixed:
       inset:0 seria la caixa del header. Mides explícites de viewport. */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--black);
    flex-direction: column;
    justify-content: center;
    gap: var(--s-7);
    padding: var(--s-8) var(--s-6);
    padding-bottom: max(var(--s-8), env(safe-area-inset-bottom));
    transform: translateX(100%);
    transition: transform 360ms cubic-bezier(.4, 0, .2, 1);
    z-index: 105;
  }
  .ma-nav.is-open { transform: translateX(0); }
  /* Centrat amb marges auto, no amb justify-content: si el contingut és més alt
     que la pantalla, el flex centrat retalla per dalt i per baix sense scroll. */
  .ma-nav { justify-content: flex-start; overflow-y: auto; }
  .ma-nav__list { margin-top: auto; }
  .ma-nav__cta { margin-bottom: auto; flex-shrink: 0; }
  .ma-nav__list { flex-direction: column; gap: var(--s-5); text-align: center; }
  .ma-nav__link { font-size: var(--fs-xl); font-family: var(--font-display); }
  .ma-burger { display: flex; }
}

/* ── 7. HERO — amb fotografia de Pirineus ─────────────────── */
.ma-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(80px + var(--s-8));
  padding-bottom: var(--s-9);
  color: var(--white-warm);
  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;
}
.ma-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("/assets/img/pirineus-aeri.webp");
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.55) saturate(0.85);
}
.ma-hero::before {
  /* Gradient lateral + escalfor inferior */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.2) 30%, rgba(0,0,0,0.7) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 70%);
}
.ma-hero::after {
  /* Spot daurat sutil i grano */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(ellipse at 80% 30%, rgba(200, 169, 51, 0.18) 0%, rgba(200, 169, 51, 0) 50%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.07'/></svg>");
  pointer-events: none;
}

.ma-hero__inner {
  position: relative;
  max-width: 920px;
}
.ma-hero__frame {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}
.ma-hero__frame--tl { top: 110px; left: var(--gutter-desktop); width: 80px; height: 80px;
  border-top: 1px solid var(--gold); border-left: 1px solid var(--gold); }
.ma-hero__frame--br { bottom: var(--s-7); right: var(--gutter-desktop); width: 80px; height: 80px;
  border-bottom: 1px solid var(--gold); border-right: 1px solid var(--gold); }
@media (min-width: 768px) {
  .ma-hero__frame--tl { top: 130px; width: 110px; height: 110px; }
  .ma-hero__frame--br { bottom: var(--s-8); width: 110px; height: 110px; }
}
@media (max-width: 600px) {
  .ma-hero__frame { display: none; }
}

.ma-hero__location {
  color: var(--gold);
  font-size: var(--fs-xs);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: var(--s-7);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-weight: 500;
}
.ma-hero__location::before,
.ma-hero__location::after {
  content: "";
  width: 24px; height: 1px;
  background: var(--gold);
  display: inline-block;
  opacity: 0.6;
}
.ma-hero__location::after { display: none; }

.ma-hero h1 {
  font-size: clamp(2.5rem, 1.8rem + 3.5vw, 4.75rem);
  line-height: 1.02;
  margin-bottom: var(--s-6);
  color: var(--white-warm);
  font-weight: 500;
  letter-spacing: -0.022em;
}
.ma-hero h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}

.ma-hero__subtitle {
  font-size: var(--fs-lg);
  line-height: 1.65;
  color: rgba(255, 253, 248, 0.88);
  max-width: 56ch;
  margin-bottom: var(--s-7);
}

.ma-hero__claim {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-xl);
  color: var(--gold);
  border-left: 1px solid var(--gold);
  padding-left: var(--s-5);
  margin-bottom: var(--s-8);
  line-height: 1.4;
}
.ma-hero__ctas { display: flex; gap: var(--s-4); flex-wrap: wrap; }

.ma-hero__scroll {
  position: absolute;
  bottom: var(--s-6);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 253, 248, 0.6);
  font-size: var(--fs-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: var(--s-2);
  z-index: 2;
}
.ma-hero__scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2.6s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.55); opacity: 0.5; transform-origin: top; }
  50%      { transform: scaleY(1);   opacity: 1; transform-origin: top; }
}

/* ── 8. POSICIONAMENT — amb foto Montserrat ─────────────────── */
.ma-positioning__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  align-items: center;
}
@media (min-width: 900px) {
  .ma-positioning__grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(var(--s-7), 6vw, var(--s-9));
  }
}
.ma-positioning__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.ma-positioning__photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s ease-out;
}
.ma-positioning__photo:hover img { transform: scale(1.03); }
.ma-positioning__photo::before,
.ma-positioning__photo::after {
  /* Marcs decoratius en daurat */
  content: "";
  position: absolute;
  width: 48px; height: 48px;
  z-index: 2;
  pointer-events: none;
}
.ma-positioning__photo::before {
  top: -8px; left: -8px;
  border-top: 1px solid var(--gold-dark);
  border-left: 1px solid var(--gold-dark);
}
.ma-positioning__photo::after {
  bottom: -8px; right: -8px;
  border-bottom: 1px solid var(--gold-dark);
  border-right: 1px solid var(--gold-dark);
}

.ma-positioning__title {
  font-size: var(--fs-3xl);
  line-height: 1.1;
  margin-bottom: var(--s-5);
}
.ma-positioning__title em {
  color: var(--gold-dark);
  font-style: italic;
}
.ma-positioning__body p { font-size: var(--fs-md); margin-bottom: var(--s-4); }
.ma-positioning__body p:last-child { margin-bottom: 0; }

.ma-positioning__sig {
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--gray-line);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-lg);
  color: var(--text-dark);
}
.ma-positioning__sig small {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-top: var(--s-2);
  font-weight: 500;
}

/* ── 9. SERVEIS ─────────────────────────────────────────────── */
.ma-services { background: var(--ivory); }
.ma-services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}
@media (min-width: 640px) { .ma-services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ma-services__grid { grid-template-columns: repeat(3, 1fr); } }

.ma-service-card {
  background: var(--white-warm);
  border: 1px solid var(--gray-line);
  padding: var(--s-7) var(--s-5) var(--s-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s-4);
  transition: transform var(--transition-slow), border-color var(--transition), box-shadow var(--transition-slow);
  position: relative;
  min-height: 340px;
  overflow: hidden;
}
.ma-service-card::before {
  /* Banda lateral daurada que apareix al hover */
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 3px; height: 100%;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition-slow);
}
.ma-service-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: var(--shadow-card-hover);
}
.ma-service-card:hover::before { transform: scaleY(1); }

.ma-service-card__num {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-style: italic;
  color: var(--gold-dark);
  letter-spacing: 0.04em;
  margin-bottom: var(--s-2);
}
.ma-service-card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  color: var(--gold-dark);
  margin-bottom: var(--s-3);
  border: 1px solid var(--gray-line);
  border-radius: 50%;
  transition: border-color var(--transition), color var(--transition);
}
.ma-service-card:hover .ma-service-card__icon {
  border-color: var(--gold);
  color: var(--gold);
}
.ma-service-card__icon svg { width: 24px; height: 24px; stroke: currentColor; }

.ma-service-card__title {
  font-size: var(--fs-xl);
  font-weight: 500;
  letter-spacing: -0.012em;
}
.ma-service-card__text {
  flex-grow: 1;
  font-size: var(--fs-sm);
  color: var(--text-mute);
  line-height: 1.7;
}
.ma-service-card__link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--gold-dark);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: auto;
  margin-inline: auto;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color var(--transition);
  width: fit-content;
}
.ma-service-card__link:hover { border-color: var(--gold-dark); }
.ma-service-card__link svg { width: 14px; height: 14px; transition: transform var(--transition); }
.ma-service-card__link:hover svg { transform: translateX(4px); }

/* ── 10. DIFERENCIAL ────────────────────────────────────────── */
.ma-differential {
  background: var(--black-warm);
  color: var(--white-warm);
  position: relative;
  overflow: hidden;
}
.ma-differential::before {
  content: "";
  position: absolute;
  top: 50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200,169,51,0.10) 0%, transparent 60%);
  transform: translateY(-50%);
  pointer-events: none;
}
.ma-differential__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  align-items: start;
  position: relative;
  z-index: 2;
}
@media (min-width: 900px) {
  .ma-differential__grid { grid-template-columns: 1.1fr 1fr; gap: clamp(var(--s-7), 6vw, var(--s-9)); }
}
.ma-differential__title { color: var(--white-warm); font-size: var(--fs-3xl); line-height: 1.1; }
.ma-differential__title em { color: var(--gold); font-style: italic; }
.ma-differential__body p { color: rgba(255,253,248,0.82); font-size: var(--fs-md); margin-bottom: var(--s-4); }
.ma-differential__list { margin-top: var(--s-6); display: flex; flex-direction: column; gap: var(--s-4); }
.ma-differential__list li {
  display: flex; align-items: flex-start; gap: var(--s-4);
  color: rgba(255,253,248,0.92);
  font-size: var(--fs-md);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid rgba(200, 169, 51, 0.12);
}
.ma-differential__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.ma-differential__list li::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--gold);
  margin-top: 9px;
  flex-shrink: 0;
  transform: rotate(45deg);
}

/* ── 11. CASOS HABITUALS ───────────────────────────────────── */
.ma-cases { background: var(--white-warm); }
.ma-cases__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--gray-line);
}
@media (min-width: 700px) {
  .ma-cases__grid { grid-template-columns: repeat(2, 1fr); }
}
.ma-case {
  padding: var(--s-6) var(--s-5);
  border-bottom: 1px solid var(--gray-line);
  display: flex;
  align-items: flex-start;
  gap: var(--s-5);
  position: relative;
  transition: background var(--transition);
  cursor: default;
}
@media (min-width: 700px) {
  .ma-case:nth-child(odd) { border-right: 1px solid var(--gray-line); }
}
.ma-case:hover { background: var(--ivory); }
.ma-case:hover .ma-case__num { color: var(--gold); }
.ma-case__num {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--gold-dark);
  font-style: italic;
  min-width: 40px;
  flex-shrink: 0;
  transition: color var(--transition);
}
.ma-case__text {
  font-size: var(--fs-md);
  color: var(--text-dark);
  line-height: 1.55;
  font-weight: 400;
}

/* ── 12. PROCÉS ────────────────────────────────────────────── */
.ma-process { background: var(--ivory); }
.ma-process__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  position: relative;
}
@media (min-width: 700px) { .ma-process__steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ma-process__steps { grid-template-columns: repeat(4, 1fr); gap: var(--s-4); } }

.ma-step {
  padding: var(--s-7) var(--s-5) var(--s-6);
  background: var(--white-warm);
  border: 1px solid var(--gray-line);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
}
.ma-step:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}
.ma-step__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 3rem;
  color: var(--gold);
  font-weight: 500;
  line-height: 1;
  margin-bottom: var(--s-5);
  display: block;
}
.ma-step__title {
  font-size: var(--fs-lg);
  font-weight: 500;
  margin-bottom: var(--s-3);
  font-family: var(--font-display);
  color: var(--text-dark);
}
.ma-step__text {
  font-size: var(--fs-sm);
  color: var(--text-mute);
  line-height: 1.65;
}

/* ── 13. TRAJECTÒRIA (parallax amb foto Pirineus) ──────────── */
.ma-trajectory {
  position: relative;
  background: var(--black);
  color: var(--white-warm);
  overflow: hidden;
  isolation: isolate;
}
.ma-trajectory__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("/assets/img/pirineus-roca.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: brightness(0.32) saturate(0.7);
}
@media (max-width: 768px) {
  .ma-trajectory__bg { background-attachment: scroll; }
}
.ma-trajectory::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.6) 100%),
    radial-gradient(ellipse at center, rgba(200,169,51,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.ma-trajectory__inner {
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
  padding-block: clamp(var(--s-9), 10vw, var(--s-11));
}
.ma-trajectory__years {
  font-family: var(--font-display);
  font-size: var(--fs-mega);
  font-weight: 500;
  font-style: italic;
  color: var(--gold);
  line-height: 0.9;
  margin-bottom: var(--s-5);
  letter-spacing: -0.04em;
}
.ma-trajectory__years sup {
  font-size: 0.3em;
  vertical-align: super;
  margin-left: -0.2em;
  color: var(--gold-light);
  font-style: normal;
}
.ma-trajectory__title {
  color: var(--white-warm);
  font-size: var(--fs-3xl);
  margin-bottom: var(--s-5);
  max-width: 24ch;
  margin-inline: auto;
  line-height: 1.12;
}
.ma-trajectory__title em { color: var(--gold); font-style: italic; }
.ma-trajectory__text {
  color: rgba(255,253,248,0.84);
  font-size: var(--fs-md);
  max-width: 56ch;
  margin-inline: auto;
  line-height: 1.75;
}
.ma-trajectory__stats {
  margin-top: var(--s-8);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  padding-top: var(--s-7);
  border-top: 1px solid rgba(200,169,51,0.2);
}
@media (max-width: 600px) {
  .ma-trajectory__stats { grid-template-columns: 1fr; gap: var(--s-5); }
}
.ma-trajectory__stat {
  text-align: center;
}
.ma-trajectory__stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--gold);
  font-style: italic;
  display: block;
  line-height: 1;
  margin-bottom: var(--s-2);
}
.ma-trajectory__stat-label {
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,253,248,0.7);
}

/* ── 14. FILOSOFIA (nou bloc inspirat en FICSA) ─────────────── */
.ma-philosophy {
  background: var(--white-warm);
  position: relative;
  overflow: hidden;
}
.ma-philosophy__inner {
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.ma-philosophy__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: var(--s-5);
  letter-spacing: -0.015em;
}
.ma-philosophy__quote::before { content: "“"; color: var(--gold-dark); }
.ma-philosophy__quote::after  { content: "”"; color: var(--gold-dark); }
.ma-philosophy__quote em { color: var(--gold-dark); font-style: italic; }
.ma-philosophy__sub {
  font-size: var(--fs-md);
  color: var(--text-mute);
  max-width: 56ch;
  margin-inline: auto;
  line-height: 1.7;
}
.ma-philosophy__divider {
  display: block;
  width: 1px; height: 64px;
  background: var(--gold-dark);
  margin: 0 auto var(--s-6);
  opacity: 0.5;
}

/* ── 15. CTA FINAL — amb foto Costa Brava ───────────────────── */
.ma-cta-final {
  background: var(--ivory);
  position: relative;
  overflow: hidden;
}
.ma-cta-final__bg {
  /* Decoració sutil — substituida per gradient pur (coherent amb Lleida interior) */
  position: absolute;
  right: -10%; top: 50%;
  transform: translateY(-50%);
  width: 50vw; max-width: 600px;
  aspect-ratio: 1 / 1;
  opacity: 0.18;
  background: radial-gradient(circle, rgba(200,169,51,0.5) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}
@media (max-width: 700px) { .ma-cta-final__bg { display: none; } }
.ma-cta-final__inner {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.ma-cta-final__title {
  font-size: var(--fs-3xl);
  margin-bottom: var(--s-4);
  line-height: 1.1;
}
.ma-cta-final__title em { color: var(--gold-dark); font-style: italic; }
.ma-cta-final__text {
  font-size: var(--fs-lg);
  color: var(--text-mute);
  margin-bottom: var(--s-7);
}

/* ── 16. FORMULARI ─────────────────────────────────────────── */
.ma-form-section { background: var(--white-warm); }
.ma-form-section__inner {
  max-width: 760px;
  margin-inline: auto;
}
.ma-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  margin-top: var(--s-8);
}
@media (min-width: 600px) {
  .ma-form { grid-template-columns: 1fr 1fr; gap: var(--s-5) var(--s-5); }
  .ma-form__field--full { grid-column: 1 / -1; }
}

.ma-form__field { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.ma-form__label {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.ma-form__input,
.ma-form__select,
.ma-form__textarea {
  width: 100%;
  padding: 15px 18px;
  font-size: var(--fs-md);
  background: var(--white-warm);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  transition: border-color var(--transition), background var(--transition);
  font-family: var(--font-body);
}
.ma-form__input:hover,
.ma-form__select:hover,
.ma-form__textarea:hover { border-color: var(--gray-warm); }
.ma-form__input:focus,
.ma-form__select:focus,
.ma-form__textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--ivory);
}
.ma-form__textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.ma-form__select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path d='M4 6l4 4 4-4' fill='none' stroke='%238A7422' stroke-width='1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 48px;
}
.ma-form__consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: var(--fs-sm);
  color: var(--text-mute);
  line-height: 1.55;
}
.ma-form__consent input { margin-top: 4px; accent-color: var(--gold); }
.ma-form__consent a { color: var(--gold-dark); border-bottom: 1px solid var(--gold-dark); padding-bottom: 1px; }

.ma-form__submit {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: var(--s-3);
}

.ma-form__msg {
  grid-column: 1 / -1;
  padding: var(--s-4) var(--s-5);
  border-left: 2px solid;
  font-size: var(--fs-sm);
}
.ma-form__msg--success { border-color: #2e7d32; background: rgba(46,125,50,0.06); color: #1b5e20; }
.ma-form__msg--error { border-color: #c62828; background: rgba(198,40,40,0.06); color: #8b1a1a; }

/* ── 17. FOOTER ────────────────────────────────────────────── */
.ma-footer {
  background: var(--black);
  color: rgba(255,253,248,0.78);
  padding-block: var(--s-9) var(--s-5);
  font-size: var(--fs-sm);
  position: relative;
  overflow: hidden;
}
.ma-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 1px;
  background: var(--gold);
  opacity: 0.4;
}
.ma-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  margin-bottom: var(--s-8);
}
@media (min-width: 700px) {
  .ma-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.1fr; }
}
.ma-footer__col h3 {
  color: var(--gold);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: var(--s-5);
}
.ma-footer__brand .ma-logo { color: var(--white-warm); margin-bottom: var(--s-5); }
.ma-footer__brand p { color: rgba(255,253,248,0.8); font-size: var(--fs-sm); max-width: 32ch; line-height: 1.65; }
.ma-footer__list { display: flex; flex-direction: column; gap: var(--s-3); }
.ma-footer__list a { color: rgba(255,253,248,0.82); }
.ma-footer__list a:hover { color: var(--gold); }
.ma-footer__contact { font-size: var(--fs-sm); line-height: 1.85; font-style: normal; }
.ma-footer__contact a:hover { color: var(--gold); }

.ma-footer__credits {
  font-size: 0.75rem;
  color: rgba(255,253,248,0.5);
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(200,169,51,0.1);
  line-height: 1.6;
}
.ma-footer__credits a { color: rgba(255,253,248,0.5); border-bottom: 1px dotted rgba(255,253,248,0.3); }
.ma-footer__credits a:hover { color: var(--gold); }

.ma-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(200,169,51,0.12);
  font-size: var(--fs-xs);
  color: rgba(255,253,248,0.6);
}
@media (min-width: 700px) {
  .ma-footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (max-width: 699px) {
  /* el botó flotant de WhatsApp (fixed, esquerra) tapava els enllaços legals */
  .ma-footer__bottom { padding-bottom: 88px; }
}
.ma-footer__legal { display: flex; gap: var(--s-5); flex-wrap: wrap; }
.ma-footer__legal a:hover { color: var(--gold); }

/* ── 18. SCROLL REVEAL ─────────────────────────────────────── */
.ma-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms ease-out, transform 800ms cubic-bezier(.2,.6,.2,1);
}
.ma-reveal.is-visible { opacity: 1; transform: translateY(0); }
.ma-reveal[data-delay="100"] { transition-delay: 100ms; }
.ma-reveal[data-delay="200"] { transition-delay: 200ms; }
.ma-reveal[data-delay="300"] { transition-delay: 300ms; }
.ma-reveal[data-delay="400"] { transition-delay: 400ms; }
.ma-reveal[data-delay="500"] { transition-delay: 500ms; }

@media (prefers-reduced-motion: reduce) {
  .ma-reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .ma-trajectory__bg { background-attachment: scroll; }
}

/* ── 19. STUBS (coming-soon / 404 / legals) ────────────────── */
.ma-stub {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--s-9) var(--s-5);
}
.ma-stub h1 { font-size: var(--fs-3xl); margin-bottom: var(--s-4); }
.ma-stub p { max-width: 48ch; margin-inline: auto; margin-bottom: var(--s-6); }

/* Pàgines legals / contingut llarg */
.ma-content {
  padding-top: calc(80px + var(--s-7));
}
.ma-content h2 {
  font-size: var(--fs-xl);
  margin-top: var(--s-7);
  margin-bottom: var(--s-3);
  color: var(--text-dark);
}
.ma-content h2:first-of-type { margin-top: var(--s-7); }
.ma-content p {
  margin-bottom: var(--s-4);
  font-size: var(--fs-md);
  color: var(--text-mute);
}
.ma-content ul {
  padding-left: var(--s-5);
  list-style: disc;
  color: var(--text-mute);
  line-height: 1.8;
  margin-bottom: var(--s-5);
}

/* ── 20. NAV DROPDOWN ──────────────────────────────────────── */
.ma-nav__item--dropdown { position: relative; }

.ma-nav__trigger {
  display: inline-flex !important;
  align-items: center;
  gap: var(--s-2);
  height: 26px;            /* mateixa alçada que .ma-nav__link */
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  color: rgba(255, 253, 248, 0.78);
  padding: 0;
  font-size: var(--fs-md);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
}
.ma-nav__trigger.is-active,
.ma-nav__trigger:hover { color: var(--white-warm); }
.ma-nav__chevron {
  transition: transform var(--transition);
  color: var(--gold);
}
.ma-nav__trigger[aria-expanded="true"] .ma-nav__chevron { transform: rotate(180deg); }

.ma-dropdown {
  /* Pegat al trigger sense gap exterior — el gap visual es crea amb padding-top intern */
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 360px;
  padding-top: 14px;          /* gap visual entre trigger i panel — manté hover continu */
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 50;
}
.ma-nav__item--dropdown.is-open .ma-dropdown,
.ma-nav__item--dropdown:hover .ma-dropdown,
.ma-nav__item--dropdown:focus-within .ma-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.ma-dropdown__inner {
  position: relative;
  background: var(--black);
  border: 1px solid rgba(200, 169, 51, 0.22);
  border-radius: var(--radius);
  box-shadow: 0 24px 56px -16px rgba(0, 0, 0, 0.6);
  padding: var(--s-5);
}
.ma-dropdown__inner::before {
  /* Triangle apuntant cap al trigger */
  content: "";
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 11px; height: 11px;
  background: var(--black);
  border-top: 1px solid rgba(200, 169, 51, 0.22);
  border-left: 1px solid rgba(200, 169, 51, 0.22);
}
.ma-dropdown__title {
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s-4);
  font-weight: 500;
}
.ma-dropdown__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(200, 169, 51, 0.08);
}
.ma-dropdown__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--s-3) 0;
  border-bottom: 1px solid rgba(200, 169, 51, 0.08);
  transition: padding-left var(--transition);
  position: relative;
}
.ma-dropdown__item:hover,
.ma-dropdown__item[aria-current="page"] { padding-left: var(--s-3); }
.ma-dropdown__item::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.ma-dropdown__item:hover::before,
.ma-dropdown__item[aria-current="page"]::before { width: var(--s-2); }
.ma-dropdown__label {
  color: var(--white-warm);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
}
.ma-dropdown__desc {
  color: rgba(255, 253, 248, 0.55);
  font-size: var(--fs-xs);
  letter-spacing: 0.01em;
}
.ma-dropdown__item:hover .ma-dropdown__label { color: var(--gold); }

.ma-dropdown__all {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-4);
  color: var(--gold);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color var(--transition);
}
.ma-dropdown__all:hover { border-color: var(--gold); }

@media (max-width: 980px) {
  /* El li és display:flex (regla base): sense això, el títol "Serveis" (::before)
     i la llista queden en fila i el panell surt de pantalla. */
  .ma-nav__item--dropdown { flex-direction: column; align-items: stretch; }
  .ma-dropdown {
    position: static;
    width: 100%;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    min-width: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    margin-top: var(--s-4);
  }
  .ma-dropdown__inner {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  /* El triangle és a __inner::before (el selector antic .ma-dropdown::before no existia) */
  .ma-dropdown__inner::before { display: none; }
  .ma-dropdown__title { display: none; }
  .ma-dropdown__list { border-top: 0; gap: var(--s-3); }
  .ma-dropdown__item { padding: var(--s-2) 0; border-bottom: 0; }
  .ma-dropdown__item:hover,
  .ma-dropdown__item[aria-current="page"] { padding-left: 0; }
  .ma-dropdown__item::before { display: none; }
  .ma-dropdown__label { font-size: var(--fs-lg); color: rgba(255, 253, 248, 0.82); }
  .ma-dropdown__item[aria-current="page"] .ma-dropdown__label { color: var(--gold); }
  .ma-dropdown__desc { display: none; }
  .ma-dropdown__all { display: none; }
  .ma-nav__trigger { display: none !important; }
  .ma-nav__item--dropdown::before {
    content: "Serveis";
    display: block;
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    color: var(--gold);
    text-align: center;
    margin-bottom: var(--s-3);
  }
}

/* ── 21. SERVICES "MORE" link ──────────────────────────────── */
.ma-services__more {
  text-align: center;
  margin-top: var(--s-7);
  font-size: var(--fs-md);
  color: var(--text-mute);
  font-style: italic;
  font-family: var(--font-display);
}
.ma-services__more a {
  color: var(--gold-dark);
  border-bottom: 1px solid var(--gold-dark);
  padding-bottom: 1px;
  font-style: normal;
  font-family: var(--font-body);
}
.ma-services__more a:hover { color: var(--text-dark); border-color: var(--text-dark); }

/* ── 22. PROCÉS · head amb aside diferencial ───────────────── */
.ma-process__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  margin-bottom: var(--s-9);
  align-items: end;
}
@media (min-width: 900px) {
  .ma-process__head { grid-template-columns: 1.4fr 1fr; gap: clamp(var(--s-7), 5vw, var(--s-9)); }
}
.ma-process__head .ma-section-header { margin-bottom: 0; }

.ma-process__diff {
  background: var(--white-warm);
  border-left: 1px solid var(--gold);
  padding: var(--s-6) var(--s-6);
  font-size: var(--fs-sm);
}
.ma-process__diff .ma-eyebrow { margin-bottom: var(--s-4); }
.ma-process__diff ul { display: flex; flex-direction: column; gap: var(--s-3); }
.ma-process__diff li {
  display: flex; align-items: flex-start; gap: var(--s-3);
  font-size: var(--fs-sm);
  color: var(--text-dark);
  line-height: 1.55;
}
.ma-process__diff li::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--gold);
  margin-top: 8px;
  flex-shrink: 0;
  transform: rotate(45deg);
}

/* ── 23. PAGE HERO (pàgines internes) ──────────────────────── */
.ma-page-hero {
  position: relative;
  padding-top: calc(80px + var(--s-9));
  padding-bottom: var(--s-9);
  background: var(--black-warm);
  color: var(--white-warm);
  overflow: hidden;
  isolation: isolate;
}
.ma-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(200, 169, 51, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 0% 100%, rgba(200, 169, 51, 0.06) 0%, transparent 50%);
}
.ma-page-hero::after {
  /* hairline daurada inferior */
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 1px;
  background: var(--gold);
  opacity: 0.5;
}
.ma-page-hero__inner { max-width: 800px; }
.ma-page-hero__breadcrumb {
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 253, 248, 0.5);
  margin-bottom: var(--s-5);
  display: flex;
  gap: var(--s-3);
  align-items: center;
  flex-wrap: wrap;
}
.ma-page-hero__breadcrumb a { color: rgba(255, 253, 248, 0.7); transition: color var(--transition); }
.ma-page-hero__breadcrumb a:hover { color: var(--gold); }
.ma-page-hero__breadcrumb span { color: var(--gold); }

.ma-page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--fs-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: var(--s-5);
}
.ma-page-hero__eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--gold);
}
.ma-page-hero h1 {
  font-size: clamp(2.25rem, 1.7rem + 3vw, 4rem);
  line-height: 1.05;
  margin-bottom: var(--s-5);
  color: var(--white-warm);
  font-weight: 500;
  letter-spacing: -0.018em;
}
.ma-page-hero h1 em { color: var(--gold); font-style: italic; }
.ma-page-hero__intro {
  font-size: var(--fs-lg);
  line-height: 1.65;
  color: rgba(255, 253, 248, 0.84);
  max-width: 58ch;
}

/* ── 24. SERVICE DETAIL — què inclou + procés específic ─────── */
.ma-detail {
  background: var(--white-warm);
  padding-block: clamp(var(--s-9), 8vw, var(--s-11));
}
.ma-detail--ivory { background: var(--ivory); }

.ma-detail__intro {
  max-width: 760px;
  margin-bottom: var(--s-9);
}
.ma-detail__intro p {
  font-size: var(--fs-lg);
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: var(--s-4);
}
.ma-detail__intro p:last-child { margin-bottom: 0; }

.ma-detail__items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--gray-line);
}
@media (min-width: 700px) {
  .ma-detail__items { grid-template-columns: repeat(2, 1fr); }
}
.ma-detail-item {
  padding: var(--s-6) var(--s-5);
  border-bottom: 1px solid var(--gray-line);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  position: relative;
  transition: background var(--transition);
}
@media (min-width: 700px) {
  .ma-detail-item:nth-child(odd) { border-right: 1px solid var(--gray-line); }
}
.ma-detail-item:hover { background: var(--ivory); }
.ma-detail-item__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-sm);
  color: var(--gold-dark);
  letter-spacing: 0.04em;
}
.ma-detail-item__title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.2;
}
.ma-detail-item__text {
  font-size: var(--fs-sm);
  color: var(--text-mute);
  line-height: 1.7;
}

/* ── 25. FAQ accordion ─────────────────────────────────────── */
.ma-faq {
  background: var(--ivory);
}
.ma-faq__list {
  max-width: 880px;
  margin-inline: auto;
  margin-top: var(--s-7);
  border-top: 1px solid var(--gray-line);
}
.ma-faq__item {
  border-bottom: 1px solid var(--gray-line);
}
.ma-faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-5);
  padding: var(--s-5) 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.3;
  transition: color var(--transition);
}
.ma-faq__q:hover { color: var(--gold-dark); }
.ma-faq__icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border: 1px solid var(--gold-dark);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold-dark);
  font-size: 16px;
  font-weight: 400;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}
.ma-faq__item.is-open .ma-faq__icon {
  transform: rotate(45deg);
  background: var(--gold-dark);
  color: var(--white-warm);
}
.ma-faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms ease-out;
}
.ma-faq__a-inner {
  padding-bottom: var(--s-5);
  font-size: var(--fs-md);
  color: var(--text-mute);
  line-height: 1.7;
  max-width: 70ch;
}
.ma-faq__item.is-open .ma-faq__a { max-height: 500px; }

/* ── 26. CTA STRIP (peu de pàgines internes) ───────────────── */
.ma-cta-strip {
  background: var(--black);
  color: var(--white-warm);
  padding-block: var(--s-9);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ma-cta-strip::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 1px;
  background: var(--gold);
}
.ma-cta-strip__title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 500;
  margin-bottom: var(--s-3);
  color: var(--white-warm);
  line-height: 1.2;
}
.ma-cta-strip__title em { color: var(--gold); font-style: italic; }
.ma-cta-strip__text {
  font-size: var(--fs-md);
  color: rgba(255, 253, 248, 0.7);
  margin-bottom: var(--s-6);
  max-width: 56ch;
  margin-inline: auto;
}
.ma-cta-strip__actions {
  display: flex; gap: var(--s-4); justify-content: center; flex-wrap: wrap;
}

/* ── 27. RELATED LINKS — bloc per enllaçat intern ───────────── */
.ma-related {
  background: var(--white-warm);
  padding-block: clamp(var(--s-8), 7vw, var(--s-10));
  border-top: 1px solid var(--gray-line);
}
.ma-related__title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 500;
  margin-bottom: var(--s-6);
  color: var(--text-dark);
}
.ma-related__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 700px) { .ma-related__grid { grid-template-columns: repeat(3, 1fr); } }
.ma-related__card {
  padding: var(--s-5);
  border: 1px solid var(--gray-line);
  transition: border-color var(--transition), transform var(--transition);
  display: flex; flex-direction: column; gap: var(--s-2);
}
.ma-related__card:hover { border-color: var(--gold); transform: translateY(-3px); }
.ma-related__card-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-sm);
  color: var(--gold-dark);
}
.ma-related__card-title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--text-dark);
}
.ma-related__card-text {
  font-size: var(--fs-sm);
  color: var(--text-mute);
  line-height: 1.6;
}
.ma-related__card-arrow {
  margin-top: auto;
  color: var(--gold-dark);
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
}

/* ── 28. SOBRE — sections especials ────────────────────────── */
.ma-about-intro {
  background: var(--white-warm);
}
.ma-about-intro__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  align-items: start;
}
@media (min-width: 900px) {
  .ma-about-intro__grid { grid-template-columns: 1fr 1.3fr; gap: clamp(var(--s-7), 5vw, var(--s-9)); }
}
.ma-about-values {
  background: var(--ivory);
}
.ma-about-values__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  margin-top: var(--s-7);
}
@media (min-width: 700px) { .ma-about-values__grid { grid-template-columns: repeat(3, 1fr); } }
.ma-value {
  padding: var(--s-6) var(--s-5);
  background: var(--white-warm);
  border-top: 2px solid var(--gold);
  display: flex; flex-direction: column; gap: var(--s-3);
}
.ma-value h3 {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 500;
  color: var(--text-dark);
}
.ma-value p {
  font-size: var(--fs-sm);
  color: var(--text-mute);
  line-height: 1.7;
}

/* ── 29. CONTACTE — info al costat del form ────────────────── */
/* 320px: l'email és una paraula llarga i els ítems de graella no encongien */
.ma-contact-grid > * { min-width: 0; }
.ma-contact-info__group p,
.ma-contact-info__group a { overflow-wrap: anywhere; }

.ma-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
}
@media (min-width: 900px) {
  .ma-contact-grid { grid-template-columns: 1fr 1.4fr; gap: clamp(var(--s-7), 5vw, var(--s-9)); }
}
.ma-contact-info {
  border-left: 1px solid var(--gold);
  padding-left: var(--s-5);
}
.ma-contact-info h3 {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 500;
  margin-bottom: var(--s-3);
}
.ma-contact-info__group { margin-bottom: var(--s-6); font-size: var(--fs-md); }
.ma-contact-info__group:last-child { margin-bottom: 0; }
.ma-contact-info__group p,
.ma-contact-info__group a { color: var(--text-dark); line-height: 1.65; }
.ma-contact-info__group a:hover { color: var(--gold-dark); border-bottom: 1px solid var(--gold-dark); }

/* ── 30. HERO — outline number gigant + marquee inferior ─────── */
.ma-hero__outline-num {
  position: absolute;
  right: -3%;
  top: 15%;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(12rem, 22vw, 26rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(200, 169, 51, 0.20);
          text-stroke: 1.2px rgba(200, 169, 51, 0.20);
  letter-spacing: -0.06em;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
.ma-hero__outline-num sup {
  font-size: 0.4em;
  vertical-align: super;
  -webkit-text-stroke-width: 1px;
}
@media (max-width: 768px) {
  .ma-hero__outline-num { right: -10%; top: 12%; opacity: 0.7; }
}

/* Marquee — banda inferior amb keywords en moviment */
.ma-hero__marquee {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding-block: var(--s-4);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(200, 169, 51, 0.22);
  border-bottom: 1px solid rgba(200, 169, 51, 0.22);
  overflow: hidden;
  z-index: 3;
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.ma-hero__marquee-track {
  display: flex;
  gap: var(--s-6);
  white-space: nowrap;
  width: max-content;
  animation: marquee 50s linear infinite;
  align-items: center;
}
@media (hover: hover) {
  .ma-hero__marquee:hover .ma-hero__marquee-track { animation-play-state: paused; }
}
.ma-hero__marquee-item {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-lg);
  font-weight: 500;
  color: rgba(255, 253, 248, 0.85);
  letter-spacing: 0.005em;
  display: inline-flex;
  align-items: center;
  gap: var(--s-6);
  text-decoration: none;
  transition: color var(--transition);
}
.ma-hero__marquee-item:hover { color: var(--gold-light); }
.ma-hero__marquee-item::after {
  content: "◆";
  color: var(--gold);
  font-size: 0.5em;
  vertical-align: middle;
  font-style: normal;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ma-hero__marquee-track { animation: none; transform: none; }
}

/* ── 31. SECTION HEADER amb BIGNUM (numeració decorativa gran) ── */
.ma-section-header--bignum { display: block; }
.ma-bignum {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(4.5rem, 8vw, 7rem);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-dark);
          text-stroke: 1px var(--gold-dark);
  letter-spacing: -0.04em;
  margin-bottom: var(--s-5);
  display: inline-block;
  user-select: none;
}
.ma-section--dark .ma-bignum,
.ma-section--ivory .ma-bignum { -webkit-text-stroke-color: var(--gold); }
.ma-section--dark .ma-bignum { -webkit-text-stroke-color: rgba(200, 169, 51, 0.5); }

/* Línia decorativa entre bignum i eyebrow */
.ma-section-header--bignum .ma-eyebrow {
  margin-top: 0;
}

/* ── 32. PAGE HERO amb FOTO de fons ────────────────────────── */
.ma-page-hero {
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--s-9);
}
.ma-page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  filter: brightness(0.42) saturate(0.85) contrast(1.05);
}
.ma-page-hero__bg + ::before,
.ma-page-hero--with-img::before {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.75) 100%),
    radial-gradient(ellipse at 80% 20%, rgba(200, 169, 51, 0.12) 0%, transparent 50%) !important;
}
.ma-page-hero__outline-num {
  position: absolute;
  right: -2%;
  bottom: -8%;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(10rem, 18vw, 20rem);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px rgba(200, 169, 51, 0.18);
  letter-spacing: -0.05em;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
@media (max-width: 768px) {
  .ma-page-hero__outline-num { right: -8%; bottom: -4%; }
}

/* ── 33. POSICIONAMENT — layout asimètric (30/70 — foto més petita, text més ample) ── */
@media (min-width: 900px) {
  .ma-positioning__grid--asym { grid-template-columns: 5fr 7fr; }
}

/* Marc daurat dramàtic en la foto */
.ma-positioning__photo--bold::before {
  width: 64px !important; height: 64px !important;
  top: -14px !important; left: -14px !important;
  border-top-width: 2px !important; border-left-width: 2px !important;
  border-color: var(--gold) !important;
}
.ma-positioning__photo--bold::after {
  width: 64px !important; height: 64px !important;
  bottom: -14px !important; right: -14px !important;
  border-bottom-width: 2px !important; border-right-width: 2px !important;
  border-color: var(--gold) !important;
}

/* Dropcap daurat al primer paràgraf del body */
.ma-dropcap {
  float: left;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 4.5em;
  line-height: 0.85;
  color: var(--gold-dark);
  padding-right: 0.08em;
  margin-top: 0.1em;
  font-weight: 500;
}

/* Decorador "✦" en algunes seccions */
.ma-decor-mark {
  display: inline-block;
  color: var(--gold);
  font-size: 0.8em;
  vertical-align: middle;
  margin: 0 0.3em;
}

/* ── 34. SERVICE CARDS — display number gegant ───────────────── */
.ma-service-card--editorial { padding-top: var(--s-5); }
.ma-service-card__bignum {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 3.5rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-dark);
  letter-spacing: -0.03em;
  pointer-events: none;
  user-select: none;
  transition: -webkit-text-stroke-color var(--transition), color var(--transition);
}
.ma-service-card:hover .ma-service-card__bignum {
  -webkit-text-stroke-color: transparent;
  color: var(--gold);
}

/* ── 35. KEYWORD STRIP — banda de keywords entre seccions ───── */
.ma-keyword-strip {
  background: var(--black);
  color: var(--white-warm);
  padding-block: var(--s-6);
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(200, 169, 51, 0.15);
  border-bottom: 1px solid rgba(200, 169, 51, 0.15);
}
.ma-keyword-strip__track {
  display: flex;
  gap: var(--s-7);
  align-items: center;
  white-space: nowrap;
  width: max-content;
  animation: marquee 60s linear infinite;
}
@media (hover: hover) {
  .ma-keyword-strip:hover .ma-keyword-strip__track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .ma-keyword-strip__track { animation: none; transform: none; }
}
.ma-keyword-strip__item {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: rgba(255, 253, 248, 0.4);
  font-weight: 500;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: var(--s-6);
  text-decoration: none;
  transition: color var(--transition);
}
.ma-keyword-strip__item:hover { color: var(--white-warm); }
.ma-keyword-strip__item--accent { color: var(--gold); }
.ma-keyword-strip__item--accent:hover { color: var(--gold-light); }
.ma-keyword-strip__item::after {
  content: "✦";
  color: var(--gold);
  font-size: 0.5em;
  margin-left: var(--s-5);
  font-style: normal;
}

/* ── 36. FLIP CARD — items "Què inclou" interactius ─────────── */
.ma-flip {
  perspective: 1200px;
  aspect-ratio: 1 / 1.05;
  min-height: 260px;
  cursor: pointer;
}
.ma-flip__inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 600ms cubic-bezier(.4, 0, .2, 1);
}
.ma-flip.is-flipped .ma-flip__inner { transform: rotateY(180deg); }

.ma-flip__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: var(--s-6) var(--s-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s-3);
  border: 1px solid var(--gray-line);
  background: var(--white-warm);
  transition: border-color var(--transition);
}
.ma-flip:hover .ma-flip__face { border-color: var(--gold); }

.ma-flip__face--front {
  justify-content: space-between;
}
.ma-flip__face--back {
  background: var(--black-warm);
  color: var(--white-warm);
  transform: rotateY(180deg);
  border-color: var(--gold);
}

.ma-flip__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-dark);
  letter-spacing: -0.03em;
}
.ma-flip__title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.ma-flip__face--back .ma-flip__title { color: var(--gold); }

.ma-flip__hint {
  margin-top: auto;
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.ma-flip__hint::after {
  content: "";
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1px solid var(--gold-dark);
  display: inline-block;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10' fill='none' stroke='%238A7422' stroke-width='1.5' stroke-linecap='round'><path d='M2 5h6M5 2v6'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform var(--transition);
}
.ma-flip:hover .ma-flip__hint::after { transform: rotate(90deg); }

.ma-flip__text {
  font-size: var(--fs-sm);
  color: rgba(255, 253, 248, 0.88);
  line-height: 1.65;
}
.ma-flip__close {
  margin-top: auto;
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.ma-flip__close::before { content: "←"; }

.ma-flips__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}
@media (min-width: 700px)  { .ma-flips__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ma-flips__grid { grid-template-columns: repeat(4, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  .ma-flip__inner { transition: none; }
}

/* ── 37. FEATURE SPLIT — imatge integrada al flux narratiu ──── */
.ma-feature-split {
  padding-block: clamp(var(--s-9), 8vw, var(--s-10));
  background: var(--white-warm);
  position: relative;
  overflow: hidden;
}
.ma-feature-split--ivory { background: var(--ivory); }

.ma-feature-split__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  align-items: center;
}
@media (min-width: 900px) {
  .ma-feature-split__grid { grid-template-columns: 6fr 5fr; gap: clamp(var(--s-7), 5vw, var(--s-9)); }
  .ma-feature-split--reverse .ma-feature-split__grid { grid-template-columns: 5fr 6fr; }
  .ma-feature-split--reverse .ma-feature-split__media { order: 2; }
}

.ma-feature-split__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.ma-feature-split__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.6,.2,1);
}
.ma-feature-split__media:hover img { transform: scale(1.04); }
.ma-feature-split__media::before,
.ma-feature-split__media::after {
  content: "";
  position: absolute;
  width: 56px; height: 56px;
  z-index: 2;
  pointer-events: none;
}
.ma-feature-split__media::before {
  top: -10px; left: -10px;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
}
.ma-feature-split__media::after {
  bottom: -10px; right: -10px;
  border-bottom: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
}

.ma-feature-split__caption {
  position: absolute;
  bottom: var(--s-4);
  left: var(--s-4);
  right: var(--s-4);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-warm);
  font-weight: 500;
  z-index: 3;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.ma-feature-split__body { max-width: 56ch; }
.ma-feature-split__title {
  font-size: var(--fs-2xl);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: var(--s-4);
  letter-spacing: -0.02em;
}
.ma-feature-split__title em {
  color: var(--gold-dark);
  font-style: normal;
  font-weight: 700;
}
.ma-feature-split__lead {
  font-size: var(--fs-lg);
  color: var(--text-dark);
  line-height: 1.55;
  margin-bottom: var(--s-5);
}
.ma-feature-split__text {
  font-size: var(--fs-md);
  color: var(--text-mute);
  line-height: 1.7;
}
.ma-feature-split__highlights {
  list-style: none;
  margin-top: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: 0;
}
.ma-feature-split__highlights li {
  display: flex; align-items: flex-start; gap: var(--s-3);
  font-size: var(--fs-md);
  color: var(--text-dark);
  padding-left: 0;
}
.ma-feature-split__highlights li::before {
  content: "";
  flex-shrink: 0;
  width: 8px; height: 8px;
  background: var(--gold);
  margin-top: 10px;
  transform: rotate(45deg);
}

/* ── 38. IMAGE BREAK — banda visual entre seccions ─────────── */
.ma-img-break {
  position: relative;
  height: clamp(220px, 32vh, 360px);
  overflow: hidden;
  isolation: isolate;
}
.ma-img-break img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
  z-index: -2;
  filter: brightness(0.55) saturate(0.85);
}
.ma-img-break::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.45) 100%),
    radial-gradient(ellipse at center, rgba(200,169,51,0.10) 0%, transparent 60%);
}
.ma-img-break__quote {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--s-5);
}
.ma-img-break__quote-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.2vw, 1.875rem);
  line-height: 1.35;
  color: var(--white-warm);
  max-width: 56ch;
  letter-spacing: -0.015em;
}
.ma-img-break__quote-text::before,
.ma-img-break__quote-text::after {
  content: "";
  display: block;
  width: 32px; height: 1px;
  background: var(--gold);
  margin: var(--s-3) auto;
}

/* ── WHATSAPP FLOTANT ───────────────────────────────────────── */
.ma-whatsapp {
  position: fixed;
  bottom: clamp(var(--s-4), 3vw, var(--s-6));
  left: clamp(var(--s-4), 3vw, var(--s-6));
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  background: #25D366;
  color: var(--white-warm);
  border-radius: 50%;
  z-index: 90;
  box-shadow: 0 10px 28px -8px rgba(37, 211, 102, 0.55), 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.22s cubic-bezier(.4,0,.2,1), box-shadow 0.22s;
  text-decoration: none;
}
.ma-whatsapp::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: #25D366;
  opacity: 0;
  z-index: -1;
  animation: waPulse 2.4s ease-out infinite;
}
@keyframes waPulse {
  0%   { transform: scale(0.95); opacity: 0.35; }
  100% { transform: scale(1.5);  opacity: 0; }
}
.ma-whatsapp:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 36px -8px rgba(37, 211, 102, 0.7), 0 4px 10px rgba(0,0,0,0.2);
}
.ma-whatsapp svg {
  width: 30px; height: 30px;
  fill: currentColor;
}
.ma-whatsapp__label {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--black);
  color: var(--white-warm);
  padding: 8px 14px;
  border-radius: 4px;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
  border: 1px solid rgba(200, 169, 51, 0.3);
}
.ma-whatsapp__label::after {
  content: "";
  position: absolute;
  left: 100%; top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border: 5px solid transparent;
  border-left-color: var(--black);
}
@media (hover: hover) {
  .ma-whatsapp:hover .ma-whatsapp__label {
    opacity: 1;
    transform: translateY(-50%) translateX(-3px);
  }
}
@media (max-width: 600px) {
  .ma-whatsapp { width: 52px; height: 52px; }
  .ma-whatsapp__label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ma-whatsapp::before { animation: none; }
}

/* ── 38. BACK TO TOP ────────────────────────────────────────── */
.ma-totop {
  position: fixed;
  right: clamp(var(--s-4), 3vw, var(--s-6));
  bottom: clamp(var(--s-4), 3vw, var(--s-6));
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  background: var(--black);
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  transform: translateY(20px) scale(0.85);
  pointer-events: none;
  transition: opacity 320ms ease-out, transform 320ms cubic-bezier(.4,0,.2,1), background var(--transition), color var(--transition);
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.4);
}
.ma-totop.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.ma-totop:hover {
  background: var(--gold);
  color: var(--black);
}
.ma-totop:hover svg { transform: translateY(-2px); }
.ma-totop svg {
  width: 18px; height: 18px;
  transition: transform var(--transition);
}

/* ── CALCULADORA HIPOTECA + VIABILITAT ─────────────────────── */
.ma-calc-section {
  background: var(--ivory);
  padding-block: clamp(var(--s-9), 10vw, var(--s-11));
}
/* dues calculadores seguides: separa-les amb una línia d'aire */
.ma-calc-section + .ma-calc-section { border-top: 1px solid var(--gray-line); }
.ma-calc-section__intro {
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: var(--s-8);
}

.ma-calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(var(--s-6), 4vw, var(--s-8));
  max-width: none;
  margin-inline: auto;
}
@media (min-width: 900px) {
  .ma-calc-grid { grid-template-columns: 1fr 1fr; }
}

.ma-calc {
  min-width: 0;   /* ítem de graella: sense això el contingut n'imposa l'ample mínim */
  background: var(--white-warm);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-lg);
  padding: clamp(var(--s-5), 3vw, var(--s-7));
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  position: relative;
  transition: border-color var(--transition);
}
.ma-calc:hover { border-color: rgba(200, 169, 51, 0.5); }

.ma-calc__header {
  border-bottom: 1px solid var(--gray-line);
  padding-bottom: var(--s-4);
  margin-bottom: var(--s-2);
}
.ma-calc__eyebrow {
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: var(--s-2);
}
.ma-calc__title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-dark);
}

.ma-calc__fields { display: flex; flex-direction: column; gap: var(--s-5); }

.ma-calc__field { display: flex; flex-direction: column; gap: var(--s-2); }
.ma-calc__field-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: var(--fs-sm);
  color: var(--text-dark);
  font-weight: 500;
}
.ma-calc__field-value {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--gold-dark);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.ma-calc__slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--gray-line);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  margin: var(--s-2) 0 0;
}
.ma-calc__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  background: var(--gold);
  border: 3px solid var(--white-warm);
  border-radius: 50%;
  cursor: grab;
  box-shadow: 0 2px 8px rgba(200, 169, 51, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.ma-calc__slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.ma-calc__slider::-webkit-slider-thumb:active { cursor: grabbing; box-shadow: 0 4px 12px rgba(200, 169, 51, 0.6); }
.ma-calc__slider::-moz-range-thumb {
  width: 22px; height: 22px;
  background: var(--gold);
  border: 3px solid var(--white-warm);
  border-radius: 50%;
  cursor: grab;
  box-shadow: 0 2px 8px rgba(200, 169, 51, 0.4);
}
.ma-calc__slider::-moz-range-thumb:active { cursor: grabbing; }

.ma-calc__bounds {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-top: -2px;
  letter-spacing: 0.04em;
}

.ma-calc__results {
  background: var(--black-warm);
  color: var(--white-warm);
  border-radius: var(--radius-md);
  padding: var(--s-5);
  margin-top: var(--s-3);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  position: relative;
  overflow: hidden;
}
.ma-calc__results::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
}
.ma-calc__result {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-3);
}
.ma-calc__result:not(:last-child) {
  border-bottom: 1px solid rgba(255, 253, 248, 0.08);
  padding-bottom: var(--s-3);
}
.ma-calc__result-label {
  font-size: var(--fs-sm);
  color: rgba(255, 253, 248, 0.7);
  letter-spacing: 0.02em;
}
.ma-calc__result-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  color: var(--gold);
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}
.ma-calc__result--primary .ma-calc__result-value {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--gold-light);
}
.ma-calc__result--primary .ma-calc__result-label {
  font-size: var(--fs-md);
  color: var(--white-warm);
  font-weight: 500;
}

.ma-calc__disclaimer {
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--text-soft);
  text-align: center;
  margin-top: var(--s-6);
  max-width: 60ch;
  margin-inline: auto;
  padding-inline: var(--s-4);
}
.ma-calc__disclaimer strong { color: var(--text-mute); font-weight: 600; }

.ma-calc__cta {
  display: flex;
  justify-content: center;
  margin-top: var(--s-5);
}

/* ── 38.5. CALC v0.12 — variants noves ─────────────────────── */
.ma-calc-grid--single { grid-template-columns: 1fr !important; max-width: 760px; }

.ma-calc__radio-group { border: 0; padding: 0; margin: 0; }
.ma-calc__radios {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-2);
}
@media (min-width: 720px) {
  .ma-calc__radios { grid-template-columns: repeat(3, 1fr); }
}
.ma-calc__radio {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  font-size: var(--fs-sm);
  color: var(--text-dark);
  position: relative;
}
.ma-calc__radio input { position: absolute; opacity: 0; pointer-events: none; }
.ma-calc__radio span { font-weight: 600; }
.ma-calc__radio small { font-size: 0.7rem; color: var(--text-soft); line-height: 1.4; }
.ma-calc__radio:hover { border-color: rgba(200, 169, 51, 0.5); }
.ma-calc__radio:has(input:checked) {
  border-color: var(--gold);
  background: rgba(200, 169, 51, 0.06);
  box-shadow: inset 0 0 0 1px var(--gold);
}
.ma-calc__radio:has(input:focus-visible) {
  outline: 2px solid var(--gold-dark);
  outline-offset: 2px;
}

.ma-calc__breakdown {
  margin-top: var(--s-3);
  border-top: 1px dashed var(--gray-line);
  padding-top: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.ma-calc__breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-3);
  font-size: var(--fs-sm);
  color: var(--text-mute);
  font-variant-numeric: tabular-nums;
}
.ma-calc__breakdown-row > span:last-child {
  color: var(--text-dark);
  font-weight: 500;
}
.ma-calc__breakdown-row small {
  font-size: 0.7rem;
  color: var(--text-soft);
  font-weight: 400;
  margin-left: 4px;
}

/* ── 38.6. QUIZ — test interactiu hipoteca ─────────────────── */
.ma-about-values .ma-value h3 { text-align: center; }

.ma-quiz-section {
  background: var(--white-warm);
  padding-block: clamp(var(--s-9), 8vw, var(--s-10));
}

.ma-quiz {
  background: var(--ivory);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-lg);
  padding: clamp(var(--s-5), 4vw, var(--s-8));
  position: relative;
}

.ma-quiz__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}

.ma-quiz__item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "num question"
    "num answers";
  gap: var(--s-2) var(--s-4);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--gray-line);
  transition: opacity var(--transition);
}
.ma-quiz__item:last-child { border-bottom: 0; padding-bottom: 0; }
.ma-quiz__item.is-answered { opacity: 0.55; }

.ma-quiz__num {
  grid-area: num;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
  -webkit-text-stroke: 1px var(--gold);
  color: transparent;
}
.ma-quiz__item.is-answered .ma-quiz__num {
  color: var(--gold-dark);
  -webkit-text-stroke-color: var(--gold-dark);
}

.ma-quiz__question {
  grid-area: question;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.4;
  margin: 0;
}

.ma-quiz__answers {
  grid-area: answers;
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}

.ma-quiz__btn {
  font: inherit;
  background: var(--white-warm);
  color: var(--text-dark);
  border: 1px solid var(--gray-line);
  padding: 10px 28px;
  min-height: 44px;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--transition);
}
.ma-quiz__btn:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}
.ma-quiz__btn.is-selected[data-answer="yes"] {
  background: var(--gold-dark);
  color: var(--white-warm);
  border-color: var(--gold-dark);
}
.ma-quiz__btn.is-selected[data-answer="no"] {
  background: var(--text-dark);
  color: var(--white-warm);
  border-color: var(--text-dark);
}
.ma-quiz__btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.ma-quiz__progress {
  margin-top: var(--s-6);
  height: 3px;
  background: var(--gray-line);
  border-radius: 2px;
  overflow: hidden;
}
.ma-quiz__progress-bar {
  height: 100%;
  background: var(--gold);
  transition: width 400ms ease;
}

.ma-quiz__result {
  margin-top: var(--s-7);
  padding: var(--s-7) clamp(var(--s-4), 4vw, var(--s-7));
  background: var(--black-warm);
  color: var(--white-warm);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ma-quiz__result::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--gold);
}
.ma-quiz__result[hidden] { display: none; }

.ma-quiz__result-eyebrow {
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: var(--s-3);
}
.ma-quiz__result-score {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 var(--s-4);
}
.ma-quiz__result-score-total {
  font-size: 0.4em;
  color: rgba(255,253,248,0.45);
  font-weight: 500;
  margin-left: 4px;
}
.ma-quiz__result-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--white-warm);
  margin-bottom: var(--s-4);
  letter-spacing: -0.02em;
}
.ma-quiz__result-text {
  color: rgba(255,253,248,0.78);
  font-size: var(--fs-md);
  line-height: 1.6;
  max-width: 50ch;
  margin: 0 auto var(--s-6);
}
.ma-quiz__result-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.ma-quiz__result-actions .ma-btn--ghost {
  border-color: rgba(255,253,248,0.35);
  color: rgba(255,253,248,0.85);
}
.ma-quiz__result-actions .ma-btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ── 38.7. FOOTER v0.12 — eines col + trust strip ──────────── */
.ma-footer__grid {
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .ma-footer__grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }
}
@media (min-width: 1100px) {
  .ma-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr;
  }
}

.ma-footer__claim {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  line-height: 1.35;
  color: var(--gold-light);
  font-style: italic;
  letter-spacing: 0.01em;
  max-width: 20ch;
  margin-top: var(--s-4);
  margin-bottom: var(--s-4);
}
.ma-footer__claim--spaced {
  margin-bottom: var(--s-7);
}

.ma-footer__hours {
  display: inline-block;
  margin-top: var(--s-2);
  font-size: 0.8125rem;
  color: rgba(255,253,248,0.65);
}
.ma-footer__hours--lg {
  font-size: 0.9375rem;
  color: rgba(255,253,248,0.8);
}

.ma-footer__cif {
  font-size: 0.75rem;
  color: rgba(255,253,248,0.6);
  letter-spacing: 0.04em;
  margin-top: var(--s-4);
}
.ma-footer__cif--lg {
  font-size: 0.875rem;
  color: rgba(255,253,248,0.75);
}

.ma-trust-strip {
  border-top: 1px solid rgba(255,253,248,0.08);
  border-bottom: 1px solid rgba(255,253,248,0.08);
  margin: var(--s-7) 0;
  padding: var(--s-5) 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 720px) {
  .ma-trust-strip { grid-template-columns: repeat(4, 1fr); }
}
.ma-trust-strip__item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  color: rgba(255,253,248,0.78);
  font-size: 0.875rem;
  line-height: 1.4;
}
.ma-trust-strip__icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  color: var(--gold);
}
.ma-trust-strip__item strong {
  display: block;
  color: var(--white-warm);
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ── 38.8. LEAD MAGNET — guia PDF gratuïta ─────────────────── */
.ma-leadmagnet {
  background: var(--ivory);
  padding-block: clamp(var(--s-9), 10vw, var(--s-11));
  position: relative;
}
.ma-leadmagnet__card {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(var(--s-6), 5vw, var(--s-9));
  align-items: center;
  max-width: 1080px;
  margin-inline: auto;
  background: var(--white-warm);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-lg);
  padding: clamp(var(--s-6), 4vw, var(--s-8));
}
@media (min-width: 860px) {
  .ma-leadmagnet__card { grid-template-columns: 0.85fr 1.15fr; }
}

.ma-leadmagnet__media {
  position: relative;
  justify-self: center;
  max-width: 320px;
}
.ma-leadmagnet__cover {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(200, 169, 51, 0.35);
  box-shadow: var(--shadow-card-hover);
  transform: rotate(-2deg);
  transition: transform var(--transition);
}
.ma-leadmagnet__card:hover .ma-leadmagnet__cover { transform: rotate(0); }
.ma-leadmagnet__tag {
  position: absolute;
  top: -10px; right: -10px;
  background: var(--gold);
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  transform: rotate(3deg);
}

.ma-leadmagnet__body { color: var(--text-dark); }
.ma-leadmagnet__body .ma-eyebrow { color: var(--gold-dark); }
.ma-leadmagnet__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin: var(--s-3) 0 var(--s-4);
}
.ma-leadmagnet__title em { color: var(--gold-dark); font-style: italic; }
.ma-leadmagnet__lead {
  color: var(--text-mute);
  font-size: var(--fs-md);
  line-height: 1.6;
  max-width: 52ch;
  margin-bottom: var(--s-5);
}
.ma-leadmagnet__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.ma-leadmagnet__list li {
  position: relative;
  padding-left: 28px;
  color: var(--text-dark);
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.ma-leadmagnet__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--gold-dark);
  border-bottom: 2px solid var(--gold-dark);
  transform: rotate(-45deg);
}

/* Form sobre fons clar — hereta els estils base de .ma-form */
.ma-leadmagnet__form {
  display: block;   /* .ma-form és grid de 2 col: aquí encongia els camps a la meitat */
  margin-top: 0;
}
.ma-leadmagnet__form .ma-form__input { background: var(--ivory); }
.ma-leadmagnet__form .ma-form__input:focus { background: var(--white-warm); }

.ma-leadmagnet__fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
}
.ma-leadmagnet__fields > .ma-form__field { min-width: 0; }
@media (min-width: 1024px) {
  .ma-leadmagnet__fields { grid-template-columns: 1fr 1fr; }
}
.ma-leadmagnet__submit { margin-top: var(--s-5); }
.ma-leadmagnet__note {
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-top: var(--s-3);
}
.ma-leadmagnet__error {
  background: rgba(198,40,40,0.08);
  border-left: 3px solid #c62828;
  color: #a02020;
  padding: var(--s-3) var(--s-4);
  font-size: var(--fs-sm);
  margin-bottom: var(--s-4);
}

.ma-leadmagnet__success {
  border: 1px solid rgba(200,169,51,0.5);
  background: rgba(200,169,51,0.08);
  border-radius: var(--radius-md);
  padding: clamp(var(--s-5), 3vw, var(--s-6));
}
.ma-leadmagnet__success-title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: var(--s-2);
}
.ma-leadmagnet__success-text {
  color: var(--text-mute);
  font-size: var(--fs-sm);
  line-height: 1.6;
  margin-bottom: var(--s-5);
}
.ma-leadmagnet__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.ma-leadmagnet__actions .ma-btn--ghost {
  border-color: var(--text-dark);
  color: var(--text-dark);
}
.ma-leadmagnet__actions .ma-btn--ghost:hover { background: var(--text-dark); color: var(--white-warm); border-color: var(--text-dark); }

/* ── 38.9. DATA VIZ v0.14 — donut + barres apilades ────────── */
.ma-calc__viz {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  flex-wrap: wrap;
  justify-content: center;
  padding: var(--s-4) 0;
  border-top: 1px solid rgba(255, 253, 248, 0.08);
  border-bottom: 1px solid rgba(255, 253, 248, 0.08);
}
.ma-donut {
  width: 104px; height: 104px;
  flex-shrink: 0;
  display: block;
}
.ma-donut circle {
  fill: none;
  stroke-width: 13;
  transform: rotate(-90deg);
  transform-origin: 60px 60px;
}
.ma-donut__track { stroke: rgba(255, 253, 248, 0.12); }
.ma-donut__seg {
  stroke-linecap: butt;
  stroke-dasharray: 0 999;
  transition: stroke-dasharray 600ms cubic-bezier(.4,0,.2,1),
              stroke-dashoffset 600ms cubic-bezier(.4,0,.2,1);
}
.ma-donut__seg--a { stroke: var(--gold); }
.ma-donut__seg--b { stroke: rgba(255, 253, 248, 0.30); }
.ma-donut__center {
  fill: var(--gold-light);
  font-family: var(--font-display);
  font-size: 23px; font-weight: 700;
  text-anchor: middle;
}
.ma-donut__sub {
  fill: rgba(255, 253, 248, 0.55);
  font-size: 7.5px; letter-spacing: 0.14em;
  text-transform: uppercase; text-anchor: middle;
}

.ma-viz-bar {
  padding: var(--s-4) 0;
  border-top: 1px solid rgba(255, 253, 248, 0.08);
  border-bottom: 1px solid rgba(255, 253, 248, 0.08);
}
.ma-viz-bar__track {
  display: flex;
  height: 14px;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(255, 253, 248, 0.08);
}
.ma-viz-bar__seg {
  height: 100%;
  width: 50%;
  transition: width 600ms cubic-bezier(.4,0,.2,1);
}
.ma-viz-bar__seg--a { background: var(--gold); }
.ma-viz-bar__seg--b { background: rgba(255, 253, 248, 0.30); }
.ma-viz-bar__track + .ma-viz-legend { margin-top: var(--s-3); }

.ma-viz-legend {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: var(--s-2);
  font-size: var(--fs-sm); color: rgba(255, 253, 248, 0.75);
}
.ma-viz-legend--row { flex-direction: row; gap: var(--s-5); flex-wrap: wrap; }
.ma-viz-legend li { display: flex; align-items: center; gap: 8px; }
.ma-viz-legend b {
  color: var(--white-warm); font-weight: 600; margin-left: 3px;
  font-variant-numeric: tabular-nums;
}
.ma-dot { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; display: inline-block; }
.ma-dot--a { background: var(--gold); }
.ma-dot--b { background: rgba(255, 253, 248, 0.30); }

/* ── 38.10. Barra de progrés de lectura ────────────────────── */
.ma-readprogress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; z-index: 200; pointer-events: none; background: transparent;
}
.ma-readprogress i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  transform: scaleX(0); transform-origin: left;
  will-change: transform;
}

/* ── 38.11. Shine als botons primaris ──────────────────────── */
.ma-btn--primary::after {
  content: "";
  position: absolute; top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-18deg);
  pointer-events: none; opacity: 0;
}
.ma-btn--primary:hover::after { animation: maShine 750ms ease; }
@keyframes maShine {
  0%   { left: -60%; opacity: 0; }
  15%  { opacity: 1; }
  100% { left: 120%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ma-donut__seg, .ma-viz-bar__seg { transition: none; }
  .ma-btn--primary:hover::after { animation: none; }
  .ma-readprogress { display: none; }
}

/* ── 38.12. Lenis smooth scroll ────────────────────────────── */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ── 38.13. Gràfic d'amortització (deute pendent) ──────────── */

/* ── 38.14. Side-rail editorial (omple marges buits) ───────── */
.ma-railed {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}
@media (min-width: 880px) {
  .ma-railed {
    grid-template-columns: minmax(168px, 0.34fr) minmax(0, 1fr);
    gap: clamp(var(--s-7), 5vw, var(--s-9));
    align-items: start;
  }
}

.ma-rail { position: relative; }
@media (min-width: 880px) {
  .ma-rail {
    position: sticky;
    top: 112px;
    align-self: start;
    border-right: 1px solid var(--gray-line);
    padding-right: clamp(var(--s-5), 3vw, var(--s-7));
  }
}

.ma-rail__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 7vw, 5.5rem);
  font-weight: 600;
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
  margin-bottom: var(--s-4);
}
.ma-rail .ma-eyebrow { margin-bottom: var(--s-4); }
.ma-rail__rule {
  display: block;
  width: 44px; height: 2px;
  background: var(--gold);
}
.ma-rail__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text-dark);
  margin-top: var(--s-5);
}
.ma-rail__title em { color: var(--gold-dark); font-style: italic; }
.ma-rail h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.5vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin: var(--s-2) 0 var(--s-4);
}

.ma-railed__title { margin-bottom: var(--s-5); }
.ma-railed__body > .lead:first-child { margin-top: 0; }

/* ── 38.15. Prosa legal (documents llargs, llegibles) ──────── */
.ma-prose { max-width: 72ch; }
.ma-prose > *:first-child { margin-top: 0; }
.ma-prose .lead {
  font-size: var(--fs-md);
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: var(--s-6);
}
.ma-prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text-dark);
  margin: var(--s-7) 0 var(--s-3);
  padding-top: var(--s-5);
  border-top: 1px solid var(--gray-line);
}
.ma-prose h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: var(--s-5) 0 var(--s-2);
}
.ma-prose p {
  color: var(--text-mute);
  line-height: 1.75;
  margin-bottom: var(--s-4);
}
.ma-prose ul {
  list-style: disc;
  padding-left: var(--s-5);
  margin: 0 0 var(--s-4);
  color: var(--text-mute);
  line-height: 1.7;
}
.ma-prose li { margin-bottom: var(--s-2); }
.ma-prose a { color: var(--gold-dark); border-bottom: 1px solid currentColor; }
.ma-prose strong { color: var(--text-dark); font-weight: 600; }
.ma-prose__updated {
  margin-top: var(--s-8);
  padding-top: var(--s-4);
  border-top: 1px solid var(--gray-line);
  font-size: var(--fs-sm);
  color: var(--text-soft);
}
.ma-railed__body > .ma-faq__list { margin-top: 0; }

/* ── 38.16. Índex d'eines (chips al hero d'/eines) ─────────── */
.ma-tools-index {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-7);
}
.ma-tools-index__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 253, 248, 0.25);
  border-radius: 100px;
  color: var(--white-warm);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: border-color var(--transition), background var(--transition), color var(--transition), transform var(--transition);
}
.ma-tools-index__chip::before {
  content: "↓";
  color: var(--gold);
  font-size: 0.9em;
}
.ma-tools-index__chip:hover {
  border-color: var(--gold);
  background: rgba(200, 169, 51, 0.12);
  color: var(--gold-light);
  transform: translateY(-1px);
}

/* ── 38.17. Efectes editorial cinematogràfic (v0.21) ───────── */

/* Selecció de text daurada */
::selection { background: var(--gold); color: var(--black); }
::-moz-selection { background: var(--gold); color: var(--black); }

/* Gra de film global molt subtil */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* Mask reveal: el text puja des d'un recorte en entrar a viewport */
.ma-mask {
  overflow: hidden;
  padding-top: 0.08em;
  padding-bottom: 0.12em;
  margin-top: -0.08em;
  margin-bottom: -0.12em;
}
.ma-mask__inner {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.ma-mask.is-revealed .ma-mask__inner { transform: translateY(0); }

/* Curtain reveal: les imatges es revelen de dalt a baix */
.ma-img-reveal {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: clip-path;
}
.ma-img-reveal.is-revealed { clip-path: inset(0 0 0% 0); }

@media (prefers-reduced-motion: reduce) {
  .ma-mask { overflow: visible; padding: 0; margin: 0; }
  .ma-mask__inner { transform: none; transition: none; }
  .ma-img-reveal { clip-path: none; transition: none; }
}

/* ── 39. UTILITATS ─────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
