/* CIBIP v2 — estils de la web drcarlesrodriguez.com
   Font única de veritat: ESTETICA_CIBIP_v2.md (color, tipografia, forma, isobares).
   Prefix .c- per no col·lidir amb el tema actual (podologo-manresa). */

:root {
  --bg: #ffffff;
  --mist: #f6f3fa;
  --plum: #2e2440;
  --plum-muted: #6e6480;
  --hairline: #e3daee;
  --purple: #6a1fb5;
  --purple-hover: #5a179c; /* decisió pendent: hover no definit al document */
  --lilac: #dccff1;
  --lilac-soft: #eee7f8;
  --sage: #d3e6d9;
  --sage-ink: #2f6b45;
  --butter: #f5ebc8;
  --blush: #f5dcd2;
  --blush-ink: #9a4a33;
  --contour: #b9a3de;
  --green: #2fae22;
  --whatsapp: #25d366;
  --on-green: #10301a;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Montserrat", system-ui, sans-serif;

  --radius-pill: 999px;
  --radius-field: 18px;
  --radius-card: 26px;
  --radius-feature: 30px;
  --blob: 58% 42% 52% 48% / 55% 45% 55% 45%;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 14px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 56px;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 104px;

  color-scheme: light;
}

/* Estils acotats als components c- (no toquen el tema actual) */
[class^="c-"], [class*=" c-"] { box-sizing: border-box; }
[class^="c-"] *, [class*=" c-"] * { box-sizing: border-box; }
.c-section, .c-book, .c-cta-inline, .c-mbar { font-family: var(--font-body); color: var(--plum); line-height: 1.6; }
.c-book h2, .c-book h3, .c-cta-inline h3, .c-panel h3 {
  font-family: var(--font-display); font-weight: 400; font-variation-settings: "SOFT" 100, "opsz" 72;
  letter-spacing: -0.01em; line-height: 1.1; text-wrap: balance; margin: 0; color: var(--plum);
}
.c-book h2 { font-size: clamp(30px, 3.4vw, 40px); }
.c-book p, .c-cta-inline p { margin: 0; }
.c-book a:not(.c-btn), .c-cta-inline a:not(.c-btn) { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }
.c-book :focus-visible, .c-cta-inline :focus-visible, .c-mbar :focus-visible, .c-book-cta a:focus-visible { outline: 2.5px solid var(--purple); outline-offset: 3px; }
.c-section { padding: 56px 0 !important; }
.c-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.c-skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--purple); color: #fff; padding: 10px 18px; border-radius: var(--radius-pill);
  font-weight: 600; text-decoration: none;
}
.c-skip:focus { top: 12px; }

.c-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.c-section { padding: var(--space-6) 0; }
.c-section-head { max-width: 640px; margin-bottom: 32px; }
.c-section-head p { margin-top: 12px; color: var(--plum-muted); font-size: 17px; }
.c-lead { font-size: 17px; line-height: 1.6; max-width: 58ch; }
.c-muted { color: var(--plum-muted); }
.c-small { font-size: 13px; line-height: 1.5; }

