/* Guías (prefijo gd-): landing /guias/, artículos /guias/<slug>/ y bloque «Para profundizar» en páginas de servicio.
   Solo usa los tokens del sitio (--ink, --body, --muted, --alt, --card, --line-soft, --accent, --accent-text, --accent-soft), por lo que
   responde solo a modo claro, oscuro y alto contraste. Sin JS. */

/* ---------- Landing ---------- */
.gd-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.gd-card {
  display: flex; flex-direction: column; gap: .75rem; padding: 1.75rem; border-radius: 1.25rem;
  background: var(--alt); border: 1px solid var(--line-soft); color: inherit; text-decoration: none;
  transition: border-color .2s var(--ease, ease), transform .2s var(--ease, ease);
}
.gd-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.gd-card:focus-visible { outline: 3px solid var(--focus, var(--accent)); outline-offset: 3px; }
.gd-card h2, .gd-card h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); line-height: 1.25; color: var(--ink); }
.gd-card p { color: var(--muted); line-height: 1.55; }
.gd-card-meta { font-size: .875rem; color: var(--muted); }
.gd-card .gd-mas { margin-top: auto; display: inline-flex; align-items: center; gap: .25rem; font-weight: 600; color: var(--accent-text); }
.gd-card .gd-mas .mi { font-size: 1.25rem; }

/* ---------- Círculo de ícono (centrado óptico) ---------- */
.gd-ico {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 3rem; height: 3rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text);
}
.gd-ico > .mi { display: block; margin: 0; line-height: 1; flex: none; font-size: 1.5rem; }

/* ---------- Artículo ---------- */
.gd-art { padding-bottom: clamp(3rem, 6vw, 5rem); }
.gd-col { max-width: 46rem; margin-inline: auto; }
.gd-meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .875rem; color: var(--muted); }
.gd-intro { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.65; color: var(--body); }
.gd-toc { margin-block: 2rem 0; padding: 1.25rem 1.5rem; border-radius: 1rem; background: var(--alt); border: 1px solid var(--line-soft); }
.gd-toc h2 { font-size: 1rem; color: var(--ink); }
.gd-toc ol { margin: .625rem 0 0; padding-left: 1.25rem; display: grid; gap: .375rem; }
.gd-toc a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.gd-sec { margin-top: clamp(2.25rem, 4vw, 3.25rem); scroll-margin-top: 6rem; }
.gd-sec > h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); line-height: 1.2; color: var(--ink); }
.gd-sec p { margin-top: 1rem; line-height: 1.7; color: var(--body); }
.gd-sec a:not(.btn) { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.gd-sec h3 { margin-top: 1.5rem; font-size: 1.125rem; line-height: 1.35; color: var(--ink); }
.gd-sec h3 + p { margin-top: .5rem; }

.gd-lista, .gd-pasos { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.gd-lista li, .gd-pasos li { padding: .875rem 0; border-top: 1px solid var(--line-soft); line-height: 1.65; color: var(--body); }
.gd-lista li:last-child, .gd-pasos li:last-child { border-bottom: 1px solid var(--line-soft); }
.gd-lista strong, .gd-pasos strong { color: var(--ink); font-weight: 700; }
.gd-pasos { counter-reset: gd; }
.gd-pasos li { counter-increment: gd; position: relative; padding-left: 2.75rem; }
.gd-pasos li::before {
  content: counter(gd); position: absolute; left: 0; top: .875rem; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  display: grid; place-items: center; font-size: .875rem; font-weight: 700; background: var(--accent-soft); color: var(--accent-text);
}

.gd-opciones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.gd-op { display: flex; flex-direction: column; gap: .625rem; padding: 1.25rem; border-radius: 1rem; background: var(--alt); border: 1px solid var(--line-soft); }
.gd-op h3 { margin: 0; font-size: 1.0625rem; line-height: 1.3; }
.gd-op p { margin: 0; font-size: .9375rem; line-height: 1.55; color: var(--muted); }

.gd-nota { margin-top: 1.25rem; padding: .875rem 1.125rem; border-left: 4px solid var(--accent); border-radius: 0 .75rem .75rem 0; background: var(--accent-soft); color: var(--body); line-height: 1.6; }
.gd-flujo { list-style: none; margin: 1.5rem 0 0; padding: 0; position: relative; display: grid; gap: 0; }
.gd-flujo li { position: relative; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; padding-bottom: 1.5rem; }
.gd-flujo li:last-child { padding-bottom: 0; }
.gd-flujo li:not(:last-child)::before { content: ""; position: absolute; left: 1.5rem; top: 3rem; bottom: 0; width: 2px; background: var(--line); transform: translateX(-1px); }
.gd-flujo h3 { margin: .25rem 0 0; font-size: 1.0625rem; }
.gd-flujo p { margin: .25rem 0 0; font-size: .9375rem; line-height: 1.55; color: var(--muted); }

/* ---------- Cierre y relacionadas ---------- */
.gd-rel { margin-top: clamp(2.25rem, 4vw, 3.25rem); padding-top: 1.5rem; border-top: 1px solid var(--line-soft); }
.gd-rel h2 { font-size: 1.125rem; color: var(--ink); }
.gd-rel ul { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .5rem; }
.gd-rel a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* Bloque «Para profundizar» en páginas de servicio */
.gd-rel-sec { padding-block: clamp(2.25rem, 4vw, 3.25rem); }
.gd-rel-sec .feats.gd-uno { grid-template-columns: minmax(0, 1fr); max-width: 40rem; }
.gd-rel-head { margin-bottom: 1.25rem; display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.gd-rel-sec a.feat { color: inherit; text-decoration: none; border: 1px solid var(--line-soft); }
.gd-rel-sec a.feat:hover { border-color: var(--accent); }
.gd-rel-sec a.feat:focus-visible { outline: 3px solid var(--focus, var(--accent)); outline-offset: 3px; }
.gd-rel-sec a.feat h3 { color: var(--ink); }
.gd-rel-sec .gd-mas { margin-top: .5rem; display: inline-flex; align-items: center; gap: .25rem; font-weight: 600; color: var(--accent-text); font-size: .9375rem; }
.gd-rel-sec .gd-mas .mi { font-size: 1.25rem; margin: 0; }

@media (max-width: 860px) {
  .gd-cards { grid-template-columns: minmax(0, 1fr); }
  .gd-opciones { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .gd-card { transition: none; }
  .gd-card:hover { transform: none; }
}
