/* Potencial Automatic — estils compartits de la web pública (index, serveis, com-treballem, qui-som, contacte).
   Tokens a :root. Les classes utilitàries venen de tailwind.css. */
/* Evitar FOUC bilingüe: amagar l'idioma alternatiu fins que setLang() s'executi */
/* Anti-FOUC bilingüe: fins que corre setLang, només es veu l'idioma per defecte de la pàgina */
html[lang="ca"]:not(.lang-ready) [data-es], html[lang="es"]:not(.lang-ready) [data-cat] { display: none !important; }

/* ===== SISTEMA DE DISSENY (tokens) ===== */
:root {
  /* Color: marí de marca com a tinta, paper càlid, blau només per a interacció, or del logo com a accent mínim */
  --ink: #0d1f44;
  --ink-2: #3a4763;
  --ink-3: #6b7489;
  --paper: #f7f6f2;
  --paper-2: #efede6;
  --white: #ffffff;
  --line: rgba(13,31,68,.10);
  --line-strong: rgba(13,31,68,.18);
  --blue: #1a6dff;
  --blue-deep: #1450c8;
  --gold: #b18f59;
  --gold-soft: #d8c4a0;
  --night: #0a1834;
  --night-2: #12264f;

  /* Tipografia */
  --font-display: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  --fs-hero: clamp(2.6rem, 1.6rem + 3.6vw, 4.5rem);
  --fs-h2: clamp(2.1rem, 1.5rem + 2.4vw, 3.6rem);
  --fs-h3: 1.25rem;
  --fs-lead: clamp(1.06rem, 1rem + .3vw, 1.2rem);
  --fs-body: 1.0625rem;
  --fs-small: .875rem;
  --fs-label: .72rem;
  --tracking-display: -.018em;
  --tracking-label: .16em;

  /* Espai */
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(96px, 11vw, 160px);
  --page-max: 1280px;

  /* Forma i profunditat: cantonades contingudes, ombres curtes */
  --r-ctl: 6px;
  --r-card: 12px;
  --r-panel: 18px;
  --sh-1: 0 1px 2px rgba(13,31,68,.06), 0 6px 18px -10px rgba(13,31,68,.18);
  --sh-2: 0 2px 4px rgba(13,31,68,.06), 0 18px 40px -22px rgba(13,31,68,.35);

  /* Moviment */
  --ease: cubic-bezier(.22,1,.36,1);
  --dur: .9s;

  /* Gra (soroll SVG) per evitar superfícies planes */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body {
  font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.6;
  color: var(--ink); background: var(--paper); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2 {
  font-family: var(--font-display); font-weight: 380; letter-spacing: var(--tracking-display);
  font-optical-sizing: auto; color: var(--ink);
}
h3, h4 { font-weight: 560; letter-spacing: -.01em; }
/* Èmfasi dins de titulars: cursiva de la serif, no color ni degradat */
h1 .text-blue-600, h2 .text-blue-600, h2 .text-blue-400, h1 .grad-text, h2 .grad-text {
  font-style: italic; font-weight: 340; color: inherit;
}
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Etiqueta de secció: text, sense icona */
.eyebrow {
  font-family: var(--font-body); font-size: var(--fs-label); font-weight: 560;
  letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 12px;
}

/* Vidre: blur moderat, fons gairebé transparent, vora d'1px, línia de llum a dalt i gra */
.glass {
  position: relative; isolation: isolate;
  background: linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.38));
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), var(--sh-1);
}
.glass-dark {
  position: relative; isolation: isolate;
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 24px 60px -30px rgba(0,0,0,.6);
}
.glass::after, .glass-dark::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background-image: var(--noise); opacity: .05; mix-blend-mode: overlay;
}
/* Camp de llum quiet darrere del vidre: és el que el vidre refracta */
.light-field { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.light-field::before, .light-field::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(70px);
}
.light-field::before { width: 46vw; height: 46vw; max-width: 720px; max-height: 720px; right: -6vw; top: -10vw; background: radial-gradient(circle, rgba(26,109,255,.30), rgba(26,109,255,0) 68%); }
.light-field::after  { width: 34vw; height: 34vw; max-width: 520px; max-height: 520px; right: 22vw; bottom: -14vw; background: radial-gradient(circle, rgba(177,143,89,.22), rgba(177,143,89,0) 70%); }
.grain { position: relative; }
.grain::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: var(--noise); opacity: .035; z-index: 0; }

/* Botons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-size: .95rem; font-weight: 520; letter-spacing: -.005em;
  padding: 14px 22px; border-radius: var(--r-ctl); line-height: 1.2;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--night-2); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.link-u { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; text-decoration-thickness: 1px; transition: text-decoration-color .2s; }
.link-u:hover { text-decoration-color: var(--ink); }
/* ===== FI SISTEMA DE DISSENY ===== */

/* ===== DIAGNÒSTIC ===== */
.diag { position: relative; overflow: hidden; padding: var(--section-y) 0; background: var(--paper-2); border-top: 1px solid var(--line); }
.diag .light-field::before { right: 4%; top: 10%; }
.diag .light-field::after { right: 32%; bottom: -30%; }
.diag-grid { position: relative; z-index: 1; align-items: center; }
.diag-copy, .diag-card { grid-column: 1 / -1; }
@media (min-width: 1024px) { .diag-copy { grid-column: 1 / span 6; } .diag-card { grid-column: 8 / span 5; } }
.diag-text { margin-top: 24px; color: var(--ink-2); font-size: var(--fs-lead); max-width: 32rem; }
.diag-card { border-radius: var(--r-panel); padding: clamp(24px, 3vw, 36px); }
.diag-steps li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(13,31,68,.08); color: var(--ink); font-size: 1rem; }
.diag-steps li:first-child { padding-top: 0; }
.diag-btn { width: 100%; margin-top: 28px; }
.diag-note { margin-top: 14px; text-align: center; font-size: 13px; color: var(--ink-3); }

/* ===== FAQ ===== */
.faq { padding: var(--section-y) 0; }
.faq-head, .faq-list { grid-column: 1 / -1; }
@media (min-width: 1024px) { .faq-head { grid-column: 1 / span 4; } .faq-list { grid-column: 6 / span 7; } }
.faq-more { margin-top: 24px; color: var(--ink-2); font-size: .98rem; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 380; font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); letter-spacing: -.01em; line-height: 1.3; color: var(--ink); }
.faq-icon { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ink); transition: transform .35s var(--ease); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item.open .faq-icon { transform: none; }
.faq-item.open .faq-icon::after { transform: rotate(0deg); }
.faq-answer { padding: 0 48px 28px 0; color: var(--ink-2); max-width: 40rem; }

/* ===== QUI SOM ===== */
.team { padding: var(--section-y) 0; background: var(--paper-2); border-top: 1px solid var(--line); }
.team-head, .team-list { grid-column: 1 / -1; }
@media (min-width: 1024px) { .team-head { grid-column: 1 / span 5; } .team-list { grid-column: 7 / span 6; } }
.team-intro { margin-top: 24px; color: var(--ink-2); max-width: 28rem; }
.team-list { border-top: 1px solid var(--line-strong); }
.person { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding: 36px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .person { grid-template-columns: 132px 1fr; gap: 36px; } }
.person-img { width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; filter: saturate(.85); }
.person-name { font-family: var(--font-display); font-weight: 380; font-size: 1.75rem; letter-spacing: -.015em; line-height: 1.1; }
.person-role { margin-top: 6px; font-size: var(--fs-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--ink-3); }
.person-bio { margin-top: 16px; color: var(--ink-2); font-size: .98rem; }
.person-quote { margin-top: 14px; font-family: var(--font-display); font-style: italic; font-weight: 340; font-size: 1.1rem; color: var(--ink); }

/* ===== CONTACTE ===== */
.contact { padding: var(--section-y) 0; }
.contact-copy, .contact-form-wrap { grid-column: 1 / -1; }
@media (min-width: 1024px) { .contact-copy { grid-column: 1 / span 5; } .contact-form-wrap { grid-column: 7 / span 6; } }
.contact-text { margin-top: 24px; color: var(--ink-2); max-width: 28rem; }
.book-card { margin-top: 36px; border-radius: var(--r-panel); padding: 24px; background: var(--night); color: var(--paper); overflow: hidden; }
.book-card-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 14.5px; }
.book-card-row:first-child { padding-top: 0; }
.book-card-k { color: rgba(247,246,242,.62); }
.book-card-v { color: var(--paper); font-variant-numeric: tabular-nums; }
.book-card-btn { width: 100%; margin-top: 22px; }
.contact-direct { margin-top: 32px; display: grid; gap: 14px; }
.contact-direct > div { display: flex; gap: 20px; align-items: baseline; }
.contact-direct dt { width: 72px; flex-shrink: 0; font-size: var(--fs-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--ink-3); }
.contact-direct dd { font-size: 15px; }
.contact-form-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-panel); padding: clamp(24px, 3.4vw, 44px); box-shadow: var(--sh-1); }
.contact-form { display: flex; flex-direction: column; gap: 22px; }
.contact-form-title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 380; letter-spacing: -.015em; }
.field label { display: block; font-size: var(--fs-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); padding: 8px 0 10px; border-radius: 0; resize: none; transition: border-color .25s; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ink-2); }
.consent input { margin-top: 3px; accent-color: var(--ink); }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.success-title { font-family: var(--font-display); font-size: 1.8rem; font-weight: 380; }

/* ===== PEU ===== */
.site-footer { position: relative; background: var(--night); color: rgba(247,246,242,.7); padding: clamp(72px, 9vw, 120px) 0 36px; }
.site-footer.grain::before { opacity: .06; mix-blend-mode: overlay; }
.site-footer .page-wrap { position: relative; z-index: 1; }
.foot-top { display: grid; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (min-width: 900px) { .foot-top { grid-template-columns: 6fr 3fr 3fr; } }
.foot-word { font-family: var(--font-display); font-weight: 340; font-size: clamp(2.4rem, 1.6rem + 3vw, 4.4rem); letter-spacing: -.025em; line-height: 1; color: var(--paper); }
.foot-tag { margin-top: 20px; max-width: 26rem; font-size: .97rem; }
.foot-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.foot-col a { color: rgba(247,246,242,.78); transition: color .2s; width: fit-content; }
.foot-col a:hover { color: var(--paper); }
.foot-h { font-size: var(--fs-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: rgba(247,246,242,.45); margin-bottom: 6px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; padding-top: 28px; font-size: 13px; color: rgba(247,246,242,.45); }
.foot-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.foot-legal a:hover { color: var(--paper); }
.site-footer .lang-btn { color: rgba(247,246,242,.5); }
.site-footer .lang-btn.active { color: var(--paper); background: rgba(255,255,255,.1); }


/* ===== COM TREBALLEM ===== */
.process { padding: var(--section-y) 0; background: var(--paper-2); border-top: 1px solid var(--line); }
.process-head, .process-steps { grid-column: 1 / -1; }
@media (min-width: 1024px) {
  .process-head { grid-column: 1 / span 5; }
  .process-steps { grid-column: 7 / span 6; }
  .process-sticky { position: sticky; top: 140px; }
}
.process-intro { margin-top: 24px; color: var(--ink-2); max-width: 26rem; }
.process-link { display: inline-block; margin-top: 28px; font-size: 15px; }
.process-steps { border-top: 1px solid var(--line-strong); }
.step { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 36px 0 40px; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .step { grid-template-columns: 120px 1fr; padding: 44px 0 48px; } }
.step-n { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.6rem, 2rem + 2vw, 4rem); line-height: .9; color: var(--gold); letter-spacing: -.03em; }
.step-title { font-family: var(--font-display); font-weight: 380; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -.015em; line-height: 1.15; }
.step-text { margin-top: 12px; color: var(--ink-2); max-width: 32rem; }

/* ===== DEMO DE VEU ===== */
.voice { position: relative; overflow: hidden; isolation: isolate; background: var(--night); color: var(--paper); padding: var(--section-y) 0; }
.voice.grain::before { opacity: .06; mix-blend-mode: overlay; }
.voice-grid { position: relative; z-index: 1; align-items: center; }
.voice-copy, .voice-visual { grid-column: 1 / -1; }
@media (min-width: 1024px) { .voice-copy { grid-column: 1 / span 6; } .voice-visual { grid-column: 8 / span 5; } }
.eyebrow--light { color: rgba(247,246,242,.6); }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #5fd08f; box-shadow: 0 0 0 4px rgba(95,208,143,.15); margin-right: -4px; }
.h-light { color: var(--paper); }
.h-light em { color: var(--gold-soft); }
.voice-text { margin-top: 24px; color: rgba(247,246,242,.72); font-size: var(--fs-lead); max-width: 32rem; }
.voice-number { display: inline-block; margin-top: 36px; font-family: var(--font-display); font-weight: 300; font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem); letter-spacing: -.02em; color: var(--paper); font-variant-numeric: lining-nums; border-bottom: 1px solid rgba(216,196,160,.5); line-height: 1.15; transition: border-color .3s; }
.voice-number:hover { border-color: var(--paper); }
.voice-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; font-size: 14px; color: rgba(247,246,242,.6); }
.voice-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--gold-soft); }
.voice-call { margin-top: 28px; }
@media (min-width: 1024px) { .voice-call { display: none; } }
.voice-legal { margin-top: 28px; font-size: 12px; line-height: 1.6; color: rgba(247,246,242,.42); max-width: 30rem; }
.voice-legal a { color: rgba(247,246,242,.7); text-decoration: underline; text-underline-offset: 3px; }

