/* =========================================================
   Dr. Albert Ferrando — Cirugía Ortopédica y Traumatología
   Direcció: MINIMALISTA PREMIUM (estil Apple)
   Molt blanc · 1 accent · sans neta · fotos grans · poc soroll
   ========================================================= */

:root {
  --ink: #15282c;          /* tinta (manual: tinta) */
  --sub: #4f6064;          /* text secundari (manual: sub) */
  --line: #dde7e7;         /* vores fines (manual: linia) */
  --bg: #ffffff;
  --bg2: #f1f6f6;          /* seccions alternes (manual: boira) */
  --accent: #0b5a66;       /* color principal (manual: petroli) */
  --accent-hover: #0d6c7a;
  --warm: #1e9e8f;         /* 2n color, càlid: només detalls i text gran */
  --warm-ink: #147a6e;     /* versió fosca per a text petit (manual: verd-fosc) */
  --band: #e6f2f1;         /* fons de la franja de xifres (manual: franja) */

  --maxw: 1120px;
  --radi: 22px;
  --radi-sm: 14px;

  /* profunditat suau (Apple-like, gens agressiva) */
  --shadow-img: 0 26px 64px -30px rgba(11, 60, 68, .30);
  --shadow-card: 0 20px 44px -28px rgba(11, 60, 68, .24);
  --shadow-btn: 0 10px 22px -12px rgba(11, 90, 102, .55);

  --display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -.011em;
  counter-reset: sec;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* height:auto → els atributs width/height de l'HTML només reserven espai (anti-CLS);
   la CSS (aspect-ratio, max-height) controla la mida real i evita distorsió. */
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--accent); color: #fff; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--display); font-optical-sizing: auto; color: var(--ink); font-weight: 700; line-height: 1.04; letter-spacing: -.025em; margin: 0 0 .45em; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 6.4vw, 4.8rem); letter-spacing: -.038em; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
h3 { font-size: 1.34rem; font-weight: 600; letter-spacing: -.02em; }
p { margin: 0 0 1.1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* Enllaç "saltar al contingut" (a11y): invisible fins que rep focus de teclat */
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--accent); color: #fff; font-weight: 600; font-size: .92rem;
  padding: .6em 1.2em; border-radius: 0 0 12px 12px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .65em;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 1.2rem;
}
.eyebrow::before {
  content: ""; width: 24px; height: 1.5px; border-radius: 2px;
  background: var(--warm); opacity: .9;
}

.section { padding: clamp(72px, 9vw, 120px) 0; }
.section--tint { background: var(--bg2); }
.section__lead { max-width: 640px; color: var(--sub); font-size: 1.22rem; line-height: 1.5; margin-bottom: 3.4rem; }

