* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 'Popins', serif;
}

html {
    scroll-behavior: smooth;
}

@font-face {
  font-family: 'AlteHaasGroteskBold';
  src: url('../fonts/AlteHaasGroteskBold.ttf');
}

@font-face {
  font-family: 'Popins';
  src: url('../fonts/Poppins-Medium.ttf');
}

body {
  /*position: relative;*/
    margin: 0;
    height: auto;
    background-color: rgb(5, 5, 5);
}

@media screen and (max-width: 1250px) {
    main {
        width: 100%;
        height: auto;
    }

    nav a {
        padding: 0 30;
    }
}

.nav {
    position: fixed;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4em;
    background: #09090A;

    z-index: 999;
}

.nav a {
    text-decoration: none;
    text-transform: uppercase;
    color: #F4F4F4;
    padding: 0 1em;
    font-family: 'AlteHaasGroteskBold', serif;
    font-weight: 500;
    font-size: 1rem;

    position: relative;
}

.nav a:hover,
.nav a:focus {
    color: #F3A518;
    font-size: 17px;
    transition: 0.5s;
}

.logo {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 15%;

    z-index: 1000;
    
    text-align: center;
}

.logo img {
    justify-items: center;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  background: rgb(9, 9, 9);
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  will-change: transform;
  z-index: 1;
}

.overlay-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  gap: 1em;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: rgb(255, 254, 254);
}

.menu-item {
  display: flex;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.menu-item p {
  position: relative;
  text-align: center;

  color: rgb(255, 254, 254);

  line-height: 300%;
  will-change: transform;
  transition: letter-spacing 0.3s;
}

.menu-item p:hover {
  letter-spacing: 0.075em;
}

.menu-item a {
  color: rgb(255, 254, 254);
  text-decoration: none;

  font-style: 'AlteHaasGroteskBold', serif;
  font-size: 4rem;
}

.sub-nav {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5em;
  opacity: 0;
}

.sub-nav a {
  font-style: 'AlteHaasGroteskBold', serif;
  font-size: 20px;
  color: #cdc6be;
  text-decoration: none;
}

@media screen and (max-width: 768px) {
  .logo {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 2rem;
    width: 35%;
    padding: 0 1rem;

    z-index: 1000;
    
    text-align: center;
}

.logo img {
    justify-items: center;
}

.menu-item a{
    font-size: 3rem;
}
}
/*para transicion del logo*/





.side-nav {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: fixed;
    box-sizing: border-box;
    right: 0;
    
    top: 50%;
    transform: translateY(-50%);
    padding: 5px;
    transition: transform .5s ease;
    will-change: transition;
}

[data-sidenav-style=dots].side-nav .icono-nav {
    display: block;
    border: 0.1rem solid #09090A;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    visibility: visible;
}

[data-sidenav-style=dots] .item-nav.top-item .icono-nav {
    background-color: #09090A;
}

.item-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 4px;
    padding-bottom: 4px
}

.item-nav .texto-nav {
    text-align: end;
    opacity: .6;
    transition: opacity .5s ease;
    margin-left: 5px;
    margin-right: 5px;
    font-weight: bolder;
}

.item-nav:hover .texto-nav {
    opacity: 1
}

.item-nav .icono-nav {
    display: none;
    position: relative;
    box-sizing: border-box
}

.sidebar-indicator {
    display: none;
    width: 3px;
    position: absolute;
    right: 0;
    background: #09090A;
    transition: height .5s ease, top .5s ease
}

