/* Cursos y experiencias. Reutiliza tokens y nav/footer de ../styles.css. Por fotograma solo transform/opacity. */
.cursos-page main { padding-top: calc(86px + env(safe-area-inset-top)); }
.nav__links a[aria-current] { background: rgba(243, 234, 223, .12); }

/* ── Cabecera ─────────────────────────────────────── */
.ch {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px);
  align-items: center; padding: 28px var(--gut) clamp(40px, 7vw, 96px);
}
.ch__img { aspect-ratio: 4 / 4.6; border-radius: var(--r); overflow: hidden; background: var(--ink-2); }
.ch__img img { width: 100%; height: 100%; object-fit: cover; }
.ch__copy { display: grid; gap: 18px; justify-items: start; }
.ch__title { font-size: clamp(44px, 6.6vw, 104px); line-height: .92; letter-spacing: -.045em; font-weight: 800; }
.ch__title em { font-style: normal; font-weight: 500; color: var(--ray); }
.ch__lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--mute); max-width: 34ch; }
.ch__rating { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; background: rgba(243, 234, 223, .07); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.ch__rating b { font-weight: 700; }
.stars { color: #f2b544; letter-spacing: .08em; }
.ch__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ch__chips a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; box-shadow: inset 0 0 0 1px rgba(243, 234, 223, .28); transition: background-color .3s; }
@media (hover: hover) { .ch__chips a:hover { background: rgba(243, 234, 223, .1); } }

@media (max-width: 760px) {
  .ch { grid-template-columns: 1fr; padding-top: 12px; gap: 24px; }
  .ch__img { aspect-ratio: 4 / 3; order: 2; }
  .ch__copy { order: 1; }
  .ch__chips { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + 2 * var(--gut)); margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); scrollbar-width: none; }
  .ch__chips::-webkit-scrollbar { display: none; }
  .ch__chips a { white-space: nowrap; }
}

/* ── Cursos ───────────────────────────────────────── */
.courses { display: grid; gap: clamp(20px, 3vw, 32px); padding: 0 var(--gut); }
.course {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3.4vw, 48px);
  padding: clamp(18px, 2.6vw, 36px); border-radius: var(--r);
  background: var(--cream); color: var(--ink);
  scroll-margin-top: 96px;
}
.course .video { grid-row: span 2; align-self: start; }

.video {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; border: 0; padding: 0; cursor: pointer;
  border-radius: 20px; overflow: hidden; background: var(--ink-2);
}
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22, 17, 13, 0) 55%, rgba(22, 17, 13, .55)); }
.video__play {
  position: absolute; z-index: 1; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(243, 234, 223, .92); color: var(--ink);
  transition: transform .5s var(--ease);
}
.video__play svg { width: 26px; height: 26px; fill: currentColor; margin-left: 3px; }
.video__len { position: absolute; z-index: 1; left: 14px; bottom: 12px; font-size: 13px; font-weight: 600; color: var(--cream); }
@media (hover: hover) {
  .video:hover img { transform: scale(1.03); }
  .video:hover .video__play { transform: scale(1.06); }
}
.video:active .video__play { transform: scale(.94); }

