/* Sistema editorial de imágenes: acción, comunidad e instalaciones. */
.editorial-section{padding:78px 0;background:#0b0e13}
.editorial-section--space{padding:0;background:#0b0e13}
.editorial-section--space .editorial-band{min-height:clamp(640px,70vw,920px)}
.editorial-section--space .editorial-band>img{object-position:center 72%}
.editorial-band{position:relative;min-height:clamp(390px,48vw,620px);display:grid;align-items:end;isolation:isolate;overflow:hidden;background:#10141b}
.editorial-band>img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:center 50%;filter:brightness(.73) saturate(.9) contrast(1.04)}
.editorial-band:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(7,9,13,.94) 0%,rgba(7,9,13,.67) 40%,rgba(7,9,13,.16) 100%)}
.editorial-band--right:before{background:linear-gradient(270deg,rgba(7,9,13,.94) 0%,rgba(7,9,13,.67) 40%,rgba(7,9,13,.16) 100%)}
.editorial-copy{width:min(100% - 48px,1160px);margin:0 auto;padding:64px 0;color:#fff}
.editorial-copy h2{max-width:650px;margin:12px 0 16px;font-family:"Archivo Black",sans-serif!important;font-size:clamp(35px,5vw,66px)!important;line-height:.94!important;letter-spacing:0!important;text-transform:uppercase}
.editorial-copy p{max-width:570px;margin:0;color:#dbe2e8;font:400 17px/1.65 "Sora",sans-serif}
.editorial-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;width:min(100% - 48px,1160px);margin:0 auto}
.editorial-grid--four{grid-template-columns:repeat(4,minmax(0,1fr))}
.editorial-photo{position:relative;min-height:280px;margin:0;overflow:hidden;background:#11141b}
.editorial-photo--tall{grid-row:span 2;min-height:564px}
.editorial-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 50%;filter:brightness(.93) saturate(.93) contrast(1.03);transition:transform .45s ease,filter .45s ease}
.editorial-photo:hover img{transform:scale(1.035);filter:brightness(1) saturate(1) contrast(1.02)}
.editorial-photo figcaption{position:absolute;left:14px;bottom:14px;margin:0;padding:7px 9px;background:rgba(7,9,13,.8);color:#fff;font:700 11px/1.15 "Sora",sans-serif;letter-spacing:.08em;text-transform:uppercase}
.editorial-grid--four .editorial-photo{min-height:230px}
.editorial-grid--four .editorial-photo:nth-child(2){grid-column:span 2}
.editorial-grid--four .editorial-photo:nth-child(3){grid-row:span 2;min-height:464px}
.editorial-grid--four .editorial-photo:nth-child(4),.editorial-grid--four .editorial-photo:nth-child(5){grid-column:span 1}
.editorial-grid--four .editorial-photo:nth-child(5){grid-column:span 2}
.editorial-inline{padding:64px 0;background:#0d1821}
.editorial-inline .editorial-grid{grid-template-columns:1.15fr .85fr}
.editorial-inline .editorial-photo{min-height:360px}
.editorial-inline .editorial-photo:nth-child(2){min-height:360px}
/* Galería final de Principiantes: una imagen principal y dos escenas de apoyo. */
.editorial-grid--beginners{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr))}
.editorial-grid--beginners .editorial-photo--feature{grid-column:span 2;grid-row:span 2;min-height:564px}
.editorial-grid--beginners .editorial-photo--tatami,.editorial-grid--beginners .editorial-photo--kids{min-height:280px}
.editorial-grid--beginners .editorial-photo--kids{aspect-ratio:16 / 9;min-height:0}
.editorial-grid--beginners .editorial-photo--kids img{object-position:center 54%}
@media(max-width:720px){
  .editorial-section{padding:52px 0}.editorial-copy{width:min(100% - 40px,1160px);padding:48px 0}.editorial-copy p{font-size:16px}
  .editorial-band{min-height:430px}.editorial-band:before,.editorial-band--right:before{background:linear-gradient(0deg,rgba(7,9,13,.94) 0%,rgba(7,9,13,.55) 58%,rgba(7,9,13,.18) 100%)}
  .editorial-section--space .editorial-band{min-height:630px}
  .editorial-grid,.editorial-grid--four,.editorial-inline .editorial-grid{grid-template-columns:1fr 1fr;width:min(100% - 40px,1160px);gap:3px}
  .editorial-photo,.editorial-grid--four .editorial-photo,.editorial-inline .editorial-photo{min-height:190px}.editorial-photo--tall,.editorial-grid--four .editorial-photo:nth-child(3){grid-row:auto;min-height:190px}
  .editorial-grid--four .editorial-photo:nth-child(2),.editorial-grid--four .editorial-photo:nth-child(4),.editorial-grid--four .editorial-photo:nth-child(5){grid-column:auto}
  .editorial-grid--four .editorial-photo:first-child,.editorial-inline .editorial-photo:first-child{grid-column:span 2;min-height:300px}
  .editorial-grid--beginners{grid-template-columns:1fr 1fr;grid-template-rows:auto}
  .editorial-grid--beginners .editorial-photo--feature{grid-column:span 2;grid-row:auto;min-height:300px}
  .editorial-grid--beginners .editorial-photo--tatami{min-height:190px}
  .editorial-grid--beginners .editorial-photo--kids{grid-column:span 2;min-height:197px;aspect-ratio:16 / 9}
}

/* Galerías documentales añadidas al final visual de páginas de programa. */
main:has(.editorial-tail){display:flex;flex-direction:column}
.editorial-tail{order:10;width:100%}

/* Carrusel editorial compartido por Inicio y Clases. */
.editorial-section:has(.editorial-grid--four.site-carousel){position:relative}
.editorial-grid--four.site-carousel{display:block!important;width:min(100% - 48px,1160px)!important}
.editorial-grid--four.site-carousel .editorial-photo{width:100%;min-height:0!important;aspect-ratio:16 / 9}
.editorial-grid--four.site-carousel .editorial-photo[hidden]{display:none!important}
.editorial-grid--four.site-carousel .editorial-photo.is-active{animation:editorial-carousel-reveal .34s ease both}
.editorial-grid--four.site-carousel+.gallery-carousel-controls{position:absolute;inset:78px max(24px,calc((100vw - 1160px)/2));display:grid;grid-template-columns:52px 1fr 52px;grid-template-rows:1fr auto;align-items:center;pointer-events:none}
.editorial-grid--four.site-carousel+.gallery-carousel-controls button{display:grid;place-items:center;width:48px;height:48px;padding:0;border:1px solid rgba(255,255,255,.72);border-radius:50%;background:rgba(7,9,13,.58);box-shadow:0 7px 20px rgba(0,0,0,.26);backdrop-filter:blur(5px);color:#fff;font:700 24px/1 "Sora",sans-serif;cursor:pointer;pointer-events:auto}
.editorial-grid--four.site-carousel+.gallery-carousel-controls [data-carousel-next]{grid-column:3;justify-self:end}
.editorial-grid--four.site-carousel+.gallery-carousel-controls .gallery-carousel-status{grid-column:2;grid-row:2;justify-self:center;margin-bottom:12px;padding:7px 10px;border-radius:999px;background:rgba(7,9,13,.7);color:#fff;font:700 11px/1 "Sora",sans-serif;letter-spacing:.09em;pointer-events:none}
.editorial-grid--four.site-carousel+.gallery-carousel-controls button:focus-visible{outline:2px solid #fff;outline-offset:3px}
@keyframes editorial-carousel-reveal{from{opacity:.35;transform:scale(1.015)}to{opacity:1;transform:scale(1)}}
@media(min-width:721px) and (max-width:1279px){
  .editorial-grid--four.site-carousel{width:min(100% - 40px,1160px)!important}
  .editorial-grid--four.site-carousel .editorial-photo{aspect-ratio:3 / 2}
  .editorial-grid--four.site-carousel+.gallery-carousel-controls{inset:52px 20px}
}
@media(max-width:720px){
  .editorial-grid--four.site-carousel{width:min(100% - 40px,1160px)!important}
  .editorial-grid--four.site-carousel .editorial-photo{aspect-ratio:3 / 2}
  .editorial-grid--four.site-carousel+.gallery-carousel-controls{inset:0 20px;grid-template-columns:48px 1fr 48px}
  .editorial-grid--four.site-carousel+.gallery-carousel-controls button{width:44px;height:44px;font-size:23px}
}
@media(prefers-reduced-motion:reduce){.editorial-grid--four.site-carousel .editorial-photo.is-active{animation:none}}

/* Principiantes: hay dos fotos; el segundo bloque debe ocupar toda la altura/fila disponible. */
.editorial-grid--beginners .editorial-photo--tatami{grid-row:span 2;min-height:564px}
@media(max-width:720px){
  .editorial-grid--beginners .editorial-photo--tatami{grid-column:span 2;grid-row:auto;min-height:0;aspect-ratio:16 / 9}
}