.phone { border-radius: 32px; padding: 36px 28px 30px; max-width: 320px; margin: 0 auto; text-align: center; }
.phone-label { font-size: 10.5px; letter-spacing: var(--tracking-label); text-transform: uppercase; color: rgba(247,246,242,.5); }
.phone-name { font-family: var(--font-display); font-size: 2rem; font-weight: 360; margin-top: 10px; line-height: 1.1; }
.phone-role { font-size: 12.5px; color: rgba(247,246,242,.55); margin-top: 4px; }
.phone-orb { position: relative; width: 104px; height: 104px; margin: 30px auto 6px; }
.phone-orb span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(216,196,160,.45); animation: orbRing 3.2s var(--ease) infinite; }
.phone-orb span:nth-child(2) { animation-delay: 1.6s; }
.phone-orb .phone-orb-core { animation: none; border: 1px solid rgba(255,255,255,.18); background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.22), rgba(255,255,255,.04)); display: grid; place-items: center; font-family: var(--font-display); font-style: italic; font-size: 2.2rem; color: var(--gold-soft); }
@keyframes orbRing { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.55); opacity: 0; } }
.phone-wave { height: 40px; margin: 22px 0 18px; }
.phone-quote { font-family: var(--font-display); font-style: italic; font-weight: 320; font-size: 1.05rem; line-height: 1.5; color: rgba(247,246,242,.88); }
.phone-btn { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--paper); color: var(--ink); margin: 26px auto 0; }
@media (prefers-reduced-motion: reduce) { .phone-orb span { animation: none !important; } }

/* ===== MISSIÓ ===== */
.mission { padding: var(--section-y) 0; }
.mission-eyebrow, .mission-quote, .mission-cols { grid-column: 1 / -1; }
.mission-quote { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.6rem); line-height: 1.12; max-width: 22ch; }
@media (min-width: 1024px) { .mission-quote { grid-column: 2 / span 10; } .mission-eyebrow { grid-column: 2 / span 10; } .mission-cols { grid-column: 2 / span 10; } }
.mission-quote em { font-style: italic; font-weight: 320; color: var(--ink-3); }
.mission-cols { display: grid; gap: 36px; margin-top: 24px; border-top: 1px solid var(--line-strong); padding-top: 36px; }
@media (min-width: 900px) { .mission-cols { grid-template-columns: 1.15fr 1fr 1fr; gap: 48px; } }
.mission-h { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.mission-cols p { margin-top: 10px; color: var(--ink-2); font-size: .98rem; }


/* ===== LAYOUT COMÚ ===== */
.page-wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); }
.page-grid { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 24px; row-gap: 48px; }
.h-section { font-size: var(--fs-h2); line-height: 1.06; }
.h-section em { font-style: italic; font-weight: 320; }
.eyebrow + .h-section { margin-top: 24px; }

/* ===== SECTORS ===== */
.sectors { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.sectors-inner { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 32px; height: 76px; }
.sectors-label { flex-shrink: 0; }
.sectors .marquee-wrap { flex: 1; min-width: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.sectors .marquee-track { animation-duration: 48s; }
.sec-item { font-family: var(--font-display); font-style: italic; font-weight: 340; font-size: 1.35rem; color: var(--ink-2); white-space: nowrap; display: inline-flex; align-items: center; }
.sec-item::after { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); margin: 0 2.2rem; opacity: .8; }
@media (max-width: 640px) { .sectors-label { display: none; } }

/* ===== DECLARACIÓ ===== */
.statement { padding: var(--section-y) 0; }
.st-head { grid-column: 1 / -1; }
.st-side { grid-column: 1 / -1; }
@media (min-width: 1024px) {
  .st-head { grid-column: 1 / span 8; }
  .st-side { grid-column: 9 / span 4; align-self: end; }
}
.statement .h-section { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.3rem); line-height: 1.12; }
.statement .h-section em { color: var(--ink-3); }
.st-intro { color: var(--ink-2); font-size: 1rem; }
.st-list { margin-top: 20px; border-top: 1px solid var(--line); }
.st-list li { padding: 13px 0 13px 26px; border-bottom: 1px solid var(--line); position: relative; font-size: .97rem; color: var(--ink); }
.st-list li::before { content: ''; position: absolute; left: 0; top: 50%; width: 12px; height: 1px; background: var(--gold); }

/* ===== SERVEIS ===== */
.services { padding: 0 0 var(--section-y); }
.svc-head { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 24px; row-gap: 20px; margin-bottom: 56px; }
.svc-head .eyebrow, .svc-head .h-section { grid-column: 1 / -1; }
.svc-head .h-section { margin-top: 0; }
.svc-head-note { grid-column: 1 / -1; color: var(--ink-2); max-width: 30rem; }
@media (min-width: 1024px) {
  .svc-head .h-section { grid-column: 1 / span 8; }
  .svc-head-note { grid-column: 9 / span 4; align-self: end; }
}

.svc-feature { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-panel); background: var(--night); color: var(--paper);
  display: grid; grid-template-columns: 1fr; gap: 40px; padding: clamp(32px, 5vw, 64px); }
@media (min-width: 1024px) { .svc-feature { grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; } }
.svc-feature.grain::before { opacity: .06; mix-blend-mode: overlay; }
.light-field--dark::before { background: radial-gradient(circle, rgba(26,109,255,.42), rgba(26,109,255,0) 68%); right: -10%; top: -30%; }
.light-field--dark::after { background: radial-gradient(circle, rgba(177,143,89,.30), rgba(177,143,89,0) 70%); right: 30%; bottom: -40%; }
.svc-feature-copy, .svc-feature-visual { position: relative; z-index: 1; }
.svc-n { font-family: var(--font-display); font-style: italic; color: var(--gold); font-size: 1rem; }
.svc-n--light { color: var(--gold-soft); }
.svc-feature-title { font-family: var(--font-display); font-weight: 360; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); letter-spacing: var(--tracking-display); line-height: 1.04; margin-top: 14px; color: var(--paper); }
.svc-feature-text { margin-top: 20px; color: rgba(247,246,242,.74); font-size: var(--fs-lead); max-width: 36rem; }
.svc-feature-list { margin-top: 28px; border-top: 1px solid rgba(255,255,255,.12); max-width: 36rem; }
.svc-feature-list li { padding: 12px 0 12px 26px; border-bottom: 1px solid rgba(255,255,255,.12); position: relative; font-size: .97rem; color: rgba(247,246,242,.9); }
.svc-feature-list li::before { content: ''; position: absolute; left: 0; top: 50%; width: 12px; height: 1px; background: var(--gold-soft); }
.svc-feature-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }
.link-u--light { color: var(--paper); text-decoration-color: var(--gold-soft); background: none; border: 0; cursor: pointer; font-size: 15px; }
.link-u--light:hover { text-decoration-color: var(--paper); }

.call-card { border-radius: var(--r-panel); padding: 22px; max-width: 380px; margin: 0 auto; color: var(--paper); }
.call-top { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: var(--tracking-label); text-transform: uppercase; color: rgba(247,246,242,.55); }
.call-time { font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.call-who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.call-who .hc-avatar { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); }
.call-name { display: block; font-weight: 600; font-size: 15px; }
.call-role { display: block; font-size: 12px; color: rgba(247,246,242,.55); }
.call-wave { display: flex; align-items: center; gap: 4px; height: 56px; margin: 22px 0 18px; }
.call-wave i { flex: 1; height: 100%; border-radius: 2px; background: linear-gradient(180deg, rgba(247,246,242,.9), rgba(216,196,160,.55)); transform: scaleY(.25); animation: callWave 1.6s var(--ease) infinite; }
.call-wave i:nth-child(3n) { animation-delay: .2s; } .call-wave i:nth-child(3n+1) { animation-delay: .45s; } .call-wave i:nth-child(4n) { animation-delay: .7s; } .call-wave i:nth-child(5n) { animation-delay: .95s; }
@keyframes callWave { 0%,100% { transform: scaleY(.18); } 50% { transform: scaleY(.85); } }
.call-quote { font-family: var(--font-display); font-style: italic; font-weight: 320; font-size: 1.15rem; line-height: 1.45; color: rgba(247,246,242,.92); }
.call-foot { display: flex; align-items: center; gap: 8px; margin-top: 20px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12.5px; color: rgba(247,246,242,.7); }
.call-foot svg { color: var(--gold-soft); }

.svc-list { margin-top: 24px; border-top: 1px solid var(--line-strong); }
.svc-row { display: grid; grid-template-columns: 40px 1fr auto; column-gap: 16px; row-gap: 6px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line); cursor: pointer; position: relative; }
.svc-row .svc-n { grid-row: 1; padding-top: 6px; }
.svc-title { grid-column: 2; font-family: var(--font-display); font-weight: 360; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); letter-spacing: -.015em; line-height: 1.15; color: var(--ink); transition: transform .5s var(--ease); }
.svc-desc { grid-column: 2; color: var(--ink-2); font-size: .98rem; max-width: 34rem; }
.svc-more { grid-column: 3; grid-row: 1; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); padding: 8px 0; background: none; border: 0; cursor: pointer; }
.svc-thumb { display: none; }
@media (min-width: 1024px) {
  .svc-row { grid-template-columns: 64px 4fr 5fr 260px 110px; column-gap: 32px; align-items: center; padding: 26px 0; }
  .svc-row .svc-n, .svc-title, .svc-desc, .svc-thumb, .svc-more { grid-row: 1; }
  .svc-row .svc-n { padding-top: 0; }
  .svc-title { grid-column: 2; } .svc-desc { grid-column: 3; } .svc-more { grid-column: 5; justify-self: end; }
  .svc-thumb { display: block; grid-column: 4; position: relative; height: 144px; border-radius: var(--r-card); overflow: hidden; background: var(--night); filter: saturate(.12) brightness(.92); opacity: .9; transition: filter .6s var(--ease), opacity .6s var(--ease); }
  .svc-row:hover .svc-thumb { filter: none; opacity: 1; }
  .svc-row:hover .svc-title { transform: translateX(6px); }
}
.svc-row:hover .svc-more { color: var(--ink); }
.svc-row:hover .svc-more .arr { transform: translateX(3px); }
.svc-more .arr { transition: transform .25s var(--ease); }

