/* Warm photographic treatment inspired by the supplied sunset reference. */
main img:not(.fraisi-decoracion):not(.portada-visual img),main video{filter:sepia(.16) saturate(1.14) contrast(1.06) brightness(1.03)}
.historia-foto .fraisi-decoracion{position:absolute;left:-42px;bottom:37px;top:auto;width:260px;height:290px;object-fit:contain;z-index:2;border:0;filter:none;pointer-events:none}
.historia-foto .foto-caption{z-index:3;bottom:0;left:8px}
.footer-marca .footer-logo{background:transparent;padding:0}
.gallery-carousel{position:relative;margin:0;isolation:isolate}
.gallery-stage{position:relative;overflow:hidden;background:#f8f3eb;aspect-ratio:16/8;display:grid;place-items:center}
.gallery-carousel .gallery-stage .gallery-media{width:100%;height:100%;max-height:none;object-fit:cover;display:block}
.gallery-carousel .gallery-stage video{object-fit:contain;background:#101c2c}
.gallery-unavailable{padding:35px;text-align:center;font-size:18px}
.gallery-controls{position:absolute;top:20px;right:20px;display:flex;align-items:center;gap:8px;background:#ffffffed;padding:7px;box-shadow:0 5px 22px #13223818}
.gallery-controls button{border:0;background:transparent;color:#132238;cursor:pointer;min-width:42px;min-height:42px;font-size:21px}
.gallery-controls .gallery-pause{font-size:13px;font-weight:600;padding-inline:9px}
.gallery-controls button:hover{background:#e9edf3}.gallery-controls button:disabled{opacity:.35;cursor:default}
.gallery-count{font-size:13px;min-width:45px;text-align:center;font-variant-numeric:tabular-nums}
.gallery-carousel .gallery-footer{display:flex;justify-content:space-between;align-items:center;gap:25px;padding:22px 0;border-bottom:1px solid #e6e9ee}
.gallery-copy{min-width:0}.gallery-source{display:block;color:#9a752e;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.gallery-caption{font-size:17px!important;line-height:1.6!important;color:#132238!important;max-width:760px;margin:6px 0 0;white-space:pre-line;overflow-wrap:anywhere}
.gallery-post{font-size:14px;color:#132238;font-weight:600;flex-shrink:0}
.gallery-dots{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;padding-top:18px}
.gallery-dot{width:28px;height:28px;border:0;background:none;cursor:pointer;display:grid;place-items:center}
.gallery-dot:before{content:'';display:block;width:7px;height:7px;background:#d1c9bc;border-radius:50%}
.gallery-dot[aria-pressed=true]:before{width:22px;border-radius:5px;background:#295fc4}
.gallery-carousel button:focus-visible,.gallery-carousel a:focus-visible{outline:3px solid #295fc4;outline-offset:3px}
@media(max-width:800px){.historia-foto .fraisi-decoracion{width:220px;height:245px;left:-20px}.gallery-stage{aspect-ratio:4/3}.gallery-carousel .gallery-footer{align-items:flex-start}.gallery-post{max-width:180px}}
@media(max-width:600px){.historia-foto .fraisi-decoracion{width:190px;height:210px;left:-14px;bottom:40px}.historia-foto .foto-caption{left:0;padding:15px 18px;font-size:16px}.gallery-controls{top:12px;right:12px;gap:3px;padding:4px}.gallery-controls button{min-width:36px;min-height:40px}.gallery-carousel .gallery-footer{display:block;padding-block:18px}.gallery-post{display:inline-block;margin-top:14px;max-width:none}.gallery-caption{font-size:16px!important}.gallery-stage{aspect-ratio:1/1}}

/* Photographic archive, grouped by the supplied folders. */
.archive-intro{max-width:740px;margin-bottom:32px}.archive-intro h2{font-size:clamp(27px,3vw,40px);line-height:1.25;margin:12px 0 16px}.archive-intro p{font-size:17px;line-height:1.7}.archive-total{display:inline-block;margin-top:18px;color:#6f572a;font-size:14px;font-weight:700}
.archive-albums{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}.archive-album{display:block;border:1px solid #e0e6eb;border-radius:14px;overflow:hidden;background:white;color:#17354b;transition:box-shadow .2s}.archive-album:hover{box-shadow:0 12px 30px #17354b18}.archive-album img{display:block;width:100%;height:220px;object-fit:cover;filter:none!important}.archive-album>div{padding:24px}.archive-album h2{font-size:23px;line-height:1.35;margin:10px 0}.archive-album p,.archive-album span{font-size:14px;color:#637383}.archive-album strong{display:block;margin-top:18px;font-size:14px;color:#315b7b}.archive-back{display:inline-block;margin-bottom:30px;color:#315b7b;font-weight:700;min-height:44px}
.archive-filter{display:flex;align-items:end;justify-content:space-between;gap:24px;border-block:1px solid #e0e6eb;padding:22px 0;margin-bottom:24px}.archive-filter label{display:grid;gap:8px;font-size:14px;max-width:100%}.archive-filter select{font:inherit;font-size:16px;padding:12px;background:white;border:1px solid #ced8e0;border-radius:7px;max-width:100%}.archive-filter p{font-size:14px}.archive-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.archive-photo{border:1px solid #e0e6eb;padding:0;border-radius:8px;overflow:hidden;background:#f4f6f8;text-align:left;cursor:pointer;min-width:0}.archive-photo img{display:block;width:100%;height:190px;object-fit:contain;filter:none!important}.archive-photo>span{display:flex;justify-content:space-between;gap:8px;font-size:12px;padding:12px;color:#375166;background:white}.archive-more{display:block;margin:30px auto 0;padding:14px 25px;background:#173b54;color:white;border:0;border-radius:7px;font:inherit;cursor:pointer}.archive-more[hidden]{display:none}.archive-page a:focus-visible,.archive-page button:focus-visible{outline:3px solid #b78a36;outline-offset:4px}.archive-viewer img{width:100%;height:60vh;object-fit:contain;filter:none!important;background:#102333}.archive-viewer-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}.archive-viewer-controls button{font:inherit;font-size:14px;padding:12px;border:1px solid #ced8e0;background:white;border-radius:6px}.archive-viewer-controls p{font-size:13px;text-align:center}.gallery-carousel .gallery-stage .gallery-media{object-fit:contain!important;filter:none!important}.gallery-stage{background:#102333}.gallery-preview{filter:none!important}
@media(max-width:1000px){.archive-albums{grid-template-columns:repeat(2,minmax(0,1fr))}.archive-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.archive-albums{grid-template-columns:1fr}.archive-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.archive-photo img{height:145px}.archive-filter{display:block}.archive-filter p{margin-top:14px}.archive-viewer-controls{flex-wrap:wrap}.archive-viewer-controls p{order:3;width:100%}.archive-viewer img{height:50vh}.archive-album img{height:230px}}

/* Expanded homepage carousel overrides the old compact photo strip. */
.reference-site #galeria.school-photo-showcase{display:block;padding:46px max(24px,5vw);margin:0;background:#f8f5ee;height:auto;max-height:none}
.reference-site #galeria.school-photo-showcase .section-heading{display:block;max-width:1100px;margin:0 auto 28px}
.reference-site #galeria.school-photo-showcase h2{white-space:normal;font-size:clamp(28px,3vw,40px);max-width:none;line-height:1.2}
.reference-site #galeria.school-photo-showcase .section-heading p{font-size:16px;line-height:1.6;margin:14px 0 18px;max-width:720px}
.reference-site #galeria.school-photo-showcase .boton{font-size:14px;padding:12px 20px;min-height:44px}
.reference-site #galeria.school-photo-showcase .gallery-carousel{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;max-width:1100px;margin:auto}
.reference-site #galeria.school-photo-showcase .gallery-stage{grid-column:1;grid-row:auto;height:420px;aspect-ratio:auto;background:#102333;border-radius:12px}
.reference-site #galeria.school-photo-showcase .gallery-stage .gallery-media{height:100%;width:100%;object-fit:contain!important}
.reference-site #galeria.school-photo-showcase .gallery-previews{grid-column:1;grid-row:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;overflow:visible}
.reference-site #galeria.school-photo-showcase .gallery-preview{display:block;width:100%;height:100px;border-radius:8px;background-size:contain;background-repeat:no-repeat;background-color:#102333}
.reference-site #galeria.school-photo-showcase .gallery-controls{position:static;grid-column:1;grid-row:auto;display:flex;justify-content:center;justify-self:center;gap:12px;padding:0;background:transparent}
.reference-site #galeria.school-photo-showcase .gallery-controls button{position:static;inset:auto;transform:none;width:auto;height:44px;min-width:44px;min-height:44px;padding:8px 15px;border:1px solid #dfd9cc;border-radius:8px;background:#fff;font-size:18px}
.reference-site #galeria.school-photo-showcase .gallery-controls .gallery-pause{font-size:14px}
.reference-site #galeria.school-photo-showcase .gallery-count{display:block;font-size:14px}
.reference-site #galeria.school-photo-showcase .gallery-footer{position:static;grid-column:1;grid-row:auto;display:flex;justify-content:space-between;align-items:center;height:auto;margin:0;padding:10px 0;border:0;gap:20px}
.reference-site #galeria.school-photo-showcase .gallery-caption{display:block;font-size:16px!important}
.reference-site #galeria.school-photo-showcase .gallery-source{font-size:11px}
.reference-site #galeria.school-photo-showcase .gallery-post{font-size:14px;max-width:none;white-space:normal}
.reference-site #galeria.school-photo-showcase .gallery-dots{display:none}
.reference-site #galeria.school-photo-showcase + .reference-quick{margin-top:28px;transform:none}
@media(max-width:600px){.reference-site #galeria.school-photo-showcase{padding:30px 18px}.reference-site #galeria.school-photo-showcase .gallery-stage{height:270px}.reference-site #galeria.school-photo-showcase .gallery-preview{height:70px}.reference-site #galeria.school-photo-showcase .gallery-footer{display:block}.reference-site #galeria.school-photo-showcase .gallery-post{display:inline-block;margin-top:12px}}
.reference-site #galeria.school-photo-showcase .gallery-stage .gallery-media{position:absolute;inset:0;min-height:0;max-height:100%;width:100%;height:100%;aspect-ratio:auto;object-fit:contain!important}
.reference-site #galeria.school-photo-showcase .gallery-preview:nth-child(n){display:block}

/* Historical presentation: reversible color correction, no photographic backdrop. */
.reference-site #galeria.school-photo-showcase{--archive-gold:#c89437;--archive-cream:#faf7f1;background:var(--archive-cream)}
.reference-site #galeria.school-photo-showcase .gallery-stage{background:transparent;isolation:isolate;touch-action:pan-y}
.reference-site #galeria.school-photo-showcase .gallery-stage:before,.reference-site #galeria.school-photo-showcase .gallery-stage:after{content:none}
.reference-site #galeria.school-photo-showcase .gallery-stage .gallery-media,.reference-site #galeria.school-photo-showcase .gallery-stage .gallery-outgoing{position:absolute;inset:0;width:100%;height:100%;min-height:0;max-height:100%;object-fit:contain!important;filter:none!important}
.reference-site #galeria.school-photo-showcase .gallery-outgoing{pointer-events:none}
.reference-site #galeria.school-photo-showcase .gallery-previews{display:flex;gap:10px;overflow-x:auto;padding:5px 2px 9px;scrollbar-width:thin;scrollbar-color:#c8ad7e transparent;position:relative}
.reference-site #galeria.school-photo-showcase .gallery-preview:nth-child(n){flex:0 0 calc((100% - 50px)/6);min-width:90px;height:80px;padding:0;border:2px solid transparent;border-radius:7px;background:transparent;overflow:hidden;opacity:.86;filter:none!important;transition:filter .22s,opacity .22s,border-color .22s,transform .22s}
.reference-site #galeria.school-photo-showcase .gallery-preview img{display:block;width:100%;height:100%;object-fit:cover;filter:none!important}
.reference-site #galeria.school-photo-showcase .gallery-preview:hover{opacity:1;filter:none!important;transform:translateY(-2px)}
.reference-site #galeria.school-photo-showcase .gallery-preview[aria-pressed=true]{opacity:1;filter:none!important;border-color:var(--archive-gold)}
@media(max-width:820px){.reference-site #galeria.school-photo-showcase .gallery-preview:nth-child(n){flex-basis:130px;height:86px}}
@media(max-width:430px){.reference-site #galeria.school-photo-showcase .gallery-preview:nth-child(n){flex-basis:105px;height:75px}}
@media(prefers-reduced-motion:reduce){.reference-site #galeria.school-photo-showcase .gallery-preview{transition:none}}

/* Compact editorial presentation for the historical gallery. */
.reference-site #galeria.school-photo-showcase{padding:64px max(24px,5vw) 58px;background:#f4efe6}
.reference-site #galeria.school-photo-showcase .section-heading{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:48px;align-items:start;max-width:1200px;margin:0 auto 28px}
.reference-site #galeria.school-photo-showcase .gallery-eyebrow{display:block;margin-bottom:10px;color:#a97828;font-size:11px;font-weight:700;letter-spacing:.14em}
.reference-site #galeria.school-photo-showcase h2{font-size:clamp(30px,3vw,43px);line-height:1.08}
.reference-site #galeria.school-photo-showcase .section-heading p{margin:10px 0 17px}
.reference-site #galeria.school-photo-showcase .gallery-quote{margin:2px 0 0;padding:15px 18px 14px 24px;border-left:2px solid var(--archive-gold);background:#faf7f1;color:#17354b}
.reference-site #galeria.school-photo-showcase .gallery-quote p{margin:0 0 13px;font-family:Georgia,serif;font-size:19px;font-style:italic;line-height:1.32}
.reference-site #galeria.school-photo-showcase .gallery-quote cite{font-size:9px;font-style:normal;font-weight:700;letter-spacing:.13em;line-height:1.5}
.reference-site #galeria.school-photo-showcase .gallery-carousel{gap:12px;max-width:1200px}
.reference-site #galeria.school-photo-showcase .gallery-stage{width:min(100%,880px);height:440px;margin:auto;background:#efeae0;border-radius:11px}
.reference-site #galeria.school-photo-showcase .gallery-previews,.reference-site #galeria.school-photo-showcase .gallery-progress,.reference-site #galeria.school-photo-showcase .gallery-footer{width:min(100%,1000px);margin-inline:auto}
.reference-site #galeria.school-photo-showcase .gallery-progress{height:2px;overflow:hidden;background:#ded6c8}
.reference-site #galeria.school-photo-showcase .gallery-progress span{display:block;width:100%;height:100%;background:var(--archive-gold);transform:scaleX(0);transform-origin:left center}
.reference-site #galeria.school-photo-showcase .gallery-controls{gap:8px}
.reference-site #galeria.school-photo-showcase .gallery-controls button{height:40px;min-width:40px;min-height:40px;padding:6px 13px;border-radius:999px}
.reference-site #galeria.school-photo-showcase .gallery-controls .gallery-pause{font-size:13px;padding-inline:16px}
.reference-site #galeria.school-photo-showcase .gallery-footer{padding-top:6px}
@media(max-width:900px){.reference-site #galeria.school-photo-showcase{padding-top:54px}.reference-site #galeria.school-photo-showcase .section-heading{grid-template-columns:1fr;gap:20px}.reference-site #galeria.school-photo-showcase .gallery-stage{height:390px}.reference-site #galeria.school-photo-showcase .gallery-quote{max-width:420px}}
@media(max-width:820px){.reference-site #galeria.school-photo-showcase .gallery-previews{scroll-snap-type:x proximity}.reference-site #galeria.school-photo-showcase .gallery-preview:nth-child(n){flex-basis:120px;height:80px;scroll-snap-align:start}}
@media(max-width:600px){.reference-site #galeria.school-photo-showcase{padding:42px 18px 46px}.reference-site #galeria.school-photo-showcase .section-heading{margin-bottom:22px}.reference-site #galeria.school-photo-showcase .gallery-quote{display:none}.reference-site #galeria.school-photo-showcase .gallery-stage{height:260px}.reference-site #galeria.school-photo-showcase .gallery-preview:nth-child(n){flex-basis:105px;height:72px}.reference-site #galeria.school-photo-showcase .gallery-controls{gap:5px}.reference-site #galeria.school-photo-showcase .gallery-controls button{height:38px;min-width:38px;min-height:38px;padding-inline:11px}.reference-site #galeria.school-photo-showcase .gallery-controls .gallery-pause{padding-inline:13px}.reference-site #galeria.school-photo-showcase .gallery-footer{padding-top:2px}}
@media(max-width:430px){.reference-site #galeria.school-photo-showcase h2{font-size:30px}.reference-site #galeria.school-photo-showcase .gallery-stage{height:235px}.reference-site #galeria.school-photo-showcase .gallery-preview:nth-child(n){flex-basis:96px;height:68px}}
@media(prefers-reduced-motion:reduce){.reference-site #galeria.school-photo-showcase .gallery-progress{display:none}}
