html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  background: #EDECE9;
  color: #191919;
  max-width: max-content;
  cursor: url('cursor.png'), auto;
}

header, footer {
  text-align: center;
  padding: 2em;
}

.sticky-group {
   position: sticky;
  top: 20px;
  z-index: 600;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(5px);
  background: rgba(143, 211, 217, 0.916);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background: rgb(240, 238, 238);
  padding: 2rem;
  border: 1.5px dashed #000000;
  max-width: 950px;
  width: 90%;
  text-align: left;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  display: block;
  position: relative;
  color: rgb(33, 32, 32);
  line-height: 1;
}

.btn-cerrar {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  padding: 0;
  cursor: url('cursor_click.png'), pointer;
}

.btn-cerrar img {
  width: 50px;
  height: 50px;
  display: block;
  cursor: url(cursor_click.png), pointer;
}

.img-hover-change {
  content: url('nolibros_top.png');
}

.img-hover-change:hover {
  content: url('nolibros_top2.png');
}

a {
  color: #000;
  text-decoration: none;
}

a:hover {
  color: #D06CCC;
  cursor: url('cursor_click.png'), pointer;
}

.container {
  max-width: max-content;
}

.divmenu {
  text-align: right;
  position: fixed;
  right:0;
  margin-top: 1rem;
  margin-right: 2rem;
  line-height: 2.7rem;
  z-index:100;
}

.divmenu a {
  text-transform: uppercase;
  font-family: 'Manrope';
  font-weight: bolder;
  font-size: 42px
}

.div-project {
  margin-bottom: 2rem;
  padding-top: 2rem;
}

.divimg {
  height: fit-content;
}

.texth3 {
  text-transform: uppercase;
  font-family: 'Manrope';
  font-weight: bolder;
  font-size: 42px
}

.divnotes {
  border-top: 1.5px dashed #000;
  border-bottom: 1.5px dashed #000;
  padding-top: 1rem;
  margin-bottom: 0.5rem;
}

.textnotes {
  color: #c0c0c0;
  line-height: 1.6;
  margin-bottom: 0;
}

.listnotes {
  padding: 0;
  color: #bcbcbc;
  list-style-type: none;
}

.listnotes li::before {
  content: '✱ ';
}

.textcat {
  line-height: 1.6;
  margin-bottom: 0;
}

.textesp {
  color: #535353;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
}

.img-projects {
  width: 100%;
}

.padding-big {
  padding: 0 5rem;
}

@media screen and (max-width: 600px) {
  .padding-big {
    padding: 0 1rem;
  }
}

.custom-link {
  display: inline-block;
  padding: 1rem;
  border: 1.5px dashed black;
  margin-bottom: 1rem;
  text-decoration: none;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: black;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  text-decoration: none;
  font-size: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}

.scroll-top:hover {
  transform: scale(1.1);
}

.scroll-top.show {
  opacity: 1;
  pointer-events: auto;
}

.nav-mobile {
  display: none;
  position: absolute;
  top: 50px;
  right: 0;
  background: white;
  border: 1.5px dashed black;
  padding: 1.5rem;
  width: 250px;
  text-align: right;
  box-sizing: border-box;
}

.nav-mobile a {
  display: block;
  margin-bottom: 0.5rem;
  text-decoration: none;
  color: black;
  text-transform: uppercase;
  font-family: 'Manrope';
  font-weight: 200;
  font-size: 20px;
}

.nav-mobile a:hover {
  color: #757575;
}

/* Responsive display */
@media (min-width: 768px) {
  .menu-mobile {
    display: none;
  }
}

@media (max-width: 767px) {
  .divmenu {
    display: none;
  }

  .margin-mobile-top {
    margin-top: 80px;
  }
}

.menu-mobile {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  width: 35px;
  height: 30px;
  position: relative;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 1.5px;
  background: black;
  margin: 5px 0;
  transition: all 0.3s ease;
}

.dvbookgroup{
  width:100%;
  height:25%;
}

.dvbook{
  border:0cap;
  margin:3rem 1rem;
}

/* popup creditos */
.img-floating {
  position: fixed;    /* Fija al viewport */
  top: 110px;          /* Distancia desde arriba */
  right: 70px;        /* Distancia desde la derecha */
  width: 200px;       /* Tamaño deseado */
  z-index: 9999;      /* Encima de todo */
  pointer-events: none; /* Para que no interfiera con clics */
}

.texto-fijo {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  padding: 0.5rem;
  z-index: 999;
}

/* pack de iconos de hover */

.hover-box::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  top: 0;
  left: 0;
  display: none;
  z-index: 10;
}

.hover-box:hover::after {
  display: block;
  position: relative;
}
.hover-box:hover {
  color: #D06CCC;
  cursor: url('cursor_click.png'), pointer;
}

.hover-box::after {
  background-image: var(--bg-img);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}