.svc-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin-top: 56px; }
.svc-cta p { font-family: var(--font-display); font-size: clamp(1.3rem, 1.1rem + .6vw, 1.7rem); font-weight: 340; letter-spacing: -.01em; max-width: 34rem; }
@media (prefers-reduced-motion: reduce) { .call-wave i { animation: none !important; transform: scaleY(.5); } }

.dark-nav { background: #0d1f44; }
.blue-btn { background: var(--ink); border-radius: var(--r-ctl); font-weight: 520; }
.blue-btn:hover { background: var(--night-2); opacity: 1; }
/* Etiquetes de secció antigues: mateix aspecte que .eyebrow, sense icona */
.section-tag { font-size: var(--fs-label); font-weight: 560; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 12px; }
.section-tag svg { display: none; }
.section-tag strong { color: inherit !important; font-weight: inherit; margin-left: 0 !important; }
.swiper-section { background: #0d1f44; }
.case-bg { background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%); }
.form-section { background: linear-gradient(135deg, #1a6dff 0%, #0d4fd6 100%); }
.faq-answer { display: none; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform 0.2s ease; }
.lang-btn { padding: 5px 7px; font-size: .72rem; font-weight: 560; letter-spacing: .08em; cursor: pointer; border: none; background: none; border-radius: 4px; color: var(--ink-3); transition: color .2s, background .2s; }
.lang-btn.active { color: var(--ink); background: rgba(13,31,68,.07); }
.lang-btn:not(.active):hover { color: var(--ink); }

/* ---- Animations ---- */
@keyframes blobFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(20px,-15px) scale(1.05); }
  66% { transform: translate(-10px,12px) scale(0.97); }
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes fadeInUp {
  from { opacity:0; transform: translateY(24px); }
  to   { opacity:1; transform: translateY(0); }
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(26,109,255,0.35); }
  70%  { box-shadow: 0 0 0 12px rgba(26,109,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(26,109,255,0); }
}
@keyframes chatPop {
  from { opacity:0; transform: translateY(8px) scale(.95); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}
@keyframes gradientShift {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.blob { display: none; }
.marquee-wrap { overflow:hidden; }
.marquee-track { display:flex; width:max-content; animation: marqueeScroll 22s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.reveal { opacity:0; transform:translateY(14px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.reveal.visible { opacity:1; transform:translateY(0); }
.consult-gradient { background: var(--night); }
.service-card { transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.service-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }

/* demo chat */
.demo-msg { animation: chatPop .4s ease forwards; }
.demo-msg.hidden-msg { opacity:0; }

/* modals */
#consult-modal { display:none; }
#consult-modal.open { display:flex; }
#book-modal { display:none; }
.book-day-btn { width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:10px;font-size:0.75rem;font-weight:600;cursor:pointer;transition:all .15s; }
.book-day-btn:hover { background:#1a6dff;color:#fff; }
.book-day-btn.selected { background:#1a6dff;color:#fff; }
.book-day-btn.disabled { color:#d1d5db;cursor:default;font-weight:400; }
.book-day-btn.disabled:hover { background:none;color:#d1d5db; }
.slot-btn { padding:12px;border-radius:12px;border:2px solid #dbeafe;color:#1a6dff;font-size:0.8rem;font-weight:700;cursor:pointer;transition:all .15s;text-align:center; }
.slot-btn:hover { background:#1a6dff;color:#fff;border-color:#1a6dff; }
.slot-btn.taken { border-color:#e5e7eb;color:#d1d5db;cursor:not-allowed;text-decoration:line-through; }
.slot-btn.taken:hover { background:none;color:#d1d5db;border-color:#e5e7eb; }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin .8s linear infinite; }

/* ===== CHAT WIDGET ===== */
#chat-fab-wrap {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
}
#chat-fab {
  width: 60px; height: 60px; border-radius: 50%;
  background: #1a6dff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(26,109,255,0.45);
  transition: transform .2s ease, background .2s ease;
  position: relative;
}
#chat-fab::before {
  content: ''; position: absolute; inset: 0;
  border-radius: 50%; background: rgba(26,109,255,0.35);
  animation: chatFabRing 2.4s ease-out infinite;
}
#chat-fab:hover { transform: scale(1.08); background: #1558d6; }
#chat-fab svg { width: 26px; height: 26px; position: relative; z-index: 1; }
@keyframes chatFabRing {
  0%   { transform: scale(1); opacity: 0.65; }
  100% { transform: scale(1.85); opacity: 0; }
}
#chat-notif {
  position: absolute; top: -2px; right: -2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #ef4444; border: 2.5px solid white; display: none;
  animation: chatPop .3s ease;
}
#chat-tooltip {
  position: absolute; bottom: 72px; right: 0;
  background: #0d1f44; color: white; font-size: 12.5px; font-weight: 500;
  padding: 8px 14px; border-radius: 12px 12px 4px 12px;
  white-space: nowrap; box-shadow: 0 4px 16px rgba(13,31,68,0.22);
  animation: chatPop .4s ease forwards; pointer-events: none;
}
#chat-tooltip::after {
  content: ''; position: absolute; bottom: -5px; right: 16px;
  border: 5px solid transparent; border-top-color: #0d1f44; border-bottom: none;
}
#chat-window {
  position: fixed; bottom: 102px; right: 28px; z-index: 9998;
  width: 350px; max-height: 520px; max-height: min(520px, calc(100vh - 130px)); max-height: min(520px, calc(100dvh - 130px));
  background: white; border-radius: 20px;
  box-shadow: 0 8px 40px rgba(13,31,68,0.16), 0 2px 8px rgba(26,109,255,0.08);
  display: flex; flex-direction: column; overflow: hidden;
  transform: scale(0.9) translateY(20px); opacity: 0;
  transition: transform .28s cubic-bezier(.34,1.56,.64,1), opacity .2s ease, visibility 0s linear .28s;
  pointer-events: none; visibility: hidden;
}
#chat-window.open {
  transform: scale(1) translateY(0); opacity: 1; pointer-events: all;
  visibility: visible; transition-delay: 0s;
}
#chat-hdr {
  background: linear-gradient(135deg, #0d1f44 0%, #1a3a7e 100%);
  padding: 13px 15px; display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
#chat-av {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg,#1a6dff,#60a5fa);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(26,109,255,0.5); overflow: hidden;
}
#chat-av svg { width: 100%; height: 100%; }
#chat-hdr-info { flex: 1; min-width: 0; }
#chat-hdr-name { color: white; font-size: 13.5px; font-weight: 700; letter-spacing: .01em; }
#chat-hdr-sub { display: flex; align-items: center; gap: 5px; margin-top: 2px; }
#chat-sdot {
  width: 7px; height: 7px; border-radius: 50%; background: #4ade80;
  flex-shrink: 0; animation: chatSdotPulse 2.5s ease infinite;
}
@keyframes chatSdotPulse { 0%,100%{opacity:1} 50%{opacity:.3} }
#chat-hdr-sub span { color: #86efac; font-size: 11px; }
#chat-x, #chat-reset {
  background: none; border: none; cursor: pointer; color: white;
  opacity: .7; font-size: 22px; line-height: 1; padding: 6px 8px; min-width: 32px; min-height: 32px;
  transition: opacity .15s; flex-shrink: 0;
}
#chat-reset { font-size: 16px; }
#chat-x:hover, #chat-reset:hover { opacity: 1; }
.ch-opts {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px;
  align-self: flex-start; max-width: 92%;
}
.ch-opt-btn {
  background: white; color: #1a6dff; border: 1.5px solid #1a6dff;
  border-radius: 20px; padding: 5px 13px; font-size: 12px;
  font-family: var(--font-body); cursor: pointer; font-weight: 500;
  transition: background .15s, color .15s;
}
.ch-opt-btn:hover { background: #1a6dff; color: white; }
#chat-msgs {
  flex: 1; overflow-y: auto; padding: 14px 12px;
  display: flex; flex-direction: column; gap: 10px; min-height: 0;
  scroll-behavior: smooth; overscroll-behavior: contain;
}
#chat-msgs::-webkit-scrollbar { width: 4px; }
#chat-msgs::-webkit-scrollbar-thumb { background: #dbeafe; border-radius: 4px; }
.ch-b {
  max-width: 82%; padding: 10px 14px; border-radius: 18px;
  font-size: 13px; line-height: 1.55; word-break: break-word;
  animation: chatPop .3s ease forwards;
}
.ch-b.bot {
  background: #eff6ff; color: #1e3a5f;
  border-radius: 4px 18px 18px 18px; align-self: flex-start;
}
.ch-b.user {
  background: #1a6dff; color: white;
  border-radius: 18px 18px 4px 18px; align-self: flex-end;
}
.ch-b.bot a { color: #1a6dff; text-decoration: underline; }
.ch-b.user a { color: #fff; text-decoration: underline; }
.ch-b.err { background: #fef2f2; color: #7f1d1d; }
.ch-retry {
  align-self: flex-start; background: #1a6dff; color: #fff; border: none;
  border-radius: 20px; padding: 6px 14px; font-size: 12px; font-weight: 600;
  font-family: var(--font-body); cursor: pointer;
}
.ch-retry:hover { background: #1558d6; }
.ch-opt-btn:focus-visible, .ch-retry:focus-visible, #chat-fab:focus-visible, #chat-btn-send:focus-visible,
#chat-x:focus-visible, #chat-reset:focus-visible { outline: 2px solid #0d1f44; outline-offset: 2px; }
.ch-typing {
  display: flex; align-items: center; gap: 4px;
  background: #eff6ff; padding: 10px 14px;
  border-radius: 4px 18px 18px 18px; align-self: flex-start;
  animation: chatPop .3s ease forwards;
}
.ch-typing span {
  width: 7px; height: 7px; border-radius: 50%; background: #93c5fd;
  display: inline-block; animation: chTyping 1.2s ease infinite;
}
.ch-typing span:nth-child(2) { animation-delay: .18s; }
.ch-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes chTyping {
  0%,60%,100% { transform: translateY(0); }
  30% { transform: translateY(-5px); }
}
#chat-inp-wrap {
  border-top: 1.5px solid #e8f0fe; padding: 10px 12px;
  display: flex; align-items: flex-end; gap: 8px;
  flex-shrink: 0; background: white;
}
#chat-inp {
  flex: 1; border: 1.5px solid #dbeafe; border-radius: 14px;
  padding: 9px 13px; font-size: 13px; font-family: var(--font-body);
  outline: none; resize: none; color: #1e3a5f; max-height: 90px;
  transition: border-color .15s; line-height: 1.4; overflow-y: auto;
  scrollbar-width: thin;
}
#chat-inp:focus { border-color: #1a6dff; }
#chat-btn-send {
  width: 38px; height: 38px; border-radius: 50%; background: #1a6dff;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .15s, transform .1s;
}
#chat-btn-send:hover:not(:disabled) { background: #1558d6; transform: scale(1.06); }
#chat-btn-send:disabled { background: #bfdbfe; cursor: not-allowed; }
#chat-btn-send svg { width: 15px; height: 15px; fill: white; }
@media (max-width: 480px) {
  #chat-window { right: 0; bottom: 0; width: 100vw; max-height: 80vh; max-height: 80dvh; border-radius: 20px 20px 0 0; }
  #chat-fab-wrap { bottom: 20px; right: 20px; }
  html.chat-open #chat-fab-wrap { display: none; }
  #chat-inp { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  #chat-fab::before, #chat-sdot, #chat-notif, #chat-tooltip, .ch-b, .ch-typing, .ch-typing span { animation: none !important; }
  #chat-window { transition: none !important; }
  #chat-msgs { scroll-behavior: auto; }
}
/* ===== END CHAT WIDGET ===== */

/* ===== VOICE DEMO ===== */
@keyframes wavebar {
  0%, 100% { height: 4px; opacity: 0.45; }
  50% { height: var(--h, 20px); opacity: 1; }
}
@keyframes voicePulseRing {
  0%   { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(2.3); opacity: 0; }
}
@keyframes phoneShake {
  0%, 100% { transform: rotate(0deg) scale(1); }
  15%  { transform: rotate(-13deg) scale(1.06); }
  30%  { transform: rotate(13deg) scale(1.06); }
  45%  { transform: rotate(-8deg) scale(1.02); }
  60%  { transform: rotate(8deg) scale(1.02); }
  75%  { transform: rotate(-3deg) scale(1); }
}
.wavebar {
  width: 4px;
  min-height: 4px;
  border-radius: 99px;
  background: linear-gradient(to top, #1a6dff, #93c5fd);
  animation: wavebar 1s ease-in-out infinite;
}
.voice-pulse-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(26,109,255,0.5);
  animation: voicePulseRing 2s ease-out infinite;
}
.phone-cta-btn { animation: phoneShake 0.6s ease 2s 3; }
.phone-cta-btn:hover { filter: brightness(1.1); transform: translateY(-2px); }
/* ===== END VOICE DEMO ===== */

/* ===== V1 AURORA ===== */
#hero-three { position:absolute; inset:0; z-index:1; pointer-events:none; width:100%; height:100%; -webkit-mask-image: linear-gradient(90deg, transparent 34%, #000 62%); mask-image: linear-gradient(90deg, transparent 34%, #000 62%); }
@media (max-width: 1023px) { #hero-three { -webkit-mask-image: linear-gradient(180deg, transparent 40%, #000 75%); mask-image: linear-gradient(180deg, transparent 40%, #000 75%); } }
#scroll-progress { position:fixed; top:0; left:0; height:2px; width:0; background:var(--gold); z-index:10000; }
/* ===== NAVEGACIÓ (vidre flotant) ===== */
html { scroll-padding-top: 96px; }
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 12px var(--gutter) 0; pointer-events: none; }
.nav-glass { pointer-events: auto; max-width: var(--page-max); margin: 0 auto; border-radius: 14px; transition: background .4s var(--ease), box-shadow .4s var(--ease); }
.nav-glass.nav-scrolled { background: linear-gradient(180deg, rgba(255,255,255,.80), rgba(255,255,255,.64)); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), var(--sh-2); }
.nav-brand { font-size: 15px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.nav-links a { font-size: 14.5px; color: var(--ink-2); position: relative; transition: color .2s; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px; background: var(--gold); transition: right .35s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }
.nav-client { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--ink-2); padding: 9px 12px; border-radius: var(--r-ctl); transition: color .2s, background .2s; }
.nav-client:hover { color: var(--ink); background: rgba(13,31,68,.05); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.mobile-links { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.mobile-links a { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: -.01em; color: var(--ink); padding: 12px 0; border-bottom: 1px solid var(--line); }

/* ===== HERO ===== */
.hero { position: relative; overflow: hidden; background: var(--paper); }
.hero-inner {
  position: relative; z-index: 2; max-width: var(--page-max); margin: 0 auto;
  padding: clamp(120px, 12vw, 160px) var(--gutter) clamp(48px, 6vw, 72px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 56px; align-items: center;
}
.hero-copy { grid-column: 1 / -1; }
.hero-visual { grid-column: 1 / -1; position: relative; }
.hero-facts { grid-column: 1 / -1; }
@media (min-width: 1024px) {
  .hero-copy { grid-column: 1 / span 7; }
  .hero-visual { grid-column: 9 / span 4; }
}
.hero .eyebrow { margin-bottom: 28px; }
.hero-title { font-size: var(--fs-hero); line-height: 1; max-width: 15ch; }
.hero-title em { font-style: italic; font-weight: 320; display: block; color: var(--ink); }
.hero-lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-2); max-width: 34rem; margin-top: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 40px; }
.hero-actions .link-u { font-size: 15px; }

.hero-card { border-radius: var(--r-panel); overflow: hidden; max-width: 400px; margin-left: auto; }
.hc-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid rgba(13,31,68,.07); }
.hc-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--gold-soft); display: grid; place-items: center; font-family: var(--font-display); font-style: italic; font-size: 17px; flex-shrink: 0; }
.hc-name { display: block; font-weight: 600; font-size: 14px; line-height: 1.2; }
.hc-role { display: block; font-size: 12px; color: var(--ink-3); }
.hc-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-3); }
.hc-status i { width: 6px; height: 6px; border-radius: 50%; background: #3fa36b; box-shadow: 0 0 0 3px rgba(63,163,107,.15); }
.hc-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; line-height: 1.5; }
.hc-msg { max-width: 86%; padding: 10px 13px; border-radius: 12px; }
.hc-msg.bot { align-self: flex-start; background: rgba(255,255,255,.72); border: 1px solid rgba(13,31,68,.06); border-top-left-radius: 4px; color: var(--ink); }
.hc-msg.me { align-self: flex-end; background: var(--ink); color: var(--paper); border-top-right-radius: 4px; }
.hc-slots { display: flex; gap: 6px; margin-top: 9px; }
.hc-slots b, .hc-slots i { font-style: normal; font-weight: 500; font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-2); }
.hc-slots b { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.hc-done { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 12.5px; color: var(--ink-2); padding: 4px 0 0 2px; }
.hc-done svg { color: var(--gold); }
.hc-foot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid rgba(13,31,68,.07); font-size: 11.5px; color: var(--ink-3); letter-spacing: .01em; }

