/* ==========================================================================
   Pexalia: sistema visual de la web pública
   Paleta derivada del logo: tinta (wordmark) + blanc + degradat de la X
   (menta #2CE8BF → aqua #01D4CD → teal #019FB8).
   Generat/servit com a fitxer compartit per totes les pàgines (scripts/build-site.mjs).
   ========================================================================== */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal; font-display: swap; font-weight: 200 800;
  src: url('/assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal; font-display: swap; font-weight: 200 800;
  src: url('/assets/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --ink: #07090A;
  --ink-2: #0D1214;
  --ink-3: #151C1F;
  --ink-line: rgba(255,255,255,.09);
  --ink-text: #F4F7F7;
  --ink-soft: rgba(244,247,247,.62);

  --paper: #FFFFFF;
  --mist: #F3F6F6;
  --line: #E3E8E8;
  --line-strong: #CFD7D7;
  --text: #07090A;
  --text-soft: #515C5F;
  --text-faint: #7D878A;

  --mint: #2CE8BF;
  --aqua: #01D4CD;
  --teal: #019FB8;
  --teal-ink: #007585;           /* teal per a text sobre blanc (AA) */
  --grad: linear-gradient(120deg, #2CE8BF 0%, #01D4CD 48%, #019FB8 100%);
  --grad-soft: linear-gradient(120deg, rgba(44,232,191,.16), rgba(1,159,184,.16));

  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --r-lg: 22px; --r-md: 16px; --r-sm: 12px; --r-pill: 999px;
  --ease: cubic-bezier(.22,1,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --cut: clamp(28px, 5vw, 72px);
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font); color: var(--text); background: var(--paper);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; line-height: 1.5; font-size: 1rem;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; text-wrap: balance; }
p { color: var(--text-soft); line-height: 1.65; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(1,212,205,.28); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: 12px; transform: translateY(-200%); z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; transition: top .2s; }
.skip-link:focus { transform: none; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- Botons ---------- */
.btn {
  --b-bg: var(--ink); --b-fg: #fff; --b-bd: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: var(--r-pill); border: 1.5px solid var(--b-bd);
  background: var(--b-bg); color: var(--b-fg); font-weight: 600; font-size: .95rem; letter-spacing: -.01em;
  cursor: pointer; white-space: nowrap; isolation: isolate; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s, color .25s, border-color .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn::before { /* barrida de degradat en hover */
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad);
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn .arr { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { color: var(--ink); border-color: transparent; box-shadow: 0 14px 30px -14px rgba(1,159,184,.65); transform: translateY(-2px); }
  .btn-primary:hover::before { transform: translateY(0); }
  .btn:hover .arr { transform: translateX(4px); }
  .btn-ghost:hover { --b-bd: var(--ink); background: var(--ink); color: #fff; }
}
.btn-ghost { --b-bg: transparent; --b-fg: var(--ink); --b-bd: var(--line-strong); }
.btn-ghost::before { display: none; }
.btn-light { --b-bg: #fff; --b-fg: var(--ink); --b-bd: #fff; }
.on-ink .btn-ghost, .btn-ghost.on-ink { --b-fg: #fff; --b-bd: rgba(255,255,255,.28); }
@media (hover: hover) and (pointer: fine) {
  .on-ink .btn-ghost:hover { background: #fff; color: var(--ink); --b-bd: #fff; }
  .btn-light:hover { color: var(--ink); }
  .btn-light:hover::before { transform: translateY(0); }
}
.btn-sm { padding: 10px 18px; font-size: .86rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .93rem;
  color: var(--ink); background: linear-gradient(var(--teal), var(--teal)) 0 100% / 0 2px no-repeat;
  padding-bottom: 3px; transition: background-size .45s var(--ease), color .25s;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.link-arrow:hover { background-size: 100% 2px; color: var(--teal-ink); }
.link-arrow:hover svg { transform: translateX(4px); }
.on-ink .link-arrow { color: #fff; }
.on-ink .link-arrow:hover { color: var(--mint); }

/* ---------- Capçalera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 80; height: var(--header-h);
  view-transition-name: site-header;
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .35s, background .35s, box-shadow .35s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,.86); box-shadow: 0 10px 30px -26px rgba(7,9,10,.45); }
.site-header .bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 26px; width: auto; }
.nav-main { display: flex; align-items: center; gap: 4px; }
.nav-main > li { list-style: none; position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: var(--r-pill); white-space: nowrap;
  font-size: .93rem; font-weight: 500; color: var(--text); background: none; border: 0; cursor: pointer;
  transition: background .2s, color .2s;
}
.nav-link svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.nav-link:hover, .nav-item.is-open > .nav-link { background: var(--mist); }
.nav-link[aria-current="page"], .nav-link.is-current { color: var(--teal-ink); }
.nav-link[aria-current="page"]::after, .nav-link.is-current::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--grad);
}
.nav-item.is-open > .nav-link svg { transform: rotate(180deg); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-pill); }
.lang-switch a { font-size: .74rem; font-weight: 600; padding: 5px 9px; border-radius: var(--r-pill); color: var(--text-faint); letter-spacing: .02em; transition: background .2s, color .2s; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="true"] { background: var(--ink); color: #fff; }

/* Mega menú de solucions */
.mega {
  position: absolute; top: calc(100% + 10px); left: -16px; width: min(760px, 92vw);
  transform: translateY(8px); opacity: 0; visibility: hidden; pointer-events: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 30px 70px -30px rgba(7,9,10,.35); padding: 14px;
  transition: opacity .25s, transform .35s var(--ease), visibility 0s .25s;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-item.is-open .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: opacity .25s, transform .35s var(--ease); }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.mega-item { display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 16px; border-radius: var(--r-md); transition: background .2s; }
.mega-item:hover { background: var(--mist); }
.mega-item .k { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-ink); }
.mega-item .t { font-weight: 650; font-size: .96rem; letter-spacing: -.02em; }
.mega-item .d { font-size: .8rem; color: var(--text-soft); line-height: 1.4; }
.mega-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding: 14px; border-radius: var(--r-md); background: var(--ink); color: #fff; }
.mega-foot span { font-size: .86rem; color: var(--ink-soft); }

.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .45s var(--ease), background .3s, top .45s var(--ease); }
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 25px; }
.menu-open .menu-btn span { background: linear-gradient(90deg, var(--mint), var(--teal)); }
.menu-open .menu-btn span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* Barra de progrés (mòbil) */
.progress-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* Menú mòbil a pantalla completa */
.mobile-menu {
  position: fixed; inset: 0; z-index: 70; background: var(--ink); color: #fff;
  padding: calc(var(--header-h) + 20px) var(--gutter) 32px;
  display: flex; flex-direction: column; overflow-y: auto;
  clip-path: circle(0% at calc(100% - 38px) 36px); visibility: hidden;
  transition: clip-path .6s var(--ease), visibility 0s .6s;
}
.mobile-menu::before { content: ""; position: absolute; inset: auto -30% -20% auto; width: 90vw; height: 90vw; border-radius: 50%; background: radial-gradient(circle, rgba(1,212,205,.28), transparent 65%); pointer-events: none; }
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 38px) 36px); visibility: visible; transition: clip-path .7s var(--ease); }
.menu-open { overflow: hidden; }
.menu-open .site-header { background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.brand .logo-light { display: none; }
.menu-open .brand .logo-dark { display: none; }
.menu-open .brand .logo-light { display: block; }
.menu-open .menu-btn { background: transparent; border-color: rgba(255,255,255,.25); }
.menu-open .progress-bar { opacity: 0; }
.mm-list { list-style: none; display: flex; flex-direction: column; gap: 2px; position: relative; }
.mm-list > li { opacity: 0; transform: translateY(18px); transition: opacity .4s, transform .6s var(--ease); transition-delay: calc(.12s + var(--i, 0) * 60ms); }
.menu-open .mm-list > li { opacity: 1; transform: none; }
.mm-link { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; font-size: clamp(1.7rem, 7vw, 2.3rem); font-weight: 700; letter-spacing: -.04em; border-bottom: 1px solid var(--ink-line); }
.mm-link .n { font-size: .75rem; font-weight: 600; color: var(--ink-soft); letter-spacing: .06em; }
.mm-link[aria-current="page"] { color: var(--mint); }
.mm-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 12px 0 16px; }
.mm-sub a { font-size: .9rem; color: var(--ink-soft); padding: 6px 0; }
.mm-sub a:active { color: #fff; }
.mm-foot { margin-top: auto; padding-top: 28px; display: flex; flex-direction: column; gap: 14px; position: relative; opacity: 0; transition: opacity .4s .35s; }
.menu-open .mm-foot { opacity: 1; }
.mm-foot .lang-switch { align-self: flex-start; border-color: var(--ink-line); }
.mm-foot .lang-switch a { color: var(--ink-soft); }
.mm-foot .lang-switch a[aria-current="true"] { background: #fff; color: var(--ink); }
.mm-foot .btn { width: 100%; }

@media (max-width: 1240px) {
  .nav-main, .nav-right .btn-ghost, .nav-right .lang-switch { display: none; }
  .menu-btn { display: block; }
  .nav-right .btn-primary { padding: 10px 16px; font-size: .84rem; }
}
@media (max-width: 420px) { .nav-right .btn-primary { display: none; } }
@media (min-width: 1241px) { .mobile-menu { display: none; } .progress-bar { display: none; } }
/* Amb 6 enllaços al menú, entre 1241 i 1440 px s'ajusta l'espaiat perquè no salti de línia */
@media (min-width: 1241px) and (max-width: 1440px) {
  .nav-link { padding: 10px 10px; font-size: .9rem; }
  .site-header .bar { gap: 14px; }
  .nav-right { gap: 8px; }
}

/* ---------- Índex de capítols (estil OpenAI): ratlles horitzontals a la dreta ---------- */
.thread {
  position: fixed; right: clamp(14px, 1.6vw, 28px); top: 50%; transform: translateY(-50%); z-index: 45;
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding: 10px 0 10px 16px;
  opacity: 0; transition: opacity .5s;
}
.thread.is-on { opacity: 1; }
.tick {
  position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 14px;
  height: 18px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--text);
  -webkit-tap-highlight-color: transparent;
}
.tick .bar {
  display: block; width: 14px; height: 2px; border-radius: 2px; background: rgba(7,9,10,.22);
  transition: width .45s var(--ease), background-color .35s, box-shadow .35s;
}
.tick .lbl {
  font-size: .76rem; font-weight: 500; white-space: nowrap; color: var(--text-soft);
  opacity: 0; transform: translateX(8px); pointer-events: none;
  transition: opacity .25s, transform .4s var(--ease), color .25s;
  transition-delay: calc(var(--k, 0) * 18ms);
}
.tick:hover .bar { width: 20px; background: rgba(7,9,10,.5); }
.tick.is-active .bar { width: 28px; background: var(--aqua); box-shadow: 0 0 10px rgba(1,212,205,.85), 0 0 2px rgba(1,212,205,.9); }
.tick.is-active .lbl { color: var(--text); font-weight: 650; }
/* En passar per sobre de l'índex apareixen els noms de cada capítol */
.thread::before { content: ""; position: absolute; inset: -8px -12px -8px -24px; border-radius: 16px; background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 20px 50px -26px rgba(7,9,10,.35); opacity: 0; transform: scale(.96); transform-origin: right center; transition: opacity .3s, transform .4s var(--ease); z-index: -1; pointer-events: none; }
.thread:hover::before, .thread:focus-within::before { opacity: 1; transform: none; }
.thread:hover .lbl, .thread:focus-within .lbl { opacity: 1; transform: none; pointer-events: auto; }
/* Sobre seccions fosques */
.thread.on-ink .tick .bar { background: rgba(255,255,255,.3); }
.thread.on-ink .tick:hover .bar { background: rgba(255,255,255,.6); }
.thread.on-ink .tick.is-active .bar { background: var(--aqua); }
.thread.on-ink:hover::before, .thread.on-ink:focus-within::before { background: rgba(13,18,20,.88); }
.thread.on-ink .tick .lbl { color: var(--ink-soft); }
.thread.on-ink .tick.is-active .lbl { color: #fff; }
.menu-open .thread { opacity: 0; pointer-events: none; }
@media (max-width: 1240px) { .thread { display: none; } }
@media (prefers-reduced-motion: reduce) { .tick .bar, .tick .lbl { transition: none; } }

/* ---------- Seccions ---------- */
.sec { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
.sec--tight { padding: clamp(48px, 7vw, 88px) 0; }
.sec--mist { background: var(--mist); }
.sec--ink { background: var(--ink); color: var(--ink-text); isolation: isolate; overflow: hidden; }
.sec--ink p { color: var(--ink-soft); }
.sec--ink h2, .sec--ink h3 { color: #fff; }
/* Costures diagonals: les seccions fosques es tallen en diagonal (com els traços de la X) */
.sec--cut { clip-path: polygon(0 var(--cut), 100% 0, 100% calc(100% - var(--cut)), 0 100%); padding-top: calc(clamp(72px, 10vw, 128px) + var(--cut) * .6); padding-bottom: calc(clamp(72px, 10vw, 128px) + var(--cut) * .6); }
.sec--cut-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%); padding-bottom: calc(clamp(72px, 10vw, 128px) + var(--cut) * .6); }
.sec--cut-top { clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%); padding-top: calc(clamp(72px, 10vw, 128px) + var(--cut) * .6); }
.aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora::before, .aurora::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.aurora::before { width: 55vw; height: 55vw; max-width: 760px; max-height: 760px; right: -12%; top: -30%; background: radial-gradient(circle, rgba(1,212,205,.55), rgba(1,159,184,0) 68%); }
.aurora::after { width: 45vw; height: 45vw; max-width: 620px; max-height: 620px; left: -14%; bottom: -35%; background: radial-gradient(circle, rgba(44,232,191,.4), rgba(44,232,191,0) 68%); }
@media (prefers-reduced-motion: no-preference) {
  .aurora::before { animation: aurora-a 18s ease-in-out infinite alternate; }
  .aurora::after { animation: aurora-b 22s ease-in-out infinite alternate; }
}
@keyframes aurora-a { to { transform: translate(-8%, 12%) scale(1.12); } }
@keyframes aurora-b { to { transform: translate(10%, -8%) scale(1.08); } }
.grid-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); }

.sec-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 18px; }
.kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }
.sec--ink .kicker { color: var(--mint); }
.sec-head h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin-bottom: 18px; }
.sec-head p { font-size: clamp(1rem, 1.4vw, 1.12rem); max-width: 60ch; }
.sec-head.center p { margin: 0 auto; }
.sec-foot { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.sec-foot.center { justify-content: center; }

/* ---------- Hero de la home ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 88px) 0 0; text-align: center; overflow: hidden; isolation: isolate; }
.hero-glow { position: absolute; inset: -10% -10% auto; height: 110%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 45% 45% at 82% 12%, rgba(1,212,205,.22), transparent 70%),
    radial-gradient(ellipse 40% 40% at 12% 38%, rgba(44,232,191,.16), transparent 70%);
}
.hero-x { position: absolute; z-index: -1; width: clamp(280px, 42vw, 620px); aspect-ratio: 1; right: -8%; top: -6%; opacity: .07; pointer-events: none; }
.hero h1 { font-size: clamp(2.6rem, 7.4vw, 5.6rem); font-weight: 800; letter-spacing: -.05em; line-height: 1.06; max-width: 14ch; margin: 0 auto 26px; }
.hero h1 .l2 { display: block; }
.hero-chips { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0; row-gap: 6px; }
.hero-chips li {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 18px; background: transparent; border: 0; color: var(--text);
  font-size: clamp(1.15rem, 2.8vw, 1.55rem); font-weight: 700; letter-spacing: -.03em; text-transform: uppercase; line-height: 1.1;
}
.hero-chips li + li::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line-strong); }
.hero-chips li.is-accent { color: var(--teal); }
.hero-chips li.is-accent span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 900px) { .hero-chips li { padding: 4px 12px; } }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 46ch; margin: 0 auto 30px; color: var(--text-soft); }
.hero-ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.hero-legal { font-size: .8rem; color: var(--text-faint); margin-bottom: clamp(40px, 6vw, 64px); }

/* Revelat de titulars paraula a paraula */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .1em .04em .22em; margin: -.1em -.04em -.22em; }
.split.is-done .w { overflow: visible; }
.split .w > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .js .split .w > span { transform: translateY(105%); animation: word-up .9s var(--ease-out) forwards; animation-delay: calc(.08s + var(--i) * 55ms); }
  .js .hero-rise { opacity: 0; transform: translateY(14px); animation: rise .8s var(--ease-out) forwards; animation-delay: calc(.35s + var(--d, 0) * 90ms); }
}
@keyframes word-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Targetes en ventall (hero) ---------- */
.item-stage { position: relative; max-width: 1100px; margin: 0 auto; height: 440px; perspective: 1200px; }
.real-card-head { display: flex; gap: 5px; margin-bottom: 14px; }
.real-card-head span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.35); }
.item-card {
  position: absolute; border-radius: 18px; padding: 22px 20px; text-align: left;
  box-shadow: 0 30px 60px -28px rgba(7,9,10,.55), 0 2px 0 rgba(255,255,255,.05) inset;
  width: 255px; height: 380px; display: flex; flex-direction: column; overflow: hidden;
  transform-origin: center center; color: #fff; text-decoration: none;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .35s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .js .item-stage .item-card { opacity: 0; translate: 0 60px; animation: fan-in 1s var(--ease-out) forwards; animation-delay: calc(.5s + var(--fi, 0) * 90ms); }
}
@keyframes fan-in { to { opacity: 1; translate: 0 0; } }
.item-stage:has(.item-card:hover) .item-card:not(:hover) { transform: translate(calc(var(--sx, 0px) * .35), calc(var(--sy, 0px) * .2)); opacity: .82; }
.item-stage .item-card:hover, .item-stage .item-card:focus-visible { transform: translateY(-16px) scale(1.05); box-shadow: 0 40px 70px -26px rgba(7,9,10,.6); z-index: 20 !important; opacity: 1; }
.item-card .ic-kicker { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .72; margin-bottom: 8px; }
.item-card .ic-badge { display: inline-flex; align-self: flex-start; font-size: .68rem; font-weight: 700; padding: 5px 10px; border-radius: var(--r-pill); background: rgba(7,9,10,.18); margin-bottom: 10px; }
.item-card .ic-metric { font-size: 2.6rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; margin-top: auto; }
.item-card .ic-sub { font-size: .84rem; opacity: .85; margin-top: 6px; }
.mini-chart { width: 100%; height: 76px; margin: 8px 0 4px; }
.mini-chart .chart-area { fill: rgba(7,9,10,.14); }
.mini-chart polyline { stroke: var(--ink); }
.item-card.fan-grad { background: var(--grad); color: var(--ink); }
.item-card.fan-grad .real-card-head span { background: rgba(7,9,10,.25); }
.item-card.dark { background: linear-gradient(165deg, var(--ink-3), var(--ink)); border: 1px solid var(--ink-line); }
.item-card .ic-chat { display: flex; flex-direction: column; gap: 8px; flex: 1; justify-content: flex-end; }
.item-card .ic-bubble { max-width: 92%; padding: 9px 12px; border-radius: 14px; font-size: .8rem; line-height: 1.38; }
.item-card .ic-bubble.user { align-self: flex-end; background: rgba(255,255,255,.12); border-radius: 14px 14px 4px 14px; }
.item-card .ic-bubble.ai { align-self: flex-start; background: var(--grad); color: var(--ink); border-radius: 4px 14px 14px 14px; font-weight: 600; }
.item-card.fan-client { padding: 18px 16px 0; }
.item-card.fan-client-td { background: #E10600; padding: 0; }
.item-card.fan-client-td .ic-td-top { background: #000; padding: 16px 16px 14px; flex-shrink: 0; }
.item-card.fan-client-td .ic-td-bottom { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 0 16px; }
.item-card.fan-client-td .ic-brand { margin: 0; min-height: 0; }
.item-card.fan-client-td .ic-brand-logo { height: 36px; }
.item-card.fan-client-tp { background: #0A0A0A; }
.item-card.fan-client-bk { background: #fff; color: #111; border: 1px solid var(--line); padding: 18px 16px 16px; }
.item-card.fan-client-bk .real-card-head span { background: rgba(0,0,0,.16); }
.item-card.fan-client-bk .ic-brand { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; background: #0B1F12; color: #fff; border-radius: 8px; padding: 7px 11px 7px 8px; margin-bottom: 14px; min-height: 0; }
.item-card.fan-client-bk .ic-brand-logo { height: 18px; width: 18px; border-radius: 4px; }
.item-card.fan-client-bk .ic-brand-word { font-size: .95rem; font-weight: 700; letter-spacing: -.03em; color: #fff; }
.item-card.fan-client-bk .ic-tablet { position: relative; width: 108%; margin: 4px 0 12px -4%; aspect-ratio: 16/10; border-radius: 12px; background: #111; border: 2px solid #2a2a2a; box-shadow: 0 14px 32px rgba(0,0,0,.22); overflow: hidden; transform: perspective(700px) rotateX(8deg) rotateY(-4deg) rotate(-2deg); flex-shrink: 0; }
.item-card.fan-client-bk .ic-tablet-screen { position: absolute; inset: 5px; border-radius: 6px; background-size: cover; background-position: center top; background-color: #0a0a0a; }
.item-card.fan-client-bk .ic-brand-tag { color: #333; margin: auto 0 0; font-size: .78rem; font-weight: 500; line-height: 1.35; opacity: 1; }
.item-card .ic-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; min-height: 40px; }
.item-card .ic-brand-logo { display: block; height: 36px; width: auto; max-width: 100%; object-fit: contain; }
.item-card.fan-client-tp .ic-brand { justify-content: center; margin-bottom: 8px; }
.item-card.fan-client-tp .ic-brand-logo { height: 48px; }
.item-card .ic-brand-word { font-size: 1.15rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.item-card.fan-client-tp .ic-brand-word { font-size: 1.55rem; font-weight: 800; letter-spacing: -.045em; }
.item-card .ic-brand-tag { font-size: .72rem; line-height: 1.35; opacity: .88; margin-bottom: 12px; font-weight: 500; }
.item-card.fan-client-tp .ic-brand-tag { text-align: center; margin-bottom: 10px; }
.item-card .ic-phone { position: relative; width: 78%; margin: auto auto -18px; aspect-ratio: 9/17; border-radius: 18px 18px 0 0; background: #111; border: 2px solid rgba(255,255,255,.22); border-bottom: 0; box-shadow: 0 12px 28px rgba(0,0,0,.35); overflow: hidden; transform: perspective(600px) rotateY(-8deg) rotateX(4deg); flex-shrink: 0; }
.item-card.fan-client-tp .ic-phone { transform: perspective(600px) rotateY(8deg) rotateX(4deg); }
.item-card .ic-phone::before { content: ""; position: absolute; top: 7px; left: 50%; width: 28%; height: 4px; transform: translateX(-50%); border-radius: 999px; background: rgba(255,255,255,.25); z-index: 2; }
.item-card .ic-phone-screen { position: absolute; inset: 0; background-size: cover; background-position: center top; }

/* Mòbil: el ventall es converteix en un carrusel lliscant */
@media (max-width: 900px) {
  .item-stage { height: auto; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px var(--gutter) 34px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .item-stage::-webkit-scrollbar { display: none; }
  .item-card { position: relative; left: auto !important; top: auto !important; rotate: 0deg !important; flex: 0 0 236px; height: 350px; scroll-snap-align: center; }
  .item-stage:has(.item-card:hover) .item-card:not(:hover) { transform: none; opacity: 1; }
  .item-stage .item-card:hover { transform: none; }
}

/* ---------- Xifres (home) ---------- */
.stats-row { padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 7vw, 88px); text-align: center; }
.stats-row h2 { font-size: clamp(1.7rem, 3.6vw, 2.8rem); font-weight: 700; max-width: 22ch; margin: 0 auto 48px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 980px; margin: 0 auto; }
.stat { padding: 26px 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; transition: transform .45s var(--ease), border-color .3s; }
.stat:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.stat .ks-ico { width: 30px; height: 30px; margin: 0 auto 14px; color: var(--teal); }
.stat .ks-ico svg { width: 100%; height: 100%; }
.stat .ks-num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .ks-label { font-size: .84rem; color: var(--text-soft); margin-top: 8px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Confiança (logos) ---------- */
.trust-heading { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 16ch; margin-bottom: 40px; }
.trust-label { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mint); margin-bottom: 16px; display: block; }
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink-line); border-left: 1px solid var(--ink-line); }
.logo-item { position: relative; display: flex; align-items: center; justify-content: center; min-height: 116px; padding: 20px; border-right: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line); transition: background .3s; }
.logo-item img { height: 36px; width: auto; filter: brightness(0) invert(1); opacity: .82; transition: opacity .3s, transform .45s var(--ease); }
.logo-item:hover { background: rgba(255,255,255,.04); }
.logo-item:hover img { opacity: 1; transform: scale(1.06); }
.logo-item-next { color: var(--ink-soft); cursor: pointer; overflow: hidden; }
.logo-item-next::before { content: ""; position: absolute; inset: 0; background: var(--grad); transform: translateY(101%); transition: transform .5s var(--ease); }
.logo-item-next-icon { position: relative; font-size: 2.2rem; font-weight: 300; line-height: 1; transition: opacity .25s, transform .4s var(--ease); }
.logo-item-next-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 16px; font-size: .88rem; font-weight: 700; color: var(--ink); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .45s var(--ease); }
.logo-item-next:hover::before, .logo-item-next:focus-visible::before { transform: none; }
.logo-item-next:hover .logo-item-next-icon, .logo-item-next:focus-visible .logo-item-next-icon { opacity: 0; transform: scale(.6); }
.logo-item-next:hover .logo-item-next-text, .logo-item-next:focus-visible .logo-item-next-text { opacity: 1; transform: none; }
@media (max-width: 700px) { .logo-grid { grid-template-columns: 1fr 1fr; } .logo-item { min-height: 96px; } }
@media (hover: none) { .logo-item-next::before { transform: none; } .logo-item-next-icon { display: none; } .logo-item-next-text { opacity: 1; transform: none; } }

/* ---------- Comparativa ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare-col { position: relative; border-radius: var(--r-lg); padding: clamp(26px, 3.4vw, 40px); overflow: hidden; }
.compare-col.no { background: var(--mist); border: 1px solid var(--line); }
.compare-col.yes { background: var(--ink); color: #fff; isolation: isolate; }
.compare-col.yes::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.compare-col.yes::after { content: ""; position: absolute; width: 70%; aspect-ratio: 1; right: -30%; top: -40%; border-radius: 50%; background: radial-gradient(circle, rgba(1,212,205,.3), transparent 65%); z-index: -1; }
.compare-head { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.compare-head .ico { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.compare-col.no .ico { background: #fff; border: 1px solid var(--line); }
.compare-col.no .ico svg { width: 20px; height: 20px; stroke: var(--text-faint); stroke-linecap: round; }
.compare-col.yes .ico { background: var(--grad); }
.compare-col.yes .ico svg { width: 20px; height: 20px; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; }
.compare-col h3 { font-size: 1.35rem; margin: 0; }
.compare-col.yes h3 { color: #fff; }
.compare-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.compare-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 1rem; line-height: 1.45; }
.compare-col.no li { color: var(--text-soft); }
.compare-col.yes li { color: rgba(255,255,255,.88); }
.compare-list .mark { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.compare-col.no .mark { background: #fff; border: 1px solid var(--line); }
.compare-col.no .mark svg { width: 10px; height: 10px; stroke: var(--text-faint); stroke-width: 2.4; stroke-linecap: round; }
.compare-col.yes .mark { background: var(--grad); }
.compare-col.yes .mark svg { width: 11px; height: 11px; stroke: var(--ink); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 800px) { .compare { grid-template-columns: 1fr; } }

/* ---------- Targetes enllaçables (pilars, mòduls, capítols) ---------- */
.card-link {
  position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); padding: clamp(24px, 3vw, 34px);
  background: #fff; border: 1px solid var(--line); overflow: hidden; isolation: isolate; color: var(--text);
  transition: transform .5s var(--ease), border-color .3s, box-shadow .5s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.card-link::after { /* focus de llum que segueix el cursor */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(1,212,205,.14), transparent 60%);
}
.card-link:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 30px 60px -36px rgba(7,9,10,.35); }
.card-link:hover::after { opacity: 1; }
.card-link:active { transform: scale(.985); }
.card-link .go { position: absolute; top: clamp(20px, 2.6vw, 28px); right: clamp(20px, 2.6vw, 28px); width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; transition: background .35s, border-color .35s, transform .5s var(--ease); }
.card-link .go svg { width: 16px; height: 16px; transition: transform .45s var(--ease); }
.card-link:hover .go { background: var(--ink); border-color: var(--ink); color: #fff; transform: rotate(-45deg); }
.card-num { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 16px; padding-right: 52px; }
.card-link h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin-bottom: 12px; padding-right: 44px; }
.card-link p { font-size: .96rem; margin-bottom: 18px; }
.card-link .more { margin-top: auto; font-size: .86rem; font-weight: 700; color: var(--teal-ink); display: inline-flex; align-items: center; gap: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-bottom: 18px; }
.tags li { font-size: .76rem; font-weight: 600; padding: 6px 12px; border-radius: var(--r-pill); background: var(--mist); border: 1px solid var(--line); }
.sec--mist .card-link { background: #fff; }
.pillars-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.modules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.chapter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.chapter-grid .card-link { min-height: 240px; }
.chapter-grid .card-link h3 { font-size: 1.35rem; }
@media (max-width: 980px) { .modules-grid, .chapter-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .pillars-grid, .modules-grid, .chapter-grid { grid-template-columns: 1fr; } .chapter-grid .card-link { min-height: 0; } }

/* ---------- Bento (solucions) ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 300px; gap: 16px; }
.bento-card { position: relative; background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; overflow: hidden; color: #fff; isolation: isolate; transition: transform .5s var(--ease), border-color .3s; }
.bento-card::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(1,212,205,.18), transparent 60%); }
.bento-card:hover { border-color: rgba(1,212,205,.35); }
.bento-card:hover::after { opacity: 1; }
.bento-card.b-lg { grid-column: span 2; grid-row: span 2; }
.bento-card.b-md, .bento-card.b-sm { grid-column: span 2; }
.bento-body { flex-shrink: 0; margin-top: 18px; display: flex; align-items: flex-start; gap: 14px; }
.bento-card h3 { font-size: 1.15rem; font-weight: 650; color: #fff; letter-spacing: -.02em; }
.bento-card p { font-size: .88rem; margin-top: 6px; color: var(--ink-soft); line-height: 1.5; }
.bento-card .ico { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid var(--ink-line); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .35s; }
.bento-card .ico svg { width: 18px; height: 18px; stroke: #fff; }
.bento-card:hover .ico { background: var(--grad); }
.bento-card:hover .ico svg { stroke: var(--ink); }
.bento-card .bento-go { margin-left: auto; align-self: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--ink-line); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .3s, transform .45s var(--ease); }
.bento-card .bento-go svg { width: 14px; height: 14px; stroke: #fff; }
.bento-card:hover .bento-go { background: #fff; transform: rotate(-45deg); }
.bento-card:hover .bento-go svg { stroke: var(--ink); }
.bento-visual { position: relative; flex: 1; min-height: 96px; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.07); background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,0) 60%), rgba(255,255,255,.02); }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento-card.b-lg, .bento-card.b-md, .bento-card.b-sm { grid-column: auto; grid-row: auto; }
  .bento-visual { min-height: 190px; flex: none; }
  .bento-card.b-lg .bento-visual { min-height: 280px; }
}
.viz-browser { position: absolute; inset: 14px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); overflow: hidden; display: flex; flex-direction: column; }
.viz-browser-bar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid rgba(255,255,255,.06); flex-shrink: 0; }
.viz-browser-bar .dots { display: flex; gap: 5px; }
.viz-browser-bar .dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.18); }
.viz-browser-bar .url { font-size: .58rem; color: #7A8487; background: rgba(255,255,255,.05); border-radius: 6px; padding: 2px 8px; }
.viz-browser-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.viz-site-nav { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.viz-site-brand { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: .82rem; color: #F3F3F5; }
.viz-site-brand .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--aqua); flex-shrink: 0; }
.viz-site-cta { background: var(--grad); color: var(--ink); font-weight: 700; font-size: .6rem; padding: 5px 11px; border-radius: 999px; }
.viz-hero-block { position: relative; flex: 1; min-height: 74px; border-radius: 8px; overflow: hidden; background: #122; display: flex; flex-direction: column; justify-content: flex-end; padding: 12px; }
.viz-hero-block::before { content: ""; position: absolute; inset: -25%; background: radial-gradient(circle at 22% 28%, rgba(1,159,184,.8), transparent 42%), radial-gradient(circle at 80% 12%, rgba(44,232,191,.7), transparent 30%), linear-gradient(160deg, #1b2a2e, #0b1113 100%); filter: blur(14px); transform: scale(1.12); }
.viz-hero-block::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 38%, rgba(0,0,0,.55) 100%); }
.viz-hero-headline { position: relative; z-index: 1; color: #fff; font-weight: 700; font-size: .92rem; line-height: 1.24; }
.viz-hero-sub { position: relative; z-index: 1; color: rgba(255,255,255,.85); font-size: .6rem; margin-top: 4px; }
.viz-feature-row { display: flex; gap: 6px; flex-wrap: wrap; flex-shrink: 0; }
.viz-feature-chip { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); border-radius: 8px; padding: 5px 9px; font-size: .6rem; color: #C7CDCF; }
.viz-photo-row { display: flex; gap: 6px; flex-shrink: 0; }
.viz-photo { flex: 1; height: 28px; border-radius: 7px; }
.viz-photo.p1 { background: linear-gradient(135deg, #1d3a3f, #0d1a1c); }
.viz-photo.p2 { background: linear-gradient(135deg, #2a5358, #13272a); }
.viz-photo.p3 { background: linear-gradient(135deg, #20464b, #0d1a1c); }
.viz-chat { position: absolute; inset: 14px; display: flex; flex-direction: column; gap: 9px; justify-content: flex-end; }
.viz-msg-user { align-self: flex-end; background: rgba(255,255,255,.1); border-radius: 12px 12px 3px 12px; padding: 7px 11px; font-size: .68rem; color: #E4E8E8; max-width: 82%; }
.viz-msg-ai { display: flex; gap: 8px; align-items: flex-start; }
.viz-ai-avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.viz-ai-avatar svg { width: 11px; height: 11px; fill: var(--ink); }
.viz-msg-ai-bubble { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.09); border-radius: 3px 12px 12px 12px; padding: 9px 12px; font-size: .68rem; color: #C7CDCF; line-height: 1.55; }
.viz-msg-ai-bubble b { color: var(--mint); font-weight: 700; }
.viz-map-solo { position: absolute; inset: 14px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); overflow: hidden; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 22px 22px; }
.viz-map-dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #3E4A4D; transform: translate(-50%, -50%); }
.viz-pin-wrap { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; }
.viz-pin-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(1,212,205,.55); opacity: .35; transform: scale(.85); }
.viz-pin { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px -8px rgba(1,212,205,.6); }
.viz-pin svg { width: 14px; height: 14px; stroke: var(--ink); }
.viz-social { position: absolute; inset: 14px; display: flex; gap: 10px; }
.viz-app-card { flex: 1; min-width: 0; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.viz-app-head { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.viz-app-head .app-icon { width: 18px; height: 18px; border-radius: 5px; flex-shrink: 0; }
.viz-app-head span { font-size: .6rem; color: #C7CDCF; font-weight: 600; }
.viz-ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 4px; flex: 1; }
.viz-ig-grid .g { border-radius: 4px; background: rgba(255,255,255,.08); }
.viz-ig-grid .g:nth-child(1) { background: linear-gradient(135deg, #2CE8BF, #019FB8); opacity: .75; }
.viz-ig-grid .g:nth-child(4) { background: linear-gradient(135deg, #1d3a3f, #0d1a1c); }
.viz-ig-grid .g:nth-child(6) { background: linear-gradient(135deg, #01D4CD, #0d1a1c); opacity: .6; }
.viz-tiktok-video { position: relative; flex: 1; border-radius: 8px; background: linear-gradient(160deg, #1c2a2d, #0d1214); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.viz-tiktok-video svg { width: 20px; height: 20px; fill: rgba(255,255,255,.9); }
.viz-tiktok-stats { position: absolute; bottom: 6px; right: 7px; display: flex; align-items: center; gap: 3px; font-size: .56rem; color: rgba(255,255,255,.75); }
.viz-tiktok-stats svg { width: 9px; height: 9px; fill: #fff; }
.viz-flow { position: absolute; inset: 14px; display: flex; align-items: center; justify-content: center; }
.viz-flow-step { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 84px; }
.viz-flow-line { position: relative; width: 22px; height: 1px; background: rgba(255,255,255,.16); flex-shrink: 0; margin-top: -30px; }
.viz-flow-line::after { content: ""; position: absolute; top: -1.5px; left: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--aqua); transform: translateX(-50%); }
.viz-node { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); }
.viz-node svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 1.8; }
.viz-node.done { background: var(--grad); border: 0; }
.viz-node.done svg { stroke: var(--ink); stroke-width: 2.2; }
.viz-flow-label { font-size: .62rem; color: #E4E8E8; text-align: center; line-height: 1.3; font-weight: 700; }
.viz-flow-sub { font-size: .55rem; color: #8A9396; text-align: center; line-height: 1.3; }
@keyframes viz-photo-drift { 0% { transform: scale(1.12) translate(0, 0); } 100% { transform: scale(1.2) translate(-2%, 2%); } }
@keyframes viz-avatar-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(1,212,205,.35); } 50% { box-shadow: 0 0 0 6px rgba(1,212,205,0); } }
@keyframes viz-pulse-ring { 0% { transform: scale(.55); opacity: .8; } 70% { opacity: 0; } 100% { transform: scale(1); opacity: 0; } }
@keyframes viz-play-pulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes viz-flow-travel { 0% { left: 0; opacity: 0; transform: none; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .viz-hero-block::before { animation: viz-photo-drift 12s ease-in-out infinite alternate; }
  .viz-ai-avatar { animation: viz-avatar-glow 2.6s ease-in-out infinite; }
  .viz-pin-ring { animation: viz-pulse-ring 3.2s ease-out infinite; opacity: 1; transform: scale(.55); }
  .viz-pin-ring:nth-of-type(2) { animation-delay: 1.6s; }
  .viz-tiktok-video svg { animation: viz-play-pulse 2.8s ease-in-out infinite; }
  .viz-flow-line::after { left: 0; transform: none; animation: viz-flow-travel 2.4s linear infinite; animation-delay: var(--dot-delay, 0s); }
}

/* ---------- Banda CTA ---------- */
.cta-band { position: relative; border-radius: calc(var(--r-lg) + 6px); padding: clamp(32px, 5vw, 64px); background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 1.3fr auto; gap: 28px; align-items: center; }
.cta-band h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); color: #fff; margin-bottom: 12px; }
.cta-band p { color: var(--ink-soft); max-width: 48ch; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .x-deco { position: absolute; right: -40px; bottom: -80px; width: 320px; opacity: .12; z-index: -1; transform: rotate(-8deg); }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Procés (línia de temps) ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 30px; height: 2px; background: var(--line); }
.timeline .tl-fill { position: absolute; left: 0; right: 0; top: 30px; height: 2px; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--tl, 0)); transition: transform 1.4s var(--ease-out); }
.timeline.is-visible .tl-fill { --tl: 1; }
.step { position: relative; padding-top: 70px; }
.step .dot { position: absolute; top: 14px; left: 0; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 2px solid var(--line-strong); display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 800; transition: background .4s, border-color .4s, color .4s; transition-delay: calc(var(--si, 0) * 380ms + 200ms); }
.timeline.is-visible .step .dot { background: var(--ink); border-color: var(--ink); color: #fff; }
.step-card { position: relative; border-radius: var(--r-lg); padding: 28px 26px; background: #fff; border: 1px solid var(--line); height: 100%; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.step-card:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -38px rgba(7,9,10,.4); }
.step-card .step-num { position: absolute; right: -.04em; bottom: -.22em; font-weight: 800; font-size: 7rem; line-height: 1; letter-spacing: -.06em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .16; pointer-events: none; transition: opacity .4s; }
.step-card:hover .step-num { opacity: .32; }
.step-card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--mist); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.step-card .ico svg { width: 20px; height: 20px; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; }
.step-card .tag { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 10px; }
.step-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.step-card p { font-size: .95rem; position: relative; }
.sec--ink .step-card { background: var(--ink-2); border-color: var(--ink-line); }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; gap: 14px; padding-left: 48px; }
  .timeline::before, .timeline .tl-fill { left: 16px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .timeline .tl-fill { transform-origin: 50% 0; transform: scaleY(var(--tl, 0)); }
  .step { padding-top: 0; }
  .step .dot { left: -48px; top: 22px; }
}

/* ---------- Garanties (xifres fosques) ---------- */
.stat-strip { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 16px; }
.stat-tile { border-radius: var(--r-lg); padding: clamp(28px, 4vw, 44px) 24px; text-align: center; background: rgba(255,255,255,.035); border: 1px solid var(--ink-line); }
.stat-tile .cr-num { display: block; font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.4rem); color: #fff; letter-spacing: -.05em; line-height: 1; }
.stat-tile.big { background: var(--grad); border: 0; }
.stat-tile.big .cr-num { color: var(--ink); font-size: clamp(2.8rem, 6vw, 4.2rem); }
.stat-tile .cr-label { display: block; font-size: .86rem; color: var(--ink-soft); margin-top: 12px; }
.stat-tile.big .cr-label { color: rgba(7,9,10,.72); font-weight: 600; }
.calc-disclaimer { font-size: .86rem; margin-top: 22px; }
@media (max-width: 800px) { .stat-strip { grid-template-columns: 1fr; } }

/* ---------- Preus ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.price-card { position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px 26px 26px; display: flex; flex-direction: column; background: #fff; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; }
.price-card:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -38px rgba(7,9,10,.4); border-color: var(--line-strong); }
.price-card.featured { background: var(--ink); color: #fff; border-color: transparent; isolation: isolate; overflow: hidden; }
.price-card.featured::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.price-card.featured::after { content: ""; position: absolute; width: 80%; aspect-ratio: 1; right: -40%; top: -40%; border-radius: 50%; background: radial-gradient(circle, rgba(1,212,205,.3), transparent 65%); z-index: -1; }
.price-card.featured h3 { color: #fff; }
.price-card.featured .tagline, .price-card.featured .price-ideal { color: var(--ink-soft); }
.price-badge { align-self: flex-start; background: var(--grad); color: var(--ink); font-size: .72rem; padding: 5px 12px; border-radius: var(--r-pill); font-weight: 700; margin-bottom: 18px; }
.price-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.price-card .tagline { font-size: .9rem; color: var(--text-soft); margin-bottom: 14px; }
.price-req { display: inline-flex; align-self: flex-start; font-size: .74rem; font-weight: 600; color: var(--teal-ink); background: rgba(1,212,205,.1); border-radius: var(--r-pill); padding: 5px 10px; margin-bottom: 14px; line-height: 1.35; }
.price-ideal { font-size: .88rem; color: var(--text-soft); margin-bottom: 22px; line-height: 1.5; }
.price-actions { margin-top: auto; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.price-actions .btn { width: 100%; }
.price-card.featured .link-arrow { color: #fff; }
.pricing-combos { margin-top: 28px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--mist); }
.combos-label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 12px; }
.combos-row { display: flex; flex-wrap: wrap; gap: 10px; }
.combo { display: flex; gap: 8px; align-items: baseline; padding: 10px 16px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); font-size: .9rem; }
.combo strong { font-weight: 700; }
.combo span { color: var(--text-soft); font-size: .84rem; }
.price-recurring { margin-top: 16px; padding: 24px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); display: grid; grid-template-columns: 1.2fr auto; gap: 24px; align-items: center; }
.price-recurring h3 { font-size: 1.25rem; margin-bottom: 8px; }
.price-recurring p { font-size: .93rem; margin: 0; }
.price-recurring .alt { margin-top: 8px; font-size: .84rem; color: var(--text-soft); }
.pricing-trust { display: flex; justify-content: center; gap: 12px 28px; flex-wrap: wrap; margin-top: 40px; }
.pricing-trust-item { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--text); font-weight: 500; }
.check { width: 18px; height: 18px; border-radius: 50%; background: var(--grad); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.check svg { width: 10px; height: 10px; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.pricing-note { text-align: center; font-size: .88rem; margin-top: 18px; }
.pricing-decide { text-align: center; font-size: .96rem; color: var(--text); margin-top: 14px; }
.pricing-decide a { color: var(--teal-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }
@media (max-width: 980px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .pricing-grid { grid-template-columns: 1fr; } .price-recurring { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 1fr 300px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; font-weight: 650; font-size: clamp(1.02rem, 1.6vw, 1.18rem); letter-spacing: -.02em; cursor: pointer; list-style: none; transition: color .2s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--teal-ink); }
.faq-icon { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform .45s var(--ease), background .3s, border-color .3s; }
.faq-icon svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.faq-body { overflow: hidden; }
.faq-item p { padding: 0 56px 24px 0; font-size: 1rem; max-width: 70ch; }
.faq-aside { position: sticky; top: calc(var(--header-h) + 24px); border-radius: var(--r-lg); background: var(--mist); border: 1px solid var(--line); padding: 24px; }
.faq-aside h3 { font-size: 1rem; margin-bottom: 14px; }
.faq-aside ul { list-style: none; display: flex; flex-direction: column; }
.faq-aside a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); font-size: .9rem; font-weight: 500; transition: color .2s, padding .35s var(--ease); }
.faq-aside a:hover { color: var(--teal-ink); padding-left: 6px; }
.faq-aside a svg { width: 14px; height: 14px; flex-shrink: 0; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } .faq-aside { position: static; } .faq-item p { padding-right: 0; } }

/* ---------- Contacte ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-checklist { list-style: none; display: flex; flex-direction: column; gap: 14px; margin: 8px 0 30px; }
.contact-checklist li { display: flex; align-items: flex-start; gap: 12px; font-size: 1rem; color: var(--text); }
.contact-checklist .check { margin-top: 2px; }
.contact-quicklinks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.quicklink-card { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; transition: border-color .25s, transform .45s var(--ease); }
.quicklink-card:hover { border-color: var(--ink); transform: translateY(-3px); }
.quicklink-card .ql-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.quicklink-card .ql-icon svg { width: 18px; height: 18px; stroke: var(--ink); stroke-width: 1.7; fill: none; }
.quicklink-card strong { display: block; font-size: .94rem; font-weight: 700; }
.quicklink-card span { display: block; font-size: .8rem; color: var(--text-soft); margin-top: 2px; }
.address-card { display: flex; gap: 12px; padding: 16px; border-radius: var(--r-md); background: var(--mist); border: 1px solid var(--line); font-style: normal; font-size: .9rem; color: var(--text-soft); line-height: 1.5; }
.address-card strong { display: block; color: var(--text); font-size: .94rem; }
.address-card svg { width: 20px; height: 20px; stroke: var(--teal-ink); fill: none; stroke-width: 1.7; flex-shrink: 0; margin-top: 2px; }
.contact-form-card { position: relative; border-radius: calc(var(--r-lg) + 4px); background: var(--ink); color: #fff; padding: clamp(24px, 4vw, 40px); overflow: hidden; isolation: isolate; }
.contact-form-card::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; right: -30%; top: -30%; border-radius: 50%; background: radial-gradient(circle, rgba(1,212,205,.28), transparent 65%); z-index: -1; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: .8rem; color: var(--ink-soft); margin-bottom: 7px; font-weight: 600; }
.form-row input, .form-row textarea, .form-row select { width: 100%; font: inherit; font-size: 1rem; color: #fff; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 13px 14px; resize: vertical; transition: border-color .2s, background .2s, box-shadow .2s; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: none; border-color: var(--aqua); background: rgba(255,255,255,.08); box-shadow: 0 0 0 4px rgba(1,212,205,.16); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.contact-form .btn { width: 100%; margin-top: 6px; }
.form-note { font-size: .82rem; margin-top: 12px; min-height: 1em; color: var(--ink-soft); }
.form-note a { color: #fff; text-decoration: underline; }
.form-note.is-error { color: #FFB4A8; font-weight: 600; }
.form-note.is-ok { color: var(--mint); font-weight: 600; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .contact-quicklinks, .form-2 { grid-template-columns: 1fr; } }

/* ---------- Capçalera de pàgina interna ---------- */
.page-hero { position: relative; padding: clamp(28px, 5vw, 56px) 0 clamp(48px, 7vw, 88px); overflow: hidden; isolation: isolate; }
.page-hero .hero-glow { height: 140%; }
.page-hero h1 { font-size: clamp(2.3rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -.05em; line-height: 1.08; max-width: 18ch; margin-bottom: 22px; }
.page-hero .lead { font-size: clamp(1.02rem, 1.5vw, 1.2rem); max-width: 60ch; margin-bottom: 30px; }
.page-hero .hero-ctas { justify-content: flex-start; }
.page-hero .x-mark { position: absolute; right: -4%; top: 50%; width: clamp(200px, 30vw, 420px); transform: translateY(-50%) rotate(-6deg); opacity: .08; z-index: -1; pointer-events: none; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .82rem; color: var(--text-faint); margin-bottom: clamp(24px, 4vw, 40px); list-style: none; }
.crumbs a { color: var(--text-soft); transition: color .2s; }
.crumbs a:hover { color: var(--teal-ink); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs [aria-current] { color: var(--text); font-weight: 600; }

/* ---------- Pàgina de mòdul ---------- */
.includes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; list-style: none; counter-reset: inc; }
.includes li { position: relative; display: flex; gap: 16px; padding: 22px 22px 22px 20px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); font-size: .98rem; color: var(--text); line-height: 1.55; transition: transform .5s var(--ease), border-color .3s; }
.includes li:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.includes li::before { counter-increment: inc; content: counter(inc, decimal-leading-zero); flex-shrink: 0; font-weight: 800; font-size: .82rem; letter-spacing: .02em; width: 36px; height: 36px; border-radius: 10px; background: var(--grad); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.includes li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 760px) { .includes { grid-template-columns: 1fr; } }
.forwho { max-width: 900px; }
.forwho blockquote { font-size: clamp(1.35rem, 2.8vw, 2.1rem); font-weight: 650; letter-spacing: -.03em; line-height: 1.3; color: #fff; }
.forwho blockquote::before { content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--grad); margin-bottom: 26px; }
.module-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.module-nav a { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; transition: border-color .3s, transform .5s var(--ease); }
.module-nav a:hover { border-color: var(--ink); transform: translateY(-3px); }
.module-nav .dir { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); display: flex; align-items: center; gap: 8px; }
.module-nav .dir svg { width: 14px; height: 14px; }
.module-nav .t { font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; }
.module-nav .next { text-align: right; align-items: flex-end; }
@media (max-width: 640px) { .module-nav { grid-template-columns: 1fr; } .module-nav .next { text-align: left; align-items: flex-start; } }

/* ---------- Capítol següent ---------- */
.next-chapter { display: block; position: relative; padding: clamp(56px, 9vw, 120px) 0; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.next-chapter .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.next-chapter .k { display: flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mint); margin-bottom: 18px; }
.next-chapter .k::before { content: ""; width: 18px; height: 2px; background: var(--grad); border-radius: 2px; }
.next-chapter .big { display: block; font-size: clamp(2.6rem, 9vw, 7.4rem); font-weight: 800; letter-spacing: -.06em; line-height: .92; color: #fff; transition: transform .7s var(--ease); }
.next-chapter .sub { display: block; margin-top: 16px; font-size: 1rem; color: var(--ink-soft); max-width: 46ch; }
.next-chapter .circle { width: clamp(64px, 9vw, 116px); aspect-ratio: 1; flex-shrink: 0; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.3); display: flex; align-items: center; justify-content: center; transition: background .45s, border-color .45s, transform .7s var(--ease); }
.next-chapter .circle svg { width: 36%; height: 36%; stroke: #fff; transition: transform .6s var(--ease), stroke .3s; }
.next-chapter::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad); transform: translateY(101%); transition: transform .8s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .next-chapter:hover::before { transform: translateY(0); }
  .next-chapter:hover .big { color: var(--ink); transform: translateX(12px); }
  .next-chapter:hover .k, .next-chapter:hover .sub { color: var(--ink); }
  .next-chapter:hover .k::before { background: var(--ink); }
  .next-chapter:hover .circle { background: var(--ink); border-color: var(--ink); transform: rotate(-45deg); }
  .next-chapter:hover .aurora { opacity: 0; }
}
.next-chapter:active .circle { transform: scale(.94); }
.next-chapter .aurora { transition: opacity .5s; }

