@font-face { font-family: "Mulish"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/mulish-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/poppins-700.woff2") format("woff2"); }
:root {
  --bg: #f5f9fb;
  --surface: #ffffff;
  --ink: #10273e;
  --ink-soft: #4a5f73;
  --muted: #5b6e80;
  --primary: #0d4d8e;
  --primary-deep: #093a6e;
  --sky: #addadd;
  --sky-soft: #e6f2f4;
  --accent: #ee6b2f;
  --line: #dbe6ee;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: "Mulish", system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .font-d { font-family: "Poppins", system-ui, sans-serif; letter-spacing: -0.02em; line-height: 1.12; font-weight: 600; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: "Poppins", sans-serif; font-weight: 600; font-size: 15px; padding: 13px 26px; border-radius: 999px; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; cursor: pointer; border: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px -10px rgba(13,77,142,.65); }
.btn-primary:hover { transform: translateY(-2px); background: var(--primary-deep); box-shadow: 0 16px 32px -10px rgba(13,77,142,.7); }
.btn-ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--primary); background: var(--sky-soft); }
.eyebrow { font-family: "Poppins", sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.eyebrow::before { content: ""; display: inline-block; width: 20px; height: 2px; border-radius: 2px; background: var(--accent); vertical-align: middle; margin-right: 9px; margin-bottom: 3px; }

header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 38px; width: 38px; }
.brand b { font-family: "Poppins", sans-serif; font-size: 21px; font-weight: 500; color: var(--primary); }
.brand b strong { font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-family: "Poppins", sans-serif; font-size: 15px; font-weight: 500; color: var(--ink-soft); transition: color .15s; }
.nav-links a:hover { color: var(--primary); }
/* el botó del menú ha de mantenir el text blanc (més específic que .nav-links a) */
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }
.nav-links a.btn-ghost { color: var(--primary); }
.burger { display: none; background: none; border: none; cursor: pointer; color: var(--primary); }

.hero { padding: 76px 0 88px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; top: -30%; right: -12%; width: 60%; height: 150%; background: radial-gradient(closest-side, color-mix(in srgb, var(--sky) 55%, transparent), transparent); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; }
/* El H1 (per a Google) és la línia petita; l'eslògan gran és un paràgraf amb aspecte de títol */
.hero-title { font-family: "Poppins", system-ui, sans-serif; font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; font-size: clamp(38px, 5.6vw, 62px); margin: 16px 0 20px; color: var(--ink); }
.hero-title em { font-style: normal; color: var(--primary); }
.hero p.lead { font-size: 19px; color: var(--ink-soft); max-width: 32ch; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { aspect-ratio: 4/5; border-radius: 26px; position: relative; background: var(--sky-soft); box-shadow: 0 34px 64px -26px rgba(13,77,142,.5); }
.hero-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 26%; border-radius: inherit; }
.hero-badge { position: absolute; bottom: 20px; left: -20px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 16px; padding: 14px 20px; box-shadow: 0 18px 40px -18px rgba(13,77,142,.4); }
.hero-badge b { font-family: "Poppins", sans-serif; font-size: 20px; color: var(--primary); display: block; }
.hero-badge small { color: var(--muted); font-size: 13px; }

section { padding: 78px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin: 12px 0 14px; }
.section-head p { color: var(--ink-soft); font-size: 17px; }

