/* ============ Header: marca, buscador protagonista, Mis entradas / Ayuda y categorías ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: #06080f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.25s, background-color 0.25s;
}
.site-header.is-scrolled { box-shadow: 0 12px 32px -18px rgba(0, 0, 0, 0.9); }

.site-header__bar {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "brand actions"
    "search search";
  align-items: center;
  gap: 12px 16px;
  padding-block: 12px;
}

.brand { grid-area: brand; display: inline-flex; align-items: center; text-decoration: none; }
.brand__logo { display: block; width: auto; height: 28px; }
.brand__name { font: 800 1.2rem/1 var(--font-display); letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }

/* Buscador del encabezado */
.search--header {
  grid-area: search;
  padding: 0 0 0 18px;
  border: 0;
  border-radius: 6px;
  background: #fff;
}
.search--header:focus-within { box-shadow: 0 0 0 3px rgba(77, 141, 255, 0.55); }
.search--header .search__input { height: 46px; font-size: 1rem; }
.search__submit {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 46px;
  border: 0;
  border-radius: 0 6px 6px 0;
  background: var(--blue-500);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s;
}
.search__submit:hover { background: var(--blue-700); }
.search__submit .icon { width: 22px; height: 22px; }

.site-header__actions { grid-area: actions; display: flex; justify-content: flex-end; gap: 4px; }
.site-header__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 6px;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s;
}
.site-header__action:hover { background: rgba(255, 255, 255, 0.08); }
.site-header__action .icon { width: 22px; height: 22px; color: var(--accent-400); }

/* Categorías */
.cat-nav { background: #0b1020; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.cat-nav__inner {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cat-nav__inner::-webkit-scrollbar { display: none; }
.cat-nav__link {
  position: relative;
  flex: none;
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.78);
  font: 700 0.92rem/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.cat-nav__link:first-child { padding-left: 0; }
.cat-nav__link:hover { color: #fff; }
.cat-nav__link--all { margin-left: auto; color: var(--accent-300); }
.cat-nav__link[aria-current="page"] { color: #fff; }
.cat-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 0;
  height: 3px;
  background: var(--accent-400);
}
.cat-nav__link:first-child[aria-current="page"]::after { left: 0; }

@media (max-width: 479px) {
  .site-header__action span { display: none; }
  .site-header__action { padding: 0 9px; }
}

@media (min-width: 1024px) {
  .site-header__bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand search actions";
    gap: 32px;
    padding-block: 14px;
  }
  .brand__logo { height: 34px; }
  .search--header { max-width: 760px; width: 100%; justify-self: center; }
  .search--header .search__input { height: 50px; font-size: 1.02rem; }
  .search__submit { height: 50px; width: 58px; }
  .site-header__actions { gap: 8px; }
  .cat-nav__link { padding: 13px 18px; font-size: 0.95rem; }
  .cat-nav__link[aria-current="page"]::after { left: 18px; right: 18px; }
}
