/* ==========================================================================
   Senyaltec — styles.css
   Direcció visual: "cel de teulada + mesurador de camp".
   Blau tinta de la marca (#48526d → #16203a), verd senyal del logo (#00a676),
   fons de cel clar. L'element memorable és el mesurador que sintonitza.
   Mobile-first. Breakpoints: 768 / 1024 / 1280.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  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: "Archivo";
  src: url("/assets/fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Color */
  --ink: #16203a;
  --ink-2: #0e1629;
  --ink-3: #1f2c4d;
  --slate: #48526d;
  --muted: #56607b;
  --sky-50: #f4f9fd;
  --sky-100: #e8f2f9;
  --sky-200: #d3e6f3;
  --line: #d8e4ee;
  --white: #fff;
  --green: #00a676;
  --green-600: #00805b;
  --green-700: #006a4b;
  --green-50: #e2f5ee;
  --green-glow: #34d8a0;
  --amber: #f2b441;
  --danger: #b42318;
  --danger-50: #fdecea;

  /* Tipografia */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-sm: .875rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: 1.5625rem;
  --fs-xl: clamp(1.75rem, 1.3rem + 1.6vw, 2.4rem);

  /* Espai (graella de 8px) */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --pill: 999px;
  --shadow-device: 0 40px 80px -32px rgba(14, 22, 41, .55), 0 2px 0 rgba(255, 255, 255, .06) inset;
  --shadow-soft: 0 18px 40px -24px rgba(22, 32, 58, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 64px;
}
@media (min-width: 1024px) { :root { --header-h: 76px; } }

/* ── Base ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 64px; /* barra mòbil */
}
@media (min-width: 1024px) { body { padding-bottom: 0; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--green-700); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { margin: 0 0 var(--s2); line-height: 1.18; font-weight: 700; letter-spacing: -.012em; text-wrap: balance; font-stretch: 100%; }
h2 { font-size: var(--fs-xl); letter-spacing: -.02em; line-height: 1.12; }
h3 { font-size: var(--fs-md); font-weight: 650; }
p { margin: 0 0 var(--s2); }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 12px 20px; border-radius: var(--pill); font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--white); }
.icon { width: 22px; height: 22px; flex: none; }
.icon-sm { width: 18px; height: 18px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 24px; } }
.container-narrow { max-width: 808px; }

:root { --section-y: 64px; --head-gap: 32px; }
@media (min-width: 768px) { :root { --section-y: 80px; --head-gap: 40px; } }
@media (min-width: 1024px) { :root { --section-y: 104px; --head-gap: 48px; } }
.section { padding-block: var(--section-y); }
.section-tight { padding-block: var(--s4) var(--section-y); }
.section-head { max-width: 680px; margin-bottom: var(--head-gap); }
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: var(--fs-md); line-height: 1.5; margin: 0; max-width: 60ch; }
.section-head .link-more { margin-top: 12px; }
.section-head-split { display: grid; gap: var(--s3); align-items: end; }
@media (min-width: 1024px) { .section-head-split { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s5); } .section-head-split .btn { margin-bottom: 4px; } }
.page-hero-compact + .section { padding-top: var(--s5); }
.section-head-row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s2); }
.section-head-row h2 { margin-bottom: var(--s1); }

.display {
  font-size: clamp(2.25rem, 1.35rem + 3.3vw, 4rem);
  font-stretch: 100%;
  font-weight: 750;
  line-height: 1.06;
  letter-spacing: -.028em;
  margin-bottom: var(--s3);
}
.display .line { display: inline; }
@media (min-width: 768px) { .display .line { display: block; } }
.display { text-wrap: pretty; }
.display-md { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem); }

/* ── Botons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border-radius: var(--pill); border: 2px solid transparent;
  font-weight: 650; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-600); color: var(--white); }
.btn-primary:hover { background: var(--green-700); color: var(--white); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-ghost { background: var(--sky-100); color: var(--ink); }
.btn-ghost:hover { background: var(--sky-200); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: .9375rem; }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }
@media (max-width: 479px) { .hero-actions .btn { width: 100%; white-space: normal; } }

.link-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--green-700); text-decoration: none; min-height: 44px;
}
.link-more .icon { transition: transform .2s var(--ease); }
.link-more:hover { color: var(--ink); }
.link-more:hover .icon, a:hover > .link-more .icon { transform: translateX(4px); }

.chip {
  display: inline-flex; align-items: center; min-height: 28px; padding: 2px 12px;
  border-radius: var(--pill); background: var(--green-50); color: var(--green-700);
  font-size: var(--fs-sm); font-weight: 650;
}
.chip-link { text-decoration: none; min-height: 40px; padding: 6px 16px; background: var(--white); border: 1px solid var(--line); color: var(--ink); }
.chip-link:hover { border-color: var(--green-600); color: var(--green-700); }
.chip-link.is-current { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s3); }

/* ── Logo (original de la marca, el de les targetes) ─────────────────── */
.logo { display: inline-flex; align-items: center; text-decoration: none; min-height: 44px; flex: none; }
.logo-img { height: 38px; width: auto; }
@media (min-width: 1024px) { .logo-img { height: 46px; } }
.site-footer .logo-img { height: 52px; }

/* ── Capçalera ─────────────────────────────────────────────────────────── */
/* Barra superior i capçalera dins d'un sol bloc fix: sense franges buides en fer scroll.
   En compactar, el bloc es desplaça amb transform (no canvia l'alçada del flux). */
:root { --topbar-h: 0px; }
@media (min-width: 1024px) { :root { --topbar-h: 40px; } }
.header-stack { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: transform .45s var(--ease); }
body { padding-top: calc(var(--header-h) + var(--topbar-h)); }
html { scroll-padding-top: calc(var(--header-h) + 16px); }
@media (min-width: 1024px) { .header-stack.is-compact { transform: translateY(calc(var(--topbar-h) * -1)); } }
.topbar { display: none; }
@media (min-width: 1024px) {
  .topbar { display: block; height: var(--topbar-h); background: var(--ink-2); color: #c9d1e4; font-size: .875rem; }
  .topbar-row { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: var(--s3); }
  .topbar-note { display: inline-flex; align-items: center; gap: 10px; margin: 0; }
  .topbar-links { list-style: none; display: flex; gap: 4px; }
  .topbar-links a { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; min-height: 32px; border-radius: var(--pill); color: #dfe5f2; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
  .topbar-links a:hover { background: rgba(255, 255, 255, .08); color: var(--white); }
  .topbar-links .icon { color: var(--green-glow); }
}
.icon-xs { width: 15px; height: 15px; }

.site-header {
  position: relative; isolation: isolate;
  border-bottom: 1px solid rgba(216, 228, 238, .8);
  transition: box-shadow .3s ease;
}
/* El vidre va en una capa pròpia: un backdrop-filter al contenidor atraparia el menú fix del mòbil */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  transition: background-color .3s ease;
}
.header-stack.is-scrolled .site-header { box-shadow: 0 10px 30px -20px rgba(22, 32, 58, .45); }
.header-stack.is-scrolled .site-header::before, body.nav-open .site-header::before { background: rgba(255, 255, 255, .98); }
.header-row { display: flex; align-items: center; gap: var(--s2); height: var(--header-h); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header-phone, .header-cta { display: none; }
.nav-burger {
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  border: 0; border-radius: 14px; background: var(--ink); color: var(--white); cursor: pointer;
}
.burger-lines { position: relative; width: 20px; height: 14px; }
.burger-lines span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s ease, top .3s var(--ease); }
.burger-lines span:nth-child(1) { top: 0; }
.burger-lines span:nth-child(2) { top: 6px; width: 70%; }
.burger-lines span:nth-child(3) { top: 12px; }
.nav-burger[aria-expanded="true"] .burger-lines span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] .burger-lines span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] .burger-lines span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Menú mòbil: calaix a pantalla completa */
.nav {
  position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 49;
  background: var(--white); overflow-y: auto; overscroll-behavior: contain;
  padding: var(--s2) 16px calc(var(--s5) + env(safe-area-inset-bottom));
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .25s ease, transform .3s var(--ease), visibility 0s linear .3s;
}
.nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s ease, transform .3s var(--ease); }
.nav-list { list-style: none; }
.nav-item { border-bottom: 1px solid var(--line); }
.nav-link {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  min-height: 56px; padding: 8px 4px; background: none; border: 0; cursor: pointer;
  font-size: 1.125rem; font-weight: 650; color: var(--ink); text-decoration: none; text-align: left;
}
.nav-link.is-current { color: var(--green-700); }
.nav-chevron { transition: transform .3s var(--ease); }
.nav-toggle-panel[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.nav-panel { display: none; padding-bottom: var(--s2); }
.nav-panel.is-open { display: block; }
.nav-panel > .container { padding-inline: 0; }
.mega-heading { display: none; }
.mega-grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mega-link {
  display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 14px; border-radius: var(--r-md);
  background: var(--sky-50); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: background-color .2s ease, border-color .2s ease, transform .2s var(--ease);
}
.mega-link:hover, .mega-link.is-current { border-color: var(--green-600); background: var(--white); color: var(--ink); }
.mega-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--white); color: var(--green-700); flex: none; box-shadow: 0 0 0 1px var(--line); transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.mega-link:hover .mega-icon, .mega-link.is-current .mega-icon { background: var(--green-600); color: var(--white); box-shadow: 0 8px 18px -8px rgba(0, 128, 91, .7); }
.mega-text { display: grid; gap: 2px; }
.mega-text strong { font-weight: 650; font-size: .95rem; line-height: 1.3; }
.mega-text span { display: none; }
.mega-feature { display: none; }
.nav-mobile-contact { display: grid; gap: 10px; margin-top: var(--s3); }
.nav-mobile-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nav-mobile-note { margin: 4px 0 0; text-align: center; color: var(--muted); font-size: var(--fs-sm); }
body.nav-open { overflow: hidden; }
.nav-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(14, 22, 41, .32); opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.nav-scrim.is-on { opacity: 1; }
.chip-dark { background: var(--green-600); color: var(--white); width: fit-content; }

