/* body */

/* --------------------Header------------------ */
header{
  background-color: rgb(255, 255, 255); /* Color de fondo */
  display: flex; /* flex sobre la misma linea */
  justify-content: space-between; /* Separa la img y el menu a izq y der */
  padding: 10px 10px;
  font-family: Helvetica;
  /* flex-direction: column;
  justify-content: center;
  align-items: center; */
}


/* --------------------Header_img------------------ */
header img{
  height: 5rem; /* ajuste solo del tamaño */
  width: auto;
}

/* --------------------Header_nav------------------ */
nav{
  display: flex; /* acomodar elementos dentro de nav */
  gap: .8rem; /* Separacion entre ellos */
  align-items: center; /* Aliniacion vertical de los objetos(si no se especifica, agarra el tamaño disponible) */
  padding-right: 15px;
}

/* --------------------elementos de menú------------------ */

nav a{
   font-family: Helvetica;
  text-decoration: none; /* Sin la linea de abajo */
  color: rgb(0, 0, 0); /* color de la letra */
  font-size: 1.2rem;/* Tamaño de la letra */
  padding: .8rem; /* Separacion con bordes dentro del contenedor(Ayuda a ajustar el ancho) */
  border-radius: 1rem; /* Redondeo de bordes */

}


nav a:hover{
  text-decoration: none;
  background-color: #ff8c00;
  color: black; 
  transition: all 0.5s;
}


.aqui{
text-decoration: none;
background-color: #ff8c00;
  color: black; /* En diferente color en la pantalla actual */
}


.btn-delete img, .btn-edit img{
  height: 50px;
  width: auto;
  border-radius: 0;
}

#overlay {
  position: fixed;
  inset: 0; 
  background: rgba(0,0,0,0.5);  
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9000; 
}

#overlay.active {
  opacity: 1;
  pointer-events: all;
}


/* ----------- HAMBURGUESA----------- */
.hamburger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: rgb(0, 0, 0);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.hamburger:hover {
  transform: scale(1.2);
}



/* ----------- DESKTOP ----------- */
#nav-menu {
  display: flex;
  gap: 20px;
}

/* ----------- RESPONSIVE ----------- */
@media (max-width: 900px) {

  #nav-menu {
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
transform: translateX(100%);
transition: transform 0.8s ease;

    left: auto;          
    width: 50%;            
    height: 100vh;
    background: rgb(0, 0, 0);
    padding: 80px 15px;
    border-radius: 0px 10px 10px 0;
    transition: right 0.4s ease;
    z-index: 9999;
  }

  #nav-menu.show {
    transform: translateX(0);
              
  }

  /* Links */
  #nav-menu a {
    color: #fff;
    padding: 10px 10px;
    border-radius: 8px;
    text-decoration: none;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    text-align: center;
  }

  #nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 100%;
    transition: right 0.4s ease;
  }

  #nav-menu a:hover::before {
    right: 0;
  }

  .hamburger {
    display: block;
  }
}
@media (max-width: 700px) {
  header img{
    height: 5rem; 
    width: auto;
  }
}

@media (max-width: 450px) {
  header img{
    height: 3.5rem; 
    width: auto;
  }
}

@media (max-width: 1500px) {
  header{
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 900px) {
  header{
    flex-direction: row;
    justify-content: space-between;
  }
}