/* ---------- Botons ---------- */
.c-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border-radius: var(--radius-pill); border: 1px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease;
}
.c-btn--primary { background: var(--purple); color: #fff; }
.c-btn--primary:hover { background: var(--purple-hover); text-decoration: none; }
.c-btn--secondary { background: #fff; color: var(--plum); border-color: var(--hairline); }
.c-btn--secondary:hover { border-color: var(--contour); text-decoration: none; }
.c-btn--whatsapp { background: var(--whatsapp); color: var(--on-green); }
.c-btn--whatsapp:hover { background: #1fbe5b; text-decoration: none; }
.c-btn--google { background: var(--green); color: var(--on-green); }
.c-btn--sm { min-height: 40px; padding: 9px 18px; font-size: 13px; }
.c-btn svg { width: 18px; height: 18px; flex: none; }
.c-btn-row { display: flex; flex-wrap: wrap; gap: var(--space-2) 12px; align-items: center; }

/* ---------- Capçalera ---------- */
.c-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.c-header.is-scrolled { border-bottom-color: var(--hairline); }
.c-header__in { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.c-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--plum); flex: none; }
.c-brand img {
  width: 92px; height: 92px;
  transition: transform .2s ease;
}
.c-brand:hover img { transform: rotate(-4deg) scale(1.03); }
@media (prefers-reduced-motion: reduce) { .c-brand img { transition: none; } .c-brand:hover img { transform: none; } }
.c-brand__name { display: flex; flex-direction: column; line-height: 1.15; }
.c-brand__name strong { font-family: var(--font-display); font-weight: 400; font-size: 22px; font-variation-settings: "SOFT" 100, "opsz" 24; }
.c-brand__name span { font-size: 13px; color: var(--plum-muted); }
.c-nav { margin-left: auto; }
.c-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.c-nav a {
  display: block; padding: 10px 12px; border-radius: var(--radius-pill);
  color: var(--plum); text-decoration: none; font-weight: 500; font-size: 14px;
}
.c-nav a:hover { background: var(--lilac-soft); }
.c-header__actions { display: flex; align-items: center; gap: 10px; }
.c-header__tel { font-size: 14px; font-weight: 600; color: var(--plum); text-decoration: none; white-space: nowrap; }
.c-header__tel:hover { color: var(--purple); }
.c-lang { font-size: 13px; font-weight: 600; color: var(--plum-muted); text-decoration: none; padding: 8px; }
.c-menu-btn { display: none; }

@media (max-width: 1080px) {
  .c-header__tel { display: none; }
}
@media (max-width: 920px) {
  :root { --header-h: 80px; }
  .c-brand img { width: 68px; height: 68px; }
  .c-brand__name span { display: none; }
  .c-nav {
    display: none; position: fixed; inset: var(--header-h) 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--hairline); padding: 12px var(--gutter) 20px;
  }
  .c-nav.is-open { display: block; }
  .c-nav ul { flex-direction: column; }
  .c-nav a { font-size: 17px; padding: 14px 12px; }
  .c-header__actions { margin-left: auto; }
  .c-menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hairline);
    background: #fff; color: var(--plum); cursor: pointer;
  }
  .c-lang { display: none; }
}
@media (max-width: 420px) {
  .c-brand__name { display: none; }
}

/* ---------- Portada ---------- */
.c-hero { position: relative; padding: 40px 0 var(--space-6); overflow: hidden; }
.c-hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 40px; align-items: center; }
.c-hero h1 {
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.04;
  font-weight: 350;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  letter-spacing: -0.02em;
  max-width: 13ch;
}
.c-hero .c-lead { margin-top: 22px; }
.c-hero .c-btn-row { margin-top: 28px; }
.c-hero__note { margin-top: 12px; font-size: 13px; color: var(--plum-muted); }

.c-trust { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 10px 22px; }
.c-trust li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.c-trust li::before {
  content: ""; width: 18px; height: 18px; flex: none; border-radius: var(--blob);
  background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.5L13 6.6' fill='none' stroke='%232F6B45' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
}
.c-trust a { color: inherit; }

.c-hero__art { position: relative; aspect-ratio: 520 / 640; width: 100%; max-width: 500px; justify-self: end; }
.c-hero__art .c-isobars { position: absolute; inset: 0; width: 100%; height: 100%; }
.c-hero__logo {
  position: absolute; width: 46%; left: 27%; top: 64%;
  filter: drop-shadow(0 18px 24px rgba(46, 36, 64, .14));
}

@media (max-width: 860px) {
  .c-hero { padding-top: 24px; }
  .c-hero__grid { grid-template-columns: 1fr; gap: 8px; }
  .c-hero__art { order: -1; max-width: 300px; justify-self: center; aspect-ratio: 520 / 400; }
  .c-hero__art .c-isobars { inset: auto 0 0 0; height: auto; }
  .c-hero__logo { width: 42%; left: 29%; top: 30%; }
  .c-hero h1 { font-size: clamp(36px, 10.5vw, 48px); max-width: none; }
  .c-trust { grid-template-columns: 1fr; }
}

