/* ==========================================================================
   M3 · Carme Collmalivern — Landing Home Staging
   Paleta i tipografia alineades amb les presentacions corporatives
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Paleta de les presentacions */
  --cream:   #F4EFE9;   /* fons de les diapositives */
  --paper:   #FCFAF7;   /* targetes */
  --sand:    #E8E2D9;
  --linen:   #D9CFC2;
  --taupe:   #9C8E7D;
  --muted:   #71685D;   /* text secundari */
  --text:    #3D3A33;   /* text */
  --ink:     #2B2A25;   /* títols */
  --ink-2:   #1F1D19;   /* peu de pàgina */
  --accent:  #833C0B;   /* terracota corporatiu */
  --accent-600: #6B3009;
  --accent-100: #F3E7DC;
  --accent-light: #D29E73; /* accent sobre fons fosc */
  --white:   #FFFFFF;
  --danger:  #A3241A;
  --wa:      #25D366;

  --serif: "Cormorant Garamond", "Bookman Old Style", Georgia, "Times New Roman", serif;
  --sans:  "DM Sans", Calibri, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;
  --shadow-sm: 0 2px 10px rgba(43, 42, 37, .06);
  --shadow:    0 14px 40px rgba(43, 42, 37, .09);
  --shadow-lg: 0 30px 80px rgba(43, 42, 37, .16);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease:     cubic-bezier(.4, 0, .2, 1);

  --header-h: 76px;
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(3.25rem, 2.25rem + 3.5vw, 5.25rem);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--ink); line-height: 1.1; letter-spacing: -.005em; }
em { font-style: italic; }
h1 em, h2 em, h3 em, .h2 em, .h3 em { color: var(--accent); }
strong, b { font-weight: 600; }
::selection { background: var(--accent); color: var(--white); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.contact__panel :focus-visible, .site-footer :focus-visible, .lightbox :focus-visible,
.section--ink :focus-visible, .quote-banner :focus-visible, .marquee :focus-visible { outline-color: var(--white); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 1000;
  background: var(--ink); color: var(--white); padding: .7rem 1.1rem; border-radius: var(--r-sm);
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- 3. Tipografia de secció ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section--paper { background: var(--paper); }
.section--cream { background: var(--cream); }
.section--ink { background: var(--ink); color: rgba(253, 252, 250, .78); }
.section--ink h2, .section--ink h3 { color: var(--white); }
.section--ink h2 em, .section--ink h3 em { color: var(--accent-light); }

.section__head { max-width: 760px; margin-bottom: clamp(1.75rem, 1.4rem + 1.4vw, 2.75rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--split {
  max-width: none; display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.5rem 4rem; align-items: end;
}
.section__head--split .lead { margin: 0; }

.label {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans); font-size: .75rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 1rem;
}
.label::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.section__head--center .label::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.label--light { color: var(--accent-light); }

.h2 { font-size: clamp(2.05rem, 1.35rem + 2.3vw, 3.3rem); }
.h3 { font-size: clamp(1.6rem, 1.25rem + 1.1vw, 2.15rem); }
.lead { margin-top: .85rem; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--muted); line-height: 1.7; }
.section--ink .lead { color: rgba(253, 252, 250, .7); }
.source { margin-top: 2.25rem; font-size: .8rem; color: var(--muted); line-height: 1.5; }
.source--light { color: rgba(253, 252, 250, .5); text-align: center; }

/* ---------- 4. Botons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--white); --btn-bd: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .85rem 1.6rem;
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  border-radius: 999px;
  font-family: var(--sans); font-size: .95rem; font-weight: 500; letter-spacing: .01em; line-height: 1.2;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn .ico { transition: transform .3s var(--ease-out); }
.btn:hover .ico { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--primary { --btn-bg: var(--accent); --btn-bd: var(--accent); box-shadow: 0 10px 24px -10px rgba(131, 60, 11, .55); }
.btn--primary:hover { --btn-bg: var(--accent-600); --btn-bd: var(--accent-600); box-shadow: 0 14px 30px -10px rgba(131, 60, 11, .6); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: rgba(43, 42, 37, .28); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--white); --btn-bd: var(--ink); }
.btn--sm { min-height: 42px; padding: .55rem 1.2rem; font-size: .88rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.4rem;
  font-weight: 500; color: var(--accent); border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link-arrow .ico { transition: transform .3s var(--ease-out); }
.link-arrow:hover .ico { transform: translateX(4px); }

.icon-badge {
  display: inline-grid; place-items: center; width: 52px; height: 52px; flex: none;
  border-radius: 50%; background: var(--accent); color: var(--white);
}
.icon-badge .ico { width: 24px; height: 24px; }
.icon-badge--soft { background: var(--sand); color: var(--accent); }

/* ---------- 5. Barra de progrés i capçalera ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 300; pointer-events: none; }
.progress__bar { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 200; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(252, 250, 247, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 rgba(43, 42, 37, .07), 0 8px 30px rgba(43, 42, 37, .06);
}
.header__inner { display: flex; align-items: center; gap: 2rem; }
.brand { display: block; flex: 0 1 auto; min-width: 0; }
.brand img { height: 40px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.nav { display: flex; gap: .25rem; margin-left: auto; }
.nav__link {
  position: relative; padding: .5rem .85rem; font-size: .92rem; color: var(--text); border-radius: 999px; white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .25rem; height: 1.5px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--accent); }
.header__cta, .nav-toggle, .legal-back { flex: none; }

.nav-toggle {
  display: none; position: relative; width: 44px; height: 44px; margin-left: .25rem; border-radius: 50%;
}
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); border-radius: 2px;
  transition: transform .35s var(--ease-out), opacity .2s, top .35s var(--ease-out);
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21.5px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 21.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 190;
  display: flex; flex-direction: column; gap: 1.5rem;
  padding: 1.5rem var(--gutter) 2rem; background: var(--paper); overflow-y: auto;
  opacity: 0; transform: translateY(-12px); transition: opacity .3s var(--ease), transform .4s var(--ease-out);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__nav a {
  padding: 1rem 0; font-family: var(--serif); font-size: 1.7rem; color: var(--ink);
  border-bottom: 1px solid var(--sand);
}
.mobile-menu__quick { display: flex; gap: 1rem; }
.mobile-menu__quick a {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem; border: 1px solid var(--linen); border-radius: 999px; font-size: .95rem;
}

/* ---------- 5b. Selector d'idioma ---------- */
.lang { position: relative; flex: none; }
.lang__btn {
  display: flex; align-items: center; gap: .45rem; min-height: 42px; padding: 0 .8rem 0 .7rem;
  border: 1px solid rgba(43, 42, 37, .22); border-radius: 999px; background: rgba(252, 250, 247, .7);
  font-size: .82rem; font-weight: 600; letter-spacing: .1em; line-height: 1; color: var(--ink);
  cursor: pointer; list-style: none; user-select: none; -webkit-user-select: none;
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.lang__btn::-webkit-details-marker { display: none; }
.lang__btn::marker { content: ""; }
.lang__globe { width: 18px; height: 18px; color: var(--accent); }
.lang__chev { width: 14px; height: 14px; transition: transform .25s var(--ease-out); }
.lang[open] .lang__btn { border-color: var(--accent); background: var(--white); }
.lang[open] .lang__chev { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) { .lang__btn:hover { border-color: var(--accent); color: var(--accent); } }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 260; min-width: 220px;
  display: grid; gap: 2px; padding: .4rem; list-style: none;
  background: var(--paper); border: 1px solid var(--sand); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  animation: langIn .25s var(--ease-out);
}
@keyframes langIn { from { opacity: 0; transform: translateY(-6px); } }
.lang__menu a {
  display: flex; align-items: center; gap: .75rem; min-height: 44px; padding: 0 .9rem 0 .6rem;
  border-radius: var(--r); font-size: .95rem; font-weight: 500; color: var(--text);
  transition: background .2s var(--ease), color .2s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .lang__menu a:hover { background: var(--cream); color: var(--accent); } }
.lang__menu a[aria-current="true"] { background: var(--accent-100); color: var(--accent); font-weight: 600; }
.lang__name { flex: 1; }
.lang__iso { font-size: .72rem; font-weight: 600; letter-spacing: .12em; color: var(--muted); }
.lang__menu a[aria-current="true"] .lang__iso { color: var(--accent); }
.flag { width: 22px; height: 22px; flex: none; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px rgba(43, 42, 37, .14); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(1.75rem, 4vw, 3.5rem)) 0 clamp(3rem, 5vw, 4.5rem);
  background:
    radial-gradient(1200px 600px at 95% -10%, rgba(210, 158, 115, .18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(156, 142, 125, .16), transparent 60%),
    var(--cream);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 4.5vw, 4.5rem); align-items: center; }
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 1.4rem;
}
.hero__title { font-size: clamp(2.7rem, 1.3rem + 3.7vw, 4.6rem); line-height: 1.02; letter-spacing: -.015em; }
.hero__title em { display: block; }
:lang(fr) .hero__title { font-size: clamp(2.5rem, 1.2rem + 3.4vw, 4.3rem); }
.hero__lead { margin-top: 1.6rem; font-size: clamp(1.06rem, 1rem + .35vw, 1.22rem); color: var(--muted); max-width: 34rem; }
.hero__actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__trust {
  margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(43, 42, 37, .12);
  display: grid; grid-template-columns: repeat(3, auto); gap: 1rem 2.4rem; justify-content: start;
}
.hero__trust li { display: flex; flex-direction: column; }
.hero__trust strong { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; line-height: 1; color: var(--ink); }
.hero__trust span { margin-top: .35rem; font-size: .82rem; color: var(--muted); }