.course__body { display: grid; gap: 10px; align-content: start; }
.course__kind { font-family: var(--f-label); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: 12px; color: #73553a; }
.course__title { font-size: clamp(28px, 3vw, 42px); line-height: 1.02; letter-spacing: -.035em; font-weight: 750; }
.course__price { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.course__price span { font-size: 15px; font-weight: 500; color: rgba(22, 17, 13, .66); }
.course__h { font-family: var(--f-label); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: 12px; color: rgba(22, 17, 13, .7); margin-top: 12px; }

.facts { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.facts li { display: grid; gap: 2px; padding: 12px; border-radius: 14px; background: rgba(22, 17, 13, .06); font-size: 13px; color: rgba(22, 17, 13, .66); line-height: 1.3; }
.facts b { font-size: 16px; color: var(--ink); font-weight: 700; }

.learn { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.learn li { position: relative; padding-left: 26px; color: rgba(22, 17, 13, .84); line-height: 1.45; }
.learn li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2px solid #7c8f4f; border-bottom: 2px solid #7c8f4f; transform: rotate(-45deg); }

.dates { list-style: none; margin: 0; padding: 0; display: grid; }
.dates li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(22, 17, 13, .12); font-size: 16px; }
.dates li:first-child { border-top: 1px solid rgba(22, 17, 13, .12); }
.dates em { font-style: normal; font-size: 14px; font-weight: 600; color: #5d6e33; white-space: nowrap; }
.dates em.low { color: #b23a24; }

/* Reservar: verde de los ticks, con un brillo suave que respira (solo opacity/transform) */
.course__cta {
  position: relative; isolation: isolate; justify-self: start; margin-top: 10px;
  background: #56702c; color: #fff;
  box-shadow: 0 10px 26px -10px rgba(86, 112, 44, .75), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.course__cta::before {
  content: ""; position: absolute; inset: -6px; z-index: -1; border-radius: inherit;
  background: radial-gradient(closest-side, rgba(140, 180, 80, .55), rgba(140, 180, 80, 0));
  opacity: .35; transform: scale(.96); animation: ctaGlow 2.8s ease-in-out infinite;
}
@keyframes ctaGlow { 50% { opacity: .9; transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .course__cta::before { animation: none; opacity: .6; } }

/* Reseñas tipo Google: carrusel con scroll-snap */
.revs { grid-column: 2; min-width: 0; }
.revs__h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.revs__t { font-family: var(--f-label); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: 12px; color: rgba(22, 17, 13, .7); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.revs__ex { font-family: inherit; letter-spacing: .02em; text-transform: none; font-weight: 600; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(22, 17, 13, .07); color: rgba(22, 17, 13, .6); }
.revs__nav { display: flex; gap: 6px; }
.revs__btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 1px 2px rgba(22, 17, 13, .12); cursor: pointer; transition: transform .3s var(--ease), opacity .3s; }
.revs__btn svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.revs__btn:active { transform: scale(.92); }
.revs__btn[disabled] { opacity: .35; cursor: default; }
.revs__track {
  list-style: none; margin: 0; padding: 4px 2px 10px; display: grid; grid-auto-flow: column; grid-auto-columns: 86%;
  gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.revs__track::-webkit-scrollbar { display: none; }
.rev { scroll-snap-align: start; display: grid; align-content: start; gap: 8px; padding: 16px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(22, 17, 13, .08), 0 6px 18px -12px rgba(22, 17, 13, .25); }
.rev__top { display: flex; align-items: center; gap: 10px; }
.rev__av { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--av); color: #fff; font-weight: 600; font-size: 17px; }
.rev__who { display: grid; line-height: 1.25; min-width: 0; }
.rev__who b { font-size: 15px; font-weight: 600; color: #202124; }
.rev__who small { font-size: 12.5px; color: #5f6368; }
.rev__stars { margin: 0; color: #fbbc04; font-size: 17px; letter-spacing: .06em; line-height: 1; }
.rev__txt { margin: 0; font-size: 15px; line-height: 1.5; color: #3c4043; }
@media (min-width: 1100px) { .revs__track { grid-auto-columns: calc(50% - 5px); } }

@media (max-width: 860px) {
  .course { grid-template-columns: 1fr; }
  .course .video { grid-row: auto; aspect-ratio: 4 / 3.2; }
  .revs { grid-column: auto; }
}

/* ── Reseñas de Google ───────────────────────────── */
.greviews {
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
  margin: clamp(40px, 7vw, 96px) var(--gut) 0; padding: clamp(22px, 3vw, 36px);
  border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line);
}
.greviews__score { display: grid; justify-items: start; gap: 2px; }
.greviews__n { font-size: 64px; line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.greviews__src { font-size: 13px; color: var(--mute); }
.greviews__note { color: var(--mute); max-width: 52ch; }
@media (max-width: 760px) { .greviews { grid-template-columns: 1fr; gap: 14px; } }

/* ── Hostelería ──────────────────────────────────── */
.horeca { display: grid; gap: 16px; justify-items: start; padding: clamp(56px, 9vw, 128px) var(--gut); max-width: 980px; }
.horeca__title { font-size: clamp(36px, 5vw, 72px); line-height: .98; letter-spacing: -.04em; font-weight: 750; }
.horeca__lead { color: var(--mute); max-width: 52ch; font-size: 18px; }
.horeca__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }




/* ── Aparición al hacer scroll (sencilla) ────────── */
.rv [data-rv] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv [data-rv].is-in { opacity: 1; transform: none; }

/* ── Cierre «Forma a tu equipo» (como el de la web) ── */
.closing--cursos { background: transparent; padding: clamp(48px, 8vw, 110px) var(--gut) calc(36px + clamp(28px, 5vw, 64px)); }
.closing--cursos .closing__frame { height: min(80svh, 720px); }
.closing--cursos .closing__frame > img { position: absolute; inset: 0; transform: scale(1.12); transition: transform 1.6s var(--ease); }
.closing--cursos.is-in .closing__frame > img { transform: scale(1); }
.closing--cursos .closing__copy { gap: 18px; }
.closing--cursos .closing__title { font-size: clamp(48px, 8.4vw, 132px); }
.closing__kicker { font-family: var(--f-label); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: 12px; color: var(--ray); }
.closing__lead { max-width: 44ch; color: rgba(243, 234, 223, .82); font-size: clamp(16px, 1.4vw, 19px); }
.closing__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.closing--cursos .rays line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s cubic-bezier(.16, 1, .3, 1); }
.closing--cursos.is-in .rays line { stroke-dashoffset: 0; }
.closing--cursos .closing__copy > :not(svg) { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.closing--cursos.is-in .closing__copy > :not(svg) { opacity: 1; transform: none; }
.closing--cursos.is-in .closing__copy > :nth-child(3) { transition-delay: .08s; }
.closing--cursos.is-in .closing__copy > :nth-child(4) { transition-delay: .16s; }
.closing--cursos.is-in .closing__copy > :nth-child(5) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .closing--cursos .closing__frame > img { transform: none; transition: none; }
  .closing--cursos .rays line { stroke-dashoffset: 0; transition: none; }
  .closing--cursos .closing__copy > :not(svg) { opacity: 1; transform: none; transition: none; }
}

/* Vídeo: el play late con dos ondas suaves y debajo «Ver el vídeo» (solo transform/opacity) */
.video__play { box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .5); }
.video__play::before, .video__play::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(243, 234, 223, .85);
  opacity: 0; transform: scale(1); animation: playWave 2.6s cubic-bezier(.2, .6, .3, 1) infinite; pointer-events: none;
}
.video__play::after { animation-delay: 1.3s; }
@keyframes playWave { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.75); } }
.video__play svg { animation: playBeat 2.6s ease-in-out infinite; }
@keyframes playBeat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.12); } 24% { transform: scale(1); } }
.video__cta {
  position: absolute; z-index: 1; left: 50%; top: calc(50% + 50px); transform: translateX(-50%);
  padding: 7px 14px; border-radius: 999px; white-space: nowrap;
  background: rgba(22, 17, 13, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--cream); font-size: 14px; font-weight: 600; letter-spacing: .01em;
  box-shadow: inset 0 0 0 1px rgba(243, 234, 223, .22);
  transition: transform .5s var(--ease), background-color .3s;
}
@media (hover: hover) { .video:hover .video__cta { transform: translateX(-50%) translateY(2px); background: rgba(22, 17, 13, .6); } }
@media (prefers-reduced-motion: reduce) {
  .video__play::before, .video__play::after, .video__play svg { animation: none; }
}

/* Cabecera: textura de fondo (foto del tueste muy tenue + granos 3D que caen despacio) */
.ch { position: relative; isolation: isolate; }
.ch > :not(.ch__bg) { position: relative; z-index: 1; }
.ch__bg { position: absolute; z-index: 0; inset: calc(-86px - env(safe-area-inset-top)) 0 0; overflow: hidden; pointer-events: none; }
.ch__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .2; filter: saturate(.75); transform: scale(1.08); animation: chDrift 24s ease-in-out infinite alternate; }
.ch__bg canvas { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 2.4s ease; }
.ch__bg canvas.is-on { opacity: .42; }
.ch__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 70% 45%, rgba(22, 17, 13, .2), rgba(22, 17, 13, .85) 85%), linear-gradient(180deg, rgba(22, 17, 13, .55), rgba(22, 17, 13, 0) 30%, rgba(22, 17, 13, 0) 70%, var(--ink) 100%); }
@keyframes chDrift { to { transform: scale(1.14) translate3d(-1.5%, 1%, 0); } }
@media (prefers-reduced-motion: reduce) { .ch__bg img { animation: none; } }

