/* CCA Custom Widgets - Master CSS */

/* Targetes de convocatòries amb documents i filtre d’activitat. */
.cca-staff-calls { margin: 32px 0; font-family: inherit; color: #243128; }
.cca-staff-calls .cca-staff-calls__heading { margin: 0 0 26px; font-size: clamp(26px, 3vw, 36px); font-weight: 700; line-height: 1.3; color: #243128; }
.cca-staff-calls [hidden] { display: none !important; }
.cca-staff-calls__filters { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; padding: 20px; margin-bottom: 16px; border: 1px solid #dfe4dd; border-radius: 10px; background: #f4f6f2; }
.cca-staff-calls__filters label { display: grid; gap: 7px; flex: 1 1 160px; color: #33483c; font-size: 14px; font-weight: 600; }
.cca-staff-calls__filters label:first-child { flex: 2 1 260px; }
.cca-staff-calls .cca-staff-calls__filters input, .cca-staff-calls .cca-staff-calls__filters select { width: 100%; min-width: 0; height: 44px; margin: 0; padding: 8px 12px; box-sizing: border-box; border: 1px solid #bac8c0; border-radius: 5px; background: #fff; color: #243128; font: inherit; }
.cca-staff-calls button { min-height: 44px; padding: 10px 16px; border: 1px solid #bac8c0; border-radius: 5px; background: #fff; color: #243128; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.4; cursor: pointer; }
.cca-staff-calls button:hover:not(:disabled) { border-color: var(--cca-calls-accent, #2c3e50); background: #edf2ef; }
.cca-staff-calls button:disabled { opacity: .45; cursor: default; }
.cca-staff-calls__hint { margin: 0 0 10px; color: #526157; font-size: 13px; }
.cca-staff-calls__grid { display: grid; grid-template-columns: repeat(var(--cca-calls-columns, 2), minmax(0, 1fr)); gap: 24px; }
.cca-staff-calls__card { position: relative; min-width: 0; padding: 28px; border: 1px solid #dfe4dd; border-top: 4px solid var(--cca-calls-accent, #2c3e50); border-radius: 6px; background: #fff; overflow-wrap: anywhere; }
.cca-staff-calls__eyebrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; color: #526157; font-size: 13px; }
.cca-staff-calls .cca-staff-calls__title { margin: 0 0 12px; color: var(--cca-calls-accent, #2c3e50); font-size: clamp(21px, 2vw, 26px); font-weight: 700; line-height: 1.3; }
.cca-staff-calls .cca-staff-calls__state { margin: 0; color: #526157; font-size: 14px; }
.cca-staff-calls__details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 24px 0 0; }
.cca-staff-calls__details > div { min-width: 0; }
.cca-staff-calls__details dt { margin: 0 0 4px; color: #526157; font-size: 12px; font-weight: 600; }
.cca-staff-calls__details dd { margin: 0; color: #243128; font-size: 15px; line-height: 1.5; }
.cca-staff-calls__card-documents { margin-top: 24px; padding-top: 20px; border-top: 1px solid #dfe4dd; }
.cca-staff-calls .cca-staff-calls__card-documents h4 { margin: 0 0 6px; color: #243128; font-size: 13px; font-weight: 700; }
.cca-staff-calls__card-documents ul + h4 { margin-top: 12px; }
@media (min-width: 1025px) {
    .cca-staff-calls:is([data-columns="3"], [data-columns="4"]) .cca-staff-calls__details { grid-template-columns: minmax(0, 1fr); }
    .cca-staff-calls:is([data-columns="3"], [data-columns="4"]) .cca-staff-calls__card { padding: 22px; }
}
@media (max-width: 1024px) { .cca-staff-calls__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .cca-staff-calls__grid { grid-template-columns: minmax(0, 1fr); } .cca-staff-calls__card { padding: 22px; } }
@media (max-width: 380px) { .cca-staff-calls__details { grid-template-columns: minmax(0, 1fr); } }
.cca-staff-calls__status { display: inline-block; text-align: center; padding: 5px 8px; min-width: 100px; border-radius: 4px; background: #edf0ef; color: #48594d; font-size: 12px; font-weight: 700; }
.cca-staff-calls__status--obert { background: #bbf7d0; color: #14532d; box-shadow: inset 0 0 0 1px #4ade80; }
.cca-staff-calls__status--en_proces { background: #fed7aa; color: #7c2d12; box-shadow: inset 0 0 0 1px #fb923c; }
.cca-staff-calls__status--tancat,
.cca-staff-calls__status--finalitzat,
.cca-staff-calls__status--anullat { background: #fecaca; color: #7f1d1d; box-shadow: inset 0 0 0 1px #f87171; }
.cca-staff-calls__status-note { display: block; margin-top: 7px; color: #526157; font-size: 12px; }
.cca-staff-calls .cca-staff-calls__documents { min-width: 0; padding: 0; margin: 0; list-style: none; }
.cca-staff-calls .cca-staff-calls__documents li { margin: 0 0 4px; padding: 0; list-style: none; }
.cca-staff-calls .cca-staff-calls__documents a { display: inline-block; padding: 3px 0; font-size: 14px; line-height: 1.4; color: #005995; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.cca-staff-calls__document-toggle { margin: 0; }
.cca-staff-calls .cca-staff-calls__document-toggle > summary { padding: 10px 12px; border: 1px solid #dfe4dd; border-radius: 4px; background: #f4f6f2; color: #005995; font-size: 14px; font-weight: 600; line-height: 1.4; cursor: pointer; }
.cca-staff-calls__document-toggle > summary:hover { background: #edf2ef; }
.cca-staff-calls__document-toggle[open] > summary { margin-bottom: 12px; }
.cca-staff-calls__document-count { white-space: nowrap; }
.cca-staff-calls__pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 18px; }
.cca-staff-calls__pagination p { margin: 0; font-size: 14px; }
.cca-staff-calls__pagination > div { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.cca-staff-calls__pagination span { font-size: 14px; }
.cca-staff-calls :is(input, select, button, a, summary, [tabindex]):focus-visible { outline: 3px solid #005995; outline-offset: 3px; }
.cca-staff-calls .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 600px) { .cca-staff-calls__filters { padding: 16px; gap: 12px; } .cca-staff-calls__pagination { align-items: flex-start; } }


/* Horizontal cards keep the identity, details and documents in separate columns. */
.cca-staff-calls .cca-staff-calls__contract { margin: 0 0 6px; color: #526157; font-size: 14px; font-weight: 600; }
.cca-staff-calls[data-layout="horizontal"] .cca-staff-calls__grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.cca-staff-calls[data-layout="horizontal"] .cca-staff-calls__card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, .85fr); align-items: start; gap: 28px; padding: 28px; border-top: 1px solid #dfe4dd; border-left: 4px solid var(--cca-calls-accent, #2c3e50); }
.cca-staff-calls[data-layout="horizontal"] .cca-staff-calls__card > header { min-width: 0; }
.cca-staff-calls[data-layout="horizontal"] .cca-staff-calls__title { font-size: clamp(21px, 2vw, 25px); }
.cca-staff-calls[data-layout="horizontal"] .cca-staff-calls__details { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.cca-staff-calls[data-layout="horizontal"] .cca-staff-calls__details:last-child { grid-column: 2 / -1; }
.cca-staff-calls[data-layout="horizontal"] .cca-staff-calls__card-documents { min-width: 0; margin: 0; padding: 0 0 0 24px; border-top: 0; border-left: 1px solid #dfe4dd; }
@media (min-width: 761px) and (max-width: 1024px) {
    .cca-staff-calls[data-layout="horizontal"] .cca-staff-calls__card { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; }
    .cca-staff-calls[data-layout="horizontal"] .cca-staff-calls__card > header { grid-column: 1 / -1; }
    .cca-staff-calls[data-layout="horizontal"] .cca-staff-calls__details:last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    .cca-staff-calls[data-layout="horizontal"] .cca-staff-calls__card { display: block; padding: 22px; }
    .cca-staff-calls[data-layout="horizontal"] .cca-staff-calls__details { margin-top: 24px; }
    .cca-staff-calls[data-layout="horizontal"] .cca-staff-calls__card-documents { margin-top: 24px; padding: 20px 0 0; border-left: 0; border-top: 1px solid #dfe4dd; }
}
@media (max-width: 380px) {
    .cca-staff-calls[data-layout="horizontal"] .cca-staff-calls__details { grid-template-columns: minmax(0, 1fr); }
}

/* Ofertes de feina: llistat i dades de la fitxa dins de la plantilla del tema. */
.cca-job-offers { margin: 32px 0; font-family: inherit; scroll-margin-top: 100px; }
.cca-job-offers .cca-job-offers__heading { margin: 0 0 28px; font-size: clamp(26px, 3vw, 36px); font-weight: 700; line-height: 1.3; color: #243128; }
.cca-job-offers .cca-job-offers__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 0; margin: 0; list-style: none; }
.cca-job-offers .cca-job-offers__item { padding: 0; margin: 0; min-width: 0; list-style: none; }
.cca-job-offers__card { display: flex; flex-direction: column; align-items: flex-start; height: 100%; padding: 28px; border: 1px solid #dfe4dd; border-top: 4px solid var(--cca-job-accent, #00897b); border-radius: 12px; background: #fff; box-sizing: border-box; }
.cca-job-offers__status { display: inline-block; padding: 5px 10px; border-radius: 4px; background: #e8f3ec; color: #245b3c; font-size: 12px; font-weight: 700; line-height: 1.5; }
.cca-job-offers__status--closed { background: #f0f0ed; color: #585e58; }
.cca-job-offers .cca-job-offers__title { margin: 18px 0; font-size: clamp(21px, 2vw, 26px); font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.cca-job-offers__title a { color: #243128; text-decoration: underline; text-underline-offset: 4px; }
.cca-job-offers__meta, .cca-job-details__fields { display: grid; gap: 9px; width: 100%; margin: 0 0 20px; font-size: 15px; line-height: 1.5; }
.cca-job-offers__meta > div, .cca-job-details__fields > div { display: grid; grid-template-columns: minmax(85px, .8fr) minmax(0, 1.8fr); gap: 12px; }
.cca-job-offers__meta dt, .cca-job-details__fields dt { margin: 0; font-weight: 600; color: #526157; }
.cca-job-offers__meta dd, .cca-job-details__fields dd { margin: 0; color: #243128; overflow-wrap: anywhere; }
.cca-job-offers__excerpt { margin: 0 0 22px; color: #47564d; font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.cca-job-offers .cca-job-offers__link { display: inline-flex; gap: 14px; align-items: center; margin-top: auto; padding: 6px 0; color: #005995; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.cca-job-offers__link:focus-visible, .cca-job-offers__title a:focus-visible, .cca-job-details__button:focus-visible { outline: 3px solid #005995; outline-offset: 4px; }
.cca-job-offers__empty { padding: 24px; border: 1px solid #dfe4dd; border-radius: 8px; background: #f4f6f2; }
.cca-job-offers__pagination { margin-top: 28px; }
.cca-job-offers__pagination ul.page-numbers { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cca-job-offers__pagination .page-numbers > li { margin: 0; padding: 0; list-style: none; }
.cca-job-offers__pagination a.page-numbers, .cca-job-offers__pagination span.page-numbers { display: block; min-width: 36px; padding: 8px 12px; box-sizing: border-box; border: 1px solid #dfe4dd; border-radius: 4px; text-align: center; }
.cca-job-offers__pagination .current { background: #243128; color: #fff; }
.cca-job-details { margin: 0 0 28px; padding: 24px; border: 1px solid #dfe4dd; border-radius: 12px; background: #f4f6f2; }
.cca-job-details__fields { margin: 18px 0 0; }
.cca-job-details__fields:empty { display: none; }
.cca-job-details__apply { margin: 28px 0; }
.cca-job-details__apply a.cca-job-details__button { display: inline-flex; align-items: center; gap: 16px; padding: 14px 22px; border-radius: 6px; background: #005995; color: #fff; font-weight: 700; text-decoration: none; }
.cca-job-details__apply a.cca-job-details__button:hover { background: #004370; color: #fff; }
@media (max-width: 700px) {
    .cca-job-offers .cca-job-offers__grid { grid-template-columns: 1fr; gap: 18px; }
    .cca-job-offers__card { padding: 22px; }
    .cca-job-offers__meta > div, .cca-job-details__fields > div { grid-template-columns: 1fr; gap: 2px; }
}

/* Botiga Social: catàleg expositiu de fotografies i noms. */
.cca-product-gallery { margin: 32px 0; font-family: inherit; }
.cca-product-gallery .cca-product-gallery__heading {
    margin: 0 0 28px;
    padding: 0 0 16px;
    color: #243128;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.cca-product-gallery__heading::after { content: ''; display: block; width: 48px; height: 4px; margin-top: 16px; background: var(--cca-product-accent, #00897b); border-radius: 2px; }
.cca-product-gallery .cca-product-gallery__grid { display: grid; grid-template-columns: repeat(var(--cca-product-columns, 3), minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.cca-product-gallery .cca-product-gallery__item { min-width: 0; margin: 0; padding: 0; list-style: none; }
.cca-product-gallery .cca-product-gallery__link { display: block; height: 100%; border-radius: 12px; text-decoration: none; }
.cca-product-gallery__link:hover .cca-product-gallery__name,
.cca-product-gallery__link:focus-visible .cca-product-gallery__name { text-decoration: underline; }
.cca-product-gallery__link:focus-visible { outline: 2px solid var(--cca-product-accent, #00897b); outline-offset: 3px; }
.cca-product-gallery .cca-product-gallery__card { height: 100%; margin: 0; overflow: hidden; border: 1px solid #dfe4dd; border-radius: 12px; background: #fff; box-sizing: border-box; }
.cca-product-gallery__media { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; overflow: hidden; background: #f4f6f2; }
.cca-product-gallery .cca-product-gallery__image { display: block; width: 100%; height: 100%; min-width: 0; max-width: 100%; margin: 0; object-fit: contain; }
.cca-product-gallery--contain .cca-product-gallery__image { padding: 16px; box-sizing: border-box; }
.cca-product-gallery--cover .cca-product-gallery__image { object-fit: cover; }
.cca-product-gallery .cca-product-gallery__name { padding: 22px 24px; color: #243128; font-size: 20px; font-weight: 700; font-style: normal; line-height: 1.4; overflow-wrap: anywhere; }
@media (max-width: 900px) {
    .cca-product-gallery .cca-product-gallery__grid { grid-template-columns: repeat(var(--cca-product-tablet, 2), minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 600px) {
    .cca-product-gallery .cca-product-gallery__grid { grid-template-columns: repeat(var(--cca-product-mobile, 1), minmax(0, 1fr)); gap: 16px; }
    .cca-product-gallery .cca-product-gallery__name { padding: 18px 20px; font-size: 18px; }
}

/* Dos accessos directes a pàgines. */
.cca-page-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 24px 0;
}
.cca-page-links .cca-page-links__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-width: 0;
    min-height: 132px;
    padding: clamp(24px, 3vw, 40px);
    box-sizing: border-box;
    border: 1px solid #dfe4dd;
    border-inline-start: 6px solid var(--cca-link-color, #005995);
    border-radius: 12px;
    background: #fff;
    color: #243128;
    font-family: inherit;
    text-decoration: none !important;
    transition: border-color .2s ease, background-color .2s ease;
}
.cca-page-links__text { display: grid; gap: 8px; min-width: 0; }
.cca-page-links__title {
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.cca-page-links__description { font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.cca-page-links__arrow { flex: 0 0 24px; color: var(--cca-link-color, #005995); }
.cca-page-links a.cca-page-links__item:hover {
    background: #f4f6f2;
    border-color: var(--cca-link-color, #005995);
    color: #243128;
}
.cca-page-links a.cca-page-links__item:hover .cca-page-links__title {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.cca-page-links a.cca-page-links__item:focus-visible {
    outline: 3px solid #005995;
    outline-offset: 4px;
}
@media (max-width: 600px) {
    .cca-page-links { grid-template-columns: 1fr; gap: 16px; }
    .cca-page-links .cca-page-links__item { min-height: 112px; }
}

.cca-page-links--cards .cca-page-links__item {
    align-items: flex-start;
    min-height: 156px;
    border-inline-start-width: 1px;
    border-block-start: 5px solid var(--cca-link-color, #005995);
    box-shadow: 0 4px 16px rgb(36 49 40 / 8%);
}
.cca-page-links--cards .cca-page-links__arrow {
    box-sizing: content-box;
    padding: 8px;
    border: 1px solid #dfe4dd;
    border-radius: 50%;
}
.cca-page-links--compact {
    grid-template-columns: 1fr;
    gap: 8px;
}
.cca-page-links--compact .cca-page-links__item {
    gap: 16px;
    min-height: 56px;
    padding: 14px 18px;
    border-inline-start-width: 1px;
    border-radius: 6px;
    background: #f4f6f2;
}
.cca-page-links--compact .cca-page-links__text { gap: 4px; }
.cca-page-links--compact .cca-page-links__title { font-size: 18px; }
.cca-page-links--compact .cca-page-links__description { font-size: 14px; line-height: 1.45; }

:root {
    --cca-accent: #82bc00;
    /* Fallback global si no se define en el widget */
}

/* 1. HERO BANNER V2 */
.ccm-hero-v2 {
    width: 100%;
    height: var(--hero-h);
    background-image: var(--hero-img);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    clear: both;
}

.ccm-hero-v2-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, var(--grad-start)) 0%,
            rgba(255, 255, 255, var(--grad-mid)) 40%,
            rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.ccm-hero-v2-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    position: relative;
    z-index: 2;
}

.ccm-hero-v2-content {
    max-width: 650px;
}

.ccm-hero-v2-badge {
    display: inline-block;
    background: var(--cca-accent);
    color: #fff;
    padding: 6px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px color-mix(in srgb, var(--cca-accent) 30%, transparent);
}

.ccm-hero-v2-title {
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.1;
    font-weight: 800;
    color: #005995;
    margin: 0 0 40px 0;
    text-transform: uppercase;
}

.ccm-hero-v2-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--cca-accent);
    color: #fff !important;
    padding: 18px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none !important;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px color-mix(in srgb, var(--cca-accent) 40%, transparent);
}

.ccm-hero-v2-btn:hover {
    background: #005995;
    transform: translateX(8px);
}

.ccm-hero-v2-shape {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 3;
}

@media (max-width: 1024px) {
    .ccm-hero-v2-overlay {
        background: linear-gradient(to bottom, rgba(255, 255, 255, calc(var(--grad-start) + 0.1)) 0%, rgba(255, 255, 255, 0.7) 100%);
    }

    .ccm-hero-v2-container {
        padding: 0 30px;
        text-align: center;
    }

    .ccm-hero-v2-content {
        max-width: 100%;
    }
}

/* 2. INFO LATERAL + CHECKLIST */
.ccm-full-area-wrap { 
    width: 100%; max-width: 1400px; margin: 60px auto; padding: 0 40px; clear: both; 
    position: relative; z-index: 1;
}
/* Efecto Glow de Fondo (Ambiental) */
.ccm-full-area-wrap::before {
    content: ''; position: absolute; top: 0; right: 0; width: 600px; height: 600px;
    background: radial-gradient(circle, var(--cca-accent) 0%, transparent 70%);
    opacity: 0.12; filter: blur(90px); z-index: -1; pointer-events: none;
}

/* Cabecera Título */
.ccm-page-header {
    margin-bottom: 60px;
    position: relative;
}

.ccm-header-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    background: var(--cca-accent);
    padding: 6px 16px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    box-shadow: 0 6px 20px color-mix(in srgb, var(--cca-accent) 40%, transparent);
}

.ccm-header-title {
    font-size: 56px;
    font-weight: 900;
    color: #005995;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.05;
    letter-spacing: -1px;
}

.ccm-header-line {
    display: block;
    width: 100px;
    height: 8px;
    background: linear-gradient(90deg, var(--cca-accent), color-mix(in srgb, var(--cca-accent) 60%, transparent));
    margin-top: 20px;
    border-radius: 4px;
}

/* Grid Cuerpo */
.ccm-area-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 70px;
}

/* Tarjetas de Sidebar (MÁS VIDA: Fondo sólido con gradiente) */
.ccm-area-card {
    background: linear-gradient(135deg, var(--cca-accent) 0%, color-mix(in srgb, var(--cca-accent) 60%, black) 100%);
    border: none;
    border-radius: 24px;
    padding: 40px 35px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px color-mix(in srgb, var(--cca-accent) 35%, transparent);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.ccm-area-card::after {
    content: '';
    position: absolute;
    right: -30px;
    top: -30px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.ccm-area-side-title {
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.ccm-side-accent {
    display: block;
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    margin-top: 10px;
    border-radius: 2px;
}

.ccm-area-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 2;
}

.ccm-area-contact-list li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
}

.ccm-area-contact-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ccm-area-contact-list strong {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: #fff;
    opacity: 0.7;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.ccm-area-contact-list a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
}

.ccm-area-contact-list a:hover {
    opacity: 0.8;
}

/* Contenido Principal */
.ccm-area-intro {
    font-size: 20px;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 50px;
    font-weight: 500;
}

.ccm-area-intro p:first-child::first-letter {
    float: left;
    font-size: 75px;
    line-height: 0.8;
    font-weight: 900;
    color: var(--cca-accent);
    margin-right: 15px;
    margin-top: 5px;
    text-shadow: 3px 3px 0 color-mix(in srgb, var(--cca-accent) 20%, transparent);
}

/* Introducció independent: conté la capitular fins i tot amb textos curts. */
.cca-intro-paragraph {
    display: flow-root;
    font-size: var(--cca-intro-size, 20px);
    line-height: var(--cca-intro-leading, 1.8);
    font-weight: var(--cca-intro-weight, 500);
    text-align: var(--cca-intro-align, inherit);
    color: var(--cca-intro-color, #334155);
    margin-bottom: var(--cca-intro-bottom, 50px);
}
.cca-intro-paragraph.cca-intro-paragraph--no-dropcap > p:first-child::first-letter {
    float: none; font-size: inherit; line-height: inherit; font-weight: inherit;
    color: inherit; margin: 0; text-shadow: none;
}
.cca-intro-paragraph > p:first-child { margin-top: 0; }
.cca-intro-paragraph > p:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
    .cca-intro-paragraph { font-size: var(--cca-intro-mobile-size, 18px); margin-bottom: var(--cca-intro-bottom, 32px); }
    .cca-intro-paragraph > p:first-child::first-letter { font-size: 60px; margin-right: 12px; }
}

/* Checklist flotante e interactiva */
.ccm-area-checklist {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 30px;
}

.ccm-area-checklist li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    background: #ffffff;
    padding: 20px 25px;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--cca-accent) 15%, transparent);
    box-shadow: 0 10px 20px color-mix(in srgb, var(--cca-accent) 5%, transparent);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ccm-area-checklist li:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px color-mix(in srgb, var(--cca-accent) 20%, transparent);
    border-color: var(--cca-accent);
}

/* The entire linked pill is clickable, with the same spacing as plain pills. */
.ccm-area-checklist li.ccm-area-checklist-linked { padding: 0; }
.ccm-area-checklist li > .ccm-area-checklist-link {
    display: flex;
    align-items: center;
    gap: 15px;
    align-self: stretch;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 20px 25px;
    border-radius: inherit;
    color: inherit;
    font: inherit;
    text-decoration: none;
}
.ccm-area-checklist-link > span { min-width: 0; overflow-wrap: anywhere; }
.ccm-area-checklist li > .ccm-area-checklist-link:hover { color: var(--cca-accent, #82bc00); }
.ccm-area-checklist-link:focus-visible { outline: 3px solid var(--cca-accent, #82bc00); outline-offset: 3px; }

.ccm-area-checklist li svg {
    width: 32px;
    height: 32px;
    color: #fff;
    background: var(--cca-accent);
    padding: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 4px 10px color-mix(in srgb, var(--cca-accent) 40%, transparent);
}

@media(max-width: 1024px) {
    .ccm-header-title {
        font-size: 38px;
    }

    .ccm-area-grid {
        grid-template-columns: 1fr;
    }

    .ccm-area-checklist {
        grid-template-columns: 1fr;
    }
}

/* 3. MOSAICO DE AREAS */
.ccm-v4-fw-section {
    width: 100%;
    clear: both;
    background: #fff;
}

.ccm-v4-fw-header {
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.ccm-v4-fw-title {
    font-size: 2rem;
    font-weight: 800;
    color: #005995;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ccm-v4-fw-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2px;
}

.ccm-v4-card {
    background-color: var(--card-bg);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    min-height: 250px;
    display: flex;
}

.ccm-v4-initial {
    position: absolute;
    right: -10px;
    bottom: -20px;
    font-size: 160px;
    font-weight: 900;
    color: #fff;
    opacity: 0.12;
    pointer-events: none;
    line-height: 1;
    transition: all 0.5s ease;
}

.ccm-v4-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 40px 30px;
    text-decoration: none !important;
    position: relative;
    z-index: 2;
}

.ccm-v4-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.ccm-v4-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 15px;
    border-radius: 30px;
    align-self: flex-start;
    transition: all 0.3s ease;
}

.ccm-v4-footer span {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ccm-v4-card:hover {
    z-index: 5;
    filter: contrast(1.1) brightness(1.05);
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.ccm-v4-card:hover .ccm-v4-footer {
    background: #fff;
    color: var(--card-bg);
    font-weight: 800;
}

.ccm-v4-card:hover .ccm-v4-initial {
    opacity: 0.2;
    transform: scale(1.1);
}

@media(max-width: 1400px) {
    .ccm-v4-fw-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media(max-width: 900px) {
    .ccm-v4-fw-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 600px) {
    .ccm-v4-fw-grid {
        grid-template-columns: 1fr;
    }
}

/* 4. SERVEIS TECNICS */
.ccm-elite-st-container { 
    width: 100%; max-width: 1400px; margin: 80px auto; padding: 0 40px; clear: both; 
    position: relative; z-index: 1;
}
/* Efecto Glow de Fondo (Ambiental) */
.ccm-elite-st-container::before {
    content: ''; position: absolute; top: -50px; right: -5%; width: 700px; height: 700px;
    background: radial-gradient(circle, var(--cca-accent) 0%, transparent 70%);
    opacity: 0.12; filter: blur(100px); z-index: -1; pointer-events: none;
}
.ccm-elite-st-container::after {
    content: ''; position: absolute; bottom: 100px; left: -5%; width: 500px; height: 500px;
    background: radial-gradient(circle, var(--cca-accent) 0%, transparent 70%);
    opacity: 0.08; filter: blur(80px); z-index: -1; pointer-events: none;
}

.ccm-elite-st-header { margin-bottom: 50px; }
.ccm-elite-st-badge { display: inline-block; font-size: 13px; font-weight: 800; color: #fff; background: var(--cca-accent); padding: 6px 16px; border-radius: 50px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 15px; box-shadow: 0 6px 20px color-mix(in srgb, var(--cca-accent) 40%, transparent); }
.ccm-elite-st-h1 { font-size: 56px; font-weight: 900; color: var(--cca-accent); text-transform: uppercase; margin: 0; line-height: 1.05; letter-spacing: -1px; }
.ccm-elite-st-line { display: block; width: 100px; height: 8px; background: linear-gradient(90deg, var(--cca-accent), color-mix(in srgb, var(--cca-accent) 60%, transparent)); margin-top: 20px; border-radius: 4px; }
.ccm-elite-st-intro { font-size: 20px; line-height: 1.8; color: #fff; margin-bottom: 60px; padding: 50px; background: linear-gradient(135deg, var(--cca-accent) 0%, color-mix(in srgb, var(--cca-accent) 60%, black) 100%); border-radius: 30px; box-shadow: 0 20px 40px color-mix(in srgb, var(--cca-accent) 30%, transparent); }
.ccm-elite-st-intro p:first-child::first-letter { float: left; font-size: 75px; line-height: 0.8; font-weight: 900; color: #fff; margin-right: 15px; margin-top: 5px; opacity: 0.9; text-shadow: none; }

.ccm-elite-st-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 20px 30px;
}

.ccm-elite-st-list br {
    display: none !important;
}

.ccm-elite-st-list li {
    display: flex !important;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.5;
    padding: 20px 25px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--cca-accent) 15%, transparent);
    box-shadow: 0 10px 20px color-mix(in srgb, var(--cca-accent) 5%, transparent);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ccm-elite-st-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px color-mix(in srgb, var(--cca-accent) 20%, transparent);
    border-color: var(--cca-accent);
}

.ccm-st-icon {
    width: 32px;
    height: 32px;
    background: var(--cca-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    box-shadow: 0 4px 10px color-mix(in srgb, var(--cca-accent) 40%, transparent);
}

.ccm-st-icon svg {
    width: 16px;
    height: 16px;
}

@media(max-width: 1024px) {
    .ccm-elite-st-h1 {
        font-size: 38px;
    }

    .ccm-elite-st-list {
        grid-template-columns: 1fr;
    }

    .ccm-elite-st-container {
        padding: 0 20px;
    }
}

/* 4B. SUB-PESTAÑES VISUAL (Container + Item, recursivos) */
.ccm-stv-wrap {
    margin: 30px 0 15px;
    border: 1px solid color-mix(in srgb, var(--cca-accent) 15%, transparent);
    border-radius: 18px;
    background: color-mix(in srgb, var(--cca-accent) 3%, #fff);
    overflow: hidden;
}

.ccm-stv-nav {
    display: flex;
    gap: 4px;
    padding: 8px 10px;
    background: color-mix(in srgb, var(--cca-accent) 6%, #f8fafc);
    border-bottom: 1px solid color-mix(in srgb, var(--cca-accent) 10%, transparent);
    overflow-x: auto;
    scrollbar-width: none;
}
.ccm-stv-nav::-webkit-scrollbar { display: none; }

.ccm-stv-btn {
    appearance: none;
    border: 0;
    background: transparent;
    font-family: inherit;
    line-height: inherit;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 800;
    font-size: 13px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: 10px;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    user-select: none;
}

.ccm-stv-btn svg {
    opacity: 0.4;
    transition: transform 0.25s ease;
}

.ccm-stv-btn:hover {
    background: color-mix(in srgb, var(--cca-accent) 10%, transparent);
    color: var(--cca-accent);
}

.ccm-stv-btn.active {
    background: var(--cca-accent, #82bc00);
    color: #fff;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--cca-accent) 35%, transparent);
}

.ccm-stv-btn.active svg {
    opacity: 0.7;
    transform: rotate(90deg);
}

.ccm-stv-panes {
    padding: 25px 30px;
}

.ccm-stv-pane {
    display: none;
}

.ccm-stv-pane.active {
    display: block;
    animation: ccmFadeSub 0.35s ease;
}

.ccm-stv-pane-body {
    font-size: 17px;
    line-height: 1.8;
    color: #334155;
}

.ccm-stv-pane-body h3,
.ccm-stv-pane-body h4 {
    color: var(--cca-accent, #82bc00);
    font-weight: 800;
    margin-bottom: 15px;
}

.ccm-stv-pane-body p {
    margin: 0 0 12px;
}

/* Nesting: dins d'un pane body pot haver-hi un altre ccm-stv-wrap */
.ccm-stv-pane-body .ccm-stv-wrap {
    margin-top: 20px;
}

/* 5. SUB-TABS REPEATER */
.ccm-sub-container {
    margin: 40px 0;
    border: none;
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

.ccm-sub-nav {
    display: flex;
    background: #f8fafc;
    padding: 10px;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.ccm-sub-nav::-webkit-scrollbar {
    display: none;
}

.ccm-sub-trigger {
    padding: 15px 25px;
    cursor: pointer;
    font-weight: 800;
    font-size: 14px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 12px;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ccm-sub-trigger:hover {
    background: color-mix(in srgb, var(--cca-accent) 10%, transparent);
    color: var(--cca-accent);
}

.ccm-sub-trigger:focus-visible,
.ccm-tab-trigger:focus-visible,
.ccm-vtabs-link:focus-visible,
.ccm-stv-btn:focus-visible,
.ccm-tab-mobile-trigger:focus-visible,
.ccm-stv-mobile-trigger:focus-visible,
.ccm-elite-btn:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--cca-accent, #82bc00) 50%, #1d4ed8);
    outline-offset: 3px;
}

.ccm-sub-trigger.active {
    background: var(--cca-accent);
    color: #fff;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--cca-accent) 40%, transparent);
}

.ccm-sub-panes {
    padding: 40px;
    background: #fff;
}

.ccm-sub-pane {
    display: none;
    animation: ccmFadeSub 0.4s ease;
}

.ccm-sub-pane.active {
    display: block;
}

@keyframes ccmFadeSub {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ccm-sub-body {
    font-size: 17px;
    line-height: 1.8;
    color: #475569;
}

.ccm-sub-body h3 {
    color: var(--cca-accent);
    margin-bottom: 20px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 6. WIDGETS INSTITUCIONALES (TRESORERIA ELITE) */
.ccm-elite-tabs-wrap { 
    width: 100%; max-width: 1400px; margin: 80px auto; padding: 0 40px; clear: both; 
    position: relative; z-index: 1;
}
/* Efecto Glow de Fondo (Ambiental) */
.ccm-elite-tabs-wrap::before {
    content: ''; position: absolute; top: 100px; left: -10%; width: 800px; height: 800px;
    background: radial-gradient(circle, var(--cca-accent) 0%, transparent 70%);
    opacity: 0.1; filter: blur(120px); z-index: -1; pointer-events: none;
}
.ccm-elite-header { margin-bottom: 40px; position: relative; }
.ccm-elite-badge { display: inline-block; font-size: 13px; font-weight: 800; color: #fff; background: var(--cca-accent); padding: 6px 16px; border-radius: 50px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 15px; box-shadow: 0 6px 20px color-mix(in srgb, var(--cca-accent) 40%, transparent); }
.ccm-elite-h1 { font-size: 56px; font-weight: 900; color: var(--cca-accent); text-transform: uppercase; margin: 0; line-height: 1.05; letter-spacing: -1px; }
.ccm-elite-h1-line { display: block; width: 100px; height: 8px; background: linear-gradient(90deg, var(--cca-accent), color-mix(in srgb, var(--cca-accent) 60%, transparent)); margin-top: 20px; border-radius: 4px; }

/* Bloque Intro Vibrante */
.ccm-elite-intro-block {
    margin-bottom: 80px;
    padding: 50px;
    background: linear-gradient(135deg, var(--cca-accent) 0%, color-mix(in srgb, var(--cca-accent) 60%, black) 100%);
    border-radius: 30px;
    box-shadow: 0 20px 40px color-mix(in srgb, var(--cca-accent) 30%, transparent);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.ccm-elite-intro-block::after {
    content: '';
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.ccm-elite-intro-text {
    font-size: 22px;
    line-height: 1.6;
    color: #fff;
    margin-bottom: 40px;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.ccm-elite-checklist {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 30px;
    position: relative;
    z-index: 2;
}

.ccm-elite-checklist li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.ccm-check-icon {
    width: 30px;
    height: 30px;
    background: var(--cca-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.ccm-check-icon svg {
    width: 16px;
    height: 16px;
}

.ccm-elite-tabs-box {
    background: #fff;
    border: none;
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

.ccm-elite-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.ccm-elite-btn {
    background: #f1f5f9;
    border: none;
    padding: 16px 35px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    font-size: 14px;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ccm-elite-btn span {
    opacity: 0.5;
    margin-right: 8px;
    font-family: monospace;
}

.ccm-elite-btn:hover {
    background: color-mix(in srgb, var(--cca-accent) 15%, transparent);
    color: var(--cca-accent);
    transform: translateY(-2px);
}

.ccm-elite-btn.active {
    background: var(--cca-accent);
    color: #fff;
    box-shadow: 0 12px 25px color-mix(in srgb, var(--cca-accent) 40%, transparent);
    transform: translateY(-3px);
}

.ccm-elite-panel {
    display: none;
    animation: ccmFadeIn 0.5s ease;
}

.ccm-elite-panel.active {
    display: block;
}

.ccm-panel-inner {
    background: color-mix(in srgb, var(--cca-accent) 3%, transparent);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid color-mix(in srgb, var(--cca-accent) 15%, transparent);
}

.ccm-panel-inner h3 {
    color: var(--cca-accent);
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.ccm-elite-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--cca-accent);
    color: #fff !important;
    padding: 20px 40px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none !important;
    margin-top: 35px;
    transition: 0.3s;
    box-shadow: 0 12px 30px color-mix(in srgb, var(--cca-accent) 40%, transparent);
}

.ccm-elite-action-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px color-mix(in srgb, var(--cca-accent) 50%, transparent);
    filter: brightness(1.1);
}

@media (max-width: 900px) {
    .ccm-elite-h1 {
        font-size: 38px;
    }

    .ccm-elite-intro-block {
        margin-bottom: 60px;
        padding: 30px;
    }

    .ccm-elite-checklist {
        grid-template-columns: 1fr;
    }

    .ccm-elite-tabs-box {
        padding: 30px;
    }
}

/* 7. INSTITUCIO TABS ELITE (ESTRUCTURA PARENT/CHILD) */
.ccm-tabs-elite { 
    display: flex; gap: 70px; max-width: 1400px; margin: 80px auto; padding: 0 40px; clear: both; align-items: flex-start; 
    position: relative; z-index: 1;
}
/* Efecto Glow de Fondo (Ambiental) */
.ccm-tabs-elite::after {
    content: ''; position: absolute; bottom: 0; right: 0; width: 500px; height: 500px;
    background: radial-gradient(circle, var(--cca-accent) 0%, transparent 70%);
    opacity: 0.12; filter: blur(80px); z-index: -1; pointer-events: none;
}
.ccm-tabs-nav { list-style: none; padding: 0; margin: 0; width: 340px; flex-shrink: 0; border-right: none; position: sticky; top: 120px; display: flex; flex-direction: column; gap: 10px; }

.ccm-tab-trigger {
    padding: 20px 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 16px;
    background: #f8fafc;
}

.ccm-tab-trigger span {
    font-size: 12px;
    margin-right: 12px;
    opacity: 0.5;
    font-family: monospace;
    color: var(--cca-accent);
    transition: color 0.3s;
}

.ccm-tab-trigger:hover {
    color: var(--cca-accent);
    background: color-mix(in srgb, var(--cca-accent) 5%, transparent);
    transform: translateX(5px);
}

.ccm-tab-trigger.active {
    color: #fff;
    background: var(--cca-accent);
    box-shadow: 0 10px 25px color-mix(in srgb, var(--cca-accent) 40%, transparent);
    transform: translateX(10px);
}

.ccm-tab-trigger.active span {
    color: #fff;
    opacity: 0.8;
}

.ccm-tab-line {
    display: none;
}

/* Ocultamos la línea, ahora usamos botón sólido */
.ccm-tabs-content {
    flex-grow: 1;
    padding-left: 0;
}

.ccm-tab-pane {
    display: none;
    animation: ccmSlideIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ccm-tab-pane.active {
    display: block;
}

.ccm-tab-pane-title {
    font-size: 42px;
    font-weight: 900;
    color: var(--cca-accent);
    margin-bottom: 35px;
    text-transform: uppercase;
    border-bottom: 4px solid color-mix(in srgb, var(--cca-accent) 20%, transparent);
    padding-bottom: 20px;
}

.ccm-tab-pane-body {
    font-size: 18px;
    line-height: 1.8;
    color: #334155;
}

/* El contingut propi de la pestanya sempre apareix abans dels seus fills. */
.ccm-tab-pane-intro,
.ccm-tab-pane-children {
    min-width: 0;
    max-width: 100%;
}

.ccm-tab-pane-intro + .ccm-tab-pane-children {
    margin-top: 34px;
}

.ccm-tab-pane-intro > :first-child,
.ccm-tab-pane-children > :first-child {
    margin-top: 0;
}

.ccm-tab-pane-intro > :last-child,
.ccm-tab-pane-children > :last-child {
    margin-bottom: 0;
}

.ccm-sub-wrap {
    margin: 45px 0;
    border: none;
    border-radius: 24px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.ccm-sub-wrap .ccm-sub-nav {
    display: flex;
    background: #f8fafc;
    padding: 10px;
    gap: 10px;
    overflow-x: auto;
}

.ccm-sub-wrap .ccm-sub-btn {
    padding: 15px 25px;
    cursor: pointer;
    font-weight: 800;
    font-size: 14px;
    color: #64748b;
    text-transform: uppercase;
    border-radius: 12px;
    white-space: nowrap;
    transition: 0.3s;
}

.ccm-sub-wrap .ccm-sub-btn:hover {
    background: color-mix(in srgb, var(--cca-accent) 10%, transparent);
    color: var(--cca-accent);
}

.ccm-sub-wrap .ccm-sub-btn.active {
    background: var(--cca-accent);
    color: #fff;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--cca-accent) 40%, transparent);
}

.ccm-sub-wrap .ccm-sub-panes {
    padding: 40px;
}

.ccm-sub-wrap .ccm-sub-pane {
    display: none;
    animation: ccmFadeSub 0.4s ease;
}

.ccm-sub-wrap .ccm-sub-pane.active {
    display: block;
}

@keyframes ccmSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 1024px) {
    .ccm-tabs-elite {
        flex-direction: column;
        gap: 40px;
        padding: 0 20px;
    }

    .ccm-tabs-nav {
        width: 100%;
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        position: static;
        padding-bottom: 20px;
    }

    .ccm-tab-trigger {
        padding: 15px 25px;
        white-space: nowrap;
        transform: none !important;
    }

    .ccm-tabs-content {
        padding-left: 0;
        width: 100%;
    }
}

@keyframes ccmFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 8. VERTICAL TABS ELITE (NUEVO WIDGET AÑADIDO) */
.ccm-vtabs-elite-wrap {
    width: 100%; max-width: 1400px; margin: 80px auto; padding: 0; clear: both;
    position: relative; z-index: 1;
}
.ccm-vtabs-elite-wrap::before {
    content: ''; position: absolute; top: -50px; right: -5%; width: 700px; height: 700px;
    background: radial-gradient(circle, var(--cca-accent) 0%, transparent 70%);
    opacity: 0.12; filter: blur(100px); z-index: -1; pointer-events: none;
}
.ccm-vtabs-layout { display: flex; gap: 70px; align-items: flex-start; }
.ccm-vtabs-sidenav { width: 320px; min-width: 320px; position: sticky; top: 120px; }
.ccm-vtabs-group { margin-bottom: 30px; }
.ccm-vtabs-group-title {
    display: block; font-size: 13px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 1px; color: #94a3b8; margin-bottom: 15px; padding-left: 10px;
}
.ccm-vtabs-nav-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ccm-vtabs-link {
    display: flex; align-items: center; padding: 15px 25px; font-size: 15px; font-weight: 800;
    color: #64748b; cursor: pointer; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-transform: uppercase; border-radius: 16px; background: #f8fafc;
}
.ccm-vtabs-link span {
    font-family: monospace; font-size: 12px; margin-right: 12px; color: var(--cca-accent); opacity: 0.5; transition: color 0.3s;
}
.ccm-vtabs-link:hover {
    color: var(--cca-accent); background: color-mix(in srgb, var(--cca-accent) 5%, transparent); transform: translateX(5px);
}
.ccm-vtabs-link.active {
    color: #fff; background: var(--cca-accent); box-shadow: 0 10px 25px color-mix(in srgb, var(--cca-accent) 40%, transparent); transform: translateX(10px);
}
.ccm-vtabs-link.active span { color: #fff; opacity: 0.8; }

.ccm-vtabs-content-area { flex: 1; min-height: 400px; }
.ccm-vtabs-section { display: none; animation: ccmSlideIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ccm-vtabs-section.active { display: block; }
.ccm-vtabs-badge {
    display: inline-block; font-size: 13px; font-weight: 800; color: #fff;
    background: var(--cca-accent); padding: 6px 16px; border-radius: 50px;
    text-transform: uppercase; letter-spacing: 2px; margin-bottom: 15px;
    box-shadow: 0 6px 20px color-mix(in srgb, var(--cca-accent) 40%, transparent);
}
.ccm-vtabs-h1 {
    font-size: 48px; font-weight: 900; color: var(--cca-accent); text-transform: uppercase;
    margin: 0 0 35px 0; line-height: 1.05; border-bottom: 4px solid color-mix(in srgb, var(--cca-accent) 20%, transparent); padding-bottom: 20px;
}
.ccm-vtabs-body { font-size: 18px; line-height: 1.8; color: #334155; }
.ccm-vtabs-body > p:first-of-type::first-letter {
    float: left; font-size: 70px; line-height: 0.8; font-weight: 900;
    color: var(--cca-accent); margin-right: 12px; margin-top: 5px;
}

@media (max-width: 1024px) {
    .ccm-vtabs-layout { flex-direction: column; gap: 40px; }
    .ccm-vtabs-sidenav { width: 100%; position: static; }
    .ccm-vtabs-group { margin-bottom: 20px; }
    .ccm-vtabs-nav-list { flex-direction: row; overflow-x: auto; padding-bottom: 15px; }
    .ccm-vtabs-link { white-space: nowrap; transform: none !important; }
}

/* ============================================================
   9. CCA SECTION BANNER ELITE v2 — 4 estils premium
   ============================================================ */

/* BASE */
.ccm-sb2-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    clear: both;
    font-family: inherit;
}

/* Entrada animada compartida */
@keyframes ccm-sb2-in {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.ccm-sb2-breadcrumb { animation: ccm-sb2-in .5s ease both; animation-delay: .0s; }
.ccm-sb2-badge      { animation: ccm-sb2-in .5s ease both; animation-delay: .1s; }
.ccm-sb2-title      { animation: ccm-sb2-in .6s ease both; animation-delay: .18s; }
.ccm-sb2-subtitle,
.ccm-sb2-editorial-desc { animation: ccm-sb2-in .6s ease both; animation-delay: .28s; }
.ccm-sb2-accent-bar { animation: ccm-sb2-in .5s ease both; animation-delay: .38s; }

/* Inner compartit */
.ccm-sb2-inner {
    position: relative;
    z-index: 5;
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 60px;
}

/* Breadcrumb compartit */
.ccm-sb2-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    opacity: .85;
}
.ccm-sb2-sep { opacity: .5; font-size: 15px; }

/* Badge compartit */
.ccm-sb2-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 6px 22px;
    border-radius: 50px;
    margin-bottom: 22px;
}

/* Títol compartit */
.ccm-sb2-title {
    font-size: clamp(34px, 5vw, 64px);
    font-weight: 900;
    line-height: 1.02;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: -1.5px;
    max-width: 860px;
}

/* Subtítol compartit */
.ccm-sb2-subtitle {
    font-size: clamp(15px, 1.8vw, 19px);
    font-weight: 400;
    line-height: 1.65;
    margin: 0 0 28px 0;
    max-width: 650px;
    opacity: .9;
}

/* Línia d'accent */
.ccm-sb2-accent-bar {
    width: 70px;
    height: 5px;
    border-radius: 3px;
    background: rgba(255,255,255,.45);
}

/* ================================================
   ESTIL 1: BOLD
   Lletra gegant + quadrícula de punts + línia vertical
   ================================================ */
.ccm-sb2-bold {
    min-height: 260px;
    background: #0f172a;
}

/* Fons amb gradient ric del color de seccio */
.ccm-sb2-bold .ccm-sb2-bold-bg {
    position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(120deg,
        color-mix(in srgb, var(--cca-accent) 35%, #0f172a) 0%,
        color-mix(in srgb, var(--cca-accent) 12%, #0f172a) 60%,
        #0f172a 100%);
}

/* Quadrícula de punts */
.ccm-sb2-bold .ccm-sb2-dots {
    position: absolute; inset: 0; z-index: 1;
    background-image: radial-gradient(circle, rgba(255,255,255,.09) 1px, transparent 1px);
    background-size: 28px 28px;
}

/* Lletra gegant amb glow */
.ccm-sb2-bold .ccm-sb2-giant-letter {
    position: absolute;
    right: -2%;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(280px, 35vw, 480px);
    font-weight: 900;
    line-height: 1;
    color: rgba(255,255,255,.1);
    z-index: 2;
    pointer-events: none;
    letter-spacing: -10px;
    user-select: none;
    text-shadow: 0 0 80px color-mix(in srgb, var(--cca-accent) 25%, transparent);
}

/* Ambient glow dret */
.ccm-sb2-bold::after {
    content: '';
    position: absolute;
    right: -5%;
    top: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--cca-accent) 0%, transparent 70%);
    opacity: 0.12;
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
}

/* Línia vertical de color */
.ccm-sb2-bold .ccm-sb2-vline {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, var(--cca-accent) 0%, transparent 100%);
    z-index: 6;
}

.ccm-sb2-bold .ccm-sb2-inner { padding: 65px 80px; }

.ccm-sb2-bold .ccm-sb2-breadcrumb { color: rgba(255,255,255,.6); }
.ccm-sb2-bold .ccm-sb2-badge {
    background: var(--cca-accent);
    color: #fff;
    box-shadow: 0 6px 24px color-mix(in srgb, var(--cca-accent) 50%, transparent);
}
.ccm-sb2-bold .ccm-sb2-title { color: #fff; }
.ccm-sb2-bold .ccm-sb2-subtitle { color: rgba(255,255,255,.75); }
.ccm-sb2-bold .ccm-sb2-accent-bar {
    background: linear-gradient(90deg, var(--cca-accent), transparent);
    height: 4px; width: 120px;
}

/* ================================================
   ESTIL 2: SPLIT
   Mig color + forma diagonal + cercles concèntrics
   ================================================ */
.ccm-sb2-split {
    min-height: 260px;
    background: #ffffff;
}

/* Ambient glow dret (consistència amb la resta de widgets) */
.ccm-sb2-split::after {
    content: '';
    position: absolute;
    right: -5%;
    top: 15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--cca-accent) 0%, transparent 70%);
    opacity: 0.1;
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
}

/* Bloc esquerre de color */
.ccm-sb2-split .ccm-sb2-split-left {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 52%;
    background: linear-gradient(135deg,
        var(--cca-accent) 0%,
        color-mix(in srgb, var(--cca-accent) 65%, #000) 100%);
    z-index: 1;
}

/* Forma de transició diagonal SVG */
.ccm-sb2-split .ccm-sb2-split-divider {
    position: absolute;
    left: 35%;
    top: 0;
    width: 25%;
    height: 100%;
    z-index: 2;
}
.ccm-sb2-split .ccm-sb2-split-divider svg {
    width: 100%; height: 100%;
    display: block;
}

/* Cercles concèntrics (costat dret) */
.ccm-sb2-split .ccm-sb2-split-circles {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}
.ccm-sb2-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--cca-accent);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
.ccm-sb2-ring-1 { width: 180px; height: 180px; opacity: .15; }
.ccm-sb2-ring-2 { width: 120px; height: 120px; opacity: .22;
    animation: ccm-sb2-pulse 3s ease-in-out infinite; }
.ccm-sb2-ring-3 { width: 60px;  height: 60px;  opacity: .4;
    background: color-mix(in srgb, var(--cca-accent) 12%, transparent);
    animation: ccm-sb2-pulse 3s ease-in-out infinite reverse; }

@keyframes ccm-sb2-pulse {
    0%,100% { transform: translate(-50%,-50%) scale(1); }
    50%      { transform: translate(-50%,-50%) scale(1.08); }
}

.ccm-sb2-split .ccm-sb2-split-inner { display: flex; align-items: center; }
.ccm-sb2-split .ccm-sb2-split-content { max-width: 520px; }

.ccm-sb2-breadcrumb-light { color: rgba(255,255,255,.65); }
.ccm-sb2-badge-light {
    background: rgba(255,255,255,.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,.35);
    backdrop-filter: blur(8px);
}
.ccm-sb2-title-light { color: #fff; }
.ccm-sb2-subtitle-light { color: rgba(255,255,255,.8); }
.ccm-sb2-accent-bar-light { background: rgba(255,255,255,.5); }

/* ================================================
   ESTIL 3: EDITORIAL
   Blanc, gran tipografia de color, dos columnes
   ================================================ */
.ccm-sb2-editorial {
    min-height: 220px;
    background: color-mix(in srgb, var(--cca-accent) 3%, #f8fafc);
}
/* Ambient glow (consistència amb la resta de widgets) */
.ccm-sb2-editorial::after {
    content: '';
    position: absolute;
    right: -8%;
    top: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--cca-accent) 0%, transparent 70%);
    opacity: 0.08;
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
}

/* Barra superior gruixuda */
.ccm-sb2-editorial .ccm-sb2-editorial-topbar {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 7px;
    background: linear-gradient(90deg,
        var(--cca-accent) 0%,
        color-mix(in srgb, var(--cca-accent) 50%, #fff) 100%);
    z-index: 5;
}

/* Fragment del títol com a tipografia decorativa de fons */
.ccm-sb2-editorial .ccm-sb2-editorial-number {
    position: absolute;
    right: -1%;
    bottom: -8%;
    max-width: 62%;
    overflow: hidden;
    font-size: clamp(88px, 11vw, 170px);
    font-weight: 900;
    color: var(--cca-accent);
    opacity: .065;
    line-height: .86;
    user-select: none;
    pointer-events: none;
    z-index: 0;
    letter-spacing: -5px;
    text-align: right;
    white-space: nowrap;
    filter: blur(.6px);
}

/* Textura de línies */
.ccm-sb2-editorial .ccm-sb2-editorial-lines {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 18px,
        color-mix(in srgb, var(--cca-accent) 4%, transparent) 18px,
        color-mix(in srgb, var(--cca-accent) 4%, transparent) 19px
    );
}

/* Layout 2 columnes */
.ccm-sb2-editorial .ccm-sb2-editorial-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 80px;
}
.ccm-sb2-editorial-left { position: relative; z-index: 5; }
.ccm-sb2-editorial-right {
    position: relative; z-index: 5;
    display: flex; flex-direction: column;
    gap: 20px;
}

.ccm-sb2-breadcrumb-dark { color: #94a3b8; }
.ccm-sb2-badge-colored {
    background: color-mix(in srgb, var(--cca-accent) 12%, transparent);
    color: var(--cca-accent);
    border: 2px solid color-mix(in srgb, var(--cca-accent) 25%, transparent);
    font-weight: 900;
}
.ccm-sb2-title-colored {
    color: var(--cca-accent);
    font-size: clamp(34px, 4.5vw, 60px);
}
.ccm-sb2-editorial-desc {
    font-size: 17px;
    line-height: 1.75;
    color: #475569;
    border-left: 4px solid var(--cca-accent);
    padding-left: 20px;
    margin: 0;
}
/* ================================================
   ESTIL 4: GLASS
   Fosc + orbes de color + targeta glassmorphism
   ================================================ */
.ccm-sb2-glass {
    min-height: 280px;
    background: #060b18;
}

/* Fons fosc amb mes presencia de color */
.ccm-sb2-glass .ccm-sb2-glass-bg {
    position: absolute; inset: 0; z-index: 0;
    background: radial-gradient(ellipse at 30% 50%,
        color-mix(in srgb, var(--cca-accent) 35%, #060b18) 0%,
        color-mix(in srgb, var(--cca-accent) 12%, #060b18) 55%,
        #060b18 100%);
}

/* Orbes (glow spots) amb mes intensitat */
.ccm-sb2-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    filter: blur(60px);
}
.ccm-sb2-orb-1 {
    width: 500px; height: 500px;
    top: -200px; left: -150px;
    background: var(--cca-accent);
    opacity: .28;
    animation: ccm-sb2-orb-drift 8s ease-in-out infinite;
}
.ccm-sb2-orb-2 {
    width: 350px; height: 350px;
    bottom: -150px; right: 15%;
    background: var(--cca-accent);
    opacity: .2;
    animation: ccm-sb2-orb-drift 11s ease-in-out infinite reverse;
}
.ccm-sb2-orb-3 {
    width: 250px; height: 250px;
    top: 20%; right: 5%;
    background: color-mix(in srgb, var(--cca-accent) 60%, #fff);
    opacity: .15;
    animation: ccm-sb2-orb-drift 6s ease-in-out infinite 1s;
}
@keyframes ccm-sb2-orb-drift {
    0%,100% { transform: translate(0,0); }
    33%      { transform: translate(20px,-15px); }
    66%      { transform: translate(-15px,10px); }
}

/* Partícules */
.ccm-sb2-particles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.ccm-sb2-particle {
    position: absolute;
    width: 3px; height: 3px;
    border-radius: 50%;
    background: var(--cca-accent);
    opacity: 0;
    animation: ccm-sb2-particle-rise 6s ease-in-out infinite;
}
.ccm-sb2-p1  { left:5%;   bottom:10%; animation-delay:0s;    animation-duration:7s; }
.ccm-sb2-p2  { left:12%;  bottom:20%; animation-delay:.8s;   animation-duration:5s; }
.ccm-sb2-p3  { left:20%;  bottom:5%;  animation-delay:1.5s;  }
.ccm-sb2-p4  { left:30%;  bottom:30%; animation-delay:.3s;   animation-duration:8s; }
.ccm-sb2-p5  { left:42%;  bottom:15%; animation-delay:2.1s;  }
.ccm-sb2-p6  { left:55%;  bottom:25%; animation-delay:.6s;   animation-duration:6s; }
.ccm-sb2-p7  { left:65%;  bottom:8%;  animation-delay:1.2s;  }
.ccm-sb2-p8  { left:72%;  bottom:35%; animation-delay:2.8s;  animation-duration:9s; }
.ccm-sb2-p9  { left:80%;  bottom:12%; animation-delay:.4s;   }
.ccm-sb2-p10 { left:88%;  bottom:22%; animation-delay:1.8s;  animation-duration:7s; }
.ccm-sb2-p11 { left:93%;  bottom:5%;  animation-delay:3.2s;  }
.ccm-sb2-p12 { left:35%;  bottom:40%; animation-delay:.9s;   animation-duration:8s; }
@keyframes ccm-sb2-particle-rise {
    0%   { opacity:0; transform:translateY(0) scale(1); }
    20%  { opacity:.8; }
    100% { opacity:0; transform:translateY(-120px) scale(0.3); }
}

/* Targeta glassmorphism */
.ccm-sb2-glass .ccm-sb2-glass-inner { display: flex; align-items: center; }
.ccm-sb2-glass-card {
    position: relative; z-index: 5;
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 24px;
    padding: 50px 60px;
    max-width: 800px;
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--cca-accent) 20%, transparent),
        0 25px 50px rgba(0,0,0,.4),
        inset 0 1px 0 rgba(255,255,255,.08);
}

.ccm-sb2-breadcrumb-glass { color: rgba(255,255,255,.55); }
.ccm-sb2-badge-glass {
    background: color-mix(in srgb, var(--cca-accent) 25%, transparent);
    color: #fff;
    border: 1px solid color-mix(in srgb, var(--cca-accent) 60%, transparent);
    box-shadow: 0 0 20px color-mix(in srgb, var(--cca-accent) 30%, transparent);
}
.ccm-sb2-title-glass { color: #fff; }
.ccm-sb2-subtitle-glass { color: rgba(255,255,255,.7); }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 900px) {
    .ccm-sb2-inner { padding: 50px 30px; }
    .ccm-sb2-editorial .ccm-sb2-editorial-inner {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 50px 30px;
    }
    .ccm-sb2-split .ccm-sb2-split-left { width: 100%; }
    .ccm-sb2-split .ccm-sb2-split-divider { display: none; }
    .ccm-sb2-split .ccm-sb2-split-circles { display: none; }
    .ccm-sb2-glass-card { padding: 35px 25px; }
    .ccm-sb2-bold .ccm-sb2-inner { padding: 55px 30px; }
    .ccm-sb2-bold .ccm-sb2-giant-letter { font-size: 200px; }
    .ccm-sb2-editorial .ccm-sb2-editorial-number {
        right: -2%;
        bottom: 2%;
        max-width: 88%;
        font-size: clamp(64px, 17vw, 105px);
        opacity: .045;
        letter-spacing: -3px;
    }
}
.ccm-sb-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    clear: both;
    font-family: inherit;
    margin-bottom: 0;
}

/* ---- Fons compartits ---- */
.ccm-sb-bg-solid {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        var(--cca-accent) 0%,
        color-mix(in srgb, var(--cca-accent) 70%, #000) 100%);
    z-index: 0;
}

/* ---- Estil: DIAGONAL ---- */
.ccm-sb-style-diagonal {
    min-height: 240px;
    padding: 0;
}
.ccm-sb-style-diagonal .ccm-sb-bg-shape {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.ccm-sb-style-diagonal .ccm-sb-bg-shape svg {
    width: 100%;
    height: 100%;
    display: block;
}
.ccm-sb-style-diagonal .ccm-sb-inner {
    padding: 60px 60px 90px;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}
.ccm-sb-style-diagonal .ccm-sb-title { color: #fff; }
.ccm-sb-style-diagonal .ccm-sb-subtitle { color: rgba(255,255,255,0.85); }
.ccm-sb-style-diagonal .ccm-sb-breadcrumb { color: rgba(255,255,255,0.7); }
.ccm-sb-style-diagonal .ccm-sb-breadcrumb .ccm-sb-bc-sep { color: rgba(255,255,255,0.4); }
.ccm-sb-style-diagonal .ccm-sb-line {
    background: rgba(255,255,255,0.4);
}

/* ---- Estil: WAVE ---- */
.ccm-sb-style-wave {
    min-height: 220px;
    padding-bottom: 40px;
}
.ccm-sb-style-wave .ccm-sb-wave-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}
.ccm-sb-style-wave .ccm-sb-wave-bottom svg {
    width: 100%;
    height: 80px;
    display: block;
}
.ccm-sb-style-wave .ccm-sb-inner {
    padding: 55px 60px 80px;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}
.ccm-sb-style-wave .ccm-sb-title { color: #fff; }
.ccm-sb-style-wave .ccm-sb-subtitle { color: rgba(255,255,255,0.85); }
.ccm-sb-style-wave .ccm-sb-breadcrumb { color: rgba(255,255,255,0.7); }
.ccm-sb-style-wave .ccm-sb-breadcrumb .ccm-sb-bc-sep { color: rgba(255,255,255,0.4); }
.ccm-sb-style-wave .ccm-sb-line { background: rgba(255,255,255,0.4); }

/* ---- Estil: SOLID ---- */
.ccm-sb-style-solid {
    min-height: 200px;
}
.ccm-sb-style-solid .ccm-sb-inner {
    padding: 55px 60px;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}
.ccm-sb-style-solid .ccm-sb-title { color: #fff; }
.ccm-sb-style-solid .ccm-sb-subtitle { color: rgba(255,255,255,0.85); }
.ccm-sb-style-solid .ccm-sb-breadcrumb { color: rgba(255,255,255,0.7); }
.ccm-sb-style-solid .ccm-sb-breadcrumb .ccm-sb-bc-sep { color: rgba(255,255,255,0.4); }
.ccm-sb-style-solid .ccm-sb-line { background: rgba(255,255,255,0.4); }

/* ---- Estil: MINIMAL ---- */
.ccm-sb-style-minimal {
    min-height: 160px;
    background: #f8fafc;
}
.ccm-sb-style-minimal .ccm-sb-bg-minimal {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    background: var(--cca-accent);
    border-radius: 0 4px 4px 0;
    z-index: 0;
}
.ccm-sb-style-minimal .ccm-sb-inner {
    padding: 50px 60px 50px 70px;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}
.ccm-sb-style-minimal .ccm-sb-title { color: #1e293b; }
.ccm-sb-style-minimal .ccm-sb-badge {
    background: transparent;
    color: var(--cca-accent);
    border: 2px solid color-mix(in srgb, var(--cca-accent) 30%, transparent);
    box-shadow: none;
}
.ccm-sb-style-minimal .ccm-sb-subtitle { color: #64748b; }
.ccm-sb-style-minimal .ccm-sb-breadcrumb { color: #94a3b8; }
.ccm-sb-style-minimal .ccm-sb-line {
    background: linear-gradient(90deg, var(--cca-accent), color-mix(in srgb, var(--cca-accent) 30%, transparent));
}
.ccm-sb-style-minimal .ccm-sb-deco-circle { display: none; }

/* ---- Elementos comuns ---- */
.ccm-sb-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
    opacity: 0.9;
}
.ccm-sb-bc-sep { font-size: 16px; }

.ccm-sb-badge {
    display: inline-block;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(6px);
    color: #fff;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.ccm-sb-title {
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 900;
    line-height: 1.05;
    margin: 0 0 18px 0;
    text-transform: uppercase;
    letter-spacing: -1px;
    max-width: 900px;
}

.ccm-sb-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 400;
    line-height: 1.6;
    margin: 0 0 25px 0;
    max-width: 700px;
}

.ccm-sb-line {
    display: block;
    width: 80px;
    height: 5px;
    border-radius: 4px;
    margin-top: 5px;
}

/* ---- Decoració: Cercles ambiéntals ---- */
.ccm-sb-deco-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}
.ccm-sb-deco-1 {
    width: 350px;
    height: 350px;
    top: -100px;
    right: -80px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    animation: ccm-sb-float 7s ease-in-out infinite;
}
.ccm-sb-deco-2 {
    width: 200px;
    height: 200px;
    bottom: -60px;
    right: 25%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    animation: ccm-sb-float 10s ease-in-out infinite reverse;
}

@keyframes ccm-sb-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-15px) scale(1.05); }
}

/* ---- Entrada animada ---- */
.ccm-sb-badge,
.ccm-sb-breadcrumb,
.ccm-sb-title,
.ccm-sb-subtitle,
.ccm-sb-line {
    animation: ccm-sb-fadein 0.7s ease both;
}
.ccm-sb-badge      { animation-delay: 0.05s; }
.ccm-sb-breadcrumb { animation-delay: 0.0s; }
.ccm-sb-title      { animation-delay: 0.15s; }
.ccm-sb-subtitle   { animation-delay: 0.25s; }
.ccm-sb-line       { animation-delay: 0.35s; }

@keyframes ccm-sb-fadein {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .ccm-sb-style-diagonal .ccm-sb-inner,
    .ccm-sb-style-wave .ccm-sb-inner,
    .ccm-sb-style-solid .ccm-sb-inner,
    .ccm-sb-style-minimal .ccm-sb-inner {
        padding: 40px 24px;
    }
    .ccm-sb-title { letter-spacing: -0.5px; }
    .ccm-sb-deco-1 { width: 220px; height: 220px; }
}
/* =========================================================
   RESPONSIVE — INSTITUCIÓ TABS + SUB-PESTAÑES RECURSIVES
   ========================================================= */
.ccm-tabs-elite,
.ccm-tabs-content,
.ccm-tab-pane,
.ccm-tab-pane-body,
.ccm-stv-wrap,
.ccm-stv-panes,
.ccm-stv-pane,
.ccm-stv-pane-body {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.ccm-tab-pane-body img,
.ccm-stv-pane-body img,
.ccm-tab-pane-body video,
.ccm-stv-pane-body video,
.ccm-tab-pane-body iframe,
.ccm-stv-pane-body iframe,
.ccm-tab-pane-body table,
.ccm-stv-pane-body table {
    max-width: 100%;
}

.ccm-tab-pane-body img,
.ccm-stv-pane-body img,
.ccm-tab-pane-body video,
.ccm-stv-pane-body video {
    height: auto;
}

.ccm-tab-pane-body iframe,
.ccm-stv-pane-body iframe {
    width: 100%;
}

.ccm-tab-pane-body table,
.ccm-stv-pane-body table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 1024px) {
    .ccm-tabs-elite {
        width: 100%;
        margin: 50px auto;
        padding: 0 24px;
        gap: 28px;
        overflow: visible;
    }

    .ccm-tabs-nav {
        width: 100%;
        max-width: 100%;
        flex: 0 0 auto;
        gap: 8px;
        padding: 2px 2px 12px;
        margin: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: thin;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-inline: contain;
    }

    .ccm-tab-trigger {
        flex: 0 0 auto;
        min-width: max-content;
        max-width: 280px;
        padding: 15px 20px;
        font-size: 14px;
        line-height: 1.3;
        scroll-snap-align: start;
        transform: none !important;
    }

    .ccm-tab-trigger:hover,
    .ccm-tab-trigger.active {
        transform: none !important;
    }

    .ccm-tabs-content {
        width: 100%;
        flex: 0 0 100%;
    }

    .ccm-tab-pane-title {
        font-size: clamp(28px, 5vw, 36px);
        margin-bottom: 24px;
        padding-bottom: 14px;
    }

    .ccm-tab-pane-body {
        font-size: 17px;
    }

    .ccm-stv-wrap {
        margin: 24px 0 12px;
        border-radius: 14px;
    }

    .ccm-stv-nav {
        gap: 6px;
        padding: 8px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-inline: contain;
    }

    .ccm-stv-btn {
        flex: 0 0 auto;
        min-width: max-content;
        padding: 10px 16px;
        font-size: 12px;
        scroll-snap-align: start;
    }

    .ccm-stv-panes {
        padding: 22px;
    }
}

@media (max-width: 600px) {
    .ccm-tabs-elite {
        margin: 34px auto;
        padding: 0 16px;
        gap: 20px;
    }

    .ccm-tabs-elite::after {
        display: none;
    }

    .ccm-tabs-nav {
        margin-left: -4px;
        margin-right: -4px;
        width: calc(100% + 8px);
        padding-bottom: 10px;
    }

    .ccm-tab-trigger {
        max-width: 230px;
        padding: 12px 15px;
        border-radius: 12px;
        font-size: 12px;
        white-space: normal;
        text-align: left;
    }

    .ccm-tab-trigger span {
        margin-right: 7px;
        font-size: 10px;
    }

    .ccm-tab-pane-title {
        font-size: clamp(24px, 8vw, 30px);
        line-height: 1.15;
        margin-bottom: 20px;
        padding-bottom: 12px;
        overflow-wrap: anywhere;
    }

    .ccm-tab-pane-body,
    .ccm-stv-pane-body {
        font-size: 16px;
        line-height: 1.65;
        overflow-wrap: anywhere;
    }

    .ccm-stv-wrap {
        margin: 20px 0 10px;
        border-radius: 12px;
    }

    .ccm-stv-nav {
        padding: 7px;
    }

    .ccm-stv-btn {
        max-width: 210px;
        min-width: auto;
        padding: 9px 12px;
        font-size: 11px;
        line-height: 1.25;
        white-space: normal;
        text-align: left;
    }

    .ccm-stv-btn svg {
        flex: 0 0 12px;
    }

    .ccm-stv-panes {
        padding: 16px;
    }

    /* Cada nivell interior ocupa tot l'ample disponible sense sumar marges. */
    .ccm-stv-pane-body .ccm-stv-wrap {
        margin-left: 0;
        margin-right: 0;
    }

    .ccm-stv-pane-body .ccm-stv-wrap .ccm-stv-panes {
        padding: 13px;
    }
}

/* =========================================================
   RESPONSIVE 2.2 — ACORDEÓN REAL EN MÓVIL
   Escritorio/tablet conserva tabs; móvil prioriza lectura vertical.
   ========================================================= */
.ccm-tab-mobile-trigger,
.ccm-stv-mobile-trigger {
    display: none;
}

@media (max-width: 767px) {
    .ccm-tabs-elite {
        display: block;
        width: 100%;
        margin: 28px auto;
        padding: 0 14px;
    }

    .ccm-tabs-nav {
        display: none !important;
    }

    .ccm-tabs-content {
        width: 100%;
    }

    .ccm-tab-mobile-trigger {
        appearance: none;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) 18px;
        align-items: center;
        gap: 11px;
        width: 100%;
        margin: 0 0 8px;
        padding: 16px 15px;
        border: 1px solid rgba(15, 23, 42, .10);
        border-radius: 14px;
        background: #f8fafc;
        color: #334155;
        box-shadow: none;
        font: inherit;
        text-align: left;
        cursor: pointer;
        transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
    }

    .ccm-tab-mobile-trigger.active {
        background: var(--cca-accent);
        border-color: var(--cca-accent);
        color: #fff;
        box-shadow: 0 8px 22px color-mix(in srgb, var(--cca-accent) 28%, transparent);
    }

    .ccm-tab-mobile-index {
        font-size: 11px;
        font-weight: 800;
        opacity: .65;
    }

    .ccm-tab-mobile-label {
        min-width: 0;
        font-size: 14px;
        font-weight: 800;
        line-height: 1.3;
        text-transform: uppercase;
        overflow-wrap: anywhere;
    }

    .ccm-tab-mobile-icon,
    .ccm-stv-mobile-icon {
        position: relative;
        width: 16px;
        height: 16px;
        justify-self: end;
    }

    .ccm-tab-mobile-icon::before,
    .ccm-tab-mobile-icon::after,
    .ccm-stv-mobile-icon::before,
    .ccm-stv-mobile-icon::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 12px;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
        transform: translate(-50%, -50%);
        transition: transform .2s ease, opacity .2s ease;
    }

    .ccm-tab-mobile-icon::after,
    .ccm-stv-mobile-icon::after {
        transform: translate(-50%, -50%) rotate(90deg);
    }

    .ccm-tab-mobile-trigger.active .ccm-tab-mobile-icon::after,
    .ccm-stv-mobile-trigger.active .ccm-stv-mobile-icon::after {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(0deg);
    }

    .ccm-tab-pane {
        margin: -1px 0 10px;
        padding: 18px 4px 22px;
        animation: ccmAccordionOpen .25s ease;
    }

    .ccm-tab-pane-title {
        font-size: 24px;
        margin: 0 0 18px;
        padding: 0 0 11px;
        border-bottom-width: 3px;
    }

    .ccm-tab-pane-body {
        font-size: 16px;
        line-height: 1.65;
    }

    .ccm-tab-pane-intro + .ccm-tab-pane-children {
        margin-top: 24px;
    }

    .ccm-stv-wrap {
        margin: 20px 0;
        border: 1px solid rgba(15, 23, 42, .09);
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
        overflow: hidden;
    }

    .ccm-stv-nav {
        display: none !important;
    }

    .ccm-stv-panes {
        padding: 8px !important;
    }

    .ccm-stv-mobile-trigger {
        appearance: none;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 16px;
        align-items: center;
        gap: 10px;
        width: 100%;
        margin: 0 0 6px;
        padding: 13px 13px;
        border: 0;
        border-radius: 10px;
        background: color-mix(in srgb, var(--cca-accent) 7%, #f8fafc);
        color: #475569;
        font: inherit;
        font-size: 13px;
        font-weight: 800;
        line-height: 1.3;
        text-align: left;
        cursor: pointer;
    }

    .ccm-stv-mobile-trigger > span:first-child {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .ccm-stv-mobile-trigger.active {
        background: var(--cca-accent);
        color: #fff;
    }

    .ccm-stv-pane {
        margin: -2px 0 7px;
        padding: 8px 5px 14px;
        animation: ccmAccordionOpen .22s ease;
    }

    .ccm-stv-pane-body {
        padding: 0;
        font-size: 15px;
        line-height: 1.6;
    }

    /* Los niveles interiores quedan ligeramente indentados sin perder ancho útil. */
    .ccm-stv-pane-body .ccm-stv-wrap {
        margin: 14px 0 4px 8px;
        box-shadow: none;
    }

    .ccm-stv-pane-body .ccm-stv-wrap .ccm-stv-mobile-trigger {
        font-size: 12px;
        padding: 11px 12px;
    }

    @keyframes ccmAccordionOpen {
        from { opacity: 0; transform: translateY(-5px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

/* =============================================
   14. FORMULARI CENTRE EL PUIG
   ============================================= */
.ccm-puig-form-wrap {
    width: 100%;
    max-width: 900px;
    margin: 60px auto;
    padding: 0 40px;
    clear: both;
    font-family: inherit;
}

.ccm-puig-form-header {
    text-align: center;
    margin-bottom: 45px;
}

.ccm-puig-form-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: var(--cca-accent);
    padding: 6px 18px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 18px;
    box-shadow: 0 6px 20px color-mix(in srgb, var(--cca-accent) 40%, transparent);
}

.ccm-puig-form-title {
    font-size: 38px;
    font-weight: 900;
    color: var(--cca-accent);
    margin: 0 0 12px;
    line-height: 1.15;
}

.ccm-puig-form-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: #475569;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Success / Error messages */
.ccm-puig-success,
.ccm-puig-errors {
    border-radius: 16px;
    padding: 20px 28px;
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.6;
}

.ccm-puig-success {
    display: flex;
    align-items: center;
    gap: 14px;
    background: color-mix(in srgb, var(--cca-accent) 8%, #f0fdf4);
    border: 1px solid color-mix(in srgb, var(--cca-accent) 25%, #bbf7d0);
    color: #166534;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--cca-accent) 8%, transparent);
}

.ccm-puig-success svg {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    color: var(--cca-accent);
}

.ccm-puig-success p {
    margin: 0;
}

.ccm-puig-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.ccm-puig-errors ul {
    margin: 0;
    padding-left: 18px;
}

/* Form layout */
.ccm-puig-form {
    background: #fff;
    border-radius: 24px;
    padding: 45px;
    box-shadow:
        0 1px 3px rgba(0,0,0,0.04),
        0 10px 40px color-mix(in srgb, var(--cca-accent) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--cca-accent) 10%, #e2e8f0);
}

.ccm-puig-field {
    margin-bottom: 24px;
}

.ccm-puig-field--half {
    width: calc(50% - 12px);
    display: inline-block;
    vertical-align: top;
}

.ccm-puig-field--full {
    width: 100%;
}

.ccm-puig-field-row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.ccm-puig-field-row .ccm-puig-field {
    flex: 1;
    margin-bottom: 0;
}

.ccm-puig-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.ccm-puig-required {
    color: #dc2626;
    font-weight: 600;
}

.ccm-puig-optional {
    color: #94a3b8;
    font-weight: 400;
    font-size: 13px;
}

/* Inputs */
.ccm-puig-input,
.ccm-puig-textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    font-family: inherit;
    color: #1e293b;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
}

.ccm-puig-input:focus,
.ccm-puig-textarea:focus {
    border-color: var(--cca-accent);
    background: #fff;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--cca-accent) 12%, transparent);
}

.ccm-puig-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.ccm-puig-errors {
    max-width: 900px;
    margin: 0 auto 22px;
    padding: 18px 22px;
    border: 1px solid #fecaca;
    border-left: 5px solid #dc2626;
    border-radius: 12px;
    background: #fef2f2;
    color: #7f1d1d;
}

.ccm-puig-errors p { margin: 0 0 8px; }
.ccm-puig-errors ul { margin: 0; padding-left: 20px; }

.ccm-puig-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* Checkboxes */
.ccm-puig-checks {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ccm-puig-check {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #334155;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.ccm-puig-check:hover {
    background: color-mix(in srgb, var(--cca-accent) 5%, #f8fafc);
    border-color: color-mix(in srgb, var(--cca-accent) 30%, #e2e8f0);
}

.ccm-puig-check input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ccm-puig-check input[type="checkbox"]:focus-visible ~ .ccm-puig-checkmark {
    outline: 3px solid color-mix(in srgb, var(--cca-accent) 42%, #1d4ed8);
    outline-offset: 3px;
}

.ccm-puig-checkmark {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid #cbd5e1;
    background: #fff;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
}

.ccm-puig-checkmark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: translate(-50%, -60%) rotate(45deg) scale(0);
    transition: transform 0.15s ease;
}

.ccm-puig-check input[type="checkbox"]:checked ~ .ccm-puig-checkmark {
    background: var(--cca-accent);
    border-color: var(--cca-accent);
}

.ccm-puig-check input[type="checkbox"]:checked ~ .ccm-puig-checkmark::after {
    transform: translate(-50%, -60%) rotate(45deg) scale(1);
}

.ccm-puig-check--privacy {
    background: transparent;
    border: none;
    padding: 12px 0;
    font-size: 14px;
    color: #64748b;
}

.ccm-puig-check--privacy a {
    color: var(--cca-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ccm-puig-check--privacy a:hover {
    color: color-mix(in srgb, var(--cca-accent) 80%, black);
}

/* File upload */
.ccm-puig-file-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.ccm-puig-file {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.ccm-puig-file-label {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    color: #64748b;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    transition: all 0.2s;
}

.ccm-puig-file-label svg {
    flex-shrink: 0;
    color: #94a3b8;
}

.ccm-puig-file-wrap:hover .ccm-puig-file-label {
    border-color: var(--cca-accent);
    background: color-mix(in srgb, var(--cca-accent) 3%, #f8fafc);
    color: var(--cca-accent);
}

.ccm-puig-file-wrap:hover .ccm-puig-file-label svg {
    color: var(--cca-accent);
}

/* Submit button */
.ccm-puig-submit-wrap {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 0 !important;
}

.ccm-puig-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: var(--cca-accent);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--cca-accent) 35%, transparent);
    letter-spacing: 0.02em;
}

.ccm-puig-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px color-mix(in srgb, var(--cca-accent) 45%, transparent);
    background: color-mix(in srgb, var(--cca-accent) 90%, black);
}

.ccm-puig-submit:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--cca-accent) 30%, transparent);
}

.ccm-puig-submit:focus-visible,
.ccm-puig-signature-clear:focus-visible,
.ccm-puig-file:focus-visible + .ccm-puig-file-label {
    outline: 3px solid color-mix(in srgb, var(--cca-accent) 45%, #1d4ed8);
    outline-offset: 3px;
}

.ccm-puig-submit svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s;
}

.ccm-puig-submit:hover svg {
    transform: translateX(3px);
}

/* Signature pad */
.ccm-puig-signature-wrap {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    position: relative;
    touch-action: none;
}

.ccm-puig-signature-canvas {
    display: block;
    width: 100%;
    height: 120px;
    cursor: crosshair;
    background: #fff;
}

.ccm-puig-signature-clear {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    color: #64748b;
    background: rgba(255,255,255,0.9);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.ccm-puig-signature-clear:hover {
    color: #dc2626;
    border-color: #fca5a5;
    background: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .ccm-puig-form-wrap {
        padding: 0 16px;
    }

    .ccm-puig-form {
        padding: 30px 22px;
        border-radius: 20px;
    }

    .ccm-puig-form-title {
        font-size: 28px;
    }

    .ccm-puig-form-subtitle {
        font-size: 16px;
    }

    .ccm-puig-field--half {
        width: 100%;
        display: block;
    }

    .ccm-puig-field-row {
        flex-direction: column;
        gap: 0;
    }

    .ccm-puig-submit {
        width: 100%;
        justify-content: center;
    }
}
/* Subapartats institucionals: text i fotos sense contenidors addicionals. */
.cca-inst-section { padding: 28px 0; border-bottom: 1px solid #e4e7e2; }
.cca-inst-section:first-child { padding-top: 0; }
.cca-inst-section:last-child { border-bottom: 0; }
.cca-inst-section__text { min-width: 0; overflow-wrap: anywhere; }
.cca-inst-section__text > h3 { margin: 0 0 16px; font-size: 1.4em; line-height: 1.3; }
.cca-inst-section__gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; margin-top: 20px; min-width: 0; }
.cca-inst-section__gallery figure { margin: 0; }
.cca-inst-section__gallery img { display: block; width: 100%; height: auto; border-radius: 4px; }
.cca-inst-section__gallery figcaption { margin-top: 8px; font-size: .875em; line-height: 1.5; color: #596259; }
.cca-inst-section--has-images.cca-inst-section--left,
.cca-inst-section--has-images.cca-inst-section--right { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.cca-inst-section--left .cca-inst-section__gallery { grid-column: 1; grid-row: 1; margin-top: 0; }
.cca-inst-section--left.cca-inst-section--has-images .cca-inst-section__text { grid-column: 2; }
.cca-inst-section--right .cca-inst-section__gallery { margin-top: 0; }
@media (max-width: 767px) {
    .cca-inst-section--has-images.cca-inst-section--left,
    .cca-inst-section--has-images.cca-inst-section--right { display: block; }
    .cca-inst-section--left .cca-inst-section__gallery,
    .cca-inst-section--right .cca-inst-section__gallery { margin-top: 20px; }
}

/* Desplegables: tots els titols visibles abans d'obrir el contingut. */
.cca-inst-dropdown { border-bottom: 1px solid #e4e7e2; }
.cca-inst-dropdown > summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.1em; line-height: 1.4; }
.cca-inst-dropdown > summary::-webkit-details-marker { display: none; }
.cca-inst-dropdown > summary > span { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.cca-inst-dropdown > summary::after { content: '+'; flex: 0 0 24px; text-align: center; font-size: 24px; color: var(--cca-accent, #82bc00); }
.cca-inst-dropdown[open] > summary::after { content: '\2212'; }
.cca-inst-dropdown > summary:focus-visible { outline: 2px solid var(--cca-accent, #82bc00); outline-offset: 3px; }
.cca-inst-dropdown > .cca-inst-section { padding: 0 0 24px; border: 0; }
.cca-inst-dropdown:not([open]) > .cca-inst-section { display: none; }

/* Els noms de categoria poden ocupar diverses linies, sense truncament. */
.ccm-stv-nav { flex-wrap: wrap; overflow-x: visible; }
.ccm-stv-nav .ccm-stv-btn { box-sizing: border-box; flex: 1 1 var(--cca-subtabs-basis, 220px); min-width: 0; max-width: 100%; height: auto; white-space: normal; overflow-wrap: anywhere; text-overflow: clip; line-height: 1.45; text-align: left; }
.ccm-stv-nav .ccm-stv-btn svg { flex-shrink: 0; }
.ccm-stv-mobile-trigger, .ccm-stv-mobile-trigger > span:first-child { min-width: 0; height: auto; max-height: none; white-space: normal; overflow-wrap: anywhere; text-overflow: clip; }

/* Equal-height, uncropped photos. Flex rows fill the available width. */
.cca-inst-section__gallery.cca-inst-bento { display: flex; flex-wrap: wrap; gap: 0; border-radius: 10px; overflow: hidden; background: #f3f4f2; }
.cca-inst-bento > figure { position: relative; flex: 1 1 45%; min-width: 0; height: clamp(180px, 24vw, 280px); margin: 0; overflow: hidden; }
.cca-inst-bento[data-count="3"] > figure { flex-basis: 30%; }
.cca-inst-bento > figure > img { display: block; position: static; width: 100%; height: 100%; max-width: 100%; object-fit: contain; object-position: center; border-radius: 0; }
.cca-inst-bento > figure > figcaption { display: none; }
@media (max-width: 600px) {
    .cca-inst-bento > figure, .cca-inst-bento[data-count="3"] > figure { flex-basis: 45%; height: 180px; }
}
/* Clear open state, with a stable header position during expansion. */
.cca-inst-dropdown { border-left: 3px solid transparent; box-sizing: border-box; transition: border-color .25s ease, background-color .25s ease; }
.cca-inst-dropdown > summary { padding: 18px 14px; border-radius: 6px; transition: background-color .25s ease; }
.cca-inst-dropdown > summary::after { content: '+'; transition: transform .3s ease; }
.cca-inst-dropdown[open] { border-left-color: var(--cca-accent, #82bc00); }
.cca-inst-dropdown[open] > summary { background: color-mix(in srgb, var(--cca-accent, #82bc00) 12%, white); font-weight: 800; }
.cca-inst-dropdown[open] > summary::after { content: '+'; transform: rotate(45deg); }
.cca-inst-dropdown > .cca-inst-section { padding: 16px 14px 24px; }
@media (prefers-reduced-motion: reduce) {
    .cca-inst-dropdown, .cca-inst-dropdown > summary, .cca-inst-dropdown > summary::after { transition: none; }

    [class^="ccm-"], [class*=" ccm-"],
    [class^="cca-"], [class*=" cca-"] {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* =============================================
   15. RETÍCULA DE LOGOTIPS
   Lienzos homogéneos y escala óptica por elemento.
   ============================================= */
.cca-logo-wall {
    --cca-logo-gap: clamp(8px, 1vw, 14px);
    width: 100%;
    margin: clamp(18px, 3vw, 36px) auto;
    color: #243128;
    font-family: inherit;
}

.cca-logo-wall__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--cca-logo-gap);
    margin: 0;
}

.cca-logo-wall__item {
    flex: 0 1 calc(var(--cca-logo-desktop) - var(--cca-logo-gap));
    min-width: 0;
}

.cca-logo-wall__tile {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 5 / 3;
    padding: clamp(4px, .65vw, 10px);
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 12px;
    text-decoration: none;
    transition: transform .22s ease, border-color .22s ease, background-color .22s ease, box-shadow .22s ease;
}

.cca-logo-wall--soft .cca-logo-wall__tile {
    background: #f4f6f2;
    border: 1px solid transparent;
}

.cca-logo-wall--outline .cca-logo-wall__tile {
    background: #fff;
    border: 1px solid #dfe4dd;
}

.cca-logo-wall--plain .cca-logo-wall__tile {
    background: transparent;
    border: 1px solid transparent;
}

.cca-logo-wall__image {
    display: block;
    width: auto;
    height: auto;
    max-width: 96%;
    max-height: 90%;
    object-fit: contain;
    object-position: center;
    filter: none;
}

.cca-logo-wall__item--small .cca-logo-wall__image { max-width: 76%; max-height: 70%; }
.cca-logo-wall__item--large .cca-logo-wall__image { max-width: 100%; max-height: 96%; }
.cca-logo-wall__item--xlarge .cca-logo-wall__image { max-width: 100%; max-height: 100%; }

a.cca-logo-wall__tile:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--cca-logo-accent) 38%, #dfe4dd);
    background: #fff;
    box-shadow: 0 12px 28px color-mix(in srgb, var(--cca-logo-accent) 10%, transparent);
}

a.cca-logo-wall__tile:active { transform: translateY(-1px) scale(.99); }
a.cca-logo-wall__tile:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--cca-logo-accent) 52%, #1d4ed8);
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .cca-logo-wall__item { flex-basis: calc(var(--cca-logo-tablet) - var(--cca-logo-gap)); }
}

@media (max-width: 600px) {
    .cca-logo-wall { margin: 16px auto 28px; }
    .cca-logo-wall__item { flex-basis: calc(var(--cca-logo-mobile) - var(--cca-logo-gap)); }
    .cca-logo-wall__tile { aspect-ratio: 4 / 3; padding: 4px; border-radius: 10px; }
    .cca-logo-wall__image { max-width: 96%; max-height: 92%; }
    .cca-logo-wall__item--small .cca-logo-wall__image { max-width: 78%; max-height: 72%; }
    .cca-logo-wall__item--large .cca-logo-wall__image { max-width: 100%; max-height: 98%; }
    .cca-logo-wall__item--xlarge .cca-logo-wall__image { max-width: 100%; max-height: 100%; }
}

.ccm-tabs-elite,
.ccm-tabs-elite .ccm-tab-mobile-trigger,
.ccm-vtabs-elite-wrap {
    scroll-margin-top: 100px;
}
