/* Com començar · recorregut, classes, anatomia d'una sessió i dies per setmana */

/* ============ RECORREGUT: cuatro pasos bajo el tejado ============ */
.route { padding-block: clamp(40px, 7vw, 96px) clamp(48px, 8vw, 110px); background: var(--paper); }
.route__kicker { margin-bottom: 14px; font: 700 .82rem/1 var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.route__kicker em { font-size: 1.5rem; letter-spacing: 0; text-transform: none; color: var(--copper-deep); }
.route__roof { margin-bottom: 0; }
.route__roof path { stroke-width: 2px; }
.route__list { display: grid; counter-reset: step; }
.route__step a {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr 24px;
  grid-template-areas: "n title arrow" "n txt arrow";
  column-gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.route__n { grid-area: n; align-self: start; font: 800 1.9rem/1 var(--f-display); background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.route__step b { grid-area: title; font: 800 clamp(1.35rem, 5.4vw, 2.1rem)/1 var(--f-display); text-transform: uppercase; }
.route__txt { grid-area: txt; margin-top: 6px; font-size: .9rem; line-height: 1.45; color: var(--muted); }
.route__step .ico--arrow { grid-area: arrow; width: 22px; height: 22px; color: var(--copper-deep); transition: transform .45s var(--ease); }
.route__step a:hover .ico--arrow { transform: translateX(5px); }
.route__step a:hover b { color: var(--copper-deep); }
.route__step:last-child b { color: var(--copper-deep); }
.route__line { display: block; height: clamp(4px, .6vw, 7px); margin-top: -1px; background: var(--gold); }
@media (min-width: 900px) {
  .route__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .route__step a {
    grid-template-columns: 1fr 24px;
    grid-template-areas: "n arrow" "title title" "txt txt";
    row-gap: 14px;
    height: 100%;
    padding: clamp(20px, 2.4vw, 32px) clamp(16px, 2vw, 28px) clamp(22px, 2.6vw, 34px);
    border-bottom: 0;
    border-left: 1px solid var(--line);
    transition: background-color .4s;
  }
  .route__step:first-child a { border-left: 0; padding-left: 0; }
  .route__step a:hover { background: var(--bone); }
  .route__n { font-size: 2.6rem; }
  .route__txt { margin-top: 0; font-size: .95rem; }
  .route__step b { font-size: clamp(1.6rem, 2.2vw, 2.2rem); }
}

/* ============ LES NOSTRES CLASSES (oscuro) ============ */
.classes { padding-block: clamp(56px, 10vw, 150px); }
.classes__pair { display: grid; gap: 48px; }
.cls__media .house__frame { aspect-ratio: 4 / 3; box-shadow: var(--shadow-deep); }
.cls__body { display: grid; gap: 14px; padding-top: 22px; }
.cls__tag { font: 700 .8rem/1 var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: var(--copper-hi); }
.cls__name { padding-top: .08em; font: 800 clamp(3.6rem, 16vw, 8.6rem)/.86 var(--f-display); text-transform: uppercase; letter-spacing: -.02em; }
.cls__text { max-width: 48ch; color: rgba(228, 225, 223, .82); }
.cls__aside { max-width: 34ch; padding-left: 16px; border-left: 2px solid var(--copper); font: italic 400 clamp(1.2rem, 2vw, 1.5rem)/1.25 var(--f-serif); color: var(--bone); }
@media (min-width: 1000px) {
  .classes__pair { grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 88px); align-items: start; }
  .cls--minimal { margin-top: clamp(80px, 10vw, 160px); }
}
.vital {
  display: grid;
  gap: 18px;
  margin-top: clamp(56px, 8vw, 110px);
  padding-top: 26px;
  border-top: 1px solid var(--line-dark);
}
.vital__media { aspect-ratio: 16 / 9; overflow: hidden; }
.vital__img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .6s; }
.vital:hover .vital__img { filter: none; }
.vital__body { display: grid; gap: 10px; align-content: start; color: rgba(228, 225, 223, .82); }
.vital .cls__name { font-size: clamp(3rem, 12vw, 5.6rem); color: var(--bone); }
.vital__times { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-dark); }
.vital__times div { padding: 14px 12px 0 0; }
.vital__times div + div { padding-left: 14px; border-left: 1px solid var(--line-dark); }
.vital__times dt { font-size: .8rem; color: var(--muted-dark); }
.vital__times dd { margin-top: 4px; font: 800 clamp(2rem, 6vw, 3.2rem)/1 var(--f-display); color: var(--copper-hi); }
@media (min-width: 1000px) {
  .vital { grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
  .vital__media { aspect-ratio: 4 / 3; }
  .vital__times { grid-template-columns: 1fr; border-top: 0; }
  .vital__times div, .vital__times div + div { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line-dark); }
}
.classes__more { display: grid; gap: 14px; margin-top: clamp(40px, 5vw, 64px); }
.classes__more p { font: 700 .82rem/1.3 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted-dark); }

