:root {
  --smarthouse-white: #fff;
  --smarthouse-green: #00a443;
  --smarthouse-green-1: #007f33;
  --smarthouse-sand: #FFF5EC;
  --smarthouse-sand-3: #D8CFC7;
  --smarthouse-forest: #00402a;
}

#smarthouse {
  width: 100%;
  max-width: 980px;
  text-align: left;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 15px;
  border: 1px solid var(--smarthouse-sand-3);
  background: var(--smarthouse-white);
  padding: 24px 16px;
  margin: 20px auto;
}

#smarthouse * {
  font-family: "IberPangeaText" !important;
  font-style: normal;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#smarthouse strong {
  font-family: "IberPangeaText Bold" !important;
  font-weight: normal;
}

#smarthouse h2 {
  margin-top: 0 !important;
}

#smarthouse ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#smarthouse ul li:before {
  content: none !important;
  display: none !important;
}

#smarthouse img {
  display: block;
  width: 100%;
}

#smarthouse .swiper {
  z-index: 2;
  position: relative;
  /* overflow: hidden; */
  width: 100%;
}

#smarthouse .swiper-wrapper {
  display: flex;
  align-items: flex-start;
  transition-property: transform, height;
  box-sizing: content-box;  
}

#smarthouse .swiper-slide {
  width: 100%;
  height: auto;
  flex-shrink: 0;
  box-sizing: border-box;
  transition-property: opacity;
  opacity: 0 !important;
  backface-visibility: hidden;
  transform: translateZ(0);
  pointer-events: none;
}

#smarthouse .swiper-slide.swiper-slide-active {
  pointer-events: auto;
  opacity: 1 !important;
}

#smarthouse .swiper-slide-invisible-blank {
  visibility: hidden;
}

#smarthouse .swiper-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  margin: 24px auto 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

#smarthouse .swiper-button-prev,
#smarthouse .swiper-button-next {
  width: 32px;
  height: 32px;
  display: block;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
  border-radius: 100%;
  cursor: pointer;
  text-align: left;
  text-indent: -9999px;
  overflow: hidden;
  position: relative;
  z-index: 2;
  user-select: none;
}

#smarthouse .swiper-button-prev {
  background-image: url("/wcorp/gc/prod/es_ES/estaticos/casa-domotica/images/ico-prev.svg");
}

#smarthouse .swiper-button-next {
  background-image: url("/wcorp/gc/prod/es_ES/estaticos/casa-domotica/images/ico-next.svg");
}

#smarthouse .swiper-button-prev.swiper-button-disabled,
#smarthouse .swiper-button-next.swiper-button-disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

#smarthouse .swiper-button-prev:focus,
#smarthouse .swiper-button-next:focus {
  background-color: #dcebe1;
  outline: none;
}

#smarthouse .swiper-pagination {
  border-radius: 24px;
  border: 1px solid var(--smarthouse-forest);
  padding: 5px 16px;
  color: var(--smarthouse-forest) !important;
  font-size: 14px;
  line-height: 1.3;
  font-style: italic;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  max-width: 68px;
  margin-right: auto;
  background: transparent;
  position: relative;
}

#smarthouse .swiper-pagination .swiper-pagination-current {
  font-style: italic;
  color: var(--smarthouse-green-1) !important;
}

#smarthouse .swiper-pagination .swiper-pagination-total {
  font-style: italic;
}

@media (prefers-reduced-motion: reduce) {
  #smarthouse .swiper-wrapper {
    scroll-behavior: auto;
  }
}

#smarthouse .smarthouse_title {
  color: var(--smarthouse-green-1) !important;
  font-family: "IberPangea" !important;
  font-size: 32px;
  line-height: 1.125;
  font-style: normal;
  font-weight: normal;
  text-align: left;
  margin-bottom: 24px;
}

#smarthouse .smarthouse_title strong {
  font-family: "IberPangea Bold" !important;
  font-weight: normal;
}

#smarthouse .smarthouse_content {
  width: 100%;
  position: relative;
  /* overflow: hidden; */
}

