/* ============================================================
   gss-glos — Glosario GRC [gss_glos] (2026-10-12)
   Cabecera como la del Centro de recursos (título en degradado + texto),
   buscador de gss-ui, índice A–Z fijo al hacer scroll y lista por letras.
   Controles de gss-ui: el radio, el peso y el hover no se escriben aquí.
   ============================================================ */

.gss-glos {
  --glos-neon: #5078FF;
  --glos-sky: #50DCFF;
  --glos-aqua: #00FFD7;
  --glos-ink: #041438;
  --glos-muted: #5B6478;
  --glos-line: #E7EBF3;
  --glos-soft: #F5F8FF;
  --glos-top: 72px;                 /* altura de la barra del mega menú al hacer scroll */
  font-family: 'Poppins', sans-serif;
  color: var(--glos-ink);
}
@media (max-width: 1199px) { .gss-glos { --glos-top: 64px; } }

/* El shortcode vive en la columna de Impreza: el hero, el índice y el cuerpo van a sangre */
.gss-glos .gss-glos-hero,
.gss-glos .gss-glos-az,
.gss-glos .gss-glos-body {
  width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
}
.gss-glos .gss-glos-wrap { max-width: 1366px; margin: 0 auto; padding: 0 40px; }

/* Sin la franja blanca que deja Impreza encima (menú transparente sobre la cabecera) */
body.gss-glos-page #page-content > .l-section:first-of-type,
body.gss-glos-page #page-content > .l-section:first-of-type > .l-section-h { padding-top: 0 !important; }
/* En móvil Impreza pone overflow:hidden en .l-canvas y eso anula el índice fijo; clip recorta igual sin romperlo */
body.gss-glos-page .l-canvas { overflow-x: clip !important; overflow-y: visible !important; }

