/* Composición de imágenes con expansión compartida al abrir un programa. */
.rc-program-gallery { padding: 90px max(24px, calc((100vw - 1160px)/2)); background: #10181f; color: #f3f5f7; }
.rc-program-gallery .rc-eyebrow { color: #9eb2c1; }
.rc-program-gallery__heading h2 { color: #f3f5f7; }
.rc-program-gallery__heading { display: flex; justify-content: space-between; align-items: end; gap: 35px; margin-bottom: 32px; }
.rc-program-gallery__heading h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.12; letter-spacing: -.04em; max-width: 600px; margin-top: 14px; }
.rc-program-gallery__heading > p { max-width: 310px; font-size: 14px; line-height: 1.7; color: #aab9c4; }
.rc-program-gallery__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rc-program-card { min-width: 0; height: 280px; }
.rc-program-card:nth-child(4n+1), .rc-program-card:nth-child(4n+4) { grid-column: span 2; }
.rc-program-card__open { position: relative; width: 100%; height: 100%; overflow: hidden; border: 0; border-radius: 20px; padding: 0; background: #14212b; color: white; cursor: pointer; text-align: left; }
.rc-program-card__open::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 25%, rgba(9,20,28,.85)); }
.rc-program-card__open img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.rc-program-card__open:hover img { transform: scale(1.045); }
.rc-program-card__open:focus-visible { outline: 3px solid #405e70; outline-offset: 5px; }
.rc-program-card__label { position: absolute; z-index: 1; left: 28px; right: 28px; bottom: 28px; font-size: clamp(21px,2.2vw,30px); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; }
.rc-program-card__label small { display: block; font-size: 10px; font-weight: 400; letter-spacing: .15em; margin-bottom: 12px; color: #d3dce2; }
.rc-program-card__hint { position: absolute; z-index: 1; top: 20px; right: 20px; font-size: 11px; padding: 8px 12px; border: 1px solid #ffffff55; border-radius: 30px; background: #14212b33; }
.rc-program-detail { width: min(850px, calc(100vw - 40px)); height: min(580px, calc(100dvh - 64px)); max-width: none; max-height: none; padding: 0; margin: auto; border: 0; border-radius: 22px; background: #14212b; color: white; overflow: hidden; transform-origin: top left; }
.rc-program-detail::backdrop { background: rgba(9,18,25,.78); backdrop-filter: blur(7px); }
.rc-program-detail__panel { position: relative; height: 100%; isolation: isolate; }
.rc-program-detail__panel::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(transparent, rgba(8,19,27,.94)); }
.rc-program-detail__image { position: absolute; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.rc-program-detail__close { position: absolute; right: 20px; top: 20px; border: 1px solid #ffffff66; border-radius: 30px; background: #14212b99; color: white; padding: 10px 16px; cursor: pointer; }
.rc-program-detail__content { position: absolute; bottom: 0; padding: clamp(24px,5vw,48px); width: 100%; max-height: calc(100% - 65px); overflow-y: auto; }
.rc-program-detail__content h2 { font-size: clamp(28px,4vw,45px); line-height: 1.1; letter-spacing: -.035em; margin: 16px 0; color: white; }
.rc-program-detail__description { max-width: 620px; font-size: 15px; line-height: 1.75; color: #e0e7ec; }
.rc-program-detail__content a { display: inline-block; margin-top: 24px; color: white; text-underline-offset: 5px; }
@media (max-width: 650px) {
  .rc-program-gallery { padding: 55px 20px; }
  .rc-program-gallery__heading { display: block; }
  .rc-program-gallery__heading > p { margin-top: 20px; }
  .rc-program-gallery__grid { grid-template-columns: 1fr; gap: 16px; }
  .rc-program-card, .rc-program-card:nth-child(n) { grid-column: auto; height: 260px; }
  .rc-program-detail { height: min(580px, calc(100dvh - 40px)); }
}
@media (prefers-reduced-motion: reduce) { .rc-program-card__open img { transition: none; } }
