/* ===== Estilos para páginas How-To ===== */
.howto-hero {
  padding: 60px 0 30px;
  text-align: center;
}
.howto-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}
.howto-hero .net-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  display: inline-flex;
  width: 80px;
  height: 80px;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  margin-bottom: 16px;
}
.howto-hero .net-icon.ig { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #bc1888); color: #fff; }
.howto-hero .net-icon.fb { background: #1877F2; color: #fff; }
.howto-hero .net-icon.tt { background: #000; color: #fff; position: relative; }
.howto-hero .difficulty {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--success);
  background: color-mix(in srgb, var(--success) 18%, transparent);
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 16px;
}
.howto-hero .reading-time {
  color: var(--text-soft);
  font-size: .9rem;
  margin-bottom: 24px;
}

/* TOC sticky */
.howto-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 60px;
}
.howto-toc {
  position: sticky;
  top: 90px;
  align-self: start;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: .9rem;
}
.howto-toc h4 {
  margin: 0 0 10px;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-soft);
}
.howto-toc a {
  display: block;
  padding: 6px 0;
  color: var(--text-soft);
  border-left: 2px solid transparent;
  padding-left: 10px;
  transition: all .15s;
}
.howto-toc a:hover, .howto-toc a.active {
  color: var(--text);
  border-left-color: var(--primary);
}
@media (max-width: 880px) {
  .howto-layout { grid-template-columns: 1fr; }
  .howto-toc { position: static; }
}

/* Step cards */
.step-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 22px;
  position: relative;
}
.step-block .big-num {
  position: absolute;
  top: -18px;
  left: 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--primary) 35%, transparent);
}
.step-block h3 {
  margin: 16px 0 12px;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.step-block p { margin: 0 0 12px; color: var(--text-soft); line-height: 1.65; }
.step-block ul { margin: 8px 0 14px; padding-left: 24px; color: var(--text-soft); }
.step-block ul li { padding: 4px 0; }
.step-block code {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: .9em;
  color: var(--text);
}

/* Visual mock: fake phone/UI inside steps */
.fake-screen {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 14px 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: .9rem;
}
.fake-screen .addr {
  background: var(--bg);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: .82rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  word-break: break-all;
}
.fake-screen .addr::before { content: '🔒'; opacity: .6; }
.fake-screen .row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.fake-screen .row:last-child { border-bottom: none; }
.fake-screen .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}
.fake-screen .nick { font-weight: 600; font-size: .9rem; }
.fake-screen .nick-sub { font-size: .78rem; color: var(--text-soft); }
.fake-screen .menu-dots { margin-left: auto; color: var(--text-soft); font-size: 1.2rem; cursor: pointer; }

/* Tip box */
.tip {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  margin: 16px 0;
  font-size: .93rem;
}
.tip::before { content: '💡 '; font-weight: 700; }

.warning {
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  border-left: 3px solid var(--danger);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  margin: 16px 0;
  font-size: .93rem;
}
.warning::before { content: '⚠️ '; }

/* CTA box */
.howto-cta {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 18%, transparent), color-mix(in srgb, var(--primary-2) 14%, transparent));
  border: 1px solid var(--primary);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  margin: 30px 0;
}
.howto-cta h3 { margin: 0 0 8px; font-size: 1.3rem; }
.howto-cta p { color: var(--text-soft); margin: 0 0 20px; }
.howto-cta a.btn-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  padding: 12px 30px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}

/* Index page (how-to/) */
.howto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin: 24px 0 40px;
}
.howto-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform .15s, border-color .15s;
}
.howto-card:hover { transform: translateY(-3px); border-color: var(--primary); }
.howto-card .net-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 14px;
}
.howto-card h3 { margin: 0 0 6px; font-size: 1.15rem; }
.howto-card p { color: var(--text-soft); font-size: .92rem; margin: 0 0 16px; flex: 1; }
.howto-card a.btn-go {
  align-self: flex-start;
  background: var(--bg-alt);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all .15s;
}
.howto-card a.btn-go:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