/* ══ Versión final: índice, fichas y condiciones de las formaciones ══════════════ */
.sub-page main { padding-top: calc(86px + env(safe-area-inset-top)); }

/* Tarjeta del índice: foto (los vídeos llegarán más adelante) */
.course__img { grid-row: span 2; align-self: start; display: block; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: var(--ink-2); }
.course__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
@media (hover: hover) { .course:hover .course__img img { transform: scale(1.03); } }
.course__title a { color: inherit; }
.course__lede { color: rgba(22, 17, 13, .78); max-width: 52ch; margin-top: 6px; }
.course__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .course__img { grid-row: auto; aspect-ratio: 4 / 3.2; } }

/* Modo de reserva */
.mode { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; line-height: 1.2; }
.mode::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.mode--conv { background: rgba(176, 138, 90, .18); color: #6f4e2f; }
.mode--cal { background: rgba(86, 112, 44, .14); color: #43591d; }

.modes { max-width: 1320px; margin: 0 auto; padding: clamp(56px, 9vw, 120px) var(--gut) 0; }
.modes__head { margin-bottom: 28px; }
.modes .h2 em, .gal .h2 em { color: var(--ray); }
.modes__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.modes__card { display: grid; gap: 10px; align-content: start; padding: clamp(22px, 3vw, 36px); border-radius: var(--r); background: var(--cream); color: var(--ink); }
.modes__card h3 { font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -.03em; line-height: 1.05; }
.modes__card p:not(.mode) { color: rgba(22, 17, 13, .76); }
.modes__card a, .modes__cond a { text-decoration: underline; text-underline-offset: 3px; }
.modes__cond { margin-top: 18px; color: var(--mute); }
@media (max-width: 760px) { .modes__grid { grid-template-columns: 1fr; } }

.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 1320px; margin: clamp(40px, 6vw, 80px) auto 0; padding: 0 var(--gut); }
.why__item { display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); }
.why__item h3 { font-size: 20px; letter-spacing: -.02em; line-height: 1.1; }
.why__item p { color: var(--mute); font-size: 15px; }
@media (max-width: 1000px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .why { grid-template-columns: 1fr; } }

