:root {
  --primary: #7c1820;
  --primary-dark: #5f1118;
  --gold: #c9a65a;
  --text: #2e251d;
  --soft: #67594d;
  --surface: #fff;
  --border: rgba(82, 58, 35, .14);
  --shadow: 0 22px 60px rgba(39, 24, 12, .14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(201,166,90,.2), transparent 34%), linear-gradient(180deg, #fbf8f3, #f1e6d8);
}

.help-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(124,24,32,.1);
  background: rgba(251,248,243,.92);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1100px, calc(100% - 32px));
  min-height: 72px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.help-brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.help-brand span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, var(--gold), #f5deb0); color: var(--primary); }
.help-brand strong { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; }
.back-link { padding: 10px 14px; border: 1px solid rgba(124,24,32,.16); border-radius: 999px; color: var(--primary); font-weight: 800; text-decoration: none; white-space: nowrap; }

.help-main { width: min(980px, calc(100% - 32px)); margin: auto; padding: 48px 0 70px; }
.help-intro { max-width: 740px; margin-bottom: 28px; }
.eyebrow, .step-number { color: var(--primary); font-size: .78rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
h1, h2 { font-family: 'Cormorant Garamond', serif; color: var(--primary-dark); }
h1 { margin: 8px 0 10px; font-size: clamp(2.4rem, 7vw, 4.5rem); line-height: .95; }
.help-intro p { margin: 0; color: var(--soft); line-height: 1.6; }

.step-nav { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }
.step-tab { min-width: 0; padding: 14px 12px; border: 1px solid var(--border); border-radius: 16px; background: rgba(255,255,255,.7); color: var(--soft); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 9px; font: inherit; }
.step-tab span { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 50%; background: #eee5da; font-weight: 900; }
.step-tab.active { border-color: var(--primary); background: var(--primary); color: #fff; box-shadow: 0 12px 30px rgba(124,24,32,.22); }
.step-tab.active span { background: var(--gold); color: var(--primary-dark); }

.steps-card { overflow: hidden; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.help-step { min-height: 430px; padding: clamp(22px, 5vw, 46px); display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 28px; animation: entrar .3s ease; }
.help-step[hidden] { display: none; }
.step-icon { width: 82px; height: 82px; display: grid; place-items: center; border-radius: 24px; background: linear-gradient(145deg, rgba(201,166,90,.25), rgba(124,24,32,.12)); color: var(--primary); font-size: 2rem; font-weight: 900; }
.step-content h2 { margin: 7px 0 18px; font-size: clamp(2rem, 5vw, 3rem); line-height: 1; }
.step-content ol { margin: 0; padding-left: 22px; display: grid; gap: 12px; line-height: 1.55; }
.step-content li::marker { color: var(--primary); font-weight: 900; }
.notice { margin-top: 22px; padding: 14px 16px; border-left: 4px solid var(--gold); border-radius: 10px; background: #fff8e8; color: #61471d; line-height: 1.5; }
.action-link { display: inline-flex; margin-top: 20px; padding: 12px 18px; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 900; text-decoration: none; }

.step-actions { padding: 18px 24px; border-top: 1px solid var(--border); background: #fbf8f3; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 15px; }
.step-actions button { padding: 11px 17px; border-radius: 999px; font: inherit; font-weight: 900; cursor: pointer; }
.step-actions .primary { border: 0; background: var(--primary); color: #fff; }
.step-actions .secondary { border: 1px solid rgba(124,24,32,.18); background: #fff; color: var(--primary); }
.step-actions button:disabled { opacity: .42; cursor: not-allowed; }
#stepStatus { color: var(--soft); font-size: .84rem; font-weight: 800; text-align: center; }

@keyframes entrar { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 700px) {
  .help-brand strong { font-size: 1rem; }
  .help-main { padding-top: 30px; }
  .step-nav { grid-template-columns: 1fr; }
  .step-tab { justify-content: flex-start; }
  .help-step { min-height: 0; grid-template-columns: 1fr; gap: 16px; }
  .step-icon { width: 64px; height: 64px; border-radius: 18px; }
}

@media (max-width: 480px) {
  .help-brand strong { display: none; }
  .help-main, .header-inner { width: min(100% - 20px, 980px); }
  .step-actions { grid-template-columns: 1fr 1fr; padding: 14px; }
  #stepStatus { grid-column: 1 / -1; grid-row: 1; }
  .step-actions button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) { .help-step { animation: none; } }