/* ============ COM ÉS UNA CLASSE: rellotge fix + cinc parts ============ */
.anat { padding-block: clamp(56px, 10vw, 150px); background: var(--paper); }
.anat__clock { display: none; }
.part {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  grid-template-areas: "head media" "text text";
  column-gap: 16px;
  padding: 22px 0 24px;
  border-top: 1px solid var(--line);
}
.part:last-child { border-bottom: 1px solid var(--line); }
.part__head { grid-area: head; display: grid; gap: 8px; align-content: start; }
.part__n { font: 700 .85rem/1 var(--f-display); letter-spacing: .14em; color: var(--copper-deep); }
.part__name { font: 800 clamp(1.9rem, 8vw, 3.6rem)/.92 var(--f-display); text-transform: uppercase; }
.part__name em { display: block; margin-top: 6px; font-size: .5em; line-height: 1; color: var(--copper-deep); }
.part__text { grid-area: text; max-width: 58ch; margin-top: 14px; color: var(--muted); }
.part__media { grid-area: media; aspect-ratio: 1; overflow: hidden; }
.part__img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1000px) {
  .anat__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: clamp(40px, 5vw, 96px); align-items: start; }
  .anat__clock { display: block; position: sticky; top: calc(var(--header-h) + 40px); }
  .anat__min { font: 800 clamp(8rem, 13vw, 13rem)/.8 var(--f-display); letter-spacing: -.04em; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .anat__min { display: flex; align-items: flex-end; gap: 12px; }
  .anat__min span { padding-bottom: .18em; font: 700 1rem/1 var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: var(--copper-deep); -webkit-text-fill-color: var(--copper-deep); }
  .anat__index { margin-top: 28px; border-top: 1px solid var(--line); }
  .anat__index li { position: relative; display: flex; gap: 14px; padding: 12px 0 12px 18px; border-bottom: 1px solid var(--line); font: 700 1.05rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); transition: color .4s; }
  .anat__index li span { color: var(--copper-deep); }
  .anat__index li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--copper); transform: scaleY(0); transition: transform .5s var(--ease); }
  .anat__index li.is-on { color: var(--ink); }
  .anat__index li.is-on::before { transform: none; }
  .part { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) clamp(170px, 16vw, 240px); grid-template-areas: "head text media"; column-gap: clamp(20px, 2.6vw, 40px); padding: 34px 0; }
  .part__text { margin-top: 26px; }
  .part__name { font-size: clamp(2.2rem, 2.9vw, 3rem); overflow-wrap: anywhere; }
  .part__media { aspect-ratio: 4 / 3; }
  .part__img { filter: grayscale(1); transition: filter .6s, transform 1s var(--ease); }
  .part:hover .part__img, .part.is-on .part__img { filter: none; }
}

/* ============ DIES PER SETMANA ============ */
.week { padding-block: clamp(56px, 10vw, 150px); background: var(--bone); }
.plans { display: grid; gap: 14px; }
.plan { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "days week" "title title" "text text"; gap: 14px 18px; align-items: center; padding: 22px 18px; background: var(--paper); box-shadow: 0 30px 60px -44px rgba(20, 20, 18, .5); }
.plan__days { grid-area: days; display: flex; align-items: flex-end; gap: 8px; }
.plan__days b { font: 800 clamp(4.4rem, 18vw, 7.4rem)/.78 var(--f-display); letter-spacing: -.03em; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan__days span { padding-bottom: 4px; font: 700 .76rem/1.15 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.plan__week { grid-area: week; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; align-self: end; }
.plan__week li { display: grid; place-items: center; aspect-ratio: 1; max-height: 40px; background: rgba(29, 28, 26, .07); font: 700 .66rem/1 var(--f-display); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.plan__week li.on { background: var(--copper-btn); color: #fff; }
.js .plan .plan__week li.on { transform: scaleY(.2); transform-origin: bottom; transition: transform .6s var(--ease); }
.js .plan.is-in .plan__week li.on, .reveal-all .plan__week li.on { transform: none; }
.plan__week li:nth-child(2) { transition-delay: .06s; } .plan__week li:nth-child(3) { transition-delay: .12s; }
.plan__week li:nth-child(4) { transition-delay: .18s; } .plan__week li:nth-child(5) { transition-delay: .24s; }
.plan__title { grid-area: title; font: 800 clamp(1.4rem, 5vw, 2rem)/1 var(--f-display); text-transform: uppercase; }
.plan__text { grid-area: text; font-size: .95rem; color: var(--muted); }
.plan--featured { background: var(--carbon); color: var(--bone); }
.plan--featured .plan__days span, .plan--featured .plan__text { color: rgba(228, 225, 223, .78); }
.plan--featured .plan__week li { background: rgba(228, 225, 223, .08); color: var(--muted-dark); }
.plan--featured .plan__week li.on { background: var(--copper-btn); color: #fff; }
.plan__badge { position: absolute; top: 0; right: 18px; transform: translateY(-50%); padding: 7px 10px 6px; background: var(--copper-btn); color: #fff; font: 700 .72rem/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; }
@media (min-width: 1000px) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: stretch; }
  .plan { grid-template-columns: 1fr; grid-template-areas: "days" "week" "title" "text"; align-content: start; gap: 22px; padding: clamp(28px, 3vw, 40px); }
  .plan--featured { transform: translateY(-24px); }
  .plan__badge { right: 28px; }
}
.week__foot { margin-top: 30px; font-size: .9rem; color: var(--muted); }

@media (max-width: 699px) {
  .route__txt { font-size: .85rem; }
  .classes__pair { gap: 40px; }
  .cls__body { gap: 10px; padding-top: 16px; }
  .cls__text { font-size: .95rem; }
  .vital { gap: 14px; }
  .vital__media { display: none; }
  .part { padding: 18px 0 20px; }
  .part__text { margin-top: 10px; font-size: .94rem; }
  .plan { padding: 20px 16px 18px; gap: 12px 14px; }
  .plan__text { font-size: .9rem; }
}