@media (min-width: 1024px) {
  .header-phone { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 6px; color: var(--ink); text-decoration: none; }
  .header-phone-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green-50); color: var(--green-700); transition: background-color .2s ease, color .2s ease; }
  .header-phone:hover { color: var(--ink); }
  .header-phone:hover .header-phone-icon { background: var(--green-600); color: var(--white); }
  .header-phone-text { display: grid; line-height: 1.15; }
  .header-phone-text small { font-size: .75rem; color: var(--muted); }
  .header-phone-text strong { font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
  .header-cta { display: inline-flex; box-shadow: 0 10px 24px -12px rgba(0, 128, 91, .8); }
  .header-cta .icon { transition: transform .2s var(--ease); }
  .header-cta:hover .icon { transform: translateX(3px); }
  .nav-burger { display: none; }

  .nav { position: static; visibility: visible; opacity: 1; transform: none; overflow: visible; padding: 0; background: none; margin-left: var(--s4); align-self: stretch; display: flex; align-items: stretch; }
  .nav-list { display: flex; align-items: stretch; gap: 2px; }
  .nav-item { border: 0; display: flex; align-items: center; }
  .nav-link { position: relative; min-height: 44px; width: auto; padding: 8px 14px; font-size: .98rem; font-weight: 600; gap: 6px; border-radius: var(--pill); color: var(--ink); }
  /* Indicador inferior: barra de senyal que creix */
  .nav-link::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, var(--green-600), var(--green-glow));
    transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
  }
  .nav-link:hover { color: var(--green-700); }
  .nav-link:hover::after, .nav-link.is-current::after, .nav-toggle-panel[aria-expanded="true"]::after, .has-panel:hover > .nav-link::after { transform: scaleX(1); }
  .nav-link.is-current { color: var(--ink); }
  .has-panel:hover .nav-chevron { transform: rotate(180deg); }
  .nav-mobile-contact { display: none; }

  /* Mega menú a tot l'ample. El <li> ocupa tota l'alçada de la fila: sense zona morta. */
  .has-panel { position: static; }
  .nav-panel {
    display: block; position: absolute; left: 0; right: 0; top: 100%; padding: 0;
    background: var(--white); border-top: 1px solid var(--line);
    box-shadow: 0 40px 60px -30px rgba(22, 32, 58, .4);
    visibility: hidden; opacity: 0; transform: translateY(-6px); pointer-events: none;
    transition: opacity .22s ease, transform .3s var(--ease), visibility 0s linear .3s;
  }
  .nav-panel.is-open, .has-panel:hover .nav-panel, .has-panel:focus-within .nav-panel {
    visibility: visible; opacity: 1; transform: none; pointer-events: auto;
    transition: opacity .22s ease, transform .3s var(--ease);
  }
  .nav-panel > .container { padding-inline: 24px; }
  .mega { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s5); padding-block: var(--s4) var(--s5); }
  .mega-heading { display: block; margin: 0 0 var(--s2); font-size: var(--fs-sm); font-weight: 650; color: var(--muted); }
  .mega-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
  .mega-link { flex-direction: row; align-items: flex-start; gap: 14px; padding: 14px 16px; background: transparent; border-color: transparent; }
  .mega-link:hover, .mega-link.is-current { background: var(--sky-50); border-color: var(--line); }
  .mega-link:hover { transform: translateX(2px); }
  .mega-icon { width: 44px; height: 44px; background: var(--green-50); box-shadow: none; }
  .mega-text strong { font-size: 1rem; }
  .mega-text span { display: block; font-size: .875rem; color: var(--muted); line-height: 1.45; }
  .mega-feature { display: grid; gap: var(--s2); align-content: start; }
  .mega-feature-card { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; color: var(--white); text-decoration: none; isolation: isolate; }
  .mega-feature-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
  .mega-feature-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 22, 41, 0) 15%, rgba(14, 22, 41, .92) 100%); }
  .mega-feature-card:hover { color: var(--white); }
  .mega-feature-card:hover .mega-feature-img { transform: scale(1.05); }
  .mega-feature-body { position: absolute; left: 20px; right: 20px; bottom: 18px; display: grid; gap: 6px; }
  .mega-feature-body strong { font-size: 1.25rem; line-height: 1.25; }
  .mega-feature-body > span:last-child { font-size: .9rem; color: #dfe5f2; line-height: 1.45; }
  .mega-actions { display: grid; gap: 8px; }
  .mega-phone { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; color: var(--slate); text-decoration: none; font-size: .95rem; }
  .mega-phone strong { color: var(--ink); }
  .mega-phone:hover strong { color: var(--green-700); }
}

/* ── Hero (home) ───────────────────────────────────────────────────────── */
.hero, .page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #dcecf8 0%, var(--sky-50) 58%, var(--white) 100%);
}
.hero { padding: var(--s5) 0 var(--s6); }
@media (min-width: 1024px) { .hero { padding: var(--s6) 0 var(--s7); } }
/* Ones de senyal que surten del mesurador */
.hero-waves {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-radial-gradient(circle at 82% 46%, transparent 0 46px, rgba(0, 128, 91, .075) 46px 47px);
  -webkit-mask-image: radial-gradient(circle at 82% 46%, #000 0, transparent 62%);
  mask-image: radial-gradient(circle at 82% 46%, #000 0, transparent 62%);
}
.hero-grid { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: var(--s5); } }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--s3);
  font-size: var(--fs-sm); font-weight: 650; color: var(--slate); line-height: 1.4;
}
.live-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex: none; }
.live-dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--green);
  opacity: 0; animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(.5); opacity: .8; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.hero-lead { font-size: var(--fs-md); line-height: 1.55; color: var(--slate); max-width: 58ch; margin-bottom: var(--s4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { list-style: none; display: grid; gap: 12px; margin-top: var(--s4); }
.hero-proof li { display: flex; align-items: center; gap: 12px; color: var(--slate); font-size: .98rem; line-height: 1.35; }
.hero-proof .icon { color: var(--green-600); }
.hero-proof strong { color: var(--ink); font-weight: 700; }
@media (min-width: 768px) { .hero-proof { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } .hero-proof li { align-items: flex-start; } }

/* Composició del hero: foto + mesurador + insígnia */
.hero-visual { position: relative; }
.hero-stage-photo, .hero-badge { display: none; }
@media (min-width: 1024px) {
  .hero-visual { padding: 0 0 24px 40px; }
  .hero-stage-photo { display: block; position: absolute; right: -16px; top: -48px; width: 76%; aspect-ratio: 3 / 4; margin: 0; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-soft); }
  .hero-stage-photo img { width: 100%; height: 100%; object-fit: cover; }
  .hero-stage-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(220, 236, 248, 0) 40%, rgba(22, 32, 58, .4)); }
  .hero-visual .meter { position: relative; z-index: 2; margin-top: 170px; margin-right: 72px; margin-left: -24px; }
  .hero-badge {
    display: flex; align-items: center; gap: 12px; position: absolute; z-index: 3; left: -8px; top: 40px; margin: 0;
    padding: 10px 18px 10px 10px; border-radius: var(--pill); background: var(--white); box-shadow: 0 20px 40px -20px rgba(22, 32, 58, .5);
    font-size: .9rem; line-height: 1.25; color: var(--slate); max-width: 240px;
  }
  .hero-badge strong { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--green-600); color: var(--white); font-size: 1.05rem; flex: none; }
}

