/* Fundació Origo · Selector de pilars i fitxes interactives (prefix opl-) */
.opl-llista { display: grid; gap: 8px; font-family: "Plus Jakarta Sans", system-ui, sans-serif; }
.opl-fila { display: flex; align-items: stretch; background: #fff; border: 1px solid rgba(39,56,55,.14); border-radius: 12px; overflow: hidden; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.opl-fila.is-marcat { border-color: #273837; background: #eef4ee; box-shadow: 0 8px 18px -14px rgba(39,56,55,.8); }
.opl-opcio { flex: 1; min-width: 0; display: flex; align-items: center; gap: 11px; padding: 11px 12px; cursor: pointer; margin: 0; }
.opl-opcio input { position: absolute; opacity: 0; pointer-events: none; }
.opl-casella { flex: 0 0 22px; width: 22px; height: 22px; border: 2px solid rgba(39,56,55,.35); border-radius: 6px; background: #fff center / 14px no-repeat; transition: all .15s ease; }
.opl-opcio input:checked ~ .opl-casella { background-color: #273837; border-color: #273837;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C1F879' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.opl-opcio input:focus-visible ~ .opl-casella { box-shadow: 0 0 0 3px rgba(160,201,203,.6); }
.opl-num { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-family: "Playfair Display", serif; font-weight: 800; font-size: 13px; background: var(--pc); color: #273837; }
.opl-text { min-width: 0; display: grid; gap: 1px; text-align: left; }
.opl-text strong { font-size: 15px; font-weight: 800; color: #273837; line-height: 1.25; }
.opl-text small { font-size: 12.5px; color: rgba(39,56,55,.66); line-height: 1.35; }
.opl-info { flex: 0 0 auto; border: 0; border-left: 1px solid rgba(39,56,55,.1); background: transparent; color: #273837; font: inherit; font-size: 12.5px; font-weight: 800; padding: 0 12px 0 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; transition: background .15s ease; }
.opl-info:hover { background: color-mix(in srgb, var(--pc) 28%, transparent); }
.opl-info svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Full a pantalla */
.opl-full { position: fixed; inset: 0; z-index: 100050; display: grid; place-items: center; padding: 16px; font-family: "Plus Jakarta Sans", system-ui, sans-serif; color: #273837; }
.opl-full__fons { position: absolute; inset: 0; background: rgba(17,27,26,.6); backdrop-filter: blur(6px); animation: opl-apareix .2s ease; }
.opl-full__panell { position: relative; width: min(560px, 100%); height: min(860px, 100%); background: #FBFAF5; border-radius: 22px; overflow: hidden; display: grid; grid-template-rows: minmax(0, 1fr); box-shadow: 0 40px 90px -30px rgba(0,0,0,.6); animation: opl-puja .3s cubic-bezier(.2,.75,.25,1); }
@keyframes opl-apareix { from { opacity: 0; } }
@keyframes opl-puja { from { opacity: 0; transform: translateY(18px) scale(.985); } }
.opl-vista { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.opl-vista[hidden] { display: none; }
.opl-entra { animation: opl-llisca .32s cubic-bezier(.2,.75,.25,1); }
@keyframes opl-llisca { from { opacity: 0; transform: translateX(26px); } }

.opl-heroi { position: relative; min-height: 270px; flex: 0 0 auto; background: #273837 center / cover no-repeat; display: flex; align-items: flex-end; color: #fff; }
.opl-heroi::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,35,34,.25) 0%, rgba(23,35,34,.15) 35%, rgba(23,35,34,.92) 100%); }
.opl-heroi::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--pc); }
.opl-heroi__text { position: relative; padding: 22px 22px 24px; }
.opl-heroi__num { display: inline-block; padding: 4px 10px; border-radius: 99px; background: var(--pc); color: var(--pt); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.opl-heroi h2 { margin: 10px 0 4px; font-family: "Playfair Display", serif; font-weight: 800; font-size: 34px; line-height: 1.05; }
.opl-heroi p { margin: 0; color: rgba(255,255,255,.85); font-size: 15px; }
.opl-tanca { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); backdrop-filter: blur(8px); color: #fff; cursor: pointer; display: grid; place-items: center; }
.opl-tanca svg, .opl-enrere svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.opl-tanca--fosc { background: rgba(39,56,55,.08); color: #273837; }
.opl-cos { padding: 18px 20px 8px; flex: 1 0 auto; }
.opl-intro { margin: 0 0 6px; font-size: 15px; line-height: 1.6; color: #34484a; }
.opl-seccio { margin: 18px 0 10px; font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #5f8f92; display: flex; align-items: center; gap: 10px; }
.opl-seccio::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(95,143,146,.35), transparent); }
.opl-grups { display: grid; gap: 9px; }
.opl-grup { display: grid; grid-template-columns: 46px 1fr 26px; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 12px; border-radius: 14px; border: 1px solid rgba(39,56,55,.12); background: #fff; cursor: pointer; font: inherit; color: inherit;
  box-shadow: 0 10px 22px -20px rgba(39,56,55,.7); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; animation: opl-entra-g .4s cubic-bezier(.2,.75,.25,1) both; animation-delay: calc(var(--i) * 50ms); }
@keyframes opl-entra-g { from { opacity: 0; transform: translateY(8px); } }
.opl-grup:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--pc) 70%, #273837); box-shadow: 0 16px 26px -20px rgba(39,56,55,.8); }
.opl-grup.is-triat { border-color: #273837; background: #eef4ee; }
.opl-grup__icona { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--pc) 32%, #fff); color: #273837; }
.opl-grup__icona svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.opl-grup__text { min-width: 0; display: grid; gap: 2px; }
.opl-grup__text em { font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #5f8f92; }
.opl-grup__text strong { font-size: 15px; font-weight: 800; line-height: 1.25; }
.opl-grup__text small { font-size: 12.5px; color: rgba(39,56,55,.66); line-height: 1.35; }
.opl-grup__estat { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: rgba(39,56,55,.5); }
.opl-grup.is-triat .opl-grup__estat { background: #273837; color: #C1F879; }
.opl-grup__estat svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.opl-peu { position: sticky; bottom: 0; display: grid; gap: 8px; padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(251,250,245,0), #FBFAF5 28%); flex: 0 0 auto; }
.opl-boto { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 0; border-radius: 999px; padding: 15px 18px; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; background: #273837; color: #fff; box-shadow: 0 14px 26px -16px rgba(39,56,55,.9); transition: transform .15s ease, background .15s ease; }
.opl-boto:active { transform: scale(.98); }
.opl-boto.is-actiu { background: #C1F879; color: #273837; }
.opl-boto svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.opl-boto--clar { background: transparent; color: #273837; box-shadow: none; border: 1px solid rgba(39,56,55,.18); }

/* Detall del grup */
.opl-grup-cap { position: relative; flex: 0 0 auto; padding: 18px 20px 22px; background: linear-gradient(160deg, color-mix(in srgb, var(--pc) 40%, #fff), color-mix(in srgb, var(--pc) 12%, #FBFAF5)); border-bottom: 6px solid var(--pc); }
.opl-enrere { display: inline-flex; align-items: center; gap: 4px; border: 0; background: rgba(255,255,255,.6); border-radius: 99px; padding: 7px 12px 7px 8px; font: inherit; font-size: 12.5px; font-weight: 800; color: #273837; cursor: pointer; }
.opl-grup-cap__icona { margin: 18px 0 10px; width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; background: #273837; color: #C1F879; box-shadow: 0 16px 28px -18px rgba(39,56,55,.9); }
.opl-grup-cap__icona svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.opl-grup-cap__fase { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(39,56,55,.7); }
.opl-grup-cap h2 { margin: 6px 0 4px; font-family: "Playfair Display", serif; font-weight: 800; font-size: 29px; line-height: 1.08; }
.opl-grup-cap p { margin: 0; font-size: 15px; color: #34484a; }
.opl-passos { list-style: none; counter-reset: p; margin: 0; padding: 0; display: grid; gap: 10px; }
.opl-passos li { counter-increment: p; display: grid; grid-template-columns: 30px 1fr; gap: 11px; font-size: 14.5px; line-height: 1.5; }
.opl-passos li::before { content: counter(p); width: 30px; height: 30px; border-radius: 9px; background: #273837; color: #C1F879; display: grid; place-items: center; font-family: "Playfair Display", serif; font-weight: 800; font-size: 14px; }
.opl-perfil { list-style: none; margin: 0; padding: 14px 16px; display: grid; gap: 9px; background: #fff; border-radius: 14px; border: 1px solid rgba(39,56,55,.1); }
.opl-perfil li { position: relative; padding-left: 20px; font-size: 14px; line-height: 1.45; font-weight: 600; }
.opl-perfil li::before { content: ''; position: absolute; left: 0; top: 5px; width: 10px; height: 10px; border-radius: 3px; background: var(--pc); box-shadow: inset 0 0 0 1px rgba(39,56,55,.15); }

@media (max-width: 560px) {
  .opl-full { padding: 0; }
  .opl-full__panell { width: 100%; height: 100%; border-radius: 0; }
  .opl-heroi { min-height: 240px; }
  .opl-heroi h2 { font-size: 30px; }
  .opl-info { padding: 0 10px; font-size: 12px; }
  .opl-text strong { font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) { .opl-full *, .opl-full { animation: none !important; transition: none !important; } }

/* Mode consulta (pàgina /pilars): cartes dels pilars */
.opl-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; font-family: "Plus Jakarta Sans", system-ui, sans-serif; }
.opl-carta { display: flex; flex-direction: column; text-align: left; padding: 0; border: 0; border-radius: 20px; overflow: hidden; background: #fff; cursor: pointer; font: inherit; color: #273837;
  box-shadow: 0 18px 40px -28px rgba(39,56,55,.7); transition: transform .3s cubic-bezier(.2,.75,.25,1), box-shadow .3s ease; animation: opl-entra-g .5s cubic-bezier(.2,.75,.25,1) both; animation-delay: calc(var(--i) * 60ms); }
.opl-carta:hover { transform: translateY(-5px); box-shadow: 0 28px 50px -28px rgba(39,56,55,.8); }
.opl-carta__foto { height: 170px; background: #273837 center / cover no-repeat; border-bottom: 6px solid var(--pc); }
.opl-carta__cos { display: grid; gap: 4px; padding: 16px 18px 18px; }
.opl-carta__num { justify-self: start; padding: 3px 9px; border-radius: 99px; background: var(--pc); color: var(--pt); font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.opl-carta strong { font-family: "Playfair Display", serif; font-size: 22px; font-weight: 800; line-height: 1.12; margin-top: 4px; }
.opl-carta small { font-size: 14px; color: rgba(39,56,55,.7); line-height: 1.45; }
.opl-carta__mes { margin-top: 8px; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; color: #273837; }
.opl-carta__mes svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
a.opl-boto { text-decoration: none; box-sizing: border-box; }

/* Responsable del pilar (19-11-2026) */
.opl-heroi__resp { margin-top: 8px; font-size: 14px; opacity: .92; }
