/* Barra común de IA que trabaja: se inyecta (nginx sub_filter) en todas las herramientas de tools.iaquetrabaja.com */
.iqt-bar, .iqt-bar *, .iqt-promo, .iqt-promo * { box-sizing: border-box; font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif; }
.iqt-bar {
  position: sticky; top: 0; z-index: 9999; background: #fff; color: #141414;
  border-bottom: 1px solid #e6e6e3; font-size: 14px; line-height: 1.4;
}
.iqt-bar-in { max-width: 1120px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 16px; }
.iqt-logo { display: flex; align-items: center; text-decoration: none; color: #141414; flex: 0 0 auto; }
.iqt-logo img { height: 26px; width: auto; display: block; }
.iqt-sep { color: #8b8b87; }
.iqt-tool { font-weight: 500; color: #141414; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iqt-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.iqt-nav a, .iqt-nav button {
  color: #141414; text-decoration: none; background: none; border: 1px solid transparent; border-radius: 6px;
  padding: 6px 10px; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.iqt-nav a:hover, .iqt-nav button:hover { background: #f6f6f5; }
.iqt-nav .iqt-gh { display: inline-flex; align-items: center; gap: 6px; border-color: #d3d3cf; }
.iqt-nav .iqt-gh svg { width: 16px; height: 16px; }
.iqt-menu { position: relative; }
.iqt-drop {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 280px; background: #fff; border: 1px solid #d3d3cf;
  border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.08); padding: 6px; display: none;
}
.iqt-menu.open .iqt-drop { display: block; }
.iqt-drop a { display: block; padding: 8px 10px; border-radius: 6px; }
.iqt-drop a small { display: block; color: #8b8b87; font-size: 12px; margin-top: 2px; }
.iqt-drop a.cur { background: #f6f6f5; }
/* menú de cuenta */
.iqt-acc-slot { visibility: hidden; }
.iqt-acc-slot.iqt-ready { visibility: visible; }
.iqt-acc .iqt-drop { min-width: 200px; }
.iqt-acc > button { font-weight: 500; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.iqt-drop .iqt-who { display: block; padding: 6px 10px 8px; color: #8b8b87; font-size: 12px; border-bottom: 1px solid #e6e6e3; margin-bottom: 4px;
  overflow: hidden; text-overflow: ellipsis; }
.iqt-drop form { margin: 0; }
.iqt-nav .iqt-drop button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 6px; font-family: inherit; }
.iqt-drop .iqt-all { border-top: 1px solid #e6e6e3; margin-top: 6px; padding-top: 10px; color: #d24d1e; }
.iqt-promo {
  max-width: 1120px; margin: 40px auto 24px; padding: 20px 22px; border: 1px solid #d3d3cf; border-left: 4px solid #d24d1e;
  border-radius: 8px; background: #fff; color: #141414; display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
}
.iqt-promo p { margin: 0; flex: 1 1 360px; font-size: 15px; line-height: 1.5; }
.iqt-promo p b { display: block; font-size: 17px; margin-bottom: 2px; }
.iqt-promo a.iqt-cta {
  background: #d24d1e; color: #fff; text-decoration: none; padding: 10px 16px; border-radius: 6px; font-weight: 500; white-space: nowrap;
}
.iqt-foot { max-width: 1120px; margin: 0 auto 24px; padding: 0 16px; color: #8b8b87; font-size: 13px; display: flex; gap: 14px; flex-wrap: wrap; }
.iqt-foot a { color: #8b8b87; }
@media (max-width: 640px) {
  .iqt-sep, .iqt-tool { display: none; }
  .iqt-nav .iqt-gh span, .iqt-nav .iqt-hide-m { display: none; }
  .iqt-bar-in { gap: 8px; }
  .iqt-nav { min-width: 0; gap: 0; }
  .iqt-nav a, .iqt-nav button { padding: 6px 6px; }
  .iqt-acc > button { max-width: 100px; }
  .iqt-promo { margin: 32px 16px 20px; }
}
@media (prefers-color-scheme: dark) {
  .iqt-bar, .iqt-drop, .iqt-promo { background: #111; color: #ededea; border-color: #262626; }
  .iqt-logo, .iqt-tool, .iqt-nav a, .iqt-nav button, .iqt-promo { color: #ededea; }
  .iqt-nav a:hover, .iqt-nav button:hover, .iqt-drop a.cur { background: #1a1a1a; }
  .iqt-nav .iqt-gh { border-color: #353535; }
  .iqt-drop .iqt-who { border-color: #262626; }
  .iqt-logo img { filter: none; }
}

/* La barra sustituye a la cabecera y pie propios de cada página */
body.iqt-on > header.top, body.iqt-on > footer.foot, body.iqt-on > .wrap > header.top { display: none !important; }

/* Vídeo de ejemplo de la herramienta (abajo, antes del banner) */
.iqt-ejemplo { max-width: 1120px; margin: 56px auto 0; padding: 40px 16px 8px; border-top: 1px solid #e6e6e3; text-align: center; color: #141414; }
.iqt-ejemplo h3 { font-size: 22px; font-weight: 500; letter-spacing: -.01em; margin: 0 0 20px; }
.iqt-ejemplo video { display: block; margin: 0 auto; width: 300px; max-width: 80vw; aspect-ratio: 9 / 16; border-radius: 12px; background: #000; box-shadow: 0 12px 40px rgba(0,0,0,.12); }
.iqt-ejemplo p { color: #8b8b87; font-size: 14px; margin: 14px 0 0; }
@media (prefers-color-scheme: dark) { .iqt-ejemplo { border-color: #262626; color: #ededea; } }

/* Bloque GitHub de cada herramienta */
.iqt-gh-card { border: 1px solid #e6e6e3; border-radius: 8px; padding: 20px; margin: 32px 0 8px; background: #fff; color: #141414; }
.iqt-gh-head { display: flex; gap: 12px; align-items: flex-start; }
.iqt-gh-head svg { width: 28px; height: 28px; flex: 0 0 auto; margin-top: 2px; }
.iqt-gh-head b { display: block; font-size: 17px; margin-bottom: 2px; }
.iqt-gh-head span { color: #5f5f5c; font-size: 15px; }
.iqt-gh-meta { display: flex; gap: 14px; flex-wrap: wrap; margin: 14px 0 6px; font-size: 14px; color: #5f5f5c; }
.iqt-gh-meta a { color: #141414; font-weight: 500; }
.iqt-gh-req { color: #5f5f5c; font-size: 14px; margin: 6px 0 10px; }
.iqt-gh-code { position: relative; background: #f6f6f5; border: 1px solid #e6e6e3; border-radius: 6px; margin: 8px 0 14px; }
.iqt-gh-code pre { margin: 0; padding: 12px 70px 12px 14px; font: 13px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; word-break: break-all; color: #141414; }
.iqt-gh-code button { position: absolute; top: 8px; right: 8px; border: 1px solid #d3d3cf !important; background: #fff !important; color: #141414 !important; border-radius: 5px; padding: 4px 10px !important; font-size: 13px !important; cursor: pointer; width: auto !important; min-height: 0 !important; }
.iqt-gh-btn { display: inline-block; background: #141414; color: #fff !important; text-decoration: none; padding: 10px 16px; border-radius: 6px; font-weight: 500; font-size: 15px; }
@media (prefers-color-scheme: dark) {
  .iqt-gh-card { background: #111; border-color: #262626; color: #ededea; }
  .iqt-gh-meta a, .iqt-gh-code pre { color: #ededea; }
  .iqt-gh-code { background: #1a1a1a; border-color: #262626; }
  .iqt-gh-code button { background: #111; color: #ededea; border-color: #353535; }
  .iqt-gh-btn { background: #ededea; color: #111 !important; }
}
