/* V3 · Arranque inmóvil sobre el slide 1; animación solo al navegar. */
.emw-hero--enhanced[data-emw-loop-ready="1"] .emw-hero__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  width: 100%;
  transform: translate3d(var(--emw-shift, -100%), 0, 0);
  transition: transform 850ms cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}

.emw-hero--enhanced[data-emw-loop-ready="1"] .emw-hero__slide,
.emw-hero--enhanced[data-emw-loop-ready="1"] .emw-hero__slide[hidden] {
  display: block !important; /* Los slides siguen ocultos a lectores por aria-hidden e inert. */
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  margin: 0;
  align-self: stretch;
}

/* Salto imperceptible al finalizar una vuelta completa */
.emw-hero--enhanced .emw-hero__track.emw-hero__track--instant {
  transition: none !important;
}

/* PORTADA 3: colores oscuros sobre fondo celeste claro */
.emw-hero--enhanced .emw-hero__slide--electro {
  background: #e7f3fd;
  color: #092751;
}
.emw-hero--enhanced .emw-hero__slide--electro .emw-hero__content {
  max-width: 565px;
}
.emw-hero--enhanced .emw-hero__slide--electro h2 {
  color: #092751;
  font-size: clamp(35px, 3.6vw, 58px);
  line-height: 1.06;
  letter-spacing: -.048em;
  max-width: 560px;
}
.emw-hero--enhanced .emw-hero__slide--electro .emw-kicker {
  color: #185a9b;
}
.emw-hero--enhanced .emw-hero__slide--electro p {
  color: #435973;
  max-width: 415px;
}

/* Botón principal sólido y secundario con borde visible */
.emw-hero--enhanced .emw-hero__slide--electro .emw-btn--white {
  background: #092f65;
  color: #fff;
  border-color: #092f65;
}
.emw-hero--enhanced .emw-hero__slide--electro .emw-btn--white:hover {
  background: #164a92;
  color: #fff;
  border-color: #164a92;
}
.emw-hero--enhanced .emw-hero__slide--electro .emw-btn--outline {
  background: rgba(255,255,255,.70);
  color: #092f65;
  border-color: #547399;
}
.emw-hero--enhanced .emw-hero__slide--electro .emw-btn--outline:hover {
  background: #fff;
  color: #092f65;
  border-color: #092f65;
}

/* Controles agrupados y discretos, legibles sobre todas las portadas */
.emw-hero--enhanced .emw-hero__controls {
  gap: 10px;
  padding: 6px 10px;
  border-radius: 50px;
  background: rgba(5, 28, 65, .58);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.emw-hero--enhanced .emw-hero__controls > button {
  width: 35px;
  height: 35px;
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.24);
}
.emw-hero--enhanced .emw-hero__controls > button:hover {
  background: rgba(255,255,255,.26);
}
.emw-hero--enhanced .emw-hero__dots button {
  border-color: rgba(255,255,255,.8);
}

