/* Guides (/guias/): reading layout on top of main.css. Only the guide pages load this file. */

/* The "Guías" link stays highlighted inside an article (aria-current="true": current section, not this page). */
.nav__links a[aria-current="true"] { color: var(--ink); background: var(--line); font-weight: 650; }

/* ---------- Header ---------- */
.ghero { position: relative; padding: clamp(112px, 15vh, 150px) 0 clamp(28px, 4vw, 44px); }
.ghero__inner { max-width: 52rem; }
.ghero__title { margin: 18px 0 18px; font-size: clamp(2rem, 3.8vw, 3.3rem); line-height: 1.06; letter-spacing: -.035em; font-weight: 700; text-wrap: balance; }
.ghero__lead { max-width: 44rem; font-size: clamp(1.04rem, 1.3vw, 1.18rem); color: var(--ink-2); }
.gmeta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 18px; font-size: .9rem; color: var(--muted); }
.gmeta strong { color: var(--ink-2); font-weight: 600; }
@media (max-width: 960px) { .ghero { padding-top: 104px; } }

/* ---------- Article grid: text + sticky table of contents ---------- */
.garticle { display: grid; grid-template-columns: minmax(0, 46rem) minmax(0, 17rem); column-gap: clamp(40px, 6vw, 88px); align-items: start; padding-bottom: clamp(32px, 5vw, 56px); }
.garticle > .gsum, .garticle > .gbody { grid-column: 1; }
.gtoc { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 96px; }
@media (max-width: 1023px) {
  .garticle { grid-template-columns: minmax(0, 1fr); }
  .gtoc { grid-column: 1; grid-row: auto; position: static; margin-top: 24px; }
}

/* Summary box */
.gsum { position: relative; overflow: hidden; padding: clamp(20px, 3vw, 30px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.gsum::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad-bright); }
.gsum__title { font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.gsum ul { display: grid; gap: 10px; }
.gsum li { position: relative; padding-left: 26px; color: var(--ink-2); line-height: 1.55; }
.gsum li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--grad-bright); }
.gsum strong { color: var(--ink); font-weight: 650; }

/* Table of contents */
.gtoc { padding: 18px 20px; border-radius: 20px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.gtoc__title { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.gtoc ol { display: grid; gap: 2px; counter-reset: toc; }
.gtoc li { counter-increment: toc; }
.gtoc a { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 4px; padding: 6px 8px; border-radius: 10px; font-size: .92rem; line-height: 1.4; color: var(--ink-2); transition: background-color .2s, color .2s; }
.gtoc a::before { content: counter(toc); font-family: var(--font-display); font-weight: 700; font-size: .82rem; color: var(--accent-ink); }
.gtoc a:hover { background: var(--line); color: var(--ink); }

/* ---------- Article text ---------- */
.gbody { font-size: 1.06rem; color: var(--ink-2); }
.gbody > section { scroll-margin-top: 96px; }
.gbody h2 { margin: clamp(40px, 6vw, 56px) 0 14px; font-size: clamp(1.55rem, 2.8vw, 2.1rem); line-height: 1.12; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.gbody h3 { margin: 28px 0 8px; font-size: clamp(1.16rem, 1.7vw, 1.32rem); line-height: 1.28; letter-spacing: -.02em; color: var(--ink); }
.gbody p { margin: 0 0 14px; }
.gbody ul, .gbody ol { display: grid; gap: 8px; margin: 0 0 18px; padding-left: 1.4em; }
.gbody ul { list-style: disc; }
.gbody ol { list-style: decimal; }
.gbody li::marker { color: var(--accent-ink); font-weight: 700; }
.gbody strong { color: var(--ink); font-weight: 650; }
.gbody a, .gsources a, .gnote a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.gbody code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .92em; padding: 2px 7px; border-radius: 7px; background: var(--bg-2); color: var(--ink); overflow-wrap: anywhere; }

/* Callout */
.gnote { margin: 8px 0 22px; padding: 16px 18px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); border-left: 4px solid var(--aqua); }
.gnote p:last-child { margin-bottom: 0; }
.gnote strong { color: var(--ink); }

/* Three-way comparison (simple / advanced / qualified) */
.gtypes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 8px 0 22px; }
.gtypes .tile { padding: 20px; border-radius: 20px; }
.gtypes .tile h3 { margin: 0 0 8px; font-size: 1.12rem; }
.gtypes .tile p { margin: 0; font-size: .97rem; }
.gtypes .tile--strong { border-color: rgba(19, 185, 216, .45); }
@media (max-width: 760px) { .gtypes { grid-template-columns: minmax(0, 1fr); } }

/* After the text: call to action, FAQ and sources, at reading width */
.gafter { max-width: 50rem; padding-bottom: clamp(24px, 4vw, 48px); }
.gafter > section { scroll-margin-top: 96px; }

/* Soft call to action (reuses .pnote) */
.gcta { margin-top: clamp(16px, 3vw, 32px); }
.gcta .btn { margin-top: 18px; }
/* main.css paints every link inside .pnote white and underlined; the white button needs dark text. */
.gcta .btn--light { color: var(--navy); text-decoration: none; }
@media (max-width: 480px) { .gcta .btn { width: 100%; white-space: normal; height: auto; min-height: 48px; padding-block: 10px; text-align: center; } }

/* FAQ and sources */
.gfaq, .gsrc { padding: clamp(32px, 5vw, 56px) 0 0; }
.gfaq h2, .gsrc h2 { margin-bottom: 18px; font-size: clamp(1.55rem, 2.8vw, 2.1rem); letter-spacing: -.03em; }
.gsources { display: grid; gap: 10px; max-width: 46rem; padding-left: 1.4em; list-style: decimal; font-size: .95rem; color: var(--ink-2); }
.gsources li::marker { color: var(--muted); }
.gdisclaimer { margin-top: 18px; max-width: 46rem; font-size: .9rem; color: var(--muted); }

/* ---------- Guides index ---------- */
.gcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1023px) { .gcards { grid-template-columns: minmax(0, 1fr); } }
.gcard { display: grid; gap: 12px; align-content: start; }
.gcard__tag { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.gcard h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.15; letter-spacing: -.025em; }
.gcard p { color: var(--ink-2); }
.gindex-note { margin-top: clamp(28px, 4vw, 40px); max-width: 46rem; color: var(--ink-2); }
.gindex-note a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