/* ---------- Botons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; white-space: nowrap;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: .82em 1.5em; border-radius: 980px; border: 1px solid transparent;
  cursor: pointer; transition: background .25s var(--ease), color .25s, border-color .25s, transform .25s;
}
.btn svg { width: 16px; height: 16px; flex: 0 0 auto; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-btn); }
.btn--primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(11, 90, 102, .6); }
.btn--light, .btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--light:hover, .btn--ghost:hover { border-color: #c3d1d2; color: var(--ink); }
.btn--sm { padding: .58em 1.1em; font-size: .92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
          backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 11px; line-height: 1.1; flex-shrink: 0; white-space: nowrap; }
.logo__mark { flex: 0 0 auto; width: 38px; height: 38px; }
.logo__text { display: flex; flex-direction: column; }
.logo strong { font-family: var(--display); font-weight: 700; font-size: 1.16rem; color: var(--ink); letter-spacing: -.02em; }
.logo__text span { font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--sub); margin-top: 1px; }

.header-right { display: flex; align-items: center; gap: 26px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav > a { position: relative; color: var(--ink); font-weight: 500; font-size: .92rem; opacity: .85; transition: opacity .2s; white-space: nowrap; }
.nav > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px;
  background: var(--accent); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav > a:hover { opacity: 1; color: var(--ink); }
.nav > a:hover::after { transform: scaleX(1); }
.lang { display: flex; gap: 4px; font-size: .8rem; font-weight: 600; }
.lang a { color: var(--sub); padding: 3px 7px; border-radius: 7px; }
.lang a.is-active { color: var(--ink); background: var(--bg2); }
.header-phone { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.header-phone svg { width: 16px; height: 16px; color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 42px; height: 42px; padding: 10px; color: var(--ink); margin: -10px -10px -10px 0; }
.nav-toggle svg { width: 100%; height: 100%; display: block; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--bg); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(58% 52% at 82% -4%, rgba(11, 90, 102, .07), transparent 68%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(48px, 7vw, 90px); }
.hero h1 { letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--warm); }
.hero p { color: #2c3d41; font-size: 1.3rem; line-height: 1.45; max-width: 30em; margin-top: 1.1rem; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 2.4rem; }
.hero__proof { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 1.6rem !important; font-size: .98rem !important; color: var(--sub) !important; }
.hero__proof b { color: var(--ink); }
.hero__proof .nw { white-space: nowrap; }
.hero__proof .stars { color: #f5a623; letter-spacing: 2px; }
.hero__proof .sep { width: 4px; height: 4px; border-radius: 50%; background: #c3d1d2; }
.hero__photo { position: relative; justify-self: end; width: min(100%, 440px); }
.hero__photo img { border-radius: var(--radi); width: 100%; box-shadow: var(--shadow-img); }
.hero__badge {
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .6); color: var(--ink);
  border-radius: 14px; padding: 12px 16px; font-size: .78rem; line-height: 1.35; max-width: 215px;
}
.hero__badge strong { display: block; font-size: 1rem; color: var(--ink); margin-bottom: 1px; }

/* entrada subtil */
.hero__text > * { opacity: 0; transform: translateY(12px); animation: rise .8s var(--ease) forwards; }
.hero__text > :nth-child(1) { animation-delay: .04s; }
.hero__text > :nth-child(2) { animation-delay: .12s; }
.hero__text > :nth-child(3) { animation-delay: .2s; }
.hero__text > :nth-child(4) { animation-delay: .28s; }
.hero__photo { opacity: 0; transform: translateY(12px); animation: rise .8s var(--ease) .22s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Franja de confiança ---------- */
.hero-trust { border-top: 1px solid var(--line); }
.hero-trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 0; }
.ht { padding: 32px 30px; border-left: 1px solid var(--line); transition: background .3s var(--ease); }
.ht:first-child { border-left: 0; padding-left: 0; }
.ht:hover { background: var(--bg2); }
.ht b { display: block; font-weight: 700; color: var(--ink); font-size: 1.2rem; letter-spacing: -.025em; }
.ht span { color: var(--sub); font-size: .88rem; }

/* ---------- Pilars / targetes ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radi); padding: 40px 34px; transition: border-color .3s, transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-5px); border-color: transparent; box-shadow: var(--shadow-card); }
.card .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--bg2); color: var(--accent); display: grid; place-items: center; margin-bottom: 22px; transition: background .3s var(--ease), color .3s var(--ease); }
.card:hover .ico { background: var(--accent); color: #fff; }
.card .ico svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--sub); margin: 0; font-size: 1rem; }
.section--tint .card { background: #fff; }

/* ---------- Símptomes ---------- */
.symptoms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sym { background: #fff; border: 1px solid var(--line); border-radius: var(--radi); padding: 30px 28px 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }
.sym:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: transparent; }
.sym__q { font-family: var(--display); font-size: 1.32rem; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; color: var(--ink); margin: 0; }
.sym__a { margin: 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .96rem; color: var(--ink); }
.sym__a span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--warm-ink); margin-bottom: 4px; }
.sym-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; margin-top: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radi); padding: 22px 28px; }
.sym-cta p { margin: 0; font-weight: 500; color: var(--ink); }

/* ---------- Traumatologia esportiva (2a línia, per sota de l'espatlla) ---------- */
.sport { margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--line); }
.sport h3 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin-bottom: .35em; }
.sport__intro { max-width: 640px; color: var(--sub); font-size: 1.08rem; margin-bottom: 28px; }
.symptoms--4 { grid-template-columns: repeat(4, 1fr); }
.symptoms--4 .sym { justify-content: flex-start; gap: 12px; }
.symptoms--4 .sym__q { font-size: 1.14rem; }
.symptoms--4 .sym__a { border-top: 0; padding-top: 0; color: var(--sub); }
.sport__note { margin: 18px 0 0; font-size: .92rem; color: var(--sub); }