/* ---------- Peu ---------- */
.site-footer { position: relative; background: var(--ink); color: var(--ink-text); padding: clamp(56px, 8vw, 88px) 0 0; overflow: hidden; border-top: 1px solid var(--ink-line); }
.footer-top { display: grid; grid-template-columns: 1.4fr 2fr; gap: 48px; padding-bottom: 48px; }
.footer-brand img { height: 28px; width: auto; }
.footer-brand p { color: var(--ink-soft); max-width: 34ch; margin-top: 16px; font-size: .93rem; }
.footer-brand .btn { margin-top: 24px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.footer-col h4 { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 16px; }
.footer-col a, .footer-col address { display: block; font-size: .9rem; color: rgba(255,255,255,.78); margin-bottom: 10px; font-style: normal; line-height: 1.45; transition: color .2s; }
.footer-col a:hover { color: var(--mint); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 22px 0; border-top: 1px solid var(--ink-line); font-size: .82rem; color: rgba(255,255,255,.45); position: relative; z-index: 1; }
.footer-bottom .lang-switch { border-color: var(--ink-line); }
.footer-bottom .lang-switch a { color: rgba(255,255,255,.55); }
.footer-bottom .lang-switch a[aria-current="true"] { background: #fff; color: var(--ink); }
.footer-giant { display: block; font-weight: 800; font-size: clamp(4.5rem, 21vw, 18rem); line-height: .78; letter-spacing: -.07em; text-align: center; margin-bottom: -.1em; background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; pointer-events: none; }
@media (max-width: 980px) { .footer-top { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Revelat en fer scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--ri, 0) * 80ms); }
  .js [data-reveal="scale"] { transform: translateY(20px) scale(.96); }
  .js [data-reveal="left"] { transform: translateX(-30px); }
  .js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0 round var(--r-lg)); transition: clip-path 1.1s var(--ease-out); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
  .js [data-reveal="clip"].is-visible { clip-path: inset(0 0 0 0 round var(--r-lg)); }
  .js [data-reveal].is-done { transition: none; }
}