/* ── El mesurador ──────────────────────────────────────────────────────── */
.meter {
  margin: 0; position: relative;
  background: linear-gradient(160deg, var(--ink-3) 0%, var(--ink) 42%, var(--ink-2) 100%);
  color: var(--white); border-radius: var(--r-xl); padding: 20px;
  box-shadow: var(--shadow-device);
}
.meter::before { /* marc del dispositiu */
  content: ""; position: absolute; inset: 6px; border-radius: 26px; border: 1px solid rgba(255, 255, 255, .07); pointer-events: none;
}
@media (min-width: 1024px) { .meter { padding: 28px; transform: rotate(1.2deg); } }
.meter-top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: var(--fs-sm); }
.meter-led { width: 10px; height: 10px; border-radius: 50%; background: var(--green-glow); box-shadow: 0 0 12px var(--green-glow); }
.meter-name { color: #b9c3dc; font-weight: 600; }
.meter-status {
  margin-left: auto; padding: 4px 12px; border-radius: var(--pill); font-weight: 700;
  background: rgba(52, 216, 160, .14); color: var(--green-glow); transition: background-color .3s ease, color .3s ease;
}
.meter-screen {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  background: radial-gradient(120% 90% at 50% 100%, #12234a 0%, #0a1224 70%);
  border: 1px solid rgba(255, 255, 255, .06); padding: 16px 16px 12px;
}
.meter-graph { width: 100%; height: 120px; }
@media (min-width: 1024px) { .meter-graph { height: 150px; } }
.meter-gridlines path { stroke: rgba(255, 255, 255, .07); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.meter-line { fill: none; stroke: var(--green-glow); stroke-width: 2.5; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(52, 216, 160, .7)); }
.meter-fill { fill: rgba(52, 216, 160, .12); }
.meter-bars { display: flex; align-items: flex-end; gap: 6px; height: 34px; margin-top: 10px; }
.meter-bars span {
  width: 12px; height: calc(var(--i) * 20%); border-radius: 3px;
  background: var(--green-glow); box-shadow: 0 0 10px rgba(52, 216, 160, .45);
  transition: background-color .25s ease, box-shadow .25s ease;
  transition-delay: calc(var(--i) * 90ms);
}
.meter-rows { list-style: none; display: grid; gap: 12px; margin-top: 18px; }
.meter-rows li { display: grid; grid-template-columns: 7.5rem 1fr 22px; align-items: center; gap: 12px; font-size: var(--fs-sm); }
.meter-row-label { display: inline-flex; align-items: center; gap: 8px; color: #d4dbec; font-weight: 600; }
.meter-row-label .icon { color: #8e9bbd; }
.meter-track { height: 8px; border-radius: var(--pill); background: rgba(255, 255, 255, .08); overflow: hidden; }
.meter-level {
  display: block; height: 100%; width: calc(var(--lvl) * 100%); border-radius: inherit;
  background: linear-gradient(90deg, var(--green-600), var(--green-glow));
  transform-origin: left; transition: transform .9s var(--ease);
}
.meter-rows li:nth-child(2) .meter-level { transition-delay: .12s; }
.meter-rows li:nth-child(3) .meter-level { transition-delay: .24s; }
.meter-ok { color: var(--green-glow); transition: opacity .3s ease .6s; }
/* Estat "sintonitzant" (només amb JS i sense reduced-motion) */
.meter.is-tuning .meter-status { background: rgba(242, 180, 65, .14); color: var(--amber); }
.meter.is-tuning .meter-bars span { background: rgba(255, 255, 255, .12); box-shadow: none; transition-delay: 0s; }
.meter.is-tuning .meter-bars span:first-child { background: var(--amber); }
.meter.is-tuning .meter-level { transform: scaleX(.12); transition-duration: .2s; transition-delay: 0s; }
.meter.is-tuning .meter-ok { opacity: 0; transition-delay: 0s; }
.meter.is-tuning .meter-line { stroke: var(--amber); filter: none; }
.meter.is-tuning .meter-fill { fill: rgba(242, 180, 65, .08); }

/* ── Pàgines internes: hero ────────────────────────────────────────────── */
.page-hero { padding: var(--s3) 0 var(--s6); }
.page-hero-compact { padding-bottom: var(--s5); }
.page-hero-grid { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 1024px) {
  .page-hero { padding: var(--s4) 0 var(--s7); }
  .page-hero-compact { padding-bottom: var(--s6); }
  .page-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--s6); }
}
.breadcrumbs { margin-bottom: var(--s3); font-size: var(--fs-sm); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumbs li { display: inline-flex; align-items: center; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin: 0 10px; color: #9aa6bf; }
.breadcrumbs a { color: var(--slate); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.breadcrumbs a:hover { color: var(--green-700); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }

.hero-photo { margin: 0; position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-soft); aspect-ratio: 4 / 3; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-tag {
  position: absolute; left: 16px; bottom: 16px; right: 16px; width: fit-content;
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px;
  background: rgba(14, 22, 41, .82); color: var(--white); border-radius: var(--pill);
  font-size: var(--fs-sm); font-weight: 650; backdrop-filter: blur(6px);
}
.hero-emblem {
  position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 420px; margin-inline: auto; width: 100%;
  border-radius: var(--r-xl); background: linear-gradient(160deg, var(--ink-3), var(--ink-2)); box-shadow: var(--shadow-device); overflow: hidden;
}
.emblem-rings { position: absolute; inset: 0; display: grid; place-items: center; }
.emblem-rings span { position: absolute; border-radius: 50%; border: 1px solid rgba(52, 216, 160, .35); animation: ring 3.6s var(--ease) infinite; }
.emblem-rings span:nth-child(1) { width: 38%; aspect-ratio: 1; }
.emblem-rings span:nth-child(2) { width: 62%; aspect-ratio: 1; animation-delay: .6s; opacity: .7; }
.emblem-rings span:nth-child(3) { width: 86%; aspect-ratio: 1; animation-delay: 1.2s; opacity: .45; }
@keyframes ring { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.emblem-icon { position: relative; display: grid; place-items: center; width: 30%; aspect-ratio: 1; border-radius: 50%; background: var(--green-600); color: var(--white); box-shadow: 0 0 60px rgba(52, 216, 160, .45); }
.emblem-icon .icon { width: 46%; height: 46%; }

/* ── Proveïdors: cinta de marques enllaçades ──────────────────────────── */
.suppliers { padding: var(--s4) 0; border-block: 1px solid var(--line); background: var(--white); overflow: hidden; }
.suppliers-title { font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0; color: var(--muted); text-align: center; margin-bottom: var(--s2); line-height: 1.4; }
.marquee { position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { list-style: none; display: flex; align-items: center; gap: 12px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }
.brand {
  display: grid; place-items: center; width: 168px; height: 76px; padding: 12px 20px; border-radius: var(--r-md);
  border: 1px solid transparent; transition: border-color .25s ease, background-color .25s ease;
}
.brand img { height: 32px; width: auto; max-width: 128px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .25s ease, opacity .25s ease, transform .25s var(--ease); }
.brand img.is-square { height: 46px; }
.brand:hover, .brand:focus-visible { border-color: var(--line); background: var(--sky-50); }
.brand:hover img, .brand:focus-visible img { filter: none; opacity: 1; transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; padding-inline: 16px; }
  .marquee-track li:nth-child(n+9) { display: none; }
}

/* ── Serveis (home): mosaic ────────────────────────────────────────────── */
.bento { list-style: none; display: grid; gap: 12px; }
@media (min-width: 768px) { .bento { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; }
  .bento-antenes { grid-column: span 2; grid-row: span 2; }
  .bento-xarxes { grid-column: span 2; }
}
.bento-item { display: flex; }
.bento-card {
  position: relative; display: flex; width: 100%; min-height: 240px; border-radius: var(--r-lg); overflow: hidden; isolation: isolate;
  text-decoration: none; color: var(--white); background: var(--ink);
  transition: transform .3s var(--ease), box-shadow .3s ease;
}
.bento-card:hover { color: var(--white); transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(22, 32, 58, .7); }
.bento-media { position: absolute; inset: 0; z-index: -2; }
.bento-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.bento-card:hover .bento-media img { transform: scale(1.06); }
.has-img .bento-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 22, 41, .05) 10%, rgba(14, 22, 41, .92) 90%); }
.no-img .bento-card { background: linear-gradient(150deg, var(--ink-3), var(--ink-2)); }
.no-img .bento-card::before { content: ""; position: absolute; right: -70px; top: -70px; width: 240px; height: 240px; z-index: -1; background: repeating-radial-gradient(circle, transparent 0 22px, rgba(52, 216, 160, .16) 22px 23px); border-radius: 50%; }
.bento-manteniment .bento-card { background: linear-gradient(150deg, var(--green-600), #005a40); }
.bento-body { margin-top: auto; display: grid; gap: 6px; padding: 22px; width: 100%; }
@media (min-width: 1024px) { .bento-antenes .bento-body { padding: 36px; } }
.bento-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); color: var(--white); margin-bottom: 6px; }
.bento-body h3 { margin: 0; font-size: 1.2rem; line-height: 1.25; }
.bento-antenes h3 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); }
.bento-text { font-size: .95rem; color: #d7deee; line-height: 1.45; }
.bento-manteniment .bento-text { color: #e3f6ef; }
.bento-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 650; font-size: .95rem; color: var(--green-glow); }
.bento-manteniment .bento-more { color: var(--white); }
.bento-more .icon { transition: transform .25s var(--ease); }
.bento-card:hover .bento-more .icon { transform: translateX(4px); }
@media (min-width: 1024px) {
  .bento-item:not(.bento-antenes) .bento-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ── Dolor (fons tinta) ────────────────────────────────────────────────── */
.pain { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.pain::after {
  content: ""; position: absolute; right: -180px; top: -180px; width: 520px; height: 520px; pointer-events: none;
  background: repeating-radial-gradient(circle, transparent 0 34px, rgba(52, 216, 160, .1) 34px 35px);
  -webkit-mask-image: radial-gradient(circle, #000 0, transparent 70%); mask-image: radial-gradient(circle, #000 0, transparent 70%);
}
.pain-grid { position: relative; z-index: 1; display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 1024px) { .pain-grid { grid-template-columns: 1fr 1fr; gap: var(--s6); } }
.pain h2 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.2rem); }
.pain-lead { color: #c9d1e4; font-size: var(--fs-md); line-height: 1.55; margin-bottom: var(--s4); }
.pain-list { list-style: none; display: grid; gap: 12px; }
@media (min-width: 768px) { .pain-list { grid-template-columns: 1fr 1fr; } }
.pain-list li {
  display: flex; gap: 14px; padding: 20px; border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09);
}
.pain-list .icon { color: var(--green-glow); margin-top: 2px; }
.pain-list strong { display: block; font-size: 1.0625rem; margin-bottom: 4px; }
.pain-list span { color: #c9d1e4; font-size: .98rem; line-height: 1.5; }

/* ── Per què ───────────────────────────────────────────────────────────── */
.why-grid { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 1024px) { .why-grid { grid-template-columns: 5fr 6fr; gap: var(--s6); } }
.why-collage { position: relative; padding: 0 0 48px; }
.why-media { margin: 0; border-radius: var(--r-xl); overflow: hidden; }
.why-media img { width: 100%; height: 100%; object-fit: cover; }
.why-media-a { aspect-ratio: 4 / 3; width: 88%; }
.why-media-b { position: absolute; right: 0; bottom: 0; width: 50%; aspect-ratio: 1; border: 6px solid var(--white); box-shadow: var(--shadow-soft); }
.why-stamp { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 16px 10px 12px; border-radius: var(--pill); background: var(--ink); color: var(--white); font-size: .9rem; line-height: 1.25; max-width: 210px; }
.why-stamp .icon { color: var(--green-glow); }
@media (min-width: 1024px) { .why-media-a { aspect-ratio: 4 / 5; width: 80%; } .why-media-b { width: 50%; } .why-stamp { left: 24px; bottom: 32px; } }


.why-lead { font-size: var(--fs-md); color: var(--slate); line-height: 1.5; margin-bottom: var(--s4); }
.why-list { list-style: none; display: grid; gap: var(--s3); }
.why-list li { display: flex; gap: 16px; }
.why-list h3 { margin-bottom: 4px; }
.why-list p { color: var(--muted); margin: 0; }
.why-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--green-600); color: var(--green-700); flex: none; }

/* ── Públic ────────────────────────────────────────────────────────────── */
.audience { background: var(--sky-50); }
.audience-grid { list-style: none; display: grid; gap: var(--s2); }
@media (min-width: 768px) { .audience-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s3); } }
.audience-item { padding: var(--s4) var(--s3); background: var(--white); border-radius: var(--r-lg); border-top: 4px solid var(--green); }
.audience-item.has-img { position: relative; padding: 0 0 var(--s4); border-top: 0; overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 20px 40px -32px rgba(22, 32, 58, .5); transition: transform .3s var(--ease), box-shadow .3s ease; }
.audience-item.has-img:hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--line), 0 30px 50px -30px rgba(22, 32, 58, .55); }
.audience-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.audience-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.audience-item.has-img:hover .audience-media img { transform: scale(1.05); }
.audience-item.has-img .audience-icon { position: relative; margin: -26px 0 var(--s2) var(--s3); box-shadow: 0 0 0 5px var(--white); }
.audience-item.has-img h3, .audience-item.has-img p { padding-inline: var(--s3); }
.audience-item p { color: var(--muted); margin: 0; }
.audience-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--white); margin-bottom: var(--s2); }

