/* Página «Recursos y contenido»: guía gratis, cómo hacemos el contenido y últimos vídeos.
   Complementa a styles.css (clases .legal, .articulo, .articulo-cta, .faq-servicio). */

/* Dentro del cuerpo del artículo, los enlaces llevan color naranja y subrayado (styles.css);
   los botones y la tarjeta de TikTok no deben heredarlo. */
.articulo-cuerpo .btn { color: var(--white); text-decoration: none; }
.articulo-cuerpo .rec-tiktok { color: var(--paper); text-decoration: none; }

/* Atajos a los tres bloques */
.rec-atajos { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rec-atajos a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--ink-2); font-size: 14.5px; font-weight: 600; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color var(--dur-hover) ease, color var(--dur-hover) ease, transform var(--dur-press) var(--ease-out);
}
.rec-atajos a:hover, .rec-atajos a:focus-visible { border-color: var(--butano); color: var(--ink); }
.rec-atajos a:active { transform: scale(.97); }

/* Bloques: separación clara y ancla que no se esconde bajo la cabecera fija */
.rec-bloque { scroll-margin-top: 84px; padding-top: 24px; }
.rec-bloque + .rec-bloque { margin-top: 32px; border-top: 1px solid var(--line); }
.rec-bloque > h2 { margin-top: 8px; }
.rec-bloque .eyebrow { margin-bottom: 6px; }

/* Guía: tarjeta del imán de leads */
.rec-guia {
  background: var(--white); border: 1.5px solid var(--line); border-radius: 18px;
  padding: 24px; margin: 18px 0 0;
  box-shadow: 0 24px 50px -36px rgba(28, 27, 24, .45);
}
.rec-guia-cab { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; margin-bottom: 18px; }
.rec-guia-icono {
  width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--paper);
}
.rec-guia-icono svg { width: 28px; height: 28px; }
.rec-guia-cab p { margin: 0; color: var(--ink-2); font-size: 15px; }
.rec-guia-cab strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 2px; }
.rec-errores { list-style: none; margin: 0; padding: 0; counter-reset: error; }
.rec-errores li { position: relative; padding: 14px 0 14px 46px; border-top: 1px solid var(--line); counter-increment: error; }
.rec-errores li::before {
  content: counter(error); position: absolute; left: 0; top: 14px;
  width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--butano-boton); color: var(--white); font-weight: 700; font-size: 15px;
}
.rec-errores h3 { font-family: var(--sans); font-size: 18px; font-weight: 700; margin: 2px 0 6px; color: var(--ink); }
.rec-errores p { margin: 0; font-size: 16px; line-height: 1.55; }
.rec-guia-pie { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 4px; }
.rec-guia-pie .btn { width: 100%; text-align: center; }
.rec-guia-pie .muted { margin: 10px 0 0; text-align: center; }

/* Cómo hacemos el contenido: pasos */
.rec-pasos { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.rec-pasos li {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
}
.rec-paso-icono {
  width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  background: var(--paper-2); color: var(--ink);
}
.rec-paso-icono svg { width: 22px; height: 22px; }
.rec-pasos strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
.rec-pasos p { margin: 0; font-size: 16px; line-height: 1.55; }
.rec-honesto { margin-top: 16px; background: var(--paper-2); border-left: 4px solid var(--pino); border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 18px; font-size: 16px; }
.rec-honesto p { margin: 0; }

/* Últimos vídeos: enlace grande a TikTok */
.rec-tiktok {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center;
  margin-top: 18px; padding: 20px 22px;
  background: var(--ink); color: var(--paper); border-radius: 18px; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-hover) ease, box-shadow var(--dur-hover) ease, transform var(--dur-press) var(--ease-out);
}
.rec-tiktok:hover, .rec-tiktok:focus-visible { background: #000; }
.rec-tiktok:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) {
  .rec-tiktok:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -20px rgba(28, 27, 24, .6); }
}
.rec-tiktok-icono { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: rgba(255, 253, 248, .12); }
.rec-tiktok-icono svg { width: 28px; height: 28px; }
.rec-tiktok strong { display: block; font-size: 19px; line-height: 1.2; }
.rec-tiktok-texto { min-width: 0; }
.rec-tiktok-texto > span { display: block; margin-top: 4px; font-size: 14.5px; color: #bdb5a5; }
.rec-tiktok-flecha { font-size: 24px; color: #bdb5a5; transition: color var(--dur-hover) ease, transform var(--dur-hover) var(--ease-out); }
.rec-tiktok:hover .rec-tiktok-flecha { color: var(--butano); transform: translateX(2px); }
.rec-tiktok-nota { margin: 10px 0 0; font-size: 14px; }

@media (max-width: 480px) {
  .rec-guia { padding: 18px 16px; }
  .rec-errores li { padding-left: 42px; }
  .rec-tiktok { grid-template-columns: 48px 1fr auto; gap: 12px; padding: 16px; }
  .rec-tiktok-icono { width: 48px; height: 48px; }
}