/* Isobares */
.c-isobars path { fill: none; stroke: var(--contour); stroke-width: 1; vector-effect: non-scaling-stroke; }
.c-isobars--on-lilac path { stroke: var(--purple); stroke-opacity: .45; }
.c-isobars.is-drawing path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: c-draw 1.4s cubic-bezier(.3,.6,.2,1) forwards; animation-delay: var(--d, 0s); }
@keyframes c-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .c-isobars.is-drawing path { animation: none; stroke-dashoffset: 0; }
}

/* ---------- Què et passa (casos) ---------- */
.c-cases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
.c-case {
  display: flex; align-items: center; gap: 14px; height: 100%;
  background: var(--mist); border-radius: var(--radius-card); padding: 16px 18px 16px 14px;
  text-decoration: none; color: var(--plum);
  transition: background-color .15s ease;
}
.c-case:hover { background: var(--lilac-soft); }
.c-case__map {
  width: 64px; height: 72px; flex: none; border-radius: var(--blob);
  display: grid; place-items: center; background: var(--blush);
}
.c-case__map--own { background: var(--lilac); }
.c-case__map svg { width: 38px; height: 64px; }
.c-case h3 { font-size: 19px; line-height: 1.2; }
.c-case p { font-size: 13px; color: var(--plum-muted); margin-top: 2px; }
.c-cases__more { margin-top: 20px; font-size: 15px; }
@media (max-width: 1020px) { .c-cases { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .c-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
  .c-cases { grid-template-columns: 1fr; gap: 10px; }
  .c-case { padding: 12px 16px 12px 12px; border-radius: var(--radius-field); }
  .c-case__map { width: 48px; height: 52px; }
  .c-case__map svg { width: 28px; height: 46px; }
}

/* ---------- Primera visita (passos) ---------- */
.c-visit { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.c-visit__photo { border-radius: var(--radius-feature); overflow: hidden; aspect-ratio: 1 / 1; background: var(--mist); }
.c-visit__photo img { width: 100%; height: 100%; object-fit: cover; }
.c-steps { list-style: none; margin: 28px 0 0; padding: 0; position: relative; }
.c-steps li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding-bottom: 26px; }
.c-steps li:last-child { padding-bottom: 0; }
.c-steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 21px; top: 48px; bottom: 6px;
  border-left: 2px dotted var(--contour);
}
.c-steps__n {
  width: 44px; height: 44px; border-radius: var(--blob); background: var(--lilac-soft);
  display: grid; place-items: center; font-family: var(--font-display); font-size: 19px;
}
.c-steps h3 { font-size: 21px; margin-top: 8px; }
.c-steps p { margin-top: 6px; color: var(--plum-muted); max-width: 52ch; }
@media (max-width: 860px) {
  .c-visit { grid-template-columns: 1fr; gap: 28px; }
  .c-visit__photo { max-width: 420px; aspect-ratio: 4 / 3; }
}

/* ---------- Reserva (bloc destacat) ---------- */
.c-book {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--lilac); border-radius: var(--radius-feature);
  padding: clamp(24px, 4vw, 48px);
}
.c-book__iso { position: absolute; z-index: -1; width: 520px; right: -140px; top: -120px; pointer-events: none; }
.c-book__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.c-book h2 { font-size: clamp(30px, 3.4vw, 40px); }
.c-book__intro { margin-top: 12px; max-width: 46ch; }
.c-book__fieldset { border: 0; margin: 24px 0 0; padding: 0; min-width: 0; }
.c-book__legend { font-weight: 600; font-size: 14px; margin-bottom: 10px; padding: 0; }
.c-services { display: grid; gap: 10px; }
.c-service {
  position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start;
  width: 100%; text-align: left; cursor: pointer;
  background: #fff; border: 1.5px solid #fff; border-radius: var(--radius-field);
  padding: 14px 16px; color: var(--plum); font: inherit;
  transition: border-color .15s ease;
}
.c-service:hover { border-color: var(--contour); }
.c-service[aria-pressed="true"] { border-color: var(--purple); box-shadow: inset 0 0 0 1px var(--purple); }
.c-service__radio {
  width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; border: 1.5px solid var(--contour); background: #fff;
  display: grid; place-items: center;
}
.c-service[aria-pressed="true"] .c-service__radio { border-color: var(--purple); }
.c-service[aria-pressed="true"] .c-service__radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--purple); }
.c-service__name { display: block; font-weight: 600; font-size: 15px; }
.c-service__desc { display: block; font-size: 13px; color: var(--plum-muted); margin-top: 2px; }
.c-book__all { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--plum); }
.c-book__alt { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(106, 31, 181, .18); }
.c-book__alt p { font-size: 14px; margin-bottom: 12px; }