.hero__media { position: relative; }
.hero__hint {
  display: flex; align-items: center; gap: .5rem; margin-top: 1rem;
  font-size: .85rem; color: var(--muted); justify-content: flex-end;
}
.hero__hint .ico { color: var(--accent); }
.hero__badge {
  position: absolute; left: clamp(-2.5rem, -3vw, -1rem); bottom: 3.2rem; z-index: 3;
  width: min(250px, 60%); padding: 1.1rem 1.25rem;
  background: rgba(252, 250, 247, .96); border-radius: var(--r);
  box-shadow: var(--shadow-lg); border-left: 3px solid var(--accent);
  animation: floaty 6s ease-in-out 2.4s infinite;
}
.hero__badge strong { display: block; font-family: var(--serif); font-size: 2.1rem; line-height: 1; color: var(--accent); }
.hero__badge span { display: block; margin-top: .35rem; font-size: .84rem; line-height: 1.45; color: var(--text); }
.hero__badge small { display: block; margin-top: .4rem; font-size: .7rem; color: var(--muted); letter-spacing: .05em; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(43, 42, 37, .2); color: var(--ink);
  animation: bob 2.4s ease-in-out infinite;
}
.hero__scroll:hover { background: var(--ink); color: var(--white); }

.js .hero-in { opacity: 0; transform: translateY(22px); animation: heroIn 1s var(--ease-out) forwards; animation-delay: calc(var(--d, 0) * 120ms + 120ms); }

@keyframes heroIn { to { opacity: 1; transform: none; } }
.js .hero__media.hero-in { opacity: 1; animation-name: heroSlide; }
@keyframes heroSlide { from { transform: translateY(22px); } to { transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* ---------- 7. Comparador abans/després ---------- */
.compare {
  --pos: 50%;
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 5 / 4; border-radius: var(--r-lg);
  background: var(--sand); box-shadow: var(--shadow-lg);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
}
.compare__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--obj, 50% 50%);
  pointer-events: none; -webkit-user-drag: none;
}
.compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); z-index: 1; }
.compare__divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 2; width: 2px; margin-left: -1px;
  background: var(--white); box-shadow: 0 0 18px rgba(0, 0, 0, .25);
}
.compare__handle {
  position: absolute; top: 50%; left: var(--pos); z-index: 3;
  width: 58px; height: 58px; transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 50%;
  background: var(--white); color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22), 0 0 0 6px rgba(255, 255, 255, .28);
  cursor: ew-resize; transition: transform .25s var(--ease-out), box-shadow .25s;
}
.compare__handle .ico { width: 26px; height: 26px; stroke-width: 2; }
.compare:hover .compare__handle, .compare.is-dragging .compare__handle { transform: translate(-50%, -50%) scale(1.08); }
.compare__handle:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.compare__label {
  position: absolute; top: 1rem; z-index: 2;
  padding: .38rem .85rem; border-radius: 999px;
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--white); background: rgba(43, 42, 37, .72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: opacity .3s var(--ease);
}
.compare__label--before { left: 1rem; }
.compare__label--after { right: 1rem; background: rgba(131, 60, 11, .9); }
.compare.hide-before .compare__label--before, .compare.hide-after .compare__label--after { opacity: 0; }
.compare.is-animating .compare__before { transition: none; }
.compare__img.is-swapping { animation: imgSwap .6s var(--ease) both; }
@keyframes imgSwap { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: none; } }

/* ---------- 8. Cinta ---------- */
.marquee { position: relative; background: var(--accent); color: var(--cream); overflow: hidden; padding: 1.05rem 0; }
.marquee__toggle { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .22); color: var(--cream); transition: background .2s; }
.marquee__toggle:hover { background: rgba(0, 0, 0, .35); }
.marquee__toggle .ico { width: 16px; height: 16px; }
.marquee.is-paused .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__track {
  display: flex; align-items: center; gap: 2.2rem; width: max-content; padding-inline-end: 2.2rem;
  animation: marquee 48s linear infinite;
  font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 1rem + .8vw, 1.65rem); white-space: nowrap;
}
.marquee__track i { font-style: normal; font-size: .8em; opacity: .55; }
@media (hover: hover) and (pointer: fine) { .marquee:hover .marquee__track { animation-play-state: paused; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 9. Mercat ---------- */
.market { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.chart-card {
  padding: clamp(1.25rem, 2.5vw, 2rem); background: var(--white);
  border: 1px solid var(--sand); border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.chart-card__head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.chart-card__head strong { display: block; font-size: 1.02rem; color: var(--ink); font-weight: 600; }
.chart-card__head small { display: block; font-size: .82rem; color: var(--muted); }
.chart-card__kpi { text-align: right; flex: none; }
.chart-card__kpi b { display: block; font-family: var(--serif); font-size: 2.1rem; line-height: 1; color: var(--accent); }
.chart { width: 100%; height: auto; overflow: visible; }
.chart__grid line { stroke: var(--sand); stroke-width: 1; }
.chart__axis text { font-size: 12px; fill: var(--muted); font-family: var(--sans); }
.chart__max { stroke: var(--taupe); stroke-width: 1.5; stroke-dasharray: 5 6; }
.chart__max-label { font-size: 12px; fill: var(--muted); font-family: var(--sans); font-style: italic; }
.chart__area { fill: rgba(131, 60, 11, .09); opacity: 0; transition: opacity 1.2s var(--ease) .9s; }
.chart__line {
  fill: none; stroke: var(--accent); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease-out) .2s;
}
.chart__dots circle { fill: var(--white); stroke: var(--accent); stroke-width: 2.5; opacity: 0; transition: opacity .5s 1.8s; }
.chart__value { font-size: 13px; font-weight: 600; fill: var(--ink); font-family: var(--sans); opacity: 0; transition: opacity .5s 2s; }
.chart__value--end { fill: var(--accent); }
.chart-card.is-visible .chart__line { stroke-dashoffset: 0; }
.chart-card.is-visible .chart__area, .chart-card.is-visible .chart__dots circle, .chart-card.is-visible .chart__value { opacity: 1; }

.market__stats { display: grid; gap: 0; }
.stat-line { padding: 1.4rem 0; border-top: 1px solid var(--sand); }
.stat-line:last-child { border-bottom: 1px solid var(--sand); }
.stat-line strong { display: block; font-family: var(--serif); font-size: clamp(2.3rem, 1.8rem + 1.4vw, 3rem); line-height: 1; color: var(--accent); font-weight: 600; }
.stat-line p { margin-top: .5rem; color: var(--text); font-size: .98rem; }

/* ---------- 10. Mètode i dues mirades ---------- */
.method { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: m; }
.method__step {
  position: relative; padding: 2.2rem 2rem 2rem; background: var(--paper);
  border: 1px solid var(--sand); border-radius: var(--r-lg);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s;
}
@media (hover: hover) and (pointer: fine) { .method__step:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--linen); } }
.method__num { position: absolute; top: 1.4rem; right: 1.6rem; font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--linen); font-weight: 600; }
.method__step h3 { margin-top: 1.4rem; font-size: 1.75rem; }
.method__step p { margin-top: .5rem; color: var(--muted); }

