.ehco-carousel {
  --ehco-green: #85d528;
  --ehco-green-dark: #5ca80f;
  --ehco-black: #030806;
  --ehco-panel: #0b120e;
  --ehco-line: rgba(133, 213, 40, .26);
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: none;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 30%, rgba(90, 177, 16, .12), transparent 34%),
    var(--ehco-black);
  font-family: Lato, Arial, sans-serif;
  outline: 0;
}

.ehco-carousel--pending {
  display: none !important;
}

.ehco-carousel *,
.ehco-carousel *::before,
.ehco-carousel *::after {
  box-sizing: border-box;
}

.ehco-carousel__viewport {
  width: 100%;
  overflow: hidden;
}

.ehco-carousel__track {
  display: flex;
  width: 100%;
  will-change: transform;
  transition: transform .68s cubic-bezier(.22, .72, .2, 1);
}

.ehco-slide {
  flex: 0 0 100%;
  min-width: 0;
  background: #030806;
}

.ehco-slide__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(420px, 44vw, 610px);
  overflow: hidden;
  background:
    linear-gradient(rgba(133, 213, 40, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(133, 213, 40, .045) 1px, transparent 1px),
    #030806;
  background-size: 40px 40px;
}

.ehco-slide__visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 70px;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(3, 8, 6, .44));
}

.ehco-slide__visual img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.ehco-slide__visual--cover img { max-width: 1200px; }

.ehco-slide__visual--ecosystem {
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 162, 184, .12), transparent 42%),
    linear-gradient(rgba(133, 213, 40, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(133, 213, 40, .05) 1px, transparent 1px),
    #030806;
  background-size: auto, 40px 40px, 40px 40px, auto;
}

.ehco-slide__visual--ecosystem img {
  width: min(82%, 1180px);
  height: auto;
  max-height: 72%;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
}

.ehco-slide__ecosystem-glow {
  position: absolute;
  width: min(92vw, 1180px);
  aspect-ratio: 4 / 1;
  border: 1px solid rgba(133, 213, 40, .16);
  border-radius: 50%;
  transform: scale(1.08);
  box-shadow: 0 0 90px rgba(133, 213, 40, .10);
}

.ehco-slide__context {
  position: relative;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  min-height: 158px;
  padding: 24px clamp(40px, 5vw, 92px) 30px;
  border-top: 1px solid var(--ehco-line);
  background: linear-gradient(105deg, #07100b 0%, #0c1510 55%, #07100b 100%);
}

.ehco-slide__number {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  white-space: nowrap;
}

.ehco-slide__number strong {
  color: var(--ehco-green);
  font-size: clamp(38px, 3vw, 56px);
  line-height: .85;
  font-weight: 900;
  letter-spacing: -.05em;
}

.ehco-slide__number span {
  color: rgba(255, 255, 255, .42);
  font-size: 13px;
  line-height: 1;
  letter-spacing: .15em;
}

.ehco-slide__copy {
  max-width: 840px;
}

.ehco-slide__eyebrow {
  margin: 0 0 5px !important;
  color: var(--ehco-green) !important;
  font-size: 10px !important;
  line-height: 1.3 !important;
  font-weight: 800 !important;
  letter-spacing: .24em;
}

.ehco-slide__copy h2 {
  margin: 0 0 7px !important;
  color: #fff !important;
  font-size: clamp(22px, 2vw, 31px) !important;
  line-height: 1.06 !important;
  font-weight: 900 !important;
  letter-spacing: -.025em;
}

.ehco-slide__copy > p:last-child {
  max-width: 820px;
  margin: 0 !important;
  color: rgba(255, 255, 255, .70) !important;
  font-size: clamp(13px, 1.1vw, 16px) !important;
  line-height: 1.45 !important;
}

.ehco-slide__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 51px;
  max-width: 290px;
  padding: 13px 20px;
  border: 1px solid var(--ehco-green);
  border-radius: 4px;
  color: #071006 !important;
  background: var(--ehco-green);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .035em;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 8px 30px rgba(133, 213, 40, .10);
  transition: color .22s ease, background .22s ease, transform .22s ease, box-shadow .22s ease;
}

.ehco-slide__cta span {
  font-size: 19px;
  line-height: 1;
}

.ehco-slide__cta:hover,
.ehco-slide__cta:focus-visible {
  color: #fff !important;
  background: transparent;
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(133, 213, 40, .18);
}

.ehco-carousel__arrow {
  position: absolute;
  z-index: 6;
  top: var(--ehco-arrow-top, 26.25vw);
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  color: #fff;
  background: rgba(2, 8, 5, .75);
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.ehco-carousel__arrow span {
  display: block;
  margin-top: -4px;
  font-family: Arial, sans-serif;
  font-size: 42px;
  font-weight: 300;
  line-height: 1;
}

.ehco-carousel__arrow:hover,
.ehco-carousel__arrow:focus-visible {
  border-color: var(--ehco-green);
  background: rgba(34, 68, 17, .9);
}

.ehco-carousel__arrow--prev {
  left: clamp(12px, 2.1vw, 38px);
}

.ehco-carousel__arrow--next {
  right: clamp(12px, 2.1vw, 38px);
}

.ehco-carousel__nav {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  transform: translateX(-50%);
}

.ehco-carousel__nav button {
  position: relative;
  width: 38px;
  height: 19px;
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, .40);
  background: transparent;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
  cursor: pointer;
}