.c-panel {
  background: #fff; border-radius: var(--radius-card); min-height: 460px;
  display: flex; flex-direction: column; overflow: hidden;
}
.c-panel__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--hairline); font-size: 14px; }
.c-panel__bar strong { font-weight: 600; }
.c-panel__bar a { font-size: 13px; font-weight: 600; white-space: nowrap; }
.c-panel__body { position: relative; flex: 1; display: flex; }
.c-panel__state { margin: auto; padding: 40px 28px; text-align: center; max-width: 380px; }
.c-panel__state h3 { font-size: 22px; margin-top: 16px; }
.c-panel__state p { margin-top: 8px; color: var(--plum-muted); font-size: 15px; }
.c-panel__state .c-btn-row { justify-content: center; margin-top: 18px; }
.c-panel__state--error { background: var(--butter); border-radius: var(--radius-field); margin: 20px; max-width: none; text-align: left; padding: 22px; }
.c-panel__state--error p { color: var(--plum); }
.c-panel__state--error .c-btn-row { justify-content: flex-start; }
/* El calendari de Docfav fa ~950 px d'alt un cop triat el professional: alçada fixa per evitar doble scroll */
.c-panel iframe { display: block; width: 100%; height: clamp(760px, 94vh, 960px); border: 0; }
.c-panel__skip { position: absolute; left: 12px; top: 12px; z-index: 2; }
.c-panel__skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.c-spinner { width: 44px; height: 44px; margin: 0 auto; }
.c-spinner circle { fill: none; stroke: var(--contour); stroke-width: 1.5; transform-origin: 50% 50%; animation: c-pulse 1.6s ease-in-out infinite; }
.c-spinner circle:nth-child(2) { animation-delay: .25s; }
.c-spinner circle:nth-child(3) { animation-delay: .5s; }
@keyframes c-pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .c-spinner circle { animation: none; opacity: .7; } }

.c-preview-note {
  background: var(--butter); border-radius: var(--radius-field); padding: 16px 18px; text-align: left; font-size: 14px;
}
.c-preview-note strong { display: block; margin-bottom: 4px; }

@media (max-width: 920px) {
  .c-book__grid { grid-template-columns: 1fr; }
  .c-book__iso { width: 420px; right: -170px; top: auto; bottom: -150px; }
  .c-panel { min-height: 360px; margin: 0 calc(-1 * clamp(8px, 2vw, 24px)); }
  .c-panel iframe { height: 980px; }
  .c-panel__bar { flex-wrap: wrap; row-gap: 4px; }
}

/* CTA contextual (HUB i blog) */
.c-cta-inline {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  background: var(--lilac); border-radius: var(--radius-feature); padding: 24px 28px;
}
.c-cta-inline h3 { font-size: 24px; }
.c-cta-inline p { margin-top: 4px; font-size: 15px; }

/* ---------- Especialitats (HUBs) ---------- */
.c-hubs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
.c-hub {
  display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: start; height: 100%;
  background: var(--mist); border-radius: var(--radius-card); padding: 22px;
  text-decoration: none; color: var(--plum);
}
.c-hub:hover { background: var(--lilac-soft); }
.c-hub__logo { width: 72px; height: 72px; border-radius: 50%; background: #fff; overflow: hidden; }
.c-hub__logo--blob { border-radius: var(--blob); background: var(--lilac); display: grid; place-items: center; }
.c-hub__logo--blob svg { width: 40px; height: 40px; }
.c-hub h3 { font-size: 22px; }
.c-hub p { margin-top: 6px; font-size: 14px; color: var(--plum-muted); }
.c-hub__more { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--purple); }
@media (max-width: 960px) { .c-hubs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .c-hubs { grid-template-columns: 1fr; } .c-hub { padding: 18px; } }