#smarthouse .swiper-slide {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

#smarthouse .smarthouse_media {
  width: 100%;
  z-index: 1;
  position: relative;
  padding-bottom: 38px;
}

#smarthouse .smarthouse_media:before {
  content: '';
  display: block;
  width: calc(100% + 18px);
  height: 398px;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: auto 398px;
  position: absolute;
  z-index: 2;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 1s 0.5s;
}

#smarthouse[data-slider="1"] .smarthouse_media:before {
  animation: smarthouseLines 1s 0.5s forwards;
  background-image: url('/wcorp/gc/prod/es_ES/estaticos/casa-domotica/images/lines-1.svg');
}

#smarthouse[data-slider="2"] .smarthouse_media:before {
  animation: smarthouseLineAlt 1s 0.5s forwards;
  background-image: url('/wcorp/gc/prod/es_ES/estaticos/casa-domotica/images/lines-2.svg');
}

#smarthouse[data-slider="3"] .smarthouse_media:before {
  animation: smarthouseLines 1s 0.5s forwards;
  background-image: url('/wcorp/gc/prod/es_ES/estaticos/casa-domotica/images/lines-3.svg');
  background-size: auto 653px;
  height: 653px;
}

#smarthouse[data-slider="4"] .smarthouse_media:before {
  animation: smarthouseLineAlt 1s 0.5s forwards;
  background-image: url('/wcorp/gc/prod/es_ES/estaticos/casa-domotica/images/lines-4.svg');
}

@keyframes smarthouseLines {
  0% {
    opacity: 0;
  }
  50%, 100% {
    opacity: 1;
  }
}

@keyframes smarthouseLineAlt {
  0% {
    opacity: 0;
  }
  50%, 100% {
    opacity: 1;
  }
}

#smarthouse .smarthouse_media_inner {
  max-width: 258px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

#smarthouse .smarthouse_media_image {
  width: 100%;
  position: relative;
  transition: all 1s;
}

#smarthouse .smarthouse_media_image-1 {
  z-index: 4;
}

#smarthouse .smarthouse_media_image-2 {
  max-width: 229px;
  margin-left: 14px;
  margin-top: -110px;
  z-index: 3;
}

#smarthouse .smarthouse_media_image-3 {
  max-width: 231px;
  margin-left: 10px;
  margin-top: -132px;
  z-index: 2;
}

#smarthouse .smarthouse_media_image-4 {
  max-width: 151px;
  margin-left: 90px;
  margin-top: -120px;
  z-index: 1;
}

#smarthouse .smarthouse_media_image-5 {
  max-width: 14px;
  margin-left: 88px;
  margin-top: -31px;
  z-index: 3;
}

#smarthouse[data-slider="2"] .smarthouse_media_image-2 {
  margin-top: -58px;
}

#smarthouse[data-slider="3"] .smarthouse_media_image-3 {
  margin-top: -40px;
}

#smarthouse[data-slider="4"] .smarthouse_media_image-4 {
  margin-top: -67px;
}

#smarthouse .smarthouse_item {
  width: calc(50% - 8px);
  border-radius: 15px;
  border: 1px solid var(--smarthouse-sand-3);
  background: var(--smarthouse-white);
  padding: 6px 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

#smarthouse .smarthouse_item-9 {
  width: 100%;
  padding-top: 16px;
  padding-left: 8px;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row;
}

#smarthouse .smarthouse_item_media {
  width: 100%;
  min-height: 80px;
  position: relative;
}

#smarthouse .smarthouse_item-9 .smarthouse_item_media {
  min-height: 60px;
  max-width: 101px;
}

#smarthouse .smarthouse_item_icon {
  width: 100%;
  max-width: 89px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
}

#smarthouse .smarthouse_item-2 .smarthouse_item_icon {
  min-width: 134px;
  max-width: 134px;
}

#smarthouse .smarthouse_item-9 .smarthouse_item_icon {
  min-width: 101px;
  max-width: 101px;
}