/* ── Procés (cable amb nodes) ──────────────────────────────────────────── */
.steps { list-style: none; display: grid; gap: var(--s3); position: relative; counter-reset: none; }
.step { position: relative; padding-left: 64px; }
.step::before { /* cable vertical en mòbil */
  content: ""; position: absolute; left: 21px; top: 44px; bottom: calc(var(--s3) * -1); width: 2px; background: var(--line);
}
.step:last-child::before { display: none; }
.step-node {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); border: 2px solid var(--green-600);
  box-shadow: 0 0 0 6px var(--green-50);
}
.step-num { font-weight: 750; color: var(--green-700); }
.step h3 { margin-bottom: 6px; padding-top: 8px; }
.step p { color: var(--muted); margin: 0; }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
  .step { padding-left: 0; padding-top: 72px; }
  .step::before { left: 44px; right: calc(var(--s4) * -1); top: 21px; bottom: auto; width: auto; height: 2px; }
  .step h3 { padding-top: 0; }
}

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq { background: var(--sky-50); }
.faq-grid { display: grid; gap: var(--s4); }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: 4fr 7fr; gap: var(--s6); align-items: start; } .faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); } }
.faq-more { margin-top: var(--s2) !important; font-size: 1rem !important; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--white); border-radius: var(--r-md); border: 1px solid var(--line); transition: border-color .2s ease; }
.faq-item[open] { border-color: var(--green-600); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; cursor: pointer; list-style: none; min-height: 56px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 1.0625rem; margin: 0; font-stretch: 100%; line-height: 1.4; }
.faq-icon { color: var(--green-600); transition: transform .25s var(--ease); }
.faq-item[open] .faq-icon { transform: rotate(180deg); }
.faq-answer { padding: 0 20px 20px; color: var(--slate); }
.faq-answer p { margin: 0; }

