/* Encabezado: Inicio centrado en escritorio; logo y buscador alineados en móvil. */
@media (min-width: 701px) {
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 20px; }
  .header-inner > .custom-logo-link,
  .header-inner > .brand { justify-self: start; }
  .header-nav { justify-self: center; }
  .header-nav a { display: inline-block; padding: 10px 14px; font-weight: 700; }
  .header-nav a[aria-current="page"] { color: var(--accent); }
  .header-inner > .searchform { justify-self: end; min-width: 0; max-width: 100%; }
  .header-inner > .searchform input { min-width: 0; width: clamp(100px, 16vw, 220px); }
}
@media (max-width: 700px) {
  .header-inner { display: flex; flex-wrap: nowrap; gap: 10px; min-height: 72px; padding: 12px 0; }
  .header-nav { display: none; }
  .header-inner > .custom-logo-link,
  .header-inner > .brand { flex: 0 0 105px; }
  .header-inner .custom-logo { max-width: 105px; height: auto; }
  .header-inner > .brand { font-size: 21px; overflow-wrap: anywhere; }
  .header-inner .searchform { flex: 1; width: auto; min-width: 0; gap: 5px; }
  .header-inner .searchform input { width: 0; min-width: 0; flex: 1; padding: 8px; font-size: 16px; }
  .header-inner .searchform button { padding: 8px; font-size: 12px; white-space: nowrap; }
}

/* Cabecera con luz y ondas vinculadas al acento del catálogo. */
.site-header { position:relative; isolation:isolate; overflow:hidden; background:#09070f; border-bottom:1px solid var(--accent); }
.site-header::before { content:""; position:absolute; inset:0; z-index:-2; pointer-events:none; background:radial-gradient(ellipse at 8% 110%,color-mix(in srgb,var(--accent) 38%,transparent),transparent 48%),radial-gradient(ellipse at 88% -30%,color-mix(in srgb,var(--accent) 30%,transparent),transparent 55%),linear-gradient(115deg,#07070c,#15101c 55%,#07070c); }
.site-header::after { content:""; position:absolute; inset:-70% -8%; z-index:-1; pointer-events:none; border:2px solid var(--accent); border-radius:50%; transform:rotate(-7deg); opacity:.42; box-shadow:0 0 18px var(--accent),0 12px 40px color-mix(in srgb,var(--accent) 40%,transparent); }
.site-header .header-inner { position:relative; }
.site-header .header-nav a, .site-header .brand { color:#fff; }
.site-header .header-nav a:hover, .site-header .header-nav a[aria-current="page"] { color:var(--accent); }
.site-header .searchform input { background:#101015eb; border-color:#ffffff45; color:#fff; }
.site-header .searchform input::placeholder { color:#c6c3cf; }
.site-header .searchform button { background:var(--accent); color:#111; }

.site-header.cn-header-plain { background:#090909; border-bottom-color:var(--line); }
.site-header.cn-header-plain::before,.site-header.cn-header-plain::after { display:none; }
.site-header .cn-brand-integrated { display:inline-flex; align-items:center; gap:8px; max-width:100%; font-size:30px; line-height:1.1; color:#fff; }
.cn-brand-symbol { width:34px; height:38px; flex:0 0 auto; color:var(--accent); }
.cn-brand-word { font-family:"Arial Rounded MT Bold","Trebuchet MS",sans-serif; font-weight:900; letter-spacing:-1.5px; overflow-wrap:anywhere; }
.cn-brand-word small { font-size:.42em; letter-spacing:-.4px; }
@media(max-width:700px) { .site-header .cn-brand-integrated { flex:0 1 125px; font-size:20px; gap:4px; } .cn-brand-symbol { width:20px; height:25px; } }

.cn-uploaded-brand { display:inline-flex; align-items:center; gap:8px; min-width:0; justify-self:start; }
.cn-uploaded-brand .custom-logo-link { display:block; min-width:0; }
.cn-uploaded-brand .custom-logo { display:block; max-width:180px; height:auto; }
@media(max-width:700px) { .header-inner > .cn-uploaded-brand { flex:0 1 138px; gap:4px; } .cn-uploaded-brand .custom-logo { max-width:105px; width:100%; } }