/* Migas */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; max-width: 1320px; margin: 0 auto; padding: 18px var(--gut) 0; font-size: 14px; color: var(--mute); }
.crumbs a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(243, 234, 223, .35); }

/* Ficha */
.fx { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 64px); align-items: start; max-width: 1320px; margin: 0 auto; padding: 20px var(--gut) clamp(40px, 6vw, 80px); }
.fx__media { position: sticky; top: 100px; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--ink-2); }
.fx__media img { width: 100%; height: 100%; object-fit: cover; }
.fx__body { display: grid; gap: 14px; align-content: start; }
.fx__body > .course__kind { color: var(--ray); }
.fx__title { font-size: clamp(38px, 4.8vw, 72px); line-height: .96; letter-spacing: -.045em; font-weight: 800; }
.fx__lede { font-size: clamp(17px, 1.4vw, 20px); color: rgba(243, 234, 223, .8); max-width: 44ch; }
.fx .facts li { background: rgba(243, 234, 223, .07); color: var(--mute); }
.fx .facts b { color: var(--cream); }
@media (max-width: 860px) {
  .fx { grid-template-columns: 1fr; }
  .fx__media { position: relative; top: 0; aspect-ratio: 4 / 3.4; }
}

/* Caja de reserva */
.book { display: grid; gap: 14px; margin-top: 8px; padding: clamp(18px, 2.4vw, 28px); border-radius: 24px; background: var(--cream); color: var(--ink); }
.book__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.book .course__price { font-size: 30px; }
.book__how { color: rgba(22, 17, 13, .78); }
.book__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.book .course__cta { margin-top: 0; flex: 1 1 220px; justify-content: center; }
.book__small { font-size: 13.5px; color: rgba(22, 17, 13, .62); }
.book__small a { color: rgba(22, 17, 13, .85); text-decoration: underline; text-underline-offset: 3px; }
.qty { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(22, 17, 13, .06); }
.qty__l { font-size: 13px; font-weight: 600; color: rgba(22, 17, 13, .66); padding: 0 8px 0 12px; }
.qty button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; box-shadow: 0 1px 2px rgba(22, 17, 13, .12); transition: transform .2s var(--ease); }
.qty button:active { transform: scale(.92); }
.qty output { min-width: 28px; text-align: center; font-weight: 700; font-size: 17px; }
.book__dates { display: grid; gap: 8px; }
.book__ex { justify-self: start; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(228, 87, 63, .12); color: #9c3420; }
.slot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px rgba(22, 17, 13, .12); cursor: pointer; font-size: 15.5px; }
.slot input { position: absolute; opacity: 0; pointer-events: none; }
.slot:has(input:checked) { box-shadow: inset 0 0 0 2px #56702c; background: #f4f7ee; }
.slot:has(input:focus-visible) { outline: 2px solid #56702c; outline-offset: 2px; }
.slot em { font-style: normal; font-size: 13.5px; font-weight: 600; color: #4f5f2a; white-space: nowrap; }
.slot em.low { color: #a8331d; }
.slot.is-full { opacity: .55; cursor: not-allowed; }
.slot.is-full em { color: #6b6257; }
.slot--more { display: none; }
.book__dates.is-all .slot--more { display: flex; }
.book__dates.is-all { max-height: 372px; overflow-y: auto; overscroll-behavior: contain; padding: 2px; margin: -2px; }
.book__dates.is-all .slot__more { display: none; }
.slot__more { justify-self: start; min-height: 44px; padding: 0 4px; font: inherit; font-size: 15px; font-weight: 600; color: #43591d; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; cursor: pointer; }
.course__cta:disabled { opacity: .5; cursor: not-allowed; }

/* Detalle */
.fxd { padding: 0 var(--gut); }
.fxd__grid { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); padding: clamp(24px, 4vw, 56px); border-radius: var(--r); background: var(--cream); color: var(--ink); }
.fxd__h { font-size: clamp(30px, 3.4vw, 48px); letter-spacing: -.04em; line-height: 1; margin-bottom: 6px; }
.fxd__main { display: grid; gap: 14px; align-content: start; }
.fxd__main > p { color: rgba(22, 17, 13, .8); max-width: 60ch; font-size: 17px; }
.fxd__main .learn { margin-top: 8px; }
.fxd__side { display: grid; gap: 22px; align-content: start; }
.fxd__side p { color: rgba(22, 17, 13, .8); }
.tags { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 7px 12px; border-radius: 999px; background: rgba(22, 17, 13, .07); font-size: 14px; font-weight: 600; }
.steps { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; color: rgba(22, 17, 13, .84); line-height: 1.45; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--dark); color: var(--cream); font-size: 13px; font-weight: 700; }
.steps a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) { .fxd__grid { grid-template-columns: 1fr; } }

/* Galería del tostador */
.gal { max-width: 1320px; margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--gut) 0; }
.gal__head { margin-bottom: 24px; }
.gal__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gal__it { margin: 0; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; background: var(--ink-2); }
.gal__it img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .gal__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Dónde y dudas */
.where { max-width: 1320px; margin: clamp(48px, 7vw, 96px) auto 0; padding: 0 var(--gut); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.where__card { display: grid; gap: 10px; align-content: start; padding: clamp(22px, 3vw, 36px); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); }
.where__t { font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -.035em; line-height: 1.02; }
.where__addr { color: var(--mute); font-size: 17px; }
.where__addr a { color: var(--cream); }
.where__small { font-size: 14px; color: var(--mute); }
.where__small a { text-decoration: underline; text-underline-offset: 3px; }
.where__ctas { margin-top: 6px; }
@media (max-width: 760px) { .where { grid-template-columns: 1fr; } }

/* Otras formaciones */
.others { max-width: 1320px; margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--gut); }
.others__h { font-size: clamp(28px, 3vw, 44px); letter-spacing: -.035em; margin-bottom: 20px; }
.others__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.oth { display: grid; gap: 4px; align-content: start; }
.oth__img { display: block; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; margin-bottom: 8px; background: var(--ink-2); }
.oth__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
@media (hover: hover) { .oth:hover .oth__img img { transform: scale(1.04); } }
.oth__kind { font-family: var(--f-label); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; font-size: 11px; color: var(--ray); }
.oth b { font-size: 19px; letter-spacing: -.02em; line-height: 1.15; }
.oth__meta { color: var(--mute); font-size: 14.5px; }
@media (max-width: 1000px) {
  .others__row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(62vw, 260px); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gut)); padding: 0 var(--gut) 8px; scroll-padding-inline: var(--gut); scrollbar-width: none; }
  .others__row::-webkit-scrollbar { display: none; }
  .oth { scroll-snap-align: start; }
}

