/* Cabecera de sección: barra azul noche + icono con marco dorado + brillo dorado (sin logo). Última en la cascada. */
html body .pf-sh { position: relative; display: flex; align-items: center; gap: 18px; margin: 0 0 22px; padding: 18px 28px; min-height: 80px; border-radius: 22px; overflow: hidden; isolation: isolate; text-align: left; background: linear-gradient(100deg, #0A1736 0%, #0C2050 58%, #0A1B44 100%); box-shadow: 0 0 0 1px rgba(240, 193, 44, .22), 0 12px 26px rgba(8, 18, 48, .24); }
html body .pf-sh::after { content: ""; position: absolute; right: 0; bottom: 0; z-index: 0; width: 62%; height: 40px; pointer-events: none; background: radial-gradient(70% 100% at 72% 100%, rgba(255, 214, 80, .95), rgba(255, 190, 40, .35) 45%, rgba(255, 190, 40, 0) 72%); clip-path: ellipse(62% 34% at 72% 100%); }
html body .pf-sh > * { position: relative; z-index: 1; }
html body .pf-sh .pf-sh-ic { flex: 0 0 auto; display: grid; place-items: center; width: 52px; height: 44px; border-radius: 10px; border: 3px solid #F6CE3F; background: rgba(255, 255, 255, .03); color: #F6CE3F; font-size: 19px; }
html body .pf-sh .pf-sh-ic i { color: #F6CE3F; }
html body .pf-sh .pf-sh-tx { flex: 1 1 auto; min-width: 0; }
html body .pf-sh h1, html body .pf-sh h2 { margin: 0; padding: 0; border: 0; color: #fff; font: 900 clamp(22px, 2.4vw, 31px)/1.1 Lato, Arial, sans-serif; letter-spacing: -.01em; text-shadow: none; }
html body .pf-sh p { margin: 4px 0 0; color: rgba(255, 255, 255, .92); font: 600 13.5px/1.35 Lato, Arial, sans-serif; }
html body .pf-sh p b { color: #fff; }
html body .pf-sh .pf-sh-r, html body .pf-sh .pfc-head-act, html body .pf-sh .nf-tools, html body .pf-sh .x2-head-links { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
/* botones que ya existían dentro de las cabeceras: se ven bien sobre azul */
html body .pf-sh .pfx-btn.ghost, html body .pf-sh .x2-pill { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28); color: #fff; }
html body .pf-sh .pfx-btn.ghost:hover, html body .pf-sh .x2-pill:hover { background: rgba(255, 255, 255, .18); }
html body .pf-sh .pfx-btn.ghost i, html body .pf-sh .x2-pill i { color: #F6CE3F; }
html body .pf-sh .pfc-hbtn.ghost, html body .pf-sh .pfc-hgear, html body .pf-sh .nf-tool { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28); color: #fff; }
html body .pf-sh .pfc-hbtn.ghost i, html body .pf-sh .pfc-hgear i, html body .pf-sh .nf-tool i { color: #F6CE3F; }
html body .pf-sh .nf-tool.txt { background: linear-gradient(180deg, #FFE36B, #F5B800); border-color: transparent; color: #2B1D00; } html body .pf-sh .nf-tool.txt i { color: #2B1D00; }
@media (max-width: 760px) {
  html body .pf-sh { flex-wrap: wrap; gap: 10px 12px; margin-bottom: 16px; padding: 14px 16px; min-height: 0; border-radius: 18px; }
  html body .pf-sh .pf-sh-ic { width: 42px; height: 38px; font-size: 16px; border-width: 2.5px; }
  html body .pf-sh h1, html body .pf-sh h2 { font-size: 21px; } html body .pf-sh p { font-size: 12px; }
  html body .pf-sh .pf-sh-r, html body .pf-sh .pfc-head-act, html body .pf-sh .nf-tools, html body .pf-sh .x2-head-links { flex: 1 1 100%; justify-content: flex-start; margin-left: 0; }
}

/* Mensajes: dentro de una conversación (móvil) la cabecera se esconde para dar sitio al chat */
html.pfc-thread .pfc-page > .pf-sh { display: none !important; }
/* Configuración: en el móvil, dentro de un apartado, no se repite la barra */
@media (max-width: 760px) { html body .aju-page.has-section > .pf-sh { display: none; } }
