/* Páginas de contenido: plantillas y guías (v1.11.2). Usa los colores de styles.css. */
body.pg { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.65; -webkit-text-size-adjust: 100%; }
.pg a:not(.btn) { color: var(--accent); }
.pg a.btn { text-decoration: none; }
.pg-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.pg-narrow { max-width: 760px; }
.pg-top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.pg-top-in { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.pg-top .brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; }
.pg-nav { display: flex; gap: 18px; margin-left: 12px; font-weight: 600; font-size: 15px; }
.pg-nav a { color: var(--muted); text-decoration: none; }
.pg-nav a:hover, .pg-nav a[aria-current] { color: var(--ink); }
.pg-top .btn { margin-left: auto; }
.pg-crumbs { font-size: 14px; color: var(--muted); padding: 22px 0 0; }
.pg-crumbs a { color: var(--muted); }
.pg-hero { padding: 18px 0 28px; }
.pg-hero .eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.pg h1 { font-family: var(--font-display); font-size: clamp(30px, 5vw, 46px); line-height: 1.1; margin: 0 0 14px; letter-spacing: -.01em; }
.pg h2 { font-family: var(--font-display); font-size: clamp(23px, 3.2vw, 30px); line-height: 1.2; margin: 44px 0 12px; scroll-margin-top: 80px; }
.pg h3 { font-size: 19px; margin: 26px 0 8px; }
.pg .lead { font-size: 19px; color: var(--muted); margin: 0 0 8px; max-width: 720px; }
.pg-meta { font-size: 14px; color: var(--muted); }
.pg-article p, .pg-article li { max-width: 720px; }
.pg-article ol, .pg-article ul { padding-left: 22px; }
.pg-article li { margin: 6px 0; }
.pg-toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 22px 0; }
.pg-toc strong { display: block; margin-bottom: 6px; }
.pg-toc ol { margin: 0; }
.pg-note { background: var(--seal-soft); border: 1px solid var(--seal-line); border-radius: var(--radius); padding: 14px 18px; margin: 18px 0; }
.pg-note strong { color: var(--seal); }
.pg-tip { background: var(--accent-soft); border-radius: var(--radius); padding: 14px 18px; margin: 18px 0; }
.pg-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15.5px; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.pg-table th, .pg-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.pg-table th { background: var(--surface-2); font-size: 14px; }
.pg-tablewrap { overflow-x: auto; }
.pg-cta { background: var(--accent); color: var(--accent-ink); border-radius: 14px; padding: 28px; margin: 40px 0; }
.pg-cta h2 { margin: 0 0 8px; color: inherit; }
.pg-cta p { margin: 0 0 16px; opacity: .92; }
.pg-cta .btn { background: var(--surface); color: var(--accent); border-color: var(--surface); }
.pg-cta a:not(.btn) { color: inherit; }
.pg-quote { border-left: 4px solid var(--accent); background: var(--surface); padding: 12px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 15.5px; }
/* Plantillas */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin: 10px 0 30px; }
.tpl { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; box-shadow: var(--shadow); scroll-margin-top: 80px; }
.tpl h2 { font-size: 22px; margin: 0 0 4px; }
.tpl .for { color: var(--muted); font-size: 15px; margin: 0 0 12px; }
.tpl ol { list-style: none; padding: 0; margin: 0 0 14px; border-top: 1px solid var(--line); }
.tpl li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.tpl .type { flex: none; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; align-self: center; white-space: nowrap; }
.tpl .req { color: var(--danger); }
.tpl .consent { font-size: 14px; background: var(--seal-soft); border: 1px solid var(--seal-line); border-radius: var(--radius-sm); padding: 8px 10px; margin: 0 0 14px; }
.tpl .btn { margin-top: auto; align-self: flex-start; }
.pg-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.pg-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-decoration: none; color: var(--ink); display: block; }
.pg-card strong { display: block; font-size: 18px; margin-bottom: 4px; color: var(--accent); }
.pg-card span { color: var(--muted); font-size: 15px; }
.pg-footer { border-top: 1px solid var(--line); margin-top: 50px; padding: 26px 0 40px; font-size: 14px; color: var(--muted); }
.pg-footer nav { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 8px; }
.pg-footer a { color: var(--muted); }
@media (max-width: 640px) {
  body.pg { font-size: 16px; }
  .pg-top-in { gap: 8px 10px; padding-top: 10px; }
  .pg-top .brand { font-size: 18px; }
  .pg-top .btn { padding: 7px 12px; font-size: 14px; min-height: 0; }
  .pg-nav { order: 3; width: 100%; margin: 0 0 8px; gap: 18px; overflow-x: auto; white-space: nowrap; font-size: 14px; scrollbar-width: none; }
  .pg-cta { padding: 22px 18px; }
}
.pg-meta .req { color: var(--danger); }
/* v1.12.1: compartir la página */
.pg-share { margin: 34px 0 0; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 12px; }
.pg-share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-share-wa { background: #1c8a4b; border-color: #1c8a4b; color: #fff; }

/* v1.15.1: enlace al chat desde las guías y la página de plantillas (abre la página de inicio con el chat abierto) */
.pg-cta-chat { margin: 14px 0 0 !important; font-size: 15px; }
.pg-cta-chat a { font-weight: 600; }
.pg a.pg-chat, .pg a.pg-chat:hover { color: var(--accent-ink, #fff); }
.pg-chat { position: fixed; right: 20px; bottom: 20px; z-index: 6; width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 6px 22px rgba(11, 122, 98, .38); transition: transform .15s ease; }
.pg-chat:hover { transform: translateY(-2px); }
.pg-chat:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (max-width: 640px) {
  .pg-chat { right: 14px; bottom: 14px; width: 54px; height: 54px; }
  .pg-footer { padding-bottom: 90px; }
}
@media print { .pg-chat { display: none; } }