/* ---------- Per què CIBIP ---------- */
.c-reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; list-style: none; margin: 0; padding: 0; }
.c-reasons li { padding-top: 18px; border-top: 1px solid var(--hairline); }
.c-reasons h3 { font-size: 21px; }
.c-reasons p { margin-top: 8px; color: var(--plum-muted); font-size: 15px; }
@media (max-width: 860px) { .c-reasons { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (max-width: 520px) { .c-reasons { grid-template-columns: 1fr; } }

/* ---------- Opinions ---------- */
.c-reviews__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.c-score { display: flex; align-items: center; gap: 14px; }
.c-score__n { font-family: var(--font-display); font-size: 56px; line-height: 1; font-variation-settings: "SOFT" 100, "opsz" 144; }
.c-score__stars { color: var(--purple); letter-spacing: 2px; font-size: 18px; }
.c-reviews__slot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.c-review-ph { background: var(--mist); border-radius: var(--radius-card); padding: 22px; min-height: 180px; }
.c-review-ph span { display: block; height: 10px; border-radius: 6px; background: var(--hairline); margin-bottom: 10px; }
.c-review-ph span:nth-child(1) { width: 40%; height: 14px; margin-bottom: 18px; }
.c-review-ph span:nth-child(3) { width: 86%; }
.c-review-ph span:nth-child(4) { width: 64%; }
.c-review-ph p { margin-top: 18px; font-size: 13px; color: var(--plum-muted); }
@media (max-width: 860px) { .c-reviews__slot { grid-template-columns: 1fr; } .c-review-ph:nth-child(n+2) { display: none; } }

/* ---------- Equip ---------- */
.c-team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
.c-person { background: var(--mist); border-radius: var(--radius-card); padding: 22px; height: 100%; }
.c-person__photo { width: 96px; height: 104px; border-radius: var(--blob); overflow: hidden; background: var(--lilac-soft); display: grid; place-items: center; font-family: var(--font-display); font-size: 30px; color: var(--plum); }
.c-person__photo img { width: 100%; height: 100%; object-fit: cover; }
.c-person h3 { font-size: 21px; margin-top: 16px; }
.c-person__role { font-size: 13px; color: var(--plum-muted); margin-top: 4px; }
.c-person ul { margin: 12px 0 0; padding: 0 0 0 18px; font-size: 14px; }
.c-person li { margin-top: 4px; }
@media (max-width: 1000px) { .c-team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .c-team { grid-template-columns: 1fr; } }

/* Així treballem */
.c-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
.c-gallery figure { margin: 0; }
.c-gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-card); background: var(--mist); }
.c-gallery figcaption { font-size: 13px; color: var(--plum-muted); margin-top: 8px; }
@media (max-width: 760px) { .c-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Blog */
.c-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
.c-post { display: block; background: var(--mist); border-radius: var(--radius-card); padding: 22px; text-decoration: none; color: var(--plum); height: 100%; }
.c-post:hover { background: var(--lilac-soft); }
.c-post h3 { font-size: 21px; }
.c-post p { margin-top: 8px; font-size: 14px; color: var(--plum-muted); }
@media (max-width: 860px) { .c-posts { grid-template-columns: 1fr; } }

/* Clíniques */
.c-places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.c-place { background: var(--mist); border-radius: var(--radius-card); padding: 26px; }
.c-place h3 { font-size: 24px; }
.c-place address { font-style: normal; margin-top: 10px; }
.c-place p { margin-top: 6px; font-size: 15px; }
.c-place .c-btn-row { margin-top: 18px; }
.c-towns { margin-top: 24px; max-width: 72ch; color: var(--plum-muted); font-size: 15px; }
@media (max-width: 760px) { .c-places { grid-template-columns: 1fr; } }

/* FAQ */
.c-faq { max-width: 820px; }
.c-faq details { border-bottom: 1px solid var(--hairline); }
.c-faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 4px; font-family: var(--font-display); font-size: 20px; line-height: 1.25;
  font-variation-settings: "SOFT" 100, "opsz" 36;
}
.c-faq summary::-webkit-details-marker { display: none; }
.c-faq summary::after {
  content: ""; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--mist)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M9 14h10M14 9v10' stroke='%232E2440' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center/28px no-repeat;
}
.c-faq details[open] summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M9 14h10' stroke='%232E2440' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-color: var(--lilac-soft); }
.c-faq .c-faq__a { padding: 0 4px 20px; max-width: 65ch; color: var(--plum); }
.c-faq .c-faq__a p + p { margin-top: 10px; }

