/* ACOTA V29 · Correction to actual WP child theme, per owner feedback.
   Return original children photograph UNDER Ahorra energia text, as Joomla;
   restore image travel with scroll, no new copy or generated photos. */
/* Savings: a clear two-column band, thermal print left, preserved text right. */
.ac-home .ac-savings {
  padding:0!important; margin:0!important; border:0!important;
  background:linear-gradient(105deg,#07456d 0%,#096da5 50%,#06476b 100%)!important;
  position:relative!important; overflow:hidden!important;
}
.ac-home .ac-savings-inner {
  position:relative!important; display:grid!important;
  grid-template-columns:minmax(0,0.92fr) minmax(0,1.08fr)!important;
  width:min(1220px,calc(100% - 52px))!important;max-width:1220px!important;
  min-height:275px!important; margin:0 auto!important;
  padding:23px 0!important; align-items:stretch!important;
  overflow:visible!important; border:0!important; border-radius:0!important;
  box-shadow:none!important; background:transparent!important;
}
.ac-home .ac-savings-photo {
  position:relative!important; inset:auto!important; z-index:1!important;
  width:100%!important; min-height:275px!important; height:auto!important;
  margin:0!important; border:0!important; border-radius:0!important;
  background:#0b3550!important; overflow:hidden!important;
}
.ac-home .ac-savings-photo img {
  display:block!important;position:absolute!important;inset:0!important;
  top:0!important;left:0!important;right:0!important;bottom:0!important;
  width:100%!important;height:100%!important;max-width:none!important;
  object-fit:cover!important;object-position:48% center!important;
  filter:saturate(1.02) contrast(1.03)!important;
  transform:none!important;will-change:auto!important;
}
.ac-home .ac-savings-photo::after {
  content:""!important;display:block!important;position:absolute;inset:0;z-index:1;
  background:linear-gradient(90deg,rgba(3,33,55,.07),rgba(3,33,55,.10))!important;
  pointer-events:none;
}
.ac-home .ac-savings-content {
  position:relative!important;z-index:2!important;display:flex!important;
  flex-direction:column!important;justify-content:center!important;
  box-sizing:border-box!important;
  width:auto!important;max-width:none!important;
  margin:0!important; padding:35px clamp(30px,4vw,64px)!important;
  background:rgba(0,39,65,.14)!important;box-shadow:none!important;
  border:0!important;border-radius:0!important;
}
.ac-home .ac-savings-content::before {
  content:""!important;display:block!important;position:relative!important;
  top:auto!important;left:auto!important;right:auto!important;
  width:66px!important;height:3px!important;margin:0 0 16px!important;
  background:linear-gradient(90deg,#e95564 0% 33%,#42ba76 33% 65%,#81cee6 65%)!important;
  border-radius:0!important;
}
.ac-home .ac-savings-content::after{content:none!important;display:none!important}
.ac-home .ac-savings h2 {
  color:#fff!important;max-width:none!important;
  margin:0 0 15px!important;font-size:clamp(30px,2.9vw,43px)!important;
  line-height:1.12!important;font-weight:760!important;letter-spacing:-.033em!important;
  text-shadow:none!important;
}
.ac-home .ac-savings p {
  color:#f4fbff!important;max-width:650px!important;
  margin:0!important;padding:0!important;font-size:clamp(17px,1.31vw,20px)!important;
  line-height:1.58!important;font-weight:460!important;letter-spacing:-.008em!important;
  text-shadow:none!important;
}
/* Thermio: the original photo of the children and thermal camera BELOW the savings text.
   The source photo moves behind the fixed content as the visitor scrolls. */
.ac-home .ac-thermio {
  display:block!important;position:relative!important;isolation:isolate!important;
  min-height:clamp(440px,39vw,565px)!important; margin:0!important;
  background:#0a5a8b!important;overflow:hidden!important;
  border:0!important; border-top:1px solid rgba(255,255,255,.42)!important;
}
.ac-home .ac-thermio::before {
  content:""!important;position:absolute!important;z-index:-1!important;
  inset:-118px 0!important;
  background-image:linear-gradient(90deg,rgba(5,43,68,.87) 0%,rgba(6,64,100,.70) 32%,rgba(6,64,100,.23) 61%,rgba(6,64,100,.02) 100%),url('../original/morteros-anhidrita.jpg')!important;
  background-repeat:no-repeat!important;
  background-size:cover!important;
  background-position:center 53%!important;
  transform:translate3d(0,var(--ac-parallax,0px),0) scale(1.01)!important;
  transform-origin:center!important;
  will-change:transform!important;
}
.ac-home .ac-thermio-inner {
  box-sizing:border-box!important;position:relative!important;z-index:2!important;
  display:flex!important;flex-direction:column!important;align-items:flex-start!important;
  justify-content:center!important;gap:8px!important;
  width:min(1220px,calc(100% - 52px))!important; max-width:1220px!important;
  min-height:clamp(440px,39vw,565px)!important;
  padding:70px clamp(8px,3vw,50px)!important;
  margin:0 auto!important;text-align:left!important;
}
.ac-home .ac-thermio h2{
  margin:0!important;color:white!important;font-weight:770!important;
  font-size:clamp(42px,4.4vw,67px)!important;letter-spacing:-.044em!important;
  line-height:1.07!important;text-shadow:0 4px 16px rgba(0,30,48,.18)!important;
}
.ac-home .ac-thermio h2::after{
  content:""!important;display:block!important;margin:16px 0 8px!important;
  width:76px!important;height:3px!important;background:linear-gradient(90deg,#e45e65,#ef6876)!important;
}
.ac-home .ac-thermio p{
  margin:0 0 20px!important;color:#fff!important;
  font-size:clamp(21px,1.9vw,28px)!important;line-height:1.32!important;
  text-shadow:0 2px 12px rgba(0,34,51,.25)!important;
}
.ac-home .ac-thermio strong{
  display:inline-block!important;background:#0679b6!important;
  color:#fff!important;border:1px solid rgba(217,244,253,.6)!important;
  border-bottom:2px solid #e66272!important;border-radius:4px!important;
  padding:13px 23px!important; font-size:clamp(14px,1.03vw,16px)!important;
  font-weight:720!important;box-shadow:0 10px 27px rgba(0,24,42,.20)!important;
}
@media(max-width:900px){
 .ac-home .ac-savings-inner{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)!important;min-height:260px!important}
 .ac-home .ac-savings-photo{min-height:260px!important}
 .ac-home .ac-savings-content{padding:26px!important}
 .ac-home .ac-savings h2{font-size:30px!important}
 .ac-home .ac-savings p{font-size:16.5px!important}
 .ac-home .ac-thermio,.ac-home .ac-thermio-inner{min-height:460px!important}
 .ac-home .ac-thermio::before{inset:-87px 0!important;background-position:58% 51%!important}
}
@media(max-width:640px){
 .ac-home .ac-savings-inner{
   display:grid!important;grid-template-columns:1fr!important;gap:0!important;
   width:100%!important;max-width:none!important;min-height:0!important;
   padding:0!important;
 }
 .ac-home .ac-savings-photo{min-height:0!important;height:190px!important}
 .ac-home .ac-savings-photo img{object-position:52% center!important}
 .ac-home .ac-savings-content{padding:28px 25px 35px!important;width:100%!important}
 .ac-home .ac-savings h2{font-size:34px!important;margin:0 0 13px!important}
 .ac-home .ac-savings p{font-size:17px!important;line-height:1.52!important}
 .ac-home .ac-thermio,.ac-home .ac-thermio-inner{min-height:490px!important}
 .ac-home .ac-thermio::before{
   inset:-76px 0!important;background-position:69% center!important;
   background-image:linear-gradient(90deg,rgba(3,40,65,.90) 0%,rgba(6,58,90,.77) 48%,rgba(5,65,101,.27) 100%),url('../original/morteros-anhidrita.jpg')!important;
 }
 .ac-home .ac-thermio-inner{width:100%!important;padding:62px 23px 85px!important;justify-content:flex-start!important}
 .ac-home .ac-thermio h2{font-size:46px!important}
 .ac-home .ac-thermio p{font-size:22px!important;margin-bottom:15px!important}
 .ac-home .ac-thermio strong{font-size:14px!important;padding:12px 18px!important}
}
@media(prefers-reduced-motion:reduce){
 .ac-home .ac-thermio::before{transform:none!important;will-change:auto!important}
}
