.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

html.lenis,
html.lenis body {
  height: auto;
}

.js-scroll-fill-text {
  color: rgba(255, 255, 255, 0.22) !important;
}

.js-scroll-fill-text .vpl-fill-word {
  color: rgba(255, 255, 255, 0.22);
  display: inline-block;
  will-change: color, opacity;
}

.js-scroll-fade-up {
  will-change: transform, opacity;
}

.js-sector-card {
  overflow: hidden;
  position: relative;
  transform-origin: center bottom;
  will-change: transform, opacity, clip-path;
  z-index: 2;
}

.js-sector-card::before,
.js-sector-card::after {
  pointer-events: none;
}

@media (min-width: 992px) {
  .js-sector-cards-section {
    background: #000;
    height: 100vh;
    isolation: isolate;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    z-index: 8;
  }

  .js-sector-cards-section::before {
    background: #000;
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 0;
  }

  .js-sector-cards-section > .brxe-container {
    align-items: center;
    display: flex;
    height: 100vh;
    justify-content: center;
    min-height: 100vh;
    padding-bottom: 0 !important;
    padding-top: 0 !important;
    position: relative;
    z-index: 1;
  }

  .js-sector-cards-section .brx-grid,
  .js-sector-cards-section [class*="brxe-"].brx-grid {
    display: block !important;
    height: min(78vh, 760px);
    min-height: min(78vh, 760px);
    overflow: hidden;
    position: relative;
    width: 100%;
  }

  .js-sector-cards-section .js-sector-card {
    height: clamp(280px, 76vh, 720px) !important;
    left: 0;
    min-height: 0;
    position: absolute;
    top: 50%;
    width: calc(50% - clamp(10px, 1.6vw, 24px));
    z-index: 2;
  }

  .js-sector-cards-section .js-sector-card:nth-child(even) {
    left: auto;
    right: 0;
  }
}

@media (min-width: 992px) and (max-height: 700px) {
  .js-sector-cards-section .text_fontsize_65 {
    font-size: clamp(28px, 3.4vw, 52px) !important;
    line-height: 1.04 !important;
  }

  .js-sector-cards-section .text_fontsize_20 {
    font-size: clamp(14px, 1.5vw, 17px) !important;
    line-height: 1.28 !important;
  }

  .js-sector-cards-section .js-sector-card {
    padding-top: clamp(20px, 5vh, 42px) !important;
  }
}

.js-project-pin {
  background: #000;
  height: 100vh;
  isolation: isolate;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  z-index: 5;
}

.js-project-pin .js-project-stage,
.js-project-pin .card_proyecto_page_home {
  height: 100vh;
  min-height: 100vh;
}

.js-project-pin .js-project-stage {
  inset: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  position: absolute !important;
  width: 100% !important;
  z-index: 1;
}

.js-project-pin .js-project-slide {
  background-color: #000;
  background-position: center;
  background-size: cover;
  height: 100vh !important;
  inset: 0 !important;
  margin: 0 !important;
  opacity: 0;
  pointer-events: none;
  position: absolute !important;
  visibility: hidden;
  width: 100% !important;
  will-change: opacity, transform;
  z-index: 1;
}

.js-project-pin .js-project-slide > * {
  position: relative;
  z-index: 2;
}

.js-project-pin .js-project-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.js-project-pin .text_fontsize_65 {
  display: -webkit-box;
  font-size: clamp(34px, 4vw, 68px) !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.04 !important;
  max-width: min(980px, calc(100vw - 260px));
  overflow: hidden;
  overflow-wrap: normal;
}

.js-project-pin .text_fontsize_24,
.js-project-pin .text_fontsize_20 {
  max-width: min(680px, calc(100vw - 260px));
}

.js-project-pin .js-project-counter {
  position: absolute;
  right: clamp(24px, 6vw, 100px);
  top: clamp(90px, 9vw, 120px);
  z-index: 5;
}

.js-project-pin .visual-button {
  position: relative;
  z-index: 5;
}

.js-horizontal-scroll {
  background: #000;
  min-height: 100vh;
  overflow: hidden;
}

.js-horizontal-scroll .js-horizontal-track {
  align-items: stretch;
  display: flex;
  gap: clamp(20px, 3vw, 60px);
  justify-content: flex-start;
  width: max-content;
  will-change: transform;
}