.views {
  margin-top: clamp(3.5rem, 6vw, 6rem);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 4vw, 4rem); align-items: start;
}
.view-pair { margin-top: 1.8rem; display: grid; gap: 1rem; }
.view-card {
  display: flex; gap: 1.2rem; align-items: flex-start;
  padding: 1.4rem 1.5rem; background: var(--paper); border-radius: var(--r-lg); border: 1px solid var(--sand);
}
.view-card--accent { border-color: rgba(131, 60, 11, .25); background: linear-gradient(135deg, var(--white), var(--accent-100)); }
.view-card h4 { font-size: 1.55rem; color: var(--accent); }
.view-card h4 span { display: block; font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--ink); margin-top: .2rem; }
.view-card p { margin-top: .35rem; color: var(--muted); font-size: .98rem; }
.views__statement {
  margin-top: 1.8rem; padding-left: 1.2rem; border-left: 2px solid var(--accent);
  font-family: var(--serif); font-size: clamp(1.35rem, 1.15rem + .7vw, 1.7rem); line-height: 1.3; color: var(--ink); font-style: italic;
}
.views__data { display: grid; gap: 1.25rem; }
.callout {
  padding: 2rem; background: var(--ink); color: rgba(253, 252, 250, .82); border-radius: var(--r-lg);
  position: relative; overflow: hidden;
}
.callout::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(210, 158, 115, .35), transparent 70%);
}
.callout__num { display: block; font-family: var(--serif); font-size: clamp(3.4rem, 2.8rem + 2vw, 4.6rem); line-height: 1; color: var(--accent-light); font-weight: 600; }
.callout p { margin-top: .7rem; font-size: 1.02rem; }
.callout small { display: block; margin-top: .9rem; font-size: .75rem; color: rgba(253, 252, 250, .5); }
.bars-card { padding: 1.7rem 1.8rem; background: var(--paper); border: 1px solid var(--sand); border-radius: var(--r-lg); }
.bars-card__title { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.bars { margin-top: 1.1rem; display: grid; gap: .9rem; }
.bars li { display: grid; grid-template-columns: 9.5rem 1fr 3rem; gap: .8rem; align-items: center; font-size: .92rem; }
.bars__track { height: 10px; background: var(--sand); border-radius: 999px; overflow: hidden; }
.bars__fill { display: block; height: 100%; width: calc(var(--val) * 1% * 2.2); max-width: 100%; background: var(--accent); border-radius: inherit; transform: scaleX(0); transform-origin: left; transition: transform 1.3s var(--ease-out); }
.bars li:nth-child(2) .bars__fill { transition-delay: .15s; }
.bars li:nth-child(3) .bars__fill { transition-delay: .3s; }
.bars-card.is-visible .bars__fill { transform: scaleX(1); }
.bars b { text-align: right; font-family: var(--serif); font-size: 1.25rem; color: var(--ink); }
.bars-card small { display: block; margin-top: 1rem; font-size: .75rem; color: var(--muted); }

/* ---------- 11. Xifres ---------- */
.figures-section { overflow: hidden; }
.figures-section::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 400px at 85% 0%, rgba(131, 60, 11, .35), transparent 70%),
              radial-gradient(600px 400px at 0% 100%, rgba(210, 158, 115, .12), transparent 70%);
}
.figures-section .container { position: relative; }
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.figure {
  padding: 2rem 1.6rem; border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09);
  transition: background .3s, transform .4s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .figure:hover { background: rgba(255, 255, 255, .07); transform: translateY(-4px); } }
.figure strong { display: block; font-family: var(--serif); font-size: clamp(2.9rem, 2.3rem + 1.6vw, 3.8rem); line-height: 1; color: var(--accent-light); font-weight: 600; }
.figure__bar { display: block; margin: 1.2rem 0 1rem; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.figure__bar span { display: block; height: 100%; width: calc(var(--val) * 1%); background: var(--accent-light); border-radius: inherit; transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease-out) .3s; }
.figure.is-visible .figure__bar span { transform: scaleX(1); }
.figure p { font-size: .97rem; color: rgba(253, 252, 250, .82); }
.figure small { display: block; margin-top: .9rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(253, 252, 250, .6); }
.figures__claim {
  margin: clamp(1.75rem, 3vw, 2.5rem) auto 0; max-width: 820px; text-align: center;
  font-family: var(--serif); font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); line-height: 1.3; color: var(--white);
}
.figures__claim em { color: var(--accent-light); }

/* ---------- 12. Galeria abans/després ---------- */
.ba { max-width: 1040px; margin-inline: auto; }
.ba__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 1.4rem; }
.ba__tab {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .7rem 1.25rem; border-radius: 999px; border: 1px solid var(--linen); background: var(--white);
  font-size: .95rem; font-weight: 500; color: var(--text);
  transition: background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.ba__tab:hover { border-color: var(--accent); color: var(--accent); }
.ba__tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); box-shadow: var(--shadow-sm); }
.ba__tab-num { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--accent); }
.ba__tab[aria-selected="true"] .ba__tab-num { color: var(--accent-light); }
.compare--hero { aspect-ratio: 1 / 1; --obj: 58% 50%; }
.compare--gallery { aspect-ratio: 16 / 9; }
.ba__stage .compare { transition: opacity .2s; }
.ba__stage.is-loading .compare { opacity: .55; cursor: progress; }
.ba__caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.3rem; }
.ba__title { font-size: 1.9rem; }
.ba__tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.ba__tags li {
  padding: .35rem .9rem; border-radius: 999px; background: var(--accent-100); color: var(--accent);
  font-size: .82rem; font-weight: 500;
}

.reveal-row { margin-top: clamp(3rem, 5vw, 4.5rem); display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; align-items: start; }
.reveal-row__intro { align-self: center; }
.reveal-row__intro p { margin-top: .7rem; color: var(--muted); }
.flip { display: block; width: 100%; text-align: left; color: inherit; }
.flip__media {
  position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--r-lg);
  box-shadow: var(--shadow); background: var(--sand);
}
.flip__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.flip__media .flip__after { clip-path: circle(0% at var(--x, 50%) var(--y, 50%)); transition: clip-path .9s var(--ease-out), transform 1.2s var(--ease-out); }
.flip.is-hover .flip__after, .flip.is-peek .flip__after, .flip[aria-pressed="true"] .flip__after { clip-path: circle(150% at var(--x, 50%) var(--y, 50%)); }
.flip:hover .flip__media img { transform: scale(1.03); }
.flip__state {
  position: absolute; left: 1rem; top: 1rem; z-index: 2;
  padding: .35rem .85rem; border-radius: 999px; background: rgba(43, 42, 37, .72); color: var(--white);
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  transition: background .4s;
}
.flip__state .is-after { display: none; }
.flip.is-hover .flip__state, .flip.is-peek .flip__state, .flip[aria-pressed="true"] .flip__state { background: rgba(131, 60, 11, .92); }
.flip.is-hover .flip__state .is-before, .flip.is-peek .flip__state .is-before, .flip[aria-pressed="true"] .flip__state .is-before { display: none; }
.flip.is-hover .flip__state .is-after, .flip.is-peek .flip__state .is-after, .flip[aria-pressed="true"] .flip__state .is-after { display: inline; }
.flip__media::after {
  content: attr(data-hint-touch); position: absolute; right: .8rem; bottom: .8rem; z-index: 2;
  padding: .35rem .75rem; border-radius: 999px; background: rgba(252, 250, 247, .9); color: var(--ink);
  font-size: .75rem; font-weight: 500; transition: opacity .3s;
}
.flip.is-hover .flip__media::after, .flip.is-peek .flip__media::after, .flip[aria-pressed="true"] .flip__media::after { opacity: 0; }
@media (hover: hover) and (pointer: fine) { .flip__media::after { content: attr(data-hint-hover); } }
.flip__text { display: block; margin-top: 1rem; color: var(--muted); font-size: .97rem; }
.flip__text strong { display: block; font-family: var(--serif); font-size: 1.45rem; font-weight: 500; color: var(--ink); }

