/**
 * Inca Trail Travel Guide (blog) + páginas guía (hub del Camino Inca)
 * Tokens de marca: azul #2e47ab · marino #0b1f33 · naranja #f7931e · Poppins / Montserrat
 */
.tqg, .tqg-hub {
    --g-blue: #2e47ab; --g-blue-d: #1f3284; --g-navy: #0b1f33; --g-ink: #1e293b; --g-body: #334155;
    --g-muted: #64748b; --g-line: #e3e8f2; --g-soft: #f5f7fc; --g-accent: #f7931e; --g-accent-d: #e07b06;
    --g-ok: #15803d; --g-wa: #1faa55;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--g-ink);
    text-align: left;
}
.tqg *, .tqg-hub * { box-sizing: border-box; }
.tqg a { text-decoration: none; }
.tqg-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.tqg-wrap--narrow { max-width: 880px; }

/* ---------- Cabecera ---------- */
.tqg-hero { background: linear-gradient(180deg, #f5f7fc 0%, #fff 100%); border-bottom: 1px solid var(--g-line); padding: 34px 0 30px; }
.tqg-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 16px; font-size: 13px; color: var(--g-muted); }
.tqg-crumbs a { color: var(--g-blue); font-weight: 600; }
.tqg-kicker { margin: 0 0 6px !important; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--g-accent-d); }
.tqg .tqg-hero__title { margin: 0 0 12px; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.12; color: var(--g-navy); text-transform: none; }
.tqg-hero__intro, .tqg-hero__intro p { max-width: 760px; margin: 0 0 6px; font-size: 17px; line-height: 1.6; color: var(--g-body); }
.tqg-pill { display: inline-block; margin-bottom: 12px; padding: 5px 12px; border-radius: 999px; background: #eef2ff; color: var(--g-blue) !important; font-size: 12.5px; font-weight: 700; }
.tqg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tqg-chips a { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--g-line); background: #fff; color: var(--g-navy); font-size: 13.5px; font-weight: 600; }
.tqg-chips a:hover { border-color: var(--g-blue); color: var(--g-blue); }
.tqg-chips a[aria-current="page"] { background: var(--g-blue); border-color: var(--g-blue); color: #fff; }

.tqg-authorhead { display: flex; gap: 22px; align-items: flex-start; }
.tqg-authorhead img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: #fff; border: 1px solid var(--g-line); flex: none; }
.tqg-authorhead__role { margin: -4px 0 8px !important; font-weight: 600; color: var(--g-blue); }

/* ---------- Listado ---------- */
.tqg-list { padding-top: 36px; padding-bottom: 44px; }
.tqg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tqg-card { display: flex; flex-direction: column; border: 1px solid var(--g-line); border-radius: 18px; overflow: hidden; background: #fff; transition: box-shadow .2s ease, transform .2s ease; }
.tqg-card:hover { box-shadow: 0 18px 38px rgba(11,31,51,.10); transform: translateY(-2px); }
/* Sin imagen destacada: fondo de marca */
.tqg-card__img { display: block; aspect-ratio: 16 / 10; background-color: var(--g-navy); background-image: linear-gradient(135deg, #2e47ab, #0b1f33); background-position: center; background-size: cover; background-repeat: no-repeat; }
.tqg-card__body { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px 20px; flex: 1; }
.tqg .tqg-card__title { margin: 0 0 6px; font-family: 'Poppins', sans-serif; font-size: 19px; font-weight: 700; line-height: 1.3; text-transform: none; }
.tqg-card__title a { color: var(--g-navy); }
.tqg-card__title a:hover { color: var(--g-blue); }
.tqg-card__excerpt { margin: 0 0 10px !important; font-size: 14px; line-height: 1.6; color: var(--g-body); }
.tqg-card__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: auto 0 0 !important; font-size: 12.5px; color: var(--g-muted); }
.tqg-card--featured { grid-column: 1 / -1; flex-direction: row; }
.tqg-card--featured .tqg-card__img { flex: 1 1 55%; aspect-ratio: auto; min-height: 340px; }
.tqg-card--featured .tqg-card__body { flex: 1 1 45%; justify-content: center; padding: 34px; }
.tqg-card--featured .tqg-card__title { font-size: 28px; }
.tqg-pager { display: flex; justify-content: space-between; margin-top: 30px; font-weight: 700; }
.tqg-pager a { color: var(--g-blue); }
.tqg-empty { max-width: 720px; padding: 28px; border: 1px dashed #cbd2dd; border-radius: 18px; background: var(--g-soft); }
.tqg-empty p { margin: 0 0 12px; font-size: 16px; color: var(--g-body); }
.tqg-empty ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tqg-empty a { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; color: var(--g-blue); }

/* ---------- Artículo ---------- */
.tqg-hero--article { padding-bottom: 26px; }
.tqg-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 18px; }
.tqg-byline__author { display: inline-flex; align-items: center; gap: 12px; color: var(--g-ink) !important; }
.tqg-byline__author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--g-line); background: #fff; }
.tqg-byline__author strong { display: block; font-size: 14.5px; color: var(--g-navy); }
.tqg-byline__author small { display: block; font-size: 12.5px; color: var(--g-muted); }
.tqg-byline__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--g-muted); }
.tqg-byline__meta i { margin-right: 6px; color: var(--g-accent-d); }
.tqg-cover { margin: 28px auto 0; }
.tqg-cover img { display: block; width: 100%; max-height: 520px; object-fit: cover; border-radius: 22px; }

.tqg-article { display: grid; grid-template-columns: minmax(0, 760px); justify-content: center; gap: 48px; padding-top: 34px; padding-bottom: 40px; }
.tqg-article.has-toc { grid-template-columns: 260px minmax(0, 760px); }
.tqg-toc { position: sticky; top: 24px; align-self: start; }
.tqg-toc details { border: 1px solid var(--g-line); border-radius: 16px; padding: 16px 18px; background: #fff; }
.tqg-toc summary { cursor: pointer; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 14px; color: var(--g-navy); list-style: none; }
.tqg-toc summary::-webkit-details-marker { display: none; }
.tqg-toc ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; max-height: 70vh; overflow-y: auto; }
.tqg-toc a { display: block; padding: 6px 10px; border-radius: 8px; border-left: 3px solid transparent; font-size: 13.5px; line-height: 1.35; color: var(--g-body); }
.tqg-toc .is-h3 a { padding-left: 22px; font-size: 12.5px; }
.tqg-toc a:hover { background: var(--g-soft); color: var(--g-blue); }
.tqg-toc a.is-active { border-left-color: var(--g-accent); background: #fff8ee; color: var(--g-navy); font-weight: 700; }

/* ---------- Texto largo (artículos y páginas guía) ---------- */
.tqg-prose, .tqg-hub { font-size: 17px; line-height: 1.75; color: var(--g-body); }
.tqg-hub { max-width: 920px; margin: 0 auto; }
.tqg-prose > * + *, .tqg-hub > * + * { margin-top: 1.1em; }
.tqg-prose p, .tqg-hub p { margin: 0 0 1em; text-align: left; }
.tqg-prose h2, .tqg-hub h2 { margin: 2.1em 0 .6em; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; color: var(--g-navy); scroll-margin-top: 90px; text-transform: none; text-align: left; }
.tqg-prose h3, .tqg-hub h3 { margin: 1.6em 0 .5em; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 20px; line-height: 1.3; color: var(--g-navy); scroll-margin-top: 90px; text-transform: none; text-align: left; }
.tqg-prose a, .tqg-hub a { color: var(--g-blue); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(46,71,171,.3); text-underline-offset: 3px; }
.tqg-prose ul, .tqg-prose ol, .tqg-hub ul, .tqg-hub ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.tqg-prose li, .tqg-hub li { margin-bottom: .4em; }
.tqg-prose strong, .tqg-hub strong { color: var(--g-navy); }
.tqg-prose img, .tqg-hub img { max-width: 100%; height: auto; border-radius: 16px; }
.tqg-prose blockquote { margin: 1.5em 0; padding: 16px 22px; border-left: 4px solid var(--g-accent); background: #fff8ee; border-radius: 0 14px 14px 0; font-style: italic; }

/* Metadatos de página guía */
.tqg-pagemeta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px !important; color: var(--g-muted); }
.tqg-pagemeta i { margin-right: 6px; color: var(--g-accent-d); }
.tqg-pagemeta a { text-decoration: none !important; }

/* Datos clave */
.tqg-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 1.6em 0; padding: 0; list-style: none; }
.tqg-facts li { margin: 0; padding: 16px 18px; border: 1px solid var(--g-line); border-radius: 16px; background: #fff; font-size: 14.5px; line-height: 1.5; }
.tqg-facts b { display: block; margin-bottom: 4px; font-family: 'Poppins', sans-serif; font-size: 22px; font-weight: 800; color: var(--g-blue); }

/* Pasos */
.tqg-steps { counter-reset: s; list-style: none !important; padding: 0 !important; display: grid; gap: 12px; }
.tqg-steps li { counter-increment: s; position: relative; margin: 0; padding: 16px 18px 16px 64px; border: 1px solid var(--g-line); border-radius: 16px; background: #fff; }
.tqg-steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--g-blue); color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 15px; }
.tqg-steps strong { display: block; }

/* Nota / aviso */
.tqg-callout { margin: 1.5em 0; padding: 16px 20px; border-radius: 16px; background: #f0f3ff; border: 1px solid #dbe2fb; color: #1f3284; font-size: 15.5px; }
.tqg-callout--warn { background: #fff8ee; border-color: #fbd9a6; color: #7c3d00; }
.tqg-callout strong { color: inherit; }

/* Tablas */
.tqg-table-wrap { overflow-x: auto; margin: 1.3em 0 .4em; border: 1px solid var(--g-line); border-radius: 16px; -webkit-overflow-scrolling: touch; }
.tqg-table, .tqg-prose table, .tqg-hub table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; background: #fff; }
.tqg-table th, .tqg-table td, .tqg-prose table th, .tqg-prose table td, .tqg-hub table th, .tqg-hub table td { padding: 12px 14px; border-bottom: 1px solid var(--g-line); text-align: left; vertical-align: top; }
.tqg-table thead th, .tqg-prose table thead th, .tqg-hub table thead th { background: var(--g-navy); color: #fff; font-weight: 600; font-size: 13px; }
.tqg-table tbody th a { font-weight: 700; text-decoration: none; }
.tqg-table tr:last-child > * { border-bottom: 0; }
.tqg-price { font-weight: 800; color: var(--g-navy); white-space: nowrap; }
.tqg-table-note { font-size: 13.5px !important; color: var(--g-muted); }

/* Preguntas frecuentes */
.tqg-faq { display: grid; gap: 10px; margin: 1.2em 0; }
.tqg-faq details { border: 1px solid var(--g-line); border-radius: 14px; background: #fff; }
.tqg-faq summary { cursor: pointer; padding: 16px 48px 16px 18px; position: relative; list-style: none; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 16px; color: var(--g-navy); }
.tqg-faq summary::-webkit-details-marker { display: none; }
.tqg-faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 24px; color: var(--g-accent-d); }
.tqg-faq details[open] summary::after { content: "−"; }
.tqg-faq details > div { padding: 0 18px 16px; font-size: 15.5px; }

/* Botones */
.tqg-btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 14px; font-weight: 700; font-size: 15px; text-decoration: none !important; transition: all .15s ease; }
.tqg-btn--accent { background: var(--g-accent); color: #fff !important; box-shadow: 0 10px 22px rgba(247,147,30,.3); }
.tqg-btn--accent:hover { background: var(--g-accent-d); }
.tqg-btn--ghost { background: #fff; color: var(--g-ok) !important; border: 2px solid var(--g-wa); }
.tqg-btn--ghost:hover { background: var(--g-wa); color: #fff !important; }
.tqg-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.3em 0; }

/* Calendario dentro del artículo */
.tqg-cal { margin: 2em 0; padding: 22px; border-radius: 22px; background: var(--g-soft); border: 1px solid var(--g-line); }
.tqg-cal__title { margin: 0 0 2px !important; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 20px; color: var(--g-navy); }
.tqg-cal__text { margin: 0 !important; font-size: 14.5px; color: var(--g-muted); }
.tqg-cal .tic { margin: 14px 0 0; font-size: 14px; line-height: 1.35; }

/* Caja de autor */
.tqg-authorbox { display: flex; gap: 18px; margin-top: 2.4em; padding: 22px; border-radius: 20px; background: var(--g-soft); border: 1px solid var(--g-line); font-size: 15px; line-height: 1.6; }
.tqg-authorbox img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: #fff; border: 1px solid var(--g-line); flex: none; margin: 0; }
.tqg-authorbox p { margin: 0 0 6px; }
.tqg-authorbox__name { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 18px; }
.tqg-authorbox__name a { text-decoration: none !important; color: var(--g-navy) !important; }
.tqg-authorbox__role { font-weight: 600; color: var(--g-blue); }
.tqg-authorbox__dates { font-size: 13px; color: var(--g-muted); }

/* Relacionados y CTA */
.tqg-related { padding-top: 10px; padding-bottom: 44px; }
.tqg .tqg-related__title { margin: 0 0 18px; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 26px; color: var(--g-navy); }
.tqg-cta { background: var(--g-navy); color: #fff; padding: 40px 0; }
.tqg-cta__in { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; }
.tqg-cta__title { margin: 0 0 4px !important; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 26px; color: #fff; }
.tqg-cta__text { margin: 0 !important; color: #c9d3e6; font-size: 15.5px; }
.tqg-cta__btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .tqg-article.has-toc { grid-template-columns: minmax(0, 760px); }
    .tqg-toc { position: static; }
}
@media (max-width: 991.98px) {
    .tqg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tqg-card--featured { flex-direction: column; }
    .tqg-card--featured .tqg-card__img { min-height: 220px; }
    .tqg-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .tqg-wrap { padding: 0 16px; }
    .tqg-hero { padding: 24px 0 22px; }
    .tqg-grid { grid-template-columns: 1fr; gap: 16px; }
    .tqg-card--featured .tqg-card__body { padding: 20px; }
    .tqg-card--featured .tqg-card__title { font-size: 22px; }
    .tqg-prose, .tqg-hub { font-size: 16px; }
    .tqg-facts { grid-template-columns: 1fr; }
    .tqg-authorhead, .tqg-authorbox { flex-direction: column; }
    .tqg-cal { padding: 14px 10px; margin-left: -6px; margin-right: -6px; }
    .tqg-cta__title { font-size: 22px; }
}
