/* Centro de ayuda (/ayuda/). Builds on the knowledge-* article styles in /style.css. */

.ayuda-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ayuda-crumbs a {
  color: var(--text-secondary);
}

.ayuda-crumbs a:hover {
  color: var(--accent);
}

.ayuda-body .ui {
  display: inline;
  padding: 1px 6px;
  border: 1px solid rgba(246, 192, 8, 0.28);
  border-radius: 4px;
  background: rgba(246, 192, 8, 0.1);
  color: var(--text-primary);
  font-weight: 600;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.ayuda-body a:not(.btn):not(.card) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Numbered steps */
.ayuda-body ol.ayuda-steps {
  counter-reset: ayuda-step;
  list-style: none;
  margin: 22px 0 30px;
  padding: 0;
}

.ayuda-steps > li {
  position: relative;
  margin: 0 0 22px;
  padding-left: 52px;
  counter-increment: ayuda-step;
}

.ayuda-steps > li::before {
  content: counter(ayuda-step);
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #07090c;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 34px;
  text-align: center;
}

.ayuda-body .ayuda-steps h3 {
  margin: 4px 0 6px;
}

.ayuda-steps p {
  margin-bottom: 8px;
}

.ayuda-steps ul {
  margin: 8px 0 10px;
}

/* Leo tip */
.ayuda-leo {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: center;
  margin: 28px 0;
  padding: 16px 20px;
  border: 1px solid var(--hairline-gold, rgba(246, 192, 8, 0.16));
  border-radius: 12px;
  background: var(--bg-card);
}

.ayuda-leo img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-hover);
  object-fit: cover;
}

.ayuda-body .ayuda-leo p {
  margin: 0;
  color: var(--text-primary);
}

.ayuda-leo b {
  color: var(--accent);
}

.ayuda-note {
  margin: 26px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.025);
}

/* Tables */
.ayuda-table-wrap {
  margin: 20px 0 28px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ayuda-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.6;
}

.ayuda-table th,
.ayuda-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.ayuda-table thead th {
  border-bottom: 2px solid var(--accent);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ayuda-table tbody th {
  color: var(--text-primary);
  font-weight: 600;
}

.ayuda-table td {
  color: var(--text-secondary);
}

/* Screenshots */
.ayuda-figure {
  margin: 28px 0 34px;
}

.ayuda-figure img {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.ayuda-figure figcaption {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: center;
}

/* FAQ and quick answers */
.ayuda-faq-group,
.ayuda-hub-group {
  margin-top: 48px;
}

.ayuda-faq-item {
  margin: 0 0 22px;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
}

.ayuda-body .ayuda-faq-item h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.ayuda-body .ayuda-faq-item p {
  margin: 0;
}

.ayuda-quick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 28px;
  margin-top: 22px;
}

/* Cards */
.ayuda-card h3 {
  margin: 14px 0 8px;
}

.ayuda-card p {
  margin-bottom: 0;
}

.ayuda-related {
  margin-top: 56px;
}

.ayuda-contact {
  margin: 34px 0;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.ayuda-contact p:last-child {
  margin-bottom: 0;
}

.ayuda-leo-intro {
  margin-top: 8px;
}

@media (max-width: 720px) {
  .ayuda-quick {
    grid-template-columns: 1fr;
  }

  .ayuda-steps > li {
    padding-left: 46px;
  }

  /* Tables become one card per row on phones, each value under its column name. */
  .ayuda-table {
    min-width: 0;
    font-size: 15px;
  }

  .ayuda-table thead {
    display: none;
  }

  .ayuda-table,
  .ayuda-table tbody,
  .ayuda-table tr,
  .ayuda-table th,
  .ayuda-table td {
    display: block;
    width: 100%;
  }

  .ayuda-table tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }

  .ayuda-table th,
  .ayuda-table td {
    padding: 2px 0;
    border: 0;
  }

  .ayuda-table tbody th {
    margin-bottom: 4px;
  }

  .ayuda-table td::before {
    content: attr(data-label);
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .ayuda-table td[data-label=""]::before {
    display: none;
  }
}
