/* v8: documented work, original images and product content. */
.case-hero{min-height:800px;height:100svh;position:relative;isolation:isolate;background:var(--dark);display:flex;align-items:end;color:white;overflow:hidden}.case-hero-photo{position:absolute;inset:0 0 0 auto;height:100%;width:66%;object-fit:cover;z-index:-2}.case-hero:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#102b52 5%,#102b52e8 25%,#102b5240 75%),linear-gradient(0deg,#102b5266,transparent 65%);z-index:-1}.case-hero-content{padding:200px 40px 75px;max-width:1100px}.case-hero-content .ref-label{font-size:18px;margin-bottom:30px}.case-hero h1{font-size:clamp(75px,8vw,120px);line-height:1.02;margin:0 0 35px;letter-spacing:-.045em}.case-hero p{max-width:550px;font-size:23px;line-height:1.4;margin:0 0 20px}.case-hero .ref-link{color:white}.case-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0;background:var(--blue);color:white;padding:55px 40px;gap:40px}.case-facts dt{font-size:17px;color:#c6d9f4;margin-bottom:20px}.case-facts dd{font-size:clamp(34px,4vw,64px);font-weight:400;letter-spacing:-.03em;line-height:1.1;margin:0}.case-intro{padding:130px 7%;display:grid;grid-template-columns:1.15fr 1fr;gap:9%;align-items:start;background:white;scroll-margin-top:120px}.case-intro h2{font-size:clamp(40px,4.2vw,65px);line-height:1.1;margin:0;color:var(--dark)}.case-intro .ref-label{font-size:18px}.case-intro p{font-size:20px;line-height:1.65;margin:0 0 26px;color:#4c596a}.case-intro>div:last-child{padding-top:45px}.case-intro .ref-link{display:flex;justify-content:space-between;max-width:400px;color:var(--blue)}.case-stage{display:grid;grid-template-columns:1.3fr 1fr;min-height:750px;background:var(--paper);align-items:stretch}.case-stage figure{margin:0;position:relative;min-height:650px;overflow:hidden;background:#102b52}.case-stage figure img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover}.case-stage figure figcaption{position:absolute;bottom:0;left:0;right:0;padding:18px 25px;background:#102b52df;color:white;font-size:14px;line-height:1.45}.case-stage>div{padding:85px 65px;align-self:center}.case-stage h2{font-size:clamp(40px,4vw,60px);line-height:1.13;color:var(--dark);margin:35px 0}.case-stage p{font-size:19px;line-height:1.7;color:#4c596a}.case-step{font-size:17px;color:var(--blue)}.case-stage.reverse{grid-template-columns:1fr 1.3fr;background:var(--blue)}.case-stage.reverse figure{order:2}.case-stage.reverse>div{order:1}.case-stage.reverse h2,.case-stage.reverse p,.case-stage.reverse .case-step{color:white}.case-gallery{background:white;padding:100px 40px}.case-gallery h2{font-size:55px;line-height:1.12;color:var(--dark);margin:0 0 55px}.case-gallery>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px}.case-gallery figure{margin:0;min-width:0}.case-gallery figure a{display:block;background:var(--paper);overflow:hidden}.case-gallery img{display:block;width:100%;height:390px;object-fit:cover;transition:transform .5s}.case-gallery a:hover img{transform:scale(1.025)}.case-gallery figcaption{font-size:16px;line-height:1.5;padding-top:18px;color:#4c596a}.case-gallery>div>figure:only-child{grid-column:1/-1}.case-gallery>div>figure:only-child img{height:auto;max-height:640px;object-fit:contain}.case-document{padding:80px 7%;background:var(--paper);display:flex;align-items:center;justify-content:space-between;gap:70px}.case-document>div{max-width:760px}.case-document .ref-label{font-size:17px}.case-document h2{font-size:45px;line-height:1.1;color:var(--dark);margin:20px 0}.case-document p{font-size:18px;line-height:1.5;color:#4c596a}.case-document .action{flex-shrink:0;background:var(--blue);color:white;text-align:center}.case-next{padding:100px 7%;background:var(--dark);color:white}.case-next h2{font-size:clamp(45px,5vw,75px);line-height:1.13;max-width:1000px;margin:0 0 35px}.case-next .ref-link{color:white}.work-index-intro{background:var(--paper);padding:230px 40px 100px}.work-index-intro h1,.work-index-intro h2{font-size:clamp(60px,7vw,105px);line-height:1.03;color:var(--dark);margin:0 0 40px;letter-spacing:-.04em}.work-index-intro p{font-size:23px;line-height:1.5;max-width:700px}.work-index-intro.compact{padding-block:100px 65px}.work-index-intro .ref-label{font-size:19px}.work-feature{display:grid;grid-template-columns:60% 40%;min-height:850px;background:var(--blue);color:white;scroll-margin-top:100px}.work-feature-photo{position:relative;display:block;min-width:0;min-height:680px;overflow:hidden}.work-feature-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .7s}.work-feature-photo:hover img{transform:scale(1.035)}.work-feature>div{padding:75px 50px;align-self:center;min-width:0}.work-feature .ref-label{font-size:17px;line-height:1.5;color:#c6d9f4}.work-feature h2{font-size:clamp(44px,4.4vw,70px);line-height:1.05;letter-spacing:-.035em;margin:0 0 40px}.work-feature p{font-size:20px;line-height:1.65;margin-bottom:40px}.work-feature .ref-link{color:white}.work-feature+.work-feature{grid-template-columns:40% 60%;background:var(--dark)}.work-feature+.work-feature .work-feature-photo{order:2}.work-feature+.work-feature>div{order:1}.case-wide-photo{position:relative;min-height:750px;height:85svh;isolation:isolate;display:flex;align-items:end;color:white;padding:60px 40px}.case-wide-photo>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}.case-wide-photo:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#102b52cc,transparent 85%);z-index:-1}.case-wide-photo h2{font-size:85px;line-height:1.05;margin:20px 0}.content-page .ref-link:focus-visible,.work-feature a:focus-visible{outline:3px solid #8cc3ff;outline-offset:8px}
@media(max-width:1100px){.case-stage>div{padding:55px 35px}.case-stage{min-height:680px}.case-intro{gap:6%;padding-inline:40px}.case-document{padding-inline:40px;gap:35px}.case-document h2{font-size:38px}.case-document .action{max-width:270px}.work-feature>div{padding:55px 30px}.work-feature,.work-feature+.work-feature{grid-template-columns:1fr 1fr;min-height:720px}.case-gallery img{height:310px}}
@media(max-width:780px){.case-hero{min-height:740px;height:95svh}.case-hero-photo{width:100%;object-position:65% center}.case-hero:after{background:linear-gradient(0deg,#102b52 2%,#102b52b8 45%,#102b5233 100%)}.case-hero-content{padding:155px 24px 55px}.case-hero-content .ref-label{font-size:15px;margin-bottom:25px}.case-hero h1{font-size:clamp(56px,12vw,88px);margin-bottom:25px}.case-hero p{font-size:20px;max-width:470px}.case-facts{padding:35px 24px;gap:25px;grid-template-columns:1fr}.case-facts>div{display:flex;align-items:baseline;justify-content:space-between;gap:20px}.case-facts dt{font-size:15px;margin:0;max-width:42%}.case-facts dd{font-size:32px;text-align:right;max-width:60%}.case-intro{display:block;padding:70px 24px}.case-intro h2{font-size:43px}.case-intro>div:last-child{padding-top:30px}.case-intro p{font-size:18px}.case-stage,.case-stage.reverse{display:flex;flex-direction:column;min-height:0}.case-stage figure,.case-stage.reverse figure{order:0;min-height:0;height:500px;width:100%}.case-stage>div,.case-stage.reverse>div{order:1;padding:50px 24px}.case-stage h2{font-size:43px;margin:25px 0}.case-stage p{font-size:18px}.case-stage figcaption{font-size:12px}.case-gallery{padding:65px 24px}.case-gallery h2{font-size:43px;margin-bottom:35px}.case-gallery>div{grid-template-columns:1fr;gap:35px}.case-gallery img{height:auto;max-height:540px;object-fit:contain}.case-gallery figcaption{font-size:15px}.case-document{display:block;padding:65px 24px}.case-document h2{font-size:38px}.case-document .action{margin-top:25px;max-width:100%;font-size:16px}.case-next{padding:65px 24px}.case-next h2{font-size:43px}.work-index-intro{padding:160px 24px 65px}.work-index-intro h1,.work-index-intro h2{font-size:clamp(48px,10vw,75px)}.work-index-intro p{font-size:20px}.work-index-intro.compact{padding:65px 24px 40px}.work-feature,.work-feature+.work-feature{display:flex;flex-direction:column;min-height:0}.work-feature-photo,.work-feature+.work-feature .work-feature-photo{min-height:0;height:510px;order:0;width:100%}.work-feature>div,.work-feature+.work-feature>div{padding:50px 24px 60px;order:1}.work-feature h2{font-size:52px;margin-bottom:25px}.work-feature p{font-size:18px;margin-bottom:20px}.case-wide-photo{min-height:600px;height:80svh;padding:50px 24px}.case-wide-photo h2{font-size:60px}}
@media(max-width:360px){.case-hero h1{font-size:52px}.case-facts dd{font-size:28px}.case-intro h2,.case-stage h2,.case-gallery h2,.case-next h2{font-size:37px}.work-feature h2{font-size:45px}.case-stage figure,.work-feature-photo,.work-feature+.work-feature .work-feature-photo{height:420px}}
@media(prefers-reduced-motion:reduce){.case-gallery img,.work-feature-photo img{transition:none}.case-gallery a:hover img,.work-feature-photo:hover img{transform:none}}

/* Keep the complete geometry visible in technical images. */
.case-gallery img{object-fit:contain;background:#f5f7fa}
.case-stage figure img[src$="muro-modelo.webp"],.case-stage figure img[src$="planta-lechadora.webp"]{object-fit:contain;background:var(--paper);padding:30px}
.equipment-gallery figure:first-child img[src^="assets/trabajos/"]{background:var(--paper)}

/* Mantiene el enlace histórico a Empresa#taller en Capacidades. */
.case-intro#capacidades{position:relative}
