/* Fotografías en las cabeceras de los talleres. */
.page-banner .workshop-header-layout{display:grid;grid-template-columns:minmax(220px,1fr) minmax(300px,540px);column-gap:48px;row-gap:12px;align-items:center}
.page-banner .workshop-header-layout>.crumb{grid-column:1;grid-row:1;align-self:end;margin:0}
.page-banner .workshop-header-layout>h1{grid-column:1;grid-row:2;align-self:start;margin:0;overflow-wrap:anywhere}
.page-banner .workshop-header-photo{grid-column:2;grid-row:1 / 3;margin:0;width:100%;height:250px;min-width:0;border-radius:18px;background-color:rgba(255,255,255,.06);background-position:center;background-repeat:no-repeat;background-size:contain;box-shadow:0 0 0 1px rgba(255,255,255,.14);overflow:hidden}
@media(max-width:700px){.page-banner .workshop-header-layout{grid-template-columns:minmax(0,1fr);gap:14px}.page-banner .workshop-header-layout>.crumb,.page-banner .workshop-header-layout>h1{grid-column:1;grid-row:auto}.page-banner .workshop-header-photo{grid-column:1;grid-row:auto;height:240px;border-radius:14px}.page-banner .workshop-header-layout>h1{margin-bottom:4px}}
/* Profundidad sutil en los paneles de cada taller. */
.page-banner .workshop-header-layout{perspective:1400px}
.page-banner .workshop-header-photo{position:relative;transform:rotateY(-3deg) rotateX(1deg);transform-origin:center;box-shadow:0 22px 34px -20px rgba(0,0,0,.8),0 8px 16px -10px rgba(0,0,0,.65),0 0 0 1px rgba(255,255,255,.25);border:6px solid rgba(255,255,255,.08);box-sizing:border-box;transition:transform .25s ease,box-shadow .25s ease}
.page-banner .workshop-header-photo::after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;box-shadow:inset 0 1px 0 rgba(255,255,255,.2)}
body:has(.workshop-header-layout) .page-content.organized-copy .copy-block{position:relative;background:#fff;border:1px solid #dce5ef;border-top:3px solid #d6ac43;border-radius:18px;padding:clamp(20px,3vw,30px);box-shadow:0 16px 25px -20px rgba(16,46,88,.55),0 4px 9px rgba(16,46,88,.055);transition:transform .2s ease,box-shadow .2s ease;margin-bottom:22px}
body:has(.workshop-header-layout) .page-content.organized-copy .copy-block>h2:first-child{margin-top:0}
body:has(.workshop-header-layout) .page-content.organized-copy .copy-block>:last-child{margin-bottom:0}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.page-banner .workshop-header-photo:hover{transform:rotateY(0) rotateX(0) translateY(-3px);box-shadow:0 25px 40px -20px rgba(0,0,0,.8),0 0 0 1px rgba(255,255,255,.3)}body:has(.workshop-header-layout) .page-content.organized-copy .copy-block:hover{transform:translateY(-3px);box-shadow:0 20px 30px -20px rgba(16,46,88,.5),0 5px 12px rgba(16,46,88,.075)}}
@media(max-width:700px){.page-banner .workshop-header-photo{transform:none;border-width:4px}}
@media(prefers-reduced-motion:reduce){.page-banner .workshop-header-photo,body:has(.workshop-header-layout) .page-content.organized-copy .copy-block{transform:none!important;transition:none!important}}
/* Sebastito: detalles integrados que no cubren enlaces ni fotografías. */
.sebastito-scene{position:relative;padding-right:110px!important;min-height:126px}
.sebastito-decoration{position:absolute;right:8px;bottom:0;width:96px;height:120px;background-position:center bottom;background-size:contain;background-repeat:no-repeat;pointer-events:none;user-select:none;filter:drop-shadow(0 7px 5px rgba(16,46,88,.11))}
.sebastito-basket{background-image:url('/assets/cabeceras-talleres/sebastito-orejas-pelota-v3.png')}
.sebastito-saludo{background-image:url('/assets/cabeceras-talleres/sebastito-orejas-pelota-v3.png')}
header .academic-excellence.sebastito-badge-v2{display:flex!important;align-items:center!important;gap:2px!important;width:350px!important;max-width:100%!important;flex:0 1 350px!important;min-width:260px!important;height:94px!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;overflow:visible!important}
header .academic-excellence.sebastito-badge-v2>:not(.sebastito-badge-mascot):not(.sebastito-bubble){display:none!important;visibility:hidden!important}
header .academic-excellence.sebastito-badge-v2>.sebastito-badge-mascot{display:block!important;visibility:visible!important;flex:0 0 88px!important;width:88px!important;height:90px!important;background:transparent url('/assets/cabeceras-talleres/sebastito-orejas-pelota-v3.png') center bottom/contain no-repeat!important;border:0!important;border-radius:0!important;margin:0!important;padding:0!important}
header .academic-excellence.sebastito-badge-v2>.sebastito-bubble{display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:flex-start!important;visibility:visible!important;position:relative!important;min-width:0!important;padding:10px 14px!important;border:2px solid #183b6c!important;border-radius:17px!important;background:#fff8df!important;color:#102e58!important;box-shadow:0 4px 0 #e7bd49,0 8px 12px -10px #102e58!important;font:700 15px/1.3 system-ui,sans-serif!important;text-align:left!important;transform-origin:left center;animation:sebastito-speech 5s ease-in-out infinite}
header .academic-excellence.sebastito-badge-v2 .sebastito-bubble b{display:block!important;font:700 18px/1.3 system-ui,sans-serif!important;letter-spacing:.03em!important;color:#9b6500!important;margin-top:2px!important}
header .academic-excellence.sebastito-badge-v2 .sebastito-bubble::before{content:"";position:absolute;left:-9px;top:26px;width:12px;height:12px;background:#fff8df;border-left:2px solid #183b6c;border-bottom:2px solid #183b6c;transform:rotate(45deg)}
@keyframes sebastito-speech{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-3px) rotate(-.7deg)}}
@media(max-width:520px){.sebastito-scene{padding-right:78px!important;min-height:100px}.sebastito-decoration{width:66px;height:96px;right:0}header .academic-excellence.sebastito-badge-v2{margin:0 auto!important;width:320px!important;min-width:0!important}}
@media(prefers-reduced-motion:reduce){header .academic-excellence.sebastito-badge-v2>.sebastito-bubble{animation:none!important}}
/* Excelencia: composición completa, sin recortes ni texto incrustado. */
header .academic-excellence.sebastito-badge-v2{box-sizing:border-box!important;position:relative!important;isolation:isolate;display:grid!important;grid-template-columns:88px minmax(0,1fr)!important;gap:10px!important;width:360px!important;min-width:0!important;max-width:100%!important;height:auto!important;min-height:108px!important;padding:8px 6px!important;overflow:visible!important;flex:0 1 360px!important;clip-path:none!important;mask:none!important}
header .academic-excellence.sebastito-badge-v2::before,header .academic-excellence.sebastito-badge-v2::after{content:none!important}
header .academic-excellence.sebastito-badge-v2>.sebastito-badge-mascot{position:relative!important;inset:auto!important;width:88px!important;height:100px!important;max-height:none!important;clip-path:none!important;transform:none!important;filter:drop-shadow(0 4px 3px #102e5820)}
header .academic-excellence.sebastito-badge-v2>.sebastito-bubble{box-sizing:border-box!important;width:100%!important;max-width:none!important;height:auto!important;min-height:74px!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;padding:12px 16px!important;border:1.5px solid #183b6c!important;border-radius:18px!important;background:linear-gradient(135deg,#fffdf3,#fff2c9)!important;box-shadow:0 4px 0 #dfb442,0 9px 20px -13px #173b6c70!important;font:700 15px/1.35 system-ui,sans-serif!important;letter-spacing:0!important}
header .academic-excellence.sebastito-badge-v2 .sebastito-bubble b{font-size:20px!important;white-space:nowrap!important;letter-spacing:.05em!important;color:#936200!important}
@media(max-width:520px){header .academic-excellence.sebastito-badge-v2{width:320px!important;grid-template-columns:70px minmax(0,1fr)!important;gap:8px!important;min-height:96px!important}header .academic-excellence.sebastito-badge-v2>.sebastito-badge-mascot{width:70px!important;height:88px!important}header .academic-excellence.sebastito-badge-v2>.sebastito-bubble{font-size:13px!important;padding:10px 12px!important}header .academic-excellence.sebastito-badge-v2 .sebastito-bubble b{font-size:18px!important}}
/* Fotografías panorámicas a todo el ancho en los seis talleres. */
.page-banner:has(.workshop-header-photo){position:relative!important;isolation:isolate;overflow:hidden!important;padding:0!important;background:#102e58!important}
.page-banner .workshop-header-layout{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:12px!important;position:static!important;perspective:none!important;min-height:360px!important;padding-top:64px!important;padding-bottom:64px!important;box-sizing:border-box!important}
.page-banner .workshop-header-layout>.crumb,.page-banner .workshop-header-layout>h1{position:relative!important;z-index:2!important;color:#fff!important;text-shadow:0 2px 16px #0008!important;max-width:100%!important}
.page-banner .workshop-header-layout>.crumb{color:#eef4ff!important}
.page-banner .workshop-header-layout>h1{font-size:clamp(36px,4vw,58px)!important;line-height:1.12!important}
.page-banner .workshop-header-photo{position:absolute!important;inset:0!important;z-index:0!important;width:100%!important;height:100%!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;transform:none!important;background-size:cover!important;background-position:center 48%!important;transition:none!important;pointer-events:none!important}
.page-banner .workshop-header-photo::after{content:""!important;position:absolute!important;inset:0!important;border-radius:0!important;background:linear-gradient(90deg,rgba(7,27,56,.88),rgba(7,27,56,.53) 45%,rgba(7,27,56,.18)),linear-gradient(0deg,rgba(7,27,56,.25),transparent 60%)!important;box-shadow:none!important}
@media(max-width:700px){.page-banner .workshop-header-layout{min-height:300px!important;padding-top:48px!important;padding-bottom:48px!important}.page-banner .workshop-header-photo{background-position:center center!important}.page-banner .workshop-header-photo::after{background:linear-gradient(90deg,rgba(7,27,56,.78),rgba(7,27,56,.38))!important}}
.workshops .circo-restaurado{display:block!important;position:relative;min-height:230px;overflow:hidden;border-radius:18px}
.circo-restaurado-foto{position:absolute;inset:0;display:block;background:linear-gradient(0deg,#071b38cc,transparent 65%),url('/assets/cabeceras-talleres/circo.jpg') center/cover no-repeat}
.workshops .circo-restaurado>div{position:absolute;bottom:20px;left:22px;z-index:1;color:white}

/* Fondo de la comunidad: fotografía real con una capa clara para leer. */
body{background-color:#e6edf2!important;background-image:linear-gradient(rgba(238,244,248,.48),rgba(238,244,248,.48)),url('/assets/cabeceras-talleres/fondo-comunidad.jpg')!important;background-size:cover!important;background-position:center 65%!important;background-repeat:no-repeat!important;background-attachment:fixed!important}
main{background:transparent!important}
main>section:not(.school-carousel){background-color:rgba(247,250,252,.42)!important}
main>section.soft{background-color:rgba(229,237,244,.56)!important}
main .page-content{background-color:rgba(248,251,253,.87)!important}
header{background-color:rgba(255,255,255,.97)!important}
@media(max-width:700px){body{background-attachment:scroll!important;background-size:auto 100vh!important;background-repeat:repeat-y!important}}
/* Contenido sobre paneles claros; fotografía visible en los márgenes. */
body{background-image:linear-gradient(rgba(229,238,246,.42),rgba(229,238,246,.42)),url('/assets/cabeceras-talleres/fondo-comunidad.jpg')!important}
header,header .header{background:#fff!important;opacity:1!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
main>section:not(.school-carousel){box-sizing:border-box;width:calc(100% - 48px)!important;max-width:1240px!important;margin:24px auto!important;border:1px solid #dfe7ef;border-radius:22px;background:#f8fafc!important;box-shadow:0 10px 30px -22px #102e5850;overflow:hidden}
main>section.soft{background:#edf3f8!important}
main>section:not(.school-carousel)>.wrap{box-sizing:border-box;width:100%!important;padding-left:32px!important;padding-right:32px!important}
main .page-content{box-sizing:border-box;width:calc(100% - 48px)!important;max-width:1240px!important;margin:24px auto!important;padding:32px!important;border:1px solid #dfe7ef;border-radius:22px;background:#f8fafc!important}
@media(max-width:700px){main>section:not(.school-carousel),main .page-content{width:calc(100% - 24px)!important;margin:16px auto!important;border-radius:16px}main>section:not(.school-carousel)>.wrap{padding-left:20px!important;padding-right:20px!important}main .page-content{padding:20px!important}}