/* ---------- 13. Cost d'esperar i calculadora ---------- */
.cost { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.cost__photo { position: relative; margin-top: 2rem; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.cost__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cost__photo figcaption {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem; padding: 1rem 1.2rem;
  background: rgba(252, 250, 247, .95); border-radius: var(--r); font-size: .92rem; color: var(--text);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.cost__photo figcaption strong { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--accent); }
.cost__photo figcaption small { display: block; margin-top: .3rem; font-size: .72rem; color: var(--muted); }

.timeline { position: relative; display: grid; gap: 1.1rem; --progress: 0; }
.timeline::before, .timeline::after {
  content: ""; position: absolute; left: 31px; top: 32px; bottom: 32px; width: 2px; border-radius: 2px;
}
.timeline::before { background: var(--sand); }
.timeline::after { background: linear-gradient(var(--linen), var(--taupe), var(--accent)); transform-origin: top; transform: scaleY(var(--progress)); }
.timeline__step {
  position: relative; z-index: 1; display: flex; gap: 1.3rem; align-items: center;
  padding: 1.1rem 1.4rem 1.1rem 0;
  transform: translateX(10px); transition: transform .6s var(--ease-out);
}
.timeline__step.is-active { transform: none; }
.timeline__icon {
  display: grid; place-items: center; width: 64px; height: 64px; flex: none; border-radius: 50%;
  background: var(--tone); color: var(--accent); box-shadow: 0 0 0 6px var(--cream);
  opacity: .45; transition: opacity .6s var(--ease), transform .5s var(--ease-out);
}
.timeline__step.is-active .timeline__icon { opacity: 1; transform: scale(1.05); }
.timeline__icon .ico { width: 26px; height: 26px; }
.timeline__icon--light { color: var(--white); }
.timeline__step h3 { font-size: 1.5rem; }
.timeline__step p { margin-top: .2rem; color: var(--muted); }

.roi {
  margin-top: clamp(4rem, 7vw, 6.5rem); padding: clamp(1.5rem, 4vw, 3.5rem);
  background: var(--paper); border: 1px solid var(--sand); border-radius: calc(var(--r-lg) + 6px); box-shadow: var(--shadow);
}
.roi__head { max-width: 760px; }
.roi__body { margin-top: 2.2rem; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.roi__input label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.roi__price { display: block; margin: .4rem 0 1.2rem; font-family: var(--serif); font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); line-height: 1; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.roi__scale { display: flex; justify-content: space-between; margin-top: .4rem; font-size: .78rem; color: var(--muted); }
.roi__presets { margin-top: 1.3rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.roi__presets button {
  padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--linen); background: var(--white);
  font-size: .85rem; transition: all .2s;
}
.roi__presets button:hover { border-color: var(--accent); color: var(--accent); }
.roi__presets button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--white); }
.roi__help { margin-top: .9rem; font-size: .82rem; color: var(--muted); }

input[type="range"] {
  --fill: 12%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 6px;
  background: linear-gradient(to right, var(--accent) 0 var(--fill), var(--sand) var(--fill) 100%);
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--sand); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--accent); box-shadow: 0 4px 12px rgba(131, 60, 11, .3);
  transition: transform .2s;
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 2px solid var(--accent);
  box-shadow: 0 4px 12px rgba(131, 60, 11, .3);
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--accent); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--accent); }

.roi__bars { display: grid; gap: 1.2rem; }
.roi__bars li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label value" "bar bar"; gap: .45rem 1rem; align-items: end; }
.roi__bar-label { grid-area: label; font-size: .97rem; color: var(--text); }
.roi__bar-label small { color: var(--muted); }
.roi__bars b { grid-area: value; font-family: var(--serif); font-size: 1.55rem; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.roi__bar { grid-area: bar; height: 14px; background: var(--sand); border-radius: 999px; overflow: hidden; }
.roi__fill { display: block; height: 100%; width: var(--w, 0%); background: var(--accent); border-radius: inherit; transition: width 1s var(--ease-out); }
.roi__fill--soft { background: var(--taupe); }
.js .roi:not(.is-visible) .roi__fill { width: 0; }
.roi__fill--mid { background: var(--linen); }
.roi__verdict {
  margin-top: 1.8rem; display: flex; gap: 1.2rem; align-items: center;
  padding: 1.2rem 1.4rem; border-radius: var(--r); background: var(--accent-100);
}
.roi__verdict strong { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--accent); flex: none; }
.roi__verdict p { color: var(--ink); font-weight: 500; }
.roi__perks { margin-top: 1.4rem; display: grid; gap: .6rem; }
.roi__perks li { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; color: var(--text); }
.roi__perks .ico { color: var(--accent); margin-top: .15rem; stroke-width: 2.2; }

/* ---------- 14. Pestanyes Per a qui ---------- */
.tabs__list {
  position: relative; display: flex; justify-content: center; gap: .4rem; margin: 0 auto 1.6rem;
  width: max-content; max-width: 100%; padding: .4rem; border-radius: 999px; background: var(--cream); border: 1px solid var(--sand);
}
.tabs__tab {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .55rem;
  padding: .75rem 1.3rem; border-radius: 999px; font-size: .95rem; font-weight: 500; color: var(--text);
  transition: color .3s var(--ease); white-space: nowrap;
}
.tabs__tab:hover { color: var(--accent); }
.tabs__tab[aria-selected="true"] { color: var(--white); }
.tabs__indicator {
  position: absolute; z-index: 0; top: 0; left: 0; width: 0; height: 0; border-radius: 999px; background: var(--accent);
  transition: transform .5s var(--ease-out), width .5s var(--ease-out), height .5s var(--ease-out);
  box-shadow: 0 8px 20px -8px rgba(131, 60, 11, .6);
}
.tabs__panel { animation: panelIn .6s var(--ease-out); }
.tabs__panel[hidden] { display: none; }
.tabs__panel:focus-visible { outline-offset: 8px; }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.tabs__intro { text-align: center; color: var(--muted); font-size: 1.05rem; margin-bottom: 1.3rem; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.benefit {
  padding: 1.8rem; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--sand);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s;
}
@media (hover: hover) and (pointer: fine) { .benefit:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--linen); } }
.benefit h3 { margin-top: 1.1rem; font-size: 1.5rem; }
.benefit p { margin-top: .45rem; color: var(--muted); font-size: .98rem; }
.benefit .benefit__result { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--sand); color: var(--accent); font-weight: 500; }
.tabs__cta {
  margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem;
  padding: 1.5rem 1.8rem; border-radius: var(--r-lg); background: var(--cream);
}
.tabs__cta p { font-family: var(--serif); font-size: 1.4rem; line-height: 1.3; color: var(--ink); max-width: 38rem; }

/* ---------- 15. Serveis ---------- */
.services { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: repeat(3, auto); gap: 1.5rem; }
.service {
  display: grid; grid-template-columns: 200px 1fr; overflow: hidden;
  background: var(--paper); border: 1px solid var(--sand); border-radius: var(--r-lg);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .service:hover { transform: translateY(-4px); box-shadow: var(--shadow); } }
.service__media { position: relative; overflow: hidden; background: var(--sand); }
.service__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.service:hover .service__media img { transform: scale(1.05); }
.service__body { position: relative; padding: 1.6rem 1.7rem; }
.service__num { position: absolute; top: 1.2rem; right: 1.4rem; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--linen); }
.service h3 { font-size: 1.55rem; padding-right: 2.5rem; }
.service p { margin-top: .5rem; color: var(--muted); font-size: .97rem; }
.service__list { margin-top: 1rem; display: grid; gap: .35rem; }
.service__list li { position: relative; padding-left: 1.4rem; font-size: .93rem; color: var(--text); }
.service__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: .7rem; height: 1.5px; background: var(--accent); }
.service--featured { grid-row: 1 / span 3; grid-template-columns: 1fr; grid-template-rows: minmax(280px, 1fr) auto; background: var(--white); }
.service--featured .service__media { min-height: 280px; }
.service--featured .service__body { padding: 2.2rem 2.4rem 2.4rem; }
.service--featured h3 { font-size: 2.3rem; }
.service--featured p { font-size: 1.05rem; }
.service--featured .service__num { font-size: 2.6rem; top: 1.6rem; right: 2rem; }
.service__tag {
  position: absolute; left: 1.2rem; top: 1.2rem; padding: .4rem .9rem; border-radius: 999px;
  background: var(--accent); color: var(--white); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}