/* CTA final */
.c-final { text-align: center; background: var(--mist); border-radius: var(--radius-feature); padding: clamp(32px, 6vw, 64px) 24px; position: relative; overflow: hidden; isolation: isolate; }
.c-final h2 { font-size: clamp(30px, 3.6vw, 44px); max-width: 18ch; margin: 0 auto; }
.c-final p { margin: 14px auto 0; max-width: 52ch; color: var(--plum-muted); }
.c-final .c-btn-row { justify-content: center; margin-top: 26px; }

/* Peu */
.c-footer { background: var(--mist); margin-top: var(--space-6); padding: 48px 0 110px; font-size: 14px; }
.c-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.c-footer h2 { font-size: 19px; margin-bottom: 12px; }
.c-footer ul { list-style: none; margin: 0; padding: 0; }
.c-footer li { margin-top: 6px; }
.c-footer a { color: var(--plum); }
.c-footer a:hover { color: var(--purple); }
.c-footer__brand img { width: 84px; height: 84px; margin-bottom: 12px; }
.c-footer__legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--plum-muted); font-size: 13px; }
.c-footer__legal a { color: var(--plum-muted); }
@media (min-width: 921px) { .c-footer { padding-bottom: 48px; } }
@media (max-width: 860px) { .c-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .c-footer__grid { grid-template-columns: 1fr; } }

/* Barra fixa mòbil */
.c-mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: none; gap: 10px; align-items: center;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--hairline);
  transform: translateY(110%); transition: transform .25s ease;
}
.c-mbar.is-visible { transform: none; }
.c-mbar .c-btn--primary { flex: 1; }
.c-mbar__icon {
  width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--hairline); background: #fff; color: var(--plum);
}
.c-mbar__icon--wa { background: var(--whatsapp); border-color: var(--whatsapp); color: var(--on-green); }
.c-mbar__icon svg { width: 22px; height: 22px; }
@media (max-width: 920px) { .c-mbar { display: flex; } body.c-mbar-on .mbar { visibility: hidden; } }
.micro > span { display: inline; }
@media (prefers-reduced-motion: reduce) { .c-mbar { transition: none; } }