/* ---------- Franja de xifres ---------- */
.band { background: var(--band); }
.band__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.band .section__lead { margin-bottom: 2.4rem; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 40px; }
.stats b { display: block; font-family: var(--display); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 700; line-height: 1; letter-spacing: -.04em; color: var(--accent); }
.stats span { display: block; margin-top: 8px; color: var(--ink); font-size: 1rem; }
.scope { margin: 0; text-align: center; }
.scope img { width: 100%; max-width: 440px; margin: 0 auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 10px #fff, var(--shadow-img); }
.scope figcaption { margin-top: 22px; font-size: .9rem; color: var(--sub); }

/* ---------- Duo d'imatges (planificació 3D) ---------- */
.duo { position: relative; padding: 0 0 48px 0; }
.duo img { aspect-ratio: 4/3; }
.feature__img .duo__inset { position: absolute; right: -18px; bottom: 0; width: 46%; max-height: none; border: 6px solid #fff; border-radius: 18px; box-shadow: var(--shadow-card); }

/* ---------- Llista d'àrees ---------- */
.areas { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 30px; }
.areas li { position: relative; padding-left: 26px; color: var(--ink); font-size: 1rem; }
.areas li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- Feature (imatge + text) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature--push { margin-top: 64px; }
.feature--rev .feature__img { order: 2; }
.feature__img img { border-radius: var(--radi); width: 100%; max-height: 460px; object-fit: cover; box-shadow: var(--shadow-img); }
.feature__text p { color: var(--sub); font-size: 1.08rem; }
.feature__cap { font-size: .85rem; color: var(--sub); margin-top: 12px; }

/* ---------- Sobre ---------- */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.about__img img { border-radius: var(--radi); width: 100%; box-shadow: var(--shadow-img); }
.about__text p { color: var(--sub); font-size: 1.08rem; }
.about__text strong { color: var(--ink); font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 28px 40px; margin-top: 32px; }
.facts b { display: block; font-weight: 700; font-size: 2rem; color: var(--ink); line-height: 1; letter-spacing: -.03em; }
.facts span { display: block; margin-top: 8px; font-size: .9rem; line-height: 1.35; color: var(--sub); }
.colegiado { margin-top: 22px; font-size: .92rem; color: var(--sub); }
.about__lead { font-family: var(--display); font-size: 1.32rem !important; line-height: 1.35; font-weight: 600; letter-spacing: -.015em; color: var(--ink) !important; }
/* Fitxa ràpida: fets verificables, fàcils de llegir per a pacients i agents d'IA */
.keyfacts { margin-top: 30px; border: 1px solid var(--line); border-radius: var(--radi-sm); padding: 22px 24px; background: var(--bg2); }
.keyfacts__title { margin: 0 0 12px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--warm-ink); }
.keyfacts dl { margin: 0; display: grid; gap: 10px; }
.keyfacts dl > div { display: grid; grid-template-columns: 11.5em 1fr; gap: 4px 16px; padding-top: 10px; border-top: 1px solid var(--line); }
.keyfacts dl > div:first-child { border-top: 0; padding-top: 0; }
.keyfacts dt { font-weight: 600; font-size: .9rem; color: var(--ink); }
.keyfacts dd { margin: 0; font-size: .92rem; color: var(--sub); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0 0 0 28px; margin: 8px 0 0; }
.tl { position: relative; padding: 0 0 34px 30px; border-left: 1px solid var(--line); }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ""; position: absolute; left: -5px; top: 3px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.tl time { font-weight: 600; font-size: .82rem; color: var(--accent); }
.tl h3 { font-size: 1.15rem; margin: 4px 0 3px; }
.tl p { color: var(--sub); font-size: 1rem; margin: 0; }
.tl-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 40px; }
.tl-photos figure { margin: 0; }
.tl-photos img { border-radius: var(--radi-sm); width: 100%; aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow-card); }
.tl-photos figcaption { font-size: .85rem; color: var(--sub); margin-top: 10px; }

/* ---------- Logos ---------- */
.logos { display: flex; flex-wrap: wrap; gap: 40px 60px; align-items: center; justify-content: center; }
.logos__title { margin: 64px 0 22px; text-align: center; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sub); }
.logos img { height: 60px; width: auto; filter: grayscale(1); opacity: .8; transition: opacity .3s, filter .3s; mix-blend-mode: multiply; }
.logos img:hover { opacity: 1; filter: none; }

