/* AISLAMIENTO TOTAL DEL HEADER */

.conab-header ul,
.conab-header li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.conab-header a {
  text-decoration: none;
}

.conab-header * {
  box-sizing: border-box;
}

.conab-header {
  width: 100%;
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial;
}

/* WRAPPER */

.conab-header .menu-wrapper {
  width: 100%;
  background: #fff;
}

/* CONTENEDOR */

.conab-header .menu-box {
  max-width: 1200px;
  margin: auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* LOGO */

.conab-header .menu-logo img {
  height: 40px;
  display: block;
}

/* NAV */

.conab-header .menu-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.conab-header .menu-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.conab-header .menu-nav > ul {
  display: flex;
  gap: 22px;
}

/* ITEMS */

.conab-header .menu-nav li {
  position: relative;
}

.conab-header .menu-nav a {
  text-decoration: none;
  color: #6f6f6f;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  display: block;
  white-space: nowrap;
}

/* SUBMENU */

.conab-header .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 230px;
  border: 1px solid #ddd;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  flex-direction: column;
}

.conab-header .submenu a {
  padding: 10px 14px;
  font-size: 13px;
}

.conab-header .submenu a:hover {
  background-color: var(--gris-boton);
  color: #fff;
}

.conab-header .menu-nav li:hover > .submenu {
  display: flex;
}

/* HAMBURGER */

.conab-header .hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.conab-header .hamburger span {
  width: 24px;
  height: 2px;
  background: #363636;
  display: block;
}

/* MOBILE */

@media (max-width: 900px) {
  .conab-header .menu-logo img {
    height: 50px;
    margin: 5px 0 0 0;
    display: block;
  }
  .conab-header .hamburger {
    display: flex;
  }
  .conab-header .menu-nav {
    position: fixed;
    top: 64px;
    padding: 10px 30px 15px;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: none;
    border-top: 1px solid #e5e5e5;
  }

  .conab-header .menu-nav.open {
    display: block;
  
  }

  .conab-header .menu-nav > ul {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .conab-header .menu-nav li {
    width: 100%;
    text-align: right;
  }

  .conab-header .menu-nav a {
    font-size: 20px !important;
    font-weight: 600;
  }

  .conab-header .submenu {
    position: relative;
    border: none;
    box-shadow: none;
  }

  .conab-header .submenu a {
    font-size: 18px !important;
    font-weight: 600;
    text-align: left;
    line-height: 0.8;
  }

  .conab-header .menu-nav li.open > .submenu {
    display: flex;
  }
}

/* BUSCADOR */

.search-bar-wrapper {
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  background: #f0f0f0;
  border-bottom: 1px solid #ddd;
  padding: 8px 0;
  z-index: 9998;
}

.search-bar-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding: 0 16px;
}

#searchInput {
  flex: 1;
  padding: 8px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
  outline: none;
}

#searchInput:focus {
  border-color: #999;
}

#searchBtn {
  padding: 4px 10px;
  background: #ffffff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

#searchBtn:hover {
  background: #d8dbdd;
}

#searchResults {
  position: absolute;
  top: 100%;
  left: 16px;
  right: 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  z-index: 99999;
  max-height: 320px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#searchResults a {
  display: block;
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
  color: #222;
  text-decoration: none;
  font-size: 14px;
}

#searchResults a span {
  display: block;
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}

#searchResults a:hover {
  background: #f5f5f5;
}

#searchResults .no-results {
  padding: 12px 14px;
  color: #888;
  font-size: 14px;
}

@media (max-width: 900px) {
  .search-bar-wrapper {
    top: 80px;
    left: 0;
    width: 100%;
  }
}

body {
  padding-top: 130px;
}
