/* Guías — se carga después de /styles.css y reutiliza sus tokens */

.site--guias { background: var(--surface-1); }

/* ---------- Hero ---------- */
.guide-hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(2rem, 5vw, 3.5rem)) 0 clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(60% 120% at 85% 0%, rgba(31, 118, 255, 0.28), transparent 60%),
    linear-gradient(180deg, var(--ink-900), var(--ink-850));
  color: var(--text-on-dark);
}
/* mismo ancho que el contenido de abajo, para que los bordes izquierdos coincidan */
.guide-hero__inner { max-width: 1040px; }
.guide-hero__inner--index { max-width: 1000px; }
.guide-hero h1, .guide-meta { max-width: 860px; }
.guide-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #fff;
  text-wrap: balance;
}
.guide-hero__kicker {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--syn-cyan);
}
.guide-hero__lead {
  margin: 0;
  max-width: 680px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-on-dark-mute);
}
.guide-crumbs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-on-dark-faint);
}
.guide-crumbs a { color: var(--text-on-dark-mute); }
.guide-meta { margin: 0; font-size: 0.9rem; color: var(--text-on-dark-faint); }

/* ---------- Layout artículo ---------- */
.guide-layout {
  display: grid;
  gap: 2.5rem;
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 4.5rem);
}
@media (min-width: 1024px) {
  .guide-layout { grid-template-columns: 240px minmax(0, 760px); justify-content: center; }
}
.guide-toc { display: none; }
@media (min-width: 1024px) {
  .guide-toc {
    display: block;
    position: sticky;
    top: calc(var(--nav-h) + 1.5rem);
    align-self: start;
    font-size: 0.875rem;
  }
  .guide-toc p {
    margin: 0 0 0.75rem;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-tertiary);
  }
  .guide-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
  .guide-toc li a {
    display: block;
    padding: 0.35rem 0 0.35rem 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
  }
  .guide-toc li a:hover { color: var(--syn-blue); text-decoration: none; }
}

/* ---------- Cuerpo ---------- */
.guide-body {
  min-width: 0;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-secondary);
}
.guide-body h2 {
  margin: 2.75rem 0 0.9rem;
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}
.guide-body h3 {
  margin: 2rem 0 0.6rem;
  font-size: 1.2rem;
  color: var(--text-primary);
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}
.guide-body p { margin: 0 0 1.1rem; }
.guide-body ul, .guide-body ol { margin: 0 0 1.25rem; padding-left: 1.3rem; }
.guide-body li { margin-bottom: 0.45rem; }
.guide-body strong { color: var(--text-primary); }
.guide-body a { color: var(--syn-blue); text-decoration: underline; text-underline-offset: 2px; }
.guide-body code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: var(--radius-xs);
  background: var(--surface-2);
}

.guide-summary {
  margin: 0 0 2.25rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.guide-summary p {
  margin: 0;
  font-size: clamp(1.125rem, 2vw, 1.3rem);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.guide-note {
  margin: 2rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.guide-note p {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

/* ---------- Tablas ---------- */
.guide-table {
  margin: 1.5rem 0 1.75rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-0);
  -webkit-overflow-scrolling: touch;
}
.guide-table table { width: 100%; border-collapse: collapse; font-size: 0.925rem; line-height: 1.5; }
.guide-table th, .guide-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--surface-3);
}
.guide-table thead th {
  background: var(--surface-2);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}
.guide-table tbody th { color: var(--text-primary); font-weight: 700; }
.guide-table tbody tr:last-child > * { border-bottom: 0; }

/* ---------- CTA ---------- */
.guide-cta {
  margin: 3rem 0 0;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(31, 118, 255, 0.35), transparent 60%),
    var(--ink-900);
  color: var(--text-on-dark-mute);
}
.guide-cta h2 { margin: 0 0 0.6rem; font-size: 1.4rem; color: #fff; }
.guide-cta p { margin: 0 0 1.25rem; line-height: 1.6; }
.guide-cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.guide-body .guide-cta a { color: #fff; text-decoration: none; }
@media (max-width: 480px) {
  .guide-cta__actions .btn { width: 100%; white-space: normal; }
}

/* ---------- Relacionadas ---------- */
.guide-related { margin-top: 3rem; }
.guide-related h2 { margin-top: 0; font-size: 1.2rem; }
.guide-related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.guide-related a {
  display: block;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-0);
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.guide-related a:hover { border-color: var(--syn-blue); box-shadow: var(--shadow-blue); }
.guide-related a span, .guide-card__kicker {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--syn-blue);
}

/* ---------- Listado ---------- */
.guide-index { padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 4.5rem); max-width: 1000px; }
.guide-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .guide-grid { grid-template-columns: repeat(3, 1fr); }
}
.guide-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface-0);
  color: var(--text-secondary);
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.guide-card a:hover { transform: translateY(-2px); border-color: var(--syn-blue); box-shadow: var(--shadow-md); }
.guide-card h2 { margin: 0 0 0.6rem; font-size: 1.2rem; line-height: 1.3; color: var(--text-primary); }
.guide-card p { margin: 0 0 1rem; font-size: 0.95rem; line-height: 1.6; }
.guide-card__more { margin-top: auto; font-weight: 700; font-size: 0.9rem; color: var(--syn-blue); }
.guide-index .guide-cta { margin-top: 2.5rem; }
.guide-index .guide-cta a { color: #fff; text-decoration: none; }