/* ---------- HUB ---------- */
.c-crumbs { font-size: 13px; color: var(--plum-muted); padding-top: 20px; }
.c-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.c-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--contour); }
.c-crumbs a { color: var(--plum-muted); }
.c-hub-hero { padding: 24px 0 var(--space-6); position: relative; }
.c-hub-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; }
.c-hub-hero__badge { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-weight: 600; font-size: 14px; }
.c-hub-hero__badge img { width: 48px; height: 48px; border-radius: 50%; }
.c-hub-hero h1 { font-size: clamp(36px, 4.8vw, 58px); line-height: 1.06; font-weight: 350; font-variation-settings: "SOFT" 100, "opsz" 144; }
.c-hub-hero .c-lead { margin-top: 18px; }
.c-hub-hero .c-btn-row { margin-top: 26px; }
.c-hub-hero__art { position: relative; aspect-ratio: 1; max-width: 420px; justify-self: end; width: 100%; }
.c-hub-hero__art .c-isobars { width: 100%; height: 100%; }
.c-hub-hero__art img { position: absolute; width: 40%; left: 30%; top: 30%; border-radius: 50%; }
@media (max-width: 860px) {
  .c-hub-hero__grid { grid-template-columns: 1fr; }
  .c-hub-hero__art { display: none; }
}
.c-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.c-links a { display: block; height: 100%; background: var(--mist); border-radius: var(--radius-field); padding: 16px 18px; text-decoration: none; color: var(--plum); }
.c-links a:hover { background: var(--lilac-soft); }
.c-links strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 19px; line-height: 1.2; font-variation-settings: "SOFT" 100, "opsz" 36; }
.c-links span { display: block; font-size: 13px; color: var(--plum-muted); margin-top: 4px; }
@media (max-width: 900px) { .c-links { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .c-links { grid-template-columns: 1fr; } }

.c-stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.c-stage { background: var(--mist); border-radius: var(--radius-card); padding: 22px; }
.c-stage h3 { font-size: 21px; }
.c-stage > p { margin-top: 6px; font-size: 14px; color: var(--plum-muted); }
.c-stage ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.c-stage li a { display: block; background: #fff; border-radius: var(--radius-field); padding: 10px 14px; font-size: 14px; color: var(--plum); text-decoration: none; }
.c-stage li a:hover { color: var(--purple); }
@media (max-width: 860px) { .c-stages { grid-template-columns: 1fr; } }

.c-method { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); list-style: none; margin: 0; padding: 0; counter-reset: m; }
.c-method li { background: var(--mist); border-radius: var(--radius-card); padding: 22px; }
.c-method__l { width: 48px; height: 52px; border-radius: var(--blob); background: var(--sage); color: var(--sage-ink); display: grid; place-items: center; font-family: var(--font-display); font-size: 24px; }
.c-method h3 { font-size: 21px; margin-top: 14px; }
.c-method p { margin-top: 6px; font-size: 14px; color: var(--plum-muted); }
.c-quote { margin: 32px 0 0; font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.3; max-width: 36ch; font-variation-settings: "SOFT" 100, "opsz" 72; }
@media (max-width: 900px) { .c-method { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .c-method { grid-template-columns: 1fr; } }

.c-two { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.c-info { background: var(--mist); border-radius: var(--radius-card); padding: 22px; }
.c-info h3 { font-size: 20px; margin-bottom: 8px; }
.c-info p { font-size: 15px; }
@media (max-width: 860px) { .c-two { grid-template-columns: 1fr; } }

/* ---------- Tema podologo-manresa: logo 3D més gran i botó de reserva al menú ---------- */
.site-header .site-logo img { width: 92px !important; height: 92px !important; max-width: none; }
.site-header .site-logo { align-items: center; }
@media (max-width: 920px) { .site-header .site-logo img { width: 68px !important; height: 68px !important; } }
.primary-nav .c-book-cta > a {
  display: inline-flex; align-items: center; min-height: 42px; padding: 10px 20px !important; margin-left: 6px;
  border-radius: 999px; background: #6a1fb5; color: #fff !important; font-weight: 600; text-decoration: none;
}
.primary-nav .c-book-cta > a:hover { background: #5a179c; }
.primary-nav .c-book-cta > a::after { display: none !important; }
@media (max-width: 920px) { .primary-nav .c-book-cta > a { margin: 8px 0 0; justify-content: center; } }

@media (max-width: 920px) { body { padding-bottom: 76px; } }

/* 1.1.6 — Contrast: capçalera neta (sense foto al darrere) i text sempre llegible als botons de cita */
.site-header { background: rgba(255,255,255,.94) !important; background-image: none !important; -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); box-shadow: 0 1px 0 rgba(46,36,64,.08); }
.site-header .site-logo, .site-header .site-logo span { color: var(--plum) !important; font-weight: 700; text-shadow: none !important; }
.site-header .primary-nav a { color: var(--plum); }
.site-header .primary-nav .c-book-cta > a, .site-header .primary-nav .c-book-cta > a:hover, .site-header .primary-nav .c-book-cta > a:focus, .site-header .primary-nav .c-book-cta > a:visited { color: #fff !important; background: var(--purple) !important; }
.site-header .primary-nav .c-book-cta > a:hover { background: var(--purple-hover) !important; }
.mobile-nav .c-book-cta { margin-top: 12px; }
.mobile-nav .c-book-cta > a, .mobile-nav .c-book-cta > a:hover, .mobile-nav .c-book-cta > a:focus { display: inline-flex; align-items: center; justify-content: center; background: var(--purple) !important; color: #fff !important; border-radius: 999px; padding: 14px 28px; font-weight: 600; text-decoration: none; }
a.c-btn--primary, a.c-btn--primary:hover, a.c-btn--primary:focus, a.c-btn--primary:visited, a.c-btn--primary:active, button.c-btn--primary { color: #fff !important; }

/* 1.2.1 · La capçalera ja no és una foto: sense alçada mínima de 260 px (deixava una franja blanca) */
.site-header { min-height: 0 !important; }

/* 1.2.2 · Botó «Truca ara» d'algunes entrades: el seu <style> intern arriba trencat per l'editor
   (salts de línia convertits en <br>/<p>) i la icona del telèfon es pintava a mida de pantalla. */
.cta-call-top { width: 100%; text-align: center; margin: 24px auto 32px; }
.cta-call-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: #6a1fb5; color: #fff !important; font-weight: 600; font-size: 16px; padding: 14px 26px; border-radius: 999px; text-decoration: none !important; box-shadow: 0 10px 22px -12px rgba(106,31,181,.7); }
.cta-call-btn:hover { background: #5a179c; }
.cta-call-btn svg { width: 20px !important; height: 20px !important; flex: none; }
.cta-call-info { margin-top: 10px; font-size: 14px; color: #6e6480; }

/* 1.2.2 · Al mòbil, el CSS addicional del tema torna a posar la foto fosca a la capçalera (amb !important)
   i el nom «Podòleg Manresa» no es llegeix. Més especificitat perquè guanyi la capçalera blanca. */
html body .site-header {
  background: rgba(255,255,255,.95) !important; background-image: none !important; min-height: 0 !important;
}
html body .site-header .site-logo span { color: #2e2440 !important; text-shadow: none !important; }
html body .site-header .site-logo img { box-shadow: none !important; }
html body .site-header .menu-toggle { color: #2e2440 !important; }
html body .site-header .menu-toggle span, html body .site-header .menu-toggle span::before, html body .site-header .menu-toggle span::after { background-color: #2e2440 !important; }

/* 1.2.4 · Reserva online a totes les landings i subpàgines */
.c-quickbook { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 18px 0 26px !important; }
.c-quickbook__btn { color: #fff !important; }
.c-quickbook__note { font-size: 13.5px; color: #6e6480; line-height: 1.35; }
.c-endbook { margin: 40px 0 16px; padding: 28px 28px 24px; border-radius: 26px; background: #f6f3fa; border: 1px solid #e3daee; }
.c-endbook p { margin: 0; }
.c-endbook__title { font-family: "Fraunces", Georgia, serif; font-size: 26px; line-height: 1.15; color: #2e2440; font-weight: 420; }
.c-endbook__lead { margin-top: 8px !important; color: #4a4060; font-size: 16px; }
.c-endbook__main { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 18px !important; }
.c-endbook__btn { color: #fff !important; font-size: 16.5px; padding: 15px 28px; }
.c-endbook__other { color: #6a1fb5 !important; font-weight: 600; font-size: 15px; }
.c-endbook__trust { margin-top: 14px !important; font-size: 13.5px; color: #6e6480; }
.c-endbook__alt { margin-top: 10px !important; font-size: 15px; color: #4a4060; }
.c-endbook__alt a { color: #2e2440 !important; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.c-footbook { background: #2e2440; text-align: center; padding: 14px 16px; }
.c-footbook__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 24px; border-radius: 999px; background: #6a1fb5; color: #fff !important; font-weight: 600; text-decoration: none !important; }
.c-footbook__btn:hover { background: #5a179c; }
.c-footbook__btn:focus-visible, .c-endbook a:focus-visible, .c-quickbook a:focus-visible { outline: 3px solid #b9a3de; outline-offset: 3px; }
@media (max-width: 920px) {
  .c-quickbook__btn, .c-endbook__btn { width: 100%; justify-content: center; }
  .c-endbook { padding: 22px 18px 20px; }
  .c-endbook__title { font-size: 22px; }
  body.c-mbar-on .c-footbook { padding-bottom: 86px; }
}
/* 1.2.5 enlace secundario de agenda: texto, no botón */
html body.cibip-skin .c-endbook a.c-endbook__other{background:none!important;color:#6a1fb5!important;box-shadow:none!important;padding:0!important;border:0!important;min-height:0!important;display:inline!important;font-weight:600;text-decoration:underline;text-underline-offset:3px;width:auto!important}