@media(max-width: 799px) {
    .side-nav .mobile-trigger {
        height: 100%;
        width: 50px;
        position: absolute;
        right: 0;
        top: 0;
        transform: translateX(-10px);
        opacity: 1;
        visibility: visible;
        will-change: opacity, visibility;
        transition: opcaity 0s ease .5s, visibility 0s ease .5s
    }

    .side-nav.open .mobile-trigger {
        opacity: 0;
        visibility: hidden
    }

    .side-nav .item-nav {
        visibility: hidden
    }

    .side-nav.open .item-nav {
        visibility: visible
    }

    .side-nav:not(.open):not([data-sidenav-style=bars]) .texto-nav {
        width: 0;
        white-space: nowrap
    }

    .side-nav.open:not([data-sidenav-style=bars]) .texto-nav {
        width: auto
    }

    

}

@keyframes fadeOut {
    0% {
        opacity: 1
    }

    100% {
        opacity: 0
    }
}

[data-sidenav-style=none] .item-item.top-item .texto-nav {
    opacity: 1
}

@media(max-width: 799px) {
    [data-sidenav-style=none] {
        border-right: 3px solid #09090A
    }
}
.item-nav {
    text-decoration: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 4px;
    padding-bottom: 4px;
}

.item-nav a {
    text-decoration: none;
    text-transform: uppercase;
    padding: 0 1em;
    font-family: 'Poppins', serif;
    font-weight: 500;
    font-size: 1rem;
}

.item-nav .texto-nav {
    text-align: end;
    opacity: 6;
    transition: opacity .5s ease;
    margin-left: 5px;
    margin-right: 5px;
}

.item-nav .icono-nav {
    position: relative;
    box-sizing: border-box;
}


img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s;
  user-select: none;
}

p {
  font-size: 14px;
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;

  font-family: 'AlteHaasGroteskBold', serif;
  color: rgb(0, 0, 0);
}

.container {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: rgb(255, 254, 254);
}

.site-info {
  position: absolute;
  top: 50%;
  left: 1.5em;
  display: flex;
  gap: 4px;
}

.site-info p span {
  font-family: 'AlteHaasGroteskBold', serif;
  color: rgb(0, 0, 0);
}

.img-preview {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  height: 75%;
  overflow: hidden;
  display: flex; /* Added for text positioning */
  flex-direction: column; /* Added for text positioning */
  align-items: center; /* Added for text positioning */
  justify-content: center; /* Added for text positioning */
}

.img-preview img {
  position: relative; /* Changed from absolute */
  top: auto; /* Changed from 50% */
  left: auto; /* Changed from 50% */
  transform: none; /* Changed from translate(-50%, -50%) */
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.minimap {
  position: absolute;
  top: 50%;
  right: 8em;
  width: 80px;
}

.indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  border: 1px solid #000;
  z-index: 2;
}

.items {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0px;
  will-change: transform;
}

.item {
  width: 100%;
  height: 60px;
  padding: 5px;
  cursor: pointer;
}

.image-description {
  position: absolute; /* Changed from relative */
  bottom: 0; /* Position at the bottom of the img-preview */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.8); /* Slightly transparent background */
  padding: 10px;
  box-sizing: border-box;
  color: #000;
  font-family: 'Popins', serif;
  font-size: 16px;
  display: none; /* Hidden by default */
  z-index: 10; /* Ensure it's above the image */
}

.image-description.active {
  display: block; /* Show when active */
}


@media (max-width: 900px) {
  body {
    overflow: hidden;
    touch-action: none;
  }

  .container {
    touch-action: none;
  }

  .site-info {
    top: 1.5em;
    left: 50%;
    transform: translateX(-50%);
  }

  .minimap {
    top: auto;
    right: auto;
    bottom: 5em;
    left: 50%;
    width: auto;
    height: 80px;
    touch-action: none;
  }

  .indicator {
    top: 0;
    left: 0;
    width: 60px;
    height: 100%;
  }

  .items {
    flex-direction: row;
    width: max-content;
    height: 100%;
    touch-action: none;
  }

  .item {
    width: 60px;
    height: 100%;
    padding: 5px;
  }

  .img-preview {
    top: 45%;
    width: 75%;
    height: 50%;
  }
  .image-description {
    font-size: 14px;
    padding: 5px;
  }
}
