/* Guía de Clubes de Lectura.
   Se carga DESPUÉS de landing-v2.css y support.css: tipografía, nav, botones,
   FAQ, hero y panel de contacto vienen de ahí. Aquí sólo va lo propio de la guía. */

.guide-hero h1 { max-width: 15ch; }
.guide-hero .button-row { margin-top: 30px; }

.guide-pilot {
  max-width: 62ch;
  margin-top: 26px;
  padding: 14px 18px;
  border: 1px solid rgba(163, 95, 12, .2);
  border-radius: var(--radius-sm);
  background: rgba(243, 211, 159, .28);
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.55;
}

.guide-pilot strong { color: var(--ink); }

/* Índice + cuerpo */
.guide { padding-top: clamp(40px, 6vw, 72px); }

.guide-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.guide-toc {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.guide-toc p {
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.guide-toc ol {
  display: grid;
  gap: 2px;
  list-style: none;
  counter-reset: toc;
}

.guide-toc li { counter-increment: toc; }

.guide-toc a {
  display: flex;
  gap: 10px;
  align-items: baseline;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--ink-soft);
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

.guide-toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--amber-dark);
  font-size: .78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.guide-toc a:hover,
.guide-toc a:focus-visible {
  background: var(--surface-soft);
  color: var(--ink);
}

.guide-body {
  display: grid;
  gap: clamp(56px, 7vw, 88px);
  max-width: 760px;
}

.guide-section { scroll-margin-top: calc(var(--nav-height) + 24px); }

.guide-section h2 {
  margin-bottom: 16px;
  font-family: 'Literata', Georgia, serif;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.guide-section h3 {
  margin: 30px 0 10px;
  font-size: 1.12rem;
  line-height: 1.3;
}

.guide-section > p,
.guide-section li { color: var(--ink-soft); }

.guide-section > p { margin-bottom: 14px; }
.guide-section > p:last-child { margin-bottom: 0; }

.guide-section strong { color: var(--ink); }

.guide-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--amber-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.guide-path {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: .92em;
  font-weight: 700;
  white-space: nowrap;
}

/* Pasos numerados */
.guide-steps {
  display: grid;
  gap: 14px;
  margin: 18px 0;
  list-style: none;
  counter-reset: step;
}

.guide-steps li {
  position: relative;
  padding-left: 46px;
  counter-increment: step;
  line-height: 1.6;
}

.guide-steps li::before {
  content: counter(step);
  position: absolute;
  top: -2px;
  left: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--white);
  font-size: .9rem;
  font-weight: 900;
}

/* Tarjetas de opciones */
.guide-cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin: 20px 0;
}

.guide-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.guide-card h3,
.guide-card h4 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.3;
}

.guide-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .96rem;
  line-height: 1.55;
}

.guide-card ul {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: .96rem;
  line-height: 1.5;
}

.guide-card .guide-kicker { margin-bottom: 8px; }

/* Nota destacada */
.guide-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 22px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--ink-soft);
  line-height: 1.55;
}

.guide-note svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--amber-dark);
}

.guide-note strong { color: var(--ink); }

/* Ilustraciones */
.guide-figure {
  margin: 24px 0;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.guide-figure svg {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  margin-inline: auto;
}

.guide-figure figcaption {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: .92rem;
  line-height: 1.5;
  text-align: center;
}

/* Preguntas y contacto */
.guide-faq .faq-question { font-size: 1.05rem; }
.guide-faq .faq-answer p a,
.guide-body a:not(.button) {
  color: var(--amber-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guide-contact { padding-top: 0; }

@media (max-width: 959px) {
  .guide-layout { grid-template-columns: minmax(0, 1fr); }

  .guide-toc {
    position: static;
    margin-inline: -20px;
    padding-inline: 20px;
  }

  .guide-toc ol {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .guide-toc ol::-webkit-scrollbar { display: none; }

  .guide-toc li { flex: 0 0 auto; scroll-snap-align: start; }

  .guide-toc a {
    min-height: 44px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    white-space: nowrap;
  }
}

@media (max-width: 520px) {
  .guide-hero .button-row .button { width: 100%; }
  .guide-steps li { padding-left: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .guide-toc a { transition: none; }
}