/* ---------- 16. Procés ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; --progress: 0; }
.process::before, .process::after {
  content: ""; position: absolute; top: 31px; left: 12.5%; right: 12.5%; height: 2px; border-radius: 2px;
}
.process::before { background: rgba(255, 255, 255, .12); }
.process::after { background: var(--accent-light); transform-origin: left; transform: scaleX(var(--progress)); transition: transform 1.8s var(--ease-out); }
.process.is-visible { --progress: 1; }
.process__step { position: relative; text-align: center; padding: 0 .5rem; }
.process__dot {
  position: relative; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto;
  border-radius: 50%; background: var(--ink); border: 1.5px solid rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .7);
  transition: background .5s var(--ease), border-color .5s, color .5s, transform .5s var(--ease-out);
}
.process__dot .ico { width: 26px; height: 26px; }
.process.is-visible .process__dot { background: var(--accent); border-color: var(--accent); color: var(--white); transform: scale(1.04); }
.process.is-visible .process__step:nth-child(2) .process__dot { transition-delay: .45s; }
.process.is-visible .process__step:nth-child(3) .process__dot { transition-delay: .9s; }
.process.is-visible .process__step:nth-child(4) .process__dot { transition-delay: 1.35s; }
.process__num { display: block; margin-top: 1.2rem; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: var(--accent-light); letter-spacing: .1em; }
.process__step h3 { margin-top: .4rem; font-size: 1.55rem; }
.process__step p { margin-top: .5rem; font-size: .97rem; color: rgba(253, 252, 250, .72); }
.js .process__step { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease-out); }
.js .process.is-visible .process__step { opacity: 1; transform: none; }
.js .process.is-visible .process__step:nth-child(2) { transition-delay: .3s; }
.js .process.is-visible .process__step:nth-child(3) { transition-delay: .6s; }
.js .process.is-visible .process__step:nth-child(4) { transition-delay: .9s; }
.promises { margin-top: clamp(2rem, 3.5vw, 3rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.promise { padding: 1.8rem 2rem; border-radius: var(--r-lg); border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .03); }
.promise h3 { font-size: 1.7rem; color: var(--accent-light) !important; }
.promise p { margin-top: .4rem; color: rgba(253, 252, 250, .78); }

/* ---------- 17. Resultats ---------- */
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.case__facts { margin-top: 1.6rem; display: grid; gap: 1.1rem; }
.case__facts div { padding-top: 1rem; border-top: 1px solid var(--sand); }
.case__facts dt { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.case__facts dd { margin-top: .3rem; color: var(--text); }
.case__kpis { margin-top: 1.8rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.case__kpis div { padding: 1.2rem 1.4rem; border-radius: var(--r); background: var(--cream); }
.case__kpis strong { display: block; font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--accent); font-weight: 600; }
.case__kpis span { display: block; margin-top: .35rem; font-size: .9rem; color: var(--muted); }
.case__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.case__pair figure { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.case__pair figure:last-child { transform: translateY(2.5rem); }
.case__pair img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.case__pair figcaption {
  position: absolute; left: .9rem; top: .9rem; padding: .35rem .85rem; border-radius: 999px;
  background: rgba(43, 42, 37, .75); color: var(--white); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.case__pair figcaption.is-after { background: rgba(131, 60, 11, .92); }

.results { margin-top: clamp(4.5rem, 7vw, 6.5rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.result {
  display: flex; flex-direction: column; padding: 2rem; border-radius: var(--r-lg);
  background: var(--white); border: 1px solid var(--sand);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .result:hover { transform: translateY(-5px); box-shadow: var(--shadow); } }
.result__place { display: flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.result__place .ico { width: 1rem; height: 1rem; }
.result__big { margin-top: 1.2rem; font-family: var(--serif); font-size: 1.5rem; color: var(--ink); line-height: 1; }
.result__big strong { font-size: 3.6rem; font-weight: 600; color: var(--accent); }
.result__metric { margin-top: .5rem; font-weight: 500; color: var(--ink); font-size: .95rem; }
.result h3 { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--sand); font-size: 1.4rem; }
.result > p:not([class]) { margin-top: .5rem; font-size: .95rem; color: var(--muted); }
.result__tags { margin-top: auto; padding-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.result__tags li { padding: .25rem .75rem; border-radius: 999px; border: 1px solid var(--linen); font-size: .75rem; color: var(--muted); }

.portfolio-head { margin-top: clamp(4.5rem, 7vw, 6.5rem); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.8rem; }
.portfolio-head p { color: var(--muted); max-width: 30rem; }
.portfolio { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; grid-auto-flow: dense; gap: 1rem; }
.portfolio__item { position: relative; overflow: hidden; border-radius: var(--r); background: var(--sand); }
.portfolio__item--wide { grid-column: span 2; }
.portfolio__item--tall { grid-row: span 2; }
.portfolio__item a { display: block; height: 100%; }
.portfolio__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out), filter .5s; }
.portfolio__item a::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(31, 29, 25, .45), transparent 55%);
  opacity: 0; transition: opacity .4s;
}
.portfolio__item a::before {
  content: "+"; position: absolute; right: 1rem; bottom: 1rem; z-index: 1; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%; background: var(--white); color: var(--accent);
  font-size: 1.5rem; line-height: 1; opacity: 0; transform: scale(.7); transition: opacity .3s, transform .4s var(--ease-out);
}
.portfolio__item a:hover img, .portfolio__item a:focus-visible img { transform: scale(1.06); }
.portfolio__item a:hover::after, .portfolio__item a:focus-visible::after { opacity: 1; }
.portfolio__item a:hover::before, .portfolio__item a:focus-visible::before { opacity: 1; transform: none; }

.testimonials { margin-top: clamp(4.5rem, 7vw, 6.5rem); }
.testimonials__head { margin-bottom: 1.8rem; }
.testimonials__track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testi {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 1.6rem;
  padding: 3.6rem 2rem 1.8rem; border-radius: var(--r-lg); background: var(--cream);
}
.testi::before {
  content: "\201C"; position: absolute; top: .6rem; left: 1.4rem; font-family: var(--serif); font-size: 5.5rem; line-height: 1; color: var(--accent); opacity: .25;
}
.testi blockquote { position: relative; font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; color: var(--ink); font-style: italic; }
.testi figcaption { display: flex; align-items: center; gap: .9rem; padding-top: 1.2rem; border-top: 1px solid var(--linen); font-size: .85rem; color: var(--muted); }
.testi figcaption strong { display: block; font-size: 1rem; color: var(--ink); }
.testi__avatar {
  display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%;
  background: var(--accent); color: var(--white); font-weight: 600; font-size: .9rem; letter-spacing: .05em;
}
.carousel-dots { display: none; }

/* ---------- 18. Cita ---------- */
.quote-banner { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; min-height: clamp(380px, 60vh, 580px); padding: 4rem var(--gutter); text-align: center; }
.quote-banner__bg { position: absolute; inset: -12% 0; z-index: -2; will-change: transform; }
.quote-banner__bg img { width: 100%; height: 100%; object-fit: cover; }
.quote-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(31, 29, 25, .55), rgba(31, 29, 25, .7)); }
.quote-banner__text p { font-family: var(--serif); font-style: italic; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.3rem); line-height: 1.2; color: var(--white); max-width: 900px; }
.quote-banner__text strong { font-style: normal; font-weight: 600; color: var(--accent-light); }
.quote-banner__text cite { display: block; margin-top: 1.4rem; font-style: normal; font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }

/* ---------- 19. FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq-wrap .section__head { position: sticky; top: calc(var(--header-h) + 2rem); margin-bottom: 0; }
.faq-wrap .section__head .btn { margin-top: 1.8rem; }
.faq { border-top: 1px solid var(--linen); }
.faq__item { border-bottom: 1px solid var(--linen); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.4rem 0;
  font-family: var(--serif); font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); font-weight: 500; color: var(--ink);
  cursor: pointer; list-style: none; transition: color .2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }
.faq__item summary .ico {
  width: 34px; height: 34px; padding: 7px; border-radius: 50%; border: 1px solid var(--linen); color: var(--accent);
  transition: transform .4s var(--ease-out), background .3s, color .3s, border-color .3s;
}
.faq__item[open] summary .ico { transform: rotate(45deg); background: var(--accent); color: var(--white); border-color: var(--accent); }
.faq__body { overflow: hidden; }
.faq__body p { padding: 0 3rem 1.5rem 0; color: var(--muted); }
.faq__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 20. Contacte ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--paper); }
.contact__panel {
  position: relative; overflow: hidden; background: var(--accent); color: rgba(253, 252, 250, .85);
  padding: var(--section-y) clamp(1.5rem, 5vw, 4.5rem);
}
.contact__panel::after {
  content: ""; position: absolute; right: -140px; bottom: -140px; width: 380px; height: 380px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .15); box-shadow: 0 0 0 40px rgba(255, 255, 255, .04), 0 0 0 80px rgba(255, 255, 255, .03);
}
.contact__panel-inner { position: relative; z-index: 1; max-width: 520px; margin-left: auto; }
.contact__panel .label { color: var(--cream); }
.contact__panel h2 { color: var(--white); }
.contact__panel h2 em { color: #F6D8BE; }
.contact__panel-inner > p:not([class]) { margin-top: 1.2rem; font-size: 1.08rem; }
.contact__list { margin-top: 2.2rem; display: grid; gap: 1.2rem; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact__list .ico { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: var(--white); }
.contact__list small { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.contact__list a, .contact__list span { color: var(--white); font-size: 1.05rem; }
.contact__list a { border-bottom: 1px solid rgba(255, 255, 255, .35); transition: border-color .2s; }
.contact__list a:hover { border-color: var(--white); }
.contact__panel .contact__sign { margin-top: 2.4rem; font-family: var(--serif); font-size: 2rem; font-style: italic; color: var(--white); }

.contact__form-wrap { position: relative; padding: var(--section-y) clamp(1.5rem, 5vw, 4.5rem); }
.form, .form-success { max-width: 680px; }
.form__title { font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); }
.form__intro { margin-top: .4rem; color: var(--muted); font-size: .95rem; }
.form__grid { margin-top: 1.8rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.field { margin-bottom: 1.1rem; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; margin-bottom: .45rem; font-size: .8rem; font-weight: 600; letter-spacing: .06em; color: var(--ink); }
.field__opt { font-weight: 400; color: var(--muted); letter-spacing: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .8rem 1rem;
  background: var(--white); border: 1px solid #8E8171; border-radius: var(--r);
  font-size: 1rem; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field select {
  padding-right: 2.6rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23833C0B' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.field input::placeholder, .field textarea::placeholder { color: #776D61; opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(131, 60, 11, .12); }
.check input:focus { outline: none; box-shadow: none; }
.check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(163, 36, 26, .08); }
.field__error { min-height: 0; margin-top: .35rem; font-size: .82rem; color: var(--danger); }
.field__error:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-check { position: relative; cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-check span {
  display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem; border-radius: 999px;
  border: 1px solid var(--linen); background: var(--white); font-size: .9rem; color: var(--text);
  transition: all .2s;
}
.chip-check span::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--taupe); transition: all .2s;
}
.chip-check input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--white); }
.chip-check input:checked + span::before { border-color: var(--white); background: var(--white); box-shadow: inset 0 0 0 3px var(--accent); }
.chip-check input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip-check:hover span { border-color: var(--accent); }

.field--check { margin-top: .4rem; }
.check { display: flex !important; gap: .7rem; align-items: flex-start; font-size: .92rem !important; font-weight: 400 !important; letter-spacing: 0 !important; color: var(--text) !important; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); cursor: pointer; }
.check a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form__submit { margin-top: .8rem; min-height: 58px; font-size: 1rem; }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: var(--white); animation: spin .8s linear infinite; }
.form.is-sending .spinner { display: inline-block; }
.form.is-sending .form__submit .ico { display: none; }
.form.is-sending .form__submit { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__legal { margin-top: .8rem; font-size: .8rem; color: var(--muted); text-align: center; }
.form__status:empty { display: none; }
.form__status { margin-top: 1.2rem; padding: 1.1rem 1.3rem; border-radius: var(--r); background: #FBEDEA; border: 1px solid #F0C9C2; color: var(--ink); font-size: .95rem; }
.form__status:focus { outline: none; }
.form__status strong { display: block; color: var(--danger); margin-bottom: .3rem; }
.form__status .status-actions { margin-top: .9rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.form__status .status-actions .btn { min-height: 44px; font-size: .9rem; padding: .6rem 1.1rem; }

.form-success { text-align: center; padding: 2rem 0; animation: panelIn .7s var(--ease-out); }
.form-success:focus { outline: none; }
.form-success__icon svg { width: 84px; height: 84px; margin: 0 auto; fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.form-success__icon circle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 1s var(--ease-out) .1s forwards; }
.form-success__icon path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s var(--ease-out) .8s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-success h3 { margin-top: 1.4rem; font-size: 2.4rem; }
.form-success p { margin-top: .7rem; color: var(--muted); font-size: 1.05rem; }
.form-success p strong { color: var(--ink); }
.form-success__alt a { color: var(--accent); text-decoration: underline; }
.form-success .btn { margin-top: 1.8rem; }

/* ---------- 21. Peu ---------- */
.site-footer { background: var(--ink-2); color: rgba(253, 252, 250, .6); padding: clamp(3.5rem, 6vw, 5rem) 0 2rem; font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer__brand img { width: 210px; height: auto; }
.footer__brand p { margin-top: 1.3rem; max-width: 30rem; line-height: 1.7; }
.footer__col h2 { font-family: var(--sans); font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 1rem; }
.footer__col ul { display: grid; gap: .55rem; }
.footer__col a { transition: color .2s; }
.footer__col a:hover { color: var(--white); }
.footer__bottom { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .82rem; }
.footer__bottom a:hover { color: var(--white); }

/* ---------- 22. WhatsApp flotant ---------- */
.wa-float {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 150;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: var(--white); box-shadow: 0 10px 28px rgba(37, 211, 102, .4);
  opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none;
  transition: opacity .4s var(--ease), transform .5s var(--ease-out), box-shadow .3s;
}
.wa-float.is-visible, .wa-float:focus-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float .ico { width: 30px; height: 30px; }
.wa-float:hover { box-shadow: 0 14px 34px rgba(37, 211, 102, .55); transform: scale(1.06); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa);
  animation: ping 2.8s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.wa-float__tip {
  position: absolute; right: calc(100% + 12px); white-space: nowrap;
  padding: .45rem .9rem; border-radius: 999px; background: var(--ink); color: var(--white); font-size: .85rem;
  opacity: 0; transform: translateX(8px); transition: opacity .25s, transform .3s var(--ease-out); pointer-events: none;
}
.wa-float:hover .wa-float__tip, .wa-float:focus-visible .wa-float__tip { opacity: 1; transform: none; }

/* ---------- 23. Visor ---------- */
.lightbox {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--white); overflow: hidden;
}
.lightbox { touch-action: pan-y; touch-action: pan-y pinch-zoom; }
.lightbox:not([open]) { display: none; }
.lightbox::backdrop { background: rgba(20, 18, 15, .94); }
.lightbox[open] { display: grid; place-items: center; animation: lbIn .35s var(--ease); }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox__figure { display: grid; justify-items: center; gap: 1rem; padding: 4rem 5rem; }
.lightbox__figure img { max-width: min(1400px, 100%); max-height: calc(100vh - 10rem); max-height: calc(100dvh - 10rem); width: auto; height: auto; border-radius: var(--r); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox__figure img.is-swapping { animation: imgSwap .45s var(--ease) both; }
.lightbox__figure figcaption { font-size: .95rem; color: rgba(255, 255, 255, .75); text-align: center; }
.lightbox__close, .lightbox__nav {
  position: fixed; z-index: 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); color: var(--white); transition: background .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .22); }
.lightbox__close { top: 1.2rem; right: 1.2rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 1.2rem; }
.lightbox__nav--next { right: 1.2rem; }
.lightbox .ico { width: 24px; height: 24px; }
body.is-locked { overflow: hidden; }

/* ---------- 24. Animació d'aparició ---------- */
.js [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(28px); }
.js [data-reveal].is-visible { animation: revealUp 1s var(--ease-out) backwards; animation-delay: calc(var(--d, 0) * 110ms); }
@keyframes revealUp { from { opacity: 0; transform: translateY(28px); } }