/* ---------- Valoracions / reserva ---------- */
.reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.rating-card { display: flex; flex-direction: column; justify-content: center; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radi); padding: 48px 40px; }
.rating-card .score { font-weight: 700; font-size: 4.2rem; line-height: 1; letter-spacing: -.04em; color: var(--ink); }
.rating-card .stars { color: #f5a623; font-size: 1.4rem; letter-spacing: 3px; margin: 12px 0; }
.rating-card p { color: var(--sub); margin: 6px auto 0; font-size: .98rem; max-width: 22em; }
.rating-card .src { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }
.rating-card .src a { background: var(--bg2); color: var(--ink); padding: 8px 16px; border-radius: 980px; font-size: .85rem; font-weight: 500; }
.rating-card .src a:hover { background: #e4eded; }
.book-card { display: flex; flex-direction: column; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radi); padding: 40px; }
.book-card h3 { margin-bottom: .3em; }
.book-card > p { color: var(--sub); font-size: 1rem; margin-bottom: 22px; }
.td-widget { border: 1px solid var(--line); border-radius: var(--radi-sm); overflow: hidden; background: #fff; }
.td-widget iframe { width: 100%; border: 0; display: block; }
.book-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.book-actions svg { width: 16px; height: 16px; }
.book-phone { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; font-weight: 600; color: var(--accent); }
.book-phone svg { width: 17px; height: 17px; }

/* ---------- Contacte ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.info-row { display: flex; gap: 15px; margin-bottom: 24px; align-items: flex-start; }
.info-row .ico { color: var(--accent); flex: 0 0 auto; margin-top: 2px; }
.info-row .ico svg { width: 21px; height: 21px; }
.info-row b { display: block; color: var(--ink); font-weight: 600; }
.info-row span, .info-row a { color: var(--sub); }
.insurers-title { font-weight: 600; color: var(--ink); margin: 24px 0 8px; font-size: .95rem; }
.insurers { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.insurers span { background: var(--bg2); color: var(--sub); font-size: .85rem; padding: 7px 15px; border-radius: 980px; }
.map { border-radius: var(--radi); overflow: hidden; min-height: 380px; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.note { background: var(--bg2); padding: 20px 24px; border-radius: var(--radi-sm); font-size: .96rem; color: var(--sub); margin-top: 28px; }
.note strong { color: var(--ink); }
.note ul { margin: .5em 0 0; padding-left: 1.1em; }
.note li { margin-bottom: .35em; }

/* ---------- Centres ---------- */
.centers { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 24px; }
.center { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radi); padding: 34px 30px; display: flex; flex-direction: column; }
.center--main { border-color: var(--accent); box-shadow: var(--shadow-card); }
.center__tag { align-self: flex-start; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--bg2); padding: 5px 11px; border-radius: 980px; margin-bottom: 22px; }
.center .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--bg2); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.center .ico svg { width: 22px; height: 22px; }
.center h3 { font-size: 1.2rem; margin-bottom: .4em; }
.center p { color: var(--sub); font-size: .98rem; margin: 0 0 .4em; }
.center .center__meta { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: .92rem; }

/* ---------- Preguntes freqüents ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq .section__lead { margin-bottom: 0; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-weight: 600; font-size: 1.08rem; color: var(--ink); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; flex: 0 0 auto; width: 10px; height: 10px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease); }
.faq__item[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq__item summary:hover { color: var(--accent); }
.faq__item p { color: var(--sub); font-size: 1rem; margin: -6px 0 22px; max-width: 40em; }

/* ---------- Mapa amb consentiment ---------- */
.map--consent { display: grid; place-items: center; align-content: center; gap: 14px; text-align: center; padding: 40px 32px; align-self: start; min-height: 440px;
  background:
    radial-gradient(circle at 50% 42%, rgba(30,158,143,.14), transparent 38%),
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(11, 90, 102,.06) 46px 47px),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(11, 90, 102,.06) 46px 47px),
    linear-gradient(115deg, transparent 47%, rgba(255,255,255,.9) 47% 50%, transparent 50%),
    var(--band); }
.map__pin { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--accent); box-shadow: var(--shadow-card), 0 0 0 10px rgba(255,255,255,.55); }
.map__pin svg { width: 28px; height: 28px; }
.map__addr { margin: 4px 0 6px; color: var(--sub); font-size: .98rem; line-height: 1.45; }
.map__addr b { display: block; color: var(--ink); font-size: 1.08rem; }
.map__load { display: inline-flex; align-items: center; gap: 10px; font: 600 1rem var(--sans); color: #fff; background: var(--accent); border: 0; border-radius: 980px; padding: .85em 1.6em; cursor: pointer; box-shadow: var(--shadow-btn); }
.map__load:hover { background: var(--accent-hover); }
.map__load svg { width: 18px; height: 18px; }
.map__note { font-size: .88rem; color: var(--sub); margin: 0; max-width: 26em; }

/* ---------- Barra d'accions mòbil ---------- */
.mbar { display: none; }

/* ---------- Footer (clar, estil Apple) ---------- */
.site-footer { background: var(--bg2); color: var(--sub); padding: 56px 0 32px; font-size: .9rem; border-top: 1px solid var(--line); }
.site-footer .logo strong { color: var(--ink); }
.site-footer .logo__text span { color: var(--sub); }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 34px; }
.site-footer a { color: var(--sub); display: inline-block; padding: 6px 0; }
.site-footer a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--sub); }