/* ---------- Transicions entre pàgines (View Transitions API) ---------- */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-out .32s var(--ease) both; }
  ::view-transition-new(root) { animation: vt-in .55s var(--ease-out) both; }
  ::view-transition-group(site-header) { animation-duration: 0s; }
}
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }
@keyframes vt-out { to { opacity: 0; transform: translateY(-14px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(22px); } }

/* ---------- Accessibilitat (widget) ---------- */
.a11y-btn { position: fixed; bottom: 24px; right: 24px; z-index: 60; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #fff; border: 1px solid rgba(255,255,255,.12); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 34px -12px rgba(7,9,10,.45); transition: transform .35s var(--ease); }
.a11y-btn:hover { transform: scale(1.06); }
.a11y-btn:active { transform: scale(.94); }
.a11y-btn svg { width: 24px; height: 24px; }
.a11y-panel { position: fixed; bottom: 24px; right: 88px; z-index: 62; width: 260px; max-width: calc(100vw - 112px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; box-shadow: 0 30px 60px -24px rgba(7,9,10,.3); display: none; }
.a11y-panel.open { display: block; animation: pop-in .35s var(--ease-out); }
.a11y-panel h4 { font-size: .72rem; text-transform: uppercase; color: var(--text-soft); margin-bottom: 10px; letter-spacing: .08em; font-weight: 700; }
.a11y-row { display: flex; gap: 8px; margin-bottom: 18px; }
.a11y-row:last-child { margin-bottom: 0; }
.a11y-opt { flex: 1; text-align: center; font-size: .82rem; font-weight: 600; padding: 9px 0; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; }
.a11y-opt.active { background: var(--ink); color: #fff; border-color: var(--ink); }
@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }

/* ---------- Assistent IA (xat) ---------- */
.pex-chat-root { position: fixed; right: 24px; bottom: 92px; z-index: 61; font-family: var(--font); }
.pex-chat-toggle { width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer; background: var(--grad); color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 16px 34px -12px rgba(1,159,184,.7); position: relative; z-index: 1; transition: transform .35s var(--ease), background .3s; }
.pex-chat-toggle:hover { transform: scale(1.06); }
.pex-chat-toggle:active { transform: scale(.94); }
.pex-chat-toggle svg { width: 26px; height: 26px; }
.pex-chat-toggle[aria-expanded="true"] { background: var(--ink); color: #fff; box-shadow: 0 14px 34px -12px rgba(7,9,10,.45); }
.pex-chat-toggle.is-attn { animation: pexChatPulse .9s ease-in-out 3; }
@keyframes pexChatPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.pex-chat-teaser { position: absolute; right: 68px; bottom: 8px; max-width: min(220px, calc(100vw - 120px)); background: var(--ink); color: #fff; font-size: .8rem; line-height: 1.35; padding: 10px 13px; border-radius: 14px 14px 4px 14px; box-shadow: 0 12px 28px -14px rgba(7,9,10,.5); animation: pop-in .4s var(--ease-out); }
.pex-chat-teaser.hidden { display: none; }
.pex-chat-panel { position: absolute; right: 0; bottom: 68px; width: min(370px, calc(100vw - 32px)); height: min(540px, calc(100svh - 180px), calc(100dvh - 180px)); max-height: calc(100dvh - 180px); background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 40px 80px -30px rgba(7,9,10,.45); display: flex; flex-direction: column; overflow: hidden; transform-origin: bottom right; animation: chat-in .45s var(--ease-out); }
@keyframes chat-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.pex-chat-panel.hidden { display: none; }
.pex-chat-view { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.pex-chat-view.hidden { display: none; }
.pex-chat-home-head { position: relative; background: var(--ink); color: #fff; padding: 24px 22px 22px; flex-shrink: 0; overflow: hidden; isolation: isolate; }
.pex-chat-home-head::after { content: ""; position: absolute; width: 220px; height: 220px; right: -70px; top: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(1,212,205,.55), transparent 65%); z-index: -1; }
.pex-chat-hello { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; margin: 0 0 6px; }
.pex-chat-home-sub { display: block; font-size: .92rem; color: rgba(255,255,255,.72); margin: 0; }
.pex-chat-home-body { flex: 1; overflow-y: auto; background: #fff; display: flex; flex-direction: column; min-height: 0; }
.pex-chat-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px 20px; border: 0; border-bottom: 1px solid var(--line); background: #fff; color: var(--text); font: inherit; font-size: .92rem; font-weight: 500; text-align: left; cursor: pointer; transition: background .2s, padding .35s var(--ease); }
.pex-chat-opt:hover { background: var(--mist); padding-left: 24px; }
.pex-chat-opt-chevron { flex-shrink: 0; width: 9px; height: 9px; border-right: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg); }
.pex-chat-opt-label { flex: 1; }
.pex-chat-ask { margin-top: auto; padding: 20px; border-top: 1px solid var(--line); flex-shrink: 0; }
.pex-chat-ask h3 { margin: 0 0 6px; font-size: 1.05rem; letter-spacing: -.02em; }
.pex-chat-ask p { margin: 0 0 14px; font-size: .84rem; line-height: 1.45; }
.pex-chat-ask-btn { display: block; width: 100%; padding: 13px 16px; border: 0; border-radius: var(--r-pill); background: var(--ink); color: #fff; font: inherit; font-size: .92rem; font-weight: 700; cursor: pointer; transition: transform .3s var(--ease); }
.pex-chat-ask-btn:hover { transform: translateY(-2px); }
.pex-chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; background: var(--ink); color: #fff; flex-shrink: 0; }
.pex-chat-head-main { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.pex-chat-back, .pex-chat-close { flex-shrink: 0; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; font-size: 1.1rem; line-height: 1; }
.pex-chat-back:hover, .pex-chat-close:hover { background: rgba(255,255,255,.2); }
.pex-chat-back svg { width: 18px; height: 18px; }
.pex-chat-head strong { font-size: .94rem; font-weight: 700; }
.pex-chat-head span { display: block; font-size: .72rem; color: rgba(255,255,255,.55); margin-top: 2px; }
.pex-chat-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--mist); min-height: 0; }
.pex-chat-bubble { max-width: 90%; padding: 10px 13px; border-radius: 14px; font-size: .88rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word; animation: bubble-in .35s var(--ease-out); }
@keyframes bubble-in { from { opacity: 0; transform: translateY(6px); } }
.pex-chat-bubble.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); color: var(--text); border-radius: 4px 14px 14px 14px; }
.pex-chat-bubble.user { align-self: flex-end; background: var(--ink); color: #fff; border-radius: 14px 14px 4px 14px; }
.pex-chat-bubble.sys { align-self: center; background: transparent; color: var(--text-soft); font-size: .76rem; text-align: center; max-width: 100%; }
.pex-chat-rate { align-self: stretch; max-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-align: center; }
.pex-chat-rate p { margin: 0 0 10px; font-size: .84rem; color: var(--text); }
.pex-chat-rate-stars { display: flex; justify-content: center; gap: 4px; margin-bottom: 8px; }
.pex-chat-rate-stars button { border: 0; background: transparent; font-size: 1.45rem; line-height: 1; cursor: pointer; color: #C9D0D1; padding: 4px; }
.pex-chat-rate-stars button:hover, .pex-chat-rate-stars button.is-on { color: var(--teal); }
.pex-chat-rate-skip { border: 0; background: transparent; color: var(--text-soft); font: inherit; font-size: .76rem; cursor: pointer; text-decoration: underline; padding: 4px 8px; }
.pex-chat-cta { display: none; margin: 0 14px 8px; text-align: center; }
.pex-chat-cta.is-on { display: block; }
.pex-chat-cta a { display: inline-flex; padding: 9px 16px; border-radius: 999px; background: var(--grad); color: var(--ink); font-size: .82rem; font-weight: 700; }
.pex-chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; flex-shrink: 0; }
.pex-chat-form input { flex: 1; min-width: 0; border: 1px solid var(--line-strong); border-radius: 999px; padding: 11px 15px; font: inherit; font-size: 16px; }
.pex-chat-form input:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.pex-chat-form button { border: 0; border-radius: 999px; padding: 10px 16px; background: var(--ink); color: #fff; font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; }
.pex-chat-form button:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 900px) {
  .pex-chat-root { right: 16px; bottom: 80px; }
  .a11y-btn { bottom: 16px; right: 16px; width: 50px; height: 50px; }
  .a11y-panel { bottom: 16px; right: 78px; }
  .pex-chat-teaser { right: 64px; max-width: min(190px, calc(100vw - 100px)); }
  .pex-chat-panel { height: min(540px, calc(100svh - 180px), calc(100dvh - 180px)); max-height: calc(100dvh - 180px); }
}
@media (prefers-reduced-motion: reduce) { .pex-chat-toggle.is-attn, .pex-chat-panel, .pex-chat-bubble, .pex-chat-teaser { animation: none; } }

/* Utilitats */
.mt-0 { margin-top: 0; }
.center { text-align: center; }

/* Degradat en titulars partits en paraules: el clip s'aplica a cada paraula */
.split .grad-text { background: none; color: inherit; }
.split .grad-text .w > span { background: var(--grad); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.split .grad-text .w:nth-child(3n+2) > span { background-position: 50% 0; }
.split .grad-text .w:nth-child(3n+3) > span { background-position: 100% 0; }
.hero h1, .page-hero h1 { word-spacing: .06em; }
.step-card > *:not(.step-num) { position: relative; z-index: 1; }
.step-card { padding-bottom: 44px; }
.forwho h2 { font-size: clamp(1rem, 1.6vw, 1.15rem); font-weight: 600; letter-spacing: -.01em; color: var(--ink-soft) !important; margin-bottom: 22px; }

/* Targetes dins de seccions fosques (p. ex. Compromís a Sobre nosaltres) */
.sec--ink .card-link { background: rgba(255,255,255,.04); border-color: var(--ink-line); color: #fff; }
.sec--ink .card-link .card-num { color: var(--mint); }
.sec--ink .card-link:hover { border-color: rgba(1,212,205,.35); box-shadow: 0 30px 60px -36px rgba(0,0,0,.6); }
/* Targetes informatives (no enllaçades): sense efecte de botó */
div.card-link:hover { transform: none; box-shadow: none; }
div.card-link:active { transform: none; }
/* Paràgrafs consecutius a la capçalera de secció */
.sec-head p + p { margin-top: 14px; }