/* Condiciones */
.legal { max-width: 800px; margin: 0 auto; padding: 24px var(--gut) clamp(64px, 9vw, 120px); display: grid; gap: 14px; }
.legal__t { font-size: clamp(36px, 5vw, 64px); line-height: .98; letter-spacing: -.045em; font-weight: 800; margin-bottom: 12px; }
.legal h2 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.025em; margin-top: 22px; }
.legal p { color: rgba(243, 234, 223, .8); font-size: 17px; line-height: 1.6; }
.legal p b { color: var(--cream); }
.legal__back { margin-top: 20px; }

/* ══ Tema claro de formaciones y condiciones (Sergio, 23-11-2026: nada de fondo negro) ══════════
   Fondo crema; menú, pie y menú del móvil en marrón café oscuro. Las tarjetas, en crema claro con sombra suave. */
.sub-page {
  --brown: #3f2c1f; --paper: #fffaf3;
  --ink-soft: rgba(22, 17, 13, .72); --line-d: rgba(22, 17, 13, .13);
  --lift: 0 1px 2px rgba(22, 17, 13, .06), 0 22px 44px -30px rgba(63, 44, 31, .45);
  background: var(--cream); color: var(--ink);
}
.sub-page .nav.is-scrolled, .sub-page .menu, .sub-page .foot { background: var(--brown); }
.sub-page .menu, .sub-page .foot { color: var(--cream); }
.sub-page .nav { color: var(--cream); }
.sub-page .eyebrow, .sub-page .h2 em, .sub-page .ch__title em { color: var(--ray-d); }