/* ---------- 28. Pàgina legal i 404 ---------- */
.legal-page .site-header { position: sticky; }
.legal-page .lang { margin-left: auto; }
.legal-back { margin-left: .25rem; }
.legal { padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 7vw, 6rem); background: var(--paper); }
.legal__inner { max-width: 860px; }
.legal__updated { margin-top: .8rem; color: var(--muted); font-size: .9rem; }
.legal__toc { margin: 2rem 0 1rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.legal__toc a { padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--linen); background: var(--white); font-size: .9rem; transition: all .2s; }
.legal__toc a:hover { border-color: var(--accent); color: var(--accent); }
.legal section { margin-top: 3rem; padding-top: 2.4rem; border-top: 1px solid var(--sand); }
.legal h2 { font-size: clamp(1.8rem, 1.4rem + 1vw, 2.3rem); }
.legal h3 { margin-top: 1.8rem; font-family: var(--sans); font-size: 1.02rem; font-weight: 600; color: var(--ink); }
.legal p { margin-top: .7rem; color: var(--text); }
.legal a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal .legal__toc a { color: var(--text); text-decoration: none; }
.legal .legal__toc a:hover { color: var(--accent); }
.legal__data { margin-top: 1rem; display: grid; gap: .45rem; padding: 1.3rem 1.5rem; border-radius: var(--r); background: var(--cream); }
.legal__todo { padding: .05rem .4rem; border-radius: 4px; background: #FFF1C7; color: #6B4E00; font-weight: 600; }
.legal__back { margin-top: 3rem; }
.site-footer--slim { padding: 1.5rem 0; }
.site-footer--slim .footer__bottom { margin-top: 0; padding-top: 0; border-top: 0; }

.error-page { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; background: var(--cream); }
.error { max-width: 640px; padding: 3rem var(--gutter); text-align: center; }
.error__logo { width: 200px; margin: 0 auto 2.5rem; }
.error .label::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.error__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.error__langs { margin-top: 2.5rem; font-size: .9rem; color: var(--muted); }
.error__langs a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 25. Responsive ---------- */
@media (max-width: 1300px) {
  .nav__link { padding: .5rem .6rem; font-size: .88rem; }
  .nav__link::after { left: .6rem; right: .6rem; }
  .header__inner { gap: 1.2rem; }
  .brand img { height: 36px; }
}

@media (max-width: 1180px) {
  :root { --header-h: 68px; }
  .nav, .header__cta { display: none; }
  .nav-toggle { display: block; }
  .lang { margin-left: auto; }
  .brand img { height: 34px; }
  .figures { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; }
  .service { grid-template-columns: 1fr; grid-template-rows: 200px 1fr; }
  .service--featured { grid-row: auto; grid-column: 1 / -1; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: none; }
  .service--featured .service__media { min-height: 320px; }
  .service--featured .service__media img { position: absolute; inset: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .hero__grid, .market, .views, .cost, .roi__body, .case, .faq-wrap, .contact { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-bottom: 5rem; }
  .hero__grid { row-gap: 0; }
  .hero__content { display: contents; }
  .eyebrow { order: 1; }
  .hero__title { order: 2; }
  .hero__media { order: 3; margin-top: 1.8rem; }
  .hero__lead { order: 4; margin-top: 2.2rem; }
  .hero__actions { order: 5; }
  .hero__trust { order: 6; }
  .hero__badge { position: relative; left: auto; right: auto; bottom: auto; top: auto; width: 100%; margin-top: 1rem; animation: none; display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: center; }
  .hero__badge strong { grid-row: span 2; }
  .hero__badge span { margin-top: 0; }
  .hero__badge small { margin-top: .2rem; }
  .hero__hint { justify-content: flex-start; }
  .compare--hero { aspect-ratio: 4 / 3; }
  .section__head--split { grid-template-columns: 1fr; }
  .faq-wrap .section__head { position: static; }
  .contact__panel-inner { margin-left: 0; max-width: none; }
  .reveal-row { grid-template-columns: 1fr 1fr; }
  .reveal-row__intro { grid-column: 1 / -1; }
  .process { grid-template-columns: 1fr 1fr; row-gap: 3rem; }
  .process::before, .process::after { display: none; }
  .results { grid-template-columns: 1fr; }
  .testimonials__track {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(85%, 420px);
    overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; padding-bottom: .5rem; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .testimonials__track::-webkit-scrollbar { display: none; }
  .testi { scroll-snap-align: start; }
  .js .testimonials__track .testi:not(.is-visible) { transform: none; }
  .carousel-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.2rem; }
  .carousel-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--linen); transition: background .3s, width .3s; }
  .carousel-dots span.is-active { width: 24px; border-radius: 4px; background: var(--accent); }
}

