* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#static-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header a img {
  height: 60px;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
}

header ul {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

header ul li {
  list-style: none;
}

header ul li a {
  font-family: Helvetica;
  margin: 0 15px;
  text-decoration: none;
  color: #000000;
  letter-spacing: 2px;
  font-weight: 600;
  transition: 0.7s;
}

/* Username pill in header */
.user-pill {
  margin-left: 12px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: #eaf5ee;
  color: #0b4a2e;
  border: 1px solid #c7e6d2;
  text-decoration: none;
  font-weight: 600;
}
.user-pill:hover { background: #d6ecdf; }

form {
  margin: 10px 0;
}

body {
  background-color: #f4f4f4 !important;
}

/* === Estilo resaltado === */
.resaltado {
  background-color: #fff3cd;
  color: #856404;
  font-weight: bold;
  padding: 1px 4px;
  border-radius: 3px;
}

/* === Icono menú hamburguesa === */
.menu-toggle {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
}

.menu-toggle span {
  height: 3px;
  background: #000;
  border-radius: 2px;
}

/* === Menú lateral oculto === */
.mobile-menu {
  position: fixed;
  top: 70px;
  left: -250px;
  width: 200px;
  height: calc(100% - 70px);
  background-color: white;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: left 0.3s ease;
  z-index: 998;
}

.mobile-menu.open {
  left: 0;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
}

.mobile-menu ul li {
  margin-bottom: 10px;
}

.mobile-menu ul li a {
  text-decoration: none;
  color: #000;
  font-weight: 600;
}

/* Mostrar/ocultar buscadores */
.search-desktop {
  display: block;
}

.search-mobile {
  display: none;
}

@media (max-width: 768px) {
  .search-desktop {
    display: none;
  }

  .search-mobile {
    display: block;
    margin-bottom: 10px;
  }

  .user-pill { font-size: 14px; padding: 5px 10px; }

  .search-mobile form {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .search-mobile input[type="text"],
  .search-mobile button {
    width: 100%;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  #static-header {
    flex-direction: row;
    align-items: center;
    padding: 10px 16px;
  }

  #static-header a img {
    height: 40px;
  }

  #static-header form {
    display: none; /* ocultamos búsqueda en móvil */
  }

  /* Mostrar hamburguesa */
  .menu-toggle {
    display: flex;
  }

  nav {
    display: none;
  }
}