/* ---------- Cabecera ---------- */
.gss-glos .gss-glos-hero {
  padding: calc(var(--header-height, 84px) + 88px) 0 48px;
  text-align: center;
  background: radial-gradient(1200px 400px at 50% -120px, rgba(80, 120, 255, .10), transparent 70%), var(--glos-soft);
}
.gss-glos .gss-glos-title {
  /* padding abajo: el degradado se recorta a la caja del texto y sin él se cortaban la g y la y */
  margin: 0 0 8px; padding-bottom: .14em; font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08;
  color: var(--glos-neon);
  background: linear-gradient(90deg, var(--glos-neon), var(--glos-sky), var(--glos-aqua));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.gss-glos .gss-glos-lead { max-width: 640px; margin: 0 auto; font-size: 1.05rem; line-height: 1.6; color: var(--glos-muted); }

.gss-glos .gss-glos-search { max-width: 560px; height: 56px; margin: 32px auto 0; box-shadow: 0 10px 30px rgba(4, 20, 56, .06); }
.gss-glos .gss-glos-ic { width: 20px; height: 20px; flex-shrink: 0; color: var(--glos-muted); }
.gss-glos .gss-glos-q {
  flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0;
  font: inherit; font-size: 16px; color: var(--glos-ink);
  background: none; border: 0; box-shadow: none; outline: none;
}
.gss-glos .gss-glos-q::placeholder { color: #8A93A8; font-style: normal; opacity: 1; }

/* ---------- Índice A–Z ---------- */
.gss-glos .gss-glos-az {
  position: sticky; top: var(--glos-top); z-index: 20;
  padding: 14px 0; background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--glos-line);
  -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px);
}
.gss-glos .gss-glos-azin { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.gss-glos .gss-glos-l {
  display: grid; place-items: center; width: 36px; height: 36px;
  font-size: 14px; font-weight: 500; line-height: 1; text-decoration: none;
  color: var(--glos-ink); border: 1px solid var(--gss-line, #DCE2EE);
  border-radius: var(--gss-r-round, 50%);
  transition: background-color var(--gss-t, .3s), border-color var(--gss-t, .3s), color var(--gss-t, .3s);
}
.gss-glos a.gss-glos-l:hover, .gss-glos a.gss-glos-l:focus-visible {
  color: var(--gss-hover-fg, #1a1a1a); background: var(--gss-hover-bg, #00FFD7); border-color: var(--gss-hover-bg, #00FFD7);
}
.gss-glos a.gss-glos-l.is-here { color: #fff; background: var(--glos-neon); border-color: var(--glos-neon); }
.gss-glos .gss-glos-l.is-off { color: #C3C9D6; border-color: transparent; }

/* ---------- Lista ---------- */
.gss-glos .gss-glos-body { padding: 24px 0 96px; background: #fff; }
.gss-glos .gss-glos-sec {
  display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px;
  padding: 40px 0; border-top: 1px solid var(--glos-line);
  scroll-margin-top: calc(var(--glos-top) + 80px);
}
.gss-glos .gss-glos-sec:first-of-type { border-top: 0; }
.gss-glos .gss-glos-letter {
  position: sticky; top: calc(var(--glos-top) + 88px); align-self: start;
  margin: 0; font-size: 64px; font-weight: 600; line-height: 1; color: var(--glos-neon);
}
.gss-glos .gss-glos-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin: 0; }
.gss-glos .gss-glos-item { padding: 20px 0; border-bottom: 1px solid var(--glos-line); scroll-margin-top: calc(var(--glos-top) + 90px); }
.gss-glos .gss-glos-item dt { margin: 0 0 8px; font-size: 18px; font-weight: 600; line-height: 1.35; }
.gss-glos .gss-glos-t { color: var(--glos-ink); text-decoration: none; }
.gss-glos .gss-glos-t:hover { color: var(--glos-neon); }
.gss-glos .gss-glos-a { font-weight: 400; color: var(--glos-muted); }
.gss-glos .gss-glos-item dd { margin: 0; }
.gss-glos .gss-glos-item dd p { margin: 0; font-size: 15px; line-height: 1.65; color: #3C4560; }
.gss-glos .gss-glos-item dd .gss-glos-rel { margin-top: 10px; font-size: 13.5px; color: var(--glos-muted); }
.gss-glos .gss-glos-rel a { color: var(--glos-neon); font-weight: 500; text-decoration: none; }
.gss-glos .gss-glos-rel a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Término al que se llega con un enlace #ancla: se marca un momento, sin bucles */
.gss-glos .gss-glos-item:target dt .gss-glos-t,
.gss-glos .gss-glos-item.is-hit dt .gss-glos-t { color: var(--glos-neon); }
.gss-glos .gss-glos-item.is-hit { background: linear-gradient(90deg, rgba(80, 120, 255, .07), transparent 70%); transition: background-color 1.2s; }

.gss-glos .gss-glos-none { margin: 48px 0 0; font-size: 16px; text-align: center; color: var(--glos-muted); }
.gss-glos [hidden] { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .gss-glos .gss-glos-hero { padding: calc(var(--header-height, 64px) + 64px) 0 40px; }
  .gss-glos .gss-glos-sec { grid-template-columns: 1fr; gap: 8px; padding: 32px 0; }
  .gss-glos .gss-glos-letter { position: static; font-size: 48px; }
  .gss-glos .gss-glos-list { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .gss-glos .gss-glos-wrap { padding: 0 20px; }
  .gss-glos .gss-glos-az { padding: 10px 0; }
  /* En móvil el índice se desliza en horizontal en vez de ocupar tres filas */
  .gss-glos .gss-glos-azin { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .gss-glos .gss-glos-azin::-webkit-scrollbar { display: none; }
  .gss-glos .gss-glos-l { flex: 0 0 auto; width: 34px; height: 34px; }
  .gss-glos .gss-glos-item dt { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .gss-glos .gss-glos-item.is-hit { transition: none; }
}