.js-horizontal-scroll .js-horizontal-item {
  align-items: flex-start;
  background-position: center;
  background-size: cover;
  border-radius: 8px;
  display: flex;
  flex: 0 0 min(78vw, 840px);
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(72vh, 720px);
  overflow: hidden;
  padding: clamp(28px, 5vw, 72px);
  position: relative;
}

.js-horizontal-scroll .js-horizontal-item::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.86) 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.js-horizontal-scroll .js-horizontal-item > * {
  position: relative;
  z-index: 1;
}

@media (min-width: 992px) {
  .js-horizontal-scroll {
    align-items: center;
    display: flex !important;
    height: 100vh !important;
    min-height: 100vh !important;
  }

  .js-horizontal-scroll > .brxe-container {
    display: block !important;
    height: 100vh !important;
    max-width: none !important;
    min-height: 100vh !important;
    overflow: visible;
    padding: 0 !important;
    position: relative;
    width: 100% !important;
  }

  .js-horizontal-scroll > .brxe-container > :first-child {
    align-self: stretch !important;
    background: #000;
    box-sizing: border-box;
    box-shadow: -90px 0 0 #000, 90px 0 0 #000;
    left: clamp(50px, 3.15vw, 60px);
    margin: 0 !important;
    min-height: 100vh;
    padding-top: clamp(96px, 15vh, 136px);
    position: absolute;
    top: 0;
    width: min(415px, 25vw) !important;
    z-index: 4;
  }

  .js-horizontal-scroll .js-horizontal-track {
    gap: clamp(80px, 6vw, 120px) !important;
    height: 100vh;
    justify-content: flex-start !important;
    left: calc(40% + 31px);
    position: relative;
    top: 0;
    width: max-content !important;
    z-index: 1;
  }

  .js-horizontal-scroll .js-horizontal-track .js-horizontal-track {
    display: contents !important;
  }

  .js-horizontal-scroll .js-horizontal-item {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 0;
    flex: 1 0 300px;
    height: 100% !important;
    justify-content: flex-end;
    max-width: none !important;
    min-height: 0;
    padding: 0 0 clamp(76px, 10vh, 120px) 0 !important;
    width: clamp(880px, 61vw, 1120px) !important;
  }

  .js-horizontal-scroll .js-horizontal-item::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.52) 100%);
    inset: 0;
    width: auto;
  }

  .js-horizontal-scroll .js-horizontal-item > * {
    width: min(415px, 28vw);
  }

  .js-horizontal-scroll .js-horizontal-heading {
    display: -webkit-box;
    font-size: clamp(44px, 3.4vw, 65px) !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-height: 1.15 !important;
    overflow: hidden;
  }

  .js-horizontal-scroll .js-horizontal-item .text_fontsize_20 {
    width: min(415px, 28vw) !important;
  }
}

.js-tabs-scroll {
  position: relative;
  z-index: 1001;
}

