/* csoft.es · Sistema de disseny
   Basat en la landing Veri*Factu. CSS propi, sense frameworks, mobile-first. */

:root {
  --dark: #004080;
  --blue: #0066c4;
  --cyan: #00a0e3;
  --cyan-text: #0077a8;   /* cian amb contrast suficient per a text */
  --ink: #0f172a;
  --text: #334155;
  --muted: #475569;
  --soft: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --bg-blue: #eff6ff;
  --white: #fff;
  --green: #047857;
  --green-bg: #ecfdf5;
  --red: #b91c1c;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgb(15 23 42 / .06), 0 4px 12px rgb(15 23 42 / .06);
  --shadow-lg: 0 10px 30px rgb(15 23 42 / .12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 68px;
}
@media (min-width: 1100px) { :root { --header-h: 80px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0; letter-spacing: -.01em; }
p, ul, ol { margin: 0; }
::selection { background: var(--cyan); color: #fff; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.wrap-narrow { max-width: 860px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--dark); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { top: 8px; color: #fff; }

/* ===== Icones ===== */
.ic { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 16px; height: 16px; }
.ic-lg { width: 26px; height: 26px; }

/* ===== Botons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; border: 2px solid transparent; border-radius: 12px; padding: 13px 20px; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s; white-space: nowrap; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--dark); color: #fff; }
.btn-outline { background: #fff; color: var(--dark); border-color: var(--dark); }
.btn-outline:hover { background: var(--bg-blue); color: var(--dark); }
.btn-white { background: #fff; color: var(--dark); }
.btn-white:hover { background: #e0f2fe; color: var(--dark); }
.btn-ghost-white { background: transparent; color: #fff; border-color: rgb(255 255 255 / .6); }
.btn-ghost-white:hover { background: rgb(255 255 255 / .1); color: #fff; }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: wait; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--blue); }
.link-arrow:hover { gap: 10px; }
.link-arrow .ic { transition: transform .15s; }

/* ===== Barra superior ===== */
.topbar { background: var(--ink); color: #cbd5e1; font-size: 13px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.topbar a { color: #e2e8f0; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar-contact { display: flex; gap: 18px; }
.topbar-contact .mail { display: none; }
.topbar-links { display: flex; gap: 16px; }
@media (min-width: 640px) { .topbar-contact .mail { display: inline-flex; } }
.topbar-social { display: none; align-items: center; gap: 4px; margin-left: 6px; padding-left: 14px; border-left: 1px solid #334155; }
.topbar-social a { width: 26px; height: 26px; justify-content: center; border-radius: 6px; color: #cbd5e1; }
.topbar-social a:hover { background: #1e293b; color: #fff; }
.topbar-social .ic { width: 16px; height: 16px; }
@media (min-width: 640px) { .topbar-social { display: inline-flex; } }

@media (max-width: 479px) { .topbar-links .remote { display: none; } }

/* ===== Capçalera i navegació ===== */
.header { position: sticky; top: 0; z-index: 100; background: rgb(255 255 255 / .97); border-bottom: 1px solid var(--line); box-shadow: 0 1px 2px rgb(15 23 42 / .04); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--header-h); }
.logo { display: block; flex: none; }
.logo img { display: block; height: 46px; width: auto; }
@media (min-width: 1100px) { :root { --header-h: 88px; } .logo img { height: 62px; } }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn-cta { display: none; }
@media (min-width: 560px) { .header-cta .btn-cta { display: inline-flex; } }
.lang { display: flex; background: #f1f5f9; border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.lang a { font-size: 12px; font-weight: 700; text-decoration: none; color: var(--muted); padding: 6px 9px; border-radius: 7px; }
.lang a[aria-current="page"] { background: var(--dark); color: #fff; }

/* Menú mòbil (per defecte) */
.nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; overflow-y: auto; padding: 8px 16px 32px; border-top: 1px solid var(--line); display: none; }
.nav.open { display: block; }
.nav-list { list-style: none; padding: 0; }
.nav-list > li { border-bottom: 1px solid var(--line); }
.nav-link, .nav-sub-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 4px; font: inherit; font-weight: 700; font-size: 16px; color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left; }
.nav-link[aria-current="page"], .nav-sub-toggle[aria-current="page"] { color: var(--blue); }
.nav-sub-toggle .ic { transition: transform .2s; color: var(--blue); }
.nav-sub-toggle[aria-expanded="true"] .ic { transform: rotate(180deg); }
.nav-sub { display: none; padding: 0 4px 14px; }
.nav-sub.open { display: block; }
.nav-sub ul { list-style: none; padding: 0; display: grid; gap: 2px; }
.nav-sub ul a { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.nav-sub ul a:hover, .nav-sub ul a:focus-visible { background: var(--bg-blue); }
.mm-ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: var(--bg-blue); color: var(--blue); }
.nav-sub ul a:hover .mm-ic { background: var(--blue); color: #fff; }
.mm-tx { min-width: 0; display: grid; }
.mm-tx strong { font-size: 15px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-tx small { display: none; }
.nav-sub-foot { display: inline-flex; align-items: center; gap: 6px; margin: 8px 10px 0; font-size: 14px; font-weight: 700; color: var(--blue); text-decoration: none; }
.nav-sub-foot:hover { text-decoration: underline; }
.nav-sub-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--soft); padding: 10px 10px 4px; }
.nav-mobile-extra { display: grid; gap: 10px; margin-top: 20px; }

/* Menú d'escriptori */
@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .nav { position: static; display: block; padding: 0; border: 0; overflow: visible; background: none; }
  .nav-list { display: flex; align-items: center; gap: 2px; }
  .nav-list > li { border: 0; position: relative; }
  .nav-link, .nav-sub-toggle { padding: 10px 12px; font-size: 15px; font-weight: 600; border-radius: 10px; gap: 4px; white-space: nowrap; }
  .nav-link:hover, .nav-sub-toggle:hover { background: var(--bg); color: var(--dark); }
  /* El panell queda centrat sota el títol; site.js el desplaça (--shift) si sortiria de la pantalla */
  .nav-sub { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(calc(-50% + var(--shift, 0px))); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 12px; }
  /* Pont invisible entre el títol i el panell perquè el ratolí no el tanqui en creuar l'espai */
  .nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
  .nav-sub ul { gap: 2px 8px; }
  .nav-sub-2 ul { grid-template-columns: repeat(2, 340px); }
  .nav-sub-3 ul { grid-template-columns: repeat(3, 260px); }
  .nav-sub ul a { height: 100%; min-height: 58px; }
  .nav-sub-3 ul a { min-height: 44px; padding-block: 5px; }
  .mm-tx strong { font-size: 14.5px; }
  .mm-tx small { display: block; font-size: 13px; line-height: 1.35; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-sub-foot { display: flex; margin: 10px -12px -12px; padding: 12px 22px; border-top: 1px solid var(--line); border-radius: 0 0 16px 16px; background: var(--bg); }
  .nav-sub-foot:hover { text-decoration: none; background: var(--bg-blue); }
  .nav-sub-foot .ic { transition: transform .2s; }
  .nav-sub-foot:hover .ic { transform: translateX(3px); }
  .nav-mobile-extra { display: none; }
}
/* Pantalles d'escriptori estretes: menú més compacte perquè no parteixi els títols */
@media (min-width: 1100px) and (max-width: 1199px) { .logo img { height: 56px; } }
@media (min-width: 1100px) and (max-width: 1299px) {
  .nav-link, .nav-sub-toggle { padding: 8px 7px; font-size: 14px; gap: 2px; }
  .header .wrap { gap: 8px; }
  .header-cta { gap: 8px; }
}
body.nav-open { overflow: hidden; }
@media (min-width: 1100px) { body.nav-open { overflow: auto; } }

/* ===== Breadcrumbs ===== */
.crumbs { font-size: 13px; color: var(--soft); padding-top: 14px; }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li + li::before { content: "›"; margin-right: 4px; color: #94a3b8; }
.crumbs a { color: var(--soft); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }

/* ===== Seccions ===== */
.section { padding: 56px 0; }
@media (min-width: 1024px) { .section { padding: 80px 0; } }
.section-bg { background: var(--bg); }
.section-line { border-top: 1px solid var(--line); }
.section-head { max-width: 780px; margin: 0 auto 36px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--blue); margin-bottom: 8px; }
.section h2, .h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); font-weight: 800; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 1.05rem; }
.lead { font-size: 1.1rem; color: var(--muted); }
.grad { background: linear-gradient(90deg, var(--dark), var(--blue) 50%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===== Hero ===== */
.hero { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); padding: 36px 0 52px; overflow: hidden; }
@media (min-width: 1024px) { .hero { padding: 64px 0 84px; } }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 7fr 5fr; gap: 56px; } }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--bg-blue); border: 1px solid #bfdbfe; color: var(--dark); font-weight: 600; font-size: 13px; }
.badge .ic { color: var(--blue); }
.hero h1 { font-size: clamp(2rem, 4.8vw, 3.35rem); font-weight: 900; margin: 18px 0 16px; }
.hero .lead { max-width: 640px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-cta .btn { flex: 1 1 200px; }
@media (min-width: 640px) { .hero-cta .btn { flex: 0 0 auto; } }
.hero-checks { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; font-size: 14px; color: var(--muted); }
.hero-checks li { display: inline-flex; align-items: center; gap: 6px; }
.hero-checks .ic { color: var(--green); stroke-width: 3; }

/* Targeta de xifres del hero */
.stats-card { background: linear-gradient(145deg, var(--dark), var(--blue) 70%, #0080b8); color: #e0f2fe; border-radius: 26px; padding: 26px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.stats-card::after { content: ""; position: absolute; inset: auto -40px -40px auto; width: 180px; height: 180px; border-radius: 50%; background: rgb(255 255 255 / .06); pointer-events: none; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { background: rgb(255 255 255 / .09); border: 1px solid rgb(255 255 255 / .14); border-radius: 16px; padding: 16px; }
.stat b { display: block; font-size: 1.9rem; font-weight: 900; color: #fff; line-height: 1.1; }
.stat span { font-size: 13px; }
.stats-card .vf { display: flex; gap: 12px; align-items: center; margin-top: 14px; background: #fff; color: var(--ink); border-radius: 16px; padding: 14px 16px; text-decoration: none; }
.stats-card .vf:hover { background: var(--bg-blue); color: var(--ink); }
.stats-card .vf .ic-box { width: 40px; height: 40px; border-radius: 10px; background: var(--green-bg); color: var(--green); display: grid; place-items: center; flex-shrink: 0; }
.stats-card .vf strong { display: block; font-size: 15px; }
.stats-card .vf small { color: var(--muted); font-size: 13px; }
.stats-card .vf .ic-arrow { margin-left: auto; color: var(--blue); }

/* ===== Graelles i targetes ===== */
.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.section-bg .card { background: #fff; }
.card:hover { border-color: #93c5fd; box-shadow: var(--shadow-lg); }
.card .ic-box { width: 48px; height: 48px; border-radius: 12px; background: #dbeafe; color: var(--dark); display: grid; place-items: center; margin-bottom: 16px; }
.card h3 { font-size: 1.15rem; font-weight: 750; margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--muted); }
.card .link-arrow { margin-top: auto; padding-top: 16px; }
.card a.stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-feature { padding: 28px; }
.card-feature .ic-box { width: 56px; height: 56px; border-radius: 14px; color: #fff; }
.card-feature ul { list-style: none; padding: 0; margin-top: 14px; display: grid; gap: 6px; font-size: 14.5px; }
.card-feature li { display: flex; gap: 8px; align-items: flex-start; }
.card-feature li .ic { color: var(--green); margin-top: 3px; stroke-width: 3; }
.bg-dark, .ic-box.bg-dark { background: var(--dark); color: #fff; }
.bg-blue, .ic-box.bg-blue { background: var(--blue); color: #fff; }
.bg-cyan, .ic-box.bg-cyan { background: #0080b8; color: #fff; }

/* Mòduls (graella compacta) */
.mod { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-decoration: none; color: var(--text); transition: border-color .2s, box-shadow .2s; }
.mod:hover { border-color: #93c5fd; box-shadow: var(--shadow); color: var(--text); }
.mod .ic-box { width: 40px; height: 40px; border-radius: 10px; background: var(--bg-blue); color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.mod strong { display: block; color: var(--ink); font-size: 15px; }
.mod span { font-size: 13.5px; color: var(--muted); line-height: 1.45; display: block; margin-top: 2px; }

/* Sectors (xips) */
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chips a { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 14.5px; font-weight: 600; color: var(--ink); text-decoration: none; transition: border-color .15s, background-color .15s, color .15s; }
.chips a:hover { border-color: var(--blue); background: var(--bg-blue); color: var(--dark); }
.chips a.more { background: var(--dark); border-color: var(--dark); color: #fff; }
.chips a.more:hover { background: var(--blue); }

/* Per què CSI */
.why { display: grid; gap: 26px; align-items: center; }
@media (min-width: 1024px) { .why { grid-template-columns: 5fr 7fr; gap: 56px; } }
/* Per què CSI amb vídeo: text → vídeo → targetes (mòbil); vídeo a l'esquerra (escriptori) */
.why-video { grid-template-areas: "text" "video" "points"; }
.why-video .why-text { grid-area: text; }
.why-video .team-video { grid-area: video; }
.why-video .points { grid-area: points; }
.team-video { margin: 0 auto; width: 100%; max-width: 300px; }
.team-video video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 20px; background: var(--ink); box-shadow: var(--shadow); }
.team-video figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }
@media (min-width: 1024px) {
  .why-video { grid-template-columns: 300px 1fr; grid-template-areas: "video text" "video points"; column-gap: 56px; row-gap: 28px; align-items: start; }
  .why-video .team-video { margin: 0; align-self: center; }
}
.points { list-style: none; padding: 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .points { grid-template-columns: 1fr 1fr; } }
.points li { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.points .ic-box { width: 42px; height: 42px; border-radius: 10px; color: #fff; display: grid; place-items: center; margin-bottom: 12px; }
.points h3 { font-size: 1.02rem; font-weight: 750; margin-bottom: 4px; }
.points p { font-size: 14.5px; color: var(--muted); }

/* Fotografies pendents */
.ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; background: repeating-linear-gradient(135deg, #f1f5f9 0 12px, #e8eef5 12px 24px); border: 2px dashed #cbd5e1; border-radius: 20px; color: var(--soft); font-size: 13px; padding: 20px; aspect-ratio: 4 / 3; }
.ph strong { color: var(--muted); font-size: 14px; }
.ph .ic { width: 32px; height: 32px; color: #94a3b8; }

/* Clients */
.clients-title { text-align: center; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 22px; }
.clients-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 16px; }
.clients-list li { width: 96px; height: 56px; display: flex; align-items: center; justify-content: center; }
@media (min-width: 480px) { .clients-list li { width: 120px; height: 64px; } }
@media (min-width: 768px) { .clients-list { gap: 22px 40px; } .clients-list li { width: 140px; } }
.clients-list img { width: auto; height: auto; max-width: 100%; max-height: 40px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.clients-list img.sq { max-height: 60px; }
.clients-list img.inv { filter: invert(1) grayscale(1); }
.clients-list li:hover img { filter: none; opacity: 1; }
.clients-list li:hover img.inv { filter: invert(1); }

/* Partners */
.partners { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.partners li { flex: 1 1 140px; max-width: 170px; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 72px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; font-weight: 800; color: var(--muted); font-size: 15px; }

/* Blog */
.post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; position: relative; transition: box-shadow .2s, border-color .2s; }
.post:hover { box-shadow: var(--shadow-lg); border-color: #93c5fd; }
.post .post-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post .tag { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--dark); background: var(--bg-blue); border-radius: 999px; padding: 3px 10px; margin-bottom: 12px; }
.post h3 { font-size: 1.08rem; font-weight: 750; margin-bottom: 8px; }
.post h3 a { color: var(--ink); text-decoration: none; }
.post h3 a::after { content: ""; position: absolute; inset: 0; }
.post p { font-size: 14.5px; color: var(--muted); }
.post time { margin-top: auto; padding-top: 14px; font-size: 13px; color: var(--soft); }

/* Franja Veri*Factu */
.vf-strip { background: var(--ink); color: #cbd5e1; }
.vf-strip .wrap { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding-top: 26px; padding-bottom: 26px; }
@media (min-width: 900px) { .vf-strip .wrap { flex-direction: row; align-items: center; justify-content: space-between; } }
.vf-strip strong { color: #fff; font-size: 1.1rem; display: block; }
.vf-strip p { font-size: 15px; }
.vf-strip .tag { display: inline-flex; align-items: center; gap: 6px; color: #6ee7b7; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }

/* CTA + formulari */
.cta-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1024px) { .cta-grid { grid-template-columns: 5fr 6fr; gap: 56px; } }
.contact-list { list-style: none; padding: 0; display: grid; gap: 14px; margin-top: 24px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .ic-box { width: 42px; height: 42px; border-radius: 10px; background: var(--bg-blue); color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.contact-list strong { display: block; color: var(--ink); }
.contact-list a { font-weight: 700; text-decoration: none; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 20px; box-shadow: var(--shadow-lg); }
@media (min-width: 640px) { .form-card { padding: 32px; } }
.form-card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 4px; }
.form-card .sub { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.field { margin-bottom: 12px; }
.field-row { display: grid; gap: 0 12px; }
@media (min-width: 480px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.field input, .field textarea, .field select { width: 100%; font: inherit; font-size: 15px; color: var(--ink); padding: 11px 13px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fcfdfe; transition: border-color .15s, box-shadow .15s; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23475569' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.field textarea { resize: vertical; min-height: 80px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgb(0 160 227 / .3); background-color: #fff; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 6px 0 14px; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--blue); }
.rgpd { font-size: 11.5px; line-height: 1.45; color: var(--soft); margin-top: 12px; }
.form-error { background: #fef2f2; border: 1px solid #fecaca; color: var(--red); font-size: 13px; font-weight: 600; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.form-error a { color: var(--red); }
.success { text-align: center; padding: 18px 0 6px; }
.success .ok { width: 64px; height: 64px; border-radius: 50%; background: #d1fae5; color: var(--green); display: grid; place-items: center; margin: 0 auto 14px; }
.success .ok .ic { width: 36px; height: 36px; }
.success h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 8px; }
.success p { font-size: 14px; color: var(--muted); }

/* ===== Pàgines interiors ===== */
.page-hero { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); padding: 20px 0 48px; }
@media (min-width: 1024px) { .page-hero { padding: 28px 0 72px; } }
.page-hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1024px) { .page-hero-grid { grid-template-columns: 7fr 5fr; gap: 56px; } }
.page-hero h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 900; margin: 14px 0 16px; }
.page-hero .lead { max-width: 680px; }
.crumbs + .page-hero, .crumbs + section { margin-top: 0; }
.hero-aside { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.hero-aside h2 { font-size: 1rem; font-weight: 800; margin-bottom: 12px; }

.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split.reverse > :first-child { order: 2; } }

.prose p + p { margin-top: 14px; }
.prose p { color: var(--text); }
.prose h2 { margin-bottom: 14px; }
.prose h3 { font-size: 1.15rem; font-weight: 750; margin: 26px 0 8px; }

.checks { list-style: none; padding: 0; display: grid; gap: 10px; margin-top: 18px; }
@media (min-width: 640px) { .checks.cols-2 { grid-template-columns: 1fr 1fr; gap: 10px 24px; } }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.checks li .ic { color: var(--green); background: var(--green-bg); border-radius: 6px; padding: 3px; width: 22px; height: 22px; stroke-width: 3; margin-top: 1px; }
.checks strong { color: var(--ink); }

.feature-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.section-bg .feature { background: #fff; }
.feature .ic-box { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-blue); color: var(--blue); display: grid; place-items: center; margin-bottom: 14px; }
.feature h3 { font-size: 1.08rem; font-weight: 750; margin-bottom: 8px; }
.feature p { font-size: 15px; color: var(--muted); }
.feature ul { list-style: none; padding: 0; margin-top: 12px; display: grid; gap: 6px; font-size: 14.5px; color: var(--text); }
.feature li { display: flex; gap: 8px; align-items: flex-start; }
.feature li .ic { color: var(--green); margin-top: 4px; stroke-width: 3; width: 14px; height: 14px; }

.steps { list-style: none; padding: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 18px; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--dark); color: #fff; font-weight: 800; margin-bottom: 12px; }
.steps h3 { font-size: 1rem; font-weight: 750; margin-bottom: 4px; }
.steps p { font-size: 14px; color: var(--muted); }

.ph.wide { aspect-ratio: 16 / 10; }

.cta-band { background: linear-gradient(135deg, var(--dark), var(--blue) 60%, var(--dark)); color: #dbeafe; border-radius: 26px; padding: 32px 24px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; box-shadow: var(--shadow-lg); }
@media (min-width: 900px) { .cta-band { flex-direction: row; align-items: center; justify-content: space-between; padding: 40px 44px; } }
.cta-band h2 { color: #fff; font-size: clamp(1.35rem, 2.6vw, 1.8rem); font-weight: 900; margin-bottom: 6px; }
.cta-band p { font-size: 15.5px; max-width: 620px; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Articles */
.post-hero { padding: 16px 0 36px; }
.post-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 900; margin: 14px 0 10px; }
.post-meta { color: var(--soft); font-size: 14px; }
.post-section { padding-top: 32px; }
.post-body { font-size: 16.5px; line-height: 1.75; overflow-wrap: anywhere; }
.post-body img { max-width: 100%; height: auto; }
.post-body > * + * { margin-top: 16px; }
.post-body h2 { font-size: 1.4rem; font-weight: 800; margin-top: 34px; }
.post-body h3 { font-size: 1.15rem; font-weight: 750; margin-top: 26px; }
.post-body ul, .post-body ol { padding-left: 22px; }
.post-body li + li { margin-top: 6px; }
.post-body img { border-radius: 10px; border: 1px solid var(--line); margin: 8px 0; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 14.5px; display: block; overflow-x: auto; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.post-body blockquote { border-left: 4px solid var(--cyan); padding: 4px 0 4px 16px; color: var(--muted); margin-left: 0; }
.post-cover { width: 100%; }
.video-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; background: var(--bg-blue); border: 1px solid #bfdbfe; border-radius: 12px; padding: 12px 18px; text-decoration: none; }
.post .post-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg); border-bottom: 1px solid var(--line); }

/* Ajuda de Praxis */
.help-group { margin-top: 36px; }
.help-group h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 12px; }
.help-list { list-style: none; padding: 0; display: grid; gap: 8px; }
@media (min-width: 900px) { .help-list { grid-template-columns: 1fr 1fr; } }
.help-list a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; }
.help-list a:hover { border-color: var(--blue); background: var(--bg-blue); color: var(--dark); }

/* Textos legals */
.legal { font-size: 15.5px; }
.legal h2 { font-size: 1.25rem; font-weight: 800; margin: 34px 0 10px; }
.legal h3 { font-size: 1.05rem; font-weight: 750; margin: 22px 0 6px; }
.legal p, .legal ul { margin-top: 10px; }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 4px; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal th { background: var(--bg); color: var(--ink); }
.legal .table-wrap { overflow-x: auto; }
.legal .updated { color: var(--soft); font-size: 14px; }

.note-box { background: var(--bg-blue); border: 1px solid #bfdbfe; border-radius: 14px; padding: 16px 18px; font-size: 14.5px; color: var(--dark); }

/* ===== Peu ===== */
.footer { background: var(--ink); color: #94a3b8; font-size: 14px; padding: 56px 0 96px; }
.footer a { color: #cbd5e1; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; } }
.footer h2 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: #e2e8f0; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.footer .brand p { margin-top: 14px; }
.footer .brand .logo-box { display: inline-block; background: #fff; border-radius: 12px; padding: 8px 12px; }
.footer .brand .logo-box img { display: block; height: 52px; width: auto; }
.footer .footer-social { list-style: none; padding: 0; display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #1e293b; color: #e2e8f0; transition: background .2s, color .2s; }
.footer-social a:hover { background: var(--blue, #0066c4); color: #fff; text-decoration: none; }
.footer-social .ic { width: 20px; height: 20px; }
.footer-eu { margin-top: 40px; padding-top: 24px; border-top: 1px solid #1e293b; display: grid; gap: 14px; justify-items: center; text-align: center; }
.footer-eu img { display: block; width: 100%; max-width: 760px; margin: 0 auto; height: auto; background: #fff; border-radius: 12px; padding: 10px 14px; box-sizing: border-box; }
.footer-eu p { font-size: 12.5px; line-height: 1.55; color: #94a3b8; max-width: 900px; margin: 0 auto; }
.footer-eu + .footer-bottom { margin-top: 24px; }
.footer-bottom { display: flex; flex-direction: column; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid #1e293b; font-size: 13px; }
@media (min-width: 900px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal button { font: inherit; font-size: 13px; color: #cbd5e1; background: none; border: 0; padding: 0; cursor: pointer; }
.footer-legal button:hover { color: #fff; text-decoration: underline; }

/* ===== Botó flotant de trucada ===== */
.float-call { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: inline-flex; align-items: center; gap: 10px; background: var(--green); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; border: 2px solid #fff; border-radius: 999px; padding: 12px; box-shadow: 0 10px 25px rgb(4 120 87 / .35); }
.float-call:hover { background: #065f46; color: #fff; }
.float-call.float-wa { background: #25d366; }
.float-call.float-wa:hover { background: #1da851; }
.float-call.float-wa .ic { width: 24px; height: 24px; }
.float-call .lbl { display: none; }
@media (min-width: 640px) { .float-call { padding: 12px 20px 12px 14px; } .float-call .lbl { display: inline; } }

/* ===== Bàner de cookies ===== */
.cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150; max-width: 560px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 50px rgb(15 23 42 / .25); padding: 20px; font-size: 14px; }
@media (min-width: 640px) { .cookies { left: 24px; right: auto; bottom: 24px; } }
.cookies h2 { font-size: 1rem; font-weight: 800; margin-bottom: 6px; }
.cookies p { color: var(--muted); }
.cookies .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cookies .actions .btn { flex: 1 1 140px; }

/* Fotos i maquetes dins de les seccions */
.media { margin: 0; border-radius: 20px; overflow: hidden; background: var(--bg); aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.media.wide { aspect-ratio: 16 / 10; }
.media img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Logos de clients (generats des de src/data/clients.csv; mida ja normalitzada per àrea) */
.client-logos { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(var(--cm, 3), minmax(0, 1fr)); gap: 10px; max-width: calc(var(--cm, 3) * 190px); }
@media (min-width: 640px) { .client-logos { grid-template-columns: repeat(var(--c, 6), minmax(0, 1fr)); max-width: calc(var(--c, 6) * 190px); gap: 12px 16px; } }
@media (min-width: 640px) and (max-width: 1023px) { .client-logos-home { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 760px; } }
.client-logos li { display: flex; align-items: center; justify-content: center; height: 76px; padding: 6px 8px; border-radius: 12px; }
.client-logos img { display: block; max-width: 100%; height: auto; filter: grayscale(1); opacity: .72; transition: filter .2s, opacity .2s; }
.client-logos li:hover img { filter: none; opacity: 1; }
.client-more { text-align: center; margin: 18px 0 0; }
.client-more a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.client-more a:hover { text-decoration: underline; }
.client-groups { display: grid; gap: 18px; }
@media (min-width: 900px) { .client-groups { grid-template-columns: repeat(2, 1fr); } }
.client-group { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px 22px; }
.client-group h3 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--soft); text-align: center; margin-bottom: 14px; }
.client-group .client-logos li { height: 70px; }
/* ===== Home: dos camins a la capçalera (programa de gestió / serveis informàtics) ===== */
@media (min-width: 1024px) { .hero-grid:has(.hero-paths) { grid-template-columns: 6fr 6fr; gap: 48px; } }
.hero-paths { display: grid; gap: 14px; }
@media (min-width: 640px) and (max-width: 1023px) { .hero-paths { grid-template-columns: 1fr 1fr; } }
.path { position: relative; display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.path h2 { font-size: 1.2rem; font-weight: 800; }
.path p { font-size: 15px; color: var(--muted); }
.path-top { display: flex; align-items: center; min-height: 48px; }
.path-logo { height: 44px; width: auto; }
.path-top .ic-box { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgb(255 255 255 / .14); color: #fff; }
.path-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 6px; }
.path-dark { background: linear-gradient(145deg, var(--dark), var(--blue) 75%, #0080b8); border-color: transparent; color: #e0f2fe; }
.path-dark h2 { color: #fff; }
.path-dark p { color: #dbeafe; }
.path-dark .link-arrow { color: #fff; }

/* Xifres en franja */
.stats-strip { list-style: none; margin: 0 0 30px; padding: 0 0 26px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; text-align: center; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .stats-strip { grid-template-columns: repeat(4, 1fr); } }
.stats-strip b { display: block; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 900; color: var(--dark); line-height: 1.1; }
.stats-strip span { font-size: 13.5px; color: var(--muted); }

/* Família Praxis Suite */
.products-head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; margin-bottom: 24px; }
.products-head p { max-width: 620px; color: var(--muted); }
.suite-logo { height: 52px; width: auto; }
.product { align-items: center; text-align: center; }
.product img { height: 104px; width: auto; margin: 4px auto 14px; }
.product .link-arrow { justify-content: center; }
.modules-more { margin-top: 26px; text-align: center; }
.modules-more > p { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.product-logo { display: block; height: 96px; width: auto; margin: 0 auto 16px; }

/* Partners dins de Serveis informàtics */
.partners-row { margin-top: 30px; text-align: center; }
.partners-row > p { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }

/* Testimoni (quan n'hi hagi) */
.testimonial { max-width: 760px; margin: 0 auto; text-align: center; }
.testimonial blockquote { margin: 16px 0; font-size: clamp(1.15rem, 2.4vw, 1.45rem); font-weight: 600; color: var(--ink); line-height: 1.5; }
.testimonial img { margin: 0 auto; height: 48px; width: auto; }
.testimonial figcaption { color: var(--muted); font-size: 15px; }
/* ===== Serveis informàtics: compromisos, partners per especialitat i crida ===== */
.it-promises { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
@media (min-width: 768px) { .it-promises { grid-template-columns: repeat(3, 1fr); } }
.it-promises li { display: flex; gap: 12px; align-items: flex-start; background: var(--bg-blue); border: 1px solid #dbeafe; border-radius: 14px; padding: 14px 16px; font-size: 14px; color: var(--muted); }
.it-promises .ic-box { width: 38px; height: 38px; border-radius: 10px; background: var(--blue); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.it-promises strong { display: block; color: var(--ink); font-size: 15px; }
.partners-panel { margin-top: 30px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px 20px; }
@media (min-width: 768px) { .partners-panel { padding: 30px 32px; } }
.partners-head { text-align: center; max-width: 680px; margin: 0 auto 22px; }
.partners-head h3 { font-size: 1.25rem; font-weight: 800; }
.partners-head p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.pgroups { display: grid; gap: 14px; }
@media (min-width: 640px) { .pgroups { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pgroups { grid-template-columns: repeat(4, 1fr); } }
.pgroup { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 16px; }
.pgroup h3 { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); text-align: center; margin-bottom: 10px; }
.pgroup ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pgroup li { display: flex; align-items: center; justify-content: center; height: 60px; background: #fff; border-radius: 10px; padding: 6px 10px; }
.pgroup img { display: block; max-width: 100%; height: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.pgroup li:hover img { filter: none; opacity: 1; }
.it-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin-top: 28px; }
/* Fotos reals de l'equip */
.media.portrait { aspect-ratio: 4 / 5; max-width: 380px; }
.media-center { max-width: 920px; margin: 0 auto 32px; }

/* Mapa de l'oficina (Contacte) */
.map-embed { border-radius: var(--radius, 14px); overflow: hidden; border: 1px solid var(--line); background: #e9eef3; aspect-ratio: 21 / 9; }
.map-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 767px) { .map-embed { aspect-ratio: 4 / 3; } }
.section-map { padding-bottom: 0; }
.map-embed.map-full { border-radius: 0; border: 0; border-top: 1px solid var(--line); aspect-ratio: auto; height: 460px; }
@media (max-width: 767px) { .map-embed.map-full { height: 360px; } }