#serveis { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 28px; transition: transform .18s ease, box-shadow .2s ease, border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -24px rgba(13,77,142,.4); border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }
/* Icones de línia (Lucide, llicència ISC) en el color de la marca */
.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.card .ic { width: 48px; height: 48px; border-radius: 13px; background: var(--sky-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 16px; transition: background .2s ease, color .2s ease; }
.card:hover .ic { background: var(--primary); color: #fff; }
.card h3 { font-size: 21px; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 15px; }
.tag { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 700; color: var(--primary); background: var(--sky-soft); padding: 5px 12px; border-radius: 999px; font-family: "Poppins", sans-serif; }

.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 52px; align-items: center; }
.about-photo { aspect-ratio: 1/1; border-radius: 24px; background: var(--sky-soft); box-shadow: 0 26px 54px -24px rgba(13,77,142,.45); }
.about-photo > img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; border-radius: inherit; }
.about-grid h2 { font-size: clamp(30px, 4vw, 44px); margin: 12px 0 18px; }
.about-grid p { color: var(--ink-soft); font-size: 17px; margin-bottom: 16px; }
.checks { list-style: none; margin-top: 20px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.checks .c { width: 22px; height: 22px; border-radius: 50%; background: var(--sky-soft); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.checks .c .i { width: 14px; height: 14px; stroke-width: 2.5; }
.creds { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.cred-h { font-family: "Poppins", sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.cred-list { list-style: none; display: grid; gap: 8px; }
.cred-list li { position: relative; padding-left: 16px; font-size: 14.5px; color: var(--ink-soft); }
.cred-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: "Poppins", sans-serif; font-size: 12.5px; font-weight: 600; color: var(--primary); background: var(--sky-soft); padding: 6px 13px; border-radius: 999px; }
@media (max-width: 560px) { .creds { grid-template-columns: 1fr; } }

#valors { background: var(--primary); color: #e8f2fb; }
#valors .eyebrow { color: var(--sky); }
#valors h2 { color: #fff; }
.vals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.val h3 { color: #fff; font-size: 22px; margin-bottom: 8px; }
.val p { color: #c9def3; font-size: 15px; }
.val .n { font-family: "Poppins", serif; font-size: 26px; color: #ff8a4c; font-weight: 700; } /* taronja més clar: contrast AA sobre el blau */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 34px; }
.contact-row { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: none; }
.contact-row .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--sky-soft); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.contact-row .ic .i { width: 20px; height: 20px; }
.btn .arr { width: 18px; height: 18px; stroke-width: 2.25; transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn .wa { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.btn .ph { width: 18px; height: 18px; }
.contact-row b { display: block; font-size: 15px; font-family: "Poppins", sans-serif; }
.contact-row span { color: var(--ink-soft); font-size: 15px; }
.contact-row a { color: var(--primary); font-weight: 600; }
.contact-row a:hover { text-decoration: underline; }
.contact-cta h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 14px; }
.contact-cta p { color: var(--ink-soft); font-size: 17px; margin-bottom: 26px; }

footer { background: var(--ink); color: #9fb4c6; padding: 46px 0 30px; }
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; }
.foot .brand b { color: #fff; }
.foot .brand img { filter: brightness(0) invert(1); opacity: .95; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.foot-note { font-size: 13px; color: #8ba0b3; margin-top: 22px; text-align: center; }

/* Zona d'actuació */
#zona { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Mapa */
.map-wrap { margin-top: 28px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 44px -28px rgba(13,77,142,.5); }
.map-wrap iframe { display: block; width: 100%; height: 320px; border: 0; }
/* Mapa amb càrrega sota clic (privadesa: no carrega Google fins que l'usuari vol) */
.map-load { width: 100%; height: 320px; border: 0; background: var(--sky-soft); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--ink); text-align: center; padding: 20px; transition: background .2s; font-family: inherit; }
.map-load:hover { background: #dceef0; }
.map-load .map-ic { color: var(--primary); }
.map-load .map-ic .i { width: 34px; height: 34px; }
.map-load b { font-family: "Poppins", sans-serif; font-size: 17px; }
.map-load small { color: var(--ink-soft); font-size: 14px; }
.map-load em { color: var(--muted); font-size: 12px; font-style: normal; max-width: 40ch; }


/* FAQ */
#faq { background: var(--sky-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 22px; font-family: "Poppins", sans-serif; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--primary); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .a { padding: 0 22px 18px; color: var(--ink-soft); font-size: 15.5px; }

/* Botó flotant de WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(37,211,102,.7); transition: transform .18s ease; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* Skip link (accessibilitat) */
.skip { position: absolute; left: -9999px; top: 0; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.32,.72,.24,1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 18px 24px; gap: 16px; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 400px; }
  .about-photo { max-width: 380px; }
  .cards, .vals { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 60px; }
  section { padding: 56px 0; }
  .hero-badge { left: auto; right: 14px; }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ===== Afegits SEO (25/09/2026): idioma, enllaços de servei i pàgines de servei ===== */
.nav-end { display: flex; align-items: center; gap: 22px; }
.lang { display: inline-flex; gap: 2px; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; }
.lang a { font-family: "Poppins", sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; color: var(--ink-soft); }
.lang a:hover { color: var(--primary); }
.lang a[aria-current="page"] { background: var(--primary); color: #fff; }

.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-family: "Poppins", sans-serif; font-size: 14px; font-weight: 600; color: var(--primary); }
.more .i { width: 16px; height: 16px; stroke-width: 2.25; transition: transform .2s ease; }
.more:hover { text-decoration: underline; }
.more:hover .i { transform: translateX(3px); }

/* Pàgines de servei */
.page-hero { padding: 56px 0 64px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; top: -40%; right: -15%; width: 55%; height: 160%; background: radial-gradient(closest-side, color-mix(in srgb, var(--sky) 50%, transparent), transparent); pointer-events: none; }
.page-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 52px; align-items: center; position: relative; }
.page-hero h1 { font-size: clamp(34px, 4.8vw, 52px); margin: 14px 0 18px; }
.page-hero .lead { font-size: 18px; color: var(--ink-soft); max-width: 46ch; margin-bottom: 28px; }
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--primary); font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.page-photo { aspect-ratio: 4/5; max-width: 420px; justify-self: end; width: 100%; border-radius: 24px; background: var(--sky-soft); box-shadow: 0 30px 60px -28px rgba(13,77,142,.5); }
.page-photo > img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; border-radius: inherit; }

.svc-body { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.svc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(24px, 3vw, 30px); margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-soft); font-size: 16.5px; margin-bottom: 14px; }
.prose ul { list-style: none; display: grid; gap: 10px; margin: 6px 0 16px; }
.prose ul li { position: relative; padding-left: 20px; color: var(--ink-soft); font-size: 16px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.prose strong { color: var(--ink); }
.steps { list-style: none; counter-reset: s; display: grid; gap: 14px; margin: 8px 0 16px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; color: var(--ink-soft); font-size: 15.5px; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: "Poppins", sans-serif; font-weight: 700; font-size: 19px; color: #c2531f; line-height: 1.4; } /* 19px negreta = text gran: contrast 4.36 ≥ 3 */
.steps li b { color: var(--ink); font-family: "Poppins", sans-serif; font-weight: 600; }
.note { background: var(--sky-soft); border-left: 3px solid var(--primary); border-radius: 12px; padding: 14px 18px; color: var(--ink); font-size: 15px; margin: 8px 0 16px; }

.side-card { position: sticky; top: 94px; background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.side-card h2 { font-size: 20px; margin-bottom: 14px; }
.side-list { list-style: none; display: grid; gap: 12px; margin-bottom: 20px; }
.side-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-soft); }
.side-list .i { width: 18px; height: 18px; color: var(--primary); margin-top: 3px; }
.side-list a { color: var(--primary); font-weight: 600; }
.side-card .btn { width: 100%; justify-content: center; }

.related .cards { grid-template-columns: repeat(3, 1fr); }
.related .card { display: block; }

@media (max-width: 880px) {
  .nav-end { gap: 12px; }
  .page-hero-grid, .svc-grid { grid-template-columns: 1fr; gap: 32px; }
  .page-photo { justify-self: start; max-width: 360px; }
  .side-card { position: static; }
  .related .cards { grid-template-columns: 1fr; }
  .page-hero { padding: 36px 0 48px; }
}

/* Pàgina legal (avís legal, privadesa, cookies) */
.legal-main { padding: 48px 0 64px; }
.legal-main .wrap { max-width: 820px; }
.legal-main h1 { font-size: clamp(30px, 5vw, 42px); margin: 10px 0 8px; }
.updated { color: var(--muted); font-size: 14px; margin-bottom: 34px; }
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px; }
.doc + .doc { margin-top: 20px; }
.doc h2 { font-size: 23px; color: var(--ink); margin-bottom: 8px; }
.doc h2 .n { color: var(--accent); font-weight: 700; margin-right: 8px; }
.doc p { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 12px; line-height: 1.7; }
.doc p:last-child { margin-bottom: 0; }
.doc ul { color: var(--ink-soft); font-size: 15.5px; margin: 0 0 12px 20px; line-height: 1.7; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--primary); text-decoration: underline; }
.data { background: var(--sky-soft); border-radius: 12px; padding: 16px 18px; font-size: 15px; }
.data p { margin-bottom: 6px; }
.data b { font-family: "Poppins", sans-serif; }
@media (max-width: 560px) { .doc { padding: 22px; } }