.hero-chip { position: absolute; z-index: 3; left: -56px; top: -26px; display: none; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 999px; font-size: 12.5px; color: var(--ink-2); }
@media (min-width: 1024px) { .hero-chip { display: inline-flex; } }
.hero-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.hero-eq i { width: 2px; height: 100%; border-radius: 2px; background: var(--ink); transform-origin: bottom; animation: heroEq 1.1s var(--ease) infinite; }
.hero-eq i:nth-child(2) { animation-delay: .15s; } .hero-eq i:nth-child(3) { animation-delay: .3s; }
.hero-eq i:nth-child(4) { animation-delay: .45s; } .hero-eq i:nth-child(5) { animation-delay: .6s; }
@keyframes heroEq { 0%,100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

.hero-facts { display: grid; gap: 20px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 8px; counter-reset: none; }
@media (min-width: 768px) { .hero-facts { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.hero-facts li { display: flex; gap: 14px; font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 30ch; }
.hf-n { font-family: var(--font-display); font-style: italic; color: var(--gold); font-size: 15px; flex-shrink: 0; }

/* Entrada del hero: una sola vegada, suau */
.hero-copy > *, .hero-visual, .hero-facts { animation: heroIn 1.1s var(--ease) both; }
.hero-copy > :nth-child(2), .hero-copy > :nth-child(3) { animation-delay: .08s; }
.hero-copy > :nth-child(4), .hero-copy > :nth-child(5) { animation-delay: .16s; }
.hero-copy > :nth-child(6) { animation-delay: .24s; }
.hero-visual { animation-delay: .3s; } .hero-facts { animation-delay: .45s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .hero-visual, .hero-facts, .hero-eq i { animation: none !important; }
}
.service-card { transform-style: preserve-3d; }
.service-card .mockup-zoom { transition: transform .5s ease; }
.service-card:hover .mockup-zoom { transform: scale(1.04); }

/* Animació d'èxit de formularis */
.success-check { width:76px; height:76px; margin:0 auto 14px; display:block; }
.success-check .sc-circle { stroke-dasharray:166; stroke-dashoffset:166; animation: scCircle .6s cubic-bezier(.65,0,.45,1) forwards; }
.success-check .sc-tick { stroke-dasharray:60; stroke-dashoffset:60; animation: scTick .4s .5s cubic-bezier(.65,0,.45,1) forwards; }
@keyframes scCircle { to { stroke-dashoffset:0; } }
@keyframes scTick { to { stroke-dashoffset:0; } }
.success-wrap { position:relative; overflow:hidden; animation: fadeInUp .5s ease; }
.confetti-bit { position:absolute; width:8px; height:8px; border-radius:2px; top:44px; left:50%; pointer-events:none; z-index:5; }

/* Slots optimistes (comprovant disponibilitat) */
@keyframes slotShimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.slot-btn.checking {
  background-image:linear-gradient(90deg,rgba(26,109,255,0) 30%,rgba(26,109,255,.09) 50%,rgba(26,109,255,0) 70%);
  background-size:200% 100%; animation:slotShimmer 1.1s linear infinite;
}

/* Mockups de producte */
@keyframes waPop { from{opacity:0;transform:translateY(6px) scale(.96)} to{opacity:1;transform:none} }
.wa-b1{animation:waPop .4s .15s ease backwards}
.wa-b2{animation:waPop .4s 1s ease backwards}
.wa-b3{animation:waPop .4s 1.9s ease backwards}
@keyframes cursorBlink { 0%,45%{opacity:1} 50%,100%{opacity:0} }
.code-cursor{display:inline-block;width:6px;height:10px;background:#60a5fa;vertical-align:-1px;animation:cursorBlink 1.1s steps(1) infinite}
@keyframes flowDash { to { stroke-dashoffset:-24; } }
.flow-line { stroke-dasharray:6 6; animation: flowDash 1s linear infinite; }
.mockbar { border-radius:99px; background:linear-gradient(to top,#1a6dff,#93c5fd); }
@keyframes mockEq { 0%,100%{transform:scaleY(.4)} 50%{transform:scaleY(1)} }
.mock-eq { transform-origin:bottom; animation: mockEq .9s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .wavebar,.voice-pulse-ring,.blob,.marquee-track,.pulse-cta,.grad-text,.flow-line,.mock-eq,.wa-b1,.wa-b2,.wa-b3,.code-cursor { animation:none !important; }
  .grad-text { color:#1a6dff; background:none; }
}





@media (prefers-reduced-motion: reduce) {
  .blue-btn::after { display:none; }
  .reveal { transform:none; }
}

/* ===== MODALS (fase 7) ===== */
.modal-scrim { background: rgba(10,24,52,.48); -webkit-backdrop-filter: blur(10px) saturate(120%); backdrop-filter: blur(10px) saturate(120%); }
.modal-panel { border-radius: var(--r-panel); box-shadow: 0 30px 80px -30px rgba(10,24,52,.55), 0 0 0 1px rgba(13,31,68,.06); animation: modalIn .5s var(--ease) both; }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
.modal-panel h3, .modal-panel h4.text-xl, #pm-title { font-family: var(--font-display); font-weight: 380 !important; letter-spacing: -.015em; }
.modal-panel h4.text-sm { font-size: var(--fs-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--ink-3); font-weight: 560; }
.modal-panel .text-blue-600 { color: var(--ink); }
.modal-panel a.text-blue-600, .modal-panel label a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.modal-panel .text-gray-900 { color: var(--ink); }
.modal-panel .text-gray-500, .modal-panel .text-gray-600 { color: var(--ink-2); }
.modal-panel input:not([type=checkbox]):not([type=hidden]), .modal-panel textarea {
  border-color: var(--line-strong); border-radius: var(--r-ctl); padding: 11px 13px; font-size: 15px; color: var(--ink); background: var(--white); }
.modal-panel input:not([type=checkbox]):focus, .modal-panel textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(13,31,68,.08); --tw-ring-color: transparent; }
.modal-panel input[type=checkbox] { accent-color: var(--ink); }
.modal-panel label.block { font-size: var(--fs-label); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 560; }
.modal-panel .blue-btn { border-radius: var(--r-ctl); font-weight: 520; }
.modal-panel .rounded-xl { border-radius: var(--r-ctl); }
.mod-word { font-family: var(--font-display); font-size: 1.35rem; font-weight: 360; color: var(--paper); letter-spacing: -.01em; }
.mod-tick { width: 12px; height: 1px; background: var(--gold-soft); flex-shrink: 0; margin-top: .7em; }
#book-modal h2 { color: var(--paper); font-weight: 360; font-size: 1.7rem; line-height: 1.15; }
#pm-header { padding-top: 40px; }
#pm-icon { display: none; }
#pm-title { font-size: 2.2rem; color: var(--paper); }
.pm-li { position: relative; padding: 10px 0 10px 24px; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--ink); }
.pm-li::before { content: ''; position: absolute; left: 0; top: 50%; width: 12px; height: 1px; background: var(--gold); }
.pm-li--case { color: var(--ink-2); }
#pm-benefits, #pm-cases { border-top: 1px solid var(--line); }
#pm-benefits.space-y-2 > :not([hidden]) ~ :not([hidden]), #pm-cases.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0; }

/* Calendari i hores de reserva */
.book-day-btn { border-radius: 50%; font-weight: 500; color: var(--ink); }
.book-day-btn:hover { background: var(--paper-2); color: var(--ink); }
.book-day-btn.selected { background: var(--ink); color: var(--paper); }
.book-day-btn.disabled, .book-day-btn.disabled:hover { color: #c5c8d0; background: none; }
.slot-btn { border-radius: var(--r-ctl); border: 1px solid var(--line-strong); color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.slot-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.slot-btn.taken, .slot-btn.taken:hover { border-color: var(--line); color: #c5c8d0; background: none; }
.slot-btn.checking { background-image: linear-gradient(90deg, rgba(13,31,68,0) 30%, rgba(13,31,68,.06) 50%, rgba(13,31,68,0) 70%); }
#book-weekdays { color: var(--ink-3); }

/* ===== WIDGET DE XAT (pell nova, mateixa lògica) ===== */
#chat-fab { background: var(--ink); box-shadow: 0 10px 30px -10px rgba(10,24,52,.55), inset 0 1px 0 rgba(255,255,255,.15); }
#chat-fab::before { display: none; }
#chat-fab:hover { background: var(--night-2); transform: translateY(-2px); }
#chat-notif { background: var(--gold); }
#chat-tooltip { background: var(--ink); font-weight: 450; border-radius: 10px 10px 3px 10px; box-shadow: var(--sh-2); }
#chat-window { border-radius: var(--r-panel); box-shadow: 0 30px 80px -30px rgba(10,24,52,.5), 0 0 0 1px rgba(13,31,68,.06); background: var(--paper); }
#chat-hdr { background: var(--night); }
#chat-av { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
#chat-hdr-name { font-weight: 600; }
#chat-hdr-sub span { color: rgba(247,246,242,.6); }
#chat-sdot { background: #5fd08f; }
.ch-b { border-radius: 12px; font-size: 13.5px; }
.ch-b.bot { background: var(--white); color: var(--ink); border: 1px solid var(--line); border-top-left-radius: 4px; }
.ch-b.user { background: var(--ink); color: var(--paper); border-top-right-radius: 4px; border-radius: 12px 4px 12px 12px; }
.ch-b.bot a { color: var(--ink); text-decoration-color: var(--gold); }
.ch-opt-btn { color: var(--ink); border: 1px solid var(--line-strong); background: var(--white); font-family: var(--font-body); }
.ch-opt-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ch-retry { background: var(--ink); font-family: var(--font-body); }
.ch-retry:hover { background: var(--night-2); }
.ch-typing { background: var(--white); border: 1px solid var(--line); }
.ch-typing span { background: var(--ink-3); }
#chat-inp-wrap { border-top: 1px solid var(--line); background: var(--paper); }
#chat-inp { border: 1px solid var(--line-strong); border-radius: var(--r-ctl); color: var(--ink); background: var(--white); font-family: var(--font-body); }
#chat-inp:focus { border-color: var(--ink); }
#chat-btn-send { background: var(--ink); border-radius: var(--r-ctl); }
#chat-btn-send:hover:not(:disabled) { background: var(--night-2); transform: none; }
#chat-btn-send:disabled { background: #c5c8d0; }
#chat-msgs::-webkit-scrollbar-thumb { background: var(--line-strong); }
#chat-window a { color: var(--ink) !important; text-decoration-color: var(--gold); }
.chat-mono { font-family: var(--font-display); font-style: italic; font-size: 15px; color: var(--gold-soft); letter-spacing: .02em; }

/* ===== PÀGINES INTERIORS ===== */
.first-section { position: relative; overflow: hidden; overflow: clip; padding-top: clamp(150px, 16vw, 210px) !important; }
.first-section > .page-grid, .first-section > .page-wrap { position: relative; z-index: 1; }
.first-section h1.h-section { font-size: clamp(2.6rem, 1.7rem + 3.4vw, 4.6rem); line-height: 1.02; }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after { right: 0; }
.mobile-links a[aria-current="page"] { font-style: italic; }

/* Serveis a la portada: llista d'enllaços */
.svc-row--link { text-decoration: none; }
.svc-row--link .svc-more { pointer-events: none; }
@media (min-width: 1024px) {
  .svc-row--link { grid-template-columns: 64px 4fr 6fr 140px; }
  .svc-row--link .svc-more { grid-column: 4; }
}
.svc-all { display: inline-block; margin-top: 32px; font-size: 15px; }

/* Avançament de "com treballem" i "qui som" a la portada */
.teasers { padding: var(--section-y) 0; background: var(--paper-2); border-top: 1px solid var(--line); }
.teaser { grid-column: 1 / -1; border-top: 1px solid var(--line-strong); padding-top: 32px; display: flex; flex-direction: column; }
@media (min-width: 1024px) { .teaser:first-child { grid-column: 1 / span 5; } .teaser:last-child { grid-column: 7 / span 6; } }
.teaser-title { font-family: var(--font-display); font-weight: 360; font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); letter-spacing: -.018em; line-height: 1.1; margin-top: 20px; }
.teaser-title em { font-style: italic; font-weight: 320; }
.teaser p { margin-top: 16px; color: var(--ink-2); max-width: 30rem; }
.teaser-steps { margin-top: 24px; display: grid; gap: 10px; }
.teaser-steps li { display: flex; gap: 14px; align-items: baseline; font-size: 1rem; }
.teaser-faces { display: flex; margin-top: 24px; }
.teaser-faces img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--paper-2); filter: saturate(.85); }
.teaser-faces img + img { margin-left: -14px; }
.teaser .link-u { margin-top: 28px; align-self: flex-start; font-size: 15px; }

/* Banda final de crida a l'acció */
.cta-band { position: relative; overflow: hidden; isolation: isolate; background: var(--night); color: var(--paper); padding: clamp(88px, 10vw, 140px) 0; }
.cta-band.grain::before { opacity: .06; mix-blend-mode: overlay; }
.cta-band .page-grid { position: relative; z-index: 1; align-items: end; }
.cta-copy { grid-column: 1 / -1; }
.cta-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
@media (min-width: 1024px) { .cta-copy { grid-column: 1 / span 7; } .cta-actions { grid-column: 9 / span 4; justify-content: flex-end; } }
.cta-text { margin-top: 20px; color: rgba(247,246,242,.72); font-size: var(--fs-lead); max-width: 32rem; }

/* =====================================================================
   COLOR (13-10-2026, a petició de l'usuari): més color, fons que canvien
   de secció en secció i taques de llum en moviment que el vidre refracta.
   Aquesta capa va al final i sobreescriu la base neutra.
   ===================================================================== */
:root {
  --paper: #f7f9fd;
  --paper-2: #eef3fc;
  --tint-1: #eaf2ff;
  --tint-2: #dde9ff;
  --blue: #1a6dff;
  --blue-deep: #1450c8;
  --sky: #60a5fa;
  --indigo: #6366f1;
  --blue-light: #9cc0ff;
}
body { background: var(--paper); }

/* Accents en blau de marca */
.eyebrow, .section-tag { color: var(--blue); }
.eyebrow--light { color: var(--blue-light); }
h1 em, h2 em, .h-section em, .hero-title em, .teaser-title em, .mission-quote em, .statement .h-section em { color: var(--blue); }
.h-light em { color: var(--blue-light); }
.hf-n, .svc-n, .step-n { color: var(--blue); }
.link-u { text-decoration-color: var(--blue); }
.st-list li::before, .pm-li::before { background: var(--blue); }
.nav-links a::after { background: var(--blue); }
#scroll-progress { background: linear-gradient(90deg, var(--blue), var(--sky)); }

/* Botons principals en blau */
.btn-primary, .blue-btn { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -12px rgba(26,109,255,.7); }
.btn-primary:hover, .blue-btn:hover { background: var(--blue-deep); }
.btn-light { color: var(--blue-deep); }

/* Taques de llum en moviment (el vidre les desenfoca) */
.light-field::before { background: radial-gradient(circle, rgba(26,109,255,.42), rgba(26,109,255,0) 68%); animation: drift1 26s ease-in-out infinite alternate; }
.light-field::after { background: radial-gradient(circle, rgba(99,102,241,.30), rgba(99,102,241,0) 70%); animation: drift2 32s ease-in-out infinite alternate; }
.light-field--dark::before { background: radial-gradient(circle, rgba(59,130,246,.55), rgba(59,130,246,0) 68%); }
.light-field--dark::after { background: radial-gradient(circle, rgba(129,140,248,.35), rgba(129,140,248,0) 70%); }
@keyframes drift1 { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(-8vw, 6vw) scale(1.12); } 100% { transform: translate(-3vw, -4vw) scale(.94); } }
@keyframes drift2 { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(9vw, -5vw) scale(1.1); } 100% { transform: translate(4vw, 3vw) scale(.96); } }
@media (prefers-reduced-motion: reduce) { .light-field::before, .light-field::after { animation: none !important; } }

/* Fons per secció: blau clar / blanc / marí / blau intens */
.hero { background: linear-gradient(160deg, #e3eeff 0%, #eef4ff 40%, #f9fbff 100%); }
.hero .light-field::after { right: auto; left: 30vw; bottom: -18vw; }
.sectors { background: var(--ink); border-color: var(--ink); }
.sectors .sec-item { color: rgba(255,255,255,.88); }
.sectors .sec-item::after { background: var(--sky); }
.sectors .eyebrow { color: var(--blue-light); }
.statement { background: #fff; }
.services { position: relative; overflow: hidden; overflow: clip; padding: var(--section-y) 0; background: linear-gradient(180deg, var(--tint-1) 0%, var(--tint-2) 100%); }
.services > .page-wrap { position: relative; z-index: 1; }
.services .light-field::before { left: -10vw; top: 10%; right: auto; }
.services .light-field::after { right: -8vw; bottom: 5%; left: auto; }
.process { background: #fff; border-top: 0; }
.teasers { position: relative; overflow: hidden; overflow: clip; background: linear-gradient(180deg, #f0f5ff 0%, #e1ecff 100%); border-top: 0; }
.teasers > .page-grid { position: relative; z-index: 1; }
.faq, .mission { background: #fff; }
.team { background: linear-gradient(180deg, #f0f5ff 0%, #e1ecff 100%); border-top: 0; }
.contact, .first-section { background: linear-gradient(160deg, #e3eeff 0%, #eef4ff 45%, #f9fbff 100%); }
.cta-band { background: linear-gradient(135deg, #1a6dff 0%, #0d4fd6 55%, #0b3a9e 100%); }
.cta-band .light-field::before { background: radial-gradient(circle, rgba(147,197,253,.55), rgba(147,197,253,0) 68%); }
.cta-band .light-field::after { background: radial-gradient(circle, rgba(13,31,68,.55), rgba(13,31,68,0) 70%); }
.cta-band .eyebrow--light { color: #dbe8ff; }
.cta-band .h-light em { color: #cfe0ff; }
.cta-band .btn-light { color: var(--blue-deep); }

/* Diagnòstic en marí, amb targeta de vidre fosc */
.diag { background: linear-gradient(135deg, #0d1f44 0%, #16306b 60%, #0d1f44 100%); color: var(--paper); border-top: 0; }
.diag .h-section { color: var(--paper); }
.diag .h-section em { color: var(--blue-light); }
.diag .eyebrow { color: var(--blue-light); }
.diag-text { color: rgba(247,246,242,.75); }
.diag .light-field::before { background: radial-gradient(circle, rgba(59,130,246,.5), rgba(59,130,246,0) 68%); }
.diag .light-field::after { background: radial-gradient(circle, rgba(129,140,248,.35), rgba(129,140,248,0) 70%); }
.diag-card.glass { background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05)); border-color: rgba(255,255,255,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 30px 60px -30px rgba(0,0,0,.6); }
.diag-steps li { color: var(--paper); border-bottom-color: rgba(255,255,255,.12); }
.diag .hf-n { color: var(--blue-light); }
.diag-note { color: rgba(247,246,242,.6); }
.diag .btn-primary { background: #fff; color: var(--blue-deep); box-shadow: none; }
.diag .btn-primary:hover { background: #eaf2ff; }

/* ===== Targetes de serveis (totes iguals) ===== */
.svc-head { margin-bottom: 48px; }
.svc-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.svc-card { flex: 1 1 100%; max-width: 100%; border-radius: var(--r-panel); overflow: hidden; display: flex; flex-direction: column; cursor: pointer;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
@media (min-width: 640px) { .svc-card { flex: 0 0 calc((100% - 20px) / 2); max-width: calc((100% - 20px) / 2); } }
@media (min-width: 1100px) { .svc-card { flex: 0 0 calc((100% - 60px) / 4); max-width: calc((100% - 60px) / 4); } }
.svc-card:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 24px 48px -24px rgba(13,31,68,.35); }
.svc-card-media { position: relative; height: 168px; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.5); }
.svc-card-media > * { transition: transform .7s var(--ease); }
.svc-card:hover .svc-card-media > * { transform: scale(1.03); }
.svc-card-body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.svc-card-title { font-family: var(--font-display); font-weight: 380; font-size: 1.45rem; letter-spacing: -.015em; line-height: 1.15; margin-top: 8px; color: var(--ink); }
.svc-card-desc { margin-top: 10px; color: var(--ink-2); font-size: .94rem; line-height: 1.55; flex: 1; }
.svc-card-more { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 0; background: none; border: 0; cursor: pointer;
  font-size: 14px; font-weight: 520; color: var(--blue); }
.svc-card-more .arr { transition: transform .25s var(--ease); }
.svc-card:hover .svc-card-more .arr { transform: translateX(3px); }
.svc-all { display: table; margin: 40px auto 0; }

/* Xat: botó en blau de marca */
#chat-fab { background: var(--blue); box-shadow: 0 10px 30px -10px rgba(26,109,255,.7); }
#chat-fab:hover { background: var(--blue-deep); }
#chat-btn-send, .ch-b.user, .ch-retry { background: var(--blue); }

/* ===== El valor de la IA (portada) ===== */
.valor { position: relative; padding: var(--section-y) 0; background: #fff; }
.valor-grid { align-items: center; }
.valor-copy, .valor-card { grid-column: 1 / -1; }
@media (min-width: 1024px) { .valor-copy { grid-column: 1 / span 6; } .valor-card { grid-column: 8 / span 5; } }
.valor-text { margin-top: 24px; color: var(--ink-2); font-size: var(--fs-lead); max-width: 34rem; }
.valor-btn { margin-top: 32px; }
.valor-card { border-radius: var(--r-panel); overflow: hidden; max-width: 460px; width: 100%; justify-self: center; background: #fff;
  box-shadow: 0 30px 60px -32px rgba(13,31,68,.45), 0 0 0 1px rgba(13,31,68,.06); }
.valor-media { background: linear-gradient(135deg, #0d1f44, #1a3a7e); line-height: 0; }
.valor-svg { width: 100%; height: auto; display: block; }
.valor-cap { display: block; padding: 22px 24px 24px; }
.valor-cap-title { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; letter-spacing: -.01em; color: var(--ink); }
.valor-cap-sub { display: block; margin-top: 4px; font-size: 13px; color: var(--blue); }
.valor-cap-desc { display: block; margin-top: 10px; font-size: .94rem; color: var(--ink-2); line-height: 1.55; }
.valor-cap-note { display: block; margin-top: 10px; font-size: 12px; color: var(--ink-3); line-height: 1.5; }

/* =====================================================================
   TITULARS (13-10-2026, a petició de l'usuari): la mateixa lletra del logo
   (Geist), en negreta i amb tracking ajustat. Geist no té cursiva: l'èmfasi
   es fa només amb el blau, sense inclinació.
   ===================================================================== */
h1, h2, .h-section, .hero-title, .svc-card-title, .svc-feature-title, .step-title, .teaser-title,
.mission-quote, .faq-toggle, .person-name, .contact-form-title, .success-title, .foot-word,
.svc-cta p, .phone-name, .mod-word, #pm-title, .modal-panel h3, .valor-cap-title, .mobile-links a {
  font-weight: 620 !important; letter-spacing: -.032em; font-style: normal;
}
.hero-title { letter-spacing: -.045em; line-height: .98; }
.h-section { letter-spacing: -.038em; }
.first-section h1.h-section { letter-spacing: -.042em; }
.foot-word { letter-spacing: -.05em; }
.svc-card-title, .step-title, .person-name, .faq-toggle, .valor-cap-title { letter-spacing: -.022em; font-weight: 600 !important; }
.faq-toggle { font-weight: 560 !important; }
/* Èmfasi: color, sense cursiva ni pes diferent */
h1 em, h2 em, .h-section em, .hero-title em, .teaser-title em, .mission-quote em { font-style: normal; font-weight: inherit; }
/* Detalls que anaven en cursiva serif: ara rectes */
.hf-n, .svc-n, .step-n, .sec-item, .call-quote, .phone-quote, .person-quote, .hc-avatar, .chat-mono, .phone-orb-core {
  font-style: normal;
}
.hf-n, .svc-n { font-weight: 600; font-size: 13px; letter-spacing: .02em; }
.step-n { font-weight: 600; letter-spacing: -.05em; }
.sec-item { font-weight: 560; letter-spacing: -.01em; font-size: 1.15rem; }
.call-quote, .phone-quote { font-family: var(--font-body); font-weight: 450; font-size: 1rem; }
.person-quote { font-family: var(--font-body); font-weight: 560; font-size: 1rem; }
.hc-avatar, .phone-orb-core, .chat-mono { font-weight: 600; }

/* =====================================================================
   SECCIONS RECUPERADES DE L'ORIGINAL (13-10-2026, a petició de l'usuari):
   diagnòstic centrat i gran, FAQ en targetes i persones en gran.
   ===================================================================== */
.eyebrow--center { justify-content: center; }

/* Diagnòstic */
.diag2 { position: relative; overflow: hidden; overflow: clip; isolation: isolate; text-align: center; color: var(--paper);
  background: linear-gradient(135deg, #0d1f44 0%, #1a3a7e 60%, #0d1f44 100%); padding: clamp(96px, 11vw, 150px) 0; }
.diag2.grain::before { opacity: .06; mix-blend-mode: overlay; }
.diag2-inner { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; padding: 0 var(--gutter); }
.diag2-badge { display: inline-block; padding: 7px 16px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: #cfe0ff; background: rgba(96,165,250,.16); border: 1px solid rgba(147,197,253,.28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.diag2-title { margin-top: 28px; color: var(--paper); font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); line-height: 1.02; }
.diag2-title em { color: #7fb0ff !important; }
.diag2-text { margin: 22px auto 0; max-width: 36rem; font-size: var(--fs-lead); color: rgba(247,246,242,.75); }
.diag2-btn { display: inline-flex; align-items: center; gap: 14px; margin-top: 40px; padding: 16px 18px 16px 28px; border-radius: 16px; border: 0; cursor: pointer;
  background: #fff; color: var(--blue-deep); font-size: 16px; font-weight: 600; box-shadow: 0 24px 50px -20px rgba(0,0,0,.6); transition: transform .35s var(--ease), background .25s; }
.diag2-btn:hover { transform: translateY(-2px); background: #f2f7ff; }
.diag2-btn-arr { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #dbe8ff; color: var(--blue-deep); transition: transform .25s var(--ease); }
.diag2-btn:hover .diag2-btn-arr { transform: translateX(3px); }
.diag2-checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; margin-top: 40px; font-size: 14.5px; color: rgba(247,246,242,.72); }
.diag2-checks li { display: inline-flex; align-items: center; gap: 8px; }
.diag2-checks svg { color: #5fd08f; }

/* FAQ */
.faq2 { padding: var(--section-y) 0; background: #fff; }
.faq2-inner { max-width: 820px; margin: 0 auto; padding: 0 var(--gutter); }
.faq2-head { text-align: center; margin-bottom: 44px; }
.faq2-head .h-section { margin-top: 14px; }
.faq2-list { display: flex; flex-direction: column; gap: 12px; }
.faq2-list .faq-item { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.faq2-list .faq-item:hover { border-color: rgba(26,109,255,.3); }
.faq2-list .faq-item.open { border-color: rgba(26,109,255,.35); box-shadow: 0 14px 30px -20px rgba(26,109,255,.45); background: #fff; }
.faq2-list .faq-toggle { padding: 20px 22px; font-size: 1.05rem; }
.faq2-list .faq-icon::before, .faq2-list .faq-icon::after { background: var(--blue); height: 2px; }
.faq2-list .faq-answer { padding: 0 22px 22px; max-width: none; }
.faq2-more { margin-top: 28px; text-align: center; color: var(--ink-2); font-size: .97rem; }

/* Persones en gran */
.team2 { padding-bottom: var(--section-y) !important; background: linear-gradient(180deg, #f0f5ff 0%, #e1ecff 100%) !important; }
.team2-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.team2-head .h-section { margin-top: 18px; }
.team2-intro { margin: 22px auto 0; max-width: 40rem; color: var(--ink-2); font-size: var(--fs-lead); }
.team2-grid { display: grid; gap: 24px; max-width: 980px; margin: 0 auto; }
@media (min-width: 820px) { .team2-grid { grid-template-columns: 1fr 1fr; } }
.person2 { border-radius: var(--r-panel); overflow: hidden; text-align: center; }
.person2-photo { padding: 36px 0 0; background: linear-gradient(180deg, rgba(219,232,255,.9) 0%, rgba(255,255,255,0) 100%); display: flex; justify-content: center; }
.person2-photo img { width: 208px; height: 208px; border-radius: 50%; object-fit: cover; border: 5px solid #fff; box-shadow: 0 20px 40px -20px rgba(13,31,68,.45); }
.person2-body { padding: 26px 28px 32px; }
.person2-name { font-size: 1.6rem; color: var(--ink); }
.person2-role { margin-top: 6px; font-size: var(--fs-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--blue); font-weight: 600; }
.person2-bio { margin-top: 18px; color: var(--ink-2); font-size: .97rem; line-height: 1.65; }
.person2-quote { margin-top: 16px; color: var(--ink); font-weight: 600; }

.diag2-inner { max-width: 1060px; }
.diag2-title em { display: block; }
.faq2-list .faq-item.open .faq-icon { transform: rotate(45deg); }
.faq2-list .faq-item.open .faq-icon::after { transform: rotate(90deg); }

/* =====================================================================
   TAULETA / FINESTRA MITJANA (768–1023 px): dues columnes com a escriptori
   (portada, valor de la IA, demo de veu, contacte...), amb mides reduïdes.
   ===================================================================== */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-inner, .page-grid { column-gap: 20px; }
  .hero-inner { align-items: center; padding-top: 128px; }
  .hero-copy { grid-column: 1 / span 7; }
  .hero-visual { grid-column: 8 / span 5; }
  .hero-title { font-size: clamp(2.4rem, .6rem + 4.4vw, 3.5rem); }
  .hero-lead { font-size: 1rem; margin-top: 24px; }
  .hero-actions { margin-top: 30px; gap: 14px 22px; }
  .hero-actions .btn { padding: 12px 18px; font-size: .9rem; }
  .hero-card { max-width: 100%; }
  .hc-head { padding: 14px; } .hc-body { padding: 14px; font-size: 12.5px; } .hc-foot { padding: 10px 14px; font-size: 10.5px; }
  .hc-msg { max-width: 92%; padding: 9px 11px; }
  .hc-slots b, .hc-slots i { padding: 3px 8px; font-size: 11px; }

  .valor-copy { grid-column: 1 / span 7; }
  .valor-card { grid-column: 8 / span 5; }
  .valor .h-section { font-size: clamp(1.9rem, .5rem + 3.2vw, 2.7rem); }
  .valor-text { font-size: 1rem; }
  .valor-cap { padding: 18px; }
  .valor-cap-title { font-size: 1.1rem; }

  .voice-copy { grid-column: 1 / span 7; }
  .voice-visual { grid-column: 8 / span 5; }
  .voice .h-section { font-size: clamp(1.9rem, .5rem + 3.2vw, 2.7rem); }
  .voice-text { font-size: 1rem; }
  .voice-number { font-size: clamp(1.9rem, .8rem + 2.6vw, 2.5rem); }
  .voice-call { display: none; }
  .phone { padding: 28px 20px 24px; border-radius: 26px; }
  .phone-orb { width: 84px; height: 84px; margin-top: 22px; }

  .contact-copy { grid-column: 1 / span 6; }
  .contact-form-wrap { grid-column: 7 / span 6; }
  .contact .h-section, .first-section h1.h-section { font-size: clamp(2.2rem, .6rem + 3.8vw, 3.2rem); }

  .teaser:first-child { grid-column: 1 / span 6; }
  .teaser:last-child { grid-column: 7 / span 6; }
  .cta-copy { grid-column: 1 / span 8; }
  .cta-actions { grid-column: 9 / span 4; justify-content: flex-end; flex-direction: column; align-items: flex-end; }
  .svc-head .h-section { grid-column: 1 / span 8; }
  .svc-head-note { grid-column: 9 / span 4; align-self: end; font-size: .95rem; }
  .process-head { grid-column: 1 / span 5; }
  .process-steps { grid-column: 6 / span 7; }
  .process-sticky { position: sticky; top: 120px; }
  .step { grid-template-columns: 72px 1fr; }
}

.phone-orb .phone-orb-core { font-style: normal; font-family: var(--font-body); }

/* Passos de "Com treballem" més continguts */
.step { grid-template-columns: 56px 1fr; gap: 12px; padding: 28px 0 30px; }
@media (min-width: 768px) { .step { grid-template-columns: 76px 1fr; padding: 32px 0 34px; } }
.step-n { font-size: clamp(1.5rem, 1.25rem + .8vw, 2rem); line-height: 1.1; letter-spacing: -.03em; }
.step-title { font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem) !important; line-height: 1.3; }
.step-text { margin-top: 8px; font-size: .97rem; }
.first-section h1.h-section { font-size: clamp(2.3rem, 1.5rem + 2.8vw, 3.8rem); }

/* =====================================================================
   XAT (13-10-2026): més alt i amb el llenguatge visual de la web
   (vidre, degradat blau de marca, Geist). Mateixa lògica i IDs.
   ===================================================================== */
#chat-window {
  width: 400px; height: 640px; max-height: calc(100vh - 128px); max-height: calc(100dvh - 128px);
  border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(246,249,255,.80));
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 40px 90px -36px rgba(13,31,68,.55), 0 0 0 1px rgba(13,31,68,.05);
}
#chat-hdr { position: relative; overflow: hidden; padding: 16px 16px 16px 18px; gap: 12px;
  background: linear-gradient(135deg, #1a6dff 0%, #0d4fd6 55%, #0b3a9e 100%); }
#chat-hdr::before { content: ''; position: absolute; width: 220px; height: 220px; right: -60px; top: -120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(147,197,253,.55), rgba(147,197,253,0) 70%); pointer-events: none; }
#chat-hdr > * { position: relative; }
#chat-av { width: 42px; height: 42px; border-radius: 12px; background: #fff; box-shadow: 0 8px 18px -8px rgba(0,0,0,.45); display: grid; place-items: center; }
#chat-av img { width: 28px; height: auto; display: block; }
#chat-hdr-name { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
#chat-hdr-sub span { color: #dbe8ff; font-size: 11.5px; }
#chat-sdot { background: #5fd08f; box-shadow: 0 0 0 3px rgba(95,208,143,.25); }
#chat-x, #chat-reset { border-radius: 10px; opacity: .85; }
#chat-x:hover, #chat-reset:hover { background: rgba(255,255,255,.14); opacity: 1; }
#chat-msgs { padding: 18px 16px; gap: 12px;
  background: radial-gradient(120% 60% at 100% 0%, rgba(26,109,255,.08), rgba(26,109,255,0) 60%), radial-gradient(90% 50% at 0% 100%, rgba(99,102,241,.07), rgba(99,102,241,0) 60%); }
.ch-b { font-size: 14px; line-height: 1.55; padding: 11px 14px; border-radius: 16px; max-width: 84%; }
.ch-b.bot { background: #fff; color: var(--ink); border: 1px solid rgba(13,31,68,.07); border-top-left-radius: 5px; box-shadow: 0 6px 16px -10px rgba(13,31,68,.25); }
.ch-b.user { background: linear-gradient(135deg, #1a6dff, #1450c8); color: #fff; border-radius: 16px; border-top-right-radius: 5px; box-shadow: 0 8px 18px -10px rgba(26,109,255,.6); }
.ch-b.bot a { color: var(--blue) !important; text-decoration-color: rgba(26,109,255,.4); }
.ch-typing { background: #fff; border: 1px solid rgba(13,31,68,.07); border-radius: 16px; border-top-left-radius: 5px; }
.ch-typing span { background: var(--sky); }
.ch-opts { gap: 8px; }
.ch-opt-btn { background: rgba(255,255,255,.9); color: var(--blue-deep); border: 1px solid rgba(26,109,255,.28); border-radius: 999px; padding: 7px 14px; font-size: 12.5px; font-weight: 520; }
.ch-opt-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.ch-retry { border-radius: 999px; }
#chat-inp-wrap { padding: 12px 14px 10px; gap: 10px; align-items: center; background: rgba(255,255,255,.75); border-top: 1px solid rgba(13,31,68,.07); }
#chat-inp { border-radius: 14px; border: 1px solid rgba(13,31,68,.12); background: #fff; padding: 11px 14px; font-size: 14px; }
#chat-inp:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,109,255,.12); }
#chat-btn-send { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #1a6dff, #1450c8); box-shadow: 0 8px 18px -10px rgba(26,109,255,.7); }
#chat-btn-send:hover:not(:disabled) { filter: brightness(1.08); }
#chat-btn-send:disabled { background: #c9d6ee; box-shadow: none; }
.chat-legal { font-size: 10.5px; line-height: 1.4; color: var(--ink-3); padding: 0 16px 12px; margin: 0; background: rgba(255,255,255,.75); }
.chat-legal a { color: var(--ink-2) !important; text-decoration: underline; text-underline-offset: 2px; }
#chat-fab { width: 62px; height: 62px; border-radius: 20px; background: linear-gradient(135deg, #1a6dff, #1450c8); }
#chat-fab:hover { transform: translateY(-2px); }
#chat-tooltip { background: #fff; color: var(--ink); border: 1px solid rgba(13,31,68,.08); box-shadow: 0 14px 30px -14px rgba(13,31,68,.35); }
#chat-tooltip::after { border-top-color: #fff; }
@media (max-width: 480px) {
  #chat-window { width: 100vw; height: 88vh; height: 88dvh; max-height: 88dvh; border-radius: 22px 22px 0 0; }
}

#chat-fab { border-radius: 50%; }

/* Botó del xat: esfera de vidre amb degradat de marca en rotació i el logo en blanc */
#chat-fab { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; isolation: isolate;
  background: #0d3fb8;
  box-shadow: 0 18px 40px -14px rgba(26,109,255,.75), 0 0 0 1px rgba(255,255,255,.35) inset, 0 0 0 5px rgba(26,109,255,.10);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
#chat-fab::before { display: block; content: ''; position: absolute; inset: -30%; border-radius: 50%; z-index: -1;
  background: conic-gradient(from 0deg, #1a6dff, #60a5fa, #6366f1, #1450c8, #38bdf8, #1a6dff);
  filter: blur(6px); animation: fabSpin 9s linear infinite; opacity: 1; transform: none; }
#chat-fab::after { content: ''; position: absolute; inset: 0; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 32% 24%, rgba(255,255,255,.65), rgba(255,255,255,0) 42%),
              radial-gradient(circle at 70% 85%, rgba(13,31,68,.35), rgba(13,31,68,0) 55%); }
@keyframes fabSpin { to { transform: rotate(360deg); } }
#chat-fab:hover { transform: translateY(-3px) scale(1.04); background: #0d3fb8;
  box-shadow: 0 24px 50px -14px rgba(26,109,255,.85), 0 0 0 1px rgba(255,255,255,.45) inset, 0 0 0 6px rgba(26,109,255,.14); }
#chat-ico-chat { position: relative; z-index: 1; width: 30px; height: auto; filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(13,31,68,.35)); }
#chat-fab svg { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { #chat-fab::before { animation: none !important; } }

/* Distintiu de xat a l'esfera: deixa clar que és un xat */
.chat-badge { position: absolute; right: -3px; bottom: -3px; z-index: 2; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--blue); pointer-events: none;
  box-shadow: 0 6px 14px -6px rgba(13,31,68,.45), 0 0 0 1px rgba(13,31,68,.06); transition: opacity .25s, transform .4s var(--ease); }
.chat-badge svg { width: 15px; height: 15px; }
#chat-fab-wrap:hover .chat-badge { transform: translateY(-3px); }
html.chat-open .chat-badge { opacity: 0; transform: scale(.6); }

/* =====================================================================
   SERVEIS EN DETALL (15-10-2026): serveis.html ja no repeteix la graella
   de la portada; un apartat per servei, alternant costat i fons.
   ===================================================================== */
.svd-intro { position: relative; padding-bottom: clamp(56px, 7vw, 96px); }
.svd-intro > .page-wrap { position: relative; z-index: 1; }
.svd-index { display: flex; flex-wrap: wrap; gap: 10px; }
.svd-index a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.7);
  border: 1px solid rgba(26,109,255,.18); color: var(--ink); font-size: 15px; text-decoration: none; transition: background .25s, border-color .25s, transform .3s var(--ease); }
.svd-index a:hover { background: #fff; border-color: var(--blue); transform: translateY(-2px); }
.svd-index-n { font-size: 12px; font-weight: 600; color: var(--blue); }

.svd { position: relative; padding: clamp(72px, 9vw, 128px) 0; background: #fff; scroll-margin-top: 80px; }
.svd--rev { background: linear-gradient(180deg, var(--tint-1) 0%, #f5f9ff 100%); }
.svd-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
@media (min-width: 1024px) {
  .svd-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; }
  .svd--rev .svd-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .svd--rev .svd-copy { order: 2; }
  .svd-side { position: sticky; top: 110px; }
}
.svd-title { font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem); line-height: 1.05; margin-top: 10px; }
.svd-lead { margin-top: 20px; font-size: var(--fs-lead); color: var(--ink-2); max-width: 38rem; }
.svd-label { margin-top: 36px; font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--blue); }
.svd-flow { margin-top: 16px; display: grid; gap: 0; border-top: 1px solid var(--line-strong); max-width: 38rem; }
.svd-flow li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.svd-flow-n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-size: 14px; font-weight: 600; }
.svd-flow strong { display: block; font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.svd-flow p { margin-top: 4px; color: var(--ink-2); font-size: .97rem; }

.svd-media { border-radius: var(--r-panel); overflow: hidden; box-shadow: 0 30px 60px -34px rgba(13,31,68,.5); }
.svd-media .svd-media-in { height: 180px; zoom: 1.4; border-bottom: 0; }
@media (max-width: 639px) { .svd-media .svd-media-in { zoom: 1.15; height: 180px; } }
.svd-facts { margin-top: 20px; border-radius: var(--r-panel); padding: 4px 24px 24px; background: rgba(255,255,255,.75); }
.svd--rev .svd-facts { background: rgba(255,255,255,.85); }
.svd-facts .svd-label { margin-top: 22px; }
.svd-list { margin-top: 10px; display: grid; gap: 8px; }
.svd-list li { position: relative; padding-left: 24px; font-size: .96rem; color: var(--ink); line-height: 1.45; }
.svd-list li::before { content: ''; position: absolute; left: 2px; top: .42em; width: 12px; height: 7px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.svd-list--ex li { color: var(--ink-2); }
.svd-list--ex li::before { width: 6px; height: 6px; top: .55em; left: 4px; border: 0; border-radius: 50%; background: var(--blue); transform: none; }
.svd-tools { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.svd-tools > span { padding: 6px 12px; border-radius: 999px; background: var(--tint-1); color: var(--blue-deep); font-size: 13px; font-weight: 520; }
.svd-proof { margin-top: 18px; padding-left: 16px; border-left: 2px solid var(--blue); color: var(--ink-2); font-size: .97rem; }

/* ===== COM TREBALLEM EN DETALL (15-10-2026) ===== */
.ct-intro { position: relative; padding-bottom: clamp(48px, 6vw, 80px); }
.ct-intro > .page-wrap { position: relative; z-index: 1; }
.ct-intro .svc-head { margin-bottom: 40px; }
.ct-phases { position: relative; padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 6vw, 88px); background: #fff; }

/* Cadena compacta: a escriptori, vertical a l'esquerra amb el detall a la dreta; a mòbil, horitzontal a dalt */
.ct-stepper { display: grid; grid-template-columns: 1fr; gap: 28px; }
.ct-chain { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); --dot: 44px; }
.ct-chain-line { position: absolute; top: calc(var(--dot) / 2 - 2px); left: calc(100% / 6); right: calc(100% / 6); height: 4px; border-radius: 4px; background: var(--tint-2); overflow: hidden; }
.ct-chain-line i { display: block; height: 100%; width: calc(var(--p) * 100%); background: linear-gradient(90deg, var(--blue), var(--sky)); transition: width .6s var(--ease), height .6s var(--ease); }
.ct-node { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 0 6px; background: none; border: 0; cursor: pointer; color: var(--ink); }
.ct-node-dot { flex: none; width: var(--dot); height: var(--dot); border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px; font-size: .95rem; font-weight: 600;
  background: #fff; color: var(--blue); border: 2px solid var(--tint-2); transition: background .35s, color .35s, border-color .35s, box-shadow .35s; }
.ct-node:hover .ct-node-dot { border-color: var(--blue); }
.ct-node.done .ct-node-dot { background: var(--tint-1); border-color: var(--blue); }
.ct-node[aria-selected="true"] .ct-node-dot { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 0 0 6px rgba(26,109,255,.12), 0 12px 22px -12px rgba(26,109,255,.8); }
.ct-node-title { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }
.ct-node-when { font-size: 13px; color: var(--ink-3); }
.ct-node[aria-selected="false"] .ct-node-title { color: var(--ink-2); }
@media (max-width: 639px) { .ct-node-when { display: none; } .ct-node-title { font-size: .95rem; } }
@media (min-width: 1024px) {
  .ct-stepper { grid-template-columns: 290px minmax(0, 1fr); gap: 56px; align-items: start; }
  .ct-chain { grid-template-columns: 1fr; row-gap: 22px; --dot: 46px; }
  .ct-chain-line { top: calc(var(--dot) / 2); bottom: calc(var(--dot) / 2); left: calc(var(--dot) / 2 - 2px); right: auto; width: 4px; height: auto; }
  .ct-chain-line i { width: 100%; height: calc(var(--p) * 100%); }
  .ct-node { flex-direction: row; align-items: center; text-align: left; gap: 0 16px; padding: 0; display: grid; grid-template-columns: var(--dot) 1fr; }
  .ct-node-dot { margin: 0; grid-row: 1 / span 2; }
  .ct-node-title { align-self: end; }
  .ct-node-when { align-self: start; }
}

/* Detall de la fase activa */
.ct-panels { min-width: 0; }
.ct-panel { display: grid; grid-template-columns: 1fr; gap: 20px 48px; animation: ctIn .45s var(--ease); }
.ct-panel[hidden] { display: none; }
@keyframes ctIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ct-panel { animation: none; } .ct-chain-line i { transition: none; } }
@media (min-width: 1200px) { .ct-panel { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.ct-phase-text { font-size: 1.05rem; color: var(--ink-2); max-width: 40rem; }
.ct-get { margin-top: 18px; padding: 2px 0 2px 16px; border-left: 3px solid var(--blue); color: var(--ink); font-size: 1rem; display: flex; flex-direction: column; gap: 2px; }
.ct-get-label { font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--blue); }
.ct-panel .svd-proof { margin-top: 14px; border-left: 0; padding-left: 0; font-size: .93rem; }
.ct-panel-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; align-content: start; }
@media (max-width: 479px) { .ct-panel-lists { grid-template-columns: 1fr; } .ct-panel-lists > div + div { margin-top: 12px; } }
.ct-panel-lists .svd-label { margin-top: 0; margin-bottom: 2px; }
.ct-panel-lists .svd-list li { font-size: .93rem; }

.ct-portal { position: relative; overflow: hidden; overflow: clip; padding: var(--section-y) 0; background: linear-gradient(135deg, #0d1f44 0%, #16306b 60%, #0d1f44 100%); color: var(--paper); }
.ct-portal > .page-wrap { position: relative; z-index: 1; }
.ct-portal-head { max-width: 46rem; }
.ct-portal-text { margin-top: 20px; color: rgba(247,246,242,.75); font-size: var(--fs-lead); }
.ct-portal-grid { margin-top: 48px; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .ct-portal-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .ct-portal-grid { grid-template-columns: repeat(3, 1fr); } }
.ct-portal-item { border-radius: var(--r-panel); padding: 24px; }
.ct-portal-item h3 { font-size: 1.2rem; font-weight: 560; color: #fff; letter-spacing: -.01em; }
.ct-portal-item p { margin-top: 8px; color: rgba(247,246,242,.72); font-size: .95rem; line-height: 1.55; }
.ct-portal-btn { margin-top: 40px; }

/* =====================================================================
   COMPACTE (16-10-2026, a petició de l'usuari): totes les seccions una mica
   més petites, com el hero. Per desfer-ho, n'hi ha prou amb esborrar aquest bloc.
   ===================================================================== */
:root { --section-y: clamp(72px, 8vw, 116px); --fs-h2: clamp(1.9rem, 1.4rem + 1.8vw, 2.9rem); }
.first-section { padding-top: clamp(124px, 12vw, 168px) !important; }
.first-section h1.h-section { font-size: clamp(2.2rem, 1.5rem + 2.2vw, 3.4rem); }
.diag2 { padding: clamp(72px, 8vw, 116px) 0; }
.diag2-title { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.5rem); }
.cta-band { padding: clamp(68px, 7.5vw, 104px) 0; }
.svd { padding: clamp(60px, 7vw, 100px) 0; }
.svd-title { font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem); }
.mission-quote { font-size: clamp(1.8rem, 1.3rem + 1.9vw, 2.9rem); }
.statement .h-section { font-size: clamp(1.8rem, 1.3rem + 1.7vw, 2.7rem); }
.voice-number { font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.9rem); }
.site-footer { padding-top: clamp(60px, 7vw, 96px); }

/* Bombolla "Tens algun dubte?": a l'esquerra del botó (no a sobre), perquè no tapi el contingut del hero */
#chat-tooltip { bottom: auto; top: 50%; right: calc(100% + 12px); transform: translateY(-50%); border-radius: 12px 12px 12px 12px; animation: chatTipIn .4s var(--ease) both; }
#chat-tooltip::after { bottom: auto; top: 50%; right: -5px; margin-top: -5px; border: 5px solid transparent; border-left-color: #fff; border-right: none; }
@keyframes chatTipIn { from { opacity: 0; transform: translate(6px, -50%); } to { opacity: 1; transform: translate(0, -50%); } }

/* Botó de WhatsApp, a baix a l'esquerra (el xat és a la dreta) */
#wa-fab { position: fixed; left: 28px; bottom: 28px; z-index: 9998; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 12px 26px -12px rgba(18,140,70,.8), 0 0 0 1px rgba(255,255,255,.4) inset;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), opacity .25s; }
#wa-fab svg { width: 28px; height: 28px; }
#wa-fab:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 16px 30px -12px rgba(18,140,70,.9), 0 0 0 1px rgba(255,255,255,.5) inset; }
@media (max-width: 480px) { html.chat-open #wa-fab { opacity: 0; pointer-events: none; } }
@media (max-width: 480px) { #wa-fab { left: 20px; bottom: 20px; width: 52px; height: 52px; } }

/* ===== PREUS (com-treballem.html) ===== */
.ct-price { position: relative; padding: var(--section-y) 0; background: linear-gradient(180deg, var(--tint-1) 0%, #f5f9ff 100%); }
.ct-price-grid { display: grid; grid-template-columns: 1fr; gap: 48px 72px; align-items: start; }
@media (min-width: 1024px) { .ct-price-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.ct-price-text { margin-top: 20px; font-size: var(--fs-lead); color: var(--ink-2); max-width: 36rem; }
.ct-formula { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.ct-f-term { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid rgba(26,109,255,.2); font-size: 15px; font-weight: 520; color: var(--ink); }
.ct-f-res { background: var(--blue); border-color: var(--blue); color: #fff; }
.ct-f-op { font-size: 1.2rem; color: var(--blue); font-weight: 600; }
.ct-f-note { margin-top: 14px; font-size: .92rem; color: var(--ink-3); max-width: 36rem; }
.ct-price-btn { margin-top: 32px; }
.ct-price-list { border-top: 1px solid var(--line-strong); }
.ct-price-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.ct-price-n { font-size: 14px; font-weight: 600; color: var(--blue); padding-top: 3px; }
.ct-price-list h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.ct-price-list p { margin-top: 6px; color: var(--ink-2); font-size: .97rem; }

/* Portada: el hero omple la primera pantalla i la franja "Treballem amb" (en moviment) n'és el límit inferior (16-10-2026) */
@media (min-width: 1024px) {
  .hero { min-height: calc(100vh - 78px); min-height: calc(100svh - 78px); display: flex; align-items: center; }
  .hero-inner { width: 100%; padding-top: clamp(108px, 10vw, 132px); padding-bottom: 32px; row-gap: 40px; }
  .hero .eyebrow { margin-bottom: 24px; }
  .hero-lead { margin-top: 26px; }
  .hero-actions { margin-top: 34px; }
  .hero-facts { padding-top: 20px; margin-top: 0; }
}
@media (min-width: 1024px) and (max-height: 820px) {
  .hero-inner { row-gap: 28px; padding-top: 100px; padding-bottom: 24px; }
  .hero-title { font-size: clamp(2.6rem, 1.3rem + 3.2vw, 4rem); }
  .hero .eyebrow { margin-bottom: 18px; }
  .hero-lead { font-size: 1.02rem; line-height: 1.55; margin-top: 20px; }
  .hero-actions { margin-top: 26px; }
  .hero-card { max-width: 370px; }
  .hero-facts li { font-size: 14px; }
}
@media (min-width: 1024px) and (max-height: 700px) { .hero-facts { display: none; } }

/* Enllaç "Salta al contingut": només apareix amb el teclat */
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 10000; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 560; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }
#contingut:focus { outline: none; }

/* Primera capa d'informació RGPD sota els formularis (art. 11 LOPDGDD) */
.rgpd-layer { font-size: 11px; line-height: 1.5; color: var(--ink-3, #6b7489); margin: 2px 0 0; }
.rgpd-layer a { text-decoration: underline; text-underline-offset: 2px; color: inherit; }
