/* Morteros Acota V21 — refinement of the real Joomla slides and scroll photography.
 * Original seven backgrounds, word-for-word text, logos and buttons remain unchanged.
 * A single left-side visual language replaces the competing per-slide layouts.
 */
.ac-home .ma-heritage-slider {
  --ac-slide-ink: #f8fbfc;
  --ac-slide-left: 6%;
  height: clamp(500px, 43vw, 625px);
  background:#102b41;
}
.ac-home .ma-heritage-slide .ma-heritage-bg {
  transform: translate3d(0,var(--ac-parallax,0px),0) scale(1.11);
  transform-origin:center;
  will-change:transform;
}
.ac-home .ma-heritage-slide .ma-heritage-shade,
.ac-home .ma-heritage-slide[data-source-id="23"] .ma-heritage-shade {
  background: linear-gradient(90deg,
    rgba(10,31,48,.91) 0%,
    rgba(10,40,60,.80) 30%,
    rgba(10,47,70,.50) 48%,
    rgba(10,47,70,.04) 78%);
}
.ac-home .ma-heritage-stage{width:min(1340px,100%);margin-inline:auto;}
.ac-home .ma-heritage-layer{
  color:var(--ac-slide-ink);text-align:left;
  letter-spacing:-.013em;line-height:1.3;
  text-shadow:0 2px 11px rgba(0,19,32,.32);
}
.ac-home .ma-layer-heading{font-size:clamp(23px,2.15vw,30px);font-weight:750;line-height:1.21;}
.ac-home .ma-layer-text{font-size:clamp(19px,1.65vw,24px);font-weight:560;line-height:1.34;}
.ac-home .ma-layer-button{min-height:44px;padding:10px 20px;background:#087db7;
  font-size:clamp(15px,1.18vw,17px);font-weight:700;letter-spacing:0;
  box-shadow:none;border:1px solid rgba(255,255,255,.3);border-radius:2px;
}
.ac-home .ma-layer-button:hover{background:#005b91;}
.ac-home .ma-heritage-controls{padding:9px 13px;bottom:15px;border-radius:2px;}
.ac-home .ma-heritage-dot{height:5px;width:26px;border-radius:1px;}
/* On wide screens all editorial information uses the same column.
 * Left alignment applies to every slide, including the historic comparisons. */
@media(min-width:901px){
  .ac-home .ma-heritage-slide:is([data-source-id="27"],[data-source-id="29"],[data-source-id="30"]) .ma-layer-image:first-child,
  .ac-home .ma-heritage-slide:is([data-source-id="32"],[data-source-id="33"]) .ma-layer-image:first-child{
    left:var(--ac-slide-left)!important;top:19%!important;width:33%!important;max-width:405px!important;
    padding:9px 12px!important;background:rgba(255,255,255,.97)!important;
    border-radius:1px;box-shadow:0 7px 24px rgba(0,17,30,.12)!important;
  }
  .ac-home .ma-heritage-slide:is([data-source-id="27"],[data-source-id="29"],[data-source-id="30"]) .ma-layer-image:first-child img{
    max-height:90px;object-fit:contain;object-position:left;
  }
  .ac-home .ma-heritage-slide:is([data-source-id="32"],[data-source-id="33"]) .ma-layer-image:first-child img{
    max-height:68px;object-fit:contain;object-position:left;
  }
  .ac-home .ma-heritage-slide:is([data-source-id="27"],[data-source-id="29"],[data-source-id="30"]) .ma-layer-text:last-child{
    left:var(--ac-slide-left)!important;top:42%!important;width:43%!important;max-width:520px!important;
    font-size:clamp(21px,1.85vw,26px)!important;line-height:1.32!important;
  }
  .ac-home .ma-heritage-slide:is([data-source-id="27"],[data-source-id="29"],[data-source-id="30"]) .ma-layer-button:nth-child(2){
    left:var(--ac-slide-left)!important;top:81%!important;width:max-content!important;
  }
  .ac-home .ma-heritage-slide:is([data-source-id="32"],[data-source-id="33"]) .ma-layer-text:last-child{
    left:var(--ac-slide-left)!important;top:38%!important;width:47%!important;max-width:545px!important;
    font-size:clamp(17px,1.36vw,20px)!important;line-height:1.38!important;white-space:normal;
  }
  .ac-home .ma-heritage-slide[data-source-id="31"] .ma-layer-heading:nth-child(2){
    left:var(--ac-slide-left)!important;top:22%!important;width:46%!important;font-size:clamp(25px,2.2vw,33px)!important;
  }
  .ac-home .ma-heritage-slide[data-source-id="31"] .ma-layer-heading:last-child{
    left:var(--ac-slide-left)!important;top:37%!important;width:48%!important;
    font-size:clamp(17px,1.42vw,21px)!important;line-height:1.45!important;font-weight:540;
    white-space:normal;
  }
  .ac-home .ma-heritage-slide[data-source-id="31"] .ma-layer-button:first-child{
    left:var(--ac-slide-left)!important;top:81%!important;
  }
  .ac-home .ma-heritage-slide[data-source-id="23"] .ma-layer-heading:first-child{
    left:var(--ac-slide-left)!important;top:19%!important;width:41%!important;font-size:clamp(22px,1.85vw,27px)!important;
  }
  .ac-home .ma-heritage-slide[data-source-id="23"] .ma-layer-image:nth-child(3){
    left:var(--ac-slide-left)!important;top:33%!important;width:32%!important;max-width:385px!important;
    padding:9px 14px!important;background:rgba(255,255,255,.96)!important;box-shadow:0 8px 25px #00162720;
  }
  .ac-home .ma-heritage-slide[data-source-id="23"] .ma-layer-image:nth-child(3) img{max-height:125px;}
  .ac-home .ma-heritage-slide[data-source-id="23"] .ma-layer-heading:last-child{
    left:var(--ac-slide-left)!important;top:67%!important;width:43%!important;
    font-size:clamp(21px,1.78vw,27px)!important;
  }
  .ac-home .ma-heritage-slide[data-source-id="23"] .ma-layer-image:nth-child(2){
    left:67%!important;top:37%!important;width:30%!important;max-width:420px!important;
    padding:0!important;background:transparent!important;box-shadow:none!important;
  }
  .ac-home .ma-heritage-slide[data-source-id="23"] .ma-layer-image:nth-child(2) img{max-height:440px;}
}
/* The mobile presentation is editorial too: consistent left edge and spacing,
   but a real flow so long historical copy cannot be cut off. */
@media(max-width:900px){
  .ac-home .ma-heritage-slider{height:clamp(590px,82vw,700px);}
  .ac-home .ma-heritage-stage{padding:50px 7.5% 72px;justify-content:center;gap:18px;}
  .ac-home .ma-heritage-layer{color:#fff;font-size:clamp(17px,2.45vw,23px);line-height:1.38;max-width:93%;}
  .ac-home .ma-layer-heading{font-size:clamp(24px,3.6vw,33px);line-height:1.27;}
  .ac-home .ma-layer-text{font-size:clamp(18px,2.5vw,23px);line-height:1.38;white-space:normal;}
  .ac-home .ma-layer-image{max-width:min(310px,76%);padding:7px 12px!important;background:#ffffffed;}
  .ac-home .ma-layer-image img{max-height:115px;}
  .ac-home .ma-heritage-slide[data-source-id="23"] .ma-layer-image:nth-child(2){background:transparent!important;}
  .ac-home .ma-heritage-slide[data-source-id="23"] .ma-layer-image:nth-child(3){width:min(310px,75%)!important;}
  .ac-home .ma-heritage-slide[data-source-id="31"] .ma-layer-heading:last-child{font-size:clamp(17px,2.4vw,22px)!important;line-height:1.43;white-space:normal;}
  .ac-home .ma-heritage-slide:is([data-source-id="32"],[data-source-id="33"]) .ma-layer-text:last-child{font-size:clamp(16px,2.5vw,21px)!important;white-space:normal;}
  .ac-home .ma-heritage-slide:is([data-source-id="27"],[data-source-id="29"],[data-source-id="30"]) .ma-layer-text:last-child{font-size:clamp(19px,2.95vw,24px)!important;}
  .ac-home .ma-layer-button{order:4!important;min-height:43px;}
  .ac-home .ma-heritage-slide .ma-heritage-shade{background:linear-gradient(90deg,#0d2945ed,#0a3545ad 82%,#0a354588)!important;}
}
@media(max-width:540px){
  .ac-home .ma-heritage-slider{height:clamp(585px,83dvh,740px);}
  .ac-home .ma-heritage-stage{padding:42px 7% 66px;gap:13px;}
  .ac-home .ma-layer-heading{font-size:clamp(22px,5.7vw,27px);}
  .ac-home .ma-layer-text{font-size:clamp(17px,4.3vw,20px);}
  .ac-home .ma-layer-image{max-width:min(240px,78%)}
  .ac-home .ma-layer-image img{max-height:88px;}
  .ac-home .ma-heritage-slide[data-source-id="23"] .ma-layer-image:nth-child(2){width:28%;top:5%;right:-3%;left:auto;opacity:.4;position:absolute;}
  .ac-home .ma-heritage-slide[data-source-id="23"] .ma-layer-image:nth-child(3){max-width:235px!important;}
  .ac-home .ma-heritage-slide[data-source-id="31"] .ma-layer-heading:last-child{font-size:clamp(16px,3.8vw,18px)!important;}
  .ac-home .ma-heritage-slide:is([data-source-id="32"],[data-source-id="33"]) .ma-layer-text:last-child{font-size:clamp(15px,3.6vw,18px)!important;}
  .ac-home .ma-heritage-slide:is([data-source-id="27"],[data-source-id="29"],[data-source-id="30"]) .ma-layer-text:last-child{font-size:clamp(18px,4.5vw,22px)!important;}
  .ac-home .ma-heritage-controls{bottom:9px;gap:6px;padding:8px;}
  .ac-home .ma-heritage-dot{width:20px;}
}
/* Existing original photographs remain visible and now move relative to content
 * when the visitor scrolls. Movement is disabled for reduced-motion users. */
@media(prefers-reduced-motion:no-preference){
  .ac-eco::before,.ac-benefits::before,.ac-thermio::before{
    transform:translate3d(0,var(--ac-parallax,0px),0) scale(1.14)!important;
    transform-origin:center center;will-change:transform;
  }
  .ac-home .ma-heritage-slide .ma-heritage-bg{
    transform:translate3d(0,var(--ac-parallax,0px),0) scale(1.11);
  }
}
@media(max-width:540px) and (prefers-reduced-motion:no-preference){
  .ac-benefits::after{transform:translate3d(0,var(--ac-parallax,0px),0);will-change:transform;}
  .ac-benefits::before{transform:none!important;}
}
@media(prefers-reduced-motion:reduce){
  .ac-home .ma-heritage-bg,.ac-eco::before,.ac-benefits::before,.ac-thermio::before,.ac-benefits::after{transform:none!important;will-change:auto!important;}
}
