/* Guardarraíles: guía de uso seguro y ético de la IA. Fondo blanco, negro, rojo y gris; limitado a .gr. */
.gr { --ink: #121214; --ink-2: #3b3b40; --grey: #5f5f66; --rule: #e1e2e5; --red: #b91c1c; --soft: #fef2f2; --mono: ui-monospace, Menlo, Consolas, monospace;
  background: #fff; color: var(--ink); font-size: 16.5px; line-height: 1.65; flex: 1 0 auto; }
.gr *, .gr *::before, .gr *::after { box-sizing: border-box; }
.gr h1, .gr h2, .gr h3, .gr p, .gr ul, .gr ol { margin: 0; }
.gr a { color: var(--red); text-underline-offset: 3px; }
.gr a:focus-visible, .gr button:focus-visible, .gr pre:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.gr-wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.gr-hero { border-bottom: 1px solid var(--rule); padding: 36px 0 30px; }
.gr-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.gr-k { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); font-weight: 600; }
.gr-hero h1 { margin-top: 10px; font-size: clamp(40px, 6vw, 68px); font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.gr-hero h1 span { color: var(--red); }
.gr-lead { margin-top: 14px; max-width: 62ch; font-size: 18.5px; color: var(--ink-2); }
.gr-nota { margin-top: 12px; padding-left: 12px; border-left: 3px solid var(--red); color: var(--grey); font-size: 14.5px; max-width: 62ch; }
.gr-ilu { margin: 0; border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; }
.gr-ilu svg { display: block; width: 100%; height: auto; }
.gr-layout { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: start; padding-top: 28px; padding-bottom: 48px; }
.gr-indice { position: sticky; top: 84px; display: grid; gap: 2px; padding: 14px 0; border-right: 1px solid var(--rule); }
.gr-indice p { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); padding: 0 14px 8px; }
.gr-indice a { padding: 7px 14px; border-right: 3px solid transparent; color: #4b5563; text-decoration: none; font-size: 14px; font-weight: 600; }
.gr-indice a:hover { background: #f3f4f6; color: var(--ink); }
.gr-indice a[aria-current="true"] { background: var(--soft); color: var(--red); border-right-color: var(--red); }
.gr-main { display: grid; gap: 44px; min-width: 0; }
.gr-main section { scroll-margin-top: 84px; display: grid; gap: 14px; }
.gr-main h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 900; letter-spacing: -.02em; line-height: 1.15; padding-top: 14px; border-top: 2px solid var(--ink); }
.gr-main section > p { color: var(--ink-2); max-width: 72ch; }
.gr-alerta { padding: 16px 18px; border-left: 4px solid var(--red); background: var(--soft); border-radius: 0 10px 10px 0; }
.gr-alerta h3 { font-size: 16px; font-weight: 800; color: var(--red); }
.gr-alerta ul { margin-top: 6px; padding-left: 20px; display: grid; gap: 3px; color: var(--ink-2); }
.gr-habitos { list-style: none; padding: 0; counter-reset: h; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.gr-habitos li { counter-increment: h; position: relative; padding: 16px 16px 16px 58px; border: 1px solid var(--rule); border-radius: 12px; }
.gr-habitos li::before { content: counter(h); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 900; font-size: 14px; }
.gr-habitos li:last-child::before { border-color: var(--red); color: var(--red); }
.gr-habitos h3, .gr-tarjeta h3 { font-size: 16px; font-weight: 800; line-height: 1.3; }
.gr-habitos p, .gr-tarjeta p { margin-top: 4px; font-size: 15px; color: var(--ink-2); }
.gr-rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.gr-tarjeta { padding: 16px; border: 1px solid var(--rule); border-top: 3px solid var(--ink); border-radius: 10px; background: #fff; }
.gr-tarjeta:nth-child(3n+2) { border-top-color: var(--red); }
.gr-marco { font-size: 14.5px; color: var(--grey) !important; }
.gr-fichas { display: grid; gap: 18px; }
.gr-ficha { display: grid; gap: 8px; padding: 20px; border: 1px solid var(--rule); border-radius: 14px; background: #fafafa; }
.gr-ficha h3 { font-size: 21px; font-weight: 900; letter-spacing: -.01em; }
.gr-ficha p { color: var(--ink-2); font-size: 15.5px; }
.gr-ficha p b { color: var(--ink); }
.gr-pendiente { margin-top: 6px; padding: 12px 14px; border: 1px dashed #cbd5e1; border-radius: 8px; background: #fff; color: var(--grey) !important; font-size: 14.5px !important; }
.gr-prompt { margin-top: 6px; border: 1px solid #d1d5db; border-radius: 10px; overflow: hidden; background: #fff; }
.gr-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--rule); }
.gr-bar > span { font-family: var(--mono); font-size: 12px; color: var(--grey); }
.gr-copy { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--red); border-radius: 6px; background: var(--red); color: #fff; font: 700 13px/1 Inter, Arial, sans-serif; cursor: pointer; }
.gr-copy:hover { background: var(--ink); border-color: var(--ink); }
.gr-copy svg { width: 15px; height: 15px; }
.gr-copy.ok { background: #15803d; border-color: #15803d; }
.gr pre { margin: 0; padding: 16px; max-height: 440px; overflow: auto; white-space: pre-wrap; word-break: break-word; font-family: var(--mono); font-size: 13px; line-height: 1.6; }
.gr-check { list-style: none; padding: 0; display: grid; gap: 8px; }
.gr-check li { position: relative; padding: 10px 14px 10px 44px; border: 1px solid var(--rule); border-radius: 10px; font-weight: 600; }
.gr-check li::before { content: ""; position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border: 2px solid var(--red); border-radius: 4px; }
@media (max-width: 900px) {
  .gr-hero-grid { grid-template-columns: 1fr; }
  .gr-ilu { max-width: 520px; }
  .gr-layout { grid-template-columns: 1fr; gap: 20px; }
  .gr-indice { position: static; border-right: 0; border-bottom: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 14px; }
  .gr-indice p { width: 100%; padding: 0 0 4px; }
  .gr-indice a { padding: 6px 10px; border: 1px solid var(--rule); border-radius: 999px; font-size: 13px; }
  .gr-indice a[aria-current="true"] { border-color: var(--red); }
}
/* Acceso directo a los prompts en la cabecera */
.gr-cta { margin-top: 18px; padding: 14px 16px; border: 2px solid var(--red); border-radius: 14px; background: #fff; max-width: 640px; }
.gr-cta-k { font-size: 14px; font-weight: 900; color: var(--red); }
.gr-cta ul { list-style: none; padding: 0; margin: 8px 0 10px; display: grid; gap: 6px; }
.gr-cta li { display: grid; grid-template-columns: 28px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--rule); }
.gr-cta li:first-child { border-top: 0; }
.gr-cta-n { font-family: var(--mono); font-size: 12px; color: var(--grey); }
.gr-cta-t { display: grid; line-height: 1.3; min-width: 0; }
.gr-cta-t b { font-size: 15px; }
.gr-cta-t small { font-size: 13px; color: var(--grey); }
.gr-copy-mini { padding: 6px 10px; font-size: 12.5px; }
.gr-ver { font-size: 13px; font-weight: 800; text-decoration: none; padding: 6px 4px; }
.gr-ver:hover { text-decoration: underline; }
.gr-cta-b { display: inline-block; font-weight: 800; font-size: 14px; text-decoration: none; }
.gr-cta-b:hover { text-decoration: underline; }
@media (max-width: 520px) { .gr-cta li { grid-template-columns: 1fr auto; } .gr-cta-n { display: none; } .gr-ver { display: none; } }