.sub-page .crumbs { color: rgba(22, 17, 13, .58); }
.sub-page .crumbs a { color: var(--ink); text-decoration-color: rgba(22, 17, 13, .3); }

/* Cabecera del índice */
.sub-page .ch__lead { color: var(--ink-soft); }
.sub-page .ch__img { background: var(--cream-2); box-shadow: var(--lift); }
.sub-page .ch__rating { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-d); color: var(--ink); }
.sub-page .ch__chips a { box-shadow: inset 0 0 0 1px rgba(22, 17, 13, .2); color: var(--ink); }
@media (hover: hover) { .sub-page .ch__chips a:hover { background: rgba(22, 17, 13, .06); } }
.sub-page .ch__bg img { opacity: .14; filter: saturate(.6) sepia(.2); }
.sub-page .ch__bg::after { background: radial-gradient(70% 60% at 70% 45%, rgba(243, 234, 223, .35), rgba(243, 234, 223, .92) 85%), linear-gradient(180deg, rgba(243, 234, 223, .7), rgba(243, 234, 223, 0) 30%, rgba(243, 234, 223, 0) 70%, var(--cream) 100%); }

/* Tarjetas */
.sub-page .course, .sub-page .modes__card, .sub-page .book, .sub-page .fxd__grid { background: var(--paper); box-shadow: var(--lift); }
.sub-page .course__img, .sub-page .fx__media, .sub-page .gal__it, .sub-page .oth__img { background: var(--cream-2); }
.sub-page .fx__media { box-shadow: var(--lift); }
.sub-page .modes__cond { color: var(--ink-soft); }
.sub-page .why__item { background: rgba(255, 250, 243, .55); box-shadow: inset 0 0 0 1px var(--line-d); }
.sub-page .why__item p { color: var(--ink-soft); }

