/* -------------------------
   MENU DESKTOP
------------------------- */
.menu-top {
  float: right;
}

.nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
}

.nav li {
  position: relative;
}

.nav li a {
  font-family: "SAIRA", sans-serif;
  font-size: 20px;
  color: var(--main-color);
  text-decoration: none;
  padding: 12px 16px;
  display: block;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}


.nav li a:hover {
  color: var(--secondary-color);
}

/* Submenu */
.nav li ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--main-color);
  border-radius: 0 0 6px 6px;
  padding: 0;
  list-style: none;
  display: none;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  min-width: 180px;
}

.nav li:hover ul {
  display: block;
}

.nav li ul li a {
  font-size: 14px;
  padding: 12px 16px;
  color: var(--secondary-color);
  transition: background 0.3s, color 0.3s;
}

.nav li ul li a:hover {
  background: #fff;
  color: var(--main-color);
}

/* -------------------------
   MENU MOBILE
------------------------- */
.menu-mini {
  width: 50px;
  height: 50px;
  background-image: url(../images/icon-menu.png);
  background-repeat: no-repeat;
  background-position: center;
  display: none;
  cursor: pointer;
}

@media screen and (max-width: 992px) {
  .menu-top {
    position: relative;
    width: 100%;
    float: none;
    margin: 20px 0;
    z-index: 1000;
  }

  .menu-mini {
    display: block;
  }

  .nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
  }

  .nav.active {
    display: flex;
  }

  .nav li {
    width: 100%;
  }

  .nav li a {
    font-size: 16px;
    padding: 12px 20px;
    color: var(--main-color);
    border-bottom: 1px solid #eee;
    text-align: left;
  }

  .nav li ul {
    position: relative;
    box-shadow: none;
    background-color: #f9f9f9;
    display: none;
    border-radius: 0;
  }

  .nav li:hover ul {
    display: block;
  }

  .nav li ul li a {
    padding-left: 30px;
  }
}

/* Ancora */
.ancora {
  position: fixed;
  bottom: 10px;
  right: 10%;
  width: 40px;
  height: 40px;
  background: #4bae9a url(../images/ancora.png) center center no-repeat;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  border-radius: 25px;
  box-shadow: 0 0 20px #ccc;
  z-index: 9;
  cursor: pointer;
  transition: all 0.3s ease-in;
}
