/* FAB (botón flotante) */
.gs-fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 48px; height: 48px; border-radius: 50%;
  background: #1a1a2e; color: white;
  border: none; cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-family: inherit;
  z-index: 50; opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}
.gs-fab:hover {
  opacity: 1; transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}
.gs-fab .gs-fab-kbd {
  position: absolute; bottom: -6px; right: -6px;
  background: white; color: #1a1a2e;
  font-size: 0.55rem; font-weight: 700;
  padding: 0.1rem 0.3rem; border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Modal backdrop */
.gs-backdrop {
  position: fixed; inset: 0;
  background: rgba(20,20,35,0.55);
  display: none; align-items: flex-start; justify-content: center;
  z-index: 1000; padding: 6rem 1rem 2rem;
  animation: gs-fade 0.15s ease-out;
}
.gs-backdrop.show { display: flex; }
@keyframes gs-fade { from { opacity: 0; } to { opacity: 1; } }

.gs-card {
  background: white; width: 100%; max-width: 620px;
  border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  overflow: hidden; max-height: calc(100vh - 8rem);
  display: flex; flex-direction: column;
  font-family: system-ui, -apple-system, sans-serif;
}

.gs-input-wrap {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid #f0f0f5;
  display: flex; align-items: center; gap: 0.6rem;
}
.gs-input-wrap .gs-icon { color: #888; font-size: 1rem; }
.gs-input-wrap input {
  flex: 1; border: none; outline: none;
  font-size: 1rem; font-family: inherit;
  background: transparent; color: #1a1a2e;
  padding: 0.2rem 0;
}
.gs-kbd {
  font-size: 0.7rem; color: #777;
  padding: 0.15rem 0.45rem;
  background: #f0f0f5; border-radius: 4px;
  border: 1px solid #e0e0e8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.gs-results { overflow-y: auto; flex: 1; }
.gs-grupo-header {
  padding: 0.45rem 1.1rem; background: #fafafc;
  border-bottom: 1px solid #f0f0f5;
  font-size: 0.7rem; font-weight: 600; color: #777;
  text-transform: uppercase; letter-spacing: 0.5px;
  display: flex; align-items: center; gap: 0.4rem;
}
.gs-result {
  padding: 0.6rem 1.1rem;
  cursor: pointer; display: block; color: inherit; text-decoration: none;
  border-bottom: 1px solid #f8f8fc;
  transition: background 0.1s;
}
.gs-result:last-child { border-bottom: none; }
.gs-result.active, .gs-result:hover { background: #eaf2ff; }
.gs-result .gs-titulo { font-weight: 500; font-size: 0.92rem; color: #1a1a2e; }
.gs-result .gs-subt { font-size: 0.77rem; color: #777; margin-top: 0.1rem; }
.gs-result .gs-snip {
  font-size: 0.8rem; color: #555;
  margin-top: 0.3rem; padding: 0.25rem 0.5rem;
  background: rgba(0,0,0,0.025); border-left: 2px solid #ddd;
  border-radius: 3px; line-height: 1.45;
}
.gs-result mark {
  background: #fff4d6; color: #5a4500;
  padding: 0 0.15rem; border-radius: 2px;
}

.gs-footer {
  padding: 0.55rem 1.1rem; background: #fafafc;
  border-top: 1px solid #f0f0f5;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.75rem; color: #777;
}
.gs-footer a { color: #1e54b7; text-decoration: none; font-weight: 500; }
.gs-footer a:hover { text-decoration: underline; }
.gs-footer .gs-hints { display: flex; gap: 0.6rem; align-items: center; }

.gs-empty, .gs-loading, .gs-error {
  padding: 2rem 1.1rem; text-align: center; color: #888; font-size: 0.9rem;
}
.gs-empty .gs-empty-q { color: #1a1a2e; font-weight: 500; }