/* ── Blog: targetes ────────────────────────────────────────────────────── */
.post-grid { list-style: none; display: grid; gap: var(--s3); }
@media (min-width: 768px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card a { display: grid; height: 100%; text-decoration: none; color: var(--ink); border-radius: var(--r-lg); overflow: hidden; background: var(--white); border: 1px solid var(--line); transition: border-color .2s ease, transform .25s var(--ease); }
.post-card a:hover { border-color: var(--green-600); transform: translateY(-3px); color: var(--ink); }
.post-card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--sky-100); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 20px 24px; }
.post-card-title { font-size: 1.1875rem; line-height: 1.3; margin: 0; }
.post-card-meta { color: var(--muted); font-size: var(--fs-sm); margin-top: auto; }

/* ── Pàgina de servei: hero a sang ───────────────────────────────────── */
.svc-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--white); padding: var(--s3) 0 var(--s4); }
@media (min-width: 1024px) { .svc-hero { padding: var(--s4) 0 var(--s5); min-height: 640px; display: flex; flex-direction: column; justify-content: center; } }
.svc-hero-bg { position: absolute; inset: 0; z-index: -2; }
.svc-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.svc-hero.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 22, 41, .74) 0%, rgba(14, 22, 41, .92) 70%); }
@media (min-width: 1024px) { .svc-hero.has-photo::before { background: linear-gradient(90deg, rgba(14, 22, 41, .96) 0%, rgba(14, 22, 41, .86) 40%, rgba(14, 22, 41, .25) 74%, rgba(14, 22, 41, .1) 100%); } }
.svc-hero.no-photo { background: linear-gradient(150deg, var(--ink-3), var(--ink-2) 70%); }
.svc-hero-waves { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: repeating-radial-gradient(circle at 85% 50%, transparent 0 46px, rgba(52, 216, 160, .08) 46px 47px); -webkit-mask-image: radial-gradient(circle at 85% 50%, #000 0, transparent 60%); mask-image: radial-gradient(circle at 85% 50%, #000 0, transparent 60%); }
.svc-hero-grid { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 1024px) { .svc-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.svc-hero-copy { max-width: 660px; }
.svc-hero .breadcrumbs li, .svc-hero .breadcrumbs a { color: #b9c3dc; }
.svc-hero .breadcrumbs li + li::before { color: #6f7b98; }
.svc-hero .breadcrumbs [aria-current] { color: var(--white); }
.svc-hero .breadcrumbs a:hover { color: var(--green-glow); }
.svc-hero-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--green-600); color: var(--white); margin-bottom: var(--s3); box-shadow: 0 12px 30px -12px rgba(52, 216, 160, .8); }
.svc-hero-icon .icon { width: 28px; height: 28px; }
.svc-hero h1 { color: var(--white); }
.svc-hero .hero-lead { color: #d7deee; }
.svc-proof {
  list-style: none; display: grid; gap: 12px; margin-top: var(--s5); padding: 16px 20px; border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(8px);
}
@media (min-width: 768px) { .svc-proof { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .svc-proof { grid-template-columns: repeat(4, 1fr); } }
.svc-proof li { display: flex; align-items: center; gap: 12px; color: #d7deee; font-size: .95rem; line-height: 1.35; }
.svc-proof .icon { color: var(--green-glow); }
.svc-proof strong { color: var(--white); }
.svc-proof a { color: inherit; text-decoration: none; display: inline-block; padding-block: 10px; }
.svc-proof a:hover strong { color: var(--green-glow); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--green-50); color: var(--ink); }
.svc-hero .hero-emblem { max-width: 380px; }
.includes { background: linear-gradient(180deg, var(--white), var(--sky-50)); }

/* ── Pàgina de servei ──────────────────────────────────────────────────── */
.problems-grid { display: grid; gap: var(--s4); align-items: start; }
@media (min-width: 1024px) { .problems-grid { grid-template-columns: 5fr 6fr; gap: var(--s6); } }
.problems-grid p { color: var(--muted); font-size: var(--fs-md); line-height: 1.5; }
.problem-list { list-style: none; display: grid; gap: 10px; }
.problem-list li {
  display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px; border-radius: var(--r-md);
  background: var(--white); border: 1px solid var(--line); font-weight: 600; line-height: 1.45;
}
.problem-list .icon { color: #c2410c; margin-top: 1px; }
.problems { background: var(--sky-50); }

.includes-grid { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 1024px) { .includes-grid { grid-template-columns: 7fr 5fr; gap: var(--s6); } }
.include-list { list-style: none; display: grid; gap: var(--s3); }
@media (min-width: 768px) { .include-list { grid-template-columns: 1fr 1fr; gap: var(--s2); } }
@media (min-width: 1024px) { .include-list-wide { grid-template-columns: repeat(4, 1fr); } }
.include-list li { display: flex; gap: 14px; padding: 20px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); transition: border-color .25s ease, transform .25s var(--ease); }
.include-list li:hover { border-color: var(--green-600); transform: translateY(-2px); }
.include-list h3 { font-size: 1.125rem; margin-bottom: 4px; }
.include-list p { color: var(--muted); margin: 0; }
.include-check { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green-600); color: var(--white); flex: none; margin-top: 2px; }
.include-check .icon { width: 18px; height: 18px; }
.includes-media { margin: 0; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 5; max-height: 560px; box-shadow: var(--shadow-soft); }
@media (max-width: 1023px) { .includes-media { aspect-ratio: 16 / 10; } }
.includes-media img { width: 100%; height: 100%; object-fit: cover; }

.benefits { background: var(--ink); color: var(--white); }
.benefits .section-head p { color: #c9d1e4; }
.benefit-grid { list-style: none; display: grid; gap: var(--s2); }
@media (min-width: 768px) { .benefit-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s3); } }
.benefit { padding: var(--s4) var(--s3); border-radius: var(--r-lg); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); }
.benefit p { color: #c9d1e4; margin: 0; }
.benefit-bars { display: flex; align-items: flex-end; gap: 4px; height: 22px; margin-bottom: var(--s2); }
.benefit-bars span { width: 6px; border-radius: 2px; background: var(--green-glow); }
.benefit-bars span:nth-child(1) { height: 40%; }
.benefit-bars span:nth-child(2) { height: 70%; }
.benefit-bars span:nth-child(3) { height: 100%; }
.inline-cta {
  margin-top: var(--s4); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2);
  padding: var(--s3); border-radius: var(--r-lg); background: var(--ink-3);
}
.inline-cta p { margin: 0; color: #e5eaf5; }

.blog-teaser + .related, .guide + .related { padding-top: 0; }
.related h2 { font-size: var(--fs-lg); }
.related-list { list-style: none; display: grid; gap: 12px; }
@media (min-width: 768px) { .related-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .related-list { grid-template-columns: repeat(3, 1fr); } }
.related h2 { margin-bottom: var(--s3); }
.related-link {
  display: grid; grid-template-columns: 44px 1fr 22px; gap: 14px; align-items: center; height: 100%;
  padding: 16px; border-radius: var(--r-md); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: border-color .2s ease;
}
.related-link:hover { border-color: var(--green-600); color: var(--ink); }
.related-link strong { display: block; font-size: 1rem; line-height: 1.3; margin-bottom: 2px; }
.related-link span span { display: block; font-size: var(--fs-sm); color: var(--muted); line-height: 1.4; }
.related-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--green-50); color: var(--green-700); }
.related-arrow { color: var(--green-600); transition: transform .2s var(--ease); }
.related-link:hover .related-arrow { transform: translateX(4px); }
.section.blog-teaser:has(+ .related) { padding-bottom: var(--s5); }

/* ── Bloc de conversió + formulari ─────────────────────────────────────── */
.lead { background: var(--ink); color: var(--white); padding-block: var(--s6); position: relative; overflow: hidden; }
@media (min-width: 1024px) { .lead { padding-block: var(--s7); } }
.lead::before {
  content: ""; position: absolute; left: -200px; bottom: -220px; width: 560px; height: 560px; pointer-events: none;
  background: repeating-radial-gradient(circle, transparent 0 40px, rgba(52, 216, 160, .09) 40px 41px);
  -webkit-mask-image: radial-gradient(circle, #000 0, transparent 70%); mask-image: radial-gradient(circle, #000 0, transparent 70%);
}
.lead-grid { position: relative; z-index: 1; display: grid; gap: var(--s5); }
@media (min-width: 1024px) { .lead-grid { grid-template-columns: 5fr 6fr; gap: var(--s6); align-items: start; } }
.lead h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); }
.lead-intro { color: #c9d1e4; font-size: var(--fs-md); line-height: 1.55; margin-bottom: var(--s4); }
.lead-direct { list-style: none; display: grid; gap: 10px; margin-bottom: var(--s4); }
.direct-link {
  display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  text-decoration: none; color: var(--white); transition: background-color .2s ease, border-color .2s ease;
}
.direct-link:hover { background: rgba(255, 255, 255, .09); border-color: var(--green-glow); color: var(--white); }
.direct-link small { display: block; color: #aeb8d0; font-size: var(--fs-sm); }
.direct-link strong { display: block; font-size: 1.125rem; overflow-wrap: anywhere; }
.direct-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--green-600); color: var(--white); flex: none; }
.lead-trust { list-style: none; display: grid; gap: 10px; }
.lead-trust li { display: flex; align-items: center; gap: 12px; color: #d8def0; }
.lead-trust .icon { color: var(--green-glow); }

.lead-card { background: var(--white); color: var(--ink); border-radius: var(--r-xl); padding: var(--s3) 20px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
@media (min-width: 768px) { .lead-card { padding: var(--s5); } }
.form-title { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -.01em; margin-bottom: var(--s3); line-height: 1.2; }
.form-grid { display: grid; gap: var(--s2); }
@media (min-width: 768px) { .form-grid { grid-template-columns: 1fr 1fr; gap: 20px var(--s2); } .field-full { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 650; font-size: .98rem; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; font-size: 1rem;
  border: 1.5px solid #c3d2e0; border-radius: 12px; background: var(--white); color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300805b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 20px;
}
.field input::placeholder, .field textarea::placeholder { color: #7c86a0; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #93a6bd; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(0, 128, 91, .18); }
.field [aria-invalid="true"] { border-color: var(--danger); background: #fffafa; }
.field-error { margin: 0; color: var(--danger); font-size: var(--fs-sm); font-weight: 600; }
.field-check { grid-template-columns: 24px 1fr; align-items: start; gap: 12px; margin: var(--s3) 0; }
.field-check input { width: 24px; height: 24px; min-height: 0; margin: 2px 0 0; accent-color: var(--green-600); }
.field-check label { font-weight: 400; line-height: 1.5; }
.field-check .field-error { grid-column: 2; }
.form-note { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: var(--fs-sm); }
.form-alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; margin: var(--s2) 0; }
.form-alert p { margin: 0; }
.form-alert.is-error { background: var(--danger-50); color: #7a1a12; }
.form-alert.is-error a { color: #7a1a12; font-weight: 700; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn-loading { display: none; align-items: center; gap: 10px; }
.form.is-loading .btn-label { display: none; }
.form.is-loading .btn-loading { display: inline-flex; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: var(--white); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Article ───────────────────────────────────────────────────────────── */
.post-header { background: linear-gradient(180deg, #dcecf8 0%, var(--sky-50) 100%); padding: var(--s3) 0 var(--s5); }
.post-title { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); font-weight: 750; letter-spacing: -.025em; line-height: 1.06; margin: var(--s2) 0; }
.post-meta { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.post-meta span[aria-hidden] { margin: 0 6px; color: #9aa6bf; }
.post-cover { margin: calc(var(--s4) * -1) 0 var(--s5); border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16 / 9; box-shadow: var(--shadow-soft); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post { padding-bottom: var(--s5); }

.prose { font-size: 1.125rem; line-height: 1.7; color: #26314f; }
.prose > * + * { margin-top: 1.1em; }
.prose p, .prose ul, .prose ol { margin: 0; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); margin: 2em 0 0; color: var(--ink); }
.prose h3 { font-size: 1.3rem; margin: 1.6em 0 0; color: var(--ink); }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--green-600); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--green-700); font-weight: 600; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--r-lg); width: 100%; }
.prose figure:has(table) { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-md); }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 480px; }
.prose th, .prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--sky-50); font-weight: 700; color: var(--ink); }
.prose tr:last-child td { border-bottom: 0; }
.rating {
  display: inline-block; width: 80px; height: 10px; border-radius: var(--pill); font-size: 0; color: transparent; vertical-align: middle;
  background: linear-gradient(90deg, var(--green-600) calc(var(--n) * 20%), var(--line) 0);
}
.post-cta {
  margin-top: var(--s5); display: grid; gap: var(--s2); padding: var(--s3); border-radius: var(--r-lg);
  background: var(--sky-50); border: 1px solid var(--line); border-left: 4px solid var(--green);
}
@media (min-width: 768px) { .post-cta { grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s3); } }
.post-cta p { margin: 0; color: var(--slate); }
.post-cta-title { font-weight: 800; font-size: 1.125rem; color: var(--ink) !important; margin-bottom: 4px !important; }
.post-cta-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--white); }