.js-tabs-scroll [role="tab"],
.js-tabs-scroll .tab-title,
.js-tabs-scroll .brxe-tabs-nested-title,
.js-tabs-scroll .nav_proyectos_desktop > .brxe-dropdown,
.js-tabs-scroll .nav_proyectos_desktop .brx-submenu-toggle {
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.js-tabs-scroll .nav_proyectos_desktop .brx-dropdown-content {
  display: none !important;
}

.js-tabs-scroll .nav_proyectos_desktop > .brxe-dropdown {
  opacity: 0.55;
}

.js-tabs-scroll .nav_proyectos_desktop > .brxe-dropdown.is-active {
  opacity: 1;
}

.js-tabs-scroll .nav_proyectos_desktop > .brxe-dropdown.is-active .brx-submenu-toggle {
  transform: translateY(-1px);
}

.js-tabs-scroll .js-tabs-stage {
  will-change: opacity, transform;
}

.js-tabs-scroll .js-solution-tabs {
  display: flex;
  flex-direction: column;
  row-gap: clamp(70px, 6vw, 115px);
  width: 100%;
}

.js-tabs-scroll .tab-menu {
  align-items: center;
  border-radius: 7px;
  border-image: linear-gradient(90deg, #2c3bbc, #57ebf7, #fff, #fae452, #dd2e33) 1;
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between;
  min-height: 57px;
  padding: 14px 30px;
  position: relative;
  width: 100%;
  z-index: 1002;
  -webkit-border-radius: 7px;
  -moz-border-radius: 7px;
  -ms-border-radius: 7px;
  -o-border-radius: 7px;
}

.js-tabs-scroll .tab-title {
  align-items: center;
  column-gap: 9px;
  display: flex;
  flex: 0 0 auto;
  white-space: nowrap;
}

.js-tabs-scroll .tab-title > * {
  pointer-events: none;
}



.js-tabs-scroll .tab-title.is-active,
.js-tabs-scroll .tab-title.brx-open,
.js-tabs-scroll .tab-title[aria-selected="true"] {
  transform: translateY(-1px);
}

.js-tabs-scroll .tab-content,
.js-tabs-scroll .tab-pane {
  width: 100%;
}

@media (max-width: 991px) {
  .js-project-pin {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
  }

  .js-project-pin .js-project-stage,
  .js-project-pin .card_proyecto_page_home {
    height: 100vh;
    min-height: 100vh;
  }

  .js-project-pin .js-project-stage {
    display: block !important;
    inset: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    overflow: hidden;
    padding: 0 !important;
    position: absolute !important;
    width: 100% !important;
  }

  .js-project-pin .js-project-slide {
    height: 100vh !important;
    inset: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute !important;
    visibility: hidden;
    width: 100% !important;
  }

  .js-project-pin .js-project-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .js-project-pin .text_fontsize_65 {
    font-size: clamp(30px, 9vw, 52px) !important;
    line-height: 1.02 !important;
    max-width: 100%;
    -webkit-line-clamp: 4;
  }

  .js-project-pin .text_fontsize_24,
  .js-project-pin .text_fontsize_20 {
    max-width: calc(100vw - 70px);
  }

  .js-project-pin .js-project-counter {
    right: 24px;
    top: 24px;
  }

.js-horizontal-scroll {
  height: auto !important;
  min-height: 0;
  overflow: visible;
  padding: 0 !important;
}

.js-horizontal-scroll .js-horizontal-track {
  align-items: stretch;
  display: flex !important;
  flex-direction: column;
  gap: 22px;
  margin-top: 32px;
  transform: none !important;
  width: 100% !important;
}

.js-horizontal-scroll .js-horizontal-item {
  background-position: center;
  background-size: cover;
  border-radius: 8px;
  flex: 0 0 auto;
  min-height: clamp(420px, 88vw, 560px);
  width: 100% !important;
}

.js-horizontal-scroll .js-horizontal-item > * {
  max-width: 100%;
  width: 100%;
}





  .js-sector-cards-section {
    background: #000;
    height: 100vh;
    isolation: isolate;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    z-index: 8;
  }

  .js-sector-cards-section > .brxe-container {
    align-items: center;
    display: flex;
    height: 100vh;
    justify-content: center;
    min-height: 100vh;
    padding-bottom: 0 !important;
    padding-top: 0 !important;
    position: relative;
    z-index: 1;
  }

  .js-sector-cards-section .brx-grid,
  .js-sector-cards-section [class*="brxe-"].brx-grid {
    display: block !important;
    height: min(74vh, 620px);
    min-height: min(74vh, 620px);
    overflow: visible;
    padding: 0 !important;
    position: relative;
    width: 100%;
  }

  .js-sector-cards-section .js-sector-card {
    height: min(74vh, 620px) !important;
    left: 0;
    min-height: 0;
    opacity: 0;
    position: absolute;
    top: 50%;
    visibility: hidden;
    width: 100% !important;
  }

  .js-sector-cards-section .text_fontsize_65 {
    font-size: clamp(32px, 9vw, 52px) !important;
    line-height: 1.04 !important;
  }

  .js-sector-cards-section .text_fontsize_20 {
    font-size: clamp(15px, 4vw, 18px) !important;
    line-height: 1.3 !important;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .js-sector-cards-section .js-sector-card {
    left: max(0px, calc((100% - 620px) / 2));
    max-width: 620px;
    width: min(84vw, 620px) !important;
  }
}

@supports (height: 100svh) {
  @media (max-width: 991px) {
    .js-project-pin,
    .js-project-pin .js-project-stage,
    .js-project-pin .card_proyecto_page_home,
    .js-project-pin .js-project-slide,
    .js-sector-cards-section,
    .js-sector-cards-section > .brxe-container {
      height: 100svh;
      min-height: 100svh;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .js-scroll-fill-text .vpl-fill-word,
  .js-scroll-fade-up,
  .js-sector-card,
  .js-project-pin .js-project-slide,
  .js-horizontal-scroll .js-horizontal-track {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
