@font-face {
  font-family: OwnersNarrow;
  src: url("../fonts/OwnersNarrow-Bold.otf") format("opentype");
  font-weight: 700;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: OwnersNarrow, sans-serif;
  font-weight: 700;
  margin: 0;
  background-color: #FFFFFF;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.bouncing-video {
  position: fixed;
  border-radius: 10px;
  top: 70%; 
  left: 50%;
  width: 262px;
	height: 152px;
  object-fit: cover;
  pointer-events: none;
  z-index: 11; 
  opacity: 1; 
  transform: translate(-50%, -50%);
}

.bouncing-video-mobile {
  width: 240px;
  height: 163px;
  object-fit: cover;
  border-radius: 10px;
  display: none;
}

.scroll-down {
  animation: MoveUpDown 1.2s ease-in-out infinite;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-30%, 0%);
}

.scroll-down .bx-chevrons-down {
  font-size: 45px;
}

.logo {
  position: fixed;
  top: 42px; /*scrolled*/
  left: 50%; /*scrolled*/
  width: 90%; /*scrolled*/
  max-width: auto;
  height: auto; /*scrolled*/
  object-fit: contain;
  pointer-events: none;
  transform: translate(-50%, 0%); /*scrolled*/
  z-index: 10;
}

.nav-links-desktop {
  position: fixed;
  top: 20px;
  right: 35px;
  opacity: 0;
  list-style: none;
  padding: 0px;
  margin: 0px;
  pointer-events: none;
  display: flex;
  gap: 10px;
  z-index: 10;
  color: #646464;
}

.nav-links-desktop li,
.nav-links-desktop li a {
  text-decoration: none;
  font-size: 22px;
  letter-spacing: 0.03em;
  color: #646464;
  transition: all 0.5s ease-in-out;
}

.nav-links-mobile {
  display: none;
  position: fixed;
  top: 18px;
  right: 10px;
  opacity: 0;
  padding: 0px;
  margin: 0px;
  pointer-events: none;
  z-index: 12;
  font-size: 22px;
  letter-spacing: 0.03em;
  color: #ffffff;
}

.logo-path {
  fill: #000000;
}

.tagline-text {
  color: #000000;
  font-size: 24px; 
  line-height: 26px; 
  letter-spacing: 0.03em;
  font-weight: 700;
  text-align: center;
  margin: 0;
  z-index: 2;
  padding-top: 8%;
} 

.hero-section {
  height: 100vh; 
  min-height: 100vh;
  padding-bottom: 12vh; 
  margin-bottom: 12vh; 
  position: relative;  
  box-sizing: border-box;
  z-index: 1;
}

.hero-content-wrapper {
  position: absolute;
  top: -5%;
  left: 0;
  width: 100%;
  height: calc(100%);
  display: flex;
  flex-direction: column;
  justify-content: center; 
  align-items: center;  
  z-index: 2; 
  box-sizing: border-box; 
}

.content {
  padding: 80px 35px 20px 35px;
  color: #333;
  position: relative;
  z-index: 1;
}

.filter-container {
  position: sticky;
  top: 0;
  padding-top: 60px;
  padding-bottom: 20px;
  width: 100%;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  row-gap: 10px;
  column-gap: 8px;
  transition: all 0.6s ease-in-out;
}

.filter-button {
  padding: 2px 8px;
  border: 1px solid #FFFFFF;
  background: #111111;
  color: #FFFFFF;
  border-radius: 8px;
  cursor: pointer;
  font-family: OwnersNarrow, sans-serif;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.2s ease-in-out;
  margin: 0px;
}

.filter-button-close {
  padding: 8px 8px 6px 10px;
  border: 1px solid #FFFFFF;
  background: #111111;
  color: #FFFFFF;
  border-radius: 50px;
  cursor: pointer;
  font-family: OwnersNarrow, sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s ease-in-out;
  margin: 0px;
}

.filter-button-close i {
  font-size: 18px;
}

.filter-button-close:hover,
.filter-button-close:focus,
.filter-button:hover,
.filter-button:focus {
  background-color: #131313;
}

.filter-button.active {
  border: 1px solid #000000;
  background: #FFFFFF;
  color: #000000;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 350px;
  gap: 15px;
  min-height: 100dvh;
}

.proyecto {
  display: flex;
  flex-direction: column;
  font-size: initial;
  font-weight: initial;
  overflow: hidden;
  background-color: #000000;
  color: #FFFFFF;
  transition: 
    grid-column 0.4s ease,
    grid-row 0.4s ease,
    opacity 0.4s ease,
    transform 0.4s ease;
  opacity: 0;
  transform: scale(1);
  cursor: pointer;
}

