/* Galería de trabajos: fotografías originales y colores del sitio. */
.mg-gallery-page{background:#f4f6f8;color:#112339}
.mg-gallery-page .public-site{background:#f4f6f8;color:#112339}
.mg-gallery-page .mg-nav{background:#050b12;backdrop-filter:none;box-shadow:0 5px 20px #07162712}
.mg-gallery-shell{width:min(1440px,calc(100% - 96px));margin-inline:auto}
.mg-work-hero{padding:72px 0 64px;background:#fff;border-bottom:1px solid #dce3ea}
.mg-work-hero__layout{display:grid;grid-template-columns:.9fr 1.2fr;gap:70px;align-items:center}
.mg-gallery-page .mg-work-eyebrow{display:flex;align-items:center;gap:12px;color:#2465cf;text-transform:uppercase;letter-spacing:.17em;font-size:11px;font-weight:800;margin:0 0 22px}
.mg-work-eyebrow::before{content:"";width:30px;height:2px;background:currentColor}
.mg-work-hero h1{font-family:Manrope,sans-serif;font-size:clamp(40px,4vw,64px);font-weight:800;line-height:1.08;letter-spacing:-.05em;color:#0b2037;margin:0 0 24px}
.mg-work-hero h1 span{color:#1761d8}
.mg-gallery-page .mg-work-hero__copy{font-size:16px;line-height:1.7;color:#526579;max-width:420px;margin:0 0 30px}
.mg-gallery-page .mg-work-jump{display:inline-flex;align-items:center;gap:20px;color:#183651;font-weight:700;font-size:14px;text-decoration:none;border-bottom:1px solid #99adc0;padding-bottom:10px}
.mg-work-jump span{font-size:20px;color:#1c65d5;transition:transform .2s}
.mg-work-jump:hover span{transform:translateY(3px)}
.mg-work-featured{display:grid;grid-template-columns:1.1fr .8fr;gap:16px;align-items:start}
.mg-work-feature{position:relative;border:0;padding:0;background:#d4dee8;border-radius:10px;overflow:hidden;cursor:zoom-in;aspect-ratio:3/4;text-align:left}
.mg-work-feature:nth-child(2){margin-top:54px;aspect-ratio:3/4}
.mg-work-feature img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .45s}
.mg-work-feature:first-child img{object-position:50% 63%}
.mg-work-feature:nth-child(2) img{object-position:50% 60%}
.mg-work-feature:hover img{transform:scale(1.025)}
.mg-work-feature::after{content:"";position:absolute;inset:50% 0 0;background:linear-gradient(transparent,#071322cc);pointer-events:none}
.mg-gallery-page .mg-work-feature__label{position:absolute;z-index:1;left:20px;right:18px;bottom:19px;color:white;font-size:14px;line-height:1.35;font-weight:700}
.mg-work-feature__label small{display:block;font-size:10px;letter-spacing:.1em;text-transform:uppercase;margin-bottom:5px;color:#dceaff}
.mg-work-collection{padding:54px 0 76px;scroll-margin-top:100px}
.mg-work-collection__heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:27px}
.mg-work-collection__heading h2{font-family:Manrope,sans-serif;color:#112339;font-size:29px;font-weight:800;letter-spacing:-.035em;margin:0}
.mg-gallery-page .mg-work-count{margin:0;color:#687b8c;font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums}
.mg-work-filters{display:flex;gap:9px;flex-wrap:wrap;margin:0 0 30px}
.mg-work-filters button{border:1px solid #cfd9e3;border-radius:999px;padding:11px 18px;font:600 13px 'DM Sans',sans-serif;background:transparent;color:#405970;cursor:pointer;transition:background .2s,border-color .2s,color .2s}
.mg-work-filters button:hover{background:#e6eef9;border-color:#91b3e6;color:#164c99}
.mg-work-filters button[aria-pressed=true]{background:#123f81;color:#fff;border-color:#123f81}
.mg-gallery-page .mg-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-flow:row;grid-auto-rows:auto;gap:30px 24px}
.mg-gallery-page .mg-gallery-tile{display:block;grid-column:auto;grid-row:auto;aspect-ratio:auto;padding:0;background:#fff;border:1px solid #e0e6ec;border-radius:10px;overflow:hidden;text-align:left;color:#102b43;cursor:zoom-in;box-shadow:0 3px 9px #152f4a04;transition:box-shadow .2s,border-color .2s}
.mg-gallery-page .mg-gallery-tile::after{display:none}
.mg-gallery-page .mg-gallery-tile:hover{border-color:#a9c1df;box-shadow:0 10px 26px #102b430c}
.mg-work-photo{position:relative;display:block;aspect-ratio:4/5;overflow:hidden;background:#e0e6ec}
.mg-gallery-page .mg-gallery-tile img{display:block;width:100%;height:100%;aspect-ratio:auto;object-fit:cover;object-position:center;transition:transform .4s}
.mg-gallery-page .mg-gallery-tile:hover img{transform:scale(1.025);filter:none}
.mg-work-enlarge{position:absolute;right:14px;bottom:14px;width:35px;height:35px;display:grid;place-items:center;background:#ffffffed;color:#153857;border-radius:50%;font-size:22px;line-height:1;box-shadow:0 3px 14px #05162615}
.mg-work-caption{display:block;padding:18px 20px 21px}
.mg-work-caption small{display:block;font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:#57718e;margin-bottom:7px;font-weight:600}
.mg-work-caption strong{display:block;font-size:16px;font-weight:700;line-height:1.35;color:#142b43}
.mg-work-more{display:flex;justify-content:center;margin-top:38px}
.mg-work-more button{display:inline-flex;align-items:center;gap:30px;border:1px solid #adbfce;background:#fff;color:#183951;border-radius:6px;padding:14px 24px;cursor:pointer;font:700 14px 'DM Sans',sans-serif}
.mg-work-more button:hover{background:#eaf1fa;border-color:#3779cd}
.mg-work-more button[hidden]{display:none}
.mg-work-cta{padding:40px 0;background:#e8eff8;border-top:1px solid #d5e0ec}
.mg-work-cta .mg-gallery-shell{display:flex;justify-content:space-between;align-items:center;gap:30px}
.mg-work-cta h2{margin:0 0 7px;color:#122e4b;font-family:Manrope,sans-serif;font-weight:800;font-size:25px;letter-spacing:-.025em}
.mg-work-cta p{margin:0;color:#527089;font-size:14px}
.mg-gallery-page .mg-lightbox{background:#050c15f5;backdrop-filter:blur(8px)}
.mg-gallery-page .mg-lightbox__stage{max-height:calc(100vh - 140px)}
.mg-gallery-page .mg-lightbox__stage img{max-height:calc(100vh - 140px);object-fit:contain}
.mg-gallery-page .mg-lightbox__caption{position:absolute;left:75px;right:75px;bottom:22px;margin:0;text-align:center;color:#e9f1fb;font-size:14px;line-height:1.5}
.mg-gallery-page .mg-lightbox__caption small{display:block;font-size:11px;color:#90a9c3;letter-spacing:.06em;margin-top:4px}
.mg-gallery-page button:focus-visible,.mg-gallery-page a:focus-visible{outline:3px solid #408cff;outline-offset:4px}
@media(min-width:1600px){.mg-work-featured{max-width:720px}.mg-work-hero__layout{gap:100px}}
@media(max-width:1100px){.mg-gallery-shell{width:calc(100% - 56px)}.mg-work-hero__layout{gap:36px}.mg-work-hero{padding:50px 0}.mg-gallery-page .mg-gallery-grid{gap:24px 18px}.mg-work-caption{padding:15px}.mg-work-caption strong{font-size:14px}}
@media(max-width:800px){.mg-gallery-shell{width:calc(100% - 36px)}.mg-work-hero__layout{grid-template-columns:1fr;gap:30px}.mg-work-hero{padding:36px 0}.mg-work-hero h1{font-size:43px;max-width:550px}.mg-work-hero__copy{max-width:540px;margin-bottom:22px}.mg-work-featured{max-width:640px;grid-template-columns:1fr 1fr}.mg-work-feature{aspect-ratio:4/3}.mg-work-feature:nth-child(2){margin-top:0;aspect-ratio:4/3}.mg-work-feature__label{font-size:12px;left:14px;bottom:14px}.mg-gallery-page .mg-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 14px}.mg-work-collection{padding:34px 0 48px}.mg-work-collection__heading h2{font-size:25px}.mg-work-filters{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;padding:0 2px 10px;margin-bottom:16px}.mg-work-filters button{flex-shrink:0;font-size:12px;padding:10px 14px}.mg-work-cta .mg-gallery-shell{align-items:flex-start;flex-direction:column;gap:22px}.mg-work-cta h2{font-size:23px}.mg-work-caption small{font-size:9px;letter-spacing:.05em}}
@media(max-width:480px){.mg-work-hero h1{font-size:39px}.mg-work-featured{gap:10px}.mg-work-feature{aspect-ratio:3/4}.mg-work-feature:nth-child(2){aspect-ratio:3/4}.mg-work-feature__label small{font-size:8px}.mg-work-collection__heading{align-items:center;gap:8px}.mg-work-count{font-size:11px}.mg-work-collection__heading h2{font-size:23px}.mg-work-caption{padding:12px}.mg-work-caption strong{font-size:13px}.mg-work-enlarge{width:29px;height:29px;right:9px;bottom:9px;font-size:20px}.mg-work-photo{aspect-ratio:3/4}.mg-gallery-page .mg-lightbox__caption{left:24px;right:24px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.mg-work-feature img,.mg-gallery-page .mg-gallery-tile img{transition:none}.mg-work-feature:hover img,.mg-gallery-page .mg-gallery-tile:hover img{transform:none}}

/* La galería conserva el mismo azul oscuro de la página principal. */
.mg-gallery-page,.mg-gallery-page .public-site,.mg-gallery-page .mg-work-hero{background:var(--mg-ink);color:var(--mg-text)}
.mg-gallery-page .mg-work-hero{border-color:var(--mg-line)}
.mg-gallery-page .mg-work-eyebrow{color:#83b0ff}
.mg-gallery-page .mg-work-hero h1,.mg-gallery-page .mg-work-collection__heading h2{color:var(--mg-text)}
.mg-gallery-page .mg-work-hero h1 span{color:var(--mg-blue-light)}
.mg-gallery-page .mg-work-hero__copy,.mg-gallery-page .mg-work-count{color:var(--mg-muted)}
.mg-gallery-page .mg-work-jump{color:#dce9ff;border-color:#547196}
.mg-gallery-page .mg-work-jump span{color:#83b0ff}
.mg-gallery-page .mg-work-filters button{background:var(--mg-surface);border-color:var(--mg-line);color:#c5d4e8}
.mg-gallery-page .mg-work-filters button:hover{background:#152b48;border-color:#658cbf;color:#fff}
.mg-gallery-page .mg-work-filters button[aria-pressed=true]{background:#155ad2;border-color:#337ce9;color:#fff}
.mg-gallery-page .mg-gallery-tile{background:var(--mg-surface);border-color:var(--mg-line);color:var(--mg-text);box-shadow:none}
.mg-gallery-page .mg-gallery-tile:hover{border-color:#527cae;box-shadow:0 10px 26px #0003}
.mg-gallery-page .mg-work-photo{background:var(--mg-surface-raised)}
.mg-gallery-page .mg-work-caption small{color:#99b6da}
.mg-gallery-page .mg-work-caption strong{color:var(--mg-text)}
.mg-gallery-page .mg-work-more button{background:var(--mg-surface-raised);color:#e9f2ff;border-color:#45698f}
.mg-gallery-page .mg-work-more button:hover{background:#1a3860;border-color:#6d9ddd}
.mg-gallery-page .mg-work-cta{background:linear-gradient(102deg,#1245a7,#0a2055 55%,#071632);border-color:#456893}
.mg-gallery-page .mg-work-cta h2{color:#fff}
.mg-gallery-page .mg-work-cta p{color:#d0e2ff}