/* ── Gràcies i 404 ─────────────────────────────────────────────────────── */
.thanks { padding-top: var(--s6); }
.thanks-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--green-600); color: var(--white); margin-bottom: var(--s3); box-shadow: 0 0 0 10px var(--green-50); }
.thanks-icon .icon { width: 36px; height: 36px; }
.thanks-steps { display: grid; gap: var(--s2); margin: 0 0 var(--s4); padding-left: 1.4em; font-size: 1.0625rem; }
.thanks-steps li::marker { color: var(--green-700); font-weight: 800; }
.thanks-urgent { padding: var(--s3); border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); }
.notfound-code { font-weight: 800; color: var(--green-700); margin-bottom: var(--s2); }
.notfound { padding-top: var(--s6); }

/* ── Peu ───────────────────────────────────────────────────────────────── */
.site-footer { background: var(--ink-2); color: #c9d1e4; padding: var(--s6) 0 var(--s3); }
.footer-grid { display: grid; gap: var(--s4); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.3fr 1.2fr 1fr .8fr; gap: var(--s5); } }
.footer-tagline { color: var(--white); font-size: var(--fs-md); font-weight: 700; margin: var(--s2) 0 var(--s1); }
.footer-brand p:last-child { font-size: .98rem; }
.footer-title { font-size: 1rem; font-stretch: 100%; color: var(--white); margin-bottom: var(--s2); letter-spacing: 0; }
.footer-col ul { list-style: none; display: grid; gap: 2px; }
.footer-col a { color: #c9d1e4; text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; line-height: 1.35; }
.footer-col a:hover { color: var(--green-glow); }
.footer-col .btn-primary, .footer-col .btn-primary:hover { color: var(--white); display: inline-flex; }
.footer-contact { margin-bottom: var(--s2); }
.footer-contact a, .footer-contact span { gap: 10px; display: inline-flex; align-items: center; min-height: 40px; overflow-wrap: anywhere; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--green-glow); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid rgba(255, 255, 255, .1); font-size: var(--fs-sm); color: #9ea9c4; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #c9d1e4; }

/* Banda de conversió al peu (pàgines sense formulari) */
.footer-cta {
  display: grid; gap: var(--s3); margin: 0 0 var(--s6); padding: var(--s4) var(--s3); border-radius: var(--r-xl);
  background: linear-gradient(120deg, var(--green-600), #005a40); color: var(--white); position: relative; overflow: hidden;
}
.footer-cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 26px, rgba(255, 255, 255, .12) 26px 27px); pointer-events: none; }
@media (min-width: 1024px) { .footer-cta { grid-template-columns: 1fr auto; align-items: center; padding: var(--s5); } }
.footer-cta p { margin: 0; color: #e3f6ef; }
.footer-cta-title { font-size: var(--fs-lg); font-weight: 700; color: var(--white) !important; margin-bottom: 6px !important; line-height: 1.25; }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
.footer-cta .btn-primary { background: var(--ink); }
.footer-cta .btn-primary:hover { background: var(--ink-2); }

/* ── Barra mòbil + tornar amunt ────────────────────────────────────────── */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: 64px;
  display: grid; grid-template-columns: 1fr 1fr 1.3fr;
  background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -20px rgba(22, 32, 58, .5);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--ink); font-size: .8125rem; font-weight: 700; }