/* Ficha */
.sub-page .fx__body > .course__kind { color: var(--ray-d); }
.sub-page .fx__lede { color: var(--ink-soft); }
.sub-page .fx .facts li { background: rgba(63, 44, 31, .07); color: rgba(22, 17, 13, .62); }
.sub-page .fx .facts b { color: var(--ink); }
.sub-page .where__card { background: rgba(255, 250, 243, .55); box-shadow: inset 0 0 0 1px var(--line-d); }
.sub-page .where__addr, .sub-page .where__small { color: var(--ink-soft); }
.sub-page .where__addr a { color: var(--ink); }
.sub-page .where .btn--ghost { box-shadow: inset 0 0 0 1px rgba(22, 17, 13, .28); color: var(--ink); }
.sub-page .oth__kind { color: var(--ray-d); }
.sub-page .oth__meta { color: rgba(22, 17, 13, .6); }

/* Condiciones */
.sub-page .legal p { color: rgba(22, 17, 13, .8); }
.sub-page .legal p b { color: var(--ink); }
.sub-page .legal__back .btn--primary { background: var(--brown); color: var(--cream); }

/* Cierre «Forma a tu equipo»: el marco con foto se queda; alrededor, crema */
.sub-page .closing--cursos { background: transparent; }
/* Los granos 3D de la cabecera, más suaves sobre crema: textura, sin tapar el titular */
.sub-page .ch__bg canvas.is-on { opacity: .16; }

/* Fotos con gente (Sergio, 29-11): encuadradas arriba, que en el móvil no se corte ninguna cabeza.
   Grupo en la tostadora (el señor alto llega casi al borde de arriba) y la pareja del taller. */
.course__img img[src*="f-visita"], .fx__media img[src*="f-visita"], .oth__img img[src*="f-visita"], .ch__img img[src*="f-visita"] { object-position: 50% 16%; }
.course__img img[src*="f-taller-casa"], .fx__media img[src*="f-taller-casa"], .oth__img img[src*="f-taller-casa"], .ch__img img[src*="f-taller-casa"] { object-position: 50% 6%; }
.course__img img[src*="f-master"], .fx__media img[src*="f-master"], .oth__img img[src*="f-master"], .ch__img img[src*="f-master"] { object-position: 50% 16%; }  /* masterclass: la cara y la taza */

/* «en Zaragoza» dentro del H1 de cada curso (SEO, 29-11): más pequeño, en el color del antetítulo */
.fx__where { display: block; margin-top: 12px; font-size: max(.36em, 17px); line-height: 1.2; font-weight: 600; letter-spacing: -.01em; color: var(--ray); }
.sub-page .fx__where { color: var(--ray-d); }

/* Índice de formaciones en escritorio (Sergio, 29-11): la tarjeta mide lo que mide su texto y la foto ocupa ese alto.
   Antes la foto era 4:5 y mandaba ella: quedaban más de 300 px vacíos debajo de «Ver y reservar». */
@media (min-width: 861px) {
  .course { grid-template-columns: minmax(0, .62fr) minmax(0, 1fr); align-items: stretch; }
  .course__img { grid-row: auto; align-self: stretch; aspect-ratio: auto; position: relative; min-height: 380px; }
  .course__img img { position: absolute; inset: 0; }
  .course__body { align-content: center; gap: 12px; padding: clamp(8px, 1.2vw, 20px) 0; }
  .course__lede { max-width: 62ch; }
}
