/* =========================================================
   Guía PLD · por CoreWorks — capa editorial sobre "El Expediente"
   Mantiene el teal nativo de CoreWorks (marca madre) y agrega
   componentes de guía/artículo: TOC, prosa, definiciones, glosario,
   citas a fuente oficial (DOF), disclaimer y CTA de embudo.
   ========================================================= */

/* ---- Wordmark ---- */
.guia-logo { display: inline-flex; align-items: baseline; gap: 9px; line-height: 1; }
.guia-logo b { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -.01em; color: var(--ink); }
.guia-logo span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
@media (max-width: 560px) { .guia-logo span { display: none; } }

/* ---- Hero: meta / badges ---- */
.gmeta { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 24px; }
.gmeta__item { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); }
.gmeta__item svg { width: 15px; height: 15px; stroke: var(--teal-deep); fill: none; stroke-width: 1.8; flex: none; }

/* ---- Layout: TOC + artículo ---- */
.guia-grid { display: grid; grid-template-columns: 228px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.toc { position: sticky; top: 92px; }
.toc__label { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
.toc__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; border-left: 2px solid var(--rule); }
.toc__list a { display: block; padding: 8px 0 8px 16px; margin-left: -2px; border-left: 2px solid transparent; font-size: 14px; color: var(--ink-soft); text-decoration: none; transition: color .2s, border-color .2s; }
.toc__list a:hover { color: var(--ink); }
.toc__list a.is-active { color: var(--teal-deep); border-left-color: var(--teal); font-weight: 500; }
@media (max-width: 920px) {
  .guia-grid { grid-template-columns: 1fr; }
  .toc { position: static; margin-bottom: 26px; }
  .toc__list { display: flex; flex-wrap: wrap; gap: 8px; border-left: none; }
  .toc__list a { padding: 7px 13px; margin: 0; border-left: none; background: var(--paper-soft); border: 1px solid var(--rule); border-radius: var(--r-pill); }
  .toc__list a.is-active { border-color: var(--teal); }
}

/* ---- Artículo / prosa ---- */
.article { max-width: 730px; }
.asec { scroll-margin-top: 90px; }
.asec + .asec { border-top: 1px solid var(--rule); margin-top: clamp(36px, 5vw, 60px); padding-top: clamp(36px, 5vw, 60px); }
.asec__n { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--teal-deep); }
.article h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(25px, 3vw, 33px); letter-spacing: -.018em; color: var(--ink); line-height: 1.1; margin-top: 8px; }
.article h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -.01em; color: var(--ink); margin-top: 28px; }
.article p { font-size: 16.5px; line-height: 1.72; color: var(--ink-soft); margin-top: 14px; }
.article p strong { color: var(--ink); font-weight: 600; }
.article .lead-p { font-size: 18px; color: var(--ink); }
.article ul.bullets { margin-top: 16px; padding: 0; list-style: none; display: grid; gap: 11px; }
.article ul.bullets li { position: relative; padding-left: 27px; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.article ul.bullets li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 7px; height: 7px; border-radius: 2px; background: var(--teal); }
.article ul.bullets li strong { color: var(--ink); }
.inlink { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 2px; }

/* ---- Tarjeta de definición ---- */
.def { background: var(--card); border: 1px solid var(--rule); border-left: 3px solid var(--teal); border-radius: 0 var(--r-md) var(--r-md) 0; padding: 16px 18px; margin-top: 16px; box-shadow: var(--sh-sm); }
.def__t { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink); }
.def__d { font-size: 15px; line-height: 1.6; color: var(--ink-soft); margin-top: 6px; }
.def__src { display: inline-block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .02em; color: var(--ink-faint); margin-top: 9px; }

/* ---- Glosario (grid de definiciones) ---- */
.glos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 20px; }
@media (max-width: 600px) { .glos { grid-template-columns: 1fr; } }
.glos .def { margin-top: 0; }

/* ---- Callout / nota ---- */
.callout { display: flex; gap: 12px; background: color-mix(in oklab, var(--teal) 7%, white); border: 1px solid color-mix(in oklab, var(--teal) 24%, var(--rule)); border-radius: var(--r-md); padding: 14px 16px; margin-top: 20px; }
.callout svg { width: 20px; height: 20px; stroke: var(--teal-deep); fill: none; stroke-width: 1.8; flex: none; margin-top: 1px; }
.callout p { margin: 0; font-size: 14.5px; line-height: 1.58; color: var(--ink-soft); }
.callout b { color: var(--ink); }

/* ---- Disclaimer legal ---- */
.disclaimer { display: flex; gap: 12px; background: var(--paper-soft); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 14px 16px; }
.disclaimer svg { width: 20px; height: 20px; stroke: #b07717; fill: none; stroke-width: 1.8; flex: none; margin-top: 1px; }
.disclaimer p { margin: 0; font-size: 13.5px; line-height: 1.58; color: var(--ink-soft); }
.disclaimer b { color: var(--ink); }

/* ---- Fuentes oficiales ---- */
.sources { display: grid; gap: 9px; margin-top: 16px; }
.sources a { display: flex; gap: 9px; align-items: center; font-size: 14px; color: var(--teal-deep); text-decoration: none; }
.sources a:hover { text-decoration: underline; text-underline-offset: 2px; }
.sources a svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; flex: none; }

/* ---- CTA de embudo a PLD Central ---- */
.guia-cta { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: clamp(26px, 4vw, 42px); box-shadow: var(--sh-sm); display: grid; grid-template-columns: 1fr auto; gap: clamp(20px, 3vw, 40px); align-items: center; }
.guia-cta__t { font-family: var(--font-display); font-weight: 600; font-size: clamp(21px, 2.4vw, 27px); letter-spacing: -.015em; color: var(--ink); line-height: 1.14; }
.guia-cta__d { font-size: 15px; line-height: 1.62; color: var(--ink-soft); margin-top: 9px; max-width: 50ch; }
.guia-cta__d strong { color: var(--ink); }
@media (max-width: 720px) { .guia-cta { grid-template-columns: 1fr; } }

/* ---- Preguntas frecuentes (acordeón accesible) ---- */
.faqlist { margin-top: 22px; border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item > summary { cursor: pointer; list-style: none; display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; padding: 18px 2px; font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.3; color: var(--ink); transition: color .18s; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: "+"; font-family: var(--font-mono); font-size: 22px; line-height: 1; color: var(--teal-deep); flex: none; }
.faq-item[open] > summary::after { content: "\2013"; }
.faq-item > summary:hover { color: var(--teal-deep); }
.faq-a { padding: 0 2px 20px; }
.faq-a p { margin-top: 0; font-size: 15.5px; line-height: 1.68; color: var(--ink-soft); }
.faq-a p + p { margin-top: 10px; }
.faq-a a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 2px; }
.faq-a strong { color: var(--ink); font-weight: 600; }

/* ---- Cambio de idioma (ES/EN, enlaces reales, no toggle) ---- */
.langswitch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--rule); border-radius: var(--r-pill); background: var(--card); }
.langswitch a, .langswitch span { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .04em; line-height: 1; padding: 5px 9px; border-radius: var(--r-pill); text-decoration: none; color: var(--ink-soft); }
.langswitch a:hover { color: var(--ink); }
.langswitch [aria-current="true"] { background: var(--teal); color: #fff; }

/* ---- Footer extra ---- */
.gfoot-note { font-size: 13px; line-height: 1.6; color: var(--ink-faint); max-width: 60ch; }