/* ---------- Pàgines legals ---------- */
.legal { padding: 56px 0 90px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: .3em; }
.legal h2 { font-size: 1.35rem; margin-top: 1.9em; }
.legal p, .legal li { color: var(--sub); }
.legal a.back { display: inline-block; margin-bottom: 30px; font-weight: 600; }
.legal-next { margin-top: 2.5em; }
.footer-bottom--bare { border: 0; padding-top: 0; }

/* ---------- Botó pujar a dalt ---------- */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; border: 0; cursor: pointer; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, transform .3s, background .2s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent-hover); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Avís PENDENT ---------- */
.todo { outline: 2px dashed #e0a82e; outline-offset: 2px; background: #fff8e6; }

/* ---------- Reveal subtil ---------- */
.js .section { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .section.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1320px) { .header-phone { display: none; } }
@media (max-width: 1180px) { .site-header .logo__text span { display: none; } }
@media (max-width: 920px) {
  /* El menú complet (5 enllaços + idioma + CTA) no cap per sota de ~920px:
     l'hamburguesa entra aquí, no a 760px, per evitar desbordament al header. */
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: 64px; left: 0; right: 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: 0 14px 28px -18px rgba(11, 60, 68,.28); padding: 8px 0;
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav > a { padding: 14px 28px; font-size: 1rem; opacity: 1; }
  .nav > a::after { display: none; }
  .lang { padding: 14px 28px; }
  .header-right { gap: 12px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero__photo { order: -1; justify-self: start; width: min(86%, 380px); }
  .pillars { grid-template-columns: 1fr; max-width: 460px; }
  .about, .contact, .feature, .feature--rev, .reviews { grid-template-columns: 1fr; gap: 40px; }
  .feature--rev .feature__img { order: 0; }
  .centers, .faq { grid-template-columns: 1fr; gap: 20px; }
  .symptoms { grid-template-columns: repeat(2, 1fr); }
  .symptoms--4 { grid-template-columns: repeat(2, 1fr); }
  .band__grid { grid-template-columns: 1fr; gap: 48px; }
  .scope img { max-width: 340px; }
  .map--consent { min-height: 360px; }
  .faq { gap: 28px; }
  .about__img, .feature__img { max-width: 520px; }
}
@media (max-width: 760px) {
  .hero-trust .wrap { grid-template-columns: repeat(2, 1fr); padding: 0 28px; }
  .ht { padding: 22px 0; border-left: 0; }
  .ht:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .site-header .btn--sm { display: none; } /* la barra fixa de baix ja té "Pedir cita" */
  .mbar { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,.94);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 980px; font-weight: 600; font-size: 1rem; }
  .mbar svg { width: 18px; height: 18px; }
  .mbar__call { color: var(--accent); border: 1px solid var(--line); background: #fff; }
  .mbar__book { color: #fff; background: var(--accent); }
  body { padding-bottom: 76px; }
  .to-top { bottom: 90px; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .rating-card, .book-card { padding: 28px 20px; }
  .book-actions .btn { white-space: normal; text-align: center; justify-content: center; }
  .tl-photos { grid-template-columns: 1fr; }
  .symptoms { grid-template-columns: 1fr; }
  .symptoms--4 { grid-template-columns: 1fr; }
  .sym-cta { padding: 20px; }
  .stats { gap: 24px 20px; }
  .feature__img .duo__inset { right: -6px; width: 50%; border-width: 4px; }
  .keyfacts dl > div { grid-template-columns: 1fr; }
  .keyfacts { padding: 18px; }
  .hero__photo { width: 100%; }
}

@media (max-width: 360px) {
  .logo strong { font-size: 1rem; }
  .logo__mark { width: 32px; height: 32px; }
  .feature__img .duo__inset { right: 0; }
}

/* ---------- Moviment reduït ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .section, .hero__text > *, .hero__photo { opacity: 1 !important; transform: none !important; }
}
