/* ==========================================================================
   Guía: comprar casa con crédito (usa los tokens de styles.css)
   ========================================================================== */
.guide-back {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 500; text-decoration: none; color: var(--ink); transition: color 200ms;
}
.guide-back:hover { color: var(--accent-text); }
.guide-back .material-symbols-outlined { font-size: 20px; transition: transform 300ms var(--ease-out); }
.guide-back:hover .material-symbols-outlined { transform: translateX(-4px); }

.guide-h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }

/* Portada */
.guide-hero { padding-block: clamp(56px, 9vw, 120px) clamp(40px, 6vw, 72px); }
.guide-hero__title {
  font-size: clamp(40px, 6.4vw, 88px); font-weight: 600; letter-spacing: -0.045em; line-height: 0.98;
  text-wrap: balance;
}
.guide-hero__lead { margin-top: 20px; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; color: var(--muted); max-width: 44ch; }
.guide-note {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 32px; max-width: 62ch;
  padding: 16px 18px; border-radius: var(--radius); background: var(--card);
  box-shadow: inset 3px 0 0 var(--accent); font-size: 15px; line-height: 1.55; color: var(--ink);
}
.guide-note .material-symbols-outlined { color: var(--accent-text); font-size: 22px; flex: none; }

/* ¿Cuánto tarda? */
.guide-time { background: var(--dark); color: var(--white); padding-block: clamp(48px, 7vw, 88px); }
.guide-time__inner { display: grid; gap: 16px; }
.guide-time p { font-size: clamp(18px, 1.8vw, 24px); line-height: 1.5; color: var(--on-ink-muted); max-width: 52ch; }
.guide-time strong { color: var(--white); font-weight: 600; }
.guide-time p strong:last-child { color: var(--gold); }
@media (min-width: 900px) {
  .guide-time__inner { grid-template-columns: 4fr 8fr; gap: 64px; align-items: baseline; }
}

/* Pasos */
.guide-steps { padding-block: clamp(64px, 9vw, 120px); }
.steps {
  --progress: 0; counter-reset: paso; position: relative;
  max-width: 760px; margin-top: 48px; padding-left: 72px; list-style: none;
}
.steps::before, .steps::after {
  content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; border-radius: 2px;
}
.steps::before { background: var(--line); }
.steps::after { background: var(--accent); transform-origin: top; transform: scaleY(var(--progress)); }

.step { position: relative; counter-increment: paso; padding-bottom: 48px; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: counter(paso); position: absolute; left: -72px; top: 0; z-index: 1;
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: var(--paper); box-shadow: inset 0 0 0 2px var(--line);
  font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted);
  transition: background-color 400ms var(--ease-out), color 400ms, box-shadow 400ms, transform 500ms var(--ease-out);
}
.step.is-reached::before { background: var(--accent); color: var(--white); box-shadow: 0 0 0 6px rgb(var(--accent-rgb) / 0.12); transform: scale(1.05); }
.step__title { font-size: clamp(21px, 2vw, 26px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; padding-top: 8px; }
.step p { margin-top: 10px; font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 62ch; }
.step em { font-style: normal; font-weight: 500; color: var(--ink); }
.step__chips { display: grid; gap: 8px; margin-top: 16px; }
.step__chips li {
  padding: 12px 16px; border-radius: var(--radius); background: var(--card);
  box-shadow: 0 1px 0 var(--line); font-size: 15px; color: var(--muted);
}
.step__chips strong { color: var(--ink); font-weight: 600; }
.step__list { margin-top: 12px; display: grid; gap: 6px; }
.step__list li { position: relative; padding-left: 20px; font-size: 16px; color: var(--muted); }
.step__list li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 2px; background: var(--accent); }
.js .step { opacity: 0.55; transition: opacity 500ms var(--ease-out); }
.js .step.is-reached { opacity: 1; }
@media (max-width: 599px) {
  .steps { padding-left: 56px; }
  .steps::before, .steps::after { left: 17px; top: 18px; bottom: 18px; }
  .step::before { left: -56px; width: 36px; height: 36px; font-size: 15px; }
  .step__title { padding-top: 4px; }
}

/* Consejos */
.guide-tips { padding-bottom: clamp(64px, 9vw, 120px); }
.tips { max-width: 760px; margin-top: 28px; border-top: 1px solid var(--line); }
.tips li { padding-block: 18px; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.6; color: var(--muted); }
.tips strong { color: var(--ink); font-weight: 600; }
.sources { margin-top: 24px; font-size: 15px; color: var(--muted); }
.sources a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.sources a:hover { color: var(--accent-text); }

/* Llamado final */
.guide-cta { background: var(--dark); color: var(--white); padding-block: clamp(64px, 9vw, 112px); }
.guide-cta p { margin-top: 16px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--on-ink-muted); max-width: 48ch; }
.guide-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.guide-cta .btn--line { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.85); color: var(--white); gap: 10px; }
.guide-cta .btn--line:hover { background: var(--card); color: var(--on-white); }
.guide-cta .btn--line .material-symbols-outlined { font-size: 20px; }

@media (prefers-reduced-motion: reduce) {
  .step::before, .js .step, .guide-back .material-symbols-outlined { transition: none; }
}
