/**
 * PROPOSTA 2 (no aplicada al tema): turquesa corporatiu protagonista, lletra
 * blanca sobre color i ombres turqueses. Capa a part per comparar; no canvia
 * cap variable global ni cap component.
 *
 * - #18B3AD: turquesa del logotip. Superfícies amb text petroli, ombres, halos.
 * - #11827E: el mateix to, més profund, només darrere de lletra blanca
 *   (4,65:1, WCAG AA). El blanc sobre #18B3AD no hi arriba (2,60:1).
 * - #063B3F: petroli, per a text sobre #18B3AD (4,74:1).
 * - Sense fons verd aigua pàl·lid: els fons neutres són blancs o gris clar.
 */
:root {
  --op-vivid: #18B3AD;
  --op-deep: #11827E;
  --op-petrol: #063B3F;
  --op-glow: 0 14px 34px rgba(24, 179, 173, .28);
  --op-glow-soft: 0 8px 22px rgba(24, 179, 173, .20);
  --op-glow-strong: 0 18px 44px rgba(24, 179, 173, .42);
}

/* ---------- Botons: turquesa profund, lletra blanca, halo turquesa ---------- */
.op-btn--primary { background: var(--op-deep); color: #fff; box-shadow: var(--op-glow-soft); }
.op-btn--primary:hover { background: #0D6F6B; color: #fff; box-shadow: var(--op-glow-strong); }
.op-btn--outline { border-color: var(--op-deep); color: var(--op-deep); }
.op-btn--outline:hover { background: var(--op-deep); color: #fff; }

/* ---------- Capçalera ---------- */
.op-header { box-shadow: 0 6px 24px rgba(24, 179, 173, .18); border-bottom: 0; position: relative; z-index: 5; }
.op-main-nav__link:hover,
.op-main-nav__link:focus-visible,
.op-main-nav__link.is-active,
.op-main-nav__item.is-active-trail > .op-main-nav__link { border-color: var(--op-vivid); }

/* ---------- Hero amb foto: vel turquesa profund, lletra blanca ---------- */
.op-hero--photo {
  background-image: linear-gradient(90deg, rgba(13, 111, 107, .88) 0%, rgba(17, 130, 126, .74) 50%, rgba(24, 179, 173, .28) 100%), var(--op-hero-img);
}
html .op-hero.op-hero--responsive::before { background: linear-gradient(90deg, rgba(13, 111, 107, .90) 0%, rgba(17, 130, 126, .78) 50%, rgba(24, 179, 173, .30) 100%); }
.op-hero__eyebrow { color: #fff; }
.op-hero__cta-primary { background: #fff; color: var(--op-deep); box-shadow: 0 10px 28px rgba(6, 59, 63, .28); }
.op-hero .op-hero__cta-secondary { border-color: #fff; color: #fff; }
.op-hero .op-hero__cta-secondary:hover { background: #fff; color: var(--op-deep); }
@media (max-width: 960px) {
  .op-hero--photo { background-image: linear-gradient(rgba(13, 111, 107, .84), rgba(17, 130, 126, .78)), var(--op-hero-img); }
  html .op-hero.op-hero--responsive::before { background: linear-gradient(rgba(13, 111, 107, .88), rgba(17, 130, 126, .80)); }
}

/* ---------- Seccions: fora el verd aigua ---------- */
.op-section__rule { background: var(--op-vivid); }
.op-section--mint { background: var(--op-surface); }
.op-contact { background: var(--op-surface); }
.op-contact__item svg { color: var(--op-vivid); }
.op-contact__map { box-shadow: var(--op-glow); }
.op-welcome__media img, .op-welcome__photo, .op-gallery-photo img { box-shadow: var(--op-glow); }

/* «La visita»: franja del turquesa corporatiu, text petroli, icones blanques. */
#compromis { background: var(--op-vivid); }
#compromis .op-section__title,
#compromis .op-features__item-title,
#compromis .op-why-us__item-title,
#compromis .op-features__item-text,
#compromis .op-why-us__item-text { color: var(--op-petrol); }
#compromis .op-section__rule { background: #fff; }
#compromis .op-features__icon,
#compromis .op-why-us__icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fff;
  color: var(--op-deep);
  box-shadow: 0 10px 26px rgba(6, 59, 63, .22);
}
#compromis .op-features__icon svg,
#compromis .op-why-us__icon svg { width: 30px; height: 30px; }

/* «Opinions»: gris neutre, perquè el turquesa no hi competeixi. */
#opinions { background: var(--op-surface-alt); }

/* ---------- Targetes de servei: blanques amb ombra turquesa ---------- */
.op-service-card { box-shadow: var(--op-glow-soft); border: 1px solid rgba(24, 179, 173, .22); }
.op-service-card:hover { box-shadow: var(--op-glow-strong); }
.op-service-card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--op-vivid);
  color: var(--op-petrol);
  box-shadow: var(--op-glow-soft);
}
.op-service-card__icon svg,
.op-service-card__icon img { width: 30px; height: 30px; }
.op-service-card__more { color: var(--op-deep); }
/* «Tots els serveis»: turquesa profund amb lletra blanca. */
.op-service-cta-card { background: var(--op-deep); border-color: var(--op-deep); box-shadow: var(--op-glow-strong); }
.op-service-cta-card .op-service-cta-card__title { color: #fff; }
.op-service-cta-card .op-service-card__icon { background: #fff; color: var(--op-deep); box-shadow: none; }
.op-service-cta-card:hover,
.op-service-cta-card:focus-visible { border-color: #fff; }

/* ---------- Peu: turquesa profund amb lletra blanca (cap bloc fosc) ---------- */
.op-footer {
  background: var(--op-deep);
  color: #fff;
  --op-footer-text: #fff;
  --op-footer-text-soft: #fff;
  --op-footer-text-faint: #fff;
  --op-brand-on-dark: #fff;
}
.op-footer__brand-name { color: #fff; }
.op-footer__contact svg { color: #fff; }
.op-footer__menu a:hover { color: #fff; }
.op-footer__bottom { border-top-color: rgba(255, 255, 255, .28); }

/* ---------- Avisos de consentiment ---------- */
.klaro.klaro-theme-optica_pardo .context-notice { background: var(--op-surface); border-color: rgba(24, 179, 173, .4); box-shadow: var(--op-glow-soft); }

/* ==========================================================================
   Landing QR
   ========================================================================== */
/* Primera pantalla: turquesa profund darrere del titular blanc, que s'obre
   cap al turquesa corporatiu a la zona dels accessos. */
body.op-landing-qr .op-hero--gradient { background: var(--op-deep); color: #fff; }
body.op-landing-qr .op-hero__title,
body.op-landing-qr .op-hero__since { color: #fff; }
body.op-landing-qr .op-hero__lens--a { background: rgba(24, 179, 173, .55); box-shadow: 0 0 80px rgba(24, 179, 173, .6); }
body.op-landing-qr .op-hero + .op-rich-text { background: linear-gradient(180deg, var(--op-deep) 0%, var(--op-vivid) 100%); }
body.op-landing-qr .op-hero + .op-rich-text a { color: var(--op-ink); box-shadow: 0 10px 26px rgba(6, 59, 63, .24); }
body.op-landing-qr .op-hero + .op-rich-text a::before { color: var(--op-deep); }
body.op-landing-qr .op-hero + .op-rich-text a:focus-visible { outline-color: #fff; }

/* Postvenda: targeta de turquesa profund, lletra blanca, xifres sobre blanc. */
body.op-landing-qr #solucions .op-rich-text:has(ul) { background: var(--op-deep); box-shadow: var(--op-glow-strong); }
body.op-landing-qr #solucions .op-rich-text:has(ul) p:first-child,
body.op-landing-qr #solucions .op-rich-text:has(ul) p:first-child strong,
body.op-landing-qr #solucions .op-rich-text:has(ul) p:last-child { color: #fff; }
body.op-landing-qr #solucions .op-rich-text li,
body.op-landing-qr #solucions .op-rich-text li strong { color: var(--op-deep); }
body.op-landing-qr #solucions .op-features__icon { background: var(--op-vivid); color: var(--op-petrol); box-shadow: var(--op-glow-soft); }

/* Adaptació: fons blanc, targetes amb ombra turquesa. */
body.op-landing-qr #primers-dies .op-rich-text li { border: 1px solid rgba(24, 179, 173, .22); box-shadow: var(--op-glow-soft); }

/* Tecnologia: l'únic bloc profund, en petroli. */
body.op-landing-qr #la-lent,
body.op-landing-qr #la-lent .op-rich-text li { background: var(--op-petrol); }
body.op-landing-qr #la-lent .op-rich-text ol { box-shadow: 0 0 60px rgba(24, 179, 173, .28); }

/* Cura: targetes blanques amb ombra turquesa. */
body.op-landing-qr #cura .op-features__item { background: var(--op-surface); border: 1px solid rgba(24, 179, 173, .22); box-shadow: var(--op-glow-soft); }

/* Contacte i tancament. */
body.op-landing-qr .op-contact { background: var(--op-surface-alt); }
body.op-landing-qr main #descobreix { background: var(--op-vivid); }
body.op-landing-qr #descobreix .op-rich-text a { background: #fff; color: var(--op-deep); box-shadow: 0 10px 28px rgba(6, 59, 63, .25); }
body.op-landing-qr #descobreix .op-rich-text a:hover { background: var(--op-petrol); color: #fff; }

/* ==========================================================================
   AJUST FI de la proposta 2 (branca prova/turquesa-ajust)
   - Cap degradat ni frontera entre dos turqueses: cada superfície, un color.
   - El turquesa profund només queda als botons (lletra blanca petita), i una
     mica més clar: #12847F (4,53:1), el límit de WCAG AA.
   - Titulars grans en blanc sobre un to intermedi, #16A29C (3,14:1; AA per a
     text gran). Només a la primera pantalla de la landing.
   - Targetes i franges: turquesa del logotip #18B3AD amb text petroli.
   - Peu clar en lloc de profund.
   ========================================================================== */
:root { --op-deep: #12847F; --op-headline: #16A29C; }

/* Hero amb foto: un sol vel, que s'esvaeix cap a la foto (no cap a un altre turquesa). */
html .op-hero.op-hero--responsive::before { background: linear-gradient(90deg, rgba(18, 132, 127, .90) 0%, rgba(18, 132, 127, .80) 45%, rgba(18, 132, 127, 0) 100%); }
@media (max-width: 960px) {
  html .op-hero.op-hero--responsive::before { background: rgba(18, 132, 127, .84); }
}

/* «Tots els serveis»: turquesa del logotip, text petroli, mateix halo. */
.op-service-cta-card { background: var(--op-vivid); border-color: var(--op-vivid); }
.op-service-cta-card .op-service-cta-card__title { color: var(--op-petrol); }
.op-service-cta-card .op-service-card__icon { color: var(--op-petrol); }
.op-service-cta-card:hover,
.op-service-cta-card:focus-visible { border-color: var(--op-petrol); }

/* Peu clar: blanc, text fosc, franja turquesa a dalt. */
.op-footer {
  background: var(--op-surface);
  color: var(--op-ink);
  border-top: 8px solid var(--op-vivid);
  box-shadow: 0 -10px 30px rgba(24, 179, 173, .14);
  --op-footer-text: var(--op-ink);
  --op-footer-text-soft: var(--op-ink-soft);
  --op-footer-text-faint: var(--op-ink-soft);
  --op-brand-on-dark: var(--op-brand-dark);
}
.op-footer__brand-name { color: var(--op-brand-dark); }
.op-footer__heading { color: var(--op-petrol); }
.op-footer__contact svg { color: var(--op-vivid); }
.op-footer__menu a:hover { color: var(--op-brand-dark); }
.op-footer__bottom { border-top-color: rgba(24, 179, 173, .35); }
.op-footer :focus-visible { outline-color: var(--op-brand-dark); }

/* Landing: primera pantalla d'un sol color, titular blanc. */
body.op-landing-qr .op-hero--gradient { background: var(--op-headline); }
body.op-landing-qr .op-hero + .op-rich-text { background: var(--op-headline); }
body.op-landing-qr .op-hero__lens--a { background: rgba(255, 255, 255, .16); box-shadow: none; }

/* Landing: targeta dels percentatges en turquesa del logotip, text petroli. */
body.op-landing-qr #solucions .op-rich-text:has(ul) { background: var(--op-vivid); }
body.op-landing-qr #solucions .op-rich-text:has(ul) p:first-child,
body.op-landing-qr #solucions .op-rich-text:has(ul) p:first-child strong,
body.op-landing-qr #solucions .op-rich-text:has(ul) p:last-child { color: var(--op-petrol); }
body.op-landing-qr #solucions .op-rich-text li,
body.op-landing-qr #solucions .op-rich-text li strong { color: var(--op-petrol); }

/* ==========================================================================
   AJUST 2 (branca prova/turquesa-ajust-2): més blanc, cap superfície fosca.
   - El to profund deixa de ser fons: els botons passen a turquesa del logotip
     amb text petroli, o a blanc amb text turquesa sobre color.
   - Tecnologia (landing): del petroli al turquesa del logotip, amb targetes
     blanques.
   - Foto de portada: el vel només cobreix la zona del text.
   ========================================================================== */

/* Botons sobre fons clar: turquesa del logotip, text petroli (4,74:1), halo. */
.op-btn--primary { background: var(--op-vivid); color: var(--op-petrol); box-shadow: var(--op-glow); }
.op-btn--primary:hover { background: #fff; color: var(--op-brand-dark); box-shadow: var(--op-glow-strong); }
.op-btn--primary:focus-visible { outline-color: var(--op-petrol); }
/* Botó secundari: blanc amb text turquesa llegible (#087A76, 5,18:1). */
.op-btn--outline { background: #fff; border-color: var(--op-vivid); color: var(--op-brand-dark); box-shadow: var(--op-glow-soft); }
.op-btn--outline:hover { background: var(--op-vivid); color: var(--op-petrol); }
.klaro.klaro-theme-optica_pardo .context-notice .cm-btn { background: var(--op-vivid); color: var(--op-petrol); box-shadow: var(--op-glow-soft); }

/* Foto de portada: vel només darrere del text; la resta de la foto, neta. */
html .op-hero.op-hero--responsive::before { background: linear-gradient(90deg, rgba(18, 132, 127, .84) 0%, rgba(18, 132, 127, .80) 46%, rgba(18, 132, 127, 0) 76%); }
@media (max-width: 960px) {
  html .op-hero.op-hero--responsive::before { background: rgba(18, 132, 127, .80); }
}
/* Sobre la foto: botó blanc amb text turquesa. */
.op-hero__cta-primary { background: #fff; color: var(--op-brand-dark); }
.op-hero .op-hero__cta-secondary { background: transparent; border-color: #fff; color: #fff; box-shadow: none; }

/* Landing · Tecnologia: turquesa del logotip, text petroli, passos en blanc. */
body.op-landing-qr #la-lent { background: var(--op-vivid); }
body.op-landing-qr #la-lent .op-eyebrow,
body.op-landing-qr #la-lent .op-section__title,
body.op-landing-qr #la-lent .op-section__intro,
body.op-landing-qr #la-lent .op-video__caption { color: var(--op-petrol); }
body.op-landing-qr #la-lent .op-section__rule { background: #fff; }
body.op-landing-qr #la-lent .op-rich-text { color: var(--op-ink-soft); }
body.op-landing-qr #la-lent .op-rich-text ol {
  gap: 10px;
  overflow: visible;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
body.op-landing-qr #la-lent .op-rich-text li {
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(6, 59, 63, .18);
}
body.op-landing-qr #la-lent .op-rich-text li::before { color: var(--op-brand-dark); }
body.op-landing-qr #la-lent .op-rich-text li strong { color: var(--op-ink); }

/* Landing · tancament: en blanc, perquè no hi hagi dues franges turqueses
   seguides de pes semblant al final; el botó porta el color. */
body.op-landing-qr main #descobreix { background: var(--op-surface); }
body.op-landing-qr #descobreix .op-rich-text a { background: var(--op-vivid); color: var(--op-petrol); box-shadow: var(--op-glow); }
body.op-landing-qr #descobreix .op-rich-text a:hover { background: #fff; color: var(--op-brand-dark); box-shadow: var(--op-glow-strong); }

/* ==========================================================================
   VERSIÓ COMBINADA (branca prova/turquesa-combinada), sobre l'ajust 2.
   Alterna dos tractaments amb el turquesa intermedi #16A29C:
     A · fons blanc amb titular gran en #16A29C (3,14:1; només text gran).
     B · franja #16A29C amb titular gran en blanc (3,14:1; només text gran).
   El text petit no fa servir mai aquests dos colors: sobre blanc, els del
   tema; sobre la franja, petroli fosc #04282B (4,97:1).
   El turquesa del logotip #18B3AD queda per a botons, icones, targetes de
   marca i ombres, sempre sobre blanc: mai dins d'una franja #16A29C.
   ========================================================================== */
:root { --op-band-ink: #04282B; }

/* ---------- A · titulars grans en #16A29C sobre blanc (tots ≥ 27 px) ---------- */
.op-section--white .op-section__title,
.op-section--mint .op-section__title,
.op-welcome__title,
.op-welcome__title em,
.op-welcome__title span,
.op-contact__title { color: var(--op-headline); }
.op-section__rule { background: var(--op-headline); }
.op-contact,
body.op-landing-qr .op-contact { background: var(--op-surface); }
/* Títol del tancament de la landing: fa menys de 24 px al mòbil, es queda fosc. */
body.op-landing-qr #descobreix .op-section__title { color: var(--op-ink); }

/* ---------- B · franges #16A29C amb titular blanc ---------- */
#compromis,
body.op-landing-qr #la-lent { background: var(--op-headline); }
#compromis .op-section__title,
body.op-landing-qr #la-lent .op-section__title { color: #fff; }
#compromis .op-section__rule,
body.op-landing-qr #la-lent .op-section__rule { background: #fff; }
/* Text petit dins la franja: petroli fosc. */
#compromis .op-features__item-title,
#compromis .op-why-us__item-title,
#compromis .op-features__item-text,
#compromis .op-why-us__item-text,
body.op-landing-qr #la-lent .op-eyebrow,
body.op-landing-qr #la-lent .op-section__intro,
body.op-landing-qr #la-lent .op-video__caption { color: var(--op-band-ink); }
#compromis .op-features__icon,
#compromis .op-why-us__icon { color: var(--op-brand-dark); }

/* ==========================================================================
   CONSOLIDACIÓ (branca consolida/turquesa-combinada), aprovada provisionalment.
   Únic canvi sobre la combinada: «Opinions» deixa de ser franja #16A29C i
   torna al fons clar i neutre de l'ajust 2 (#F4F7F7), amb els colors de text
   del tema. El titular hi queda fosc (--op-ink): el #16A29C sobre aquest gris
   es queda en 2,9:1 i no arriba a AA ni per a text gran.
   ========================================================================== */
#opinions { background: var(--op-surface-alt); }
#opinions .op-section__title { color: var(--op-ink); }

/* ==========================================================================
   CONTRAST DEL TEXT PETIT SOBRE LA FOTO DE PORTADA · OPCIÓ A
   (branca prova/hero-contrast-a)
   El vel general es queda igual. Només darrere de cada text petit blanc hi ha
   un halo difuminat de turquesa fondo #0B6561 al 88 %: sobre el píxel més
   clar possible de la foto dona 6,3:1 (AA, text petit ≥ 4,5:1). El titular
   i la resta de la fotografia no canvien. Només afecta l'hero amb foto
   (portada).
   ========================================================================== */
.op-hero--responsive {
  --op-hero-scrim: rgba(11, 101, 97, .88);
}
.op-hero--responsive .op-hero__eyebrow,
.op-hero--responsive .op-hero__since,
.op-hero--responsive .op-hero__text {
  width: fit-content;
  max-width: 100%;
  opacity: 1;
  background: var(--op-hero-scrim);
  box-shadow: 0 0 32px 12px var(--op-hero-scrim);
}
.op-hero--responsive .op-hero__eyebrow { display: block; }
/* La línia de «generació» hereta l'interlineat curt del titular: un farciment
   compensat fa que el halo cobreixi tota l'alçada de la lletra sense moure-la. */
.op-hero--responsive .op-hero__since { padding-block: .15em; margin-top: .35em; margin-bottom: -.15em; }
.op-hero--responsive .op-hero__text { max-width: 34em; }
.op-hero--responsive .op-hero__cta-secondary.op-hero__cta-secondary {
  background: var(--op-hero-scrim);
  box-shadow: 0 0 18px 6px var(--op-hero-scrim);
}
.op-hero--responsive .op-hero__cta-secondary.op-hero__cta-secondary:hover { background: #fff; color: var(--op-brand-dark); }