.mobile-bar a .icon { width: 22px; height: 22px; color: var(--green-600); }
.mobile-bar .mobile-bar-cta { background: var(--green-600); color: var(--white); }
.mobile-bar .mobile-bar-cta .icon { color: var(--white); }
@media (min-width: 1024px) { .mobile-bar { display: none; } }
.to-top {
  position: fixed; right: 16px; bottom: 80px; z-index: 55; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; border: 0; cursor: pointer; background: var(--ink); color: var(--white);
  box-shadow: var(--shadow-soft); transition: opacity .25s ease, transform .25s var(--ease), background-color .2s ease;
}
.to-top:hover { background: var(--green-700); }
@media (min-width: 1024px) { .to-top { bottom: 24px; right: 24px; } }

/* ── Hero amb carrusel (home) ──────────────────────────────────────────── */
.hero-slider { position: relative; isolation: isolate; overflow: hidden; background: var(--ink-2); color: var(--white); }
.slides { display: grid; }
.slide {
  grid-area: 1 / 1; position: relative; isolation: isolate; display: flex; align-items: center;
  min-height: 560px; padding: var(--s5) 0 200px;
  opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s;
}
@media (min-width: 768px) { .slide { min-height: 620px; padding-bottom: 190px; } }
@media (min-width: 1024px) { .slide { min-height: min(780px, calc(100vh - var(--header-h) - var(--topbar-h))); padding: var(--s6) 0 180px; } }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease; }
.slide-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.slide-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 6s ease-out; }
.slide.is-active .slide-media img { transform: scale(1); }
.slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 22, 41, .55) 0%, rgba(14, 22, 41, .88) 62%, rgba(14, 22, 41, .96) 100%); }
@media (min-width: 1024px) { .slide::before { background: linear-gradient(90deg, rgba(14, 22, 41, .95) 0%, rgba(14, 22, 41, .8) 40%, rgba(14, 22, 41, .2) 75%, rgba(14, 22, 41, .05) 100%), linear-gradient(0deg, rgba(14, 22, 41, .9) 0%, rgba(14, 22, 41, 0) 35%); } }
.slide-inner { width: 100%; }
.slide-copy { max-width: 800px; }
.slide-copy > * { transform: translateY(14px); opacity: 0; transition: transform .7s var(--ease), opacity .7s ease; }
.slide.is-active .slide-copy > * { transform: none; opacity: 1; }
.slide.is-active .slide-copy > :nth-child(2) { transition-delay: .08s; }
.slide.is-active .slide-copy > :nth-child(3) { transition-delay: .16s; }
.slide.is-active .slide-copy > :nth-child(4) { transition-delay: .24s; }
.slide-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--s3); padding: 6px 14px 6px 10px; border-radius: var(--pill); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(6px); font-size: var(--fs-sm); font-weight: 600; color: #e3e9f5; }
.slide-title { color: var(--white); margin-bottom: var(--s3); }
.slide-lead { font-size: var(--fs-md); line-height: 1.55; color: #d7deee; max-width: 56ch; margin-bottom: var(--s4); }
.btn-glass { background: rgba(255, 255, 255, .1); color: var(--white); border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.btn-glass:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-glass .icon { transition: transform .2s var(--ease); }
.btn-glass:hover .icon { transform: translateX(3px); }

.slider-ui { position: absolute; left: 0; right: 0; bottom: 104px; display: flex; align-items: flex-end; gap: 12px; z-index: 2; }
@media (min-width: 1024px) { .slider-ui { bottom: 100px; } }
.slider-tabs { display: flex; gap: 6px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.slider-tabs::-webkit-scrollbar { display: none; }
.slider-tab {
  flex: 1 0 auto; min-width: 88px; display: grid; gap: 10px; padding: 10px 2px 8px; min-height: 44px;
  background: none; border: 0; cursor: pointer; text-align: left; color: #aeb8d0; font-size: .875rem; font-weight: 600;
  transition: color .2s ease;
}
@media (max-width: 767px) { .slider-tab { flex: 1 1 0; min-width: 0; font-size: .8rem; white-space: nowrap; } .slider-tabs { overflow: visible; } }
@media (min-width: 768px) { .slider-tab { font-size: .95rem; min-width: 150px; } }
.slider-tab:hover, .slider-tab.is-active { color: var(--white); }
.slider-tab-label { overflow: hidden; text-overflow: ellipsis; }
.slider-tab-bar { display: block; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.slider-tab-bar span { display: block; height: 100%; width: 100%; background: var(--green-glow); transform: scaleX(0); transform-origin: left; }
.slider-tab.is-done .slider-tab-bar span { transform: scaleX(1); }
.slider-tab.is-active .slider-tab-bar span { animation: slide-progress var(--slide-ms, 4000ms) linear forwards; }
.hero-slider.is-paused .slider-tab.is-active .slider-tab-bar span { animation-play-state: paused; }
.hero-slider.is-stopped .slider-tab.is-active .slider-tab-bar span { animation: none; transform: scaleX(1); }
@keyframes slide-progress { to { transform: scaleX(1); } }
.slider-pause {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); color: var(--white); transition: background-color .2s ease;
}
.slider-pause:hover { background: rgba(255, 255, 255, .2); }
.slider-pause .icon-play { display: none; }
.hero-slider.is-stopped .slider-pause .icon-play { display: block; }
.hero-slider.is-stopped .slider-pause .icon-pause { display: none; }

.slider-proof { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; }
.slider-proof .hero-proof {
  margin: 0; padding: 16px 0 20px; border-top: 1px solid rgba(255, 255, 255, .14);
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px;
}
@media (min-width: 1024px) { .slider-proof .hero-proof { grid-template-columns: repeat(4, 1fr); padding: 22px 0 26px; } }
.slider-proof .hero-proof li { color: #c9d1e4; font-size: .875rem; }
@media (min-width: 768px) { .slider-proof .hero-proof li { font-size: .95rem; } }
.slider-proof .hero-proof strong { color: var(--white); }
.slider-proof .hero-proof .icon { color: var(--green-glow); }
.slider-proof a { color: inherit; text-decoration: none; }
.slider-proof a:hover strong { color: var(--green-glow); }
@media (max-width: 479px) { .slider-proof .hero-proof li:nth-child(n+3) { display: none; } .slide { padding-bottom: 170px; } .slider-ui { bottom: 76px; } }

/* Bloc del mesurador sota el hero */
.meter-band { background: linear-gradient(180deg, var(--sky-50), var(--white)); }
.meter-band-grid { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 1024px) { .meter-band-grid { grid-template-columns: 1fr 1fr; gap: var(--s6); } }
.meter-band-lead { font-size: var(--fs-md); color: var(--slate); line-height: 1.55; }
.meter-band-visual { max-width: 520px; width: 100%; justify-self: center; }
.check-list { list-style: none; display: grid; gap: 10px; margin: var(--s3) 0; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.check-list .icon { color: var(--white); background: var(--green-600); border-radius: 50%; padding: 4px; width: 26px; height: 26px; flex: none; }

/* ── Guia de servei (contingut en profunditat) ─────────────────────────── */
.guide { background: var(--white); }
.guide-grid { display: grid; gap: var(--s4); }
@media (min-width: 1024px) { .guide-grid { grid-template-columns: 280px minmax(0, 1fr); gap: var(--s6); align-items: start; } }
.guide-toc { display: none; }
@media (min-width: 1024px) {
  .guide-toc { display: block; position: sticky; top: calc(var(--header-h) + 32px); padding: 24px; border-radius: var(--r-lg); background: var(--sky-50); border: 1px solid var(--line); }
  .guide-toc p { font-size: var(--fs-sm); font-weight: 650; color: var(--muted); margin-bottom: 12px; }
  .guide-toc ol { list-style: none; display: grid; gap: 4px; counter-reset: toc; }
  .guide-toc a { display: flex; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; line-height: 1.35; transition: background-color .2s ease; }
  .guide-toc a::before { counter-increment: toc; content: counter(toc); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--white); color: var(--green-700); font-size: .8rem; flex: none; border: 1px solid var(--line); }
  .guide-toc a:hover { background: var(--white); }
}
.guide-body { display: grid; gap: var(--s4); }
.guide-block { scroll-margin-top: calc(var(--header-h) + 24px); }
.guide-block h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.guide-block p { color: #2d3858; font-size: 1.0625rem; line-height: 1.7; max-width: 72ch; }
.guide-block ul { list-style: none; display: grid; gap: 8px; margin-top: var(--s2); }
.guide-block li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.55; }
.guide-block li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-top: .6em; flex: none; box-shadow: 0 0 0 4px var(--green-50); }
.guide-block + .guide-block { padding-top: var(--s4); border-top: 1px solid var(--line); }
.guide-note { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--r-md); background: var(--green-50); color: #0b4a37; margin-top: var(--s2); }
.guide-note .icon { color: var(--green-700); flex: none; margin-top: 2px; }
.guide-note p { margin: 0; color: inherit; font-size: 1rem; }

@media (prefers-reduced-motion: reduce) {
  .slide-media img { transform: none !important; }
  .slide-copy > * { transform: none; opacity: 1; }
}

/* ── Compromisos (Com treballem) ───────────────────────────────────────── */
.commit-grid { list-style: none; display: grid; gap: var(--s2); }
@media (min-width: 768px) { .commit-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s3); } }
@media (min-width: 1024px) { .commit-grid { grid-template-columns: repeat(4, 1fr); } }
.commit { padding: var(--s4) var(--s3); border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); transition: border-color .25s ease, transform .25s var(--ease); }
.commit:hover { border-color: var(--green-600); transform: translateY(-3px); }
.commit p { color: var(--muted); margin: 0; }
.commit h3 { font-size: 1.125rem; }
.commit-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--green-600); color: var(--white); margin-bottom: var(--s2); }