.ehco-carousel__nav button::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 0;
  left: 3px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .18);
  transition: background .2s ease, transform .2s ease;
}

.ehco-carousel__nav button:hover,
.ehco-carousel__nav button:focus-visible,
.ehco-carousel__nav button.is-active {
  color: #fff;
}

.ehco-carousel__nav button.is-active::after {
  background: var(--ehco-green);
  transform: scaleX(1.08);
}

@media (max-width: 1024px) {
  .ehco-slide__visual {
    height: clamp(360px, 52.5vw, 540px);
  }

  .ehco-slide__context {
    grid-template-columns: 78px minmax(0, 1fr) auto;
    gap: 20px;
    padding-inline: 38px;
  }

  .ehco-slide__number strong {
    font-size: 40px;
  }

  .ehco-slide__cta {
    max-width: 220px;
  }

  .ehco-carousel__arrow {
    top: var(--ehco-arrow-top, 26.25vw);
  }
}

@media (max-width: 767px) {
  .ehco-slide__visual {
    height: 52.5vw;
    min-height: 205px;
    max-height: 355px;
    background-size: 24px 24px;
  }

  .ehco-slide__visual--ecosystem img {
    width: 94%;
    max-height: 80%;
    border-radius: 10px;
  }

  .ehco-slide__context {
    display: grid;
    grid-template-columns: 47px minmax(0, 1fr);
    gap: 11px 14px;
    min-height: 250px;
    padding: 22px 20px 42px;
  }

  .ehco-slide__number {
    align-self: start;
    padding-top: 4px;
  }

  .ehco-slide__number strong {
    font-size: 30px;
  }

  .ehco-slide__number span {
    display: none;
  }

  .ehco-slide__copy h2 {
    font-size: clamp(21px, 6vw, 28px) !important;
  }

  .ehco-slide__copy > p:last-child {
    font-size: 13px !important;
  }

  .ehco-slide__cta {
    grid-column: 2;
    justify-self: start;
    min-height: 44px;
    max-width: 100%;
    padding: 11px 16px;
    font-size: 10px;
  }

  .ehco-carousel__arrow {
    top: var(--ehco-arrow-top, 26.25vw);
    width: 38px;
    height: 38px;
  }

  .ehco-carousel__arrow span {
    font-size: 32px;
  }

  .ehco-carousel__nav {
    bottom: 9px;
  }

  .ehco-carousel__nav button {
    width: 31px;
  }
}

@media (max-width: 420px) {
  .ehco-slide__visual {
    min-height: 198px;
  }

  .ehco-slide__context {
    min-height: 265px;
    padding-inline: 16px;
  }

  .ehco-carousel__arrow {
    top: var(--ehco-arrow-top, 26.25vw);
  }
}

/* Integración del carrusel con la cabecera principal. */
body.home .whb-header {
  position: relative !important;
  z-index: 50;
  padding-top: 0 !important;
  height: auto !important;
}

body.home .whb-main-header {
  position: relative !important;
  inset: auto !important;
}

body.home .whb-top-bar,
body.home .whb-general-header {
  display: none !important;
}

body.home .whb-header-bottom {
  min-height: 72px;
  background: #030806 !important;
  border-bottom: 1px solid rgba(133, 213, 40, .42) !important;
}

body.home .whb-header-bottom > .container {
  width: 100% !important;
  max-width: none !important;
  padding: 0 clamp(18px, 2vw, 38px) !important;
}

body.home .whb-header-bottom-inner {
  display: grid !important;
  grid-template-columns: minmax(150px, 230px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
  min-height: 72px;
}

body.home .whb-header-bottom .whb-col-left.whb-empty-column {
  display: none !important;
}

body.home .ehco-menu-brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

body.home .ehco-menu-brand img {
  display: block;
  width: min(100%, 205px);
  height: 54px;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: screen;
}

body.home .whb-header-bottom .whb-col-center {
  justify-content: flex-start !important;
  min-width: 0;
}

body.home .whb-header-bottom .whb-col-right {
  display: flex !important;
  justify-content: flex-end;
  white-space: nowrap;
}

body.home .entry-content {
  overflow: visible !important;
}

@media (max-width: 1024px) {
  body.home .whb-header-bottom {
    display: none !important;
  }

  body.home .whb-general-header {
    display: block !important;
    min-height: 62px;
    background: #030806 !important;
  }

  body.home .whb-general-header .wd-main-logo img {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ehco-carousel__track,
  .ehco-slide__cta,
  .ehco-carousel__arrow,
  .ehco-carousel__nav button::after {
    transition: none !important;
  }
}
