header {
  box-sizing: border-box;
  position: fixed;
  background-color: #ffffff;
  padding: 0 40px 0 80px;
  box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 1000;
  top: 0;
  width: 100%;
  height: 90px;
  transition: 0.1s;
  border-bottom: 0px solid #d3d3d3;
  flex-wrap: wrap;
}


.sticky-logo img {
    width: 180px;      /* Ajusta el tamaño según lo que necesites */
    height: 60px;      /* Ajusta para simetría vertical */
    object-fit: contain; /* Mantiene la proporción y evita distorsión */
    display: block;
    margin: 0 auto;    /* Centra el logo si es necesario */
}

#primary-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 1px;
}

#primary-menu>li {
  margin: 0;
  padding: 0;
}

a:hover {
  color: #8ab136 !important;
}


.menu-item {
  position: relative;
  margin: 0 6px;
}

.menu-item>a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #000000;
  /* Negro */
  position: relative;
  font-size: 14px;
  font-weight: 600;
}

.fijo a {
  color: #6f9737 !important;
}

/* Eliminamos la línea verde */
.menu-item>a:after {
  display: none;
}


.sub-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: none;
  z-index: 1000;
  min-width: 180px;
}

.sub-nav li {
  margin: 0;
}

.sub-nav a {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  color: #000000;
  /* Negro */
  font-size: 13px;
  font-weight: normal;
}

/* Estilos generales para la barra de navegación */
.main-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px 20px;
  margin-left: 20px;
  /* Agrega un margen para mover todo el contenido a la derecha */
}


.menu-item:hover .sub-nav {
  display: block;
}


.btn-menu,
.btn.secondary {
  background-color: #89b037;
  border: 2px solid #89b037;
  border-radius: 30px;
  padding: 8px 16px;
  /* Tamaño uniforme de relleno */
  font-size: 14px;
  /* Tamaño de fuente uniforme */
  font-weight: 600;
  cursor: pointer;
  color: #000000;
  transition: background-color 0.3s ease;
  text-decoration: none;
  /* Evita que salga la raya en el texto */
}

/* Estilo de hover para .btn-menu */
.btn-menu:hover {
  background-color: #ffffff;
  border: 2px solid #89b037;
  color: rgb(139, 177, 55);
}

/* Estilo de hover para .btn.secondary */
.btn.secondary {
  background-color: #ffffff;
  color: #000000;
  border: none;
  transition: none;
  /* Elimina la transición para evitar el "titileo" */
}

.btn.secondary:hover {
  background-color: #ffffff;
  color: #000000;
  /* El texto sigue siendo negro */
  border: 2px solid #89b037;
  /* Borde aparece solo en hover */
}



.hamburger {
  display: none;
  flex-direction: column;
  width: 30px;
  height: 21px;
  justify-content: space-between;
  border: none;
  background: transparent;
  cursor: pointer;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background: #000000;
  border-radius: 5px;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 78%;
  height: 100vh;
  background: white;
  box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  padding: 20px;
  transition: right 0.3s ease-in-out;
  z-index: 1000;
}

.mobile-menu.active {
  right: 0;
}


.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
}

.mobile-menu ul li {
  margin-bottom: 15px;
}

.mobile-menu ul li a {
  text-decoration: none;
  font-size: 16px;
  color: black;
  display: block;
  padding: 5px;
}

.mobile-menu ul li a.selected {
  color: #6F9937;
  font-weight: bold;
}

@media (max-width: 768px) {

  .hamburger {
    display: flex;
    cursor: pointer;
    order: 2;
  }

  .menu-item>a {
    font-weight: 500;
  }

  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 60px;
  }

  .branding {
    order: 1;
  }

  .main-nav,
  .buttons {
    display: none;
  }

  a.btn-menu{
    padding-left: 15px !important;
  }

  .btn-menu,
  .btn.secondary {
    font-size: 16px;
    font-weight: 500;
  }
}

.close-btn {
  background: linear-gradient(135deg, #6f9937 30%, #8bb137 100%);
  color: #ffffff;
  border: none;
  border-radius: 0;
  width: 35px;
  height: 35px;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
  position: absolute;
  top: 0;
  right: 0;
}


.close-btn:hover {
  background: linear-gradient(135deg, #8bb137 30%, #6f9937 100%);
}



.submenu-icon {
  font-size: 24px;
  color: #d3d3d3;
  margin-left: 10px;
  float: right;
}


.menu-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: black;
}

.sub-nav-mobile {
  display: none;
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

#submenu-soluciones li a {
  font-size: 13px;
  color: #333;
  padding-left: 15px;
}

.menu-item-has-children.active .sub-nav-mobile {
  display: block;
}


.submenu-icon {
  font-size: 30px;
  color: #d3d3d3;
  margin-left: 10px;
  float: right;
  line-height: 20px;
  font-weight: 100;
}

.mobile-menu>ul>li {
  border-bottom: 1px solid #d3d3d3;
}

.mobile-menu>ul>li:last-child {
  border-bottom: none;
}

.sub-nav-mobile li {
  border-bottom: none;
}