/* ── Efectes: profunditat, 3D i aparicions ─────────────────────────────── */
/* Transició suau entre pàgines (navegadors compatibles) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .32s; animation-timing-function: ease; }
.header-stack { view-transition-name: capcalera; }

/* Aparició escalonada */
.reveal { opacity: 0; }
.reveal.is-in { opacity: 1; animation: rise .85s var(--ease) var(--d, 0ms) backwards; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 28px, 0); } to { opacity: 1; transform: none; } }

/* Hero: capes */
.hero-slider { --px: 0; --py: 0; --sy: 0; }
.slide-media { transform: translate3d(calc(var(--px) * -18px), calc(var(--py) * -12px + var(--sy) * .28px), 0) scale(1.06); transition: transform .8s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.slide-inner { transform: translate3d(calc(var(--px) * 8px), calc(var(--py) * 6px - var(--sy) * .12px), 0); transition: transform .8s cubic-bezier(.2, .7, .2, 1); }

/* Ones de senyal sobre la foto */
.hero-signal { display: none; }
@media (min-width: 1024px) {
  .hero-signal {
    display: block; position: absolute; z-index: 1; pointer-events: none;
    right: 18%; top: 40%; width: 0; height: 0;
    transform: translate3d(calc(var(--px) * -26px), calc(var(--py) * -18px), 0); transition: transform .8s cubic-bezier(.2, .7, .2, 1);
  }
  .hero-signal span {
    position: absolute; left: 0; top: 0; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%;
    border: 1.5px solid rgba(52, 216, 160, .55); opacity: 0; transform: scale(.08);
    animation: broadcast 4.8s cubic-bezier(.15, .6, .3, 1) infinite;
  }
  .hero-signal span:nth-child(2) { animation-delay: 1.2s; }
  .hero-signal span:nth-child(3) { animation-delay: 2.4s; }
  .hero-signal span:nth-child(4) { animation-delay: 3.6s; }
  .hero-signal i { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--green-glow); box-shadow: 0 0 0 6px rgba(52, 216, 160, .2), 0 0 30px 6px rgba(52, 216, 160, .55); }
}
@keyframes broadcast { 0% { opacity: 0; transform: scale(.08); } 12% { opacity: .9; } 100% { opacity: 0; transform: scale(1); } }

/* Targetes amb inclinació 3D */
.tilt { transform-style: preserve-3d; transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease; will-change: transform; position: relative; }
.tilt.is-tilting { transition: transform .12s linear, box-shadow .3s ease; box-shadow: 0 30px 60px -30px rgba(22, 32, 58, .6); }
.tilt-glare {
  position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 55%);
  transition: opacity .3s ease; mix-blend-mode: soft-light;
}
.tilt.is-tilting .tilt-glare { opacity: 1; }
.post-card a.tilt { overflow: hidden; }
.commit.tilt:hover, .post-card a.tilt:hover { transform: none; }

/* El mesurador flota */
@media (min-width: 1024px) {
  .meter-band-visual { animation: float 7s ease-in-out infinite; perspective: 1100px; }
  .meter-band-visual .meter { transition: transform .5s cubic-bezier(.2, .7, .2, 1); transform-style: preserve-3d; }
}
@keyframes float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -12px, 0); } }

/* Procés: la senyal recorre el cable */
.step::before { background: linear-gradient(var(--green), var(--green)) no-repeat, var(--line); background-size: 100% 0%; transition: background-size .6s ease; }
@media (min-width: 1024px) { .step::before { background-size: 0% 100%; } }
.steps.is-on .step::before { background-size: 100% 100%; }
.steps.is-on .step:nth-child(1)::before { transition-delay: .25s; }
.steps.is-on .step:nth-child(2)::before { transition-delay: .85s; }
.steps.is-on .step:nth-child(3)::before { transition-delay: 1.45s; }
.step-node { transition: background-color .4s ease, box-shadow .4s ease, border-color .4s ease; }
.step-num { transition: color .4s ease; }
.steps.is-on .step-node { background: var(--green-600); border-color: var(--green-600); box-shadow: 0 0 0 6px var(--green-50), 0 0 24px rgba(0, 166, 118, .45); }
.steps.is-on .step-num { color: var(--white); }
.steps.is-on .step:nth-child(1) .step-node, .steps.is-on .step:nth-child(1) .step-num { transition-delay: 0s; }
.steps.is-on .step:nth-child(2) .step-node, .steps.is-on .step:nth-child(2) .step-num { transition-delay: .7s; }
.steps.is-on .step:nth-child(3) .step-node, .steps.is-on .step:nth-child(3) .step-num { transition-delay: 1.3s; }
.steps.is-on .step:nth-child(4) .step-node, .steps.is-on .step:nth-child(4) .step-num { transition-delay: 1.9s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; }
  .slide-media, .slide-inner, .hero-signal { transform: none !important; }
  .hero-signal span { animation: none; opacity: 0; }
  .meter-band-visual { animation: none; }
}


/* Hero en escriptori: text sobre tinta a l'esquerra, foto a la dreta amb fos (el motiu queda centrat) */
@media (min-width: 1024px) {
  .hero-slider { background: radial-gradient(120% 90% at 0% 0%, var(--ink-3) 0%, var(--ink-2) 55%); }
  .slide-media { left: 44%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 26%); mask-image: linear-gradient(90deg, transparent 0%, #000 26%); }
  .slide-media::after { content: ""; position: absolute; inset: 0; background: rgba(14, 22, 41, .18); }
  .slide::before { background: linear-gradient(0deg, rgba(14, 22, 41, .92) 0%, rgba(14, 22, 41, 0) 34%), linear-gradient(90deg, rgba(14, 22, 41, .6) 0%, rgba(14, 22, 41, 0) 62%); }
  .slide-copy { max-width: 590px; }
  .slide-title { font-size: clamp(2.6rem, 1.2rem + 2.9vw, 3.75rem); }
  .hero-signal { right: 27%; top: 38%; }
}
/* ── 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; }
}
