/* ========== RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  background: #F5F5F5;
  overflow-x: hidden;
}

/* ========== NAVBAR ========== */
.navbar {
  width: 100%;
  background-color: #F5F5F5;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  color: #000;
  text-decoration: none;
  font-weight: 600;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  z-index: 1;
}


#hero canvas {
  background: transparent !important;
  position: relative;
  z-index: 1;
}

.overlay-text,
.overlay-text2 {
  position: absolute;
  z-index: 2;
  background-color: #D9CDBD;
  color: #1e1e1e;
  padding: 0.1rem;
  padding-left:4rem;
  padding-right:4rem;
  text-transform: uppercase;
  /*max-width: 250px;*/
  font-family: Poppins-light;
}

.overlay-text {
  top: 48vh;
  left: 35vw;
}

.overlay-text2 {
  bottom: 48vh;
  right: 35vw;
}




/* ========== MASONRY ========== */
.masonry {
  --gutter: 1rem;
  padding: 2rem;
}

.wrapper.switcher {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gutter);
}

.switcher > .flow {
  flex: 1 1 calc(25% - var(--gutter));
  display: flex;
  flex-direction: column;
  gap: var(--gutter);
}

@media (max-width: 900px) {
  .switcher > .flow {
    flex: 1 1 100%;
  }
}

/* Grid items */
.grid-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: #D26;
}

.grid-item--height2 {
  aspect-ratio: 4 / 4.5;
}

.grid-item--height3 {
  aspect-ratio: 4 / 6.5;
}

/* Imágenes */
.grid-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
  pointer-events: none;
}

.grid-item img:first-child {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.grid-item:hover img:first-child {
  opacity: 0;
}

.grid-item:hover img:nth-child(2) {
  opacity: 1;
  pointer-events: auto;
  z-index: 3;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
  .grid-item {
    aspect-ratio: 4 / 3 !important;
  }
}

@media (max-width: 767px) {
    .hero {
    height: 90vh;x
  }
}

@font-face {
  font-family: BorgesGris;
  src: url(Borges-Gris.otf);
}

@font-face {
  font-family: BorgesNegra;
  src: url(Borges-Negra.otf);
}

