:root {
    --font-title: clamp(28px, 2.2vw, 36px);
    --font-text: 18px;
    --font-small: 18px;
}

/* PRIMERA SECCIÓ DE LA PORTADA */

.hero {
    position: relative;
    width: 100%;
    min-height: 550px;

    background-image: url('../img/fons.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* FLOR I TÍTOL */

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    text-align: center;
    padding: 30px;
}

.hero-flower {
    width: 95px;
    height: auto;
    filter: brightness(0) invert(1);
}

.hero-content h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(32px, 3.5vw, 40px);
    font-weight: 600;
    line-height: 1.2;
    text-shadow: 0 2px 15px rgba(0, 50, 45, 0.3);
}

/* MÒBILS */

@media (max-width: 768px) {
    .hero {
        min-height: 350px;
    }

    .hero-flower {
        width: 70px;
    }
}


/* SEGONA SECCIÓ: TERÀPIA NEURAL */

.therapy-section {
    padding: 90px 24px 110px;
    background: #fff;
}

.therapy-container {
    max-width: 1300px;
    margin: 0 auto;
}

.therapy-heading {
    text-align: center;
    margin-bottom: 70px;
}

.therapy-heading img {
    display: block;
    max-width: 110px;
    height: auto;
    margin: 0 auto 24px;
}

.therapy-heading h2 {
    font-size: clamp(28px, 2.5vw, 42px);
    font-weight: 300;
    margin: 0;
}

.therapy-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 55px;
}

.therapy-item {
    text-align: center;
}

.therapy-item > img {
    width: 100%;
    max-width: 170px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 28px;
}

.therapy-item p {
    font-size: 18px;
    line-height: 1.65;
    font-weight: 300;
    margin: 0;
}

.therapy-item .verde {
    color: #25b99c;
}

.therapy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    margin-top: 35px;
    border: 1px solid #25b99c;
    border-radius: 50%;
    color: #25b99c;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.therapy-button:hover {
    background: #25b99c;
    color: #fff;
}

@media (max-width: 900px) {
    .therapy-grid {
        grid-template-columns: 1fr;
        gap: 65px;
    }

    .therapy-section {
        padding: 65px 24px 80px;
    }

    .therapy-heading {
        margin-bottom: 55px;
    }

    .therapy-item {
        max-width: 500px;
        margin: 0 auto;
    }
}

.therapy-item p::before {
    content: "";
    display: block;
    width: 85px;
    height: 5px;
    border-radius: 50px;
    background-color: #25b99c;
    margin: 0 auto 40px;
}

.therapy-item > img {
    margin-bottom: 30px;
}


/* BLOC 2: SISTEMA NERVIÓS */

.nervous-section {
    background-color: #dcece7;
    background-image:
       linear-gradient(135deg,
    #a9cec3 0%,
    #c0ddd3 35%,
    #dcece7 65%,
    #b9e4d1 100%
    );

    padding: 100px 24px;
}

.nervous-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 90px;
}

.nervous-content h2 {
    font-size: clamp(28px, 2.4vw, 40px);
    font-weight: 300;
    line-height: 1.3;
    margin: 0 0 35px;
}

.nervous-content h3 {
    font-size: 20px;
    font-weight: 300;
    line-height: 1.65;
    margin: 0 0 35px;
}

.nervous-toggle {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #25b99c;
    font: inherit;
    font-size: 17px;
    cursor: pointer;
}

.nervous-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
    transition: transform .25s ease,
                background .25s ease,
                color .25s ease;
}

.nervous-toggle:hover .nervous-toggle-icon {
    background: #25b99c;
    color: #fff;
}

.nervous-toggle[aria-expanded="true"] .nervous-toggle-icon {
    transform: rotate(45deg);
}

.nervous-details {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    margin-top: 0;
    transition:
    grid-template-rows 0.4s ease,
    opacity 0.3s ease,
    margin-top 0.4s ease;
}


.nervous-details.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 30px;
}

.nervous-details-inner {
    overflow: hidden;
    min-height: 0;
}

.nervous-details p {
    font-size: 17px;
    line-height: 1.7;
    margin: 0;
}