/* Animación sutil del contenido, sin mover el arte de fondo */
@keyframes emwHeroEnter {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
.emw-hero--enhanced[data-emw-has-changed="1"]
.emw-hero__slide[aria-hidden="false"] .emw-hero__content > .emw-kicker {
  animation: emwHeroEnter 650ms 100ms both;
}
.emw-hero--enhanced[data-emw-has-changed="1"]
.emw-hero__slide[aria-hidden="false"] .emw-hero__content > h1,
.emw-hero--enhanced[data-emw-has-changed="1"]
.emw-hero__slide[aria-hidden="false"] .emw-hero__content > h2 {
  animation: emwHeroEnter 680ms 165ms both;
}
.emw-hero--enhanced[data-emw-has-changed="1"]
.emw-hero__slide[aria-hidden="false"] .emw-hero__content > p {
  animation: emwHeroEnter 680ms 235ms both;
}
.emw-hero--enhanced[data-emw-has-changed="1"]
.emw-hero__slide[aria-hidden="false"] .emw-hero__content > .emw-actions {
  animation: emwHeroEnter 680ms 300ms both;
}

@media (max-width: 767px) {
  .emw-hero--enhanced .emw-hero__slide--electro .emw-hero__content {
    max-width: 100%;
  }
  .emw-hero--enhanced .emw-hero__slide--electro h2 {
    font-size: clamp(29px, 7.2vw, 43px);
    max-width: 100%;
    line-height: 1.1;
  }
  .emw-hero--enhanced .emw-hero__slide--electro p {
    font-size: 13px;
    max-width: 95%;
  }
  .emw-hero--enhanced .emw-hero__controls {
    padding: 4px 8px;
    gap: 7px;
    bottom: 13px;
  }
  .emw-hero--enhanced .emw-hero__controls > button {
    width: 32px;
    height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .emw-hero--enhanced .emw-hero__track {
    transition: none !important;
  }
  .emw-hero--enhanced .emw-hero__content > * {
    animation: none !important;
  }
}

#emst-home .emst-catalog-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:22px;align-items:start;padding-block:20px}
#emst-home .emst-catalog-layout.has-left{grid-template-columns:180px minmax(0,1fr)}
#emst-home .emst-catalog-layout.has-right{grid-template-columns:minmax(0,1fr) 180px}
#emst-home .emst-catalog-layout.has-left.has-right{grid-template-columns:180px minmax(0,1fr) 180px}
#emst-home .emst-catalog-main{min-width:0}#emst-home .emst-catalog-main .emw-wrap{width:100%;max-width:none;padding-inline:0}
#emst-home .emst-catalog-main .emw-home-grid{padding-top:0;margin-top:0}#emst-home .emst-catalog-main .emw-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
#emst-home .emst-ad-rail{display:grid;gap:18px;min-width:0;position:sticky;top:calc(var(--emw-header-h,100px) + 16px)}
#emst-home .emst-ad{overflow:hidden;border:1px solid #d7e5f5;border-radius:14px;background:linear-gradient(150deg,#eef7ff,#fff);box-shadow:0 5px 16px #10325b06;color:#173c6a}
#emst-home .emst-ad>img{display:block;width:100%;height:auto;max-height:260px;object-fit:cover;margin:0}#emst-home .emst-ad>div{padding:19px 15px}
#emst-home .emst-ad__kicker{font-size:9px;text-transform:uppercase;letter-spacing:.11em;font-weight:800;color:#0872e8}#emst-home .emst-ad h3{font-size:20px;line-height:1.18;margin:10px 0;color:#0b3264;overflow-wrap:anywhere}#emst-home .emst-ad p{font-size:12px;line-height:1.7;margin:10px 0 18px}#emst-home .emst-ad .emw-btn{width:100%;font-size:11px;padding:10px 7px;white-space:normal}
#emw-accesos-comerciales .emw-commercial{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto;min-height:0!important;height:auto!important;align-items:stretch}
#emw-accesos-comerciales .emw-commercial>img{grid-area:1/1;position:relative!important;inset:auto!important;display:block;width:100%!important;max-width:100%!important;min-width:0;height:100%!important;max-height:none!important;object-fit:cover;object-position:right center;z-index:0;margin:0!important}
#emw-accesos-comerciales .emw-commercial__copy{grid-area:1/1;align-self:center;position:relative;z-index:1;width:66%;max-width:66%;min-width:0;padding:clamp(18px,1.5vw,25px)}
#emw-accesos-comerciales .emw-commercial h3{font-size:clamp(21px,1.7vw,25px);line-height:1.15}#emw-accesos-comerciales .emw-commercial p{margin:9px 0 15px;line-height:1.45}#emw-accesos-comerciales .emw-commercial .emw-btn{max-width:100%;text-align:center;white-space:normal}
@media(max-width:1100px){#emst-home .emst-catalog-layout.has-left,#emst-home .emst-catalog-layout.has-right,#emst-home .emst-catalog-layout.has-left.has-right{grid-template-columns:1fr 1fr}#emst-home .emst-catalog-main{grid-column:1/-1;grid-row:1}#emst-home .emst-ad-rail{position:static;grid-row:2;grid-template-columns:repeat(2,minmax(0,1fr))}#emst-home .emst-ad-rail--left{grid-column:1}#emst-home .emst-ad-rail--right{grid-column:2}}
@media(max-width:767px){#emst-home .emst-catalog-main .emw-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#emst-home .emst-catalog-layout.has-left,#emst-home .emst-catalog-layout.has-right,#emst-home .emst-catalog-layout.has-left.has-right{grid-template-columns:1fr}#emst-home .emst-ad-rail--left{grid-column:1;grid-row:2}#emst-home .emst-ad-rail--right{grid-column:1;grid-row:3}#emw-accesos-comerciales .emw-commercial__copy{width:62%;max-width:62%;padding:20px}#emw-accesos-comerciales .emw-commercial h3{font-size:23px}#emw-accesos-comerciales .emw-commercial p{font-size:12px}}
@media(max-width:380px){#emst-home .emst-ad-rail{grid-template-columns:1fr}#emw-accesos-comerciales .emw-commercial__copy{padding:17px}#emw-accesos-comerciales .emw-commercial h3{font-size:21px}}

#emst-home .emst-ad--available{border-style:dashed;background:linear-gradient(145deg,#edf6ff,#fff)}#emst-home .emst-ad--available .emst-ad__symbol{font-size:40px;line-height:1;color:#0872e8;margin:22px 0 14px}#emst-home .emst-ad--available .emst-ad__kicker{line-height:1.7;display:block}#emst-home .emst-ad .emw-btn{box-sizing:border-box;max-width:100%}#emst-home .emst-ad-rail .emst-ad:only-child{grid-column:1/-1}