#smarthouse .smarthouse_item_label {
  color: var(--smarthouse-forest) !important;
  font-family: "IberPangeaText" !important;
  font-size: 16px;
  line-height: 1.25;
  font-style: normal;
  font-weight: normal;
  text-align: left;
  min-height: 40px;
  width: 100%;
}

#smarthouse .smarthouse_media_link {
  display: none;
}

@media (min-width: 700px) {

  #smarthouse {
    padding: 32px;
  }

  #smarthouse .swiper-controls {
    display: none;
  }

  #smarthouse .smarthouse_media:before {
    display: none;
  }

  #smarthouse .smarthouse_media_inner {
    max-width: 502px;
  }
  
  #smarthouse .smarthouse_media_image-2 {
    max-width: 447px;
    margin-left: 26px;
    margin-top: -215px;
  }
  
  #smarthouse .smarthouse_media_image-3 {
    max-width: 451px;
    margin-left: 19px;
    margin-top: -257px;
  }
  
  #smarthouse .smarthouse_media_image-4 {
    max-width: 295px;
    margin-left: 175px;
    margin-top: -234px;
  }
  
  #smarthouse .smarthouse_media_image-5 {
    max-width: 26px;
    margin-left: 170px;
    margin-top: -60px;
  }
  
  #smarthouse[data-slider="2"] .smarthouse_media_image-2 {
    margin-top: -100px;
  }
  
  #smarthouse[data-slider="3"] .smarthouse_media_image-3 {
    margin-top: -55px;
  }
  
  #smarthouse[data-slider="4"] .smarthouse_media_image-4 {
    margin-top: -88px;
  }

  #smarthouse .swiper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* height: 100%; */
    /* pointer-events: none; */
  }

  #smarthouse .swiper-wrapper,
  #smarthouse .swiper-slide {
    height: 100%;
  }

  #smarthouse .smarthouse_item {
    position: absolute;
    max-width: 189px;
    padding-top: 16px;
    padding-left: 8px;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    gap: 12px;
    transition: all 0.5s;
    opacity: 1;
    visibility: visible;
  }

  #smarthouse .smarthouse_item.inactive {
    opacity: 0;
    visibility: hidden;
  }

  #smarthouse .smarthouse_item:hover {
    border-color: var(--smarthouse-forest);
  }

  #smarthouse .smarthouse_item:before {
    content: '';
    display: block;
    position: absolute;
    top: 100%;
    left: 50%;
    width: 1px;
    background-color: var(--smarthouse-forest);
    transition: all 0.5s 0.5s;
    height: 0;
  }

  #smarthouse .smarthouse_item:after {
    content: '';
    display: block;
    position: absolute;
    height: 1px;
    background-color: var(--smarthouse-forest);
    transition: all 0.5s 0s;
    width: 0;
  }

  #smarthouse .smarthouse_item:hover:before {
    transition: all 0.5s 0s;
  }

  #smarthouse .smarthouse_item:hover:after {
    transition: all 0.5s 0.5s;
  }

  #smarthouse .smarthouse_item_label:before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 100%;
    background-color: var(--smarthouse-forest);
    position: absolute;
    opacity: 0;
    transition: all 0.5s 0s;
  }

  #smarthouse .smarthouse_item:hover .smarthouse_item_label:before {
    transition: all 0.5s 1s;
    opacity: 1;
  }
  
  #smarthouse .smarthouse_item-1 {
    top: 108px;
    right: calc(50% + 61px);
  }

  #smarthouse .smarthouse_item-1:after {
    left: 50%;
    top: calc(100% + 95px);
  }

  #smarthouse .smarthouse_item-1:hover:before {
    height: 95px;
  }

  #smarthouse .smarthouse_item-1:hover:after {
    width: 26px;
  }

  #smarthouse .smarthouse_item-1 .smarthouse_item_label:before {
    top: calc(100% + 93px);
    left: calc(50% + 23px);
  }
  
  #smarthouse .smarthouse_item-2 {
    top: 0;
    left: calc(50% + 64px);
  }

  #smarthouse .smarthouse_item-2:after {
    top: calc(100% + 30px);
    right: calc(50% - 1px);
  }

  #smarthouse .smarthouse_item-2:hover:before {
    height: 31px;
  }

  #smarthouse .smarthouse_item-2:hover:after {
    width: 154px;
  }

  #smarthouse .smarthouse_item-2 .smarthouse_item_label:before {
    top: calc(100% + 28px);
    right: calc(50% + 151px);
  }


  #smarthouse .smarthouse_item-3 {
    top: 206px;
    right: calc(50% + 61px);
  }

  #smarthouse .smarthouse_item-3:after {
    left: 50%;
    top: calc(100% + 19px);
  }

  #smarthouse .smarthouse_item-3:hover:before {
    height: 19px;
  }

  #smarthouse .smarthouse_item-3:hover:after {
    width: 105px;
  }

  #smarthouse .smarthouse_item-3 .smarthouse_item_label:before {
    top: calc(100% + 16px);
    left: calc(50% + 102px);
  }


  #smarthouse .smarthouse_item-4 {
    top: 206px;
    left: calc(50% + 62px);
  }

  #smarthouse .smarthouse_item-4:before {
    top: 50%;
    left: auto;
    right: calc(100% + 70px);
    transition: all 0.5s 0s;
  }

  #smarthouse .smarthouse_item-4:hover:before {
    height: 42px;
    transition: all 0.5s 0.5s;
  }

  #smarthouse .smarthouse_item-4:after {
    top: 50%;
    right: 100%;
    transition: all 0.5s 0.5s;
  }

  #smarthouse .smarthouse_item-4:hover:after {
    width: 71px;
    transition: all 0.5s 0s;
  }

  #smarthouse .smarthouse_item-4 .smarthouse_item_label:before {
    top: calc(50% + 37px);
    right: calc(100% + 67px);
  }

  
  #smarthouse .smarthouse_item-5 {
    top: 289px;
    right: calc(50% + 60px);
  }

  #smarthouse .smarthouse_item-5:after {
    left: 100%;
    top: calc(50% + 25px);
  }

  #smarthouse .smarthouse_item-5:before {
    content: none;
    display: none;
  }

  #smarthouse .smarthouse_item-5:hover:after {
    width: 97px;
  }

  #smarthouse .smarthouse_item-5 .smarthouse_item_label:before {
    left: calc(100% + 93px);
    top: calc(50% + 23px);
  }


  
  #smarthouse .smarthouse_item-6 {
    top: 510px;
    left: calc(50% + 62px);
  }

  #smarthouse .smarthouse_item-6:after {
    right: 50%;
    top: auto;
    bottom: calc(100% + 70px);
  }

  #smarthouse .smarthouse_item-6:before {
    top: auto;
    bottom: 100%;
  }

  #smarthouse .smarthouse_item-6:hover:before {
    height: 70px;
  }

  #smarthouse .smarthouse_item-6:hover:after {
    width: 15px;
  }

  #smarthouse .smarthouse_item-6 .smarthouse_item_label:before {
    top: auto;
    bottom: calc(100% + 67px);
    right: calc(50% + 12px);
  }



  #smarthouse .smarthouse_item-7 {
    top: 510px;
    right: calc(50% + 60px);
  }

  #smarthouse .smarthouse_item-7:after {
    left: 50%;
    top: auto;
    bottom: calc(100% + 30px);
  }

  #smarthouse .smarthouse_item-7:before {
    top: auto;
    bottom: 100%;
  }

  #smarthouse .smarthouse_item-7:hover:before {
    height: 30px;
  }

  #smarthouse .smarthouse_item-7:hover:after {
    width: 190px;
  }

  #smarthouse .smarthouse_item-7 .smarthouse_item_label:before {
    top: auto;
    bottom: calc(100% + 27px);
    left: calc(50% + 187px);
  }


  
  #smarthouse .smarthouse_item-8 {
    top: 289px;
    left: calc(50% + 62px);
  }

  #smarthouse .smarthouse_item-8:after {
    right: 50%;
    top: calc(100% + 95px);
  }

  #smarthouse .smarthouse_item-8:hover:before {
    height: 40px;
  }

  #smarthouse .smarthouse_item-8:after {
    content: none;
    display: none;
  }

  #smarthouse .smarthouse_item-8 .smarthouse_item_label:before {
    top: calc(100% + 37px);
    right: calc(50% - 3px);
  }


  #smarthouse .smarthouse_item-9 {
    top: 400px;
    right: calc(50% + 60px);
  }

  #smarthouse .smarthouse_item-9:after {
    left: 100%;
    top: calc(50% - 5px);
  }

  #smarthouse .smarthouse_item-9:before {
    content: none;
    display: none;
  }

  #smarthouse .smarthouse_item-9:hover:after {
    width: 113px;
  }

  #smarthouse .smarthouse_item-9 .smarthouse_item_label:before {
    left: calc(100% + 110px);
    top: calc(50% - 7px);
  }

  
  #smarthouse .smarthouse_item_media {
    max-width: 60px;
    min-height: 60px;
  }
  
  #smarthouse .smarthouse_item_icon,
  #smarthouse .smarthouse_item-3 .smarthouse_item_icon,
  #smarthouse .smarthouse_item-4 .smarthouse_item_icon {
    min-width: 43px;
    max-width: 43px;
  }

  #smarthouse .smarthouse_item-1 .smarthouse_item_icon {
    min-width: 49px;
    max-width: 49px;
  }

  #smarthouse .smarthouse_item-2 .smarthouse_item_icon {
    min-width: 66px;
    max-width: 66px;
  }

  #smarthouse .smarthouse_item-5 .smarthouse_item_icon {
    min-width: 47px;
    max-width: 47px;
  }

  #smarthouse .smarthouse_item-6 .smarthouse_item_icon {
    min-width: 58px;
    max-width: 58px;
  }

  #smarthouse .smarthouse_item-7 .smarthouse_item_icon {
    min-width: 51px;
    max-width: 51px;
  }

  #smarthouse .smarthouse_item-8 .smarthouse_item_icon {
    min-width: 50px;
    max-width: 50px;
  }

  #smarthouse .smarthouse_item-9 .smarthouse_item_icon {
    min-width: 61px;
    max-width: 61px;
  }
  
  #smarthouse .smarthouse_media_link {
    display: block;
    width: 32px;
    height: 32px;
    background-image: url('/wcorp/gc/prod/es_ES/estaticos/casa-domotica/images/ico-m.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    text-decoration: none;
    overflow: hidden;
    text-indent: -9999px;
    overflow: hidden;
    position: absolute;
    z-index: 5;
    left: 233px;
  }

  #smarthouse .smarthouse_media_link-2 {
    top: 287px;
  }

  #smarthouse .smarthouse_media_link-3 {
    top: 341px;
  }

  #smarthouse .smarthouse_media_link-4 {
    top: 395px;
  }

  #smarthouse .smarthouse_media_close {
    background-image: url('/wcorp/gc/prod/es_ES/estaticos/casa-domotica/images/ico-c.svg');
    display: none;
  }

  #smarthouse[data-slider="2"] .smarthouse_media_link,
  #smarthouse[data-slider="3"] .smarthouse_media_link,
  #smarthouse[data-slider="4"] .smarthouse_media_link {
    display: none;
  }

  #smarthouse[data-slider="2"] .smarthouse_media_close,
  #smarthouse[data-slider="3"] .smarthouse_media_close,
  #smarthouse[data-slider="4"] .smarthouse_media_close {
    display: block;
  }

  #smarthouse[data-slider="2"] .smarthouse_media_close {
    top: 397px;
  }

  #smarthouse[data-slider="3"] .smarthouse_media_close {
    top: 321px;
  }

  #smarthouse[data-slider="4"] .smarthouse_media_close {
    top: 400px;
  }

}