.nervous-illustration img {
    max-width: 290px;
    width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .nervous-section {
        padding: 65px 24px;
    }

    .nervous-container {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .nervous-illustration img {
        max-width: 320px;
    }
}


/* BLOC 3: OBJECTIU DE LA TERÀPIA NEURAL */

.objective-section {
    position: relative;
    overflow: hidden;
    background: #497f72;
    color: #fff;
    padding: 80px 24px;
}

.objective-container {
    position: relative;
    z-index: 1;
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.65fr 1.5fr 0.85fr;
    align-items: center;
    gap: 65px;
}

.objective-illustration img {
    display: block;
    width: 100%;
    max-width: 115px;
    height: auto;
}

.objective-title h2 {
    font-size: clamp(25px, 2vw, 34px);
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
}

.objective-text::before {
    content: "";
    display: block;
    width: 38px;
    height: 3px;
    background: #fff;
    border-radius: 50px;
    margin-bottom: 14px;
}

.objective-text p {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
    margin: 0;
}

.objective-shape {
    position: absolute;
    top: 50%;
    right: -45px;
    transform: translateY(-50%);
    width: 300px;
    max-width: none;
    height: auto;
    opacity: 0.35;
    pointer-events: none;
}

@media (max-width: 900px) {
    .objective-section {
        padding: 65px 24px;
    }

    .objective-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .objective-illustration img {
        max-width: 100px;
    }

    .objective-shape {
        width: 200px;
        right: -75px;
        opacity: 0.2;
    }
}



/* BLOC 4: COM ACTUA LA TERÀPIA NEURAL */

.action-section {
     background-color: #4b4b4b;
    background-image: url('../img/pattern2.gif');
    background-repeat: repeat;
    color: #fff;
    padding: 110px 24px;
}

.action-container {
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.65fr 1.5fr 0.85fr;
    align-items: center;
    gap: 65px;
}

.action-illustration img {
    display: block;
    width: 100%;
    max-width: 145px;
    height: auto;
}

.action-content h2 {
    font-size: clamp(28px, 2.4vw, 40px);
    font-weight: 300;
    line-height: 1.3;
    margin: 0 0 30px;
}

.action-content p {
    font-size: 19px;
    line-height: 1.7;
    font-weight: 300;
    margin: 0;
}

.action-content .verde {
    color: #25b99c;
    font-weight: 600;
}

.action-toggle {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #25b99c;
    font: inherit;
    font-size: 17px;
    cursor: pointer;
}

.action-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
    transition: transform .25s ease,
                background .25s ease,
                color .25s ease;
}

.action-toggle:hover .action-toggle-icon {
    background: #25b99c;
    color: #fff;
}

.action-toggle[aria-expanded="true"] .action-toggle-icon {
    transform: rotate(45deg);
}

.action-details {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    margin-top: 0;
    transition:
        grid-template-rows .4s ease,
        opacity .3s ease,
        margin-top .4s ease;
}

.action-details.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 30px;
}

.action-details-inner {
    overflow: hidden;
    min-height: 0;
}

.action-details p {
    font-size: 17px;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 900px) {
    .action-section {
        padding: 70px 24px;
    }

    .action-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .action-illustration img {
        max-width: 130px;
    }
}


/* BLOC 5: INDICACIONS I CONTRAINDICACIONS */

.indications-section {
    background: #fff;
    padding: 110px 24px;
    color: #62877c;
}

.indications-container {
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: start;
}

.indications-column h2 {
    font-size: clamp(28px, 2.2vw, 38px);
    font-weight: 600;
    line-height: 1.3;
    color: #497f72;
    margin: 0 0 45px;
}

.contraindications-content {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.contraindications-icon {
    width: 65px;
    height: auto;
    flex-shrink: 0;
}

.contraindications-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contraindications-content li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 25px;
    font-size: 17px;
    line-height: 1.7;
}

.contraindications-content li::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #25b99c;
}

.indications-info p {
    font-size: 18px;
    line-height: 1.75;
    margin: 0;
}

.indications-column strong {
    color: #497f72;
    font-weight: 700;
}

@media (max-width: 900px) {
    .indications-section {
        padding: 70px 24px;
    }

    .indications-container {
        grid-template-columns: 1fr;
        gap: 70px;
    }

    .indications-column h2 {
        margin-bottom: 30px;
    }

    .contraindications-content {
        gap: 20px;
    }

    .contraindications-icon {
        width: 45px;
    }
}

@media (max-width: 480px) {
    .contraindications-content {
        flex-direction: column;
    }

    .contraindications-content li {
        font-size: 16px;
    }

    .indications-info p {
        font-size: 17px;
    }
}

.indications-info {
    border-left: 2px solid #73c5a0;
    padding-left: 40px;
}

@media (max-width: 900px) {
    .indications-info {
        border-left: none;
        padding-left: 0;
        border-top: 2px solid #73c5a0;
        padding-top: 40px;
    }
}

/* TIPOGRAFIA GLOBAL DE LA PORTADA */

.therapy-heading h2,
.nervous-content h2,
.objective-title h2,
.action-content h2,
.indications-column h2 {
    font-size: var(--font-title);
    line-height: 1.3;
}

.therapy-item p,
.nervous-content h3,
.objective-text p,
.action-content p,
.indications-info p,
.contraindications-content li {
    font-size: var(--font-text);
    line-height: 1.7;
}

.nervous-details p,
.action-details p {
    font-size: var(--font-small);
    line-height: 1.7;
}

@media (max-width: 600px) {
    :root {
        --font-text: 16px;
        --font-small: 15px;
    }
}


