/* ==========================================================================
   Karún Travel Group — travel guides /guias/ (2026-10-27)
   Loaded after karun-rutas.css on the /guias/ pages only. Same tokens and
   type as the route pages. Source: tools/seo-pages/karun-guias.css (copied
   by tools/build_seo_pages.py).
   ========================================================================== */

html .lm .kg-h1{max-width:22ch}

/* ---------- article ---------- */
/* left-aligned with the hero (same .k23-wrap), one readable column */
html .lm .kg-prose > *{max-width:860px}
html .lm .kg-prose > p,html .lm .kg-prose .kg-faq p{font-size:clamp(16.5px,1.35vw,18px);line-height:1.7;color:var(--k-ink);margin:0 0 18px;max-width:72ch}
html .lm .kg-prose a{color:var(--k-deep);font-weight:700;text-decoration:underline;text-underline-offset:3px}
html .lm .kg-prose a:hover{color:var(--k-lagoon)}
html .lm .kg-prose a.btn{text-decoration:none}
html .lm .kg-prose a.btn.k23-btn-xl{color:#fff}
html .lm .kg-h2{font-size:clamp(24px,2.6vw,32px);line-height:1.12;color:var(--k-ink);margin:clamp(34px,4.4vw,52px) 0 14px;scroll-margin-top:calc(var(--k-nav-h, 80px) + 16px)}
html .lm .kg-prose > .kg-h2:first-child{margin-top:0}
html .lm .kg-list{list-style:none;margin:0 0 20px;padding:0;display:grid;gap:10px;max-width:72ch}
html .lm .kg-list li{position:relative;padding:12px 16px 12px 44px;border-radius:16px;background:var(--k-card);box-shadow:var(--k-raise);font-size:16px;line-height:1.6;color:var(--k-ink)}
html .lm .kg-list li::before{content:"";position:absolute;left:18px;top:21px;width:9px;height:9px;border-radius:50%;background:linear-gradient(150deg,var(--k-lagoon),var(--k-deep))}
html .lm .kg-check li::before{content:"✓";left:12px;top:12px;width:22px;height:22px;display:grid;place-items:center;font-size:12px;font-weight:900;color:#fff}
html .lm .kg-prices li{display:flex;justify-content:space-between;align-items:baseline;gap:14px}
html .lm .kg-prices li b{color:var(--k-deep);white-space:nowrap}

/* comparison table (reuses .kr-table) */
html .lm .kg-tablewrap{overflow-x:auto;margin:0 0 20px;border-radius:22px;-webkit-overflow-scrolling:touch}
html .lm .kg-table{min-width:560px;font-size:15px}
html .lm .kg-table td,html .lm .kg-table th{vertical-align:top;line-height:1.5}
html .lm .kr-table.kg-table td:last-child,html .lm .kr-table.kg-table th:last-child{text-align:left;white-space:normal}
html .lm .kg-table tbody th{white-space:nowrap}

/* booking box */
html .lm .kg-cta{margin:clamp(36px,5vw,56px) 0 0;padding:clamp(22px,3vw,34px);border-radius:26px;color:#f4f1e8;
  background:radial-gradient(700px 300px at 90% -20%,rgba(122,212,224,.28),transparent 60%),linear-gradient(165deg,var(--k-dusk2) 0%,var(--k-dusk) 60%,var(--k-night) 100%)}
html .lm .kg-cta p{color:rgba(244,241,232,.86);font-size:16px;line-height:1.6;margin:0 0 20px;max-width:62ch}
html .lm .kg-cta p.kg-cta-t{font-size:clamp(24px,2.8vw,34px);line-height:1.1;color:#fff;margin:0 0 12px}
html .lm .kg-cta-t .k23-script{color:var(--k-aqua)}
html .lm .kg-cta .kr-ctas{margin:0}
html .lm .kg-prose .kg-cta a.kg-btn-line{color:#fff;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.5);background:transparent}

/* FAQ */
html .lm .kg-faq{border-top:1px solid var(--line)}
html .lm .kg-faq-item{border-bottom:1px solid var(--line)}
html .lm .kg-faq-item summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:18px;padding:18px 0;
  font-family:var(--f-disp);font-weight:700;font-size:clamp(17px,1.8vw,20px);line-height:1.3;color:var(--k-ink)}
html .lm .kg-faq-item summary::-webkit-details-marker{display:none}
html .lm .kg-faq-item summary::after{content:"+";flex:0 0 auto;font-size:26px;line-height:1;color:var(--k-deep);transition:transform .3s var(--k-ease)}
html .lm .kg-faq-item[open] summary::after{transform:rotate(45deg)}
html .lm .kg-faq-item summary:focus-visible{outline:3px solid var(--k-aqua);outline-offset:3px}
html .lm .kg-prose .kg-faq p{color:var(--k-muted);margin:0;padding:0 0 20px}

/* guide cards (index + "Más guías") */
html .lm .kg-cards{list-style:none;margin:clamp(18px,2.4vw,28px) 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
html .lm .kg-card{display:flex;flex-direction:column;gap:8px;height:100%;box-sizing:border-box;padding:20px 22px;border-radius:22px;
  background:var(--k-card);box-shadow:var(--k-raise);color:var(--k-ink);text-decoration:none;transition:transform .35s var(--k-ease),box-shadow .35s var(--k-ease)}
html .lm a.kg-card{color:var(--k-ink)}
html .lm .kg-card:hover{transform:translateY(-3px);box-shadow:var(--k-raise-xl)}
html .lm .kg-card:focus-visible{outline:3px solid var(--k-aqua);outline-offset:3px}
html .lm .kg-card-k{font-size:11px;font-weight:900;letter-spacing:.14em;text-transform:uppercase;color:var(--k-lagoon)}
html .lm .kg-card-t{font-family:var(--f-disp);font-size:21px;line-height:1.15}
html .lm .kg-card-d{font-size:14.5px;line-height:1.55;color:var(--k-muted);flex:1 1 auto}
html .lm .kg-card-go{font-size:14px;font-weight:800;color:var(--k-deep)}

@media (max-width:980px){html .lm .kg-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){
  html .lm .kg-cards{grid-template-columns:minmax(0,1fr);gap:12px}
  /* comparison table → one card per row, each cell labelled (data-label) */
  html .lm .kg-table{min-width:0}
  html .lm .kg-table thead{display:none}
  html .lm .kg-table tbody,html .lm .kg-table tr,html .lm .kg-table th,html .lm .kg-table td{display:block}
  html .lm .kg-table tr{padding:14px 16px;border-bottom:1px solid var(--line)}
  html .lm .kg-table tbody tr:last-child{border-bottom:0}
  html .lm .kr-table.kg-table th,html .lm .kr-table.kg-table td{padding:0;border:0;white-space:normal}
  html .lm .kg-table tbody th{font-size:16px;margin:0 0 8px}
  html .lm .kg-table td{margin:0 0 6px}
  html .lm .kg-table td::before{content:attr(data-label);display:block;font-size:10.5px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;color:var(--k-muted);margin-bottom:2px}
  html .lm .kg-list li{padding-right:14px}
}
@media (prefers-reduced-motion:reduce){
  html .lm .kg-card,html .lm .kg-faq-item summary::after{transition:none}
}
