:root {
  --naranja-color: #ed5f2e;
}

.btn {
  width: 7rem;
}

nav {
  position: relative;
}

/* DESKTOP oculto por defecto */
#menu-desktop,
#btn-desktop {
  display: none;
}

/* MOBILE visible por defecto */
#menu-mobile,
#btn-mobile {
  display: flex;
}

@media (min-width: 1024px) {
  #menu-desktop,
  #btn-desktop {
    display: flex;
  }
  #menu-mobile,
  #btn-mobile {
    display: none;
  }
}

#btn-desktop img:nth-child(1) {
  display: block;
}
#btn-desktop img:nth-child(2) {
  display: none;
}

#btn-desktop.activo img:nth-child(1) {
  display: none;
}
#btn-desktop.activo img:nth-child(2) {
  display: block;
}

#menu-desktop {
  display: none;
  opacity: 0;
  transform: translateX(10px);
}

#menu-desktop.activo {
  display: flex;
  flex-direction: row;
  animation: abrirMenuDesk 0.25s ease forwards;
}

@keyframes abrirMenuDesk {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

#menu-mobile {
  display: none;
  flex-direction: column;
  gap: 0.8rem;
  background: white;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);

  opacity: 0;
  transform: translateY(10px);
}

#btn-mobile img:nth-child(1) {
  display: block;
}
#btn-mobile img:nth-child(2) {
  display: none;
}

#btn-mobile.activo img:nth-child(1) {
  display: none;
}
#btn-mobile.activo img:nth-child(2) {
  display: block;
}

#menu-mobile.activo {
  display: flex;
  animation: abrirMenuMobile 0.25s ease forwards;
}

@keyframes abrirMenuMobile {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fondo-naranja {
  background-color: var(--naranja-color) !important;
}

.logo {
  min-width: 12rem;
}
