/* css/header.css — Cabecera compacta de La Guarida (1.1.0, 2026-10-31, RG-2; RG-5: contraste de «Lo de siempre»; RG-7: retrato en el portal y cara en los avisos)
   RG-0b aprobada: dos filas finas (≈ 100 px) en vez de cabecera + resumen grande.
   Línea de La Bóveda (relojes con ícono, dorado de «está cerca», un color por
   sección) pero a la medida de un lanzador. Solo variables del theme activo,
   salvo los tres colores de sección, que son fijos como en La Bóveda. */

body {
  --gh-fav: #E8B34B;   /* Favoritos: ámbar */
  --gh-cat: #9B82FF;   /* Categorías: violeta */
  --gh-lan: #2EC4B6;   /* Lanzador: turquesa */
  --gn-header-h: 104px;
}

/* ---- Fila 1: marca, secciones, herramientas ---- */
.gh-bar { padding-top: 6px; padding-bottom: 6px; gap: 6px 20px; }
.gh .brand { gap: 10px; }
.gh .brand__logo { width: 30px; height: 30px; }
.gh .app-tab { min-height: 40px; }
.gh-tab--fav[aria-current="true"] { border-bottom-color: var(--gh-fav); }
.gh-tab--cat[aria-current="true"] { border-bottom-color: var(--gh-cat); }
.gh-tab--lan[aria-current="true"] { border-bottom-color: var(--gh-lan); }
.gh .app-btn, .gh .theme-select { min-height: 34px; }
.gh-icon-btn { position: relative; justify-content: center; min-width: 36px; padding: 0 10px; font-size: 1.05rem; }
.gh .gn-menu > summary.gh-icon-btn::after { content: none; }

/* Punto dorado: conviene hacer un backup */
.gh-dot {
  position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%;
  background: #E8B34B; box-shadow: 0 0 0 2px var(--bg), 0 0 8px #E8B34B;
}
.gh-dot[hidden] { display: none; }
.gh-more { min-width: 260px; }
.gh-more__info { padding: 0 10px 4px; font-size: .75rem; color: var(--gn-muted); }
.gh-bio { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }

/* ---- Fila 2: saludo, portal, relojes ---- */
.gh-row {
  max-width: var(--gn-max); margin: 0 auto; padding: 0 24px 8px;
  display: grid; grid-template-columns: auto minmax(240px, 560px) 1fr; align-items: center; gap: 8px 20px;
}
.gh-hello { display: grid; line-height: 1.2; min-width: 0; }
.gh-hello__title { font: 650 1rem/1.3 var(--font); color: var(--text); white-space: nowrap; }
.gh-hello__date { font-size: .75rem; color: var(--gn-muted); white-space: nowrap; }

.gh-portal { min-height: 40px; padding: 4px 10px 4px 6px; gap: 10px; border-radius: 10px; font-size: .875rem; }
.gh-portal .gn-portal-trigger__avatar { width: 28px; height: 28px; }
.gh-portal .gn-kbd { height: 20px; min-width: 20px; }

.gh-clocks { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; min-width: 0; }

/* ---- Franja del consejo: el aviso de Shiruvana deja de flotar ---- */
.gh-tip { max-width: var(--gn-max); margin: 0 auto; padding: 0 24px; }
.gh-tip .gn-toast {
  position: static; width: auto; margin: 0 0 8px; padding: 6px 10px;
  align-items: center; gap: 10px; min-height: 34px;
  box-shadow: none; border-radius: 10px; background: var(--panel);
}
.gh-tip .gn-toast[hidden] { display: none; }
.gh-tip .gn-toast__avatar { width: 24px; height: 24px; }
.gh-tip .gn-toast__main { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; flex: 1; }
.gh-tip .gn-toast__who { white-space: nowrap; }
.gh-tip .gn-toast__text { flex: 1; min-width: 200px; font-size: .8125rem; }
.gh-tip .gn-toast__actions { margin: 0; }
.gh-tip .gn-btn { min-height: 28px; padding: 0 10px; }

/* ---- «Lo de siempre» ahora es la primera fila de Favoritos ---- */
#seccionFavoritos .gn-usual { margin: -4px 0 12px; }
/* 45 % de ámbar: llega a 4,5:1 en los 19 themes (con 60 % Notion daba 3,4:1) */
#seccionFavoritos .gn-usual__label { color: color-mix(in srgb, var(--gh-fav) 45%, var(--text)); }

/* Un color por sección en el título de cada panel */
#seccionFavoritos .gn-panel__title::before,
#seccionCategorias .gn-panel__title::before,
#launcherPanel .gn-panel__title::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin: 0 8px 2px 0; border-radius: 50%; vertical-align: middle;
}
#seccionFavoritos .gn-panel__title::before { background: var(--gh-fav); }
#seccionCategorias .gn-panel__title::before { background: var(--gh-cat); }
#launcherPanel .gn-panel__title::before { background: var(--gh-lan); }

/* ---- RG-7: mi retrato al costado del portal y mi cara en los avisos ---- */
.gh-portal-fig {
  flex: none; width: 150px; height: 240px; margin-right: 16px; object-fit: cover; object-position: top;
  border-radius: 16px; border: 1px solid var(--border); background: #000;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--gn-host) 40%, transparent), 0 24px 60px rgba(0, 0, 0, .6);
  pointer-events: none; animation: scaleIn .16s ease-out;
}
.gh-portal-fig[hidden] { display: none; }
.gk-toast__face { flex: none; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--gn-host); }
@media (max-width: 1000px) { .gh-portal-fig { display: none; } }

/* ---- Pantallas más chicas ---- */
@media (max-width: 1400px) {
  .gh-clocks .gk-clk__label { display: none; }
}
@media (max-width: 1180px) {
  body { --gn-header-h: 150px; }
}
@media (max-width: 900px) {
  .gh-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  /* Oculto a la vista, no al lector de pantalla: sigue siendo el h1 de la página */
  .gh-hello { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .gh-clocks { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .gh-row, .gh-tip { padding-left: 16px; padding-right: 16px; }
}