.proyecto img {
  display: block;
  width: 100%;
  height: 250px;
  flex-grow: 1;
  object-fit: cover;
}

.proyecto .info-proyecto {
  padding: 8px 0px;
  width: 100%;
  box-sizing: border-box;
}

.proyecto .info-proyecto h3 {
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 30px;
  color: #FFFFFF;
  letter-spacing: 0.05em;
  line-height: 36px;
}
  
.proyecto .info-proyecto p {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 18px;
  color: #FFFFFF;
  letter-spacing: 0.05em;
  line-height: 18px;
  padding-top: 5px;
}

body.modal-open {
  overflow: hidden;
  transition: all 100ms ease-in-out;
}

.modal {
  background-color: #000000E6;
  position: fixed;
  inset: 0;
  display: flex;
  opacity: 0;
  transition: opacity 100ms ease-in-out;
  pointer-events: none;
  width: 100%;
  height: 100dvh;
  z-index: 1000;
}

.modal-content {
  display: flex;
  height: 100%;
  width: 100%;
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
}

.left-pane {
  width: 30%;
  display: grid;
  align-content: end;
}

.left-pane .container {
  margin-bottom: 12dvh;
}

.left-pane .container p {
  font-size: 18px;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.left-pane .container h2 {
  font-size: 42px;
  letter-spacing: 0.05em;
  line-height: 46px;
  margin: 0px;
}

.left-pane-video {
  display: none;
  position:relative;
}

.right-pane {
  width: 70%;
  overflow-y: auto;
}

.right-pane-video {
  height: 80dvh; 
  margin: auto; 
  width: 100%; 
  position:relative;
  margin-top: 12dvh;
  /* margin-bottom: 8dvh; */
}

.right-scroll-down {
  height: 8dvh;
  display: flex;
  align-items: center;
}

.right-scroll-down .bx-chevrons-down {
  font-size: 48px;
  padding-bottom: 10px;
  animation: MoveUpDownModal 1.1s ease-in-out infinite;
}

.right-pane-info {
  display: flex;
  width: 100%;
  justify-content: end;
}

.right-pane-info p {
  width: 50%;
  font-size: 21px;
  line-height: 24px;
  letter-spacing: 0.05em;
  margin: 60px 0px;
}

.right-pane-info div {
  width: 50%;
}

.right-pane-info div div {
  display: flex;
  width: 100%;
  gap: 15px;
}

.right-pane-info div div p {
  flex: 1;
  margin: 0px;
}

.right-pane-double {
  display: flex;
  width: 100%;
  gap: 10px;
  padding-bottom: 10px;
}

.right-pane-double img {
  flex: 1;
  object-fit: cover;
  width: calc(50% - 5px);
  aspect-ratio: 1 / 1.4;
}

.right-pane-single img {
  flex: 1;
  object-fit: cover;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.right-pane-single {
  display: flex;
  width: 100%;
  padding-bottom: 10px;
}

.left-pane,
.right-pane {
  height: 100%;
  padding: 0 2rem;
  box-sizing: border-box;
  color: #FFFFFF;
}

.modal-left {
  overflow: hidden;
}

button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
}

.infoBtn {
  display: none;
}

.mobile-info-modal {
  position: fixed;
  inset: 0;
  background-color: #000000E0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 100ms ease-in-out;
  pointer-events: none;
  z-index: 1100;
}

.mobile-info-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.mobile-info-content {
  color: #FFFFFF;
  max-height: 100dvh;
  overflow-y: auto;
  width: 100%;
  padding: 0px 20px;
  transform: translateY(40px);
  transition: transform 200ms ease-in-out;
}

.mobile-info-content-single {
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mobile-info-container {
  padding-top: 65px;
}

.mobile-info-content-single .mobile-info-container {
  padding-top: 0px;
}

.mobile-info-container .info-mobile-text {
  padding: 30px 0px;
}

.mobile-info-modal.show .mobile-info-content {
  transform: translateY(0);
}

.modal-logo {
  position: fixed;
  max-width: auto;
  height: auto;
  object-fit: contain;
  z-index: 1001;
  top: 20px;
  left: 35px;
  width: 150px;
  transform: translate(0, 0);
}

.modal-button-close {
  position: fixed;
  top: 15px;
  right: 35px;
  margin: 0px;
  z-index: 1001;
  padding: 9px 8px 8px 10px;
  border: 1px solid #FFFFFF;
  background: #111111;
  color: #FFFFFF;
  border-radius: 50px;
  cursor: pointer;
  font-family: OwnersNarrow, sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-button-close i {
  font-size: 25px;
}

.modal-info-button-desktop {
  padding: 6px 20px 6px 18px;
  border: 1px solid #FFFFFF;
  background: #111111;
  color: #FFFFFF;
  border-radius: 8px;
  cursor: pointer;
  font-family: OwnersNarrow, sans-serif;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s ease-in-out;
  margin: 10px 0px 0px 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.modal-info-button-desktop .p-info {
  padding: 0px;
  margin: 0px !important;
}

.modal-info-button-desktop:hover,
.modal-info-button-desktop:focus {
  background-color: #131313;
}

.modal-info-button-desktop.button-modal-active {
  border: 1px solid #000000;
  background: #FFFFFF;
  color: #000000;
}

.modal-info-content-desktop {
  margin: 0px;
}

.modal-info-content-desktop.open .info {
  opacity: 1;
  margin: 18px 0px;
  line-height: 24px;
  transition: 
    margin 0.4s ease-in-out,
    line-height 0.4s ease-in-out,
    opacity 0.3s ease-in-out 0.3s;
  font-size: 21px;
}

.modal-info-content-desktop .info {
  font-size: 21px !important;
  line-height: 0px;
  letter-spacing: 0.05em;
  opacity: 0;
  margin: 0px;
  pointer-events: none;
  transition:
    opacity 0.3s ease-in-out,                 
    margin 0.4s ease-in-out 0.3s,           
    line-height 0.4s ease-in-out 0.3s; 
  
}

.mobile-pane-info {
  display: flex;
  width: 100%;
  justify-content: end;
  padding: 25px 0px;
  font-size: 14px;
  line-height: 14px;
}

.mobile-pane-info p {
  width: 100%;
  font-size: 14px;
  line-height: 14px;
  letter-spacing: 0.05em;
  margin: 60px 0px;
}

.mobile-pane-info .right {
  text-align: right;
}

.mobile-pane-info div {
  width: 100%;
}

.mobile-pane-info div div {
  display: flex;
  width: 100%;
}

.mobile-pane-info div div p {
  flex: 1;
  margin: 2px;
}

.left-pane-double {
  display: flex;
  width: 100%;
  gap: 10px;
  padding-bottom: 10px;
}

.left-pane-double img {
  flex: 1;
  object-fit: cover;
  width: calc(50% - 5px);
  aspect-ratio: 1 / 1.4;
}

.left-pane-single img {
  flex: 1;
  object-fit: cover;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.left-pane-single {
  display: flex;
  width: 100%;
  padding-bottom: 10px;
}

.vertical {
  height: 90dvh;
  margin-bottom: 5dvh;
  margin-top: 5dvh;
}

.info-single {
  margin: 100px 0px;
}

.link-desktop.active-link {
  color: #FFFFFF;
}

.button-whatsapp {
  position: fixed; 
  bottom: 20px; 
  right: 20px; 
  background-color: #FFFFFF;
  color: #000000;
  border-radius: 50%; 
  width: 52px;
  height: 52px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.1em;
  box-shadow: 0px 0px 5px 0px #988f886D;
  border: 4px solid #FFFFFF;
  z-index: 1200; 
  scale: 0;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  text-decoration: none;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000000;
  transform: translateX(100%);
  transition: transform 0.5s ease-in-out;
  z-index: 1600;
  overflow-y: auto;
  box-sizing: border-box;
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer-content {
  padding: 40px 20px 20px 20px;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  transition-delay: 0.4s;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.drawer-content nav {
  padding-top: 10dvh;
}

.drawer.is-open .drawer-content {
  opacity: 1;
}

.drawer-content nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.drawer-content nav li {
  margin-bottom: 25px;
}

.drawer-content nav a {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 28px;
  font-weight: bold;
  display: block;
}

.whatsapp-show {
  scale: 1;
}

@keyframes MoveUpDown {
  0%, 100% {
    bottom: 20px;
    opacity: 1;
  }
  45% {
    bottom: 28px;
  }
  50% {
    opacity: 0.8;
  }
  55% {
    bottom: 28px;
  }
}

@keyframes MoveUpDownModal {
  0%, 100% {
    padding-bottom: 26px;
    opacity: 1;
  }
  45% {
    padding-bottom: 30px;
  }
  50% {
    opacity: 0.8;
  }
  55% {
    padding-bottom: 30px;
  }
}

@media (min-width: 1800px) {
  .filter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 420px;
    gap: 15px;
    min-height: 100dvh;
  }
  
  .proyecto img {
    width: 100%;
    object-fit: cover;
    height: 180px;
  }
}

@media (max-width: 1500px) {
  .filter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px;
    gap: 15px;
    min-height: 100dvh;
  }
  
  .proyecto img {
    width: 100%;
    object-fit: cover;
    height: 180px;
  }
}

@media (max-width: 628px) {

  .modal {
    background-color: #000000E2;
  }

  .tagline-text {
    padding-top: 0px;
  }

  .filter-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .filter-button {
    font-size: 12px;
    padding: 5px;
  }

  .filter-button-close {
    font-size: 10px;
    padding: 5px 5px 2px 6px;
  }

  .filter-button-close i {
    font-size: 15px;
  }

  .proyecto {
    grid-column: auto !important;
    grid-row: auto !important;
    height: 280px;
    flex-direction: column;
  }

  .proyecto img {
    width: 100%;
    object-fit: cover;
    height: 180px;
  }

  .proyecto .info-proyecto h3 {
    font-size: 25px;
    line-height: 28px;
  }
    
  .proyecto .info-proyecto p {
    font-size: 12px;
  }

  .modal-content {
    flex-direction: column;
  }

  .left-pane,
  .right-pane {
    width: 100%;
    padding: 0px 20px;
  }

  .left-pane {
    align-content: space-between;
  }

  .right-pane {
    display: none;
  }

  .left-pane-video {
    height: 100%; 
    margin: auto; 
    width: 100%; 
    position: relative;
    margin-top: 30dvh;
    display: block;
  }

  .vertical-video {
    height: 50dvh;
    margin-top: 15dvh;
  }

  .infoBtn {
    display: inline-block;
    margin-top: 20px;
  }

  .modal-info-button-desktop {
    display: none;
  }

  .modal-info-button-mobile {
    padding: 8px 18px 8px 16px;
    border: 1px solid #FFFFFF;
    background: #111111;
    color: #FFFFFF;
    border-radius: 8px;
    cursor: pointer;
    font-family: OwnersNarrow, sans-serif;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.2s ease-in-out;
    margin: 20px 0px 0px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }
  
  .modal-info-button-mobile .p-info {
    padding: 0px;
    margin: 0px !important;
  }

  .modal-info-button-mobile:hover,
  .modal-info-button-mobile:focus {
    background-color: #131313;
  }

  .modal-info-button-mobile-rest {
    position: fixed;
    top: 15px;
    left: 12px;
    padding: 8px 18px 8px 16px;
    border: 1px solid #FFFFFF;
    background: #000000;
    color: #FFFFFF;
    border-radius: 8px;
    cursor: pointer;
    font-family: OwnersNarrow, sans-serif;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.2s ease-in-out;
    margin: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 1001;
  }

  .modal-info-button-mobile-rest .p-info {
    padding: 0px;
    margin: 0px;
    font-size: 14px;
  }

  .left-pane .container p {
    font-size: 14px;
  }

  .left-pane .container h2 {
    font-size: 24px;
    line-height: 26px;
  }
}

@media screen and (max-width: 480px) {
  .filter-button {
    font-size: 10px;
    padding: 6px;
  }

  .filter-grid {  
    min-height: 50dvh;
  }

  .right-pane-video {
    height: 100dvh; 
    margin: 0px;
  }

  .content {
    padding: 20px 10px;
  }

  .hero-section {
    height: 150vh;
    gap: 30px;
    padding-bottom: 0px;
    margin-bottom: 0px;
  }

  .hero-content-wrapper {
    top: 0%;
    gap: 30px;
    padding-bottom: 40dvh !important;
    margin-bottom: 0px;
  }

  .bouncing-video {
    display: none;
    z-index: -1 !important;
    pointer-events: none !important;
  }

  .bouncing-video-mobile {
    display: block;
  }

  .logo {
    top: 28px;
  }

  .modal-logo {
    left: 10px;
  }

  .modal-button-close i {
    font-size: 20px;
  }

  .modal-button-close {
    right: 10px;
    padding: 9px 9px 6px 10px;
  }

  .nav-links-desktop {
    display: none;
  }

  .nav-links-mobile {
    display: block;
    pointer-events: auto;
  }
}

@media screen and (max-width: 380px) {
  .filter-container {
    column-gap: 5px;
  }
}

@media screen and (max-width: 370px) {
  .filter-button {
    font-size: 10px;
    padding: 4px;
  }
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #000000;
  border-radius: 2px;
}

::-webkit-scrollbar-thumb {
  background: #141414;
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: #141414;
}