/* BLOC 6: SESSIONS DE TERÀPIA NEURAL */

.session-section {
    background-color: #497f72;
    background-image: url('../img/fons2.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 90px 24px 110px;
}

.session-container {
    max-width: 1250px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 85px;
}

/* PRIMERA FRANJA */

.session-content {
    display: grid;
    grid-template-columns: 0.8fr 1.5fr;
    gap: 65px;
    align-items: start;
}

.session-content h2,
.session-frequency h2 {
    font-size: var(--font-title);
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.session-content p,
.session-frequency p {
    font-size: var(--font-text);
    line-height: 1.7;
    font-weight: 300;
    margin: 0;
}

.session-content p::before,
.session-frequency p::before {
    content: "";
    display: block;
    width: 45px;
    height: 3px;
    background: #fff;
    border-radius: 50px;
    margin-bottom: 18px;
}

/* SEGONA FRANJA */

.session-frequency {
    display: flex;
    align-items: flex-start;
    gap: 45px;
    width: 52%;
    margin-left: auto;
}

.session-clock {
    width: 100px;
    height: auto;
    flex-shrink: 0;
}

.session-frequency-content {
    flex: 1;
    min-width: 0;
}

.session-frequency h2 {
    margin-bottom: 20px;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .session-section {
        padding: 70px 24px;
    }

    .session-container {
        gap: 65px;
    }

    .session-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .session-frequency {
        width: 100%;
        margin-left: 0;
    }

    .session-clock {
        width: 75px;
    }
}

@media (max-width: 480px) {
    .session-frequency {
        flex-direction: column;
        gap: 25px;
    }

    .session-clock {
        width: 65px;
    }
}

/* AJUSTOS BLOC 7 */

.collaboration-container {
    grid-template-columns: 0.6fr 1.6fr 1fr;
    gap: 55px;
}

.collaboration-profile {
    padding-top: 65px;
}

.collaboration-name {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.collaboration-role {
    font-size: 15px;
    line-height: 1.5;
}

.collaboration-career h2::after {
    content: "";
    display: block;
    width: 45px;
    height: 3px;
    background: #fff;
    border-radius: 50px;
    margin-top: 22px;
}

@media (max-width: 1000px) {
    .collaboration-container {
        grid-template-columns: 1fr 1fr;
    }

    .collaboration-profile {
        padding-top: 0;
    }
}

@media (max-width: 700px) {
    .collaboration-container {
        grid-template-columns: 1fr;
    }
}


/* BLOC 7: COL·LABORACIÓ */

.collaboration-section {
    background-color: #4b4b4b;
    background-image: url('../img/pattern2.gif');
    background-repeat: repeat;
    color: #fff;
    padding: 100px 24px;
}

.collaboration-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.85fr 1.5fr 1fr;
    align-items: start;
    gap: 65px;
}

/* PERFIL */

.collaboration-name {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 20px;
}

.collaboration-role {
    font-size: var(--font-small);
    line-height: 1.7;
    opacity: 0.85;
    margin: 0;
}

/* TRAJECTÒRIA */

.collaboration-career h2 {
    font-size: var(--font-title);
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 35px;
}

.collaboration-career ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.collaboration-career li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 20px;
    font-size: var(--font-small);
    line-height: 1.7;
}

.collaboration-career li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    background: #73c5a0;
    border-radius: 50%;
}

/* PUBLICACIONS */

.collaboration-toggle {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 18px;
    cursor: pointer;
    text-align: left;
}

.collaboration-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
    transition: transform .25s ease,
                background .25s ease,
                color .25s ease;
}

.collaboration-toggle:hover .collaboration-toggle-icon {
    background: #fff;
    color: #4b4b4b;
}

.collaboration-toggle[aria-expanded="true"] .collaboration-toggle-icon {
    transform: rotate(45deg);
}

.collaboration-details {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    margin-top: 0;
    transition:
        grid-template-rows .4s ease,
        opacity .3s ease,
        margin-top .4s ease;
}

.collaboration-details.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 30px;
}

.collaboration-details-inner {
    overflow: hidden;
    min-height: 0;
}

.collaboration-details ol {
    padding-left: 24px;
    margin: 0;
}

.collaboration-details li {
    padding-left: 8px;
    margin-bottom: 25px;
    font-size: var(--font-small);
    line-height: 1.7;
}

.collaboration-details a {
    display: inline-block;
    color: #9ce0c4;
    text-decoration: underline;
}

/* RESPONSIVE */

@media (max-width: 1000px) {
    .collaboration-container {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }

    .collaboration-profile {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .collaboration-section {
        padding: 70px 24px;
    }

    .collaboration-container {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .collaboration-profile {
        grid-column: auto;
    }
}
@media (max-width: 900px) {
    .session-section {
        background-image: none;
        background-color: #399b87;
    }
}