@media (max-width: 820px) {
  .services { grid-template-columns: 1fr; }
  .service { grid-template-columns: 160px 1fr; grid-template-rows: auto; }
  .service--featured { grid-template-columns: 1fr; }
  .service--featured .service__media { min-height: 0; aspect-ratio: 16 / 10; }
  .service--featured .service__media img { position: static; }
  .benefits { grid-template-columns: 1fr 1fr; }
  .benefits--three { grid-template-columns: 1fr; }
  .method { grid-template-columns: 1fr; }
  .portfolio { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .compare--gallery { aspect-ratio: 4 / 3; }
  .tabs__list { width: 100%; flex-direction: column; align-items: stretch; border-radius: calc(var(--r-lg) + 6px); }
  .tabs__tab { justify-content: center; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .btn { white-space: normal; text-align: center; }
  .header__inner { gap: .75rem; }
  .hero__trust { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .hero__trust strong { font-size: 1.8rem; }
  .eyebrow { letter-spacing: .14em; font-size: .72rem; }
  .hero__trust span { font-size: .76rem; }
  .hero__actions .btn { width: 100%; }
  .figures { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; }
  .reveal-row { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .promises { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; grid-template-rows: 190px auto; }
  .service--featured { grid-template-rows: auto; }
  .case__pair figure:last-child { transform: translateY(1.5rem); }
  .case__kpis { grid-template-columns: 1fr 1fr; }
  .form__grid { grid-template-columns: 1fr; }
  .bars li { grid-template-columns: 7.5rem 1fr 2.6rem; font-size: .85rem; }
  .lang__globe, .lang__chev { display: none; }
  .lang__btn { justify-content: center; min-width: 44px; min-height: 44px; padding: 0 .7rem; }
  .roi__verdict { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .tabs__cta { flex-direction: column; align-items: flex-start; }
  .tabs__cta .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .compare__handle { width: 50px; height: 50px; }
  .lightbox__figure { padding: 4.5rem 1rem; }
  .lightbox__nav { top: auto; bottom: 1.2rem; transform: none; }
  .compare__label { top: .7rem; font-size: .66rem; }
  .chart__axis text, .chart__max-label { font-size: 22px; }
  .chart__value { font-size: 24px; }
  .compare__label--before { left: .7rem; }
  .compare__label--after { right: .7rem; }
}

/* ---------- 26. Moviment reduït ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .hero-in, .js .process__step { opacity: 1 !important; transform: none !important; animation: none !important; }
  .marquee__track { animation: none; }
  .chart__line { stroke-dashoffset: 0; }
  .chart__area, .chart__dots circle, .chart__value { opacity: 1; }
  .bars__fill, .figure__bar span { transform: none; }
  .timeline__step { transform: none; }
  .timeline__icon { opacity: 1; }
  .timeline::after { transform: scaleY(1); }
}

/* ---------- 27. Impressió ---------- */
@media print {
  .site-header, .progress, .wa-float, .marquee, .hero__scroll, .lightbox, .mobile-menu, .carousel-dots, .lang { display: none !important; }
  .js [data-reveal], .js .hero-in, .js .process__step, .timeline__step { opacity: 1 !important; transform: none !important; animation: none !important; }
  .section--ink, .callout, .contact__panel, .site-footer, .btn--primary, .bars__track, .figure__bar, .roi__bar { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .chart__line { stroke-dashoffset: 0 !important; }
  .chart__area, .chart__dots circle, .chart__value { opacity: 1 !important; }
  .bars__fill, .figure__bar span { transform: none !important; }
  .js .roi .roi__fill { width: var(--w) !important; }
  .hero { padding-top: 2rem; }
}

/* ---------- 29. Versió compacta (estructura nova) ---------- */
.section--paper .method__step { background: var(--white); }
.method__step { padding: 1.8rem 1.8rem 1.6rem; }
.method__step h3 { margin-top: 1.1rem; }

/* El mateix espai, dues mirades: una sola franja */
.views--compact { display: block; margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.views--compact .views__intro {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  grid-template-areas: "label pair" "title pair" "stmt pair";
  column-gap: clamp(1.5rem, 4vw, 3.5rem); align-content: center;
  padding: clamp(1.4rem, 3vw, 2.2rem); background: var(--cream); border-radius: var(--r-lg);
}
.views--compact .views__intro > .label { grid-area: label; margin-bottom: .6rem; }
.views--compact .views__intro > .h3 { grid-area: title; }
.views--compact .view-pair { grid-area: pair; margin-top: 0; grid-template-columns: 1fr 1fr; align-self: center; }
.views--compact .view-card { background: var(--white); padding: 1.2rem 1.3rem; }
.views--compact .view-card--accent { background: linear-gradient(135deg, var(--white), var(--accent-100)); }
.views--compact .views__statement { grid-area: stmt; margin-top: 1rem; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); }

/* Abans i després: 3 targetes */
.reveal-row--three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.reveal-row--three .flip__text strong { font-size: 1.3rem; }

/* Resultats reals: 4 targetes compactes */
.results-head { margin-top: clamp(2.25rem, 4vw, 3.25rem); }
.results-head .label { margin-bottom: .5rem; }
.results--four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.results--four .result { padding: 1.5rem 1.4rem; }
.results--four .result__big { margin-top: .9rem; }
.results--four .result__big strong { font-size: 3rem; }
.results--four .result h3 { margin-top: 1rem; padding-top: .9rem; font-size: 1.25rem; }
.results--four .result > p:not([class]) { font-size: .9rem; }

/* Xifres: 6 targetes */
.figures--six { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.figures--six .figure { padding: 1.6rem 1.5rem; }
.figure__title { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-light); }
.figure--bars .bars { margin-top: 1.1rem; }
.figure--bars .bars li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 2.8rem; color: rgba(253, 252, 250, .85); font-size: .9rem; }
.figure--bars .bars__track { background: rgba(255, 255, 255, .12); }
.figure--bars .bars__fill { background: var(--accent-light); }
.figure--bars .bars b { color: var(--white); }
.figure.is-visible .bars__fill { transform: scaleX(1); }

/* Galeria + cita */
.gallery-quote { max-width: 820px; margin: clamp(2rem, 4vw, 3rem) auto 0; text-align: center; }
.gallery-quote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2.15rem); line-height: 1.3; color: var(--ink); }
.gallery-quote strong { font-style: normal; font-weight: 600; color: var(--accent); }
.gallery-quote cite { display: block; margin-top: .9rem; font-style: normal; font-size: .76rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* Rendibilitat: franja del cost d'esperar */
.cost-strip { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.25rem, 3vw, 3rem); align-items: center; margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.cost-strip__head .label { margin-bottom: .6rem; }
.cost-strip__head p:last-child { margin-top: .6rem; color: var(--muted); }
.cost-strip__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
.cost-strip__item { padding: 1.15rem 1.1rem; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--sand); }
.cost-strip__item h3 { margin-top: .75rem; font-size: 1.15rem; line-height: 1.2; }
.cost-strip__item p { margin-top: .3rem; font-size: .88rem; line-height: 1.5; color: var(--muted); }
.cost-strip__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--tone); color: var(--accent); }
.cost-strip__icon--light { color: var(--white); }
.cost-strip__icon .ico { width: 20px; height: 20px; }
.cost-strip + .roi { margin-top: 0; }

/* Testimonis com a secció pròpia */
#testimonis .testimonials { margin-top: 0; }

@media (max-width: 1180px) {
  .results--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cost-strip { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .views--compact .views__intro { grid-template-columns: 1fr; grid-template-areas: "label" "title" "pair" "stmt"; }
  .views--compact .view-pair { margin-top: 1.2rem; }
  .reveal-row--three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .figures--six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .reveal-row--three { grid-template-columns: 1fr; }
  .cost-strip__list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .views--compact .view-pair { grid-template-columns: 1fr; }
  .results--four, .figures--six { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .cost-strip__list { grid-template-columns: 1fr; }
}

/* ---------- 30. Compactació addicional ---------- */
/* Abans i després */
.ba { max-width: 940px; }
.reveal-row--three .flip__media { aspect-ratio: 4 / 3; }
.reveal-row--three .flip__text { margin-top: .7rem; font-size: .92rem; }

/* Serveis: quatre targetes en una fila (la primera destacada) */
.services { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: none; gap: 1.1rem; }
.service, .service--featured { grid-row: auto; grid-column: auto; grid-template-columns: 1fr; grid-template-rows: 170px auto; }
.service--featured { box-shadow: 0 0 0 2px var(--accent); }
.service--featured .service__media { min-height: 0; aspect-ratio: auto; }
.service--featured .service__media img { position: static; }
.service__body, .service--featured .service__body { padding: 1.3rem 1.3rem 1.4rem; }
.service h3, .service--featured h3 { font-size: 1.35rem; }
.service p, .service--featured p { font-size: .92rem; }
.service__num, .service--featured .service__num { font-size: 1.4rem; top: 1rem; right: 1.1rem; }
.service__list li { font-size: .88rem; }
.service__tag { left: .9rem; top: .9rem; }
.link-arrow { margin-top: 1rem; }

/* Per a qui: avantatges en format horitzontal */
.benefits { gap: .9rem; }
.benefit { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 1rem; align-content: start; padding: 1.2rem 1.3rem; }
.benefit .icon-badge { width: 44px; height: 44px; grid-row: span 3; }
.benefit .icon-badge .ico { width: 20px; height: 20px; }
.benefit h3 { margin-top: .1rem; font-size: 1.2rem; }
.benefit p { margin-top: .25rem; font-size: .92rem; }
.benefit .benefit__result { grid-column: 2; margin-top: .7rem; padding-top: .6rem; }
.tabs__cta { margin-top: 1.2rem; padding: 1.1rem 1.4rem; }
.tabs__cta p { font-size: 1.2rem; }

/* Xifres */
.figures--six .figure { padding: 1.35rem 1.4rem; }
.figures--six .figure strong { font-size: clamp(2.3rem, 1.9rem + 1.2vw, 3rem); }
.figures--six .figure__bar { margin: .8rem 0 .7rem; }
.figures--six .figure p { font-size: .93rem; }
.figures--six .figure small { margin-top: .6rem; }

/* Mercat */
.stat-line { padding: 1.05rem 0; }
.chart-card { padding: clamp(1.1rem, 2vw, 1.6rem); }

/* Galeria */
.portfolio { grid-auto-rows: 200px; gap: .8rem; }

/* Rendibilitat */
.roi { padding: clamp(1.25rem, 3vw, 2.4rem); }
.roi__body { margin-top: 1.4rem; }
.roi__verdict { margin-top: 1.2rem; padding: 1rem 1.2rem; }
.roi__verdict strong { font-size: 2.4rem; }
.roi__perks { margin-top: 1rem; }
.roi .source { margin-top: 1.4rem; }

/* Com treballem */
.process__step h3 { font-size: 1.4rem; }
.promise { padding: 1.3rem 1.6rem; }

/* Testimonis */
.testi { padding: 3rem 1.7rem 1.5rem; gap: 1.2rem; }
.testi blockquote { font-size: 1.2rem; }

/* Contacte */
.contact__panel, .contact__form-wrap { padding-top: clamp(2.75rem, 2rem + 3vw, 4.5rem); padding-bottom: clamp(2.75rem, 2rem + 3vw, 4.5rem); }
.contact__list { margin-top: 1.6rem; gap: 1rem; }
.contact__sign { margin-top: 1.6rem; }
.form__grid { margin-top: 1.3rem; }
.field { margin-bottom: .95rem; }

@media (max-width: 1180px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service, .service--featured { grid-template-rows: 190px auto; }
}
@media (max-width: 820px) {
  .services { grid-template-columns: 1fr 1fr; }
  .benefits { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .services { grid-template-columns: 1fr; }
  .service, .service--featured { grid-template-columns: 1fr; grid-template-rows: 180px auto; }
  .benefits { grid-template-columns: 1fr; }
  .portfolio { grid-auto-rows: 150px; }
}

/* Capçaleres en dues columnes (títol a l'esquerra, text a la dreta) */
#dades .section__head, .roi__head { max-width: none; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 4rem; align-items: end; }
#dades .section__head > .label, #dades .section__head > .h2, .roi__head > .label, .roi__head > .h2 { grid-column: 1; }
#dades .section__head > .lead, .roi__head > .lead { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.figure--bars small { text-transform: none; letter-spacing: .02em; }
@media (max-width: 960px) {
  #dades .section__head, .roi__head { grid-template-columns: 1fr; }
  #dades .section__head > .lead, .roi__head > .lead { grid-column: 1; grid-row: auto; margin-top: .85rem; }
}

#testimonis .testi { background: var(--white); box-shadow: var(--shadow-sm); }

/* ---------- 31. Mòbil: carrusels horitzontals i dues columnes ---------- */
@media (max-width: 720px) {
  .reveal-row--three, .results--four, .services {
    display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(78%, 1fr);
    position: relative; gap: .9rem; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); padding-bottom: .6rem;
  }
  .reveal-row--three::-webkit-scrollbar, .results--four::-webkit-scrollbar, .services::-webkit-scrollbar { display: none; }
  .reveal-row--three > *, .results--four > *, .services > * { scroll-snap-align: start; }
  .js .reveal-row--three > [data-reveal]:not(.is-visible), .js .results--four > [data-reveal]:not(.is-visible), .js .services > [data-reveal]:not(.is-visible) { transform: none; }
}
@media (max-width: 600px) {
  .figures--six { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .figures--six .figure { padding: 1.1rem 1rem; }
  .figures--six .figure strong { font-size: 2rem; }
  .figures--six .figure__bar { margin: .6rem 0 .55rem; }
  .figures--six .figure p { font-size: .82rem; line-height: 1.45; }
  .figures--six .figure small { font-size: .6rem; }
  .figure--bars { grid-column: 1 / -1; }
  .figures--six > .figure:first-child { grid-column: 1 / -1; }
  .figures--six > .figure:first-child strong { font-size: 2.6rem; }
  .process { grid-template-columns: 1fr 1fr; gap: 1.6rem 1rem; }
  .process__dot { width: 52px; height: 52px; }
  .process__step h3 { font-size: 1.2rem; }
  .process__step p { font-size: .86rem; }
}
